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
2 changes: 1 addition & 1 deletion website/src/components/benchmarks/BenchmarkTestSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function BenchmarkTestSetup({
</div>
<p className="text-caption text-cc-ink-dim mt-4">
Published by ChilliCream, the team behind{" "}
<Link href={facts.links.fusionDocs}>Fusion</Link>. Built on{" "}
<Link href={facts.links.fusion}>Fusion</Link>. Built on{" "}
<Link href={facts.links.guild}>
The Guild&apos;s gateway benchmarks
</Link>{" "}
Expand Down
4 changes: 2 additions & 2 deletions website/src/components/benchmarks/BenchmarkVerdict.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "@/src/components/benchmarks/benchmarkView";
import { Link } from "@/src/design-system/Link";
import {
BENCHMARK_FUSION_DOCS_URL,
BENCHMARK_FUSION_URL,
benchmarkVariants,
decisiveFeatures,
formatPlatformTag,
Expand Down Expand Up @@ -195,7 +195,7 @@ function overallOf(
function linkFusion(text: string) {
return text.split(/\b(Fusion)\b/).map((part, index) =>
part === "Fusion" ? (
<Link key={index} href={BENCHMARK_FUSION_DOCS_URL}>
<Link key={index} href={BENCHMARK_FUSION_URL}>
{part}
</Link>
) : (
Expand Down
6 changes: 3 additions & 3 deletions website/src/components/benchmarks/benchmarkView.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
BENCHMARK_REPOSITORY,
BENCHMARK_FUSION_DOCS_URL,
BENCHMARK_FUSION_URL,
benchmarkRunId,
benchmarkVariants,
formatPlatform,
Expand Down Expand Up @@ -517,7 +517,7 @@ export interface BenchmarkFacts {
readonly readme: string;
readonly issues: string;
readonly guild: string;
readonly fusionDocs: string;
readonly fusion: string;
};
}

Expand Down Expand Up @@ -562,7 +562,7 @@ export function benchmarkFacts(report: BenchmarkReport): BenchmarkFacts {
readme: `${source}/README.md`,
issues: `${BENCHMARK_REPOSITORY}/issues`,
guild: "https://github.com/graphql-hive/graphql-gateways-benchmark",
fusionDocs: BENCHMARK_FUSION_DOCS_URL,
fusion: BENCHMARK_FUSION_URL,
},
};
}
Expand Down
6 changes: 3 additions & 3 deletions website/src/helpers/benchmarkReport.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const BENCHMARK_REPOSITORY =
"https://github.com/ChilliCream/graphql-federation-benchmarks";

export const BENCHMARK_FUSION_DOCS_URL = "/docs/fusion";
export const BENCHMARK_FUSION_URL = "/products/fusion";

const RUNTIME_TAGS: Readonly<Record<string, string>> = {
"Node.js": "Node",
Expand Down Expand Up @@ -674,10 +674,10 @@ export function variantName({
: name;
}

/** Returns the link for a gateway: the Fusion docs for Fusion, otherwise its HTTPS repository URL, or undefined. */
/** Returns the link for a gateway: the Fusion product page for Fusion, otherwise its HTTPS repository URL, or undefined. */
export function gatewayLink(gateway: BenchmarkGateway): string | undefined {
if (gateway.id === "fusion") {
return BENCHMARK_FUSION_DOCS_URL;
return BENCHMARK_FUSION_URL;
}
return gateway.repositoryUrl?.startsWith("https://")
? gateway.repositoryUrl
Expand Down
2 changes: 1 addition & 1 deletion website/tests/benchmarks/benchmarkReport.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ test("names and links unknown gateways from the report", () => {
return [variantName(entry), gatewayLink(entry.gateway)];
}),
[
["Fusion", "/docs/fusion"],
["Fusion", "/products/fusion"],
["New Router Preview", "https://github.com/example/new-router"],
["Unsafe Router", undefined],
],
Expand Down
Loading