Skip to content

Add async loading states for large lists - #429

Closed
shanselman wants to merge 3 commits into
masterfrom
async-list-loading
Closed

shanselman wants to merge 3 commits into
masterfrom
async-list-loading

Conversation

@shanselman

Copy link
Copy Markdown
Collaborator

Summary

  • add a reusable AsyncListLoadingState for first-load, stale-while-refresh, and loaded-empty list states
  • show explicit loading placeholders on Sessions, Cron, Usage, and Bindings instead of flashing empty states while gateway data is slow
  • keep stale list data visible during refresh but disable editing/actions until fresh data arrives
  • guard Usage cost updates so stale responses from an older period cannot overwrite the selected period

Validation

  • ./build.ps1
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore

@shanselman

Copy link
Copy Markdown
Collaborator Author

Closing this for now because the branch is older/dirty and we are prioritizing stability work today.

The async loading-state idea is still useful, and we can come back to it later from a fresh branch against current master so it does not carry stale UI conflicts forward. Thanks for pushing this direction.

@shanselman shanselman closed this May 21, 2026
@shanselman
shanselman deleted the async-list-loading branch September 7, 2026 06:30
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