[PR #7206] [MERGED] fix(chat): keep the docked Tracker Panel usable beside the chat #7622

Closed
opened 2026-10-24 04:05:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • efa0100 fix(chat): keep the docked Tracker Panel usable beside the chat (#7188)
  • 9fb7247 Merge remote-tracking branch 'origin/staging' into fix/docked-tracker-panel-7188
  • b35deb7 docs: describe the Chat Settings button and Tracker Panel beside a narrow chat (#7188)
  • 941324b fix(chat): keep a phone's Chat Settings button off a stale panel clearance (#7188)
  • 1a1e58d Merge remote-tracking branch 'origin/staging' into fix/docked-tracker-panel-7188
  • 3d38ea5 fix(chat): keep the docked Tracker Panel after switching chats (#7188)
  • 8e41798 Merge 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

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

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:

  • The Chat Settings button covered the panel's help button. The button's default spot is the chat's top-right corner, which is exactly where a panel docked on the right puts its Settings and Help buttons. At 1280 px the button sat at x 1238–1272 over the help button at 1250; at 1440 px, 1398–1432 over 1410. The chat's control buttons already start left of a right-hand panel, so only Chat Settings ignored it.
  • A narrow window squeezed the panel into a strip. The docked panel sizes itself to the gap beside the centred chat column (#3882, #5071), and nothing stopped that gap from vanishing. Measured on staging: 11 px at 1024 px, and 0 px (hidden) at 1024 and 1280 px with the chats sidebar open (59 px at 1440).

Both were present before #7181, which did not touch this layout. This branch includes the merged #7181.

What changed

  • Chat Settings button (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.
  • Docked panel minimum width (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.
    • resolveTrackerPanelDesktopWidth takes a minWidth.
    • While the panel is docked, AppShell publishes --tracker-panel-column-room (96 px plus the usual 8 px gap).
    • The Roleplay column width becomes 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.
    • The room is a fixed amount rather than the measured gap, so the column and panel cannot resize each other. That is the same approach #7106 took for Chat position. It also fixes the same sliver for Chat position Left/Right with the panel on the opposite side.
  • Stale clearance on phones (chat-settings-window.ts): useTrackerPanelClearance stops 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.
  • Window defaults a frame later (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 changed defaultLayoutKey now 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 in chat-settings-window.e2e.ts caught this, and it passes now.
  • Panel kept after a chat switch (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 made tracker-window-routing.e2e.ts › "Trackers reopens the selected panel…" flaky (see Validation).
  • Why 96 px and not more: 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.
  • Regression: new e2e/docked-tracker-panel.e2e.ts (7 tests, including six chat switches with the panel open), plus one unit assertion each in floating-window.regression.ts and open-issues.regression.ts. Docs and CHANGELOG updated.

Validation

  • pnpm check passes locally
  • Container (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.md

Automated 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-window and --filter open-issues: passed.
  • e2e/docked-tracker-panel.e2e.ts (desktop-chromium, 6 tests):
    • On staging source, the three width tests fail: an 11 px panel at 1024 px, and Chat Settings over the panel's buttons at 1280 and 1440 px.
    • The phone-resize test fails without the useTrackerPanelClearance fix (225 px off its corner).
    • All 6 pass on this branch.
  • Desktop, after the staging merge, all passed:
    • 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".
  • Phones (mobile-chromium): 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.
    • Before the fix it failed 1 of 26 runs with staging's client code and 14 of 38 with this branch's, so the branch made the race more likely. A stricter copy failed 10 of 10 on both.
    • Cause: after the panel closed (a 240 ms exit hold keeps it anchored) or between two chats that both show it, a chat switch left the docked panel unmeasured, so it never rendered. Details are under "Panel kept after a chat switch".
    • With the fix: 20 of 20 runs pass. The new switch test fails 5 of 6 runs without the fix (the cold first run passes) and passes 6 of 6 with it.
  • Local CodeRabbit (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 on 1a1e58d3b. The later chat-switch fix (3d38ea5db) was not reviewed locally (one local run per verification); GitHub CodeRabbit reviews it here.

Adversarial verification (verifier, on 1a1e58d3b plus the chat-switch fix):

  • Widths 768, 856, 1024, 1180, 1280, 1440 and 1920, each with the panel on the left and the right, Chat position Left, Center and Right, and the chats sidebar open and closed. Run with a mouse and with touch emulation, 252 layouts in Roleplay. Conversation and Game ran at every width with the sidebar open and closed.
    • With a mouse, no chat control covered a docked-panel control.
    • The panel was never narrower than 96 px, and its close, settings and help buttons were always reachable.
    • Chat Settings always started left of a right-hand panel, and the default Chat Settings window never covered a right-hand panel.
    • Conversation and Game kept Chat Settings in its corner, with no column room.
  • The same layouts with staging's client code: panels of 0, 11, 59 and 89 px, and Chat Settings covering the panel's settings, help or close button at every computer width, including 1920 and Chat position Left/Right. All of these are gone on this branch.
  • Touch emulation:
    • Up to 1440 px, the overlay panel opens with no chat button showing over it (#7181 behaviour holds).
    • At 1920 px, the panel docks exactly as with a mouse.
  • Toggling with the d20 (Trackers) button at 1024, 1180, 1440 and 1920 px:
    • An unmoved Chat Settings button moves to the corner and back.
    • An unmoved Chat Settings window follows it when the die in its title bar turns the panel off and on.
    • The chat column does not move at 1440 or 1920 px with the sidebar closed.
  • Buttons dragged with a mouse or a touch drag stay put through panel toggles and a reload.
  • With fresh servers and one worker, as CI runs them:
    • Desktop: 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-routing and inventory-tracker-details: 70 passed, 6 skipped.
    • core-flows -g Tracker: 4 passed.
    • Phones (mobile-chromium and mobile-webkit): the same Tracker specs plus phone-bubbles and mobile-echo-window: 35 passed, 43 desktop-only skipped.
    • After merging staging (#7192, #7191): pnpm check passed, and docked-tracker-panel, tracker-window-routing, chat-controls-covered and chat-settings-window gave 27 passed, 2 skipped.
  • Both unit assertions fail with staging's library code (1400 instead of 1055, and 11 instead of 96) and pass here.
  • Found but not changed, because they behave the same on staging:
    • With the panel on the left, Chat position Left and the chats sidebar open at 1024 or 1180 px, the default Chat Settings window covers the right half of the panel. Its header buttons stay reachable.
    • A message avatar can sit partly under the panel wherever the panel fills the gutter, for example at 1280 px.

Manual verification notes

  • Manually verify, in a Roleplay chat with agents on, the Tracker Panel docked on the right and the Chat Settings button never moved, at 1280 and 1440 px wide with a mouse: the Chat Settings button sits just left of the panel, and clicking the panel's ? (Show help for Tracker Panel) opens its help.
  • Manually verify at 1024 px wide, first with the chats sidebar closed and then open: the docked panel is a narrow but readable column with its close, settings and help buttons, and it never overlaps the messages or the message box.
  • Manually verify at 1440 px with the chats sidebar closed that opening and closing the Tracker Panel does not move or resize the messages.
  • Manually verify that turning the panel on and off with the die in Chat Settings moves the Chat Settings button beside the panel and back to the corner, with an open Chat Settings window following it each way.
  • Manually verify that a Chat Settings button you dragged somewhere stays exactly there, with the panel shown and after a reload.
  • Manually verify with the panel on the left: Chat Settings stays in the top-right corner, and the panel keeps the narrow minimum at 1024 px.
  • Manually verify on a phone (390 px) and in an 856 px window that nothing changed: the Tracker Panel opens over the chat from its button, and Chat Settings stays in its usual corner.
  • Manually verify, with the Tracker Panel open in two Roleplay chats, that switching back and forth between them a few times keeps the docked panel showing beside each chat.
  • Manually verify Chat position Left/Right with the panel on the same side at 1440 px with the chats sidebar open: the panel keeps its full chosen width and the messages stay clear of it.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

English guides updated: docs/chats/chat-settings.md and docs/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.ts saves screenshots at 1024, 1280 and 1440 px, with the chats sidebar closed and open (docked-<width>.png, docked-<width>-sidebar.png in 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

  • Improvements
    • On desktop, the Tracker Panel stays docked beside Roleplay chat with a minimum usable width. When space is tight, messages and the message box narrow to make room.
    • Chat Settings starts to the left of a right-docked Tracker Panel. Manually positioned buttons stay where they were placed.
    • Switching between Roleplay chats no longer makes the docked panel disappear.
    • At narrow mobile widths, the panel can open over the chat without leaving the chat constrained after it closes.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7206 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/6/2026 **Status:** ✅ Merged **Merged:** 10/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/docked-tracker-panel-7188` --- ### 📝 Commits (7) - [`efa0100`](https://github.com/Pasta-Devs/Marinara-Engine/commit/efa010053c02e259dfec81ed59de785c7a2f100c) fix(chat): keep the docked Tracker Panel usable beside the chat (#7188) - [`9fb7247`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9fb7247d1c8e636728a0a3743b71f33e51f3103d) Merge remote-tracking branch 'origin/staging' into fix/docked-tracker-panel-7188 - [`b35deb7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b35deb76befd976b936fe61718e805a85319c7cc) docs: describe the Chat Settings button and Tracker Panel beside a narrow chat (#7188) - [`941324b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/941324b466da77f65262f18f6e4d8b5bc5997d22) fix(chat): keep a phone's Chat Settings button off a stale panel clearance (#7188) - [`1a1e58d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1a1e58d3be23614bf6ef201de26ba806be64a837) Merge remote-tracking branch 'origin/staging' into fix/docked-tracker-panel-7188 - [`3d38ea5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3d38ea5db503b8daa8a2870c4147138cfea7111f) fix(chat): keep the docked Tracker Panel after switching chats (#7188) - [`8e41798`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8e417980c9343b42d0ad95f3d54a293e184b6a58) Merge remote-tracking branch 'origin/staging' into fix/docked-tracker-panel-7188 ### 📊 Changes **13 files changed** (+312 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## 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: - **The Chat Settings button covered the panel's help button.** The button's default spot is the chat's top-right corner, which is exactly where a panel docked on the right puts its **Settings** and **Help** buttons. At 1280 px the button sat at x 1238–1272 over the help button at 1250; at 1440 px, 1398–1432 over 1410. The chat's control buttons already start left of a right-hand panel, so only Chat Settings ignored it. - **A narrow window squeezed the panel into a strip.** The docked panel sizes itself to the gap beside the centred chat column (#3882, #5071), and nothing stopped that gap from vanishing. Measured on staging: 11 px at 1024 px, and 0 px (hidden) at 1024 and 1280 px with the chats sidebar open (59 px at 1440). Both were present before #7181, which did not touch this layout. This branch includes the merged #7181. ## What changed - **Chat Settings button** (`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. - **Docked panel minimum width** (`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. - `resolveTrackerPanelDesktopWidth` takes a `minWidth`. - While the panel is docked, AppShell publishes `--tracker-panel-column-room` (96 px plus the usual 8 px gap). - The Roleplay column width becomes `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. - The room is a fixed amount rather than the measured gap, so the column and panel cannot resize each other. That is the same approach #7106 took for Chat position. It also fixes the same sliver for Chat position Left/Right with the panel on the opposite side. - **Stale clearance on phones** (`chat-settings-window.ts`): `useTrackerPanelClearance` stops 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. - **Window defaults a frame later** (`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 changed `defaultLayoutKey` now 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 in `chat-settings-window.e2e.ts` caught this, and it passes now. - **Panel kept after a chat switch** (`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 made `tracker-window-routing.e2e.ts` › "Trackers reopens the selected panel…" flaky (see Validation). - **Why 96 px and not more:** `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. - Regression: new `e2e/docked-tracker-panel.e2e.ts` (7 tests, including six chat switches with the panel open), plus one unit assertion each in `floating-window.regression.ts` and `open-issues.regression.ts`. Docs and CHANGELOG updated. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (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.md` Automated 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-window` and `--filter open-issues`: passed. - `e2e/docked-tracker-panel.e2e.ts` (desktop-chromium, 6 tests): - On staging source, the three width tests fail: an 11 px panel at 1024 px, and Chat Settings over the panel's buttons at 1280 and 1440 px. - The phone-resize test fails without the `useTrackerPanelClearance` fix (225 px off its corner). - All 6 pass on this branch. - Desktop, after the staging merge, all passed: - `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". - Phones (mobile-chromium): `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. - Before the fix it failed 1 of 26 runs with staging's client code and 14 of 38 with this branch's, so the branch made the race more likely. A stricter copy failed 10 of 10 on both. - Cause: after the panel closed (a 240 ms exit hold keeps it anchored) or between two chats that both show it, a chat switch left the docked panel unmeasured, so it never rendered. Details are under "Panel kept after a chat switch". - With the fix: 20 of 20 runs pass. The new switch test fails 5 of 6 runs without the fix (the cold first run passes) and passes 6 of 6 with it. - Local CodeRabbit (`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 on `1a1e58d3b`. The later chat-switch fix (`3d38ea5db`) was not reviewed locally (one local run per verification); GitHub CodeRabbit reviews it here. Adversarial verification (verifier, on `1a1e58d3b` plus the chat-switch fix): - Widths 768, 856, 1024, 1180, 1280, 1440 and 1920, each with the panel on the left and the right, **Chat position** Left, Center and Right, and the chats sidebar open and closed. Run with a mouse and with touch emulation, 252 layouts in Roleplay. Conversation and Game ran at every width with the sidebar open and closed. - With a mouse, no chat control covered a docked-panel control. - The panel was never narrower than 96 px, and its close, settings and help buttons were always reachable. - Chat Settings always started left of a right-hand panel, and the default Chat Settings window never covered a right-hand panel. - Conversation and Game kept Chat Settings in its corner, with no column room. - The same layouts with staging's client code: panels of 0, 11, 59 and 89 px, and Chat Settings covering the panel's settings, help or close button at every computer width, including 1920 and Chat position Left/Right. All of these are gone on this branch. - Touch emulation: - Up to 1440 px, the overlay panel opens with no chat button showing over it (#7181 behaviour holds). - At 1920 px, the panel docks exactly as with a mouse. - Toggling with the d20 (Trackers) button at 1024, 1180, 1440 and 1920 px: - An unmoved Chat Settings button moves to the corner and back. - An unmoved Chat Settings window follows it when the die in its title bar turns the panel off and on. - The chat column does not move at 1440 or 1920 px with the sidebar closed. - Buttons dragged with a mouse or a touch drag stay put through panel toggles and a reload. - With fresh servers and one worker, as CI runs them: - Desktop: `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-routing` and `inventory-tracker-details`: 70 passed, 6 skipped. - `core-flows -g Tracker`: 4 passed. - Phones (mobile-chromium and mobile-webkit): the same Tracker specs plus `phone-bubbles` and `mobile-echo-window`: 35 passed, 43 desktop-only skipped. - After merging staging (#7192, #7191): `pnpm check` passed, and `docked-tracker-panel`, `tracker-window-routing`, `chat-controls-covered` and `chat-settings-window` gave 27 passed, 2 skipped. - Both unit assertions fail with staging's library code (1400 instead of 1055, and 11 instead of 96) and pass here. - Found but not changed, because they behave the same on staging: - With the panel on the **left**, Chat position Left and the chats sidebar open at 1024 or 1180 px, the default Chat Settings window covers the right half of the panel. Its header buttons stay reachable. - A message avatar can sit partly under the panel wherever the panel fills the gutter, for example at 1280 px. ### Manual verification notes - Manually verify, in a Roleplay chat with agents on, the Tracker Panel docked on the right and the Chat Settings button never moved, at 1280 and 1440 px wide with a mouse: the Chat Settings button sits just left of the panel, and clicking the panel's **?** (Show help for Tracker Panel) opens its help. - Manually verify at 1024 px wide, first with the chats sidebar closed and then open: the docked panel is a narrow but readable column with its close, settings and help buttons, and it never overlaps the messages or the message box. - Manually verify at 1440 px with the chats sidebar closed that opening and closing the Tracker Panel does not move or resize the messages. - Manually verify that turning the panel on and off with the die in Chat Settings moves the Chat Settings button beside the panel and back to the corner, with an open Chat Settings window following it each way. - Manually verify that a Chat Settings button you dragged somewhere stays exactly there, with the panel shown and after a reload. - Manually verify with the panel on the **left**: Chat Settings stays in the top-right corner, and the panel keeps the narrow minimum at 1024 px. - Manually verify on a phone (390 px) and in an 856 px window that nothing changed: the Tracker Panel opens over the chat from its button, and Chat Settings stays in its usual corner. - Manually verify, with the Tracker Panel open in two Roleplay chats, that switching back and forth between them a few times keeps the docked panel showing beside each chat. - Manually verify **Chat position** Left/Right with the panel on the same side at 1440 px with the chats sidebar open: the panel keeps its full chosen width and the messages stay clear of it. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) English guides updated: `docs/chats/chat-settings.md` and `docs/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.ts` saves screenshots at 1024, 1280 and 1440 px, with the chats sidebar closed and open (`docked-<width>.png`, `docked-<width>-sidebar.png` in 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. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * On desktop, the Tracker Panel stays docked beside Roleplay chat with a minimum usable width. When space is tight, messages and the message box narrow to make room. * Chat Settings starts to the left of a right-docked Tracker Panel. Manually positioned buttons stay where they were placed. * Switching between Roleplay chats no longer makes the docked panel disappear. * At narrow mobile widths, the panel can open over the chat without leaving the chat constrained after it closes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:05:56 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7622
No description provided.