mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1701] [Issue]: Preset Save & close closes before save succeeds #843
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#843
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?
Originally created by @cha1latte on GitHub (May 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1701
Originally assigned to: @cha1latte on GitHub.
Summary
The preset editor's "Save & close" action closes the editor immediately after starting an async save, before the save succeeds. If the save is pending or fails, the UI can make it look like the user's changes were accepted while hiding the edited content.
Expected behavior
"Save & close" should keep the editor open until the async preset save succeeds, or keep the unsaved edits visible and show an error if the save fails.
Actual behavior
The unsaved-changes banner's "Save & close" path calls
handleSave(); closePresetDetail();synchronously.handleSavestartsupdatePreset.mutate(...), but closing does not wait foronSuccess, so failed or pending saves can lose the visible edit context.Steps to reproduce
Impact area
Environment
upstream/refactorat18864af5Logs, screenshots, or video
Scout proof was captured locally in the scout worktree, not attached to this issue:
C:\tmp\ME-refactor-scout-b2-catalog-create-20260531\scratch\b2-preset-save-close-proof.mjsC:\tmp\ME-refactor-scout-b2-catalog-create-20260531\scratch\b2-preset-save-close-proof.jsonRegression notes
Not specified.
Additional context
Suspected owner file:
src/features/catalog/presets/components/PresetEditor.tsxThis appears distinct from PR #1694, which covers character create name trimming.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (May 31, 2026):
fixed in #1732