Commit Graph
11825 Commits
Author SHA1 Message Date
DarkSky f45bc95361 fix(desktop): use workspace tag definitions in search
Show current tag names and colors. Hide tags that the workspace deletes.
Filter documents by tag before scoring. Cache up to eight results per tag query.
Keep search row snapshot names in harness builds.

Before the first tag edit of a workspace writes its tag table, record the tags
of all its documents, including trashed documents.
2026-12-03 07:48:37 +09:00
DarkSky 3d7ff37287 perf(desktop): prepare search queries once and sync blobs by cursor
Search:
- Add PreparedQuery. It folds the query to lowercase one time per search.
- Reject a field with a fast substring check before the UTF-16 span scan.
- Keep the scores and the highlight spans the same as before.

Desktop:
- Build the directory from one visible document list.
- Move each blob cursor past the blobs that the editor already has.
- Remove the blob caches of removed workspaces.
- Use a numeric element ID for the tab close button.

Quick Search:
- Shape the input line at the 18 px heading size that the modal paints.
- Type the first key into the field when the focus moves to it.
2026-12-03 07:04:50 +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 70bb09d772 fix(desktop): route Escape through the Center Peek editor
Let the editor dismiss transient controls before Center Peek closes.
Restore source focus and clear routes to trashed documents.
2026-12-03 06:51:35 +09:00
DarkSky 78143d3d13 fix(desktop): sync link graph, cache outline, and hash dynamic IDs
Update outgoing document references and reverse LinkGraph edges together across CRDT updates, undo, trash transitions, and lazy hydration. Preserve on-demand hydration for trashed documents while keeping them out of active backlink edges.

Cache outline heading projections by workspace, document, and revision in both the outline rail and right sidebar inspector. Reuse the shared heading slice across body-only edits when headings stay identical.

Resolve inspector tag chip and option colors against the active light or dark theme tokens. Replace dynamic heading, tag, and link element IDs with hashed integer IDs while keeping harness snapshot strings behind `ui::snap_id!`.
2026-12-03 06:51:06 +09:00
DarkSky 2db0d21191 fix(desktop): unify journal selection and split settings modal
Align the desktop journals view with the document store contract so every entry picks the smallest document ID. Bind rendered journal title buttons to their drawn document ID and fall back to date lookup when absent. Replace dynamic date string IDs with NamedInteger IDs to remove dynamic date prefixes from Wasm data.

Check whether a journal exists for the current date directly on stored document entries. The topbar no longer collects the full journal vector per frame.

Split the desktop settings modal into pages and controls modules. Convert all four shadow color channels through Rgba.
2026-12-03 06:48:38 +09:00
DarkSky 9a594dc907 perf(desktop): draw only visible document rows
Measure the rows along the scroll path to keep wheel movement in pixels.
Keep the visible document in place when the list or its width changes.
2026-12-03 06:03:53 +09:00
DarkSky ea73ac3757 ci(frontend): speed up native verification
Use the Desktop leaf path to skip unrelated mobile jobs and the Metal render.
Check both production Wasm bundles for leaked snapshot prefixes.
Remove iOS host archives before cache save and cache the Kotlin compiler.
2026-12-03 06:01:03 +09:00
DarkSky e94ea95768 fix(database): skip unchanged view column edits
Use the same column projection for snapshots and writes.
2026-12-03 04:58:46 +09:00
DarkSky 9f97756eb9 fix(editor): guard Callout clicks and table previews
Reject clicks from an earlier opening of the Callout picker.
Use typed toolbar snapshot IDs.
Use the physical column count for table grow previews.
2026-12-03 04:35:54 +09:00
DarkSky fd636581e3 fix(database): preserve view edits and lane order
Skip writes when all entries for a column have the requested value.
Create the shared lane array with each new grouped view.
Keep the manual lane order when a user moves a card.
Merge duplicate view entries by key in one pass.
2026-12-03 04:11:36 +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 24ed5ec97f fix(editor): keep dynamic snapshot IDs out of production Wasm
Add `ui::SnapshotId` and the `ui::snap_id!` macro. Under `harness`, the
macro formats its arguments into the ID.

In other builds, `SnapshotId` has zero size. The macro type-checks its
arguments in a branch that never runs, so no ID text gets into the
binary.

`SharedString` gets `From<SnapshotId>`, so `snapshot` keeps its
signature and literal IDs need no change.

The toolbar icon button, the toolbar menu row, the context menu row,
the block menu row and the image lightbox control take a `SnapshotId`.
A caller that gives a plain string does not compile.

Remote cursors and selections, presence badges, the doc panel, the
record sheet and the block toolbars now build their dynamic IDs with
`ui::snap_id!` instead of `format!`.

`check-snapshot-prefixes.mjs` checks the prefixes of these IDs and
accepts more than one Wasm file.
2026-12-03 03:32:46 +09:00
DarkSky 8bce7234cc ci(workflows): cache CJK fonts, unify S1 probe builds, and use Git CLI fetch
Set `CARGO_NET_GIT_FETCH_WITH_CLI` to `true` in `native-playground.yml` and
`np-mobile.yml` so Cargo uses the git CLI instead of `libgit2` when GitHub
returns HTTP 103 Early Hints.

Update `s1-probes-bench` in `np-mobile.yml` to finish inside the 30 minute
limit.

1. Cache `NotoSansCJK-Regular.ttc` under a SHA-256 cache key, fetch the
   pinned commit bytes on cache misses, and verify the SHA-256 digest.

2. Override release LTO, codegen units, and debug info for test binaries
   while keeping `opt-level = 3`, and set the Rust cache key to `v2`.

3. Drop `--all-features` from `blocksuite-preview` so Linux skips
   `wasm-bindgen`.

4. Compile and run `s1_sqlite_probe` and `s1_probes` with the same unified
   package selection so Cargo does not recompile crates.

Model: Gemini 4 Carbon
Tests: node scripts/ci/check-l0-tier-a.mjs, ruby -ryaml
2026-12-03 03:30:26 +09:00
DarkSky 0f2537a376 fix(editor): trim table tails by physical position
Use physical row and column positions for trim previews and commits.
Keep cells shared with the remaining rows and columns.

Move table axis menus into their own module and use static swatch strings.
Keep fragments on pasted canvas links and share the mobile search offset helper.
2026-12-03 03:15:00 +09:00
DarkSky 00b3fd2337 fix(edgeless): validate label ancestry and bound hover allocations
Check every parent group and mind map before a label write.
Close the label editor when a format action finds a lock.
Resolve shallow group hovers without heap allocation.
Keep rotated quick connect ports and align canvas outlines.
2026-12-03 02:35:08 +09:00
DarkSky 4ea9100aee fix(edgeless): cache the first Page Note and check snapshot conditions
Store the first Page Note position when the header index rebuilds.
Read that position when the canvas draws the header.

Pass each required view path as a separate argument. Ignore Rust
comments and literals when matching test module braces. Reject
harness and mixed test conditions on file module declarations.
Keep the Wasm PDF module available to native unit tests.

Model: GPT-6.2 Sol.
Tests: Python, Cargo fmt, Clippy, and Cargo unit tests.
2026-12-03 02:19:52 +09:00
DarkSky 0d86f57d7c feat(desktop): restore the workspace sidebar
Keep workspace controls and primary navigation outside the scrolling tree.
Use the platform text input handler for sidebar names.
Keep collection entries as plain objects and merge concurrent edits by ID.
2026-12-03 01:54:46 +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 9cc5f74559 fix(desktop): restore search navigation and peek layout 2026-12-03 01:43:36 +09:00
DarkSky 2d9a38660b feat(desktop): add workbench route views
Build document overviews and journal calendars. Confirm permanent deletion
in Trash and keep shell shortcuts out of the confirmation dialog.
2026-12-03 01:38:18 +09:00
DarkSky b8fc823a0a perf(desktop): omit cloud sync from Web Desktop
Build the Web Desktop client with local workspace storage.
Keep cloud sync enabled by default and in native Desktop.
Require cloud sync for the cloud integration tests.

Model: codex/gpt-6.2-sol.
Tests: Rust unit tests.
2026-12-03 01:15:10 +09:00
DarkSky 21d8948c9d fix(database): end stale board drags and move one lane entry
Cancel the database drag, its previews and its settle motion when the
view loads another document, switches pages, or becomes read only. A
release after that writes nothing to the new page.

Move a Kanban lane inside the stored lane array. Remove and insert only
the moved entry, so peer edits to the card order and visibility of the
other lanes merge. Write a new lane array only when the view has no
lane array or keeps the lanes in a plain object.

Keep drag moves free of string copies. Write the drag state back in
place, and find the lane bounds in one pass.

Return the row count for Count All without a read of the cells. Collect
the values only for the median and fold the other numeric statistics.

Models: Claude Opus 5.5. Tests: cargo test (blocksuite-playground-doc,
blocksuite-editor, playground with the harness feature), cargo clippy,
bs-harness audit-states.
2026-12-03 01:04:52 +09:00
DarkSky cd590346b0 perf(editor): speed up table trim previews and hover
Compare small sets of axis IDs directly and use hash sets for larger sets.
Check the row ID once for each row in the table layout.
Move the preview code into a table paint module.
Reuse the table bounds to classify both pointer positions.

Model GPT-6.2 Sol.
Tests used the Rust test harness.
2026-12-03 01:00:20 +09:00
DarkSky 72fc54ddab feat(desktop): add grouped settings pages
Use a two-column settings dialog on desktop. Wrap the tabs at narrow
widths and scroll the settings content independently.

Show workspace storage and sync details. Remove draft diagnostics.
Show the shortcut labels for the host platform.

Store the default new document mode in the desktop app. Use modal
bounds to find the backdrop in the workbench tests.
2026-12-03 00:54:59 +09:00
DarkSky 9ed267770f fix(editor): close link, table, canvas, and code gaps
Validate the hovered link before paint and before Open or Copy.
Fit and scroll the table axis menu in short panes.
Keep Group available in either mixed selection order.
Keep the top of a rotated shape in place as its label grows.
Show a scrollbar thumb under overflowing code.

Model: GPT-6.2
Tests: Rust unit tests and Linux headless input replay.
2026-12-03 00:19:14 +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 73c4150dc4 perf(edgeless): reuse the note header index across frames
The Edgeless note header pass walked the root tree on each frame. It
rebuilt two maps, copied the page title and formatted element ids.

- Keep a NoteHeaderIndexCache in EdgelessCanvasState. The document
  epoch, the page id, the document revision and the snapshot
  allocation key the index. A frame without header candidates returns
  at once.

- Collect the Frame title pills only for an expanded Page Note header.
- Use static element id prefixes with a stable FNV-1a hash of the
  block id.

- Format snapshot ids with format_args at each snapshot call. Release
  builds then keep no snapshot id text. Remove the SNAPSHOT_IDS cfg!
  constant.
- Split chrome/note_header.rs into mod.rs and paint.rs.

The fold reads the note lock and the lock of each parent Group from the
current snapshot when it writes. A lock change after the last paint now
applies. A visited set stops the walk on a Group cycle.

check-invariants.sh now also rejects cfg! macros and multi-line cfg
predicates that name the harness feature or test.
2026-12-02 23:44:39 +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 5c0e0d5540 fix(edgeless): align canvas outlines and rotated connections
Keep the shape rotation and use its ports when a quick-connect click
adds a linked shape. Edit the new label in place.

Show a hover outline and keep the group border clear of the title.
Write label background colors to shared text.

Keep dropdown snapshot IDs at the call sites so the production Wasm omits them.
2026-12-02 23:07:49 +09:00
DarkSky 54e13dc0d2 ci(frontend): skip native jobs for web host changes
Use the changed paths to keep native jobs enabled for changes outside
the web host allowlist.
2026-12-02 22:55:16 +09:00
DarkSky 3b1ff2542f fix(editor): route canvas links and scope Callout icon edits
Use the workspace origin for canvas cards. Route card and Bookmark links through the editor.
Keep the Callout picker in its own pane and cancel preedit before it closes.
2026-12-02 22:39:12 +09:00
DarkSky 5d4122b17a perf(database): skip row band indexing for ordered cells
Merge cells into the latest Table band when their row IDs and positions
match. Append bands in visual order and build the bucket index only
when a cell goes back. Use linked buckets for cells that arrive out of
order.

Use a hash set to find rows to delete. Prepare search once per view.
Share the groups used by table layout and row selection. Check whether
a popover is open without laying it out. Remove default view state.
2026-12-02 22:37:30 +09:00
DarkSky 7515eebd76 fix(edgeless): correct the selection toolbar and color picker
Hide the toolbar during canvas pans. Keep More visible on narrow viewports and add Lock to its menu.

Show shared actions for mixed selections. Use the text color glyph for EdgelessText and show the standard color grid.
2026-12-02 22:30:47 +09:00
DarkSky 38b9e02f9e fix(editor): preserve desktop table controls and use V2 colors 2026-12-02 22:25:11 +09:00
DarkSky ab7ef04aa9 fix(editor): align database controls and embedded toolbars
Correct database calculations and show hints over empty footers.
Keep code tools in the canvas when a note nears the top edge.
Preserve linked documents when the desktop directory replays a create request.
2026-12-02 21:36:49 +09:00
DarkSky cb3e658654 fix(editor): show link popups in active notes
Use the note camera to hit inline links and document references.
Show Copy link to block in the code block More menu.
2026-12-02 21:22:12 +09:00
DarkSky 81870088c2 fix(desktop): restore workbench input and layout
Use the shaped Quick Search line for pointer input and IME bounds.
Support copy and cut in Quick Search.
Close the narrow sidebar drawer after navigation from Quick Search.
2026-12-02 20:52:49 +09:00
DarkSky 1282738ec1 feat(database): reorder Kanban lanes by dragging headers
Keep the full lane order, including the ungrouped lane.
Use the preview position when a peer reorders lanes during a drag.
Keep date values visible while the date picker owns edits.
Clear stale hover when the database search closes.
2026-12-02 20:46:58 +09:00
DarkSky 48b5f3005e perf(desktop): streamline local workspace writes and editor sync 2026-12-02 20:44:50 +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 65460a7f13 fix(editor): cancel stale code toolbar clicks 2026-12-02 19:26:22 +09:00
DarkSky 9def8ed791 fix(desktop): sync linked documents and media across panes
Use the workspace directory for mentions and persist documents created in the editor.
Share media bytes within each workspace so split panes and previews can display them.
Use the browser date for journals and link the Outline to heading blocks.
2026-12-02 18:47:28 +09:00
DarkSky dfc8446ba2 fix(editor): guard code menu actions and translate pane input bounds 2026-12-02 18:13:38 +09:00
DarkSky 155f30f3b8 fix(blocksuite): reduce table and toolbar overhead
Release cached table axes when a block leaves the document.
Read label marks from the shared text delta.
Reuse pending toolbar timers and keep the final frame.
Convert pasted string labels to shared text.
Share the transaction code for compound edits.
2026-12-02 18:13: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 f5002e1eda perf(database): borrow database data and delete rows in one pass
Build the Table row bands in one pass over the hits. Each row id links
its bands, so a cell finds its band in constant time.

Read the database data and the view state of a block by reference on
the hover, drag, key and click paths. These paths no longer copy the
whole database.

Delete many rows with one read of the block graph. Each run of adjacent
rows is removed with one array edit, in one undo step. Row selection
and the Kanban lane menu use this path.

Look up a fresh row id in the blocks map instead of a decoded page
snapshot.

Format and lay out the hidden fields of a record only while their
section is open.

Open record URLs through the shared editor URL handler. Build the
snapshot ids of record notes and Calendar resize handles lazily. Use
the accent foreground token for the today button.
2026-12-02 17:51:02 +09:00
DarkSky 77d76401a2 fix(editor): anchor Callout emoji candidates to the caret 2026-12-02 15:31:12 +09:00