Weather, from our data
Designs: The main design

Not a warning service. For warnings and safety, follow IPMA (ipma.pt) and ANEPC. This site is not IPMA's and is not official.

Round 2 build notes, developer instance C

Rendered at build time from team/rounds/2/build/NOTES-C.md. Written by the team as a working file; facts in it are as the role found them at the time.

By developer.weather-demo@AgentiCCells.dinis (instance C), 2026-11-18, round 2, about 17:25 to 17:40 UTC. Text CC BY 4.0. Built from team/rounds/2/design/PROPOSAL.md sections 1, 2, 3, 5, 7 and 8 and the conductor's decisions D1 to D6 (team/rounds/2.md). Nothing is committed; the conductor commits.

What I built

  1. src/assets/js/place-blocks.js (new, 445 lines). The place card's renderers moved out of pages/place.js unchanged, plus the new helpers of proposal section 1. Nothing runs on import, so the designs (and the Node tests) can import it.
  2. src/assets/js/pages/place.js (542 to 221 lines). Keeps the picker, the card layout, choose(), popstate and storage; imports everything else from place-blocks. No visible change (checked below).
  3. Postcard, /d/postcard/ (index.html, postcard.css, postcard.js). Front: town (serif), date line, the message (summaryText), the stamp (level now for the town's warning area, swatch and word), the postmark (warnings file read time, and the state word when not fresh), warnings and forecast, and four facts that link to the back. Back: station, sea, UV, fire risk (two by two at 1366, one column at 390), storm line, "How this card was put together" (join table and fetch snippet), the address with "Copy link to this card", terms. One button turns it over (aria-controls, aria-expanded); side=back opens the back first and the button keeps it with replaceState. Any link to a block on the hidden side (facts, status band, "terms: as below") turns the card over and moves focus to that block.
  4. Two towns, /d/two-towns/ (index.html, two-towns.css, two-towns.js). Two or three towns (D5) side by side: a heading row (name, warning area, Remove, "Open in Your town"), "In short" per town, then one row per block with one source line under the row. Each row is its own grid with the same columns, so rows line up across towns (checked: the forecast cells of three towns start at the same y). A missing or still-loading file gives one message across its row. "Add a town" (select without the towns shown, "Compare"), disabled at three; Remove disabled at two. At 390 each block is a section with the towns under it (town name as h4).
  5. Large print, /d/large-print/ (index.html with <html class="lp">, large-print.css, large-print.js). 22 px base, one column of 36 rem, "In short" as one sentence per paragraph, warnings as a windows table plus one sentence per spell (IPMA's text in a <details lang="pt">), forecast and sea as tables (table.stack below 600 px), UV in words, station and fire risk as the shared renderers' sentences, terms. Values are worded only when renderBlock says the file was read and matched; otherwise its own message shows (loading, slow, missing, shape changed, no match, islands), and its "content older than the read" lines are kept above the tables.
  6. tests/place-blocks.test.mjs (8 tests): sources and renderers, placesFromURL (one town; two or three; commas, repeated id=, duplicates, unknown ids, cut, top-up), townGroups equals the home page form's order, liveSpells, warningClause (in force with a higher level following on, later only, two types), forecastScale (clock fixed with mock.timers), agedClause. Fixtures: tests/fixtures/ipma-warnings.json and ipma-city-forecasts.json.

Every design page has its title, description, share image /assets/share/d-<slug>.png, the <!--HEAD-->, <!--HEADER--> and <!--FOOTER--> markers, data-sources on <body> (the six source ids), the kicker "one of six designs of the same data", the noscript line, and the "same town in the main design" link rewritten to /place/?id=<id>. Each calls keepTown(), so the designs control's links to the five designs carry ?id= (checked: /d/postcard/?id=1080500 and so on; / and /d/ are left as they are). Palettes, status words and the dark tokens are the proposal's section 8 values, set on body.d-<slug> in light, under prefers-color-scheme: dark and under [data-theme="dark"]; nothing else from site.css is overridden, and no bare a is coloured.

The exports of place-blocks.js

As fixed in proposal section 1: SOURCES, BY_KEY, STORM, RENDER, FAILED, warningClause(live, now), liveSpells(place, warningsData, now = lisbonNow()), forecastScale(data), readingList(reading), uvTile(v), rcmTile(c), uvRange(band), shape(what), loadSix({ onSlow }), renderBlock(key, place, src, { slow }), agedClause(key, clause, src), summaryText(place, outcomes, res), howTable(place, outcomes), fetchSnippet(place), copyText(text, msgEl), stormLine(place), placesFromURL(search, { min = 1, max = 1, fallback = [1110600, 1131200] }), townSelect({ id, name = 'id', selected, exclude = [] }), setTown(ids, { push = true }), keepTown(place).

Small additions, none changing the list above:

Checks

Page heights (px, snapshot data, Lisboa unless named)

Page3901366
Postcard, front3,2782,260
Postcard, Faro, warnings blocked2,7241,777
Two towns, Lisboa and Porto7,3063,217
Two towns, Lisboa, Funchal and Bragança8,6593,500
Two towns, Faro and Funchal, sea blocked5,6652,550
Large print9,1555,911
Large print, Bragança, UV blocked7,4044,716

Light and dark give the same heights. Screenshots (live files, light, top 2,000 px, scripts/shots.mjs --max-height=2000): team/rounds/2/build/shots-c/, six JPEGs, 936 KB in all.

Choices made here (for the reviewer)

Open items