docbrown/app/controllers
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
..
admin Add ability to mark billboard (display_ad) as "priority" (boolean) (#19599) 2023-06-12 16:28:15 -04:00
api Add ability to mark billboard (display_ad) as "priority" (boolean) (#19599) 2023-06-12 16:28:15 -04:00
concerns Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
field_test Introducing a quick and dirty fix for abtests/admin (#17982) 2022-06-24 09:26:46 -04:00
incoming_webhooks Remove sustaining member newsletter, and its settings (#17514) 2022-04-29 11:47:12 -05:00
notifications
stories Sort organization members and tag moderators by badge count (#19582) 2023-06-09 15:30:46 +01:00
users Refactoring onboarding (#19525) 2023-05-25 10:03:12 +02:00
api_secrets_controller.rb Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
application_controller.rb Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
application_metal_controller.rb
article_approvals_controller.rb Refactor :moderation_routes? method to use correct policies (#18183) 2022-07-25 07:58:41 -04:00
articles_controller.rb Consistent rendering on preview: comments and articles (#19361) 2023-04-27 14:08:15 +03:00
async_info_controller.rb Update user_data cache key (#19101) 2023-02-15 14:11:39 -05:00
badges_controller.rb
collections_controller.rb Series count to only include non empty series (#16130) 2022-01-18 10:22:34 +07:00
comments_controller.rb Consistent rendering on preview: comments and articles (#19361) 2023-04-27 14:08:15 +03:00
confirmations_controller.rb Fix email confirmation logic when registering via Omniauth (#17878) 2022-06-23 16:26:26 -04:00
credits_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
dashboards_controller.rb Show Series counts on all Dashboard Tabs (#17513) 2022-04-29 11:58:06 -04:00
deep_links_controller.rb Add exclusion to AASA supported paths (#14593) 2021-08-26 10:17:39 -06:00
devices_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
discussion_locks_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
display_ad_events_controller.rb Throttle display ad event per unit rather than globally (#18697) 2022-11-14 16:30:52 -05:00
display_ads_controller.rb Restructure the way we render the feed + add billboard locations on signed in feed (#19533) 2023-06-14 12:29:56 -05:00
email_authorizations_controller.rb
email_subscriptions_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
feedback_messages_controller.rb Update FeedbackMessagesController#create feedback-response-sent-at cache key (#19287) 2023-04-05 13:05:12 -04:00
followings_controller.rb
follows_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
ga_events_controller.rb Prefer remote_ip in GaEventsController (#19074) 2023-02-06 18:38:00 -05:00
github_repos_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
image_uploads_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
invitations_controller.rb Remove name from invitation flow (#17438) 2022-05-03 09:33:12 +01:00
liquid_embeds_controller.rb Move work from template to controller (#16092) 2022-01-18 11:21:25 -05:00
liquid_tags_controller.rb Remove redundant freeze calls (#14596) 2021-08-26 10:01:08 -04:00
listings_controller.rb More listings refactoring (#16343) 2022-02-23 13:44:30 +07:00
moderations_controller.rb Redeploying the Flag/Unflag User functionality (#18235) 2022-07-28 09:03:37 -04:00
notification_subscriptions_controller.rb Rename unidiomatic methods (#13328) 2021-04-09 10:59:56 -05:00
notifications_controller.rb Removing unused instance variable (#16826) 2022-03-08 13:59:08 -05:00
omniauth_callbacks_controller.rb Fix email confirmation logic when registering via Omniauth (#17878) 2022-06-23 16:26:26 -04:00
onboardings_controller.rb Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
open_search_controller.rb
organizations_controller.rb Remove Dark and Light Nav Logo Image from Organization (#19309) 2023-05-08 17:01:03 -04:00
page_views_controller.rb Ensuring we don't track views of author or unpublished (#16143) 2022-01-18 11:23:18 -05:00
pages_controller.rb report abuse dropdown link (#19247) 2023-03-28 14:02:31 -05:00
passwords_controller.rb Rubocop fixes (#18461) 2022-09-16 15:25:48 +03:00
podcast_episodes_controller.rb Fix and clean up podcast pages (#15004) 2021-10-15 17:38:57 -04:00
podcasts_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
poll_skips_controller.rb Use constants for Permitted params in controller (#14895) 2021-10-05 09:00:14 -04:00
poll_votes_controller.rb Use constants for Permitted params in controller (#14895) 2021-10-05 09:00:14 -04:00
pro_accounts_controller.rb
profile_field_groups_controller.rb
profile_pins_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
profile_preview_cards_controller.rb Add JSON representation of Profile Preview Card info (#14296) 2021-07-21 16:23:54 +01:00
profiles_controller.rb Remove brand_color2 from users_settings (#18473) 2022-09-21 11:21:29 -06:00
rating_votes_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
reactions_controller.rb Rename cache-key in ReactionsController (#19368) 2023-04-27 15:26:57 +01:00
reading_list_items_controller.rb
registrations_controller.rb Update Users::ProfileImageGenerator (#19040) 2023-02-01 06:12:26 -05:00
response_templates_controller.rb Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00
search_controller.rb Organization Search Filtering (#19430) 2023-05-08 14:58:25 -05:00
service_worker_controller.rb Revert "Revert "Removed service worker (#12974)" (#13014)" (#13015) 2021-03-17 10:57:56 -04:00
sidebars_controller.rb Refactoring to consolidate logic (#15851) 2021-12-29 11:08:04 -05:00
sitemaps_controller.rb Spelling (#15702) 2021-12-07 06:59:10 -07:00
social_previews_controller.rb Remove social_preview views (except articles) (#18523) 2022-10-11 12:28:55 +02:00
stories_controller.rb Sort organization members and tag moderators by badge count (#19582) 2023-06-09 15:30:46 +01:00
stripe_active_cards_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
tag_adjustments_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
tags_controller.rb Refactoring onboarding (#19525) 2023-05-25 10:03:12 +02:00
user_blocks_controller.rb ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
user_subscriptions_controller.rb
users_controller.rb Add organizations to onboarding follow suggestions (#19564) 2023-06-09 10:32:03 +02:00
video_states_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
videos_controller.rb Routine rubocop fixes (#19254) 2023-03-24 14:37:44 +03:00