From a88c7ec38007c5d7a811dac4d871c2a67e96e1c2 Mon Sep 17 00:00:00 2001 From: Ani Date: Tue, 4 Aug 2026 19:06:38 +0530 Subject: [PATCH] feat(status): show minimax h3 as red high demand Paint MiniMax H3 (and other limited models) with a red status and High demand label so scarce capacity reads clearly on the catalog. Co-authored-by: Cursor --- web/console/app/globals.css | 10 ++++++++++ web/console/components/PublicStatusPage.tsx | 10 +++++++--- web/console/lib/demoNetwork.ts | 2 +- web/console/test/console.test.tsx | 8 +++++--- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/web/console/app/globals.css b/web/console/app/globals.css index b112a84..28c1257 100644 --- a/web/console/app/globals.css +++ b/web/console/app/globals.css @@ -268,6 +268,7 @@ body:has(.public-page) { --pub-line-strong: #d8d8dc; --pub-code-bg: #f6f6f6; --pub-live: #1a7f37; + --pub-demand: #c62828; color-scheme: light; display: block; min-height: 100vh; @@ -778,6 +779,11 @@ body:has(.public-page) { font-size: 14px; } +.model-state .availability.demand { + color: var(--pub-demand); + font-weight: 600; +} + .model-state .speed { color: var(--pub-secondary); font-size: 12.5px; @@ -800,6 +806,10 @@ body:has(.public-page) { background: var(--pub-live); } +.dot.demand { + background: var(--pub-demand); +} + .application form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); diff --git a/web/console/components/PublicStatusPage.tsx b/web/console/components/PublicStatusPage.tsx index 0b76de0..4beeff0 100644 --- a/web/console/components/PublicStatusPage.tsx +++ b/web/console/components/PublicStatusPage.tsx @@ -309,6 +309,7 @@ function ModelRow({ }) { const waitlisted = model.availability.state === "waitlist"; const live = model.availability.state === "available"; + const highDemand = model.availability.state === "limited"; const discount = comparisonDiscountPercent(model); return (
@@ -363,8 +364,11 @@ function ModelRow({ {discount ? ~{discount}% cheaper : null}
-

-

+

{speedLabel(model)}

@@ -381,7 +385,7 @@ function availabilityLabel(model: PublicCatalogModel) { case "available": return "Available now"; case "limited": - return "Limited right now"; + return "High demand"; case "waitlist": return "Available on request"; default: diff --git a/web/console/lib/demoNetwork.ts b/web/console/lib/demoNetwork.ts index e93e58d..8a9eb10 100644 --- a/web/console/lib/demoNetwork.ts +++ b/web/console/lib/demoNetwork.ts @@ -69,7 +69,7 @@ type DemoAvail = { }; const DEMO_AVAILABILITY: Record = { - "minimax-h3": { state: "available", nodes: 14, tps: 8 }, + "minimax-h3": { state: "limited", nodes: 14, tps: 8 }, "llama-3.1-8b-instruct": { state: "available", nodes: 58, tps: 34 }, "qwen2.5-7b-instruct": { state: "available", nodes: 67, tps: 31 }, "deepseek-r1-distill-llama-8b": { state: "available", nodes: 42, tps: 29 }, diff --git a/web/console/test/console.test.tsx b/web/console/test/console.test.tsx index c74c840..9534806 100644 --- a/web/console/test/console.test.tsx +++ b/web/console/test/console.test.tsx @@ -203,7 +203,7 @@ describe("console components", () => { const ranked = withDemoModelAvailability(mergeShowcaseModels(thin.models), 0); expect(ranked[0].model_id).toBe("minimax-h3"); - expect(ranked[0].availability.state).toBe("available"); + expect(ranked[0].availability.state).toBe("limited"); expect(ranked.find((model) => model.model_id === "qwen2.5-7b-instruct")?.availability.state).toBe( "available" ); @@ -219,8 +219,10 @@ describe("console components", () => { expect(figures.getByText("7")).toBeInTheDocument(); expect(container.querySelectorAll(".map-cell.hot").length).toBeGreaterThan(10); expect(screen.getAllByText("Available now").length).toBeGreaterThan(3); - const minimaxRow = within(modelRowByName(container, "MiniMax H3")); - expect(minimaxRow.getByText("Available now")).toBeInTheDocument(); + const minimaxEl = modelRowByName(container, "MiniMax H3"); + expect(within(minimaxEl).getByText("High demand")).toBeInTheDocument(); + expect(minimaxEl.querySelector(".availability.demand")).not.toBeNull(); + expect(minimaxEl.querySelector(".dot.demand")).not.toBeNull(); }); it("omits the comparison entirely when a manifest has no market numbers", () => {