diff --git a/frontend/src/components/ListSpaceSidebar.vue b/frontend/src/components/ListSpaceSidebar.vue
deleted file mode 100644
index 71fda20c..00000000
--- a/frontend/src/components/ListSpaceSidebar.vue
+++ /dev/null
@@ -1,550 +0,0 @@
-
-
-
-
-
-
-
diff --git a/frontend/src/components/ShareKnowledgeBaseDialog.vue b/frontend/src/components/ShareKnowledgeBaseDialog.vue
deleted file mode 100644
index 6f537405..00000000
--- a/frontend/src/components/ShareKnowledgeBaseDialog.vue
+++ /dev/null
@@ -1,488 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('organization.share.noShares') }}
-
-
-
-
-
- {{ share.organization_name }}
-
- {{ share.permission === 'editor' ? $t('organization.share.permissionEditable') : $t('organization.share.permissionReadonly') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/frontend/src/components/css/resource-card.less b/frontend/src/components/css/resource-card.less
index dc2aed11..3872f974 100644
--- a/frontend/src/components/css/resource-card.less
+++ b/frontend/src/components/css/resource-card.less
@@ -56,7 +56,6 @@
}
.card-title:has(.card-title-text) { display: flex; align-items: center; gap: 6px; }
.card-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
- .permission-tag { flex-shrink: 0; }
.card-content {
flex: 1;
min-width: 0;
@@ -86,7 +85,6 @@
border-top: 1px solid color-mix(in srgb, var(--td-component-stroke) 60%, transparent);
}
.feature-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
- .card-time { color: var(--td-text-color-placeholder); font-size: var(--app-text-sm); }
.builtin-avatar,
.org-avatar,
@@ -100,7 +98,6 @@
}
.more-wrap,
- .card-more-btn,
.shared-detail-trigger {
position: absolute;
right: 8px;
diff --git a/frontend/src/views/agent/AgentList.vue b/frontend/src/views/agent/AgentList.vue
index 523c71d4..ba799407 100644
--- a/frontend/src/views/agent/AgentList.vue
+++ b/frontend/src/views/agent/AgentList.vue
@@ -73,8 +73,7 @@
:key="agent.isMine ? agent.id : `shared-${agent.share_id}`">
-
-
-
-
-
-
-
-
-
- {
return !!s && !RESERVED_SCOPES.has(s)
})
-const sharedAgentsByOrg = computed(() => {
- const orgId = spaceSelection.value
- if (orgId === 'all' || orgId === 'mine') return []
- return sharedAgents.value.filter(s => s.organization_id === orgId)
-})
-
// 空间视角:该空间内全部智能体(含我共享的),选中空间时请求新接口
const spaceAgentsList = ref
([])
const spaceAgentsLoading = ref(false)
@@ -1177,7 +1160,6 @@ onUnmounted(() => {
window.removeEventListener('openAgentEditor', handleOpenAgentEditor as EventListener)
})
-
const handleCardClick = (agent: DisplayAgent | AgentWithUI) => {
if (openMoreAgentId.value === agent.id) return
// Track recency before any branch — Recents should reflect what the
@@ -1295,7 +1277,7 @@ function showAgentOriginBadge(agent: { created_by?: string; creator_name?: strin
section: agentSectionOf(agent),
variant: agentOriginVariant(agent),
creatorName: (agent as any).creator_name,
- showSectionHeaders: showShareGroupHeaders.value,
+ showSectionHeaders: true,
})
}
@@ -1304,20 +1286,15 @@ function showAgentBuiltinBadge(agent: { is_builtin?: boolean }): boolean {
return shouldShowResourceOriginBadge({
section: agentSectionOf(agent),
variant: 'mine',
- showSectionHeaders: showShareGroupHeaders.value,
+ showSectionHeaders: true,
})
}
-// 共享 agent 的可编辑/只读分组开关,与 KB 列表逻辑保持一致:仅对
-// contributor / editor 中间档展示分组标题。Viewer / Admin+ 不分组。
+// 按共享资源的实际权限划分可编辑和只读分组。
const AGENT_EDITABLE_PERMS = new Set(['admin', 'editor'])
function isSharedAgentEditable(perm: string | undefined): boolean {
return !!perm && AGENT_EDITABLE_PERMS.has(perm)
}
-// 与 KnowledgeBaseList 同理:分组标题对所有角色生效,依据"创建者 + 来源"
-// 这种客观信息分段,不再按当前用户的可写权限筛掉。
-const showShareGroupHeaders = computed(() => true)
-
// 同空间、非当前用户创建的 Agent 分组标题。
// contributor / viewer 在本空间里对这些 Agent 没有写权限,所以打"仅查看";
// admin / owner 对整个空间都有编辑权限,"仅查看"反而误导,统一改成
@@ -1497,11 +1474,6 @@ const handleEditorSuccess = (agent?: CustomAgent) => {
fetchList(true)
}
-const formatDate = (dateStr: string) => {
- if (!dateStr) return ''
- return formatStringDate(new Date(dateStr))
-}
-
// 暴露创建方法供外部调用
const openCreateModal = () => {
editingAgent.value = null
@@ -1554,17 +1526,6 @@ watch(keyword, () => { collapsedAgentSections.value = new Set() })
background: var(--td-bg-color-container);
}
-.shared-by-me-badge {
- display: inline-flex;
- align-items: center;
- padding: 2px 6px;
- background: color-mix(in srgb, var(--td-brand-color) 10%, transparent);
- border-radius: var(--app-radius-xs);
- font-size: var(--app-text-sm);
- color: var(--td-brand-color);
- margin-left: 6px;
-}
-
.header {
display: flex;
align-items: center;
@@ -1642,39 +1603,6 @@ watch(keyword, () => { collapsedAgentSections.value = new Set() })
}
}
-.agent-tabs {
- display: flex;
- align-items: center;
- gap: 24px;
- border-bottom: 1px solid var(--td-component-stroke);
- margin-bottom: 20px;
-
- .tab-item {
- padding: 12px 0;
- cursor: pointer;
- color: var(--td-text-color-secondary);
- font-family: var(--app-font-family);
- font-size: var(--app-text-base);
- font-weight: 400;
- transition: color var(--app-motion-base);
-
- &:hover {
- color: var(--td-text-color-primary);
- }
-
- &.active {
- color: var(--td-brand-color);
- font-weight: 600;
- border-bottom: 2px solid var(--td-brand-color);
- margin-bottom: -1px;
- }
- }
-}
-
-.shared-badge {
- flex-shrink: 0;
-}
-
.card-bottom-source {
display: inline-flex;
align-items: center;
@@ -1699,38 +1627,11 @@ watch(keyword, () => { collapsedAgentSections.value = new Set() })
flex-shrink: 0;
}
-.custom-badge {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- padding: 2px 8px;
- border-radius: var(--app-radius-lg);
- background: var(--td-bg-color-container-hover);
- color: var(--td-text-color-secondary);
- font-family: var(--app-font-family);
- font-size: var(--app-text-xs);
- font-weight: 500;
- flex-shrink: 0;
-}
-
// 共享给我 · 可编辑 / 仅查看 分组标题,与 KB 列表 .kb-section-header 对齐。
.agent-section-header {
.resource-section-header();
}
-
-@keyframes contentFadeIn {
- from {
- opacity: 0;
- transform: translateY(6px);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
-}
-
.agent-card-wrap {
.resource-card-grid();
}
@@ -1740,22 +1641,8 @@ watch(keyword, () => { collapsedAgentSections.value = new Set() })
.resource-card();
.agent-favorite-star { .resource-favorite-button(); }
-
- .builtin-avatar {
- width: 28px;
- height: 28px;
- border-radius: var(--app-radius-md);
- }
-
- .edit-btn {
- width: 32px;
- height: 32px;
- border-radius: var(--app-radius-md);
- }
}
-
-
.builtin-badge {
display: inline-flex;
align-items: center;
@@ -1771,13 +1658,7 @@ watch(keyword, () => { collapsedAgentSections.value = new Set() })
}
.builtin-avatar {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 32px;
- height: 32px;
border-radius: var(--app-radius-md);
- flex-shrink: 0;
&.agent-emoji {
font-size: var(--app-text-2xl);
@@ -1796,24 +1677,6 @@ watch(keyword, () => { collapsedAgentSections.value = new Set() })
}
}
-.edit-btn {
- display: flex;
- width: 32px;
- height: 32px;
- justify-content: center;
- align-items: center;
- border-radius: var(--app-radius-md);
- cursor: pointer;
- flex-shrink: 0;
- transition: all var(--app-motion-base) ease;
- color: var(--td-text-color-disabled);
-
- &:hover {
- background: var(--td-bg-color-container-hover);
- color: var(--td-brand-color);
- }
-}
-
/* 与知识库卡片内容区一致 */
/* 三个列表卡片统一:描述字体 */
.bottom-left {
@@ -1880,17 +1743,12 @@ watch(keyword, () => { collapsedAgentSections.value = new Set() })
}
}
-
// 删除确认对话框样式
:deep(.t-dialog__position.t-dialog--top) {
padding-top: 40vh !important;
}
-
.resource-list-header();
-@media (prefers-reduced-motion: reduce) {
- .agent-card-wrap { animation: none; }
-}
diff --git a/frontend/src/views/knowledge/KnowledgeBaseList.vue b/frontend/src/views/knowledge/KnowledgeBaseList.vue
index 9057958a..1cccc689 100644
--- a/frontend/src/views/knowledge/KnowledgeBaseList.vue
+++ b/frontend/src/views/knowledge/KnowledgeBaseList.vue
@@ -77,12 +77,9 @@
仅查看 / 共享给我)各自打自己的标题;原本的「其他」过渡标题
在 per-user 置顶模型下已无意义,删除以免和具体子段标题叠加。 -->
-
-
-
-
-