Tabs: Photos Videos, Note block and Tag views reset to root after switching back #1460

Closed
opened 2026-10-08 10:15:50 +00:00 by kayg · 3 comments
Owner

Problem (production d395b6e25)

After switching away from a Tab and back (warm switch), these views reset to the Tab's root instead of returning to where the User was: Photos → Videos returns to /photos; an open Note block route returns to /notes; a Tag view returns to the previous Calendar route. Evidence: worktree tabswitch-1233, artifacts/navrev-findings.md (shared with baseline).

Expected

Every Tab returns to its last sub-view, item and scroll position on a warm switch (DESIGN §33/§59), the same as Calendar week, Task views, Files Recent and Money months already do. Add these routes to the retained-view set or the restore path, with an e2e that switches away and back for each.

## Problem (production d395b6e25) After switching away from a Tab and back (warm switch), these views reset to the Tab's root instead of returning to where the User was: Photos → Videos returns to /photos; an open Note block route returns to /notes; a Tag view returns to the previous Calendar route. Evidence: worktree tabswitch-1233, `artifacts/navrev-findings.md` (shared with baseline). ## Expected Every Tab returns to its last sub-view, item and scroll position on a warm switch (DESIGN §33/§59), the same as Calendar week, Task views, Files Recent and Money months already do. Add these routes to the retained-view set or the restore path, with an e2e that switches away and back for each.
Author
Owner

Starting: branch job/fix-1460, base d395b6e25. Extending the existing per-Tab last-route memory to Photos sub-views, Notes and Tags.

Starting: branch job/fix-1460, base d395b6e25. Extending the existing per-Tab last-route memory to Photos sub-views, Notes and Tags.
Author
Owner

Finished on job/fix-1460, head 253e27ab4 (fix commit c0d80264b + merge of origin/dev).
Note: origin/dev has no retained-Tab memory (that lives only on the unmerged job/tabswitch-1233), so I added a minimal per-Tab last-URL map in routes/+layout.svelte (no shallow routing; Tab click still runs one goto, to a different URL). Gates: bun run check 0 errors (perf-lint PASS), full vitest 297 files / 2120 tests passed, new e2e bun e2e/tab-return-1460.mjs passes (Photos Videos, Stacks, Note + scroll offset, Note block anchor, Tag view). Screenshots: artifacts/tab-return-1460/ (390 and 1440, light and dark, Mac emulation).

Finished on job/fix-1460, head 253e27ab4 (fix commit c0d80264b + merge of origin/dev). Note: origin/dev has no retained-Tab memory (that lives only on the unmerged job/tabswitch-1233), so I added a minimal per-Tab last-URL map in routes/+layout.svelte (no shallow routing; Tab click still runs one goto, to a different URL). Gates: bun run check 0 errors (perf-lint PASS), full vitest 297 files / 2120 tests passed, new e2e `bun e2e/tab-return-1460.mjs` passes (Photos Videos, Stacks, Note + scroll offset, Note block anchor, Tag view). Screenshots: artifacts/tab-return-1460/ (390 and 1440, light and dark, Mac emulation).
kayg referenced this issue from a commit 2026-10-08 19:43:32 +00:00
Author
Owner

Deployed to calternal.cloud in merge round 35b (build 9dc65437e, live 2026-10-09 ~11:07 IST). Closing.

Deployed to calternal.cloud in merge round 35b (build 9dc65437e, live 2026-10-09 ~11:07 IST). Closing.
kayg closed this issue 2026-10-09 05:37:06 +00:00
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
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
kayg/calternal-v0#1460
No description provided.