Unify Page, code/table/database horizontal containers, popover lists,
and touch scroll gestures on a shared unrounded subpixel ScrollAxis and
single-source AxisLatch, snapping strictly to device pixels at paint
time. Add full-height 24px hover and thumb drag support for wide table
and database horizontal scrollbars, keep world-anchored input popovers
from scrolling off-screen on page wheel or touch drags, pin the Create
row at the bottom of the 400px Database Select popover with scroll
reset on filter edits, and split CodeLangPicker with Plain Text pinning
and a centered empty state.
The set_blob function bound the payload by reference. The sqlx encoder
then copied the full payload into a new buffer.
The function now moves the owned key, data and mime values into the
query arguments. The SQL, the upsert behavior and the public signature
do not change.
A new single-test binary counts Rust heap requests with a global
allocator. It also checks insert, overwrite, soft delete and revive.
For an 8 MiB payload, the old code requested 8,393,257 bytes in one
set_blob call, with one block at or above 1 MiB. The new code stays
below 64 KiB and makes no block at or above 1 MiB.
Save the page and its catalog in one IndexedDB transaction.
Use the Chromium harness in four browser checks.
Use one 45-second DevTools handshake for the SwiftShader smoke tests.
Open each new page with one DevTools request.
Stop the process group if the browser exits before the handshake.
Use a short temporary directory if the socket path exceeds the limit.
Check the legacy control on two consecutive frames.
Report startup errors for --legacy-dir.
Wait for the OAuth configuration and provider render on /sign-in.
Run the browser regression tests in CI.
Keep database view state and table focus out of the environment revision that each block hashes.
Before this change, a pointer move to another Calendar day or Kanban lane laid out the whole page again.
`DatabaseFlowState` records each block whose view state changed.
Its state map is private. Each change of one block goes through a method that marks that block dirty.
A tab strip scroll that only stops the reveal of the active tab also marks its block dirty.
`update_pointer_hover` sets the Calendar day hover and the Kanban lane hover in one call.
It replaces `set_calendar_hovered_day` and `set_kanban_hovered_lane`.
The call adds no empty state for a block that the pointer is not on.
`LayoutKey` is a struct with named fields in `layout_cache.rs`.
It holds the database revision, a hash of the focused table, and the inputs that every block reads.
A layout pass adds the changed database blocks and the two tables of a focus change to its changed blocks.
The pass reuses each other block.
Remove the environment revision increments from the entry points that change one database block.
These are view switches, Calendar month steps, tab strip scrolls, cell input, key input, drag moves, and commits.
A sideways scroll of a database, a table row drag, and a table column drag change no layout state.
They start no layout pass.
`set_database_mobile_readonly` keeps its increment because it changes each database block.
Find the outermost Callout of an indented block in one pass from the page root.
The pass only enters blocks with children.
Before this change, each pointer move did one whole-tree parent lookup for each ancestor level of the block.
Add tests on a page with 10,000 paragraphs, one database, and one table.
One test uses a touch swipe on the view tabs of a right-to-left phone page.
Add a test of the drag handle rect of each block in nested Callouts and in deep lists.
Hold the preview provider test lock in `editing_one_block_lays_out_only_that_block_again`.
A preview revision that a parallel test changed started a second layout pass in that test.
The comment on the lock tells which tests must hold it.
Move the text selection geometry into overlays/paint_page/geometry.rs as one function for Page and Edgeless inline editing.
A style value sets the optional 2 px minimum width and the marker of empty blocks.
Delete the Edgeless copy of that function.
Store the UTF-16 length of the plain text with the laid-out text of a block.
A selection reads that length for each block before its last one and scans no text.
Cache the world-space selection rectangles and their bounds by document revision, layout instance, and selection.
Selection painting finds the rectangles in the viewport with a binary search.
It applies the code scroll to those rectangles only.
The formatting toolbar reads the cached bounds as its anchor.
The start of each frame releases the rectangles and the format that the caches hold for a selection that ended.
This release covers text selections and block selections, also when the host draws the selection.
Rank manual Kanban card order, group keys, and group properties with hash maps instead of linear scans.
Reuse one cell key for all rows of a grouping pass.
Paint a sideways-scrolled block in two passes over its primitives without temporary vectors.
Keep code preview revisions in one table per kind and one eviction order.
A table and the order share the text of a source.
A lookup of a revision borrows the source text and allocates nothing.
Make bs-harness bench report the path when it cannot read the size of its binary.
Count the allocations of one thread in bs-harness only while a benchmark asks for them.
Assert that steady selection frames add no geometry work and that revision lookups allocate nothing.
Count the CRDT text reads of link hit-testing.
Assert that a hover over text without a link under the pointer reads no text.
Build the playground bundle and the four preview workers with `simd128`.
Pass the path remaps to the playground build. Pass `--enable-simd` to each `wasm-opt` call.
Remove the Taffy `grid` feature and the grid style API. No caller uses them.
Remove the unused wgpu `surface` pipeline and its shader entry points.
Remove the unused `SwipeMenu` component.
Remove the unused typography radii from the generated tokens.
Share one progress bar function between the database table and the kanban card.
Add `chromium-harness.mjs` for the browser verification scripts.
The harness owns the work directory and each process group that a script starts.
A normal end, a failed assertion, `SIGINT`, and `SIGTERM` stop each process group. Then the harness removes the directory.
Chromium keeps its temporary files in the work directory.
Use the harness in the two dual-shell verification scripts.
Correct the repository root path in `verify-canary-dual-shell-e2e.mjs` and `stage-canary-dual-shell.mjs`.
Record the SIMD worker sizes and the build flags in the preview `BENCHMARK.md`.
Generate shadow tables from CSS tokens. Validate numeric ranges.
Preserve fractional color channels. Remove the runtime parser and cache.
Drop unused palette slices and typography fields.
Restore ELK layout. Test the geometry of nine directed edges.
Record the Wasm sizes. Remove unused frontend dependencies.
Merge block selection rectangles in one postorder pass and cache document-space bounds in the editor session.
Key selection and format caches by document revision and a weak FlowLayout reference, and clear them on overlay reset.
Read inherited text alignment directly from laid-out blocks so unaligned RTL paragraphs report default right alignment matching layout.
Cache block-selection format marks and shared selected text across steady frames, and stream UTF-16 slices without temporary Vec<u16> buffers.
Stream the first nine lines for collapsed code blocks instead of collecting all lines into a vector.
Check link and reference decoration hits before reading rich text during hover.
Extract shared single-line input painting and horizontal scroll calculation into overlays/input_field.rs for link fields and bookmark prompts.
Skip invisible format button construction when the toolbar renders in link-only mode.
Move retired image draining to the start of chrome render so desktop frames reclaim retired images without touch input.
Remove the redundant frame sequence counter from the image cache while keeping deduplication, active-slot checks, and LRU order intact.
Reduce WebAssembly, Android, and iOS artifact sizes across the native client workspace without dropping editor features.
1. Switch the playground WebAssembly build to the size profile without LTO.
2. Add a fat-LTO cdylib profile with path remapping for the four preview workers.
3. Remove unused SVG font and emoji regex fallback code from `ui`.
4. Deduplicate shared WGSL shader source in `.rodata` and pass `Path` by borrow in `Window::paint_path`.
5. Decouple `svg-text` from `blocksuite-preview` worker features and call `merman::Renderer::render_svg_data`.
6. Disable ELK layout in `merman` so all 35 diagram families use Dagre or Cytoscape.
7. Strip `libaffine_android_host.so` with NDK `llvm-strip` in `package-debug-apk.sh`.
8. Remove redundant `opt-level=0` overrides from the iOS CI workflow and bump its cache key.
Extract database sort keys once per row and sort row indices with stable merge sort.
This keeps multi-column order, empty-tail placement, NFD collation, and linked page title resolution.
Add MoveLeftIcon, MoveRightIcon, and InvisibleIcon to ui-tokens and keep only static SVG strings in IconDef.
Use IconPaint::from_def in database column menus to fix blank icons and remove runtime lock lookups.
Clear stale active-page directory snapshots instead of cloning the active PageSnapshot in PlaygroundView::refresh_document.
Encapsulate image cache mutations in ImageStore with bounded Undo LRU and deferred cross-frame window.drop_image cleanup.
Defer Apple Metal atlas tile deallocation until in-flight MTLCommandBuffer submissions complete and remove unused ui helpers.
Share cached syntax highlight lines with Arc<[HighlightedLine]> and evict stale entries with LRU.
Remove unused render_breadcrumb_bar and BreadcrumbVisualStyle from ui-kit.
Move CRDT append projection into wasm_crdt_core with single-pass block ID checks and a delta-only path.
Surface durable openDoc errors in default-app-entry and clone returned snapshots in host.js.
Scan covered IndexedDB keys with openKeyCursor and use logical CSS properties in sign-in.html.
Add inline link and linked-doc 500ms hover popovers, dual-field text+link editing, and Inline/Card/Embed view conversion.
Extend the desktop format toolbar with inline equation, linked-doc creation, More submenu, and block-selection mounting.
Add block-level controls for code blocks (searchable language picker, line numbers, 8-line collapse), block/note LaTeX 2-step editing, image double-click lightbox, bookmark style toolbar, and callout 44px layout with emoji and 9-color toolbar.
Include targeted fixes:
- Flatten H4-H6 in touch Slash menus and hide scrolled-out desktop Slash preview cards.
- Allow Slash Copy in page_readonly mode.
- Preserve nested Y.Map background and readonly guard in Edgeless note slicer, guard locked mindmap descendants on delete, and skip dangling mindmap children.
- Consume click when dismissing active Calendar inline edit and restrict selected-day '+' visibility to touch form factors.
- Expand Page block_selection highlight to cover visible nested subtrees (skipping collapsed children) and align Move Up / Move Down icons in the block menu.
- Add incremental Y.Map entry mutations (apply_mindmap_children_delta / update_mindmap_children) so MindMap add-child, add-sibling, collapse, and subtree delete preserve the nested children Y.Map for concurrent Web/Native edits and encode layoutType, style, and connector mode as Float64 JS numbers.
- Replace silent fractional-index fallbacks with checked next_spatial_index / next_index_after / prev_index_before helpers across Edgeless authoring ops.
- Enforce edgeless/page readonly and element locked guards across element toolbar, reorder, MindMap, quick-connect (click and drag), align, group, inline edit, and note slicer; dismiss open popovers on canvas click, Escape (before clearing selection), and selection changes.
- Cascade MindMap subtree deletes (and full MindMap removal on root delete) in one atomic undo step and suppress Shape 4-way quick-connect arrows on MindMap member nodes.
- Insert sliced Notes immediately after the source Note in page.children, preserve themed {light, dark} backgrounds and prop:edgeless styles, trigger the Note slicer overlay strictly on inter-block gap hover, and remove the bare '-' slice shortcut.
- Render the compact Page reading-order badge only on selected Page Notes (pre-laid out during scene prep, eliminating per-frame paint layout_inline and mobile Frame title occlusion), cache decoded RoomAwareness payloads with page-scoped selectionV2 filtering, and clean up duplicate actions and dead code.
Complete multi-level Page tree drag-and-drop, gutter handle quick-insert, and margin marquee selection:
- Insert sibling paragraphs at index + 1 on '+' clicks (matching Web), expanding all covering collapsed ancestor headings via a shared monotonic-stack helper in the same undo step on '+' or sibling drop so inserted and dropped blocks stay visible.
- Compute `has_gutter_chevron` in block flow layout as the single source of truth so childless empty headings do not expose desktop or touch collapse chevrons.
- Align Tab reparenting with tree DnD via `is_valid_reparent_target` so Tab can indent into Callout blocks.
- Run edge auto-scroll once per frame without re-entrant render notifications, scaling smoothly past viewport edges up to 40 px/frame.
- Preserve far-margin single-click caret placement until pointer movement exceeds 6 px, and clear in-progress marquee selection on Escape.
- Preserve explicit custom numbered-list start orders while keeping upward drag renumbering intact.
- Truncate drag ghost labels by pixel width, keep Quote hover grabbers distinct from Quote borders, and verify with frame-stepping headless tests.
Enable Page-mode /frame (1600x900 non-overlapping under affine:surface with monotonic index and presentationIndex) and /mindmap (non-overlapping canvas placement, real mindmap + 4 shape nodes, ref_flavour = mindmap, single-step undo). Suppress the 800ms Slash preview card on touch form factors and narrow viewports so it never overlaps the Slash menu. Enforce readonly guards before trigger deletion (including /copy), clip table column resize grips to the visible table bounds when scrolled, and add deterministic per-client jitter to table row/column fractional order keys so concurrent peer inserts never collide. Align Slash Database order (Table/Calendar/Kanban), Web 0.27.5 descriptions, YYYY-MM-DD HH:MM Now output, calendar view date.startColumnId, 800ms one-shot preview timer wakeup, single-step undo for MoveUp/MoveDown/Duplicate, @ linked-doc Journal subtitles and CreateEdgeless wiring, and narrow 8px hover-only column resize drag with Row/Col axis menu dismissal.
Hide the underlying calendar chip label on the clicked week segment while its
inline title input is active, and create an empty-title day event ready for
in-place typing when clicking the calendar day header plus button.
Clip table row reorder drop lines strictly to the horizontal scroll grid area,
place the caret at the clicked character on single-click table title editing,
and carry single-source overflow view indices into the narrow desktop More
menu with toggle, Escape dismissal, and toolbar panel mutual exclusion.
- Keep tail block appends O(1) without scanning sys:children, unify child duplicate detection and healing in PageDocSession via O(N) HashSet passes, and run in-tx repair only when duplicates actually exist.
- Materialize missing groupProperties lane keys in display order before updating target manuallyCardSort so dragging into a non-first lane on a fresh or partial board never shifts lane order.
- Share filter_and_sort_view_rows across database rendering and grouped bucket resolution, and cap headless-linux-and-perf CI job timeout at 25 minutes.
- Keep read_unknown_block raw while deduplicating PageSnapshot traversal and healing duplicated sys:children slots during structural mutations so logical indices align 1:1 with raw Y.Array slots.
- Store groupProperties as per-group Y.Map entries inside Y.Array and preserve unfiltered card order so concurrent different-group reorders and filtered drags retain hidden card positions.
- Share a single grouped bucket + manuallyCardSort pipeline across Kanban, grouped Table, and grouped DnD, handling multi-selected cross-lane drops onto a card's own multi-select twin.
- Allow non-proportional multi-selection resize across all 8 Edgeless handles unless Shift is held, and restore full-block centered image captions matching captioned-block-component.ts.
- Restore the 14-crate IOS_OPT0_PKGS set in np-mobile.yml so cold cacheless libaffine_ios_host.a stays below the 650 MB gate while running 6/6 Simulator smoke tests.
- Store Kanban and grouped Table card ordering in view groupProperties.manuallyCardSort with single-step Undo while keeping sys:children exclusively for ungrouped Table row moves.
- Deduplicate concurrent two-replica sys:children row moves, abort moves onto concurrently deleted anchors, and skip no-op drops.
- Defer ColumnMenu and Kanban cell hit activation to unpromoted pointer release so drag gestures never flash popovers, and move the Table row drag handle into the 24px left gutter outside the Title cell.
- Initialize synthetic title cells from row.title across click and Tab/Shift+Tab, support inline Calendar event rename, align left/right image captions, truncate zoomed-out Frame titles, and intersect multi-select Edgeless resize modes.
- Expand IOS_OPT0_PKGS to merman/typst/comemo crates and drop duplicate host lib test in np-mobile.yml so cold iOS Simulator builds finish well under 20 minutes.
Allocate media picker request identifiers from a process-global AtomicU64 counter.
Deduplicate desktop and web file pickers onto one request-bound callback path.
Keep direct PDF insertion independent from open media picker anchors.
Read picked desktop files through one bounded file handle.
Map visible table column drop targets past hidden view columns.
Add PageDocSession::move_database_row for single-step row reorder and lane moves.
Paint kanban and calendar drag ghosts, source dimming, drop lines, and 160 ms settle motion.
Add table row handles, column header drag reorder, and full-height resize guides.
Paint page block tree drag previews and scroll near top and bottom edges.
Add edgeless 5 px snap guidelines, frame drop highlights, and transform HUD badges.
Remove the outer database frame and merge tabs with Filter, Sort, and Group controls.
Paint table headers with 1 px hairlines and 100 px checkbox defaults.
Paint borderless 260 px kanban lanes with hover-only footer add buttons.
Wrap multi-select tags horizontally inside kanban cards.
Format calendar titles with full month names and 22 px tinted event bars.
- Track mouse versus touch ownership on ImageResizeDrag and use a read-only touch handle hit-test during scroll start so active_touch_count == 0 never cancels a desktop or Web mouse corner-handle resize across render frames.
- Bind each async media or attachment picker session to a monotonic request_id, reject stale, cross-page, or deleted-anchor deliveries before reading or storing blobs, read desktop files on the background executor after statting byte length, and clear Web picker state when change or cancel finishes while keeping programmatic PDF delivery independent.
- Keep narrow LTR DocPanel docked on the right while RTL docks on the left, move Wasm HTML embed reconciliation into overlays/wasm_html_embeds.rs, and align iOS host test Cargo profile flags with a 1-minute simulator shutdown cap.
Resolve review findings across media insertion, image controls, and selection cleanup:
- Chain pending media insertion anchors across multi-file selections so multiple picked images and attachments insert in order, clear pending state on picker cancel or page navigation, and enforce page read-only and origin-page checks before storing blobs.
- Gate Slash image and attachment commands on host picker availability and wire desktop file pickers onto native-playground windows.
- Route touch corner-handle drags through TouchStrokeOwner::ImageResize, expose the floating image toolbar on touch hosts, preserve ultra-wide aspect ratios down to 1e-4, sniff BMP/TIFF/ICO/AVIF headers on card conversion, and skip no-op resize or alignment commits.
- Unify remaining direct block_selection.clear() sites through clear_block_selection, clamp narrow LTR/RTL DocPanel to logical start, and record 5-Wasm bundle sizes in mobile CI.
- Encode integer cell and JSON values outside i32 range as Yjs Float64 instead of BigInt64 so BlockSuite JS number schemas read date timestamps and progress values natively.
- Align emitted filter condition function names with BlockSuite JS filter-fn (doesNoContains, isUnchecked, and multi-select containsOneOf/doesNotContainOneOf/containsAll/doesNotContainAll), remove unused legacy filter/sort builders, unwrap single-group AND wrappers on rule removal, and guard empty-value filter applies.
- Mutate multi-select cell Y.Arrays in place across toggle, option-create, and option-delete, and route set_database_row_title through minimal UTF-16 incremental Y.Text splices so concurrent replica updates and untouched marks survive.
- Preserve existing text when splicing legacy Any::Object database cells, invalidate active cell editors on remote column-type changes, and update RelativePosition anchors before refreshing snapshots.
- Guard preedit_snapshot cloning behind active inline composition, clip horizontally scrolled table content to the inner table bounds, pad Kanban property cards cleanly, and show Calendar day-add buttons only on active/selected/today cells.
- Scope np-mobile.yml iOS dev opt-level=0 overrides to the 14 newly added rendering/layout crates while preserving opt-level=s on merman and typst crates so libaffine_ios_host.a stays under the 650 MB limit.
- Write Y.Array for multi-select cells and validate real Node yjs decode roundtrip for 0/1/2 tags.
- Use incremental Y.Text splicing for title and rich-text cells to preserve marks and @reference embeds with zero writes on no-op blur/Enter, expanding LinkedPage titles across Table, Kanban, Calendar, and RecordSheet.
- Delete DatabaseInputBuffer and unify database cells and popovers on AnchoredInlineInput, shared InlineBoxPaint, and finish_inline_targets.
- Move ColumnMenu, SelectPicker, and Filter/Sort/Group panels into screen-space Overlays so block height remains invariant under scroll_x > 0.
- Patch Filter and Sort JSON losslessly with Web 0.27.5 operators, literal args, and cascading column-delete cleanup.
- Support Kanban card title editing, type-safe lane creation, title-less + New record focus, and zero-violation mobile 390x844 RecordSheet.
- Scope block-menu Turn into conversions strictly to explicit block selections without expanding hidden body blocks under collapsed headings, and pass explicit Cargo --config package opt-level overrides in iOS CI.
- Omit the font-size control and `prop:fontSize` write/read path for `affine:edgeless-text` blocks to match the BlockSuite schema (`Omit<TextStyleProps, 'fontSize'>`) and delete the unused `font_size_override` field on `BlockFlow`.
- Check `$blocksuite:internal:native$` before unwrapping `cells.value` in `SliceBlock::properties_with_id_map` so database rows with block ID `"value"` preserve sibling row cells during duplication.
- Restrict `PageDocSession::reparent_block` list renumbering to numbered list items (`numbered_order.is_some()`) so moving bulleted, to-do, or toggle items preserves adjacent custom start numbers and splits numbered runs consistently.
- Preserve existing multi-block selection when opening the drag-handle menu, insert multi-block duplicates after the last selected block, remove the 1 ms `last_closed_block_menu` timestamp coupling, and disable dev-profile size optimization for heavy rendering crates in `iOS Thin Host` CI to keep cold builds within the 20-minute budget.
- Add multi-level stepped (+24px) TreeDropTarget resolution sharing the Tab nesting predicate, atomic collapsed-parent auto-expansion on drop, and local-only non-heading Paragraph/Quote folding without CRDT prop:collapsed writes.
- Add gutter drag-handle block menu with Turn into submenu, click-to-toggle dismissal, read-only suppression, Dedicated DuplicateIcon, ID-parameterized block move/delete/convert/slice operations, single set_block_selection entry, and full subtree + remapped prop:cells duplication for affine:database.
- Preserve explicit custom numbered-list starting prop:order across adjacent non-list splits/indents while renumbering duplicated and reordered numbered list runs.
- Move Edgeless zoom controls to logical bottom-left with crisp quad FitIcon and 170ms camera ease-out, add adaptive narrow-viewport stacking, and add floating Element Toolbar across Shape, Note (theme-aware dark note backgrounds), Frame, Connector (preserving labelStyle.color), Brush, Highlighter, Text, and Group.
- Preserve concurrent peer text edits outside matching link sub-ranges on LinkApply/LinkRemove and support standalone LinkBar editing on page titles.
- Retain and reopen lightweight link/reference capsules across hover-to-capsule pointer travel before first frame layout, and anchor caret-opened capsules to inline chip/link bounds.
- Forward registered web font bytes to the Typst preview worker before compilation, bridge wheel events out of sandboxed blob: HTML embeds without allow-same-origin while preserving leading DOCTYPE declarations, and render table overflow menus with vector MoreHorizontalIcon.
- Gate Android InputConnection binding on software-keyboard demand while keeping SurfaceView hardware-key focus, unify CCW winding on selection handle teardrops, synchronize Android/iOS dark root/safe-area chrome (#141414), remove forced keyboard-toolbar overrides, and optimize heavy third-party rendering dependencies in dev builds.
- Track actual presented system keyboard inside MetalHostView.inputView, restore software keyboard on repeat prose taps after dismissal, honor iPadOS hardware Command shortcuts in Modifiers::secondary, and sync UITextInteraction mode synchronously across readonly/mode/form-factor transitions.
- Make mobile KeyboardToolbar visibility declarative on active selection so narrow-to-wide resize, selection clear, and Android cold start never leave a ghost bottom toolbar; deduct docked toolbar height in popover_viewport and forward iOS touches immediately when floating overlays are open.
- Re-validate LinkPopup against live document revisions and sub-ranges so concurrent partial title/text link edits survive Unlink, align full-width and adjacent-link hit-testing, update web-smoke link button geometry for the 11-item format toolbar, and harden preview-workers/sign-in redirect handling.
- Stage all four preview worker script/wasm mappings in stage-web.mjs with unit test and add frame-src blob: about:; to playground/web/index.html CSP.
- Mount ElementInputHandler in idle Edgeless canvas and wrap pasted Page block slices, Markdown, and plain text into a new affine:note at viewport center.
- Strip Chromium web custom MIME prefix on Web clipboard paste while reducing packages/ui/ui SLOC to 74264.
- Extend embed pointer shield to block/scrollbar/text drags and keep mounted HTML iframes pointer-events: none until clicked so wheel scrolling passes through to canvas.
- Restrict DocPanel Outline and DocInfo stats to page-visible notes and add close button, Escape, and outside-click dismissal.
- Jump to Edgeless and fit camera to target Frame/Group on SurfaceRef card click.
- Parse inline double-dollar math without stray delimiters, detect standalone inline math in Markdown paste, and enable touch height plus horizontal clamping for narrow-viewport table toolbars.