Commit Graph
79 Commits
Author SHA1 Message Date
DarkSky 12bd597e81 fix(desktop): isolate workspace storage across deletion
Close the database if a blocked IndexedDB open succeeds after rejection.
2026-12-05 11:16:56 +09:00
DarkSky 350fec7b01 feat(desktop): add interactive workspace settings, properties tab, backup export, and template badge 2026-12-05 07:04:56 +09:00
DarkSky f150cb5604 fix(mobile,hosts): fix keyboard insets, native selection UI, and lifecycle retries
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.
2026-12-05 04:10:13 +09:00
DarkSky 2e383e1127 ci(np): trim headless harness build and align desktop export and search
Build only bs-harness and touch_dispatch in the headless Linux render step.
Expand the WebAssembly Data snapshot prefix check from 226 to 248 prefixes.
Extract ExportIcon, ExportToHtmlIcon, ExportToPngIcon, ExportToMarkdownIcon, ImportIcon, and PrinterIcon from @blocksuite/icons.
Use the official export icons in the header export menu and hide Export to PDF by default.
Remove document count labels and modifier split routing from Quick Search tag and collection rows.
2026-12-05 03:23:04 +09:00
DarkSky 7605b96e7b feat(hosts): mount MobileShellView in iOS and Android native runtimes
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.
2026-12-05 01:38:56 +09:00
DarkSky 25a5e8f9ca test(frontend): check Explorer snapshot IDs and limit wheel diagnostics
Check Explorer snapshot IDs in the Wasm data section.
Limit wheel diagnostics to one second. Keep the original error if diagnostics fail.
2026-12-04 21:55:43 +09:00
DarkSky 49f4e53cac feat(desktop): add sidebar section menus, empty states, and new-tab routing
Align AppSidebar section headers, row menus, and Web new-tab navigation
with AFFiNE 0.27.5:

- Add Favorites, Organize, Tags, Collections, and Others empty-state
  prompts and inline creation actions, plus right-click and three-dot
  menus across non-active document, tag, collection, and folder rows.
- Open document, tag, and collection "Open in new tab" actions as real
  browser tabs on Web Desktop (/desktop/?workspace=...&doc|tag|collection=...)
  and persist tag/collection view routes across reloads via SavedView
  and start.js URL sync.
2026-12-04 10:26:10 +09:00
DarkSky 564b31e49e feat(desktop): open copied block and element links across web and desktop
Align copied block and canvas element link navigation and table Markdown
export with AFFiNE 0.27.5:

- Parse and route Web `/desktop/?workspace=…&doc=…` links carrying
  `blockIds` or `elementIds` on cold start and live navigation, selecting
  all linked Page blocks in document order or centering and selecting
  linked Edgeless elements across frames.
- Export inline `@reference` page chips inside table cells as `[Title](url)`
  links during `Copy as Markdown`.
2026-12-04 09:24:31 +09:00
DarkSky 0bfbaf111c ci(frontend): Run harness-only tests and list iOS Simulators during the build 2026-12-04 02:28:30 +09:00
DarkSky c61a276d07 fix(frontend): Preserve host font configuration
Use default Serif fonts only with the default Desktop font set.
Bundle the Playground Serif fonts on native desktop targets.
2026-12-04 02:24:27 +09:00
DarkSky c24c39301f feat(desktop): apply editor fonts and stage presentations
Apply the editor font settings to split panes and Center Peek.
Save the font settings on Web Desktop and load the serif font assets.

Give full screen presentations the desktop viewport.
Restore the workbench when the presentation or its document changes.

Show tag names in the workbench. Skip writes for an in-place folder drop.
2026-12-03 23:42:07 +09:00
DarkSky 2b606566c4 fix(web): start readiness checks after navigation
Set a separate time limit for the first document request.
Use the same readiness deadline for the home and document routes.
Run each negative test in a separate context on one Chromium process.
2026-12-03 22:41:01 +09:00
DarkSky 6fcf448695 ci(ios): stop failed jobs and record slow startup stacks
Start both Swift links and Simulator boot after Cargo.
Stop the other tasks at the first failure and keep its exit code.
Record startup timings and give the smoke stack sample its own deadline.
Sign the Simulator smoke binary to allow host stack sampling.
Use a temporary storage directory for the smoke process.
2026-12-03 21:18:50 +09:00
DarkSky 8319361c3c feat(desktop): add sidebar drag, peek width, and share modes 2026-12-03 20:32:17 +09:00
DarkSky 44c504176f fix(web): Restore HTML preview wheel input under strict CSP
Move Desktop startup to a module and read fonts and workers from its manifest. Allow the HTML preview wheel bridge by hash on both hosts. Check the hash against the source and verify that Chromium returns wheel input to the canvas.
2026-12-03 15:26:07 +09:00
DarkSky 2866b3b7fa test(desktop): Run the persistence smoke test in CI
Compare the full set of document IDs after the Desktop reload.
Run the test with the optimized Wasm bundle and save its screenshots.

Model: GPT-6.2 Sol.
Checks: Yarn lint, Cargo tests, Python YAML, and Node.js gates.
2026-12-03 10:51:32 +09:00
DarkSky 3ec3d72fc5 fix(web): keep updates after a queued document delete
Find the last queued delete for each document. Discard failed updates
before that delete and keep updates that follow it.

Model used: GPT-6.2 Sol.
Tests: Node.js and Chromium.
2026-12-03 10:22:53 +09:00
DarkSky 16c509a356 test(desktop): verify document persistence after reload
Wait for title focus before the browser enters text. Read the stored
document mode, title, and paragraph from the V1 updates. Check the
browser click positions against the desktop layout.
2026-12-03 09:45:02 +09:00
DarkSky eb1f0c4985 fix(desktop): save media and document updates in one transaction
Save media with the document updates that refer to it. Read all stored
media of a workspace in one transaction when it has documents.

Release older bytes when a later write replaces the same blob. Confirm
the older write after all replacements commit. Keep document edits in
order during a quota pause and scan the queue only for blob writes.

Model used: GPT-6.2 Sol.
Tests: Node.js, Chromium, TypeScript, Oxlint, and Oxfmt.
2026-12-03 09:40:49 +09:00
DarkSky 53280c5db2 fix(ios): stop the cold WebContent race in the legacy storage probe
The iOS Simulator smoke test can fail with a probe timeout on a cold
GitHub runner. The first WKWebView of the process can wait more than
15 s for the WebContent XPC handshake.

- Increase the default navigation timeout of LegacyLocalStorageProbe
  from 15 s to 45 s. Increase the default evaluation timeout from 10 s
  to 20 s. Tests that inject a timeout scheduler do not use these values.
- In the 0.27.5 upgrade drill, run the real probe and the first
  bootstrap before the fail-closed timeout check. The first WKWebView
  of the process then completes the cold handshake and is not removed
  immediately.
- Run the fail-closed timeout check on a separate copy of the
  unmigrated Documents directory. Make sure that the legacy database
  bytes do not change.
2026-12-03 07:51:51 +09:00
DarkSky d9b776c34e fix(desktop): persist workspace media across reloads
Record media replacements in the order that editors report them.
Save media before the document updates that reference them.
Wait for all queued writes before an explicit flush completes.
Pause failed media writes until a new write or an explicit flush.
Restore live documents from Web Desktop URLs.
2026-12-03 06:56:39 +09:00
DarkSky d90463e975 fix(desktop): restore workbench navigation and preferences
Keep creation and theme preferences across browser restarts. Align the preview and inspector with the editor and add a page outline rail. Record recent visits across panes and tabs.
2026-12-03 03:50:45 +09:00
DarkSky 265c467d89 feat(desktop): add document headers to each pane
Move native tabs to the window header. Let readers rename, share, and
manage the document from each pane. Confirm before moving a page to Trash.

Keep split panes when the Web viewport narrows. Remove the split query
parameter when the last split closes.
2026-12-03 01:49:04 +09:00
DarkSky d5d9413eff ci(frontend): reduce native checks build time
Link the iOS host and smoke test before the simulator starts.
Log link times and the first UIKit calls.
Reuse the Linux harness from the workspace test build.
Optimize preview Wasm workers while Cargo builds the next target.

Model: GPT-6.2.
Tests: Node test runner, shell fixtures, and frontend invariants.
2026-12-03 00:03:30 +09:00
DarkSky 56aa369808 fix(web): limit IndexedDB retries when storage is full
Wait for more updates before an automatic replay if the last replay ran
out of space. Keep all pending updates in order. Replay at once after a
delete or an explicit retry.

Model: GPT-6.2 Sol
Tests: Node.js test runner and Chromium
2026-12-02 23:56:32 +09:00
DarkSky 8402e3345f perf(web): read desktop workspace frames in one transaction
Read each workspace in one IndexedDB transaction. Load all non-empty
frames for documents with at least one positive timestamp. Release the
initial frames after mount.
2026-12-02 23:20:04 +09:00
DarkSky a3a7496b4c perf(blocksuite): eliminate snapshot ID leaks and table/toolbar hot-path work
Remove harness snapshot ID literals from production Wasm Section 11 across 36 prefixes.
Extend `check-snapshot-prefixes.mjs` to lock those 36 prefixes and bare container IDs at zero.

- Clip table grow preview to visible viewport rows and columns in one pass.
- Defer page table cell focus label formatting behind lazy evaluation.
- Compare derived four-state table edge zone on pointer hover to skip center redraws.
- Reuse shared `toolbar_chrome` geometry constants and color tokens in edgeless chrome.
- Replace multi-pass selection scans and `rotate().transform_point()` math with single passes.
2026-12-02 20:36:12 +09:00
DarkSky 2cbee4060d fix(web): replay IndexedDB writes after quota recovery 2026-12-02 20:15:38 +09:00
DarkSky 05b5f3e21d fix(web): preserve post-delete writes when earlier IndexedDB ops retry
Let a committed delete supersede earlier failed operations on the same document.
Retry failed operations on other documents and preserve later updates.
2026-12-02 18:10:53 +09:00
DarkSky 445a1092e9 feat(desktop): keep Web Desktop workspaces in IndexedDB
Read and write each workspace through its IndexedDB v3 store.
Keep document edits and deletions in order across retries and reloads.
Seed empty workspaces under the startup lock and release it if a write
cannot start or the connection closes.

Wait for pending transactions and read the stored clocks before each
retry. Cancel queued retries when the connection closes. Compact a
document only when its snapshot and all source updates still match.
2026-12-02 15:10:57 +09:00
DarkSky 72af0e4117 ci(frontend): warm Chromium and add iOS smoke diagnostics
1. Warm Chromium before the browser tests in the js-room-coop and
   preview-wasm-workers jobs. Use a temporary profile and a 20-second
   timeout. If Chromium fails to start, continue to the tests.

2. Run the ios-device-check job in parallel with the ios-host job on
   macos-15. Check both ui and affine-ios-host for aarch64-apple-ios.
   Use standard Rust cache keys and keep only aarch64-apple-ios-sim in
   ios-host.

3. When the iOS smoke test fails, show the last two minutes of WebKit
   logs from the simulator. A 15-second alarm stops the log command.
   Exit with the status code from the smoke test.

4. Show the monotonic time and the step duration in milliseconds on each
   smoke test line. Flush stdout after each line.

5. In requireS3 and the unhandled error handler in
   IosHostS3SmokeTest.swift, call smokeLog and flush stderr before
   _exit(1). Keep the original stderr messages.
2026-12-02 13:27:44 +09:00
DarkSky 1678891fb5 ci(frontend): run Wasm and Linux checks in parallel
Reuse Cargo dependencies between tests and the harness build.
Use the iOS main run loop for the smoke tests.
Disable the GPU for the IndexedDB save test.
Record Chromium startup errors before cleanup.
2026-12-02 09:25:04 +09:00
DarkSky 1fb17ea47d fix(web): isolate pane embeds and cancel stale previews
Track HTML embeds by pane. Hide the embeds in a pane while its overlays are open.
Clear desktop pane and peek embeds on routes without documents.

Keep code preview requests pending until SVG decode completes.
Settle pending requests when their worker stops. Release Blob URLs when decode or worker startup fails.
2026-12-02 09:09:29 +09:00
DarkSky 624e987d43 feat(web): mount the desktop workbench with worker previews 2026-12-02 03:52:43 +09:00
DarkSky 4bcbca66cb perf(store): tighten blob liveness, sync queues, and share ingest
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.
2026-12-02 03:20:04 +09:00
DarkSky a83ea1e1a3 fix(preview): bound PDF wait eviction, native open tracking, and session cleanup
Retain failed PDF tombstones in `refresh_pdf_previews` only while a card or the viewer shows that source. This stops retry loops while shown and drops byte references once removed.

Track each active native PDF open by monotonic `open_id` and payload bytes in `DocTable`. Each `(scope_id, source_id)` targets at most one payload at a time. Switching to different bytes clears stale results and waits before cache lookups, cancelling unstarted opens with no remaining waiters. Two live scopes with colliding keys never evict each other. Notify `cv_idle` whenever job pruning or scope cleanup leaves the queue idle.

Harden `WasmPdfState` without changing its interface or keeping PDF byte buffers. Skip `counts` writes for out-of-range sizes. Clear `in_flight` on session close or open cancel. Close idle zero-page and first-open failures while keeping known counts on reopen failure. Verify `doc_id` ownership in `answer` and `admit`.

Track queued `waiters` per entry in `pdf-client.js` so concurrent opens over 64 documents never evict waiting entries. Trim idle known entries back to 64 as requests close or settle. Wake and reject waiters at once when bytes change or the client disposes. Keep transient worker fetch errors retryable with no negative error cache.
2026-12-01 23:46:24 +09:00
DarkSky 2144304032 perf(preview): keep PDF documents open in the worker by docId
The preview workers now use a linear-memory ABI with four exports:
`memory`, `prepare(len)`, `invoke()` and `output_ptr()`. The host writes
each request into worker memory in one copy and copies each response out in
one copy. The old ABI called an export for every 4 bytes in each direction.

Rust gives out only the addresses of its own buffers, so the crate keeps
`forbid(unsafe_code)`. Buffers larger than 1 MiB go back to the allocator
after each request.

The PDF worker keeps each parsed document under a `docId` that the host
assigns. The frames are `PDF_OPEN`, `PDF_RENDER` and `PDF_CLOSE`.

The bytes of a document go to the worker once per open, not once per page.
Page pixels come back as a compact RGBA buffer that the worker transfers.

The playground bridge has one session table in `wasm_pdf_state.rs`. It
opens at most 8 documents or 256 MiB of source bytes.

To make room, the table closes least recently used idle documents, but only
when that makes the new document fit. Empty documents and documents larger
than 256 MiB never go to the worker.

The table closes a document when the view clears the last scope that used
it, also when no page request claimed it yet. A reopen that fails after a
worker restart keeps the known page count.

The table restarts the worker before the IDs run out.

The bridge no longer keeps 16 copies of PDF bytes.

Each worker event listener ignores events from a replaced worker, so a late
error of an old worker cannot stop the new one. A crash answers each sent
request once, so the count of unanswered requests stays exact.

`pdf-client.js` uses the same protocol and keeps its public methods. It
keeps the same open budget and waits for room before it sends an open.

New bytes for a known `docKey` now open a new document and drop the old
page count and pages. Before, the client returned the old page count.

Four snapshot IDs of the PDF viewer and the attachment toolbar use
`format_args!`, so the production bundle has no copy of their prefixes. The
prefix gate now checks 14 prefixes.
2026-12-01 18:55:10 +09:00
DarkSky 4057255c50 feat(store,client): add DocSyncCoordinator per-doc sync state machine, content-checked pushed_clock, lazy unpushed subdocs, and sidecar share receipts 2026-12-01 17:13:20 +09:00
DarkSky 88343a5303 test(web,ci): verify legacy workspace readiness and guard wasm snapshot prefixes
Replace the interactive control check in the dual-shell verifier with a legacy workspace readiness check for @affine/mobile 0.27.5.

The verifier requires a valid workspace document route and a visible editor container with a mounted editor host.
It also requires the legacy shell cookie and no synthetic legacy shell object.
One page check covers these conditions, and it uses the same route parser as Node.
The verifier runs this page check again after each IndexedDB read and before it returns.
A shell that leaves the document route or unmounts the editor before it stores data fails.

The verifier loads yjs on demand so Node tests run without installed packages.
It reads only target document records from local IndexedDB and verifies root catalog and page block state.
Rows must agree with the nbstore schema, and the updates store must have its docId index.
When a fresh profile stops at the workspace home route, it reads one document ID from the catalog.
It then locks that workspace and document and navigates once to the document route.
A redirect to a different document fails the check.

The legacy CLI path now reopens the mounted document in a new tab of the same Chromium profile.
That tab blocks the welcome template, so the shell must load the workspace from IndexedDB.
The local workspace database count must stay the same.
A server that cannot serve the document route directly fails the check.
Limit Chromium browser test file concurrency to two in CI so three browser suites do not overload four runner CPUs during SwiftShader startup.

Add a zero-dependency Node script that scans WebAssembly Section 11 data segments for eleven harness snapshot ID prefixes.
The script also scans Rust sources under blocksuite/crates to confirm that every watched prefix stays active.
The source scan ignores test modules and their child modules.
Wire the source check into packages/frontend/scripts/check-invariants.sh.
Wire the binary check into .github/workflows/native-playground.yml after wasm-opt.
2026-12-01 14:42:28 +09:00
DarkSky ce8701adf9 feat(editor,playground,web): CenterPeek multi-page PDF viewer, async bounded staging, and Mermaid/Callout parity 2026-12-01 12:36:02 +09:00
DarkSky 6f193694ba fix(web): serialize legacy document saves and share Chromium cleanup
Save the page and its catalog in one IndexedDB transaction.
Use the Chromium harness in four browser checks.
Use one 45-second DevTools handshake for the SwiftShader smoke tests.
Open each new page with one DevTools request.
Stop the process group if the browser exits before the handshake.
Use a short temporary directory if the socket path exceeds the limit.

Check the legacy control on two consecutive frames.
Report startup errors for --legacy-dir.
Wait for the OAuth configuration and provider render on /sign-in.
Run the browser regression tests in CI.
2026-12-01 11:11:27 +09:00
DarkSky cfbfed3211 feat(store,client,android,edgeless): atomic draft persistence, share inbox orphan sweep, and lazy doc hydration 2026-12-01 10:05:23 +09:00
DarkSky 737fb5831d perf(frontend): enable Wasm SIMD, remove unused UI code, and add a browser lifecycle harness
Build the playground bundle and the four preview workers with `simd128`.
Pass the path remaps to the playground build. Pass `--enable-simd` to each `wasm-opt` call.

Remove the Taffy `grid` feature and the grid style API. No caller uses them.
Remove the unused wgpu `surface` pipeline and its shader entry points.
Remove the unused `SwipeMenu` component.
Remove the unused typography radii from the generated tokens.
Share one progress bar function between the database table and the kanban card.

Add `chromium-harness.mjs` for the browser verification scripts.
The harness owns the work directory and each process group that a script starts.
A normal end, a failed assertion, `SIGINT`, and `SIGTERM` stop each process group. Then the harness removes the directory.
Chromium keeps its temporary files in the work directory.

Use the harness in the two dual-shell verification scripts.
Correct the repository root path in `verify-canary-dual-shell-e2e.mjs` and `stage-canary-dual-shell.mjs`.

Record the SIMD worker sizes and the build flags in the preview `BENCHMARK.md`.
2026-12-01 04:24:06 +09:00
DarkSky 7dbb4efe41 perf(frontend): generate shadow tables and restore Mermaid ELK routing
Generate shadow tables from CSS tokens. Validate numeric ranges.
Preserve fractional color channels. Remove the runtime parser and cache.
Drop unused palette slices and typography fields.

Restore ELK layout. Test the geometry of nine directed edges.
Record the Wasm sizes. Remove unused frontend dependencies.
2026-11-30 16:25:12 +00:00
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