mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8260] [MERGED] feat(game): update a game's imported ruleset; keep over-long setup text and the setup's connection #8250
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#8250
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/8260
Author: @kolacheee
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @kolacheee
Base:
staging← Head:claude/game-mode-cloud-nx3wjf📝 Commits (6)
9f8a461feat(game): update a game to a newer version of its imported ruleset from the Journal899ceb3Merge remote-tracking branch 'origin/staging' into feat/game-ruleset-update773fc08fix(game): clip over-long setup blueprint text instead of dropping the blueprint908e8aefix(game): the connection a setup runs on becomes the game's own05391b9feat(game): the setup wizard names the rules an existing game plays by3b01b6bfix(game): a clipped setup string never ends in half a surrogate pair📊 Changes
12 files changed (+447 additions, -86 deletions)
View changed files
📝
packages/client/src/components/game/GameJournal.tsx(+6 -0)➕
packages/client/src/components/game/GameRulesetUpdate.tsx(+100 -0)📝
packages/client/src/components/game/GameSetupWizard.tsx(+4 -0)📝
packages/client/src/components/game/GameSurface.tsx(+1 -0)📝
packages/client/src/localization/locales/en.json(+7 -0)📝
packages/server/src/routes/game-rulesets.routes.ts(+17 -0)📝
packages/server/src/routes/game.routes.ts(+8 -86)➕
packages/server/src/services/game/game-ruleset-version.service.ts(+55 -0)➕
packages/server/src/services/game/game-setup-blueprint.ts(+105 -0)➕
scripts/regressions/game-ruleset-game-version.regression.ts(+102 -0)➕
scripts/regressions/game-setup-blueprint-clip.regression.ts(+39 -0)📝
scripts/regressions/world-setting-kits.regression.ts(+3 -0)📄 Description
Linked issue
Closes #8259
Why this change
Before:
After:
What changed
GameRulesetUpdateis shown in the Journal, only when a newer stored version exists, and in the setup wizard for an existing game, always, as a read-only line naming the rules and version. Package rulesets already play their newest installed version, so they never get the update offer.POST /api/game-rulesets/game-versionendpoint with{ chatId, version }moves a game's ruleset pin to that stored version and keeps the game's options. It only moves forward, only to a stored version, and only for a game that has a pin. The move is re-checked inside the metadata queue. Later sessions copy the pin from the previous session's metadata, so the update carries forward. Sheets on an older layout are migrated as they are read.services/game/game-setup-blueprint.ts. Its campaign-plan strings are clipped to their caps: cut at the last word that fits, ending in "…", never splitting a surrogate pair.POST /api/game/setupwrites the connection it ran on to the chat when one was chosen explicitly. "random" stays a per-request pick.ui.game.rulesetUpdate.*.Validation
CONTRIBUTING.mdManual verification notes
game-ruleset-game-versionregression:game-setup-blueprint-clipregression: over-long strings are clipped and kept, an emoji straddling the cut is dropped whole, and strings within their caps are unchanged.world-setting-kitsnow also checks that the setup's connection is saved on the chat.game-ruleset-import,game-ruleset-registryandopen-issuesregressions pass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.