From 384432d31e7bee6bf35d8af6b7165410303ffda4 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 6 Jul 2025 15:54:49 +0000
Subject: feat: Add per user storage quota

---
 apps/web/components/admin/UserList.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'apps/web/components/admin/UserList.tsx')

diff --git a/apps/web/components/admin/UserList.tsx b/apps/web/components/admin/UserList.tsx
index a3b4d94f..2dd86277 100644
--- a/apps/web/components/admin/UserList.tsx
+++ b/apps/web/components/admin/UserList.tsx
@@ -72,6 +72,7 @@ export default function UsersSection() {
           <TableHead>{t("common.email")}</TableHead>
           <TableHead>{t("admin.users_list.num_bookmarks")}</TableHead>
           <TableHead>{t("common.quota")}</TableHead>
+          <TableHead>Storage Quota</TableHead>
           <TableHead>{t("admin.users_list.asset_sizes")}</TableHead>
           <TableHead>{t("common.role")}</TableHead>
           <TableHead>{t("admin.users_list.local_user")}</TableHead>
@@ -88,6 +89,11 @@ export default function UsersSection() {
               <TableCell className="py-1">
                 {u.bookmarkQuota ?? t("admin.users_list.unlimited")}
               </TableCell>
+              <TableCell className="py-1">
+                {u.storageQuota
+                  ? toHumanReadableSize(u.storageQuota)
+                  : t("admin.users_list.unlimited")}
+              </TableCell>
               <TableCell className="py-1">
                 {toHumanReadableSize(userStats[u.id].assetSizes)}
               </TableCell>
@@ -140,6 +146,7 @@ export default function UsersSection() {
                   userId={u.id}
                   currentRole={u.role!}
                   currentQuota={u.bookmarkQuota}
+                  currentStorageQuota={u.storageQuota}
                 >
                   <ButtonWithTooltip
                     tooltip="Edit User"
-- 
cgit v1.2.3-70-g09d2

