Skip to content

Conversation

@JammingBen
Copy link
Contributor

fixes #1436 (and a flaky unit test).

@JammingBen JammingBen self-assigned this Oct 27, 2025
Copilot AI review requested due to automatic review settings October 27, 2025 09:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a breadcrumb display issue on tablet-sized screens where the first breadcrumb item was not being shown. The fix ensures that breadcrumbs are displayed correctly when only a single item is present, and updates the layout logic to handle single vs. multiple breadcrumb items appropriately.

Key changes:

  • Modified the breadcrumb component to display single breadcrumb items on mobile/tablet screens
  • Refactored the General.vue component from Options API to Composition API with <script setup>
  • Fixed a flaky unit test by adding missing mock stubs

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.vue Changed visibility condition from length > 1 to length and made justify-center conditional on having multiple items
packages/design-system/src/components/OcBreadcrumb/OcBreadcrumb.spec.ts Removed test case for single breadcrumb item not showing, as it now should be displayed
packages/design-system/src/components/OcBreadcrumb/__snapshots__/OcBreadcrumb.spec.ts.snap Updated snapshots to reflect class order change with conditional justify-center
packages/web-app-admin-settings/src/views/General.vue Refactored from Options API to Composition API, removed parent breadcrumb and inlined breadcrumb definition
packages/web-app-admin-settings/tests/unit/views/__snapshots__/General.spec.ts.snap Updated snapshot reflecting single breadcrumb item instead of two
packages/web-app-files/tests/unit/components/Spaces/SpaceHeader.spec.ts Added TextEditor mock and stub to fix flaky test

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JammingBen JammingBen force-pushed the fix/missing-first-breadcrumb branch 2 times, most recently from c719dd3 to ec66d34 Compare October 28, 2025 15:05
@kulmann kulmann force-pushed the fix/missing-first-breadcrumb branch from ec66d34 to 0343689 Compare November 3, 2025 12:21
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

👌

@kulmann kulmann merged commit 0982547 into main Nov 3, 2025
28 checks passed
@kulmann kulmann deleted the fix/missing-first-breadcrumb branch November 3, 2025 12:36
openclouders pushed a commit that referenced this pull request Nov 3, 2025
fix: add missing first breadcrumb on table size screens
@openclouders openclouders mentioned this pull request Nov 3, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Personal breadcrumb item is missing

3 participants