-
Notifications
You must be signed in to change notification settings - Fork 16
feat: remove additionalNodesProps #2941
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
Conversation
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.
Pull Request Overview
This PR removes the additionalNodesProps
pattern from the codebase to simplify developer UI links functionality. The change eliminates the abstraction layer for handling node references and instead uses the new useNodeDeveloperUIHref
hook directly in components that need developer UI links.
Key changes:
- Removed
AdditionalNodesProps
type and related functions - Replaced
useAdditionalNodesProps
hook with direct usage ofuseNodeDeveloperUIHref
- Updated all components to no longer pass or use
additionalNodesProps
Reviewed Changes
Copilot reviewed 33 out of 33 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
src/utils/hooks/useNodeDeveloperUIHref.ts |
Updated to handle node developer UI logic directly instead of using additional props |
src/utils/hooks/useAdditionalNodesProps.ts |
Completely removed - no longer needed |
src/utils/additionalProps.ts |
Removed getAdditionalNodesProps function and related types |
src/types/additionalProps.ts |
Removed AdditionalNodesProps and GetNodeRefFunc type definitions |
Multiple component files | Removed additionalNodesProps parameters and usage throughout the component hierarchy |
src/components/NodeHostWrapper/NodeHostWrapper.tsx |
Simplified to use useNodeDeveloperUIHref hook directly |
src/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.tsx |
Updated to use the hook instead of passed props |
} | ||
|
||
if (isUserAllowedToMakeChanges && nodeHref) { | ||
if (developerUIInternalHref) { |
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.
We now check isUserAllowedToMakeChanges
inside useNodeDeveloperUIHref
8a0d265
to
0be0a7e
Compare
It's needed to simplify work for developer ui links fix (#2919)
Part of #2137
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ⏭️2
⏭️ Skipped Tests (2)
Bundle Size: 🔽
Current: 85.60 MB | Main: 85.61 MB
Diff: 8.85 KB (-0.01%)
✅ Bundle size decreased.
ℹ️ CI Information