Skip to content

Commit fbab639

Browse files
author
DavidQ
committed
Move Palette Manager V2 JSON actions into top menu and hide used-tag delete controls - PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility
1 parent 57f986e commit fbab639

12 files changed

Lines changed: 1158 additions & 357 deletions

File tree

docs/dev/codex_commands.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Codex Commands - PR_26124_053-palette-manager-tag-delete-and-sort-ui
1+
# Codex Commands - PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility
22

33
## Workflow
44
- Read `docs/dev/PROJECT_INSTRUCTIONS.md`.
55
- Used `.codex/skills/repo-build/SKILL.md`.
6-
- Created `docs/pr/PR_26124_053-palette-manager-tag-delete-and-sort-ui/PLAN_PR.md`.
7-
- Created `docs/pr/PR_26124_053-palette-manager-tag-delete-and-sort-ui/BUILD_PR.md`.
6+
- Created `docs/pr/PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility/PLAN_PR.md`.
7+
- Created `docs/pr/PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility/BUILD_PR.md`.
88
- Updated Palette Manager V2 only.
9-
- Created `docs/pr/PR_26124_053-palette-manager-tag-delete-and-sort-ui/APPLY_PR.md`.
9+
- Created `docs/pr/PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility/APPLY_PR.md`.
1010

1111
## Validation Commands
1212
- `node --check tools/palette-manager-v2/controls/PaletteEditorControl.js`
13-
- `node --check tools/palette-manager-v2/controls/UserPaletteControl.js`
1413
- `node --check tools/palette-manager-v2/modules/PaletteManagerApp.js`
15-
- Targeted served-browser Palette Manager V2 tag delete, Tag sort, and compact source-control check using Playwright from Node.
14+
- `node --check tools/palette-manager-v2/controls/PaletteImportExportControl.js`
15+
- Targeted served-browser Palette Manager V2 menu JSON action and tag delete visibility check using Playwright from Node.
1616
- `git diff --check`
1717
- `git diff --cached --check`
1818
- `npm run test:workspace-v2`
1919
- `npm run codex:review-artifacts`
20-
- Python `zipfile` packaging for `tmp/PR_26124_053-palette-manager-tag-delete-and-sort-ui_delta.zip`
20+
- Python `zipfile` packaging for `tmp/PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility_delta.zip`
2121

2222
## Validation Outcome
2323
- JavaScript syntax checks: PASS.

docs/dev/commit_comment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add Palette Manager tag delete and Tag sort UI - PR_26124_053-palette-manager-tag-delete-and-sort-ui
1+
Move Palette Manager JSON actions to menu and hide used tag deletes - PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# PR_26124_054 Report - Palette Manager Menu JSON Actions and Tag Delete Visibility
2+
3+
## Scope
4+
- Updated Palette Manager V2 only.
5+
- Added PR workflow docs and review artifacts.
6+
- Did not modify workspace/toolState/session behavior.
7+
- Did not modify sample JSON.
8+
- Did not modify `tools/shared`.
9+
- Did not modify shared accordionV2.
10+
- Did not add dependencies.
11+
12+
## Implementation
13+
- Added a `menuSample` nav immediately before the Palette Manager V2 app shell.
14+
- Moved Import JSON, Copy JSON, Export JSON, and the hidden import input into `menuSample`.
15+
- Preserved the existing button/input IDs so `PaletteImportExportControl` behavior remains unchanged.
16+
- Renamed the right-column JSON accordion to `Palette JSON`.
17+
- Removed duplicate JSON action buttons from the Palette JSON accordion.
18+
- Added `isTagUsedByUserPalette(tag)` to hide delete controls while a tag is still used.
19+
- Preserved tag-toggle behavior for adding/removing tags from the selected swatch.
20+
21+
## Validation
22+
- `node --check tools/palette-manager-v2/controls/PaletteEditorControl.js`: PASS.
23+
- `node --check tools/palette-manager-v2/modules/PaletteManagerApp.js`: PASS.
24+
- `node --check tools/palette-manager-v2/controls/PaletteImportExportControl.js`: PASS.
25+
- Targeted served-browser Palette Manager V2 validation: PASS.
26+
- `git diff --check`: PASS with Git LF-to-CRLF warnings for changed HTML/CSS files.
27+
- `npm run test:workspace-v2`: FAIL. The repository `package.json` has no `test:workspace-v2` script.
28+
- Full samples smoke test: skipped by instruction.
29+
30+
## Targeted Browser Coverage
31+
- Confirmed `menuSample` appears immediately above the app shell.
32+
- Confirmed JSON action buttons exist only in `menuSample`.
33+
- Confirmed Palette JSON contains the preview and no duplicate action buttons.
34+
- Confirmed Import JSON still imports a palette file.
35+
- Confirmed Copy JSON still writes palette JSON through the clipboard path.
36+
- Confirmed Export JSON still downloads `tools.palette-browser.json`.
37+
- Confirmed used tags hide the delete `x`.
38+
- Confirmed unused tags show the delete `x` and can be deleted.
Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
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_053_report.md
5-
M docs/dev/reports/codex_changed_files.txt
4+
A docs/dev/reports/PR_26124_054_report.md
5+
MM docs/dev/reports/codex_changed_files.txt
66
MM docs/dev/reports/codex_review.diff
7-
A docs/pr/PR_26124_053-palette-manager-tag-delete-and-sort-ui/APPLY_PR.md
8-
A docs/pr/PR_26124_053-palette-manager-tag-delete-and-sort-ui/BUILD_PR.md
9-
A docs/pr/PR_26124_053-palette-manager-tag-delete-and-sort-ui/PLAN_PR.md
7+
A docs/pr/PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility/APPLY_PR.md
8+
A docs/pr/PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility/BUILD_PR.md
9+
A docs/pr/PR_26124_054-palette-manager-menu-json-actions-and-tag-delete-visibility/PLAN_PR.md
1010
M tools/palette-manager-v2/controls/PaletteEditorControl.js
11-
M tools/palette-manager-v2/controls/UserPaletteControl.js
1211
M tools/palette-manager-v2/index.html
1312
M tools/palette-manager-v2/modules/PaletteManagerApp.js
1413
M tools/palette-manager-v2/paletteManagerV2.css
1514

1615
# git diff --cached --stat
17-
docs/dev/codex_commands.md | 16 +-
16+
docs/dev/codex_commands.md | 14 +-
1817
docs/dev/commit_comment.txt | 2 +-
19-
docs/dev/reports/PR_26124_053_report.md | 38 ++
20-
docs/dev/reports/codex_changed_files.txt | 31 +-
21-
docs/dev/reports/codex_review.diff | 635 ++++++++++-----------
22-
.../APPLY_PR.md | 29 +
23-
.../BUILD_PR.md | 35 ++
24-
.../PLAN_PR.md | 45 ++
25-
.../controls/PaletteEditorControl.js | 17 +-
26-
.../controls/UserPaletteControl.js | 2 +-
27-
tools/palette-manager-v2/index.html | 6 +-
28-
.../modules/PaletteManagerApp.js | 64 ++-
29-
tools/palette-manager-v2/paletteManagerV2.css | 28 +
30-
13 files changed, 586 insertions(+), 362 deletions(-)
18+
docs/dev/reports/PR_26124_054_report.md | 38 ++
19+
docs/dev/reports/codex_changed_files.txt | 34 +-
20+
docs/dev/reports/codex_review.diff | 512 +++++++++------------
21+
.../APPLY_PR.md | 28 ++
22+
.../BUILD_PR.md | 37 ++
23+
.../PLAN_PR.md | 43 ++
24+
.../controls/PaletteEditorControl.js | 24 +-
25+
tools/palette-manager-v2/index.html | 20 +-
26+
.../modules/PaletteManagerApp.js | 15 +-
27+
tools/palette-manager-v2/paletteManagerV2.css | 26 ++
28+
12 files changed, 437 insertions(+), 356 deletions(-)

0 commit comments

Comments
 (0)