mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7790] [MERGED] feat(state-editor): phone tracker sheets, agent's section, coloured JSON #7930
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#7930
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/7790
Author: @ylli-selmani
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/state-editor-phone-tracker-windows📝 Commits (3)
afb43f8feat(state-editor): open it from the phone tracker sheets and the agent's section6700147feat(state-editor): colour the JSON view90aa269Update packages/client/src/components/ui/state-editor/StateJsonField.tsx📊 Changes
6 files changed (+165 additions, -26 deletions)
View changed files
📝
docs/roleplay/hud-and-trackers.md(+2 -2)📝
packages/client/src/components/chat/AgentSuiteModal.tsx(+7 -1)📝
packages/client/src/components/chat/RoleplayHUD.tsx(+15 -0)📝
packages/client/src/components/ui/state-editor/StateJsonField.tsx(+60 -23)📝
packages/client/src/lib/state-editor/state-editor-json.ts(+41 -0)📝
scripts/regressions/state-editor.regression.ts(+40 -0)📄 Description
Linked issue
Closes #7789
Why this change
MobileTrackerWindow), so on a phone the editor stayed unreachable unless the layout widened into the desktop windows.What changed
MobileTrackerWindowrendersTrackerStateEditorButtonin its title bar, so World State and Player & Tracker both carry { } next to lock/close on a phone. World State opens on Scene; Player & Tracker is a combined sheet, so it opens on Scene as well.initialSectionId: selectedAgent?.id, so it opens on the selected agent's section (Character Tracker → Present Characters, Quest Tracker → Active Quests, World State → Scene).tokenizeStateJsonsplits JSON into tokens without parsing it, andStateJsonFieldpaints them on a layer behind a transparent textarea. Typing, selection, the caret and the line-number gutter behave exactly as before; the colours come from theme tokens (--color-rgb-*), so themed installs and the accent picker keep working, and there is no editor library.docs/roleplay/hud-and-trackers.mdcovers the phone sheets, the Agent Suite section and the JSON colours.scripts/regressions/state-editor.regression.tspins the tokenizer: tokens reproduce the text byte for byte, keys, strings, numbers and literals keep their kinds, and a half-typed value still leaves its key highlighted.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run on this branch's own worktree (dev stack on port 6989). Nothing here was run against a real install or the maintainer's daily app, so the boxes above are still a to-do list for a human.
pnpm check— exit 0 (format, lint, localization, type checks, full build).node ./scripts/run-regressions.mjs --filter scripts/regressions/state-editor.regression.ts— passed.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Phone sheets, 390×844. The { } button now sits in the title bar of World State and Player & Tracker, next to lock and close:
Coloured JSON. Keys, strings, numbers and
true/false/nullare coloured; the line-number gutter, caret and selection are unchanged:Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.