Show a message if you haven’t done runs yet
This commit is contained in:
@@ -29,9 +29,12 @@ export function ConcurrentRunsChart({
|
||||
concurrentRunsLimit: number;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<div className="relative">
|
||||
<Header3 className="mb-4">Monthly concurrent Runs</Header3>
|
||||
<ResponsiveContainer width="100%" height="100%" className="min-h-[20rem]">
|
||||
<Paragraph className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
|
||||
No concurrent Runs to show
|
||||
</Paragraph>
|
||||
<ResponsiveContainer width="100%" height="100%" className="relative min-h-[20rem]">
|
||||
<LineChart
|
||||
data={ConcurrentRunsData}
|
||||
margin={{
|
||||
@@ -57,7 +60,7 @@ export function ConcurrentRunsChart({
|
||||
<Line type="stepAfter" dataKey="Concurrent Runs" stroke="#16A34A" strokeWidth={2} />
|
||||
</LineChart>
|
||||
</ResponsiveContainer>
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -97,8 +97,11 @@ export default function Page() {
|
||||
</div>
|
||||
<UsageBar numberOfCurrentRuns={15467} tierRunLimit={10000} projectedRuns={25347} />
|
||||
</div>
|
||||
<div className="w-full">
|
||||
<div className="relative w-full">
|
||||
<Header3 className="mb-4">Monthly Runs</Header3>
|
||||
<Paragraph className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
|
||||
No Runs to show
|
||||
</Paragraph>
|
||||
<ResponsiveContainer width="100%" height={200}>
|
||||
<BarChart
|
||||
data={loaderData.chartData}
|
||||
|
||||
Reference in New Issue
Block a user