docbrown/app/assets/javascripts/initializers
Joshua Wehner 30c0485507
Frontend for multiple reactions (v1) (#18808)
* Remove extraneous comment (see 9361d2 and 5c18f8)

* Flexible, multiple reaction types

* Fix reaction counts

* Re-use svg for active state for now

* Update yml, update spec

* Possible temp fix for failing tests

* Colorize reaction icon svgs

* Reaction engagement above post title

* Index reactions engagements (for logged-out)

* Maybe readinglist is special

* Try using crayons' dropdown as a drawer?

* readinglist isn't really public now

* feat: update the styles for the reaction drawer

* Grey background highlight, turn off border/shadow

* Read our feature flag docs, saw this was recommended

* Missed fifth emoji: party/tada

* Fix JS test errors

* Update test with tada

* Suppress flashing engagements when no public reactions

* Liberate jump-to-comments from unicorn replacement

* 'Add reaction' on tooltip

* Don't show reaction emoji on index unless it's been used

* rubocop

* Update heart+ total count when toggling

* Do not include 'readinglist' in drawer/public counts

* Fix semi-public readinglist so that icon is badged for current user

* Tweak heart-plus svg

* Style tweak: border on active reaction

* Show reacted icon on drawer trigger for 1.5 sec

* Tweak styles for engagements bar

* Style tweaks for multiple engagements (#index)

* Trying to get size working through crayons/inline_svg

* Sparkle hearts

* Restore unicorn

* Make heart-plus-active work when user has an active reaction

* Try 'hoverdown' a dropdown that activates with hover

* Long touch?

* Tap *outside* the drawer to close

* Mobile reaction drawer is also supposed to be columns

* More reaction count cleanup

* Final emoticons maybe?

* Fix reaction bug when feature disabled

* Remove readinglist from public reaction counts

* Update specs for new reaction categories

* Shuffle makes specs flaky

* Order does not matter

* rubocop

* Update to preserve readinglist analytics

* Shuffle makes specs flaky

* Fix flickering images, remove icon highlight for now

* Don't update total for readinglist

* reactions_by_user_id

* Try renaming this observer function

* Try unid ids for SVGs

* Remove local test file

* Simplistic test for the unique svg transform

* Fix javascript for current SVG

* Signifcant string literals in this case, rubocop

* Use the right expected output

Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2023-01-23 16:00:50 +01:00
..
initializeAllTagEditButtons.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
initializeArchivedPostFilter.js Fixes archived button in dashboard for PWA (#8930) 2020-06-26 11:26:12 -04:00
initializeArticleDate.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
initializeArticleReactions.js Frontend for multiple reactions (v1) (#18808) 2023-01-23 16:00:50 +01:00
initializeBaseTracking.js.erb Remove html variants tracking (#18594) 2022-10-21 14:57:20 +03:00
initializeBaseUserData.js Don't show manage link in the action-space for a scheduled article (#18278) 2022-08-08 15:14:11 +03:00
initializeBodyData.js Add Google Analytics 4 Support (#18124) 2022-07-21 09:26:13 -05:00
initializeBroadcast.js Hide active broadcasts from /connect routes (#10312) 2020-09-14 11:28:18 +02:00
initializeCommentDate.js Fix lint in initializeCommentDate.js (#4319) [ci skip] 2019-10-09 14:33:52 -04:00
initializeCommentPreview.js Fixed twitter timeline display in comments preview (#12542) 2021-02-15 17:09:18 +01:00
initializeCommentsPage.js.erb Add tracking for the registration flow - "Clicked on Create Account" (#18459) 2022-09-22 16:03:49 +02:00
initializeCreditsPage.js Refactor: initializeCreditsPage.js (#4312) [ci skip] 2019-10-08 12:33:28 -04:00
initializeDashboardSort.js [deploy] Dashboard updates (#8879) 2020-06-25 13:10:17 -04:00
initializeDateTimeHelpers.js Fix inconsistent published date of Article and Comment (#18412) 2022-09-09 14:12:15 -06:00
initializeDisplayAdVisibility.js DisplayAdEvent tracking changes (#18460) 2022-09-26 16:33:03 +02:00
initializeDrawerSliders.js Remove swipe gestures and other unnecessary code (#12027) 2020-12-30 12:17:29 -05:00
initializeHeroBannerClose.js Add missing aria label for campaign close button (#12489) 2021-01-29 17:51:18 -05:00
initializeLocalStorageRender.js ✂️✂️✂️ Part 1: Remove Sponsorship (#18512) 2022-10-03 16:26:32 +02:00
initializeOnboardingTaskCard.js Fix TypeError: userData is null in initializeOnboardingTaskCard.js (#9298) [deploy] 2020-07-14 07:32:57 -07:00
initializePaymentPointers.js Check for meta payment pointer first before attempting to load (#9722) 2020-08-10 18:12:48 -04:00
initializePodcastPlayback.js Added more cases to handlePodcastMessages (#18297) 2022-08-16 01:22:07 +05:30
initializeReadingListIcons.js Add tracking for the registration flow - "Clicked on Create Account" (#18459) 2022-09-22 16:03:49 +02:00
initializeSettings.js Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
initializeTimeFixer.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
initializeUserProfilePage.js Optimise dropdowns for accessibility - Profile page (#13916) 2021-06-14 12:31:23 +01:00
initializeVideoPlayback.js Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
initNotifications.js use getCsrfToken helper, refactor to fetch (#16717) 2022-03-01 09:11:42 +00:00
initScrolling.js Hide 'Save' button on posts that belong to the current user (#17293) 2022-04-28 12:33:01 -04:00