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:
DarkSky
2026-07-05 03:04:05 +08:00
committed by GitHub
parent 7cfedbd49d
commit 296a4c2f81
10 changed files with 451 additions and 149 deletions
+8 -2
View File
@@ -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;