Skip to content

Commit

Permalink
fix(schemas,console): update comments and fix console
Browse files Browse the repository at this point in the history
update comment and fix console missing key
  • Loading branch information
simeng-li committed Nov 28, 2024
1 parent 7ec25db commit 1a84672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/console/src/components/SkuName/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const registeredPlanNamePhraseMap: Record<
> = {
[ReservedPlanId.Free]: 'free_plan',
[ReservedPlanId.Pro]: 'pro_plan',
[ReservedPlanId.Pro202411]: 'pro_plan',
[ReservedPlanId.Development]: 'dev_plan',
[ReservedPlanId.Admin]: 'admin_plan',
} satisfies Record<ReservedPlanId, TFuncKey<'translation', 'admin_console.subscription'>>;
Expand Down
6 changes: 2 additions & 4 deletions packages/schemas/src/consts/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export enum ReservedPlanId {
Free = 'free',
/**
* @deprecated
* Grandfathered pro plan ID deprecated from 2024-11.
* Grandfathered Pro plan ID deprecated from 2024-11.
* Use {@link Pro202411} instead.
*/
Pro = 'pro',
Expand All @@ -19,9 +19,7 @@ export enum ReservedPlanId {
*/
Admin = 'admin',
/**
* New pro plan ID applied from 2024-11.
* This plan ID will used for new pro plan users.
* Deprecated {@link Pro} plan ID only for grandfathered users.
* The latest Pro plan ID applied from 2024-11.
*/
Pro202411 = 'pro-202411',
}

0 comments on commit 1a84672

Please sign in to comment.