Commit Graph

13690 Commits

Author SHA1 Message Date
Tienson Qin
5ba29482f7 Comment code 2023-12-21 23:12:34 +08:00
Tienson Qin
64ae406847 Clean comments 2023-12-21 23:08:37 +08:00
Tienson Qin
e0ced25999 fix: lint warning 2023-12-21 23:03:24 +08:00
Tienson Qin
2102fc4db0 List file based graphs 2023-12-21 22:54:12 +08:00
Tienson Qin
57c43c89e1 fix: repos list 2023-12-21 22:12:42 +08:00
Tienson Qin
77a8ea13ab Merge branch 'feat/db' into refactor/worker-search 2023-12-21 21:35:41 +08:00
Tienson Qin
673d29d114 fix: can't exit window 2023-12-21 21:11:57 +08:00
Tienson Qin
18025a254c Add externs 2023-12-21 21:04:33 +08: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
Tienson Qin
f6d8e090a0 fix: wasm url 2023-12-21 16:39:53 +08:00
Tienson Qin
1ccd50ee2d Remove profile 2023-12-21 16:12:53 +08:00
Gabriel Horner
f7e890b662 enhance: dev command to update db graph with its db.sqlite 2023-12-20 17:02:02 -05:00
Gabriel Horner
0fc1fd0f15 fix: error or notify loudly if db transactions aren't being transacted
followup to
https://github.com/logseq/logseq/pull/10726#discussion_r1431990823
2023-12-20 13:44:45 -05:00
Tienson Qin
75c396a92f fix: file graph restore 2023-12-21 02:40:03 +08:00
Gabriel Horner
1026e1eb22 fix: add graph name warning to import as well 2023-12-20 12:25:27 -05:00
Tienson Qin
a4f7b950e1 fix: typo 2023-12-20 21:58:49 +08:00
Tienson Qin
ab3c249e43 Export db after opening a file graph 2023-12-20 21:57:55 +08:00
Tienson Qin
0356017dec fix: opfs file path 2023-12-20 21:47:56 +08:00
Tienson Qin
4cdc718cea fix: file version path 2023-12-20 21:06:59 +08:00
Tienson Qin
2f03bc988a fix: db/close! still needed 2023-12-20 19:48:36 +08:00
Tienson Qin
cd36c1a0ce Merge branch 'feat/db' into refactor/worker-search 2023-12-20 19:46:10 +08:00
Tienson Qin
aeb5026a26 Add fn to clean up all dbs 2023-12-20 18:43:50 +08:00
Tienson Qin
2d0d298608 fix: load db from disk if it can't be found on OPFS 2023-12-20 18:28:31 +08:00
Tienson Qin
d07790af87 Revert "fix: only look to opfs for db graphs"
This reverts commit 34a71eedaf.
2023-12-20 17:17:58 +08:00
Tienson Qin
cdd1815615 No need to export db when switching graphs 2023-12-20 17:13:47 +08:00
Tienson Qin
66499c2df5 fix: sanitize graph name before creating
This commit also stores dbs in `/logseq-pool-graph-name/db.sqlite`
which will affect existing dbs on OPFS.
2023-12-20 17:03:17 +08:00
Gabriel Horner
ceec5624ce Merge pull request #10726 from logseq/enhance/write-to-disk
Save transactions to disk db to avoid data-loss
2023-12-19 17:27:55 -05:00
Gabriel Horner
34a71eedaf fix: only look to opfs for db graphs
For graphs with spaces, looking up electron db graphs was causing
duplicates to appear e.g. "name_space" and "name space". More
importantly, these electron db graphs don't actually exist in opfs
so they won't persist correctly. Part of LOG-2967
2023-12-19 16:48:38 -05:00
Gabriel Horner
6a321a846d Merge branch 'feat/db' into enhance/write-to-disk 2023-12-19 14:32:30 -05: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
Gabriel Horner
72f5218b39 dev: add tasks for saving and diffing datoms
part of LOG-2974
2023-12-19 13:19:10 -05:00
Tienson Qin
b1276f919f fix: open page in cmdk 2023-12-20 02:05:59 +08:00
Tienson Qin
c0be3b5b1f fix: file db full page content search 2023-12-20 01:48:17 +08:00
Tienson Qin
2811dc7d51 Merge branch 'enhance/write-to-disk' into refactor/worker-search 2023-12-20 01:34:48 +08:00
Tienson Qin
16aa7d3f12 fix: can't create graphs name with spaces
Fixes LOG-2967
2023-12-20 00:48:20 +08:00
Tienson Qin
666b4ab6d4 Move ipc calls outside db browser implementation 2023-12-19 23:15:44 +08:00
Tienson Qin
d3b6d0f4ec Remove debugging 2023-12-19 22:57:21 +08:00
Tienson Qin
dfaec37fef Merge branch 'feat/db' into enhance/write-to-disk 2023-12-19 22:52:51 +08:00
Tienson Qin
0ae74ee8c0 fix: can't redo 2023-12-19 21:46:27 +08: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
b27709ce13 enhance: group db transactions 2023-12-18 23:21:55 +08:00
Tienson Qin
222b2f84bc fix: remove unused addr+data from sqlite 2023-12-18 20:56:28 +08:00
Gabriel Horner
8612f8245d fix: display more notice when re-routing after graph deletion
If left sidebar is collapsed, there's no indication of what graph you
are on so we should at least notify user so it's explained and
not seemingly buggy
2023-12-15 13:41:31 -05:00
Gabriel Horner
8eec034c61 fix: user can't export a file graph as a db graph 2023-12-15 09:55:28 -05:00
Gabriel Horner
6f8badf18f add frontend.persist.db* to list of db namespaces
also cleaned up inconsistent alias and fixed export-db calling
db-based-graph? when caller fns already do this
2023-12-15 09:50:22 -05:00
Gabriel Horner
eecb443fb8 enhance: display notice when deleting graph
also fix file graph deletion kicking off db graph specific deletion
2023-12-15 09:26:44 -05:00
Tienson Qin
e8c41899ac Tweak words a bit 2023-12-15 13:48:36 +08:00
Tienson Qin
24fb0d2cfe enhance: able to switch into another graph when multi-tabs access 2023-12-15 13:46:55 +08:00