Commit Graph

3347 Commits

Author SHA1 Message Date
Tienson Qin
81cbc1e701 fix: pages don't have #Page tag when importing from markdown files
related to https://github.com/logseq/db-test/issues/641
2025-12-15 14:49:17 +08:00
Gabriel Horner
a4d3bd4d93 fix(cli): CLI can't run in CI envs
For now just downgrade desktop check to warning. Decided
against CI flag since that requires more setup for all
2025-12-12 11:14:11 -05:00
Gabriel Horner
068dbf266b fix(dev): add js dev dep to db
so that CLI commands can be run from deps/db.
This is especially useful for developing and debugging deps/db based CLI
commands
2025-12-12 10:28:24 -05:00
Gabriel Horner
ef96a8d031 chore: remove db scripts made redundant by CLI 2025-12-12 10:17:12 -05:00
Gabriel Horner
529be0496c fix: build and export of property values
for a :many property that has additional attributes
e.g. :build/tags
Another possible fix for https://github.com/logseq/db-test/issues/636
2025-12-11 14:46:21 -05:00
Tienson Qin
2b80c5a04d fix: able to make "Quick add" page invalid
fixes https://github.com/logseq/db-test/issues/603
2025-12-11 11:21:14 +08:00
Gabriel Horner
86023329c5 fix: export of property values for :many property
Caught by failing properties test :)
2025-12-10 17:55:59 -05:00
Gabriel Horner
b696a84cac fix: export of property value blocks doesn't
keep its uuid when it's referenced as a property value.
Noticed this with a graph from Tienson where a property value had a
view
2025-12-10 15:46:34 -05:00
Gabriel Horner
1effbdfad7 fix: referenced property value blocks not exported
with their uuid. Possibly affecting
https://github.com/logseq/db-test/issues/636
2025-12-10 15:46:34 -05:00
rcmerci
9f6cef29a1 enhance: add :error/path to malli-schema 2025-12-11 02:44:01 +08:00
Tienson Qin
57a012bcc1 rename external-src-to-external-url
also fixed the issue and external audio not rendered
2025-12-10 15:52:02 +08:00
Gabriel Horner
73f8dfc421 chore: mv db tests to correct project
Also tweak test so that errors aren't printed confusingly when tests
pass
2025-12-09 11:16:39 -05:00
Tienson Qin
8f4a6d962b chore: remove silkhq components 2025-12-09 20:53:38 +08:00
Tienson Qin
f594e2034f fix(rtc): batch store and validate db (#12249)
* fix(rtc): batch store and validate db

* fix: logseq.db/transact! shouldn't distinct tx-data

since move-op include 2 steps:
1. insert-block
2. update-attrs

This results in db invalid after step 1.

* refactor: add transact-with-temp-conn!

* bump nbb-logseq and add tests for ldb/transact* fns

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
2025-12-09 20:47:37 +08:00
Charlie
ef211a5285 enhance(pdf): assets related improvements (#12244) 2025-12-09 09:19:06 +08:00
Gabriel Horner
a5875420d1 fix: property value blocks with uuid
don't generate their uuids or their tags correctly.
This should've been handled in ad64632c1b.
Related to https://github.com/logseq/db-test/issues/636
2025-12-08 17:41:25 -05:00
Gabriel Horner
1fe486542a fix: some validation errors fail to pretty print
with error 'RangeError: Maximum call stack size exceeded'.
As reported by Danzu for https://github.com/logseq/db-test/issues/636
2025-12-08 14:01:19 -05:00
Tienson Qin
4209fb4cba enhance: add errors 2025-12-08 13:40:12 +08:00
rcmerci
285eb612a1 fix(rtc): fix assets-sync-loop stopped, fix read-asset err behaviour
- ensure rtc-loop stops when assets-sync-loop stopped
- ensure read-file/read-file-raw have same behaviour on web and electron
- handle exceptions between ui-thread <-> worker-thread
- ignore upload-asset if not exist at local
- ignore download-asset if not exist at remote
2025-12-05 20:49:00 +08:00
Gabriel Horner
deaed7d305 fix(cli): validate shouldn't consider some :block.temp/* attributes
Encountered this with a graph in
https://github.com/logseq/db-test/issues/636 and a previous issue
2025-12-04 11:38:27 -05:00
Gabriel Horner
07a0feb856 enhance(cli): Add validate option to export-edn command
Useful for sanity checking exports and dev
2025-12-04 10:30:56 -05:00
Gabriel Horner
8fc56bfaa3 refactor: Update importer to use validate-local-db
Also update validation in DB scripts:
* replace alternative validate-db impl with standard CLI one
* Add validation to import script
* Choose to decouple other DB scripts from validate-db as it may go away
  later
2025-12-04 10:30:56 -05:00
Gabriel Horner
c8f99d1ff3 refactor: make CLI and testing validation consistent
Both have needs that are more for local graphs
2025-12-04 10:30:56 -05:00
Gabriel Horner
3219b827e6 fix: import of existing pages preserves properties and tags
with :build-existing-tx? option. Makes behavior consistent with blocks.
This also fixes built-in pages that weren't re-importing correctly
w/ modified properties
2025-12-03 15:30:54 -05:00
Gabriel Horner
ef68e19b32 fix page export when blocks reference each other
Fixes https://github.com/logseq/db-test/issues/571
2025-12-02 19:22:54 -05:00
Gabriel Horner
134dc0f2a8 enhance: validate export EDN for most export types
and error explicitly if they can't import. This is much better
for the user so they aren't finding out later that EDN is invalid
on import. Added both to the export menu and to export EDN commands that
aren't graph-wide. Related to
https://github.com/logseq/db-test/issues/549
2025-12-02 13:50:09 -05:00
Gabriel Horner
f8064253a2 fix: remove misplaced ignore 2025-12-02 10:11:11 -05:00
Tienson Qin
7ebd89a952 Merge branch 'master' into enhance/ios-native-navigation 2025-11-27 09:53:36 +08:00
Gabriel Horner
22dbcfb2d6 fix: EDN export of class page
Should fix case described in
https://github.com/logseq/db-test/issues/549.
Still need to QA property page export
2025-11-26 12:24:03 -05:00
Tienson Qin
05ba914a42 Merge branch 'master' into enhance/ios-native-navigation 2025-11-26 23:12:10 +08:00
Gabriel Horner
6b5e25bcf7 chore(cli): Bump cli to 0.4.1 2025-11-26 09:32:17 -05:00
Gabriel Horner
9565d6eeaf chore(cli): tweak new validate option to be more descriptive
Thanks to @hdansou for the feedback
2025-11-26 09:26:45 -05:00
Tienson Qin
38baa56286 fix: lint 2025-11-26 18:36:16 +08:00
Tienson Qin
357c8f0667 Merge branch 'master' into enhance/ios-native-navigation 2025-11-26 16:18:54 +08:00
Gabriel Horner
0f71352103 fix(cli): append -a not appending
A possible fix for https://github.com/logseq/db-test/issues/615.
Looks like regression from api refactoring
2025-11-25 21:51:21 -05:00
Gabriel Horner
4f5f68d0ab fix(cli): import-edn of in-app graph hangs
for unexpected transact error. Encountered this while repro-ing
https://github.com/logseq/db-test/issues/549. Also fixes UI not
displaying any notification
2025-11-25 16:24:29 -05:00
Tienson Qin
73d4ee7caa Merge branch 'master' into enhance/ios-native-navigation 2025-11-24 22:36:50 +08:00
Tienson Qin
08ce89f248 Rename tab to End-to-end encryption 2025-11-24 11:40:18 +08:00
Tienson Qin
e6090dc4c5 enhance(ux): show current password input
also enables toggle view password
2025-11-24 11:40:18 +08:00
Tienson Qin
4c0708013c fix: recursive calls to dialog :on-close 2025-11-24 11:40:18 +08:00
rcmerci
e12a42eb49 feat(rtc,e2ee): add e2ee settings 2025-11-24 11:40:18 +08:00
rcmerci
bdf5d66f80 enhance(rtc,e2ee): make it compatible with unencrypted graphs 2025-11-24 11:40:18 +08:00
rcmerci
d472efc039 enhance(rtc,e2ee): remove unused deprecated code 2025-11-24 11:40:18 +08:00
rcmerci
50d93539c9 feat(rtc): encrypt data for full-graph-upload 2025-11-24 11:40:18 +08:00
rcmerci
52ab12b9a3 feat(rtc,e2ee,wip): add ns frontend.worker.rtc.encrypt 2025-11-24 11:40:18 +08:00
Gabriel Horner
5153b0ba83 chore: add dev instructions to build+install CLI locally 2025-11-21 10:21:51 -05:00
Gabriel Horner
36c361af86 enhance(cli): Add option to validate cmd to relax
closed validation of entity maps. Users probably won't care about this
as much
2025-11-21 10:11:46 -05:00
charlie
49407d561a refactor(assets): rename local-asset? to local-relative-asset? and update references 2025-11-21 18:02:06 +08:00
Gabriel Horner
99636a2bac chore(cli): bump CLI version for release 2025-11-20 15:13:11 -05:00
Gabriel Horner
cb039a615d chore(cli): Prep for cli release
Also tweak readme and list command desc
2025-11-20 15:04:44 -05:00