docbrown/app/views
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
..
admin Dynamically update the brand colors (#15432) 2021-11-23 09:46:17 +02:00
api/v0 Remove hardcoded user profile fields (#14079) 2021-08-18 11:44:53 +07:00
articles Mod tools trigger (#15400) 2021-11-22 08:22:26 +01:00
badges views/badges etc i18n (#15021) 2021-10-20 09:36:30 -06:00
collections Page headers unified (#15158) 2021-10-25 21:41:29 +02:00
comments Hiding comments: an option to hide or keep children (#15178) 2021-11-18 11:57:40 +03:00
credits Let users purchase credits (#15346) 2021-11-10 15:18:52 -06:00
dashboards Remove unused assets (#15367) 2021-11-16 19:57:37 +01:00
deep_links various small article elements i18n (#15023) 2021-10-15 11:06:44 +07:00
devise Dynamically update the brand colors (#15432) 2021-11-23 09:46:17 +02:00
doorkeeper Remove some HTML errors (#13288) 2021-04-07 11:46:12 +01:00
email_subscriptions Removal of morrrre hardcoded dev.to links (#7390) 2020-04-21 11:50:18 +02:00
feedback_messages views/feedback_messages i18n (#15038) 2021-10-27 12:34:56 +01:00
fields views/tags etc i18n (#15039) 2021-10-20 08:13:51 -06:00
followings Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
github_repos Refactoring GitHub Repos functionality - step 1 (#7764) 2020-05-12 13:48:19 +02:00
homepage Stories views reorganization (#1317) 2018-12-13 14:54:02 -05:00
kaminari/internal Upgrade erb_lint to support latest Rubocop and fix violations (#9663) 2020-08-07 15:36:48 +02:00
layouts ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
liquid_embeds Refactor deployed_at and latest_commit_id code (#12224) 2021-01-13 16:53:59 +02:00
liquids Remove unused assets (#15367) 2021-11-16 19:57:37 +01:00
listings Dynamically update the brand colors (#15432) 2021-11-23 09:46:17 +02:00
mailers ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
moderations Remove unused assets (#15367) 2021-11-16 19:57:37 +01:00
notifications fix (#15360) 2021-11-12 12:35:36 +01:00
onboardings views/onboardings i18n (#15018) 2021-10-13 12:26:07 +02:00
open_search Removing Settings::General.email_addresses (#13958) 2021-06-11 12:34:34 +03:00
organizations Remove unused assets (#15367) 2021-11-16 19:57:37 +01:00
pages Removed extra space in code of conduct (#15218) 2021-10-29 10:39:35 +07:00
podcast_episodes Added collapsed hidden comments to author's article/podcast episode view (#14018) 2021-11-03 11:08:04 +07:00
podcasts views/podcasts, views/podcast_episodes i18n (#15020) 2021-10-25 14:32:51 +01:00
profile_field_groups Add ProfileFieldGroupsController to API (#10124) 2020-09-03 10:12:53 +07:00
profile_preview_cards Make header fields in profile preview card dynamic (#14454) 2021-08-11 09:34:30 +07:00
reading_list_items views/reading_list_items i18n (#15041) 2021-10-18 11:32:57 -07:00
response_templates Refactor jbuilder (#7411) 2020-04-24 12:49:12 +02:00
service_worker Revert "Revert "Removed service worker (#12974)" (#13014)" (#13015) 2021-03-17 10:57:56 -04:00
shared Dynamically update the brand colors (#15432) 2021-11-23 09:46:17 +02:00
sidebars views/stories, views/layouts and other homepage i18n (#15083) 2021-11-10 07:38:43 -06:00
sitemaps Fix legacy sitemap logic (#14926) 2021-10-07 08:59:16 -04:00
social_previews I18nize articles & social_previews (#15097) 2021-10-27 16:21:47 -04:00
stories reflect search query in page title (#15434) 2021-11-22 13:32:28 +00:00
tags Update tag's style (#15266) 2021-11-11 14:03:31 -05:00
users Dynamically update the brand colors (#15432) 2021-11-23 09:46:17 +02:00
videos Fix path for new video when logged out (#15227) 2021-10-29 15:22:45 +02:00