aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/dupre-revised.json
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-09 05:16:00 -0500
committerCraig Jennings <c@cjennings.net>2026-06-09 05:16:00 -0500
commit5d64b6b1ef04b54fc855c4a494def82c939671c1 (patch)
tree1ca08264e7113b29936205e42903860ebea82117 /scripts/theme-studio/dupre-revised.json
parent08890fbe76476c5918fedc6ae922913fc3aac4a7 (diff)
downloaddotemacs-5d64b6b1ef04b54fc855c4a494def82c939671c1.tar.gz
dotemacs-5d64b6b1ef04b54fc855c4a494def82c939671c1.zip
refactor(theme-studio): unify the syntax table onto the shared sort
The syntax table had its own sort (srt + a D{} direction map) that read state directly — MAP[kind] for the color column, cell text for elements. The UI and package tables used a separate, more general system (srtTable / cellVal / applyTableSort) that reads the rendered cells. Pointed the syntax headers at srtTable('legbody', col) and deleted srt, so all three tables share one sort. The mapping is exact: the legtable color cell is a swatch dropdown whose data-val is the hex, which cellVal reads — same key srt sorted on — and the elements cell is text. First-click direction stays ascending. The syntax table sorts on click only; it doesn't opt into the cross-rebuild persistence the UI and package tables get from applyTableSort, which preserves its prior behavior. Added a #sorttest gate: sort was previously untested, and this collapses two systems into one. It checks the syntax table sorts by color ascending, reverses on a second click, sorts by element name, and that the UI and package tables still sort. The asc/desc pair is self-validating — a no-op sort can't pass both.
Diffstat (limited to 'scripts/theme-studio/dupre-revised.json')
0 files changed, 0 insertions, 0 deletions