Make Plan Today browser-back safe on mobile #401

Closed
opened 2026-08-09 12:33:29 +00:00 by rockachopa · 0 comments
Member

Problem

Plan Today is a full-screen mobile workflow, but unlike New, Find, Search, and Search preview it does not own a same-document history state. Browser or hardware Back can leave the dashboard and discard the in-memory planning draft instead of dismissing the planner.

Evidence on origin/main (45ceedb):

  • frontend/task-overlay-history.js excludes plan-today from supported overlays.
  • frontend/dashboard.js opens and closes the planner through direct DOM state only.
  • #315 covered the older task overlays; Plan Today arrived later in #385 and did not include Back behavior.

Acceptance criteria

  • Opening Plan Today pushes exactly one same-document history entry; repeated taps do not stack entries or reset the active draft.
  • Browser/hardware Back dismisses the planner, keeps the dashboard route, leaves the saved Today plan unchanged, and restores focus to Plan Today.
  • Cancel and backdrop dismissal unwind the same entry exactly once.
  • Save plan and Save & start clear the overlay marker without leaving stale history that can reopen the planner.
  • Existing New, Find, Search, Search preview, and work-route history behavior remains unchanged.
  • The PWA shell revision is advanced so installed clients receive the behavior.
  • Focused behavioral tests and the full suite pass.
## Problem Plan Today is a full-screen mobile workflow, but unlike New, Find, Search, and Search preview it does not own a same-document history state. Browser or hardware Back can leave the dashboard and discard the in-memory planning draft instead of dismissing the planner. Evidence on `origin/main` (`45ceedb`): - `frontend/task-overlay-history.js` excludes `plan-today` from supported overlays. - `frontend/dashboard.js` opens and closes the planner through direct DOM state only. - #315 covered the older task overlays; Plan Today arrived later in #385 and did not include Back behavior. ## Acceptance criteria - Opening Plan Today pushes exactly one same-document history entry; repeated taps do not stack entries or reset the active draft. - Browser/hardware Back dismisses the planner, keeps the dashboard route, leaves the saved Today plan unchanged, and restores focus to Plan Today. - Cancel and backdrop dismissal unwind the same entry exactly once. - Save plan and Save & start clear the overlay marker without leaving stale history that can reopen the planner. - Existing New, Find, Search, Search preview, and work-route history behavior remains unchanged. - The PWA shell revision is advanced so installed clients receive the behavior. - Focused behavioral tests and the full suite pass.
timmy was assigned by rockachopa 2026-08-09 12:33:29 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#401
No description provided.