Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/apps/react-heavy-spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"react-dom": "18.3.1",
"react-router-dom": "6.30.2",
"react-window": "2.2.4",
"recharts": "2.15.4"
"recharts": "3.6.0"
},
"devDependencies": {
"@types/node": "25.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface LogLevelData {
name: string
value: number
color: string
[key: string]: unknown
}

interface ServiceStatusPieChartProps {
Expand All @@ -29,7 +30,7 @@ export default function ServiceStatusPieChart({ data, loading = false }: Service
cx="50%"
cy="50%"
labelLine={false}
label={({ name, percent }) => `${name}: ${(percent * 100).toFixed(0)}%`}
label={({ name, percent }) => `${name}: ${((percent ?? 0) * 100).toFixed(0)}%`}
outerRadius={80}
fill="#8884d8"
dataKey="value"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function HostDetails({ host, metrics, onClose }: HostDetailsProps
borderRadius: '4px',
color: '#E0E0E0',
}}
formatter={(value: number) => `${value}%`}
formatter={(value) => `${value ?? 0}%`}
/>
<Line
type="monotone"
Expand Down Expand Up @@ -148,7 +148,7 @@ export default function HostDetails({ host, metrics, onClose }: HostDetailsProps
borderRadius: '4px',
color: '#E0E0E0',
}}
formatter={(value: number) => `${value}%`}
formatter={(value) => `${value ?? 0}%`}
/>
<Line
type="monotone"
Expand Down Expand Up @@ -184,7 +184,7 @@ export default function HostDetails({ host, metrics, onClose }: HostDetailsProps
borderRadius: '4px',
color: '#E0E0E0',
}}
formatter={(value: number) => `${value}%`}
formatter={(value) => `${value ?? 0}%`}
/>
<Line
type="monotone"
Expand Down Expand Up @@ -216,7 +216,7 @@ export default function HostDetails({ host, metrics, onClose }: HostDetailsProps
borderRadius: '4px',
color: '#E0E0E0',
}}
formatter={(value: number) => `${value} Mbps`}
formatter={(value) => `${value ?? 0} Mbps`}
/>
<Line
type="monotone"
Expand Down
Loading