Jakub Krzyżanowski committed 3 months ago · 28 changed files
* feat: unify save feedback on toast notifications
Every save/create/update/delete action now surfaces feedback through a
single mechanism (sonner toasts) instead of a mix of inline "Saved"
badges, timer-based indicators, custom banner components, and silent
mutations. Adds a global MutationCache.onError in orpc.ts so mutation
failures toast automatically; sites with bespoke error-code messaging
opt out via meta.customError to avoid double-toasting.
* fix: address review findings on toast standardization
- Remove leftover isSuccess "saved" badges that duplicated toast
feedback (nests, nests/[id], eggs, admin servers[id])
- Use tc("created") instead of tc("saved") for nest creation
- Drop redundant call-level onSuccess on schedule toggle that
double-invalidated the schedules list
- Scope the startup-variable save-pending state to the specific
variable being saved instead of disabling every row
- Type the MutationCache meta.customError opt-out via module
augmentation so it's a checked contract, not an implicit unknown
- Move PasswordSection off local success-timer state onto toast
- Add meta.customError to setup wizard mutations (promote, location/
node create, complete) that wrap mutateAsync in try/catch, since
the global MutationCache.onError fires independent of local catch
blocks and was double-toasting failures