Commit Graph

415 Commits

Author SHA1 Message Date
Tienson Qin
7a4251856a Revert "fix: enable promise usage in outliner-ui/transact!"
This reverts commit 95cd7d51fc.
2024-02-02 00:20:41 +08:00
Tienson Qin
4b9b825101 refactor indent-and-outdent 2024-02-02 00:16:49 +08:00
Tienson Qin
95cd7d51fc fix: enable promise usage in outliner-ui/transact! 2024-02-01 20:07:39 +08:00
Tienson Qin
44dca4f506 wip: plugin api calls
Also avoid calls to worker if a block has been fully loaded
2024-01-31 21:51:52 +08:00
Tienson Qin
99b6d543f0 fix: more async queries and export to roam 2024-01-30 20:03:06 +08:00
Tienson Qin
d9ff061436 fix: don't remove orphaned refs if content hasn't been changed 2024-01-26 22:14:55 +08:00
Tienson Qin
1536d9aff5 fix: regression of unwanted tag pages are created as you type
Fixes LOG-2820
2024-01-25 06:47:36 +08:00
Tienson Qin
a64f49dc6f Remove :block/marker and :block/priority from tx-data 2024-01-24 16:38:09 +08:00
Gabriel Horner
77bc1d5d6b chore: update better-sqlite3 and mldoc in deps to match app 2024-01-23 11:36:32 -05:00
Gabriel Horner
689cf34cc3 fix: lints and a test
nbb test was failing b/c outliner had graph-parser as a dependency
but we hadn't manually added the npm dependency
2024-01-23 09:38:16 -05:00
Tienson Qin
575624c650 chore: revert inline tags 2024-01-23 21:45:54 +08:00
Gabriel Horner
c9ba357a90 fix multiple lints 2024-01-22 09:17:38 -05:00
Tienson Qin
036f1b5ab7 feat: /todo/other-status and /urgent/other-priority to set property 2024-01-19 02:36:23 +08:00
Gabriel Horner
34222b3436 chore: bump nbb-logseq that points to upstream nbb 2024-01-15 18:07:49 -05:00
Gabriel Horner
ca020fcdb3 fix: loading all new deps namespaces in nbb
- bb test:load-all-namespaces-with-nbb now passes for all deps
- Updated nbb-logseq to support cljs.core/Atom
- Adjusted datascript.impl.entity with previous datascript.db require
  so that correct loading occurs in nbb
- fixed missing deps in logseq.outliner
- Converted a minor cljs.spec to malli since malli is nbb compatible
- Changed exists? to some? since they are functionally equivalent for
  the given arg and some? is nbb compatible
2024-01-15 12:43:16 -05:00
Gabriel Horner
951e7cc841 fix: ns-docstring and large-var deps lints
Also fixed db-and-file-graphs-separate lint and moved gp-property tests
that should be moved since their source code has moved from frontend
to gp-property
2024-01-12 17:03:09 -05:00
Gabriel Horner
cdddce0120 fix deps db test and most lints
Also deleted duplicated gp-util.{page-ref,block-ref} files that were moved to common
and moved a related test to common dep
2024-01-11 14:35:04 -05:00
Gabriel Horner
a81e18e9a6 fix: update nbb-logseq and make entity-plus nbb compatible
deps can now load in nbb and all nbb tests pass except for db
2024-01-11 13:10:06 -05:00
Tienson Qin
6173879ca0 fix: test 2024-01-12 00:41:03 +08:00
Tienson Qin
a9074f74f4 fix: outdent 2024-01-11 23:43:23 +08:00
Tienson Qin
a81229576d fix: group transactions 2024-01-11 20:18:40 +08:00
Tienson Qin
baefeaad5b fix: use page-handler/<create! if possible 2024-01-11 00:54:19 +08:00
Tienson Qin
5cad97c617 feat: returns a deferred promise for logseq.db/transact!
This enables callers to wait for the result.
2024-01-10 20:23:11 +08:00
Tienson Qin
9ee04feeb5 Merge branch 'feat/db' into refactor/pipeline-worker 2024-01-10 16:13:56 +08:00
Tienson Qin
2d245295a7 fix: outliner core tests 2024-01-10 04:15:09 +08:00
Tienson Qin
7f0747ca9f start fix lint warnings and tests 2024-01-10 01:00:17 +08:00
Tienson Qin
767827e415 fix: writes don't saved to md files 2024-01-09 19:08:12 +08:00
Tienson Qin
38ba0dfa7c Move entity plus to db dep 2024-01-08 15:35:09 +08:00
Tienson Qin
fa2892cef6 use ldb/transact! instead of d/transact! 2024-01-05 06:42:10 +08:00
Tienson Qin
9194a671fd Move outliner core to its own dep 2024-01-03 18:02:48 +08:00
Tienson Qin
292ba1b0b6 Remove state dependency for outliner.core 2024-01-03 15:42:58 +08:00
Gabriel Horner
4fd0b65639 bump nbb-logseq to use datascript with dirty flag fix 2024-01-02 17:07:11 -05:00
Tienson Qin
e579f668eb wip: remove dependency on frontend.db for outliner core 2024-01-02 23:23:49 +08:00
Tienson Qin
48b5593008 wip: outliner refactor 2024-01-02 18:07:17 +08:00
Tienson Qin
eb679bd941 wip: file worker 2023-12-28 17:32:43 +08:00
Tienson Qin
dda11a33a7 Move outliner tree to the outliner dep 2023-12-27 02:53:00 +08:00
Tienson Qin
5b13fe6df4 perf: reduce disk writes 2023-12-27 00:06:39 +08:00
Tienson Qin
90ed070104 bump datascript 2023-12-22 18:04:33 +08:00
Gabriel Horner
d4f438f228 bump nbb-logseq for latest datascript 2023-12-21 13:00:44 -05:00
Tienson Qin
d39f2b6a36 fix: release bug 2023-12-21 20:44:49 +08:00
Tienson Qin
8f7c496ab4 chore: bump datascript 2023-12-21 19:01:38 +08:00
Gabriel Horner
52f7afa18f bump nbb-logseq to latest datascript with another storage delete fix
part of LOG-2974
2023-12-19 13:42:13 -05:00
Tienson Qin
dd2f1014eb Bump datascript
This version reuses addresses to reduce writes and make GC easier
2023-12-19 21:15:57 +08:00
Gabriel Horner
de3d82baba bump to latest nbb-logseq with datascript.storage delete fix 2023-12-18 11:10:59 -05:00
Tienson Qin
222b2f84bc fix: remove unused addr+data from sqlite 2023-12-18 20:56:28 +08:00
Gabriel Horner
ffa6aaae29 fix: remove unused db.sqlite related fns
- remove sqlite-db/close! as its not used and didn't make sense to be
  used in other electron ns
- remove sqlite-db/connections atom as its not needed
- remove read-graph as its not necessary
- rename cli.persist-graph as its primary purpose has changed
- update effected scripts
2023-12-13 12:06:24 -05:00
Gabriel Horner
79a9c59dd5 fix: lint and minor cleanup from datascript-storage PR
- remove unused electron state
- remove comment with nonexistent fns
- rename fn which didn't read well
2023-12-13 09:53:16 -05:00
rcmerci
7bca037e71 fix: update <transact-data caller, remove unused build-upsert-blocks 2023-12-13 11:18:00 +08:00
Gabriel Horner
0f4cdbbadf bump outdated nbb-logseq and fix lint 2023-12-11 15:55:38 -05:00
Gabriel Horner
fb3e8e8d8a fix: update ds sqlite persistance to match latest frontend
also removed unused util fns
2023-12-11 13:52:26 -05:00