test(components): backfill tutorial surface coverage#338
Conversation
bntvllnt
left a comment
There was a problem hiding this comment.
Review — 0 findings
BLOCKING
None.
WARN
None.
VERIFIED CLEAN
- Reviewed all changed files: five net-new component Vitest files for
category-filter,content-intro,table-of-contents-panel,tutorial-filters, andtutorial-intro-content. - Confirmed the PR stays within issue #231's test-backfill scope: test-only additions, no source or generated-file churn.
- Checked the tests against the existing component implementations for rendering, callback payloads, keyboard/backdrop behavior, progress labels, markdown rendering/MDX stripping, category normalization/sorting/deduping, and filter clearing/toggle behavior.
- Confirmed PR body links
Part of #231and current GitHub checks are green, including CI Quality Gates, Storybook jobs, react-doctor, PR issue-link enforcement, and Vercel previews.
VALIDATION
- Ran:
pnpm -F @vllnt/ui exec vitest run src/components/category-filter/category-filter.test.tsx src/components/content-intro/content-intro.test.tsx src/components/table-of-contents-panel/table-of-contents-panel.test.tsx src/components/tutorial-filters/tutorial-filters.test.tsx src/components/tutorial-intro-content/tutorial-intro-content.test.tsx- First isolated-worktree attempt failed because
vitestwas unavailable before dependency bootstrap. - After symlinking the existing
/home/ubuntu/uidependency install into the review worktree: PASS, 5 files / 23 tests.
- First isolated-worktree attempt failed because
- Ran:
pnpm -F @vllnt/ui exec eslint src/components/category-filter/category-filter.test.tsx src/components/content-intro/content-intro.test.tsx src/components/table-of-contents-panel/table-of-contents-panel.test.tsx src/components/tutorial-filters/tutorial-filters.test.tsx src/components/tutorial-intro-content/tutorial-intro-content.test.tsx— PASS. - Ran:
git diff --check origin/main...HEAD— PASS. - Checked:
gh pr checks 338 --repo vllnt/ui— all reported checks SUCCESS.
|
Preview build failed · pr-338-ui-registry Workflow ran but the build did not produce a runnable image. Common causes:
Check the failed From |
Review update — manual-review-ready@bntvllnt The previous metadata-only VERIFIED LIVE
OUTCOME
|
bntvllnt
left a comment
There was a problem hiding this comment.
Review — manual approval recommended
@bntvllnt I re-reviewed PR #338 at head 4cefda2fb284708c672895f92bb81612706c733d and found no blockers.
BLOCKING
None.
WARN
None.
VERIFIED CLEAN
- Current live state verified: open, non-draft,
mergeStateStatus: CLEAN,mergeable: MERGEABLE, changedFiles=5, head matches the assigned SHA. - Full changed-file coverage reviewed:
packages/ui/src/components/category-filter/category-filter.test.tsxpackages/ui/src/components/content-intro/content-intro.test.tsxpackages/ui/src/components/table-of-contents-panel/table-of-contents-panel.test.tsxpackages/ui/src/components/tutorial-filters/tutorial-filters.test.tsxpackages/ui/src/components/tutorial-intro-content/tutorial-intro-content.test.tsx
- Reviewed surrounding component behavior for category sorting/deduping, tutorial routing, intro/progress rendering, markdown/link handling, and TOC panel interactions.
- Rule verdicts: PASS R3 PR body freshness; PASS R5 issue link (
Part of #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/category-filter/category-filter.test.tsx src/components/content-intro/content-intro.test.tsx src/components/table-of-contents-panel/table-of-contents-panel.test.tsx src/components/tutorial-filters/tutorial-filters.test.tsx src/components/tutorial-intro-content/tutorial-intro-content.test.tsx— 5 files, 23 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.
- content-intro: fire keyDown on button element (not document) to avoid vacuous pass - tutorial-filters: add data-testid to tag list; use within() to disambiguate "React" chip vs active filter badge - table-of-contents-panel: add data-testid="toc-backdrop"; replace querySelector with getByTestId - category-filter: add beforeEach to reset mockPathname for test-order independence
Review — REQUEST_CHANGES@bntvllnt one blocking process issue before this can be approved. BLOCKING
Verified locally
Code review notesNo blocking code/test correctness findings found. The added test IDs are narrow and mirrored between package and registry copies; the new tests exercise the intended rendering, callback payloads, route-selection, keyboard/backdrop, progress, and markdown/MDX-stripping behavior. |
PR-body remediation — manual-review-ready@bntvllnt I refreshed the PR body/status text for the current head and rechecked the live PR state. VERIFIED LIVE
OUTCOME
|
Review — 1 finding (1 blocking)@bntvllnt I re-reviewed PR #338 at head BLOCKING
WARNNone. VERIFIED CLEAN
VALIDATION
|
Review — 1 finding (1 blocking, 0 warn)BLOCKING
WARNNone. VERIFIED CLEAN
VALIDATION
|
Summary
category-filter,content-intro,table-of-contents-panel,tutorial-filters, andtutorial-intro-content.data-testid="toc-backdrop"for the TOC backdrop anddata-testid="tag-filter-list"for the tutorial tag list. No functional component behavior change is intended.Part of #231
Validation
e23e0bbcad49db9a38d1796aa222f04b4a235987.pnpm install --frozen-lockfilePASS.pnpm -F @vllnt/ui exec vitest run src/components/category-filter/category-filter.test.tsx src/components/content-intro/content-intro.test.tsx src/components/table-of-contents-panel/table-of-contents-panel.test.tsx src/components/tutorial-filters/tutorial-filters.test.tsx src/components/tutorial-intro-content/tutorial-intro-content.test.tsxPASS — 5 files / 23 tests.pnpm -F @vllnt/ui lintPASS.pnpm -F @vllnt/ui exec tsc --noEmit --project tsconfig.build.jsonPASS.git diff --check origin/main...HEADPASS.pnpm -F @vllnt/ui lint,pnpm -F @vllnt/ui exec tsc --noEmit --project tsconfig.build.json,pnpm build,pnpm test:once(221 files, 1238 tests), andgit diff --check.Notes: earlier
pnpm buildemitted the existing Next.js multiple-lockfile warning for the nested worktree. Earlierpnpm test:onceemitted existing jsdom navigation, duplicate-key, and Radix dialog description warnings while passing.Design Deviations
packages/uiandapps/registry:toc-backdropandtag-filter-list. These are intentionally narrow hooks to avoid brittle tests and do not change runtime behavior.CI status update (2026-05-19T23:07:15Z)
Current head:
e23e0bbcad49db9a38d1796aa222f04b4a235987mergeStateStatusisCLEAN.