docbrown/app/javascript/packs
Ridhwana 45e0ea046d
Only show the "Targeted Tags Field" when the selected placement area is "Below the comment section" (#18644)
* feat: Add a pack file that pulls in the MultiSelect Component

* feat: move the tags to its own component

* save tags

* refactor: create a getCSRFToken function in the packs files so that it can be used in the admin

* feat: import the new module in request.js

* feat: remove unnecessary id

* feat: first pass of csrf token test

* chore: update the test

* fix: csrf token

* feat: hide the enw functionality behinda  feature flag

* fix: loading form twice

* refactor: import for csrftoken

* chore: update the description of the function

* feat: use acts_on_taggable to craete a relationship between display_ad and tag

* feat: add a tag field to the display_ad form

* feat: add the selected tags from the multiselect autocomplete component to the input text field that references the tag_list

* feat: add the tag_list to the controller so that we can save it to the db with the display ad parameters

* feat: pull out the tag validation from the article and the display_ads into a concern

* feat: write soem tests for validating the tag on the display_ads model

* feat: add the tag_list as a hidden field

* feat: set the selected tags on edit

* feat: add a js class for the placement area

* feat: use the change in the dropdown to determine whether we show the tags field dropdown

* refactor: rename and brak up fucntions

* feat: show the tags field if the value of the placement area is already set

* fix: move if statement out of the change event

* feat: hide tags field and clear the tag list

* refactor: delete the display ads

* tests: ensure that we test the toggle

* fix:ensure that the tags on the hidden field show up as a string in the input field

* feat: update the jsdoc

* fix: no need to replace space with comma since we showing as string in form

* feat: update the name of the label

* fix: add hidden back
2022-10-31 17:25:57 +02:00
..
admin Only show the "Targeted Tags Field" when the selected placement area is "Below the comment section" (#18644) 2022-10-31 17:25:57 +02:00
CommentTextArea Image uploading progress in comments editor + post editor (#18369) 2022-08-29 16:01:40 +05:30
modals Save list of previously-published articles when user is subject to an "un-publish all" action (#18535) 2022-10-06 14:17:20 +03:00
actionsPanel.js [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
admin.js Revise skip link behaviour (#15401) 2021-11-18 13:45:08 +00:00
analyticsArticle.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
analyticsDashboard.js add org analytics menu if user has organizations (#13995) 2021-06-23 14:35:23 +02:00
applyApplicationPolicyToggles.js Conditional rendering of "Create Post" link (#17076) 2022-04-05 12:47:12 -04:00
articleForm.jsx Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
articleModerationTools.js Redeploying the Flag/Unflag User functionality (#18235) 2022-07-28 09:03:37 -04:00
articlePage.jsx Refactor: no need to pass through the ahoy event name dynamically. (#18498) 2022-09-28 19:21:38 +02:00
base.jsx Refactor: no need to pass through the ahoy event name dynamically. (#18498) 2022-09-28 19:21:38 +02:00
commentDropdowns.js Sort comments reopen (#18349) 2022-09-13 11:37:48 -06:00
commentModPage.js Fix broken experience level button in moderation panel (#11797) 2020-12-08 10:20:35 +01:00
commentsDisplay.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
confirmationEmail.js Creator Onboarding Confirmation Page (#14259) 2021-08-03 14:21:56 +02:00
contentDisplayPolicy.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
dashboardDropdowns.js Optimise dropdowns for accessibility: Dashboard and Manage pages (#13909) 2021-06-04 10:19:56 +01:00
dashboardTagsDisableUnchangedButtons.js [15 Minute Fix] Added the prefer-const eslint rule (#13098) 2021-03-23 16:29:56 -04:00
enhanceColorPickers.jsx Use the Preact ColorPicker in creator onboarding (#16731) 2022-03-03 08:22:10 +00:00
feedPreviewCards.jsx Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
followButtons.js Add tracking for the registration flow - "Clicked on Create Account" (#18459) 2022-09-22 16:03:49 +02:00
foremCreatorSignup.js Add toggle button to 'New Forem Secret' form (#17016) 2022-03-29 08:29:29 -06:00
fullScreenModeControl.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
githubRepos.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
hideBookmarkButtons.js Hide 'Save' button on posts that belong to the current user (#17293) 2022-04-28 12:33:01 -04:00
homePage.jsx Refactor: no need to pass through the ahoy event name dynamically. (#18498) 2022-09-28 19:21:38 +02:00
homePageFeed.jsx Add Google Analytics 4 Support (#18124) 2022-07-21 09:26:13 -05:00
homePageFeedShortcuts.jsx Provide skip links: Tweak skip link style, refactor main area ID (#12694) 2021-02-17 10:15:31 +00:00
listingDashboard.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
listingForm.jsx Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
listings.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
modCenter.jsx Mod Center MVP 🎉 (#8744) 2020-06-23 14:58:16 -04:00
notificationPage.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
Onboarding.jsx ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
onboardingRedirectCheck.jsx Remove Creator Onboarding Feature Flags from Codebase (#15982) 2022-01-31 11:30:43 -07:00
orgCreditsSelector.js Crayonsification of Listings form (#10429) 2020-09-30 09:14:48 +02:00
postCommentsPage.js Remove defer attributes from inline scripts - gist embeds (#13407) 2021-06-11 08:22:50 +01:00
profileDropdown.js Optimise dropdowns for accessibility - Profile page (#13916) 2021-06-14 12:31:23 +01:00
readingList.jsx Add Snackbar component on reading list (#15235) 2021-11-15 13:06:21 +02:00
runtimeBanner.jsx ForemMobile namespaced functions (#15212) 2021-11-23 15:25:29 -06:00
Search.jsx Crayons: Buttons vs CTAs (#15311) 2021-11-30 20:40:32 +01:00
searchParams.js Add tracking for the registration flow - "Clicked on Create Account" (#18459) 2022-09-22 16:03:49 +02:00
sidebarWidget.jsx Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
signupModalShortcuts.jsx Use faster JS selection methods (#11409) 2020-11-16 17:35:50 +01:00
stickySaveFooter.js fix: 🐛 Fix Color displaying over button in settings (#17172) 2022-04-11 10:59:57 +02:00
storiesList.js stories list script as separate js file - defer attribute (#13993) 2021-06-21 10:59:30 +07:00
toggleUserFlagModal.js Redeploying the Flag/Unflag User functionality (#18235) 2022-07-28 09:03:37 -04:00
toggleUserSuspensionModal.js Ensure super moderator actions Note & AuditLog (#18569) 2022-10-12 09:36:41 -06:00
unpublishPostModal.jsx Used PreactModal for unpublish-post feature (#18019) 2022-07-06 16:29:08 +05:30
userProfileSettings.js fix character limits i18n (#15830) 2021-12-21 07:15:21 -05:00
validateFileInputs.js Snackbar error message in comments image upload (#18504) 2022-09-29 14:07:11 -06:00
webShare.js Use navigator.share on mobile devices (#13809) 2021-06-15 06:39:33 -06:00