visamzh's Usage card showed a Codex seat's plan as
"Self_serve_business_prolite": ChatGPT's raw plan_type from /wham/usage
and the token, capitalised by CSS. `.plan` was `flex: none`, so the
account's email beside it was squeezed to nothing.
- Names: planName() maps a plan id to what ChatGPT.app's own bundle
calls it (self_serve_business_prolite and self_serve_business_usage_based
are Business, ent26 and enterprise_cbp_* are Enterprise, free_workspace
Free, prolite Pro Lite, promax Pro Max, edu_plus/edu_pro). Only what is
shown changes; q.plan stays the raw id, so quota-all still averages per
plan. Used everywhere a plan is shown: the Usage card's account rows and
head, the panel's group note and card titles, the quota-all line, the
Providers editor's account line, the tray-usage option note, Routing
(row subtitle, account row, group quota line, account pickers) and
gateway keys' account pickers.
- Layout: a plan shrinks first and ellipsises (`flex: 0 100 auto;
min-width: 3em`), with its full text as its title: .subscription-account
.plan, .subscription-head .plan, .pq-gnote and .acct .plan.
Run (mote, macOS, Playwright 1.62.0):
- New plan-name-fits.test.cjs, chromium and webkit x en, zh, zh-TW, ja,
de: the Usage page at 1100/760/420 (four Codex rows, one with an unnamed
long plan; a Volcengine head with a long plan), the panel at 440/360
and the Providers editor at 1000/560. 10 of 10 rebased on 720200092 (rebased again
on 9c39edb92 without conflicts before the push).
- With 27 related GUI files (account rows, panel usage, routing account
rows, gateway key accounts, tray usages, i18n), at 720200092: 442 pass, 2 fail. The 2
are codex-auto-reset webkit de 1100/420 "the click moved the page",
which is #4790, red the same alone at origin/main 401187300 (WSL WebKit).
- TestCoreScriptBudget green at 720200092; at the pushed base 9c39edb92
its sums are core 1,532,976 of 1,533,802, app.js 1,310,221 of 1,316,874
(summed by hand as the test does; mote stopped answering ssh).
- No Go file changed, so gofmt/vet have nothing new.
Broken by hand: the old app.js (no planName) fails on the names; with
only the CSS reverted, row 3's account name collapses at 420 in both
engines and the panel's group name is 0px wide.
Not tried: a real Business account (the id comes from the screenshot and
ChatGPT.app's bundle); the TUI and CLI still print the raw plan id.