src/app.ts
Props, state and actions
Props are{ title, items }, with 1 to 25 items of { id, label } (ids 1 to 64 characters). State is
{ done: string[] }, the ids of checked items, starting empty.
Each item is a row with an icon button, labelled from
markDone or undo. The recipe shortens a
long item name in that label to fit the 32-character limit on button labels. Reintersect writes the
progress bar’s text, such as “2 of 3”, so progress only feeds the block summary.
When every item is checked, the block shows a finished message. Checked state is shared: one member
checking an item checks it for everyone.
Labels
progress, markDone, undo, complete, reset, confirmTitle, unknownItem.