Skip to content

Fix stage direction override button always disabled#1271

Merged
Tim020 merged 1 commit into
devfrom
feature/fix-stage-direction-override-button
Jul 2, 2026
Merged

Fix stage direction override button always disabled#1271
Tim020 merged 1 commit into
devfrom
feature/fix-stage-direction-override-button

Conversation

@Tim020

@Tim020 Tim020 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Root cause: StageDirectionStyles.vue read .stage_direction_styles from the API response, but the backend returns { "styles": [...] }. The ?? [] fallback silently swallowed undefined, keeping stageDirectionStyles empty and permanently disabling the "New Override" button via :disabled="overrideChoices.length <= 1".
  • Fix: One-line key correction in StageDirectionStyles.vue (onMounted fetch handler).
  • E2E coverage: 6 new tests added to 14-user-settings.spec.ts covering the full override creation and deletion flow.
  • Bonus fix: Pre-existing strict-mode violation in spec 14's "About" tab test (compound locator matched both navbar link and tab button). "New Override" locators now scoped to #stage-directions-table thead to avoid colliding with the same-named button in the Cue Colour Preferences tab (BVN mounts all tab panels without lazy).

Test plan

  • Full Playwright E2E suite passes (210/210 tests, Chromium)
  • ESLint + Prettier checks pass (npm run ci-lint)
  • Manual verification: "New Override" button is now enabled when stage direction styles exist, clicking it opens the selection modal

🤖 Generated with Claude Code

…e key

The frontend read `.stage_direction_styles` from the GET response but the
backend returns `{ "styles": [...] }`. The `?? []` fallback silently swallowed
`undefined`, leaving `stageDirectionStyles` empty and permanently disabling the
"New Override" button.

Also adds E2E coverage for the full override creation flow in spec 14, and
fixes a pre-existing strict-mode violation in the "About" tab test. "New
Override" button locators are scoped to `#stage-directions-table thead` to
avoid colliding with the same-named button in the Cue Colour Preferences tab
(BVN BTabs without `lazy` keeps all tab panels in the DOM).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Tim020 Tim020 added the claude Issues created by Claude label Jul 2, 2026
@github-actions github-actions Bot added small-diff Small pull request client-v3 labels Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Client V3 Test Results

23 tests   23 ✅  0s ⏱️
 2 suites   0 💤
 1 files     0 ❌

Results for commit 33ee933.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Client Test Results

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

Results for commit 33ee933.

@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

@Tim020 Tim020 enabled auto-merge (squash) July 2, 2026 11:53
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Python Test Results

  1 files    1 suites   2m 6s ⏱️
704 tests 704 ✅ 0 💤 0 ❌
709 runs  709 ✅ 0 💤 0 ❌

Results for commit 33ee933.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Playwright E2E Results (chromium)

210 tests   210 ✅  2m 15s ⏱️
 14 suites    0 💤
  1 files      0 ❌

Results for commit 33ee933.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Playwright E2E Results (firefox)

210 tests   210 ✅  2m 10s ⏱️
 14 suites    0 💤
  1 files      0 ❌

Results for commit 33ee933.

@Tim020 Tim020 merged commit c970ef8 into dev Jul 2, 2026
35 checks passed
@Tim020 Tim020 deleted the feature/fix-stage-direction-override-button branch July 2, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude Issues created by Claude client-v3 small-diff Small pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant