After a recent PR, the ticket summary panel started behaving unreliably when quickly switching between codes. You need to review the changes and find the reasons why the screen sometimes shows the wrong ticket and does not recover after an error.
TicketSummaryPanel component receives the current ticket code via the ticketCode prop.ticketCode change, the panel must request the summary for the current code only.Loading…Retry button must be shown.Retry button must repeat the request for the current ticketCode and return the panel to the normal loading cycle.T-100.T-200.T-100 resolves successfully after 80msT-200 resolves successfully after 20msT-500 rejects after 20msT-100 → T-200T-100, then transition to T-500T-500, then pressing RetryExample test source behavior:
T-100 -> resolve after 80ms
T-200 -> resolve after 20ms
T-500 -> reject after 20ms
T-200, the screen must keep the summary for T-200, even if the T-100 response arrives later.T-100 to T-500, the old summary must disappear immediately, and Loading… must be visible until the response arrives.T-500 request fails, the old successful summary must not return or stay on screen.Retry must actually start a new load for the current code, not just change a local indicator.19.0.05.8.xStrictMode enabled in developmentafterloadTicketSummary(ticketCode): Promise<{ code: string; subject: string; status: string }>T-500, the promise must reject with reject(new Error("Ticket lookup failed"))Use line comments to explain the problem, its impact, the fix and how to test it.