diff --git a/src/renderer/src/components/billing/plans/PlansView.test.tsx b/src/renderer/src/components/billing/plans/PlansView.test.tsx index 397ad211a4d..dc286563f20 100644 --- a/src/renderer/src/components/billing/plans/PlansView.test.tsx +++ b/src/renderer/src/components/billing/plans/PlansView.test.tsx @@ -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/ })) diff --git a/src/renderer/src/components/billing/plans/plan-feature-copy.test.ts b/src/renderer/src/components/billing/plans/plan-feature-copy.test.ts index 8f7cba62dba..cbef74292f5 100644 --- a/src/renderer/src/components/billing/plans/plan-feature-copy.test.ts +++ b/src/renderer/src/components/billing/plans/plan-feature-copy.test.ts @@ -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( diff --git a/src/renderer/src/components/billing/plans/plan-feature-copy.ts b/src/renderer/src/components/billing/plans/plan-feature-copy.ts index d9d4dc2b667..7105e2120c3 100644 --- a/src/renderer/src/components/billing/plans/plan-feature-copy.ts +++ b/src/renderer/src/components/billing/plans/plan-feature-copy.ts @@ -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: diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json index ccfbd3ce3bd..7d06a645ac1 100644 --- a/src/renderer/src/i18n/locales/en.json +++ b/src/renderer/src/i18n/locales/en.json @@ -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",