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
@@ -163,10 +163,16 @@ type AdminWorkspaceMember {
email: String!
id: String!
name: String!
role: Permission!
role: AdminWorkspaceMemberRole!
status: WorkspaceMemberStatus!
}
enum AdminWorkspaceMemberRole {
Admin
Collaborator
Owner
}
type AdminWorkspaceSharedLink {
docId: String!
publishedAt: DateTime
@@ -2953,4 +2959,4 @@ type tokenType {
refresh: String!
sessionToken: String
token: String!
}
}