Compositions · Preview · requirements · design · tasks

Volcanic alert levels - Tasks

Source of truth for progress.

Tasks

T1 Declare feature-volcano-val@1 with requiresBase: ">=1 <2", the body

slot map, and heading / endpoint / show config defaults

T2 Body fragment: home-volcano block with one card-volcano per monitored

volcano, display names and type tags from beta (R1, R10)

T3 remoteCss for card.css and card-volcano.css so the cards are styled

by beta's own component CSS

T4 summarise() keyed by volcanoID, level clamped 0-5, standard wording

fallback (R5)

T5 paint() setting level, -level-N modifier and activity, and leaving

unmentioned volcanoes on placeholders (R1, R4)

T6 show filter via beta's -hidden modifier (R3)

T7 Highest-first reordering of existing card nodes (R2)

T8 Fixture-first data resolution, live fetch fallback (R6)

T9 Live region status messages for live, fixture, quiet and error (R7)

T10 Fixtures for quiet, unrest and eruption

T11 Feature CSS: status line plus alert palette and -hidden fallbacks

Verification

npm run build passes

Live preview renders with real data from volcano/val

All three fixture states render with no network call

Ordering is highest-first on the eruption fixture

show: all renders twelve cards, show: unrest renders only raised ones

Reviewed on the preview URL by a second person

Checked at 320px wide and 400% zoom

Compared side by side with the home-volcano block on beta

Follow-ups

sits under this block on beta. Contentful, so fixtures only.

the bulletins slice, since it needs Contentful ids.