[PR #405] [MERGED] chore(client): add mode-specific intros to chat settings drawers #4607

Closed
opened 2026-10-22 04:09:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: chore/chat-mode-explainers


📝 Commits (2)

  • 7382d86 Add mode-specific intro to chat settings drawer
  • 2892693 Tighten MODE_INTROS to Record<ChatMode, string>

📊 Changes

1 file changed (+20 additions, -0 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+20 -0)

📄 Description

Why

Each chat mode wires in a very different baseline of features, but the
settings drawer doesn't say so anywhere. New users opening it on a Game
chat can't tell that dice, combat, encounters, and session/map tracking
are already running — and on a Roleplay chat they can't tell that none
of that is built in and would need to be reconstructed via optional
agents below.

This adds one short line at the top of the drawer per mode so the
distinction is visible before scrolling through 14 sections.

What

  • New MODE_INTROS map in ChatSettingsDrawer.tsx, keyed by chat mode,
    with one sentence each for conversation, roleplay, visual_novel,
    and game.
  • Renders as a muted-text block at the top of the scrollable area,
    matching the existing helper-text style used throughout the drawer.
  • No new component, no i18n (project has none), no new state.

Why hardcoded

CHAT_MODES.defaultAgents looked like the natural source of truth, but
it currently has no consumers in the repo (per the recent
chore/remove-game-master-leftovers cleanup) and wouldn't cover
non-agent built-ins (GM pipeline, segment edits, autonomous messaging,
map updates, etc.) anyway. A short comment in the file flags this so
both can be folded into one source if defaultAgents is ever wired up.

Manual verification

Verified in dev server:

  • Conversation chat: intro reads "Plain chat — no roleplay or game
    systems built in…" above Chat Name (dark theme)
  • Roleplay chat: intro reads "Plain roleplay surface — no built-in
    dice, combat, or GM pipeline…" (dark theme)
  • Game chat: intro reads "Full Game Master with built-in dice,
    combat, encounters…" and the no-preset-bar layout still looks
    clean (dark theme)
  • Light theme: muted-text styling renders correctly (verified Game
    mode; all modes share the same var(--muted-foreground) /
    var(--border) tokens)
  • Visual Novel: not separately tested — VN is effectively Game mode
    in the live product per maintainer note

Notes

  • Validated with pnpm check (TS + ESLint + build clean).
image image image

Summary by CodeRabbit

  • New Features
    • Chat mode descriptions are now displayed in the settings drawer. Users will see introductory text for each available chat mode (Conversation, Roleplay, Visual Novel, Game) above the Chat Name field to help guide mode selection.

🔄 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/405 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/4/2026 **Status:** ✅ Merged **Merged:** 5/5/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `chore/chat-mode-explainers` --- ### 📝 Commits (2) - [`7382d86`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7382d865594eeaa66f7423ed2afca6bc37579398) Add mode-specific intro to chat settings drawer - [`2892693`](https://github.com/Pasta-Devs/Marinara-Engine/commit/289269319b8293d70a868f5ac675f0709e75b7ea) Tighten MODE_INTROS to Record<ChatMode, string> ### 📊 Changes **1 file changed** (+20 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+20 -0) </details> ### 📄 Description ## Why Each chat mode wires in a very different baseline of features, but the settings drawer doesn't say so anywhere. New users opening it on a Game chat can't tell that dice, combat, encounters, and session/map tracking are already running — and on a Roleplay chat they can't tell that none of that is built in and would need to be reconstructed via optional agents below. This adds one short line at the top of the drawer per mode so the distinction is visible before scrolling through 14 sections. ## What - New `MODE_INTROS` map in `ChatSettingsDrawer.tsx`, keyed by chat mode, with one sentence each for `conversation`, `roleplay`, `visual_novel`, and `game`. - Renders as a muted-text block at the top of the scrollable area, matching the existing helper-text style used throughout the drawer. - No new component, no i18n (project has none), no new state. ## Why hardcoded `CHAT_MODES.defaultAgents` looked like the natural source of truth, but it currently has no consumers in the repo (per the recent `chore/remove-game-master-leftovers` cleanup) and wouldn't cover non-agent built-ins (GM pipeline, segment edits, autonomous messaging, map updates, etc.) anyway. A short comment in the file flags this so both can be folded into one source if `defaultAgents` is ever wired up. ## Manual verification Verified in dev server: - [x] Conversation chat: intro reads "Plain chat — no roleplay or game systems built in…" above Chat Name (dark theme) - [x] Roleplay chat: intro reads "Plain roleplay surface — no built-in dice, combat, or GM pipeline…" (dark theme) - [x] Game chat: intro reads "Full Game Master with built-in dice, combat, encounters…" and the no-preset-bar layout still looks clean (dark theme) - [x] Light theme: muted-text styling renders correctly (verified Game mode; all modes share the same `var(--muted-foreground)` / `var(--border)` tokens) - [x] Visual Novel: not separately tested — VN is effectively Game mode in the live product per maintainer note ## Notes - Validated with `pnpm check` (TS + ESLint + build clean). - <img width="228" height="762" alt="image" src="https://github.com/user-attachments/assets/4c7aa042-f61f-4ff5-b67a-2590fef31d98" /> <img width="227" height="622" alt="image" src="https://github.com/user-attachments/assets/24117308-efda-4ead-b87f-3ba56988d682" /> <img width="228" height="606" alt="image" src="https://github.com/user-attachments/assets/67bd5053-22fb-4269-9ea6-f869eb29e0f8" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Chat mode descriptions are now displayed in the settings drawer. Users will see introductory text for each available chat mode (Conversation, Roleplay, Visual Novel, Game) above the Chat Name field to help guide mode selection. <!-- 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-22 04:09:07 +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#4607
No description provided.