Commit Graph

13638 Commits

Author SHA1 Message Date
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
Tienson Qin
755cf64a4c fix: acquireAccessHandles if released 2023-12-15 12:03:09 +08:00
Tienson Qin
dbc6af22cc fix: javascript can't close tab 2023-12-15 11:38:10 +08:00
Tienson Qin
ea70f39102 enhance: show modal instead of notification if multi-tabs access 2023-12-15 11:35:25 +08:00
Tienson Qin
52f04c2d24 enhance: redirect to bug report if multi-tabs access to a graph 2023-12-15 11:17:30 +08:00
Tienson Qin
739822f155 fix: release access handles after graph has been downloaded 2023-12-15 11:02:31 +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
Tienson Qin
16d0baf662 fix: lint warnings 2023-12-13 20:44:14 +08:00
Tienson Qin
4b520a9806 Merge pull request #10639 from logseq/feat/datascript-storage
Use forked Datascript
2023-12-13 20:39:38 +08:00
Tienson Qin
0a393eb822 Merge branch 'feat/db' into feat/datascript-storage 2023-12-13 20:38:55 +08:00
Tienson Qin
8c3794f5aa fix: can't backspace in some situations 2023-12-13 20:33:59 +08:00
Andelf
e929a191ec enhance: use query params in fragments for graph switching 2023-12-13 20:24:33 +08:00
rcmerci
083618a427 fix(rtc): sync blocks in whiteboards 2023-12-13 19:29:20 +08:00
rcmerci
1b94ec61d1 fix(rtc): ensure properties when upsert whiteboard blocks 2023-12-13 18:36:30 +08:00
Tienson Qin
b9b33d4088 enhance: get-next can skip collapsed block 2023-12-13 18:22:14 +08:00
Tienson Qin
83906dbc9b fix: allow to DEL if the next element is not its right sibling 2023-12-13 18:09:21 +08:00
Tienson Qin
660ac318cf fix: ensure :block/uuid never changes for any block
Previously, this happens when `DEL` in a block which followed by a
refed block.
2023-12-13 17:28:04 +08:00
rcmerci
87a98b76d0 fix(rtc): fix :block/link when download-graph 2023-12-13 13:39:31 +08:00
rcmerci
7bca037e71 fix: update <transact-data caller, remove unused build-upsert-blocks 2023-12-13 11:18:00 +08:00
Gabriel Horner
e228bd1fb6 fix: tweak schema to be valid for new db graphs
Also reuse initialization data
2023-12-12 16:05:06 -05:00
Gabriel Horner
ea65a659d6 chore: remove bb task for validating previous sqlite data 2023-12-12 15:44:06 -05:00
Gabriel Horner
36a553e4a1 chore merge sqlite-restore into sqlite-db
Also use it on the frontend. Also remove another unnecessary sqlite.db fn
2023-12-12 15:41:02 -05:00
Gabriel Horner
a207296a42 chore: reuse some sqlite db fns
Also removed datascript db atom fetching, unused fns and dep in sqlite.db
2023-12-12 15:09:44 -05:00
Tienson Qin
ac780a1aa4 enhance: save db to disk periodically
The interval is set to 10 minutes now.
New backup will be written if its size is not equal to the latest
backup one's.
2023-12-13 02:03:49 +08:00
Tienson Qin
436ff54039 fix: save db to disk when remove a graph 2023-12-13 01:35:07 +08:00
Gabriel Horner
9b388f52f0 Bump to latest datascript with passing tests and updated persistent-sorted-set 2023-12-12 11:20:32 -05:00
Tienson Qin
32711678ff fix: persist on disk when importing sqlite or switching graphs 2023-12-12 23:39:31 +08:00
Tienson Qin
215d3739b9 fix: hard delete opfs db 2023-12-12 22:56:43 +08:00
Tienson Qin
8601858460 fix: add graph to list when importing sqlite 2023-12-12 22:11:10 +08:00
Tienson Qin
9395ce4f5a bump sqlite-wasm 2023-12-12 22:08:42 +08:00
Tienson Qin
1a1ce02131 Merge branch 'feat/db' into feat/datascript-storage 2023-12-12 19:14:35 +08:00
Tienson Qin
8c3ec50c07 fix: no available handles to import to 2023-12-12 19:11:42 +08:00
Tienson Qin
f6dced699d fix: don't export db when switching from a file-based graph 2023-12-12 17:38:27 +08:00
Tienson Qin
deb90ecfea fix: tests 2023-12-12 16:53:27 +08:00
Tienson Qin
4296df237d fix: block uuid changed when embedding a page or a block 2023-12-12 16:32:29 +08:00
Tienson Qin
ba13e4ddd9 fix: return value 2023-12-12 14:33:34 +08:00
Tienson Qin
4ce80d6957 chore: remove unnesessary code 2023-12-12 14:32:31 +08:00
Tienson Qin
f2db192bb7 fix: prompt is not supported on Electron 2023-12-12 13:51:09 +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