[PR #7111] [MERGED] feat(roleplay): choose where the chat sits on wide screens (#7106) #7480

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7111
Author: @SpicyMarinara
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/chat-position-7106


📝 Commits (6)

  • 52c8aa5 feat(roleplay): choose where the chat sits on wide screens (#7106)
  • b62b04d test(e2e): Chat position on wide screens and phones (#7106)
  • e17a489 fix(roleplay): keep the Tracker Panel at its width beside a moved column (#7106)
  • fbbe555 test(e2e): allow a visible scrollbar's width at Right in Chat position (#7106)
  • c9074e8 Merge remote-tracking branch 'origin/staging' into feat/chat-position-7106
  • 62accbc fix(roleplay): fall back to Center for an unknown saved chat position (#7106)

📊 Changes

10 files changed (+637 additions, -4 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/appearance/appearance-settings.md (+1 -0)
➕ e2e/chat-position.e2e.ts (+444 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+22 -2)
📝 packages/client/src/components/chat/RoleplayTrackerWindow.tsx (+3 -0)
📝 packages/client/src/components/layout/AppShell.tsx (+4 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+47 -0)
📝 packages/client/src/localization/locales/en.json (+5 -0)
📝 packages/client/src/stores/ui.store.ts (+15 -0)
📝 packages/client/src/styles/globals.css (+94 -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 #7106

Why this change

  • On wide screens the Roleplay chat is always a centred column, so it covers the middle of the background and any character sprites. Users asked to move it to one side so the scene stays visible. Center stays the default and keeps today's layout.

What changed

  • New Chat position setting (Left / Center / Right) in Settings > Appearance > Roleplay > Roleplay Presentation. It's saved like the other presentation settings, is reset by Reset Appearance, and can be found in settings search. A help tooltip explains it does nothing on phones. Unknown or stale saved values fall back to Center.
  • Left and Right move the messages, narration, typing indicator, choices, input box and Visual Novel history together inside the visible chat area. An open chats sidebar, right panel, or a Tracker Panel on the same side pushes the column along instead of covering it.
  • When there's no spare width (phones, narrow windows, a window just wider than the column) the layout is exactly the centred one. Center itself has no new CSS; it matched staging in 128 measured layouts.
  • The Tracker Panel keeps its chosen width beside a moved column. An unmoved Trackers window re-checks its default spot, so at Left it starts as a button instead of covering messages.
  • The transcript's side padding and row gutter are now CSS variables with unchanged values, so the input box can follow the column.
  • Game mode stays centred. Its HUD widget rails already sit at both sides of the dialogue box and collapse when the box gets close, and the active-speaker sprite, banners and QTE are centred around it. Moving it needs a layout redesign, so that's left for a separate issue.
  • Conversation mode is unchanged.
  • Docs: the Appearance settings guide describes Chat position. CHANGELOG entry added.

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

Agent-run validation (for reference; not a substitute for the boxes above):

  • pnpm check passed, including the localization, format, lint, e2e-types and build steps.
  • New e2e/chat-position.e2e.ts passes on desktop-chromium, mobile-chromium and mobile-webkit, and fails on unmodified staging (6/6).
    • At 1920×1080, for each position: messages, narration and input box share left and right edges.
    • Left hugs the left edge and Right the right edge; Center is centred.
    • Sidebars: the chats sidebar pushes Left, the Characters panel pushes Right, and with both open the column stays between them.
    • Popovers and persistence: the Connections menu stays on screen at Left and Right, and the choice survives a reload.
    • Tracker Panel and Trackers window: a same-side Tracker Panel keeps its 340px width at 1920 and at 1440 with the chats sidebar open, and an unmoved Trackers window moves out of the way.
    • Visual Novel: the input box and history move together.
    • Phones: the same boxes as Center and no sideways scroll.
  • Existing suites passed: roleplay-vn, tracker-window, chat-widget-style, chat-control-windows, input-popup-widget-style, chat-open-bottom, drawer-popout, the Tracker/Roleplay/sidebar cases in core-flows, pnpm smoke:ui, and the phone suites.
  • Failures that also fail on staging: chat-settings-window "tips dismiss…", its reset-dialog copy, and ux-feedback-sweep background picker (roleplay and game).
  • Local CodeRabbit: one finding (normalize the saved value), fixed.

Manual verification notes

  • Manually verify in a desktop browser that Left, Center and Right move the messages and input box together, and Center looks exactly as before.
  • Manually verify opening the chats sidebar at Left, and the right panel at Right, pushes the chat instead of covering it.
  • Manually verify the Connections menu, slash commands, emoji picker and @-mentions open fully on screen at Left and Right.
  • Manually verify Visual Novel mode at Left and Right, with the history open and closed.
  • Manually verify a docked Tracker Panel on the same side as the chat keeps its size, with and without the chats sidebar.
  • Manually verify Default, Dottore and Mari widget styles in light and dark mode at Left and Right.
  • Manually verify on Windows (always-visible scrollbars) that at Right the messages and input box still line up.
  • Manually verify Echo Chamber in its default bottom-right corner at Right: it covers part of the transcript; decide whether that's acceptable.
  • Manually verify on a phone that the setting changes nothing.

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)

Changed: CHANGELOG.md, docs/appearance/appearance-settings.md. Translations follow in a docs-i18n PR.

UI evidence (if applicable)

Left, Center and Right, each with and without a sidebar open; a Tracker Panel on the same side; Visual Novel history at Left; Dottore and Mari styles; and 2560px wide.

Summary by CodeRabbit

  • New Features
    • Roleplay chat can be positioned on the left, center, or right on wide screens, with the message area and input moving together.
    • Chat adjusts to avoid an open sidebar or a Tracker Panel docked on the same side.
    • The selected position is saved. On phones, chat remains full-width and centered; Game mode is unchanged.
  • Documentation
    • Added guidance on the chat-position setting and its behavior across screen sizes.

🔄 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/7111 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/chat-position-7106` --- ### 📝 Commits (6) - [`52c8aa5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/52c8aa5cb914c7566e3d0c3ea2039320443d9590) feat(roleplay): choose where the chat sits on wide screens (#7106) - [`b62b04d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b62b04dbbb156b8154dd900624ae250a03a55554) test(e2e): Chat position on wide screens and phones (#7106) - [`e17a489`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e17a48979fd569b764f5e19e1e9459bb98d37c52) fix(roleplay): keep the Tracker Panel at its width beside a moved column (#7106) - [`fbbe555`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fbbe5559b646eb6ce413107cda0a98037ff9e410) test(e2e): allow a visible scrollbar's width at Right in Chat position (#7106) - [`c9074e8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c9074e8189f1d7a505486202394bd7df1d3ff8d0) Merge remote-tracking branch 'origin/staging' into feat/chat-position-7106 - [`62accbc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/62accbcbe15549d82b9506b8e0debabd78d44366) fix(roleplay): fall back to Center for an unknown saved chat position (#7106) ### 📊 Changes **10 files changed** (+637 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/appearance/appearance-settings.md` (+1 -0) ➕ `e2e/chat-position.e2e.ts` (+444 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+22 -2) 📝 `packages/client/src/components/chat/RoleplayTrackerWindow.tsx` (+3 -0) 📝 `packages/client/src/components/layout/AppShell.tsx` (+4 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+47 -0) 📝 `packages/client/src/localization/locales/en.json` (+5 -0) 📝 `packages/client/src/stores/ui.store.ts` (+15 -0) 📝 `packages/client/src/styles/globals.css` (+94 -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 #7106 ## Why this change - On wide screens the Roleplay chat is always a centred column, so it covers the middle of the background and any character sprites. Users asked to move it to one side so the scene stays visible. Center stays the default and keeps today's layout. ## What changed - New **Chat position** setting (**Left / Center / Right**) in **Settings > Appearance > Roleplay > Roleplay Presentation**. It's saved like the other presentation settings, is reset by Reset Appearance, and can be found in settings search. A help tooltip explains it does nothing on phones. Unknown or stale saved values fall back to Center. - Left and Right move the messages, narration, typing indicator, choices, input box and Visual Novel history together inside the visible chat area. An open chats sidebar, right panel, or a Tracker Panel on the same side pushes the column along instead of covering it. - When there's no spare width (phones, narrow windows, a window just wider than the column) the layout is exactly the centred one. Center itself has no new CSS; it matched staging in 128 measured layouts. - The Tracker Panel keeps its chosen width beside a moved column. An unmoved Trackers window re-checks its default spot, so at Left it starts as a button instead of covering messages. - The transcript's side padding and row gutter are now CSS variables with unchanged values, so the input box can follow the column. - **Game mode stays centred.** Its HUD widget rails already sit at both sides of the dialogue box and collapse when the box gets close, and the active-speaker sprite, banners and QTE are centred around it. Moving it needs a layout redesign, so that's left for a separate issue. - Conversation mode is unchanged. - Docs: the Appearance settings guide describes Chat position. CHANGELOG entry added. ## 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` Agent-run validation (for reference; not a substitute for the boxes above): - `pnpm check` passed, including the localization, format, lint, e2e-types and build steps. - New `e2e/chat-position.e2e.ts` passes on desktop-chromium, mobile-chromium and mobile-webkit, and fails on unmodified staging (6/6). - At 1920×1080, for each position: messages, narration and input box share left and right edges. - Left hugs the left edge and Right the right edge; Center is centred. - Sidebars: the chats sidebar pushes Left, the Characters panel pushes Right, and with both open the column stays between them. - Popovers and persistence: the Connections menu stays on screen at Left and Right, and the choice survives a reload. - Tracker Panel and Trackers window: a same-side Tracker Panel keeps its 340px width at 1920 and at 1440 with the chats sidebar open, and an unmoved Trackers window moves out of the way. - Visual Novel: the input box and history move together. - Phones: the same boxes as Center and no sideways scroll. - Existing suites passed: roleplay-vn, tracker-window, chat-widget-style, chat-control-windows, input-popup-widget-style, chat-open-bottom, drawer-popout, the Tracker/Roleplay/sidebar cases in core-flows, `pnpm smoke:ui`, and the phone suites. - Failures that also fail on staging: chat-settings-window "tips dismiss…", its reset-dialog copy, and ux-feedback-sweep background picker (roleplay and game). - Local CodeRabbit: one finding (normalize the saved value), fixed. ### Manual verification notes - [ ] Manually verify in a desktop browser that Left, Center and Right move the messages and input box together, and Center looks exactly as before. - [ ] Manually verify opening the chats sidebar at Left, and the right panel at Right, pushes the chat instead of covering it. - [ ] Manually verify the Connections menu, slash commands, emoji picker and @-mentions open fully on screen at Left and Right. - [ ] Manually verify Visual Novel mode at Left and Right, with the history open and closed. - [ ] Manually verify a docked Tracker Panel on the same side as the chat keeps its size, with and without the chats sidebar. - [ ] Manually verify Default, Dottore and Mari widget styles in light and dark mode at Left and Right. - [ ] Manually verify on Windows (always-visible scrollbars) that at Right the messages and input box still line up. - [ ] Manually verify Echo Chamber in its default bottom-right corner at Right: it covers part of the transcript; decide whether that's acceptable. - [ ] Manually verify on a phone that the setting changes nothing. ## 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) Changed: `CHANGELOG.md`, `docs/appearance/appearance-settings.md`. Translations follow in a `docs-i18n` PR. ## UI evidence (if applicable) Left, Center and Right, each with and without a sidebar open; a Tracker Panel on the same side; Visual Novel history at Left; Dottore and Mari styles; and 2560px wide. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Roleplay chat can be positioned on the left, center, or right on wide screens, with the message area and input moving together. * Chat adjusts to avoid an open sidebar or a Tracker Panel docked on the same side. * The selected position is saved. On phones, chat remains full-width and centered; Game mode is unchanged. * **Documentation** * Added guidance on the chat-position setting and its behavior across screen sizes. <!-- 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:20:13 +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#7480
No description provided.