Skip to content

Commit e87abb9

Browse files
committed
Split Palette user-defined swatches from project color tags - PR_26156_176-palette-tag-and-editor-split
1 parent 2afdad9 commit e87abb9

7 files changed

Lines changed: 325 additions & 95 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# PR_26156_176 Palette Tag and Editor Split Report
2+
3+
## Result
4+
PASS
5+
6+
## Summary
7+
- Split selected Palette Colors tag editing from user-defined swatch base-value editing.
8+
- Swatch Editor now mirrors the selected project palette swatch with disabled Symbol, Hex, and Name fields, and only enables custom Tags when a project palette swatch is selected.
9+
- User Defined Swatch now owns Symbol, Hex, and Name creation/update controls and does not expose Tags.
10+
- Removed Swatch Editor Add Swatch, Update Selected, Remove Selected, and Clear Form actions.
11+
- Project palette tags are persisted only on palette color records through explicit user tag entry or tag deletion.
12+
13+
## Tag Behavior
14+
- Manual Add Swatch starts with empty tags even if any tag text exists elsewhere.
15+
- Update Selected preserves existing project palette tags and does not read tag input.
16+
- Source palette pins, Pin All, and harmony pins continue to add user palette colors with empty tags.
17+
- Rendered tags use existing compact Theme V2 button styling inside an action group.
18+
- Clicking a rendered tag removes only that tag from the selected project palette color.
19+
- Pressing Enter in the tag input adds only the normalized user-entered tag.
20+
21+
## Swatch Editor
22+
- Symbol, Hex, and Name are disabled/read-only mirror fields.
23+
- Tags are enabled only when a project palette color is selected.
24+
- With no selected swatch, Symbol, Hex, Name, and Tags are blank and disabled.
25+
- No stale selected swatch data remains after removing the selected palette color through the pin/dot behavior.
26+
27+
## User Defined Swatch
28+
- Added a new User Defined Swatch accordion copied from the previous editor structure.
29+
- Contains Symbol, Hex, and Name only.
30+
- Keeps Add Swatch, Update Selected, and Clear Form actions for base swatch values.
31+
- Does not contain Tags or Remove Selected.
32+
33+
## Theme V2
34+
- No new CSS was added.
35+
- No Theme V2 gap was identified; existing form, action-group, and compact button classes were sufficient.
36+
37+
## Validation
38+
- `node --check toolbox/colors/colors.js`
39+
- PASS
40+
- `node --check toolbox/colors/palette-workspace-repository.js`
41+
- PASS
42+
- `node --check tests/playwright/tools/PaletteToolMockRepository.spec.mjs`
43+
- PASS
44+
- `rg "style=|<style|onclick|onchange|oninput|onsubmit" toolbox/colors/index.html toolbox/colors/colors.js toolbox/colors/palette-workspace-repository.js tests/playwright/tools/PaletteToolMockRepository.spec.mjs`
45+
- PASS, no matches
46+
- `rg "readEditorForm|fillEditorForm|clearEditorForm|validateEditor|tagsFromText|elements\\.remove|data-palette-remove" toolbox/colors tests/playwright/tools/PaletteToolMockRepository.spec.mjs`
47+
- PASS, no matches
48+
- `rg "DEFAULT_SOURCE_PALETTES" toolbox/colors tests/playwright/tools/PaletteToolMockRepository.spec.mjs`
49+
- PASS, no matches
50+
- `npx playwright test tests/playwright/tools/PaletteToolMockRepository.spec.mjs --project=playwright --workers=1 --reporter=list`
51+
- PASS, 3 tests
52+
- `npm run test:playwright:static`
53+
- PASS
54+
55+
## Verification Coverage
56+
- Copied/pinned source colors do not inherit source tags.
57+
- Harmony-pinned colors do not inherit harmony/source tags.
58+
- User tags render side by side and click-to-delete updates the project palette color record.
59+
- Enter adds a custom user tag only.
60+
- Swatch Editor has no Add, Update, Remove, or Clear actions.
61+
- Swatch Editor only allows tags when a Palette Colors swatch is selected.
62+
- Symbol, Hex, and Name are disabled in Swatch Editor.
63+
- Blank/disabled no-selection state is visible after selected color removal.
64+
- User Defined Swatch accordion exists with Symbol, Hex, and Name but no Tags.
65+
66+
## Skipped
67+
- Full samples smoke was not run, per BUILD instruction.

docs_build/dev/reports/playwright_v8_coverage_report.txt

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

1919
Changed runtime JS files covered:
20-
(87%) toolbox/colors/palette-workspace-repository.js - executed lines 1150/1150; executed functions 111/128
21-
(95%) toolbox/colors/colors.js - executed lines 734/734; executed functions 73/77
20+
(87%) toolbox/colors/palette-workspace-repository.js - executed lines 1190/1190; executed functions 113/130
21+
(95%) toolbox/colors/colors.js - executed lines 776/776; executed functions 75/79
2222

2323
Files with executed line/function counts where available:
2424
(65%) toolbox/project-workspace/project-workspace-mock-repository.js - executed lines 402/402; executed functions 20/31
2525
(75%) toolbox/toolRegistry.js - executed lines 1754/1754; executed functions 27/36
2626
(80%) assets/theme-v2/js/gamefoundry-partials.js - executed lines 205/205; executed functions 16/20
2727
(87%) assets/theme-v2/js/tool-display-mode.js - executed lines 201/201; executed functions 13/15
28-
(87%) toolbox/colors/palette-workspace-repository.js - executed lines 1150/1150; executed functions 111/128
29-
(95%) toolbox/colors/colors.js - executed lines 734/734; executed functions 73/77
28+
(87%) toolbox/colors/palette-workspace-repository.js - executed lines 1190/1190; executed functions 113/130
29+
(95%) toolbox/colors/colors.js - executed lines 776/776; executed functions 75/79
3030
(100%) toolbox/colors/palette-source-mock-db.js - executed lines 927/927; executed functions 6/6
3131

3232
Uncovered or low-coverage changed JS files:
3333
(100%) none - no low-coverage changed runtime JS files
3434

3535
Changed JS files considered:
3636
(0%) tests/playwright/tools/PaletteToolMockRepository.spec.mjs - changed JS file not collected as browser runtime coverage
37-
(0%) tests/playwright/tools/ToolDisplayModeNavigation.spec.mjs - changed JS file not collected as browser runtime coverage
37+
(0%) tests/playwright/tools/ToolCenterFullscreenAccordion.spec.mjs - changed JS file not collected as browser runtime coverage
3838
(87%) toolbox/colors/palette-workspace-repository.js - changed JS file with browser V8 coverage
3939
(95%) toolbox/colors/colors.js - changed JS file with browser V8 coverage
Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PR_26156_175 Testing Lane Execution Report
1+
# PR_26156_176 Testing Lane Execution Report
22

33
## Result
44
PASS
@@ -10,12 +10,12 @@ PASS
1010
- PASS
1111
- `node --check tests/playwright/tools/PaletteToolMockRepository.spec.mjs`
1212
- PASS
13-
- `node --check tests/playwright/tools/ToolCenterFullscreenAccordion.spec.mjs`
14-
- PASS
15-
- `rg "style=|<style|onclick|onchange|oninput|onsubmit" toolbox/colors/index.html toolbox/colors/colors.js toolbox/colors/palette-workspace-repository.js assets/theme-v2/css/layout.css assets/theme-v2/css/accordion.css assets/theme-v2/css/panels.css tests/playwright/tools/PaletteToolMockRepository.spec.mjs tests/playwright/tools/ToolCenterFullscreenAccordion.spec.mjs`
13+
- `rg "style=|<style|onclick|onchange|oninput|onsubmit" toolbox/colors/index.html toolbox/colors/colors.js toolbox/colors/palette-workspace-repository.js tests/playwright/tools/PaletteToolMockRepository.spec.mjs`
14+
- PASS, no matches
15+
- `rg "readEditorForm|fillEditorForm|clearEditorForm|validateEditor|tagsFromText|elements\\.remove|data-palette-remove" toolbox/colors tests/playwright/tools/PaletteToolMockRepository.spec.mjs`
16+
- PASS, no matches
17+
- `rg "DEFAULT_SOURCE_PALETTES" toolbox/colors tests/playwright/tools/PaletteToolMockRepository.spec.mjs`
1618
- PASS, no matches
17-
- `npx playwright test tests/playwright/tools/ToolCenterFullscreenAccordion.spec.mjs --project=playwright --workers=1 --reporter=list`
18-
- PASS, 1 test
1919
- `npx playwright test tests/playwright/tools/PaletteToolMockRepository.spec.mjs --project=playwright --workers=1 --reporter=list`
2020
- PASS, 3 tests
2121
- `npm run test:playwright:static`
@@ -24,37 +24,36 @@ PASS
2424
- PASS
2525

2626
## Required Lanes
27-
- Targeted shared Tool Center fullscreen UI lane: PASS.
2827
- Targeted Palette Tool runtime/UI lane: PASS.
2928
- Changed-file/static validation: PASS.
3029

3130
## Playwright Coverage
32-
- Palette fullscreen center panel overflow remains hidden so page-level center scrolling is disabled: PASS.
33-
- Palette Active Project Palette and Source Palette Browser split fullscreen vertical space evenly when both are expanded: PASS.
34-
- Palette swatch wrappers scroll while summaries and control rows stay fixed: PASS.
35-
- Publish Tool Center direct accordions split fullscreen vertical space evenly when both are expanded: PASS.
36-
- Publish Tool Center direct accordion body scrolls while summary remains fixed: PASS.
37-
- Collapsing one Publish Tool Center accordion expands the remaining open accordion: PASS.
38-
- Palette selected summary omits the swatch symbol: PASS.
3931
- Source-pinned user Palette Colors start with empty tags: PASS.
4032
- Harmony-pinned user Palette Colors start with empty tags: PASS.
41-
- Harmony swatches use red/green pin state and click-to-add/click-to-remove behavior: PASS.
42-
- Harmony Add All skips duplicates: PASS.
33+
- Manual Add Swatch starts user tags empty: PASS.
34+
- Rendered user tags appear side by side: PASS.
35+
- Clicking a rendered tag deletes it from the selected project palette color: PASS.
36+
- Pressing Enter adds only the user-entered tag: PASS.
37+
- Swatch Editor has disabled Symbol, Hex, and Name mirror fields: PASS.
38+
- Swatch Editor enables Tags only when a Palette Colors swatch is selected: PASS.
39+
- Swatch Editor has no Add, Update, Remove, or Clear actions: PASS.
40+
- User Defined Swatch has Symbol, Hex, and Name and no Tags: PASS.
41+
- Selected swatch removal clears selected editor fields and disables Tags: PASS.
4342

4443
## Impacted Lane
4544
- Palette Tool runtime/UI lane.
46-
- Shared Tool Center fullscreen UI lane.
47-
- Theme V2 static validation for reusable fullscreen accordion and Tool Center panel layout classes.
45+
- Changed-file/static validation lane.
4846

4947
## Skipped Lanes
5048
- Full samples smoke was skipped by BUILD instruction.
51-
- Broader tool lanes were skipped because changes are confined to Palette Tool swatch/harmony behavior, reusable Theme V2 Tool Center fullscreen layout, and targeted specs for those surfaces.
49+
- Shared Tool Center fullscreen UI lane was skipped because PR176 did not modify shared Tool Center or Theme V2 layout behavior.
50+
- Broader tool lanes were skipped because changes are confined to Palette Tool tag/editor behavior and the targeted Palette spec covers the changed runtime/UI paths.
5251

5352
## Not Run
5453
- Full samples smoke was not run, per BUILD instruction.
5554

5655
## Notes
57-
- A broader exploratory run of `tests/playwright/tools/ToolDisplayModeNavigation.spec.mjs` failed existing identity-row copy expectations unrelated to this PR. The required shared Tool Center fullscreen lane was covered by `tests/playwright/tools/ToolCenterFullscreenAccordion.spec.mjs`, which passed.
56+
- Static validation generated companion reports during the run; non-required generated companion report updates were reverted so the PR remains scoped to the requested report artifacts.
5857

5958
## Coverage Artifact
6059
- Final V8 coverage artifact: `docs_build/dev/reports/playwright_v8_coverage_report.txt`.

0 commit comments

Comments
 (0)