Commit Graph

1026 Commits

Author SHA1 Message Date
Tienson Qin
7e8ab72494 Merge branch 'feat/db' into perf/lazy-load-data 2024-02-07 04:07:40 +08:00
Tienson Qin
140287e3ea perf: don't load properties and classes for initial data
This commit also fixed the issue that some pages such as "Status" will
be shown as lower cased.
2024-02-07 03:45:35 +08:00
Tienson Qin
1a040b01de feat: /scheduled and /deadline for db graphs 2024-02-05 23:54:46 +08:00
Tienson Qin
fa9d5fac1e Load whole data for shorter pages 2024-02-03 19:02:25 +08:00
Tienson Qin
873fdc6339 enhance: lazy load all pages 2024-02-03 12:42:45 +08:00
Tienson Qin
2bc2e9e8ca fix: indent on file graphs 2024-02-03 10:54:27 +08:00
Tienson Qin
8f845a7145 attach block left and parent for <pull & <get-block 2024-02-03 07:09:52 +08:00
Tienson Qin
2e1e3572df fix: add db requests for outliner core tx 2024-02-02 03:46:12 +08:00
Tienson Qin
620ad617f9 fix: load closed values 2024-02-01 17:18:23 +08:00
Tienson Qin
3dfe5c5751 fix: load all pages and files when app starts 2024-02-01 17:04:44 +08:00
Tienson Qin
c9f52e8a9b fix: ref not shows when starting the app 2024-02-01 04:29:32 +08:00
Tienson Qin
c1a15c0708 Merge branch 'feat/db' into perf/lazy-load-data 2024-02-01 03:58:04 +08:00
Tienson Qin
1b99388f54 fix: can't save file 2024-02-01 02:57:28 +08:00
Tienson Qin
420e361381 fix: async <get-file and <get-files 2024-01-30 21:17:18 +08:00
Tienson Qin
7b754c672f fix: page unlinked refs
Use search indice to search first and then filter the result by the
db worker. This avoids using `d/datoms` which loads all the blocks to
the memory.
2024-01-30 18:31:06 +08:00
Tienson Qin
1e6daf6563 fix: page/block refs and refs count 2024-01-30 17:10:38 +08:00
Gabriel Horner
28e637e855 chore: merge 2 new property fns together
refactor possible since page-name-sanity-lc in common-util
2024-01-29 09:55:34 -05:00
Tienson Qin
b5b85dd44d fix: lazy load whiteboards 2024-01-29 18:54:52 +08:00
Tienson Qin
eba0fe9545 Lazy load block container 2024-01-29 15:25:42 +08:00
Tienson Qin
752f88de19 Async get block and children 2024-01-29 14:48:41 +08:00
Tienson Qin
3addb5905b perf: load partial data when loading a graph
Instead of all the datoms
2024-01-29 13:17:37 +08:00
Gabriel Horner
9f4ffbe750 fix lint by refactoring large var 2024-01-24 15:52:24 -05:00
Gabriel Horner
22ed198c29 enhance: add icons to task status
also adds support for properties in initial-data to reference each other
via uuid
2024-01-24 15:39:46 -05:00
Tienson Qin
d1af653273 chore: ldb/transact! should takes repo instead of conn for UI 2024-01-24 17:35:09 +08:00
Gabriel Horner
77bc1d5d6b chore: update better-sqlite3 and mldoc in deps to match app 2024-01-23 11:36:32 -05:00
Gabriel Horner
0768809a86 fix: lints and disable intermittent failing test
- Reverted config/db-based-graph? check in a db only namespace
- Removed unused ns as it appears we just used another fn instead.
- /cc @RCmerci on failing test
2024-01-23 10:48:14 -05:00
Tienson Qin
575624c650 chore: revert inline tags 2024-01-23 21:45:54 +08:00
Tienson Qin
8204c93977 fix: outliner dep test 2024-01-22 12:21:42 +08:00
Tienson Qin
036f1b5ab7 feat: /todo/other-status and /urgent/other-priority to set property 2024-01-19 02:36:23 +08:00
Tienson Qin
8a846f6f81 feat: add task class and default properties status and priority 2024-01-18 23:16:08 +08:00
Gabriel Horner
095894b255 Revert most of "fix: new db graph couldn't be created"
Last commit removed built-in pages and was noticed on imports.
Previous bug of new db graphs leading to a blank screen no longer
occurred after I printed transact! transactions
2024-01-16 16:05:02 -05:00
Gabriel Horner
d232a8e08c fix: new db graph couldn't be created
Caused by duplicate transacting of default-pages. Also
removed reference to deleted ns
2024-01-16 11:37:25 -05:00
Gabriel Horner
34222b3436 chore: bump nbb-logseq that points to upstream nbb 2024-01-15 18:07:49 -05:00
Gabriel Horner
2305d09cc8 chore: DRY up duplicated vars and needless/confusing aliases 2024-01-15 16:51:27 -05:00
Gabriel Horner
ca020fcdb3 fix: loading all new deps namespaces in nbb
- bb test:load-all-namespaces-with-nbb now passes for all deps
- Updated nbb-logseq to support cljs.core/Atom
- Adjusted datascript.impl.entity with previous datascript.db require
  so that correct loading occurs in nbb
- fixed missing deps in logseq.outliner
- Converted a minor cljs.spec to malli since malli is nbb compatible
- Changed exists? to some? since they are functionally equivalent for
  the given arg and some? is nbb compatible
2024-01-15 12:43:16 -05:00
Tienson Qin
774a159451 fix: history e2e tests 2024-01-14 16:55:07 +08:00
Tienson Qin
b55e4e7380 fix: db requests could be dropped if some requests not finished yet 2024-01-14 12:55:55 +08:00
Gabriel Horner
66f57104ab fix: fail-invalid? option on in-app db validation
alert can't be called in a worker
2024-01-12 15:12:18 -05:00
Gabriel Horner
690764aa52 fix: unused time dep and duplicated time-ms fns
cljs-time shouldn't be added to nbb.edn since it's already included in
nbb-logseq (since parts of it aren't nbb compatible). duplicated
time-ms fns can now be removed since they are available to all deps
from common dep
2024-01-12 10:41:22 -05:00
Gabriel Horner
98dd1c2b5c fix: published graphs failing on class pages
Bring back get-namespace-pages impl that doesn't add :block/file
to db graphs. :block/file isn't used in db graphs.
Also got kondo lint back to green
2024-01-11 16:40:13 -05:00
Tienson Qin
d5e62ae21f fix: ensure linear sequential transactions for the db worker 2024-01-12 04:14:22 +08:00
Gabriel Horner
cdddce0120 fix deps db test and most lints
Also deleted duplicated gp-util.{page-ref,block-ref} files that were moved to common
and moved a related test to common dep
2024-01-11 14:35:04 -05:00
Gabriel Horner
a81e18e9a6 fix: update nbb-logseq and make entity-plus nbb compatible
deps can now load in nbb and all nbb tests pass except for db
2024-01-11 13:10:06 -05:00
rcmerci
16f1f448db fix malli_schema for asset-block 2024-01-11 18:09:11 +08:00
rcmerci
2dca1b6df8 feat(rtc): add schema for asset 2024-01-11 14:08:18 +08:00
Tienson Qin
264f7dd40a Merge branch 'feat/db' into refactor/pipeline-worker 2024-01-11 02:57:37 +08:00
Tienson Qin
a550090249 Remove assert 2024-01-11 01:02:13 +08:00
Gabriel Horner
0d4b46be71 fix: remove deleted :block/unknown schema
:block/unknown was a side effect of the last storage approach
2024-01-10 09:20:50 -05: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