mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7340] [MERGED] feat(trackers): show World State as a banner when its window is minimized #7691
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#7691
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/7340
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/7320-minimized-agent-hover📝 Commits (10+)
c9f9ce3feat(trackers): show World State as a banner when its window is minimized46c1b4aMerge origin/staging into feat/7320-minimized-agent-hover57c6885style(trackers): draw a round-shape World State banner as a pill5b93b54fix(trackers): let screen readers hear the World State banner's values7e82196Merge origin/feat/7320-minimized-agent-hover (staging sync) into local branch31ff133Merge origin/staging into feat/7320-minimized-agent-hover381567afix(trackers): keep a phone World State banner in its row of buttonsda60467Merge origin/feat/7320-minimized-agent-hover (staging sync) into local branch7c7537cMerge origin/staging into feat/7320-minimized-agent-hovera46b148Move the CHANGELOG entry away from other open PRs📊 Changes
14 files changed (+295 additions, -43 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/appearance/custom-css-themes.md(+2 -1)📝
docs/roleplay/hud-and-trackers.md(+3 -1)📝
e2e/drawer-popout.e2e.ts(+69 -0)📝
e2e/phone-bubbles.e2e.ts(+3 -0)📝
packages/client/src/components/chat/RoleplayHUD.tsx(+20 -5)📝
packages/client/src/components/chat/RoleplayTrackerWindow.tsx(+7 -1)📝
packages/client/src/components/ui/Drawer.tsx(+9 -2)📝
packages/client/src/components/ui/FloatingWindow.tsx(+5 -1)📝
packages/client/src/components/ui/WindowBubble.tsx(+49 -14)📝
packages/client/src/lib/floating-window-layout.ts(+35 -17)📝
packages/client/src/styles/globals.css(+17 -1)📝
packages/client/src/styles/themes/chat-widgets.css(+6 -0)📝
scripts/regressions/floating-window.regression.ts(+69 -0)📄 Description
Linked issue
Closes #7320
Why this change
What changed
WorldStateMiniature(the same icon strip as the old toolbar widget and the collapsed drawer preview). No new colours were added. For screen readers the button keeps its name ("Open World State") and the banner's values (place, date, time, weather, temperature) become its description.WindowBubble/FloatingWindow/Drawertake an optionalbanner; the bubble renders it in.mari-window-bubble__bannerwithdata-banner="true"and grows as wide as it needs (globals.css, themeable like every bubble).clampWindowBubble,dropWindowBubbleandplaceWindowBubblesnow accept a width and height (a plain number still means a square, so every other caller is unchanged). A banner measures its real size and counts as movable in placement, so when it grows into another button it is the banner that moves aside.chat-widgets.css).docs/roleplay/hud-and-trackers.md(banner on both devices) anddocs/appearance/custom-css-themes.md(.mari-window-bubble__banner,data-banner). Translations are tracked in #7341.[Unreleased].Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
pnpm checkpassed.node ./scripts/run-regressions.mjs --filter scripts/regressions/floating-window.regression.tspassed (new banner assertions; confirmed failing without the layout change), plus theopen-issues,tracker-gallery-uiandchat-window-iconsregressions. Playwright desktop-chromium:drawer-popout.e2e.ts(including the new banner test),tracker-window.e2e.tsandchat-widget-style.e2e.tspassed (23 passed, 1 skipped). Playwright mobile-chromium:phone-bubbles.e2e.tsandworld-tracker-controls.e2e.tspassed (16 passed), including the existing phone World State test, which now shows the banner. Not run: mobile-webkit, the full e2e suite.pnpm checkwas rerun after the last commit and passed.Local CodeRabbit: first run gave 1 finding (the banner's values were not available to screen readers), fixed in
5b93b54a8. The rerun after that fix hit the CodeRabbit rate limit, so it has not been reviewed locally since.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
world-state-banner.pngin its Playwright output. Local screenshots (default dark, Mari light, Dottore dark, on phone and computer) show the banner with the pin, calendar day, clock, weather and temperature in the bubble's theme. On phones it settles in the row below the Player and Chat Settings buttons. On a computer it first sits just below the Chat Settings button.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.