Add stage direction style import from other shows#989
Merged
Conversation
Adds a new Import Style button on the Stage Direction Styles tab that opens a modal showing all styles from other shows, grouped by show with live previews. Each group is collapsible. Importing creates an unlinked copy in the current show. - GET /api/v1/show/script/stage_direction_styles/import — new endpoint returning style_groups (auth required, excludes current show via single JOIN query) - GET_IMPORTABLE_STAGE_DIRECTION_STYLES Vuex action - Import modal with collapsible b-card sections (consistent with ConfigSettings UX) and per-row import buttons with loading state - 5 new backend tests covering auth, show guard, exclusion, inclusion, and empty shows - docs/pages/script_config.md updated with Stage Direction Styles section Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Client Test Results99 tests 99 ✅ 0s ⏱️ Results for commit 4569aea. ♻️ This comment has been updated with latest results. |
Python Test Results 1 files 1 suites 1m 12s ⏱️ Results for commit 4569aea. ♻️ This comment has been updated with latest results. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
5 tasks
Tim020
added a commit
that referenced
this pull request
May 6, 2026
* Add cue type import from other shows Mirrors the stage direction style import feature (PR #989): allows users to copy cue type definitions (prefix, description, colour) from any other show into the current show via a new Import Cue Type button on the Cue Types tab. - Backend: GET /api/v1/show/cues/types/import returns cue types from all other shows, grouped by show (shows with no cue types are excluded) - Frontend: import button + collapsible modal in ConfigCues.vue, with per-row loading state; GET_IMPORTABLE_CUE_TYPES Vuex action in show.js - Tests: 5 new backend tests in TestCueTypeImportController - Docs: import section added to cue_config.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fix chevron icon alignment in cue type import modal Use flexbox (d-flex justify-content-between) to push the collapse indicator to the right edge of the card header, matching the stage direction styles import layout. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
6 tasks
Tim020
added a commit
that referenced
this pull request
May 6, 2026
* Add session tag type import from other shows Follows the same pattern as cue type (PR #991) and stage direction style (PR #989) imports. Adds GET /api/v1/show/session/tags/import endpoint and a corresponding import modal in SessionTagList.vue with real-time duplicate detection via the already-loaded SESSION_TAGS Vuex state. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fix ruff formatting in test_tags.py Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
ConfigSettingsUX pattern), expanded by defaultGET /api/v1/show/script/stage_direction_styles/importendpoint; requires auth, excludes current show via a single JOIN query returningstyle_groupsCloses #987
Test plan
cd server && pytest test/controllers/api/show/script/test_stage_direction_styles.py -v🤖 Generated with Claude Code