Skip to content

fix(web): show a distinct error state with retry for failed citation … - #623

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
d180:fix/citations-load-error-state
Aug 3, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
d180:fix/citations-load-error-state

Conversation

@d180

@d180 d180 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When getCitationsOverview / getCitationsTotal rejected, the Citations page's catch block was empty, so hasAnyCitations stayed null forever — and the tables spun on "Checking citation data…" indefinitely, despite a comment claiming the user would see an empty state / could retry.
  • Added a loadFailed state, set in loadData's catch (which now also logs the error and shows a toast.error instead of swallowing it silently).
  • EmptyRows gained a new highest-priority branch: when loadFailed is true, it shows "Couldn't load citation data" with a working Retry button instead of falling into the endless spinner.
  • Threaded loadFailed / onRetry through DomainsTable and UrlsTable, the two tables that render EmptyRows from loadData.

Related issue

Closes #599

Type of change

  • fix — Bug fix

Checklist

  • Branch follows the naming convention (fix/)
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix — the highest-priority loadFailed branch guarantees the spinner can't run forever, and the retry wiring through both tables is clean. Thanks!

@gkhngyk
gkhngyk merged commit 7a48cd3 into ansvisor:main Aug 3, 2026
4 checks passed
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.

Citations: load failures leave the tables stuck on "Checking citation data…" forever

2 participants