Open
Conversation
Contributor
|
Hi @NickLemke! 👋 It appears to us that you are adding a new feature to Coolify. Coolify Docs Repository: https://github.com/coollabsio/coolify-docs |
Author
|
Docs PR for this feature: coollabsio/coolify-docs#560 Added docs for Project Color Picker in Concepts (how to set/clear, where it appears in UI, and accepted |
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.
Project Color Picker Feature
Changes
This PR adds a color picker to project settings, allowing users to visually distinguish projects on listing pages (Dashboard and Projects Index) using a colored left border accent.
What was added:
colorcolumn (nullable string, 7 chars) toprojectstable$colorproperty, validation rules, and sync logic toProject\Editcomponent#RRGGBB) with custom error messagesgetContrastTextColor()function for determining readable text color based on background luminanceTechnical details:
#FF5733)Issue
Category
Screenshots or Video (if applicable)
Required screenshots to include in PR:



AI Usage
Steps to Test
Prerequisites:
Test Case 1: Add color to existing project
/project/{project_uuid}/editfor any existing project/)Test Case 2: Clear/remove color
/project/{project_uuid}/editfor the colored projectTest Case 3: Create new project without color
Test Case 4: Test various colors
#FFFF00(yellow)#000000(black)#FF5733(orange)Test Case 5: Validation testing
#RRGGBB) should be acceptedTest Case 6: Dark mode compatibility
Test Case 7: Projects Index page
/projectsTest Case 8: Run unit tests
./vendor/bin/pest tests/Unit/Livewire/Project/ProjectColorValidationTest.php --no-coverage./vendor/bin/pest tests/Unit/ProjectColorHexValidationTest.php --no-coverageFiles Modified
database/migrations/2026_02_03_001245_add_color_to_projects_table.php(NEW)app/Livewire/Project/Edit.phpresources/views/livewire/project/edit.blade.phpresources/views/livewire/dashboard.blade.phpresources/views/livewire/project/index.blade.phpresources/js/color-utils.js(NEW)resources/js/app.jstests/Unit/Livewire/Project/ProjectColorValidationTest.php(NEW)tests/Unit/ProjectColorHexValidationTest.php(NEW)Contributor Agreement
Important