Skip to content

Conversation

paula-stacho
Copy link
Collaborator

@paula-stacho paula-stacho commented Sep 23, 2025

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.

Screenshot 2025-09-23 at 11 42 37

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@paula-stacho paula-stacho requested a review from a team as a code owner September 23, 2025 09:36
@paula-stacho paula-stacho requested review from Copilot and ivandevp and removed request for Copilot September 23, 2025 09:36
@paula-stacho paula-stacho added the feature flagged PRs labeled with this label will not be included in the release notes of the next release label Sep 23, 2025
@github-actions github-actions bot added the feat label Sep 23, 2025
@Copilot Copilot AI review requested due to automatic review settings September 23, 2025 09:41
Copy link
Contributor

@Copilot 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 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.

@paula-stacho paula-stacho self-assigned this Sep 23, 2025
Copy link
Member

@Anemy Anemy left a 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
Copy link
Member

Choose a reason for hiding this comment

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

A styling question, I'm finding the darkmode a bit dark for the last item. Does it look dark to you? Maybe we could ask design about a lighter text color there.
Not a blocker, it's something that's already impacting the other breadcrumbs, and it's also a small change if we ever want to.

Image Image

Copy link
Collaborator Author

@paula-stacho paula-stacho Sep 24, 2025

Choose a reason for hiding this comment

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

Hmm, it does looks dark 🤔 According to devtools the contrast ratio is above 5, and given that we're generally trying to avoid high contrast, it should be okay.
Screenshot 2025-09-24 at 10 51 47

@paula-stacho paula-stacho merged commit 55c1d2e into main Sep 24, 2025
106 of 108 checks passed
@paula-stacho paula-stacho deleted the COMPASS-9800 branch September 24, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat feature flagged PRs labeled with this label will not be included in the release notes of the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants