[PR #7130] [MERGED] fix(trackers): honor Tracker Panel and improve detached character cards #7489

Closed
opened 2026-10-23 04:20:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7130
Author: @SpicyMarinara
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/tracker-panel-routing-7128


📝 Commits (4)

  • 17f02e6 docs: record tracker UI fix for issue 7128
  • 8d79bd1 fix(trackers): route to the selected panel and reuse readable cards
  • 79f0743 docs(trackers): clarify phone controls in release note
  • 21af896 Merge remote-tracking branch 'origin/staging' into fix/tracker-panel-routing-7128

📊 Changes

21 files changed (+527 additions, -99 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/chat-settings-window.e2e.ts (+1 -1)
📝 e2e/phone-bubbles.e2e.ts (+4 -2)
➕ e2e/tracker-window-routing.e2e.ts (+185 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+3 -4)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+0 -1)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+8 -2)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+2 -2)
📝 packages/client/src/components/chat/RoleplayTrackerWindow.tsx (+8 -7)
📝 packages/client/src/components/chat/TrackerPanelBubble.tsx (+41 -18)
📝 packages/client/src/components/layout/AppShell.tsx (+17 -30)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+1 -1)
➕ packages/client/src/features/tracker-panel/components/TrackerWindowCharacters.tsx (+223 -0)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterNameplate.tsx (+13 -11)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterTrackerCard.tsx (+1 -1)
📝 packages/client/src/lib/back-layers.ts (+6 -5)
📝 packages/client/src/lib/tracker-panel-surface.ts (+7 -10)
📝 packages/client/src/localization/locales/en.json (+2 -2)
📝 packages/client/src/stores/floating-window.store.ts (+1 -1)
📝 packages/client/src/stores/ui.store.ts (+1 -0)

...and 1 more files

📄 Description

Linked issue

Closes #7128

Why this change

Tracker Panel users saw two tracker controls with different results, and popping out Present Characters produced cramped rows with a repeated heading. The Trackers entry point now respects the active chat's selected tracker surface, and detached characters use the same readable full cards as Tracker Panel.

What changed

  • Trackers opens Tracker Panel when selected for the chat. Closing the panel preserves that choice; reopening it and switching between chats keep the correct surface.
  • Chats without Tracker Panel retain the standard Trackers window on desktop and existing compact tracker controls on phones. Selecting Tracker Panel removes the duplicate phone controls too. The former icon-replacement setting now describes its remaining edge-docking behavior.
  • Character drawers and their detached windows reuse full character cards, with a responsive grid that places cards side by side when widened and a single Present Characters heading. Editing, locks, avatar controls, rerunning, and adding/removing characters remain available.
  • No storage migration, provider changes, or downloadable agent changes.

Validation

Completed locally on the final implementation:

  • pnpm install and pnpm check passed, including localization, formatting, lint/types, and production builds.
  • Focused browser coverage passed: desktop panel enable/disable, close/reopen and per-chat routing; detached cards in light/dark mode with resizing, persisted edits and Put back; phone settings and panel launcher behavior in Chromium and WebKit (8 applicable cases across focused runs).
  • All 7 desktop @smoke cases passed, including Game narration.
  • node scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts passed.
  • Docker image built and ran; health, frontend, and multiplayer guest asset returned HTTP 200. Production browser startup/reload passed in desktop Chromium, mobile Chromium, and mobile WebKit against that container (3/3).
  • Local CodeRabbit completed. Its two trivial findings were traced: strengthened the chat-switch test to require automatic desktop reopening; retained chat/character/index keys because tracker entries can have missing or duplicate IDs, matching the existing Tracker Panel key strategy.

Manual verification still requested

  • Manually verify Trackers chooses the intended surface in your existing chats.
  • Manually verify detached cards with your portraits, custom tracker styling, and preferred window sizes.
  • Manually verify touch behavior on a physical phone; automated phone coverage used browser emulation.

Docs and release impact

Added an Unreleased changelog entry and updated the English edge-docking setting copy. No version bump or installation/release behavior changes.

UI evidence

Before/after browser gallery · GitHub evidence source

All three original issue screenshots and the quoted maintainer comments were inspected. The latest maintainer clarification governs the button routing.

Summary by CodeRabbit

  • New Features
    • Detached character trackers display readable cards that rearrange when resized, with controls for managing tracked characters.
    • The Tracker Panel bubble is available on desktop and phone layouts. The panel opens from the bubble and docks to the screen edge.
    • The panel’s open state is kept separate from each chat’s saved preference, so switching chats restores the selected panel.
  • Bug Fixes
    • Closing the Tracker Panel no longer disables it for the chat. HUD tracker widgets remain visible when the panel is closed and are hidden when it is open.

🔄 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/7130 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/tracker-panel-routing-7128` --- ### 📝 Commits (4) - [`17f02e6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/17f02e68a468eae531773b152bef3df9317c5e40) docs: record tracker UI fix for issue 7128 - [`8d79bd1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8d79bd1829173f4631b750ac977d6d585eda430c) fix(trackers): route to the selected panel and reuse readable cards - [`79f0743`](https://github.com/Pasta-Devs/Marinara-Engine/commit/79f0743955180748ceeb716a64bf5fbaa6c14f77) docs(trackers): clarify phone controls in release note - [`21af896`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21af8967f3af785e6531e370a56b2c9702100abb) Merge remote-tracking branch 'origin/staging' into fix/tracker-panel-routing-7128 ### 📊 Changes **21 files changed** (+527 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/chat-settings-window.e2e.ts` (+1 -1) 📝 `e2e/phone-bubbles.e2e.ts` (+4 -2) ➕ `e2e/tracker-window-routing.e2e.ts` (+185 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+3 -4) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+0 -1) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+8 -2) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+2 -2) 📝 `packages/client/src/components/chat/RoleplayTrackerWindow.tsx` (+8 -7) 📝 `packages/client/src/components/chat/TrackerPanelBubble.tsx` (+41 -18) 📝 `packages/client/src/components/layout/AppShell.tsx` (+17 -30) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+1 -1) ➕ `packages/client/src/features/tracker-panel/components/TrackerWindowCharacters.tsx` (+223 -0) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterNameplate.tsx` (+13 -11) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterTrackerCard.tsx` (+1 -1) 📝 `packages/client/src/lib/back-layers.ts` (+6 -5) 📝 `packages/client/src/lib/tracker-panel-surface.ts` (+7 -10) 📝 `packages/client/src/localization/locales/en.json` (+2 -2) 📝 `packages/client/src/stores/floating-window.store.ts` (+1 -1) 📝 `packages/client/src/stores/ui.store.ts` (+1 -0) _...and 1 more files_ </details> ### 📄 Description ## Linked issue Closes #7128 ## Why this change Tracker Panel users saw two tracker controls with different results, and popping out Present Characters produced cramped rows with a repeated heading. The Trackers entry point now respects the active chat's selected tracker surface, and detached characters use the same readable full cards as Tracker Panel. ## What changed - **Trackers** opens Tracker Panel when selected for the chat. Closing the panel preserves that choice; reopening it and switching between chats keep the correct surface. - Chats without Tracker Panel retain the standard Trackers window on desktop and existing compact tracker controls on phones. Selecting Tracker Panel removes the duplicate phone controls too. The former icon-replacement setting now describes its remaining edge-docking behavior. - Character drawers and their detached windows reuse full character cards, with a responsive grid that places cards side by side when widened and a single Present Characters heading. Editing, locks, avatar controls, rerunning, and adding/removing characters remain available. - No storage migration, provider changes, or downloadable agent changes. ## Validation Completed locally on the final implementation: - `pnpm install` and `pnpm check` passed, including localization, formatting, lint/types, and production builds. - Focused browser coverage passed: desktop panel enable/disable, close/reopen and per-chat routing; detached cards in light/dark mode with resizing, persisted edits and Put back; phone settings and panel launcher behavior in Chromium and WebKit (8 applicable cases across focused runs). - All 7 desktop `@smoke` cases passed, including Game narration. - `node scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts` passed. - Docker image built and ran; health, frontend, and multiplayer guest asset returned HTTP 200. Production browser startup/reload passed in desktop Chromium, mobile Chromium, and mobile WebKit against that container (3/3). - Local CodeRabbit completed. Its two trivial findings were traced: strengthened the chat-switch test to require automatic desktop reopening; retained chat/character/index keys because tracker entries can have missing or duplicate IDs, matching the existing Tracker Panel key strategy. ### Manual verification still requested - [ ] Manually verify Trackers chooses the intended surface in your existing chats. - [ ] Manually verify detached cards with your portraits, custom tracker styling, and preferred window sizes. - [ ] Manually verify touch behavior on a physical phone; automated phone coverage used browser emulation. ## Docs and release impact Added an Unreleased changelog entry and updated the English edge-docking setting copy. No version bump or installation/release behavior changes. ## UI evidence [Before/after browser gallery](https://gist.githack.com/SpicyMarinara/5a4b9ec224d8ee1d52f38439b93ff1e1/raw/3e2be7a956f5773e1dea6060d7da48efec553349/gallery.html) · [GitHub evidence source](https://gist.github.com/SpicyMarinara/5a4b9ec224d8ee1d52f38439b93ff1e1) All three original issue screenshots and the quoted maintainer comments were inspected. The latest maintainer clarification governs the button routing. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Detached character trackers display readable cards that rearrange when resized, with controls for managing tracked characters. * The Tracker Panel bubble is available on desktop and phone layouts. The panel opens from the bubble and docks to the screen edge. * The panel’s open state is kept separate from each chat’s saved preference, so switching chats restores the selected panel. * **Bug Fixes** * Closing the Tracker Panel no longer disables it for the chat. HUD tracker widgets remain visible when the panel is closed and are hidden when it is open. <!-- 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-23 04:20:18 +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#7489
No description provided.