[UX][Blog][Angular] Create flow: setTimeout(1000) navigation + no unsaved-changes guard (epic #705) #712

Open
opened 2026-07-19 01:15:37 +00:00 by spikerj · 0 comments
Owner

Epic #705. blog-create.ts: after publish/save-draft the component navigates back to /blog via a bare setTimeout(..., 1000) — fragile timing (double-submits possible in the window, navigation races the snackbar) — and the form has no CanDeactivate/unsaved-changes guard, so a stray back-press discards a fully-written post silently.

Shape: navigate in the subscribe next (keep the snackbar; no timer), disable the submit while in flight, add a canDeactivate guard prompting when title/body/media are dirty (there are existing guard patterns in the app to mirror).

Epic #705. `blog-create.ts`: after publish/save-draft the component navigates back to `/blog` via a bare `setTimeout(..., 1000)` — fragile timing (double-submits possible in the window, navigation races the snackbar) — and the form has **no CanDeactivate/unsaved-changes guard**, so a stray back-press discards a fully-written post silently. **Shape:** navigate in the subscribe `next` (keep the snackbar; no timer), disable the submit while in flight, add a `canDeactivate` guard prompting when title/body/media are dirty (there are existing guard patterns in the app to mirror).
Sign in to join this conversation.