The shell padded the bottom edge by the keyboard height, and the embedded
page editor lifted its keyboard toolbar by the same height again. In Page
mode the editor now owns the bottom edge. The shell gives the editor its
resolved keyboard height, so the toolbar sits directly on the keyboard.
- Hide the TabBar while the software keyboard is up, as 0.27.5 AppTabs
does. The accessibility tree follows the same rule.
- Move the focus from the editor to the shell when an overlay sheet opens
over a page, so the keyboard goes down. The drawer keeps its own focus.
- Add NativeSelectionUi to MobileShellView. The iOS shell lets
UITextInteraction draw the handles, caret, and selection. The Android
shell draws the handles natively and keeps the GPU caret.
- Scroll a long Search query or drawer filter only as far as necessary to
keep the caret or the end of the composition in view. The renderer, the
scroll, and the IME rects and touch offsets read one shaped layout of
the line, and place it in the field with one transform. A line that fits
sits at the start edge of the locale, and its glyphs always run left to
right in text order, also in RTL locales.
- Retry the Android bootstrap from onResume and onNewIntent while the
allowlist is empty or the shell has not mounted the workspace that
bootstrap opened. Stop after three automatic retries.
- Send accessibility events only while an accessibility service runs.
The system clears the focus after the last service stops, and the
event send threw at that time.
The iOS and Android hosts now start on the mobile product shell (Home,
Explorer, Journals, Search, Settings, and the Page route) instead of one
bare page editor.
- Add a runtime root that is a bare PlaygroundView or a MobileShellView.
Editor calls go to the root editor, or to the shell's embedded page
editor while the Page route shows with no sheet or drawer above it.
Otherwise the focused shell input handler (Search or the drawer
filter) takes UITextInput and InputConnection text.
- Send every shell touch to Rust outside the page editor, and ask for
the software keyboard when a touch focuses a shell text field.
- Let the page editor close its overlay on back first, then run
MobileBackCoordinator. A tab other than Home steps back to Home
before the app exits.
- Mount the local workspace that bootstrap opened through
SqliteWorkspaceStore and MobileWorkspaceBridge on every bootstrap
path. The mount reads only the root document and db tables, and each
page loads when the shell opens it. A failed load retries the next
time the shell shows the page.
- Commit shell edits every second on the scheduler clock, and again
when the app goes to the background. A commit without pending
changes does no SQLite access.
- Drop text and composition edits while a sheet covers the shell,
except in the drawer once its filter holds focus.
- Follow the system dark mode while the app runs, and publish the
shell accessibility tree as Android virtual views with stable IDs
and accessibility focus.
- Read the allowlist again on a retried Android bootstrap while no
shell workspace is mounted.
- Keep the bare editor C ABI and JNI entry points for editor tests.
- Add Rust, Swift, and Kotlin tests for routes, IME, Search, sheets,
back, lazy page loads, autosave, and a SQLite reopen.
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.
- 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
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.
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.
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 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.