Commit Graph

17706 Commits

Author SHA1 Message Date
Gabriel Horner
865c8c690e refactor: convert import edn file to also use new :op 2025-10-16 09:43:32 -04:00
Gabriel Horner
487cbb2bc9 enhance: finish making import data form undo/redoable
Add current block support and error handling.
Also update most uses of build-import to call d/transact!  once
afterwards. Previously I think we needed separate transacts because of
new properties but that is no longer the case
2025-10-16 09:43:32 -04:00
Tienson Qin
fe619d3a92 fix: can't undo/redo imported edn data
also UI doesn't refresh
2025-10-16 09:43:32 -04:00
Gabriel Horner
b649887b15 enhance: add batch-import-edn op to make import-edn undo-able WIP 2025-10-16 09:43:32 -04:00
Tienson Qin
bad40347c2 Use underline for api names 2025-10-16 18:57:35 +08:00
Tienson Qin
c00924c03d fix: lint 2025-10-16 15:57:50 +08:00
Tienson Qin
1736691224 fix: get_all_pages api 2025-10-16 15:55:26 +08:00
Tienson Qin
bbb6d8aeb3 Add e2e tests for get_all_tags|properties|tag_objects 2025-10-16 14:29:08 +08:00
Tienson Qin
67f285be1e Merge branch 'master' into refactor/plugin-api-properties 2025-10-15 21:14:39 +08:00
Tienson Qin
659063534a fix(rtc): still update block attrs for properties/classes 2025-10-15 21:07:06 +08:00
Tienson Qin
f0e80e77ee fix(rtc): don't re-create page if property or tag exists already 2025-10-15 20:35:40 +08:00
Tienson Qin
6addb7ac8e fix: rtc tests 2025-10-15 18:52:59 +08:00
Tienson Qin
4be34fb50e fix: rtc tests 2025-10-15 18:27:53 +08:00
Tienson Qin
8d0c2f9887 fix: tests 2025-10-15 17:25:46 +08:00
Tienson Qin
6b12299520 fix: lint 2025-10-15 16:32:46 +08:00
Tienson Qin
999618a406 refactor: compute pipeline tx-data before d/transact! 2025-10-15 15:31:42 +08:00
Tienson Qin
df0bc2ca48 refactor: move commands to outliner dep 2025-10-14 21:51:19 +08:00
Tienson Qin
a63a5acc8b fix: rtc unit tests 2025-10-14 21:25:38 +08:00
Tienson Qin
8a4fa601d2 fix: build closed values 2025-10-14 16:51:34 +08:00
rcmerci
26879cd66a fix(rtc): db worker block when recv invalid ws messages 2025-10-13 23:56:16 +08:00
Tienson Qin
b538fe2571 enhance: run db validate before writes 2025-10-13 22:57:21 +08:00
Tienson Qin
7ed7fb4f31 enhance: prefer ldb/transact! than d/transact! 2025-10-13 19:03:11 +08:00
Tienson Qin
787372c174 add create tag test 2025-10-13 16:55:04 +08:00
Tienson Qin
a92f2865d2 add more property-related tests 2025-10-13 16:33:09 +08:00
Tienson Qin
6871463d26 fix: plugins api e2e tests 2025-10-13 14:14:21 +08:00
Tienson Qin
3abf1475c0 add property-upsert-test 2025-10-11 19:27:13 +08:00
Tienson Qin
131a45a40b Merge branch 'master' into refactor/plugin-api-properties 2025-10-11 18:30:16 +08:00
Tienson Qin
814707054b fix: reload app only on mobile 2025-10-11 18:29:48 +08:00
Tienson Qin
52a736922e fix(mobile): quit quick add when clicking a block 2025-10-11 18:20:42 +08:00
Tienson Qin
335c3f06e8 fix: don't throw error for :notification errors 2025-10-11 16:35:56 +08:00
Tienson Qin
4e5237e82a fix(mobile): reload web app if old db worker is still running
when switching back to the app.
2025-10-11 16:11:35 +08:00
Tienson Qin
4cc44a5ac9 fix: e2e tests 2025-10-10 18:31:35 +08:00
Tienson Qin
dbd15f7ed4 enhance: pre-validate when setting block property values 2025-10-10 16:20:53 +08:00
Tienson Qin
6e5399bf47 fix: lint and append_block_in_page 2025-10-10 14:08:03 +08:00
Tienson Qin
15de4a8b2d refactor: separate api into multiple namespaces 2025-10-09 16:23:51 +08:00
Tienson Qin
20f8f0fa80 enhance: get_tag_objects support either block/uuid or db ident 2025-10-09 14:26:43 +08:00
Tienson Qin
698cb36972 argument check 2025-10-09 14:19:51 +08:00
Tienson Qin
d8c84ae4c7 fix(plugins): get_property 2025-10-09 14:18:49 +08:00
Tienson Qin
d4f7bf22d9 Merge branch 'master' into refactor/plugin-api-properties 2025-10-09 12:28:54 +08:00
Tienson Qin
4800ed2ec6 Add more apis for db graphs
1. get_all_tags
2. get_all_properties
3. get_tag_objects
2025-10-07 22:16:57 +08:00
Tienson Qin
3cc530a16f refactor(plugins): separate file graph apis 2025-10-07 21:26:23 +08:00
Tienson Qin
3fa1c5c9b8 fix(plugins): prepend block 2025-10-07 20:42:50 +08:00
Tienson Qin
f330f11ef8 refactor(plugins): use <get-block when possible 2025-10-07 20:16:19 +08:00
rcmerci
1747e3f1d0 fix: properties stable sort, normalize :block/order of properties
1. When sorting properties, consider cases where values are nil or blocks/orders are identical.
2. If block/order are nil or duplicated in sorted-properties, recalculate and transact them
2025-10-07 02:43:57 -07:00
Tienson Qin
b4c83a7f6a fix(plugin): get_page_linked_references
fixes https://github.com/logseq/db-test/issues/498
2025-10-07 17:30:39 +08:00
Tienson Qin
ac53f76c2d fix: lint 2025-10-07 12:59:23 +08:00
Tienson Qin
df48615e78 refactor: separate db-related fns to logseq.db.api 2025-10-07 12:39:08 +08:00
Tienson Qin
87fc95eb4a fix(api): insert_batch_block support properties
related to https://github.com/logseq/db-test/issues/476
2025-10-06 16:07:24 +08:00
Tienson Qin
e001e12c1f fix(api): insert_batch_block target doesn't support page uuid 2025-10-06 15:45:40 +08:00
Tienson Qin
d2acb49b56 no need to calculate block/refs when pasting blocks 2025-10-06 15:02:16 +08:00