zcode 0.1.36: a gift bucket beside a Coding Plan is named by its model first (#504)
Danbuth's GLM Coding Max account had claimed ZCode's Start Plan (plan_id zcode-v3-start-plan-1029, named "ZCODE GLOBAL BUILD") and found no Start Plan on magpie's card. The plugin did read it: usage asks /billing/balance beside /quota/limit and adds every live gift plan's buckets after the Coding windows, whatever the plan type, every plan and not only the first. The bucket was the panel's third ring, named "ZCODE GLOBAL BUILD · GLM-5.3-Trial", which magpie's ring and account row cut to "ZCODE GLOBAL BUI…": neither the model nor the plan's kind. ZCode 3.16.3's own popover (host getStartPlanSnapshot, renderer "Today's balance") lists these buckets by show_name, apart from the Coding Plan's windows. So a gift bucket's name now starts with that (the picker's -Trial id when it counts a model) and the plan follows: "GLM-5.3-Trial · ZCODE GLOBAL BUILD". A gift-only account with several plans names them the same way round. Run (on mote, HOME=$(mktemp -d)): `bun test packages/zcode`, 151 pass 0 fail; `bun scripts/check.mjs`, every package ok, exit 0. The new test uses a real /quota/limit reply (owner's account, read in a sandbox HOME copy with GETs only) and the real ZCODE GLOBAL BUILD plan row from #503, times moved to now. Broken by hand (old label order): the new test and five others red; put back, green. Not tried: a real balance of the ZCODE GLOBAL BUILD plan (the owner's account has none), so its buckets take the shape of ganlerk's Start Plan balance. Not changed: magpie's tray panel shows at most three rings and the account row two windows, so beside a Coding Plan's 5h and weekly only the first gift bucket is on the panel; the rest are in the tooltip and on the Usage page.
This commit is contained in:
@@ -166,9 +166,12 @@ and end. The card's plan and term stay the coding plan's. A gift read
|
||||
that fails leaves just the coding card — magpie hides a card's windows
|
||||
behind an error, so a gift hiccup must not black out a working Coding
|
||||
Plan. A gift that goes out of date while requests use it simply stops
|
||||
showing. Beside the coding plan's windows each gift bucket is named
|
||||
after its plan ("Start Plan · GLM-5.1-Trial"), one plan or several, so
|
||||
the two allowances can't be read as one.
|
||||
showing. Beside the coding plan's windows each gift bucket is named by
|
||||
its model first, as ZCode's own "Today's balance" lists it, then by its
|
||||
plan ("GLM-5.1-Trial · Start Plan"), one plan or several, so the two
|
||||
allowances can't be read as one. The model comes first because magpie's
|
||||
ring and account row cut a long name short: "ZCODE GLOBAL BUI…" (the
|
||||
Start Plan claimed on 10-29) said neither (#504).
|
||||
|
||||
**Gift plans that start later.** A plan on the balance whose `starts_at`
|
||||
is still to come (a Start Plan taking effect at 23:00 today) serves
|
||||
|
||||
Reference in New Issue
Block a user