feat(apollo-react): add ProbeCard and Node Flyout Probe story section#787
Open
1980computer wants to merge 2 commits into
Open
feat(apollo-react): add ProbeCard and Node Flyout Probe story section#7871980computer wants to merge 2 commits into
1980computer wants to merge 2 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Dependency License Review
License distribution
Excluded packages
|
c237d9c to
6150e02
Compare
6150e02 to
168deac
Compare
a5a702b to
cbb1983
Compare
168deac to
9d31b2f
Compare
There was a problem hiding this comment.
Pull request overview
Adds a new reusable ProbeCard canvas debug component to apollo-react and introduces a dedicated Storybook section demonstrating “Node Flyout Probe” behavior (overview + interactive scenarios), along with minor Storybook IA title/sort adjustments.
Changes:
- Added
ProbeCard(drag, resize, watch list rendering, keyboard shortcuts, wheel forwarding hooks) and supporting hooks/utilities. - Added “Node Flyout Probe” Storybook section with Overview/Default/Empty/Iteration-control stories using a real
BaseCanvas. - Updated existing panel story titles and Storybook
storySortordering to include the new section.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/apollo-react/src/canvas/components/ProbeCard/useLatestRef.ts | New helper hook for keeping latest values in refs. |
| packages/apollo-react/src/canvas/components/ProbeCard/useDragSession.ts | New hook to manage window-level mouse drag sessions for drag/resize interactions. |
| packages/apollo-react/src/canvas/components/ProbeCard/ProbeResizeHandles.tsx | New resize handle UI + edge metadata for resizing behavior. |
| packages/apollo-react/src/canvas/components/ProbeCard/ProbeCard.tsx | New ProbeCard component implementation (watch list UI, keyboard + wheel handling, drag/resize wiring). |
| packages/apollo-react/src/canvas/components/ProbeCard/index.ts | Public barrel exports for ProbeCard + related types. |
| packages/apollo-react/src/canvas/components/NodePropertiesPanel/NodePropertiesPanel.stories.tsx | Story title updated to Canvas/... path. |
| packages/apollo-react/src/canvas/components/NodePropertiesPanel/NodeFlyoutProbe.stories.tsx | New “Node Flyout Probe” story section showcasing ProbeCard integration. |
| packages/apollo-react/src/canvas/components/index.ts | Re-exported ProbeCard from the canvas components barrel. |
| packages/apollo-react/src/canvas/components/CollapseConfig/CollapseConfig.stories.tsx | Story title updated to Canvas/... path. |
| apps/storybook/.storybook/preview.tsx | Story sort updated to include “Node Flyout Probe” ordering under Panels. |
9d31b2f to
c103a73
Compare
c103a73 to
65723ea
Compare
65723ea to
0ac13e6
Compare
0ac13e6 to
1ddfe03
Compare
1ddfe03 to
05223f4
Compare
05223f4 to
451e085
Compare
Extracts the Probe debug card from flow-workbench into a reusable apollo-react canvas component. ProbeCard is a fully controlled, floating debug card that anchors to a canvas node via a dashed connector. It exposes watch expressions with type-coloured value trees, an iteration cycler for loop nodes, and drag/resize/keyboard interactions. Architecture: - UI-only — callers own position, size, watch list, and persistence - Fully controlled via callbacks (onDrag, onResize, onAddWatch, etc.) - Canvas pan/zoom forwarding via onCanvasPan / onCanvasZoom - All chrome uses Apollo semantic tokens (surface-raised, border-subtle, foreground-muted, foreground-accent, etc.) - Memoised to skip re-renders when only the viewport pans/zooms Exports from @uipath/apollo-react/canvas: ProbeCard, ProbeCardProps, WatchResult, IterationControl, ResizeEdges Story added to Canvas > Components > Panels > Node Flyout Panel > Probe: - Real BaseCanvas with a uipath.agent anchor node - ProbeOverlay child component reads node position + viewport transform from the ReactFlow store so the card and connector track correctly during pan and zoom - "Add probe" button simulates the context-menu trigger Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ction - ProbeCard: add Escape to dismiss, ArrowUp/Down to navigate between watch expression inputs (capture phase, consistent with existing Delete handler) - NodeFlyoutProbe.stories.tsx: new standalone story file with four exports — Overview (doc-layout: anatomy, consumer contract table, usage snippet), Default, Empty state, Iteration control - NodePropertiesPanel.stories.tsx: remove Probe stories now in dedicated file - preview.tsx: add Node Flyout Probe to storySort after Node Flyout Panel Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
451e085 to
201f790
Compare
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
Extracts the
ProbeCarddebug component from flow-workbench into a reusableapollo-reactcanvas component, and introduces a dedicated Node Flyout Probe story section with full documentation.ProbeCard component
A fully controlled, floating debug card that anchors to a canvas node via a dashed SVG connector.
IterationControlprop)Exports from
@uipath/apollo-react/canvas:Node Flyout Probe story section
Standalone story section (
Canvas > Components > Panels > Node Flyout Probe) with four entries:All interactive stories use a real
BaseCanvaswith auipath.agentanchor node. TheProbeOverlayinner component reads live node position and viewport transform from the ReactFlow store so the card and connector track correctly during pan and zoom.Depends on
Test plan
🤖 Generated with Claude Code