fix: preserve Trello label colours during import - #579
Open
bionicman wants to merge 1 commit into
Open
Conversation
hjball
reviewed
Sep 4, 2026
hjball
left a comment
Contributor
There was a problem hiding this comment.
We don't currently support the full Trello colour range so it won't be possible to assign the imported colours via the Kan UI.
I don't think that's an issue but worth considering before we merge.
Otherwise lgtm
bionicman
force-pushed
the
fix/trello-label-import-fidelity
branch
from
September 4, 2026 17:50
458838c to
ce8a819
Compare
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.
Summary
colourless and unknown values
nested collection limit
Why
We are migrating an established Trello workspace rather than a small example
board. It currently has 422 label definitions; the two largest boards have 75
and 57. There are 77 dark/light colour definitions used by 336 card-label
assignments. The current importer both truncates large label collections and
loses those source colours.
The colour mapping stays inside the Trello import boundary. Kan's shared label
palette and creation UI are unchanged. Colourless labels retain the existing
grey fallback, and unknown future Trello values use a deterministic fallback.
This follows #577, which made imported custom HEX values safe to edit.
Testing
pnpm --filter @kan/api exec vitest run src/utils/trello.test.ts— 34 passedred_darklabel and amock assertion for
labels_limit=1000