Skip to content

Commit 3db2f29

Browse files
Nikschavanmatticbot
authored andcommitted
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@a6fc7e5
1 parent bf86597 commit 3db2f29

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/index.d.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ declare const BaseTooltip: ({
18521852
className,
18531853
style,
18541854
renderContainer
1855-
}: BaseTooltipProps) => string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
1855+
}: BaseTooltipProps) => string | number | true | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode>;
18561856
//#endregion
18571857
//#region src/components/tooltip/accessible-tooltip.d.ts
18581858
type FlattenedTooltipData = {

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ declare const BaseTooltip: ({
18521852
className,
18531853
style,
18541854
renderContainer
1855-
}: BaseTooltipProps) => string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
1855+
}: BaseTooltipProps) => string | number | true | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode>;
18561856
//#endregion
18571857
//#region src/components/tooltip/accessible-tooltip.d.ts
18581858
type FlattenedTooltipData = {

0 commit comments

Comments
 (0)