-
Notifications
You must be signed in to change notification settings - Fork 25
fix: add missing first breadcrumb on table size screens #1437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
c719dd3 to
ec66d34
Compare
ec66d34 to
0343689
Compare
kulmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
fix: add missing first breadcrumb on table size screens
fixes #1436 (and a flaky unit test).