[PR #7049] [MERGED] feat(ui): chat window redesign: one movable Chat Settings window with drawers (#7034) #7445

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

📋 Pull Request Information

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

Base: staging ← Head: feat/chat-window-redesign-7034


📝 Commits (10+)

  • f502a1f feat(ui): shared floating window and drawer with theming contract
  • e5de2c6 feat(ui): Chat Settings opens as a movable window from the topbar
  • 9e35a25 test(e2e): Chat Settings window
  • 7bf5054 docs: Chat Settings window, its new button and theming hooks
  • a0d0bef fix(ui): a remounted window no longer takes focus
  • 637e42b fix(ui): Chat Settings toggles, Escape and Help stay reliable
  • b52db5f fix(ui): Help layout takes focus on its first open and stays readable
  • f8c0c17 fix(ui): every Chat Settings section is a shared drawer that fits the window
  • e7ab536 fix(ui): Chat Settings window clears the Tracker Panel and closes chat popovers
  • 6cc452e docs: Chat Settings button wording, Game actions on phones and theming example

📊 Changes

152 files changed (+16654 additions, -7171 deletions)

View changed files

📝 CHANGELOG.md (+2 -2)
📝 e2e/advanced-memory.e2e.ts (+11 -14)
📝 e2e/agent-private-context.e2e.ts (+2 -1)
📝 e2e/assigned-issue-sweep.e2e.ts (+2 -1)
📝 e2e/author-notes.e2e.ts (+11 -11)
➕ e2e/chat-control-windows.e2e.ts (+492 -0)
📝 e2e/chat-insights.e2e.ts (+2 -9)
📝 e2e/chat-lorebook-entry-scope.e2e.ts (+0 -4)
➕ e2e/chat-settings-tools.e2e.ts (+216 -0)
➕ e2e/chat-settings-tools.ts (+71 -0)
➕ e2e/chat-settings-window.e2e.ts (+1124 -0)
➕ e2e/chat-widget-style.e2e.ts (+468 -0)
➕ e2e/chat-window-favorite.e2e.ts (+242 -0)
➕ e2e/chat-window-intro.e2e.ts (+241 -0)
➕ e2e/chat-window-migration.e2e.ts (+292 -0)
📝 e2e/core-flows.e2e.ts (+142 -188)
➕ e2e/drawer-popout.e2e.ts (+807 -0)
📝 e2e/game-native-dice.e2e.ts (+0 -3)
📝 e2e/game-one-request-dice.e2e.ts (+0 -20)
📝 e2e/game-terrain-restore.e2e.ts (+0 -3)

...and 80 more files

📄 Description

Why this change

Chat tools were spread across a crowded toolbar and fixed popovers. This gives them a movable Chat Settings window and separate movable buttons, with arrangements saved per chat and reusable for future chats. Older chats retain their familiar tools; fresh installations start with the sections inside Chat Settings. The same controls work on computers and phones.

The new Default, Dottore and Mari widget presets also let users change the appearance of these windows, sections and buttons without writing a custom theme. Default preserves the existing look.

Linked issue

Closes #7034
Closes #7036

Translation follow-up: #7054. Documentation companion: #7057 (merged to staging at 8fb5f5953ba5b20c2c8479507dfa3f2dece714b6). Characters-sidebar companion: #7058 (merged to staging at 94ce3d6851ab635f4b08c8570dcaed5973f93fbc).

Important

This PR targets staging. Required checks and a completed CodeRabbit review remain merge gates. Pending and skipped review runs are not passes.

What changed

  • Chat tools stay accessible: a movable sliders button opens Chat Settings at the chat's top right by default; saved positions take precedence. Search (including Bookmarks and Trash), Branches, Summary, Active Context, Author's Notes, Gallery and Agent activity can be detached. Search starts collapsed unless its saved preference says otherwise, with the help text “Search for messages in the chat history, bookmarks, or removed messages.” Help opens beside the title.
  • Windows and buttons: desktop windows support moving, resizing, pinning, locking and keyboard controls. A window first opens below its button; later openings respect saved geometry. Locking a window also stops its button moving, while still allowing it to open. Phones use full-width panels and movable buttons. Buttons align while dragged and stay within the usable chat area as sidebars or the keyboard change its bounds.
  • Pop out and put back: close/minimize returns a separate window to a button; Put back returns its content to its original window. Game controls, Session, Volume, Game Assets, connected chats and package controls can also dock inside Chat Settings and pop out again. Button and window positions are saved separately; docking on a phone preserves desktop geometry, pin and lock.
  • Saved arrangements and favorites: chats and settings profiles save their layouts. Open pinned windows restore after refresh; explicitly closed or minimized ones remain closed or minimized. Moving a window does not reorder the chat list. Reset View asks before restoring the starting arrangement. The star beside Reset View saves the current mode's layout and tips choice for future chats; replacing or clearing it leaves existing chats unchanged, and an explicit profile layout takes priority. Upgrades seed the familiar tool-button arrangement in all three modes without replacing an existing saved or cleared favorite; device-selected automatic button positions still match that favorite until moved. Fresh installations start with the tools inside Chat Settings.
  • Guidance and dismissal: a bundled, responsive video introduces the layout once for new and existing users, after onboarding and startup notices. Got it stays dismissed across chats, refreshes and synced browsers. Phone Help explains the controls and scrolls to every item, with a Roleplay-only Tracker Panel explanation. Per-chat layout tips are saved in profiles; the separate launcher reminder is dismissed once globally. Older synced preferences do not revive dismissed reminders.
  • Roleplay trackers: the title-bar die controls Tracker Panel, replacing the extra Tracker window toggle. Outside the panel, trackers use a window or a small button when there is insufficient room beside the messages; saved layouts take priority. Agent activity remains available in Chat Settings and tracker surfaces, with matching fonts, spacing and neutral backgrounds. The panel border follows the pulsing accent on desktop and phones.
  • Interaction fixes: detached Advanced Parameters and Chat Variables remain current even when their original sections are collapsed. Windows restore keyboard focus when closed. A hidden Chat Settings host restores detached content without automatically applying a prompt preset or bumping the chat timestamp. Docked Session and Assets pause Game narration only while Chat Settings is open and their sections are expanded.
  • Widget appearance presets: Settings > Appearance > App offers Default, Dottore and Mari in light and dark mode, with font overrides and rounded, square, cut-corner or arched shapes. Dottore uses technical monospace lettering and angular frames; Mari uses serif lettering and arched frames. Selecting a preset resets its overrides, and Reset Appearance restores Default. Choices persist locally and through synced settings. Preview cards use the available panel width instead of being squeezed into three narrow columns, and each card previews its own preset rather than inheriting the selected one.
  • Polished theme frames: Dottore and Mari keep only their top ornaments, and Mari buttons have one top Primogem. Sections touch vertically, scrolling content stays inside the bottom frame, Dottore header paint stays inside its cut gold corner, and preview titles and close icons have more room. The extra Appearance divider is removed.
  • Professor Mari can create widget themes: the Appearance help says so, and her active workspace guidance points to the current theming reference and existing theme creation, update and activation tools. She can customize the public window, section and button hooks, including fonts, shapes and decorations.
  • Custom themes remain supported: documented mari-window, mari-drawer and mari-window-bubble classes, CSS variables and state attributes cover windows, sections, buttons, locks and the favorite star. Custom colors preserve shaped frames; decorative corners leave resize handles and focus indicators accessible. Theme-sized buttons are measured for placement and bounds. Default adds no preset palette or font override.
  • Characters sidebar companion: #7058 removes Possible duplicates and restores the previous full-width New Folder control; bulk tag editing remains available. That change is already on staging and is not duplicated here.

Validation

Final candidate: c4dbde13727cbfddecd8e41e5b8019c3ece3cf38. This includes the final ornament, spacing, border and preview refinements, the requested Appearance help text, and Professor Mari's widget-theme guidance. Evidence below identifies each tested revision; all eight required hosted checks and the full Linux regression run passed on this revision.

Check Recorded result
pnpm check Passed on final c4dbde137, including localization, formatting, lint, TypeScript, E2E types and production build.
Full widget browser suite 7 passed, 2 intentional mobile persistence skips on the frozen working tree subsequently committed as c4dbde137, with no intervening source edits. Desktop Chromium, phone Chromium and phone WebKit cover both themes, presets, fonts/shapes, custom colors, drag/resize/pop-out, persistence and Default restoration. New checks cover touching sections, protected scrolling borders, top-only ornaments, preview insets, removed divider and clipped custom header paint. All nine new screenshots were visually inspected.
Production browser smoke 3/3 passed on c4dbde137: compiled app startup and reload on desktop Chromium, phone Chromium and phone WebKit. 7/7 shell smoke passed on c4dbde137; the required hosted validation also passed.
Final container/runtime Native ARM64 image marinara-7049-polish:c4dbde137 built and ran for full SHA c4dbde13727cbfddecd8e41e5b8019c3ece3cf38. Image ID: sha256:d68e4b4ee086673bce394d69af4c83e684bcf16a420e377f4ff2261cd80ce4bf. Health and baked commit/branch matched; root HTML, both multiplayer guest assets, tutorial video and both widget SVGs returned HTTP 200 with the expected content types. The temporary container was removed.
Professor Mari and prompt coverage Existing permission-mode and documentation regressions passed (1/1 each); prompt suite passed 3/3 on the final working tree. Her existing theme APIs and permissions were traced; this adds guidance without changing those permissions. A live provider-generated theme was not exercised.
Earlier focused layout coverage At 1cfc3f22, full floating-window regression passed 1/1, with focused browser cases 4 passed / 5 intentional device skips for desktop trackers and phone Assets. At 10d779674, focused layout/mobile Help passed 30 cases / 18 device-specific skips, and Roleplay command edits/whispers/continue passed 12/12. At 7f4e6ae98, introduction and Characters-sidebar coverage passed 16 cases / 2 intentional skips; the video decoded and played in all three browser projects. Earlier focused cases cover migration, favorites/profile precedence, pins, keyboard bounds, timestamps and Search help.
Full Linux Node regressions 505/505 passed, zero failed on 1cfc3f22 (completed hosted job); its merge candidate had the same source tree. This confirms the whitespace-tolerant CSS fallback assertion repair. Final c4dbde137 full Linux lane also passed 505/505, zero failed (completed final job). The tested merge candidate fc85718269af8c337143d785697ad7997a1b8424 and the final head share tree 0ed0d43559a7d14f36feb74c317549c7294b415e. Local macOS limitation below.
Local CodeRabbit Final c4dbde137 follow-up reviewed all seven changed files with zero findings. Previous reviews covered all 17 widget files at 8f0d42d18 and all six review-fix files at 1cfc3f22, both with zero findings. Earlier valid touch-click/test-cleanup findings were fixed. Documentation review covered all 38 files; its minor wording finding and two hosted reference corrections were fixed.
Hosted CodeRabbit Completed full implementation review on 3dd2cd90d: 147 selected files, with 13 reporting no reviewable changes. Eight minor/trivial comments: four fixed, four received code-based dispositions; all eight threads resolved. The 1cfc3f22 incremental review completed all six changed files with zero new actionable findings. Final c4dbde137 incremental review completed all seven changed files with zero actionable comments (run 95d77257-0fa7-4faf-8ab9-491a8efa09eb, completed 2026-10-04 20:39 UTC). All review threads remain resolved.

The companion split preserves review coverage: documentation in #7057 and the independent Characters-sidebar fix in #7058 received their own normal review and are merged to staging. This branch incorporates that base. The current implementation diff contains 152 files; all source files are eligible under the existing review filters. The full 3dd review covered its 147 selected source files, and later changed files receive incremental review. The two SVG ornaments and bundled video are filtered assets under the unchanged configuration. Both SVGs were included in the completed 17-file local review; all three assets were covered by browser/visual and container checks. No excluded-path configuration or skipped run is counted as completed review.

Review dispositions: measured button size already drives placement and clamping; fixture extraction and package-window consolidation were optional refactors; the repeated Game helper call only allocates a React element and has no duplicated effects. Reset guidance, Mari navigation text, Assets action locator and tracker test opener were corrected. The top-center issue warning is superseded by the maintainer's top-right request. The alleged unrelated Game logic is byte-identical to staging; PresetEditor's Escape handling keeps its nested menu from closing Chat Settings. CodeRabbit's auxiliary docstring tool was inconclusive because of its own file limit, and its Biome parser did not accept existing Tailwind directives; neither is presented as a passing tool result.

Earlier review dispositions remain unchanged: branch-deletion cleanup, the Summary model guard and draft deletion were traced to pre-existing code; the suggested favorite-button subscription optimization was unnecessary because live dragging stays in component state until drop. The maintainer-provided introduction paragraph was retained after a copy-style suggestion, with the requested spelling corrections.

Local macOS limitation: decision-sidecar-runtime.regression.ts returns unsupported where its disk-space assertion expects not_enough_disk. The test and Decision runtime were byte-identical to staging 8c96996d73a8edd96db0e30168e1fa64eeb99c28 when traced. This known local limitation is not a passing check and does not replace the final hosted Linux result; both the preceding 1cfc3f22 and final c4dbde137 Linux runs passed all 505 cases.

  • 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

Automated browser proof uses desktop Chromium at 1440 × 900, Pixel-sized Chromium and iPhone-sized WebKit. Screenshots were visually inspected in addition to checking computed styles and interactions. Physical phones and their native keyboard/browser chrome have not been verified.

Manual checks for the reviewer:

  • In Conversation, Roleplay and Game, move the Chat Settings button; resize, pin and lock windows; pop a section out, minimize it and put it back. Confirm a locked button still opens its window but cannot move.
  • Open an older chat and confirm its previous tools remain as movable buttons. Open Search separately, move Game controls into Chat Settings, and confirm new windows open below their buttons while saved positions are kept.
  • Star an arrangement separately in Conversation, Roleplay and Game, create a new chat, then replace or clear the favorite. Confirm existing chats stay unchanged and an explicitly applied profile takes priority.
  • Refresh with pinned windows open and minimized, switch chats and apply a settings profile. Dismiss the global launcher reminder and the separate per-chat tips; confirm their different persistence rules and that Reset View keeps dismissed tips hidden.
  • In Roleplay, use the title-bar die and confirm trackers stay available through the panel, window or button. Check Agent activity actions and appearance in light and dark mode.
  • On a phone, move and lock buttons, open panels and Help, and type with the keyboard open. In Help, tap Chat Settings and scroll through its icon guide; confirm the Tracker Panel explanation appears only in Roleplay. Dock and pop out a Game control, then return to desktop and confirm its desktop geometry is preserved. Check that controls remain reachable.
  • Enter a chat after updating, play the welcome video, choose Got it, then reload and switch modes. Check that the video stays dismissed, including from another browser connected to the same installation.
  • Use keyboard navigation, Escape and outside clicks; check custom theme colors and larger text sizes.
  • In light and dark mode, try Default, Dottore and Mari in Settings > Appearance > App; check the narrow sidebar previews, font and shape overrides, reload persistence, and Reset Appearance. Check the top-only ornaments, touching sections, bottom frame while scrolling, and preview title/close spacing. Ask Professor Mari to create a custom widget theme. Move, resize and pop out a themed window, then return to Default and confirm the existing appearance is restored.

Docs and release impact

The documentation companion #7057 explains Chat Settings, drawers, pop-outs, favorites, profiles, phone controls and theming hooks. Widget appearance guidance and release notes are updated with the implementation. #7054 tracks translated documentation and FAQ changes. No version bump is included.

  • 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

Inspected before/after gallery: 25 inspected PNGs at immutable URLs, with every downloaded image verified against its local SHA-256 hash. The original 16 images and their provenance are preserved. Nine new polish images were captured from the frozen working tree immediately before commit c4dbde13727cbfddecd8e41e5b8019c3ece3cf38, with no intervening source edits. The seven earlier 8f0d42d18 widget images are pre-polish historical evidence.

All screenshots use synthetic data. The historical before images show preserved staging 45f13f16fe6fd503a70ce5f133b7afde40464bd7, not current staging; the layout/Tracker/Help images show 10d77967476c18d4f875a58a8b0fc1a3741f61ba, and the introduction/New Folder images show 7f4e6ae98ffe65661b1a6b1c3f3e2c20fa34c50f. Phone images use browser emulation, not physical devices.

View final polished widgets, scrolling borders and Appearance previews

Polished: Dottore, desktop dark mode

Polished: Dottore, desktop dark mode

Polished: Mari, desktop dark mode

Polished: Mari, desktop dark mode

Polished: Dottore, desktop light mode

Polished: Dottore, desktop light mode

Polished: Mari, desktop light mode

Polished: Mari, desktop light mode

Polished: Dottore, phone dark mode

Polished: Dottore, phone dark mode

Polished: Mari, phone light mode

Polished: Mari, phone light mode

Polished: Appearance preview title and close-icon padding

Polished: Appearance preview title and close-icon padding

Polished: Dottore scrolling content stays inside the frame

Polished: Dottore scrolling content stays inside the frame

Polished: Mari scrolling content stays inside the frame

Polished: Mari scrolling content stays inside the frame
View earlier widget screenshots (8f revision, before final polish)

After: Dottore chat widgets, desktop dark mode

After: Dottore chat widgets, desktop dark mode

After: Mari chat widgets, desktop dark mode

After: Mari chat widgets, desktop dark mode

After: Dottore chat widgets, desktop light mode

After: Dottore chat widgets, desktop light mode

After: Mari chat widgets, desktop light mode

After: Mari chat widgets, desktop light mode

After: Dottore chat widgets, phone dark mode

After: Dottore chat widgets, phone dark mode

After: Mari chat widgets, phone light mode

After: Mari chat widgets, phone light mode

After: readable preset cards in the narrow Appearance sidebar

After: readable preset cards in the narrow Appearance sidebar
View the before and after screenshots

Before: desktop Roleplay toolbar, dark mode

Before: desktop Roleplay toolbar, dark mode

Before: mobile Roleplay More options menu, dark mode

Before: mobile Roleplay More options menu, dark mode

After: Chat Settings at top right, collapsed Search, layout star and dismissible tips

After: Chat Settings at top right, collapsed Search, layout star and dismissible tips

After: Tracker Panel and Agent activity, dark mode

After: Tracker Panel and Agent activity, dark mode

After: Tracker Panel and Agent activity, light mode

After: Tracker Panel and Agent activity, light mode

After: mobile Chat Settings Help icon guide, scrolled to the final item

After: mobile Chat Settings Help icon guide, scrolled to the final item

After: one-time chat introduction, desktop light mode

After: one-time chat introduction, desktop light mode

After: one-time chat introduction, phone dark mode

After: one-time chat introduction, phone dark mode

After: full-width New Folder in the Characters sidebar

After: full-width New Folder in the Characters sidebar

🔄 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/7049 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/4/2026 **Status:** ✅ Merged **Merged:** 10/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/chat-window-redesign-7034` --- ### 📝 Commits (10+) - [`f502a1f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f502a1ffd566b41beb3d519e6711715af0e44ae5) feat(ui): shared floating window and drawer with theming contract - [`e5de2c6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e5de2c60ae73bafdeaee76083e6a5413068a2b85) feat(ui): Chat Settings opens as a movable window from the topbar - [`9e35a25`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e35a2545ef5da8b6c86e4ce8ec0fbcf8284469c) test(e2e): Chat Settings window - [`7bf5054`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7bf5054318f459973d547a5caebc450c7e3739e6) docs: Chat Settings window, its new button and theming hooks - [`a0d0bef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a0d0bef72802ece12fb05a737e4d49e8f2f499d4) fix(ui): a remounted window no longer takes focus - [`637e42b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/637e42b032edaa961867238d700e07d12b2f93da) fix(ui): Chat Settings toggles, Escape and Help stay reliable - [`b52db5f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b52db5f80d322acbadaad4560d98fba920b3c914) fix(ui): Help layout takes focus on its first open and stays readable - [`f8c0c17`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f8c0c1738587a611bc8e93b2e94571a0c0cffdbf) fix(ui): every Chat Settings section is a shared drawer that fits the window - [`e7ab536`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e7ab536202c5ace0635aa369d241b4d13b8aa731) fix(ui): Chat Settings window clears the Tracker Panel and closes chat popovers - [`6cc452e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6cc452efda204a4968561ed03d0e5bb3ff72fca3) docs: Chat Settings button wording, Game actions on phones and theming example ### 📊 Changes **152 files changed** (+16654 additions, -7171 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -2) 📝 `e2e/advanced-memory.e2e.ts` (+11 -14) 📝 `e2e/agent-private-context.e2e.ts` (+2 -1) 📝 `e2e/assigned-issue-sweep.e2e.ts` (+2 -1) 📝 `e2e/author-notes.e2e.ts` (+11 -11) ➕ `e2e/chat-control-windows.e2e.ts` (+492 -0) 📝 `e2e/chat-insights.e2e.ts` (+2 -9) 📝 `e2e/chat-lorebook-entry-scope.e2e.ts` (+0 -4) ➕ `e2e/chat-settings-tools.e2e.ts` (+216 -0) ➕ `e2e/chat-settings-tools.ts` (+71 -0) ➕ `e2e/chat-settings-window.e2e.ts` (+1124 -0) ➕ `e2e/chat-widget-style.e2e.ts` (+468 -0) ➕ `e2e/chat-window-favorite.e2e.ts` (+242 -0) ➕ `e2e/chat-window-intro.e2e.ts` (+241 -0) ➕ `e2e/chat-window-migration.e2e.ts` (+292 -0) 📝 `e2e/core-flows.e2e.ts` (+142 -188) ➕ `e2e/drawer-popout.e2e.ts` (+807 -0) 📝 `e2e/game-native-dice.e2e.ts` (+0 -3) 📝 `e2e/game-one-request-dice.e2e.ts` (+0 -20) 📝 `e2e/game-terrain-restore.e2e.ts` (+0 -3) _...and 80 more files_ </details> ### 📄 Description ## Why this change Chat tools were spread across a crowded toolbar and fixed popovers. This gives them a movable **Chat Settings** window and separate movable buttons, with arrangements saved per chat and reusable for future chats. Older chats retain their familiar tools; fresh installations start with the sections inside Chat Settings. The same controls work on computers and phones. The new **Default, Dottore and Mari** widget presets also let users change the appearance of these windows, sections and buttons without writing a custom theme. Default preserves the existing look. ## Linked issue Closes #7034 Closes #7036 Translation follow-up: #7054. Documentation companion: #7057 (merged to staging at `8fb5f5953ba5b20c2c8479507dfa3f2dece714b6`). Characters-sidebar companion: #7058 (merged to staging at `94ce3d6851ab635f4b08c8570dcaed5973f93fbc`). > [!IMPORTANT] > This PR targets `staging`. Required checks and a completed CodeRabbit review remain merge gates. Pending and skipped review runs are not passes. ## What changed - **Chat tools stay accessible:** a movable sliders button opens Chat Settings at the chat's top right by default; saved positions take precedence. Search (including Bookmarks and Trash), Branches, Summary, Active Context, Author's Notes, Gallery and Agent activity can be detached. Search starts collapsed unless its saved preference says otherwise, with the help text “Search for messages in the chat history, bookmarks, or removed messages.” Help opens beside the title. - **Windows and buttons:** desktop windows support moving, resizing, pinning, locking and keyboard controls. A window first opens below its button; later openings respect saved geometry. Locking a window also stops its button moving, while still allowing it to open. Phones use full-width panels and movable buttons. Buttons align while dragged and stay within the usable chat area as sidebars or the keyboard change its bounds. - **Pop out and put back:** close/minimize returns a separate window to a button; **Put back** returns its content to its original window. Game controls, Session, Volume, Game Assets, connected chats and package controls can also dock inside Chat Settings and pop out again. Button and window positions are saved separately; docking on a phone preserves desktop geometry, pin and lock. - **Saved arrangements and favorites:** chats and settings profiles save their layouts. Open pinned windows restore after refresh; explicitly closed or minimized ones remain closed or minimized. Moving a window does not reorder the chat list. Reset View asks before restoring the starting arrangement. The star beside Reset View saves the current mode's layout and tips choice for future chats; replacing or clearing it leaves existing chats unchanged, and an explicit profile layout takes priority. Upgrades seed the familiar tool-button arrangement in all three modes without replacing an existing saved or cleared favorite; device-selected automatic button positions still match that favorite until moved. Fresh installations start with the tools inside Chat Settings. - **Guidance and dismissal:** a bundled, responsive video introduces the layout once for new and existing users, after onboarding and startup notices. **Got it** stays dismissed across chats, refreshes and synced browsers. Phone Help explains the controls and scrolls to every item, with a Roleplay-only Tracker Panel explanation. Per-chat layout tips are saved in profiles; the separate launcher reminder is dismissed once globally. Older synced preferences do not revive dismissed reminders. - **Roleplay trackers:** the title-bar die controls Tracker Panel, replacing the extra Tracker window toggle. Outside the panel, trackers use a window or a small button when there is insufficient room beside the messages; saved layouts take priority. Agent activity remains available in Chat Settings and tracker surfaces, with matching fonts, spacing and neutral backgrounds. The panel border follows the pulsing accent on desktop and phones. - **Interaction fixes:** detached Advanced Parameters and Chat Variables remain current even when their original sections are collapsed. Windows restore keyboard focus when closed. A hidden Chat Settings host restores detached content without automatically applying a prompt preset or bumping the chat timestamp. Docked Session and Assets pause Game narration only while Chat Settings is open and their sections are expanded. - **Widget appearance presets:** Settings > Appearance > App offers Default, Dottore and Mari in light and dark mode, with font overrides and rounded, square, cut-corner or arched shapes. Dottore uses technical monospace lettering and angular frames; Mari uses serif lettering and arched frames. Selecting a preset resets its overrides, and Reset Appearance restores Default. Choices persist locally and through synced settings. Preview cards use the available panel width instead of being squeezed into three narrow columns, and each card previews its own preset rather than inheriting the selected one. - **Polished theme frames:** Dottore and Mari keep only their top ornaments, and Mari buttons have one top Primogem. Sections touch vertically, scrolling content stays inside the bottom frame, Dottore header paint stays inside its cut gold corner, and preview titles and close icons have more room. The extra Appearance divider is removed. - **Professor Mari can create widget themes:** the Appearance help says so, and her active workspace guidance points to the current theming reference and existing theme creation, update and activation tools. She can customize the public window, section and button hooks, including fonts, shapes and decorations. - **Custom themes remain supported:** documented `mari-window`, `mari-drawer` and `mari-window-bubble` classes, CSS variables and state attributes cover windows, sections, buttons, locks and the favorite star. Custom colors preserve shaped frames; decorative corners leave resize handles and focus indicators accessible. Theme-sized buttons are measured for placement and bounds. Default adds no preset palette or font override. - **Characters sidebar companion:** #7058 removes Possible duplicates and restores the previous full-width New Folder control; bulk tag editing remains available. That change is already on staging and is not duplicated here. ## Validation Final candidate: **`c4dbde13727cbfddecd8e41e5b8019c3ece3cf38`**. This includes the final ornament, spacing, border and preview refinements, the requested Appearance help text, and Professor Mari's widget-theme guidance. Evidence below identifies each tested revision; all eight required hosted checks and the full Linux regression run passed on this revision. | Check | Recorded result | | --- | --- | | `pnpm check` | **Passed on final `c4dbde137`**, including localization, formatting, lint, TypeScript, E2E types and production build. | | Full widget browser suite | **7 passed, 2 intentional mobile persistence skips** on the frozen working tree subsequently committed as `c4dbde137`, with no intervening source edits. Desktop Chromium, phone Chromium and phone WebKit cover both themes, presets, fonts/shapes, custom colors, drag/resize/pop-out, persistence and Default restoration. New checks cover touching sections, protected scrolling borders, top-only ornaments, preview insets, removed divider and clipped custom header paint. All nine new screenshots were visually inspected. | | Production browser smoke | **3/3 passed on `c4dbde137`**: compiled app startup and reload on desktop Chromium, phone Chromium and phone WebKit. **7/7 shell smoke passed on `c4dbde137`**; the required hosted validation also passed. | | Final container/runtime | Native ARM64 image `marinara-7049-polish:c4dbde137` built and ran for full SHA `c4dbde13727cbfddecd8e41e5b8019c3ece3cf38`. Image ID: `sha256:d68e4b4ee086673bce394d69af4c83e684bcf16a420e377f4ff2261cd80ce4bf`. Health and baked commit/branch matched; root HTML, both multiplayer guest assets, tutorial video and both widget SVGs returned HTTP 200 with the expected content types. The temporary container was removed. | | Professor Mari and prompt coverage | Existing permission-mode and documentation regressions passed (1/1 each); prompt suite passed **3/3** on the final working tree. Her existing theme APIs and permissions were traced; this adds guidance without changing those permissions. A live provider-generated theme was not exercised. | | Earlier focused layout coverage | At `1cfc3f22`, full floating-window regression passed 1/1, with focused browser cases **4 passed / 5 intentional device skips** for desktop trackers and phone Assets. At `10d779674`, focused layout/mobile Help passed **30 cases / 18 device-specific skips**, and Roleplay command edits/whispers/continue passed **12/12**. At `7f4e6ae98`, introduction and Characters-sidebar coverage passed **16 cases / 2 intentional skips**; the video decoded and played in all three browser projects. Earlier focused cases cover migration, favorites/profile precedence, pins, keyboard bounds, timestamps and Search help. | | Full Linux Node regressions | **505/505 passed, zero failed on `1cfc3f22`** ([completed hosted job](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/37230813868/job/111519876302)); its merge candidate had the same source tree. This confirms the whitespace-tolerant CSS fallback assertion repair. **Final `c4dbde137` full Linux lane also passed 505/505, zero failed** ([completed final job](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/37232137522/job/111523947950)). The tested merge candidate `fc85718269af8c337143d785697ad7997a1b8424` and the final head share tree `0ed0d43559a7d14f36feb74c317549c7294b415e`. Local macOS limitation below. | | Local CodeRabbit | **Final `c4dbde137` follow-up reviewed all seven changed files with zero findings.** Previous reviews covered all 17 widget files at `8f0d42d18` and all six review-fix files at `1cfc3f22`, both with zero findings. Earlier valid touch-click/test-cleanup findings were fixed. Documentation review covered all 38 files; its minor wording finding and two hosted reference corrections were fixed. | | Hosted CodeRabbit | Completed full implementation review on `3dd2cd90d`: 147 selected files, with 13 reporting no reviewable changes. Eight minor/trivial comments: four fixed, four received code-based dispositions; all eight threads resolved. The `1cfc3f22` incremental review completed all six changed files with zero new actionable findings. **Final `c4dbde137` incremental review completed all seven changed files with zero actionable comments** (run `95d77257-0fa7-4faf-8ab9-491a8efa09eb`, completed 2026-10-04 20:39 UTC). All review threads remain resolved. | The companion split preserves review coverage: documentation in #7057 and the independent Characters-sidebar fix in #7058 received their own normal review and are merged to staging. This branch incorporates that base. The current implementation diff contains 152 files; all source files are eligible under the existing review filters. The full 3dd review covered its 147 selected source files, and later changed files receive incremental review. The two SVG ornaments and bundled video are filtered assets under the unchanged configuration. Both SVGs were included in the completed 17-file local review; all three assets were covered by browser/visual and container checks. No excluded-path configuration or skipped run is counted as completed review. Review dispositions: measured button size already drives placement and clamping; fixture extraction and package-window consolidation were optional refactors; the repeated Game helper call only allocates a React element and has no duplicated effects. Reset guidance, Mari navigation text, Assets action locator and tracker test opener were corrected. The top-center issue warning is superseded by the maintainer's top-right request. The alleged unrelated Game logic is byte-identical to staging; PresetEditor's Escape handling keeps its nested menu from closing Chat Settings. CodeRabbit's auxiliary docstring tool was inconclusive because of its own file limit, and its Biome parser did not accept existing Tailwind directives; neither is presented as a passing tool result. Earlier review dispositions remain unchanged: branch-deletion cleanup, the Summary model guard and draft deletion were traced to pre-existing code; the suggested favorite-button subscription optimization was unnecessary because live dragging stays in component state until drop. The maintainer-provided introduction paragraph was retained after a copy-style suggestion, with the requested spelling corrections. **Local macOS limitation:** `decision-sidecar-runtime.regression.ts` returns `unsupported` where its disk-space assertion expects `not_enough_disk`. The test and Decision runtime were byte-identical to staging `8c96996d73a8edd96db0e30168e1fa64eeb99c28` when traced. This known local limitation is not a passing check and does not replace the final hosted Linux result; both the preceding `1cfc3f22` and final `c4dbde137` Linux runs passed all 505 cases. - [ ] `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 Automated browser proof uses desktop Chromium at 1440 × 900, Pixel-sized Chromium and iPhone-sized WebKit. Screenshots were visually inspected in addition to checking computed styles and interactions. **Physical phones and their native keyboard/browser chrome have not been verified.** Manual checks for the reviewer: - [ ] In Conversation, Roleplay and Game, move the Chat Settings button; resize, pin and lock windows; pop a section out, minimize it and put it back. Confirm a locked button still opens its window but cannot move. - [ ] Open an older chat and confirm its previous tools remain as movable buttons. Open Search separately, move Game controls into Chat Settings, and confirm new windows open below their buttons while saved positions are kept. - [ ] Star an arrangement separately in Conversation, Roleplay and Game, create a new chat, then replace or clear the favorite. Confirm existing chats stay unchanged and an explicitly applied profile takes priority. - [ ] Refresh with pinned windows open and minimized, switch chats and apply a settings profile. Dismiss the global launcher reminder and the separate per-chat tips; confirm their different persistence rules and that Reset View keeps dismissed tips hidden. - [ ] In Roleplay, use the title-bar die and confirm trackers stay available through the panel, window or button. Check Agent activity actions and appearance in light and dark mode. - [ ] On a phone, move and lock buttons, open panels and Help, and type with the keyboard open. In Help, tap Chat Settings and scroll through its icon guide; confirm the Tracker Panel explanation appears only in Roleplay. Dock and pop out a Game control, then return to desktop and confirm its desktop geometry is preserved. Check that controls remain reachable. - [ ] Enter a chat after updating, play the welcome video, choose **Got it**, then reload and switch modes. Check that the video stays dismissed, including from another browser connected to the same installation. - [ ] Use keyboard navigation, Escape and outside clicks; check custom theme colors and larger text sizes. - [ ] In light and dark mode, try Default, Dottore and Mari in Settings > Appearance > App; check the narrow sidebar previews, font and shape overrides, reload persistence, and Reset Appearance. Check the top-only ornaments, touching sections, bottom frame while scrolling, and preview title/close spacing. Ask Professor Mari to create a custom widget theme. Move, resize and pop out a themed window, then return to Default and confirm the existing appearance is restored. ## Docs and release impact The documentation companion #7057 explains Chat Settings, drawers, pop-outs, favorites, profiles, phone controls and theming hooks. Widget appearance guidance and release notes are updated with the implementation. #7054 tracks translated documentation and FAQ changes. No version bump is included. - [ ] 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 [Inspected before/after gallery](https://gist.github.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61): **25 inspected PNGs at immutable URLs**, with every downloaded image verified against its local SHA-256 hash. The original 16 images and their provenance are preserved. Nine new polish images were captured from the frozen working tree immediately before commit **`c4dbde13727cbfddecd8e41e5b8019c3ece3cf38`**, with no intervening source edits. The seven earlier `8f0d42d18` widget images are pre-polish historical evidence. All screenshots use synthetic data. The historical before images show preserved staging `45f13f16fe6fd503a70ce5f133b7afde40464bd7`, not current staging; the layout/Tracker/Help images show `10d77967476c18d4f875a58a8b0fc1a3741f61ba`, and the introduction/New Folder images show `7f4e6ae98ffe65661b1a6b1c3f3e2c20fa34c50f`. Phone images use browser emulation, not physical devices. <details> <summary>View final polished widgets, scrolling borders and Appearance previews</summary> **Polished: Dottore, desktop dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-dottore-desktop-dark.png" width="900" alt="Polished: Dottore, desktop dark mode" /> **Polished: Mari, desktop dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-mari-desktop-dark.png" width="900" alt="Polished: Mari, desktop dark mode" /> **Polished: Dottore, desktop light mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-dottore-desktop-light.png" width="900" alt="Polished: Dottore, desktop light mode" /> **Polished: Mari, desktop light mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-mari-desktop-light.png" width="900" alt="Polished: Mari, desktop light mode" /> **Polished: Dottore, phone dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-dottore-mobile-dark.png" width="390" alt="Polished: Dottore, phone dark mode" /> **Polished: Mari, phone light mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-mari-mobile-light.png" width="390" alt="Polished: Mari, phone light mode" /> **Polished: Appearance preview title and close-icon padding** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-settings-presets.png" width="900" alt="Polished: Appearance preview title and close-icon padding" /> **Polished: Dottore scrolling content stays inside the frame** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-dottore-desktop-dark-scrolled.png" width="900" alt="Polished: Dottore scrolling content stays inside the frame" /> **Polished: Mari scrolling content stays inside the frame** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/b57fcb2af11c53359c0f186818acd87a61d1b2e0/after-widget-polished-mari-desktop-dark-scrolled.png" width="900" alt="Polished: Mari scrolling content stays inside the frame" /> </details> <details> <summary>View earlier widget screenshots (8f revision, before final polish)</summary> **After: Dottore chat widgets, desktop dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/708910ea83c1c411799ff0f19468a3d1eee539e0/after-widget-dottore-desktop-dark.png" width="900" alt="After: Dottore chat widgets, desktop dark mode" /> **After: Mari chat widgets, desktop dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/708910ea83c1c411799ff0f19468a3d1eee539e0/after-widget-mari-desktop-dark.png" width="900" alt="After: Mari chat widgets, desktop dark mode" /> **After: Dottore chat widgets, desktop light mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/708910ea83c1c411799ff0f19468a3d1eee539e0/after-widget-dottore-desktop-light.png" width="900" alt="After: Dottore chat widgets, desktop light mode" /> **After: Mari chat widgets, desktop light mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/708910ea83c1c411799ff0f19468a3d1eee539e0/after-widget-mari-desktop-light.png" width="900" alt="After: Mari chat widgets, desktop light mode" /> **After: Dottore chat widgets, phone dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/708910ea83c1c411799ff0f19468a3d1eee539e0/after-widget-dottore-mobile-dark.png" width="390" alt="After: Dottore chat widgets, phone dark mode" /> **After: Mari chat widgets, phone light mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/708910ea83c1c411799ff0f19468a3d1eee539e0/after-widget-mari-mobile-light.png" width="390" alt="After: Mari chat widgets, phone light mode" /> **After: readable preset cards in the narrow Appearance sidebar** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/708910ea83c1c411799ff0f19468a3d1eee539e0/after-widget-settings-presets.png" width="900" alt="After: readable preset cards in the narrow Appearance sidebar" /> </details> <details> <summary>View the before and after screenshots</summary> **Before: desktop Roleplay toolbar, dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/542735eb2e4d3e6746c596ec511a599b66d05ad4/before-desktop-roleplay.png" width="900" alt="Before: desktop Roleplay toolbar, dark mode" /> **Before: mobile Roleplay More options menu, dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/542735eb2e4d3e6746c596ec511a599b66d05ad4/before-mobile-roleplay-menu.png" width="390" alt="Before: mobile Roleplay More options menu, dark mode" /> **After: Chat Settings at top right, collapsed Search, layout star and dismissible tips** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/542735eb2e4d3e6746c596ec511a599b66d05ad4/after-desktop-chat-settings.png" width="900" alt="After: Chat Settings at top right, collapsed Search, layout star and dismissible tips" /> **After: Tracker Panel and Agent activity, dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/542735eb2e4d3e6746c596ec511a599b66d05ad4/after-tracker-dark.png" width="900" alt="After: Tracker Panel and Agent activity, dark mode" /> **After: Tracker Panel and Agent activity, light mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/542735eb2e4d3e6746c596ec511a599b66d05ad4/after-tracker-light.png" width="900" alt="After: Tracker Panel and Agent activity, light mode" /> **After: mobile Chat Settings Help icon guide, scrolled to the final item** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/542735eb2e4d3e6746c596ec511a599b66d05ad4/after-mobile-help-icons.png" width="390" alt="After: mobile Chat Settings Help icon guide, scrolled to the final item" /> **After: one-time chat introduction, desktop light mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/ac77c3af4356ec248b6f5a64a828335ae32ca868/after-intro-desktop.png" width="900" alt="After: one-time chat introduction, desktop light mode" /> **After: one-time chat introduction, phone dark mode** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/ac77c3af4356ec248b6f5a64a828335ae32ca868/after-intro-mobile.png" width="390" alt="After: one-time chat introduction, phone dark mode" /> **After: full-width New Folder in the Characters sidebar** <img src="https://gist.githubusercontent.com/SpicyMarinara/6ad83a4de8aa1e26e7962ddc2f939d61/raw/ac77c3af4356ec248b6f5a64a828335ae32ca868/after-characters-new-folder.png" width="900" alt="After: full-width New Folder in the Characters sidebar" /> </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:19:52 +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#7445
No description provided.