Repository navigation
feat: add callouts, toggles, tables and a block handle to pages - #78
Merged
Merged
Conversation
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.
Steps N2 and N3 from
.claude/.Plans/as2026-10-07-strata-boards-and-notion-notes.md, with the approved Tiptap extensions.New blocks
calloutnode, a tinted box with a 💡), toggles (@tiptap/extension-details, open state kept), tables (@tiptap/extension-table, 3 × 3 with a header row; Tab moves between cells and adds a row at the end) and highlighted text (@tiptap/extension-highlight, a toolbar button and==text==)./menu.Block handle (
@tiptap/extension-drag-handle-react)Older tabs
?format=2, and the server refuses older formats withoutdated. A refused tab says "Strata was updated. Reload the page to keep editing" and turns its editor or board read-only.Packages: the four approved extensions plus their required peers
@tiptap/extension-drag-handle,@tiptap/extension-node-rangeand@tiptap/extension-text-style, all MIT at 3.31.4.@tiptap/extension-unique-idcomes later with block comments.Checked in the browser (local stack): inserting a callout, toggle and table from the menu, turning a callout into a quote, duplicating a block and dragging it below the table.
Tests:
test/block-menu.spec.tsx(now also callouts, toggles and tables),test/notes.spec.tsx,test/journal.spec.tsx, lint and both builds. The realtime integration tests now connect with the current format, and one checks an older format is refused.