[PR #5396] [MERGED] feat(ui): unify chat controls and reasoning presentation #6750

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

📋 Pull Request Information

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

Base: staging ← Head: fix/chat-settings-button-consistency


📝 Commits (8)

  • 781dd18 feat(ui): unify chat controls and reasoning presentation
  • 4af9a09 Merge branch 'staging' into fix/chat-settings-button-consistency
  • 4cd7f46 fix(ui): refine connection and switch copy proofs
  • ab12b53 Merge remote-tracking branch 'origin/staging' into fix/chat-settings-button-consistency
  • dd437e7 fix(ui): address unified controls review findings
  • 63a0205 fix(ui): finish CodeRabbit review follow-ups
  • fbcc5b5 Merge remote-tracking branch 'origin/staging' into fix/chat-settings-button-consistency
  • 603e6a3 fix: address final UI review edge cases

📊 Changes

51 files changed (+1546 additions, -620 deletions)

View changed files

📝 CHANGELOG.md (+8 -0)
📝 e2e/core-flows.e2e.ts (+653 -26)
📝 packages/client/src/components/agents/AgentEditor.tsx (+2 -1)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+1 -1)
📝 packages/client/src/components/agents/StoryboardAgentSettingsPanel.tsx (+1 -1)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+4 -2)
📝 packages/client/src/components/chat/AgentSettingsControls.tsx (+1 -1)
📝 packages/client/src/components/chat/CharacterScheduleEditorModal.tsx (+2 -1)
📝 packages/client/src/components/chat/ChatGallery.tsx (+2 -2)
📝 packages/client/src/components/chat/ChatMessage.tsx (+133 -57)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+134 -122)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+97 -190)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+9 -6)
📝 packages/client/src/components/chat/ConversationMessageActions.tsx (+15 -18)
📝 packages/client/src/components/chat/ConversationMessageGrouped.tsx (+3 -6)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+8 -13)
📝 packages/client/src/components/chat/ConversationView.tsx (+16 -3)
📝 packages/client/src/components/chat/CyoaChoices.tsx (+3 -3)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+13 -13)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+6 -6)

...and 31 more files

📄 Description

Linked issues

Fixes #5395
Closes #5381

Why this change

Chat and Settings controls accumulated several one-off shapes, toggle geometries, action layouts, and color sources. This made the same interactions look and behave differently across Conversation, Roleplay, and Game, while some surfaces still fell back to the legacy pink app accent instead of the configured Chat Chrome Text Color.

What changed

  • Reuse one shared Settings switch geometry and normalize compact buttons to the established square-y control shape.
  • Make the Roleplay Chat ID row itself copyable, with visible click-to-copy guidance.
  • Move Conversation message actions below each message, align them beneath the avatar column, and reuse the Roleplay message-action control.
  • Match the Conversation Start Call height to the adjacent participant control.
  • Add the Roleplay-only inline thinking preference from #5381, including streaming, automatic collapse, and the dependent keep-expanded option.
  • Route thinking headers, Conversation actions, Game edit icons, and Game log deletion through Chat Chrome Text Color.
  • Replace legacy fixed-pink UI fallbacks with shared theme tokens while preserving intentional semantic, brand, artwork, and picker colors.
  • Make the no-connection setup gate use Chat Chrome Text Color in Conversation, Roleplay, and Game, and close it before opening Connections.
  • Add focused desktop and mobile regression coverage for the affected UI behavior.
  • Add localized English labels and an Unreleased changelog entry.

Validation

  • pnpm check passes locally
  • Focused regression passes locally
  • pnpm localization:check passes locally
  • pnpm smoke:ui 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

Automated evidence so far

  • pnpm check passes, including localization, formatting, lint, TypeScript, and production builds.

  • Focused UI suite: all 17 runnable desktop/mobile cases pass; the Roleplay streaming-reasoning case is intentionally desktop-only.

  • Focused Playwright proof for the no-connection gate passed on desktop and mobile: 2 passed.

  • The proof sets the app accent to pink and Chat Chrome Text Color to cyan, checks all three chat modes use the cyan-derived shared tokens, and verifies Open Connections dismisses the gate.

Manual verification needed

  • Manually verify normalized buttons and toggles across Settings and Chat Settings.
  • Manually verify Roleplay inline thinking while streaming and with message streaming disabled.
  • Manually verify Conversation action placement and spacing on desktop and mobile.
  • Manually verify the Conversation call-button height and Roleplay Chat ID copying.
  • Manually verify Game edit/log action colors and weather effects.
  • Manually verify the no-connection gate in all three modes with a non-default Chat Chrome Text Color.

Docs and release impact

  • No docs changes needed
  • Updated CHANGELOG.md
  • Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

Summary by CodeRabbit

  • New Features

    • Added Roleplay settings to show live model reasoning inline, keep it expanded, and customize disclosure-header text color.
    • Chat IDs can now be copied by clicking the displayed ID.
    • Reasoning duration is included in generation details.
  • Bug Fixes

    • Improved message-action placement, connection prompts, toolbar sizing, toggle alignment, and themed accent colors.
  • Accessibility

    • Selection controls now clearly expose their active state to assistive technologies.
  • Style

    • Standardized button shapes, spacing, focus states, and theme-driven colors across the app.

🔄 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/5396 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/22/2026 **Status:** ✅ Merged **Merged:** 8/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/chat-settings-button-consistency` --- ### 📝 Commits (8) - [`781dd18`](https://github.com/Pasta-Devs/Marinara-Engine/commit/781dd18eff1f46fcc5518172db3e994320e16817) feat(ui): unify chat controls and reasoning presentation - [`4af9a09`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4af9a09ca946097cb0b2625432586c223133736d) Merge branch 'staging' into fix/chat-settings-button-consistency - [`4cd7f46`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4cd7f46b70f3082bf5ea8827380bfd025d59e3ec) fix(ui): refine connection and switch copy proofs - [`ab12b53`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ab12b5395a5050624b02b351baebfd5678697446) Merge remote-tracking branch 'origin/staging' into fix/chat-settings-button-consistency - [`dd437e7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dd437e7cc1fef6f348ccb7be696eb99f0b637205) fix(ui): address unified controls review findings - [`63a0205`](https://github.com/Pasta-Devs/Marinara-Engine/commit/63a02056c2b708da1d0a852151d075f904d17df8) fix(ui): finish CodeRabbit review follow-ups - [`fbcc5b5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fbcc5b50371cdf370ce6117473c2b65c192fa598) Merge remote-tracking branch 'origin/staging' into fix/chat-settings-button-consistency - [`603e6a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/603e6a3b45fe5181471115f1cd97044d0479f568) fix: address final UI review edge cases ### 📊 Changes **51 files changed** (+1546 additions, -620 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+8 -0) 📝 `e2e/core-flows.e2e.ts` (+653 -26) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+2 -1) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+1 -1) 📝 `packages/client/src/components/agents/StoryboardAgentSettingsPanel.tsx` (+1 -1) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+4 -2) 📝 `packages/client/src/components/chat/AgentSettingsControls.tsx` (+1 -1) 📝 `packages/client/src/components/chat/CharacterScheduleEditorModal.tsx` (+2 -1) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+133 -57) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+134 -122) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+97 -190) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+9 -6) 📝 `packages/client/src/components/chat/ConversationMessageActions.tsx` (+15 -18) 📝 `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+3 -6) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+8 -13) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+16 -3) 📝 `packages/client/src/components/chat/CyoaChoices.tsx` (+3 -3) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+13 -13) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+6 -6) _...and 31 more files_ </details> ### 📄 Description ## Linked issues Fixes #5395 Closes #5381 ## Why this change Chat and Settings controls accumulated several one-off shapes, toggle geometries, action layouts, and color sources. This made the same interactions look and behave differently across Conversation, Roleplay, and Game, while some surfaces still fell back to the legacy pink app accent instead of the configured Chat Chrome Text Color. ## What changed - Reuse one shared Settings switch geometry and normalize compact buttons to the established square-y control shape. - Make the Roleplay Chat ID row itself copyable, with visible click-to-copy guidance. - Move Conversation message actions below each message, align them beneath the avatar column, and reuse the Roleplay message-action control. - Match the Conversation Start Call height to the adjacent participant control. - Add the Roleplay-only inline thinking preference from #5381, including streaming, automatic collapse, and the dependent keep-expanded option. - Route thinking headers, Conversation actions, Game edit icons, and Game log deletion through Chat Chrome Text Color. - Replace legacy fixed-pink UI fallbacks with shared theme tokens while preserving intentional semantic, brand, artwork, and picker colors. - Make the no-connection setup gate use Chat Chrome Text Color in Conversation, Roleplay, and Game, and close it before opening Connections. - Add focused desktop and mobile regression coverage for the affected UI behavior. - Add localized English labels and an Unreleased changelog entry. ## Validation - [ ] pnpm check passes locally - [ ] Focused regression passes locally - [ ] pnpm localization:check passes locally - [ ] pnpm smoke:ui 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 ### Automated evidence so far - `pnpm check` passes, including localization, formatting, lint, TypeScript, and production builds. - Focused UI suite: all 17 runnable desktop/mobile cases pass; the Roleplay streaming-reasoning case is intentionally desktop-only. - Focused Playwright proof for the no-connection gate passed on desktop and mobile: 2 passed. - The proof sets the app accent to pink and Chat Chrome Text Color to cyan, checks all three chat modes use the cyan-derived shared tokens, and verifies Open Connections dismisses the gate. ### Manual verification needed - Manually verify normalized buttons and toggles across Settings and Chat Settings. - Manually verify Roleplay inline thinking while streaming and with message streaming disabled. - Manually verify Conversation action placement and spacing on desktop and mobile. - Manually verify the Conversation call-button height and Roleplay Chat ID copying. - Manually verify Game edit/log action colors and weather effects. - Manually verify the no-connection gate in all three modes with a non-default Chat Chrome Text Color. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated CHANGELOG.md - [ ] Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence <!-- Add before/after screenshots or recordings before review. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added Roleplay settings to show live model reasoning inline, keep it expanded, and customize disclosure-header text color. - Chat IDs can now be copied by clicking the displayed ID. - Reasoning duration is included in generation details. - **Bug Fixes** - Improved message-action placement, connection prompts, toolbar sizing, toggle alignment, and themed accent colors. - **Accessibility** - Selection controls now clearly expose their active state to assistive technologies. - **Style** - Standardized button shapes, spacing, focus states, and theme-driven colors across the app. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:13:21 +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#6750
No description provided.