Commit Graph
11701 Commits
Author SHA1 Message Date
DarkSky 2eb0983e03 feat(editor): align database table, kanban, and calendar views with BlockSuite styling
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.
2026-11-29 22:32:33 +09:00
DarkSky 09070d0317 feat(edgeless): add full-edge resize, outer-corner rotate, and rotated cursors
Hit-test full-length 8 px edge bands with 14 px corner priority.
Add outer-corner rotation zones for rotatable elements.
Enforce per-element ResizeMode rules and aspect-ratio locks.
Render 12 px circular corner handles and Note edge pills.
Map hover and drag cursors to 45-degree rotated sectors.
2026-11-29 22:32:33 +09:00
DarkSky 0151d5e591 style(web): format preview-workers test with oxfmt 2026-11-29 22:17:16 +09:00
DarkSky 77c36c4473 fix(editor): isolate mouse image resize, bind picker request tokens, and tune iOS CI
- 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.
2026-11-29 22:07:41 +09:00
DarkSky 955e6acf29 fix(editor): preserve multi-file media order, gate host pickers, and wire touch image resize
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.
2026-11-29 21:27:04 +09:00
DarkSky 2ce403df16 fix(editor): align scalar cell editor, edgeless note clip, calendar hover, and trackpad zoom 2026-11-29 19:44:08 +09:00
DarkSky e872a5a2f7 refactor(database): index prop:cells directly by columnId and honor reference title aliases 2026-11-29 19:01:30 +09:00
DarkSky e6f4c4313a feat(editor): add image toolbar, slash media authoring, and worker math font loading 2026-11-29 19:01:30 +09:00
DarkSky 6a87984317 fix(blocksuite): decode bare delta cell arrays and reconcile aliased row map keys 2026-11-29 17:46:38 +09:00
DarkSky 20ec72c4d4 fix(blocksuite): preserve legacy cell siblings, kanban multi-select tags, and wrapped card titles 2026-11-29 17:32:20 +09:00
DarkSky 69073d03db fix(blocksuite): unify database rich-text editing, multi-select arrays, and kanban drag 2026-11-29 15:40:02 +09:00
DarkSky 9a834dc75b fix(blocksuite,ci): align database Yjs wire types, filter operators, and iOS staticlib budget
- Encode integer cell and JSON values outside i32 range as Yjs Float64 instead of BigInt64 so BlockSuite JS number schemas read date timestamps and progress values natively.
- Align emitted filter condition function names with BlockSuite JS filter-fn (doesNoContains, isUnchecked, and multi-select containsOneOf/doesNotContainOneOf/containsAll/doesNotContainAll), remove unused legacy filter/sort builders, unwrap single-group AND wrappers on rule removal, and guard empty-value filter applies.
- Mutate multi-select cell Y.Arrays in place across toggle, option-create, and option-delete, and route set_database_row_title through minimal UTF-16 incremental Y.Text splices so concurrent replica updates and untouched marks survive.
- Preserve existing text when splicing legacy Any::Object database cells, invalidate active cell editors on remote column-type changes, and update RelativePosition anchors before refreshing snapshots.
- Guard preedit_snapshot cloning behind active inline composition, clip horizontally scrolled table content to the inner table bounds, pad Kanban property cards cleanly, and show Calendar day-add buttons only on active/selected/today cells.
- Scope np-mobile.yml iOS dev opt-level=0 overrides to the 14 newly added rendering/layout crates while preserving opt-level=s on merman and typst crates so libaffine_ios_host.a stays under the 650 MB limit.
2026-11-29 13:44:01 +09:00
DarkSky 79c8fd8e77 feat(blocksuite): refactor database authoring for Yjs parity, overlay popovers, and unified inline input
- Write Y.Array for multi-select cells and validate real Node yjs decode roundtrip for 0/1/2 tags.
- Use incremental Y.Text splicing for title and rich-text cells to preserve marks and @reference embeds with zero writes on no-op blur/Enter, expanding LinkedPage titles across Table, Kanban, Calendar, and RecordSheet.
- Delete DatabaseInputBuffer and unify database cells and popovers on AnchoredInlineInput, shared InlineBoxPaint, and finish_inline_targets.
- Move ColumnMenu, SelectPicker, and Filter/Sort/Group panels into screen-space Overlays so block height remains invariant under scroll_x > 0.
- Patch Filter and Sort JSON losslessly with Web 0.27.5 operators, literal args, and cascading column-delete cleanup.
- Support Kanban card title editing, type-safe lane creation, title-less + New record focus, and zero-violation mobile 390x844 RecordSheet.
- Scope block-menu Turn into conversions strictly to explicit block selections without expanding hidden body blocks under collapsed headings, and pass explicit Cargo --config package opt-level overrides in iOS CI.
2026-11-29 12:26:36 +09:00
DarkSky 8f5b829a89 fix(blocksuite): omit edgeless-text font-size write, guard database value row id, and scope list renumber
- Omit the font-size control and `prop:fontSize` write/read path for `affine:edgeless-text` blocks to match the BlockSuite schema (`Omit<TextStyleProps, 'fontSize'>`) and delete the unused `font_size_override` field on `BlockFlow`.
- Check `$blocksuite:internal:native$` before unwrapping `cells.value` in `SliceBlock::properties_with_id_map` so database rows with block ID `"value"` preserve sibling row cells during duplication.
- Restrict `PageDocSession::reparent_block` list renumbering to numbered list items (`numbered_order.is_some()`) so moving bulleted, to-do, or toggle items preserves adjacent custom start numbers and splits numbered runs consistently.
- Preserve existing multi-block selection when opening the drag-handle menu, insert multi-block duplicates after the last selected block, remove the 1 ms `last_closed_block_menu` timestamp coupling, and disable dev-profile size optimization for heavy rendering crates in `iOS Thin Host` CI to keep cold builds within the 20-minute budget.
2026-11-29 11:43:02 +09:00
DarkSky 58b024f3b7 feat(blocksuite): tree drag-drop, block menu, and edgeless chrome parity
- 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.
2026-11-29 10:19:03 +09:00
DarkSky 0a6020f488 fix(editor,hosts,web): preserve concurrent links, wire typst web fonts, and refine mobile IME/theme/handles
- 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.
2026-11-29 10:00:03 +09:00
DarkSky 646d638354 fix(editor,hosts,web): resolve cold-start touch keyboard, link hit-testing, and collaborative unlink
- 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.
2026-11-29 07:35:58 +09:00
DarkSky 472b9aeab4 feat(editor): unify slash registry, format toolbar, link popup and mobile bottom slot 2026-11-29 06:44:16 +09:00
DarkSky 38a4a69d05 fix(playground): resolve live web embed, paste, panel, and narrow-table issues
- 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.
2026-11-29 06:44:16 +09:00
DarkSky 2612b7ec8a fix(editor,ui,doc,mobile): resolve real-corpus layout fidelity, legacy numeric cells, and touch cold-start keyboard 2026-11-29 05:35:31 +09:00
DarkSky 59af2bcbe1 fix(hosts,ci): wire edge-triggered show_soft_keyboard on iOS/Android and enable shared CI Cargo cache 2026-11-29 05:35:31 +09:00
DarkSky 8d9dc29d1d Merge Batch 6 R3 and T-Sel-iOS R3 (bc927e6ed8) into darksky/np/mobile 2026-11-29 05:35:24 +09:00
DarkSky bc927e6ed8 feat(ios-host): switch text selection to single-writer UITextInteraction and guard offline client IDs 2026-11-29 03:42:18 +09:00
DarkSky 00ece8f2e0 test(playground): remove noop reference clone in tests_b6_r2 2026-11-29 03:02:03 +09:00
DarkSky b547e83415 fix(playground,ci): use ToggleCollapsed in test and scope dev opt-level overrides to ios-sim 2026-11-29 02:16:48 +09:00
DarkSky bc0f4839ce fix(doc,editor,playground): enforce atomic surface delete, mode selection invariant, and spatial paste 2026-11-29 02:07:41 +09:00
DarkSky 9ed39ae02d ci(mobile): boot iOS Simulator after Cargo build and skip merman debug size-opt 2026-11-29 01:34:15 +09:00
DarkSky d61b1705a1 ci(mobile): pre-boot iOS Simulator in background and parallelize Swift host linking 2026-11-29 01:05:28 +09:00
DarkSky 92bca9f25b fix(doc,editor,playground): align desktop page, table, menu, and edgeless interactions
- Remove unselected root-title input fallback and the obsolete suppression flag so typing without an active selection never mutates the page title.
- Insert new headings after collapsed siblings on Enter, expand collapsed parents when indenting blocks into them, include hidden blocks in select-all block operations, and renumber following numbered list runs when an item converts out or is deleted.
- Support multi-block Tab/Shift+Tab indent and outdent, block-selection arrow/Shift+arrow navigation and batch conversion shortcuts, single-block Enter end focus, PageUp/PageDown, Mod+Enter block exit, and backtick/bracket selection wrapping.
- Consume desktop clicks inside database blocks without whole-block selection, allow inter-word spaces in slash queries, hide empty slash popovers, add Table/Equation/Database slash items, and sync @ linked-doc Tab and caret bounds.
- Add atomic multi-block drag-handle reordering, word and paragraph drag-selection extension in Page body and table cells, wide-table horizontal auto-reveal, and Shift+wheel horizontal scrolling.
- Protect Frame children from partial marquee deletion and preserve the last Page-visible note in Edgeless, defer double-click inline edit to drag-free mouse release, fix rotated resize and Shift constraints, auto-grow Shape labels, and add connector endpoint handles, port snapping, Alt+drag clone, Group/Ungroup, and Edgeless copy/cut.
2026-11-29 00:32:26 +09:00
DarkSky 0eff077e0d feat(doc,preview,editor,playground,mobile): add native previews, external embeds, TOC/DocInfo, table ops, and edgeless paste
- 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
2026-11-29 00:32:21 +09:00
DarkSky b7b44e921a fix(blocksuite,ui,mobile): resolve cross-platform editor, database, edgeless, and host IME regressions
- 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.
2026-11-28 23:34:29 +09:00
DarkSky 76d32341d9 feat(mobile,playground): wire cross-platform selection core, Android native handles/menus, and multi-MIME clipboard
- Add authoritative document-level touch selection geometry, endpoint anchors, UTF-16/preedit-aware table-cell queries, cross-block handle dragging, and multi-MIME Copy/Cut/Paste/Select All actions in PlaygroundView.
- Wire native Android teardrop selection handles, floating system ActionMode menu, and multi-MIME ClipboardManager integration (text/plain, text/html, text/markdown, application/x-blocksuite-snapshot) in AffineAndroidHost.
- Suppress GPU floating selection menus when native host selection UI is active while preserving scroll/edit dismissal invariants and single-arch arm64-v8a mobile CI checks.
2026-11-28 23:11:54 +09:00
DarkSky 044e710a8c feat(mobile): add touch interaction, mobile database views, and host frame scheduling
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.
2026-11-28 12:36:27 +09:00
DarkSky 03736fe260 fix(editor,playground,ui): unify IME recomposition, ContentScope, touch gestures, and table navigation 2026-11-28 07:30:44 +09:00
DarkSky 99589dc273 feat(editor,playground): fix page edit boundaries, dark frames, and edgeless inline editing 2026-11-28 07:17:35 +09:00
DarkSky 4e66722b44 feat(mobile): mount native GPU BlockSuite editor in iOS and Android hosts
- 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
2026-11-28 06:11:09 +09:00
DarkSky 6eb02b835b ci(native-playground): add backend and native-ui path filters and mobile merge-base 2026-11-28 04:43:42 +09:00
DarkSky 35017e4f7b feat(editor,playground): add core motion transitions, desktop scrollbar, and overlay context menu
Add scheduler-clock closed-form transitions for Edgeless zoom/fit controls (170ms), Edgeless shape subpanel slide-out (230ms), to-do checkbox radial pulse (240ms), and editing text caret blink (500ms half-period). Add a desktop Page-mode logical-end thin scrollbar (hidden below 640px and in mobile mode) and a GPU-drawn desktop overlay context menu with Copy, Cut, Paste (with shortcut fallback toast), and Open/Copy Link actions.
2026-11-28 03:10:33 +09:00
DarkSky f7150b2191 feat(blocksuite): add affine:database CRDT codec and Table/Kanban/Calendar views 2026-11-28 00:33:36 +09:00
DarkSky 3d7c480933 perf(preview,playground): drop unused wasm exports and serve validated web fonts statically
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.
2026-11-28 00:31:40 +09:00
DarkSky 09f6d432fd perf(frontend,preview): split preview svg-text/pdf features and per-target wasm profiles 2026-11-27 17:22:14 +09:00
DarkSky 05caa146a1 fix(editor): align code, table, paste, list collapse, CJK word selection, and edgeless authoring
- 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.
2026-11-27 16:31:07 +09:00
DarkSky 75662b139b feat(playground,editor): add edgeless mindmap, mobile read-only canvas, worker preview split, and 0.27.5 parity 2026-11-27 16:31:07 +09:00
DarkSky a6bb03e702 feat(editor): restore 0.27.5 mobile keyboard toolbar, native previews, and fold CRDT codecs 2026-11-27 08:18:25 +09:00
DarkSky 531da7466d feat(editor): add S3 rich blocks, live CRDT table cells, and mobile input
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.
2026-11-27 06:55:48 +09:00
DarkSky 65a2c9b097 refactor(mobile): remove duplicated logic across store and hosts
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.
2026-11-27 06:55:48 +09:00
DarkSky b21a21e30e fix(mobile): polish breadcrumb switcher, blank page placeholders, and delete confirmation sheet
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.
2026-11-27 06:55:48 +09:00
DarkSky b708c59897 feat(mobile-web): localize canvas selection menu and mirror RTL layout
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.
2026-11-27 06:55:48 +09:00
DarkSky 1bf1a4e31d feat(mobile): finish shell parity and layout fixes
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.
2026-11-27 06:55:48 +09:00
DarkSky e88ee8e9fe feat(web): add GPU recovery, canvas selection menu, lazy PDF client, and zero-3p-JS gate
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.
2026-11-27 06:55:48 +09:00