Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color labels are inconsistent between creating a task and editing a task #5326

Open
4 tasks done
hkockerbeck opened this issue Aug 9, 2023 · 2 comments
Open
4 tasks done

Comments

@hkockerbeck
Copy link

hkockerbeck commented Aug 9, 2023

Checklist

  • I verified that Kanboard is correctly installed
  • I verified that the problem does not come from a plugin
  • I verified that the problem is not already reported
  • I understand that Kanboard is in maintenance mode. It doesn't mean it's abandoned, but there is no significant feature development

Actual behaviour

When I create a new task, the colors in the color picker are labelled by the names set in the project (project labels). When I edit an existing task, the colors in the color picker are labelled by the names set system-wide (application labels), even if project labels are set.

Expected behaviour

I expect the color picker to use the same labels when creating a new task as well when I edit an existing task. Probably the best solution would be to use the project labels in both places, when there are project labels set. If there are no project labels, fall back to the application labels. If there are no application labels either, fall back to the generic color names ("yellow", "blue" etc.)

Steps to reproduce

Go to the form for creating a new task and look at the labels in the color picker. Next, go to the form for editing an existing task and look at the labels in the color picker.

Screenshots

Logs

Configuration

  • Kanboard version: 1.2.32
  • Database type and version: MySQL / MariaDB, 10.5.19-MariaDB-0+deb11u2
  • PHP version: 8.1.22
  • OS: Linux 5.10.0-23-amd64
  • Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
@hkockerbeck hkockerbeck added the bug label Aug 9, 2023
@fguillot
Copy link
Member

Can you clarify this issue by adding some screenshots or a video? Are you referring to the task color picker or the project/global tags? They are not related.

I'm confused because the color picker is exactly the same component when editing or creating tasks.

Just to confirm, are you using a plugin that modify the default Kanboard behavior?

@hkockerbeck
Copy link
Author

Sorry, my bad. In the meantime I've found that the problem was caused by the plugin kanboard-color_filter. With this plugin, you can (among other things) set color names per-project. These per-project color names used to be reflected when you edit an existing task, but aren't anymore.

Sorry again for taking your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants