Gabriel Horner
514b5b5d56
fix: numbered list in db graphs
2024-04-05 15:00:17 -04:00
Gabriel Horner
e7bd84850d
chore: clean up repeated uses of db attribute properties
2024-04-05 14:04:33 -04:00
Gabriel Horner
38849bf706
chore: cleanup different definitions of property
...
Also fixed some outdated docstrings
2024-04-05 13:27:39 -04:00
Gabriel Horner
6045969179
fix: db tests and rename empty-placeholder to
...
be consistent with other ident namespaces
2024-04-05 09:36:05 -04: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
Tienson Qin
04b00322a3
fix: add class property
2024-04-05 09:47:23 +08:00
Gabriel Horner
14a3e5287b
enhance: ident validation
...
block properties and class idents now have specific validation.
Also cleaned up overlapping ident definitions and updated incorrect
docstrings
2024-04-04 21:39:10 -04:00
Gabriel Horner
608d627544
fix: add back properties validation
...
and fix closed validation. Also temporarily comment out properties graph parts
that are still invalid
2024-04-04 21:09:28 -04:00
Tienson Qin
b096b4673c
fix: use :entity type instead of :uuid for ref type values
2024-04-04 16:58:24 -04: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
Gabriel Horner
3e504f5ab9
dev: add more tests for page-property rule
2024-04-04 09:22:39 -04:00
Tienson Qin
eea1858040
fix: can't add alias
2024-04-04 18:16:23 +08:00
Tienson Qin
035fbb46c9
fix: use :entity type instead of :uuid for ref type values
2024-04-04 18:07:26 +08:00
Tienson Qin
8054150eef
fix: unit tests
2024-04-04 15:57:49 +08:00
Tienson Qin
bf539751a8
disable rtc merge tests for now
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
1b32378884
more places to use db eid instead of page name
2024-04-04 15:57:49 +08:00
Tienson Qin
c018f1517d
perfer to use get-page instead of get-first-page-by-name
2024-04-04 15:57:48 +08:00
Tienson Qin
1f32893547
fix most issues on whiteboards
2024-04-04 15:57:48 +08:00
Tienson Qin
4a63f78aa8
fix: zoom into block
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
Gabriel Horner
c448e9a0d0
enhance: convert has-page-property rule with tests
...
also started on page-property rule. Tests confirm that
binding won't be an issue unlike the previous version
of these rules
2024-04-03 17:20:44 -04:00
Gabriel Horner
a8a2afbf4a
chore: allow query script to fetch by entity
2024-04-03 09:00:38 -04:00
Tienson Qin
7084b53dad
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-03 20:29:11 +08:00
rcmerci
a7c8451ce4
refactor(undo): update ns frontend.worker.undo-redo (wip)
2024-04-03 17:59:13 +08:00
Gabriel Horner
661cdc8636
fix: built-in properties with :name have incorrect names
...
Properties like logseq.table.version weren't available to add.
Also added conflict detection on properties graph which is how I
indirectly found this bug
2024-04-02 15:57:33 -04:00
Gabriel Horner
3d49585078
fix: create properties graph and validate graph script
2024-04-02 13:58:52 -04:00
Tienson Qin
298555d36c
Still treat properties as pages
2024-04-02 23:11:52 +08:00
Gabriel Horner
12c667fabb
Update nbb-logseq to latest datascript
2024-04-02 09:36:28 -04:00
Tienson Qin
13a5f91cd4
fix: use property db/ident instead of name
2024-04-02 11:59:57 +08:00
Gabriel Horner
c4fc3a193e
fix: new graph should be valid
...
closed values were invalid. Also fixed a couple db tests
2024-04-01 16:40:01 -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
Tienson Qin
0c8639994d
fix: db malli schema
2024-04-01 23:35:49 +08: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
54989b47b8
fix: tags
2024-04-01 15:22:20 +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
Tienson Qin
76464cdbe5
fix: closed value test
2024-04-01 14:02:13 +08:00
Tienson Qin
8d6916cfd7
wip: fix property-related tests
2024-04-01 12:24:41 +08:00
Tienson Qin
fd36e0cebd
fix: malli schema for property
2024-04-01 11:07:33 +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
Tienson Qin
a2da60623f
fix: heading
2024-03-30 04:36:24 +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