Repository navigation
feat(designer-v2): add shared monitoring UI, failed-iteration navigation, and built-in glyphs - #9742
Conversation
…eration pager Add MonitoringPayloadComparison with responsive side-by-side and stacked inputs/outputs layout, extend NodeIterationPager with failed-iteration destination selection and grouped submenus, and update Storybook inventory and unit tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…repetition handling Wire the shared monitoring Inputs/Outputs comparison, failed-iteration loop pager, panel header and action picker built-in glyphs, and scoped duplicate transaction handling behind the default-off useSharedNodeUi flag. Fix nested loop repetition index reset/clamping, empty loop query suppression, inline repetition I/O preservation, and condition output cache invalidation on refreshed loop links. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add and update Standalone Playwright specs covering shared node UI authoring/monitoring parity, connection geometry, simulated runs, and failed-iteration pager navigation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | No change required; it is specific and descriptive. |
| Commit Type | ✅ | Keep only feature selected. |
| Risk Level | Consider changing the body and label from Medium to High based on the broad shared-state and UI impact. | |
| What & Why | ✅ | Complete and well supported by the diff. |
| Impact of Change | ✅ | All required impact categories are covered. |
| Test Plan | ✅ | Unit, E2E, and manual testing are documented and represented in the diff. |
| Contributors | Consider adding PM, designer, or reviewer credits where applicable. | |
| Screenshots/Videos | ✅ | Appropriate visual evidence is included. |
The PR title and body pass the required compliance checks. Please review the risk assessment: the diff-based advised risk is High, so update the risk checkbox and risk:medium label to risk:high if the broader shared-state and middleware impact is accepted.
Powered by: Logic App (fallback) | Last updated: Wed, 25 Nov 2026 07:16:52 GMT
…hared TS Avoid importing compose.ts directly in Playwright tests because its transitive logic-apps-shared imports contain TypeScript parameter properties that fail under Node 22 strip-only execution in CI. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Unrelated edits during asynchronous duplication can corrupt undo checkpoints, while navigating to a loop’s sole failed iteration can disable compact pagination and reintroduce overflow.
2 open issues
What changed in this PR
Extends designer-v2’s default-off useSharedNodeUi experience with consistent built-in glyphs, responsive monitoring panels, and direct navigation to failed loop iterations.
Changes:
- Adds shared monitoring layouts and compact failed-iteration controls.
- Integrates built-in glyphs across canvas cards, recommendations, and details headers.
- Strengthens repetition-data isolation and duplicate undo grouping, with unit tests, browser tests, localization, and documentation.
| File | Description |
|---|---|
| Localize/lang/strings.json | Adds localized failed-iteration labels. |
| libs/designer-v2/src/lib/ui/sharedNodeGlyph.tsx | Resolves shared built-in operation glyphs. |
| libs/designer-v2/src/lib/ui/panel/recommendation/searchView.tsx | Enables shared glyphs in search results. |
| libs/designer-v2/src/lib/ui/panel/recommendation/helpers.ts | Adds optional glyphs to operation card data. |
| libs/designer-v2/src/lib/ui/panel/recommendation/details/operationsAccordion.tsx | Adds shared glyphs to suggested triggers. |
| libs/designer-v2/src/lib/ui/panel/recommendation/details/connectorDetailsView.tsx | Adds shared glyphs to connector operations. |
| libs/designer-v2/src/lib/ui/panel/recommendation/categories/Favorites.tsx | Applies shared glyphs to favorite operations. |
| libs/designer-v2/src/lib/ui/panel/recommendation/browse/mcpServersBrowse.tsx | Adapts mapping to the updated helper signature. |
| libs/designer-v2/src/lib/ui/panel/recommendation/__test__/searchView.spec.tsx | Tests glyph gating and unchanged MCP artwork. |
| libs/designer-v2/src/lib/ui/panel/recommendation/__test__/recommendationPanelContext.spec.tsx | Updates feature-flag mocks. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/useRawInputsOutputs.ts | Isolates repetition payloads and preserves inline data. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/usePanelNodeData.ts | Supplies shared details-header glyphs. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/tabs/monitoringTab/monitoringTab.tsx | Integrates responsive comparison and guarded binding. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/tabs/monitoringTab/__test__/monitoringTab.spec.tsx | Tests legacy and shared monitoring composition. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/PanelLoopRunData.tsx | Loads repetition data for open details panes. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/nodeDetailsPanel.tsx | Mounts pane-specific repetition observers. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/__test__/usePanelNodeData.spec.tsx | Tests header glyph selection and fallback. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/__test__/repetitionMonitoring.spec.tsx | Tests repetition isolation, caching, and pane lifecycles. |
| libs/designer-v2/src/lib/ui/panel/nodeDetailsPanel/__test__/nodeDetailsPanel.spec.tsx | Mocks the new repetition observer. |
| libs/designer-v2/src/lib/ui/CustomNodes/ScopeCardNode.tsx | Uses selected repetition data and shared pagers. |
| libs/designer-v2/src/lib/ui/CustomNodes/OperationCardNode.tsx | Synchronizes cards with selected repetition payloads. |
| libs/designer-v2/src/lib/ui/CustomNodes/components/card/SharedFamilyCards.tsx | Reuses control glyphs in shared cards. |
| libs/designer-v2/src/lib/ui/CustomNodes/components/card/operationNodeGlyphs.tsx | Defines control and additional inline-code glyphs. |
| libs/designer-v2/src/lib/ui/CustomNodes/__test__/ScopeCardNode.spec.tsx | Updates repetition-selection mocks. |
| libs/designer-v2/src/lib/ui/CustomNodes/__test__/OperationCardNode.spec.tsx | Tests page changes with identical tracking IDs. |
| libs/designer-v2/src/lib/ui/common/LoopsPager/SharedLoopsPager.tsx | Supplies failed destinations and localized pager strings. |
| libs/designer-v2/src/lib/ui/common/LoopsPager/__test__/sharedLoopsPager.spec.tsx | Tests failure navigation and eligibility guards. |
| libs/designer-v2/src/lib/ui/__test__/sharedNodeGlyph.spec.tsx | Tests built-in identity matching and artwork fallback. |
| libs/designer-v2/src/lib/core/utils/middleware.ts | Skips checkpoints for transaction-owned pastes. |
| libs/designer-v2/src/lib/core/utils/loopRepetitions.ts | Computes bounded nested-loop repetition identities. |
| libs/designer-v2/src/lib/core/state/workflow/workflowSlice.ts | Guards repetition updates and resets descendant indices. |
| libs/designer-v2/src/lib/core/state/workflow/workflowSelectors.ts | Hides data from unselected repetitions. |
| libs/designer-v2/src/lib/core/state/workflow/workflowInterfaces.ts | Adds repetition identity and payload metadata. |
| libs/designer-v2/src/lib/core/state/undoRedo/undoRedoTypes.ts | Adds active transaction tracking. |
| libs/designer-v2/src/lib/core/state/undoRedo/undoRedoSlice.ts | Adds transaction begin/end actions. |
| libs/designer-v2/src/lib/core/state/undoRedo/undoRedoSelectors.ts | Disables undo/redo during transactions. |
| libs/designer-v2/src/lib/core/queries/runs.ts | Tracks payload revisions and invalidates condition caches. |
| libs/designer-v2/src/lib/core/queries/__test__/runs.spec.ts | Tests condition-output refresh by revision. |
| libs/designer-v2/src/lib/core/hooks/useLoopRepetitionAdmission.ts | Applies current repetition responses to workflow state. |
| libs/designer-v2/src/lib/core/graphlayout/__test__/branchAxis.spec.tsx | Tests compound placement and containment. |
| libs/designer-v2/src/lib/core/actions/bjsworkflow/undoRedo.ts | Guards undo/redo execution during transactions. |
| libs/designer-v2/src/lib/core/actions/bjsworkflow/monitoring.ts | Carries repetition identity through payload binding. |
| libs/designer-v2/src/lib/core/actions/bjsworkflow/copypaste.ts | Groups shared Duplicate operations under one checkpoint. |
| libs/designer-v2/src/lib/core/actions/bjsworkflow/__test__/duplicateScopedRunAfter.spec.ts | Tests scope duplication, dependencies, and undo grouping. |
| libs/designer-ui/src/lib/panel/types.ts | Adds an optional operation header icon. |
| libs/designer-ui/src/lib/panel/recommendationpanel/recommendationPanelCard/index.tsx | Renders host-provided operation icons. |
| libs/designer-ui/src/lib/panel/recommendationpanel/recommendationPanelCard/__test__/recommendationPanelCard.spec.tsx | Tests the operation icon slot. |
| libs/designer-ui/src/lib/panel/recommendationpanel/operationGroupDetails/searchResult/searchResultV2.tsx | Adds icon rendering and list invalidation. |
| libs/designer-ui/src/lib/panel/recommendationpanel/interfaces.ts | Adds optional operation card icons. |
| libs/designer-ui/src/lib/panel/panelheader/panelheader.tsx | Renders operation icons with loading/error fallbacks. |
| libs/designer-ui/src/lib/panel/panelheader/__test__/panelheader.spec.tsx | Tests header icon visibility. |
| libs/designer-ui/src/lib/panel/panelcontainer.tsx | Adds observers scoped to rendered panes. |
| libs/designer-ui/src/lib/panel/__test__/panelcontainer.spec.tsx | Tests icon ownership across pane selections. |
| libs/designer-ui-v2/stories/MonitoringPayloadComparison.stories.tsx | Demonstrates resizing and focus preservation. |
| libs/designer-ui-v2/stories/Introduction.mdx | Updates the visual export count. |
| libs/designer-ui-v2/src/nodes/strings.ts | Adds optional failed-destination strings. |
| libs/designer-ui-v2/src/nodes/primitives/NodeIterationPager.tsx | Adds direct selection and compact failure menus. |
| libs/designer-ui-v2/src/nodes/__test__/monitoring.spec.tsx | Tests failure selection, ranges, and focus. |
| libs/designer-ui-v2/src/nodes/__test__/contracts.spec.ts | Verifies new default pager strings. |
| libs/designer-ui-v2/src/monitoring/MonitoringPayloadComparison.tsx | Adds a responsive host-owned payload layout. |
| libs/designer-ui-v2/src/index.ts | Exports the comparison component and props. |
| libs/designer-ui-v2/README.md | Documents comparison and pager behavior. |
| libs/designer-ui-v2/.storybook/check-inventory.mjs | Registers the new visual export. |
| e2e/designer/sharedNodeUiSimulatedRuns.spec.ts | Tests stale-content removal during iteration changes. |
| e2e/designer/sharedNodeUiOttoParity.spec.ts | Tests glyph consistency and responsive monitoring. |
| e2e/designer/sharedNodeUiForeachFailureMenu.spec.ts | Tests keyboard failure navigation and pager clearance. |
| e2e/designer/sharedNodeUiConnections.spec.ts | Tests single-step undo for nested scope duplication. |
Review effort: Balanced
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
- Guard unrelated mutations/checkpoints while duplicateOperations awaits async scope metadata initialization via historyTransactionGuardMiddleware so Undo stays atomic across multi-node duplication. - Preserve compact failed-iteration pager layout when viewing a loop's sole failed iteration instead of expanding back to separate buttons. - Ignore type-only **/interfaces.ts(x) in pr-coverage.yml and add unit tests covering Favorites and OperationsAccordion shared-node-UI paths. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ger guards - Block workflow extraction and skip shared duplicate when a standalone paste or active history transaction is in flight. - Reset active history transaction state on host workflow reload boundaries and drop late tagged actions from canceled transactions. - Pass matching Switch, Loop, and Scope icons/categories to SharedNodeHoverCard. - Check nodeId instead of graphId in PanelLoopRunData for top-level Agent loop detection. - Guard useScopeFailedRepetitions with runId, suppress stale isPreviousData failure jumps in SharedLoopsPager, and avoid one-item trailing range submenus in NodeIterationPager. - Add regression and coverage tests for history concurrency, hover glyphs, MonitoringPayloadComparison, and SearchResultsGridV2. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>


Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
12b889e2c0e47a3cf7cec42ec60fd7be41ae0d0e12b889e2c(build 20.x/22.x/24.x,designer-e2e-shards1-3,vscode-e2ematrix,coverage,CodeQL,validate-pr), all review threads are resolved, and all new paths remain opt-in behind default-offuseSharedNodeUi.↑ Verified standalone Playwright E2E (23/23), side-by-side flag-off/flag-on screenshots, and Otto exact-package provider fixture.
↓ Native Azure Portal extension build validation could not run locally due to HTTP 401 on internal ADO npm/NuGet feeds.
Commit Type
Risk Level
What & Why
This PR brings
@microsoft/designer-ui-v2and@microsoft/logic-apps-designer-v2to visual and behavioral parity with the shared node presentation model behind the default-offuseSharedNodeUiflag, covering both authoring and monitoring views. All new rendering and interaction paths remain opt-in behinduseSharedNodeUi(off by default), with no breaking public APIs, security/auth changes, or modifications tolibs/logic-apps-shared.Key changes
MonitoringPayloadComparison): Added a container-query-drivenMonitoringPayloadComparisoncomponent in@microsoft/designer-ui-v2and wired it intolibs/designer-v2's monitoring view. WhenuseSharedNodeUiis enabled and the details drawer is wide enough (>= 720px),InputsandOutputsrender side by side; below that width they stack cleanly without changing DOM order or losing theShow raw inputs/Show raw outputscontrols.NodeIterationPager+SharedLoopsPager): ExtendedNodeIterationPagerwith an optional failed-iteration menu (Previous failed iteration,Next failed iteration, plus confirmed failed iteration entries fetched viagetScopeRepetitions).SharedLoopsPagerloads confirmed failed iterations for failed loops, guards against stale requests when runs change, and exposes direct jumps alongside prev/next navigation.libs/designer-v2/src/lib/core/utils/sharedNodeGlyph.tsxand threaded it through the canvas cards, operation details header, and recommendation search/browse results so built-in operations (Compose, Variables, Scope, Foreach, Terminate, Response, Condition, Agent, etc.) render consistent shared Fluent glyphs instead of mixing legacy bitmap badges with shared cards.iterationCount === 0) and clamped out-of-range page indices so invalid repetition calls are not issued.runIndexvalues to0when an ancestor loop switches iterations, avoiding stale child repetition selections.inputs/outputson repetition payloads wheninputsLink/outputsLinkURIs are absent, and passedrepetitionNamethroughuseConditionOutputscache keys so switching iterations invalidates cached condition results.<List version={...} />.Localize/lang/strings.jsonviapnpm run extractfor the new monitoring and failed-iteration strings.Impact of Change
useSharedNodeUi(off by default). When enabled, users see consistent built-in glyphs across the canvas, action picker, and details drawer; a responsive side-by-side Inputs/Outputs view in wide monitoring drawers; and a compact Foreach iteration pager with direct failed-iteration jumps. Legacy behavior withuseSharedNodeUi=falseis unchanged, with targeted bug fixes for empty loop repetition handling, nested loop index resets, condition cache keys, and scoped undo grouping.@microsoft/designer-ui-v2exportsMonitoringPayloadComparisonand extendsNodeIterationPagerwith optional failed-iteration menu props (failedIterationTriggerLabel,failedIterations,onSelectFailedIteration,onSelectPreviousFailedIteration,onSelectNextFailedIteration).@microsoft/designer-uiSearchResultV2accepts an optionalrenderOperationIconcallback used whenuseSharedNodeUiis active.designer-ui-v2components.useSharedNodeUi; monitoring data admission, repetition cache invalidation, nested loop index resets, and scoped undo/redo transactions affect shared state management and are covered by dedicated unit and E2E regression tests.Test Plan
useSharedNodeUi=falseandtrue) +@microsoft/designer-ui-v2provider smoke test in OttoVerification run (baseline
e03340260+ latest follow-up12b889e2c)@microsoft/designer-ui-v2: 21/21 files, 566/566 tests passed@microsoft/designer-ui: 127/127 files, 1,185/1,185 tests passed@microsoft/logic-apps-designer-v2: 270/270 files verified at baseline; latest commit12b889e2cverified withbuild:lib(@microsoft/designer-ui-v2),tsc --noEmitacross all 3 packages,biome check, and 219/219 targeted Vitest tests across all modified/new test suitesbuild:lib(tsup+tsc --emitDeclarationOnly) passed for@microsoft/designer-ui-v2,@microsoft/designer-ui, and@microsoft/logic-apps-designer-v2pnpm run extractcleanly updatedLocalize/lang/strings.jsonbiome check: 0 errors across all changed filessharedNodeUiConnections.spec.ts,sharedNodeUiSimulatedRuns.spec.ts,sharedNodeUiForeachFailureMenu.spec.ts, andsharedNodeUiOttoParity.spec.tscovering bothuseSharedNodeUi=falseanduseSharedNodeUi=true@microsoft/designer-ui-v2packed tarball verified against Otto's Fluent v9 / React 18 provider context (light & dark themes, keyboard navigation, zero page errors).401in this environment; Portal integration will rely on CI / authenticated feed validation.Contributors
Krrish Mittal (@takyyon)
Screenshots/Videos
Side-by-side comparison
All pairs below were captured from Standalone Designer v2 on the final commit (
e03340260) at1440x900with matched fixtures and zoom (useSharedNodeUi=falseon the left,useSharedNodeUi=trueon the right).1. Authoring — canvas cards, hover state, and details drawer built-in glyphs (Light)
Replaces solid legacy SVG badges with tinted shared Fluent glyphs on both canvas cards and the Compose details drawer header while keeping authoring parameters and selection behavior intact.
2. Authoring — action picker built-in glyphs (Light)
Renders the same shared built-in glyph for Compose inside the
Add an actionrecommendation list whenuseSharedNodeUiis enabled, keeping picker iconography aligned with the canvas.3. Authoring — nested Scope frames and branch geometry (Light)
Replaces legacy Scope banners with shared container frames and aligned connection geometry across outer, nested, and empty scopes.
4. Monitoring — responsive Inputs / Outputs in wide drawer at 880px (Light)
Switches the monitoring drawer from stacked Inputs/Outputs to a two-column side-by-side comparison at
880pxwhile preservingShow raw inputsandShow raw outputscontrols and shared status framing on the canvas.5. Monitoring edge case — responsive Inputs / Outputs fallback in narrow drawer at 480px (Light)
Collapses back to a clean stacked Inputs-above-Outputs layout below the container breakpoint (
480px) with no clipping or control loss.6. Monitoring edge case — Foreach compact pager and failed-iteration jump menu (Light)
Replaces the legacy Foreach pager bar with the compact shared
NodeIterationPager(123,456iterations) and an accessible failed-iteration jump menu listing previous/next and confirmed failed iterations (2,6,20).7. Dark theme — monitoring wide drawer at 880px (Dark)
Verifies Fluent dark theme tokens across the shared canvas status frames,
{x}drawer header glyph, and side-by-side Inputs/Outputs panels at880px.8. Dark theme — Foreach compact pager and failed-iteration jump menu (Dark)
Verifies dark theme styling and contrast for the failed Foreach frame, compact pager controls, and portaled failed-iteration menu.