Commit Graph

3732 Commits

Author SHA1 Message Date
Gabriel Horner
2e8d7c6303 fix: bump nbb-logseq to include datascript fix 2026-03-12 10:21:54 -04:00
Tienson Qin
81d1ded924 fix(sync): gate rtc until snapshot upload finishes 2026-03-12 20:00:29 +08:00
Tienson Qin
f538491096 chore: reduce test noise and infer warnings 2026-03-12 17:51:23 +08:00
Tienson Qin
80b48b7b86 enhance(rtc): improve snapshot import progress 2026-03-12 17:51:23 +08:00
Charlie
1b0db68098 enhance(ux): align for the image asset block container (#12425)
* feat(asset): add alignment options for images
* enhance(ux): select block for the action of double click in the image asset container
* enhance(asset): change alignment property type from string to keyword and normalize alignment handling
2026-03-12 11:18:51 +08:00
Tienson Qin
7386eec6db fix(db-sync): server shouldn't delete addrs 2026-03-12 08:28:38 +08:00
Tienson Qin
5d602c9d58 fix(db-sync): drop stale lookup-ref tx datoms 2026-03-12 08:18:52 +08:00
Gabriel Horner
ae003f1469 fix: clean up template property handling
When new built-in properties are supported in exporter, all-built-in-names
and file-built-in-property-names should be updated. No need
to handle block/properties-order and block/properties-text-values
as those are ignored
2026-03-11 15:44:12 -04:00
Gabriel Horner
fdf1a8f8cc fix: imported Template blocks
Template blocks were being copied instead of updated in place. Would
feel buggy to user as Template blocks would show up twice in search and
would not be where they had defined them
2026-03-11 15:44:12 -04:00
Mega Yu
df5fb72ed9 fix lint Shadowed var 2026-03-11 15:44:12 -04:00
Mega Yu
371b1d5301 feat(exporter): support template import 2026-03-11 15:44:12 -04:00
Mega Yu
935673a860 update path handling in exporter tests to make it compatible with Windows path 2026-03-11 15:44:12 -04:00
Gabriel Horner
5f7885dff5 fix: outdated docs and misc cleanup
Also added the new option to the import CLI,
improved tests that only test one file to only import 1 file
and cleaned up some hard to read code
2026-03-11 15:44:12 -04:00
Mega Yu
7522a87939 skip heavier parsing if code fences in the title
add split-title-by-code-fences test
2026-03-11 15:44:12 -04:00
Mega Yu
304bc7c9af add trim to the lang in the code snippet 2026-03-11 15:44:12 -04:00
megayu
d8b85171e9 add guard against missing/blank args of cards macro
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-11 15:44:12 -04:00
Mega Yu
ecad45531d feat: add support for Template, Math blocks and Cards in exporter 2026-03-11 15:44:12 -04:00
Mega Yu
309070fda0 fix typo 2026-03-11 15:44:12 -04:00
Mega Yu
e2f98a1507 standalone code blocks and tag them in-place during exporting 2026-03-11 15:44:12 -04:00
Mega Yu
1c351aebff feat: add code snippet extraction functionality in exporter and UI options 2026-03-11 15:44:12 -04:00
Tienson Qin
83a716f907 chore: bump datascript 2026-03-11 14:49:12 +08:00
Tienson Qin
a092470392 enhance: copy as/export add open blocks only 2026-03-05 18:23:42 +08:00
Tienson Qin
0055e8128c add d1 sql table indexes 2026-03-04 11:18:58 +08:00
Tienson Qin
8f923a911d Revert "client hello now sends since"
This reverts commit 2799a57074.
2026-03-03 22:37:30 +08:00
Tienson Qin
2799a57074 client hello now sends since 2026-03-03 20:52:44 +08:00
charlie
e203d0465c fix(ui): incorrect sticky position for the table header 2026-03-02 16:36:11 +08:00
Tienson Qin
b0ba993e0c fix: can't cut-paste blocks to empty target 2026-02-27 14:46:43 +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
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
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
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
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
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
Gabriel Horner
3e1745dca7 chore: DRY up export tests with new test fn 2026-02-18 15:23:41 -05:00
Gabriel Horner
16beb18c92 fix: export tests with large graph have duplicate built-in pages
Fixed the setup of these tests and then was able to confirm that
built-in pages are idempotent with import-export process. Also fixed
related docstrings
2026-02-18 15:23:41 -05:00