-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Enabled toggling the visibility of Table Nodes from the Left Pane #253
Conversation
|
</div> | ||
<TableDetailDrawerRoot> | ||
<ReactFlowProvider> | ||
<ReactFlowProvider> |
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.
The ReactFlowProvider has been moved out of the LeftPane to retrieve ReactFlow information from the LeftPane.
const nodes = useNodes() | ||
const tableNodes = useMemo(() => nodes.filter(isTableNode), [nodes]) |
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.
The hidden
data is contained in the node type, but it can only be retrieved from useNodes.
ref: https://reactflow.dev/api-reference/types/node#hidden
Therefore, the data displayed in the LeftPane has been changed via useNodes()
.
)} | ||
{...props} | ||
/> | ||
) |
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.
The styling of the SidebarMenuAction component in shadcn has now been implemented.
It is useful to have showOnHover props available 👍🏻
https://ui.shadcn.com/docs/components/sidebar#sidebarmenuaction
…ityButton component
92f4f56
to
8ed7b59
Compare
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.
Both the implementation and behavior seemed good! 🎉
2024-12-13.19.51.15.mov
Currently, a fitView is executed when a Table node is returned from hidden to visible. This will be fixed in another PR.