Commit Graph

905 Commits

Author SHA1 Message Date
Tienson Qin
20aecdb27c fix: inline tag resolved as page when saving block 2025-11-21 00:52:43 +08:00
Tienson Qin
e311e1b85c fix: don't create child tags when saving inline 2025-11-21 00:33:34 +08:00
Gabriel Horner
c91661f022 fix: import code block inside quote block
Fixes https://github.com/logseq/db-test/issues/523
2025-11-04 10:48:09 -05:00
rcmerci
6ffa6ab5d6 enhance: upgrade com.lambdaisland/glogi, add timestamp to log 2025-10-31 18:04:37 +08:00
Tienson Qin
ace82d7151 fix: don't create new card page when importing file graph
fix https://github.com/logseq/db-test/issues/521
2025-10-30 01:34:43 +08:00
Tienson Qin
7dc155b28b fix: file graph import 2025-10-29 21:28:27 +08:00
Gabriel Horner
2500fe888a fix: dev import can't import
All CLI imports were failing with "Maximum call stack size exceeded".
2025-10-22 10:37:25 -04:00
Tienson Qin
999618a406 refactor: compute pipeline tx-data before d/transact! 2025-10-15 15:31:42 +08:00
Gabriel Horner
27d5a369fd fix: bump to latest nbb-logseq to fix most logseq.db dependent ns 2025-10-13 21:34:00 -04:00
Tienson Qin
7ed7fb4f31 enhance: prefer ldb/transact! than d/transact! 2025-10-13 19:03:11 +08:00
Gabriel Horner
846f9307c3 enhance: notify users when assets exceed max size
so they are aware why asset was ignored. Also if asset ids are not
present we should fail loudly like we everywhere else in the importer.
Users should know when data is missing instead of hiding it in the
console. Also refactor confusing usage of :block/uuid to :asset-created?
as it was only used to track the first time an asset is built to be
transacted
2025-09-29 17:37:04 -04:00
Tienson Qin
91657bfcce fix: rpath may not be provided 2025-09-29 17:37:04 -04:00
Tienson Qin
248fdeb422 fix: tests 2025-09-29 17:37:04 -04:00
Tienson Qin
971cec54bc fix(import): remove asset byte-array usage to prevent OOM
This commit also combine read-asset and copy-asset to read-and-copy-asset
2025-09-29 17:37:04 -04:00
Gabriel Horner
f93f889f8a chore: bump to latest nbb w/ datascript update 2025-09-03 10:00:45 -04:00
Tienson Qin
248d8c33f2 refactor: remove block/path-refs (#12081)
1. refactor: use :block/refs and has-ref rule instead of path-refs
2. remove block/path-refs
3. removes :block-parent rule since there's already :parent
4. enhance: skip pipeline calculation for rtc initial download tx
5. refactor(rtc): remove memoize

---------

Co-authored-by: rcmerci <rcmerci@gmail.com>
2025-09-03 20:33:33 +08:00
Gabriel Horner
a81274cd0d fix: import quoted math blocks
and lists in quote blocks. Addresses main issue in https://github.com/logseq/db-test/issues/434
2025-09-02 13:52:32 -04:00
Gabriel Horner
6a84e56984 enhance: working spike for export md command
export namespaces aren't reused yet. Fixed bug w/ get-block-and-children
not invoking correctly in nbb. Bumped all deps to use latest nbb-logseq
2025-08-26 11:27:34 -04:00
Gabriel Horner
707f49bc4f fix: nbb-logseq bundling and quirky datascript requires (#12032)
* fix: nbb-logseq bundling and quirky datascript requires

* fix: bump nbb-logseq for node version incompatibility
2025-08-06 13:16:50 -04:00
Gabriel Horner
6ef1c62e95 chore: mv sanitize-filename into exporter
should fix outliner CI as it never loads exporter
2025-07-22 12:24:14 -04:00
Gabriel Horner
5de565dcce fix: some pdf annotations weren't imported
. Creation of edn+md paths from pdf path were lacking sanitization which
resulted in edn and md files not being associated with pdf

Fixes https://github.com/logseq/db-test/issues/196#issuecomment-3059363947.
Also fix incorrect dep
2025-07-22 12:24:14 -04:00
Gabriel Horner
6b3240f4b5 fix: imported pdf annotation image not showing up
in pdf viewer under Outline > Highlights
2025-07-22 08:57:21 -04:00
Gabriel Horner
f4a8b9438e fix: block references to annotations
Don't rewrite annotation uuids as we don't do that for other existing blocks
2025-07-22 08:57:21 -04:00
Gabriel Horner
ad5c776f46 fix: doc files in assets shouldn't be extracted
Asset files that are edn or md were being treated like assets and
extracted as doc files. This was noticed because pdf annotation edn was being
needlessly extracted
2025-07-22 08:57:21 -04:00
Gabriel Horner
3f21c297b2 enhance: import markdown annotations
for pdfs and any children blocks under highlight. Only
imports text from md annotations
2025-07-22 08:57:21 -04:00
Gabriel Horner
4c9d063323 enhance: import pdf area annotations 2025-07-22 08:57:21 -04:00
Gabriel Horner
536f39cbbd enhance: import basic pdf text annotation
Only read edn for now. Works in UI and CLI.
Also correctly keeps annotation edn from being copied since
it's no longer used
2025-07-22 08:57:21 -04:00
Gabriel Horner
65640ed885 fix: macro file graph properties are undeclared
Looks like we forgot to do this when we brought them back in
ac31842cec
2025-07-14 17:58:42 -04:00
Tienson Qin
9bede53a34 fix: tests 2025-06-29 15:21:09 +08:00
Gabriel Horner
7968058d4b fix: asset links with regex characters not getting updated
Fixes https://github.com/logseq/db-test/issues/358
2025-06-27 10:51:18 -04:00
Gabriel Horner
42f0519797 fix: import property that changes from :node to :default
on same page :as :node property is defined. Also affects :date ->
:default. Fixes https://github.com/logseq/db-test/issues/340
2025-06-23 14:02:28 -04:00
Gabriel Horner
957eab73d8 fix: import fails on query sort with built-in properties
Fix for https://github.com/logseq/db-test/issues/341
2025-06-23 09:17:26 -04:00
Gabriel Horner
58d3abbafb fix: use ast blocks for simple queries conversions
Fixes cases where {{query nested in BEGIN_* blocks were incorrectly
being converted to queries. Also made ast block handling faster
by only doing one prewalk and cleaned up handling of queries
2025-06-23 19:04:03 +08:00
Gabriel Horner
cc05518ea5 fix: use ast blocks for advanced queries conversion
Fixes cases where BEGIN_QUERY nested in BEGIN_SRC were incorrectly
being converted to queries e.g. most queries in
https://docs.logseq.com/#/page/advanced%20queries
2025-06-23 19:04:03 +08:00
Gabriel Horner
507ff3ce29 enhance: import page and block embeds
One embed per block as that's what DB version supports.
Fixes https://github.com/logseq/db-test/issues/198
2025-06-23 19:04:03 +08:00
Gabriel Horner
fdff75cdf8 fix: import not handling scheduled and deadline property
on same block. Fixes https://github.com/logseq/db-test/issues/318
2025-06-20 17:06:52 -04:00
Gabriel Horner
8c6146a00d enhance: import markdown quotes
Went ahead and implemented ast block to string
as regex version of this would've been to buggy
2025-06-18 13:54:48 -04:00
Gabriel Horner
5b4f43d6f4 enhance: import quotes as #Quote
Can only support one quote per block so text around quotes
and multiple quotes aren't possible
Fixes https://github.com/logseq/db-test/issues/195
2025-06-18 13:54:48 -04:00
Tienson Qin
53e0d1a4ca enhance: put library page name to config to make it easier to rename 2025-06-18 08:25:47 +08:00
Tienson Qin
7b46076170 Merge branch 'master' into refactor/page-parent 2025-06-17 19:44:34 +08:00
Gabriel Horner
ace71b2b25 enhance: asset import supports multiple assets
per block and preserves text around assets.
These were both enabled by moving asset blocks to Asset page
2025-06-17 19:36:05 +08:00
Gabriel Horner
501063e625 fix: importing assets for more complex blocks like paragraphs with links
Used extract-blocks to group ast blocks for each block instead of
previous buggy version. Also renamed bindings that were all confusingly
`block`
2025-06-17 19:36:05 +08:00
Gabriel Horner
f318d68530 enhance: import assets handles
unused assets by still copying them by name and handles
existing assets
2025-06-17 19:36:05 +08:00
Gabriel Horner
bb31c4e6f1 fix: importing assets in subdirectories
Also fix lint
2025-06-17 19:36:05 +08:00
Gabriel Horner
4524fc8370 enhance: import asset metadata
Also handle multiple assets per block and displaying that to user
2025-06-17 19:36:05 +08:00
Gabriel Horner
90c7fc5775 enhance: UI imports assets as #Asset
Also made importer and db asset creation use same helper fns
2025-06-17 19:36:05 +08:00
Gabriel Horner
38734bde40 enhance: CLI imports assets as #Asset
Had to split assets into two steps now that asset naming is dependent
on uuids. Also add explicit asserts in exporter to catch silent
failure in tests
2025-06-17 19:36:05 +08:00
Tienson Qin
92ec65d61d Merge branch 'master' into refactor/page-parent 2025-06-15 08:27:33 +08:00
Tienson Qin
88216d2992 fix: able to convert an existing page to a property (#11940)
* enhance: use page as property

* fix: ensures block/uuid doesn't change after converting to property
2025-06-14 13:17:33 +08:00
Gabriel Horner
7cc9ddc26b chore: bump docs graph being tested
Hadn't been updated in over a year
2025-06-13 10:43:42 -04:00