Files: Recent and Trash need loading and retry states #871

Open
opened 2026-10-02 17:26:31 +00:00 by kayg · 0 comments
Owner

Evidence

  • apps/web/src/lib/files/RecentView.svelte:107-115 and apps/web/src/lib/files/TrashView.svelte:105-113 set loading before the request and clear it after the request. Their render branches show the empty FileCollection while loading. They do not show loading text.
  • The error branches at RecentView.svelte:327-330 and TrashView.svelte:236-239 show an alert, but neither branch has a Retry action. The empty-state branch can only be trusted after a successful response.

Rule

Issue #869 asks for real loading, empty and error states. The UX-completeness rule requires a way forward after each failure.

Expected behaviour

Show a calm loading state until the first response arrives. Show the empty copy only after a successful empty response. Add a Retry action to both error states.

Test idea

For Recent and Trash, hold the list request open, return an empty list, return a server error, and fail with the network offline. Check the loading, real empty and retryable error states. Click Retry and return a list.

## Evidence - `apps/web/src/lib/files/RecentView.svelte:107-115` and `apps/web/src/lib/files/TrashView.svelte:105-113` set `loading` before the request and clear it after the request. Their render branches show the empty `FileCollection` while loading. They do not show loading text. - The error branches at `RecentView.svelte:327-330` and `TrashView.svelte:236-239` show an alert, but neither branch has a Retry action. The empty-state branch can only be trusted after a successful response. ## Rule Issue #869 asks for real loading, empty and error states. The UX-completeness rule requires a way forward after each failure. ## Expected behaviour Show a calm loading state until the first response arrives. Show the empty copy only after a successful empty response. Add a Retry action to both error states. ## Test idea For Recent and Trash, hold the list request open, return an empty list, return a server error, and fail with the network offline. Check the loading, real empty and retryable error states. Click Retry and return a list.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#871
No description provided.