The slash menu gains Video, Audio, Page break, Footnote, Tabs, Status,
Emoji, Subpages, Synced block and a fifth column size:
- Video and audio upload a file that plays on the page.
- Page breaks show as a labelled line and start a new page in print,
Word and PDF.
- Footnotes are numbered in reading order and listed at the end of the
page. Their notes hold bold, italic, code and links, with a plain copy
kept for search.
- Tabs hold blocks on several named tabs; which one shows is each
reader's own choice.
- Status badges are coloured words in the text.
- Typing ":" and a word picks an emoji, from the list the page icon
picker uses, now kept in the editor package.
- Subpages lists the page's child pages, read afresh from the page tree.
- A synced block is a synced page that shows one block of another page,
made from a copied block link.
Exports (HTML, Markdown, Word, PDF) and search handle every new block.
Page and space exports list a page's subpages. Labels are translated in
all five languages.
The phone toolbar gets Tabs, Footnote, Status, Emoji, Subpages and Page
break, and the app answers the editor's request for the page's
subpages. The bridge protocol goes to version 5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CalDAV and Google calendars can now be written to from the journal on
the web and in the phone app. Each change goes to the source at once
with If-Match set to the ETag the last sync read, so a change made
elsewhere is refused (409) instead of overwritten; the account is then
read again. Repeating events, iCal feeds and read-only Google calendars
stay read-only.
- calendar_events keep each event's calendar, object/event id, ETag and
whether it repeats; accounts keep their writable calendars and the
one new events go to (migration 1764800000_calendar_writes).
- Google sign-in asks for calendar.events; older read-only accounts are
offered "Connect again".
- New API: POST /calendar/events, PATCH and DELETE /calendar/events/{id}.
- Translations, Docs-Site guides and changelog updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The editor-bridge bundle now includes the editor changes up to Turn into.
The comment test's page lacked the verification field pages gained with
verified pages, so Page.fromJson threw.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase G of docs/AFFINE.md (ADR-17):
- Invite links: one per workspace (member or guest, optional end date,
optional admin approval) on a new /join page. Requests are approved
(optionally as another role) or declined from workspace settings;
join_request, join_approved and join_declined notifications reach the
inbox, phones and the email digest. Workspace admins decide, else the
organization's admins, else superadmins. Signup honours ?redirect=.
- Workspace switches: allowSharing (off makes every share link answer 404
until it is back on) and urlPreview (chat apps may show private pages'
titles). docwell-web writes title and Open Graph tags for known
link-preview bots, asking docwell-server via DOCWELL_PREVIEW_API_URL;
search engines are left out.
- Page analytics: page_views counts opens per page, person and day from
the existing visit call and share-link reads; editors see totals, a
daily chart and recent viewers in the Info panel. analytics.prune
drops rows after 400 days.
- Unused files: attachments whose id appears in no page's Yjs state,
page icon or comment (older than a day) are listed and deleted from
workspace settings.
- Migration, schema snapshot, OpenAPI, generated clients, translations
in five languages, phone inbox, compose files and user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase F follow-ups (ADR-16):
- Calendars: events are now stored in calendar_events by a
calendars.sync job (every 15 minutes per account, 90 days back and
400 ahead), so journals open at once and keep showing events while a
source is down. Google accounts connect with OAuth (calendar.readonly)
through DOCWELL_GOOGLE_CLIENT_ID/SECRET; reconnecting renews access.
- OneNote: whole notebooks import through Microsoft Graph (Notes.Read,
DOCWELL_MICROSOFT_CLIENT_ID/SECRET/TENANT) in the background, with
section groups, sections, subpages, pictures and attached files. The
Microsoft sign-in lives in memory for an hour and is never stored.
- Readwise: an hourly sync with the person's sealed access token; new
books get a page under "Readwise", new highlights are appended once.
New readwise_syncs collection.
- internal/oauth: signed states and one callback route per provider,
routed by purpose. directory gains ImportConverted and CallerOf.
- Phone app: "Today's journal" on the home screen and calendar events
on journal pages.
- Web clipper: `npm run package` builds Chrome/Edge, Firefox and source
zips; store/ holds listing texts, permission notes and a privacy
policy.
- OpenAPI, generated clients, translations, compose and .env examples,
and user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-ups to Phase E (ADR-15):
- Recordings over 25 MB are cut into pieces and transcribed in turn:
with ffmpeg (now in the server and all-in-one images) any format is
re-encoded to 16 kHz mono MP3 in 20-minute pieces; without it, MP3 is
cut at frame boundaries and WAV at sample boundaries in Go.
- PDFs without a text layer are written out by a document-capable chat
model (Anthropic document input, OpenAI file input); Ollama is skipped.
- Phone app: AI answers render as Markdown with tappable citations; the
editing toolbar opens the writing actions on the selection; audio
files get Transcribe. Editor bridge protocol 4 adds setAi,
getSelection, insertMarkdown and transcribe/transcribed.
- The transcript HTML builder moves to @docwell/editor, shared by the
web app and the phone editor.
- An integration test runs chat, Transcribe and writing actions on a
device against a live server; the editor test no longer expects
headings to have only a level.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-ups to Phase E (ADR-15):
- Transcription (E2): OpenAI-compatible profiles can name a speech-to-text
model; POST /files/{id}/transcribe turns an audio or video attachment
(up to 25 MB) into text and a summary with key points and action items.
The editor gets a Transcribe button on media files that inserts the
summary and the transcript in a toggle.
- Monthly token limits: ai_usage counts requests and tokens per workspace
and month. Workspace admins can cap their workspace; superadmins can cap
what each workspace uses through the server's providers, after which
the workspace's own providers keep working. The admin panel lists usage.
- PDF text for extra retrieval files (ledongthuc/pdf, pure Go).
- Phone app: an AI chat screen for the workspace or a page, with streamed
answers and sources that open the cited block.
- OpenAPI, generated clients, migration, translations and docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Databases (ADR-13 follow-ups):
- Relation properties link records to another database, on the same page
or on any page the reader can open (read live and read-only, like synced
pages). Cells list the linked titles; clicking one opens the record.
- Rollup properties work out counts, sums, averages, medians, min/max,
ranges, earliest/latest dates and checked counts over related records.
Neither is stored: views compute them before drawing (linked.ts), so they
follow both databases live, and rollups sort and filter as numbers.
- Exports (Markdown, HTML, PDF, Word) resolve them for same-page databases.
- A record opens as a full page at /p/<page>/r/<database>/<record>, with
"Open as full page" on the side panel and "Back to the page".
Edgeless mode (ADR-14 follow-ups):
- History previews show a version's canvas and count canvas changes.
- Comments can be anchored to canvas elements (anchor {element}); elements
with open threads show a badge that opens the thread.
- Workspaces choose how new pages open (workspaces.default_page_mode); the
per-device choice now defaults to following the workspace.
- Phones edit the canvas once a page is opened for editing; the page note
shows the page title.
Languages:
- The admin panel speaks English, Polish, German, French and Spanish, with
a picker sharing the web app's setting and a key parity test.
- The phone app speaks the same five, follows the phone's language (and
Android's per-app language setting), and has its own parity test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase D of docs/AFFINE.md (ADR-14).
The canvas lives in the page's Y.Doc next to its text, in
ydoc.getMap("surface"): one Y.Map per element, each field its own entry so
concurrent edits merge. The page's text is a note on the canvas bound to
the same "default" fragment, so typing on the canvas is typing in the page.
Canvas edits have their own undo history through a Y.UndoManager.
- New package @docwell/canvas: viewport with pan, zoom and pinch;
selection, marquee, snapping, resize and rotate; notes, text, shapes
(plain or scribbled), connectors (straight, curve, elbow, with arrowheads
and labels), pen and eraser, frames, groups, pictures, embeds and link
cards, and mind maps (right, left or both sides; Tab, Enter, arrows).
A style bar over the selection; the last style per kind is the default.
- Presentation through frames, stickers and templates, PNG and SVG export.
- Page/Edgeless switch in the header, ?mode= in page and share links, a
per-page default (pages.default_mode) and a per-device default for new
pages; share links show the canvas read-only.
- Server: yrs writes the canvas into the document JSON as "surface",
adds its text to search, and writes it back on restores and templates.
- Phone: the bridge draws the canvas read-only (protocol 3) and the page
screen has a canvas button.
Strings are translated into all five languages and the user guide covers
edgeless mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Touch dragging (database/touchdrag.ts): rows drag by their grip, board
cards by a grip shown on touch screens, calendar entries by themselves.
The handle takes the touch from its start, since Android's long press
cancels a held touch; a tap still clicks and holding still is the long
press. The phone's editor WebView claims touches at once.
- Editor bridge: toolbar commands and state follow focus into an editor
inside a panel (a record's notes) and back to the page.
- Phone-App widget tests: fixtures gain the fields the API added since
(journal, tags, properties, journalDate, createdBy, lastEditedBy).
- Guide: how to drag records on a phone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Server: accept the mobile editor's https://app.docwell.docwell_mobile
origin on /collab (refused since the page moved off file:).
- Android: allow mixed content when signed in to an http:// server, so
the ws:// collab socket is not blocked from the https page.
- Databases: a touch tap on a cell edits it, since a phone has no
keyboard to type into a selected cell.
- Back button closes an open record, picker or menu first: the bridge
reports open overlays and takes a dismiss message.
- Guide: how databases work in the mobile app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The web and desktop app now ships German, French and Spanish next to
English and Polish. Account settings has a language picker kept per
device like the theme; without a choice the app follows the browser's
languages. The <html lang> follows the chosen language, and a test keeps
every language's keys and placeholders in step with English.
The mobile reader applies each page's width and font through a new
setLayout bridge message, using the web reader's column widths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Search can be narrowed by space, author and last change; the index
records a mapping version and rebuilds when it changes.
- Editors can pin up to 12 pages to a space's home.
- Find and replace in the editor (Ctrl+F), with match case.
- Pages can be set to full width and a serif or mono font.
- Tailwind now scans the editor package, so its classes are generated.
- Fix golangci-lint findings, including push device names that were
saved before being trimmed and capped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mobile app (Android):
- Sign-in to any server, with authenticator codes. The server address and
token are kept in secure storage; a dropped connection never signs out.
- Workspaces, recent pages, spaces and a foldable page tree; search; the
inbox with mark-read.
- Pages open read-only in the shared editor from their saved content and
join the live document to edit (with the native toolbar). Page links in
the text open in the app (new "navigate" bridge message).
- Comments: threads, replies, resolve.
- "Save to Docwell" in the Android share sheet makes a page from shared
text, with web addresses as links.
- Offline reading: every answer the app reads is kept on the phone, and
used when the server can't be reached.
- Push through UnifiedPush (ntfy, NextPush, ...). The app uses the Android
connector directly; the umbrella package pulls in a native crypto build
for Linux that breaks `dart run` and tests.
Server:
- /me/devices registers a phone's UnifiedPush endpoint and Web Push keys
(new push_devices collection). Each notification is also pushed,
encrypted with RFC 8291 aes128gcm so the distributor can't read it; the
app drops messages that don't decrypt. Endpoints answering 404/410 are
forgotten. Endpoints follow the webhook address rules.
- /collab accepts the apps' own origins ("null" for the mobile editor page,
wails:// for the desktop app). Sign-in is a token in the first message,
not a cookie, so this opens no cross-site hijacking.
Tried on an Android 15 emulator: sign-in, browsing, reading, live editing,
sharing and offline reading. Not covered: push end to end (no distributor
on the emulator), iOS, and YouTube embeds, which refuse to play from the
app's local editor page (error 153).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Repository basics:
- CONTRIBUTING.md and CODE_OF_CONDUCT.md (Contributor Covenant 2.1)
- SPDX AGPL-3.0-or-later headers on all hand-written sources, checked in CI
- golangci-lint (shared .golangci.yml), ESLint and Prettier, all run in CI
API codegen from api/openapi.yaml (npm run generate, drift fails CI):
- Go types via oapi-codegen in Server/internal/api
- a contract test that the router and the spec list the same routes
- Dart models via Phone-App/tool/generate_api.dart; the app uses them
Spike: shared Tiptap editor in a Flutter WebView (ADR-4)
- @docwell/editor-bridge builds the editor into one HTML page with a
versioned JSON protocol; Phone-App hosts it with webview_flutter and a
native toolbar. Integration test passes on an Android API 35 emulator.
- flutter_inappwebview dropped: its Android plugin fails on AGP 9.
Spike: Wails v3 desktop (ADR-11)
- system tray, docwell:// deep links (page and space only) with
single-instance hand-off, and the built-in updater with a required
ed25519 signing key. Verified on Windows.
- regenerated build assets register the scheme and drop template
placeholders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same model as DriverVault, with organizations above workspaces:
- users get a role (user, admin, superadmin) and at most one
organization; existing instance admins become superadmins
- rights cascade: superadmins own everything, org admins own their
organization's workspaces, others get their workspace role
(owner > admin > member > guest) while they stay in the org
- nobody grants a role above their own, acts on someone ranked above
them, or changes their own role; rules live in internal/access as
pure, tested functions
- self-service organizations: an org-less user creates one and becomes
its admin; the last admin can delete it and is demoted
- endpoints for users, orgs, workspaces and members; token cache is
dropped when a user's rights change
- admin panel: Users and Organizations pages scoped to the caller
- web app: organization page, workspace list, workspace settings with
member management (EN/PL)
- fix: organization name missing after login/refresh, and stale tokens
redirecting public pages to sign-in
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase 0 foundation for Docwell, an open-source knowledge base:
- Database: PocketBase v0.40.6 with initial schema migrations; users is
the built-in auth collection, plus a hook for token checks and
env-driven app URL/SMTP settings
- Server: Go API (health, version, auth endpoints forwarded to
PocketBase, admin user list) with an embedded Vue admin panel
- Web-App: Go static server and Vue/Tailwind app with Tiptap editor,
sign-in, sign-up, password reset and email verification (EN/PL)
- Desktop-App: Wails v3 host reusing the web app
- Phone-App: Flutter app with sign-in
- Shared packages (editor, ui, api-client), OpenAPI spec, Docker
compose (separate services and all-in-one), GitHub Actions CI
- Docs: feature inventory and architecture/build plan
Licensed under AGPL-3.0-or-later.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>