Tienson Qin
7600a53929
Clean setTimeout
2024-01-10 23:52:47 +08:00
Tienson Qin
8533a974f1
fix: batch tx
2024-01-10 23:40:33 +08:00
Tienson Qin
b50145be4e
Simply editor save logic
...
Triggers save-current-block! on-blur instead of relying on react
lifecycle.
2024-01-10 23:05:48 +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
Bad3r
bf7f6dc28d
enhance: doc
2024-01-10 18:44:33 +08:00
Tienson Qin
9dba6d870b
Updated doc to connect to worker
2024-01-10 17:39:42 +08:00
rcmerci
4fd285743d
doc: how to connect to web-worker repl
2024-01-10 17:29:45 +08:00
Tienson Qin
b4757dad0e
enhance: get worker runtime id automatically
2024-01-10 17:29:11 +08:00
Tienson Qin
ec39bf0628
Add worker-repl fn
2024-01-10 17:23:38 +08:00
Tienson Qin
9ee04feeb5
Merge branch 'feat/db' into refactor/pipeline-worker
2024-01-10 16:13:56 +08:00
Tienson Qin
a503d451da
fix: unit tests
2024-01-10 15:42:16 +08:00
Tienson Qin
271f34838a
fix: page property test
2024-01-10 05:29:52 +08:00
Tienson Qin
81b2d22469
fix: create default pages for test db
2024-01-10 05:19:53 +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
31eb6c9c5a
fix: rtc tests
2024-01-10 04:32:45 +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
22d3a82412
fix lint
2024-01-10 01:01:50 +08:00
Tienson Qin
7f0747ca9f
start fix lint warnings and tests
2024-01-10 01:00:17 +08:00
Tienson Qin
9663d1bad1
enhance: way better cursor restore for undo/redo
...
This commits records both the start pos (user starts to type) and end
pos (before transaction), because the user always wants undo to move
the cursor back to the start position and redo to the end position.
2024-01-10 00:27:21 +08:00
Tienson Qin
324ed9a9cd
fix: history undo/redo
2024-01-09 23:44:45 +08:00
Tienson Qin
5e1a6b8952
perf: async store for datascript
2024-01-09 21:39:00 +08:00
Tienson Qin
c53231a5bb
fix: d/pull args
2024-01-09 20:44:22 +08:00
Tienson Qin
c8c8aa08c6
fix: can't load a file-based graph
2024-01-09 20:41:16 +08:00
Tienson Qin
1eb774f88d
fix: ui not affected by changes from disk
2024-01-09 20:29:18 +08:00
rcmerci
3d5b9937ba
enhance(rtc): update fns to add/remove asset ops
2024-01-09 20:14:09 +08:00
Tienson Qin
acf8c07da5
fix: whiteboard title shows UUID
2024-01-09 20:09:44 +08:00
Tienson Qin
9570e466c9
fix: file contents write twice
2024-01-09 19:48:48 +08:00
Tienson Qin
d1c113d2da
fix: writes not saved on electron
2024-01-09 19:15:45 +08:00
Tienson Qin
767827e415
fix: writes don't saved to md files
2024-01-09 19:08:12 +08:00
Tienson Qin
8e7d374e79
Add comment to remove transact! in pipeline
2024-01-09 18:55:03 +08:00
Tienson Qin
d1ca61d3c5
fix: avoid re-render deleting block
...
tricky one
2024-01-09 18:37:28 +08:00
Tienson Qin
db8d84c9ee
chore: clean unused code
2024-01-09 17:28:09 +08:00
Tienson Qin
d37d91198f
chore: remove main thread db listener since it's moved to worker
2024-01-09 17:13:02 +08:00
Tienson Qin
7e6835c02f
clean code
2024-01-09 16:56:15 +08:00
Tienson Qin
501c06c44f
fix: whiteboard redundancy
2024-01-09 16:53:49 +08:00
Tienson Qin
48125c3edc
fix: transact today's journal tx-data iff it doesn't exists yet
2024-01-09 16:32:43 +08:00
Tienson Qin
4da564cd0b
fix: open first block after creating a new page
2024-01-09 16:09:43 +08:00
Tienson Qin
9f66e6d7e7
fix: don't fix pages for whiteboards and hidden pages
2024-01-09 16:04:03 +08:00
rcmerci
1c6ff89d4a
enhance(rtc): add assets related info to frontend.db.rtc.op-mem-layer
2024-01-09 15:32:04 +08:00
Tienson Qin
879ae09fa2
fix: wrong argument
2024-01-09 14:09:12 +08:00
Tienson Qin
dd3a4b122c
fix: async page rendering
2024-01-09 14:05:25 +08:00
Gabriel Horner
411c7f318c
fix: published graphs can do interactive things
...
like collapse a block. Fixes LOG-2994
2024-01-08 17:28:00 -05: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
ce37f4777e
fix: load home page correctly after import
...
Previously it worked for one journal page but with multiple journal
pages the latest journal page loaded incorrectly
2024-01-08 14:55:34 -05:00
Gabriel Horner
2861337bab
fix: enable built-in properties for file graph import
...
invalid built-in properties were being created by the bug in LOG-2998.
Also cleaned up TODO around reusing new-db!
Part of LOG-2990
2024-01-08 12:22:03 -05:00