docbrown/app/javascript/utilities/__tests__
Ridhwana 8003691b37
Restructure the way we render the feed + add billboard locations on signed in feed (#19652)
* 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: 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
2023-07-03 15:00:44 +02:00
..
color Bump eslint-config-preact from 1.2.0 to 1.3.0 (#15834) 2021-12-21 14:42:20 +00:00
checkUserLoggedIn.test.js Notifications Initializer Migration to Pack tag (#19124) 2023-04-14 17:50:07 -04:00
dragAndDrop.test.js Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
getUserDataAndCsrfToken.test.js Try to catch unhandled exception (#19360) 2023-05-09 11:10:29 -04:00
insertInArrayIf.test.js Restructure the way we render the feed + add billboard locations on signed in feed (#19652) 2023-07-03 15:00:44 +02:00
localDateTime.test.js CommentDate Migration to Pack tag (#19025) 2023-02-03 13:40:17 -06:00
moderation.test.js [15 min fix] Fixed an issue with the moderation button not appearing on some posts (#14184) 2021-07-13 10:31:00 +02:00
pasteImage.test.js Add paste image (#10212) 2021-02-04 10:58:56 -05:00
search.test.js Add a MultiSelect Autocomplete component to the Display Ads Page (#18560) 2022-10-26 16:24:31 +02:00
sendHapticMessage.test.js Notifications Initializer Migration to Pack tag (#19124) 2023-04-14 17:50:07 -04:00
showUserAlertModal.test.js Notifications Initializer Migration to Pack tag (#19124) 2023-04-14 17:50:07 -04:00
textAreaUtils.test.js ✂️ Remove reach combobox ✂️ (#17728) 2022-07-11 12:50:52 +01:00
timeAgo.test.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00