Skip to content

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Sep 30, 2025

It's needed to simplify work for developer ui links fix (#2919)

Part of #2137

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
378 372 0 4 2
Test Changes Summary ⏭️2

⏭️ Skipped Tests (2)

  1. Scroll to row, get shareable link, navigate to URL and verify row is scrolled into view (tenant/diagnostics/tabs/queries.test.ts)
  2. Copy result button copies to clipboard (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: 🔽

Current: 85.60 MB | Main: 85.61 MB
Diff: 8.85 KB (-0.01%)

✅ Bundle size decreased.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

Copy link
Contributor

@Copilot Copilot AI left a 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 of useNodeDeveloperUIHref
  • 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) {
Copy link
Member Author

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

@artemmufazalov artemmufazalov force-pushed the remove-additional-nodes-props branch from 8a0d265 to 0be0a7e Compare September 30, 2025 13:28
@artemmufazalov artemmufazalov marked this pull request as ready for review September 30, 2025 13:30
@artemmufazalov artemmufazalov added this pull request to the merge queue Oct 1, 2025
Merged via the queue into main with commit d8d0954 Oct 1, 2025
7 checks passed
@artemmufazalov artemmufazalov deleted the remove-additional-nodes-props branch October 1, 2025 08:12
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.

2 participants