Repository navigation
Forecast confidence tiering, time normalization, dep updates - #4
Merged
Merged
Conversation
- Add lead-time tiers (Warning/Watch/Outlook) reflecting decreasing forecast skill at longer horizons - Confirm elevated severity via agreement across multiple daily forecast issuances (Google reissues forecasts daily) instead of persisting our own history in ephemeral state - Mark unconfirmed/preliminary severity distinctly in callsign, remarks, and polygon fill opacity - Render lower-confidence (non-qualityVerified) gauges with reduced marker-opacity to visually distinguish them on the map - Cross-reference gauges covered by a Significant Flood Event in remarks/callsign, per Google's event-based alerting guidance - Surface forecastChange.valueChange (predicted change bounds) in remarks when available - Normalize all surfaced timestamps to the TAK.NZ date/time standard: metadata now exposes separate *UTC (raw ISO 8601) and *Local (DD/MM/YYYY, HH:mm NZST/NZDT + relative time) fields, computed via Intl.DateTimeFormat with Pacific/Auckland to handle DST correctly
- @sinclair/typebox 0.34.49 -> 0.34.52 - @tak-ps/etl 10.8.0 -> 10.9.0 - eslint 10.6.0 -> 10.8.0 - typescript-eslint 8.62.1 -> 8.65.0 - resolve transitive brace-expansion high-severity advisory via npm audit fix typescript stays pinned at 6.0.3 (latest 6.x): typescript-eslint's peer dependency still caps at <6.1.0, so TypeScript 7.x is not yet installable alongside it without breaking lint/type-checking. Verified: npm run build, npm run lint, tsc --noEmit, npm audit (0 vulnerabilities) all pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reduces false-urgency ("crying wolf") risk in flood alerting and normalizes
timestamp display, plus routine dependency maintenance.
Forecast confidence tiering
Google's documented decrease in forecast skill at longer horizons
forecast issuances (Google reissues forecasts daily) rather than persisting
our own severity history — avoids relying on ETL ephemeral state, which
isn't designed for growing time-series data
polygon fill opacity, so a single volatile long-lead-time spike doesn't read
as equally certain as a confirmed same-day forecast
qualityVerified) gauges with reducedmarker-opacityto visually distinguish them on the mapremarks/callsign, per Google's own event-based alerting guidance
forecastChange.valueChange(predicted change bounds) in remarkswhen available, showing a range instead of a single point value
Date/time normalization
metadatanow exposes separate
*UTC(raw ISO 8601, unmodified) and*Local(
DD/MM/YYYY, HH:mm NZST/NZDT (<relative>)) fieldsIntl.DateTimeFormatwithtimeZone: 'Pacific/Auckland'so NZST/NZDT transitions are handledautomatically
singular/plural
Dependency updates
@sinclair/typebox0.34.49 → 0.34.52@tak-ps/etl10.8.0 → 10.9.0eslint10.6.0 → 10.8.0typescript-eslint8.62.1 → 8.65.0brace-expansionDoS advisory vianpm audit fixtypescriptstays pinned at 6.0.3 (latest 6.x):typescript-eslint's peerrange still caps at
<6.1.0, so TypeScript 7.x isn't yet installablealongside it without breaking lint/type-checking
Testing
npx tsc --noEmit— passesnpm run lint— passesnpm run build— passesnpm audit— 0 vulnerabilitiesboundaries) against the standard via a standalone script
Not verified: end-to-end run against the live Google Flood Forecasting API
(requires
API_KEY/ETL_*credentials), so forecast-confirmation logic andCoT payload output haven't been validated against real API responses.
Blocked / follow-ups
typescriptto 7.x oncetypescript-eslintadds support.