vercel-labs / ui
Code health
Hotspots average 7.7, the place fixes pay off most.
Explore this codebase
- Code health map1,006hotspots across 6,358 files
- Ownership6,621sole-owned files: one author, no second reader
- Architecture6modules, 6 entry points
- Decisions39recorded, of which 0 accepted and 39 awaiting review
- Refactoring56open opportunities, one per file
- TestsNo coverage report yet. Run your tests with coverage on, then add the report:
AlsoDocsChatFilesKnowledge graphChange couplingCommitsStatsCosts
Do next · 6
6 things worth doing in the week to Nov 13, the last indexed commit.
Worth planning
Tidy the code shape this week's commits left: 64 findings in 37 files
26 commits in the last 7 days added or worsened long, complex or deeply nested code, still open. Start with
packages/core/src/page/agent/agent.ts(5 findings): tidying it while the change is fresh costs less than after the next one.- code-shape findings
- 64
- files
- 37
- commits
- 26
Large effortSimplify
performinpackages/core/src/page/agent/agent.ts: tests reach it, and fixes keep landingChanged 23 times in 90 days, and 16 of those commits were bug fixes.
- commits in 90 days
- 23
- bug-fix commits
- 16
- line coverage
- Unknown, no report
- tests that reach it
- 17 test files, call graph(inferred)
Large effort, worth a checkReview why fixes keep landing in
packages/web/src/define-element.ts: tests reach itChanged 22 times in 90 days, and 14 of those commits were bug fixes.
- commits in 90 days
- 22
- bug-fix commits
- 14
- line coverage
- Unknown, no report
- tests that reach it
- 39 test files, call graph(inferred)
Large effort, worth a checkSimplify
attachinpackages/core/src/foundation/popups/popup.ts: tests reach it, and fixes keep landingChanged 22 times in 90 days, and 8 of those commits were bug fixes.
- commits in 90 days
- 22
- bug-fix commits
- 8
- line coverage
- Unknown, no report
- tests that reach it
- 38 test files, call graph(inferred)
Large effort, worth a checkReview why fixes keep landing in
packages/core/src/components/menu/menu-api.ts: tests reach itChanged 17 times in 90 days, and 9 of those commits were bug fixes.
- commits in 90 days
- 17
- bug-fix commits
- 9
- line coverage
- Unknown, no report
- tests that reach it
- 1 test file, import graph(inferred)
Large effort, worth a check
Everything we found
5 areas
Every detector's open count by area. The actions above are the part worth doing.
- Code health2,473 open findingsCriticalChange entropy · packages/core/src/page/agent/agent.ts51 findings · 11.1 deducted
- Refactoring56 open opportunitiesLowbind+0.7 health, M effort · packages/core/src/foundation/kernel/part.ts
- Doc drift20Mediumapps/docs/content/docs/react/components/tabs.mdxLink points at #styling-tabsindicator, which apps/docs/content/docs/react/components/tabs.mdx no longer declares.
- Decisions39 to reviewMediumpackages/core/test/agent.test.ts39 awaiting review, 0 drifting from the code
- Ownership6,621 sole-owned filesMediumpackages/core/src/page/agent/agent.tsOne author, no second reader