Commit Graph

63 Commits

Author SHA1 Message Date
Tienson Qin
fe0f5f6abe fix(regression): slow to write file 2025-05-27 03:31:27 +08:00
Tienson Qin
9ceefde5b7 fix: show deep reference title instead of id when searching blocks 2025-05-19 21:54:10 +08:00
Gabriel Horner
c28fe3194c chore: cleanup after #11858
Remove unused fn
2025-05-12 09:47:40 -04:00
lhewett946
f8fa71de47 Fix logseq/db-test#277
exclude-from-graph-view property for file graphs
2025-05-12 09:44:28 -04:00
rcmerci
312a77b479 fix(editor): slow recur-replace-uuid-in-block-title
Forgot to convert next-refs to a set, leading to a large amount of redundant computation
2025-05-06 21:48:11 +08:00
Gabriel Horner
6a635ecb49 refactor: mv common ns out of db ns
Also move common and file fns out of db ns. Cleanup allows
for better separation linting
2025-04-28 10:37:13 -04:00
rcmerci
048bd106f6 enhance(rtc): try to restart-rtc when network-online event emits 2025-04-23 17:10:03 +08:00
rcmerci
fd40bbeec5 enhance: c.m/backoff add :reset-flow option
We can use worker-flows/online-event-flow
to trigger a retry immediately upon receiving an 'online' event,
instead of waiting for the next retry delay.
2025-04-16 22:00:13 +08:00
Gabriel Horner
04a93f6613 chore: mv db or file graph specific ldb fns to
db or file graph namespaces. Follow up to
https://github.com/logseq/logseq/pull/11774#discussion_r2035354875 to
help avoid bugs that are hard to spot b/c of no organization
2025-04-15 22:45:16 -04:00
Gabriel Horner
cd5385a0c3 chore: mv graph view ns to frontend ns
Graph view is fairly tied to the frontend, has styling concerns in the
ns and doesn't have use cases outside the app. frontend.common is
the parent ns for frontend code to reuse across UI threads.
Didn't move db-view because there are use cases for generating view
entities outside the app and there's no styling related code in it
2025-04-11 09:30:14 -04:00
Tienson Qin
b39a81db17 fix: lint 2025-04-04 21:39:29 +08:00
Tienson Qin
d3c0ecc257 fix: copy unloaded blocks
This commit also fixs:
1. load block when clicking at bullet
2. copy linked block as markdown
2025-04-04 10:03:15 +08:00
rcmerci
672cc8c3ae enhance: add more cancelable use-effect setup-fns 2025-04-03 23:46:15 +08:00
rcmerci
d05a8ac07f enhance: replace atom blocks-ast-cache by lrucache 2025-04-03 22:14:27 +08:00
rcmerci
bbe5764a0e fix: make (fn? cancel) => true, otherwise react won't treat it as cleanup fn 2025-04-03 19:01:56 +08:00
rcmerci
0bcb860c0f enhance: make use-effect's handler cancelable 2025-04-03 16:46:44 +08:00
rcmerci
eea0cb6a7e fix: remove *block-cache in ui-thread 2025-04-03 16:14:33 +08:00
Tienson Qin
d2eeab49fe fix: typo 2025-04-03 00:18:14 +08:00
rcmerci
435667a170 perf: add frontend.common.cache/cache-fn 2025-04-02 22:30:03 +08:00
rcmerci
b711a1694c enhance: use faster eq-fn in hotpath 2025-04-02 15:06:54 +08:00
rcmerci
12e6284bbe refactor: add <invoke-main-thread 2025-03-28 21:49:05 +08:00
rcmerci
9e719cc58f fix(copy): replace block-uuid in nested block-ref 2025-03-27 17:08:46 +08:00
rcmerci
4b939e8265 fix: support args direct-passthrough to db-worker
:thread-api/import-db's arg is a js arraybuffer, which is unable to be transit-write
2025-03-27 16:44:43 +08:00
rcmerci
cae3084f9c refactor: use the namespace "thread-api" for all thread-api keywords 2025-03-26 16:47:28 +08:00
rcmerci
7ca1fe7569 refactor: unify the transit-read/write for the return values of the thread-api 2025-03-26 16:47:28 +08:00
rcmerci
b7d65b82e3 refactor(wip): add def-thread-api, and move fns from class DBWorker 2025-03-26 16:47:28 +08:00
Tienson Qin
24bee474c9 fix: copy block references 2025-03-17 23:54:31 +08:00
rcmerci
d83ced97ab enhance(rtc): debounce trigger-start-rtc-flow to dedupe 2025-02-24 23:01:54 +08:00
rcmerci
ce4f2c3a8f enhance(rtc): add :auto-start-rtc-if-possible background-task 2025-02-24 23:01:54 +08:00
Gabriel Horner
05037c456e Merge branch 'feat/db' into enhance/reference-view 2025-02-21 15:33:40 -05:00
Gabriel Horner
04b832f5cb chore: mv file graph specific fns out ldb 2025-02-20 12:37:13 -05:00
rcmerci
e68f73b932 enhance: impl IPrintWithWriter for missionary.Cancelled 2025-02-20 18:25:44 +08:00
Tienson Qin
20d483fa30 Merge branch 'feat/db' into enhance/reference-view 2025-02-20 17:39:46 +08:00
Gabriel Horner
b2d5315a68 enhance(dev): add deps/db/src/logseq/{frontend,sqlite} to
separate linter. Will catch mistakes like
e92b107b5b next time. Also fixed
a few more ldb/* calls and expanded /db-based-graph? check
2025-02-19 16:44:17 -05:00
rcmerci
d1b9eadc5e enhance(rtc): replace console.log and prn with lambdaisland.glogi 2025-02-19 18:37:17 +08:00
Gabriel Horner
885c06f1fb chore: mv file-handler dependent namespaces
that are now obviously file graph specific

- mv save-tree! as it calls file-handler/alter-files via events
- mv roam import which called file-handler/alter-files
- mv git component which is only enabled for file graphs
- fixed handler.code which allowed db graphs to call file graph code for
  an edge case
2025-02-17 14:02:49 -05:00
rcmerci
7b9ae93982 enhance: add logseq.common.defkeywords 2025-01-08 21:22:22 +08:00
rcmerci
f5ffcf1d04 chore: update docstring of defkeyword 2025-01-08 21:22:22 +08:00
rcmerci
f7815b487d fix: nbb test 2024-12-28 16:39:33 +08:00
rcmerci
26e2fad13d fix: move missionary_util to deps/common, fix some deps issue 2024-12-28 14:22:16 +08:00
rcmerci
1bd5028906 fix lint and test 2024-12-12 14:06:16 +08:00
rcmerci
19ba710e61 enhance: add continue-flow and run-background-task to missionary-util 2024-12-11 16:44:25 +08:00
rcmerci
632788e8e3 fix(rtc): delete-graph return a promise now 2024-12-03 17:17:14 +08:00
rcmerci
a2b3efa86f enhance(rtc): deprecate <wrap-ensure-id&access-token 2024-12-03 17:10:06 +08:00
rcmerci
eb273f1aff fix(rtc): auto rtc-start when created&uploaded a new graph 2024-12-03 16:50:19 +08:00
rcmerci
9a39c70251 perf(rtc): throttle pending-block-ops-count-flow 2024-12-02 11:25:47 +08:00
rcmerci
e81ca25ad7 perf: throttle rtc-state-flow for postmessage 2024-11-29 22:58:36 +08:00
rcmerci
3e9e19340a enhance(asset-sync): concurrent download assets 2024-11-27 17:23:37 +08:00
rcmerci
4335c3e7e4 enhance: replace some cljs-http with cljs-http-missionary 2024-11-27 14:49:33 +08:00
Tienson Qin
03b3291486 Merge branch 'feat/db' into refactor/dsl-query 2024-10-31 20:57:40 +08:00