Skip to content

Commit 4c8a49e

Browse files
committed
Audit local branches and polish Colors grid selection behavior - PR_26159_040-branch-audit-colors-grid-selection
1 parent 0bbff01 commit 4c8a49e

10 files changed

Lines changed: 217 additions & 30 deletions

File tree

assets/theme-v2/css/forms.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ input[type="color"][data-palette-swatch-size="large"] {
269269

270270
.palette-generator-preview-color {
271271
box-sizing: border-box;
272+
display: block;
273+
flex: 1 1 auto;
272274
width: 100%;
273275
min-width: var(--space-0);
274276
height: 100%;
@@ -358,6 +360,17 @@ input[type="range"] {
358360
accent-color: var(--tool-group-color)
359361
}
360362

363+
[data-palette-generator-slider-controls] input[type="range"] {
364+
width: 100%
365+
}
366+
367+
.palette-generator-slider-row {
368+
display: grid;
369+
grid-template-columns: calc(var(--space-78) + var(--space-22)) minmax(var(--space-0), calc(var(--space-78) * 2));
370+
align-items: center;
371+
gap: var(--space-12)
372+
}
373+
361374
textarea {
362375
min-height: var(--size-textarea-min);
363376
resize: vertical
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[ ] Add a human theme
2+
[ ] How do we adjust the step size
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# PR_26159_040-branch-audit-colors-grid-selection
2+
3+
Generated: 2026-06-08
4+
Playwright impacted: Yes
5+
Full samples validation: Skipped
6+
7+
## Summary
8+
9+
Completed the requested branch audit and Colors picker polish:
10+
11+
- Audited local branches against `main`.
12+
- Deleted four local branches with no unique changes compared with `main`.
13+
- Preserved older local branches with unique changes and documented why they were not deleted.
14+
- Made Picker Preview SVG fills stretch to the full cell with no internal aspect-ratio padding.
15+
- Reduced Contrast/Saturation/Hue Shift slider width and separated slider labels from controls.
16+
- Added targeted validation that picker swatch adds select the new Project Swatch immediately.
17+
18+
## Requirement Checklist
19+
20+
| Requirement | Status | Evidence |
21+
| --- | --- | --- |
22+
| Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` first | PASS | Read before branch audit and edits. |
23+
| Hard stop if current branch is not `main` | PASS | `git branch --show-current` returned `main`; implementation proceeded. |
24+
| Audit the 4 local branches created while user was off main | PASS | `docs_build/dev/reports/branch_audit.md` identifies the four no-unique local branches and their comparison results. |
25+
| Compare each branch against `main` | PASS | Used `git rev-list --left-right --count main...<branch>` and `git diff --name-only main...<branch>`. |
26+
| Report whether each branch contains changes not already in `main` | PASS | `branch_audit.md` has branch-only commit and unique file counts. |
27+
| Identify files and purpose of unique changes | PASS | `branch_audit.md` lists representative unique files and purpose for the preserved unique branches. |
28+
| State whether changes should be merged, preserved, or discarded | PASS | `branch_audit.md` gives recommendation and action for each audited branch group. |
29+
| Delete branches with no unique changes | PASS | Deleted `PR_26159_035-colors-picker-layout-tags`, `PR_26159_036-colors-picker-preview-layout`, `PR_26159_038-colors-picker-preview-behavior`, and `recover/70f1301b`. |
30+
| Do not delete branches with unique changes without reporting | PASS | Preserved `backup-before-workspace-cleanup` and `docs/engine-core-boundary`; both are reported as unique and out of PR_040 scope. |
31+
| Create branch audit report | PASS | `docs_build/dev/reports/branch_audit.md`. |
32+
| Picker Preview color fill uses 100% of each cell horizontally and vertically | PASS | `toolbox/colors/colors.js` sets SVG `preserveAspectRatio="none"`; `assets/theme-v2/css/forms.css` makes preview SVG block/flex fill; Playwright checks visual and swatch boxes match. |
33+
| No unused inner padding/gaps inside swatch cells | PASS | Existing zero-gap rows preserved; Playwright checks row/column gaps and visual cell dimensions. |
34+
| Reduce slider width for Contrast/Saturation/Hue Shift | PASS | `assets/theme-v2/css/forms.css` uses a reduced token-based slider track in `.palette-generator-slider-row`; Playwright checks width <= 170px. |
35+
| Slider width must not overlap or crowd label text | PASS | Slider controls now use external-CSS grid rows with separate label/control tracks; Playwright checks label text ends before slider starts. |
36+
| Newly added Picker swatch becomes selected Project Swatch immediately | PASS | Repository selection behavior preserved; Playwright asserts added swatch has `data-palette-selected="true"` and selected summary matches. |
37+
| Preserve red pin add / green pin remove / no-pin duplicate | PASS | Existing tests still validate red add, green remove, and duplicate no-pin click blocking. |
38+
| Preserve Show duplicates behavior | PASS | Existing tests still validate transparent duplicate cells when unchecked and colored no-pin duplicates when checked. |
39+
| Preserve Symbol-free Add/Update/Clear | PASS | Targeted Playwright and active scan show no Symbol validation errors. |
40+
| Preserve sorted Theme/Type/Variant behavior | PASS | Existing sorted selector assertions still pass. |
41+
| Validate no console errors | PASS | Targeted Playwright `expectNoPageFailures()` passed in all page tests. |
42+
| Produce required reports | PASS | `branch_audit.md`, this PR report, `codex_review.diff`, and `codex_changed_files.txt` created/updated. |
43+
| Produce repo-structured ZIP under `tmp/` | PASS | `tmp/PR_26159_040-branch-audit-colors-grid-selection_delta.zip`. |
44+
45+
## Validation Evidence
46+
47+
| Lane | Result |
48+
| --- | --- |
49+
| `node --check toolbox/colors/colors.js` | PASS |
50+
| `node --check tests/playwright/tools/PaletteToolMockRepository.spec.mjs` | PASS |
51+
| `npx playwright test tests/playwright/tools/PaletteToolMockRepository.spec.mjs` | PASS, 8 passed |
52+
| `git diff --check` | PASS, line-ending warnings only |
53+
| Active Symbol validation scan | PASS |
54+
55+
## Skipped Lanes
56+
57+
| Lane | Reason |
58+
| --- | --- |
59+
| Full samples validation | Safe to skip because this PR does not touch sample files, sample loading, or shared sample runtime. |
60+
| Broad Playwright suite | Safe to skip because the existing targeted Palette Tool lane covers the impacted Colors runtime/UI behavior and console checks. |
61+
62+
## Notes
63+
64+
- Branch deletion was local branch deletion only. Remote branches were not deleted.
65+
- The preserved unique branches are broad historical branches and should not be merged through this Colors-focused PR.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Branch Audit - PR_26159_040
2+
3+
Generated: 2026-06-08
4+
Base branch: `main`
5+
Branch gate: PASS, `git branch --show-current` returned `main`.
6+
7+
## Summary
8+
9+
Audited local branches against `main` using `git rev-list --left-right --count main...<branch>` and `git diff --name-only main...<branch>`.
10+
11+
Four local branches had no commits or file changes unique to the branch compared with `main`; those branches were deleted locally:
12+
13+
- `PR_26159_035-colors-picker-layout-tags`
14+
- `PR_26159_036-colors-picker-preview-layout`
15+
- `PR_26159_038-colors-picker-preview-behavior`
16+
- `recover/70f1301b`
17+
18+
Two older local branches contain unique commits and were not deleted:
19+
20+
- `backup-before-workspace-cleanup`
21+
- `docs/engine-core-boundary`
22+
23+
## Deleted Branches
24+
25+
| Branch | Main-only commits | Branch-only commits | Unique files | Purpose from branch tip | Recommendation | Action |
26+
| --- | ---: | ---: | ---: | --- | --- | --- |
27+
| `PR_26159_035-colors-picker-layout-tags` | 3 | 0 | 0 | Colors picker layout/tags and duplicate pin handling | Discard local branch; changes already in `main` | Deleted locally |
28+
| `PR_26159_036-colors-picker-preview-layout` | 2 | 0 | 0 | Colors picker preview sizing, pins, and selection layout | Discard local branch; changes already in `main` | Deleted locally |
29+
| `PR_26159_038-colors-picker-preview-behavior` | 1 | 0 | 0 | Colors picker preview pin behavior and duplicate grid behavior | Discard local branch; changes already in `main` | Deleted locally |
30+
| `recover/70f1301b` | 1600 | 0 | 0 | Recovered nav changes indicating active section | Discard local branch; no unique local changes remain | Deleted locally |
31+
32+
Deletion command:
33+
34+
```text
35+
git branch -d PR_26159_035-colors-picker-layout-tags PR_26159_036-colors-picker-preview-layout PR_26159_038-colors-picker-preview-behavior recover/70f1301b
36+
```
37+
38+
Post-deletion verification:
39+
40+
```text
41+
git branch --list PR_26159_035-colors-picker-layout-tags PR_26159_036-colors-picker-preview-layout PR_26159_038-colors-picker-preview-behavior recover/70f1301b
42+
```
43+
44+
Result: no output, confirming those local branches no longer exist.
45+
46+
## Preserved Branches With Unique Work
47+
48+
| Branch | Main-only commits | Branch-only commits | Unique files | Unique-change purpose | Recommendation | Action |
49+
| --- | ---: | ---: | ---: | --- | --- | --- |
50+
| `backup-before-workspace-cleanup` | 1114 | 21 | 36 | Historical Workspace V2 cleanup/export/schema work and PR_11 reports/docs | Preserve only; do not merge into PR_26159_040 because it is broad historical work outside this Colors PR | Not deleted |
51+
| `docs/engine-core-boundary` | 2877 | 81 | 202 | Historical engine boundary documentation/core governance work | Preserve only; do not merge into PR_26159_040 because it is broad historical work outside this Colors PR | Not deleted |
52+
53+
Representative unique files for `backup-before-workspace-cleanup`:
54+
55+
- `docs/dev/reports/PR_11_280_workspace_v2_tools_key_schema_reintroduction_report.md`
56+
- `docs/dev/reports/PR_11_281_workspace_schema_deprecation_manifest_only_enforcement_report.md`
57+
- `docs/pr/BUILD_PR_11_280_WORKSPACE_V2_TOOLS_KEY_SCHEMA_REINTRODUCTION.md`
58+
- `tests/fixtures/v2-tools/palette-manager-v2.json`
59+
- `tests/runtime/V2CurrentSessionExport.test.mjs`
60+
- `tools/schemas/workspace.manifest.schema.json`
61+
- `tools/workspace-v2/index.html`
62+
63+
Representative unique files for `docs/engine-core-boundary`:
64+
65+
- `CODEX_COMMANDS.md`
66+
- `COMMIT_COMMENT.txt`
67+
- `DESCRIPTION.md`
68+
- `NEXT_COMMAND.md`
69+
- `PRE_COMMIT_TEST_CHECKLIST.md`
70+
- `TESTS.md`
71+
- `TITLE.txt`
72+
- `docs/ENGINE_API.md`
73+
- `docs/ENGINE_BOUNDARIES.md`
74+
- `docs/ENGINE_STANDARDS.md`
75+
- `docs/SESSION_STATE.md`
76+
- `docs/prs/PR-001-engine-core-boundary.md`
77+
78+
## Final Local Branch State
79+
80+
Remaining local branches after deletion:
81+
82+
- `main`
83+
- `backup-before-workspace-cleanup`
84+
- `docs/engine-core-boundary`
85+
86+
No branch containing unique changes was deleted.

docs_build/dev/reports/coverage_changed_js_guardrail.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Missing changed runtime JS files are WARN, not FAIL.
66
Source: Playwright/Chromium built-in V8 coverage from the active Playwright run.
77

88
Changed runtime JS files considered:
9-
(86%) toolbox/colors/colors.js - executed lines 2012/2012; executed functions 177/206
9+
(86%) toolbox/colors/colors.js - executed lines 2013/2013; executed functions 177/206
1010

1111
Guardrail warnings:
1212
(100%) none - no changed runtime JS coverage warnings

docs_build/dev/reports/playwright_v8_coverage_report.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ Exercised tool entry points detected:
1717
(64%) Theme V2 Shared JS - exercised 2 runtime JS files
1818

1919
Changed runtime JS files covered:
20-
(86%) toolbox/colors/colors.js - executed lines 2012/2012; executed functions 177/206
20+
(86%) toolbox/colors/colors.js - executed lines 2013/2013; executed functions 177/206
2121

2222
Files with executed line/function counts where available:
2323
(58%) src/engine/api/server-api-client.js - executed lines 159/159; executed functions 11/19
2424
(64%) assets/theme-v2/js/gamefoundry-partials.js - executed lines 525/525; executed functions 28/44
2525
(64%) assets/theme-v2/js/tool-display-mode.js - executed lines 201/201; executed functions 9/14
2626
(78%) toolbox/tool-registry-api-client.js - executed lines 148/148; executed functions 21/27
27-
(86%) toolbox/colors/colors.js - executed lines 2012/2012; executed functions 177/206
27+
(86%) toolbox/colors/colors.js - executed lines 2013/2013; executed functions 177/206
2828
(100%) toolbox/colors/palette-api-client.js - executed lines 19/19; executed functions 4/4
2929

3030
Uncovered or low-coverage changed JS files:
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Testing Lane Execution Report
22

3-
PR: PR_26159_039-colors-sorting-duplicate-grid-polish
3+
PR: PR_26159_040-branch-audit-colors-grid-selection
44
Generated: 2026-06-08
55
Full samples validation: SKIPPED
66

77
## Summary
88

9-
PASS: 6
10-
WARN: 1
9+
PASS: 7
10+
WARN: 2
1111
FAIL: 0
1212
SKIP: 2
1313

@@ -16,9 +16,10 @@ SKIP: 2
1616
| Lane | Status | Command | Evidence |
1717
| --- | --- | --- | --- |
1818
| Branch gate | PASS | `git branch --show-current` | Returned `main`; implementation proceeded. |
19-
| Colors runtime syntax | PASS | `node --check toolbox/colors/colors.js` | Colors picker sorting and duplicate-grid logic parse. |
20-
| Palette Playwright syntax | PASS | `node --check tests/playwright/tools/PaletteToolMockRepository.spec.mjs` | Updated targeted assertions parse. |
21-
| Palette / Colors Playwright | PASS | `npx playwright test tests/playwright/tools/PaletteToolMockRepository.spec.mjs` | 8 passed. Covers sorted selectors, numeric Grid Colors, slider layout/group color, transparent duplicate cells, duplicate no-pin behavior, Symbol-free Add/Update/Clear, and no console errors. |
19+
| Branch audit | PASS | `git rev-list --left-right --count main...<branch>` and `git diff --name-only main...<branch>` | `docs_build/dev/reports/branch_audit.md` identifies four no-unique local branches deleted and two unique branches preserved. |
20+
| Colors runtime syntax | PASS | `node --check toolbox/colors/colors.js` | Picker SVG fill and selection code parse. |
21+
| Palette Playwright syntax | PASS | `node --check tests/playwright/tools/PaletteToolMockRepository.spec.mjs` | Updated assertions parse. |
22+
| Palette / Colors Playwright | PASS | `npx playwright test tests/playwright/tools/PaletteToolMockRepository.spec.mjs` | 8 passed. Covers full-cell picker fill, reduced non-overlapping sliders, add/select behavior, duplicate behavior, Symbol-free controls, and no console errors. |
2223
| Runtime V8 coverage | PASS | Palette Playwright afterAll coverage reporter | `docs_build/dev/reports/playwright_v8_coverage_report.txt` includes changed runtime JS coverage for `toolbox/colors/colors.js`. |
2324
| Static whitespace validation | PASS | `git diff --check` | No whitespace errors; Git reported line-ending warnings only. |
2425
| Active Symbol validation scan | PASS | `rg -n "Symbol: Enter a symbol|data-palette-symbol|palette.*symbol|symbol" toolbox/colors src/dev-runtime/persistence/tool-repositories/palette-workspace-repository.js tests/playwright/tools/PaletteToolMockRepository.spec.mjs` | No active Symbol validation hits. Remaining matches are Symbol-free test fixture names. |
@@ -27,12 +28,12 @@ SKIP: 2
2728

2829
| Item | Status | Detail |
2930
| --- | --- | --- |
30-
| Initial Playwright run | WARN | First run failed only because the test expected the old variant order. The implementation produced natural alphabetical/numeric order, the assertion was corrected, and the full targeted lane was rerun successfully. |
31+
| Initial slider geometry attempts | WARN | Early Playwright runs failed on label/slider crowding checks. The implementation was adjusted from compact form-table rows to external-CSS grid rows, then the full targeted lane passed. |
3132
| SQLite test-server output | WARN | Local targeted Playwright still emits Node SQLite experimental warnings and seed-only audit fallback diagnostics from existing test infrastructure. Assertions passed. |
3233

3334
## Skipped Lanes
3435

3536
| Lane | Status | Reason |
3637
| --- | --- | --- |
3738
| Full samples validation | SKIP | This PR does not touch samples, sample loader/runtime code, or shared sample framework behavior. |
38-
| Broad Playwright suite | SKIP | The existing targeted Palette Tool lane covers the changed Colors UI/runtime behavior and includes console-error checks. |
39+
| Broad Playwright suite | SKIP | The targeted Palette Tool lane covers the impacted Colors runtime/UI behavior and includes console-error checks. |

0 commit comments

Comments
 (0)