-
Notifications
You must be signed in to change notification settings - Fork 202
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
[GEN-1710]: add scroll to overview sources #1978
Conversation
frontend/webapp/reuseable-components/nodes-data-flow/nodes/scroll-node.tsx
Show resolved
Hide resolved
@@ -86,7 +84,7 @@ const HeaderNode: React.FC<Props> = ({ nodeWidth, data }) => { | |||
}; | |||
|
|||
return ( | |||
<Container $nodeWidth={nodeWidth + extraWidth}> | |||
<Container $nodeWidth={nodeWidth} className='nowheel nodrag'> |
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.
what is the use of this?
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.
This are classes provided by React-Flow, which prevent their internal drag/scroll behavior, applying them allows us to control scroll etc.
This pull request introduces several updates to the frontend web application, primarily focused on refactoring components and adding new functionalities to the overview data flow. The key changes include converting components to named exports, building nodes for various entity types, and constructing edges for data flow visualization.
Component Refactoring:
frontend/webapp/containers/main/overview/multi-source-control/index.tsx
: ConvertedMultiSourceControl
to a named export. [1] [2]frontend/webapp/containers/main/overview/overview-actions-menu/index.tsx
: ConvertedOverviewActionsMenu
to a named export. [1] [2]Node Building for Overview Data Flow:
frontend/webapp/containers/main/overview/overview-data-flow/build-action-nodes.ts
: Added functionality to build nodes for actions in the overview data flow.frontend/webapp/containers/main/overview/overview-data-flow/build-destination-nodes.ts
: Added functionality to build nodes for destinations in the overview data flow.frontend/webapp/containers/main/overview/overview-data-flow/build-rule-nodes.ts
: Added functionality to build nodes for instrumentation rules in the overview data flow.frontend/webapp/containers/main/overview/overview-data-flow/build-source-nodes.ts
: Added functionality to build nodes for sources in the overview data flow.Edge Building for Data Flow:
frontend/webapp/containers/main/overview/overview-data-flow/build-edges.ts
: Added functionality to build edges for connecting nodes in the overview data flow.Utility Functions:
frontend/webapp/containers/main/overview/overview-data-flow/get-entity-counts.ts
: Added a utility function to get entity counts for different types in the overview data flow.frontend/webapp/containers/main/overview/overview-data-flow/get-node-positions.ts
: Added a utility function to calculate node positions based on container width.