Skip to content

feat(notes): today's note, one click from the Notes page and in Jump to - #416

Merged
adeelahmad merged 2 commits into
mainfrom
claude/project-thread-wm7xc9
Oct 15, 2026
Merged

adeelahmad merged 2 commits into
mainfrom
claude/project-thread-wm7xc9

Conversation

@adeelahmad

@adeelahmad adeelahmad commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: writing down something about today meant adding a note, naming it with the date and filing it somewhere, every day.

After: Today on the Notes page, Today's note in Jump to (⌘K), or the address /notes/today opens the namespace's note for the day, made the first time it's asked for. It is titled with the date (like 2026-10-15) and sits inside a Daily notes note, which is made too when there's none. It is the day where the person is (the browser's date), one note a day per namespace that everyone there shares, and it renames and moves like any note.

How: notebook.today() finds the page marked daily = <date> in the namespace, or makes it inside the page marked daily_root, making that too. POST /api/v1/notes/today with {ns, date} (editors) returns the page; components/notes/today.tsx calls it with the browser's date and replaces the address with the note's.

Also: test_syslog_any_free_port_skips_one_taken_on_tcp failed in CI here (FastAPI SurrealDB server 1/2) because the next port UDP picked was really taken on TCP too, so the listener rightly tried a third; the test asserted exactly two tries. It now asserts at least two (reproduced by making the second try busy: the old assert fails, the new one passes).

Motivation and Context

Part of the notes UI audit (Adeel: "notes ui is very bad and is missing tons of things"): a daily note is in most notes apps.

Steps to reproduce (if appropriate):

Notes → Today. Again → the same note. ⌘K → type "today" → Enter.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

Done questions (AGENTS.md)

  • Goal: one click opens today's note; merged on green CI.
  • Agents: POST /api/v1/notes/today {ns, date} returns the same note, which the assistant and MCP note tools then read and write by id.
  • Zero setup: nothing to install or configure; the Daily notes note is made on first use.
  • Fewest clicks: one (Today), or ⌘K and Enter.
  • Configurable: n/a, no new settings.
  • Light: no new dependency.
  • Private and secure: editors only make it; same namespace access checks.
  • Cost: no model calls.
  • User decides: nothing is made until someone opens Today; defaults unchanged.
  • Upgrades: two new optional fields on note_page (daily, daily_root, SCHEMALESS); no upgrade step needed.
  • Honest: docs describe what is built.
  • Tests (backend: made once, the same note after, inside Daily notes, viewer refused; web: __tests__/notes-today.test.tsx) and docs (docs/notes.md Today's note, docs/api.md) updated; make openapi regenerated. Local: web 918 passed, notebook API tests passed.
  • Open standards: n/a.
  • Refine later: a calendar to open another day's note, and a template for daily notes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RrY2byt5BHVeBXJUyfwWpb

Today on the Notes page, Today's note in Jump to, or /notes/today opens the
namespace's note for the person's day, made the first time it's asked for:
titled with the date, inside a Daily notes note made on demand.
POST /api/v1/notes/today {ns, date} gives agents the same note.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RrY2byt5BHVeBXJUyfwWpb
@adeelahmad adeelahmad self-assigned this Oct 15, 2026
On a busy machine the next port UDP picks can be taken on TCP too, so the
listener rightly tries a third; the test asserted exactly two tries and
failed (FastAPI SurrealDB server 1/2 on #416).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RrY2byt5BHVeBXJUyfwWpb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants