Functional overview
The goal is to allow to make some cards more visible by setting a specific color on background given a specific "value" (in a select box field). This is valuable to manage "emergencies" in various context.
A few pitfals to take into account:
- Current color picker only provide ugly colors that doesn't fit into Tuleap color scheme. However the new color picker will propose less colors (~16) so we will keep the old color picker as an option to avoid breaking ugly-but-many-color-based workflows. See mock-up for color picker with new palette.
- There already are colors for cards: on the left hand side on Planning view, with small color "touch" on the card
- The change must be consistent on kanban view, planning view and scrum cardwall as the cards can appear on each of those elements
The new palette can be seen in action here
Proposed behaviour
- Update tracker "color picker" to have beautiful colors to associate with select box values
- Based on the colors already available for trackers, a few more options will be added ~3/4 to have ~20 colors available
- By default, for all select box values, even if colors are already set, the new palette is proposed. But there is a possibility to switch manually to the old palette if needed.
- The usage of old palette is not possible if the field was selected as "background color" semantic (see below)
- With new palette there are 2 colors, one "strong" (primary) and one "pastel" (secondary). The primary color is used when the field is displayed in artifact view, card field, charts, etc. The secondary color is used as background-color of card (maybe later as tracker report line as well).
- The XML export/import of field definition is updated.
- This information is inherited at project creation
- The old palette is converted to Vue component to ease switch from new to old palette.
- Update the "Card field" semantic to "Card" semantic
- It will still propose to select fields to be displayed on a card view
- In addition to that, on the same view, it's possible to select the field that will control the background color. It's only possible to select fields of type "select box" or "radio" that have either the default color (not really useful) or that use the new palette for each defined value. It's not possible to select a field if at least one of the values is using the old palette. Be careful with the error message and links to help people to understand how to configure.
- There is a live preview of the card color with field (note: it only displays the field names, not the actual values in the preview
- The XML export/import of card definition is updated.
- This information is inherited at project creation
- Use this color on Kanban
- Kanban template is updated to add a field to manage expedite with associated colors and color semantic
- Warning: check the change of color + realtime.
- Use this color on Scrum Planning
- Use this color on Scrum Cardwall and Tracker Report Cardwall (same thing)