docbrown/app/javascript
Ridhwana e250b46ed2
Using a Form Object that will persist for the Creator Settings Form (#15684)
* WIP: add a creatore settings form

* WIP: updat the controller to use the Creator Settings FOREM

* feat: use the creator settings form for the new action

* feat: add some default values for the new action

* a note about form data

* update the initiaize function to set some default values

* feat: update the form to use the model data

* feat: permit adn use the attributes within creator_settings_form

* update the flash error

* refactor: require and permit parameters

* chore: use booleans, set defaults and validate the form

* spec: update all the creator_settings tests

* chore: remove comment

* refactor: use self

* feat: aggregate failures'

* chore: remove the logo uploader in the controller

* refactor: update error handling

* feat: update the wasy the controller handles success and error

* chore: remove the resource errors

* feat: show flash message on new line

* fix: use a redirect so that we can get back to /new

* refactor: pass these values through as they seem to be caching whne setting them as default

* chore: change default values

* spec: update tests

* Fix CreatorSettingsForm specs

* fix: use a boolean for public

* spec: add another test for the success var

* fix: radio button labels to correspond + cyress specs

* spec: update based on new changes

* spec: update the params and the expected output

* spec: update the comments and status

* feat: no need for the initialize as we use Active Record Attributes

* feat: update the tac and coc to be persisted when ticked

* fix: amend spec

* blank space

* Message

Co-authored-by: Michael Kohl <me@citizen428.net>
2021-12-10 17:07:40 +02:00
..
.storybook Crayons: Buttons vs CTAs (#15311) 2021-11-30 20:40:32 +01:00
actionsPanel Crayons: Buttons vs CTAs (#15311) 2021-11-30 20:40:32 +01:00
admin Extracted the logo uploader into its own partial (#15705) 2021-12-09 09:52:24 -05:00
analytics Accessibility enhancements to navigation tabs (#13559) 2021-05-07 15:24:34 +01:00
article-form Spelling (#15702) 2021-12-07 06:59:10 -07:00
articles Fixed lint:frontend npm script (#15631) 2021-12-02 07:42:30 +00:00
CommentSubscription Preventing author profile from going transparent (#15478) 2021-11-24 09:38:13 -05: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 Updating header with new Crayons buttons (#15653) 2021-12-09 16:41:18 +01:00
githubRepos Bump eslint-config-preact from 1.1.3 to 1.1.4 (#13516) 2021-04-27 18:54:43 +02:00
icons Storybook: Add DocsPage and test out static content (#11397) 2020-12-02 09:56:38 -08:00
leftSidebar fix some prop type errors on the home page (#15314) 2021-11-10 13:47:55 +00:00
listings Fixed lint:frontend npm script (#15631) 2021-12-02 07:42:30 +00:00
mobile Update Android PN integration fixes (#15541) 2021-12-02 13:56:28 -06:00
modCenter Add separate section for article link to improve accessibility in the mod center (#14312) 2021-08-11 14:30:12 +07:00
onboarding Using a Form Object that will persist for the Creator Settings Form (#15684) 2021-12-10 17:07:40 +02:00
organization fix some prop type errors on the home page (#15314) 2021-11-10 13:47:55 +00:00
packs Updating header with new Crayons buttons (#15653) 2021-12-09 16:41:18 +01:00
podcasts Fixed lint:frontend npm script (#15631) 2021-12-02 07:42:30 +00:00
previewCards Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
profileDropdown ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
profilePreviewCards padding fix (#14766) 2021-09-20 17:45:18 +02:00
readingList Spelling fixes to live code (#15670) 2021-12-06 12:11:25 +02:00
responseTemplates Edit buttons styles for Templates responses (Mod) (#14468) 2021-08-12 15:57:36 +01:00
runtimeBanner Removes target=_blank and small banner redirect tweak (#14548) 2021-09-01 08:27:24 -06:00
Search Updating header with new Crayons buttons (#15653) 2021-12-09 16:41:18 +01:00
searchableItemList Reading list: fix broken pagination (#14031) 2021-06-22 08:24:23 +02:00
shared/components Fixed test that breaks once upgraded to Node 16. (#15621) 2021-12-01 09:24:03 -06:00
sidebar-widget Refactoring SidebarWidget and sidebarUser (#10887) 2021-02-03 17:47:54 +00:00
Snackbar Refactor Admin Member Detail view - Tools section (#14283) 2021-08-17 18:55:53 +02:00
topNavigation Updating header with new Crayons buttons (#15653) 2021-12-09 16:41:18 +01:00
utilities Spelling (#15702) 2021-12-07 06:59:10 -07:00
.eslintrc.js Fixed lint:frontend npm script (#15631) 2021-12-02 07:42:30 +00:00
netlify.toml Use proper Node version for Storybook (#15182) 2021-10-25 15:29:03 -04:00
routes.js.erb [15-minute fix] Add js-routes gem (#15133) 2021-11-01 10:08:15 +07:00