Skip to content

Commit 3fd3338

Browse files
H2Shamigreptile-apps[bot]CopilotCopilot
authored
feat: compare page + model registry improvements (#5420)
* feat: compare page + model registry improvements * fix: images on compare page * Update bifrost/app/comparison/ComparisonContent.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update bifrost/app/comparison/ComparisonContent.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * [WIP] Address feedback on compare page improvements (#5422) * Initial plan * refactor: extract getProviderLogo to shared utility Co-authored-by: H2Shami <46585994+H2Shami@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: H2Shami <46585994+H2Shami@users.noreply.github.com> * add icons + address PR comments --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
1 parent 23c81ff commit 3fd3338

File tree

22 files changed

+6193
-4370
lines changed

22 files changed

+6193
-4370
lines changed

bifrost/app/comparison/ComparisonContent.tsx

Lines changed: 402 additions & 142 deletions
Large diffs are not rendered by default.

bifrost/app/comparison/page.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
import { Suspense } from "react";
12
import ComparisonContent from "./ComparisonContent";
23

4+
function ComparisonFallback() {
5+
return (
6+
<div className="min-h-screen bg-white px-4 py-4 flex flex-col items-center">
7+
<div className="container mx-auto max-w-4xl pb-2 text-center">
8+
<div className="h-[150px] w-[150px] mx-auto bg-gray-200 animate-pulse rounded" />
9+
</div>
10+
<div className="text-center max-w-3xl mx-auto">
11+
<div className="h-10 bg-gray-200 animate-pulse rounded w-64 mx-auto mb-4" />
12+
<div className="h-6 bg-gray-200 animate-pulse rounded w-96 mx-auto mb-6" />
13+
</div>
14+
</div>
15+
);
16+
}
17+
318
export default function ComparisonIndexPage() {
4-
return <ComparisonContent />;
19+
return (
20+
<Suspense fallback={<ComparisonFallback />}>
21+
<ComparisonContent />
22+
</Suspense>
23+
);
524
}

0 commit comments

Comments
 (0)