PromucFlow_constructor/app/client/src/ce
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
..
actions chore: code splitting for multiple env feature (#25479) 2023-07-21 12:53:17 +07:00
api chore: Update api current env function (#25683) 2023-07-25 21:41:38 +05:30
components feat: ramps for multiple environments (#25764) 2023-08-05 14:59:47 +07:00
configs fix: Version update user analytics (#25396) 2023-07-18 08:50:27 +05:30
constants chore: add color validation + native color picker (#25355) 2023-08-07 11:55:10 +03:00
entities feat: gsheets schema UI (#25768) 2023-08-06 17:22:27 +05:30
mocks refactor: Invite modal component to support single & multi-select dropdown options (#17073) 2022-09-29 09:53:25 +00:00
pages fix: Resetting the search keyword when the user un-mounts from the home page (#26060) 2023-08-07 10:28:21 +05:30
reducers chore: Optimizing the solution for supporting tenant config on admin settings (#24454) 2023-06-14 19:39:38 +05:30
sagas feat: debugger error navigation (#25505) 2023-08-01 09:32:41 +05:30
selectors chore: Add button v2 under feature flag (#25106) 2023-07-26 18:10:44 +05:30
utils chore: Removing feature flag for SCIM (#25742) 2023-07-28 13:35:55 +05:30
workers feat: Remove async/sync differentiation from Appsmith (#25399) 2023-08-05 06:38:53 +01:00
AppRouter.tsx feat: added api to return 1 product message (#24704) 2023-07-18 13:03:18 +05:30