Skip to content

feat/COMPASS-9696 Add actions prop to node, shown in the header #118

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

Merged
merged 4 commits into from
Aug 21, 2025

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Aug 18, 2025

External Links

Description

Adds an actions prop to the NodeProps interface. This will be used for showing the + icon for adding a field in Compass' data modeling.

📸 Screenshots/Screencasts

Screenshot 2025-08-18 at 1 32 59 AM

@@ -183,6 +183,7 @@ export const Node = ({
<Icon fill={theme.node.headerIcon} glyph="Drag" />
</NodeHeaderIcon>
<NodeHeaderTitle>{title}</NodeHeaderTitle>
{actions}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Small suggestion, can we wrap this in a <div> with margin-left: 'auto' since the actions will always be hugging the right of the header?

Copy link
Member Author

Choose a reason for hiding this comment

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

In case we want to add a badge next to the text I was thinking leaving that up to the consumer may give more flexibility. With that considered though actions might not be the best name, can't think of much better of one though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Merged it in, happy to change in a follow up pr if you'd like it that way! let me know.

@Anemy Anemy merged commit 3288564 into main Aug 21, 2025
5 checks passed
@Anemy Anemy deleted the feat/COMPASS-9696-add-actions-prop-for-node-toolbar branch August 21, 2025 02:30
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