docbrown/app
Ridhwana b98dbd4035
Restructure the way we render the feed + add billboard locations on signed in feed (#19533)
* 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
2023-06-14 12:29:56 -05:00
..
assets Remove loading-ellipsis.svg and related code (#19569) 2023-06-01 10:41:53 -04:00
controllers Restructure the way we render the feed + add billboard locations on signed in feed (#19533) 2023-06-14 12:29:56 -05:00
decorators Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
errors Favoring re-use of authorization error (#16992) 2022-03-24 08:16:28 -04:00
forms Refactor CreatorSettingsForm & spec (#19011) 2023-01-27 08:39:07 -05:00
helpers Manual Audience Segments API write endpoints (#19476) 2023-05-25 20:37:18 +01:00
javascript Restructure the way we render the feed + add billboard locations on signed in feed (#19533) 2023-06-14 12:29:56 -05:00
lib Remove manual user follow suggestions (#19457) 2023-05-16 15:01:03 +02:00
liquid_tags CTA Embed (#19440) 2023-05-12 14:30:30 +02:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models Add ability to mark billboard (display_ad) as "priority" (boolean) (#19599) 2023-06-12 16:28:15 -04:00
policies Clear trusted cache in rolify callback (#19275) 2023-04-03 14:45:00 +02:00
queries Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Organization Search Filtering (#19430) 2023-05-08 14:58:25 -05:00
services Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
uploaders small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
validators Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
view_objects Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
views Add ability to mark billboard (display_ad) as "priority" (boolean) (#19599) 2023-06-12 16:28:15 -04:00
workers notify mod on new user articles (#19478) 2023-05-23 10:51:46 -04:00