Skip to content

Vue 3 migration: Phase 8 — Cues & Sessions config tabs#1045

Merged
Tim020 merged 3 commits into
feature/vue3-migrationfrom
feature/vue3-migration-phase-8
May 17, 2026
Merged

Vue 3 migration: Phase 8 — Cues & Sessions config tabs#1045
Tim020 merged 3 commits into
feature/vue3-migrationfrom
feature/vue3-migration-phase-8

Conversation

@Tim020
Copy link
Copy Markdown
Contributor

@Tim020 Tim020 commented May 17, 2026

Summary

  • Ports Cues config tab: cue types table with CRUD (new/edit/delete), import from other shows, and per-scene cue count stats table
  • Ports Sessions config tab: session list with Start/Stop Session buttons, run time calculation, script revision label, tag pills + dropdown picker; tag CRUD with new/edit/delete/import
  • Adds useCueDisplay composable (port of V2 cueDisplayMixin) — cuePrefix, cueLabel, cueBackgroundColour
  • Adds scriptRevisions state, scriptRevisionById getter, and getScriptRevisions() action to stores/show.ts
  • Adds contrast-color type declarations to shims-vue.d.ts
  • "Cue Configuration" sub-tab (CueEditor — requires script infrastructure) deferred to Phase 11; rendered as PlaceholderView
  • Wires show-config-cues and show-sessions routes (replacing PlaceholderView)

Test plan

  • /ui-new/show-config/cues → Cue Types tab renders; add/edit/delete/import cue types work; colour swatch displays; Cue Counts tab shows per-scene stats table; Cue Configuration tab shows placeholder
  • /ui-new/show-config/sessions → Sessions tab: session list renders with start time, run time, revision label, tag pills; Start Session / Stop Session buttons visible for executors; Tags tab: new/edit/delete/import session tags work
  • Delete confirmations use app confirm dialog (not browser native)
  • Tag assignment via SessionTagDropdown auto-saves immediately on checkbox toggle
  • npm run build, npm run typecheck, npm run ci-lint all pass

🤖 Generated with Claude Code

Port ConfigCues (cue types CRUD + import + counts stats) and ConfigSessions
(session list with start/stop + session tag CRUD + import) to Vue 3. Adds
useCueDisplay composable, scriptRevisions state + getter + action to show store,
and contrast-color type declarations. Cue Configuration tab deferred to Phase 11.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 17, 2026

Client V3 Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 9139357. ± Comparison against base commit 4792a8f.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 17, 2026

Client Test Results

128 tests  ±0   128 ✅ ±0   0s ⏱️ ±0s
  6 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 9139357. ± Comparison against base commit 4792a8f.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 17, 2026

Python Test Results

  1 files  ±0    1 suites  ±0   1m 29s ⏱️ -4s
603 tests ±0  603 ✅ ±0  0 💤 ±0  0 ❌ ±0 
608 runs  ±0  608 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9139357. ± Comparison against base commit 4792a8f.

♻️ This comment has been updated with latest results.

Tim020 and others added 2 commits May 17, 2026 19:39
getScriptRevisions was storing the raw API response object instead of
response.revisions. The contrast-color library's standalone function uses
`this.namedColors` internally which is undefined in strict ESM — replaced
with an inline YIQ formula in utils.ts used by all session + cue components.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
WS ACTION names (SCREAMING_SNAKE_CASE) are automatically routed to the
matching camelCase action on any instantiated Pinia store, so adding a
new store action is all that's needed to handle the corresponding WS
event — no registration or map entries required.

Only four special cases remain for actions that can't follow the naming
convention: TOKEN_REFRESH, SHOW_CHANGED, USER_LOGOUT, WS_SETTINGS_CHANGED.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@Tim020 Tim020 merged commit ac335d2 into feature/vue3-migration May 17, 2026
17 checks passed
@Tim020 Tim020 deleted the feature/vue3-migration-phase-8 branch May 17, 2026 20:09
@Tim020 Tim020 linked an issue May 17, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate front end to Vue.js 3.x

1 participant