fix(stats): reorder market share section

This commit is contained in:
Adam
2026-05-29 14:00:08 -05:00
parent c977cb7f31
commit aa22cf841d
+6 -6
View File
@@ -38,9 +38,9 @@ const statsUnfurlAlt = "OpenCode Stats wordmark on a dark patterned background"
const headerLinks = [ const headerLinks = [
{ href: "#top-models", label: "Top Models" }, { href: "#top-models", label: "Top Models" },
{ href: "#leaderboard", label: "Leaderboard" }, { href: "#leaderboard", label: "Leaderboard" },
{ href: "#market-share", label: "Market Share" },
{ href: "#token-cost", label: "Token Cost" }, { href: "#token-cost", label: "Token Cost" },
{ href: "#session-cost", label: "Session Cost" }, { href: "#session-cost", label: "Session Cost" },
{ href: "#market-share", label: "Market Share" },
] as const ] as const
const githubLink = { const githubLink = {
href: "https://github.com/anomalyco/opencode", href: "https://github.com/anomalyco/opencode",
@@ -160,9 +160,9 @@ export default function StatsHome() {
<> <>
<Hero updatedAt={stats().updatedAt} /> <Hero updatedAt={stats().updatedAt} />
<TopModelsSection data={stats().usage} leaderboard={stats().leaderboard} /> <TopModelsSection data={stats().usage} leaderboard={stats().leaderboard} />
<MarketShareSection data={stats().market} />
<TokenCostSection data={stats().tokenCost} /> <TokenCostSection data={stats().tokenCost} />
<SessionCostSection data={stats().sessionCost} /> <SessionCostSection data={stats().sessionCost} />
<MarketShareSection data={stats().market} />
</> </>
)} )}
</Show> </Show>
@@ -913,7 +913,7 @@ function MarketShareSection(props: { data: StatsHomeData["market"] }) {
setInspecting(false) setInspecting(false)
}} }}
> >
<SectionBridge label="LEADERBOARD" href="#leaderboard" /> <SectionBridge label="SESSION COST" href="#session-cost" />
<SectionTitle title="Market Share" description="Compare token share by model author." /> <SectionTitle title="Market Share" description="Compare token share by model author." />
<Show <Show
when={activeDay()} when={activeDay()}
@@ -1154,7 +1154,7 @@ function TokenCostSection(props: { data: StatsHomeData["tokenCost"] }) {
return ( return (
<section id="token-cost" data-section="token-cost"> <section id="token-cost" data-section="token-cost">
<SectionBridge label="MARKET SHARE" href="#market-share" /> <SectionBridge label="LEADERBOARD" href="#leaderboard" />
<SectionTitle title="Token Cost" description="Price per 1M tokens." /> <SectionTitle title="Token Cost" description="Price per 1M tokens." />
<Show <Show
when={visible().length > 0} when={visible().length > 0}
@@ -1509,9 +1509,9 @@ function Footer(props: {
const modelStats = [ const modelStats = [
{ href: "#top-models", label: "Top Models" }, { href: "#top-models", label: "Top Models" },
{ href: "#leaderboard", label: "Leaderboard" }, { href: "#leaderboard", label: "Leaderboard" },
{ href: "#market-share", label: "Market Share" },
{ href: "#token-cost", label: "Token Cost" }, { href: "#token-cost", label: "Token Cost" },
{ href: "#session-cost", label: "Session Cost" }, { href: "#session-cost", label: "Session Cost" },
{ href: "#market-share", label: "Market Share" },
] ]
const legal = [ const legal = [
{ href: "https://opencode.ai/legal/terms-of-service", label: "Terms of service" }, { href: "https://opencode.ai/legal/terms-of-service", label: "Terms of service" },
@@ -1527,7 +1527,7 @@ function Footer(props: {
return ( return (
<footer data-component="footer"> <footer data-component="footer">
<SectionBridge label="SESSION COST" href="#session-cost" /> <SectionBridge label="MARKET SHARE" href="#market-share" />
<div data-slot="footer-grid"> <div data-slot="footer-grid">
<a data-slot="footer-mark" href="https://opencode.ai" aria-label="OpenCode home"> <a data-slot="footer-mark" href="https://opencode.ai" aria-label="OpenCode home">
<OpenCodeMark /> <OpenCodeMark />