Skip to content

Keep ticket labels tidy - #21

Merged
nerdburn merged 1 commit into
mainfrom
fix/label-hygiene
Nov 24, 2026
Merged

nerdburn merged 1 commit into
mainfrom
fix/label-hygiene

Conversation

@nerdburn

Copy link
Copy Markdown
Owner

What

  • Board label filter lists only labels on tickets the current view can show (archived tickets' labels appear when archived tickets are shown), with one entry per label regardless of capitalisation.
  • canonicalLabel prefers the spelling used on live tickets over archived ones.
  • Mirror skips context/work/linear tables when the project no longer has a Linear source (or it is disabled), so leftover tables stop rewriting ticket labels and statuses on every sync.

Why

Marble's label filter showed 60 labels, most of them only on archived Linear imports, plus several spellings of the same label. After Linear was removed from the project's sources, the mirror would still have restored the tracker's labels on each sync.

Testing

npm test: 484 pass, with new tests for the spelling rule and the dropped Linear source. The board change typechecks but was not clicked through in a browser.

🤖 Generated with Claude Code

…o stale tracker rewrites

The board's label filter listed every label ever used, including ones that
only archived tickets carry. It now offers the labels on tickets the view
can show, one entry per label whatever its capitalisation.

canonicalLabel takes a label's spelling from live tickets before archived
ones, so an archived import cannot reintroduce an old spelling.

A Linear source that was removed or disabled leaves its tables behind;
the mirror no longer reads them, so they cannot write stale labels or
statuses back over later changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@nerdburn
nerdburn merged commit 54ef783 into main Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant