mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7206] [MERGED] fix(chat): keep the docked Tracker Panel usable beside the chat #7622
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#7622
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/7206
Author: @SpicyMarinara
Created: 10/6/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/docked-tracker-panel-7188📝 Commits (7)
efa0100fix(chat): keep the docked Tracker Panel usable beside the chat (#7188)9fb7247Merge remote-tracking branch 'origin/staging' into fix/docked-tracker-panel-7188b35deb7docs: describe the Chat Settings button and Tracker Panel beside a narrow chat (#7188)941324bfix(chat): keep a phone's Chat Settings button off a stale panel clearance (#7188)1a1e58dMerge remote-tracking branch 'origin/staging' into fix/docked-tracker-panel-71883d38ea5fix(chat): keep the docked Tracker Panel after switching chats (#7188)8e41798Merge remote-tracking branch 'origin/staging' into fix/docked-tracker-panel-7188📊 Changes
13 files changed (+312 additions, -21 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/chats/chat-settings.md(+1 -1)📝
docs/roleplay/hud-and-trackers.md(+2 -0)➕
e2e/docked-tracker-panel.e2e.ts(+236 -0)📝
packages/client/src/components/chat/ChatSettingsBubble.tsx(+18 -8)📝
packages/client/src/components/chat/chat-settings-window.ts(+2 -1)📝
packages/client/src/components/layout/AppShell.tsx(+18 -4)📝
packages/client/src/components/ui/FloatingWindow.tsx(+4 -2)📝
packages/client/src/lib/floating-window-layout.ts(+6 -3)📝
packages/client/src/lib/tracker-panel-layout.ts(+4 -1)📝
packages/client/src/styles/globals.css(+4 -1)📝
scripts/regressions/floating-window.regression.ts(+2 -0)📝
scripts/regressions/open-issues.regression.ts(+14 -0)📄 Description
Linked issue
Closes #7188
Why this change
On a computer, with the Tracker Panel docked beside a Roleplay chat, two things made the panel hard or impossible to use:
Both were present before #7181, which did not touch this layout. This branch includes the merged #7181.
What changed
ChatSettingsBubble.tsx,getTopRightBubblePoint): the default place now starts left of a Tracker Panel docked on the right. That is the slot the control buttons already leave for it. It reads the same clearance AppShell publishes for the Chat Settings window and the control buttons (useTrackerPanelClearance), so it follows the panel as it opens, closes or settles on its width. A position the user saved is never changed. Phones and the overlay layout below 1024 px publish no clearance, so they keep the corner.AppShell.tsx,tracker-panel-layout.ts,globals.css): the panel never goes below 96 px, which still fits its close, settings and help buttons side by side.resolveTrackerPanelDesktopWidthtakes aminWidth.--tracker-panel-column-room(96 px plus the usual 8 px gap).min(58rem, 100cqw - 2 × room). So the messages and message box narrow only when the pane cannot fit both the column and the panel. Wider windows keep today's layout exactly, with the column unmoved and the panel in the gutter.chat-settings-window.ts):useTrackerPanelClearancestops watching when disabled (a phone), but kept returning its last value. A computer window with the panel docked, narrowed to phone width, left the phone's Chat Settings button 225 px from its corner. A disabled hook now returns no clearance.FloatingWindow.tsx): now that the Chat Settings button moves with the panel, an unmoved Chat Settings window kept the button's old place when the panel closed (629 instead of 850 at 1440 px). The window read the button during the same render in which the button moved, and bubbles settle one render later. A changeddefaultLayoutKeynow re-applies the default on the next animation frame, which is what its comment already intended ("so the default reads the updated page"). The existing dice test inchat-settings-window.e2e.tscaught this, and it passes now.AppShell.tsx, added by the adversarial verifier): the docked panel measures its width against the chat column and only renders once it has. A chat switch unmounts that column after the first measure, and the observer that waits for a column was armed only once, so the panel stayed unmeasured and hidden until the window resized. It is now re-armed whenever the column goes missing. On staging, switching between two Roleplay chats with the panel open hid it from about the third switch on. The same race madetracker-window-routing.e2e.ts› "Trackers reopens the selected panel…" flaky (see Validation).e2e/core-flows.e2e.ts› "desktop Tracker scales into either Roleplay gutter without shifting chat" pins a 99 px panel beside an unmoved chat column at 1200 px (with the default 17 px font size). A larger minimum would move the chat there and break that decision, so I kept the minimum below it instead of changing the test. If you want a wider minimum at narrow widths, that test's decision has to change first.e2e/docked-tracker-panel.e2e.ts(7 tests, including six chat switches with the panel open), plus one unit assertion each infloating-window.regression.tsandopen-issues.regression.ts. Docs and CHANGELOG updated.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated runs by the agent (the boxes above are left for the human reviewer):
pnpm check: passed on the final commit (merged with staging, including #7181 and #7187).node ./scripts/run-regressions.mjs --filter floating-windowand--filter open-issues: passed.e2e/docked-tracker-panel.e2e.ts(desktop-chromium, 6 tests):useTrackerPanelClearancefix (225 px off its corner).chat-position,tracker-window,chat-settings-window,chat-control-windows,chat-controls-covered,drawer-popout,world-tracker-controls.core-flows-g Tracker, including "desktop Tracker scales into either Roleplay gutter without shifting chat".phone-bubbles,tracker-window,chat-controls-covered,mobile-echo-window: 18 passed, 11 desktop-only skipped.tracker-window-routing.e2e.ts› "Trackers reopens the selected panel and respects each chat's choice" (found flaky by the builder): a race that predates this PR, now fixed here.coderabbit review --agent --committed, against the staging merge-base): 0 findings across all 13 changed files, run by the builder and again by the verifier on1a1e58d3b. The later chat-switch fix (3d38ea5db) was not reviewed locally (one local run per verification); GitHub CodeRabbit reviews it here.Adversarial verification (verifier, on
1a1e58d3bplus the chat-switch fix):docked-tracker-panel,chat-position,tracker-window,chat-settings-window,chat-control-windows,chat-controls-covered,drawer-popout,world-tracker-controls,chat-window-favorite,chat-window-intro,chat-window-migration,tracker-window-routingandinventory-tracker-details: 70 passed, 6 skipped.core-flows -g Tracker: 4 passed.phone-bubblesandmobile-echo-window: 35 passed, 43 desktop-only skipped.pnpm checkpassed, anddocked-tracker-panel,tracker-window-routing,chat-controls-coveredandchat-settings-windowgave 27 passed, 2 skipped.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)English guides updated:
docs/chats/chat-settings.mdanddocs/roleplay/hud-and-trackers.md. Translation follow-up: #7205. CHANGELOG entry at the top of[Unreleased].UI evidence (if applicable)
e2e/docked-tracker-panel.e2e.tssaves screenshots at 1024, 1280 and 1440 px, with the chats sidebar closed and open (docked-<width>.png,docked-<width>-sidebar.pngin its test output). On staging the three width tests fail: the panel is 11 px at 1024 px, and Chat Settings covers the panel's buttons at 1280 and 1440 px. On this branch they pass.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.