diff --git a/app/(dashboard)/browser/page.tsx b/app/(dashboard)/browser/page.tsx index cdfbf63b..1be4c506 100644 --- a/app/(dashboard)/browser/page.tsx +++ b/app/(dashboard)/browser/page.tsx @@ -320,7 +320,7 @@ function BrowserBucketsPage() { names={data.map((bucket) => bucket.Name)} usage={bucketUsage} unavailable={pending || loadError} - usageLoading={usageLoading} + usageLoading={pending || usageLoading} usageAvailable={!usageLoading && Array.isArray(userInfo?.buckets)} /> diff --git a/components/buckets/usage-overview.tsx b/components/buckets/usage-overview.tsx index 9599b660..00b76857 100644 --- a/components/buckets/usage-overview.tsx +++ b/components/buckets/usage-overview.tsx @@ -22,6 +22,11 @@ export function BucketUsageOverview({ const summary = !unavailable && usageAvailable ? summarizeBucketUsage(names, usage) : undefined const hasValues = summary && (summary.measuredBuckets > 0 || names.length === 0) const measurementReported = summary && (names.length === 0 || names.some((name) => usage.has(name))) + const statisticsState = usageLoading + ? t("Loading…") + : measurementReported + ? t("Statistics pending") + : t("Statistics unavailable") const coverage = measurementReported ? `${t("Measured buckets")} · ${formatInteger(summary.measuredBuckets)} / ${formatInteger(names.length)}` : usageLoading @@ -62,27 +67,39 @@ export function BucketUsageOverview({ aria-label={t("Storage Usage Statistics")} >
+ {statisticsState} +
+ )} + {!unavailable && ( +{coverage}
diff --git a/docs/ui-review/bucket-statistics-status/after-complete-mobile-en.jpg b/docs/ui-review/bucket-statistics-status/after-complete-mobile-en.jpg new file mode 100644 index 00000000..f3a6300a Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-complete-mobile-en.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/after-desktop-en.jpg b/docs/ui-review/bucket-statistics-status/after-desktop-en.jpg new file mode 100644 index 00000000..0fe3e89e Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-desktop-en.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/after-desktop-zh-dark.jpg b/docs/ui-review/bucket-statistics-status/after-desktop-zh-dark.jpg new file mode 100644 index 00000000..a74dab46 Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-desktop-zh-dark.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/after-empty-mobile-en.jpg b/docs/ui-review/bucket-statistics-status/after-empty-mobile-en.jpg new file mode 100644 index 00000000..45ef577d Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-empty-mobile-en.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/after-error-mobile-en.jpg b/docs/ui-review/bucket-statistics-status/after-error-mobile-en.jpg new file mode 100644 index 00000000..7f21567f Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-error-mobile-en.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/after-loading-mobile-en.jpg b/docs/ui-review/bucket-statistics-status/after-loading-mobile-en.jpg new file mode 100644 index 00000000..b5055ba2 Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-loading-mobile-en.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/after-mobile-en.jpg b/docs/ui-review/bucket-statistics-status/after-mobile-en.jpg new file mode 100644 index 00000000..297a625d Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-mobile-en.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/after-mobile-zh-dark.jpg b/docs/ui-review/bucket-statistics-status/after-mobile-zh-dark.jpg new file mode 100644 index 00000000..a4cfb4f5 Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-mobile-zh-dark.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/after-mobile-zh.jpg b/docs/ui-review/bucket-statistics-status/after-mobile-zh.jpg new file mode 100644 index 00000000..44b096a2 Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/after-mobile-zh.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/before-desktop-en.jpg b/docs/ui-review/bucket-statistics-status/before-desktop-en.jpg new file mode 100644 index 00000000..05844ad5 Binary files /dev/null and b/docs/ui-review/bucket-statistics-status/before-desktop-en.jpg differ diff --git a/docs/ui-review/bucket-statistics-status/manifest.json b/docs/ui-review/bucket-statistics-status/manifest.json new file mode 100644 index 00000000..615507ad --- /dev/null +++ b/docs/ui-review/bucket-statistics-status/manifest.json @@ -0,0 +1,134 @@ +{ + "date": "2026-11-23", + "scope": "Bucket usage overview status", + "evidence": "Controlled props rendered by the actual React component in a local Next.js 16.4.6 dev server. Before uses the component from base commit b329436. These are UI fixtures, not live cluster or scanner acceptance. Temporary preview routes are removed from the final change.", + "checks": [ + "DOM state matches each named scenario", + "Viewport width and document width match on mobile", + "Chinese translations loaded through changeLocale", + "Light and dark root classes confirmed", + "No browser errors or warnings" + ], + "captures": [ + { + "file": "before-desktop-en.jpg", + "viewport": { + "width": 1280, + "height": 900 + }, + "locale": "en-US", + "theme": "light", + "state": "pending", + "version": "before", + "sha256": "b17b62f443a7dfeea5d84e0eb29606280b44c22bbde8f55ca8bba9a39b1ab763" + }, + { + "file": "after-desktop-en.jpg", + "viewport": { + "width": 1280, + "height": 900 + }, + "locale": "en-US", + "theme": "light", + "state": "pending", + "version": "after", + "sha256": "bcc87e07b671325f949e4697508d6a93e0b8b5f2636f58ff3271a64843ab3f45" + }, + { + "file": "after-mobile-en.jpg", + "viewport": { + "width": 390, + "height": 844 + }, + "locale": "en-US", + "theme": "light", + "state": "pending", + "version": "after", + "sha256": "3214930ac9dd335d7fa2ae22439ba0f004a8cb25320e366a8c2aff858ba129c1" + }, + { + "file": "after-mobile-zh.jpg", + "viewport": { + "width": 390, + "height": 844 + }, + "locale": "zh-CN", + "theme": "light", + "state": "pending", + "version": "after", + "sha256": "1b5ad25086693eccfa802013dad17a7e957b1f358592d659d65d5075ebfe805a" + }, + { + "file": "after-mobile-zh-dark.jpg", + "viewport": { + "width": 390, + "height": 844 + }, + "locale": "zh-CN", + "theme": "dark", + "state": "pending", + "version": "after", + "sha256": "d67a86d211e60bf0cd3eb955be46f88e49a5ed525649824447adb198c9e911c7" + }, + { + "file": "after-desktop-zh-dark.jpg", + "viewport": { + "width": 1280, + "height": 900 + }, + "locale": "zh-CN", + "theme": "dark", + "state": "pending", + "version": "after", + "sha256": "ff5c544aad694d70ece4252a255364c7549efdb1de2ef95a86caa4e90d32e600" + }, + { + "file": "after-loading-mobile-en.jpg", + "viewport": { + "width": 390, + "height": 844 + }, + "locale": "en-US", + "theme": "light", + "state": "loading", + "version": "after", + "sha256": "d934f2a34d9c0599e847450f974624f1778f788058b7dd92971cb9f7bdec0d4e" + }, + { + "file": "after-error-mobile-en.jpg", + "viewport": { + "width": 390, + "height": 844 + }, + "locale": "en-US", + "theme": "light", + "state": "error", + "version": "after", + "sha256": "0510bb41d538c8fd8d863911f5918ef296bfd425ca029d34bdafa8934b8b0574" + }, + { + "file": "after-empty-mobile-en.jpg", + "viewport": { + "width": 390, + "height": 844 + }, + "locale": "en-US", + "theme": "light", + "state": "empty", + "version": "after", + "sha256": "dd38d525554408316497cefb1007fa60f29d1ad4febb7b7223e904b40966b709" + }, + { + "file": "after-complete-mobile-en.jpg", + "viewport": { + "width": 390, + "height": 844 + }, + "locale": "en-US", + "theme": "light", + "state": "complete", + "version": "after", + "sha256": "b93a3f969fb41fe7731d22f9c459ce9f036ef4b1338c3ac590b375a3e2277537" + } + ] +} diff --git a/i18n/locales/ar-MA.json b/i18n/locales/ar-MA.json index bfd3966a..c693cd92 100644 --- a/i18n/locales/ar-MA.json +++ b/i18n/locales/ar-MA.json @@ -1,4 +1,6 @@ { + "Statistics pending": "في انتظار الإحصاءات", + "Statistics unavailable": "الإحصاءات غير متاحة", "Cluster scanner status": "حالة ماسح العنقود", "Scanner status on this node": "حالة الماسح على هذه العقدة", "Cycle reported by this node": "الدورة التي أبلغت عنها هذه العقدة", diff --git a/i18n/locales/de-DE.json b/i18n/locales/de-DE.json index 4aac2aea..8c74a05b 100644 --- a/i18n/locales/de-DE.json +++ b/i18n/locales/de-DE.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Statistik ausstehend", + "Statistics unavailable": "Statistik nicht verfügbar", "Cluster scanner status": "Scannerstatus des Clusters", "Scanner status on this node": "Scannerstatus auf diesem Knoten", "Cycle reported by this node": "Von diesem Knoten gemeldeter Zyklus", diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json index 5d77680e..bf5d334e 100644 --- a/i18n/locales/en-US.json +++ b/i18n/locales/en-US.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Awaiting statistics", + "Statistics unavailable": "Statistics unavailable", "Cluster scanner status": "Cluster scanner status", "Scanner status on this node": "Scanner status on this node", "Cycle reported by this node": "Cycle reported by this node", diff --git a/i18n/locales/es-ES.json b/i18n/locales/es-ES.json index 2ce427a5..70eed4f7 100644 --- a/i18n/locales/es-ES.json +++ b/i18n/locales/es-ES.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Estadísticas pendientes", + "Statistics unavailable": "Estadísticas no disponibles", "Cluster scanner status": "Estado del escáner del clúster", "Scanner status on this node": "Estado del escáner en este nodo", "Cycle reported by this node": "Ciclo indicado por este nodo", diff --git a/i18n/locales/fr-FR.json b/i18n/locales/fr-FR.json index 941291de..b0654442 100644 --- a/i18n/locales/fr-FR.json +++ b/i18n/locales/fr-FR.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Statistiques en attente", + "Statistics unavailable": "Statistiques indisponibles", "Cluster scanner status": "État de l’analyse du cluster", "Scanner status on this node": "État de l’analyse sur ce nœud", "Cycle reported by this node": "Cycle signalé par ce nœud", diff --git a/i18n/locales/id-ID.json b/i18n/locales/id-ID.json index 86399bc6..e197072c 100644 --- a/i18n/locales/id-ID.json +++ b/i18n/locales/id-ID.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Menunggu statistik", + "Statistics unavailable": "Statistik tidak tersedia", "Cluster scanner status": "Status pemindai klaster", "Scanner status on this node": "Status pemindai pada simpul ini", "Cycle reported by this node": "Siklus yang dilaporkan simpul ini", diff --git a/i18n/locales/it-IT.json b/i18n/locales/it-IT.json index d39a45ca..0285f9c1 100644 --- a/i18n/locales/it-IT.json +++ b/i18n/locales/it-IT.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Statistiche in attesa", + "Statistics unavailable": "Statistiche non disponibili", "Cluster scanner status": "Stato della scansione del cluster", "Scanner status on this node": "Stato della scansione su questo nodo", "Cycle reported by this node": "Ciclo segnalato da questo nodo", diff --git a/i18n/locales/ja-JP.json b/i18n/locales/ja-JP.json index 7bd2e71a..9260344a 100644 --- a/i18n/locales/ja-JP.json +++ b/i18n/locales/ja-JP.json @@ -1,4 +1,6 @@ { + "Statistics pending": "統計待ち", + "Statistics unavailable": "統計を取得できません", "Cluster scanner status": "クラスターのスキャナー状態", "Scanner status on this node": "このノードのスキャナー状態", "Cycle reported by this node": "このノードが報告したサイクル", diff --git a/i18n/locales/ko-KR.json b/i18n/locales/ko-KR.json index 0eb89260..45974cde 100644 --- a/i18n/locales/ko-KR.json +++ b/i18n/locales/ko-KR.json @@ -1,4 +1,6 @@ { + "Statistics pending": "통계 대기 중", + "Statistics unavailable": "통계를 사용할 수 없음", "Cluster scanner status": "클러스터 스캐너 상태", "Scanner status on this node": "이 노드의 스캐너 상태", "Cycle reported by this node": "이 노드가 보고한 주기", diff --git a/i18n/locales/pt-BR.json b/i18n/locales/pt-BR.json index 5f26eb6c..51f5d611 100644 --- a/i18n/locales/pt-BR.json +++ b/i18n/locales/pt-BR.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Estatísticas pendentes", + "Statistics unavailable": "Estatísticas indisponíveis", "Cluster scanner status": "Estado do scanner do cluster", "Scanner status on this node": "Estado do scanner neste nó", "Cycle reported by this node": "Ciclo informado por este nó", diff --git a/i18n/locales/ru-RU.json b/i18n/locales/ru-RU.json index c161b0a1..052ef80e 100644 --- a/i18n/locales/ru-RU.json +++ b/i18n/locales/ru-RU.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Статистика ожидается", + "Statistics unavailable": "Статистика недоступна", "Cluster scanner status": "Состояние сканера кластера", "Scanner status on this node": "Состояние сканера на этом узле", "Cycle reported by this node": "Цикл по данным этого узла", diff --git a/i18n/locales/tr-TR.json b/i18n/locales/tr-TR.json index 89824f8f..05858858 100644 --- a/i18n/locales/tr-TR.json +++ b/i18n/locales/tr-TR.json @@ -1,4 +1,6 @@ { + "Statistics pending": "İstatistikler bekleniyor", + "Statistics unavailable": "İstatistikler kullanılamıyor", "Cluster scanner status": "Küme tarayıcısının durumu", "Scanner status on this node": "Bu düğümdeki tarayıcının durumu", "Cycle reported by this node": "Bu düğümün bildirdiği döngü", diff --git a/i18n/locales/vi-VN.json b/i18n/locales/vi-VN.json index 1a630583..d79fd853 100644 --- a/i18n/locales/vi-VN.json +++ b/i18n/locales/vi-VN.json @@ -1,4 +1,6 @@ { + "Statistics pending": "Chờ thống kê", + "Statistics unavailable": "Không có thống kê", "Cluster scanner status": "Trạng thái trình quét của cụm", "Scanner status on this node": "Trạng thái trình quét trên nút này", "Cycle reported by this node": "Chu kỳ do nút này báo cáo", diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index e6bfa0ff..8ae07273 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -1,4 +1,6 @@ { + "Statistics pending": "待统计", + "Statistics unavailable": "统计不可用", "Cluster scanner status": "集群扫描器状态", "Scanner status on this node": "本节点扫描器状态", "Cycle reported by this node": "本节点上报的扫描周期", diff --git a/i18n/locales/zh-TW.json b/i18n/locales/zh-TW.json index d8eb174c..5700ffb8 100644 --- a/i18n/locales/zh-TW.json +++ b/i18n/locales/zh-TW.json @@ -1,4 +1,6 @@ { + "Statistics pending": "待統計", + "Statistics unavailable": "統計無法取得", "Cluster scanner status": "叢集掃描器狀態", "Scanner status on this node": "本節點掃描器狀態", "Cycle reported by this node": "本節點回報的掃描週期", diff --git a/package.json b/package.json index 76ea1c8f..ef44fc98 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "i18next": "^26.3.1", "i18next-browser-languagedetector": "^8.2.1", "input-otp": "^1.4.2", - "next": "16.4.1", + "next": "16.4.6", "next-themes": "^0.4.6", "node-forge": "^1.4.0", "react": "^19.2.7", @@ -59,7 +59,7 @@ "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", "eslint": "^9.39.4", - "eslint-config-next": "16.4.1", + "eslint-config-next": "16.4.6", "eslint-config-prettier": "^10.1.8", "happy-dom": "20.14.5", "prettier": "^3.8.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c69e21d2..25dc2da4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -167,8 +167,8 @@ importers: specifier: ^1.4.2 version: 1.4.2(react-dom@19.2.7(react@19.2.7))(react@19.2.7) next: - specifier: 16.4.1 - version: 16.4.1(@babel/core@7.29.7(supports-color@7.2.0))(@types/node@22.19.21)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) + specifier: 16.4.6 + version: 16.4.6(@babel/core@7.29.7(supports-color@7.2.0))(@types/node@22.19.21)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) next-themes: specifier: ^0.4.6 version: 0.4.6(react-dom@19.2.7(react@19.2.7))(react@19.2.7) @@ -231,8 +231,8 @@ importers: specifier: ^9.39.4 version: 9.39.4(jiti@2.7.0)(supports-color@7.2.0) eslint-config-next: - specifier: 16.4.1 - version: 16.4.1(@typescript-eslint/parser@8.66.0(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) + specifier: 16.4.6 + version: 16.4.6(@typescript-eslint/parser@8.66.0(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3) eslint-config-prettier: specifier: ^10.1.8 version: 10.1.8(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0)) @@ -799,60 +799,60 @@ packages: '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.3 '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.3 - '@next/env@16.4.1': - resolution: {integrity: sha512-5sUUrrSvs/2/2LnLoesybMGx12EtPB46fdZ6RhAw0XDGSPxU2LFyQBB7yuEiOFFJPKmBY6+q2jTr1/AMbnp0/g==} + '@next/env@16.4.6': + resolution: {integrity: sha512-SunBjJ6t+oBtecS3dTjdVuMhUogP5wD/vrGL5EVuQYM1iS4O5ilL51HkiJ3sPjMzRHiCChvr4dbaSJbR7F3lxA==} - '@next/eslint-plugin-next@16.4.1': - resolution: {integrity: sha512-2io6M+wAqe7nT5mt2gEVy6FOzye2DmwhjaYCpSvHfrIKL11SXNTwSARxpPHJacRmfgSBSDnNmnEXSp0DaJ23BQ==} + '@next/eslint-plugin-next@16.4.6': + resolution: {integrity: sha512-HdqERVOafOD8JaUSAkwf9aSu/1rsHlkN8C5GcXYBH3C/z1MxBhZFxB5rz/xqMMRiIj7r9tIv8OCLQ9JWUxCvWA==} - '@next/swc-darwin-arm64@16.4.1': - resolution: {integrity: sha512-U+hQ5Gj3fpzf4fveTIF3dpUFYhaSW8vHhdAnbiIomzXzg7boreYFgBqprepXFtW4sw+aTttiNmg0gew/iFNhbg==} + '@next/swc-darwin-arm64@16.4.6': + resolution: {integrity: sha512-kJ4VVZkley17xKaJx72QN2IBqjrj7zenCQZaUF0l9ShS/1Mt2kW4+Z5KGG6vgr3L/J562xTOizVyM1iA/u5nlg==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] - '@next/swc-darwin-x64@16.4.1': - resolution: {integrity: sha512-/hqC3V1XLUjhMASf/WridKdO9FXoEgN3HBWmtKbj00MPgnltutfraWJ3bYTpCRIgEIpbjJyOVLpYgAhh/BkdcQ==} + '@next/swc-darwin-x64@16.4.6': + resolution: {integrity: sha512-eIPGZIqC+8JKaeZmvnCANJQF4xWkkHqSnAAajtFxgwDMAOnCgxNvP52SeWZ41PyVwoe+Le/NQuZSaQ8j7YshSA==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] - '@next/swc-linux-arm64-gnu@16.4.1': - resolution: {integrity: sha512-GHzncHbcaS9g95kcvTNtKQW3aCLoR+xc3Jm7qrkpk1R+D2BjMHIPyvQGRPKCdMX95BsH/421jBUK06q9tEwzjw==} + '@next/swc-linux-arm64-gnu@16.4.6': + resolution: {integrity: sha512-9nI6O8vvczH2D9ZNdMGqb/3NuT15T9ksOZnAmx9/gjF2cOi74+xxyf1Hk96uIMfm14c9y6wHeBq6SH8g6udvcA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] libc: [glibc] - '@next/swc-linux-arm64-musl@16.4.1': - resolution: {integrity: sha512-1SuJyDxW/PR9dHJat/ZRgcYLhuSZ+1psP4DlKb2tKIuXbjygqpLrJWRSq+onZQBv8LcmU67EIrmb6c3XTaJLjw==} + '@next/swc-linux-arm64-musl@16.4.6': + resolution: {integrity: sha512-7/qPhTxDp2ScluOJOhLuhWmlA17o1yZ0SIgpISBCpBxXgtnK4+KGywBpFkfLPiU1rnSM1faFGzYkH6i7JdTrqA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] libc: [musl] - '@next/swc-linux-x64-gnu@16.4.1': - resolution: {integrity: sha512-Istng1hMGp9TGO4lUqeKLd70MPN/OOkucVTP2Nmj+gLkwBgmPqUw8CJYBCC7nbl/B/23bBCcjCI5Hsh6hazC1A==} + '@next/swc-linux-x64-gnu@16.4.6': + resolution: {integrity: sha512-oOpbNa8XOW1qCGd9VvzC4fbkkRxEls7/WI6tz+YHC0xRA7KpV1U7DrAnCPjzVyOk/karzWEepCOcTIDmwK8FwQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] libc: [glibc] - '@next/swc-linux-x64-musl@16.4.1': - resolution: {integrity: sha512-aSC9wMNiZRRFVpPkPWBzRwLQxIGm/CiQcXyFF1XNcgodb+uMxdk7aSSGGpDXCbnvZdf4itjHxpOd5h7i7zaiYw==} + '@next/swc-linux-x64-musl@16.4.6': + resolution: {integrity: sha512-aM8CZ+OR2EwXaAYw7KGkW2GDmNDsLBIRe1MMRZCJPTdw/xhTD0IMUVO4sf3KqrzuRouGzwwLZn34+gFeVXiUQA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] libc: [musl] - '@next/swc-win32-arm64-msvc@16.4.1': - resolution: {integrity: sha512-t/myvwFDlypMUjRvbBf8qLPyuaB0iXYYdBtwMt6DM6f+60wtGr4bSYholdPqNeV5VUXZhrpMwfza829kmhS3iA==} + '@next/swc-win32-arm64-msvc@16.4.6': + resolution: {integrity: sha512-U0p7/tEtqvHX2crhd841CDwKtp5CFkKXVjOhmfccR3Pvp64sj8KBwRqsvltqLOwVBbj0NtkxwXSDpEHYGbxeXQ==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] - '@next/swc-win32-x64-msvc@16.4.1': - resolution: {integrity: sha512-6ICqPo9awCkrtYNPhwkx1uU7rlFWrZRrIboDHS2LU+jv088UBYQtmJ25h6pCp27/+FZjF6BQ4Te4ErugyMeuBg==} + '@next/swc-win32-x64-msvc@16.4.6': + resolution: {integrity: sha512-3ZG15/5WIdlTQsIEvc9sPTTSL5XFrlLklIKmfF4fwsDnoAhu6NcBDXsk3mbGxNyo6aVLEGex+fHCv2MahY7a9g==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -1984,8 +1984,8 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - eslint-config-next@16.4.1: - resolution: {integrity: sha512-6AsojbCfRdpWkP6BIUnMBv3MH4OvtfmH9p4hSfLh8ZgsW7nfhu7DpUMNBB7leisDyyMz+YYxTc+NAdBOQfovlA==} + eslint-config-next@16.4.6: + resolution: {integrity: sha512-IBGGrVf9E6pL0NGL0hmeicVGeSyv1VEzIWq6IecDqkw+YFByhEtDJS9u1r6s6a1VxK6rssh69KyNFQUgfaacqw==} peerDependencies: eslint: '>=9.0.0' typescript: '>=3.3.1' @@ -2862,8 +2862,8 @@ packages: react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc - next@16.4.1: - resolution: {integrity: sha512-uc657V62E34fOI6W5NtG9IzwsPcms0Z60grz2MJGtglgD+pTFnNt4Yw2PzaU622tfX4vhrDgLZzicE2YlhI20Q==} + next@16.4.6: + resolution: {integrity: sha512-QZJiYhaZLJMo2KpkQGQIwvmd79WVsAWeYIU554a8d7zArS3si/IRy3lBNV/rtYhE70oLwdLYhPAXLPx8HwcwtA==} engines: {node: '>=20.9.0'} hasBin: true peerDependencies: @@ -4382,37 +4382,37 @@ snapshots: '@tybys/wasm-util': 0.10.3 optional: true - '@next/env@16.4.1': {} + '@next/env@16.4.6': {} - '@next/eslint-plugin-next@16.4.1(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))': + '@next/eslint-plugin-next@16.4.6(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))': dependencies: '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0)) fast-glob: 3.3.1 transitivePeerDependencies: - eslint - '@next/swc-darwin-arm64@16.4.1': + '@next/swc-darwin-arm64@16.4.6': optional: true - '@next/swc-darwin-x64@16.4.1': + '@next/swc-darwin-x64@16.4.6': optional: true - '@next/swc-linux-arm64-gnu@16.4.1': + '@next/swc-linux-arm64-gnu@16.4.6': optional: true - '@next/swc-linux-arm64-musl@16.4.1': + '@next/swc-linux-arm64-musl@16.4.6': optional: true - '@next/swc-linux-x64-gnu@16.4.1': + '@next/swc-linux-x64-gnu@16.4.6': optional: true - '@next/swc-linux-x64-musl@16.4.1': + '@next/swc-linux-x64-musl@16.4.6': optional: true - '@next/swc-win32-arm64-msvc@16.4.1': + '@next/swc-win32-arm64-msvc@16.4.6': optional: true - '@next/swc-win32-x64-msvc@16.4.1': + '@next/swc-win32-x64-msvc@16.4.6': optional: true '@noble/ciphers@1.3.0': {} @@ -5521,9 +5521,9 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-config-next@16.4.1(@typescript-eslint/parser@8.66.0(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3): + eslint-config-next@16.4.6(@typescript-eslint/parser@8.66.0(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3))(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0)(typescript@6.0.3): dependencies: - '@next/eslint-plugin-next': 16.4.1(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0)) + '@next/eslint-plugin-next': 16.4.6(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0)) eslint: 9.39.4(jiti@2.7.0)(supports-color@7.2.0) eslint-import-resolver-node: 0.3.10(supports-color@7.2.0) eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.4(jiti@2.7.0)(supports-color@7.2.0))(supports-color@7.2.0) @@ -6437,9 +6437,9 @@ snapshots: react: 19.2.7 react-dom: 19.2.7(react@19.2.7) - next@16.4.1(@babel/core@7.29.7(supports-color@7.2.0))(@types/node@22.19.21)(react-dom@19.2.7(react@19.2.7))(react@19.2.7): + next@16.4.6(@babel/core@7.29.7(supports-color@7.2.0))(@types/node@22.19.21)(react-dom@19.2.7(react@19.2.7))(react@19.2.7): dependencies: - '@next/env': 16.4.1 + '@next/env': 16.4.6 '@swc/helpers': 0.5.23 baseline-browser-mapping: 2.11.12 caniuse-lite: 1.0.30001806 @@ -6448,14 +6448,14 @@ snapshots: react-dom: 19.2.7(react@19.2.7) styled-jsx: 5.1.6(@babel/core@7.29.7(supports-color@7.2.0))(react@19.2.7) optionalDependencies: - '@next/swc-darwin-arm64': 16.4.1 - '@next/swc-darwin-x64': 16.4.1 - '@next/swc-linux-arm64-gnu': 16.4.1 - '@next/swc-linux-arm64-musl': 16.4.1 - '@next/swc-linux-x64-gnu': 16.4.1 - '@next/swc-linux-x64-musl': 16.4.1 - '@next/swc-win32-arm64-msvc': 16.4.1 - '@next/swc-win32-x64-msvc': 16.4.1 + '@next/swc-darwin-arm64': 16.4.6 + '@next/swc-darwin-x64': 16.4.6 + '@next/swc-linux-arm64-gnu': 16.4.6 + '@next/swc-linux-arm64-musl': 16.4.6 + '@next/swc-linux-x64-gnu': 16.4.6 + '@next/swc-linux-x64-musl': 16.4.6 + '@next/swc-win32-arm64-msvc': 16.4.6 + '@next/swc-win32-x64-msvc': 16.4.6 sharp: 0.35.5(@types/node@22.19.21) transitivePeerDependencies: - '@babel/core' diff --git a/tests/lib/bucket-usage-overview.test.ts b/tests/lib/bucket-usage-overview.test.ts index aa296d61..5ae09779 100644 --- a/tests/lib/bucket-usage-overview.test.ts +++ b/tests/lib/bucket-usage-overview.test.ts @@ -28,16 +28,26 @@ const { BucketUsageOverview } = await import(moduleUrl(source)) async function render( entries: [string, number][], check: (document: Window["document"]) => void, - options: { names?: string[]; unavailable?: boolean; usageAvailable?: boolean } = {}, + options: { + names?: string[] + unavailable?: boolean + usageAvailable?: boolean + usageLoading?: boolean + unmeasured?: string[] + } = {}, ) { const browser = new Window() try { browser.document.body.innerHTML = renderToStaticMarkup( React.createElement(BucketUsageOverview, { names: options.names ?? entries.map(([name]) => name), - usage: new Map(entries.map(([name, sizeBytes]) => [name, { sizeBytes, objectsCount: 1 }])), + usage: new Map