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
Restored generated Colors grid swatch selection, visible pinned state, tag filtering, sorting coverage, and explicit Generate logging while preserving the PR_26159_024 control ownership layout and toolbox visibility behavior.
| Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` first | PASS | Read before implementation. |
20
+
| Use PR_26159_024 as base context | PASS | Work preserved the PR_024 curated selector layout and toolbox registration behavior. |
21
+
| Grid swatch click adds swatch to Selected Swatches | PASS |`toolbox/colors/colors.js` adds generated swatch click handling through `repository.pinSourceSwatch`; Playwright test `Palette Tool generated grid swatches can be selected, pinned, and refreshed` verifies count and row attributes. |
22
+
| Selected swatches remain visible | PASS | Same Playwright test verifies selected generated swatch remains visible before and after control changes and Generate. |
| Restore Pin Mode | PASS | Generated grid buttons show pin indicators and `data-palette-pinned`; Playwright verifies pinned swatch persistence after Theme Collection, Palette Type, Variant, Colors, Steps, Contrast, Saturation, and Hue Shift changes. |
25
+
| Pin state visible and actionable | PASS | Generated swatches are actionable buttons with `aria-pressed`, title text, selected/pinned data attributes, and the existing pin indicator. |
26
+
| Remove spacing between generated grid cells | PASS |`assets/theme-v2/css/forms.css` sets preview gaps, row gaps, swatch padding, margin, and radius to Theme V2 zero tokens; Playwright verifies computed row/column gaps and adjacent cell spacing. |
27
+
| Restore sorting controls for Hue, Sat, Brit, Name, Tag in both directions | PASS | Existing sort controls are covered by new `expectSortToggle` assertions in `PaletteToolMockRepository.spec.mjs`. |
28
+
| Restore tag checkbox behavior | PASS |`renderTags` now renders tag checkboxes; selected tag filters affect visible Selected Swatches. Playwright verifies checked tags filter rows visibly. |
29
+
| Generate explicitly refreshes from current settings and logs status | PASS | Generate now writes `Generated palette grid: <collection> / <type> / <variant>, <colors> colors x <steps> steps.` to status/log; Playwright verifies log output. |
30
+
| Preserve Defined Swatch Selector ownership | PASS | No control ownership moved; Theme Collection, Palette Type, Variant remain in Defined Swatch Selector. |
31
+
| Preserve Swatch Type / Theme ownership | PASS | Colors, Steps, Contrast, Saturation, Hue Shift, Generate, Reset remain in Swatch Type / Theme. |
32
+
| Admin toolbox list remains unfiltered | PASS |`ToolboxRoutePages.spec.mjs` passed and verifies Admin sees registered list tools including Colors. |
- Full samples validation: skipped by request; this PR only touched the Colors tool UI/runtime, reusable Theme V2 form styling for palette swatches, and targeted Playwright tests.
49
+
50
+
## Notes
51
+
52
+
- The generated grid selection path intentionally reuses the existing repository pin/add path so prior duplicate and selected-swatch behavior stays centralized.
53
+
- During validation, the new no-spacing assertion caught an accidental selected-state comparison for unpinned generated swatches. The selection predicate now only marks generated swatches selected when a pinned swatch exists and matches the selected project swatch.
0 commit comments