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:
Tienson Qin
2024-09-03 07:32:38 +08:00
committed by GitHub
parent cf7b423b43
commit c7677c813e
49 changed files with 712 additions and 732 deletions

View File

@@ -38,10 +38,10 @@ but when eval `(:block/raw-title block-entity)`, return raw title of this block"
"Used to store key-value, the value could be anything, e.g. {:db/ident :logseq.kv/xxx :kv/value value}"
:any)
(sr/defkeyword :class/parent
(sr/defkeyword :logseq.property/parent
"A class's parent class")
(sr/defkeyword :class/schema.properties
(sr/defkeyword :logseq.property.class/properties
"Class properties that all of its objects can use, notice that it's different from this class's own properties.")
(sr/defkeyword :block/closed-value-property