enhance: able to edit property value of :string type

able to set plural form for tags
This commit is contained in:
Tienson Qin
2026-01-04 20:19:24 +08:00
parent 164d1c908c
commit e5521da233
8 changed files with 96 additions and 6 deletions

View File

@@ -745,7 +745,13 @@
{})
(map (fn [[class-id entities]]
(let [class (d/entity db class-id)
title (pluralize-class-title (:block/title class))]
custom-title (when-let [custom (:logseq.property.class/title-plural class)]
(if (string? custom)
custom
(db-property/property-value-content custom)))
title (if (string/blank? custom-title)
(pluralize-class-title (:block/title class))
custom-title)]
{:title title
:class (-> (into {} class)
(assoc :db/id (:db/id class)))

View File

@@ -182,6 +182,10 @@
:cardinality :many
:public? true
:view-context :never}}
:logseq.property.class/title-plural {:title "Plural title"
:schema {:type :string
:public? true
:view-context :class}}
:logseq.property/hide-empty-value {:title "Hide empty value"
:schema {:type :checkbox
:public? true

View File

@@ -37,7 +37,7 @@
(map (juxt :major :minor)
[(parse-schema-version x) (parse-schema-version y)])))
(def version (parse-schema-version "65.19"))
(def version (parse-schema-version "65.20"))
(defn major-version
"Return a number.

View File

@@ -584,7 +584,6 @@
(= existing-value v'))]
(throw-error-if-self-value block v' ref?)
(prn :debug :value-matches? value-matches?)
(when-not value-matches?
(raw-set-block-property! conn block property v'))))))))