mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
refactor: set parent for any page, not just tags (#11494)
* refactor: replace :class/parent with :logseq.property/parent * replace :class/schema.properties with property.class/properties * enhance: display schema properties directly in Tag properties * tag properties style tweaks * fix: properties view context * fix: limit parent to be classes or pages depends on the current node * enhance: display ancestors in Parent * fix: ancestors * enhance: display tag properties always for tags * enhance: display tag block container instead of properties area * enhance: show add property as popup instead of dialog * fix: tag parent must be a tag * enhance: display properties in the right sidebar * fix: tags style * fix: icon style * fix: positioned icons * fix: lint * fix: tests * fix: remove properties from rtc watched attrs * fix: graph-parser tests * enhance: style tweaks * enhance: page/create parses tags from user-input title * enhance(ux): [[ref]] followed by # (no whitespace) to add tags * fix: tests * fix: graph-parser lint and tests * fix: allow tagged nodes to be parents * enhance(ux): display tag property descriptions Also, make it editable.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
(docs-graph-helper/docs-graph-assertions @conn graph-dir files)
|
||||
|
||||
(testing "Additional counts"
|
||||
(is (= 57882 (count (d/datoms @conn :eavt))) "Correct datoms count"))
|
||||
(is (= 57860 (count (d/datoms @conn :eavt))) "Correct datoms count"))
|
||||
|
||||
(testing "Asts"
|
||||
(is (seq asts) "Asts returned are non-zero")
|
||||
|
||||
@@ -450,7 +450,7 @@
|
||||
|
||||
(is (= #{:user.property/url :user.property/sameas :user.property/rangeincludes}
|
||||
(->> (d/entity @conn :user.class/Property)
|
||||
:class/schema.properties
|
||||
:logseq.property.class/properties
|
||||
(map :db/ident)
|
||||
set))
|
||||
"Properties are correctly inferred for a class")
|
||||
@@ -502,7 +502,7 @@
|
||||
set))
|
||||
"All classes are correctly defined by :type")
|
||||
|
||||
(is (= "CreativeWork" (get-in (d/entity @conn :user.class/Movie) [:class/parent :block/title]))
|
||||
(is (= "CreativeWork" (get-in (d/entity @conn :user.class/Movie) [:logseq.property/parent :block/title]))
|
||||
"Existing page correctly set as class parent")
|
||||
(is (= "Thing" (get-in (d/entity @conn :user.class/CreativeWork) [:class/parent :block/title]))
|
||||
(is (= "Thing" (get-in (d/entity @conn :user.class/CreativeWork) [:logseq.property/parent :block/title]))
|
||||
"New page correctly set as class parent")))
|
||||
|
||||
Reference in New Issue
Block a user