Models: capability radars, cards/table + model pages, routed-usage ranking hero - #33
Open
SPIKESPIGEL404 wants to merge 1 commit into
Open
Models: capability radars, cards/table + model pages, routed-usage ranking hero#33SPIKESPIGEL404 wants to merge 1 commit into
SPIKESPIGEL404 wants to merge 1 commit into
Conversation
…ed-usage hero Rebuild /models as a capability surface driven by six moat axes (intelligence · coding · agentic · cost · speed · reliability), all on the shadcn Chart (Recharts) stack with hover tooltips. - Ranking hero: "what the router routed to" — daily stacked bar chart of routed-call share + a WoW-delta ranked list (model-usage.ts, usage-chart.tsx, rank-list.tsx). - Cards ⇄ table view switch (?view= + localStorage); cards show a capability radar, table shows the same axes as sortable columns. - Per-model page (models/[...slug]) re-skinned to mono: capability radar + axis bars + "how the router uses this model" panel + call terminal + similar models. - Shared shadcn chart wrapper (components/ui/chart.tsx), adapted for recharts v3. - Design spec under docs/superpowers/specs/. ALL data is deterministic MOCK (labelled "sample"/"~ estimated" in the UI); `cost` is the only real axis. See the SWITCH TO REAL DATA blocks in lib/model-usage.ts and lib/model-capability.ts — must be wired before merge. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebuilds
/modelsfrom a flat price catalog into a capability surface: every model is shown as the capability shape the router matches a call against, and the page opens with "what the router routed to" — a routed-usage ranking. All charts share the shadcn Chart (Recharts) stack with hover tooltips.Everything is deterministic MOCK, labelled
sample/~ estimatedin the UI. Do not merge as live data. Swap points (return shapes stay identical — components need no changes):lib/model-usage.ts→mockUsage— replace with real BitRouter routing telemetry: daily routed-call counts per model (series[].values) + this-week/last-week share (ranked[].share/.delta). See theSWITCH TO REAL DATAblock at the top of the file.lib/model-capability.ts→capabilityAxes—intelligence/codingfrom Artificial Analysis (or our evals);agentic/reliabilityfrom routing telemetry.costis already real (from input price). See theSWITCH TO REAL DATAblock.lib/model-capability.ts→routerUsage— the model page's "how the router uses this model" panel (policy mix / role / share) is mock; wire to routing telemetry.Until wired, keep the
sample/~ estimatedlabels visible.What's in it
?view=+ localStorage). Cards show a capability radar; table shows the same six axes as sortable columns.models/[...slug]) re-skinned to mono: capability radar + axis bars, the router-usage panel, an animated call terminal, pricing, and similar-model links. Each model = one indexable URL (GEO).intelligence · coding · agentic · cost · speed · reliability— deliberately not the Artificial Analysis breakdown;costplotted as affordability so bigger-is-better holds on every spoke.components/ui/chart.tsx), adapted for recharts v3.docs/superpowers/specs/2026-07-13-models-radar-capability-design.md.Notes / decisions
isAnimationActive={false}on bars is required or Recharts leaves them at ~0 height (ResponsiveContainer measures from 0).🤖 Generated with Claude Code