Commit Graph

16782 Commits

Author SHA1 Message Date
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
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
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
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
6acf799b68 fix: UI import of example graph is invalid
With #12313, we introduced relative paths which fail to create
assets and then cause invalid blocks that are unable to reference those
assets. Any user graphs that have relative paths like this will also
have their invalid blocks fixed
2026-02-13 15:03:24 -05:00
Tienson Qin
322a522be0 enhance: remove warning on multiple blocks 2026-02-13 05:20:51 +08:00
Tienson Qin
ed240ac01e fix: today journal created-at/updated-at keep updating 2026-02-13 05:04:08 +08:00
Tienson Qin
ea42e7595b fix: collapse button should be aligned right on mobile 2026-02-13 02:56:34 +08:00
Tienson Qin
0d0d8b7f32 bump to 2.0.1 2026-02-13 01:53:13 +08:00
Tienson Qin
daf7fc1475 enhance: p r to add emoji reaction 2026-02-12 23:03:28 +08:00
Tienson Qin
7bd7892635 Merge branch 'master' into feat/worker-sync 2026-02-12 22:54:32 +08:00
Tienson Qin
ae3fea3ab3 fix: don't compute refs for reactions 2026-02-12 22:52:25 +08:00
Tienson Qin
4a104ec0aa fix: error log 2026-02-12 20:33:00 +08:00
Tienson Qin
64b218896a code cleanup suggested by gabriel 2026-02-12 20:08:20 +08:00
Tienson Qin
fa141f5e08 fix: asset zip import 2026-02-12 18:45:11 +08:00
charlie
2394c72d5a enhance(ui): simplify plugin property check in sorting logic 2026-02-12 09:43:49 +08:00
Tienson Qin
5658b32153 fix: blocks selection bar can't be opened after visiting Graph view 2026-02-12 02:27:46 +08:00
Tienson Qin
adff65c6bc support unencrypted graph 2026-02-12 02:15:14 +08:00
Tienson Qin
16ceb36e2b fix: lint 2026-02-12 01:07:37 +08:00
Tienson Qin
5255e93a01 fix: assets not encrypted 2026-02-12 01:02:58 +08:00
Tienson Qin
1c8481c1ae remove outdated pull tests 2026-02-12 00:40:52 +08:00
Tienson Qin
8b7c5d5ac8 no need to keep alive 2026-02-11 21:25:13 +08:00
Tienson Qin
ac2c067f17 fix: tests 2026-02-11 20:58:57 +08:00
Tienson Qin
2341fb9b7f Merge branch 'master' into feat/worker-sync 2026-02-11 18:12:22 +08:00
Tienson Qin
a45a209d11 fix: lint 2026-02-11 18:08:09 +08:00
Tienson Qin
448d125f90 fix: assets import on web 2026-02-11 18:03:09 +08:00
megayu
40c9c86129 Fix issues related to importing Zotero (#12313)
* Fix import Zotero not recognized as asset

* Fix the inconsistency between imported Zotero label and actual filename

* Import support for zotero linked file like using zotfile

* Fix zotero highlighting block error after importing from file

* compatible with old configuration

* fix zotero picture highlight block does not consider as asset after importing

* Reconstructed to meet bb requirements

* empty datascript to avoid Conflicting upsert error after importing file to db graph

* use external-file-name instead of adding new property

* fix zotero link file can't open in asset page

* compatible with commit 33db791

* compatible with windows path & support zotero path can be relative for ci testing

* add zotero importing test

* remove prn log

* remove useless line

* Revert commit 45ebb9e

Future imports will be performed in the worker, will no longer encounter these issues

* refactor: update today page check to use async block retrieval

* Revert "refactor: update today page check to use async block retrieval"

This reverts commit 6750333df1.
2026-02-11 17:43:04 +08:00
Tienson Qin
84122a6171 fix: ensure worker state synced before asking for user rsa keys 2026-02-11 17:22:34 +08:00
charlie
f818ba0e59 enhance(ui): improve property sorting and display with plugin name 2026-02-11 15:42:20 +08:00
Tienson Qin
6637d79f78 fix: check sync on create graph dialog automatically creates graph 2026-02-11 15:40:55 +08:00
Tienson Qin
f95600e595 fix: emoji reaction sync 2026-02-11 15:29:25 +08:00
Tienson Qin
dbef84fbb4 fix: auto-reconnect after long sleep by adding ws health check 2026-02-11 15:15:40 +08:00
Tienson Qin
10a8e3c491 fix: integrate large graph fixes from ulcaefna
Discord link: https://discord.com/channels/725182569297215569/1400122537744007198/1470853605753094288

1. Added snapshot streaming endpoint on worker:

  - deps/db-sync/src/logseq/db_sync/worker/routes/sync.cljs
  - deps/db-sync/src/logseq/db_sync/worker/handler/sync.cljs
      - Added :sync/snapshot-stream
      - Increased snapshot-download-batch-size to 5000
      - Added schema-init fallback probing (kvs, tx_log, sync_meta)
      - Improved HTTP error responses with debug fields

2. Switched frontend graph download from R2 URL flow to direct stream:

  - src/main/frontend/handler/db_based/sync.cljs
      - Removed /snapshot/download + cleanup DELETE flow
      - Uses direct GET /snapshot/stream

3. Applied large-graph upload stability fixes:

  - src/main/frontend/worker/sync.cljs
      - upload-kvs-batch-size changed 2000 -> 500
      - Reworked offload-large-titles-in-datoms to avoid deep promise chains
      - Fixed upload progress message to use updated loaded count
  - src/main/frontend/worker/sync/crypt.cljs
      - Batched <encrypt-datoms in chunks of 5000
  - src/main/frontend/worker/sync/client_op.cljs
      - update-graph-uuid now retracts old :graph-uuid datoms before add

4. Applied worker-side error visibility and catch hardening:

  - deps/db-sync/src/logseq/db_sync/worker.cljs
  - deps/db-sync/src/logseq/db_sync/worker/dispatch.cljs
  - deps/db-sync/src/logseq/db_sync/worker/coerce.cljs
  - deps/db-sync/src/logseq/db_sync/worker/http.cljs
  - deps/db-sync/src/logseq/db_sync/worker/handler/index.cljs

5. Added/updated tests for these behaviors:
2026-02-11 14:41:26 +08:00
Tienson Qin
720432d247 fix: rename db ident is no longer safe in the new sync
Because Datascript doesn't support multiple db/idents for the same
entity.
2026-02-06 20:04:31 +08:00
Tienson Qin
a8ed1c88e6 Merge branch 'master' into feat/worker-sync 2026-02-06 19:14:20 +08:00
Ashutosh Singh
2cabb09248 new window fix (#12371) 2026-02-06 19:11:44 +08:00
Tienson Qin
54844ff95f no need to run db-sync tests in build CI
because it's already handled by its own dep ci test
2026-02-06 19:08:52 +08:00
Tienson Qin
cb57234881 fix: lint 2026-02-06 16:39:11 +08:00
Tienson Qin
8bbc0fede8 enhance: gzip download graph 2026-02-06 16:30:01 +08:00
Tienson Qin
0e95d09711 chore: remove unused code 2026-02-06 16:08:15 +08:00
Tienson Qin
e6b7fdd16e fix: duplicated online-users messages 2026-02-06 15:20:19 +08:00
Tienson Qin
94b2d5018d fix: no UX feedback when downloading a large graph from 'Graphs' screen 2026-02-06 15:07:09 +08:00
Tienson Qin
ee30d51c46 fix: show user doesn't exist error when inviting wrong email 2026-02-06 14:57:35 +08:00