docbrown/app/javascript/admin/controllers
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
..
users/tools Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
ahoy_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
alert_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
article_controller.js Fix: cannot unpin articles using checkbox (#15090) 2021-11-02 13:50:56 -04:00
article_pinned_modal_controller.js Fix: cannot unpin articles using checkbox (#15090) 2021-11-02 13:50:56 -04:00
config_controller.js Fixed issue where element didn't exist in the config Stimulus controller. (#15408) 2021-11-17 15:25:17 -05:00
confirmation_modal_controller.js Heavy Confirmation Flow for DisplayAd-Destroy (#14862) 2021-10-04 08:36:43 -04:00
consumer_app_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
creator_settings_controller.js Dynamically update the brand colors (#15432) 2021-11-23 09:46:17 +02:00
data_update_script_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
image_upload_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
landing_page_modal_controller.js [15 min fix] Refactor private landing pages model code (#13982) 2021-06-15 18:17:15 +02:00
modal_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
reaction_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
sidebar_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
snackbar_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
svg_icon_upload_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
user_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00