Commit 3db2f29
WOOA7S-1760: Premium Analytics: show error state with retry on report pages (#50623)
* Premium Analytics: show error state with retry on report pages
Add a shared ReportErrorState component to widgets-toolkit, expose isError/refetch from report record hooks, and render the error state with a retry action on all report pages when loading fails.
* Update changelog grammar
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Premium Analytics: add report error state tests and shared retry hook
Add a standalone test for ReportErrorState, page-level tests asserting
the Posts and Videos pages render the error state and wire Retry to
refetch, and extract the per-page refetch callback into a shared
useReportRetry hook in widgets-toolkit.
* Premium Analytics: use shared error state on newer report pages
The Comments, Emails, Tags, and Annual insights reports landed on trunk
with the same hand-rolled inline error UI this branch extracts into
ReportErrorState. Switch them to the shared component and retry hook.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/29723327569
Upstream-Ref: Automattic/jetpack@a6fc7e51 parent bf86597 commit 3db2f29
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | | - | |
| 1855 | + | |
1856 | 1856 | | |
1857 | 1857 | | |
1858 | 1858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | | - | |
| 1855 | + | |
1856 | 1856 | | |
1857 | 1857 | | |
1858 | 1858 | | |
| |||
0 commit comments