You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): Documents hub turns a failed folder-list read into “No documents yet” #3880
Scope: isolated local replay; no production network or writes.
Reproduction
Open the root Documents hub with a successful empty root-document response, an approximate organization count of 1 for a nested document, and folders/queries:listFolders settling with a 503. The actual DocumentsTable maps the undefined folder data to no rows and renders the ordinary No documents yet state. There is no folder row, alert, error text, or Retry control. The control/failure replay passed two tests against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e; the failure snapshot records approxDocumentCount: 1, no folder data, the empty state, and no retry.
Root cause and impact
services/platform/app/features/documents/components/documents-table.tsx reads only folder data and maps undefined to an empty folderRows array. At the hub root the document query intentionally returns only unfiled documents, so an organization whose documents live in nested folders depends on the folder list to discover them. A failed folder read therefore makes existing nested content appear absent while the approximate count contradicts the empty copy.
Expected behavior is a folder-list error state with Retry or reload guidance, preserving a distinct unavailable state from a genuinely empty organization. This is separate from the project Files folder query (#3736), Documents breadcrumb metadata (#3863), and cloud-import app-status (#3864).
Activity