docbrown/app/helpers
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 Fix nested sidebar active item highlight (#18973) 2023-02-21 16:18:42 -05:00
admin_helper.rb Refactoring AdminMenu and Menu towards classes (#16847) 2022-03-21 13:31:20 -04:00
application_helper.rb Remove Community Emoji from Admin Config 🌱 (#16902) 2022-08-30 17:16:58 +02:00
articles_helper.rb Ensure spam doesn't hit logged-out /latest (#19110) 2023-02-17 09:29:59 +01:00
authentication_helper.rb Remove Creator Onboarding Feature Flags from Codebase (#15982) 2022-01-31 11:30:43 -07:00
broadcasts_helper.rb Add ahoy + welcome notification tracking (#8758) [deploy] 2020-06-18 13:40:14 -07:00
comments_helper.rb Try hiding low-quality comments (#18513) 2022-10-11 14:15:40 +02:00
crayons_helper.rb Frontend for multiple reactions (v1) (#18808) 2023-01-23 16:00:50 +01:00
date_helper.rb Add I18n date format example (#14973) 2021-10-08 15:08:56 -04:00
display_ad_helper.rb Refactor the home feed + add user tag filtering on in-feed billboards (#19600) 2023-07-06 16:47:08 +02:00
feedback_messages_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
listing_helper.rb Replace listings tag component (#16855) 2022-03-30 16:51:40 +01:00
notifications_helper.rb Manual Audience Segments API write endpoints (#19476) 2023-05-25 20:37:18 +01:00
organization_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
profile_helper.rb [Small Wins] Show character limits for profile inputs (#15255) 2021-11-05 09:11:42 -04:00
rate_limit_checker_helper.rb Removing Listing rate limiting when feature disabled (#17181) 2022-04-08 11:59:23 -04:00
settings_helper.rb "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
social_image_helper.rb Remove generated social images, except for articles#show (#18118) 2022-07-18 12:29:21 +02:00
social_link_helper.rb app/helpers i18n (#16003) 2022-01-13 11:46:32 -05:00
users_helper.rb Fix bullet issue with includes commentable (#19145) 2023-03-20 16:08:03 +01:00