mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7062] [MERGED] feat(ui): customize chat widget colors and refine presets #7451
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#7451
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/7062
Author: @SpicyMarinara
Created: 10/4/2026
Status: ✅ Merged
Merged: 10/4/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/mari-button-ornament📝 Commits (10+)
5d23fedfix(ui): remove Primogem from Mari widget buttons24e6faffix(ui): join Mari sections and preserve preview palette2162639feat(ui): customize widget colors and repair cut cornersd392078fix(ui): apply solid widget text color to captionsfae5a3btest(ui): cover solid text and Default widget colors6e1e9faMerge branch 'staging' into fix/mari-button-ornament78d0d22Merge remote-tracking branch 'origin/staging' into fix/mari-button-ornament3944073fix(ui): keep custom widget fields readable across modes505f898Merge remote-tracking branch 'origin/fix/mari-button-ornament' into fix/mari-button-ornament9c701bbfix(ui): preserve native option contrast in custom widgets📊 Changes
14 files changed (+1035 additions, -109 deletions)
View changed files
📝
CHANGELOG.md(+2 -1)📝
docs/agents/memory.md(+1 -1)📝
docs/appearance/custom-css-themes.md(+12 -2)📝
e2e/chat-widget-style.e2e.ts(+295 -24)📝
packages/client/src/App.tsx(+24 -0)📝
packages/client/src/components/panels/SettingsPanel.tsx(+116 -6)📝
packages/client/src/components/ui/WindowBubble.tsx(+1 -0)📝
packages/client/src/hooks/use-settings-sync.ts(+10 -0)➕
packages/client/src/lib/chat-widget-colors.ts(+70 -0)📝
packages/client/src/localization/locales/en.json(+10 -1)📝
packages/client/src/stores/ui.store.ts(+36 -1)📝
packages/client/src/styles/globals.css(+128 -43)📝
packages/client/src/styles/themes/chat-widgets.css(+270 -21)📝
scripts/regressions/chat-widget-style-persistence.regression.ts(+60 -9)📄 Description
Linked issue
Closes #7061. Follow-up to the merged #7049. Targets
staging.Why this change
Changing a chat widget preset's colors currently requires custom CSS. This adds color controls below the existing Font and Shape options, and fixes the preset details requested after #7049: Mari's button ornament and separated section corners, Dottore's inner corners, and previews that inherit the animated app accent.
What changed
Validation
Candidate revision:
b0219a3451abfb7db32e2eddaae862c0277853f7, including current staging. Client source and widget tests are byte-identical to807a29d5c.Passed:
pnpm checkon the candidate (formatting, localization, type/lint checks and builds).Passed: native ARM64 Docker build/runtime for the candidate, including health, built client HTML, guest JS/CSS, tutorial MP4, both ornament SVGs and exact commit/branch metadata. Image:
sha256:1dd8328a4ec8819bccc00cef17d2b9cba71b8532c456aa28249618e8806faf8d.Passed:
node scripts/run-regressions.mjs --filter scripts/regressions/chat-widget-style-persistence.regression.ts— 1/1 onfae5a3bc7; persistence code is unchanged since that run. Covers normalization, local/server persistence and resets.Passed: widget suite at
807a29d5c— 7 passed, 2 intentional mobile persistence skips. After integrating current staging, shell smoke passed 7/7 and compiled production startup passed 3/3 at the final candidate. Widget and production coverage includes desktop Chromium, mobile Chromium and mobile WebKit. The select-arrow regression assertion passes unchanged after correcting the CSS cascade.Local CodeRabbit: completed on
2c2ef73beacross 14 files with one minor suggestion, traced and not applied. It proposed an internal--mari-widget-bubble-bgfallback. That variable is only reset toinitialand read; no current preset or caller assigns it. The documented public--mari-window-bubble-bgalready takes precedence in both paint paths. Shared button/window backgrounds are intentional. The final one-line select-color delta at807a29d5cwas reviewed separately and completed with zero additional findings.Hosted checks and hosted CodeRabbit review must complete on the final pushed head before merging.
pnpm checkpasses locallyContainer (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.mdManual verification notes
Mobile browser checks use emulation; physical phones have not been tested.
Docs and release impact
Updated
docs/appearance/custom-css-themes.md, corrected the Advanced Recall status path indocs/agents/memory.md, and updated canonical English UI copy and the Unreleased changelog. Translation follow-up #7054 is being implemented in separate language-pack PRs #7065, #7068, #7069 and #7070, including color controls, reset behavior and ornament clarification. No version or storage-format bump.docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence
Visual evidence: 17-image gallery. The original eight images remain unchanged; nine inspected additions include historical before captures and final
807a29d5c130ac855e3d6d7790b777b7a15be634captures. All 17 remote PNG SHA-256 hashes were verified against the local manifest.At
807a29d5c: widget browser matrix 7 passed / 2 intentional mobile persistence skips; shell smoke 7/7; production smoke 3/3. Phone evidence uses browser emulation, not physical devices.The final staging integration at
b0219a345leaves all client source, widget tests and persistence code byte-identical to the photographed807a29d5crevision.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.