[PR #8516] fix(ui): show loading state in List component while async items fetch #12775

Closed
opened 2026-02-16 18:17:40 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8516

State: closed
Merged: No


Summary

Fixes #8325

The "Open project" dialog was showing "No folders found for ''" on initial load instead of a loading indicator while the async directory fetch was in progress.

Changes

  • Reordered the loading state check in the List component to prioritize showing "Loading" while grouped.loading is true, before falling back to emptyMessage

Before: {props.emptyMessage ?? (grouped.loading ? "Loading" : "No results")}
After: {grouped.loading ? "Loading" : (props.emptyMessage ?? "No results")}

Verification

Tested by opening the web app and pressing Cmd+O to open the project selector. Now shows "Loading for ''" briefly before displaying results.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8516 **State:** closed **Merged:** No --- ## Summary Fixes #8325 The "Open project" dialog was showing "No folders found for ''" on initial load instead of a loading indicator while the async directory fetch was in progress. ## Changes - Reordered the loading state check in the List component to prioritize showing "Loading" while `grouped.loading` is true, before falling back to `emptyMessage` **Before:** `{props.emptyMessage ?? (grouped.loading ? "Loading" : "No results")}` **After:** `{grouped.loading ? "Loading" : (props.emptyMessage ?? "No results")}` ## Verification Tested by opening the web app and pressing Cmd+O to open the project selector. Now shows "Loading for ''" briefly before displaying results.
yindo added the pull-request label 2026-02-16 18:17:40 -05:00
yindo closed this issue 2026-02-16 18:17:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12775