feat: combine TFL alerts into single feed item (#107)

TflSource.fetchItems() now returns one TflStatusFeedItem with an
alerts array instead of separate items per line disruption. Signals
use the highest severity. Alerts sorted by station distance.

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-03-30 00:00:41 +01:00
committed by GitHub
parent 1483805f13
commit f549859a44
6 changed files with 322 additions and 167 deletions

View File

@@ -10,5 +10,7 @@ export {
type TflAlertSeverity,
type TflLineStatus,
type TflSourceOptions,
type TflStatusData,
type TflStatusFeedItem,
} from "./types.ts"
export { renderTflAlert } from "./renderer.tsx"
export { renderTflStatus } from "./renderer.tsx"