[PR #8119] [MERGED] feat(chat): per-chat inline name colors in Card Theming #8112

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8119
Author: @ylli-selmani
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ylli-selmani

Base: staging ← Head: feat/chat-inline-name-colors


📝 Commits (7)

  • dedac33 feat(chat): per-chat inline name colors in Card Theming
  • 4f87ae6 feat(settings): retire the global inline name colors toggle
  • bf38bbd fix(shared): reserve the color chat metadata namespace
  • b03149e docs: say Card Theming is always there in Roleplay chats
  • 1cb319a chore(client): tidy inline name colors copy from review
  • 1ba3a25 chore(client): keep the Card Theming help to the CSS modes
  • 09acdc3 chore(client): make the Card Theming help true with or without card CSS

📊 Changes

14 files changed (+114 additions, -125 deletions)

View changed files

📝 docs/appearance/card-css-theming.md (+3 -3)
📝 packages/client/src/components/chat/ChatMessage.tsx (+6 -2)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+11 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+69 -47)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+5 -16)
📝 packages/client/src/components/ui/NameAliasesSection.tsx (+3 -31)
📝 packages/client/src/lib/omnibar-settings-toggle-bindings.ts (+0 -4)
📝 packages/client/src/lib/settings-registry.ts (+0 -10)
📝 packages/client/src/localization/locales/en.json (+5 -8)
📝 packages/client/src/stores/ui.store.ts (+4 -3)
📝 packages/server/src/assets/mari-skills/themes.md (+1 -1)
📝 packages/shared/src/schemas/gm-verb-table.schema.ts (+1 -0)
📝 packages/shared/src/types/chat-preset.ts (+1 -0)
📝 packages/shared/src/types/chat.ts (+5 -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 #8116

Why this change

  • Inline name coloring (#5322) paints character names and their aliases in the character's name color inside Roleplay messages. It only has one global switch, buried in Settings → General → Text Rules, so few people know the feature exists, and it's all or nothing across every chat.
  • This moves the switch into Chat Settings → Card Theming, the section about how characters look in a chat, and makes it per chat.

What changed

Chat settings (UI)

  • Card Theming now shows in every Roleplay chat, with a new Color Character Names in Text switch. The Disabled / Exclusive / Chat card-CSS buttons still only appear when a character carries Creator Notes CSS. The section help text mentions both.

Chat data (shared)

  • New optional chat metadata key colorInlineNames. Chats that never set it fall back to the old global value, so anyone who had the feature on keeps it, without a migration. Chat profiles capture it and sync it to their followers, like cardCssMode.

Message rendering

  • Roleplay messages (normal, streaming, regenerating and visual-novel) read the chat's value and fall back to the global one.

Global settings

  • The global main toggle, its settings-search entry and its omnibar toggle are removed. "Force Solid Colors for Inline Names" stays global and is always visible. The Name Aliases "Active / Inactive" pill is replaced by a line pointing to Chat Settings → Card Theming.

Slices

  • 1. Per-chat switch, end to end (dedac33c7)
  • 2. Remove the global toggle and the pill (4f87ae68d)

Also: the new key opens a color chat-metadata namespace, now reserved in ENGINE_OWNED_METADATA_KEY_PREFIXES so capability packages can't claim it (bf38bbd86, caught by capability-gm-verbs).

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

Manual verification notes

  • Manually verify that in a Roleplay chat whose characters carry no CSS, Chat Settings shows Card Theming with only the Color Character Names in Text switch.
  • Manually verify that turning the switch on colors a character's name and aliases in that chat's messages, and that another Roleplay chat stays plain.
  • Manually verify that in a chat whose character carries Creator Notes CSS, the Disabled / Exclusive / Chat buttons still appear under the switch.
  • Manually verify that with the old global toggle on (set before this branch), a chat that never touched the switch shows names colored and the switch on.
  • Manually verify that Conversation chats don't show the switch.
  • Manually verify that Settings → General → Text Rules shows "Force Solid Colors for Inline Names" on its own, and settings search no longer finds the old toggle.
  • Manually verify that a character's Colors tab shows Name Aliases without the Active / Inactive pill, with the hint pointing to Chat Settings → Card Theming.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

Screenshots to be attached: the Card Theming switch in a Roleplay chat without card CSS, names plain with the switch off, Text Rules with Force Solid on its own, and Name Aliases without the pill.

🤖 Generated with Claude Code


🔄 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/8119 **Author:** [@ylli-selmani](https://github.com/ylli-selmani) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ylli-selmani](https://github.com/ylli-selmani) **Base:** `staging` ← **Head:** `feat/chat-inline-name-colors` --- ### 📝 Commits (7) - [`dedac33`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dedac33c73b161c44b441cfe8e901dc983d7b03c) feat(chat): per-chat inline name colors in Card Theming - [`4f87ae6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4f87ae68dddebe4038f495e8c2b61155f452186f) feat(settings): retire the global inline name colors toggle - [`bf38bbd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bf38bbd8684de6162e3f29cbf91da096b25a63f9) fix(shared): reserve the color chat metadata namespace - [`b03149e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b03149e3ea02781ce493e5588382da15d6fb282a) docs: say Card Theming is always there in Roleplay chats - [`1cb319a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1cb319a2f5e6e60a6a94ed484d7679f207e410ee) chore(client): tidy inline name colors copy from review - [`1ba3a25`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1ba3a253a6d654891c5680d369e9b0e93ee277ab) chore(client): keep the Card Theming help to the CSS modes - [`09acdc3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/09acdc3b6c24c0ce31ff91c5a79de6f21f862bfc) chore(client): make the Card Theming help true with or without card CSS ### 📊 Changes **14 files changed** (+114 additions, -125 deletions) <details> <summary>View changed files</summary> 📝 `docs/appearance/card-css-theming.md` (+3 -3) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+6 -2) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+11 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+69 -47) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+5 -16) 📝 `packages/client/src/components/ui/NameAliasesSection.tsx` (+3 -31) 📝 `packages/client/src/lib/omnibar-settings-toggle-bindings.ts` (+0 -4) 📝 `packages/client/src/lib/settings-registry.ts` (+0 -10) 📝 `packages/client/src/localization/locales/en.json` (+5 -8) 📝 `packages/client/src/stores/ui.store.ts` (+4 -3) 📝 `packages/server/src/assets/mari-skills/themes.md` (+1 -1) 📝 `packages/shared/src/schemas/gm-verb-table.schema.ts` (+1 -0) 📝 `packages/shared/src/types/chat-preset.ts` (+1 -0) 📝 `packages/shared/src/types/chat.ts` (+5 -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 #8116 ## Why this change - Inline name coloring (#5322) paints character names and their aliases in the character's name color inside Roleplay messages. It only has one global switch, buried in Settings → General → Text Rules, so few people know the feature exists, and it's all or nothing across every chat. - This moves the switch into **Chat Settings → Card Theming**, the section about how characters look in a chat, and makes it per chat. ## What changed **Chat settings (UI)** - Card Theming now shows in every Roleplay chat, with a new **Color Character Names in Text** switch. The Disabled / Exclusive / Chat card-CSS buttons still only appear when a character carries Creator Notes CSS. The section help text mentions both. **Chat data (shared)** - New optional chat metadata key `colorInlineNames`. Chats that never set it fall back to the old global value, so anyone who had the feature on keeps it, without a migration. Chat profiles capture it and sync it to their followers, like `cardCssMode`. **Message rendering** - Roleplay messages (normal, streaming, regenerating and visual-novel) read the chat's value and fall back to the global one. **Global settings** - The global main toggle, its settings-search entry and its omnibar toggle are removed. "Force Solid Colors for Inline Names" stays global and is always visible. The Name Aliases "Active / Inactive" pill is replaced by a line pointing to Chat Settings → Card Theming. ### Slices - [x] 1. Per-chat switch, end to end (`dedac33c7`) - [x] 2. Remove the global toggle and the pill (`4f87ae68d`) Also: the new key opens a `color` chat-metadata namespace, now reserved in `ENGINE_OWNED_METADATA_KEY_PREFIXES` so capability packages can't claim it (`bf38bbd86`, caught by `capability-gm-verbs`). ## 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` ### Manual verification notes - Manually verify that in a Roleplay chat whose characters carry no CSS, Chat Settings shows Card Theming with only the Color Character Names in Text switch. - Manually verify that turning the switch on colors a character's name and aliases in that chat's messages, and that another Roleplay chat stays plain. - Manually verify that in a chat whose character carries Creator Notes CSS, the Disabled / Exclusive / Chat buttons still appear under the switch. - Manually verify that with the old global toggle on (set before this branch), a chat that never touched the switch shows names colored and the switch on. - Manually verify that Conversation chats don't show the switch. - Manually verify that Settings → General → Text Rules shows "Force Solid Colors for Inline Names" on its own, and settings search no longer finds the old toggle. - Manually verify that a character's Colors tab shows Name Aliases without the Active / Inactive pill, with the hint pointing to Chat Settings → Card Theming. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) Screenshots to be attached: the Card Theming switch in a Roleplay chat without card CSS, names plain with the switch off, Text Rules with Force Solid on its own, and Name Aliases without the pill. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:28 +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#8112
No description provided.