@@ -37,6 +37,11 @@ export class OnboardingTenantListComponent extends RouteComponentBaseDirective {
3737 floatingFilter : true ,
3838 resizable : true ,
3939 } ;
40+ tierOptions = [
41+ { name : 'Basic' , value : 'BASIC' } ,
42+ { name : 'Standard' , value : 'STANDARD' } ,
43+ { name : 'Premium' , value : 'PREMIUM' } ,
44+ ] ;
4045
4146 constructor (
4247 protected override readonly location : Location ,
@@ -106,6 +111,15 @@ export class OnboardingTenantListComponent extends RouteComponentBaseDirective {
106111 filter : 'agTextColumnFilter' ,
107112 floatingFilter : true ,
108113 } ,
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+ } ,
109123 {
110124 field : 'status' ,
111125 headerName : 'Subscription Status' ,
@@ -186,13 +200,19 @@ export class OnboardingTenantListComponent extends RouteComponentBaseDirective {
186200 . filter ( ele => ele != null && ele . trim ( ) != '' )
187201 . join ( ' ' ) ;
188202
203+ const displayTier =
204+ this . tierOptions . find (
205+ option => option . value === item . subscription . plan . tier ,
206+ ) ?. name || '' ;
207+
189208 return {
190209 id : item . id ,
191210 name : item . name ,
192211 tenant_name : fullTenantName ,
193212 email : item . email ,
194213 address : addressString ,
195214 planName : item . subscription ?. plan . name ,
215+ tier : displayTier ,
196216 status : TenantStatus [ item . subscription ?. status ] ,
197217 startDate : item . subscription ?. startDate
198218 ? new Date ( item . subscription . startDate ) . toLocaleDateString ( )
0 commit comments