[PR #7414] [MERGED] Say which character card fields Conversation chats skip (#7385) #7722

Closed
opened 2026-10-24 04:06:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/conversation-mode-card-hints


📝 Commits (2)

  • 90370d0 docs(characters): say which card fields Conversation chats skip
  • 295e769 fix(characters): say only Roleplay chats use the message box color

📊 Changes

5 files changed (+16 additions, -8 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/characters/colors-and-stats.md (+2 -2)
📝 docs/characters/creating-and-editing-characters.md (+2 -2)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+8 -4)
📝 packages/client/src/localization/locales/en.json (+3 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7385

Why this change

  • A user set a character's first message and colors, opened a Conversation chat, and thought the card was broken: no greeting appeared, the bubble kept the theme color, and only the name was colored. That is how Conversation mode works, but nothing in the editor said so. The colors guide even said the message box color applies in Conversation chats, which is wrong.

What changed

I checked the code first. This PR changes no runtime behaviour.

Card field Conversation chats Evidence
First Message / Alternate Greetings Not used. A new chat doesn't start with them ConversationQuickSetup never seeds greetings (only the Roleplay wizard's createInitialGreetingForCharacter does); use-start-chat-from-character posts the greeting only for mode === "roleplay"; adding a character mid-chat skips the greeting picker when isConversation (ChatSettingsDrawer) or mode === "conversation" (ChatResourceDropOverlay). Game chats don't start with one either (ChatSetupWizard returns null for Game).
Name Display Color Used (name above the message, grouped speaker names) ConversationMessage → nameColorStyle(nameColor). That's the colored name the user saw.
Dialogue Highlight Color Not used No dialogueColor reference in any Conversation* renderer. Roleplay (ChatMessage) and Game (GameNarration) use it.
Message Box Color Not used Only Roleplay reads boxColor: the ChatMessage renderer and the tracker cards, and the tracker panel is Roleplay-only (trackerPanelModeAvailable = activeChat?.mode === "roleplay"). No Game component reads it.

Based on that:

  • Character editor → Dialogue & Greetings: a short muted hint under First Message and under Alternate Greetings: "Only Roleplay chats start with a greeting." (new key ui.characters.dialoguetab.greetingsRoleplayOnly).
  • Character editor → Colors: the help line of Dialogue Highlight Color now ends with "Conversation chats don't use this color." (new key ui.characters.colorstab.notUsedInConversation). It doesn't say "Roleplay only" because Game chats also use the dialogue color. The help line of Message Box Color now ends with "Only Roleplay chats use this color." (new key ui.characters.colorstab.roleplayOnly). Name Display Color gets no hint because Conversation uses it.
  • Docs: docs/characters/creating-and-editing-characters.md (First Message / Alternate Greetings are Roleplay-only openers) and docs/characters/colors-and-stats.md (Conversation doesn't use the dialogue color; only Roleplay uses the message box color. This replaces the wrong "applies in both Conversation and Roleplay chats" line).
  • CHANGELOG.md entry under [Unreleased].
  • Existing help text is left as it was. The new sentence is added after the hard-coded English help lines for those two color pickers, so the existing copy isn't reworded. Translating those older lines is a separate job.
  • Translation follow-up: #7415 ([docs-i18n] for both changed docs).
  • Name Aliases (also on the Colors tab) get no hint. Conversation chats don't color names inside message text, but the server also reads aliases to identify characters, so "not used in Conversation" would be wrong for that field.
  • No regression test: this change only adds copy and has no logic. The existing open-issues regression, which checks Colors tab keys, still passes.

Validation

  • 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

Commands run by the agent: pnpm check (passed; includes pnpm localization:check, format, lint, build. The only lint warning is an existing one in HomeProfessorMariChat.tsx), node ./scripts/run-regressions.mjs --filter open-issues.regression.ts (passed); both re-run after the review fix and passed. coderabbit review --agent --committed --base-commit <merge-base> (outcome below).

Manual verification notes

  • Manually verify that in the character editor's Dialogue & Greetings section, "Only Roleplay chats start with a greeting." shows under the First Message label and under the Alternate Greetings header, in muted text, in light and dark themes.
  • Manually verify that on the Colors tab, the Dialogue Highlight Color help line ends with "Conversation chats don't use this color.", the Message Box Color help line ends with "Only Roleplay chats use this color.", and Name Display Color is unchanged.
  • Manually verify on a phone-width viewport that the new lines wrap cleanly and don't push the + Add button off the row.
  • Manually verify that a new Roleplay chat with the character still opens with its First Message, and that a Conversation chat still doesn't (no behaviour change).
  • Manually verify the edited paragraphs read correctly in the in-app docs for Creating and editing characters and Character Colors and RPG Stats.

Docs and release impact

  • 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 (if applicable)

  • Not captured by the agent. The change is two muted hint lines and two extended help lines.

Local CodeRabbit review

  • Run 1 (on 90370d0e6): 1 minor finding, accepted and fixed in 295e769f8. It said the Message Box Color hint only excluded Conversation, though Game chats don't use that color either. Confirmed in code: no Game component reads boxColor, and the tracker cards that do are Roleplay-only. The hint now says "Only Roleplay chats use this color." The docs and changelog match.
  • Run 2 (on 295e769f8): completed, 0 findings.

🔄 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/7414 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/11/2026 **Status:** ✅ Merged **Merged:** 10/11/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/conversation-mode-card-hints` --- ### 📝 Commits (2) - [`90370d0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/90370d0e618c910415c816979a7b4518bbf47f10) docs(characters): say which card fields Conversation chats skip - [`295e769`](https://github.com/Pasta-Devs/Marinara-Engine/commit/295e769f8f51b439df6e228960978d5c55b778f1) fix(characters): say only Roleplay chats use the message box color ### 📊 Changes **5 files changed** (+16 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/characters/colors-and-stats.md` (+2 -2) 📝 `docs/characters/creating-and-editing-characters.md` (+2 -2) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+8 -4) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7385 ## Why this change - A user set a character's first message and colors, opened a Conversation chat, and thought the card was broken: no greeting appeared, the bubble kept the theme color, and only the name was colored. That is how Conversation mode works, but nothing in the editor said so. The colors guide even said the message box color applies in Conversation chats, which is wrong. ## What changed I checked the code first. This PR changes no runtime behaviour. | Card field | Conversation chats | Evidence | | --- | --- | --- | | First Message / Alternate Greetings | Not used. A new chat doesn't start with them | `ConversationQuickSetup` never seeds greetings (only the Roleplay wizard's `createInitialGreetingForCharacter` does); `use-start-chat-from-character` posts the greeting only for `mode === "roleplay"`; adding a character mid-chat skips the greeting picker when `isConversation` (`ChatSettingsDrawer`) or `mode === "conversation"` (`ChatResourceDropOverlay`). Game chats don't start with one either (`ChatSetupWizard` returns `null` for Game). | | Name Display Color | **Used** (name above the message, grouped speaker names) | `ConversationMessage` → `nameColorStyle(nameColor)`. That's the colored name the user saw. | | Dialogue Highlight Color | Not used | No `dialogueColor` reference in any `Conversation*` renderer. Roleplay (`ChatMessage`) and Game (`GameNarration`) use it. | | Message Box Color | Not used | Only Roleplay reads `boxColor`: the `ChatMessage` renderer and the tracker cards, and the tracker panel is Roleplay-only (`trackerPanelModeAvailable = activeChat?.mode === "roleplay"`). No Game component reads it. | Based on that: - **Character editor → Dialogue & Greetings**: a short muted hint under **First Message** and under **Alternate Greetings**: "Only Roleplay chats start with a greeting." (new key `ui.characters.dialoguetab.greetingsRoleplayOnly`). - **Character editor → Colors**: the help line of **Dialogue Highlight Color** now ends with "Conversation chats don't use this color." (new key `ui.characters.colorstab.notUsedInConversation`). It doesn't say "Roleplay only" because Game chats also use the dialogue color. The help line of **Message Box Color** now ends with "Only Roleplay chats use this color." (new key `ui.characters.colorstab.roleplayOnly`). Name Display Color gets no hint because Conversation uses it. - **Docs**: `docs/characters/creating-and-editing-characters.md` (First Message / Alternate Greetings are Roleplay-only openers) and `docs/characters/colors-and-stats.md` (Conversation doesn't use the dialogue color; only Roleplay uses the message box color. This replaces the wrong "applies in both Conversation and Roleplay chats" line). - `CHANGELOG.md` entry under `[Unreleased]`. - Existing help text is left as it was. The new sentence is added after the hard-coded English help lines for those two color pickers, so the existing copy isn't reworded. Translating those older lines is a separate job. - Translation follow-up: #7415 ([docs-i18n] for both changed docs). - Name Aliases (also on the Colors tab) get no hint. Conversation chats don't color names inside message text, but the server also reads aliases to identify characters, so "not used in Conversation" would be wrong for that field. - No regression test: this change only adds copy and has no logic. The existing `open-issues` regression, which checks Colors tab keys, still passes. ## Validation - [ ] `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` Commands run by the agent: `pnpm check` (passed; includes `pnpm localization:check`, format, lint, build. The only lint warning is an existing one in `HomeProfessorMariChat.tsx`), `node ./scripts/run-regressions.mjs --filter open-issues.regression.ts` (passed); both re-run after the review fix and passed. `coderabbit review --agent --committed --base-commit <merge-base>` (outcome below). ### Manual verification notes - Manually verify that in the character editor's **Dialogue & Greetings** section, "Only Roleplay chats start with a greeting." shows under the **First Message** label and under the **Alternate Greetings** header, in muted text, in light and dark themes. - Manually verify that on the **Colors** tab, the **Dialogue Highlight Color** help line ends with "Conversation chats don't use this color.", the **Message Box Color** help line ends with "Only Roleplay chats use this color.", and **Name Display Color** is unchanged. - Manually verify on a phone-width viewport that the new lines wrap cleanly and don't push the **+ Add** button off the row. - Manually verify that a new Roleplay chat with the character still opens with its First Message, and that a Conversation chat still doesn't (no behaviour change). - Manually verify the edited paragraphs read correctly in the in-app docs for **Creating and editing characters** and **Character Colors and RPG Stats**. ## Docs and release impact - [ ] 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 (if applicable) - Not captured by the agent. The change is two muted hint lines and two extended help lines. ## Local CodeRabbit review - Run 1 (on `90370d0e6`): 1 minor finding, **accepted and fixed** in `295e769f8`. It said the Message Box Color hint only excluded Conversation, though Game chats don't use that color either. Confirmed in code: no Game component reads `boxColor`, and the tracker cards that do are Roleplay-only. The hint now says "Only Roleplay chats use this color." The docs and changelog match. - Run 2 (on `295e769f8`): completed, 0 findings. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:06:51 +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#7722
No description provided.