fix(plans): stop advertising egress controls on the Enterprise plan (#736)

* fix(plans): stop advertising egress controls on the Enterprise plan

No team can choose an egress policy today (SANDBOX_EGRESS_PRESET is operator-wide and open by default), so the plan cards drop the egress_controls line. The catalog feature and entitlements are unchanged.

* style: oxfmt
This commit is contained in:
Neil
2026-11-13 15:42:12 -08:00
committed by GitHub
parent f65c5b3c81
commit 613d0d42c2
4 changed files with 22 additions and 2 deletions
@@ -43,6 +43,8 @@ describe("plans dialog from billing's catalog", () => {
screen.getByText('60 sandbox hours per seat each month, pooled across your team')
).toBeTruthy()
expect(screen.getByText('Run sandboxes in your own cloud account')).toBeTruthy()
// The catalog lists egress_controls on Enterprise, but no team can set an egress policy yet.
expect(screen.queryByText(/egress/i)).toBeNull()
fireEvent.click(screen.getByRole('button', { name: /Continue to checkout/ }))
expect(props.onCheckout).toHaveBeenCalledWith({ planId: 'team', interval: 'month', seats: 4 })
fireEvent.click(screen.getByRole('button', { name: /Contact sales/ }))
@@ -35,6 +35,23 @@ describe('plan feature copy', () => {
).toBe('Sleeps after 15 minutes idle, so quiet time is free')
})
it('never advertises egress controls, which no team can configure yet', () => {
const egress = { id: 'egress_controls', params: {}, text: 'Network egress controls' }
expect(planFeatureLine(egress, context, t, 'en-US')).toBeNull()
expect(
planFeatureLines(
[
{ id: 'byoc', params: {}, text: 'x' },
egress,
{ id: 'custom_limits', params: {}, text: 'x' }
],
context,
t,
'en-US'
)
).toEqual(['Run sandboxes in your own cloud account', 'Custom limits, invoicing and terms'])
})
it("shows billing's text for ids it does not know, or a known id missing its numbers", () => {
expect(
planFeatureLine(
@@ -87,7 +87,9 @@ export function planFeatureLine(
case 'sso_scim':
return t('auto.components.billing.plans.entSso', 'SSO, SCIM provisioning and audit logs')
case 'egress_controls':
return t('auto.components.billing.plans.entNetwork', 'Network policy and egress controls')
// Not offered yet: the sandbox egress policy is one operator-wide setting, open by default, and
// no team can choose its own. The catalog keeps the feature; the desktop doesn't advertise it.
return null
case 'custom_limits':
return t('auto.components.billing.plans.entTerms', 'Custom limits, invoicing and terms')
default:
-1
View File
@@ -21548,7 +21548,6 @@
"plans": {
"entByoc": "Run sandboxes in your own cloud account",
"entSso": "SSO, SCIM provisioning and audit logs",
"entNetwork": "Network policy and egress controls",
"entTerms": "Custom limits, invoicing and terms",
"contactSales": "Contact sales",
"eyebrow": "Orca Cloud",