zane668's two Grok accounts both showed "SuperGrok", one of them on a
plan that isn't. Two places named a tier no one had told magpie:
- the account chip's Grok branch (accountPlan in app.js) fell back to
the literal "SuperGrok" when the plugin reported no plan, and the Grok
plugin reports none, so every account said it;
- the retired built-in's provider name (movedCards in plugin_usage.go)
and the Add sheet's Grok tile were "Grok (SuperGrok)".
A known plan is still shown as told; with none, the chip says the
provider's own name, Grok. The provider row and the Add tile say Grok;
the tile's plans line still lists "SuperGrok · X Premium+" as the plans
it takes.
skygunner's patch (their branch fix/r25-grok-plan-absent-label, commit
7ca156c68, on #3668) is the app.js fallback and grok-plan.test.cjs, with
plugin-plan.test.cjs updated; applied as written. The provider name and
the Add tile are added here.
Not changed: the plugin's own name "Grok (SuperGrok)" in
magpie-community/plugins (packages/grok), which magpie's moved-card name
overrides, and the plugin still returns no plan, so the real tier needs
Grok's API for it, which isn't known yet.
Run at the pushed head, on mote:
- GUI (chromium + webkit, narrow widths, every language): grok-plan
(new), plugin-plan, i18n-keys, add-sheet, deprecated-subscriptions,
plugin-market, provider-listed-as, plugin-movable-review,
plugin-signed-out-account: 65 pass, 0 fail.
- go test -tags nogui ./internal/provider/ ./internal/gui/: ok
(TestMovedProviderName now expects "Grok").
- GOOS=linux and GOOS=windows go vet -tags nogui ./internal/provider/:
ok; gofmt -l clean.
- Broken by hand: the "SuperGrok" fallback put back, grok-plan is red.
Not tried: the real Grok plugin signed in with a real account.
Co-authored-by: skygunner <84759+skygunner@users.noreply.github.com>
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>