mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
[PR #1033] [MERGED] feat: add option to edit the color of a list #1169
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plankanban/planka/pull/1033
Author: @lukascorona
Created: 2/19/2025
Status: ✅ Merged
Merged: 2/25/2025
Merged by: @meltyshev
Base:
master← Head:feat/add_option_to_edit_list_color📝 Commits (2)
be58e5bfeat: add option to edit the color of a liste67790dfix: Use circle icon to display list color📊 Changes
19 files changed (+363 additions, -164 deletions)
View changed files
➕
client/src/components/ColorPicker/ColorPicker.jsx(+52 -0)➕
client/src/components/ColorPicker/ColorPicker.module.scss(+40 -0)➕
client/src/components/ColorPicker/index.js(+3 -0)📝
client/src/components/LabelsStep/Editor.jsx(+2 -21)📝
client/src/components/LabelsStep/Editor.module.scss(+0 -39)📝
client/src/components/List/ActionsStep.jsx(+116 -78)📝
client/src/components/List/List.jsx(+34 -3)📝
client/src/components/List/List.module.scss(+5 -0)📝
client/src/components/ProjectSettingsModal/BackgroundPane.jsx(+6 -21)➕
client/src/constants/ListColors.js(+12 -0)📝
client/src/containers/ListContainer.js(+2 -1)📝
client/src/locales/de-DE/core.js(+2 -0)📝
client/src/locales/en-GB/core.js(+2 -0)📝
client/src/locales/en-US/core.js(+2 -0)📝
client/src/models/List.js(+1 -0)📝
client/src/styles.module.scss(+42 -0)📝
server/api/controllers/lists/update.js(+6 -1)📝
server/api/models/List.js(+19 -0)➕
server/db/migrations/20250131202710_add_list_color.js(+17 -0)📄 Description
Description:
This pull request introduces the functionality to edit the background color of a list as mentioned in https://github.com/plankanban/planka/issues/840. The feature uses the already existing update functionality, has been implemented across both the server and client and includes the necessary database migration.
Since this would be the third time "color buttons" would be used, I refactored it into a standalone
ColorPickercomponent.Changelog
colorcolumn to the list table to store the color. When no color is set this defaults to null.ColorPickercomponent, which is now also used by theProjectSettingsModaland theLabelEditorRequest for Feedback:
I have tried to stick to the existing structure and design patterns as much as possible. I hope it works for you. The documentation is rather scarce and has no section for this, please provide feedback.
As possible colors, I just went with the first ten color options that labels have. I think Lists won't need that many colors, but I can easily add more. Feedback appreciated :)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.