mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7780] [MERGED] feat(state-editor): open it from the Trackers window and every popped-out tracker #7924
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#7924
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/7780
Author: @ylli-selmani
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/state-editor-tracker-entries📝 Commits (2)
940aed3feat(state-editor): reachable from the Trackers window and every detached tracker69feb2cdocs(roleplay): say where the State Editor's {} button now lives📊 Changes
8 files changed (+129 additions, -5 deletions)
View changed files
📝
docs/roleplay/hud-and-trackers.md(+1 -1)📝
packages/client/src/components/chat/RoleplayTrackerWindow.tsx(+26 -0)📝
packages/client/src/components/layout/ModalRenderer.tsx(+8 -1)📝
packages/client/src/components/modals/GameStateEditorModal.tsx(+4 -1)📝
packages/client/src/components/ui/Drawer.tsx(+8 -0)📝
packages/client/src/components/ui/state-editor/StateEditor.tsx(+13 -2)➕
packages/client/src/features/tracker-panel/components/TrackerStateEditorButton.tsx(+35 -0)📝
scripts/regressions/state-editor.regression.ts(+34 -0)📄 Description
Linked issue
No issue — small QoL on maintainer request.
Why this change
The State Editor was only reachable from the docked Tracker Panel (gear → { }), which is not the default surface any more. The default is the merged Trackers window, and from there any tracker can be popped out into a window of its own. On both of those surfaces there was no way to the editor, so fixing one value meant closing the popped-out tracker, finding the docked panel, opening its settings and clicking { } there — or going through Agent Suite.
The ask was simply: put that button in the merged tracker panel and in every detached tracker.
What changed
StateEditortakes an optionalinitialSectionId;game-state-editoraccepts the same through its modal props.DrawergainsdetachedHeaderControls, for controls that belong to the popped-out window's title bar only. The docked drawer header is unchanged, and the package drawers and Agent Activity (not game state) get no button.game-state-editormodal.docs/roleplay/hud-and-trackers.md§ The State Editor now says where the button also lives and that it opens on the tracker's own section.state-editor.regression.tsreads each<TrackerDrawer>block and pins its id to its section, exactly once (a swap between two drawers fails, not just a missing one), and checks those ids againstGAME_STATE_EDITOR_SECTION_IDS.Not included: the phone-only tracker windows (Player & Tracker, the mobile World State window). They are separate surfaces without window title bars; a follow-up could add the same entry point there if it is wanted.
Validation
Leave
pnpm checkand the rest for you to confirm; run locally:pnpm check— passed, exit 0 (only the pre-existingHomeProfessorMariChatexhaustive-deps warning).pnpm --filter @marinara-engine/client lintandtsc -p packages/client/tsconfig.json --noEmit— passed.node scripts/run-regressions.mjs --filter state-editor— passed; the new guard was also checked negatively (swappingworld-state/persona-statsin the source makes it fail).node scripts/run-regressions.mjs --filter open-issues— passed.Manual verification notes
Ran a seeded roleplay chat (world state, two present characters, persona stats, a quest, an inventory) on a local dev server, then clicked through the surfaces the request named:
{ }, then pin, lock, close. Clicking{ }opens the editor on Scene.{ }opens the editor on Scene (date, time, location, weather, temperature).Please verify in the browser yourself:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)The follow-up for the translated packs is #7779.
UI evidence (if applicable)
The
{ }control in the Trackers window title bar, and in the Present Characters window popped out of it:Opened from that Present Characters window, the editor starts on Present Characters instead of Scene:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.