Skip to content
Merged
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
5 changes: 0 additions & 5 deletions src/app/compare/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1004,11 +1004,6 @@ export default async function ComparePage({
bench={s}
aName={a.name}
bName={b.name}
// Per-card trend charts only for perp venue pairs, where the
// benches are daily or slow-moving series worth a history.
// Latency / fee benches on other pairs read as flat lines.
aSlug={perpPair ? a.slug : undefined}
bSlug={perpPair ? b.slug : undefined}
/>
))}
</div>
Expand Down
18 changes: 0 additions & 18 deletions src/components/compare-bench-card.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import { Fragment } from "react";
import { CompareTrendChart } from "@/components/compare-trend-chart";
import Link from "next/link";
import type { Benchmark } from "@/types/benchmark";
import { fmtUnit, fmtValue, unitSuffix } from "@/lib/format";
Expand Down Expand Up @@ -72,16 +71,10 @@ export function CompareBenchCard({
bench,
aName,
bName,
aSlug,
bSlug,
}: {
bench: CompareBench;
aName: string;
bName: string;
/** Provider slugs, for the trend chart's /api/series filter. Optional
* so older call sites keep working without the chart. */
aSlug?: string;
bSlug?: string;
}) {
const hasScopes = bench.panelScopes.length > 0;

Expand Down Expand Up @@ -153,17 +146,6 @@ export function CompareBenchCard({
</>
)}

{aSlug && bSlug && (
<CompareTrendChart
benchSlug={bench.slug}
unit={bench.unit}
aSlug={aSlug}
bSlug={bSlug}
aName={aName}
bName={bName}
/>
)}

{bench.note && (
<p className="mt-4 text-[11px] text-ink-faint leading-snug border-t border-rule pt-3">
{bench.note}
Expand Down
242 changes: 0 additions & 242 deletions src/components/compare-trend-chart.tsx

This file was deleted.

Loading