Gabriel Horner
0aa4bda66c
fix: inlined db-based-graph? calls in db-property
...
Addressed fixmes for db-based-graph fns that were inlined to prevent
circular dependencies b/n db-property and sqlite-util. Moved multi
graph fns to db-property-util and existing db-property-util to
db-property-build to address this
2024-04-16 14:43:28 -04:00
Tienson Qin
81e5d5f68f
fix: remove frontend.config usage from graph parser dep
2024-04-11 23:02:50 +08:00
Tienson Qin
9f9bfbc5e6
Merge branch 'feat/db' into refactor/db-remove-block-name-unique
2024-04-08 23:56:46 +08:00
Tienson Qin
6df866a2d1
fix: handle more whiteboard properties
2024-04-08 22:56:14 +08:00
Tienson Qin
2940e86d74
fix: save whiteboard
2024-04-08 22:54:56 +08:00
charlie
618f3bd107
Merge branch 'master' into feat/db
2024-04-08 19:00:51 +08:00
Tienson Qin
cd38e0b9f9
fix: calculate :block/path-refs when adding new graph or re-index
2024-04-08 17:24:51 +08:00
Tienson Qin
210be5aaca
fix: creating redundant pages when editing a block
2024-04-08 01:25:48 +08:00
Tienson Qin
a324d845b2
fix: don't parse refs from quoted string
2024-04-07 21:35:14 +08:00
Tienson Qin
b5f0f58efc
fix: missing refs for property text values when creating a page
2024-04-07 21:35:14 +08:00
Tienson Qin
0b49d09fb1
fix: db schema validate
2024-04-07 17:26:58 +08:00
Tienson Qin
f52993ec6d
fix: tests and lint warnings
2024-04-07 14:27:05 +08:00
Tienson Qin
6eb6e60b55
Bring back namespaces/page merge/nested pages
2024-04-07 13:48:55 +08:00
Tienson Qin
0bc8d1c3b1
Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique
2024-04-05 15:16:13 +08:00
Tienson Qin
ac31842cec
Revert "Remove :block/macros"
...
This reverts commit 21d550de12
.
2024-04-05 15:12:56 +08:00
Tienson Qin
ea98a1623e
Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique
2024-04-05 09:56:39 +08:00
Gabriel Horner
7c1f52d2a4
chore: add format to build-new-page
...
every use of it was adding it manually
2024-04-04 09:25:20 -04:00
Tienson Qin
8054150eef
fix: unit tests
2024-04-04 15:57:49 +08:00
Tienson Qin
6167abe160
fix: extract page from whiteboard edn
2024-04-04 15:57:49 +08:00
Tienson Qin
1f32893547
fix most issues on whiteboards
2024-04-04 15:57:48 +08:00
Tienson Qin
9df8918f94
Remove more :block/name lookup ref usage
2024-04-04 15:57:48 +08:00
Tienson Qin
60d4fca0ba
wip: remove :block/name uniqueness for db based graphs
...
This PR also remove supports for:
1. merge pages when renaming a page to existing page
2. namespaces such as a/b/c
3. nested page such as [[a [[nested page]]]]
Pages merge might be added back depends on RTC, but it should be
decoupled from renaming, otherwise it's too complex.
Namespaces and nested pages have been contributed some critical bugs
that lead data-loss, they're so complex together with page alias,
it's just impossible to have a good test coverage and ensure the app
is stable, especially when page rename and RTC.
2024-04-04 15:57:48 +08:00
Tienson Qin
7084b53dad
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-03 20:29:11 +08:00
Gabriel Horner
12c667fabb
Update nbb-logseq to latest datascript
2024-04-02 09:36:28 -04:00
Gabriel Horner
93846fe62f
enhance: add import support for priority, scheduled and deadline
...
fixes LOG-3030
2024-04-01 12:31:39 -04:00
Gabriel Horner
745fcdb7a3
enhance: import tasks
...
Part of LOG-3030
2024-04-01 10:48:25 -04:00
Tienson Qin
1987c455e7
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-01 15:47:43 +08:00
Tienson Qin
d48e45eaa7
enhance: property db ident doesn't allow #
2024-04-01 14:53:25 +08:00
Tienson Qin
02643a1561
fix: tests
2024-04-01 14:25:39 +08:00
Tienson Qin
21d550de12
Remove :block/macros
2024-04-01 14:22:15 +08:00
Gabriel Horner
1d014c1326
fix graph-parser lint
2024-03-29 17:09:30 -04:00
Tienson Qin
441dda79c8
fix: typo
2024-03-30 05:02:01 +08:00
Gabriel Horner
de89e65129
chore: remove unused fns and move file graph fn
2024-03-29 16:32:23 -04:00
Gabriel Horner
f728b7b9f6
fix: multiple bugs with built-in pages, fixes LOG-3046
...
- file graph wasn't creating built in pages
- 3 places where db graphs were incorrectly using file graph built in
page names
- file graphs creating default pages with incorrect format
2024-03-29 16:21:19 -04:00
Gabriel Horner
e08e52acd3
enhance: db graph importer supports optional parent class property
2024-03-29 10:37:09 -04:00
Tienson Qin
958507262e
Merge branch 'feat/db' into refactor/db-properties-schema
2024-03-29 15:51:28 +08:00
Gabriel Horner
2e580df0da
chore: rename exporter built-in property
...
use dashes like other built-ins
2024-03-28 14:41:37 -04:00
Gabriel Horner
e0c6cc1514
fix: deprecate :macros property for db graphs
...
It's not used much and would require building a new UI since
we don't have one yet for a :map type property
2024-03-28 09:13:39 -04:00
Tienson Qin
41e2944720
Replace more property name usage with db/ident
2024-03-28 20:41:12 +08:00
Gabriel Horner
eecb510ccb
enhance: built-in properties are indexed by :db/ident
...
built-in-properties are identified by their :db/ident instead
of :block/name. This removes reliance on :block/name and allows
us to consistently use namespaces when identifying built-in properties
:visible was renamed to :public? and is now included in :block/schema to
allow for querying. Also added a couple more new graph tests and tweaked
CI for db dep
2024-03-27 15:03:18 -04:00
Gabriel Horner
9b8540921e
enhance: more property helper fns uses db-ident
...
instead of name
2024-03-25 16:34:51 -04:00
Tienson Qin
eae35d60e4
fix: rebuild block refs & path-refs after downloading a remote graph
...
Fixes LOG-3115
2024-03-21 16:45:00 +08:00
Gabriel Horner
67a7a0a3e9
enhance: Add default namespace of :logseq.property
...
for db/ident of built-in-properties. Namespacing block identities will
be important for future features. Adding namespacing also fixed some
hidden coupling between identity and name. Also converted a couple more
related :block/name queries to use :db/ident to slowly get us closer to
named blocks
2024-03-15 18:37:15 -04:00
Gabriel Horner
345fd96e2a
enhance: full file graph import works from CLI
...
Also cleaned up naming, added docstrings and fixed a bug that
failed import hard when user didn't input any tag-classes or
property-classes
2024-03-13 16:23:49 -04:00
Gabriel Horner
2f599919fb
fix: favorites not importing
...
Also made underlying fns reusable from UI and nbb compatible.
Fixes LOG-3031
2024-03-12 17:57:47 -04:00
Gabriel Horner
96b35c0252
Update nbb-logseq to stub in cljs-bean.transit
2024-03-11 15:19:50 -04:00
Andelf
329818e4c4
fix(db): css assets loading
...
- move make-asset-url to assets-handler
- handle assets for db-based graph in add-style-if-exists!
2024-03-11 18:38:48 +08:00
Gabriel Horner
c6e358c983
fix: outliner test failing b/c not nbb compatible
...
bumped to latest nbb-logseq which is
2024-03-06 11:06:18 -05:00
Gabriel Horner
09816b6427
enhance: assets can be imported on CLI
...
Also add individual asset error handling, like is done for doc files
2024-03-05 17:05:18 -05:00
Gabriel Horner
9669755cab
enhance: detect and add properties to imported classes
...
fixes LOG-3069
2024-03-04 23:05:06 -05:00