- 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.
- 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.
- Wire asynchronous off-thread native Mermaid, Typst, and RaTeX previews with CJK/Emoji system .ttc collection discovery, compact bundled NewCMMath-Book OpenType MATH outlines, 2048px rasterization cap, and a 32 MiB byte-bounded PinnedPixelCache
- Enable preview-typst by default on affine-ios-host and affine-android-host with size-optimized release codegen and wake idle native host runtimes when background preview workers finish
- Add external embed cards (YouTube, Figma, GitHub, Loom) with Idle/Selected/Active click-shield states and validated http(s):// open_url bridges on iOS and Android hosts
- Add TOC Outline and Document Info side panels, atomic table row/column insert/delete toolbar with mobile non-overlap placement, and code block wrap/language/preview controls
- Implement lossless Edgeless Note subtree paste, upfront Connector endpoint ID remapping, Mindmap/Group Yjs V1 wire parity, mixed affine:table text predicate matching, and Web Worker crash recovery
- 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
Gate wasm-bindgen worker exports per preview target, externalize the four bundled UI/script fonts from the web playground Wasm bundle into static web assets, and validate fetched font bytes through the text system's fontdb loader so empty or HTML fallback responses fail closed with usable-face checks.
- Indent and outdent code block lines on Tab and Shift+Tab by exact two-space indents in one undo step without deleting selection.
- Keep Tab and Shift+Tab inside focused table cells and insert newlines on Enter.
- Unwrap outer affine:note and affine:page wrappers during note paste while preserving Slice containers on parse.
- Compute gutter collapse chevrons during layout for normal lists and paragraphs with children and allow expanding collapsed lists.
- Match 0.27.5 edgeless Ctrl/Cmd+wheel zoom direction, 5-shape picker, shape/connector Curve defaults and live preview, unclamped centered shape text editing, and CJK compound word selection.
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.
Remove eight duplicated or defensive code paths across affine-store,
affine-client, affine-mobile, and the web, iOS, and Android hosts:
- Remove explicit create recovery journals in store and client, and
require WorkspaceDb::from_root_update_v1 to receive initial db$*
tables at construction time instead of returning DbTableNotResolved.
- Consolidate auth protocol parsing, url::Url canonicalization,
legacy_storage_endpoint_key (unbracketed IPv6 for 0.27.5 storage
keys), chrono RFC3339 UTC Z normalization, Bearer checks, and
permanent error codes into affine_store::auth while keeping iOS and
Android 0.27.5 storage formats.
- Replace the duplicated legacy storage engine in affine-ios-host with
affine-legacy-import, preserve malformed affine-local-workspace raw
strings in one place, propagate iOS write-back serialization errors,
delegate Android sentinel evaluation and probe filtering to Rust via
a single JNI entry, and remove hardcoded Swift and Kotlin key lists.
- Remove the pure JS Yjs v1 decoder from hosts/web/src/idb-storage.js,
expose a safe Rust wasm-codec cdylib from affine-store reusing
merge_crdt_updates_v1, share a strict wasm-scalar-rpc.js loader with
preview workers, wire crdt-wasm-client through index.html,
worker-loader, host.js, stage-preview-workers, CI, and real-browser
IDB E2E, and migrate real Yjs v1 fixtures to affine-store tests.
- Remove the 12-iteration blind SQLite retry loop in sqlite/doc.rs
while preserving single-row empty-update registration.
- Upgrade SqliteDocStorage::checkpoint_passive to return WAL counts and
remove duplicate maintenance pools from iOS and Android hosts.
- Remove top-level mirrored workspace fields and workspace-switch
cloning in MobileAppState, and use generate_key_between for ordering.
- Remove pixel-fallback selection drag paths in iOS and Android hosts
so text-layout endpoints remain the single drag authority.
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.
Localize the canvas-drawn mobile selection menu across English, Simplified
Chinese, Traditional Chinese, and Arabic, including BCP-47 extension subtags.
Preserve html lang="en" for boot-skeleton accessibility while reading host and
global-cache:i18n_lng preferences, guarding blocked localStorage reads while
enforcing writable storage on persistence writes, and forwarding browser locale
fallbacks. Allocate button widths with a 44px touch floor on narrow viewports
and mirror menu order and hit-testing for Arabic RTL.
Update mobile shell screens across Home, Explorer, Journals,
Settings, and Trash document pages.
- Explorer and navigation: show active documents in the All Docs root
with wheel and native touch scroll, and keep the bottom tab bar
fixed. Scroll Collections and Tags lists, restore scroll on back
navigation, and add screen-reader scroll actions.
- Scoped actions and Trash: encode workspace and document IDs with a
byte-length prefix to stop dot collisions, and require confirmation
before permanent delete. Purge matching history entries with
NavHistory::remove_target, replay outgoing edges on restore, and
show a document-not-found state for missing pages.
- Journals and Settings: wrap the 7-day strip into two rows below
364pt and use a compact landscape layout below 460pt so every day
pill and CTA reaches 44x44pt. Separate read-only settings rows from
toggle and cycle controls without chevrons, and use localized
untitled titles in main landmarks and backlinks.
- Harness and tests: cover Journals and Trash in audit-matrix with
width and height touch-target checks. Add touch, scroll, collision,
and accessibility parity tests alongside matching gallery captures.
Add WebGL2 context loss recovery, epoch-guarded async restore, single-flight fallback locking, and WebGPU canvas compositing to the Web Mobile host.
Flush pending IndexedDB writes before legacy shell navigation and recreate a visible retry banner on flush failure.
Add canvas-drawn selection highlights, teardrop handles, pointerup action triggers, and selection-guarded clipboard actions.
Add a lazy hayro PDF worker client with crash recovery, clamped scale rendering, transfer-safe deduplication, and asset root pinning.
Add a static zero-third-party-JS gate script and wire both web host gates into mobile CI.
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`.
Implement Android host selection, Autofill isolation, surface lifecycle, predictive back, and PDF rendering in packages/frontend/hosts/android.
- Keep ShapedTextLayout as the single layout source across drag, cancel, and selectAll in SelectionGestureController.
- Anchor vertical grab offsets to line midpoints and flip active_drag across the locked UTF-16 anchor.
- Disambiguate mixed-direction run boundaries and orient same-line teardrop handles outward.
- Route Autofill focus, exit, resize, and route changes through HostDocumentBufferController to keep form values separate.
- Clear the default surface to 0xFFFA_FAFC with luminance-adaptive text colors.
- Check ClipDescription metadata in AndroidClipboardAdapter.hasPlainText and cache paste state outside onDraw.
- Add 26 Rust unit tests and 22 Kotlin JNI parity sequences.
Add the native UIKit and PDFKit bridges in `packages/frontend/hosts/ios/`:
- Add teardrop selection handles, UTF-16 anchor drag probing, keyboard occlusion hiding, and loupe layout in `src/selection.rs` and `Sources/SelectionOverlayView.swift`.
- Add CoreText `CTTypesetter`, `CTLine`, and `CTRun` glyph-slot selection rects, BiDi endpoint carets, preferred-offset hit testing, and loupe drawing in `Sources/TextRenderingBridge.swift`, `src/ffi_text.rs`, and `src/text_layout.rs`.
- Add `UITextInput`, `HostTextPreviewView`, light canvas `#FAFAFC` clear color, rotation sync, and `UIEditMenuInteraction` wiring in `Sources/MetalHostViewController.swift`.
- Add per-frame keyboard avoidance in `src/keyboard_insets.rs` and `Sources/KeyboardAvoidanceCoordinator.swift` aligned with `ui::WindowInsets::effective()`.
- Add system `PDFKit` page rasterization in `src/pdf.rs` and `Sources/PdfRendererBridge.swift` with `.cropBox` rotation sizing and explicit document handles.
- Add UIKit haptics in `src/haptics.rs` and `Sources/HapticsBridge.swift`, `tests/IosHostS3SmokeTest.swift`, and `AGENTS.md`.
Scope OTP send busy state and Turnstile resets to the active email and step
epoch, and record the 60-second resend deadline when an in-flight request
succeeds after clicking Back.
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")]`.
Upgrade the thin Android host from S1 to S2 across four areas:
- Present real pixel frames via NDK EGL/GLES3 (`glClear` + `eglSwapBuffers`)
with automatic `EGLSurface` teardown and `CpuFallback` downgrade when EGL
is unavailable, retaining `pending_frame` on failure until a frame presents.
Full `wgpu` Vulkan-to-GLES3 rendering lands in `S3-Android`.
- Open in-place `0.27.5` SQLite WAL databases through `affine-store` with
`busy_timeout = 5000ms` and `onStop()` `PASSIVE` checkpoints. Gate local
workspaces by the ordered `affine-local-workspace` allowlist with zero disk
scanning, evict unlisted local handles on shrink, and allow cloud workspaces
and userspaces directly.
- Implement a file-locked atomic Jetpack Preferences DataStore protobuf codec
with zero silent corruption wipes, single-lock `getOrCreateInstallationId`,
pure-Kotlin RFC 4648 Base64 for API 24+, `v1:` AES-GCM envelopes, process-wide
single-flight `refreshSession` with idempotent `x-affine-refresh-attempt`
reuse and disk-write retry caching, a default `HttpUrlConnectionRefreshTransport`
sending `refreshToken` only in the JSON body, `INTERNET` manifest permission,
and exact `0.27.5` three-cookie plus `affine.preferences_pb` auth cleanup.
- Wire `AndroidBootstrapCoordinator` in `MainActivity.onCreate` with unified
`WebViewStorageSentinel` validation, active `indexedDB` interception,
lossless raw preservation of malformed workspace lists, and explicit partial
mount failure reporting with allowlist-synced retry and write-back gating.
Add the iOS host storage, authentication, and upgrade/rollback bridges under packages/frontend/hosts/ios:
- Wire affine-store and blocksuite-playground-doc into affine-ios-host for in-place SQLite WAL workspace and userspace databases under <Documents>/workspaces/<spaceType>/<sanitizedPeer>/<spaceId>.db, failing closed on missing or malformed affine-local-workspace allowlists so deleted local .db files never resurrect.
- Configure explicit SQLite busy_timeout (5000 ms), split remote_clock_ms from local_now_ms in apply_remote_update, add non-blocking PASSIVE WAL checkpoints on background entry, preserve dirty state whenever Metal drawables or render encoders are unavailable, and skip idle Metal draws.
- Align LegacyAuthBridge.swift and src/auth.rs with Keychain service app.affine.pro.auth-token (2001 reference-epoch f64 accessExpiresAt, shared process-level actor single-flight refresh with mutationEpochs across bridge instances, corrupt-entry self-healing, permanent invalidation cleanup, HTTP and WebKit auth cookie cleanup), UserDefaults key app.affine.pro.auth-installation-id, and /api/auth/session/{exchange,refresh,revoke} headers (x-affine-client-kind: native, x-affine-version).
- Unify LegacyLocalStorageProbe.swift and src/legacy_storage.rs on the WebViewStorageSentinel contract (all keys, whitelisted entries, idbAccessCount == 0, corrupt affine-local-workspace raw preservation, strict write-back whitelist guard, stopLoading and timeout cleanup) and wire HostBootstrapCoordinator (with allowlist eviction, rollback state sync, partial-mount error reporting, and retryable bootstrap) into MetalHostViewController with executable Swift and Rust smoke tests.
Add the same-origin IndexedDB v3 (12 object stores, frozen version 3),
V1 read-only fallback, and BroadcastChannel bridge in `src/idb-storage.js`.
Keep local workspace enumeration strictly on `localStorage['affine-local-workspace']`
and commit pending CRDT writes before navigation or handoff.
Complete standalone authentication routes (`/sign-in`, `/magic-link`,
`/oauth/*`, `/redirect-proxy`, and `/open-app/*`) in `src/sign-in.js`
with `x-affine-client-kind: web`, double-submit CSRF headers, single-use
code guards, and on-demand Turnstile loading.
Add the first-frame write-only ARIA semantic subtree in `src/a11y.js`
with incremental attribute patching and mutual focus exclusion across
`#a11y-tree`, `#ime`, and `#embed-layer`.
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 thin Web, iOS, and Android mobile hosts, harden the blocksuite-preview
Mermaid renderer and Wasm exports, and add S1 release performance probes
with CI artifact and native host linking gates.
- Preview: use FontPoolWidthMeasurer with variable-font HVAR weight
instantiation, integer pixel ceil widths, front-matter theme injection,
high-contrast Light and Dark palettes, premultiplied RGBA PNG compositing,
and Wasm theme parameters.
- Probes and CI: add s1_sqlite_probe and s1_probes release tests, record
measured latency and peak RSS in BENCHMARK.md, add timeout-minutes on all
np-mobile jobs, upload s1-probes-artifacts, and link Android NDK .so,
kotlinc Activity, and iOS Simulator swiftc executable in CI.
- Web host: use an offscreen canvas GPU probe, add OAuth redirect-loop and
runtime GPU loss guards, restrict embed URLs and sandbox tokens, match
/api/auth/captcha Turnstile headers, and launch four independent ES module
Blob workers pinned to site root.
- iOS host: add affine-ios-host staticlib crate implementing all C-ABI
functions with surrogate-pair safe UTF-16 editing, weak DisplayLinkProxy,
absolute ime_bottom contract, and in-memory LegacyCapacitorSchemeHandler.
- Android host: implement hand-written JNI bridge with absolute ime_bottom
logical-dp conversion, predictive and legacy back gesture handling, and a
pure Android platform SDK MainActivity and LegacyLocalStorageProbe.
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.
Integrate `packages/common/store` (`affine-store`) into the unified
`packages/frontend` workspace and close cross-client compatibility and
crash-recovery invariants against `0.27.5`:
- Encode page creation identity via `PageIdSource` and `CreateDocId`
(`DerivedFromOp` vs `Explicit`), derive deterministic 10-character
URL-safe NanoIDs from `(space_id, op_id)` without sidecar tables or
extra keys in shared Yjs `meta.pages`, and reject `page_id` collisions
with the root `space_id`.
- Keep `DocMode::Page` writing only the root document, require
`db$docProperties` to be resolved before non-`Page` creation
(returning `StoreError::DbTableNotResolved` so retry intent survives
restarts), gate explicit non-`Page` crash-replay backfill on a
client-local `export_explicit_create_journal` /
`import_explicit_create_journal` record so legacy `0.27.5` pages
without `DocProperties` rows keep `DocMode::Page`, preserve existing
live or soft-deleted `DocProperties` rows independently of root page
repair, and start `SqliteDocStorage::push_updates_batch` with
`BEGIN IMMEDIATE` to prevent `SQLITE_BUSY_SNAPSHOT` on pooled WAL
connections.
- Capture unacknowledged `in_flight` and deferred `JoinDocs` updates in
`SpaceSyncEngine::snapshot()` ahead of `offline_queue` while keeping
live local writes gated on `waiting_for_id_converter`.
- Wire `vars.NP_ALLOW_PERF_BOOTSTRAP` in `native-playground.yml` and
document the three `perf/accepted.json` lifecycle actions in
`packages/frontend/AGENTS.md`.