Skip to content

Commit 8b00c8a

Browse files
author
DavidQ
committed
Remove duplicate and dead CSS overrides from Palette Manager V2 without changing behavior - PR_26124_070-palette-manager-css-dead-override-cleanup
1 parent 4199381 commit 8b00c8a

11 files changed

Lines changed: 316 additions & 114 deletions

File tree

docs/dev/codex_commands.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
# Codex Commands - PR_26124_069-palette-manager-left-accordionv2-cleanup
1+
# Codex Commands - PR_26124_070-palette-manager-css-dead-override-cleanup
22

33
```bash
4-
npx @openai/codex run --model gpt-5.5 --reasoning high "Run full workflow for PR_26124_069-palette-manager-left-accordionv2-cleanup. Follow PROJECT_INSTRUCTIONS.md exactly."
4+
npx @openai/codex run --model gpt-5.5 --reasoning high "Run full workflow for PR_26124_070-palette-manager-css-dead-override-cleanup. Follow PROJECT_INSTRUCTIONS.md exactly."
55
```
66

77
## Validation Commands
88

99
```bash
10-
node --input-type=module <left-column accordionV2 markup validation>
11-
node --input-type=module <palette-manager-v2 JS syntax validation>
12-
git diff --check
10+
node --input-type=module <css structural cleanup validation>
11+
git diff --check -- tools/palette-manager-v2/paletteManagerV2.css
1312
npm run test:workspace-v2
1413
```
1514

docs/dev/commit_comment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Verify Palette Manager left accordions already use accordionV2 - PR_26124_069-palette-manager-left-accordionv2-cleanup
1+
Remove dead Palette Manager CSS overrides - PR_26124_070-palette-manager-css-dead-override-cleanup
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# PR_26124_070-palette-manager-css-dead-override-cleanup Report
2+
3+
## Summary
4+
Removed confirmed dead or duplicate Palette Manager V2 CSS override blocks while preserving current visual behavior.
5+
6+
## Changes
7+
- Removed the closed-state import accordion override because shared accordionV2 already supplies the same closed/base behavior.
8+
- Removed the import accordion content override because it duplicated shared accordionV2 content values.
9+
- Removed the validation open-state override because it repeated the validation base flex value.
10+
- Removed the center tile-grid patch because the base tile-grid rule already supplies the flex value and `max-height: none` is the default.
11+
12+
## Preserved
13+
- The active `.palette-manager-v2__right-accordion--import.is-open` sizing rule remains.
14+
- The active Palette JSON preview sizing rule remains.
15+
- The active Validation/Error Viewer sizing rules remain.
16+
- The center accordion non-grid fixed-control rule remains.
17+
- The append-only `.palette-manager-v2__pin-button--tile` override remains the final rule in the file.
18+
- Pin styling and pin size were not changed.
19+
- HTML, JavaScript, `tools/shared`, workspace/toolState/session behavior, sample JSON, schemas, and dependencies were not touched.
20+
21+
## Validation
22+
- CSS structural cleanup validation: PASS.
23+
- `git diff --check -- tools/palette-manager-v2/paletteManagerV2.css`: PASS with Git LF-to-CRLF warning for the CSS file.
24+
- `npm run test:workspace-v2`: FAIL, `package.json` does not define `test:workspace-v2`.
25+
- Full samples smoke test: skipped because this PR is Palette Manager V2 CSS-only and full samples were explicitly out of scope.
26+
27+
## Manual Test Notes
28+
1. Open Palette Manager V2.
29+
2. Confirm left, center, and right accordion layout appears unchanged.
30+
3. Confirm User Palette and Sample Palette tile grids keep their current sizing and scrolling.
31+
4. Confirm Palette JSON and Validation/Error Viewer sizing remains unchanged.
32+
5. Confirm pin styling and pin size are unchanged.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# git status --short
22
M docs/dev/codex_commands.md
33
M docs/dev/commit_comment.txt
4-
A docs/dev/reports/PR_26124_069_report.md
5-
A docs/pr/PR_26124_069-palette-manager-left-accordionv2-cleanup/APPLY_PR.md
6-
A docs/pr/PR_26124_069-palette-manager-left-accordionv2-cleanup/BUILD_PR.md
7-
A docs/pr/PR_26124_069-palette-manager-left-accordionv2-cleanup/PLAN_PR.md
4+
A docs/dev/reports/PR_26124_070_report.md
5+
A docs/pr/PR_26124_070-palette-manager-css-dead-override-cleanup/APPLY_PR.md
6+
A docs/pr/PR_26124_070-palette-manager-css-dead-override-cleanup/BUILD_PR.md
7+
A docs/pr/PR_26124_070-palette-manager-css-dead-override-cleanup/PLAN_PR.md
8+
M tools/palette-manager-v2/paletteManagerV2.css
9+
?? tools/common.zip
10+
?? tools/palette-manager-v2.zip
811

912
# git diff --stat
1013
(no output)

docs/dev/reports/codex_review.diff

Lines changed: 162 additions & 104 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# APPLY_PR - PR_26124_070-palette-manager-css-dead-override-cleanup
2+
3+
## Summary
4+
Completed the Palette Manager V2 CSS dead override cleanup without changing visual behavior.
5+
6+
## Applied Changes
7+
- Removed `.palette-manager-v2__right-accordion--import`, whose closed-state declarations were already covered by shared accordionV2 rules.
8+
- Removed `.palette-manager-v2__right-accordion--import .accordion-v2__content`, which duplicated shared accordionV2 content declarations.
9+
- Removed `.palette-manager-v2__right-accordion--validation.is-open`, which duplicated the base validation accordion flex declaration.
10+
- Removed `.palette-manager-v2__panel--center .accordion-v2__content .palette-manager-v2__tile-grid`, which duplicated the base tile grid flex declaration and restated default `max-height: none`.
11+
- Preserved the append-only `.palette-manager-v2__pin-button--tile` override at EOF.
12+
13+
## Validation
14+
- CSS structural cleanup validation: PASS.
15+
- `git diff --check -- tools/palette-manager-v2/paletteManagerV2.css`: PASS with Git LF-to-CRLF warning for the CSS file.
16+
- `npm run test:workspace-v2`: FAIL, `package.json` does not define `test:workspace-v2`.
17+
- Full samples smoke test: skipped by instruction.
18+
19+
## Artifacts
20+
- Review diff: `docs/dev/reports/codex_review.diff`
21+
- Changed files: `docs/dev/reports/codex_changed_files.txt`
22+
- Delta ZIP: `tmp/PR_26124_070-palette-manager-css-dead-override-cleanup_delta.zip`
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# BUILD_PR - PR_26124_070-palette-manager-css-dead-override-cleanup
2+
3+
## Purpose
4+
Perform one scoped Palette Manager V2 CSS cleanup by removing only confirmed dead or duplicate override blocks from `paletteManagerV2.css`.
5+
6+
## Scope
7+
- `tools/palette-manager-v2/paletteManagerV2.css`
8+
- PR workflow docs and required review artifacts.
9+
10+
## Implementation
11+
1. Inspect `tools/palette-manager-v2/paletteManagerV2.css` and the shared accordionV2 CSS for direct duplicate coverage.
12+
2. Remove only these confirmed dead/duplicate blocks:
13+
- `.palette-manager-v2__right-accordion--import`
14+
- closed-state `flex`, `min-height`, and `overflow` are already covered by shared accordionV2 closed/base rules; open behavior remains in `.palette-manager-v2__right-accordion--import.is-open`.
15+
- `.palette-manager-v2__right-accordion--import .accordion-v2__content`
16+
- duplicates shared `.accordion-v2__content` `flex`, `min-height`, and `overflow` values.
17+
- `.palette-manager-v2__right-accordion--validation.is-open`
18+
- duplicates the base `.palette-manager-v2__right-accordion--validation` flex value.
19+
- `.palette-manager-v2__panel--center .accordion-v2__content .palette-manager-v2__tile-grid`
20+
- duplicates the base `.palette-manager-v2__tile-grid` flex value and only restates default `max-height: none`.
21+
3. Keep all active sizing/layout rules that are not fully duplicated.
22+
4. Keep the final append-only `.palette-manager-v2__pin-button--tile` override at EOF untouched.
23+
24+
## Boundaries
25+
- Do not modify HTML or JavaScript.
26+
- Do not refactor class names.
27+
- Do not merge rules.
28+
- Do not change layout, spacing, sizing, pin styling, or pin size.
29+
- Do not touch workspace/toolState/session behavior.
30+
- Do not touch sample JSON.
31+
- Do not modify `tools/shared`.
32+
- Do not add dependencies.
33+
34+
## Validation
35+
- Run a CSS structural syntax check.
36+
- Run targeted CSS cleanup validation confirming removed dead selectors are absent and the append-only pin override remains at EOF.
37+
- Run `git diff --check`.
38+
- Run `npm run test:workspace-v2`.
39+
- Skip the full samples smoke test.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# PLAN_PR - PR_26124_070-palette-manager-css-dead-override-cleanup
2+
3+
## Goal
4+
Remove confirmed duplicate, dead, or unreachable override blocks from Palette Manager V2 CSS without changing visual behavior.
5+
6+
## Scope
7+
- `tools/palette-manager-v2/paletteManagerV2.css`
8+
- PR workflow docs and required review artifacts.
9+
10+
## Boundaries
11+
- CSS only.
12+
- Do not modify HTML or JavaScript.
13+
- Do not refactor class names.
14+
- Do not merge rules.
15+
- Remove only confirmed duplicate/dead override blocks.
16+
- Keep the most recent/active rule when duplicates exist.
17+
- Keep the append-only `.palette-manager-v2__pin-button--tile` override at the bottom exactly in place.
18+
- Do not change layout, spacing, sizing, pin styling, or pin size.
19+
- Do not touch workspace/toolState/session behavior, sample JSON, `tools/shared`, schemas, or dependencies.
20+
21+
## Implementation Plan
22+
1. Inspect `tools/palette-manager-v2/paletteManagerV2.css`.
23+
2. Compare Palette Manager accordion overrides against shared `src/engine/theme/accordionV2/accordionV2.css`.
24+
3. Remove only CSS blocks confirmed to be inactive duplicates or obsolete patch remnants:
25+
- closed-state import accordion declarations already covered by shared accordionV2,
26+
- import accordion content declarations identical to shared accordionV2 content,
27+
- validation accordion open-state declarations identical to validation base declarations,
28+
- center tile-grid patch declarations already covered by the base tile grid/default CSS.
29+
4. Preserve active right-column sizing rules and the final append-only pin override.
30+
31+
## Playwright
32+
- Command: `npm run test:workspace-v2`
33+
- What Playwright validates: Workspace V2/tool lifecycle coverage remains unchanged by this Palette Manager V2 CSS-only cleanup.
34+
- Expected pass behavior: Workspace V2 validation remains green.
35+
- Expected fail behavior: missing script or Workspace V2 regression is reported.
36+
- Full samples smoke test: skipped by instruction.
37+
38+
## Manual Validation
39+
1. Open Palette Manager V2.
40+
2. Confirm left, center, and right accordion layout appears unchanged.
41+
3. Confirm User Palette and Sample Palette grids retain the same size and scrolling behavior.
42+
4. Confirm Palette JSON and Validation/Error Viewer sizing remains unchanged.
43+
5. Confirm pin styling and pin size are unchanged.

tools/common.zip

1.69 KB
Binary file not shown.

tools/palette-manager-v2.zip

25.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)