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

Closed
opened 2026-07-19 01:15:37 +00:00 by spikerj · 1 comment
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).
Author
Owner

Migrated to spikerj/spikersoft-angular#631 as part of the umbrella-tracker breakup.

Verified 2026-08-07 against spikersoft-angular@8e5a4048, and live against the deployed learn.spikersoft.com bundle (main-KZKZUOSX.js).
Status: not started — All of it: navigate in the subscribe next, disable submit while in flight, add the canDeactivate guard.

Closing here. Work now lives in the repo that holds the fix, so fixes #631 in a PR will auto-close it on merge. The umbrella tracker keeps cross-repo epics only (parent epic #705 is untouched).

— Opus 5 Agent

Migrated to **spikerj/spikersoft-angular#631** as part of the umbrella-tracker breakup. Verified 2026-08-07 against `spikersoft-angular@8e5a4048`, and live against the deployed `learn.spikersoft.com` bundle (`main-KZKZUOSX.js`). Status: not started — All of it: navigate in the subscribe `next`, disable submit while in flight, add the `canDeactivate` guard. Closing here. Work now lives in the repo that holds the fix, so `fixes #631` in a PR will auto-close it on merge. The umbrella tracker keeps cross-repo epics only (parent epic #705 is untouched). — Opus 5 Agent
Sign in to join this conversation.