-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] Color mapping UX refactoring #175144
Conversation
8ea1d4d
to
656c2ed
Compare
packages/kbn-coloring/src/shared_components/color_mapping/components/container/assigments.tsx
Outdated
Show resolved
Hide resolved
packages/kbn-coloring/src/shared_components/color_mapping/components/palette_selector/scale.tsx
Outdated
Show resolved
Hide resolved
packages/kbn-coloring/src/shared_components/color_mapping/config/types.ts
Show resolved
Hide resolved
ac3771b
to
1479cd5
Compare
@dej611 I see what you say now! Yes this is weird. Also why does it take the pink color? I am expecting here the next one (yellowish) |
@stratoula @dej611 @ninoslavmiskovic I've aligned the next color selection logic in both cases. Now we choose the next color in the palette after the last one configured in the assignments. I've also added the suggestion from Stratoula (and Nino in our call) to hide the |
packages/kbn-coloring/src/shared_components/color_mapping/color/color_handling.ts
Show resolved
Hide resolved
@markov00: Makes sense to me. Let's do it! |
This reverts commit 58c37f3.
/ci |
I tested it again and works great now!
What about this? Also on the inline editing, when the flyout has its maximum width, the left column has a big space with the right one. Can they be responsive ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works great! LGTM! Looking forward to making this the default and remove the switch! 🎉
/ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally in Safari 👍
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
## Summary This PR hides the single color picker when the color palette is selected in the button group as agreed with @MichaelMarcialis and @stratoula (initial conversation here #175144 followed by an offline one) From this: <img width="362" alt="Screenshot 2024-02-09 at 09 20 37" src="https://github.com/elastic/kibana/assets/1421091/5f68fc57-627b-45b7-90e8-1aa78ee4b5b2"> To this: <img width="376" alt="Screenshot 2024-02-09 at 09 19 51" src="https://github.com/elastic/kibana/assets/1421091/fbefee5b-74e2-48e0-937b-c9e8e4699dce"> <img width="371" alt="Screenshot 2024-02-09 at 09 19 48" src="https://github.com/elastic/kibana/assets/1421091/677c1f7f-c02f-4d77-a18f-ea2ffd22f874">
This commit revisits the UX for the Lens color mapping applying a slightly different UX behaviour to allow looping of colors from a chosen palette.
…176564) ## Summary This PR hides the single color picker when the color palette is selected in the button group as agreed with @MichaelMarcialis and @stratoula (initial conversation here elastic#175144 followed by an offline one) From this: <img width="362" alt="Screenshot 2024-02-09 at 09 20 37" src="https://github.com/elastic/kibana/assets/1421091/5f68fc57-627b-45b7-90e8-1aa78ee4b5b2"> To this: <img width="376" alt="Screenshot 2024-02-09 at 09 19 51" src="https://github.com/elastic/kibana/assets/1421091/fbefee5b-74e2-48e0-937b-c9e8e4699dce"> <img width="371" alt="Screenshot 2024-02-09 at 09 19 48" src="https://github.com/elastic/kibana/assets/1421091/677c1f7f-c02f-4d77-a18f-ea2ffd22f874">
This commit revisits the UX for the Lens color mapping applying a slightly different UX behaviour to allow looping of colors from a chosen palette.
…176564) ## Summary This PR hides the single color picker when the color palette is selected in the button group as agreed with @MichaelMarcialis and @stratoula (initial conversation here elastic#175144 followed by an offline one) From this: <img width="362" alt="Screenshot 2024-02-09 at 09 20 37" src="https://github.com/elastic/kibana/assets/1421091/5f68fc57-627b-45b7-90e8-1aa78ee4b5b2"> To this: <img width="376" alt="Screenshot 2024-02-09 at 09 19 51" src="https://github.com/elastic/kibana/assets/1421091/fbefee5b-74e2-48e0-937b-c9e8e4699dce"> <img width="371" alt="Screenshot 2024-02-09 at 09 19 48" src="https://github.com/elastic/kibana/assets/1421091/677c1f7f-c02f-4d77-a18f-ea2ffd22f874">
Summary
This update revisits the UX for the Lens color mapping applying a slightly different UX behaviour to allow looping of colors from a chosen palette.
fix #168891
fix #176076