Commit Graph

23218 Commits

Author SHA1 Message Date
Mega Yu
128ef6d53f refactor: simplify state->highlighted-item logic to improve performance 2026-02-27 14:43:37 +08:00
Mega Yu
89759449ef fix: remove unnecessary state resets in input handling 2026-02-27 14:29:59 +08:00
Mega Yu
c972967dc9 fix: simplify lazy-loading logic in cmdk component 2026-02-27 14:01:47 +08:00
Mega Yu
c3b1937a3d fix: lazy-visible keyboard scroll lag 2026-02-27 13:58:49 +08:00
Tienson Qin
939f58411e update new api endpoint 2026-02-27 11:23:28 +08:00
Gabriel Horner
8216e1a177 enhance: export-edn exports nested children of text-property values
Should address https://github.com/logseq/db-test/issues/756
2026-02-26 19:28:15 -05:00
Gabriel Horner
5b1bfeed2b fix: db lint
Also silence noisy successful db test which distracts from actual
failing tests
2026-02-26 12:21:56 -05:00
Gabriel Horner
bcacfd39f5 enhance: improve property values schema for build EDN 2026-02-26 12:02:11 -05:00
Gabriel Horner
3e1ab74ac1 chore: reuse block-property-value? helper in build 2026-02-26 11:40:09 -05:00
Tienson Qin
7d268fbd42 fix: lint 2026-02-26 22:57:25 +08:00
Tienson Qin
225cdac8ae disable invocation logs 2026-02-26 22:54:14 +08:00
Tienson Qin
5cb50683a8 fix: sync start now waits for DB worker initialization
before invoking worker APIs
2026-02-26 22:34:07 +08:00
Mega Yu
828219b274 fix: align bind count in search-blocks-aux for namespace matching 2026-02-26 22:20:04 +08:00
Tienson Qin
ba5e83c045 Updated apply-remote-tx! to keep one-shot batch apply while
preserving correctness.

Changes in sync.cljs (src/main/frontend/worker/sync.cljs):

- Added batch flatten pipeline that:
- remaps per-batch tempids to unique ids,
- preserves tx-id position remapping,
- tracks newly created identities (:block/uuid / :db/ident),
- rewrites cross-batch lookup refs to tempids for :db/add so later adds in
the same merged transact can target newly-created entities.
- apply-remote-tx! batched branch now calls the new flattener once (no doseq
per batch).
- Kept rebase safety in local-changes path (conflict filtering + remote-
duplicate cleanup after sanitize).
- Fixed negative temp-id handling in canonical-entity-id to avoid d/entity
errors.
2026-02-26 21:50:25 +08:00
Tienson Qin
08213ceeb9 test version of non-batch apply-remote-tx 2026-02-26 21:28:27 +08:00
Mega Yu
3e9e446135 Merge branch 'master' into enhance/search 2026-02-26 21:24:00 +08:00
Mega Yu
17b6aa4d65 fix: enhance filter clearing behavior and refresh results 2026-02-26 21:09:54 +08:00
Mega Yu
8cf5c0d13b fix: improve dialog close behavior in cmdk 2026-02-26 21:09:32 +08:00
Tienson Qin
dd4b38276a Reveal stale :block/title sync bug in tests 2026-02-26 21:04:02 +08:00
Tienson Qin
e775a8690d Revert "chore: add debug log"
This reverts commit f07f366a0d.
2026-02-26 19:13:23 +08:00
Tienson Qin
f07f366a0d chore: add debug log 2026-02-26 18:42:11 +08:00
Tienson Qin
21bed5acaa fix: startup dedupe guard for db-sync ws connect 2026-02-26 18:23:32 +08:00
Tienson Qin
1df918728b fix: ws latency 2026-02-26 17:42:25 +08:00
Tienson Qin
5f2ec2ff71 fix: no log for sync server 2026-02-26 14:54:42 +08:00
Mega Yu
af9b875fde Refactor scrolling behavior and enhance keyboard navigation 2026-02-26 14:17:44 +08:00
Tienson Qin
cdc1bc1d32 fix: get-bidirectional-properties perf
Root cause:
get-bidirectional-properties was recomputing
bidirectional-property-attr? for every [e a] match, repeatedly calling
d/entity for the same property attr keyword. That made cost scale with
datom count, not unique properties.

Fix:
Added per-call memoization for property-attr bidirectional checks
using a local volatile! cache, so each attr is resolved once per
invocation.
2026-02-26 14:13:31 +08:00
Tienson Qin
2e78d8be40 fix: ci tests 2026-02-26 13:09:00 +08:00
Tienson Qin
560ce3ca4f enhance: sync startup latency
1. Removes startup dependency on remote-graphs fetch for initial sync start.
2. Removes unnecessary restart churn.
3. Shaves trigger scheduling delay.
2026-02-26 12:15:28 +08:00
Tienson Qin
a1cbcf8aaa fix: mobile sync indicator latency 2026-02-26 11:51:56 +08:00
Tienson Qin
7e565aeeeb fix: reject stale pull resp 2026-02-26 11:35:55 +08:00
Tienson Qin
ae9a37c889 fix: sync missing :block/title 2026-02-26 10:32:25 +08:00
Gabriel Horner
b18056c910 enhance: export-edn exports property history
also ensure that it is idempotent
2026-02-25 14:52:16 -05:00
Tienson Qin
8d48e93ccb fix(sync): malformed remote tx can include a temp entity id
without :block/uuid.
2026-02-25 09:21:31 +08:00
Tienson Qin
bbec923a6c add e2e tests for afe21733a2 2026-02-25 08:32:24 +08:00
Tienson Qin
afe21733a2 fix(regression): drag and drop creates a blank asset 2026-02-25 08:20:23 +08:00
Tienson Qin
25d0a44681 fix: preserve the original :block/page ref when missing page details 2026-02-25 07:41:13 +08:00
Gabriel Horner
8b5407a91d fix: db and frontend lint 2026-02-24 15:05:18 -05:00
Gabriel Horner
f0f5911ca7 enhance: export-edn is idempotent for 3 more keys
For keys with non-ordered collections, use sets to consistently produce
idempotent values. Users can still author with vectors for these keys.
This affects :build/tags, :build/property-classes and
:build/class-extends.  Also remove any hacks around making their values
consistent across import->export cycles
2026-02-24 14:26:02 -05:00
Tienson Qin
e6e61e235a fix: cleanup to process all retracted entities (including pages)
related to https://github.com/logseq/db-test/issues/726
related to https://github.com/logseq/db-test/issues/752
2026-02-24 23:00:35 +08:00
Tienson Qin
3c9dee98da fix: invalid data when deleting closed value
fixes https://github.com/logseq/db-test/issues/729
2026-02-24 22:39:15 +08:00
Tienson Qin
99fb07586e fix: notify when no microphone permission 2026-02-24 21:57:30 +08:00
Tienson Qin
108098dd4d fix: show camera warning when no permission 2026-02-24 21:49:45 +08:00
jariji
c0bc5525ac Don't auto-export if user is typing 2026-02-24 17:42:20 +08:00
charlie
9994f7b70d fix(assets): set correct MIME type for Blob based on file extension https://github.com/logseq/db-test/issues/750 2026-02-24 14:57:45 +08:00
Gabriel Horner
97835eeeb7 enhance: export-edn :build/class-properties sorts properties
both when building and exporting
2026-02-23 17:04:29 -05:00
Gabriel Horner
cbf67bffc8 chore: bump cli 0.4.3 2026-02-23 10:05:36 -05:00
Gabriel Horner
b484b072a3 chore: bump cli startup time test 2026-02-20 13:55:21 -05:00
Gabriel Horner
5e43f89af2 enhance: export-edn supports :build/properties in property values
no matter how many levels deep a property value has properties
2026-02-20 13:49:10 -05:00
Gabriel Horner
991e38419a enhance: export edn handles assets
Addresses https://github.com/logseq/db-test/issues/656.
Should also address most :entity built in properties
2026-02-19 20:24:23 -05:00
Gabriel Horner
df70a52bba fix: two bug with using --roundtrip
Fails hard when db is invalid and doesn't respect
--catch-validation-errors
2026-02-19 20:24:23 -05:00