mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
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.