logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.94k stars 446 forks source link

refactor(schemas, console): remove deprecated ReservedPlanIds #6820

Open simeng-li opened 4 days ago

simeng-li commented 4 days ago

Summary

Remove deprecated ReservedPlanIds and refactor the skuId usage in the console. Enterprise is not a valid skuId in the Logto system, and should not define a ReservedPlanIds.Enterprise .

Testing

Checklist

github-actions[bot] commented 4 days ago

COMPARE TO master

Total Size Diff :chart_with_downwards_trend: -2.16 KB

Diff by File |Name|Diff| |---|---| |packages/console/src/components/ApplicationCreation/CreateForm/Footer/index.tsx|:chart_with_downwards_trend: -36 Bytes| |packages/console/src/components/CreateConnectorForm/Footer/index.tsx|:chart_with_downwards_trend: -36 Bytes| |packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/SkuCardItem/index.tsx|:chart_with_downwards_trend: -15 Bytes| |packages/console/src/components/MauExceededModal/index.tsx|:chart_with_downwards_trend: -70 Bytes| |packages/console/src/components/PlanDescription/index.tsx|:chart_with_downwards_trend: -86 Bytes| |packages/console/src/components/SkuName/index.tsx|:chart_with_downwards_trend: -94 Bytes| |packages/console/src/components/Topbar/TenantSelector/TenantDropdownItem/index.tsx|:chart_with_downwards_trend: -62 Bytes| |packages/console/src/pages/ApiResourceDetails/ApiResourcePermissions/components/CreatePermissionModal/index.tsx|:chart_with_downwards_trend: -36 Bytes| |packages/console/src/pages/ApiResources/components/CreateForm/Footer.tsx|:chart_with_downwards_trend: -36 Bytes| |packages/console/src/pages/Applications/components/ProtectedAppForm/index.tsx|:chart_with_downwards_trend: -36 Bytes| |packages/console/src/pages/RoleDetails/RolePermissions/components/AssignPermissionsModal/index.tsx|:chart_with_downwards_trend: -36 Bytes| |packages/console/src/pages/Roles/components/CreateRoleForm/Footer.tsx|:chart_with_downwards_trend: -36 Bytes| |packages/console/src/pages/TenantSettings/BillingHistory/index.tsx|:chart_with_downwards_trend: -709 Bytes| |packages/console/src/pages/TenantSettings/Subscription/CurrentPlan/index.tsx|:chart_with_downwards_trend: -150 Bytes| |packages/console/src/pages/TenantSettings/Subscription/SwitchPlanActionBar/index.tsx|:chart_with_downwards_trend: -12 Bytes| |packages/console/src/pages/Webhooks/CreateFormModal/CreateForm.tsx|:chart_with_downwards_trend: -36 Bytes| |packages/console/src/types/subscriptions.ts|:chart_with_downwards_trend: -248 Bytes| |packages/schemas/src/consts/subscriptions.ts|:chart_with_downwards_trend: -669 Bytes|