PromucFlow_constructor/app/client/cypress/locators
Valera Melnikov 8be4936ca0
chore: add color validation + native color picker (#25355)
## Description
1. Reduced the number of default colors. Because the amount of suggested
options was too much: very little difference between shades and
sometimes with hues too. By removing half of them, we allow builders
make better choices faster. The transparent color has also been removed.
2. Added validation of color values because HTML colors are remarkably
easy to get wrong, because they allow so many different values and now
we support and validate all these guys
    - `hex` - `#bada55`
    - `name` - `LightGoldenrodYellow`
    - `special name` - `currentColor`
    - `rgb` - `rgb(0 0 0)`
    - `rgba` - `rgba(0, 0, 0, .45)`
    - `hsl` - `hsl(4.71239rad, 60%, 70%)`
    - `hsla` - `hsla(180deg 100% 50% / .8)`
    - `hwb` - `hwb(180deg 0% 0% / 100%)`
    - `lab` - `lab(2000.1337% -8.6911 -159.131231 / .987189732)`
    - `lch` - `lch(54.292% 106.839 40.853)`
<img width="283" alt="Снимок экрана 2023-08-02 в 17 58 07"
src="https://github.com/appsmithorg/appsmith/assets/11555074/a8fef365-506d-432e-85ad-cdb550de1f60">
    
3. Added support for a Full color picker. Now we can easily switch
between modes and builders can easily choose any colors.
<img width="259" alt="Снимок экрана 2023-08-02 в 17 43 34"
src="https://github.com/appsmithorg/appsmith/assets/11555074/be09cd92-7c69-43eb-812a-0b1fe3ac9ef6">


#### PR fixes following issue(s)
Fixes  #22996

#### Media

https://www.loom.com/share/098e0116e49744e7b10689d4a18ab664?sid=15405577-160e-4b48-bfef-bc8dcfa97efe

#### Type of change
- New feature (non-breaking change which adds functionality)

## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [x] Manual
- [x] Jest
- [x] Cypress

## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed

---------

Co-authored-by: Valera Melnikov <melnikov.vv@greendatasoft.ru>
2023-08-07 11:55:10 +03:00
..
AdminsSettings.js fix: Resetting the search keyword when the user un-mounts from the home page (#26060) 2023-08-07 10:28:21 +05:30
ApiEditor.js test: Cypress - Flaky Fix (#25979) 2023-08-03 23:54:36 +05:30
apiWidgetslocator.json fix: casing changes (#23515) 2023-06-09 14:22:27 +05:30
Applications.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
AppNavigation.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
CMSApplocators.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
commonlocators.json test: Cypress - Split Long Cypress Specs (#24682) 2023-06-21 12:50:11 +05:30
DatasourcesEditor.json feat: remove collapse sections (#24017) 2023-07-04 17:41:56 +05:30
DynamicInput.json
EnterpriseAdminSettingsLocators.json fix: Cypress tests for admin settings's watermark setting (#15760) 2022-08-11 17:35:08 +02:00
explorerlocators.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
FirstTimeUserOnboarding.json chore: Make use of widget methods to get binding properties in sniping mode (#25429) 2023-07-26 11:08:11 +05:30
FormControl.json feat: added trigger for collection property editor, making it dd for mongo (#24213) 2023-06-14 12:16:09 +05:30
FormWidgets.json feat: select and multiselect label value (#24964) 2023-07-25 10:26:33 +05:30
GeneratePage.json chore: Create tooltip Component (#23382) 2023-05-22 12:05:21 +03:00
GithubForm.json chore: Add redirect and homepage URL on Github config page (#24395) 2023-06-13 19:23:33 +05:30
gitSyncLocators.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
GlobalSearch.json chore: Sunset Omnibar Documentation and Snippets (#24787) 2023-06-30 15:51:08 +05:30
GoogleForm.json fix: Adding a fix for copy clipboard URL not working on HTTP domain (#21313) 2023-03-14 11:41:52 +05:30
GuidedTour.json chore: Create tooltip Component (#23382) 2023-05-22 12:05:21 +03:00
HelpLocators.json
HomePage.js feat: Adds support for showing navbar in embedded view. (#23725) 2023-06-05 19:37:39 +05:30
jsActionLocators.json
JSEditor.json feat: js object v1 run and settings redesign (#11456) 2022-04-28 17:51:02 +01:00
jsonFormWidget.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
Layout.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
LoginPage.json fix: fork app button not opening the fork modal for non-signed in users (#12479) 2022-04-11 10:44:50 +05:30
ModalWidget.json fix: Update title casing for action selector fields (#22270) 2023-05-23 11:17:47 +05:30
Omnibar.json test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
Onboarding.json
OneClickBindingLocator.ts chore: [one click binding] convert select component to menu component on property control (#24517) 2023-06-22 16:11:56 +05:30
Pages.json chore: Create tooltip Component (#23382) 2023-05-22 12:05:21 +03:00
PgAdminlocators.json test: Cypress - Convert MongoDBShoppingCart_spec to Ts (#24667) 2023-06-20 18:17:47 +05:30
publishWidgetspage.json feat/Replace fusion charts with Echarts (#24249) 2023-07-28 18:59:16 +05:30
QueryEditor.json test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
ReconnectLocators.js chore: Create tooltip Component (#23382) 2023-05-22 12:05:21 +03:00
SignupPage.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
TemplatesLocators.json feat: templates ui ux updates (#25472) 2023-07-24 16:30:41 +05:30
ThemeLocators.json chore: add color validation + native color picker (#25355) 2023-08-07 11:55:10 +03:00
ViewWidgets.json feat/Replace fusion charts with Echarts (#24249) 2023-07-28 18:59:16 +05:30
welcomePage.json fix: split button into 2 button components to fix issue in firefox. (#23900) 2023-05-31 14:43:25 +05:30
WidgetLocators.ts feat: debugger error navigation (#25505) 2023-08-01 09:32:41 +05:30
Widgets.json chore: add color validation + native color picker (#25355) 2023-08-07 11:55:10 +03:00