Repository navigation
Check several quantization palettes at once - #262
Merged
Merged
Conversation
The Palette field becomes a multi-select list with a checkbox per palette. Apply maps to the enabled colors of every checked palette combined, a shared color counted once, and Keep detail and the palette gap note cover all of them. One checked palette maps to its own color list unchanged, so its output stays byte-identical. Number of Colors stays palette-determined; there is no separate pre-merge step. The checked list is saved under kromacut.palettes.selectedIds. A choice saved under kromacut.palettes.selected opens checked, and that key keeps the first checked palette for older versions. Co-authored-by: JohnSt99 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rrow key A storage key that cannot be written is removed, so a stale single choice no longer outvotes a saved list. The trigger points aria-controls at the listbox and opens on Arrow Down/Up; the supplier disclaimer describes its group instead of sitting in the listbox as text. Back on Auto, a combined count above 256 returns within the field's limit. An e2e Apply now maps with two palettes checked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t on Tab A list write that fails no longer deletes the last saved list; it is read while the single choice still names its first palette. Only a single choice that cannot be written is removed. Tab closes the palette list back to its field, and Auto brings a palette's count into 2 to 256. The two-palette e2e Apply now waits for the mapped stripes themselves. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Removing the single choice after both writes failed could bring back an older list. It is now removed only when the list was saved. The palette list also fits the space left in the window. Co-Authored-By: Claude Opus 5.5 <[email protected]>
When the checked list cannot be written, the last saved list is removed and the write tried once more in the space it held; if that also fails, the first checked palette loads alone. A stale list can no longer return palettes the user unchecked. Tab and Shift+Tab from the open list move on from the Palette field instead of stopping on it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
After a click on the popup's padding or a group heading, focus sits on the popup itself, where Tab was swallowed and the arrow keys did nothing. The keys are now handled there, before Radix's focus scope. The storage comment now says what loads when neither key can be written. Co-Authored-By: Claude Opus 5.5 <[email protected]>
vycdev
added a commit
that referenced
this pull request
Dec 1, 2026
develop's multi-palette select (#262) replaces the single selected palette with a list. Projects now save the checked palette IDs and a snapshot of each checked custom palette, and still open version 1 files that stored a single paletteId and palette. Opening restores every checked palette the same way as before: built-ins by ID, custom palettes as copies unless an identical one exists, without overwriting library palettes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Dec 1, 2026
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.
Supersedes #218 by @JohnSt99, keeping its multi-select picker and dropping its separate Number of Colors step. Closes #167.
What changes for users
aria-controlspoints at the multi-select listbox.#218's reduce-then-match step isn't here. It merged the image down before matching, which loses the detail Keep detail protects, and it changed results for every fixed-palette user.
Persistence
kromacut.palettes.selectedIdskey. A choice saved underkromacut.palettes.selectedopens checked.kromacut.palettes.selectedkeeps the first checked palette (orauto), so an older version still opens with it. If an older version changes that key later, its choice wins.loadCustomPalettesmoves every checked id.Project files (#220)
#220 (
.kprojsave/load) is still a draft and stores a singlequantize.paletteId. Whichever lands second should store the list (selectedPaletteIdsfromusePaletteManager) and still open files that store onepaletteId.Tests
tests/paletteSelection.test.ts: the single-palette byte goldens; the union's order and dedup; Keep detail and the gap covering both palettes.tests/paletteManager.test.ts: migrating the old key, downgrade and upgrade, and each quota failure path.palette-management.spec.tschecks two palettes, reloads, and walks the keyboard.quantize-determinism.spec.tsapplies with grays + Bambu checked and checks that black survives.Checks: lint,
tsc -b,npm test(1414 pass, 1 skipped),test:i18n,test:docs, andtest:e2e:allon port 52383 (all 8 suites pass, no port collisions). After merging the latest develop (#257, #260), the palette, quantize and desktop-import e2e specs pass again (34/34).Council review
Gemini isn't reachable from this environment (only Claude and Codex are enabled), so the council had two members.
Rounds: 6
Fixed:
aria-controlspoints at the listbox. Arrow keys open the list. The supplier disclaimer describes its group instead of sitting inside the listbox as text.Declined as scope: typeahead in the list, and some cosmetic notes (Space on the popup itself scrolls it, Radix's unnamed dialog wrapper, chips crowding the summary at minimum sidebar width).
🤖 Generated with Claude Code