Score: 94/100 · 0 errors · 19 warnings
Copy as prompt
Fix the following React Review diagnostics in my codebase.
## Warnings (19)
1. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:44
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
2. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:58
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
3. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:59
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
4. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:60
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
5. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:74
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
6. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:76
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
7. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:77
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
8. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:78
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
9. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:79
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
10. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:93
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
11. [warning] rendering-svg-precision — packages/dashboard/src/components/Icon.tsx:106
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
12. [warning] design-no-em-dash-in-jsx-text — packages/dashboard/src/components/JsonBlock.tsx:12
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
13. [warning] no-array-index-as-key — packages/dashboard/src/components/DiffView.tsx:83
Array index "i" used as key — causes bugs when list is reordered or filtered
14. [warning] rendering-hydration-mismatch-time — packages/dashboard/src/components/DetailPane.tsx:109
new Date() reachable from JSX renders differently on server vs client — wrap in useEffect+useState (client-only) or add suppressHydrationWarning to the parent if intentional
15. [warning] rendering-hydration-mismatch-time — packages/dashboard/src/components/DetailPane.tsx:109
new Date() reachable from JSX renders differently on server vs client — wrap in useEffect+useState (client-only) or add suppressHydrationWarning to the parent if intentional
16. [warning] click-events-have-key-events — packages/dashboard/src/components/RequestRow.tsx:39
Enforce a clickable non-interactive element has at least one keyboard event listener.
17. [warning] no-static-element-interactions — packages/dashboard/src/components/RequestRow.tsx:39
Static HTML elements with event handlers require a role.
18. [warning] no-fetch-in-effect — packages/dashboard/src/hooks/useSSE.ts:14
fetch() inside useEffect — use a data fetching library (react-query, SWR) or server component
19. [warning] no-cascading-set-state — packages/dashboard/src/hooks/useSSE.ts:14
6 setState calls in a single useEffect — consider using useReducer or deriving state⚠️ Warnings (19)
rendering-svg-precision
SVG d attribute uses 4+ decimal precision — truncate to 1–2 decimals to shrink markup with no visible difference
Truncate path/points/transform decimals to 1–2 digits — sub-pixel precision adds bytes with no visible difference
packages/dashboard/src/components/Icon.tsx:44
packages/dashboard/src/components/Icon.tsx:58
packages/dashboard/src/components/Icon.tsx:59
packages/dashboard/src/components/Icon.tsx:60
packages/dashboard/src/components/Icon.tsx:74
packages/dashboard/src/components/Icon.tsx:76
packages/dashboard/src/components/Icon.tsx:77
packages/dashboard/src/components/Icon.tsx:78
packages/dashboard/src/components/Icon.tsx:79
packages/dashboard/src/components/Icon.tsx:93
packages/dashboard/src/components/Icon.tsx:106
rendering-hydration-mismatch-time
new Date() reachable from JSX renders differently on server vs client — wrap in useEffect+useState (client-only) or add suppressHydrationWarning to the parent if intentional
Wrap dynamic time/random values in useEffect+useState (client-only) or add suppressHydrationWarning to the parent if intentional
packages/dashboard/src/components/DetailPane.tsx:109
packages/dashboard/src/components/DetailPane.tsx:109
design-no-em-dash-in-jsx-text
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
Replace em dashes in JSX text with commas, colons, semicolons, periods, or parentheses — em dashes read as model-output filler
packages/dashboard/src/components/JsonBlock.tsx:12
no-array-index-as-key
Array index "i" used as key — causes bugs when list is reordered or filtered
Use a stable unique identifier:
key={item.id}orkey={item.slug}— index keys break on reorder/filter
packages/dashboard/src/components/DiffView.tsx:83
click-events-have-key-events
Enforce a clickable non-interactive element has at least one keyboard event listener.
Visible, non-interactive elements with click handlers must have one of
keyup,keydown, orkeypresslistener.
packages/dashboard/src/components/RequestRow.tsx:39
no-static-element-interactions
Static HTML elements with event handlers require a role.
Add a role attribute to this element, or use a semantic HTML element instead.
packages/dashboard/src/components/RequestRow.tsx:39
no-fetch-in-effect
fetch() inside useEffect — use a data fetching library (react-query, SWR) or server component
Use
useQuery()from @tanstack/react-query,useSWR(), or fetch in a Server Component instead
packages/dashboard/src/hooks/useSSE.ts:14
no-cascading-set-state
6 setState calls in a single useEffect — consider using useReducer or deriving state
Combine into useReducer:
const [state, dispatch] = useReducer(reducer, initialState)
packages/dashboard/src/hooks/useSSE.ts:14
Last scored May 14, 2026 at 7:35 AM UTC. Maintained by React Review.
Activity
0No activity yet.