Branch
tickets/DM-55470
Type
AFK
Jira Key
DM-55470
Jira URL
https://rubinobs.atlassian.net/browse/DM-55470
Blocked by
#622, #624
Parent PRD
#620
Task Order
6
Parallel with
Scope
Migrate apps/squareone/src/components/TimesSquareHtmlEventsProvider/TimesSquareHtmlEventsProviderClient.tsx onto the package transport: delete its inline HtmlEvent type and the direct fetchEventSource usage, and consume subscribeToHtmlEvents + createHtmlEventsUrl from @lsst-sqre/times-square-client instead, passing the bounded-reconnect options (5 attempts, 1 s backoff) added in the earlier slice.
Preserve the behavior PR #610 added: the connectionFailed state, the once-per-subscription Sentry capture (makeReportError, tags site: 'times-square-sse'), and the role="alert" banner. Extend TimesSquareHtmlEventsContext (in TimesSquareHtmlEventsProvider.tsx, including the dynamic-import loading fallback defaults) with the execution-error fields (executionError object from the validated event).
Update the provider tests. Create the squareone app changeset (minor) for the DM-55470 UI work; later slices extend it.
See PRD #620 §Scope (apps/squareone first bullet) and acceptance criterion 5.
Acceptance criteria
Branch
tickets/DM-55470
Type
AFK
Jira Key
DM-55470
Jira URL
https://rubinobs.atlassian.net/browse/DM-55470
Blocked by
#622, #624
Parent PRD
#620
Task Order
6
Parallel with
Scope
Migrate
apps/squareone/src/components/TimesSquareHtmlEventsProvider/TimesSquareHtmlEventsProviderClient.tsxonto the package transport: delete its inlineHtmlEventtype and the directfetchEventSourceusage, and consumesubscribeToHtmlEvents+createHtmlEventsUrlfrom@lsst-sqre/times-square-clientinstead, passing the bounded-reconnect options (5 attempts, 1 s backoff) added in the earlier slice.Preserve the behavior PR #610 added: the
connectionFailedstate, the once-per-subscription Sentry capture (makeReportError, tagssite: 'times-square-sse'), and therole="alert"banner. ExtendTimesSquareHtmlEventsContext(inTimesSquareHtmlEventsProvider.tsx, including the dynamic-import loading fallback defaults) with the execution-error fields (executionErrorobject from the validated event).Update the provider tests. Create the
squareoneapp changeset (minor) for the DM-55470 UI work; later slices extend it.See PRD #620 §Scope (
apps/squareonefirst bullet) and acceptance criterion 5.Acceptance criteria
TimesSquareHtmlEventsProviderClientcontains no SSE transport code of its own — nofetchEventSourceimport, no inlineHtmlEventtype.TimesSquareHtmlEventsContextexposesexecutionError; existing fields and defaults are unchanged.connectionFailed, Sentry capture, and the alert banner behave as before (existing tests updated and passing).squareonechangeset created (minor).