mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7181] [MERGED] fix(chat): keep chat controls off other screens and let the Agents button close its panel #7613
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#7613
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/7181
Author: @SpicyMarinara
Created: 10/6/2026
Status: ✅ Merged
Merged: 10/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/new-ui-overlaps-7176📝 Commits (7)
8d31dd9fix(chat): keep chat controls off other screens and let the Agents button close its panel5eefb03test(e2e): make the covered-chat regression's return step deterministic1f2ed10test(e2e): cover a pinned chat window behind covering screensa8908a3fix(chat): move keyboard focus into the Tracker Panel when it covers the chatf724bcaMerge remote-tracking branch 'origin/staging' into fix/new-ui-overlaps-71760134cf9docs: the Tracker Panel button opens and closes the panel (#7176)e9addc7Merge branch 'staging' into fix/new-ui-overlaps-7176📊 Changes
9 files changed (+262 additions, -9 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/chats/chat-settings.md(+1 -1)📝
docs/roleplay/hud-and-trackers.md(+1 -1)➕
e2e/chat-controls-covered.e2e.ts(+229 -0)📝
e2e/phone-bubbles.e2e.ts(+1 -1)📝
e2e/tracker-window-routing.e2e.ts(+1 -1)📝
packages/client/src/components/chat/TrackerPanelBubble.tsx(+9 -4)📝
packages/client/src/components/layout/AppShell.tsx(+13 -1)📝
packages/client/src/styles/globals.css(+6 -0)📄 Description
Linked issue
Refs #7176
This fixes parts 1 and 2 of #7176. Part 3 (the Relationship Tracker cannot be minimised) is being handled separately by Crimson Orc, so this PR does not close the issue.
Why this change
On the Android app on a Honor foldable (856 CSS px wide), the reporter saw two problems:
The maintainer couldn't reproduce this on a phone or a desktop because it only happens between the two layouts. Root cause:
MOBILE_SHELL_MEDIA_QUERYplus a width-capacity check, so it covers touch screens up to 1440 px and any window narrower than2 × sidebar width + 384(1024 px by default).(max-width: 767px). Below it they sit at z 44, under those overlays. Above it they use the window layer, z 70 and up.TrackerPanelBubble.onOpenonly ever calledopenWindow, so the button could not close the panel.What changed
AppShell.tsx: the chat wrapper getsdata-chat-covered="true"whenever the existingchatSurfaceActiveis false, meaning a panel, editor, chat list or the overlay Tracker Panel is showing instead of the chat. This reuses the shell's own decision, so it holds at every width.globals.css: one rule hides the chat's.mari-window,.mari-window-bubbleand the Chat Settings move tip (visibility: hidden) under that marker, next to the existing rule that hides them under chat-local modals. Positions are not touched, so the buttons come back exactly where they were. On phones those elements were already underneath the overlays. On desktop the chat is already hidden or unmounted whenever this is true, so neither changes.TrackerPanelBubble.tsx: the d20 now toggles like the Chat Settings button. A second press closes the panel through the existingcloseTrackerPanel(), it keepsaria-expanded, and its accessible name and tooltip are now plain "Trackers" instead of "Open Trackers", following theWindowBubbleariaLabelcontract for toggling buttons.AppShell.tsx(follow-up commit): when the Tracker Panel opens over the chat in overlay layouts, it hides the chat control that opened it, so a keyboard user's focus would drop to the page. If focus was in the covered chat, it now moves to the panel (tabIndex={-1},outline-nonelikeFloatingWindow's own focus target). Tab then reaches the panel's close button, and closing the panel returns focus to the Trackers button through the existing effect inTrackerPanelBubble. Desktop docked layouts are unchanged: focus stays on the d20.e2e/chat-controls-covered.e2e.ts(new regression):e2e/tracker-window-routing.e2e.ts,e2e/phone-bubbles.e2e.ts: the d20's expected accessible name is now "Trackers".CHANGELOG.md: user-facing entry.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run results (not a substitute for the boxes above):
pnpm regression:ui e2e/chat-controls-covered.e2e.ts --project=desktop-chromium: fails 3/3 on the unfixed code and passes 3/3 with the fix.pnpm check: passes.pnpm localization:check: passes (no new strings).prettier --checkon the changed files: passes, exceptglobals.css, which already fails onstagingbecause of an unrelated selector at about line 6491. That hunk was left alone.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)CHANGELOG has an
[Unreleased]entry. Nodocs/pages change.UI evidence (if applicable)
At 856×904 with the Android app user agent, before the fix: in the agent editor the d20 covers Back and the Chat Settings button covers export. Over the Tracker Panel the d20 sits on the panel's own d20 close button and the Chat Settings button covers the panel's header controls. After the fix, neither screen shows any chat buttons. The screenshots were captured locally by the regression run (
chat-controls-coveredoutput) and are not attached here.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.