[PR #5461] [MERGED] fix(ui): unify constrained editor, tracker, conversation, and game controls #6777

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5461
Author: @SpicyMarinara
Created: 8/23/2026
Status: ✅ Merged
Merged: 8/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5460-editor-toolbar-overflow


📝 Commits (7)

  • caf2f73 chore: start editor toolbar fix
  • abd96ad fix(ui): unify constrained chat controls
  • a3809ef fix(ui): unify conversation and game settings
  • badb039 test(game): cover journal entry shifting
  • 304fe54 fix(agents): restore stop-all cancellation
  • 13b2dff fix(chat): derive markdown rules from text color
  • 3ac4e21 test(agents): reuse active run contract

📊 Changes

31 files changed (+655 additions, -312 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 e2e/core-flows.e2e.ts (+46 -5)
📝 packages/client/src/components/chat/AgentAddSetupFields.tsx (+10 -24)
📝 packages/client/src/components/chat/ChatBranchSelector.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatMessage.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+129 -189)
📝 packages/client/src/components/chat/ConversationView.tsx (+22 -20)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+5 -5)
📝 packages/client/src/components/chat/RoleplayHUDActionsMenu.tsx (+5 -2)
📝 packages/client/src/components/game/GameJournal.tsx (+123 -24)
📝 packages/client/src/components/game/GameVolumeMixer.tsx (+1 -1)
📝 packages/client/src/components/game/GameWidgetSetupEditor.tsx (+6 -5)
📝 packages/client/src/components/layout/AppShell.tsx (+2 -2)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+1 -1)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+5 -2)
📝 packages/client/src/components/ui/EditorTabNavigation.tsx (+5 -5)
📝 packages/client/src/components/ui/MacroTextarea.tsx (+7 -0)
📝 packages/client/src/features/chat-settings/sections/DiscordMirrorSection.tsx (+4 -1)
📝 packages/client/src/features/chat-settings/sections/GameExtraPromptSection.tsx (+8 -5)
📝 packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx (+1 -1)

...and 11 more files

📄 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 issues

Closes #5460
Closes #5462
Closes #5463

Why this change

Windows scaling exposed editor navigation controls that could shrink into one another, while several chat surfaces still rebuilt old rounded inputs, toggles, and color states instead of using Marinara's shared UI primitives. Game journals also lacked a safe way to delete an entry.

What changed

  • Make Character and Persona editor navigation collapse before controls overlap, with a navigator trigger matching neighboring action heights.
  • Keep Tracker Panel and Beholder ordering, launchers, containment, color tokens, and floating-window behavior consistent across desktop and mobile.
  • Move Conversation Calls beside the chat identity and normalize branch tags, Gallery search, Discord Mirror, autonomous controls, summary fields, and agent activation switches.
  • Reuse expandable macro fields for Game prompt instructions and Illustrator fields.
  • Reuse shared action controls for Game widgets, remove hard-coded muted-volume warning color, and add confirmed journal-entry deletion with an atomic server route.
  • Restore Stop Agents across attached and detached agent phases while preserving the primary model response.
  • Render Markdown horizontal rules from the surrounding message text color through one shared style instead of the legacy border tint.
  • Add localized UI copy, changelog notes, and focused regression coverage.

Validation

  • pnpm check passes locally
  • pnpm smoke:ui passes locally
  • Focused tracker/gallery and journal edit/delete regressions pass
  • 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 the Character and Persona editor toolbar under Windows display scaling and with both side panels open.
  • Manually verify Conversation autonomous settings, Calls placement, summarization fields, and Discord Mirror in all chat modes.
  • Manually verify Game prompt expand/macro controls, agent toggles, widget actions, muted volume, and confirmed journal deletion.
  • Manually verify *** and --- horizontal rules in Roleplay, Conversation, and Game messages with custom text colors.
  • Manually verify Stop Agents during pre-generation, parallel, and post-processing work while the primary response is still streaming.
  • Manually verify Tracker Panel and Beholder launch, resizing, containment, detached-tab action, desktop layout, and mobile full-screen behavior.

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] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

  • Before: reporter screenshots are attached to the linked issues and task context.
  • After: automated desktop/mobile browser checks cover the shared control geometry and constrained editor behavior; manual visual verification remains listed above.

Summary by CodeRabbit

  • New Features
    • Added deletion for game journal entries with confirmation, loading feedback, and success or error notifications.
    • Added character limits to inline and expanded macro editors.
  • Bug Fixes
    • Improved conversation-call placement, responsive editor navigation, Tracker Panel ordering, agent cancellation, and Markdown horizontal-rule rendering.
  • Style
    • Standardized controls, inputs, widgets, volume settings, tracker elements, and branch-count badges.
    • Updated accent colors and focus states.
  • Tests
    • Expanded coverage for journal deletion, navigation, layout, ordering, cancellation, and shared styling.

🔄 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/5461 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/23/2026 **Status:** ✅ Merged **Merged:** 8/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5460-editor-toolbar-overflow` --- ### 📝 Commits (7) - [`caf2f73`](https://github.com/Pasta-Devs/Marinara-Engine/commit/caf2f7398569d2f661cf361c61e40c461d6160fe) chore: start editor toolbar fix - [`abd96ad`](https://github.com/Pasta-Devs/Marinara-Engine/commit/abd96ad58aa3bed56f1ebe40bef548e3f8ab0e29) fix(ui): unify constrained chat controls - [`a3809ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3809ef49b4495efaeca05e51afcc2b02f1963d4) fix(ui): unify conversation and game settings - [`badb039`](https://github.com/Pasta-Devs/Marinara-Engine/commit/badb039e381d1f2f3d5014aa4c726ebe8abadc03) test(game): cover journal entry shifting - [`304fe54`](https://github.com/Pasta-Devs/Marinara-Engine/commit/304fe544da31b460c82ab9d54f79635c9457fa7a) fix(agents): restore stop-all cancellation - [`13b2dff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/13b2dffc23d7739b07700b74892e12270bd19fbe) fix(chat): derive markdown rules from text color - [`3ac4e21`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3ac4e2162b977d724fa0e4ebba201f484fdc99a6) test(agents): reuse active run contract ### 📊 Changes **31 files changed** (+655 additions, -312 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `e2e/core-flows.e2e.ts` (+46 -5) 📝 `packages/client/src/components/chat/AgentAddSetupFields.tsx` (+10 -24) 📝 `packages/client/src/components/chat/ChatBranchSelector.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+129 -189) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+22 -20) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+5 -5) 📝 `packages/client/src/components/chat/RoleplayHUDActionsMenu.tsx` (+5 -2) 📝 `packages/client/src/components/game/GameJournal.tsx` (+123 -24) 📝 `packages/client/src/components/game/GameVolumeMixer.tsx` (+1 -1) 📝 `packages/client/src/components/game/GameWidgetSetupEditor.tsx` (+6 -5) 📝 `packages/client/src/components/layout/AppShell.tsx` (+2 -2) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+1 -1) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+5 -2) 📝 `packages/client/src/components/ui/EditorTabNavigation.tsx` (+5 -5) 📝 `packages/client/src/components/ui/MacroTextarea.tsx` (+7 -0) 📝 `packages/client/src/features/chat-settings/sections/DiscordMirrorSection.tsx` (+4 -1) 📝 `packages/client/src/features/chat-settings/sections/GameExtraPromptSection.tsx` (+8 -5) 📝 `packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx` (+1 -1) _...and 11 more files_ </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 issues Closes #5460 Closes #5462 Closes #5463 ## Why this change Windows scaling exposed editor navigation controls that could shrink into one another, while several chat surfaces still rebuilt old rounded inputs, toggles, and color states instead of using Marinara's shared UI primitives. Game journals also lacked a safe way to delete an entry. ## What changed - Make Character and Persona editor navigation collapse before controls overlap, with a navigator trigger matching neighboring action heights. - Keep Tracker Panel and Beholder ordering, launchers, containment, color tokens, and floating-window behavior consistent across desktop and mobile. - Move Conversation Calls beside the chat identity and normalize branch tags, Gallery search, Discord Mirror, autonomous controls, summary fields, and agent activation switches. - Reuse expandable macro fields for Game prompt instructions and Illustrator fields. - Reuse shared action controls for Game widgets, remove hard-coded muted-volume warning color, and add confirmed journal-entry deletion with an atomic server route. - Restore Stop Agents across attached and detached agent phases while preserving the primary model response. - Render Markdown horizontal rules from the surrounding message text color through one shared style instead of the legacy border tint. - Add localized UI copy, changelog notes, and focused regression coverage. ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm smoke:ui` passes locally - [ ] Focused tracker/gallery and journal edit/delete regressions pass - [ ] 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 the Character and Persona editor toolbar under Windows display scaling and with both side panels open. - Manually verify Conversation autonomous settings, Calls placement, summarization fields, and Discord Mirror in all chat modes. - Manually verify Game prompt expand/macro controls, agent toggles, widget actions, muted volume, and confirmed journal deletion. - Manually verify `***` and `---` horizontal rules in Roleplay, Conversation, and Game messages with custom text colors. - Manually verify Stop Agents during pre-generation, parallel, and post-processing work while the primary response is still streaming. - Manually verify Tracker Panel and Beholder launch, resizing, containment, detached-tab action, desktop layout, and mobile full-screen behavior. ## 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] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence - Before: reporter screenshots are attached to the linked issues and task context. - After: automated desktop/mobile browser checks cover the shared control geometry and constrained editor behavior; manual visual verification remains listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added deletion for game journal entries with confirmation, loading feedback, and success or error notifications. * Added character limits to inline and expanded macro editors. * **Bug Fixes** * Improved conversation-call placement, responsive editor navigation, Tracker Panel ordering, agent cancellation, and Markdown horizontal-rule rendering. * **Style** * Standardized controls, inputs, widgets, volume settings, tracker elements, and branch-count badges. * Updated accent colors and focus states. * **Tests** * Expanded coverage for journal deletion, navigation, layout, ordering, cancellation, and shared styling. <!-- 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:13:37 +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#6777
No description provided.