Fase B1: chain journal pages with previous/next graph links
Adds :logseq.property.journal/previous and /next (built-in, hidden, single-cardinality node refs) and maintains them in logseq.outliner.page/create whenever a new journal page is created. Filling a gap between two already-linked journals re-links both neighbors around the new page instead of just appending. A migration backfills the chain across all existing journal pages ordered by day.
This commit is contained in:
13
deps/db/src/logseq/db/frontend/property.cljs
vendored
13
deps/db/src/logseq/db/frontend/property.cljs
vendored
@@ -265,11 +265,24 @@
|
||||
:public? false
|
||||
:hide? true}}
|
||||
|
||||
:logseq.property.citation/target {:title "Cited page or block"
|
||||
:schema {:type :node}}
|
||||
:logseq.property.citation/context {:title "Citation context"
|
||||
:schema {:type :string}}
|
||||
|
||||
;; Journal props
|
||||
:logseq.property.journal/title-format {:title "Title Format"
|
||||
:schema
|
||||
{:type :string
|
||||
:public? false}}
|
||||
:logseq.property.journal/previous {:title "Previous journal"
|
||||
:schema {:type :node
|
||||
:hide? true
|
||||
:public? false}}
|
||||
:logseq.property.journal/next {:title "Next journal"
|
||||
:schema {:type :node
|
||||
:hide? true
|
||||
:public? false}}
|
||||
|
||||
:logseq.property/choice-checkbox-state {:title "Choice checkbox state"
|
||||
:schema {:type :checkbox
|
||||
|
||||
2
deps/db/src/logseq/db/frontend/schema.cljs
vendored
2
deps/db/src/logseq/db/frontend/schema.cljs
vendored
@@ -30,7 +30,7 @@
|
||||
(map (juxt :major :minor)
|
||||
[(parse-schema-version x) (parse-schema-version y)])))
|
||||
|
||||
(def version (parse-schema-version "65.33"))
|
||||
(def version (parse-schema-version "65.36"))
|
||||
|
||||
(defn major-version
|
||||
"Return a number.
|
||||
|
||||
Reference in New Issue
Block a user