mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8720] [MERGED] feat(roleplay): optional name-colour borders on Narrator avatars #8767
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8767
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8720
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/8712-portrait-name-color-borders📝 Commits (4)
d75ae1efeat(roleplay): optional name-color borders on Narrator avatars (#8712)a9f7738fix(roleplay): outline each side-by-side Narrator avatar on its own (#8712)f3dd554fix(roleplay): split the round Narrator avatar ring between characters (#8712)7d48ab4Merge branch 'staging' into feat/8712-portrait-name-color-borders📊 Changes
9 files changed (+226 additions, -2 deletions)
View changed files
📝
packages/client/src/components/chat/ChatMessage.tsx(+51 -1)📝
packages/client/src/components/panels/SettingsPanel.tsx(+9 -0)📝
packages/client/src/lib/omnibar-settings-toggle-bindings.ts(+4 -0)📝
packages/client/src/lib/settings-registry.ts(+11 -0)📝
packages/client/src/lib/utils.ts(+14 -0)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/client/src/stores/ui.store.ts(+9 -0)➕
scripts/regressions/narrator-avatar-borders.regression.ts(+123 -0)📝
scripts/regressions/tsconfig.client-lanes.json(+2 -1)📄 Description
Linked issue
Closes #8712
Why this change
A user asked for data attributes and CSS variables on merged Roleplay portraits, so CSS themes could add name labels and borders in each character's colour. The maintainer declined to expose anything to CSS ("Anything that exposes CSS can be a security vulnerability, so we avoid it"). They offered instead: "I can add borders colored like the character's name. Just on our end." This PR is that Engine-side option.
What changed
en.json..rpg-avatar-glow { border-radius: 50% }beatsrounded-xl, so "rectangles" renders as an oval.getCssColorFallback.data-character-*attributes and no theme-facing CSS variables.Validation
pnpm checkpasses locallyCONTRIBUTING.mdWhat the agent ran:
pnpm checkpasses (exit 0), andpnpm localization:checkpasses.tsc --noEmitand the client-lanes typecheck pass.scripts/regressions/narrator-avatar-borders.regression.tscovers the helper colours (name colour, gradient first stop, fallback) and the layout per frame: the per-avatar outline in the side panel, split ring segments in the compact frame, and the whole outline when cycling. It fails onstaging. A mutation check shows it catches a return to the earlier single clipped outline.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs:
docs/appearance/appearance-settings.mddoesn't list the sibling "Narrator's Cycling Avatars" toggle either, so it isn't changed here. Adding both would need a[docs-i18n]follow-up.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.