Skip to content

bug(dashboard): failed refresh leaves the button loading forever #2682

Description

@HandSonic

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

  1. Open an existing dashboard.
  2. Make the dashboard detail endpoint fail, for example by disconnecting the network or returning HTTP 500.
  3. 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

  • Reproduced on the selected Chat2DB edition.
  • Searched existing issues and pull requests for duplicates.
  • Removed credentials and private data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    edition/communityChat2DB Communityneeds/infoNeeds more information from the reporter

    Type

    No type

    Projects

    Status
    In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions