Commit ead881c
authored
Add subgraph navigation with double-click and auto-fit view (#1019)
## Description
Added support for subgraph node navigation by implementing double-click functionality on subgraph nodes. When a user double-clicks on a subgraph node, they will be navigated to that subgraph. Additionally, modified the TaskConfiguration component to handle subgraph nodes differently by:
1. Adding an `isSubgraphNode` prop to TaskConfiguration
2. Setting "details" as the default tab for subgraph nodes instead of "io"
3. Adding a visual cursor pointer indicator for subgraph nodes
Also implemented automatic view fitting when navigating between subgraphs, which ensures the graph is properly centered and zoomed after navigation.
## Type of Change
- [x] New feature
- [x] Improvement
## Checklist
- [x] I have tested this does not break current pipelines / runs functionality
- [x] I have tested the changes on staging
## Test Instructions
1. Create a pipeline with a subgraph node
2. Run the pipeline
3. Double-click on the subgraph node to navigate to the subgraph
4. Verify that the subgraph node shows the details tab by default
5. Confirm the cursor changes to a pointer when hovering over subgraph nodes
6. Navigate between subgraphs and verify the view automatically fits to show all nodes1 parent 16b2ef7 commit ead881c
3 files changed
+27
-5
lines changedLines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
766 | 773 | | |
767 | 774 | | |
768 | 775 | | |
769 | 776 | | |
770 | 777 | | |
771 | 778 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
777 | 782 | | |
778 | 783 | | |
779 | 784 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
| 210 | + | |
204 | 211 | | |
205 | 212 | | |
206 | 213 | | |
207 | 214 | | |
208 | 215 | | |
209 | 216 | | |
210 | 217 | | |
| 218 | + | |
211 | 219 | | |
212 | 220 | | |
213 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
52 | 61 | | |
53 | 62 | | |
54 | 63 | | |
| |||
0 commit comments