Chat2DB Edition
Chat2DB Community
Chat2DB Version
main at 2442df9
Deployment
Web and Desktop
Problem Summary
When refreshing the current dashboard, a failed detail request leaves the refresh action pending forever. The refresh button remains in its loading state even though the request layer reports the error.
Steps to Reproduce
- Open an existing dashboard.
- Make the dashboard detail endpoint fail, for example by disconnecting the network or returning HTTP 500.
- Click the dashboard refresh button.
Expected Behavior
The refresh attempt settles after the request fails and the refresh button stops spinning.
Actual Behavior
refreshCurrentDashboard wraps getDashboardById in a Promise with only a resolve path. A rejection never settles the outer Promise, so DashboardContent never clears refreshLoading.
Logs
The request layer surfaces the HTTP or network error, but the refresh Promise remains pending.
Screenshots or Additional Context
The failure path is deterministic in the dashboard store action on current main. The request helper rejects on both business and network failures.
Impact
Dashboard refresh appears permanently stuck after a transient backend or network error.
Workaround
Reload the page.
Submission Checklist
Chat2DB Edition
Chat2DB Community
Chat2DB Version
main at 2442df9
Deployment
Web and Desktop
Problem Summary
When refreshing the current dashboard, a failed detail request leaves the refresh action pending forever. The refresh button remains in its loading state even though the request layer reports the error.
Steps to Reproduce
Expected Behavior
The refresh attempt settles after the request fails and the refresh button stops spinning.
Actual Behavior
refreshCurrentDashboard wraps getDashboardById in a Promise with only a resolve path. A rejection never settles the outer Promise, so DashboardContent never clears refreshLoading.
Logs
The request layer surfaces the HTTP or network error, but the refresh Promise remains pending.
Screenshots or Additional Context
The failure path is deterministic in the dashboard store action on current main. The request helper rejects on both business and network failures.
Impact
Dashboard refresh appears permanently stuck after a transient backend or network error.
Workaround
Reload the page.
Submission Checklist