mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7604] [MERGED] fix(game): HUD sections follow the Chat widget style #7830
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#7830
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/7604
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/game-hud-widget-style📝 Commits (4)
7850c85fix(game): HUD sections follow the Chat widget styleeee1406fix(game): keep element colors in Game sections under preset colors9261fa6docs(game): split the Apply preset coverage into short sentences2e94113Merge branch 'staging' into fix/game-hud-widget-style📊 Changes
25 files changed (+638 additions, -49 deletions)
View changed files
📝
docs/appearance/appearance-settings.md(+1 -1)📝
docs/appearance/custom-css-themes.md(+6 -2)📝
e2e/game-widget-style.e2e.ts(+243 -2)📝
packages/client/src/components/game/CombatAiControls.tsx(+11 -1)📝
packages/client/src/components/game/DirectedCombatUI.tsx(+4 -0)📝
packages/client/src/components/game/GameChoiceCards.tsx(+8 -1)📝
packages/client/src/components/game/GameCombatUI.tsx(+48 -7)📝
packages/client/src/components/game/GameElementReaction.tsx(+3 -1)📝
packages/client/src/components/game/GameInventory.tsx(+8 -1)📝
packages/client/src/components/game/GameJournal.tsx(+11 -6)📝
packages/client/src/components/game/GameJsonRepairModal.tsx(+2 -0)📝
packages/client/src/components/game/GameNarration.tsx(+7 -3)📝
packages/client/src/components/game/GameQteOverlay.tsx(+8 -1)📝
packages/client/src/components/game/GameSessionReplay.tsx(+31 -5)📝
packages/client/src/components/game/GameStoryboardViewer.tsx(+8 -1)📝
packages/client/src/components/game/GameSurface.tsx(+10 -3)📝
packages/client/src/components/game/GameWidgetPanel.tsx(+9 -1)📝
packages/client/src/components/game/RulesetCombatBoard.tsx(+17 -3)📝
packages/client/src/components/game/RulesetItemPicker.tsx(+2 -0)📝
packages/client/src/components/game/StartingGearPicker.tsx(+2 -0)...and 5 more files
📄 Description
Linked issue
No linked issue: reported by the maintainer on 2026-10-14.
Why this change
What changed
With Apply preset font, Apply preset shape and Apply preset colors on, these Game sections now take the Chat widget style, like the dialogue box, HUD widgets and character sheets already do (custom colors and gradients included):
staging).Technical summary:
chat-widget-colors.ts:GAME_SECTION_CLASS(mari-chat-style-surface mari-game-section),GAME_WINDOW_CONTENT_CLASS(mari-game-section) andGAME_DIALOG_CLASS(Roleplay'smari-chat-style-surface mari-chat-action-panelplusmari-game-section). Each panel also gets adata-game-sectionname for custom themes. No section is nested directly inside another.chat-widget-surfaces.css: a Game section reuses the action panel's palette aliases. Under Apply preset colors its Tailwind white, black, amber and zinc tints map to the style's text, background and control colors, so existing markup follows without new palette classes. Text keeps each element's own color (muted labels, party and enemy colors); fallback name colors in the logs still follow the preset text, as on other chat surfaces (#7296). Game content in a window maps the same tints to the window palette whenever a preset or custom color is set. Under cut corners a section keeps its own fill (revert-layer), clipped to the frame, so gradients and scrolling content are not lost; under Shape alone the frame outline uses each section's own outline color. Aponytail:note covers the two sections that scroll themselves.docs/appearance/appearance-settings.mdanddocs/appearance/custom-css-themes.mdlist the new Game areas and the theme hooks.e2e/game-widget-style.e2e.ts(extended): the Session Logs and Inventory join the measured surfaces (Default, preset alone, each switch, custom gradients, gradient accent, back to Default), the Journal must use the window text under a preset and white under Default, and new classic and tactical combat tests check that the panels carry the shared classes and take the Dottore font, cut corners, colors and custom gradients, then return to the staging look.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results):
pnpm check: passed (one existing lint warning inHomeProfessorMariChat.tsx, unrelated).pnpm localization:check: passed (no new strings).pnpm smoke:ui: 7 passed.pnpm exec playwright test e2e/game-widget-style.e2e.tson desktop-chromium, mobile-chromium and mobile-webkit: 12 passed.node scripts/run-regressions.mjs --filter …for the 42 regressions that read the changed files (game inventory, ruleset combat and items, floating window, chat window icons, chat widget style persistence, prompt and others): all passed.Manual verification notes
Manual verification still to do:
Agent checks: before and after screenshots (desktop Default, Dottore, Dottore with the switches, Prof. Mari, Prof. Mari with the switches, and a custom gradient; plus phone shots) exist locally and were compared; Default renders pixel-identical to
staging.Local CodeRabbit notes:
[docs-i18n]issue #7603 for the two edited guides.data-game-sectionlocators in the e2e". The test finds the dialogs the way a player sees them, so it still fails if a section loses its attribute or classes; the suite runs in English like the rest of the e2e specs.data-game-sectionis an internal term in a guide". It sits in the custom CSS reference table, next to the other class names.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs updated:
docs/appearance/appearance-settings.md,docs/appearance/custom-css-themes.md. Translation follow-up: #7603.UI evidence (if applicable)
Before and after screenshots of every Game section (desktop and phone; Default, Dottore, Prof. Mari and a custom gradient, with and without the Apply switches) exist locally and are not uploaded.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.