@@ -37,6 +37,11 @@ export class OnboardingTenantListComponent extends RouteComponentBaseDirective {
37
37
floatingFilter : true ,
38
38
resizable : true ,
39
39
} ;
40
+ tierOptions = [
41
+ { name : 'Basic' , value : 'BASIC' } ,
42
+ { name : 'Standard' , value : 'STANDARD' } ,
43
+ { name : 'Premium' , value : 'PREMIUM' } ,
44
+ ] ;
40
45
41
46
constructor (
42
47
protected override readonly location : Location ,
@@ -106,6 +111,15 @@ export class OnboardingTenantListComponent extends RouteComponentBaseDirective {
106
111
filter : 'agTextColumnFilter' ,
107
112
floatingFilter : true ,
108
113
} ,
114
+ {
115
+ field : 'tier' ,
116
+ headerName : 'Tier' ,
117
+ minWidth : 120 ,
118
+ flex : 1 ,
119
+ filter : 'agTextColumnFilter' ,
120
+ floatingFilter : true ,
121
+ cellStyle : { textAlign : 'center' } , // Optional styling for the column
122
+ } ,
109
123
{
110
124
field : 'status' ,
111
125
headerName : 'Subscription Status' ,
@@ -186,13 +200,19 @@ export class OnboardingTenantListComponent extends RouteComponentBaseDirective {
186
200
. filter ( ele => ele != null && ele . trim ( ) != '' )
187
201
. join ( ' ' ) ;
188
202
203
+ const displayTier =
204
+ this . tierOptions . find (
205
+ option => option . value === item . subscription . plan . tier ,
206
+ ) ?. name || '' ;
207
+
189
208
return {
190
209
id : item . id ,
191
210
name : item . name ,
192
211
tenant_name : fullTenantName ,
193
212
email : item . email ,
194
213
address : addressString ,
195
214
planName : item . subscription ?. plan . name ,
215
+ tier : displayTier ,
196
216
status : TenantStatus [ item . subscription ?. status ] ,
197
217
startDate : item . subscription ?. startDate
198
218
? new Date ( item . subscription . startDate ) . toLocaleDateString ( )
0 commit comments