[PR #4095] [MERGED] Open the Tracker Panel in a movable window #6231

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4095
Author: @Xelvanis
Created: 7/25/2026
Status: ✅ Merged
Merged: 7/25/2026
Merged by: @SpicyMarinara

Base: staging ← Head: draggable-tracker-panel


📝 Commits (2)

  • 5d4b997 feat: detach tracker panel into movable window
  • b6b3d01 fix: address tracker panel review feedback

📊 Changes

13 files changed (+582 additions, -130 deletions)

View changed files

📝 packages/client/src/components/layout/AppShell.tsx (+111 -13)
📝 packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx (+18 -1)
➕ packages/client/src/features/tracker-panel/components/TrackerPanelDetachedWindow.tsx (+209 -0)
📝 packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx (+7 -0)
📝 packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx (+42 -6)
➕ packages/client/src/features/tracker-panel/components/TrackerWindowContext.tsx (+20 -0)
📝 packages/client/src/features/tracker-panel/components/character-card/CharacterThoughtBubbles.tsx (+16 -10)
📝 packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterTrackerCard.tsx (+16 -12)
📝 packages/client/src/features/tracker-panel/components/controls/InlineControls.tsx (+7 -5)
📝 packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx (+32 -77)
📝 packages/client/src/features/tracker-panel/components/sections/WorldEditableTile.tsx (+11 -6)
➕ packages/client/src/features/tracker-panel/hooks/use-persona-portrait-save.ts (+87 -0)
📝 packages/client/src/localization/locales/en.json (+6 -0)

📄 Description

Linked issue

Closes #4094

Why this change

Desktop users could not move the Tracker Panel outside Marinara's main browser viewport, which made second-monitor layouts impractical. The panel now has a desktop-only display control that opens it in a movable window while preserving its mounted UI state.

What changed

  • Added a desktop drawer control to detach and re-dock the Tracker Panel; mobile intentionally has no pop-out control.
  • Prefer Document Picture-in-Picture for a clean Chromium window and fall back to a normal popup for browsers such as Firefox.
  • Keep one mounted Tracker Panel subtree and move its host between docked, overlay, and detached documents.
  • Route document-specific observers, portals, events, and sizing through the active tracker window.
  • Preserve debounced persona portrait saves across detach/re-dock transitions with serialized, keepalive-aware flushing.
  • Added localized labels and blocked/failed-window feedback.

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

Command results:

  • pnpm check — passed after rebasing onto current origin/staging (localization, lint/type checks, and production build).
  • git diff --check origin/staging...HEAD — passed.
  • pnpm smoke:ui — blocked before reliable completion by the local Playwright web-server lifecycle. The configured wrapper timed out waiting for startup twice. A manual-server run started the suite and reached 25 passes, but the externally launched server was then reaped and the remaining tests failed with connection refusals; no feature assertion failure was established.

Manual verification notes

  • During implementation, Chrome displayed the detached panel in a clean Document Picture-in-Picture surface.
  • Firefox used the movable popup fallback and retained normal browser chrome, which Firefox does not expose a supported way for the page to remove.
  • A complete cross-theme and edge-state browser sweep was not performed.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No installation, release, or configuration behavior changed; no documentation or version files are needed.

UI evidence (if applicable)

Implementation screenshots were reviewed locally during development but are not attached to this PR.

Summary by CodeRabbit

  • New Features
    • Detach the tracker panel into a separate movable window and dock it back into the main layout.
    • Tracker panel tools, thought bubbles, and resizing continue working correctly in the detached window.
  • Bug Fixes
    • Improved saving of persona portrait positioning and zoom, including queued updates and page-close handling.
    • Added clear feedback when opening a detached tracker window fails or is blocked.
  • Localization
    • Added labels and messages for tracker panel detaching, docking, and related errors.

🔄 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/4095 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 7/25/2026 **Status:** ✅ Merged **Merged:** 7/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `draggable-tracker-panel` --- ### 📝 Commits (2) - [`5d4b997`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5d4b9972f7876754b371a89ed1f373515d4522e3) feat: detach tracker panel into movable window - [`b6b3d01`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b6b3d0118226028b7d16b1332201e7e21d81350c) fix: address tracker panel review feedback ### 📊 Changes **13 files changed** (+582 additions, -130 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/layout/AppShell.tsx` (+111 -13) 📝 `packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx` (+18 -1) ➕ `packages/client/src/features/tracker-panel/components/TrackerPanelDetachedWindow.tsx` (+209 -0) 📝 `packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx` (+7 -0) 📝 `packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx` (+42 -6) ➕ `packages/client/src/features/tracker-panel/components/TrackerWindowContext.tsx` (+20 -0) 📝 `packages/client/src/features/tracker-panel/components/character-card/CharacterThoughtBubbles.tsx` (+16 -10) 📝 `packages/client/src/features/tracker-panel/components/character-card/FeaturedCharacterTrackerCard.tsx` (+16 -12) 📝 `packages/client/src/features/tracker-panel/components/controls/InlineControls.tsx` (+7 -5) 📝 `packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx` (+32 -77) 📝 `packages/client/src/features/tracker-panel/components/sections/WorldEditableTile.tsx` (+11 -6) ➕ `packages/client/src/features/tracker-panel/hooks/use-persona-portrait-save.ts` (+87 -0) 📝 `packages/client/src/localization/locales/en.json` (+6 -0) </details> ### 📄 Description ## Linked issue Closes #4094 ## Why this change Desktop users could not move the Tracker Panel outside Marinara's main browser viewport, which made second-monitor layouts impractical. The panel now has a desktop-only display control that opens it in a movable window while preserving its mounted UI state. ## What changed - Added a desktop drawer control to detach and re-dock the Tracker Panel; mobile intentionally has no pop-out control. - Prefer Document Picture-in-Picture for a clean Chromium window and fall back to a normal popup for browsers such as Firefox. - Keep one mounted Tracker Panel subtree and move its host between docked, overlay, and detached documents. - Route document-specific observers, portals, events, and sizing through the active tracker window. - Preserve debounced persona portrait saves across detach/re-dock transitions with serialized, keepalive-aware flushing. - Added localized labels and blocked/failed-window feedback. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] 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) - [x] Read and followed `CONTRIBUTING.md` Command results: - `pnpm check` — passed after rebasing onto current `origin/staging` (localization, lint/type checks, and production build). - `git diff --check origin/staging...HEAD` — passed. - `pnpm smoke:ui` — blocked before reliable completion by the local Playwright web-server lifecycle. The configured wrapper timed out waiting for startup twice. A manual-server run started the suite and reached 25 passes, but the externally launched server was then reaped and the remaining tests failed with connection refusals; no feature assertion failure was established. ### Manual verification notes - During implementation, Chrome displayed the detached panel in a clean Document Picture-in-Picture surface. - Firefox used the movable popup fallback and retained normal browser chrome, which Firefox does not expose a supported way for the page to remove. - A complete cross-theme and edge-state browser sweep was not performed. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No installation, release, or configuration behavior changed; no documentation or version files are needed. ## UI evidence (if applicable) Implementation screenshots were reviewed locally during development but are not attached to this PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Detach the tracker panel into a separate movable window and dock it back into the main layout. * Tracker panel tools, thought bubbles, and resizing continue working correctly in the detached window. * **Bug Fixes** * Improved saving of persona portrait positioning and zoom, including queued updates and page-close handling. * Added clear feedback when opening a detached tracker window fails or is blocked. * **Localization** * Added labels and messages for tracker panel detaching, docking, and related errors. <!-- 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:08:25 +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#6231
No description provided.