Skip to content

Commit a0e799f

Browse files
author
DavidQ
committed
Add Sample Palette Pin All and remove source Tag sort - PR_26124_057-palette-manager-source-pin-all
1 parent 45561df commit a0e799f

12 files changed

Lines changed: 1361 additions & 407 deletions

File tree

docs/dev/codex_commands.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
1-
# Codex Commands - PR_26124_056-palette-manager-sort-toggle-direction
1+
# Codex Commands - PR_26124_057-palette-manager-source-pin-all
22

33
## Workflow
44
- Read `docs/dev/PROJECT_INSTRUCTIONS.md`.
55
- Used `.codex/skills/repo-build/SKILL.md`.
6-
- Created `docs/pr/PR_26124_056-palette-manager-sort-toggle-direction/PLAN_PR.md`.
7-
- Created `docs/pr/PR_26124_056-palette-manager-sort-toggle-direction/BUILD_PR.md`.
6+
- Created `docs/pr/PR_26124_057-palette-manager-source-pin-all/PLAN_PR.md`.
7+
- Created `docs/pr/PR_26124_057-palette-manager-source-pin-all/BUILD_PR.md`.
88
- Updated Palette Manager V2 only.
9-
- Created `docs/pr/PR_26124_056-palette-manager-sort-toggle-direction/APPLY_PR.md`.
9+
- Created `docs/pr/PR_26124_057-palette-manager-source-pin-all/APPLY_PR.md`.
1010

1111
## Validation Commands
1212
- `node --check tools/palette-manager-v2/modules/PaletteManagerApp.js`
13-
- `node --check tools/palette-manager-v2/controls/UserPaletteControl.js`
1413
- `node --check tools/palette-manager-v2/controls/SourcePaletteBrowserControl.js`
15-
- Targeted served-browser Palette Manager V2 sort toggle and direction indicator check using Playwright from Node.
14+
- `node --check tools/palette-manager-v2/controls/UserPaletteControl.js`
15+
- Targeted served-browser Palette Manager V2 source sort and `Pin All` validation using Playwright from Node.
16+
- Targeted served-browser `Pin All` source dropdown placement and size validation using Playwright from Node.
1617
- `git diff --check`
1718
- `npm run test:workspace-v2`
1819
- `git diff --cached --check`
1920
- `npm run codex:review-artifacts`
20-
- Python `zipfile` packaging for `tmp/PR_26124_056-palette-manager-sort-toggle-direction_delta.zip`
21+
- Python `zipfile` packaging for `tmp/PR_26124_057-palette-manager-source-pin-all_delta_2.zip`
2122

2223
## Validation Outcome
2324
- JavaScript syntax checks: PASS.
2425
- Targeted served-browser Palette Manager V2 behavior check: PASS.
25-
- `git diff --check`: PASS with Git LF-to-CRLF warnings for changed HTML/CSS files already in the working tree.
26+
- Targeted served-browser `Pin All` placement and size check: PASS.
27+
- `git diff --check`: PASS with Git LF-to-CRLF warning for `tools/palette-manager-v2/index.html`.
2628
- `git diff --cached --check`: PASS.
2729
- `npm run test:workspace-v2`: FAILED because the script is missing from `package.json`.
2830
- Review artifacts: generated.

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 sort direction toggles - PR_26124_056-palette-manager-sort-toggle-direction
1+
Add Palette Manager source Pin All action - PR_26124_057-palette-manager-source-pin-all
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# PR_26124_057-palette-manager-source-pin-all Report
2+
3+
## Summary
4+
Palette Manager V2 now supports a Sample Palette Swatch `Pin All` action for the current filtered source swatch view, and Sample Palette Swatch sort no longer includes `Tag`.
5+
6+
## Files Changed
7+
- `docs/pr/PR_26124_057-palette-manager-source-pin-all/PLAN_PR.md`
8+
- `docs/pr/PR_26124_057-palette-manager-source-pin-all/BUILD_PR.md`
9+
- `docs/pr/PR_26124_057-palette-manager-source-pin-all/APPLY_PR.md`
10+
- `docs/dev/codex_commands.md`
11+
- `docs/dev/commit_comment.txt`
12+
- `docs/dev/reports/PR_26124_057_report.md`
13+
- `tools/palette-manager-v2/index.html`
14+
- `tools/palette-manager-v2/controls/SourcePaletteBrowserControl.js`
15+
- `tools/palette-manager-v2/modules/PaletteManagerApp.js`
16+
- `tools/palette-manager-v2/paletteManagerV2.css`
17+
18+
## Validation
19+
- JavaScript syntax checks: PASS.
20+
- Targeted served-browser Palette Manager V2 validation: PASS.
21+
- Targeted served-browser `Pin All` source dropdown placement and size validation: PASS.
22+
- `git diff --check`: PASS with Git LF-to-CRLF warning for `tools/palette-manager-v2/index.html`.
23+
- `npm run test:workspace-v2`: FAIL because the script is missing from `package.json`.
24+
- Full samples smoke test: skipped by instruction.
25+
26+
## Playwright Coverage
27+
Targeted served-browser validation confirmed:
28+
- Sample Palette Swatch sort keys are Hue, Saturation, Brightness, and Name.
29+
- User Palette sort keys still include Tag.
30+
- `Pin All` respects the current source search/filter.
31+
- Duplicate `Pin All` attempts are skipped and counted.
32+
- Source pins export without tags.
33+
- Individual source pin/unpin behavior still works.
34+
- `Pin All` renders to the right of the Source palette dropdown with a compact local size bump.
35+
36+
## Manual Test
37+
1. Open `tools/palette-manager-v2/index.html` through a local server.
38+
2. Confirm Sample Palette Swatch sort omits Tag.
39+
3. Confirm User Palette sort still includes Tag.
40+
4. Filter source swatches, click `Pin All`, and confirm only visible swatches are pinned.
41+
5. Click `Pin All` again and confirm the status reports duplicates skipped.
42+
6. Export JSON and confirm pinned source swatches do not include tags.
43+
7. Confirm `Pin All` appears to the right of the Source palette dropdown.
Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
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_056_report.md
4+
A docs/dev/reports/PR_26124_057_report.md
55
M docs/dev/reports/codex_changed_files.txt
6-
MM docs/dev/reports/codex_review.diff
7-
A docs/pr/PR_26124_056-palette-manager-sort-toggle-direction/APPLY_PR.md
8-
A docs/pr/PR_26124_056-palette-manager-sort-toggle-direction/BUILD_PR.md
9-
A docs/pr/PR_26124_056-palette-manager-sort-toggle-direction/PLAN_PR.md
6+
M docs/dev/reports/codex_review.diff
7+
A docs/pr/PR_26124_057-palette-manager-source-pin-all/APPLY_PR.md
8+
A docs/pr/PR_26124_057-palette-manager-source-pin-all/BUILD_PR.md
9+
A docs/pr/PR_26124_057-palette-manager-source-pin-all/PLAN_PR.md
1010
M tools/palette-manager-v2/controls/SourcePaletteBrowserControl.js
11-
M tools/palette-manager-v2/controls/UserPaletteControl.js
12-
M tools/palette-manager-v2/index.html
11+
M tools/palette-manager-v2/index.html
1312
M tools/palette-manager-v2/modules/PaletteManagerApp.js
14-
M tools/palette-manager-v2/paletteManagerV2.css
13+
M tools/palette-manager-v2/paletteManagerV2.css
1514

16-
# git diff --cached --stat
17-
docs/dev/codex_commands.md | 20 +-
18-
docs/dev/commit_comment.txt | 2 +-
19-
docs/dev/reports/PR_26124_056_report.md | 36 ++
20-
docs/dev/reports/codex_changed_files.txt | 31 +-
21-
docs/dev/reports/codex_review.diff | 537 ++++++++++++++++-----
22-
.../APPLY_PR.md | 29 ++
23-
.../BUILD_PR.md | 40 ++
24-
.../PLAN_PR.md | 44 ++
25-
.../controls/SourcePaletteBrowserControl.js | 17 +-
26-
.../controls/UserPaletteControl.js | 17 +-
27-
.../modules/PaletteManagerApp.js | 100 +++-
28-
11 files changed, 675 insertions(+), 198 deletions(-)
15+
# git diff --stat
16+
(no output)

0 commit comments

Comments
 (0)