Skip to content

fix: hide model scopes for non-antigravity plans#2521

Merged
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
Brisbanehuang:codex/fix-subscription-model-scopes
May 19, 2026
Merged

fix: hide model scopes for non-antigravity plans#2521
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
Brisbanehuang:codex/fix-subscription-model-scopes

Conversation

@Brisbanehuang

Copy link
Copy Markdown
Contributor

Summary

  • hide Antigravity model scope badges on non-Antigravity subscription plan cards
  • normalize submitted supported_model_scopes so non-Antigravity groups clear hidden scope values on create/update
  • add focused tests for plan-card rendering and scope normalization

Root cause

The Antigravity-only supported_model_scopes field can keep its default values even when the group platform is OpenAI or another provider. Subscription cards rendered those scopes without checking the platform, so non-Antigravity plans could show Claude/Gemini/Imagen badges.

Test Plan

  • pnpm run typecheck
  • pnpm exec vitest run src/components/payment/__tests__/SubscriptionPlanCard.spec.ts src/views/admin/__tests__/groupsSupportedModelScopes.spec.ts src/components/payment/__tests__/paymentFlow.spec.ts src/views/admin/__tests__/groupsMessagesDispatch.spec.ts

@Brisbanehuang Brisbanehuang marked this pull request as ready for review May 16, 2026 18:25
@Wei-Shaw Wei-Shaw merged commit a84bf3f into Wei-Shaw:main May 19, 2026
7 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants