|
| 1 | +# PR_26160_082 DB Leftovers Cleanup |
| 2 | + |
| 3 | +Generated: 2026-06-09 |
| 4 | + |
| 5 | +## Branch Validation |
| 6 | + |
| 7 | +| Check | Expected | Actual | Status | |
| 8 | +| --- | --- | --- | --- | |
| 9 | +| Current branch | `main` | `main` | PASS | |
| 10 | + |
| 11 | +## Requirement Checklist |
| 12 | + |
| 13 | +| Requirement | Status | Evidence | |
| 14 | +| --- | --- | --- | |
| 15 | +| Replace hardcoded build-group color `#ff4d4d` | PASS | No active CSS/JS hardcoded usage existed; stale report references were replaced. | |
| 16 | +| Use Theme V2 token `--toolbox-group-build-color: var(--red)` | PASS | `assets/theme-v2/css/colors.css` line owns the token and `.toolbox-group-build` / `.tool-group-build` consume it. | |
| 17 | +| Audit additional hardcoded occurrences of `#ff4d4d` | PASS | Active source `rg` returned no matches after cleanup; intentional PR report text documents the removed literal. | |
| 18 | +| Replace all build-group usages with the Theme V2 token | PASS | Active build group CSS already routes through `--toolbox-group-build-color`; Playwright now validates this. | |
| 19 | +| Do not introduce new color constants or duplicate variables | PASS | No new color variable was added; existing Theme V2 token path is used. | |
| 20 | +| Use Theme V2 `colors.css` as color SSoT | PASS | `--red` and `--toolbox-group-build-color` remain in `assets/theme-v2/css/colors.css`. | |
| 21 | + |
| 22 | +## Replaced `#ff4d4d` Occurrences |
| 23 | + |
| 24 | +| File | Previous Occurrence | Replacement | |
| 25 | +| --- | --- | --- | |
| 26 | +| `docs_build/dev/reports/toolbox-group-color-restore-report.md` | Historical requirement evidence said Build/Create was restored to the literal hex value. | Reworded as superseded by PR_26160_082 and points to `--toolbox-group-build-color: var(--red)`. | |
| 27 | +| `docs_build/dev/reports/toolbox-group-color-restore-report.md` | Historical color source row named the old `--red` hex. | Replaced with `--toolbox-group-build-color: var(--red)` and current rendered color `rgb(255, 45, 45)`. | |
| 28 | +| `docs_build/dev/reports/toolbox-group-color-restore-report.md` | Historical note described a group-specific token set to the old literal. | Replaced with a note that PR_26160_082 keeps Build/Create on the Theme V2 SSoT path. | |
| 29 | +| `docs_build/dev/reports/toolbox-group-color-restore-report.md` | Historical validation command searched for the old literal. | Replaced with a token-only audit command. | |
| 30 | + |
| 31 | +No active runtime CSS, JavaScript, HTML, server, or test source used `#ff4d4d` before this PR. The remaining stale occurrences were report text from PR_26160_062; those were reworded to the Theme V2 token path. |
| 32 | + |
| 33 | +## Theme V2 Token Usage Report |
| 34 | + |
| 35 | +| Token / Selector | Source | Status | |
| 36 | +| --- | --- | --- | |
| 37 | +| `--red: #ff2d2d` | `assets/theme-v2/css/colors.css` | PASS: Theme V2 color SSoT owns the red value. | |
| 38 | +| `--toolbox-group-build-color: var(--red)` | `assets/theme-v2/css/colors.css` | PASS: Build group color delegates to `--red`. | |
| 39 | +| `.toolbox-group-build` | `assets/theme-v2/css/colors.css` | PASS: Uses `background: var(--toolbox-group-build-color)`. | |
| 40 | +| `.tool-group-build` | `assets/theme-v2/css/colors.css` | PASS: Uses `--tool-group-color` and `--tool-group-accent` from `--toolbox-group-build-color`. | |
| 41 | +| Toolbox group Playwright | `tests/playwright/tools/ToolboxRoutePages.spec.mjs` | PASS: Build/Create expected color now matches `--red`, and the test asserts `--toolbox-group-build-color` resolves to `--red`. | |
| 42 | + |
| 43 | +## Validation |
| 44 | + |
| 45 | +| Lane | Status | Command | Evidence | |
| 46 | +| --- | --- | --- | --- | |
| 47 | +| Branch guard | PASS | `git branch --show-current` | Returned `main`. | |
| 48 | +| Active-source hardcoded color audit | PASS | `rg -n "#ff4d4d" assets src toolbox admin tests --glob '!**/node_modules/**'` | No active source matches after cleanup. | |
| 49 | +| Theme V2 token audit | PASS | `rg -n -e "--toolbox-group-build-color" -e "--red" -e "toolbox-group-build" -e "tool-group-build" assets/theme-v2/css tests/playwright/tools/ToolboxRoutePages.spec.mjs` | Confirmed Theme V2 token usage and Playwright assertions. | |
| 50 | +| Changed-file syntax | PASS | `node --check tests/playwright/tools/ToolboxRoutePages.spec.mjs` | Exited 0. | |
| 51 | +| Targeted Toolbox Playwright | PASS | `npx playwright test tests/playwright/tools/ToolboxRoutePages.spec.mjs -g "toolbox group labels match" --reporter=line` | 1 passed. | |
| 52 | +| Static diff validation | PASS | `git diff --check` | No whitespace errors; Git reported expected LF/CRLF warning for the changed Playwright file. | |
| 53 | + |
| 54 | +## Impacted Lanes |
| 55 | + |
| 56 | +- Toolbox group color rendering |
| 57 | +- Theme V2 color token validation |
| 58 | + |
| 59 | +## Skipped Lanes |
| 60 | + |
| 61 | +| Lane | Reason | |
| 62 | +| --- | --- | |
| 63 | +| Full samples validation | Samples and sample loaders were not changed. | |
| 64 | +| Broad Toolbox route suite | The scoped change only updates group color validation; the targeted group-color Playwright test was run. | |
| 65 | +| Admin runtime Playwright | Admin runtime behavior was unchanged; Admin relevance was covered by the existing group-color test reading Admin Tool Votes assignments. | |
| 66 | + |
| 67 | +## Manual Test Notes |
| 68 | + |
| 69 | +No separate manual walkthrough was required after the targeted Playwright test. Build/Create group labels now validate against the Theme V2 `--red` value through `--toolbox-group-build-color`. |
0 commit comments