You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(0%) src/dev-runtime/persistence/tool-repositories/palette-workspace-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
10
+
(0%) src/dev-runtime/server/mock-api-router.mjs - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
| Current branch is `main`| PASS |`git branch --show-current` returned `main`. |
10
+
11
+
## Requirement Checklist
12
+
13
+
| Requirement | Status | Evidence |
14
+
| --- | --- | --- |
15
+
| Implement PR_26160_075 recommendation: DEPRECATE `palette_source_swatches`| PASS |`src/engine/api/mock-db-viewer-ui.js` labels `palette_source_swatches` as deprecated and shows a visible deprecation note. |
16
+
| Remove/replace dead source-browser code paths reading `palette_source_swatches`| PASS |`toolbox/colors/colors.js` no longer creates source-mode repositories or binds source select/search/pin/sort/size handlers; `src/dev-runtime/persistence/tool-repositories/palette-workspace-repository.js` removed source row normalization, source options, source list, source pin-all, and source table output. |
17
+
| Remove/replace dead source-harmony code paths implying source table affects current harmony output | PASS | Harmony labels changed to Current/All Picker closest match, and `harmonyForSwatch()` now matches only supplied picker swatches when not calculated. No source table palette fallback remains. |
18
+
| Ensure Colors grid rendering does not depend on `palette_source_swatches`| PASS | Targeted Colors Playwright passed; runtime trace rendered 24 picker swatches with no source controls or source table count. |
19
+
| Ensure Colors editing does not depend on `palette_source_swatches`| PASS | Targeted Colors Playwright passed Add/Update/Remove/Pin flows; runtime trace added `Trace Blue`. |
20
+
| Ensure Colors save/load does not depend on `palette_source_swatches`| PASS | Targeted Colors Playwright covers reload behavior; runtime trace reloaded and found `Trace Blue` persisted. |
21
+
| Ensure Colors import/export does not depend on `palette_source_swatches`| PASS | Runtime trace verified import/export UI text is absent from the current Colors page; no active import/export source-table path remains. |
22
+
| Remove active Colors runtime reads if safe | PASS | Repository `getSnapshot()` no longer exposes `sourcePaletteOptions`/`sourcePaletteRecordCount`; `getTables()` no longer returns `palette_source_swatches`; Colors Repository Tables now show Project Swatches, Swatch Usage, and Project Swatch Settings only. |
23
+
| Keep table only for migration/history if needed | PASS | Server DB snapshot still includes seeded `palette_source_swatches` rows for DB Viewer history/reference via `paletteTables()` in `src/dev-runtime/server/mock-api-router.mjs`. |
24
+
| Mark deprecated table in DB Viewer/reporting | PASS | DB Viewer summary displays `palette_source_swatches (deprecated)` and a visible note: current Colors grid rendering, editing, save/load, and import/export do not read this table. |
25
+
| Do not migrate unrelated Toolbox/Admin data | PASS | Changes are scoped to Colors repository/runtime, DB Viewer labeling, targeted tests, and reports. |
26
+
| Do not use inline script/style/event handlers | PASS | No HTML inline script/style/event handlers were added; `git diff` shows external JS/HTML option text/test/report edits only. |
27
+
28
+
## Deprecation Evidence
29
+
30
+
- Active Colors repository tables now exclude `palette_source_swatches`.
31
+
- Active Colors runtime no longer has source select/search/pin-all controls.
32
+
- Active Colors runtime no longer accepts `?source=empty` / `?source=invalid` source-browser test modes.
33
+
- Harmony source wording now refers to picker swatches, not source palettes.
34
+
- DB Viewer still shows 838 deprecated source history rows under Palette, with an explicit visible deprecation note.
35
+
36
+
## Validation Evidence
37
+
38
+
| Lane | Status | Evidence |
39
+
| --- | --- | --- |
40
+
| Syntax checks | PASS |`node --check` on all changed JS/test files exited 0. |
| Full samples validation | Samples and sample loaders are not touched. |
57
+
| Unrelated Toolbox/Admin metadata migration | Explicitly out of scope for PR_26160_076. |
58
+
59
+
## Manual Test Notes
60
+
61
+
No additional manual browser walkthrough was required. The targeted Playwright lanes and runtime trace directly covered the requested Colors and DB Viewer behavior.
(0%) src/dev-runtime/persistence/tool-repositories/palette-workspace-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
21
+
(0%) src/dev-runtime/server/mock-api-router.mjs - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
| Colors runtime/UI Playwright | PASS |`npx playwright test tests/playwright/tools/PaletteToolMockRepository.spec.mjs --reporter=line`| 9 passed. Covers Colors grid rendering, editing, selection/pinning, reload/save behavior, tag behavior, symbol-free validation, and no source-browser controls. |
21
+
| DB Viewer Playwright | PASS |`npx playwright test tests/playwright/tools/AdminDbViewer.spec.mjs --reporter=line`| 7 passed. Covers Palette DB grouping, deprecated `palette_source_swatches` display, Local Mem/Local DB table visibility, schema headers, diagnostics, and read-only behavior. |
22
+
| Colors + DB Viewer runtime trace | PASS | Inline Playwright/Chromium trace |`sourceControlCount=0`; Colors Repository Tables omit source rows; picker grid rendered 24 swatches; edit/reload kept `Trace Blue`; import/export UI text absent; DB Viewer showed `palette_source_swatches (deprecated) (838 records)` with the deprecation note. |
23
+
| Static source audit | PASS |`rg -n "sourcePalette\|listSourceSwatches\|sourceSwatchRows\|selectedSourceSwatch\|data-palette-source\|sourcePin\|sourceSort\|sourceSize\|sourceMode\|Current Source\|All Sources" ...`| Only test assertions that source controls are absent remain; no active Colors/server source-browser path remains. |
| V8 coverage report | WARN | Generated by targeted Playwright runs |`toolbox/colors/colors.js` and `src/engine/api/mock-db-viewer-ui.js` were collected. Server-side changed JS is listed as advisory WARN because browser V8 coverage does not collect Node server modules. |
26
+
| Changed JS coverage guardrail | WARN | Generated by targeted Playwright runs | Advisory-only warnings for server-side changed JS not collected by browser V8 coverage. |
22
27
23
28
## Skipped Lanes
24
29
25
30
| Lane | Status | Reason |
26
31
| --- | --- | --- |
27
-
| Full samples validation | SKIP | The PR is evidence-only for Colors runtime usage and does not touch samples, sample loaders, or game runtime. |
28
-
| Admin DB Viewer Playwright | SKIP | The request explicitly said not to rely on DB Viewer visibility and requested targeted Colors runtime validation only. |
29
-
| Toolbox/Admin migration validation | SKIP | The PR does not migrate Toolbox/Admin data or change shared metadata contracts. |
32
+
| Full samples validation | SKIP | The PR touches Colors repository/runtime and DB Viewer reporting only; samples and sample loaders are unchanged. |
33
+
| Unrelated Toolbox/Admin metadata migration | SKIP | The PR explicitly excludes unrelated Toolbox/Admin data migration. |
30
34
31
35
## Manual Test Notes
32
36
33
-
No separate manual walkthrough was needed. Runtime trace evidence showed `palette_source_swatches`is requested through palette snapshots and rendered as a Repository Tables count, but does not affect grid rendering, palette editing, import/export, or save/load behavior. The report recommends **DEPRECATE**.
37
+
No separate manual walkthrough was needed beyond targeted Playwright and the inline runtime trace. The trace confirmed the deprecated source table is inspectable in DB Viewer but no longer participates in Colors runtime table counts, source controls, grid rendering, editing, save/load, or import/export UI.
0 commit comments