Repository navigation
Refactor editor: new look, menus and block editing - #12
Merged
Merged
Conversation
- Editor, page top and properties panel use the UI tokens and base components; all editor menus are base menus (Ctrl+/ block menu), page actions moved to the tab bar, backlinks sit under the title, and editor text is in the locales. - Pickers use a virtualized list shared with the search panel; one pages.blockList call returns a page's blocks and reference titles. - Composing keys reach the editor and inputs; menus skip them (bits-ui patched for Esc). - Clicking anywhere in the page's blank area places the caret; no focus outline on the document; global styles load in a base layer. - New editing features: slash menu, typed block shortcuts and [[, dragging blocks by the handle with a drop line and preview, rubber-band and multi-block selection, fold triangle (Ctrl+Enter), code blocks with a language field, syntax highlighting in a worker and a copy button. - The first page read fetches attribute definitions and backlinks together so a large page is laid out once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebuilds the page editor on the UI tokens and base components and adds the block editing features.
Look and menus
pages.blockListreturns a page's blocks and reference titles in one call.Editing features
#,-,1.,>, three backticks,---) and[[for inline references.languagepayload field, highlighting in a worker (CodeMirror stream parsers, MIT), language picker (Ctrl+Alt+L) and a copy button.Performance
Checks run locally: typecheck, lint (0 errors), knip, db:check, test:db (5+245), test:feed (45),
pnpm perf.🤖 Generated with Claude Code