Skip to content

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

Closed

Description

@nicklaunches

Problem

The dashboard header breadcrumb only ever shows Workspace > <node name>, however deep the node sits. For a Base at /dashboard/local/base/personal-tasks it reads Workspace > Tasks, and a Doc three folders down reads the same way: Workspace > <doc>. The folders in between are missing, so the header does not tell you where you are.

The sidebar does expand and focus the open item, which helps, but in a deeply nested tree that means scanning an indented list (often scrolled) to work out the path. Two nodes with the same name in different folders (every project has its own Tasks Base, for example) look identical in the header.

The cause is the breadcrumb model in packages/openlib/ui/dashboard/hooks/useSPABreadcrumb.ts: BreadcrumbState holds a parent string, one optional intermediate link and the title, so it can never render more than three crumbs, and the routes in packages/busabase-core/src/domains/dashboard/routes.tsx only feed it the node type label and the node name.

Proposal

Render the node's real ancestor path from the node tree:

Workspace > Projects > Acme > Tasks > Board
  • Each ancestor folder is a link that opens that folder (same as clicking it in the sidebar).
  • The last crumb is the open node; when a saved view is open (/base/<slug>/<view>), the view name is a final crumb after the Base.
  • When the path is long, keep the first crumb and the last two, and collapse the middle into a ... menu listing the hidden folders, so the header stays one line on narrow screens.
  • Truncate long names per crumb with the full name in a tooltip, instead of the current 40-character cut on the title only.

Model change: replace parent and intermediate with an ordered list, e.g. crumbs: { label: string; href: string | null }[], built from the node's ancestors (the tree data the sidebar already loads), with the existing parent and intermediate kept as a fallback for non-node routes like Search and Home.

Acceptance

  • A node N levels deep shows all N ancestors (or the collapsed form) in the header, each clickable.
  • Two same-named nodes in different folders are distinguishable from the header alone.
  • Base views show the view name as the last crumb.
  • No layout shift or wrapping at 360px width.

Activity

  1. mr-kelly commented on Nov 17, 2026

    @mr-kelly
    Contributor

    Thanks for the detailed report, and sorry this sat unanswered.

    I checked current main (commit dc049a5). This is not implemented yet. getNodeDetailBreadcrumbItems in packages/busabase-core/src/domains/dashboard/helpers/breadcrumbs.ts still returns only Workspace and the current node name. The Base record/view trails in packages/busabase-core/src/domains/dashboard/index.tsx are also Workspace > Base > …, with no ancestor folders. BreadcrumbState in packages/openlib/ui/dashboard/hooks/useSPABreadcrumb.ts still only has parent plus one optional intermediate.

    We've logged this as a feature request. I don't have a release date to share yet. We'll update the issue if the full folder path lands in a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions