docbrown/app
Suzanne Aitchison 75b6c8ed96
Use a single listener for all follow buttons on a page (#14246)
* create new pack, handle user follow buttons, use pack on article page, remove initializeUserFollowButts

* init all follow button types, add pack to tag index and podcast episode pages

* add pack to all relevant pages, listen for newly inserted follow buttons

* change to searchParams to remove follow button initializer calls

* fix bug with tag page, add pack to notifications page

* fix issue with follow back inner text

* update cypress specs

* run the followbuttons code on sponsors page

* remove extra foreach

* add test for follow from article sidebar

* add test for follow and unfollow tag

* add test for the tag index page

* add spec for organisation profile follow

* add tests for follow buttons in search results

* add tests for notification follows

* commit missed file - woops

* show login modal if user is logged out when they click

* add cypress tests for logged out state

* change tag button initialization

* remove data-button-initialized

* init follow buttons from base pack

* handle the case where multiple follow buttons exist on a page for the same user

* account for instantclick and userdata not being defined, lower coverage for jest

* use getInstantClick

* fix issue with set initialisation

* only listen for mutations in areas we know follow buttons may be added dynamically

* small refactors
2021-07-27 10:45:50 +01:00
..
assets Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
black_box Remove <provider>_created_at columns (#13264) 2021-04-29 10:24:16 -05:00
controllers API: Add reading_time_minutes to /api/articles/me (#14318) 2021-07-26 17:47:50 +02:00
decorators Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
errors Bump rubocop from 1.17.0 to 1.18.0 (#14107) 2021-07-01 13:51:49 +02:00
helpers Avoid showing social login options in ForemWebView (#14260) 2021-07-21 09:59:12 -06:00
javascript Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
lib Arrange Datadog Redis integrations more usefully (#14185) 2021-07-09 15:19:37 -04:00
liquid_tags Bump rubocop from 1.17.0 to 1.18.0 (#14107) 2021-07-01 13:51:49 +02:00
mailers Re-add dynamic delivery_method for ApplicationMailer (#13994) 2021-06-23 15:17:27 -04:00
models Rename User.dev_account to User.staff_account (#14321) 2021-07-26 10:46:26 -04:00
policies Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
queries Bump rubocop from 1.17.0 to 1.18.0 (#14107) 2021-07-01 13:51:49 +02:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Remove unused attributes from markdown parser (#13484) 2021-04-27 09:33:01 -04:00
serializers Remove CustomProfileField (#14286) 2021-07-22 10:05:39 +07:00
services Rename User.dev_account to User.staff_account (#14321) 2021-07-26 10:46:26 -04:00
uploaders Change frame limit to match imgproxy (#13265) 2021-04-06 12:28:50 +02:00
validators Allow setting nil value in Settings::Upsert (#14228) 2021-07-20 10:57:09 -04:00
view_objects Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
views Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
workers Don't try to subscribe users without emails (#14244) 2021-07-15 10:34:23 -04:00