Skip to content

Show the full folder path in dashboard breadcrumbs - #124

Merged
mr-kelly merged 22 commits into
mainfrom
cursor/breadcrumb-folder-path-7823
Nov 20, 2026
Merged

mr-kelly merged 22 commits into
mainfrom
cursor/breadcrumb-folder-path-7823

Conversation

@mr-kelly

@mr-kelly mr-kelly commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Verification: 🟢 Fully verified

Problem and fix

Nested nodes now show their visible ancestor folders in the dashboard breadcrumb, including on a cold bookmark. Each folder links to its real destination; the node Info action stays attached to the node before any view, record, or design suffix. The ancestors API adds visible name/slug/type summaries while keeping its existing ID list.

Acceptance found and fixed two additional defects. Ancestor trails with an infinite cache lifetime were not invalidated after parent renames/moves; the node invalidation prefix now refreshes both active and previously visited descendants. On a 360px phone, header actions squeezed breadcrumb text to zero width. The compact header now keeps the node name inline, exposes every hidden path step through More, and uses labelled icons/compact spacing for actions. Desktop keeps the full path and full-name titles.

The shared SPA/admin breadcrumb renderer also accepts an ordered trail and preserves its existing parent/intermediate fallback and demo query parameters.

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 the public implementation at 360px and 390px with genuine fonts: the node text and More button remain visible, every hidden step is reachable, and clicking a folder navigates correctly. The360px node label now has 51px of visible width, versus zero before correction. Verified desktop paths, Base/record suffixes, ancestor rename before revisiting a cached descendant, and cold document bookmarks. A separate real-component browser harness exercises shared SPA/admin ordered trails, fallback navigation, demo parameters, and mobile rendering.

Real Cloud browser stories pass too. Real Cloud permission checks omit an inaccessible private parent's name, return 404 for hidden/foreign node lookups, and reject read-only settings writes with 403 and no mutation. Focused navigation/database/cache tests, shared renderer tests, and scoped typechecks pass. No browser errors.

Known risk: none identified within the changed paths. The verified default/source-view changes are supplied by #121 and #122.

Two existing sandbox behavior tests now allow worker-startup headroom in their explicit test budgets. Their SSRF/fetch-cap assertions and the dedicated 200/300ms timeout cases remain unchanged. Production sandbox deadline behavior is unchanged.

Story: find a nested node and keep its location

Enter the nested Base from the workspace and see every ancestor folder.

Enter the nested Base from the workspace and see every ancestor folder.

At360px the node stays readable and More exposes the complete hidden path.

At360px the node stays readable and More exposes the complete hidden path.

Rename a parent and revisit the descendant without retaining its old path.

Rename a parent and revisit the descendant without retaining its old path.

A cold document bookmark still resolves the complete folder chain.

A cold document bookmark still resolves the complete folder chain.

The authenticated Cloud reader sees the granted child without its private parent name.

The authenticated Cloud reader sees the granted child without its private parent name.

Before the phone correction · Shared renderer proof · Public browser recording · Cloud browser recording

Fixes #94

The header trail now includes every ancestor folder between Workspace
and the open node, including Base views and records. A long trail keeps
the first crumb and the last two on a narrow screen and lists the hidden
folders in a menu.

Fixes #94

Co-authored-by: Kelly Peilin Chan <[email protected]>
@mr-kelly

Copy link
Copy Markdown
Contributor Author

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 see the folder trail in the header.

Problem

The dashboard header only showed Workspace and the current node (or Base > view). Folders on the path were missing, so a deep node looked like it sat at the workspace root.

Root cause

getNodeDetailBreadcrumbItems and the Base trail never inserted ancestor folders. The lazy, depth-bounded tree also does not have those folders on a cold load, and nodes.ancestors only returned ids.

Fix

The trail is now Workspace > folder > … > node, and on a Base it stays Workspace > folder > … > Base > view (or record / design). Each folder links to the same place as its sidebar row. The node crumb is unchanged, so the Info button still sits on it. On a narrow header, a trail longer than four crumbs keeps the first crumb and the last two and puts the hidden folders in a menu. nodes.ancestors now also returns name, slug, and type for ancestors this caller can see; names the caller cannot see are dropped, while ancestorIds can still include those ids for sidebar expansion. An invisible target node is still a 404, not a leaked chain. Anonymous visitors are not on that procedure's allowlist and fall back to folders already in the visible tree. BreadcrumbState.crumbs is the new ordered trail; Search, Home, and other non-node routes still use parent / intermediate.

This PR targets main (dc049a55). It also edits packages/busabase-core/src/domains/dashboard/index.tsx, which #121 and #122 change as well, and it shares packages/busabase-contract/src/contract/busabase.ts with #121. Those three should not be merged independently without a rebase.

Validation

  • Method: I checked out bf1e0f41 and ran, in packages/busabase-core, the tests named in the PR body (breadcrumbs.test.ts, dashboard-shell.test.tsx, topbar-breadcrumb.dom.test.tsx, topbar-node-info.dom.test.tsx, tests/nested-folder-tree.test.ts), then tsc --noEmit. In packages/openlib I ran ui/dashboard/demo-navigation.test.tsx and tsc --noEmit. I also read the breadcrumb helpers, the ancestors handler, the contract change, and the topbar overflow. I did not start a dashboard or drive a browser.
  • Result: 5 files, 36 tests, all passed in busabase-core. 1 file, 7 tests, all passed in openlib. Typecheck passed in both packages. The tests cover inserting folders between Workspace and the node (and before a Base view), skipping a non-folder ancestor, an empty chain leaving Home alone, the tree fallback when the API has not arrived, overflow indexes (keep first + last two only when length > 4), and nodes.ancestors returning visible summaries (empty for a node directly under the workspace root).
  • Verification level: 🟡 Partial verification — the trail construction, overflow, and ancestors visibility were exercised in tests, but there is no click-through of a deep folder path, a folder crumb, or the narrow overflow menu in a running dashboard.
  • Known risk / not covered:
    • No live dashboard evidence. The GitHub "Deploy preview" job deploys busabase-cms-example, not the Busabase dashboard, so it cannot prove this header.
    • At review time, GitHub test, coverage, e2e, and Docker build were still running. Lint, typecheck, and Email SDK had already passed.
    • Rebase against Store a Base default view independent of tab order #121 / Return record breadcrumbs to the view the record was opened from #122 (or merge order) is needed because all three edit index.tsx.
    • A middle folder the caller cannot see is omitted from the trail, so the path can look flatter than the real tree. That matches the stated visibility rule.

No screenshots: verification did not go through a browser.

@mr-kelly
mr-kelly marked this pull request as draft November 20, 2026 03:23
mr-kelly and others added 12 commits November 20, 2026 11:44
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]>
The 250-row timeline loads three pages of 100. The coverage run reached
the length check at 200, inside the default one-second wait.

Co-authored-by: Kelly Peilin Chan <[email protected]>
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]>
@mr-kelly
mr-kelly marked this pull request as ready for review November 20, 2026 04:28
cursoragent and others added 3 commits November 20, 2026 12:39
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]>
@mr-kelly
mr-kelly marked this pull request as draft November 20, 2026 04:48
cursoragent and others added 6 commits November 20, 2026 04:59
A short run_function budget was spent loading QuickJS. On a busy CI
runner that load took longer than the budget, so an SSRF block and a
fetch cap came back as timeouts before the function ran.

Co-authored-by: Kelly Peilin Chan <[email protected]>
…ady"

This reverts commit e5ef106.

Keep the existing sandbox deadline contract in this navigation change. CI
headroom for behavior checks remains in their test fixtures, while dedicated
timeout checks retain their original deadlines.
@mr-kelly
mr-kelly marked this pull request as ready for review November 20, 2026 05:18
@mr-kelly
mr-kelly merged commit 4e8a298 into main Nov 20, 2026
10 checks passed
@mr-kelly
mr-kelly deleted the cursor/breadcrumb-folder-path-7823 branch November 20, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard: breadcrumb should show the full folder path, not just Workspace > node

2 participants