fix(presentation): show a support reference on failure screens (08-07)
Route render, unrecovered chunk and query failure screens now show the id a user quotes to support, and the render diagnostic records the same id as correlation_id. The route failure page also offers a reload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f17572a4be
commit
b7fc7e53ce
@@ -62,6 +62,11 @@ export function createApplication(
|
||||
route_id: report.routeId,
|
||||
build_id: report.buildId,
|
||||
component_boundary: report.boundaryName,
|
||||
// Incident-scoped like a request id: diagnostics only, never
|
||||
// telemetry.
|
||||
...(report.incidentId === undefined
|
||||
? {}
|
||||
: { correlation_id: report.incidentId }),
|
||||
},
|
||||
});
|
||||
} catch {
|
||||
|
||||
@@ -24,6 +24,8 @@ export type RenderFailureReport = Readonly<{
|
||||
routeId: string;
|
||||
buildId: string;
|
||||
boundaryName: "route" | "feature";
|
||||
/** 08-07. The id the failure page shows as its support reference. */
|
||||
incidentId?: string;
|
||||
}>;
|
||||
|
||||
export type RouteChangedReport = Readonly<{
|
||||
|
||||
Reference in New Issue
Block a user