Commit Graph

257 Commits

Author SHA1 Message Date
Tienson Qin
1a040b01de feat: /scheduled and /deadline for db graphs 2024-02-05 23:54:46 +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
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
Gabriel Horner
3cb980bf91 fix: invalid pages and whiteboard pages from import
- some pages are missing block/journal? and block/original-name
- removed another file graph only attribute
- fixed whiteboard block schema missing :block/path-refs
- pulled out importing block to its own fn

Part of LOG-2990
2024-01-09 16:03:49 -05:00
Tienson Qin
2d245295a7 fix: outliner core tests 2024-01-10 04:15:09 +08:00
Tienson Qin
9f66e6d7e7 fix: don't fix pages for whiteboards and hidden pages 2024-01-09 16:04:03 +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
0957cb15b3 fix: built-in props weren't persisted to opfs
and didn't show up in new graphs. Fixes LOG-2998. Issue was that
e6a464e64f introduced transacting built-in
properties twice. Since the first transaction doesn't send tx-data to
the db-worker (an issue with pipeline/invoke-hooks it seems), the 2nd tx
results in missing property info including name. Removing this
incorrectly setup first tx allows the original one to successfully send
initial property data to db-worker
2024-01-08 11:26:22 -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
38ba0dfa7c Move entity plus to db dep 2024-01-08 15:35:09 +08:00
Tienson Qin
9597330d9f Remove db/state dep on page handler 2024-01-07 17:24:54 +08: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
9194a671fd Move outliner core to its own dep 2024-01-03 18:02:48 +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
670bc3a5c7 enhance: enable entity transaction 2024-01-03 14:42:44 +08:00
Gabriel Horner
4fd0b65639 bump nbb-logseq to use datascript with dirty flag fix 2024-01-02 17:07:11 -05:00
Gabriel Horner
ff5430cfd7 fix: db lint and tests from #10683 2024-01-02 15:42:36 -05:00
Gabriel Horner
56a81f9671 fix: allow UI and validation to know what property types have :position
this is done by configuring user-built-in-allowed-schema-attributes
and then using the helper fn to check it
Fix LOG-2955
2024-01-02 15:12:36 -05:00
Tienson Qin
e579f668eb wip: remove dependency on frontend.db for outliner core 2024-01-02 23:23:49 +08:00