Repository navigation
Return record breadcrumbs to the view the record was opened from - #122
Conversation
|
Verification level: 🟡 Partial verification — I independently re-ran the package tests and typecheck, and reviewed the diff, but I could not click through a real dashboard to prove the breadcrumb returns to the source view. ProblemOpening a record from a saved view, then clicking the Base crumb, did not return to that view. After #92's leftmost/default-view redirect, the crumb went to Root causeRecord URLs used FixRecord, edit, and new-record links from table, gallery, kanban, calendar, and timeline now add Validation
No screenshots: verification did not go through a browser. |
7949392 to
4221c5a
Compare
Record, edit, and new-record links opened from a view carry fromView. The Base crumb uses that slug when it still names an active view, and edit, save, cancel, and delete keep it too. Co-authored-by: Kelly Peilin Chan <[email protected]>
Opening a record from the grid now keeps fromView, and the Base crumb follows that view. The history and relation tests were asserting the old bare paths. Co-authored-by: Kelly Peilin Chan <[email protected]>
4221c5a to
adad204
Compare
Problem and fix
A record now retains the view it was opened from as
fromView. Its Base breadcrumb and edit/save/cancel/create/delete navigation return to that active view; a missing or archived source falls back to the Base's configured default. Table, gallery, kanban, calendar, and timeline links carry the source, including preview and full-page links.Builds on the default-view setting merged in #121.
Acceptance also caught a cross-Base leak: an implicit
fromViewquery could select a same-named view in a different Base. Both generic link mergers now treat this as page-local state. Same-record toolbar, activity, create and save navigation opt in explicitly; a missing provider can read the record URL, while an explicit null provider still means no source. Workspace, locale, demo and inbox context continue to travel with links.Validation
A rendered-component regression failed before correction. The real browser then verified Board → record → edit/cancel/save/activity/back, a generated cross-Base reference without
fromView, the other Base opening its own Grid default despite also having Board, and successful record creation retaining its real Board source. Root independently replayed this proof, the complete five-view local story, and the final real Cloud story with no browser errors.The changed feature paths were exercised in Chromium with genuine Inter/Fraunces fonts, backed by real local databases and HTTP/RPC calls. Busabase Cloud checks used real Better Auth sessions and an isolated migrated PGLite database. Screenshot/video links were fetched successfully after upload.
Verified all five view types against the public source: open record → full page → Base breadcrumb → same view. Also verified preview links, edit cancellation, edit/save/return, new-record cancellation, an invalid source falling back to the configured default, and delete/merge returning to the source timeline. The real authenticated Cloud host passes preview/full-page/edit/save/return too. No browser errors. Focused source-view component tests and scoped typechecks pass.
Known risk: none identified in the tested navigation paths.
Story: finish work on a record and return to the same view
A record opened from Grid view keeps that destination in its Base breadcrumb.
Edit and save, then return to Grid view rather than the configured default.
Delete and merge from a timeline record and return to that timeline.
Additional view proofs: gallery, kanban, calendar, timeline.
Local browser recording · Cloud browser recording
Follow a reference to another Base without borrowing the current Board.
The other Base opens its own Grid default even though it also has Board.
Successful creation retains the originating Board.
Cross-Base and same-record recording
Fixes #95