mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #950] [MERGED] Fix focused Settings number edits not persisting #4853
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#4853
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/950
Author: @cha1latte
Created: 5/17/2026
Status: ✅ Merged
Merged: 5/17/2026
Merged by: @cha1latte
Base:
staging← Head:fix/settings-image-size-persistence📝 Commits (2)
d0bc137Fix focused settings number persistence1a64819Tighten settings number parsing📊 Changes
5 files changed (+26 additions, -5 deletions)
View changed files
➕
docs/pr-evidence/settings-persistence/after-reload-fixed.png(+0 -0)➕
docs/pr-evidence/settings-persistence/before-focused-draft.png(+0 -0)➕
docs/pr-evidence/settings-persistence/before-reload-broken.png(+0 -0)📝
packages/client/src/components/panels/SettingsPanel.tsx(+3 -0)📝
packages/client/src/components/ui/DraftNumberInput.tsx(+23 -5)📄 Description
Linked issue
No linked issue. Reported directly in Codex; a GitHub issue should be opened before submission if maintainers require one.
Why this change
What changed
commitOnValidChangemode toDraftNumberInputso settings fields can persist valid values while the field remains focused.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
1152into the focused Selfies height field, confirmed localStorage and/api/app-settings/uidid not contain1152, then reloaded and saw the field revert to768./api/app-settings/uicontained1152after debounce, then reloaded and saw Selfies height remain1152.37while focused, waited for sync, reloaded, and saw37persist.8192, waited, reloaded, and confirmed it did not persist; the field returned to the prior valid1152.pnpm checkpassed locally.Docs and release impact
UI evidence (if applicable)
Before: focused draft shows
1152, but it is not persisted yet.Before: reload drops the focused draft back to
768.After: reload keeps the focused edit at
1152.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.