Commit Graph
36 Commits
Author SHA1 Message Date
thalladaandClaude Opus 5.5 f9ce8faf6b A pane folded to a tab in a covered column: its tab's foot carries the colour, not a dash too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 16:32:53 -05:00
thalladaandClaude Opus 5.5 5f6ea8e5c9 Auto picks panes from 900 px wide, a laptop's window too, not 1600
One pane and the stack of earlier ones beside it read well from there. The browser tests start in
the column (playwright.config.ts) where they mean it; a panes test lets the layout follow the window
(helpers.ts autoLayout). New: auto gives panes at 1366 and the column at 820 and 390.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 16:31:21 -05:00
thalladaandClaude Opus 5.5 f8d663ebc1 Browser test: a fork's curve and title rule share its colour, the first trail is plain, /colors off
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 16:16:46 -05:00
thalladaandClaude Opus 5.5 9f4a5aae43 Fork colours in the panes view: each branch's curve runs on into the rule under its panes' titles
Seven hues at one OKLCH lightness and a low chroma, light and dark, ordered so neighbours stay
apart for red-green and blue-yellow colour blindness. The focused branch at full strength, the
others fainter; the active pane's ink rule as before. A tab's foot and a dash on a spine carry the
colour too. /colors line|top|edge|off (and the menu) choose the line, a band across each pane's
top, one down its left edge, or none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 16:16:06 -05:00
thalladaandClaude Opus 5.5 30957260ce Branch colours in the forest: a first child keeps its parent's, each further child starts the next
A pane's colour (an index into a palette of HUES) is fixed when it opens and stored with the view;
the first tree's root trail has none. A view stored before colours is coloured as if opened in
tree order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 16:05:54 -05:00
thalladaandClaude Fable 5.2 ec19a23051 Dragging a pane down: reaching any part of a pane below is enough
The drop place was decided by the midpoint of the pane under the pointer, so
a pane dragged down onto the top of the one below went nowhere.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 15:48:58 -05:00
thalladaandClaude Opus 5.5 7bddb03d0d Research test: the panel's Esc is a button now
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 02:26:28 -05:00
thalladaandClaude Opus 5.5 fd8fbc4cd7 Help and README for the mouse; review and research keys as buttons
The help has a Mouse and touch section and its lede says to click a sentence;
the README says what each surface offers, how it acts (by pressing its key)
and what is left to the keys. The review's status line and the research
panel's Esc are buttons. The column keeps what the keys bring into view out
from under the sticky top bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 02:21:49 -05:00
thalladaandClaude Opus 5.5 32efa17294 The mouse and touch: a bar on a clicked sentence, ⋯ and right-click menus, a top bar
- One <Menu>: a popover by the pointer or its button, a sheet from the foot on
  touch; arrows, Home, End, Enter and Esc, closes on a press outside, and gives
  the focus back. Its items come from actions.ts and press their keys.
- A single click on a sentence selects it (as before) and shows a bar over it:
  expand e · define d · why y · example x · challenge c · ask : | link w · ⋯,
  each with its key. A drag or a double click shows it for those words. In an
  article's text too, without link. On a phone it docks at the foot, with ×.
- ⋯ on section rows, a pane's pin and ×, the page's byline and note boxes,
  shown when pointed at or focused, never moving the text. A stale flag,
  clicked, opens the node's menu, its remedies first.
- Right-click on words, a row, a link, a note or a pane: its menu, Copy
  first; the copy key copies the app's selection too. Shift+right-click and
  text boxes keep the browser's menu.
- The top bar: undo, redo when there is something to redo, and menu (documents,
  jump, history, links, layout, settings, command line, help), sticky in the
  column too.
- Key hints in the status line, the history and documents panels and a
  suggestion's card are buttons.
- A first visit is told, once, in the status line, that a click on a sentence
  offers actions and ? lists the keys.

Browser tests: the bar on a click and on a drag, each ⋯ menu, right-click with
Copy, Shift+right-click untouched, the menu's keys, the sticky bar, Lock naming,
the phone's dock and sheet, and links, Shift-clicks, drags and peeks beside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 02:20:42 -05:00
thalladaandClaude Opus 5.5 9b73cdb15e press() and actions.ts: what the mouse offers, from one place
press(key) sends a synthetic keydown through the page's key handler, so a
mouse control does exactly what its key does. actions.ts builds the items of
the selection bar, the ⋯ menus and the right-click menu from a context for
each kind of target (words, a node, a page, a pane, an article's row, the top
bar); each item names its key and runs by pressing it, or runs a command of
the command bar. Unit tests check every item presses its own key and that the
key handler takes that key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 02:12:06 -05:00
thalladaandClaude Opus 5.5 abf79c14cc Lock, not pin: the flag that keeps the model from rewriting a node
The badge reads LOCKED, the status line and messages say lock and unlock, p's
help says what it is and that it is not P, and the cascade says a locked node
was flagged, not rewritten. Pin now means only a pane's pin. The stored flag
and the op API keep the old name, pinned, so a live library keeps its locks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 02:03:28 -05:00
thalladaandClaude Opus 5.5 edc31aac9a Lanes: a few curves take the order that crosses least, of all orders
The unit test that failed about one run in six was the lanes property: moving
one curve at a time could stop at a local minimum (two crossings where an
order has none). Up to six curves in a gutter every order is now tried, a
strictly better one replacing the order there, so the bundle still keeps its
order while nothing crosses less. The property now asks for the least and
the counterexample it found is kept as a case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 02:02:41 -05:00
thalladaandClaude Opus 5.5 1e0469477c Document the panes view: opening beside, columns, curves, the active pane, close and pin
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 01:40:30 -05:00
thalladaandClaude Opus 5.5 3789255147 Panes open beside by default; columns stack as the strip does; peek and drag
Enter, l and a click (a Ctrl-, Cmd- or middle click too) open into the next
column beside what is there; Shift+Enter and a Shift-click open in place of the
focused branch's pane there. Opening what is open focuses it; a second Enter on
an open row keeps it. A document from the menu or /open still opens in place.

A crowded column now stacks its panes the way the strip stacks columns, by the
same code (stack.ts): each pane stuck a tab below the one before, the one looked
at whole, the others slid under it, partly and at the limit down to a tab, a
pinned one never covered. What is covered down to its strip is not painted.

The mouse resting on a covered pane, tab or spine peeks it out over its
neighbours; a click makes it the active pane. A pane's grip, the band above its
title, or its tab drags it up or down its column (Esc cancels).

Curves from words start at the end of their underline. Curves keep their
elements and are drawn on a layer of their own, so a change repaints only what
moved; with many curves in a gutter, lanes are ordered by swapping neighbours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 01:40:24 -05:00
thalladaandClaude Opus 5.5 7a2df56440 A column's own order: panes put in order by hand, kept with the forest
A column lists its panes in tree order until the reader drags one: then its
order is its own (a rank on each pane, stored with the tree), panes opened into
it later come after, and a pane opened in place of another takes its place.
[ and ] go by that order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 01:40:24 -05:00
thalladaandClaude Opus 5.5 1337d73bac Time keypress to paint by the browser's own measure where it has one
Under a steady stream of keys, the task the page posts after each frame to note
the time can wait behind many later frames: moving between forks on the large
library recorded 400 ms while every key was painted in the next frame (the Event
Timing API put each at 24 ms). Where the browser has measured a key's event to
its next paint, that figure is the sample.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 00:37:59 -05:00
thalladaandClaude Opus 5.5 3298cc430c Panes by column: a forest of panes, curves between them, close, pin and an active rule
The tree of forks becomes a forest: a pinned pane stays open when a pane it was
opened from closes, as an orphan in its own column. Close takes a pane and what
was opened from it, pinned panes excepted; pin and unpin; [ and ] move to the
pane above or below in a column.

The panes view is laid out by column: column d holds every pane at depth d and
divides its own height among them, a short pane taking only what its text needs;
when they do not fit, all but the focused branch's pane (and pinned ones) fold
into one-line tabs. A faint curve runs from the words, row or link each pane was
opened from to its title, the focused branch's in a stronger ink; curves through
one gutter take lanes side by side, ordered to cross least. Every pane has the
same hairline right and bottom. The active pane has a heavy rule across its top,
the rest of the focused branch a hairline. Each pane has a pin and a x at its top
right (the x also on its spine); q closes the active pane, whatever it shows
(it used to close a whole fork from wherever the fork began, which closed the
node an article was opened from); P pins it. /curves off hides the curves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 00:37:59 -05:00
thalladaandClaude Opus 5.5 2f8ca98207 Document forks; time moving between forks on the large library
Four forks of the library pane, each three panes deep, on over 5,000 nodes:
[ and ] keep to the panes budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 22:48:10 -05:00
thalladaandClaude Opus 5.5 207002410b Forks in the panes view: Shift+Enter or a modified click opens beside, not instead
The store's trail becomes the focused branch of the tree of forks. Shift+Enter,
Shift-, Ctrl-, Cmd- or middle-click opens a pane as a new fork; a plain open
replaces the focused fork, or focuses a fork already open. Right of a pane with
forks the space divides into rows that share the height down to a third each
and then scroll, the pane they came from staying at the top; the strip still
scrolls sideways as one. The parent marks each fork's row, link or words, the
focused one as before. [ and ] move between forks, back where the reader was;
q closes a whole fork at its end. A click in another fork focuses it. Too short
or narrow a window draws only the focused branch and says which fork it is.
A plain trail renders exactly as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 22:48:10 -05:00
thalladaandClaude Opus 5.5 e733e131bb Panes as a tree of forks: pure operations, with a property test
Each pane may have several children, each continuing its own trail; the
picks from the root give the one focused branch. Open, fork, close (right
of a pane, a fork, one child), pick the fork above or below, prune deleted
panes, make a path the branch, store and load (an old trail loads as one
branch). Unchanged trees are returned as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 22:48:10 -05:00
thalladaandClaude Opus 5.5 2c1ee048a4 Annotate Wikipedia articles with the same keys as nodes
An article's text is drawn from its sanitised HTML as selectable text
(articleText.ts): paragraphs, list items and quotes with their inline
elements; a formula is one unit; tables and preformatted blocks are shown
but carry no offsets. The selection ladder, Tab, Enter, e d y x c :, D and
the rest go through the same store paths as on a node; a note on article
words is a note (Enter steps into it; c, f, u, the editor and history work
on it as on any other) and shows wherever the article is opened, in the
library's own note style. Detached annotations are listed at the top of
their section with a link to the old revision. Keys that only make sense on
a node say why in the status line. Tab on a link now selects its words, so
Esc widens before h leaves, as in a node.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 21:53:00 -05:00
thalladaandClaude Opus 5.5 f63fc10dc0 Article nodes and annotation anchors in the library
A node per annotated Wikipedia article, created with its first annotation
under one container: a section of the library root flagged articles. It is
not a document (sections() and documents() skip it, it has no slug), its
nodes never go stale, the link scanner, the vector index, the title index
and the backlinks index leave it out, and a prompt about an annotation
carries its article's node rather than the whole container.

An annotation is an ordinary note under the article's node whose anchor is
a WikiAnchor (headings, exact words, context either side, revision) instead
of CRDT cursors. reanchor() finds it again in a later revision: its own
section, then anywhere, exactly, then tolerantly, never inside other words;
otherwise it is detached. Two replicas annotating a new article at once keep
both nodes; readers take annotations from all of them and write under the
first, so they read as one. The new fields hash only when set, so old
commits still verify. Property tests for re-anchoring, a convergence test,
and the tasks that write a note from an article's lead and section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 21:53:00 -05:00
thalladaandClaude Opus 5.5 02e044af35 Open a note that also links as its article with the note on top
Words carrying a note and a Wikipedia link (one note with a body and a
target, as the bulk linking pass made by merging links onto glosses, or a
note and a link on the same words) opened only the note: a click toggled
the gloss inline in both views, Enter did the same in the column, and in
panes Enter opened the note's pane with the article folded to its summary.

Now Enter or a click opens one page: the note's text first, then the
article in full (in the column the note is hoisted and h returns to its
words; in panes it is the next pane). A note's target is its own or that of
a link on exactly its words. Node and web targets show their card beneath
the note the same way. Browser tests cover click and keyboard in both views
and the same-span case; the old test only covered the folded panes path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 21:10:19 -05:00
thalladaandClaude Fable 5.2 f86a06fa06 Allow Tailscale host names on the dev server; IE_HOSTS adds more
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 20:50:09 -05:00
thalladaandClaude Fable 5.2 8923ba95f9 Scripts and docs
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 9b5f7776a6 Browser tests
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 1b4642ec35 Unit tests and fixtures
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 2b0f2b1f01 Starter library: twelve documents
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 dbd64aa591 Browser UI
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 dfa08f6e0c Link discovery: local embeddings, scanner, suggestions, background jobs
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 36ad305406 Wikipedia client, sanitiser, routes and mock
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 ca63e54873 Server: storage, sync, op API, model providers and usage
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 75c5762ae7 Model tasks, prompts and the mock model
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 c0b2a2812d Text format, seed document and library operations
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 7130c7e2b3 Core model: CRDT tree, op API, staleness, history and merge
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00
thalladaandClaude Fable 5.2 f67141d055 Project skeleton: package, TypeScript, Vite and Playwright config
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-15 14:30:50 -05:00