Skip to content

Commit 2a8ce51

Browse files
chore(deps): upgrade recharts 2 → 3 (T02 It5) (#82)
* chore(deps): upgrade recharts 2 → 3 with chart.tsx type migration - recharts ^2.15.4 → ^3.8.1 - chart.tsx: replace ComponentProps<Tooltip> with TooltipContentProps, LegendProps pick with DefaultLegendContentProps pick, coerce dataKey to string for React key - add smoke test for DashboardCharts render (3 assertions) - ADR-005 written to docs/decisions/ (gitignored docs vault) Supersedes Dependabot PR #78 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(chart): use precomputed key var for tooltip item stability CodeRabbit: item.dataKey can be undefined or Function in recharts 3, causing duplicate/invalid React keys. Use the already-computed `key` variable (nameKey || item.name || item.dataKey || 'value') instead. Also remove invalid `language: typescript` from .coderabbit.yaml code_generation.docstrings — not a valid enum value (docstrings disabled anyway). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Emiya Kiritsugu <emiyakiritsugu3@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2dc556b commit 2a8ce51

5 files changed

Lines changed: 182 additions & 97 deletions

File tree

.coderabbit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ reviews:
1111
code_generation:
1212
docstrings:
1313
enabled: false
14-
language: typescript

package-lock.json

Lines changed: 135 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"react-dom": "^18.3.1",
9696
"react-hook-form": "^7.72.1",
9797
"react-timer-hook": "^4.0.5",
98-
"recharts": "^2.15.4",
98+
"recharts": "^3.8.1",
9999
"tailwind-merge": "^2.6.1",
100100
"zod": "^3.25.76"
101101
},

0 commit comments

Comments
 (0)