mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8424] [MERGED] fix: make Roleplay opacity override saved background alpha #8592
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#8592
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/8424
Author: @SpicyMarinara
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/8420-roleplay-colored-background-opacity📝 Commits (8)
a8d74dftest: reproduce roleplay custom background opacity bypassf8c3829Merge branch 'staging' into fix/8420-roleplay-colored-background-opacityd767f25test: reproduce roleplay custom background opacity bypass5c679e8fix: apply Roleplay opacity to authored background colorsa3c1f2afix: align color previews and preserve explicit theme overrides02938fbtest: remove theme probes through the typed Node API237c83bdocs: shorten message color opacity guidance0a1b361Merge maintainer staging update into opacity fix📊 Changes
13 files changed (+371 additions, -22 deletions)
View changed files
📝
docs/characters/colors-and-stats.md(+4 -2)📝
e2e/chat-widget-style.e2e.ts(+13 -4)📝
e2e/core-flows.e2e.ts(+4 -3)➕
e2e/roleplay-background-opacity.e2e.ts(+266 -0)📝
packages/client/src/App.tsx(+4 -1)📝
packages/client/src/components/characters/CharacterEditor.tsx(+9 -2)📝
packages/client/src/components/chat/ChatMessage.tsx(+9 -1)📝
packages/client/src/components/panels/SettingsPanel.tsx(+3 -0)📝
packages/client/src/components/personas/PersonaEditor.tsx(+5 -2)📝
packages/client/src/lib/chat-widget-colors.ts(+3 -1)📝
packages/client/src/lib/css-colors.ts(+21 -2)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/client/src/styles/themes/chat-widget-surfaces.css(+28 -4)📄 Description
Linked issue
Closes #8420
Why this change
Avatar color extraction saves a translucent message-box color. Roleplay used that saved alpha directly, so its background-opacity slider could not make those bubbles readable over a scene image. Applied preset backgrounds bypassed the slider separately.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated local evidence (checkboxes above remain human tasks):
pnpm installcompleted.pnpm checkpassed, including localization, TypeScript, lint and production builds. The pre-existingHomeProfessorMariChat.tsxmissing-dependency warning remains outside this diff.pnpm exec playwright test -c playwright.config.ts e2e/roleplay-background-opacity.e2e.ts e2e/chat-widget-style.e2e.ts --grep 'Roleplay opacity replaces|chat style switches independently' --workers=2: 12 passed, across desktop Chromium, mobile Chromium and mobile WebKit in dark/light modes. This covers 0/50/100%, saved persona snapshots, reload, unchanged stored colors, native presets, gradients, cut corners, theme-hook precedence, editor previews, and the other chat modes.pnpm smoke:ui: 7 passed.Roleplay reduced paint effects preserve semantic and custom stylingbrowser regression: 1 passed, including card-CSS priority, zero opacity and reload.Shipping head
0a1b36197preserves the maintainer's staging-update merge and has the identical tree to237c83be5, which passed the final full check, localization, smoke and reduced-paint checks. The 12-case matrix ran at02938fbc5, before only the final help-copy shortening and history integration.Manual verification notes
Could not find profile folder, also with a fresh isolated browser download and explicit temporary/persistent profiles. This is an unverified browser row, not a passing result.Docs and release impact
The English character/persona color guide is updated. #8428 tracks the
docs-i18ncounterparts. No release metadata or changelog changes.UI evidence
Download and open the self-contained before/after browser-evidence HTML. It embeds the 0%-slider reproduction, the fixed 0% state, and dark/light desktop/mobile screenshots from synthetic fixtures; no generated user content is included.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.