docbrown/app/javascript/articles
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
..
__stories__ Updated story book annotations (#18562) 2022-10-11 19:43:40 +05:30
__tests__ Restructure the way we render the feed + add billboard locations on signed in feed (#19533) 2023-06-14 12:29:56 -05:00
components Patch: Fix too-long code in comment previews via appropriate truncation (#19540) 2023-05-30 10:02:09 -04:00
Article.jsx Hide 'Save' button on posts that belong to the current user (#17293) 2022-04-28 12:33:01 -04:00
Feed.jsx Restructure the way we render the feed + add billboard locations on signed in feed (#19533) 2023-06-14 12:29:56 -05:00
index.js [deploy] Home Page Feed redesign + top comments (#7579) 2020-05-12 07:57:57 -05:00
LoadingArticle.jsx Log prop-types warnings to console in development (#14635) 2021-09-01 09:27:58 +01:00
PodcastArticle.jsx Moved common-prop-types out of src/ folder (#7871) 2020-05-14 16:58:29 -04:00