feat(quick-notes): add a typed page to a notebook from the phone #56

Merged
jfro merged 2 commits from feat/54-quick-note into main 2026-10-27 02:45:24 +00:00
Owner

Closes #54

A quick note page for when only the phone is to hand: type a few lines, pick a notebook (a journal, say), and they're added as a typed page at the end of it.

  • /quick-note (QuickNoteLive), linked from the library header and the phone's menu. Notebook picker (location / name), a Markdown text box, a "Start with the date and time" toggle (on by default; adds a subheading like Mon Oct 26, 2026 · 9:05 PM in TZ), and Add to notebook.
  • Writes through TypedPages.add_page/4, the same path as agents' pages (after a sync, retried on 412, transcription recorded so search finds it).
  • On failure the text stays in the box with why; on success it clears and links to the new page.
  • Notebook default: RM_QUICK_NOTE_NOTEBOOK (name, any case, or id) when set; else the last one used (new quick_note_preferences table, migration runs on start).
  • Logger: each add logs user, notebook, page number/id, length and duration; failures log why; a bad RM_QUICK_NOTE_NOTEBOOK logs a warning.
  • Docs: new docs/quick-notes.md, README (feature + env var), docs/typed-pages.md.

Tests: 10 new (context + LiveView). mix precommit: 917 tests pass.

Not done: appending to an existing page (the writer can only add pages), creating a notebook.

Closes #54 A quick note page for when only the phone is to hand: type a few lines, pick a notebook (a journal, say), and they're added as a typed page at the end of it. - `/quick-note` (`QuickNoteLive`), linked from the library header and the phone's menu. Notebook picker (location / name), a Markdown text box, a "Start with the date and time" toggle (on by default; adds a subheading like `Mon Oct 26, 2026 · 9:05 PM` in `TZ`), and Add to notebook. - Writes through `TypedPages.add_page/4`, the same path as agents' pages (after a sync, retried on 412, transcription recorded so search finds it). - On failure the text stays in the box with why; on success it clears and links to the new page. - Notebook default: `RM_QUICK_NOTE_NOTEBOOK` (name, any case, or id) when set; else the last one used (new `quick_note_preferences` table, migration runs on start). - Logger: each add logs user, notebook, page number/id, length and duration; failures log why; a bad `RM_QUICK_NOTE_NOTEBOOK` logs a warning. - Docs: new `docs/quick-notes.md`, README (feature + env var), `docs/typed-pages.md`. Tests: 10 new (context + LiveView). `mix precommit`: 917 tests pass. Not done: appending to an existing page (the writer can only add pages), creating a notebook.
feat(quick-notes): add a typed page to a notebook from the phone
All checks were successful
CI / test (pull_request) Successful in 1m30s
b633e96510
/quick-note takes a few lines of Markdown and adds them as a typed page at
the end of a picked notebook, through TypedPages.add_page/4. Optionally
starts with the date and time. The notebook starts as RM_QUICK_NOTE_NOTEBOOK
(name or id) or the one last used. Logs each add with ids and duration.

Closes #54
jfro added this to the v1.6.0 milestone 2026-10-27 01:30:19 +00:00
fix(quick-notes): say a missing notebook is gone, not how an agent finds its id
All checks were successful
CI / test (pull_request) Successful in 1m24s
1f2a38f77a
jfro merged commit 02c7bfda23 into main 2026-10-27 02:45:24 +00:00
jfro deleted branch feat/54-quick-note 2026-10-27 02:45:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer!56
No description provided.