Selectable tile colour (#160) #161
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba!161
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/160-tile-colour"
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?
Summary
Categories and guides get a Tile Colour (#160): automatic (derived from the id, as before), one of the eight tile colours, or any colour. Stacked on !159 (#158); its two commits drop out of this diff once !159 is merged.
Evidence
After:
tile.test.ts: chosen colour wins,#ffd700→ dark letters, presets → white, form field""→ automatic,"teal"→ error.CategoryListing/GuideListingtests:background-color:#ffd700;color:#1c1917.backup.test.ts: round trip; a backup withouttileColor→ null.e2e/duplicateGuide.spec.ts: the copy keeps "Plum".npm test: 644 passed. E2E settings, duplicateGuide, categories, guideEditor, backup, locale and menu pass.pages.spec.ts:127and:333(page search) already fail on the base branch.Merge Danger
Door: one-way (small)
Migration adds two nullable columns, so rolling back the code alone is harmless. Dropping them loses chosen colours.
Blast Radius: tiles
Every category and guide grid now colours tiles by inline style instead of
bg-tile-*classes (removed fromglobals.css). Automatic colours are unchanged. The accent picker now uses the shared hex input.🤖 Generated with Claude Code
The accent and tile colour pickers share HexColourInput, which takes a typed hex value with or without its #. tileStyle and tileTextColour name what the tile's colours are for, the custom colour's start lives in the theme, and tileColourFrom returns {tileColor} or {error} like the other form parsers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>