Commit Graph

1926 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
f538491096 chore: reduce test noise and infer warnings 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
83a716f907 chore: bump datascript 2026-03-11 14:49:12 +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
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
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
Gabriel Horner
f28e001b5a enhance: ensure export EDN is idempotent across import and export
An EDN export should consistently produce the same EDN when imported
into a new graph and re-exported. This adds initial fn, cli option and
test to ensure this. There are some known TODOs. diff-graphs script was
removed as it was being used as a subset of the workflow provided by the
--roundtrip option
2026-02-18 15:23:41 -05:00
Gabriel Horner
1ff8a12d35 fix: export-edn shouldn't add empty :build/properties
This results in exports that aren't repeatable across exports a.k.a. roundtripable
2026-02-17 16:27:24 -05:00
Gabriel Horner
3d88cd1fd6 fix: import of multi word tags
Also fixes quirky editor bug for inline multi word tags. Both bugs
reported in https://github.com/logseq/db-test/issues/724
2026-02-16 14:35:53 -05:00
Tienson Qin
a895e33aeb fix: reaction validate 2026-02-12 22:50:32 +08:00
Tienson Qin
64b218896a code cleanup suggested by gabriel 2026-02-12 20:08:20 +08:00
Gabriel Horner
0d1b997fa9 fix: reaction schema results in invalid nodes 2026-02-11 15:07:00 -05:00
Tienson Qin
2341fb9b7f Merge branch 'master' into feat/worker-sync 2026-02-11 18:12:22 +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
Gabriel Horner
adf9770da0 fix: lint and docstring 2026-02-05 13:13:46 -05:00
Gabriel Horner
1a1896ba5b fix: internal-ident?
Also fix db test
2026-02-05 09:01:04 -05:00
Tienson Qin
c7f2699edb add migration for reactions 2026-02-01 21:53:55 +08:00
Tienson Qin
05be455371 feat: reactions 2026-02-01 21:45:31 +08:00
Tienson Qin
e7bb0963d4 enhance: upload large block title to r2 2026-01-30 20:04:29 +08:00
Tienson Qin
0eadb024de Merge branch 'master' into feat/worker-sync 2026-01-30 17:37:29 +08:00
Tienson Qin
de1c58b02a fix: don't record local txs for remote graph 2026-01-30 02:00:09 +08:00
Tienson Qin
2d6db0b410 fix: lint 2026-01-30 00:17:56 +08:00
Tienson Qin
a1bfdec3ec chore: debug rebased tx 2026-01-29 22:47:26 +08:00
Tienson Qin
16221de6f3 fix: lint 2026-01-29 17:09:18 +08:00
Tienson Qin
9651d033c6 fix: asset download 2026-01-29 17:05:44 +08:00
Tienson Qin
667e0d7f05 fix: undo && redo shouldn't write invalid data to server 2026-01-28 16:00:31 +08:00
Tienson Qin
432da2aa04 fix: e2e extra tests 2026-01-28 09:44:14 +08:00
Gabriel Horner
e7bfd53a7c fix: import of namespace tags
w/ 2+ levels of namespaces. This should fix
https://github.com/logseq/db-test/issues/679
2026-01-27 16:01:25 -05:00
Tienson Qin
8e815b85b8 remove buggy code 2026-01-27 23:28:44 +08:00
Tienson Qin
d6392538be fix: rtc extra offline e2e tests 2026-01-27 17:05:57 +08:00
Tienson Qin
c7ca6d4b09 fix: merge error 2026-01-26 20:12:28 +08:00
Tienson Qin
729ca7fcbf Merge branch 'master' into feat/worker-sync 2026-01-26 18:52:12 +08:00
Tienson Qin
ebf768e340 fix: extends cycle 2026-01-26 18:38:47 +08:00
Tienson Qin
5fab852f8a fix: asset download 2026-01-26 15:07:10 +08:00
Tienson Qin
7806997f0b fix: wrong data in ui db after applying remote tx data 2026-01-24 12:25:36 +08:00