You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
style(ui): tighten the new frontend comments to stay inside the size budget
Rollup ships src/ comments verbatim in dist/index.js, and the bundle sits
close to its 800 kB size-limit: 796.76 kB before this branch. The new
comments alone pushed it to 800.61 kB and failed `pnpm size`.
Condense them to the load-bearing reasoning — every "why" is kept, only
restatement is dropped. Two blocks in SlotSetupWizard went entirely: the
surrounding comments already said "any other resolved result proves the
server answered", which covers the new not_found case.
799.34 kB.
// instead of telling the user the version is gone.
157
155
toaster.toast({title: "RomM Sync",body: "Couldn't reach RomM. Check your connection and try again."});
158
156
}elseif(result.status==="not_found"){
159
-
// The mirror image of the branch above: RomM answered that it no
160
-
// longer has this game's saves, so a retry cannot help and the
161
-
// toast must not send the user off to check their connection (#1570).
157
+
// Mirror of the branch above: RomM answered, so a retry cannot help
158
+
// and the toast must not send the user to check their connection.
162
159
toaster.toast({title: "RomM Sync",body: "RomM no longer has this game's saves — nothing was restored."});
163
160
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- exhaustive final branch of the 9-member RollbackStatus union; an explicit check (vs. plain `else`) keeps the per-status symmetry and leaves any future-added status unhandled instead of silently routing it to the "unsupported" toast
0 commit comments