docbrown/app/javascript/packs
Ridhwana ccacf0bc3a
Refactor the home feed + add user tag filtering on in-feed billboards (#19600)
* feat: fix of there is no article

* feat: set the feed order in a data structure rather than in a view

* feat: update yarn.lock

* feat: push the items to the array

* feat: update feed to only show billboards if we have the correct length of items in the feed

* fix: organizedFeedItems.legth

* feat: rename 'featured' to 'image'

* feat: rename 'featured' to 'image'

* feat: rename 'featured' to 'image'

* feat: add some utilities for the feed that we can use in the FeedTest

* feat/WIP: the setup for the feed tests and a first working test

* test: imageItem

* fix: the podcasts can be passed through as an array of objects in the feedItems so that they can be grouped in one card

* feat: remove podcastEpisode state and the attribute in the object

* fix: check that the items exist before trying to slice them

* feat: setup the userdata and the podcast data in the test

* whoops - commit the podcast episodes

* feat: write soem more tests for the feed and including the podcasts

* feat: add some more tests

* feat: add more billboards tests to chcek the order of stuff

* feat: set the timeframe not empty

* feat: update the logic for organizaed feed by inserting the last on first

* doc: jsdoc for functions

* refactor: break the code up into smaller functions

* refactor: make the code more readable and easier to follow

* refactor: pull function out into a utlity

* feat: add specs to utility

* feat: chcek if pinned post

* test the latest timeframe correctly

* chore: update var name

* move the podcast items out of the object clause

* feat: update text

* feat: add a pack file that duplicates initializeDisplayAdVisibility

* feat: create callbacks that will help us to determine when the feed has been rendered so that we can observe the dsplay ads accordingly

* chore: rename to billboards instead of display ad

* feat: abstract out a function that will work for any tagged resource and also limit the article tags within a scope of the article_id

* feat: update the spec for the previous changes

* feat: write tests for the user_tags

* feat: add user_tags to for_display adn the query

* feat: add user_tags to the endpoint where we query the tags to send it through to for_display

* feat: pass through the suer tags to the async request

* feat: update the user_tags fiter query + tests

* feat: update the admin view to show targeted tags on the new feed option billboards too

* feat: add tests for targeted tags field on admin

* refactor: consolidate all of the options into one

* feat: move comment close to attribute

* feat: use a helper method

* feat: include helper on ads query

* feat: move the query from the frontend to live on the backend

* feat: first pass at some error handling whilst maintaining the order of the items

* test: for feed error

* feat: abstract out some code

* update the feed items for errors

* chore: comment

* feat: update the variable names

* feat: update honeybadger message

* feat: update the name of the variable

* refactor: do not conflate the duty of the untagged_ads

* refactor: rename the variables + add note for clarity

* fix: update var
2023-07-06 16:47:08 +02:00
..
admin Refactor the home feed + add user tag filtering on in-feed billboards (#19600) 2023-07-06 16:47:08 +02:00
CommentTextArea Image uploading progress in comments editor + post editor (#18369) 2022-08-29 16:01:40 +05:30
initializers TimeFixer Initializer Migration (#19268) 2023-04-27 20:54:39 -05:00
modals Save list of previously-published articles when user is subject to an "un-publish all" action (#18535) 2022-10-06 14:17:20 +03:00
users Migrate initializeUserProfilePage to webpack (#19241) 2023-03-28 12:20:49 -04:00
actionsPanel.js [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
admin.js Revise skip link behaviour (#15401) 2021-11-18 13:45:08 +00:00
analyticsArticle.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
analyticsDashboard.js add org analytics menu if user has organizations (#13995) 2021-06-23 14:35:23 +02:00
applyApplicationPolicyToggles.js Conditional rendering of "Create Post" link (#17076) 2022-04-05 12:47:12 -04:00
archivedPostFilters.js feat: move the initializer to a pack file (#19279) 2023-03-31 15:33:41 +02:00
articleForm.jsx Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
articleModerationTools.js Redeploying the Flag/Unflag User functionality (#18235) 2022-07-28 09:03:37 -04:00
articlePage.jsx Removed tracking 'comments section viewable' ahoy event (#19354) 2023-04-21 13:31:37 +03:00
articleReactions.js Migrate initializeArticleDate and initializeArticleReactions to Webpack (#19377) 2023-04-25 18:33:43 +01:00
base.jsx Migrate dashboard initializers to packs (#19327) 2023-04-18 18:09:33 -04:00
baseInitializers.js TimeFixer Initializer Migration (#19268) 2023-04-27 20:54:39 -05:00
baseTracking.js Address flaky specs (#19188) 2023-03-02 09:40:06 -05:00
billboard.js Add accidentally-removed observeDisplayAds line (#19631) 2023-06-23 18:49:17 -04:00
billboardAfterRenderActions.js Restructure the way we render the feed + add billboard locations on signed in feed (#19652) 2023-07-03 15:00:44 +02:00
commentDropdowns.js Sort comments reopen (#18349) 2022-09-13 11:37:48 -06:00
commentModPage.js Fix comment moderation's UI bugs (#19554) 2023-06-23 09:56:24 -04:00
commentsDisplay.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
confirmationEmail.js Creator Onboarding Confirmation Page (#14259) 2021-08-03 14:21:56 +02:00
contentDisplayPolicy.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
dashboardDropdowns.js Optimise dropdowns for accessibility: Dashboard and Manage pages (#13909) 2021-06-04 10:19:56 +01:00
dashboardTagsDisableUnchangedButtons.js [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
drawerSliders.js Migrate initializeDrawerSliders and initializeHeroBannerClose to Webpack (#19324) 2023-04-17 10:55:02 +01:00
enhanceColorPickers.jsx Use the Preact ColorPicker in creator onboarding (#16731) 2022-03-03 08:22:10 +00:00
feedPreviewCards.jsx Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
followButtons.js Fix bug: Unable to unfollow topics (#19637) 2023-06-29 09:54:10 +02:00
foremCreatorSignup.js Add toggle button to 'New Forem Secret' form (#17016) 2022-03-29 08:29:29 -06:00
fullScreenModeControl.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
githubRepos.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
heroBannerClose.js Migrate initializeDrawerSliders and initializeHeroBannerClose to Webpack (#19324) 2023-04-17 10:55:02 +01:00
hideBookmarkButtons.js Try to catch unhandled exception (#19360) 2023-05-09 11:10:29 -04:00
homePage.jsx Restructure the way we render the feed + add billboard locations on signed in feed (#19652) 2023-07-03 15:00:44 +02:00
homePageFeed.jsx Refactor the home feed + add user tag filtering on in-feed billboards (#19600) 2023-07-06 16:47:08 +02:00
homePageFeedShortcuts.jsx Provide skip links: Tweak skip link style, refactor main area ID (#12694) 2021-02-17 10:15:31 +00:00
listingDashboard.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
listingForm.jsx Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
listings.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
localizeArticleDates.js Migrate initializeArticleDate and initializeArticleReactions to Webpack (#19377) 2023-04-25 18:33:43 +01:00
modCenter.jsx Mod Center MVP 🎉 (#8744) 2020-06-23 14:58:16 -04:00
notificationPage.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
Onboarding.jsx ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
onboardingRedirectCheck.jsx Remove Creator Onboarding Feature Flags from Codebase (#15982) 2022-01-31 11:30:43 -07:00
orgCreditsSelector.js Crayonsification of Listings form (#10429) 2020-09-30 09:14:48 +02:00
postCommentsPage.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
profileDropdown.js Optimise dropdowns for accessibility - Profile page (#13916) 2021-06-14 12:31:23 +01:00
readingList.jsx Add Snackbar component on reading list (#15235) 2021-11-15 13:06:21 +02:00
runtimeBanner.jsx ForemMobile namespaced functions (#15212) 2021-11-23 15:25:29 -06:00
Search.jsx Crayons: Buttons vs CTAs (#15311) 2021-11-30 20:40:32 +01:00
searchParams.js feat: display card HTML for loading during search (#18674) 2022-11-04 13:11:59 -06:00
sidebarWidget.jsx Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
signupModalShortcuts.jsx Use faster JS selection methods (#11409) 2020-11-16 17:35:50 +01:00
stickySaveFooter.js fix: 🐛 Fix Color displaying over button in settings (#17172) 2022-04-11 10:59:57 +02:00
storiesList.js stories list script as separate js file - defer attribute (#13993) 2021-06-21 10:59:30 +07:00
toggleUserFlagModal.js Redeploying the Flag/Unflag User functionality (#18235) 2022-07-28 09:03:37 -04:00
toggleUserSuspensionModal.js Ensure super moderator actions Note & AuditLog (#18569) 2022-10-12 09:36:41 -06:00
unpublishPostModal.jsx Used PreactModal for unpublish-post feature (#18019) 2022-07-06 16:29:08 +05:30
userProfileSettings.js fix character limits i18n (#15830) 2021-12-21 07:15:21 -05:00
validateFileInputs.js Tweak image upload validation experience (#18675) 2022-11-04 11:06:16 +01:00
webShare.js Use navigator.share on mobile devices (#13809) 2021-06-15 06:39:33 -06:00