Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958

Daniel641db503f0f0
diff --git a/app/src/protyle/render/av/rollup.ts b/app/src/protyle/render/av/rollup.ts
index e1a003ce3e..d37843ade7 100644
--- a/app/src/protyle/render/av/rollup.ts
+++ b/app/src/protyle/render/av/rollup.ts
@@ -37,7 +37,7 @@ const genSearchList = (element: Element, keyword: string, avId: string, cb?: ()
keyword
}, (response) => {
let html = "";
- response.data.nonRelationKeys.forEach((item: IAVColumn, index: number) => {
+ response.data.keys.forEach((item: IAVColumn, index: number) => {
html += `<div class="b3-list-item b3-list-item--narrow${index === 0 ? " b3-list-item--focus" : ""}" data-col-id="${item.id}">
${item.icon ? unicode2Emoji(item.icon, "b3-list-item__graphic", true) : `<svg class="b3-list-item__graphic"><use xlink:href="#${getColIconByType(item.type)}"></use></svg>`}
${genIconHTML()}
diff --git a/kernel/api/av.go b/kernel/api/av.go
index 96be46bba5..c58f066faf 100644
--- a/kernel/api/av.go
+++ b/kernel/api/av.go
@@ -40,7 +40,7 @@ func searchAttributeViewNonRelationKey(c *gin.Context) {
nonRelationKeys := model.SearchAttributeViewNonRelationKey(avID, keyword)
ret.Data = map[string]interface{}{
- "nonRelationKeys": nonRelationKeys,
+ "keys": nonRelationKeys,
}
}
@@ -58,7 +58,7 @@ func searchAttributeViewRelationKey(c *gin.Context) {
relationKeys := model.SearchAttributeViewRelationKey(avID, keyword)
ret.Data = map[string]interface{}{
- "relationKeys": relationKeys,
+ "keys": relationKeys,
}
}