mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#6675
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/5212
Author: @kolacheee
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/18/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/5209-collapsible-narration📝 Commits (10+)
4b3a98efeat(game): let the narration box collapse to a handle02a6698fix(game): let the narration box collapse over the advance controls2c49bf3fix(game): keep the collapse control's accessibility honest86ea460Merge remote-tracking branch 'origin/staging' into feat/5209-collapsible-narration8f61d4cfix(game): localize the handle's attention label as one phrase0cc770bMerge remote-tracking branch 'origin/staging' into feat/5209-collapsible-narratione040012build(client): raise the chunk budget to 520 kB18b9e0bRevert "build(client): raise the chunk budget to 520 kB"4dc0abafix(game): declare the collapse toggle after the state it reads47c8830docs(changelog): describe the collapse behavior that actually shipped📊 Changes
9 files changed (+672 additions, -432 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/development/optional-agent-packages.md(+23 -0)📝
packages/client/src/components/game/GameNarration.tsx(+589 -424)📝
packages/client/src/components/game/GameSurface.tsx(+23 -1)📝
packages/client/src/localization/locales/en.json(+4 -0)📝
packages/client/src/stores/ui.store.ts(+12 -0)📝
packages/client/vite.config.ts(+10 -1)📝
packages/shared/src/schemas/capability-package.schema.ts(+5 -1)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+5 -5)📄 Description
Linked issue
Closes #5209
Why this change
The narration box owns the bottom third of Game Mode and could not be dismissed. That is fine when the narration is the game, but it covers a game-surface Experience's world, the scene art, storyboards and the map — and there was no way to look at any of them.
What changed
A chevron in the narration meta row folds the whole panel down to a slim handle; the handle expands it again.
Collapsing the whole panel, not just the prose. Hiding only the prose leaves the speaker label, the failure banner and the button row sitting in an otherwise empty box — it still reads as the narration box and reclaims very little height. The scrim fades with it, and in
stackeddisplay mode the log card above the panel folds too, or the feature under-delivers for exactly the users who gave the box the most room.Safety rules, because a hidden panel can strand a player:
playerInputAvailableisfalsewhile the input is very much visible. Guarding on that flag alone would leave a fresh scene collapsed with nowhere to type.Persistence. The preference lives in the UI store beside the other game display settings and syncs across devices. No persist-version bump — an absent key falls back to the default.
Capability API 1.13 —
requestsCollapsedNarration. An Experience can ask the box to fold for as long as the request stands (a cutscene beat) without touching the player's stored preference. It is read off the active chrome declaration, so it clears the moment the experience stops being the live surface — that is what guarantees the box always comes back, structurally rather than by a package remembering to clear it. The engine's safety rules still win, so a package cannot lock a player out of their own turn, and a player who expands it by hand during a request keeps it open until the request drops. Added to thesetExperienceChromededupe equality, without which a package toggling only this field would be silently swallowed.Validation
pnpm format:checkclean on every touched fileeslintclean onGameNarration.tsx,GameSurface.tsx,ui.store.tsnode scripts/check-locales.mjspasses (en: 8808/8808)localization:ui-checkpasses on the touched components (this is the check that enforces localizedtitle/aria-label)scripts/regressions/localization-key-references.regression.tspassesscripts/regressions/capability-package-lifecycle.regression.tspasses — the API bump required updating five pins in that lane, not just the one onsupportedCapabilityApiManual verification notes
Not browser-verified — this needs a human pass before merge. Specifically worth checking:
flex-1, so choice cards and stacked logs grow into the reclaimed height.activePanelRefinto view; that ref is null while collapsed, and the effect null-guards — safe only because force-expand guarantees the panel exists whenever a field is focused. Worth confirming on a real device.game-dialoguestep spotlights the wrapper, which stays mounted and non-zero — but while collapsed it will highlight a slim bar, and the step text describes controls that are folded away.pnpm checkwas not run end-to-end in this worktree: its client typecheck resolves@marinara-engine/sharedthrough a symlink to a sibling checkout whose prebuiltdist/predates #5202, producing 4 pre-existing errors (versioningEnabled,PersonaUpdatableFields) inCharacterEditor.tsxandPersonaEditor.tsxthat are unrelated to this change and present without it. CI builds shared from source and will typecheck the schema edit properly.Documentation impact
docs/development/optional-agent-packages.mdwith a Capability API 1.13 section, matching the 1.11/1.12 house pattern.[docs-i18n]follow-up is needed to mirror that docs change to the translated language packs.Known trade-offs, flagged for review
showInterruptControlswould forbid collapsing during any generation, which kills the main use case — watching the scene while the GM writes. It is one click to recover and self-heals once streaming stops. Happy to change it if reviewers disagree.git diff -w, which shows roughly +133/−2.UI Evidence
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.