docbrown/app/javascript
Ridhwana 8060f78893
Dynamically update the brand colors (#15432)
* Added alias for app/javascript/controllers

* Added hooks for Stimulus controller.

* Fixed eslint issue with @controllers alias.

* Initial working logo preview.

* Added explicit accept values for png and svg files only for a logo.

* Fixed content layout shift issue and resize to max height 80px.

* Cleaned up logo preview resizing.

* Added focus style to Upload logo label.

* Now the logo preview image has empty alt text as it's visual only.

* Fixed position of upload logo button.

* Removed tooltip for logo.

* Fixed check to load client-side controller.

* Put back tooltip, minus the aria-describedby

* Fixed E2E tests I broke.

* Made the logo preview visible to the accessibility tree.

* feat: update the brand colors on the page when we select a new one

* feat: update the radio button_tags to use crayons-radio

* feat: remove the fill attributes in the svg

* Added support for JPG image upload.

* Fixed height adjustment when width exceeds max preview width.

* feat: add form-background class with an accent

* feat: update the briightness accent on the page

* Fixed JS error if user cancelled file selection for a logo.

* Added the @routes webpack alias for routes.js.erb.

* Fixed data tooltip for assistive technologies.

* Fixed preview logo alignment with upload logo button.

* remove required as it's not doing anything

* feat: update the code brigtness code

* Opting to not show friendly error message if route fails to load.

* Fixed validation message not appearing for logo.

* Revert "Added the @routes webpack alias for routes.js.erb."

This reverts commit 3b6621dcde541f2fa05df6ff75af38955842b88e.

* Reverted to default styling of input[type="file"].

* Moved creator_settings_controller to admin/controllers.

* Updated E2E test for logo preview on the creator settings page.

* create tests for the brand color updates

* feat: update the description

* Update cypress/integration/creatorOnboardingFlows/creatorSettings.spec.js

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>

* Update app/javascript/admin/controllers/creator_settings_controller.js

Co-authored-by: Suzanne Aitchison <suzanne@forem.com>

* feat: do not update branding if an invalid color is provided

* feat: move the brightness code to its own accent calculator file in js utilities

* test: brightness ratios

* chore: remove whitespace

Co-authored-by: Nick Taylor <nick@dev.to>
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2021-11-23 09:46:17 +02:00
..
.storybook Theming cleanup (#15237) 2021-11-09 10:11:55 -05:00
actionsPanel Mod tools trigger (#15400) 2021-11-22 08:22:26 +01:00
admin Dynamically update the brand colors (#15432) 2021-11-23 09:46:17 +02:00
analytics Accessibility enhancements to navigation tabs (#13559) 2021-05-07 15:24:34 +01:00
article-form Update tag's style (#15266) 2021-11-11 14:03:31 -05:00
articles Fix timestamp typo (#15369) 2021-11-15 17:04:04 +00:00
CommentSubscription Fix Prop Types Error #14837 (#14889) 2021-10-05 10:58:48 +02:00
common-prop-types ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
contentDisplayPolicy Hiding comments: an option to hide or keep children (#15178) 2021-11-18 11:57:40 +03:00
crayons Markdown toolbar - update new line logic for block syntaxes (#15343) 2021-11-19 06:59:21 +00: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 ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -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 Add bio to onboarding (#14544) 2021-08-20 09:39:01 +07:00
organization fix some prop type errors on the home page (#15314) 2021-11-10 13:47:55 +00:00
packs Add logo preview to creator settings form (#15363) 2021-11-18 12:23:24 -05:00
podcasts Bump eslint-config-preact from 1.1.3 to 1.1.4 (#13516) 2021-04-27 18:54:43 +02: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 Add Snackbar component on reading list (#15235) 2021-11-15 13:06:21 +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 Admin-configurable display locale (#14620) 2021-09-28 11:04:35 -04:00
searchableItemList Reading list: fix broken pagination (#14031) 2021-06-22 08:24:23 +02:00
shared/components treat cmd and ctrl key shortcuts separately on macOS (#15265) 2021-11-03 11:54:15 +00: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 fix member dropdown does not remain open on mouseout when click (#14317) 2021-07-28 10:43:03 -04:00
utilities Dynamically update the brand colors (#15432) 2021-11-23 09:46:17 +02:00
.eslintrc.js Add logo preview to creator settings form (#15363) 2021-11-18 12:23:24 -05: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