Tienson Qin пре 1 година
родитељ
комит
53a7b92b3c

+ 1 - 1
deps/db/src/logseq/db/frontend/malli_schema.cljs

@@ -280,7 +280,7 @@
          [:type (apply vector :enum (into db-property-type/internal-built-in-property-types
          [:type (apply vector :enum (into db-property-type/internal-built-in-property-types
                                           db-property-type/user-built-in-property-types))]
                                           db-property-type/user-built-in-property-types))]
          [:public? {:optional true} :boolean]
          [:public? {:optional true} :boolean]
-         [:view-context {:optional true} [:enum :page :block :class :never]]
+         [:view-context {:optional true} [:enum :page :block :class :property :never]]
          [:shortcut {:optional true} :string]]
          [:shortcut {:optional true} :string]]
         property-common-schema-attrs))]]
         property-common-schema-attrs))]]
     property-attrs
     property-attrs

+ 3 - 1
deps/db/test/logseq/db/sqlite/create_graph_test.cljs

@@ -41,7 +41,9 @@
                  (remove #(= "closed value" (:block/type %)) closed-value-ents))
                  (remove #(= "closed value" (:block/type %)) closed-value-ents))
               "All property names that contain a '.' are closed values")
               "All property names that contain a '.' are closed values")
           (is (= #{}
           (is (= #{}
-                 (set/difference closed-value-properties (set default-idents)))
+                 (set/difference
+                  (set (remove #{:logseq.property/color} closed-value-properties))
+                  (set default-idents)))
               "All closed values start with a prefix that is a property name"))))))
               "All closed values start with a prefix that is a property name"))))))
 
 
 (deftest new-graph-marks-built-ins
 (deftest new-graph-marks-built-ins