Commit Graph

23070 Commits

Author SHA1 Message Date
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
c52349dae4 fix: fastlane version number 2026-02-13 02:00:43 +08:00
Tienson Qin
0d0d8b7f32 bump to 2.0.1 2026-02-13 01:53:13 +08:00
Tienson Qin
b07996f5f7 Revert "update ios bundle version"
This reverts commit de44fad853.
2026-02-13 01:51:47 +08:00
Tienson Qin
de44fad853 update ios bundle version 2026-02-13 01:37:02 +08:00
Tienson Qin
75ff633380 Merge pull request #12315 from logseq/feat/worker-sync
Sync with Cloudflare DO
2026-02-12 23:06:38 +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
a895e33aeb fix: reaction validate 2026-02-12 22:50:32 +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
084b5193c3 fix: sync doesn't work on node adapter 2026-02-12 19:31:24 +08:00
Tienson Qin
fa141f5e08 fix: asset zip import 2026-02-12 18:45:11 +08:00
Tienson Qin
58a44bfd0b fix gradlew.bat 2026-02-12 18:38:50 +08:00
charlie
2394c72d5a enhance(ui): simplify plugin property check in sorting logic 2026-02-12 09:43:49 +08:00
Tienson Qin
7fce43367a Normalize line endings via .gitattributes 2026-02-12 04:58:44 +08:00
Gabriel Horner
0d1b997fa9 fix: reaction schema results in invalid nodes 2026-02-11 15:07:00 -05: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
603489e379 Merge branch 'master' into feat/worker-sync 2026-02-12 00:43:42 +08:00
Tienson Qin
1c8481c1ae remove outdated pull tests 2026-02-12 00:40:52 +08:00
Gabriel Horner
e5c0cd036b fix: graph-parser cljs tests 2026-02-11 11:36:32 -05:00
Tienson Qin
1e51758b8d fix: e2e tests 2026-02-12 00:34:14 +08:00
Gabriel Horner
e7b5c9a6b6 fix: CLI import results in invalid nodes
Had to add <get-file-stat w/ changes in #12313
2026-02-11 11:30:58 -05:00
Tienson Qin
8b7c5d5ac8 no need to keep alive 2026-02-11 21:25:13 +08:00
Tienson Qin
5d515a8e28 fix: don't throw error for exp/iss not found 2026-02-11 21:11:04 +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
Gabriel Horner
4cc8ef3ce4 fix: importing property value that changes
from :date to :node. Should fix
https://github.com/logseq/db-test/issues/748
2026-02-10 14:10:04 -05:00
Gabriel Horner
cd7c1ef50e enhance(dev): add linters for db-sync
Fix minor kondo errors. Also removed obvious dead code found by carve linter
2026-02-09 12:25:50 -05:00
Gabriel Horner
8bf63e9715 chore: docs on running wrangler locally 2026-02-09 11:31:41 -05: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