[PR #4475] [MERGED] fix(storyboard): organize settings and mobile layout #6395

Closed
opened 2026-10-23 04:10:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4475
Author: @thetopham
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @thetopham

Base: staging ← Head: fix/storyboard-settings-layout


📝 Commits (5)

  • 691bd05 fix(storyboard): contain settings on narrow screens
  • 28c17ea fix(storyboard): group settings by chat scope
  • acde959 Merge remote-tracking branch 'origin/staging' into fix/storyboard-settings-layout
  • e606c57 fix(storyboard): address review feedback
  • 7db6c36 Merge branch 'staging' into fix/storyboard-settings-layout

📊 Changes

6 files changed (+629 additions, -350 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+174 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+5 -5)
📝 packages/client/src/components/agents/StoryboardAgentSettingsPanel.tsx (+415 -337)
📝 packages/client/src/components/ui/MacroTextarea.tsx (+6 -4)
📝 packages/client/src/localization/locales/en.json (+10 -2)
📝 scripts/regressions/prompt.regression.ts (+19 -2)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #4458
Closes #4434

Why this change

  • Storyboard Agent settings mixed shared, Roleplay, and Game controls in one long sequence, making scope and per-chat override behavior difficult to understand.
  • Long connection/template names and undersized prompt controls could overflow or become difficult to use at phone widths.

What changed

  • Groups Storyboard defaults into collapsible Shared, Roleplay, and Game Mode sections while retaining every existing stored setting key.
  • Keeps the editable Game prompt library immediately after Game Mode controls and explains the Agent-wide default versus per-chat override boundary.
  • Contains Agent editor fields, Storyboard prompt cards, and expanded macro-editor controls at narrow widths.
  • Gives add, restore, remove, expand-editor, and macro-reference actions 44px touch targets with existing keyboard focus treatment.
  • Adds canonical English localization and focused source/browser regressions for scope mapping and responsive behavior.

Automated verification

  • pnpm check
  • pnpm regression:prompt
  • Focused Playwright regression: Storyboard settings at 320px, 360px, and 390px with 18px root text and a long connection name
  • pnpm --filter @marinara-engine/client exec tsc --noEmit
  • git diff --check

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify Shared, Roleplay, and Game Mode scope grouping and override guidance in the browser.
  • Manually verify 320px, 360px, and 390px widths with long connection names, long template names, and increased text size.
  • Manually verify restore, remove, expand-editor, and macro-reference controls by touch and keyboard.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

  • The focused Playwright regression asserts scope order, Game prompt-library adjacency, collapse/reopen value retention, no horizontal overflow, and 44px action targets at all three requested phone widths.

Summary by CodeRabbit

  • New Features

    • Storyboard Agent settings are organized into collapsible Shared, Roleplay, and Game sections.
    • Added clearer prompt-library guidance, default settings descriptions, and updated connection labels.
    • Improved responsive layouts and touch targets for narrow screens.
  • Bug Fixes

    • Prevented horizontal overflow and truncated long labels in the Agent Editor and prompt dialogs.
    • Improved modal behavior on smaller displays.
    • Preserved valid prompt selections when editing collections.
  • Tests

    • Added coverage for settings organization, persistence, ordering, responsive behavior, and touch accessibility.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4475 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/2/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `fix/storyboard-settings-layout` --- ### 📝 Commits (5) - [`691bd05`](https://github.com/Pasta-Devs/Marinara-Engine/commit/691bd05074fdba52a433a861559b74448ae071fa) fix(storyboard): contain settings on narrow screens - [`28c17ea`](https://github.com/Pasta-Devs/Marinara-Engine/commit/28c17ea2a94ab8cfd33e2db728a906e68ba256ea) fix(storyboard): group settings by chat scope - [`acde959`](https://github.com/Pasta-Devs/Marinara-Engine/commit/acde9598007f82ff99f9fc95e56217e770ba0e5f) Merge remote-tracking branch 'origin/staging' into fix/storyboard-settings-layout - [`e606c57`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e606c5724ae0d93f8a9fe1a2568ae0d42dfbad08) fix(storyboard): address review feedback - [`7db6c36`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7db6c360bc1a54e8f34facc226a89dc87aaa819d) Merge branch 'staging' into fix/storyboard-settings-layout ### 📊 Changes **6 files changed** (+629 additions, -350 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+174 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+5 -5) 📝 `packages/client/src/components/agents/StoryboardAgentSettingsPanel.tsx` (+415 -337) 📝 `packages/client/src/components/ui/MacroTextarea.tsx` (+6 -4) 📝 `packages/client/src/localization/locales/en.json` (+10 -2) 📝 `scripts/regressions/prompt.regression.ts` (+19 -2) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #4458 Closes #4434 ## Why this change - Storyboard Agent settings mixed shared, Roleplay, and Game controls in one long sequence, making scope and per-chat override behavior difficult to understand. - Long connection/template names and undersized prompt controls could overflow or become difficult to use at phone widths. ## What changed - Groups Storyboard defaults into collapsible Shared, Roleplay, and Game Mode sections while retaining every existing stored setting key. - Keeps the editable Game prompt library immediately after Game Mode controls and explains the Agent-wide default versus per-chat override boundary. - Contains Agent editor fields, Storyboard prompt cards, and expanded macro-editor controls at narrow widths. - Gives add, restore, remove, expand-editor, and macro-reference actions 44px touch targets with existing keyboard focus treatment. - Adds canonical English localization and focused source/browser regressions for scope mapping and responsive behavior. ## Automated verification - `pnpm check` - `pnpm regression:prompt` - Focused Playwright regression: Storyboard settings at 320px, 360px, and 390px with 18px root text and a long connection name - `pnpm --filter @marinara-engine/client exec tsc --noEmit` - `git diff --check` ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify Shared, Roleplay, and Game Mode scope grouping and override guidance in the browser. - Manually verify 320px, 360px, and 390px widths with long connection names, long template names, and increased text size. - Manually verify restore, remove, expand-editor, and macro-reference controls by touch and keyboard. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence - The focused Playwright regression asserts scope order, Game prompt-library adjacency, collapse/reopen value retention, no horizontal overflow, and 44px action targets at all three requested phone widths. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Storyboard Agent settings are organized into collapsible Shared, Roleplay, and Game sections. * Added clearer prompt-library guidance, default settings descriptions, and updated connection labels. * Improved responsive layouts and touch targets for narrow screens. * **Bug Fixes** * Prevented horizontal overflow and truncated long labels in the Agent Editor and prompt dialogs. * Improved modal behavior on smaller displays. * Preserved valid prompt selections when editing collections. * **Tests** * Added coverage for settings organization, persistence, ordering, responsive behavior, and touch accessibility. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:10:01 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6395
No description provided.