asana.CreateProject (patch update) Color Palette not showing colors #208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem 1
The initial issue was that the color palette in the Asana Create Project component displayed Asana’s color names (e.g., "dark-pink") but these names were not valid CSS color values. This caused the color picker in the UI to not display colors correctly, as it could not interpret non-standard CSS values like "dark-pink".
Problem 2
some components have wrong description that can cause confusion between action and trigger
Fix:
Updated the color palette to use valid hex codes for the color options instead of Asana’s internal color names. The color names were still required by the Asana API, so I introduced a mapping between hex values and Asana color names. The UI now displays hex values, and when submitting the project, the hex value is mapped back to the corresponding Asana color name before being sent to the API. This ensures both proper color display in the UI and compatibility with Asana’s API.
Updated the verbs of the descriptions of action components