Commit 66d39cb
committed
feat: add ENTERPRISE tier label mapping
Adds ENTERPRISE to the workspace tier-label lookup so an enterprise
subscription renders its display name instead of a blank string
(tierKeyMap is a loose Record<string, string> that silently returns
'' for unmapped keys, so this gap wasn't caught by types).
- src/platform/workspace/composables/useWorkspaceTierLabel.ts: add
ENTERPRISE -> enterprise mapping
- src/locales/en/main.json: add subscription.tiers.enterprise.name
- useWorkspaceTierLabel.test.ts: cover the new mapping directly and
via the plan-slug fallback; the prior "unknown tier" fallback test
used ENTERPRISE_CUSTOM as its example, which now matches, so it was
swapped for an example that stays unmapped1 parent 4c5afc8 commit 66d39cb
3 files changed
Lines changed: 21 additions & 3 deletions
File tree
- src
- locales/en
- platform/workspace/composables
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2878 | 2878 | | |
2879 | 2879 | | |
2880 | 2880 | | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
2881 | 2884 | | |
2882 | 2885 | | |
2883 | 2886 | | |
| |||
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
109 | | - | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
115 | 129 | | |
116 | 130 | | |
117 | 131 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments