website refactor
This commit is contained in:
27
apps/website/lib/view-data/AdminUsersViewData.ts
Normal file
27
apps/website/lib/view-data/AdminUsersViewData.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* AdminUsersViewData
|
||||
*
|
||||
* ViewData for AdminUsersTemplate.
|
||||
* Template-ready data structure with only primitives.
|
||||
*/
|
||||
export interface AdminUsersViewData {
|
||||
users: Array<{
|
||||
id: string;
|
||||
email: string;
|
||||
displayName: string;
|
||||
roles: string[];
|
||||
status: string;
|
||||
isSystemAdmin: boolean;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
lastLoginAt?: string;
|
||||
primaryDriverId?: string;
|
||||
}>;
|
||||
total: number;
|
||||
page: number;
|
||||
limit: number;
|
||||
totalPages: number;
|
||||
// Pre-computed derived values for template
|
||||
activeUserCount: number;
|
||||
adminCount: number;
|
||||
}
|
||||
Reference in New Issue
Block a user