mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7792] QoL: the State Editor's Fields view can't add or remove entries, and null values force you into JSON #4301
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#4301
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?
Originally created by @ylli-selmani on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7792
Originally assigned to: @ylli-selmani on GitHub.
What happens
The State Editor's Fields view can show the state, but it can't grow it:
A value the tracker left null (a conservative agent, or simply unknown yet) renders as
No value. Set one in the JSON view.— dead text, no input. A Scene often looks like this:So filling in the date means switching to JSON and hand-editing it.
A list of cards (characters, stats, custom fields, quests, inventory rows) has no + Add and no ×. Removing a character or a world custom field means switching to JSON.
The normal tracker panel already does all of this — Present Characters has + Add, a character card has + Add stat and + Add custom field, the toolbar has delete — so the two surfaces disagree about what "editing state" means.
Why it matters
The State Editor exists so a value can be found and fixed in one place (#7736, entry points extended in #7790). Needing JSON for one missing scene value, or for adding a stat, is the same friction in a new coat.
Proposal
No schema is needed, and none exists to fetch: the shapes are implicit in what each tracker writes. So:
"",0orfalseso the field becomes editable. Null stays the honest representation of "the agent didn't know", so a field can also be emptied again.+ Add. Appends an entry cloned from the last item's shape with values cleared, so it always matches what that tracker reads. Empty list starts from{}(or""for a list of plain values).×. Removes the row. Setting a row tonullwould leave a card the tracker then has to reconcile, so rows are removed, not nulled.+ Add field. A key/value row, so an object isn't a dead end.Out of scope: game mode. It edits through the Game Data Editor, which has its own UI and shapes, so it would be its own change.
Related