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
fix(ui): global toast provider so batch-action toasts survive page reload
Toast notifications would flash for ~3s — or not appear at all on slow batch
operations — because each page rendered <ToastNotice> inside <StateShell>'s
children, and any reload() triggered loading=true which unmounts the entire
children tree (toast included).
Changes:
- New ToastProvider (context + top-level mount in App.tsx) so the toast
surface lives outside every StateShell and survives loading transitions
- Default timeout bumped 3000ms → 4500ms (batch results need more reading
time); per-call override via showToast(msg, type, ms)
- useToast() now reads the global context — API unchanged, all 77 existing
callers work without modification
- Drop redundant <ToastNotice> mounts from 8 pages
- handleBatchTest in Accounts.tsx now uses reloadSilently so the post-batch
page doesn't blank to a spinner (which used to hide the toast too)
0 commit comments