fix(stats): use data branding assets

This commit is contained in:
Adam
2026-06-09 11:34:38 -05:00
parent ada5b31bb0
commit f1c31f4eba
9 changed files with 51 additions and 80 deletions
+10 -10
View File
@@ -41,7 +41,7 @@ const modelHeaderLinks: readonly HeaderLink[] = [
{ href: "#peers", label: "Peers" },
]
const modelFooterLinks: readonly HeaderLink[] = [
{ href: import.meta.env.BASE_URL, label: "Stats Home" },
{ href: import.meta.env.BASE_URL, label: "Data Home" },
{ href: `${import.meta.env.BASE_URL}#top-models`, label: "Top Models" },
{ href: `${import.meta.env.BASE_URL}#leaderboard`, label: "Leaderboard" },
{ href: `${import.meta.env.BASE_URL}#session-cost`, label: "Session Cost" },
@@ -110,10 +110,10 @@ export default function StatsModel() {
const [themePreference, setThemePreference] = createSignal<ThemePreference>("system")
const modelName = createMemo(() => catalogEntry()?.name ?? stats()?.model ?? modelParam() ?? "Model")
const labName = createMemo(() => formatCatalogLabName(catalogEntry()?.lab ?? stats()?.provider ?? labParam()))
const modelTitle = createMemo(() => `${modelName()} Stats`)
const modelTitle = createMemo(() => `${modelName()} Data`)
const modelDescription = createMemo(() =>
stats()
? `${modelName()} usage, rank, token mix, cost, geo breakdown, and peer stats across OpenCode.`
? `${modelName()} usage, rank, token mix, cost, geo breakdown, and peer data across OpenCode.`
: `${modelName()} model facts, limits, and OpenCode usage availability.`,
)
const modelUrl = createMemo(() =>
@@ -183,15 +183,15 @@ function ModelLoading() {
<div data-slot="model-hero-grid">
<div data-slot="model-hero-copy">
<a data-slot="model-back-link" href={import.meta.env.BASE_URL}>
Stats
Data
</a>
<h1>Model Stats</h1>
<h1>Model Data</h1>
<p>Reading model aggregates from model_stat.</p>
</div>
</div>
</section>
<section data-section="model-panel">
<ModelEmptyState title="Loading model stats" description="Reading the model profile." />
<ModelEmptyState title="Loading model data" description="Reading the model profile." />
</section>
</>
)
@@ -204,7 +204,7 @@ function ModelNotFound(props: { lab: string; model: string }) {
<div data-slot="model-hero-grid">
<div data-slot="model-hero-copy">
<a data-slot="model-back-link" href={import.meta.env.BASE_URL}>
Stats
Data
</a>
<h1>{props.model || "Model"}</h1>
<p>No model facts or model_stat rows matched {props.lab ? `${props.lab}/${props.model}` : props.model}.</p>
@@ -225,7 +225,7 @@ function ModelHero(props: { data: StatsModelData | null; catalog: ModelCatalogEn
return (
<section id="overview" data-section="model-hero">
<a data-slot="model-back-link" href={import.meta.env.BASE_URL}>
Stats
Data
</a>
<div data-slot="model-hero-grid">
<div data-slot="model-hero-copy">
@@ -279,7 +279,7 @@ function ModelCatalogCallout(props: { catalog: ModelCatalogEntry | null }) {
<div data-component="model-rank-panel">
<span>Model Profile</span>
<strong>{props.catalog?.releaseDate ? formatCatalogDate(props.catalog.releaseDate) : "Listed"}</strong>
<p>No OpenCode usage in the current stats window.</p>
<p>No OpenCode usage in the current data window.</p>
</div>
)
}
@@ -446,7 +446,7 @@ function ModelEfficiencySection(props: { data: StatsModelData | null }) {
<Show
when={props.data}
fallback={
<ModelEmptyState title="No efficiency data" description="Cost and cache stats appear after usage lands." />
<ModelEmptyState title="No efficiency data" description="Efficiency data appears after usage lands." />
}
>
{(data) => (
@@ -35,7 +35,7 @@ const labHeaderLinks: readonly HeaderLink[] = [
{ href: "#models", label: "Models" },
]
const labFooterLinks: readonly HeaderLink[] = [
{ href: import.meta.env.BASE_URL, label: "Stats Home" },
{ href: import.meta.env.BASE_URL, label: "Data Home" },
{ href: `${import.meta.env.BASE_URL}#top-models`, label: "Top Models" },
{ href: `${import.meta.env.BASE_URL}#market-share`, label: "Market Share" },
{ href: `${import.meta.env.BASE_URL}#geo-breakdown`, label: "Geo Breakdown" },
@@ -69,7 +69,7 @@ export default function StatsLab() {
const labTitle = createMemo(() => `${labName()} Models`)
const labDescription = createMemo(
() =>
`Explore ${labName()} models used in OpenCode, with recent token usage, context windows, release dates, and model-specific stats.`,
`Explore ${labName()} models used in OpenCode, with recent token usage, context windows, release dates, and model-specific data.`,
)
const labUrl = createMemo(() =>
new URL(
@@ -136,7 +136,7 @@ function LabLoading() {
<div data-slot="model-hero-grid">
<div data-slot="model-hero-copy">
<a data-slot="model-back-link" href={import.meta.env.BASE_URL}>
Stats
Data
</a>
<h1>Model Lab</h1>
<p>Reading model availability and recent OpenCode usage.</p>
@@ -152,7 +152,7 @@ function LabNotFound(props: { lab: string }) {
<div data-slot="model-hero-grid">
<div data-slot="model-hero-copy">
<a data-slot="model-back-link" href={import.meta.env.BASE_URL}>
Stats
Data
</a>
<h1>{formatCatalogLabName(props.lab)}</h1>
<p>No models matched this lab.</p>
@@ -175,7 +175,7 @@ function LabHero(props: { lab: ModelCatalogLab; stats: StatsLabData | null }) {
return (
<section id="overview" data-section="lab-hero">
<a data-slot="model-back-link" href={import.meta.env.BASE_URL}>
Stats
Data
</a>
<div data-slot="model-hero-grid">
<div data-slot="model-hero-copy">
@@ -184,7 +184,7 @@ function LabHero(props: { lab: ModelCatalogLab; stats: StatsLabData | null }) {
<p>
Explore {props.lab.models.length} {props.lab.name} models used in OpenCode
<Show when={featuredModels().length > 0}> including {formatList(featuredModels())}</Show>. Compare recent
token usage, context windows, release dates, and model-specific stats.
token usage, context windows, release dates, and model-specific data.
</p>
</div>
<div data-component="model-rank-panel">