Skip to content

v0.5.12

Latest

Choose a tag to compare

@mbolli mbolli released this 30 Nov 10:53
  • live: Hub.NotifyAfter(streamID, viewKey, key, frame) holds a notice until the stream has been sent a frame of viewKey that holds the commits made before the call, deferred renders included, and sends it in that write. A notice that fills a slot a view creates (a dialog, a one-time value such as a new API key) can no longer arrive before its slot, as it can with Notify. Options.NoticeWait (30 s) drops a notice that waits longer; Notify is unchanged.
  • Template: a command words its outcome with TabState.Say ("Signed. Thank you, Bea."), shown once with the op's ack, and RefuseField(field, reason) refuses about one field: the page puts the reason under it, marks it aria-invalid and moves the focus there. The tab's view now sends signals only, and its live regions (the outcome, the problem line) stay on the page, empty, before their text arrives. An app made from an earlier template keeps working; copy the change from a new lith-new project to get it.
  • Docs: "Which feedback to give" says what does not count as showing a change (a form that keeps its values, a modal that closes, a change out of sight, an item that disappears without a word), and the review checklist gains five checks with their searches: a write the person cannot see, bad input that ends in a 500, a failure that looks like success, a handler test in another encoding, and a side effect before the commit.
  • Docs: the feedback rules, the pages guide and both review checklists cover rows that leave a list, confirm dialogs, unreadable changes, live regions, native controls, the focus after a frame, op keys per row, outcomes across a navigation, 5xx without a notice and lost access, with four new checks; a notice can come before a deferred render, so a value for a slot a view creates goes through that view; recipes.md's Uploads no longer swallows the rest of "A command".