diff --git a/web/src/lib/components/admin/UserModal.svelte b/web/src/lib/components/admin/UserModal.svelte index c80b37b1..77531da2 100644 --- a/web/src/lib/components/admin/UserModal.svelte +++ b/web/src/lib/components/admin/UserModal.svelte @@ -19,6 +19,7 @@ import { tick } from 'svelte'; import type { AdminUser } from '$lib/stores/admin.svelte'; import UserSettingsForm from './UserSettingsForm.svelte'; + import UserWorkspacesTab from './UserWorkspacesTab.svelte'; export type UserModalTab = 'overview' | 'workspaces' | 'activity' | 'settings'; @@ -223,7 +224,7 @@ {#if t.key === 'overview'}
Overview tab content arrives in TASK-1553.
{:else if t.key === 'workspaces'} -Workspaces tab content arrives in TASK-1552.
+Activity tab content arrives in TASK-1554.
{:else if t.key === 'settings'} diff --git a/web/src/lib/components/admin/UserWorkspacesTab.svelte b/web/src/lib/components/admin/UserWorkspacesTab.svelte new file mode 100644 index 00000000..143376ab --- /dev/null +++ b/web/src/lib/components/admin/UserWorkspacesTab.svelte @@ -0,0 +1,251 @@ + + + +{#if loading} +| Workspace | +Role | +Collections | +Items (open / total) | +Members | +Storage | +Last activity | +
|---|---|---|---|---|---|---|
|
+
+ {ws.workspace_name}
+
+ {ws.workspace_slug}
+ |
+ {ws.role} | +{ws.collections_count} | +{ws.items_open} / {ws.items_total} | +{ws.members_count} | +{formatStorageBytes(ws.storage_bytes)} | +{relativeTime(ws.last_activity_at)} | +