docbrown/app/views/notifications
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
..
shared Expand @-mention functionality to posts (#13367) 2021-05-12 07:33:33 -07:00
_aggregated_reactions.html.erb Bugfix: Remove focus from avatars in notifications for better keyboard navigation (#11650) 2020-12-03 08:11:20 -05:00
_article.html.erb Expand @-mention functionality to posts (#13367) 2021-05-12 07:33:33 -07:00
_badgeachievement.html.erb [15 Min Fix]: Fix template error in badge achievement notification view (#13186) 2021-03-30 10:45:37 -07:00
_broadcast.html.erb Notifications fixes (#11180) 2020-10-30 14:52:58 +01:00
_comment.html.erb Notifications redesign (#11084) 2020-10-29 20:38:17 +01:00
_follow.html.erb Add loading=lazy to image tags (#10888) 2021-05-27 19:01:21 +02:00
_mention.html.erb Expand @-mention functionality to posts (#13367) 2021-05-12 07:33:33 -07:00
_milestone.html.erb Notifications redesign (#11084) 2020-10-29 20:38:17 +01:00
_nav_menu.html.erb Fix layout shift on active crayons-tabs change. (#13300) 2021-05-12 11:45:36 -04:00
_notifications_list.html.erb Notifications redesign (#11084) 2020-10-29 20:38:17 +01:00
_reaction.html.erb Notifications redesign (#11084) 2020-10-29 20:38:17 +01:00
_single_reaction.html.erb Move app/labor/reaction_image.rb to helper (#11678) 2020-12-01 14:15:30 +07:00
_tagadjustment.html.erb Notifications fixes (#11180) 2020-10-30 14:52:58 +01:00
index.html.erb Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00