-
Notifications
You must be signed in to change notification settings - Fork 238
feat: add diagram breadcrumbs COMPASS-9800 #7358
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 adds diagram breadcrumbs functionality to the data modeling editor toolbar, allowing users to navigate back to the diagrams list from within a diagram.
Key changes:
- Added breadcrumb navigation with "diagrams" and current diagram name
- Updated the Breadcrumbs component to support non-clickable last items
- Added corresponding test coverage for the new breadcrumb functionality
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
diagram-editor-toolbar.tsx | Added breadcrumb navigation with workspace integration and UI layout updates |
diagram-editor-toolbar.spec.tsx | Added test coverage for breadcrumb functionality and workspace service mocking |
breadcrumb.tsx | Enhanced Breadcrumbs component to support non-clickable final breadcrumb items |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
packages/compass-data-modeling/src/components/diagram-editor-toolbar.tsx
Show resolved
Hide resolved
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.
lgtm! Left one comment, not a blocker
key={[items.length - 1, lastItem.name].join('')} | ||
className={cx( | ||
textStyles, | ||
darkMode ? lastItemStylesDark : lastItemStylesLight |
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.
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.
Description
Adding breadcrumbs, for now just the diagram list > diagram name.
Side change: Breadcrumbs was expecting each item to have an onClick, even though the last item is not clickable. Now it's optional.
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes