Repository navigation
algorithm-catalog: event pages, places at any level, Disasters Portal PRs - #250
Merged
Merged
Conversation
… PRs One record now covers an event's public page on science.data.nasa.gov and its algorithm layers, replacing the hand-kept hazard_event_info.xlsx. - Submit form gains "Page content" (sub-title, Need, intro, US-gov link, region, portal id) with a live page preview in the portal's section order; Events gets Page preview, Copy Markdown, Page JSON and "Edit page". Page text is newest-wins over the published event. - Locations at any level of interest: a bundled gazetteer (Natural Earth + Census, stdlib-built) behind a picker with Narrow/Broaden (Alabama -> Montgomery, Alabama); picking places fills the bbox until one is typed. - A request PR carrying a page opens a matching PR on Disasters-Learning-Portal/disasters-portal (event file + index.ts entry), only after the portal's own Biome lint:ci and typecheck pass in a checkout. Hand-written portal pages are never overwritten. - Portal standards enforced in rules.ts + validate_data.py (theme ids, CONTENT_CATEGORIES, 20xx DateString, portal id slug), parity-tested. - One-time sheet-1 import of the spreadsheet: 5 events added, 3 gain portal ids.
This was referenced Oct 20, 2026
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.
What
One record now covers an event's public page on science.data.nasa.gov and its algorithm layers. It replaces the hand-kept
hazard_event_info.xlsx.pageopens a matching PR onDisasters-Learning-Portal/disasters-portalwith the event file and itsindex.tsentry. This is done by.github/workflows/algorithm-catalog-portal-pr.yml→scripts/portal_pr.mjs→src/portal.ts, the same generator the app previews. The PR is opened only after the portal's ownbiome check,lint:ciandtypecheckpass in a checkout. Hand-written portal pages are never overwritten.rules.tsandvalidate_data.py, and parity-tested: theme ids,CONTENT_CATEGORIES, 20xxDateString, portal id slug.scripts/import_xlsx.py): 5 events added, 3 gain portal ids. It reports anything it can't map instead of guessing.Verified
validate_data.pyandrules_parity_test.pypass, as donpm run typecheckandnpm run build.scripts/e2e.mjspasses 30/30 in Chromium. The new checks cover Alabama → Montgomery → back, bbox auto-fill and hand-edit protection, page preview, Edit page, and a PR URL that carriespage+places.disasters-portal@developcheckout, the generated page passesbiome ci,lint:ci,typecheckandpnpm build, and renders at/news-events-stories/hurricane-isaias-oct-2026..tsx) is skipped, and a regenerate is idempotent.Notes
algorithm-catalog/data/requests/**, so this PR doesn't trigger it.DISASTERS_PORTAL_TOKEN, falling back toPROJECT_TOKEN_FOR_BOARD_READS. Fork PRs are skipped./img/event/template-hero.webp).