[PR #8346] [MERGED] feat(roleplay): make the chat column width adjustable #8308

Closed
opened 2026-10-27 06:07:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feat/8336-roleplay-chat-width


📝 Commits (6)

  • 24ea2fa chore: track roleplay chat width issue 8336
  • 41219ac feat(roleplay): add adjustable chat column width
  • cb9cee1 test(roleplay): preserve custom width through legacy package writes
  • e5e00d3 merge: integrate the verified tag browser fix from staging
  • fb9b0b6 fix(roleplay): reserve avatar space for grouped panel messages
  • eb4c851 fix(roleplay): share the docked tracker column width budget

📊 Changes

9 files changed (+407 additions, -2 deletions)

View changed files

➕ e2e/roleplay-chat-width.e2e.ts (+303 -0)
📝 e2e/ui-store-foreign-write.e2e.ts (+6 -1)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+17 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+35 -0)
📝 packages/client/src/hooks/use-settings-sync.ts (+4 -0)
📝 packages/client/src/lib/settings-registry.ts (+11 -0)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/client/src/stores/ui.store.ts (+13 -0)
📝 packages/client/src/styles/globals.css (+15 -1)

📄 Description

Pull request

Linked issue

Closes #8336

Why this change

Long Roleplay replies keep a fixed text-column width even when more screen space is available. Readers need to choose a comfortable width without changing avatar sizes.

What changed

  • Add Custom chat width under Settings → Appearance → Roleplay, with a 40–100% slider. Turning it off preserves the existing automatic width.
  • Share the width between messages, the composer and Visual Novel history, reserving room for actual avatar slots, gutters, scrollbars and a docked Tracker Panel.
  • Persist and sync the percentage with the existing Roleplay appearance settings, normalize invalid and older values, and include search, localization and reset behavior.
  • Cover saved settings, old package writes, responsive layouts, all four desktop avatar styles, and both docked Tracker positions.

Validation

  • Final local pnpm check completed at eb4c8511, including localization, formatting, lint/types and the production build. One existing Professor Mari hook warning remains.
  • Final width matrix: 6 passed across desktop/mobile Chromium/WebKit and dark/light themes. Desktop cases verify grouped rows, all four avatar styles at 95/100%, scaled rectangles, and strict message/composer alignment with Tracker docked on either side. Mobile cases exercise width, persistence, reset, Visual Novel history and invalid synced values.
  • Earlier focused controls passed: configured width survives an old package write and two reloads (1 passed, 2 intentional mobile skips), mobile landscape (4 passed), and preserved default/custom 100%/custom-enabled Visual Novel reading views.
  • Fresh final-commit checks: 7/7 browser smoke and 3/3 compiled startup passed (desktop Chromium, mobile Chromium and mobile WebKit). No retries or skips; sequential single-worker runs.
  • Local CodeRabbit reviewed all nine feature files. Two initial non-functional notes were fixed. Dottore then found a real panel-avatar reservation defect; its unchanged-code reproduction failed before the repair. A later local review requested stronger Tracker assertions, which exposed a second alignment defect. Both production defects are repaired and the strengthened tests pass. The latest two-file repair review found 0 findings; independent source/budget review found no actionable defect.
  • Local Docker proof is unavailable because this host ran critically low on disk during a sibling build. Hosted container build/runtime checks on the previous head passed; the final-head container check remains a merge gate, alongside CI and a viable Dottore review.
  • Manually verify the control and long messages on your desktop setup.
  • Manually verify mobile portrait/landscape and your chosen avatar style.
  • Manually verify saved settings, default reset and docked Tracker Panel layouts.

Proof and limits

Synthetic browser captures

The reproduced 100% alignment failures were fixed without relaxing the classic geometry thresholds. A separate Visual Novel fixture assumption was corrected to its maintained outer-history-frame contract. Physical devices and every custom floating-window/avatar combination have not been verified. Final hosted checks and Dottore review remain pending.


🔄 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/8346 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/8336-roleplay-chat-width` --- ### 📝 Commits (6) - [`24ea2fa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/24ea2fa958ac0c16831ac785d5e7b53721ce0f5e) chore: track roleplay chat width issue 8336 - [`41219ac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/41219acd053c30b18e41a0462f55eae502eed729) feat(roleplay): add adjustable chat column width - [`cb9cee1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cb9cee12f306d6d8c4640a68a6585abd3469ba25) test(roleplay): preserve custom width through legacy package writes - [`e5e00d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e5e00d3a75aefd6760479e60c1f241c6968de810) merge: integrate the verified tag browser fix from staging - [`fb9b0b6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fb9b0b60a40632b2f4b5791879c1190eab55417a) fix(roleplay): reserve avatar space for grouped panel messages - [`eb4c851`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eb4c85110e50756eb47577bde5d4abc3488ba533) fix(roleplay): share the docked tracker column width budget ### 📊 Changes **9 files changed** (+407 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `e2e/roleplay-chat-width.e2e.ts` (+303 -0) 📝 `e2e/ui-store-foreign-write.e2e.ts` (+6 -1) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+17 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+35 -0) 📝 `packages/client/src/hooks/use-settings-sync.ts` (+4 -0) 📝 `packages/client/src/lib/settings-registry.ts` (+11 -0) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/client/src/stores/ui.store.ts` (+13 -0) 📝 `packages/client/src/styles/globals.css` (+15 -1) </details> ### 📄 Description # Pull request ## Linked issue Closes #8336 ## Why this change Long Roleplay replies keep a fixed text-column width even when more screen space is available. Readers need to choose a comfortable width without changing avatar sizes. ## What changed - Add **Custom chat width** under Settings → Appearance → Roleplay, with a 40–100% slider. Turning it off preserves the existing automatic width. - Share the width between messages, the composer and Visual Novel history, reserving room for actual avatar slots, gutters, scrollbars and a docked Tracker Panel. - Persist and sync the percentage with the existing Roleplay appearance settings, normalize invalid and older values, and include search, localization and reset behavior. - Cover saved settings, old package writes, responsive layouts, all four desktop avatar styles, and both docked Tracker positions. ## Validation - Final local `pnpm check` completed at `eb4c8511`, including localization, formatting, lint/types and the production build. One existing Professor Mari hook warning remains. - Final width matrix: **6 passed** across desktop/mobile Chromium/WebKit and dark/light themes. Desktop cases verify grouped rows, all four avatar styles at 95/100%, scaled rectangles, and strict message/composer alignment with Tracker docked on either side. Mobile cases exercise width, persistence, reset, Visual Novel history and invalid synced values. - Earlier focused controls passed: configured width survives an old package write and two reloads (1 passed, 2 intentional mobile skips), mobile landscape (4 passed), and preserved default/custom 100%/custom-enabled Visual Novel reading views. - Fresh final-commit checks: **7/7 browser smoke** and **3/3 compiled startup** passed (desktop Chromium, mobile Chromium and mobile WebKit). No retries or skips; sequential single-worker runs. - Local CodeRabbit reviewed all nine feature files. Two initial non-functional notes were fixed. Dottore then found a real panel-avatar reservation defect; its unchanged-code reproduction failed before the repair. A later local review requested stronger Tracker assertions, which exposed a second alignment defect. Both production defects are repaired and the strengthened tests pass. The latest two-file repair review found **0 findings**; independent source/budget review found no actionable defect. - Local Docker proof is unavailable because this host ran critically low on disk during a sibling build. Hosted container build/runtime checks on the previous head passed; the final-head container check remains a merge gate, alongside CI and a viable Dottore review. - [ ] Manually verify the control and long messages on your desktop setup. - [ ] Manually verify mobile portrait/landscape and your chosen avatar style. - [ ] Manually verify saved settings, default reset and docked Tracker Panel layouts. ## Proof and limits [Synthetic browser captures](https://gist.github.com/SpicyMarinara/99051a5a8dc48d7c0ca846c81724dc92) The reproduced 100% alignment failures were fixed without relaxing the classic geometry thresholds. A separate Visual Novel fixture assumption was corrected to its maintained outer-history-frame contract. Physical devices and every custom floating-window/avatar combination have not been verified. Final hosted checks and Dottore review remain pending. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:07:34 +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#8308
No description provided.