Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

gribnoysup
Copy link
Contributor

External Links

Description

Adds a new toggle to the note title to allow for expand collapse all behavior

Notes for Reviewers

This doesn't include isExpanded argument in the event callback that was mentioned in the tech design as there doesn't seem to be a reason to provide it: we will be controlling the expanded state from the consumer side, we can pass it down so that the diagram package can return it back to us, but this feels redundant and passing this value through the whole package is a lot of work, so I omitted it

📸 Screenshots/Screencasts

image

@paula-stacho
Copy link
Collaborator

paula-stacho commented Oct 14, 2025

Ah, I had an implicit assumption that we'll be flipping the icon based on the state, but it's true that the designs don't mention this explicitly. Looking at other cases in Compass, we have this icon in the connections sidebar but there it's only doing a collapse all. We have a collapse/expand in the CRUD view and that one is flipping, but it's a single arrow.

@paula-stacho
Copy link
Collaborator

Can we also add this to the DiagramWithEditInteractions story?

@gribnoysup
Copy link
Contributor Author

gribnoysup commented Oct 14, 2025

Yeah, I guess it's closer to the sidebar collapse button (and the icon is the same) so no flippage needed! 🙂

Can we also add this to the DiagramWithEditInteractions story?

Sure, will do

@paula-stacho
Copy link
Collaborator

Yeah, I guess it's closer to the sidebar collapse button (and the icon is the same) so no flippage needed! 🙂

But that one is actually not a toggle, it only does collapse

@gribnoysup
Copy link
Contributor Author

I mean the icon, there's no way to flip it, right?

@gribnoysup
Copy link
Contributor Author

Updated the storybook story to support the new toggle

@gribnoysup gribnoysup merged commit d33fe5e into main Oct 15, 2025
5 checks passed
@gribnoysup gribnoysup deleted the COMPASS-9504 branch October 15, 2025 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.