Commit Graph
11717 Commits
Author SHA1 Message Date
DarkSky bfd7eb9eaf fix(editor,playground,web,ios): polish block toolbars, lightbox gestures, Mermaid SVG sizing, and touch modality 2026-11-30 23:18:52 +09:00
DarkSky d6a4b05c96 perf(frontend,ui,preview): slim Wasm, native bundles, and Mermaid layout
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.
2026-11-30 10:29:44 +00:00
DarkSky 4b3c175aba perf(native-ui): optimize database sort, image cache, icons, and web host
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.
2026-11-30 18:59:52 +09:00
DarkSky c02056c82d feat(blocksuite): add inline popovers, block toolbars, and overlay polish
Add inline link and linked-doc 500ms hover popovers, dual-field text+link editing, and Inline/Card/Embed view conversion.

Extend the desktop format toolbar with inline equation, linked-doc creation, More submenu, and block-selection mounting.

Add block-level controls for code blocks (searchable language picker, line numbers, 8-line collapse), block/note LaTeX 2-step editing, image double-click lightbox, bookmark style toolbar, and callout 44px layout with emoji and 9-color toolbar.

Include targeted fixes:
- Flatten H4-H6 in touch Slash menus and hide scrolled-out desktop Slash preview cards.
- Allow Slash Copy in page_readonly mode.
- Preserve nested Y.Map background and readonly guard in Edgeless note slicer, guard locked mindmap descendants on delete, and skip dangling mindmap children.
- Consume click when dismissing active Calendar inline edit and restrict selected-day '+' visibility to touch form factors.
- Expand Page block_selection highlight to cover visible nested subtrees (skipping collapsed children) and align Move Up / Move Down icons in the block menu.
2026-11-30 18:18:41 +09:00
DarkSky 57f32a5b6a feat(web-host,server-http): harden canary dual-shell routing, SSR caching, and IDB v3 interop 2026-11-30 14:55:02 +09:00
DarkSky f21fa487cf feat(mobile): add atomic 0.27.5 share block ingest, deterministic probe lifecycle, and durable share inbox 2026-11-30 13:41:09 +09:00
DarkSky 9244320f20 feat(edgeless): complete element toolbar, brush panel, quick-connect, mindmap, presence and note-slicer
- Add incremental Y.Map entry mutations (apply_mindmap_children_delta / update_mindmap_children) so MindMap add-child, add-sibling, collapse, and subtree delete preserve the nested children Y.Map for concurrent Web/Native edits and encode layoutType, style, and connector mode as Float64 JS numbers.
- Replace silent fractional-index fallbacks with checked next_spatial_index / next_index_after / prev_index_before helpers across Edgeless authoring ops.
- Enforce edgeless/page readonly and element locked guards across element toolbar, reorder, MindMap, quick-connect (click and drag), align, group, inline edit, and note slicer; dismiss open popovers on canvas click, Escape (before clearing selection), and selection changes.
- Cascade MindMap subtree deletes (and full MindMap removal on root delete) in one atomic undo step and suppress Shape 4-way quick-connect arrows on MindMap member nodes.
- Insert sliced Notes immediately after the source Note in page.children, preserve themed {light, dark} backgrounds and prop:edgeless styles, trigger the Note slicer overlay strictly on inter-block gap hover, and remove the bare '-' slice shortcut.
- Render the compact Page reading-order badge only on selected Page Notes (pre-laid out during scene prep, eliminating per-frame paint layout_inline and mobile Frame title occlusion), cache decoded RoomAwareness payloads with page-scoped selectionV2 filtering, and clean up duplicate actions and dead code.
2026-11-30 13:20:22 +09:00
DarkSky 4976121f6a feat(editor,playground): refine multi-level tree DnD, handle quick-insert, and page-margin marquee
Complete multi-level Page tree drag-and-drop, gutter handle quick-insert, and margin marquee selection:
- Insert sibling paragraphs at index + 1 on '+' clicks (matching Web), expanding all covering collapsed ancestor headings via a shared monotonic-stack helper in the same undo step on '+' or sibling drop so inserted and dropped blocks stay visible.
- Compute `has_gutter_chevron` in block flow layout as the single source of truth so childless empty headings do not expose desktop or touch collapse chevrons.
- Align Tab reparenting with tree DnD via `is_valid_reparent_target` so Tab can indent into Callout blocks.
- Run edge auto-scroll once per frame without re-entrant render notifications, scaling smoothly past viewport edges up to 40 px/frame.
- Preserve far-margin single-click caret placement until pointer movement exceeds 6 px, and clear in-progress marquee selection on Escape.
- Preserve explicit custom numbered-list start orders while keeping upward drag renumbering intact.
- Truncate drag ghost labels by pixel width, keep Quote hover grabbers distinct from Quote borders, and verify with frame-stepping headless tests.
2026-11-30 13:09:25 +09:00
DarkSky 8c82e71b8d feat(editor): complete Slash commands, @ linked-doc menu, and table resize/axis controls
Enable Page-mode /frame (1600x900 non-overlapping under affine:surface with monotonic index and presentationIndex) and /mindmap (non-overlapping canvas placement, real mindmap + 4 shape nodes, ref_flavour = mindmap, single-step undo). Suppress the 800ms Slash preview card on touch form factors and narrow viewports so it never overlaps the Slash menu. Enforce readonly guards before trigger deletion (including /copy), clip table column resize grips to the visible table bounds when scrolled, and add deterministic per-client jitter to table row/column fractional order keys so concurrent peer inserts never collide. Align Slash Database order (Table/Calendar/Kanban), Web 0.27.5 descriptions, YYYY-MM-DD HH:MM Now output, calendar view date.startColumnId, 800ms one-shot preview timer wakeup, single-step undo for MoveUp/MoveDown/Duplicate, @ linked-doc Journal subtitles and CreateEdgeless wiring, and narrow 8px hover-only column resize drag with Row/Col axis menu dismissal.
2026-11-30 12:46:33 +09:00
DarkSky 2bf2e00e59 fix(database): pin scrolled table row grip, gate hidden calendar plus, and stabilize inline scroll 2026-11-30 11:46:26 +09:00
DarkSky d62eaa2aec fix(database): resolve inline edit overlap, row drop clip, and narrow view strip
Hide the underlying calendar chip label on the clicked week segment while its
inline title input is active, and create an empty-title day event ready for
in-place typing when clicking the calendar day header plus button.

Clip table row reorder drop lines strictly to the horizontal scroll grid area,
place the caret at the clicked character on single-click table title editing,
and carry single-source overflow view indices into the narrow desktop More
menu with toggle, Escape dismissal, and toolbar panel mutual exclusion.
2026-11-30 07:45:08 +09:00
DarkSky 1bf1ab7930 fix(doc,database): keep block appends O(1), deduplicate children in O(N), and preserve grouped lane order
- Keep tail block appends O(1) without scanning sys:children, unify child duplicate detection and healing in PageDocSession via O(N) HashSet passes, and run in-tx repair only when duplicates actually exist.
- Materialize missing groupProperties lane keys in display order before updating target manuallyCardSort so dragging into a non-first lane on a fresh or partial board never shifts lane order.
- Share filter_and_sort_view_rows across database rendering and grouped bucket resolution, and cap headless-linux-and-perf CI job timeout at 25 minutes.
2026-11-30 03:22:45 +09:00
DarkSky 924c48026b fix(database,edgeless): heal duplicate child slots, unify group buckets, and cap iOS staticlib
- Keep read_unknown_block raw while deduplicating PageSnapshot traversal and healing duplicated sys:children slots during structural mutations so logical indices align 1:1 with raw Y.Array slots.
- Store groupProperties as per-group Y.Map entries inside Y.Array and preserve unfiltered card order so concurrent different-group reorders and filtered drags retain hidden card positions.
- Share a single grouped bucket + manuallyCardSort pipeline across Kanban, grouped Table, and grouped DnD, handling multi-selected cross-lane drops onto a card's own multi-select twin.
- Allow non-proportional multi-selection resize across all 8 Edgeless handles unless Shift is held, and restore full-block centered image captions matching captioned-block-component.ts.
- Restore the 14-crate IOS_OPT0_PKGS set in np-mobile.yml so cold cacheless libaffine_ios_host.a stays below the 650 MB gate while running 6/6 Simulator smoke tests.
2026-11-30 02:23:37 +09:00
DarkSky 831b925e40 fix(database,edgeless): persist grouped card order, isolate row grip, and tune cold iOS CI
- Store Kanban and grouped Table card ordering in view groupProperties.manuallyCardSort with single-step Undo while keeping sys:children exclusively for ungrouped Table row moves.
- Deduplicate concurrent two-replica sys:children row moves, abort moves onto concurrently deleted anchors, and skip no-op drops.
- Defer ColumnMenu and Kanban cell hit activation to unpromoted pointer release so drag gestures never flash popovers, and move the Table row drag handle into the 24px left gutter outside the Title cell.
- Initialize synthetic title cells from row.title across click and Tab/Shift+Tab, support inline Calendar event rename, align left/right image captions, truncate zoomed-out Frame titles, and intersect multi-select Edgeless resize modes.
- Expand IOS_OPT0_PKGS to merman/typst/comemo crates and drop duplicate host lib test in np-mobile.yml so cold iOS Simulator builds finish well under 20 minutes.
2026-11-30 01:04:52 +09:00
DarkSky 2464632248 fix(playground): isolate multi-view picker ids and hidden-column drag order
Allocate media picker request identifiers from a process-global AtomicU64 counter.
Deduplicate desktop and web file pickers onto one request-bound callback path.
Keep direct PDF insertion independent from open media picker anchors.
Read picked desktop files through one bounded file handle.
Map visible table column drop targets past hidden view columns.
2026-11-29 23:08:13 +09:00
DarkSky 5a625a1601 feat(editor): add drag previews, drop slots, auto-scroll, and landing motion
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.
2026-11-29 22:32:33 +09:00
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