Skip to content

Commit 6b83ced

Browse files
committed
PR_26171_006 Emotion Profile management
1 parent 3dcb965 commit 6b83ced

9 files changed

Lines changed: 557 additions & 323 deletions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# PR_26171_006 Manual Validation Notes
2+
3+
- Confirmed targeted Playwright flow opens the Theme V2 Messages tool.
4+
- Confirmed seeded categories and emotion profiles load.
5+
- Confirmed a message can be created with the `Urgent` emotion profile.
6+
- Confirmed a message segment can be created with the same `Urgent` emotion profile.
7+
- Confirmed `Urgent` reports usage count `2`.
8+
- Confirmed referenced-profile deactivation is blocked through the Local API.
9+
- Confirmed referenced-profile deactivation is blocked through the UI and displays an actionable diagnostic.
10+
- Confirmed no delete behavior, TTS behavior, speech preview, voice provider adapter, runtime playback, or audio playback behavior was introduced.
11+
- Manual merge validation was not performed because `npm run test:workspace-v2` failed.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
PR_26171_006-message-emotion-profile-management validation
2+
3+
Branch:
4+
PASS pr/PR_26171_006-message-emotion-profile-management
5+
6+
Syntax:
7+
PASS node --check src/dev-runtime/messages/messages-sqlite-service.mjs
8+
PASS node --check toolbox/messages/messages.js
9+
PASS node --check tests/playwright/tools/MessagesTool.spec.mjs
10+
11+
Targeted API/SQLite:
12+
PASS direct service probe created a message and segment using Urgent, verified messageUsageCount=1, segmentUsageCount=1, usageCount=2, and verified referenced deactivation returns the expected 400 diagnostic.
13+
14+
Playwright:
15+
PASS npx playwright test tests/playwright/tools/MessagesTool.spec.mjs --project=playwright --workers=1 --reporter=list
16+
Result: 1 passed.
17+
18+
Workspace lane:
19+
FAIL npm run test:workspace-v2
20+
Failure file: tests/playwright/tools/RootToolsFutureState.spec.mjs
21+
Failures:
22+
- Toolbox accordion control-card count was 0.
23+
- Header alphabetical expectation failed around Game Hub/Game Journey ordering.
24+
- Non-Messages pages reported failed requests to session, platform banner, registry, and toolbox constants APIs.
25+
26+
Whitespace:
27+
PASS git diff --check on touched implementation/test files. CRLF warnings only.
28+
29+
Disposition:
30+
BLOCKED. PR_006 implementation is not merged because required workspace-v2 validation failed outside the Messages scope.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# PR_26171_006-message-emotion-profile-management
2+
3+
## Branch Validation
4+
5+
- Branch: `pr/PR_26171_006-message-emotion-profile-management`
6+
- Source: created after `main` contained commit `3dcb965a3`
7+
- Status: PASS for branch setup; implementation branch remains unmerged because required workspace validation failed.
8+
9+
## Requirement Checklist
10+
11+
- PASS: Emotion profile payloads expose `messageUsageCount`, `segmentUsageCount`, `usageCount`, and `references`.
12+
- PASS: Usage counts are computed from `messages_records.emotionProfileKey` and `messages_segments.emotionProfileKey`.
13+
- PASS: Referenced emotion profiles cannot be deactivated.
14+
- PASS: Blocked deactivation shows an actionable API/UI diagnostic.
15+
- PASS: Emotion Profiles table displays usage count.
16+
- PASS: Existing add/edit/Active behavior is preserved for unreferenced profiles.
17+
- PASS: No delete endpoint was added.
18+
- PASS: No Text To Speech, speech preview, voice adapter, runtime playback, or audio behavior was added.
19+
- PASS: Theme V2 rules were preserved; no inline CSS, style block, inline script, or inline event handler was introduced.
20+
- FAIL: Required `npm run test:workspace-v2` lane failed in existing `RootToolsFutureState.spec.mjs` coverage outside the Messages tool.
21+
22+
## Validation Lane Report
23+
24+
- PASS: `node --check src/dev-runtime/messages/messages-sqlite-service.mjs`
25+
- PASS: `node --check toolbox/messages/messages.js`
26+
- PASS: `node --check tests/playwright/tools/MessagesTool.spec.mjs`
27+
- PASS: Direct SQLite/API usage-count and referenced-deactivation probe.
28+
- PASS: `npx playwright test tests/playwright/tools/MessagesTool.spec.mjs --project=playwright --workers=1 --reporter=list`
29+
- PASS: `git diff --check -- src/dev-runtime/messages/messages-sqlite-service.mjs toolbox/messages/index.html toolbox/messages/messages.js tests/playwright/tools/MessagesTool.spec.mjs`
30+
- FAIL: `npm run test:workspace-v2`
31+
32+
## Workspace-V2 Failure Summary
33+
34+
`npm run test:workspace-v2` failed in `tests/playwright/tools/RootToolsFutureState.spec.mjs`:
35+
36+
- `root tools surface links current tool pages without old_* routes`: Toolbox accordion `.control-card` count was `0`.
37+
- `common header renders primary navigation order across active pages`: existing alphabetical assertion expected `Game Hub` before `Game Journey`.
38+
- `learn wireframe pages load with shared Theme V2 structure`: failed requests to `/api/session/current` and `/api/platform-settings/banner`.
39+
- `tool template future-state page loads from root Theme V2 paths`: failed requests to `/api/session/current`, `/api/toolbox/registry/snapshot`, and `/api/platform-settings/banner`.
40+
- `representative active tool pages align center cleanup and registry group colors`: failed requests to toolbox constants, session, platform banner, and registry APIs.
41+
42+
These failures are outside the PR_006 Messages emotion profile scope and were not fixed in this branch.
43+
44+
## Manual Validation Notes
45+
46+
- The Messages Playwright path creates a message using the `Urgent` profile and a segment using the same profile.
47+
- The `Urgent` profile row displays usage count `2`.
48+
- API deactivation of referenced `Urgent` returns HTTP 400 with the expected diagnostic.
49+
- UI deactivation of referenced `Urgent` shows the expected diagnostic and leaves the profile Active.
50+
51+
## Samples Decision
52+
53+
- Full samples smoke was not run.
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
docs_build/dev/reports/codex_changed_files.txt
1+
docs_build/dev/reports/PR_26171_006-message-emotion-profile-management-manual-validation.md
2+
docs_build/dev/reports/PR_26171_006-message-emotion-profile-management-validation.txt
3+
docs_build/dev/reports/PR_26171_006-message-emotion-profile-management.md
4+
docs_build/dev/reports/codex_changed_files.txt
25
docs_build/dev/reports/codex_review.diff
3-
docs_build/dev/reports/PR_26171_003-game-journey-friendly-descriptions.md
4-
docs_build/dev/reports/PR_26171_003-game-journey-friendly-descriptions-branch-validation.md
5-
docs_build/dev/reports/PR_26171_003-game-journey-friendly-descriptions-manual-validation.md
6-
docs_build/dev/reports/PR_26171_003-game-journey-friendly-descriptions-requirements-checklist.md
7-
docs_build/dev/reports/PR_26171_003-game-journey-friendly-descriptions-validation-lane-report.md
8-
tests/playwright/tools/RootToolsFutureState.spec.mjs
9-
tests/playwright/tools/ToolboxRoutePages.spec.mjs
10-
toolbox/tools-page-accordions.js
6+
src/dev-runtime/messages/messages-sqlite-service.mjs
7+
tests/playwright/tools/MessagesTool.spec.mjs
8+
toolbox/messages/index.html
9+
toolbox/messages/messages.js

0 commit comments

Comments
 (0)