docbrown/app/javascript
Ridhwana 940c67a904
Load post_sidebar billboard asynchronously (#19317)
* feat: add a route to the async_info for display ads

* feat: load the billboard asyncronously

* feat: move the methods to the display_ads controller

* feat: handle params better

* feat: cache control headers

* feat: test fastly caching headers on display ads

* fix: surrogate key test

* feat: use safe navigation operator to handle cases where there is no article id

* fix: article id present then find the article

* feat: add a response test

* Fragment caching

* feat: update the article decorator

* feat: update cache keys for fragment

* feat: remove an empty line

* feat: add article id

* feat: bust cache

* feat: setup dropdown for billboard

* chore: add chunk to same line

* feat: add to safe params for caching

* Update app/controllers/display_ads_controller.rb

Co-authored-by: Joshua Wehner <joshua@forem.com>

* feat: remove the cache deletion

* feat: update the routes to follow a new scope

* feat: update the cache params

* feat: get and replace all ads on the article page

* feat: do not go into the if statement if there is no async url property so that the ad fails gracefully

* chore: remove duplicate pack

* Update app/views/articles/show.html.erb

Co-authored-by: Joshua Wehner <joshua@forem.com>

* Update app/views/articles/_sticky_nav.html.erb

Co-authored-by: Joshua Wehner <joshua@forem.com>

* chore: add other params

* feat: allows adding placeholder content in the ad if need be

---------

Co-authored-by: Joshua Wehner <joshua@forem.com>
2023-04-13 19:23:27 +02:00
..
.storybook Updated storybook (#18559) 2022-10-11 12:54:50 +05:30
__mocks__ Bump focus-trap from 6.7.3 to 6.8.1 (#17425) 2022-04-27 08:09:21 -06:00
actionsPanel Redeploying the Flag/Unflag User functionality (#18235) 2022-07-28 09:03:37 -04:00
admin Removed nav related classes from feedback tabs (#18924) 2023-01-09 20:18:28 +05:30
analytics Show friendly error message on API fetch failure on stats (#17570) 2022-05-18 16:12:42 +02:00
article-form Actually get buildpulse to work with rspec and jest (#18859) 2022-12-19 14:31:29 -05:00
articles (Really) Enable multiple reactions on #index (#19202) 2023-03-22 10:20:00 -04:00
colorPickers Use the Preact ColorPicker in creator onboarding (#16731) 2022-03-03 08:22:10 +00:00
CommentSubscription Add a MultiSelect Autocomplete component to the Display Ads Page (#18560) 2022-10-26 16:24:31 +02:00
common-prop-types ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
contentDisplayPolicy Accessibility improvements for hide comments modal (#15462) 2021-11-24 09:50:27 +03:00
crayons Updated story book annotations (#18562) 2022-10-11 19:43:40 +05:30
display-ad Save selected tags to the display ad model (#18633) 2022-10-27 20:22:29 +02:00
githubRepos Add a MultiSelect Autocomplete component to the Display Ads Page (#18560) 2022-10-26 16:24:31 +02:00
hooks Replace listings tag component (#16855) 2022-03-30 16:51:40 +01:00
leftSidebar Refactoring cached_followed_tags (#16175) 2022-01-24 19:53:48 -05:00
liquidTags Used preact modal for userSubscriptionLiquidTag (#18623) 2022-10-25 02:01:52 +05:30
listings Recreate yarn.lock (#18776) 2022-11-30 07:45:49 -05:00
mobile Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
modCenter Redeploying the Flag/Unflag User functionality (#18235) 2022-07-28 09:03:37 -04:00
onboarding Onboarding dark mode fixees (#18996) 2023-01-25 10:53:59 +05:30
organization [js] Update all Yarn dependencies (2022-09-23) (#18421) 2022-09-23 15:25:03 -04:00
packs Load post_sidebar billboard asynchronously (#19317) 2023-04-13 19:23:27 +02:00
podcasts Updated story book annotations (#18562) 2022-10-11 19:43:40 +05:30
previewCards Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
profileDropdown Removing a JS message about connect (#16982) 2022-03-23 12:30:59 -04:00
profilePreviewCards Generator updates (#16339) 2022-01-28 12:20:30 +01:00
readingList Updated storybook (#18559) 2022-10-11 12:54:50 +05:30
responseTemplates Removed sloan word (#18634) 2022-10-28 01:26:41 +05:30
runtimeBanner Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
Search Fix search bar disappears on mobile (#18909) 2023-01-09 10:51:40 +02:00
searchableItemList Modified the misleading comment (history was removed) (#18455) 2022-09-19 11:37:24 +03:00
shared/components Fix jest datetime tests with regex (#18347) 2022-08-17 11:12:09 -04:00
sidebar-widget Refactoring SidebarWidget and sidebarUser (#10887) 2021-02-03 17:47:54 +00:00
Snackbar Updated story book annotations (#18562) 2022-10-11 19:43:40 +05:30
topNavigation Frontend for multiple reactions (v1) (#18808) 2023-01-23 16:00:50 +01:00
utilities Added dropdown to display ads / billboards (#19106) 2023-02-27 22:57:01 +05:30
.eslintrc.js Add Google Analytics 4 Support (#18124) 2022-07-21 09:26:13 -05:00
netlify.toml Update storybook node version (#16106) 2022-01-14 08:00:39 -05:00
routes.js.erb [15-minute fix] Add js-routes gem (#15133) 2021-11-01 10:08:15 +07:00