Skip to content

fix(react-doctor): rename generic handlers#339

Open
bntvllnt wants to merge 1 commit into
mainfrom
fix/issue-276-handler-names
Open

fix(react-doctor): rename generic handlers#339
bntvllnt wants to merge 1 commit into
mainfrom
fix/issue-276-handler-names

Conversation

@bntvllnt
Copy link
Copy Markdown
Collaborator

Summary

  • Renamed all react-doctor/no-generic-handler-names handler definitions in packages/ui to action-oriented names while preserving DOM event prop names.
  • Regenerated the registry component shims so the public /r/* sources mirror the package changes.
  • Kept behavior unchanged, including consumer onClick ordering, defaultPrevented guards, callback payloads, and event propagation behavior.

Closes #276
Related to #279

Validation

  • pnpm doctor:json && jq '[.diagnostics[] | select(.rule == "no-generic-handler-names")] | length' .react-doctor.json PASS (0)
  • pnpm -F @vllnt/ui exec eslint <changed package files> PASS
  • pnpm -F @vllnt/ui lint PASS
  • pnpm -F @vllnt/ui exec tsc --noEmit --project tsconfig.build.json PASS
  • pnpm build PASS
  • pnpm test:once PASS (216 files, 1215 tests)
  • git diff --check PASS

Notes: pnpm build emitted the existing Next.js multiple-lockfile warning for this nested worktree. Vitest emitted existing jsdom navigation, duplicate-key, and Radix dialog-description warnings while passing.

Design Deviations

None.

@bntvllnt bntvllnt self-assigned this May 12, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
storybook Ready Ready Preview, Comment May 12, 2026 7:21pm
ui.vllnt.ai Ready Ready Preview, Comment May 12, 2026 7:21pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dx Developer experience react-doctor Reported by react-doctor (codebase health) tech-debt Refactoring or cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

react-doctor: rename generic handler names — handleClick/handleChange → action verbs (51 warnings)

1 participant