mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7343] [MERGED] fix(trackers): show package dock buttons in the Tracker Panel top bar #7690
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#7690
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/7343
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7280-tracker-dock-buttons📝 Commits (7)
14765a3fix(trackers): show package dock buttons in the Tracker Panel top bara73ec07Merge origin/staging into fix/7280-tracker-dock-buttonsa3fa5e2fix(trackers): keep package buttons reachable in a narrow Tracker Panel73fc443Merge origin/fix/7280-tracker-dock-buttons (staging sync) into fix/7280-tracker-dock-buttonscba25c9Merge origin/staging into fix/7280-tracker-dock-buttonsd6b5567Merge origin/staging into fix/7280-tracker-dock-buttonsa0957eeMove the CHANGELOG entry away from other open PRs📊 Changes
5 files changed (+208 additions, -8 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)➕
e2e/tracker-panel-package-buttons.e2e.ts(+160 -0)📝
packages/client/src/components/chat/RoleplayHUD.tsx(+9 -4)📝
packages/client/src/features/tracker-panel/components/TrackerDataSidebar.tsx(+19 -1)📝
packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx(+19 -3)📄 Description
Linked issue
Refs #7280
This PR fixes the Engine half of #7280 (the missing dock button). The X-Admin-Secret half is a Quartermaster package bug and belongs in Pasta-Devs/Marinara-Agents (assigned to @newfiesledneck); details below.
Why this change
ff04bb6c1) moved tracker controls into the Trackers window and, with the Tracker Panel chosen, showed "trackers only in the panel". The panel mounts each package'strackerview but never itsroleplay-trackertoolbarview, so with the Tracker Panel on there was no way to open the dock, on computers or phones. The 2.5.0 What's New anddocs/agents/built-in-agents.mdboth still say the dock opens "from a button above the Tracker Panel".roleplay-trackerslot, not only Quartermaster.What changed
toolbarview of each active, chat-enabled package with theroleplay-trackerslot, between the dice and the settings button. It uses the same package set the phone tracker strip shows (selectRoleplayTrackerPackages+partitionTrackerCapabilityPackages(...).other): Beholder keeps its own control window and Memory Nag its Tracker Panel section. The sameTrackerDataSidebarrenders the docked desktop panel, the phone panel and the popped-out panel, so all three get the buttons.toolbarButtonClassmatching the header's own icon buttons (theme variables only;aria-pressedshows them lit while a dock is open).RoleplayTrackerCapabilitytakes an optionalbuttonClassNamefor this; every other host keeps the chat toolbar class.e2e/tracker-panel-package-buttons.e2e.tsmounts a fixture package (toolbar button + tracker section) with the Tracker Panel on and checks the button is in the top bar, sized like the header buttons, and works, on desktop and phone projects; a second desktop test checks the minimum-width panel puts it on its own row inside the panel.X-Admin-Secret (package-owned, not changed here)
fetchitself; the Engine gives packages no fetch helper. Every/api/<package>/*route goes through the Engine's privileged gate (registerCapabilityPrivilegedRoutes→requirePrivilegedAccess,packages/server/src/services/capability-packages/capability-route-registration.service.ts:174,packages/server/src/middleware/privileged-gate.ts:71), so a non-loopback client needsX-Admin-Secret. The Engine's global fetch shim (packages/client/src/lib/csrf-fetch.ts) adds only the CSRF header.qmRequestinpackages/quartermaster/src/00-api.js(Marinara-Agentsstaging, lines 7-19) builds its headers from scratch and never sendsX-Admin-Secret. Fix there the same way Memory Nag 1.1.1 (src/.../memory-nag/api.tslines 4-20) and Relationship Tracker 0.6.2 did: readlocalStorage["marinara_admin_secret"]and send it asX-Admin-Secret. The dock's<img src>URLs (QM.itemImageUrl,QM.slotIconUrl,QM.outfitPortraitUrl, lines ~193-229) hit the same gated routes and cannot carry a header, so remote clients will also need those images fetched with the header (blob URLs).Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
pnpm checkpassed;pnpm localization:checkpassed (no new strings);node scripts/regressions/tracker-gallery-ui.regression.mjspassed; Playwright on desktop-chromium and mobile-chromium:e2e/tracker-panel-package-buttons.e2e.ts,e2e/docked-tracker-panel.e2e.tsande2e/tracker-window-routing.e2e.tsall passed (13 passed, 11 skipped by their own project guards). With the TrackerDataSidebar change reverted, the new e2e fails on desktop (button not found in the top bar). mobile-webkit was not run locally. Local CodeRabbit: one finding (launchers clipped in a narrow panel), fixed ina3fa5e28b; the rerun after that fix hit the CodeRabbit rate limit, so it has not been reviewed locally again.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG updated. No docs change:
docs/agents/built-in-agents.mdalready says the dock opens from the launcher above the Tracker Panel, which is true again.UI evidence (if applicable)
The e2e saves
tracker-panel-package-button.pngper project in its test output: the fixture button sits between the dice and the settings button, lit while its dock is open, on desktop and on a phone.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.