Skip to content

test(components): backfill flow mdx coverage#354

Merged
bntvllnt merged 4 commits into
mainfrom
chore/231-flow-mdx-tests
Jun 3, 2026
Merged

test(components): backfill flow mdx coverage#354
bntvllnt merged 4 commits into
mainfrom
chore/231-flow-mdx-tests

Conversation

@bntvllnt
Copy link
Copy Markdown
Collaborator

@bntvllnt bntvllnt commented May 13, 2026

Related to #231

Summary

  • Add TutorialMDX coverage for plain markdown rendering, fenced JSX markdown handling, MDX component rendering, lazy FlowDiagram mapping, and exported tutorial component keys.
  • Add FlowDiagram coverage with mocked React Flow runtime for rendering, hidden controls, validation warnings, zoom/fit/node-click wiring, fullscreen portal behavior, and copy-to-clipboard image flow.

Validation

  • pnpm -F @vllnt/ui exec vitest run src/components/tutorial-mdx/tutorial-mdx.test.tsx src/components/flow-diagram/flow-diagram.test.tsx (2 files, 11 tests)
  • pnpm -F @vllnt/ui exec eslint src/components/tutorial-mdx/tutorial-mdx.test.tsx src/components/flow-diagram/flow-diagram.test.tsx
  • pnpm -F @vllnt/ui lint
  • pnpm -F @vllnt/ui exec tsc --noEmit --project tsconfig.build.json
  • pnpm build
  • pnpm test:once (218 files, 1226 tests)
  • pnpm -F @vllnt/ui check:use-client
  • pnpm -F @vllnt/ui check:stories
  • pnpm -F @vllnt/ui storybook:verify
  • pnpm -F @vllnt/ui build-storybook
  • git diff --check
  • git diff --cached --check

Branch freshness

  • Refreshed against main on 2026-05-31T15:06:18Z.
  • Current head: 506497416fff81e2de8d7711a8aa59e6c2631e6e.
  • Current base: 7d14e563f349259d071634e02a8f489fedb6b0bd.
  • Merge state at refresh: UNSTABLE.
  • Checks at refresh: RERUNNING (2 active/non-terminal check(s); 0 completed non-green check(s) currently visible).
  • This section supersedes older current-head or CI-status notes above.

@vllnt-pilot vllnt-pilot Bot had a problem deploying to Preview · pr-354-storybook May 18, 2026 17:14 Failure
@vllnt-pilot
Copy link
Copy Markdown

vllnt-pilot Bot commented May 18, 2026

Preview ready · Updated 2026-06-03T20:19:22Z

Service Status Preview
storybook Ready https://pr-354-storybook.preview.vllnt.ai
Inspect
  • Tailnet-only by default (not reachable from public internet)
  • Cert: real Let's Encrypt wildcard
  • Reply with /clean to destroy this preview now

@vllnt vllnt deleted a comment from vllnt-pilot Bot May 18, 2026
@vllnt vllnt deleted a comment from vercel Bot May 18, 2026
@bntvllnt
Copy link
Copy Markdown
Collaborator Author

Review — manual approval recommended

I reviewed the full diff at head f771aae and found no blocking issues.

Coverage reviewed:

  • packages/ui/src/components/flow-diagram/flow-diagram.test.tsx
  • packages/ui/src/components/tutorial-mdx/tutorial-mdx.test.tsx

Verified clean:

  • FlowDiagram tests cover rendering, controls, validation warnings, interaction callbacks, fullscreen portal behavior, and copy-to-clipboard image flow against the current implementation.
  • TutorialMDX tests cover markdown rendering, fenced JSX handling, MDX component rendering, lazy FlowDiagram mapping, and exported component-map keys.
  • PR body contains the test: backfill Vitest coverage for components shipped without tests #231 issue link and matches the current green check status.
  • GitHub checks were re-fetched at review time: required checks were passing at the reviewed head, with one neutral/skipping superseded legacy preview check. Full changed-file diff coverage was completed; local reruns were treated as supplementary where available.

Manual approval boundary:
Approval is recommended, but final APPROVE is reserved for bntvllnt/manual review by policy. Because this PR is authored by the authenticated reviewer account, this top-level PR comment is the authoritative Jarvis clean/manual-ready fallback artifact rather than a formal self-approval.

Copy link
Copy Markdown
Collaborator Author

@bntvllnt bntvllnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — manual approval recommended

@bntvllnt I re-reviewed PR #354 at head f771aae6b7439d7fe9b6ba16a120487898649e29 and found no blockers.

BLOCKING

None.

WARN

None.

VERIFIED CLEAN

  • Current live state verified: open, non-draft, mergeStateStatus: CLEAN, mergeable: MERGEABLE, changedFiles=2, head matches the assigned SHA.
  • Full changed-file coverage reviewed:
    • packages/ui/src/components/flow-diagram/flow-diagram.test.tsx
    • packages/ui/src/components/tutorial-mdx/tutorial-mdx.test.tsx
  • Reviewed surrounding component behavior for FlowDiagram validation warnings, controls, fullscreen portal, image-copy flow, and TutorialMDX markdown/MDX component/lazy FlowDiagram rendering.
  • Rule verdicts: PASS R3 PR body freshness; PASS R5 issue link (Related to #231); PASS issue #231 test-only scope; PASS generated-artifact policy (none touched); PASS no shipped-code comments/runtime changes; PASS local targeted coverage validity.

VALIDATION

  • Ran locally in the PR worktree: pnpm exec vitest run src/components/flow-diagram/flow-diagram.test.tsx src/components/tutorial-mdx/tutorial-mdx.test.tsx — 2 files, 11 tests passed.
  • Live checks observed: issue-link enforcement, preview deploy, build/sign/scan/deploy, Storybook, visual regression, CodeQL, health scan, quality gates, and story verification all pass; only the superseded legacy preview check is neutral.

Verdict: no blockers. Approval is recommended, but final approval is reserved for bntvllnt per review policy.

@bntvllnt bntvllnt merged commit 16e7c2e into main Jun 3, 2026
17 of 19 checks passed
@bntvllnt bntvllnt deleted the chore/231-flow-mdx-tests branch June 3, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tech-debt Refactoring or cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant