An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Database kanban view https://github.com/siyuan-note/siyuan/issues/8873
Danielbdff7a74c17b
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex deb5520dc1..15278a95cb 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -721,6 +721,7 @@ func ChangeAttrViewLayout(blockID, avID string, layout av.LayoutType) (err errorreturn}+ oldLayout := view.LayoutTypeview.LayoutType = newLayoutswitch newLayout {@@ -734,7 +735,7 @@ func ChangeAttrViewLayout(blockID, avID string, layout av.LayoutType) (err error}view.Table = av.NewLayoutTable()- switch view.LayoutType {+ switch oldLayout {case av.LayoutTypeGallery:for _, field := range view.Gallery.CardFields {view.Table.Columns = append(view.Table.Columns, &av.ViewTableColumn{BaseField: &av.BaseField{ID: field.ID}})@@ -754,7 +755,7 @@ func ChangeAttrViewLayout(blockID, avID string, layout av.LayoutType) (err error}view.Gallery = av.NewLayoutGallery()- switch view.LayoutType {+ switch oldLayout {case av.LayoutTypeTable:for _, col := range view.Table.Columns {view.Gallery.CardFields = append(view.Gallery.CardFields, &av.ViewGalleryCardField{BaseField: &av.BaseField{ID: col.ID}})@@ -774,7 +775,7 @@ func ChangeAttrViewLayout(blockID, avID string, layout av.LayoutType) (err error}view.Kanban = av.NewLayoutKanban()- switch view.LayoutType {+ switch oldLayout {case av.LayoutTypeTable:for _, col := range view.Table.Columns {view.Kanban.Fields = append(view.Kanban.Fields, &av.ViewKanbanField{BaseField: &av.BaseField{ID: col.ID}})