Replace project color dropdown with native color picker#54
Merged
JoeProgrammer88 merged 3 commits intomainfrom Mar 25, 2026
Merged
Replace project color dropdown with native color picker#54JoeProgrammer88 merged 3 commits intomainfrom
JoeProgrammer88 merged 3 commits intomainfrom
Conversation
Co-authored-by: JoeProgrammer88 <7156063+JoeProgrammer88@users.noreply.github.com> Agent-Logs-Url: https://github.com/SpeakingInBits/TaskManagerWeb/sessions/1760bbae-274e-43db-aa20-0b0c3ba62279
Copilot
AI
changed the title
[WIP] Add color picker for project variety
Replace project color dropdown with native color picker
Mar 25, 2026
JoeProgrammer88
approved these changes
Mar 25, 2026
JoeProgrammer88
requested changes
Mar 25, 2026
Member
JoeProgrammer88
left a comment
There was a problem hiding this comment.
The e2e tests regarding creating a project while picking a named color need to be updated
Co-authored-by: JoeProgrammer88 <7156063+JoeProgrammer88@users.noreply.github.com> Agent-Logs-Url: https://github.com/SpeakingInBits/TaskManagerWeb/sessions/1993dd84-0fb6-43ed-9b70-7152d0028584
Contributor
Author
Updated in commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Projects were limited to 5 hardcoded color choices. This replaces the
<select>with a native<input type="color">picker, giving users full-spectrum color freedom.Changes
index.html— Swap<select id="projectColor">for<input type="color" id="projectColor" value="#3b82f6">src/app.tsnormalizeColor(): maps legacy named colors (blue,red, etc.) to hex, validates output against/^#[0-9a-fA-F]{3,6}$/to prevent CSS injection, falls back to#3b82f6renderProjectCard(): apply color viastyle="border-top-color: <hex>"instead of CSS classopenProjectModal()/saveProject(): cast#projectColorasHTMLInputElementcss/styles.css— Addborder-top: 4px solid #3b82f6default to.project-cardfor cards without a stored colorExisting projects stored with named colors are transparently migrated through
normalizeColor().Screenshot
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.