zzzkl3994 on Discord: Usage → Requests, Speed, on 7 or 30 days, today's
column showed one of the five models used today. The chart's colours were
the ranking's top 7, ranked by speed, so a month's fastest models of a
reply or two on an older day took every colour; a speed chart has no
"Other" column, so a model past the colours was drawn nowhere, in the
columns, the lines and the tooltip alike. Today has fewer models, so it
looked right.
Now the chart's colours (ledCategories with chart set) go to the models
most timed (decode_n), ones with a measured speed only, and a model past
them is a faint mark (and a faint line) of its own and a row in the
tooltip. The ranking keeps its speed order and takes the chart's colours,
as it already did for a picked day (chartBy). Tokens, cost and requests
keep their rule: top 7 by that metric, the rest stacked as grey "Other",
which drops nobody. The tray panel draws through the same functions.
Run on mote:
- new internal/gui/tests/usage-speed-all-models.test.cjs: Today, 7 days
and 30 days, columns and lines, tooltip, ranking colours = chart's;
chromium + webkit, en/zh/zh-TW/ja/de, 1100 and 420: 22/22 pass.
Against origin/main's app.js and usage/page.js: 22/22 red, Today passes
and 7 days loses glm-5.1 etc. (the report's shape).
- node --test internal/gui/tests/{usage,panel,reasoning-speed,i18n}*.test.cjs
(100 files, at 09812e66b): 1536 pass, 34 fail, in usage-agents-hide,
usage-fold, usage-ledger "the Usage page's Requests", i18n-keys and one
reasoning-speed webkit zh case. Run alone on origin/main 1615e5a14 the
same reds come back except reasoning-speed (passes there, and at this
head); they are filed: #3414, #3415, #5048, #5332/#5426/#5482.
- At this head (rebased on 1615e5a14): usage-speed-all-models,
usage-speed-tip, usage-chart-line, reasoning-speed: 86/86 pass;
go test ./internal/gui -run Budget: ok. app.js is 28 bytes smaller than
before: the new lines are paid for by drawLedColumns' comments cut, no
raise.
Not tried: the real app with a real ledger (fixture only); models whose
speed is only a session-file floor (≥ tok/s) still have no mark, as before.
Reported-by: zzzkl3994 (Discord)