Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions apps/proxy/src/app/users/user/user.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,43 @@
</td>
</ng-container>

<!-- User ID Column -->
<ng-container matColumnDef="user_id">
<th mat-header-cell *matHeaderCellDef mat-sort-header>User ID</th>
<td mat-cell *matCellDef="let element" data-label="User ID">
<ng-container *ngIf="!loading.dataLoading; else loadingRef">
{{ element?.id }}
<proxy-copy-button
[copyData]="element?.id"
tooltip="Copy User ID"
></proxy-copy-button>
</ng-container>
</td>
</ng-container>

<!-- Block Name Column -->
<ng-container matColumnDef="block_name">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Block Name</th>
<td mat-cell *matCellDef="let element" data-label="Block Name">
<ng-container *ngIf="!loading.dataLoading; else loadingRef">
{{ element?.feature_configuration?.name }}
</ng-container>
</td>
</ng-container>

<!-- Last Login Column -->
<ng-container matColumnDef="last_login">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Last Login</th>
<td mat-cell *matCellDef="let element" data-label="Last Login">
<ng-container *ngIf="!loading.dataLoading; else loadingRef">
<span>
{{ element?.last_login_at | date: 'd MMM y' }}
</span>
<span>({{ element?.last_login_at | date: 'mediumTime' }})</span>
</ng-container>
</td>
</ng-container>

<!-- Created At Column -->
<ng-container matColumnDef="created_at">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Created At</th>
Expand Down
10 changes: 9 additions & 1 deletion apps/proxy/src/app/users/user/user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ export class UserComponent extends BaseComponent implements OnDestroy, OnInit {
/** Store User data */
public users$: Observable<IPaginatedResponse<IUser[]>> = this.componentStore.users$;
/** Store display column */
public displayedColumns: string[] = ['name', 'email', 'phone_number', 'created_at'];
public displayedColumns: string[] = [
'name',
'email',
'phone_number',
'user_id',
'block_name',
'last_login',
'created_at',
];
/** Store params for fetching feature data */
public params: any = {};
/** Store default selected date range */
Expand Down