Add StartPointArrowIcon, EndPointArrowIcon, LayerIcon, StopAiIcon, and ExpandCloseIcon to the icon token generator. Replace all five inline SVG constants in the presentation toolbar with static IconDef paints.
Remove the hand-written fullscreen exit stroke path and adopt the official ExpandCloseIcon vector shape. Add static source and rasterized alpha-mask regression tests for the presentation toolbar icons.
Keep the triangles of a path in an Arc with an identity. A change gives the triangles a new identity. The process never gives an identity twice.
Paint a path without a copy of its vertices. The scene path shares the triangles and keeps the scale factor and the paint transformation. The vertex shaders scale and transform the vertices in the order of operations of the CPU code. The Metal shader turns off fast-math contraction and reassociation for this.
A GPU can fuse a multiply and an add into one rounding. For a rotation or a skew, the renderer thus keeps screen positions that the CPU placed. The GPU still scales the vertices for the local clip.
Keep the triangles of each identity in a pool on the GPU. Append only the triangles that no earlier frame drew. Replace the pool when it is full or when the frame uses less than one eighth of it. Never write to a part of the pool that a frame can read. After a failed upload, forget the pool.
Draw each path with one 144-byte instance record. Use this design for storage buffers, the WebGL2 texture transport, and Metal. Write WebGL2 instance data and pool data in blocks of whole rows. Each array needs a maximum of four texture writes.
Remove the frame paths of wgpu and Metal that no caller can reach.
Add a Table of Contents header with a button that opens the sidebar.
Use the BlockSuite icons in the document menu and the outline header.
Keep the last outline tick when the rail has room for it.
Clear the active outline entry when its block stops being a heading.
Extract 15 official BlockSuite shell icons into ui-tokens and regenerate icons.rs.
Replace the 13 inline SVG constants in packages/frontend/mobile with the generated icons.
Use FolderIcon for explorer folder rows and SidebarIcon for the workspace drawer button.
Keep RTL mirroring and light or dark tinting across mobile views.
Add `ui::SnapshotId` and the `ui::snap_id!` macro. Under `harness`, the
macro formats its arguments into the ID.
In other builds, `SnapshotId` has zero size. The macro type-checks its
arguments in a branch that never runs, so no ID text gets into the
binary.
`SharedString` gets `From<SnapshotId>`, so `snapshot` keeps its
signature and literal IDs need no change.
The toolbar icon button, the toolbar menu row, the context menu row,
the block menu row and the image lightbox control take a `SnapshotId`.
A caller that gives a plain string does not compile.
Remote cursors and selections, presence badges, the doc panel, the
record sheet and the block toolbars now build their dynamic IDs with
`ui::snap_id!` instead of `format!`.
`check-snapshot-prefixes.mjs` checks the prefixes of these IDs and
accepts more than one Wasm file.
Resolve row and column descriptors by their stored IDs. Reserve descriptor
and cell keys before insertion. Scan the current table during open
transactions because the revision changes only on commit.
Remove empty trailing axes together. Match column previews to the final cell
layout. Hide canvas controls when their selection leaves the viewport.
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.
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
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.
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 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.
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.
- 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.
- 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.
- Unify mobile database Record detail sheet layout and rendering into a single PreparedRecordSheet source of truth, auto-release open sheets when the backing database or row is deleted, and render graphical Checkbox and Progress controls in both Record sheets and Kanban cards.
- Add stroke-level TouchStrokeOwner isolation so closing a modal overlay or dragging the sheet grabber within its threshold never leaks scroll events to the underlying page or sheet body.
- Fix RTL mobile database view tab strip clipping and horizontal swipe direction; focus newly created rows on desktop + New record, record pre-mutation Undo selection snapshots, and prune dangling selections after Undo/Redo and remote CRDT updates without interrupting local block-selection transitions.
- Grow Edgeless Connector inline label edit boxes dynamically on newlines with single-step Undo, and align Frame title inline edit padding and font weight so titles stay single-line.
- Dismiss the touch selection action menu on typing, IME composition, key input, and scroll; wire inline @ reference chips and embed-linked-doc cards to switch the active workspace page with back navigation history.
- Preserve horizontal goal_x across table cell Up/Down navigation, select full paragraphs on triple-click, focus trailing empty blocks or append a paragraph when clicking below the last block, and show desktop scrollbars regardless of narrow window width.
- Pass Web IME multi-clause selected_range, recomposition anchors, and adjacent repeated-character composition ranges through to input handlers, expose code-block input mode to iOS and Android hosts for software keyboard traits, and re-enable default wgpu validation flags outside Android.
Implement touch interaction gestures, mobile database views, and responsive host frame scheduling across Android, iOS, and BlockSuite playground:
- Record detail sheet layout and gesture isolation: measure real title, field, and wrapped tag-pill heights with block_flow::layout_inline so long multi-line titles scroll cleanly to the bottom; isolate all touch drags, flings, and wheel events inside the open sheet so the page behind stays stationary; support touch header/grabber pull-to-close and platform Back dismissal via PlaygroundView::handle_back and NativeBridge.nativeHandleBack.
- Mobile IME and block-selection continuity: preserve software keyboard focus and record the return block caret across adjacent block selection on Backspace, restore the text caret to the return paragraph on block deletion or direct typing during block selection, clear the flag on selection changes, and keep Android Autofill focus-generation isolation intact.
- Host frame scheduling, Vulkan cold-start safety, and wheel input: clear dirty state inside PlatformWindow::draw() while preserving post-draw animations and iOS keyboard transitions, wire SyncHostDispatcher::drain_ready() and next_timer_delay_ms() on both Android and iOS hosts, cache the process-lifetime NativeBridge jclass global reference in OnceLock, disable wgpu debug instance flags to avoid Vulkan emulator SetDebugUtilsObjectNameEXT crashes, dispatch Android ACTION_SCROLL via ScrollEvent::Pointer without synthetic touch flings, and remove sleep polling from Android runtime tests.
- Add orthogonal PointerKind, FormFactor, and EditorCapabilities matrix in blocksuite-editor, decoupling database_readonly from edgeless_readonly and enforcing page_readonly across command/toolbar paths
- Attach cross-platform CJK and emoji FontFallbacks to blocksuite-editor text runs so iOS CoreText and Android CosmicTextSystem render CJK and emoji glyphs cleanly
- Wire real WgpuRenderer and CosmicTextSystem into Android ANativeWindow via SwappableAtlas, deterministic ui::clock_now() dispatch_after timer draining, single-JNI UTF-16 reads, surrogate-pair composing alignment, requestCursorUpdates + Matrix CursorAnchorInfo, historical ACTION_MOVE samples, hardware keyboard/scroll forwarding, and zero shadow-buffer pollution
- Frame iOS MetalHostView and SelectionOverlayView inside safeAreaInsets, gate software keyboard responder on PlaygroundView::wants_software_keyboard and pan-slop tap detection, avoid double safe_bottom subtraction on KeyboardToolbar insets, prevent spurious UITextInputDelegate textWillChange/textDidChange echo during IME composition, yield hardware pressesBegan during marked text, and guard UIEditMenuInteraction with explicit actions
- Enable wgpu/cosmic-text for target_os = "android" in packages/ui/ui and add Linux fontconfig/freetype packages to np-mobile CI workflow
Add the S3 PageEditor stack on top of darksky/np/mobile:
- Read and render seven rich block kinds (callout, table, attachment,
LaTeX, embed linked doc, embed synced doc, and surface ref) with pure
Rust RaTeX math layout, syntax highlighting, Hayro PDF previews, and
shared premultiplied RGBA-to-BGRA conversion via ui::swap_rgba_pa_to_bgra.
- Replace offline table cell string diffing and the conflict popover
with direct in-place Y.Text CRDT splicing, O(1) read_table_block with
zero-clone replacement, split_delta preedit, and RichParagraph cells.
- Share insertion_marks_at across paragraphs, table cells, surface
elements, and block titles via single-delta splice_live_text; share
AnchoredInlineInput and finish_inline_targets across table cells and
Edgeless labels with unselected root-input suppression and same-target
preedit commit on pointer press.
- Land mobile keyboard toolbar with 0.27.5 @blocksuite/icons tokens,
bidi selection, touch gestures, native web clipboard paste, shared
HTML/Markdown slice builders, and host-layer Emoji font registration.
Keep multi-location breadcrumb switcher chips visible with their dropdown chevron across narrow viewports and locales. Preserve the location count suffix while truncating only the owner document title.
Render high-contrast muted placeholders on blank documents using static empty-state copy, keep primary text color for non-empty body previews, and keep display titles in lists, breadcrumbs, trash pages, and accessibility landmarks.
Remove the ambiguous Done button from the permanent delete confirmation sheet in both the view and the accessibility tree.
Implement the S3-Shell deliverables across L1 to L4:
- Add read-only outbound document reference extraction in `blocksuite/crates/doc/src/refs.rs` with zero-writeback tests.
- Add baked keyframe micro-icons, domain-neutral Breadcrumb layout, and RTL mirror tests in `packages/ui/kit`.
- Add sanitized FolderForest caching, NavHistory with 128-entry cap, pure breadcrumb derivation, and LinkGraph backlinks in `packages/frontend/client`.
- Add `affine-mobile` with interactive 4-TabBar routes, 10-section Settings, Location and Trail sheet, and `mobile-harness`.
Close the S2.1 parity and review items across the editor, web host,
and CI workflows.
- Add affine:latex block layout and the equation editor popover.
- Support Space and Enter triggers, inline rendering, click-to-edit
chips, IME commit on Done, and Web slash copy.
- Guard open equations with zero-width CRDT identity checks and skip
writes when closing an unchanged equation.
- Align web sign-in OTP validation, resend state, anti-reentry,
cross-Back cooldown, preflight races, and initial OTP errors.
- Align step-bound email submit, deployment Terms display, and native
Chromium discovery in verify-idb-real-browser.
- Key WebTextSystem Canvas fallback descriptors by logical font ID so
static single-face fonts preserve requested weights.
- Keep Release LTO active for s1-probes-bench in np-mobile.yml.
Address edge cases identified during the S2 review rounds:
- Make `extractYjsV1SubdocEntries` iterative on `origin` chains, binary-search
merged `DeleteSet` ranges, require the trailing `DeleteSet` count on every
update, and resolve concurrent `Y.Map` writes deterministically via YATA
sibling ordering.
- Clear stale password and OTP inputs when returning to the email step in
`sign-in.js`, run `/api/auth/preflight` on every email-step submit, and
clarify the status message when email login is disabled while OAuth remains
available.
- Guard `is_valid_rfc3339` against non-ASCII slices and invalid calendar days,
enforce `1..=86400` `expiresIn` and non-empty token invariants in
`StoredAuthTokenPair`, make `AuthController::load_stored_credentials`
read-only on `HostBridge`, and add epoch-fenced session response helpers.
- Preserve same-ID `affine-cloud` `last_workspace_id` entries when removing a
local workspace in `HostBootstrapCoordinator.swift` and `legacy_storage.rs`.
- Persist `auth-refresh-attempt:<endpoint>` digests across Android process
restarts, preserve `FreshInstall` state across rollback write-back, surface
legacy `affine.preferences_pb` cleanup failures from `deleteSession`, remove
test-only JNI exports from `NativeBridge`, and gate `touch_dispatch.rs` on
`#![cfg(feature = "harness")]`.
Enable browser Canvas CJK and fullwidth punctuation fallback by default,
bundle Noto Sans Arabic and Noto Sans Hebrew for native RTL shaping, and
bridge touch tap and pan gestures to window mouse and scroll listeners.
Align BlockSuite editor behavior with Web:
- Trigger the linked-doc menu on mid-word `@`, `[[`, and `【【`.
- Add all eight inline Markdown rules on ASCII space or Enter with IME
guards and non-leaking trailing space or pending marks.
- Support block-level Markdown on Enter and inside list and quote blocks.
- Outdent nested empty list items on Enter and exit quote blocks on two
Enter keys without an extra blank paragraph.
- Use subsequence fuzzy matching in the slash menu, pass through Enter
and arrow keys when in-document search has no match, and split Linked
Page into New Doc and Linked Doc commands.
- Add block conversion shortcuts, Mod-k link focus, and Escape / second
Mod-a whole-block selection.
Add the zero-dependency ui-tokens crate to export generated theme tokens,
icon definitions, and bundled font bytes without cross-tree include_bytes!
paths.
Add the domain-neutral ui-kit crate with logical geometry helpers, SafeArea,
VirtualList, SwipeDialog, and SwipeMenu state machines backed by scheduler
time and four-rate replay invariance tests.
Extract blocksuite-editor from playground with the WorkspaceDocDirectory
host port, exact substring UTF-16 highlight matching, and LTR/RTL logical
start/end block flow layout. Slim playground to the demo and harness host.
Update workspace manifests, static invariant guards, CI workflows, and
AGENTS.md files.
- Add logical geometry helpers on Edges, Corners, Svg, and scroll offsets, and propagate inherited LayoutDirection through Taffy and fast splice rebuilds with a zero-clone LTR fast path.
- Propagate explicit BaseDirection through LineLayoutCache and all platform shapers (Apple CoreText, CosmicText, and Web), sort visual clusters by x_start, add UAX #9 multi-line soft-wrap bidi reordering, preserve contextual Arabic joining across same-font runs, and align text truncation on shaped glyph-cluster boundaries (`UI_LOC_CEILING = 95200`).
- Add scheduler-clock TouchGestureRecognizer with tap, long-press timer wakeup, pan cancellation, pinch re-anchoring, and closed-form MotionCurve presets including SwipeMenu InOutSine and SwipeDialog cubic-bezier/outQuad.
- Replace Web four-element safe-area probing with a single hidden probe and exact per-edge float comparison, preserving non-double-subtracted IME insets.
- Align the iOS platform stub traits and PlatformInfo, update packages/ui/AGENTS.md, and add aarch64-apple-ios and aarch64-apple-ios-sim compile guards to native-playground CI.