elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.63k stars 8.22k forks source link

Allow users to try the new color palette #192849

Open teresaalvarezsoler opened 2 months ago

teresaalvarezsoler commented 2 months ago

Description We will have a new default color palette which will be the default when creating new charts. Although existing charts should remain unchanged to make sure we don't break any existing color logic in users' dashboards, we want to provide an easy opt-in functionality for those users that want to try the new color palette.

### Tasks
- [ ] The first time a user with edit rights opens a dashboard (either in view or edit mode) or a chart in the Lens editor supporting the new colors, a banner will appear asking the user to `Try the new default colors`. Note: skip dashboards where none of the charts support the new colors (e.g. all charts are built using legacy editors or all charts have colors that don't belong to the current default palette).
- [ ] The user can dismiss this banner so it doesn't appear again for any other dashboard/chart for this user (it should still appear for other users using the same dashboards and charts with edit rights)
- [ ] If users decide to try it, all the charts using the old default colors will be migrated to the new color palette (this includes all terms, values and dimensions with default colors regardless of whether they were manually configured or not by the user)
- [ ] The user can revert this change by clicking the `Revert` option at the top of the dashboard or the `Cancel` option if he is in the Lens editor
- [ ] The user can apply this change by clicking the `Save` option at the top of the dashboard or in the Lens editor
- [ ] The charts with colors that are different from the default palette will remain unchanged (charts with a mixed of default and other colors will also be migrated to the new palette)
- [ ] The banner won't appear anymore for the dashboards/charts that use the new default colors. Note: it will still appear for the dashboards and charts using the old default colors (unless the user dismisses it)
elasticmachine commented 2 months ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)