feat: Add "not found" error detail on page load (#482)

Resolves https://github.com/webrecorder/replayweb.page/issues/481 with
workaround
Related to https://github.com/webrecorder/browsertrix/issues/2865

## Changes

- Includes `replayNotFoundError` in `"page-loading"` event when page is
finished loading as a workaround for the actual `replayNotFoundError`
value not being available on `urlchange`.
- Minor refactor to more strongly typed events.
This commit is contained in:
sua yoo
2026-02-11 23:58:28 -08:00
committed by GitHub
parent e4fd230694
commit 17539f3084
11 changed files with 136 additions and 54 deletions
+3 -3
View File
@@ -14,6 +14,7 @@ import {
dateTimeFormatter,
timeFormatter,
} from "./utils/dateTimeFormatter";
import type { TabNavEvent } from "./events";
// ===========================================================================
class PageEntry extends LitElement {
@@ -384,10 +385,9 @@ class PageEntry extends LitElement {
return this.onReplay(event, true);
}
// @ts-expect-error [// TODO: Fix this the next time the file is edited.] - TS7006 - Parameter 'data' implicitly has an 'any' type.
sendChangeEvent(data, reload: boolean) {
sendChangeEvent(data: URLTsChange, reload: boolean) {
this.dispatchEvent(
new CustomEvent("coll-tab-nav", {
new CustomEvent<TabNavEvent["detail"]>("coll-tab-nav", {
bubbles: true,
composed: true,
detail: { data, reload },