mirror of
https://github.com/svm0n/datadeck.git
synced 2026-07-22 08:31:46 +00:00
No description
Replaces the ⚙ Columns modal's eight separate 'which column(s) for role X?' sections (Category/Status/Notes/Anki-front dropdowns + Habit/Card-field/Categorical checkbox grids) with a single vertical list of per-column rows. Each row gets: - a Role select (none/Category/Status/Notes/Image/Anki front) — mutually exclusive, since each of these was already a single-column slot; picking one for a column automatically clears it from whichever column held it before, and clears any other role the same column previously held. - three independent toggles (Habit/Card field/Categorical) a column can hold any combination of. Also folds in an Image-column picker (previously name-detection only, no UI) and renames the toolbar button/menu entry from 'Columns' to 'Config' since it now covers more than columns. Role/toggle edits stay in-memory (this.current) until Save, same as before; only add/remove-column still refetches from disk immediately since those persist right away. Split refresh() (disk refetch, for structural changes) from a new renderRows() (local re-render, for role/toggle changes) so editing roles never discards other unsaved edits in the draft. Tests: rewrote the categorical-toggle tests for the new row structure, added coverage for role exclusivity (cross-column eviction, same- column reassignment) and confirmed role/toggle edits never call getFileCfg (no disk refetch). Co-authored-by: SVM0N <SVM0N@users.noreply.github.com> |
||
|---|---|---|
| src | ||
| test-support | ||
| bench-load.mjs | ||
| esbuild.config.mjs | ||
| main.js | ||
| main.ts | ||
| styles.css | ||
| test-csv-parser.mjs | ||
| test-plugin-logic.mjs | ||
| test-view-smoke.mjs | ||
| world-map.svg | ||