mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
fix(server): dashboard query (#15195)
#### PR Dependency Tree * **PR #15195** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Admin dashboard storage history now returns a continuous day-by-day trend, carrying forward the last known workspace and blob storage values for days without samples. * Active member counts for workspace analytics were corrected to reflect active workspace members. * **New Features** * Admin workspace member roles are now returned via a dedicated role enum, serialized as enum name strings (e.g., `Owner`). * **UI Improvements** * Renamed key labels to “Active Members” and “Members and Invitations”; member roles use pill badges and non-accepted statuses are shown. * **Tests** * Added E2E coverage for role enum serialization and strengthened storage history assertions. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -213,10 +213,16 @@ export interface AdminWorkspaceMember {
|
||||
email: Scalars['String']['output'];
|
||||
id: Scalars['String']['output'];
|
||||
name: Scalars['String']['output'];
|
||||
role: Permission;
|
||||
role: AdminWorkspaceMemberRole;
|
||||
status: WorkspaceMemberStatus;
|
||||
}
|
||||
|
||||
export enum AdminWorkspaceMemberRole {
|
||||
Admin = 'Admin',
|
||||
Collaborator = 'Collaborator',
|
||||
Owner = 'Owner',
|
||||
}
|
||||
|
||||
export interface AdminWorkspaceSharedLink {
|
||||
__typename?: 'AdminWorkspaceSharedLink';
|
||||
docId: Scalars['String']['output'];
|
||||
@@ -4013,7 +4019,7 @@ export type AdminWorkspaceQuery = {
|
||||
name: string;
|
||||
email: string;
|
||||
avatarUrl: string | null;
|
||||
role: Permission;
|
||||
role: AdminWorkspaceMemberRole;
|
||||
status: WorkspaceMemberStatus;
|
||||
}>;
|
||||
} | null;
|
||||
|
||||
Reference in New Issue
Block a user