docbrown/app/views/users
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
..
_account.html.erb [15 minute fix] Fix accessibility concerns in settings UI (#13813) 2021-05-24 14:50:24 -05:00
_account_providers_emails.html.erb Settings padding on mobile (#11183) 2020-10-30 17:26:41 +01:00
_account_providers_settings.html.erb Display all authentication providers in mailer footer (#9961) 2020-08-24 21:02:05 +02:00
_account_set_password.html.erb [15-minute fix] Update password reset wording (#14125) 2021-07-05 09:33:51 +07:00
_additional_authentication.html.erb Workaround for Apple auth problems (still in beta) (#12263) 2021-01-14 09:44:56 -06:00
_badges_area.html.erb Add loading=lazy to image tags (#10888) 2021-05-27 19:01:21 +02:00
_billing.html.erb Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
_comments_section.html.erb Fixing gap property for all occurrences of flex to work in Safari (#12667) 2021-02-17 11:40:38 +01:00
_customization.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
_editor_selector.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
_errors.html.erb crayons-notice accessibility improvements (#13273) 2021-04-14 13:32:57 +01:00
_experience_selector.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
_extensions.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
_font_selector.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
_github_repositories_area.html.erb Move CodeBlockParse and MarkdownParser to service (#12112) 2021-01-07 10:13:01 -05:00
_integrations.html.erb Fixing gap property for all occurrences of flex to work in Safari (#12667) 2021-02-17 11:40:38 +01:00
_integrations_github_repositories.html.erb Remove GitHub repositories when GitHub identity is removed (#11951) 2020-12-20 15:15:40 +01:00
_liquid.html.erb Remove social icons from user liquid tag (#10977) 2020-10-20 21:58:22 -04:00
_main_feed.html.erb Optimize loading partials as collections (#12276) 2021-01-18 14:18:33 +03:00
_meta.html.erb Rename SiteConfig to Settings::General (#13573) 2021-05-21 14:45:37 +02:00
_metadata.html.erb Quickfix for duplicate work display (#14237) 2021-07-15 10:14:35 +01:00
_navbar_selector.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
_notifications.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
_org_admin.html.erb Removing Settings::General.email_addresses (#13958) 2021-06-11 12:34:34 +03:00
_org_guest.html.erb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
_org_member.html.erb [15 minute fix] Fix accessibility concerns in settings UI (#13813) 2021-05-24 14:50:24 -05:00
_org_non_member.html.erb [15 minute fix] Fix accessibility concerns in settings UI (#13813) 2021-05-24 14:50:24 -05:00
_organization.html.erb Update call to action box text styling (#6795) 2020-03-24 10:49:37 +01:00
_profile.html.erb Validate profile field "website url" is in fact a url (don't generate local path links). (#14302) 2021-07-22 12:02:29 -05:00
_publishing_from_rss.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
_response_templates.html.erb Fixing gap property for all occurrences of flex to work in Safari (#12667) 2021-02-17 11:40:38 +01:00
_sidebar.html.erb Add loading=lazy to image tags (#10888) 2021-05-27 19:01:21 +02:00
_theme_selector.html.erb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
confirm_destroy.html.erb Fixing gap property for all occurrences of flex to work in Safari (#12667) 2021-02-17 11:40:38 +01:00
edit.html.erb [15 minute fix] Fix accessibility concerns in settings UI (#13813) 2021-05-24 14:50:24 -05:00
index.json.jbuilder [deploy] Reintroduce sticky_nav changes (ab81f36 & 7f92855) (#10263) 2020-09-09 15:33:13 -04:00
show.html.erb Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
signout_confirm.html.erb Deprecate old button stylings with Crayons buttons (#10694) [deploy] 2020-10-14 07:28:41 -07:00