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
rcmerci
16f1f448db
fix malli_schema for asset-block
2024-01-11 18:09:11 +08:00
rcmerci
2dca1b6df8
feat(rtc): add schema for asset
2024-01-11 14:08:18 +08:00
Gabriel Horner
a2bb7e4479
fix: adding timestamps to imports shouldn't change updated-at
2024-01-10 16:06:20 -05:00
Tienson Qin
264f7dd40a
Merge branch 'feat/db' into refactor/pipeline-worker
2024-01-11 02:57:37 +08:00
Tienson Qin
a550090249
Remove assert
2024-01-11 01:02:13 +08:00
Tienson Qin
baefeaad5b
fix: use page-handler/<create! if possible
2024-01-11 00:54:19 +08:00
Gabriel Horner
0d4b46be71
fix: remove deleted :block/unknown schema
...
:block/unknown was a side effect of the last storage approach
2024-01-10 09:20:50 -05: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
charlie
332f2fdf29
enhance(ui): polish colors for the cmdk shortcuts label
2024-01-10 16:36:46 +08:00
Tienson Qin
9ee04feeb5
Merge branch 'feat/db' into refactor/pipeline-worker
2024-01-10 16:13:56 +08:00
Tienson Qin
271f34838a
fix: page property test
2024-01-10 05:29:52 +08:00
Tienson Qin
d09a0d0b80
fix: page rename test
2024-01-10 05:13:33 +08:00
Gabriel Horner
3cb980bf91
fix: invalid pages and whiteboard pages from import
...
- some pages are missing block/journal? and block/original-name
- removed another file graph only attribute
- fixed whiteboard block schema missing :block/path-refs
- pulled out importing block to its own fn
Part of LOG-2990
2024-01-09 16:03:49 -05:00
Tienson Qin
16f8beefaf
fix: model and page ref test
2024-01-10 04:47:18 +08:00
Tienson Qin
2d245295a7
fix: outliner core tests
2024-01-10 04:15:09 +08:00
Gabriel Horner
e1ad1fd9c8
fix: invalid blocks in import created by tags and refs
...
Also make :block/format valid. Part of LOG-2990
2024-01-09 13:43:00 -05:00
Gabriel Horner
e715881a4f
fix: macro blocks and remove file-graph only attributes for import
...
Also disable properties until it's ready. Part of LOG-2990
2024-01-09 12:48:27 -05:00
Tienson Qin
eb6e5942f8
fix: lint warnings
2024-01-10 01:34:15 +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
charlie
adfbfa52ec
enhance(ui): polish colors for the shortcut label component
2024-01-09 17:29:08 +08:00
Tienson Qin
501c06c44f
fix: whiteboard redundancy
2024-01-09 16:53:49 +08:00
Tienson Qin
9f66e6d7e7
fix: don't fix pages for whiteboards and hidden pages
2024-01-09 16:04:03 +08:00
charlie
c6aa3a98dd
enhance(ui): polish shortcuts component
2024-01-09 12:00:53 +08:00
Gabriel Horner
6ad5fb2dd4
fix: db graphs not adding :block/content for whiteboard shape
...
Caused by hopefully one of the last incorrect lookups of
:block/properties
2024-01-08 16:16:07 -05:00
Gabriel Horner
0957cb15b3
fix: built-in props weren't persisted to opfs
...
and didn't show up in new graphs. Fixes LOG-2998. Issue was that
e6a464e64f introduced transacting built-in
properties twice. Since the first transaction doesn't send tx-data to
the db-worker (an issue with pipeline/invoke-hooks it seems), the 2nd tx
results in missing property info including name. Removing this
incorrectly setup first tx allows the original one to successfully send
initial property data to db-worker
2024-01-08 11:26:22 -05:00
Tienson Qin
5fd91035df
wip: transact to worker directly
...
Previously, the transactions will go though main thread db -> worker
db, this commit changes it to worker db first and then send the
updates to the main thread db.
This change does introduce some bugs because all the db transactions
are async now.
2024-01-08 20:53:23 +08:00
Tienson Qin
dbba75157d
Sync db worker changes back to the main ui thread
2024-01-08 19:09:54 +08:00
Tienson Qin
38ba0dfa7c
Move entity plus to db dep
2024-01-08 15:35:09 +08:00
Tienson Qin
77726bda4c
fix: worker dependencies
2024-01-08 12:59:08 +08:00
Tienson Qin
9597330d9f
Remove db/state dep on page handler
2024-01-07 17:24:54 +08:00
Gabriel Horner
6e911798e7
fix: Make bare graph valid for file graph import
...
Fixed blocks, pages and config.edn as part of LOG-2990
2024-01-05 17:03:35 -05:00
Tienson Qin
fa2892cef6
use ldb/transact! instead of d/transact!
2024-01-05 06:42:10 +08:00
Tienson Qin
7c4baf97db
fix both page create and delete
2024-01-05 03:09:35 +08:00
Tienson Qin
1e72d0efc7
Move page-delete to worker
2024-01-05 02:47:40 +08:00
Tienson Qin
086a052ee7
Move page-create to worker
2024-01-05 01:02:22 +08:00
Tienson Qin
f3e7f8b66b
remove handler.whiteboard dependency for rtc.core
2024-01-04 17:30:04 +08:00
Tienson Qin
7258cf48da
fix deps
2024-01-03 18:12:12 +08:00
Tienson Qin
9194a671fd
Move outliner core to its own dep
2024-01-03 18:02:48 +08:00
Tienson Qin
faf2d8116a
Move worker.mldoc and worker.file.property.util to graph parser dep
2024-01-03 17:35:12 +08:00
Tienson Qin
b5d8d569ce
Move time-ms to common.util
2024-01-03 17:12:31 +08:00
Tienson Qin
a6f83c2445
Move worker.util fns to common.util
2024-01-03 17:08:24 +08:00
Tienson Qin
b7d9098e80
Move gp-util and gp-config to the common dep
2024-01-03 16:38:05 +08:00
Tienson Qin
292ba1b0b6
Remove state dependency for outliner.core
2024-01-03 15:42:58 +08:00
Tienson Qin
670bc3a5c7
enhance: enable entity transaction
2024-01-03 14:42:44 +08:00
Gabriel Horner
4fd0b65639
bump nbb-logseq to use datascript with dirty flag fix
2024-01-02 17:07:11 -05:00
Gabriel Horner
5afbfce4a0
fix: graph-parser lints and tests from #10770
2024-01-02 16:22:04 -05:00
Gabriel Horner
ff5430cfd7
fix: db lint and tests from #10683
2024-01-02 15:42:36 -05:00