Skip to content

[PB-7152]: feat/enhance loading and error handling in sub-account components - #196

Open
jzunigax2 wants to merge 1 commit into
mainfrom
feat/honest-list-states
Open

jzunigax2 wants to merge 1 commit into
mainfrom
feat/honest-list-states

Conversation

@jzunigax2

Copy link
Copy Markdown
Contributor

What

The subaccount console's Buckets, bucket objects, Shared and Usage pages now show honest loading, empty and error states:

  • placeholder rows while loading, and placeholders for the stat values and counts;
  • the empty state only after a successful empty response;
  • an inline error with the server or S3 message and a Try again button.

Why

This comes from the related ticket where a partner reported the console felt slow. Some of that slowness is perception, and better UX can easily improve that part. Each page started out showing "No buckets found", "This folder is empty", "0 active links" or "0.000 TB" before any data arrived. So users first read "you have nothing", then watched data pop in, which feels slower and less trustworthy than a placeholder. Failures looked the same as an empty account:

  • If the S3 credentials request failed, Buckets said "No buckets found" and never recovered.
  • A failed Usage request showed "No usage data for this period".

How

  • ListStates.tsx: shared placeholder rows (same size as real rows, so nothing jumps), an error block and a stat placeholder.
  • listLoad.ts:
    • toListStatus(isLoading, error) decides loading, error or ready on all four screens.
  • The list-load error toasts are replaced by the inline error. Create and delete failures keep their toasts.

Before / After

imagen

@jzunigax2 jzunigax2 self-assigned this Dec 5, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
object-storage-management-web 4d0846f Commit Preview URL

Branch Preview URL
Dec 05 2026, 02:21 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant