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
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
d09a0d0b80
fix: page rename test
2024-01-10 05:13:33 +08: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
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
c8c8aa08c6
fix: can't load a file-based graph
2024-01-09 20:41:16 +08:00
Tienson Qin
acf8c07da5
fix: whiteboard title shows UUID
2024-01-09 20:09:44 +08:00
Tienson Qin
d1c113d2da
fix: writes not saved on electron
2024-01-09 19:15:45 +08:00
Tienson Qin
d1ca61d3c5
fix: avoid re-render deleting block
...
tricky one
2024-01-09 18:37:28 +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
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
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
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
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
d593456c1c
fix: get graphs
2024-01-08 14:27:36 +08:00
Tienson Qin
77726bda4c
fix: worker dependencies
2024-01-08 12:59:08 +08:00
Tienson Qin
ab612a0a1b
refactor debug UI state
2024-01-08 12:26:05 +08:00
Tienson Qin
81757c4e37
remove dependencies on full_upload_download_graph
2024-01-08 06:31:32 +08:00
Tienson Qin
ecd59381a5
Sync state to worker
2024-01-08 06:00:27 +08:00
Tienson Qin
f14f7b0c95
wip: move rtc to worker
2024-01-08 04:43:28 +08:00
Tienson Qin
f24aae521e
remove page handler dep on rtc core
2024-01-07 17:38:53 +08:00
Tienson Qin
9597330d9f
Remove db/state dep on page handler
2024-01-07 17:24:54 +08:00
Tienson Qin
20ef7dffaa
fix: page rename
2024-01-07 16:52:23 +08:00
Tienson Qin
8f8acf1d77
wip page rename
2024-01-07 16:27:11 +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
Gabriel Horner
c8ba262fb6
fix: disallow two db graphs with same name and different case
...
Fix LOG-2995. Also fix redirect message when deleting db graph
2024-01-03 15:41:55 -05: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
cf1e4691c2
fix: lint warnings
2024-01-03 16:45:11 +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