Commit 2a8ce51
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
- src/components
- dashboard
- ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments