Add SqliteDocStorage::has_active_blob to check blob existence without
reading blob payload overflow pages during ingestion.
Remove the redundant pre-check loop for generated media block IDs and
retry only when PageDocSession::insert_block reports a duplicate key.
Store SpaceSyncEngine outbound items in a VecDeque, peek before send in
WorkspaceSession, disconnect immediately on send failure, and clear
stale frames on disconnect.
Drop passive remote broadcasts for unknown documents without local
baselines or active loads in an in-memory session, bound in-flight load
staging with a reload flag, and clear load leases on failure,
disconnect, or deletion.
Another writer of the same SQLite file can add a document after a
session opens. Thus a SQLite-backed session stages passive broadcasts
for unknown documents, up to 64 documents and 1 MiB.
The next flush persists the broadcasts for documents that SQLite has
and drops the others. Above the limits, the oldest document loses its
staged broadcasts and needs a reload.
Split share receipt persistence into a sibling module and reject shares
targeting tombstoned documents before any write.
Keep only the written sidecar keys and their previous entries for
rollback. When COMMIT fails, take a new write lock and read the
sidecar again.
Restore only the keys that still hold this attempt without a committed
import. Thus receipts that another writer committed after SQLite
released the lock stay.
Migrate a legacy receipt of a permanently deleted document without a
witness, so the migration does not recreate its doc properties row,
and count that receipt as committed while the document stays deleted.
Reclaim oldest complete quarantine groups in ShareDiskInbox when old
quarantine files block valid batches under the 128 MiB cap.
A caption keystroke read the whole page again from the document. On a
page with 10,000 blocks, each key took about 300 ms.
The caption editor now writes the committed caption into the page
snapshot. It changes the typed caption and the raw `prop:caption` of
the block. If the block is not in the snapshot, or its stored caption
is not a plain string, the editor refreshes the whole document.
`mark_caption_dirty` replaced a pending full layout pass with a pass
over the caption block only. A remote update that arrived in the same
frame as a caption event then kept its old layout. The function now
keeps a pending full pass.
Check block IDs in the document map. Use one sequence per table for
row and column IDs. Reject duplicate axes before changing cells.
Keep database menus on the selected row or lane. Correct calendar
editing, daylight saving time conversions, scrollbars, and canvas
toolbar placement. Commit active captions before toolbar actions.
Retain failed PDF tombstones in `refresh_pdf_previews` only while a card or the viewer shows that source. This stops retry loops while shown and drops byte references once removed.
Track each active native PDF open by monotonic `open_id` and payload bytes in `DocTable`. Each `(scope_id, source_id)` targets at most one payload at a time. Switching to different bytes clears stale results and waits before cache lookups, cancelling unstarted opens with no remaining waiters. Two live scopes with colliding keys never evict each other. Notify `cv_idle` whenever job pruning or scope cleanup leaves the queue idle.
Harden `WasmPdfState` without changing its interface or keeping PDF byte buffers. Skip `counts` writes for out-of-range sizes. Clear `in_flight` on session close or open cancel. Close idle zero-page and first-open failures while keeping known counts on reopen failure. Verify `doc_id` ownership in `answer` and `admit`.
Track queued `waiters` per entry in `pdf-client.js` so concurrent opens over 64 documents never evict waiting entries. Trim idle known entries back to 64 as requests close or settle. Wake and reject waiters at once when bytes change or the client disposes. Keep transient worker fetch errors retryable with no negative error cache.
Pass lazy snapshot identifiers directly into `Div::snapshot` from the four `ToolbarChrome` helpers. Non-harness builds now drop the formatting work and static snapshot strings.
Switch dynamic toolbar snapshot IDs across the eight floating overlay toolbars to `format_args!`. Borrow displayed text for `snapshot_text`. Keep all interactive element IDs and layout geometry unchanged.
Store static string slices in `ToolbarTooltip` and read `palette.link` directly in `chrome_link_color`. Replace scratch `group_widths` vectors with stack accumulators. Compute link popup label width and flags once per frame without cloning `LinkPopupTarget`.
Stream `Debug` layout fingerprints directly into `DefaultHasher` with a
trailing `0xff` terminator byte in `block_flow/{layout,surface_ref}.rs`
instead of allocating temporary `String` buffers, and add a unit test that
verifies bit-exact hash equality across block content variants.
Defer snapshot ID formatting with `format_args!` across
`overlays/code_lang_picker/render.rs`, `overlays/keyboard_toolbar/render.rs`,
and `overlays/paint_page/{mod,controls,media_controls}.rs`, borrow recent
code languages after the picker open check, reuse `palette.focus_ring` for
the picker focus border, and add `overlay.code_more_menu.` and
`overlay.code_lang_picker.item.` to `check-snapshot-prefixes.mjs`.
Remove unnecessary allocations, scans, and repeated SQLite queries across document sync, media ingestion, and workspace table storage:
- Replace the full-page snapshot read and ID set scan in `next_available_media_block_id` with bounded O(1) read-only lookups against the root `blocks` map, keeping explicit block IDs in `ingest_media_into_doc_session` strict.
- Avoid cloning broadcast update payloads when a document is not in `LoadingRemote`, isolate per-update apply errors across live broadcasts and staged `DocLoaded` replays while triggering a single reconciliation and holding `remote_ts` on failure, skip unmanaged entries during timestamp sync, remove the unused `observed_remote_ts` state, and unify root, table, and page reconciliation dispatch in `doc_sync`.
- Encode `YjsTableDoc` state vectors and diffs directly via `y_octo::Doc::get_state_vector` and `encode_state_as_update_v1` instead of round-tripping full V1 updates.
- Cache per-document tombstone checks and monotonic clock watermarks within a single `BEGIN IMMEDIATE` write transaction in `sqlite/doc.rs`.
- Replace the two-query in-memory `HashMap` join in `list_unpushed_doc_clocks` with a single SQLite `LEFT JOIN` query while preserving `NaiveDateTime` comparison semantics.
Extract shared ToolbarChrome, Tooltip, and HoverController (500ms enter / 250ms leave with hover bridge) under blocksuite-editor overlays.
Align FormatToolbar (Turn into current-block icon and selected row, Align dropdown, score-ordered inline actions, dual-section vertical Highlight list, Create Table, More), Image inner top-right hover/selected toolbar with all four corner resize handles, Bookmark/LinkedDoc/SyncedDoc/ExternalEmbed/Callout toolbars (single-click select, double-click open), Link/Reference hover popup above inline anchor with bridge and dropdowns, and desktop Simple Table hover add-bars (a press counts as a drag only after 4 px of travel along the bar's axis, a forward drag adds at least one row or column, and a drag back to the press point or away from the table adds nothing), three-dot axis pills, and 5px column resize handles.
Unify Page and canvas media downloads onto ImageStore's single set_on_blob_download host channel (with Web anchor fallback), and show the canvas Image and Attachment Download button only when ImageStore::can_deliver_downloads() is true and non-empty blob bytes are cached for that source_id.
Compute document math presence once per page and document revision (snapshot_has_math, memoized on BlockFlow) instead of walking the whole page on every layout, and include database titles, row titles, and rich-text cells in both the math check and the per-block preview fingerprint.
Route /pdf through the media slash path so that a host without a file picker keeps the typed /pdf text, the same as /attachment.
The preview workers now use a linear-memory ABI with four exports:
`memory`, `prepare(len)`, `invoke()` and `output_ptr()`. The host writes
each request into worker memory in one copy and copies each response out in
one copy. The old ABI called an export for every 4 bytes in each direction.
Rust gives out only the addresses of its own buffers, so the crate keeps
`forbid(unsafe_code)`. Buffers larger than 1 MiB go back to the allocator
after each request.
The PDF worker keeps each parsed document under a `docId` that the host
assigns. The frames are `PDF_OPEN`, `PDF_RENDER` and `PDF_CLOSE`.
The bytes of a document go to the worker once per open, not once per page.
Page pixels come back as a compact RGBA buffer that the worker transfers.
The playground bridge has one session table in `wasm_pdf_state.rs`. It
opens at most 8 documents or 256 MiB of source bytes.
To make room, the table closes least recently used idle documents, but only
when that makes the new document fit. Empty documents and documents larger
than 256 MiB never go to the worker.
The table closes a document when the view clears the last scope that used
it, also when no page request claimed it yet. A reopen that fails after a
worker restart keeps the known page count.
The table restarts the worker before the IDs run out.
The bridge no longer keeps 16 copies of PDF bytes.
Each worker event listener ignores events from a replaced worker, so a late
error of an old worker cannot stop the new one. A crash answers each sent
request once, so the count of unanswered requests stays exact.
`pdf-client.js` uses the same protocol and keeps its public methods. It
keeps the same open budget and waits for room before it sends an open.
New bytes for a known `docKey` now open a new document and drop the old
page count and pages. Before, the client returned the old page count.
Four snapshot IDs of the PDF viewer and the attachment toolbar use
`format_args!`, so the production bundle has no copy of their prefixes. The
prefix gate now checks 14 prefixes.
The desktop code toolbar, its More menu and the touch code toolbar now give
`format_args!` directly to the snapshot call. Release builds format no
snapshot ids for these controls. Harness builds record the same ids as before.
The interactive element ids do not change.
`filter_code_languages_ordered` keeps its signature and its order. It gives
each catalog entry the dense order of its first entry in the history. Then it
sorts one integer key for each match on the stack.
The label match compares ASCII bytes without case, so a query makes no
lowercase copy of each label.
A table test compares the new order with the previous sort for all query
prefixes, cases, aliases, duplicates and a history of 65,538 entries.
`Palette` now has `error`, `error_background` and `focus_ring` from the theme
tokens. The More menu and the touch toolbar read these fields. The colors do
not change.
Wheel and touch fling scrolls lend the collapsed block set to the overlay
scene and do not clone it. This change also
removes `ScrollAxis::set_max` and `ScrollAxis::snapped`, which had no
production callers.
Unify Table, Kanban, and Calendar hover state into a paint-only overlay in playground without triggering document relayout or text-cache rebuilds, map all database hit targets and popovers to standard cursor styles with full modal, overlay, and side-panel hover isolation, and invalidate cached hover on document revision changes. A pressed title cell hides the OPEN and more buttons of its row in the same frame, and an open database popover or record peek hides the page block hover under it.
Add a centered desktop Record Peek modal with checkbox fields and an editable title that splices each keystroke into the live row title, like a title cell: peer edits merge, Enter, Escape, an outside click, or closing the peek only end the edit and write nothing, and one undo removes the local typing. A double click on a Calendar event edits its title in place only when its first click opened the peek. Also add 24x24 icon row/card and Kanban lane context menus with the CenterPeek icon, single-transaction atomic Undo row CRUD primitives (insert at slot with group inheritance and immediate title editing in the same undo step, lossless rich-text and reference duplication, and deletion cleaning prop:cells), dual-date-column Calendar resize that keeps the local time of day of the dragged edge across DST changes and the exact timestamp of the other edge, readonly Link cell click pass-through, and Escape/outside-click dismissal for all database popovers.
Embedded PDF cards that show the same page now share one bitmap.
Twelve cards of one page keep 1 image instead of 12.
A card with a current preview now stops at a pointer check.
The refresh does not hash bytes, touch the document table or call the provider.
The native provider parses each document on a background thread.
Views that open the same content share one parse through a weak table.
Render jobs share the parse without a lock.
This change removes the second parsed copy, the provider cache and the byte copies.
The parse also renders the first page, so one wakeup brings the document and its first page.
The view keeps one LRU table of open documents.
It never evicts what the open viewer shows or what a card waits on.
A card that waits for a free slot opens in a later pass or when the viewer closes.
An open that no card or viewer wants any more frees its slot.
Content identity uses the shared allocation, then a full byte compare.
The sampled hash is only a map key, so new bytes with the same name and length render again.
Run the real-browser web host test files sequentially in CI so two cold Chromium and SwiftShader startups do not compete for disk reads and four runner CPUs at time zero.
Replace detached caption prompts with direct in-place caption editing across all captioned block flavours, unify the desktop hover code toolbar with 28x28 icon buttons and More menu, and dock a horizontally scrollable >=44pt touch code toolbar on Phone and Tablet viewports.
- Add touch docked code toolbar via place_touch_docked_toolbar with language picker, conditional preview toggle, copy, caption, wrap, line number, collapse, duplicate, and pinned delete controls
- Reserve touch code toolbar height in Page viewport scroll/caret reveal and touch selection visible-band calculations so typing in a focused code block never falls behind the docked bottom toolbars
- Map in-place caption pointer hit-testing, drag selection, and IME selection bounds through Edgeless Note camera/scale transforms alongside Page coordinates
- Report wants_software_keyboard() while the in-place caption editor is active on Page and Edgeless modes, and enforce edgeless_readonly alongside page_readonly
- Preserve non-collapsed selection text when splitting a caption on Enter in Page mode, commit and exit cleanly on Enter in Edgeless mode, and only clear focus when the structural commit succeeds
- Support clipboard paste with newline normalization, word-granularity navigation/deletion, mouse drag selection, and standard line-height placeholder carets in the in-place caption editor
- Update AGENTS.md invariants, headless harness states, and deterministic unit tests
Replace the interactive control check in the dual-shell verifier with a legacy workspace readiness check for @affine/mobile 0.27.5.
The verifier requires a valid workspace document route and a visible editor container with a mounted editor host.
It also requires the legacy shell cookie and no synthetic legacy shell object.
One page check covers these conditions, and it uses the same route parser as Node.
The verifier runs this page check again after each IndexedDB read and before it returns.
A shell that leaves the document route or unmounts the editor before it stores data fails.
The verifier loads yjs on demand so Node tests run without installed packages.
It reads only target document records from local IndexedDB and verifies root catalog and page block state.
Rows must agree with the nbstore schema, and the updates store must have its docId index.
When a fresh profile stops at the workspace home route, it reads one document ID from the catalog.
It then locks that workspace and document and navigates once to the document route.
A redirect to a different document fails the check.
The legacy CLI path now reopens the mounted document in a new tab of the same Chromium profile.
That tab blocks the welcome template, so the shell must load the workspace from IndexedDB.
The local workspace database count must stay the same.
A server that cannot serve the document route directly fails the check.
Limit Chromium browser test file concurrency to two in CI so three browser suites do not overload four runner CPUs during SwiftShader startup.
Add a zero-dependency Node script that scans WebAssembly Section 11 data segments for eleven harness snapshot ID prefixes.
The script also scans Rust sources under blocksuite/crates to confirm that every watched prefix stays active.
The source scan ignores test modules and their child modules.
Wire the source check into packages/frontend/scripts/check-invariants.sh.
Wire the binary check into .github/workflows/native-playground.yml after wasm-opt.
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.