mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1379] [MERGED] Fix legacy HUD starting values #5049
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#5049
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/1379
Author: @cha1latte
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1365-hud-starting-value📝 Commits (1)
4c20e10Fix legacy HUD starting values📊 Changes
3 files changed (+78 additions, -14 deletions)
View changed files
📝
src/engine/contracts/types/game.ts(+3 -0)📝
src/features/modes/game/components/GameWidgetPanel.tsx(+48 -14)📝
src/features/modes/game/hooks/use-game.ts(+27 -0)📄 Description
Linked issue
Closes #1365
Why this change
startingValuepath used by numeric widgets, so older/imported configs could render or edit as empty/default instead of using their intended initial values.What changed
startingValueon the shared HUD widget config contract.value ?? startingValue ?? 0during game-state sync, while preserving current runtimevaluewhen present.startingValue, and to sync edited starting values during initial session prep.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
Pressure points touched:
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
node scratch\issue-1365-starting-value-proof.mjsfailed before the fix and passes after the fix.pnpm checkpassed locally.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed with legacy compatibility rows and negative controls.startingValue, then confirm the first session shows the starting value and editing Review Starting Widgets preserves it.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
pnpm check; no browser screenshot was captured.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.