docbrown/spec
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
..
black_box Remove <provider>_created_at columns (#13264) 2021-04-29 10:24:16 -05:00
controllers/concerns 15 minute fix: Add default argument to JsonApiSortParam (#13369) 2021-04-14 10:32:07 +07:00
decorators Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
factories Remove CustomProfileField (#14286) 2021-07-22 10:05:39 +07:00
fixtures Remove color_field input type from profiles (#14239) 2021-07-19 18:42:36 +07:00
generator Add service generator (#11265) 2020-11-10 09:09:35 +07:00
helpers Avoid showing social login options in ForemWebView (#14260) 2021-07-21 09:59:12 -06:00
initializers Bump rubocop-rails from 2.10.1 to 2.11.0 (#14043) 2021-06-22 11:25:28 -05:00
lib [hotfix] website_url update script should handle parse errors (#14306) 2021-07-22 14:16:43 -05:00
liquid_tags Escape organization name in LinkTag's spec (#14249) 2021-07-15 14:34:14 -04:00
mailers Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
models Rename User.dev_account to User.staff_account (#14321) 2021-07-26 10:46:26 -04:00
policies Create DiscussionLocks (#13905) 2021-06-10 11:04:33 -04:00
queries Make Consumer Apps dictate aasa results (#14015) 2021-06-24 08:36:11 -06:00
refinements Update data exporter to handle admin send (#10274) 2020-10-26 18:00:56 -04:00
requests API: Add reading_time_minutes to /api/articles/me (#14318) 2021-07-26 17:47:50 +02:00
routing ✂✂✂ Remove shop_url from SiteConfig ✂✂✂ (#13773) 2021-05-18 09:03:05 +07:00
serializers/search Cleanup search classes and serializers (#13645) 2021-05-05 09:20:59 -04:00
services Rename User.dev_account to User.staff_account (#14321) 2021-07-26 10:46:26 -04:00
support Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
system Rename User.dev_account to User.staff_account (#14321) 2021-07-26 10:46:26 -04:00
tasks Replace admin guide links (#13967) 2021-06-23 15:01:01 -04:00
uploaders Fix Ruby 2.7 kwargs' warnings & misc spec warnings (#13256) 2021-04-06 16:57:59 -04:00
view_objects [15 min fix] Fallback to the image URL if Cloudinary/Imgproxy are not configured (#13767) 2021-05-19 15:03:20 +02:00
views Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
workers Don't try to subscribe users without emails (#14244) 2021-07-15 10:34:23 -04:00
rails_helper.rb Replacing granular admin email settings with one default email (#13853) 2021-05-28 12:17:08 +03:00
spec_helper.rb [15-minute fix] Don't allow markdown to use CSS classes (#13282) 2021-04-07 11:40:39 -04:00