docbrown/spec
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
..
controllers/concerns Fix connect account bug from settings (#18824) 2022-12-09 09:58:04 -06:00
decorators Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
factories Add has_many associations to User model (#19625) 2023-06-23 14:58:55 -04:00
fixtures Frontend for multiple reactions (v1) (#18808) 2023-01-23 16:00:50 +01:00
forms Refactor CreatorSettingsForm & spec (#19011) 2023-01-27 08:39:07 -05:00
generator Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
helpers Round Robin notifications design refresh (#19420) 2023-05-04 18:13:14 +01:00
initializers Add forgot_password_throttle (#19175) 2023-02-27 09:25:29 -05:00
lib Update onboarding suggested tag logic (#19477) 2023-05-23 17:22:27 +02:00
liquid_tags Remove API dependency on fetching tweets and shift to frontend (#19641) 2023-06-28 12:13:32 -04:00
mailers Update Subject Line for Tag Mod Email (#19349) 2023-04-18 16:21:06 -05:00
models Admin comments page with flag and quality reaction details. (#19647) 2023-07-05 22:05:35 +05:30
policies allows super_admin user to remove super_admin role (#19590) 2023-06-21 11:22:25 -04:00
queries Refactor the home feed + add user tag filtering on in-feed billboards (#19600) 2023-07-06 16:47:08 +02:00
refinements Update data exporter to handle admin send (#10274) 2020-10-26 18:00:56 -04:00
requests Follow-ups for suggested organizations follows during onboarding (#19619) 2023-06-29 11:49:01 +02:00
routing Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Remove deprecated Organization's columns (#19396) 2023-06-26 10:36:33 -04:00
services Allows super-admin the ability to remove the role from themselves (#19621) 2023-06-26 09:11:33 -04:00
support Admin comments page with flag and quality reaction details. (#19647) 2023-07-05 22:05:35 +05:30
system Organisation members page to show all users (#19611) 2023-06-28 12:35:15 +05:30
tasks Change rake spec setup (#19012) 2023-01-30 10:51:38 -05:00
uploaders Remove Remaining logo_svg Code (#16291) 2022-02-22 12:05:16 -07:00
validators Unique cross-model-slug check is likely misconfigured (#19263) 2023-04-07 17:04:45 +02:00
view_objects Routine rubocop fix on /spec (#19217) 2023-03-21 09:55:26 -04:00
views Allow DisplayAd to target users via audience segmentation (#19284) 2023-04-25 08:41:10 -04:00
workers notify mod on new user articles (#19478) 2023-05-23 10:51:46 -04:00
i18n_spec.rb Show missing translation keys when test fails (#16637) 2022-02-17 16:21:29 -06:00
rails_helper.rb Revert "Enable rspec-retry on system and request specs (#19103)" (#19133) 2023-02-16 17:41:51 -05:00
spec_helper.rb Add Codecov (#18580) 2022-10-18 10:08:23 -04:00
swagger_helper.rb Add ability to assign arbitrary segment ID to /display_ads API (#19529) 2023-05-31 18:11:35 +02:00