Skip to content

fix(ui): preserve designer graph on route switch and polish live QA edge cases - #676

Open
huyplb wants to merge 1 commit into
mainfrom
fix/live-qa-edge-cases
Open

huyplb wants to merge 1 commit into
mainfrom
fix/live-qa-edge-cases

Conversation

@huyplb

@huyplb huyplb commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes all 9 edge cases discovered during live browser QA on http://localhost:5173/:

P1 Functional Fix

  • Preserve Designer graph across route switches (workflowUiStore.ts, WorkflowDesigner.tsx): Added an in-memory designerDraft snapshot to useWorkflowUiStore so switching from Workflow → Utils → back to Workflow → Designer restores the full loaded graph (and unsaved edits) instead of resetting the canvas to 0 pipes. Added unmount/remount regression test.

P2 Visual & Layout Fixes

  • Full-width Runs table when no run is selected (RunsPanel.tsx, workflow.css): .runs-layout now defaults to 100% width and switches to split view (.has-detail) only when a run row is selected.
  • Designer <MiniMap /> occlusion (WorkflowDesigner.tsx): Hid <MiniMap /> on empty canvases (zero overlap with the empty-canvas CTA), compacted its dimensions (150×100), and increased default fitView padding.
  • Confirmation modal z-index (EnginePanel.tsx, CredentialsPanel.tsx, WorkflowDesigner.tsx, ProfileMenu.tsx): Portaled confirmation modals to document.body above the sidebar avatar trigger.
  • Lazy-loading splash alignment (LoadingScreen.tsx, App.tsx): Added embedded mode centering the Suspense fallback inside <main>.

P3 Polish & Accessibility

  • Health Scorecard non-expandable rows (DbaHealthScorecardModal.tsx): Render checks without expandable details/recommendations as static <div>s instead of clickable <button>s.
  • Singular/plural grammar (RunsPanel.tsx, ExecutionPanel.tsx): Fixed 1 batch · 1 row pluralization.
  • Accessibility (WorkflowView.tsx, WorkflowDesigner.tsx, TriggerConfigurationDialog.tsx): Removed nested <main> landmarks and added role="tablist" / role="tab" / aria-selected on Workflows sub-nav.

Verification

  • npm run test-ids: 2,444 test IDs; 1,258 controls with ID, 0 without, 0 duplicates
  • npx vitest run apps/web/src/frontend/features/workflow apps/web/src/frontend/features/utilities packages/shared/src/naming.test.ts apps/web/src/frontend/architecture.test.ts packages/shared/src/test-id-catalog.test.ts: 64/64 files, 447/447 tests PASS
  • npm run typecheck, npm run lint, npm run lint:security: PASS (0 errors, 0 warnings)

Note

Low Risk
UI-only changes (state held in Zustand until refresh, portals, CSS, copy, a11y); no auth, API, or engine behavior changes.

Overview
Preserves workflow designer state when users leave Workflow and return via another top-level view: an in-memory designerDraft on useWorkflowUiStore snapshots the canvas (nodes, pipelines, triggers, unsaved edits) and WorkflowDesigner hydrates from it on remount, with a regression test for unmount/remount.

Layout and overlay fixes: Runs list uses full width until a run is selected (has-detail + CSS); lazy route loading uses LoadingScreen embedded inside <main>; workflow confirmation dialogs are portaled to document.body at z-[100] (credentials, engine, delete/extract stage) and profile menu drops a competing stacking context; designer MiniMap only shows when the canvas has nodes, with a smaller size and looser default fitView padding.

Polish and a11y: DBA Health Scorecard rows without details/recommendations are static <div>s, not faux buttons; execution/runs copy uses correct singular/plural; workflow sub-nav gets tablist / tab / aria-selected; nested <main> landmarks in workflow/trigger UI are replaced with <div>.

Reviewed by Cursor Bugbot for commit dcce05b. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor

cursor Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 5c0a92ea-69e9-44a1-bb91-c1d26e2ef3b7)

This branch has not been deployed

No deployments
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.

1 participant