mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6201] [MERGED] fix(game): enforce an Experience's widget requirement, whole-number seeds, seed-safe imports, Escape over a stacked dialog, and a skipped-entry notice #7090
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#7090
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/6201
Author: @kolacheee
Created: 9/14/2026
Status: ✅ Merged
Merged: 9/14/2026
Merged by: @kolacheee
Base:
staging← Head:fix/experience-setup-followups📝 Commits (10+)
00e1bb5fix(game): enforce Experience custom widget requirementbbf48e5fix(game): accept only whole-number world seeds and keep imported seedscd5115afix(game): keep Escape from dismissing setup behind a stacked dialog808f0bcfix(game): report imported lorebook entries missing on this machineae5a5f3fix(game): keep the player's widget setup choice across Experience toggles66af4d4fix(game): word the locked widget line as approved19e8b27test(e2e): wait for the ordinary setup import before toggling the Experience356d14cdocs: state the real Experience seed and import rules29d9fcddocs(changelog): record the seed contract and the preserved imported seeddef84dctest(e2e): give the Experience setup follow-up cases their own budgets📊 Changes
14 files changed (+683 additions, -170 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
docs/development/optional-agent-packages.md(+14 -9)📝
e2e/game-experience-setup.e2e.ts(+289 -118)📝
packages/client/src/components/game/GameSetupWizard.tsx(+36 -24)📝
packages/client/src/components/game/LegacyExperienceSetupDialog.tsx(+6 -1)📝
packages/client/src/components/game/NewGameExperienceChooser.tsx(+5 -2)📝
packages/client/src/components/ui/Modal.tsx(+21 -2)📝
packages/client/src/lib/game-experience-setup.ts(+14 -4)📝
packages/client/src/lib/game-setup-share.ts(+2 -2)➕
packages/client/src/lib/modal-overlay-registry.ts(+64 -0)📝
packages/client/src/localization/locales/en.json(+7 -7)📝
scripts/regressions/experience-setup-config.regression.ts(+2 -1)➕
scripts/regressions/game-experience-seed.regression.ts(+102 -0)➕
scripts/regressions/setup-escape-overlay-guard.regression.ts(+117 -0)📄 Description
Linked issue
Closes #6200
Follow-up to #6193 for #6181, built on #6193's merged head. It carries the parts of #6181 that #6193 did not, as listed on #6196 when that PR was closed as superseded.
Why this change
What changed
GameSetupWizard.tsxthe touched flag is gone and the value is derived: a declared requirement wins while its Experience is active, the player's own choice is stored separately and never overwritten, and it returns by itself when the Experience is turned off. The toggle is disabled while locked, with the file's existing disabled styling and anaria-pressedstate. A setup-file import still restores the underlying choice but cannot unlock the control. The line beside it reads "{{name}} turns custom HUD widgets off for this game." (or "on"); the old override and state strings are removed.parseExperienceSeedaccepts an integer from 0 to 4294967295 or a digits-only string, and returns null for everything else. The module exportsMAX_EXPERIENCE_SEEDand anisExperienceSeedguard, the input usesstep=1 min=0 max=4294967295instead ofstep="any", and the invalid-seed message names the range. The share resolver uses the same guard, so an unusable stored seed never reaches the wizard.Modaloverlays (packages/client/src/lib/modal-overlay-registry.ts) is registered byModalwhile it is open, and the legacy dialog's window key handler returns early while anything is stacked above it.role="status"line reports how many of the file's selected entries are not available on this machine. It is held at zero while entries are loading or if the fetch failed, so a load error never reads as missing entries.scripts/regressions/game-experience-seed.regression.ts(accepted and refused seed inputs, the validator) andscripts/regressions/setup-escape-overlay-guard.regression.ts(the overlay registry and its call sites). The e2e spec gains the locked and restored widget control, a fractional seed blocking Start, an ordinary import keeping the seed, the skipped-entry notice, and a pre-seam fallback case where a package with no setup block still opens the legacy dialog and Back returns to the wizard.Docs and CHANGELOG match: the package-author seed paragraph states the real contract, the widget paragraph describes enforcement and restore, and the import paragraph covers the preserved seed and the skipped entries.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run before opening, on the rebased tree: every piece of
pnpm check,pnpm version:check,git diff --check, the lanesexperience-setup-config,game-experience-seed,setup-escape-overlay-guard,experience-lore-entries,capability-package-lifecycle,prompt,open-issuesandassigned-issue-sweep,e2e/game-experience-setup.e2e.tson desktop and mobile Chromium, and a local CodeRabbit sweep. Mobile WebKit cannot launch on the author's Fedora host, so CI proves that lane.Still to verify by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/development/optional-agent-packages.mdchanged (seed contract, enforced requirement, import rules) andCHANGELOG.mdgained entries under[Unreleased]. No version bump. The[docs-i18n]follow-up for the docs page is batched with the other pending pages rather than filed per PR.UI evidence (if applicable)
Screenshots of the locked widget control with its line, the seed field rejecting a fractional value, the skipped-entry notice, and the legacy dialog for a package without a setup block, to be added by the author.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.