feat(entities-plugins): group datakit node types in node selection panel#3035
Merged
feat(entities-plugins): group datakit node types in node selection panel#3035
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Datakit flow editor node selection panel to group config node types into labeled sections, improving scanability and navigation in the side panel.
Changes:
- Adds localized group labels for the node selection panel.
- Introduces new typing for config node groups and group metadata, and exposes grouped node lists for rendering.
- Updates the node panel UI to render grouped sections and adjusts spacing in the side panel.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/entities/entities-plugins/src/locales/en.json | Adds localized titles for node panel grouping. |
| packages/entities/entities-plugins/src/components/free-form/Datakit/types.ts | Introduces ConfigNodeGroup and related group/meta types; factors out NodeColors. |
| packages/entities/entities-plugins/src/components/free-form/Datakit/flow-editor/side-panel/SidePanel.vue | Adds spacing for the node panel when displayed in the side panel. |
| packages/entities/entities-plugins/src/components/free-form/Datakit/flow-editor/side-panel/NodePanel.vue | Renders node types grouped into sections with group headings. |
| packages/entities/entities-plugins/src/components/free-form/Datakit/flow-editor/node/node.ts | Builds grouped catalog/meta structures and adds helpers for group meta + visuals. |
| packages/entities/entities-plugins/src/components/free-form/Datakit/flow-editor/node/node-visual.ts | Refactors config node visuals into icon map + group color map. |
| packages/entities/entities-plugins/src/components/free-form/Datakit/flow-editor/node/NodePanelItem.vue | Pulls item colors from the node’s group meta instead of per-node meta. |
| packages/entities/entities-plugins/src/components/free-form/Datakit/flow-editor/node/NodeBadge.vue | Switches badge visuals to use getNodeVisual (so config nodes can use group colors). |
| packages/entities/entities-plugins/src/components/free-form/Datakit/flow-editor/node/FlowNode.vue | Uses localized node type name for tooltip text. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...s/entities/entities-plugins/src/components/free-form/Datakit/flow-editor/node/node-visual.ts
Outdated
Show resolved
Hide resolved
...ities/entities-plugins/src/components/free-form/Datakit/flow-editor/side-panel/NodePanel.vue
Show resolved
Hide resolved
ef32075 to
5d24416
Compare
hangrao
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Before
After