Spaces:
Sleeping
Sleeping
Commit History
-
Replace the header's brush with a palette icon
Agent Manager +1: Claude Opus 5.5At the header's real 15px the thin diagonal brush read as a pen and sat awkwardly beside the T, moon and download arrow. I compared three candidates in the live header: a cleaner brush, an artist's palette and a swatch book, in light and dark, at 1x and 2x, idle, hover and open. The palette reads best. Its round outline sits with the moon and sun, and three dots of paint say colour even at 1x. The swatch book reads as a document, and the brush still reads as a pen. It uses the same 1.7 stroke and optical box as its neighbours. The Colours button also now shows the header's usual 'on' tint while its picker is open. Its aria-label and tooltip stay 'Colours', and the browser test now checks them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>ae01713 -
Centre the content group beside a pinned activity bar; redraw the Pages icon
Agent Manager +1: Claude Opus 5.5On a wide window the bar stays pinned to the window's left edge. It is app chrome, one L with the header, anchored like the phone's bottom bar and the Pages drawer. Pages, the page and comments centre as a group in the space beside it. - #layout gets the same 20px gutter beside the bar as on the right, so the whitespace either side of the group is equal: 198px at 1920, 518 at 2560, 958 at 3440. - On desktop the page column is page-sized rather than stretchy, so with Pages hidden the page and comments still centre, instead of the comments sitting at the window's right edge. - The docked Pages panel gets a left edge as well as a right one. - The Pages button's icon is now two stacked sheets with a folded corner, drawn to the comment bubble's stroke and size. - New test: with Pages hidden at 1600px the bar sits at x=0 and the page with its comments centres beside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>8782ae8 -
Port option D's activity bar and Margin blue palette to the app
Agent Manager +1: Claude Opus 5.5Replace the floating Pages/Comments edge arrows with a labelled activity bar down the left edge (the bottom navigation on a phone). Pages and comments each get a titled header with a labelled Hide. - Layout: #layout pads for the bar, so fitLayout() budgets it through the same measurement as everything else. The page keeps its 8.5in. - Pages: it now remembers a hidden preference, like Comments. - Overlays: a Pages drawer and the phone sheets make what they cover inert, close on Escape, the scrim or Close, and return focus to the bar button. - Colours: Margin blue becomes the default palette and the dark theme turns blue. Suggested insertions and deletions get their own inks. A brush in the header opens an optional palette picker, one palette per theme. - Focus: one solid focus colour for every ring, and a keyboard-only ring around the page. Tests can now take TEST_PORT so they can run beside other checkouts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>00009b4
-
Anyone with the link: read a project without an account
A second way to share, next to inviting people by username: one long unguessable URL that opens the project read-only, for someone who has no Hugging Face account and should not need one. The token (24 random bytes) is exchanged for a cookie the moment the visitor lands on /p/<token>, so nothing downstream has to carry it: the REST snapshot, the websocket handshake and the <img> requests are all covered by the same grant. Lookup is constant-time, and an unknown or revoked token is a 404 that does not confirm the project exists. Read-only is enforced where it counts. The connection is marked readOnly in onAuthenticate, so hocuspocus drops any update or awareness message the client sends: a visitor who types sees their own keystrokes and nothing else does. REST keeps requireUser everywhere except GET of the project and its page tree, so a link cannot suggest, comment, add a page, re-share or delete. The non-editable editor and the hidden buttons are a courtesy on top of that, not the m…3a73292 -
Merge pull request #15 from thomwolf/agent/hover-position-comment
Thomas WolfUnverified signatureComment beside a paragraph, from a hover in the right margin5ad864d -
Comment beside a paragraph, from a hover in the right margin
Claude +1: Claude Opus 5 (1M context)Hover the right third of the page and a small comment button appears out in the page's own right margin, level with the paragraph you are next to. Click it and you get a comment anchored to that place, with no selected span. The anchor is one Yjs relative position taken inside that paragraph — the same machinery the existing span comments use, written into both anchor fields so every path that already resolves a thread's anchors keeps working and simply sees an empty range. The card shows the paragraph's opening words as a locator instead of a quote, because there is nothing quoted; agents get anchor_kind + anchor_context so a null excerpt is not mistaken for deleted text. Deleting the paragraph never closes the thread. The zone is hover-only and invisible: no gutter, nothing while a selection or a composer owns the flow, and nothing at all on touch. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>f9ca812 -
A reader text size next to zoom: the knob that does reflow
Zoom scales the sheet and the type by one factor, so the words-per-line never moves — deliberately, because a page that reflowed would not be a zoom. This adds the other control a reader actually wants: --doc-text-scale multiplies the type and nothing else, so the page keeps the width it has on screen and the lines re-break. A Kindle's A/A, next to the magnifiers. The stored value is a factor rather than a size, so it rides on top of whatever the document style asks for: one step up in Docs stays one step up after switching to Reading, and each style still decides what 100% means for it (14.6667px and 16px). An absolute size would have had to either lose the reader's choice on a style switch or overrule the style's own typography. Persisted as doc-text-scale, alongside doc-zoom and cw-doc-style. Left out of the print path on purpose: it is one reader's comfort setting in one browser, and a PDF is handed to other people. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.c…f6cf611
-
Download: this page or the project, as markdown or PDF
A Download button in the header opens two choices — how much (this page / whole project) and in what shape (markdown / PDF). MARKDOWN is a zip built server-side: one .md per page in sidebar order, plus an assets/ folder holding the images those pages use, with every /files/<hash> reference rewritten to its bundled copy. That rewrite is the point — a /files URL only resolves for someone signed in to this Space, so without it an exported document renders as broken images anywhere else. Project scope also carries structure.yaml, since the yaml IS the project's shape (order, nesting, group headers) and without it an unzipped project is a flat pile of files. An image whose bytes have gone missing is listed in assets/MISSING.txt rather than failing the whole export. The zip is written by server/zip.js, ~100 lines over node's zlib, rather than by adding a dependency: the Space builds with `npm ci`, which hard-fails on any package.json/package-lock disagreement, and this is not worth that ri…3b2fb14
-
Left carets, home star, project subtitles, empty-group rename fix
Fold carets move to the left of the label (aligned spacer for leaf rows); the hover trash overlays the row end so long titles run to the edge. A muted star marks the home page. Renaming a group with no children no longer loses its input — every group-label single-click consequence now defers behind the same 280ms timer the double-click cancels. The home page's first paragraph becomes the project's subtitle (derived on store, persisted on the registry) and previews under each title in the project dropdown. Co-Authored-By: Codex <noreply@openai.com> Co-Authored-By: Claude Opus <noreply@anthropic.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>3f3e761 -
Dialog-free UI, project-name header, rl-wiki sidebar polish
The Space runs in an iframe where Chrome suppresses native dialogs, so confirm()/alert()/prompt() silently did nothing — deletes looked broken. All 33 call sites are gone: sidebar deletes/dissolves are now arm-to-confirm buttons with toasts for errors; everything else goes through new in-app uiConfirm/uiAlert/uiPrompt/uiToast helpers (common.js, keyboard-complete, dark-mode aware). The browser tests now fail on any native dialog. The top-left selector always shows the project name (tab becomes 'page · project'), server-rendered too, live while renaming home. Sidebar: exact rl-wiki type scale and row treatments, search replaces the 'Pages' heading, trash sits at the far right of rows, and the bar is a seamless full-height surface — page background, no right border, reaching the writing sheet. treedrag no longer arms drags from buttons/inputs, so control clicks can't be swallowed. Co-Authored-By: Codex <noreply@openai.com> Co-Authored-By: Claude Opus <noreply@anthropic.com> Co-Authore…d3283b8 -
rl-wiki-style sidebar: restyle, search filter, multi-select, inline renames
Full-height sticky sidebar with a title filter on top (Cmd/Ctrl-K, Escape clears; drag pauses while filtering). rl-wiki look: big right-side carets, vertical bars under branches, accent-tinted current row distinct from gray multi-selected rows. File/folder icon buttons create an untitled page (focus lands in its empty H1 once synced) or a group that opens straight into inline rename — no prompt() modals anywhere. Double-click renames pages and groups in place; shift/cmd-click builds a selection that drags as one block. The Structure link row is gone (the page keeps its URL). Co-Authored-By: Codex <noreply@openai.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>8a9d88a -
A link you can click, and a page body that is never dropped
Two reports, both about a thing that looked like it worked. CLICKING A CROSS-REFERENCE DID NOTHING. In an editor a plain click has to place the caret — you must be able to edit the words a link is made of — so following a link needed ctrl/cmd+click, and nothing on screen said so. There was no bubble on click either (#link-pop is the toolbar's URL input and needs a selection), so a plain click produced no navigation and no feedback at all. A plain click now raises a small bubble anchored to the link: the target named as a page title for internal links, an Open button, and Remove link. ctrl/cmd+click and tap-to-follow are unchanged. handleClick and the bubble now share one followLink(). A PAGE BODY SENT UNDER THE WRONG FIELD NAME VANISHED. page-suggestions read content_markdown and nothing else, so an agent that sent "markdown" got a 200, an empty proposal, and no way to know why (reported: "both pages arrived title-only"). Bodies are now read through pickMarkdown() — the canonical nam…fbcd415 -
Comments are closed, not ticked off — and the sheet answers the thumb (#8)
- Comments are closed, not ticked off — and the sheet answers the thumb (a3c1c4271a2cf4fa88ab255027a2288cf6314b9d)04b2acc
-
Document style switch: Google Docs' Arial, or a serif reading setting (#3)
- Document style switch: Google Docs' Arial, or a serif reading setting (6a0e4d3ec49a41633b87521c9dfac82a33fa7b22) Co-authored-by: Thomas Wolf <thomwolf@users.noreply.huggingface.co>2460317 -
One page: the document is the app, and a switcher replaces the index (#4)
- One page: the document is the app, and a switcher replaces the index (ac3feac1b80222a90bc8cc12bc15c89ae775c5aa) Co-authored-by: Thomas Wolf <thomwolf@users.noreply.huggingface.co>f35d3f6
-
Faster loads: brotli bundles, immutable asset caching, self-hosted font, session+title inlined in the shell, loading skeletons
Verified signatureec6b346
-
Dark mode: follows the OS, toggle in the header, all colours behind theme variables
Verified signature8012b6f
-
Upload folder using huggingface_hub
Verified signature2ad2aff
-
Upload folder using huggingface_hub
Verified signaturee8f61c8 -
Upload folder using huggingface_hub
Verified signature704a62b -
Upload folder using huggingface_hub
Verified signatureb04fa88
-
Upload folder using huggingface_hub
Verified signature93abf36 -
Upload folder using huggingface_hub
Verified signature53148eb -
Upload folder using huggingface_hub
Verified signature45ebf29 -
Upload folder using huggingface_hub
Verified signatureb60973d -
Upload folder using huggingface_hub
Verified signature3387889 -
Upload folder using huggingface_hub
Verified signature0d14b54
-
Upload folder using huggingface_hub
Verified signature99a44ac