[PR #7082] [MERGED] feat(ui): extend widget styles and group mobile chat controls (#7081) #7464

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

📋 Pull Request Information

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

Base: staging ← Head: feat/chat-widget-extension-7081


📝 Commits (10+)

  • d535bb7 docs: record chat style and mobile menu scope (#7081)
  • ee00fee feat(ui): extend chat styling and add movable phone tools
  • 2a985ad Merge branch 'fix/agent-tracker-widget-windows' into feat/chat-widget-extension-7081
  • c8526d8 fix(ui): preserve outline colors and style classic conversation text
  • 754f323 fix(ui): apply gradient text to plain Game narration
  • 98c8dda fix: preserve optional chat styling across browser fallbacks
  • e51ba6c test: complete Profiles fixture and await drag reordering
  • 526c0df Merge remote-tracking branch 'origin/staging' into feat/chat-widget-extension-7081
  • cc12186 fix: preserve Game sheet drafts during layout saves
  • 509612f test: preserve sheet drafts across delayed layout saves

📊 Changes

66 files changed (+2810 additions, -727 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 docs/appearance/appearance-settings.md (+8 -0)
📝 docs/appearance/custom-css-themes.md (+47 -1)
📝 docs/appearance/fonts.md (+2 -0)
📝 docs/chats/chat-settings.md (+19 -7)
📝 docs/chats/connected-chats.md (+1 -1)
📝 docs/game/getting-started.md (+6 -4)
📝 docs/game/map-time-weather.md (+2 -2)
📝 docs/game/party-and-npcs.md (+6 -6)
📝 docs/roleplay/getting-started.md (+1 -1)
📝 docs/roleplay/hud-and-trackers.md (+2 -0)
📝 e2e/chat-control-windows.e2e.ts (+126 -8)
📝 e2e/chat-settings-tools.ts (+16 -0)
📝 e2e/chat-widget-style.e2e.ts (+653 -9)
📝 e2e/chat-window-favorite.e2e.ts (+12 -9)
📝 e2e/chat-window-migration.e2e.ts (+32 -9)
📝 e2e/core-flows.e2e.ts (+47 -6)
📝 e2e/drawer-popout.e2e.ts (+7 -5)
📝 e2e/game-ruleset-item-charges.e2e.ts (+3 -1)
📝 e2e/game-ruleset-item-use-outside.e2e.ts (+3 -1)

...and 46 more files

📄 Description

Linked issue

Closes #7081.
Closes #7092.

Why this change

Chat widget presets currently stop at floating windows, leaving messages, input boxes and other chat controls with a different appearance. Detached Chat Settings sections also crowd phone screens, and Game's Map and Character Profiles controls cannot share the saved, movable layout. Users also need to resize movable buttons without changing Display Size for the whole app.

What changed

  • Add independent Apply preset font, Apply preset shape and Apply preset colors switches below the widget color controls. All three start off. Font and colors can also apply to Conversation messages; their existing bubble shapes stay under Conversation settings. Roleplay classic/VN, Game narration, composers and chat controls support the selected preset and color overrides.
  • Add Button size (px) under Chat widget style for movable buttons and their icons. It accepts 32–96 px independently of Display Size; leaving it empty or resetting preserves the existing desktop, phone and custom-theme default. The size persists across reloads and browsers and is preserved when switching presets.
  • Add a movable three-dot Chat tools menu on phones for detached settings sections and dockable chat controls. Its lock prevents movement and reordering; unlocked items support dragging and keyboard reordering. Position, order and lock are saved with the chat layout, favorites and profiles. Tracker buttons remain separate.
  • Give phone Map and phone/desktop Character Profiles separate themed, movable, lockable buttons using the shared window behavior. Keep Map travel/editing and character sheet actions available. Desktop Map keeps its existing panel behavior.
  • Preserve unsaved Character Sheet edits when saving a window position refreshes Game chat metadata.
  • Document the options and expose the chat styling hooks to Professor Mari's theme instructions. Preserve existing layout positions and defaults.

Validation

Delivery head: f1b9840a48d6f307139c9fe725f064fd982db045, including staging 79a8c3806 (#7088, #7090 and #7096). Both staging integrations preserved all 64 feature files byte-for-byte and every existing English locale value. Only the upstream changes and combined changelog were added.

  • pnpm check and pnpm version:check passed again on the delivery head, including localization, formatting, lint, TypeScript and the production build.
  • Integration browser checks passed 9/9 across desktop Chromium, mobile Chromium and mobile WebKit: Codex thinking-level controls and persona folders in chat setup and Chat Settings. Focused TypeSafe, Codex reasoning and generation-parameter regressions passed. The final head also passed pnpm smoke:ui 7/7 and pnpm smoke:production 3/3.
  • The widget feature checks passed 12/12 at 3a80c36d2: preserved Default and both presets in light/dark mode, numeric editing, and size/default/reset/clamping/persistence checks in all three browsers. The unchanged source is verified against the delivery head. Earlier feature coverage also verified styling across all chat modes, phone menu drag/keyboard reorder and persistence, separate Map/Profiles windows, docking and preserved unsaved Character Sheet edits.
  • The complete hosted Node suite passed 509/509 on delivery head f1b9840a4 (run), including all 57 window icons and the corrected Firefox styling assertion. Every required check and the platform artifact matrix passed before merging. Staging merge 2e37c1195 has the exact same Git tree as that tested head.
  • A fresh Linux ARM64 container from delivery head f1b9840a4 passed health, exact commit/branch metadata, compiled frontend, multiplayer guest assets, tutorial video, ornament hashes and compiled styling checks, including the size override. Temporary test containers were removed.
  • Focused Chromium/WebKit checks verified cut-corner transparency, original outline colors with Shape only, and gradient narration text. A separate Firefox CSS fixture checked 20 viewport/theme/switch combinations; this is not a full Firefox app run.
  • Local CodeRabbit completed all 13 size-control files with zero findings. The preceding 64-file feature review completed: one test guard fixed, one trivial breakpoint-refactor suggestion declined, and one phone Map disabled-state suggestion traced to a caller that already supplies the stronger condition. Detailed dispositions accompany this PR.
  • Hosted CodeRabbit completed the full feature review at 62778dcd9, the 14-file increment at e5f2687c7, and the final two-file integration review at f1b9840a4. The final review raised one changelog wording suggestion: explicitly name Game dialogue. It was declined because the concise chat-message summary covers that surface and the guide already names it explicitly. The disposition is recorded in the thread, which is resolved; all review gates completed before merge.

Manual verification still requested

  • Manually try Button size at Default and a custom pixel size; verify icons, reset, saved preferences and reachable controls.
  • Manually verify each switch independently in Conversation, Roleplay classic/VN and Game, using both light and dark mode.
  • Manually verify custom gradients and that turning the switches off restores the existing appearance.
  • Manually verify touch dragging, menu reordering, locking, refresh persistence and keyboard behavior on a physical phone.
  • Manually verify Map travel/editing and Character Profiles editing with an existing Game chat.
  • Manually ask Professor Mari to create a theme using the documented chat styling hooks with a configured provider.

Docs and release impact

The changelog and ten English guides cover the new controls and beginner-facing behavior. The matching translated-guide follow-up is #7085. This change does not bump the app or storage version.

UI evidence

Inspected 17-image browser gallery. All uploaded PNG hashes were verified. Thirteen style images are from final test head 62778dcd9; four unchanged menu/Map/Profiles captures retain their recorded e51ba6c2 provenance. Its before/after pairs compare switches off and on in the same implementation, not different app revisions. Phone screenshots use browser emulation; physical device testing remains manual.

Inspected 9-image button-size gallery, all from final head 3a80c36d2. It compares the current default size with 64 px Dottore buttons and shows the field on desktop and both emulated phone browsers. All uploaded PNG hashes were verified.

Summary by CodeRabbit

  • New Features
    • Customize chat widget button size independently of display size, and choose whether preset fonts, shapes, and colors apply to chat messages, input boxes, and controls.
    • On phones, access detached chat tools from a movable, reorderable, and lockable Chat tools menu. Move and lock Map and Character Profiles separately.
    • Save phone menu and control positions with chat layouts and settings profiles.
  • Bug Fixes
    • Preserve unsaved character-sheet edits when saving window layouts.
  • Documentation
    • Updated appearance, chat, and game guides with the new styling options and device-specific controls.

🔄 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/7082 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/4/2026 **Status:** ✅ Merged **Merged:** 10/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/chat-widget-extension-7081` --- ### 📝 Commits (10+) - [`d535bb7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d535bb752ce2bb87c7297e1c240a7b3147d12859) docs: record chat style and mobile menu scope (#7081) - [`ee00fee`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ee00feecbee1269f7fb56dbc6aa40a72e843245c) feat(ui): extend chat styling and add movable phone tools - [`2a985ad`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2a985ad6b4e38d6aedc852fd2604b3dcd7d86487) Merge branch 'fix/agent-tracker-widget-windows' into feat/chat-widget-extension-7081 - [`c8526d8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8526d87d85464bd49141b5f50a5deea8b103391) fix(ui): preserve outline colors and style classic conversation text - [`754f323`](https://github.com/Pasta-Devs/Marinara-Engine/commit/754f3230f5b82ff9aee98d7a4a6195fc6001ee2c) fix(ui): apply gradient text to plain Game narration - [`98c8dda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/98c8ddab6501da2ed1104d054315385193f1f974) fix: preserve optional chat styling across browser fallbacks - [`e51ba6c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e51ba6c2ac8345d551aadc2b3a4d1a4235ab5fce) test: complete Profiles fixture and await drag reordering - [`526c0df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/526c0df291a9d2583cb2c9dfeedf5a7aef21b3c6) Merge remote-tracking branch 'origin/staging' into feat/chat-widget-extension-7081 - [`cc12186`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cc121866c1f95968b54e28395fb168c1cad5c6e2) fix: preserve Game sheet drafts during layout saves - [`509612f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/509612f3bcb046741932c44d23835f1c76e0eed7) test: preserve sheet drafts across delayed layout saves ### 📊 Changes **66 files changed** (+2810 additions, -727 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `docs/appearance/appearance-settings.md` (+8 -0) 📝 `docs/appearance/custom-css-themes.md` (+47 -1) 📝 `docs/appearance/fonts.md` (+2 -0) 📝 `docs/chats/chat-settings.md` (+19 -7) 📝 `docs/chats/connected-chats.md` (+1 -1) 📝 `docs/game/getting-started.md` (+6 -4) 📝 `docs/game/map-time-weather.md` (+2 -2) 📝 `docs/game/party-and-npcs.md` (+6 -6) 📝 `docs/roleplay/getting-started.md` (+1 -1) 📝 `docs/roleplay/hud-and-trackers.md` (+2 -0) 📝 `e2e/chat-control-windows.e2e.ts` (+126 -8) 📝 `e2e/chat-settings-tools.ts` (+16 -0) 📝 `e2e/chat-widget-style.e2e.ts` (+653 -9) 📝 `e2e/chat-window-favorite.e2e.ts` (+12 -9) 📝 `e2e/chat-window-migration.e2e.ts` (+32 -9) 📝 `e2e/core-flows.e2e.ts` (+47 -6) 📝 `e2e/drawer-popout.e2e.ts` (+7 -5) 📝 `e2e/game-ruleset-item-charges.e2e.ts` (+3 -1) 📝 `e2e/game-ruleset-item-use-outside.e2e.ts` (+3 -1) _...and 46 more files_ </details> ### 📄 Description ## Linked issue Closes #7081. Closes #7092. ## Why this change Chat widget presets currently stop at floating windows, leaving messages, input boxes and other chat controls with a different appearance. Detached Chat Settings sections also crowd phone screens, and Game's Map and Character Profiles controls cannot share the saved, movable layout. Users also need to resize movable buttons without changing Display Size for the whole app. ## What changed - Add independent **Apply preset font**, **Apply preset shape** and **Apply preset colors** switches below the widget color controls. All three start off. Font and colors can also apply to Conversation messages; their existing bubble shapes stay under Conversation settings. Roleplay classic/VN, Game narration, composers and chat controls support the selected preset and color overrides. - Add **Button size (px)** under Chat widget style for movable buttons and their icons. It accepts 32–96 px independently of Display Size; leaving it empty or resetting preserves the existing desktop, phone and custom-theme default. The size persists across reloads and browsers and is preserved when switching presets. - Add a movable three-dot **Chat tools** menu on phones for detached settings sections and dockable chat controls. Its lock prevents movement and reordering; unlocked items support dragging and keyboard reordering. Position, order and lock are saved with the chat layout, favorites and profiles. Tracker buttons remain separate. - Give phone Map and phone/desktop Character Profiles separate themed, movable, lockable buttons using the shared window behavior. Keep Map travel/editing and character sheet actions available. Desktop Map keeps its existing panel behavior. - Preserve unsaved Character Sheet edits when saving a window position refreshes Game chat metadata. - Document the options and expose the chat styling hooks to Professor Mari's theme instructions. Preserve existing layout positions and defaults. ## Validation Delivery head: `f1b9840a48d6f307139c9fe725f064fd982db045`, including staging `79a8c3806` (#7088, #7090 and #7096). Both staging integrations preserved all 64 feature files byte-for-byte and every existing English locale value. Only the upstream changes and combined changelog were added. - `pnpm check` and `pnpm version:check` passed again on the delivery head, including localization, formatting, lint, TypeScript and the production build. - Integration browser checks passed **9/9** across desktop Chromium, mobile Chromium and mobile WebKit: Codex thinking-level controls and persona folders in chat setup and Chat Settings. Focused TypeSafe, Codex reasoning and generation-parameter regressions passed. The final head also passed `pnpm smoke:ui` **7/7** and `pnpm smoke:production` **3/3**. - The widget feature checks passed **12/12** at `3a80c36d2`: preserved Default and both presets in light/dark mode, numeric editing, and size/default/reset/clamping/persistence checks in all three browsers. The unchanged source is verified against the delivery head. Earlier feature coverage also verified styling across all chat modes, phone menu drag/keyboard reorder and persistence, separate Map/Profiles windows, docking and preserved unsaved Character Sheet edits. - The complete hosted Node suite passed **509/509** on delivery head `f1b9840a4` ([run](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/37280360083)), including all **57 window icons** and the corrected Firefox styling assertion. Every required check and the platform artifact matrix passed before merging. Staging merge `2e37c1195` has the exact same Git tree as that tested head. - A fresh Linux ARM64 container from delivery head `f1b9840a4` passed health, exact commit/branch metadata, compiled frontend, multiplayer guest assets, tutorial video, ornament hashes and compiled styling checks, including the size override. Temporary test containers were removed. - Focused Chromium/WebKit checks verified cut-corner transparency, original outline colors with Shape only, and gradient narration text. A separate Firefox CSS fixture checked 20 viewport/theme/switch combinations; this is not a full Firefox app run. - Local CodeRabbit completed all **13 size-control files with zero findings**. The preceding 64-file feature review completed: one test guard fixed, one trivial breakpoint-refactor suggestion declined, and one phone Map disabled-state suggestion traced to a caller that already supplies the stronger condition. Detailed dispositions accompany this PR. - Hosted CodeRabbit completed the full feature review at `62778dcd9`, the 14-file increment at `e5f2687c7`, and the final two-file integration review at `f1b9840a4`. The final review raised one changelog wording suggestion: explicitly name Game dialogue. It was declined because the concise chat-message summary covers that surface and the guide already names it explicitly. The disposition is recorded in the thread, which is resolved; all review gates completed before merge. ### Manual verification still requested - [ ] Manually try Button size at Default and a custom pixel size; verify icons, reset, saved preferences and reachable controls. - [ ] Manually verify each switch independently in Conversation, Roleplay classic/VN and Game, using both light and dark mode. - [ ] Manually verify custom gradients and that turning the switches off restores the existing appearance. - [ ] Manually verify touch dragging, menu reordering, locking, refresh persistence and keyboard behavior on a physical phone. - [ ] Manually verify Map travel/editing and Character Profiles editing with an existing Game chat. - [ ] Manually ask Professor Mari to create a theme using the documented chat styling hooks with a configured provider. ## Docs and release impact The changelog and ten English guides cover the new controls and beginner-facing behavior. The matching translated-guide follow-up is #7085. This change does not bump the app or storage version. ## UI evidence [Inspected 17-image browser gallery](https://gist.github.com/SpicyMarinara/73373bea4950579c2e738e53ceb810e0). All uploaded PNG hashes were verified. Thirteen style images are from final test head `62778dcd9`; four unchanged menu/Map/Profiles captures retain their recorded `e51ba6c2` provenance. Its before/after pairs compare switches off and on in the same implementation, not different app revisions. Phone screenshots use browser emulation; physical device testing remains manual. [Inspected 9-image button-size gallery](https://gist.github.com/SpicyMarinara/c8fa594eca15dd17d1e13bcdecf67439), all from final head `3a80c36d2`. It compares the current default size with 64 px Dottore buttons and shows the field on desktop and both emulated phone browsers. All uploaded PNG hashes were verified. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Customize chat widget button size independently of display size, and choose whether preset fonts, shapes, and colors apply to chat messages, input boxes, and controls. * On phones, access detached chat tools from a movable, reorderable, and lockable **Chat tools** menu. Move and lock **Map** and **Character Profiles** separately. * Save phone menu and control positions with chat layouts and settings profiles. * **Bug Fixes** * Preserve unsaved character-sheet edits when saving window layouts. * **Documentation** * Updated appearance, chat, and game guides with the new styling options and device-specific controls. <!-- 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:03 +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#7464
No description provided.