Skip to content

feat(admin): Add action to set a customer's contract package - #128965

Draft
noahsmartin wants to merge 1 commit into
masterfrom
feat/admin-set-contract-package
Draft

noahsmartin wants to merge 1 commit into
masterfrom
feat/admin-set-contract-package

Conversation

@noahsmartin

Copy link
Copy Markdown
Contributor

Add a "Set Contract Package" customer action to gsAdmin. It takes a package uid and posts it to /_admin/customers/{org}/contract/package/, which moves the org's current billing platform contract to that package immediately. There's no checkout, proration, invoice, or rollover, so admins can set packages that customers can't self-serve into.

The action only shows for orgs on the billing platform and requires billing.admin, matching the backend. Confirm stays disabled until a uid is entered, and backend errors (unknown package, pending change, no contract) are shown as toasts.

Depends on getsentry/getsentry#22803. Deploy the backend first: until then the endpoint 404s and the action shows an error.

Add a "Set Contract Package" customer action in gsAdmin that posts a
package uid to the new _admin contract/package endpoint. It moves the
org's current billing platform contract to that package immediately,
without checkout, so admins can set packages that are not self-serve.

The action only shows for orgs on the billing platform and requires
billing.admin, matching the backend.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

Metric Before After Delta
Coverage 95.81% 95.81% ±0%
Typed 141,717 141,730 🟢 +13
Untyped 6,201 6,204 🔴 +3
🔍 1 new type safety issue introduced

any-typed symbols (1 new)

File Line Detail
static/gsAdmin/views/customerDetails.tsx 257 detail (var)

This is informational only and does not block the PR.

This branch was successfully deployed

1 active deployment
Preview — 0531762b Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant