From c3c4fe5f2b52001ea73f9ee85fe51b1a06040a4f Mon Sep 17 00:00:00 2001 From: Kshitij Bachhav Date: Tue, 4 Aug 2026 13:28:51 +0530 Subject: [PATCH 1/6] notes: a note is a document of blocks, and its title looks like one A single multiline TextInput has nowhere to put a bullet, an alignment or an image, so a note becomes a column of blocks -- one TextInput each, edited in place. Enter splits at the caret, Backspace at the start merges upward, and the first paragraph renders at 28px: the first line has always been the title, this makes it look like what it already was. Storage keeps both representations. `doc` is the new nullable column holding the block document; `body` stays the plain-text projection of it, so search ranking, #hashtag parsing, deriveTitle, the list preview and the Phase 4 sync cursor go on reading exactly what they read before. A null `doc` is a plain-text note -- every note written until now -- which parses back as paragraphs, so there is nothing to migrate. The detail screen moves from save-on-blur to a 600ms autosave: with a block per line, blur fires every time the caret crosses a boundary. Two things only the web build gets wrong, both fixed here: it renders `