Skip to content

Show vault breadcrumb icons from breadcrumb item props - #3367

Merged
AlexAndBear merged 5 commits into
mainfrom
feat/vault-breadcrumb-icons-3325
Sep 15, 2026
Merged

AlexAndBear merged 5 commits into
mainfrom
feat/vault-breadcrumb-icons-3325

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Render breadcrumb item icons from OcBreadcrumb items prop for links, buttons, static labels, and the truncation menu.
  • Keep vault icon rendering in files breadcrumbs scoped to vault resources via vault claim root matching.
  • Preserve icon when the last breadcrumb is converted to a click action via concatBreadcrumbs.

Related Issue

How Has This Been Tested?

  • test environment: local macOS workspace with pnpm + Vitest
  • test case 1: pnpm test:unit --run packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.spec.ts
  • test case 2: pnpm test:unit --run packages/web-app-files/tests/unit/views/spaces/GenericSpace.spec.ts
  • test case 3: pnpm test:unit --run packages/web-pkg/tests/unit/composables/breadcrumbs/useBreadcrumbsFromPath.spec.ts packages/web-pkg/tests/unit/helpers/breadcrumbs.spec.ts
  • test case 4: pnpm eslint packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.vue packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.spec.ts packages/web-app-files/src/views/spaces/GenericSpace.vue packages/web-app-files/tests/unit/views/spaces/GenericSpace.spec.ts packages/web-pkg/src/composables/breadcrumbs/useBreadcrumbsFromPath.ts packages/web-pkg/src/helpers/breadcrumbs.ts packages/web-pkg/tests/unit/composables/breadcrumbs/useBreadcrumbsFromPath.spec.ts packages/web-pkg/tests/unit/helpers/breadcrumbs.spec.ts

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the icon is missing in the mobile breadcrumbs.

@AlexAndBear
AlexAndBear merged commit 69ea54c into main Sep 15, 2026
31 checks passed
@AlexAndBear
AlexAndBear deleted the feat/vault-breadcrumb-icons-3325 branch September 15, 2026 08:43
@openclouders openclouders mentioned this pull request Sep 15, 2026
1 task
openclouders pushed a commit that referenced this pull request Sep 15, 2026
* feat(files): show vault icons in breadcrumbs from item props

* format

* add to mobile breadcrumb

* add accessible label

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show that a vault is a special folder / has limited capabilities

3 participants