feat(frontend): 增强连接树搜索与资源管理器布局

为连接管理页左侧标签树新增独立搜索能力,支持命中节点、
祖先链路过滤与自动展开,提升大规模连接下的检索效率。

同步优化树头部为资源管理器式布局,并强化节点计数高亮;
补充中英日文案,同时归档并更新 helloagents 记录。
This commit is contained in:
yinjianm
2026-03-25 23:27:00 +08:00
parent 1662b2b9e8
commit a6935a9c12
12 changed files with 94 additions and 46 deletions
@@ -1079,13 +1079,17 @@ onBeforeUnmount(() => {
'w-full flex items-center justify-between gap-3 rounded-xl border px-3 py-2.5 text-left transition-all duration-150',
getScopeNodeClass(node.id)
]"
:class="getTreeCountClass(node)"
>
<span class="flex items-center gap-2 min-w-0">
<i :class="['fas', node.id === 'all' ? 'fa-layer-group' : 'fa-tag', 'w-4 text-center']"></i>
<span class="truncate">{{ node.label }}</span>
</span>
<span class="px-2 py-0.5 rounded-full text-xs border border-current/15 bg-black/10">
<span
:class="[
'px-2 py-0.5 rounded-full text-xs border transition-colors',
getTreeCountClass(node)
]"
>
{{ node.count }}
</span>
</button>
@@ -1094,7 +1098,7 @@ onBeforeUnmount(() => {
<section>
<div class="px-2 mb-2 flex items-center justify-between gap-3 text-xs font-semibold uppercase tracking-[0.18em] text-text-secondary/80">
<span>{{ t('connections.table.tags', '标签资源管理器') }}</span>
<span>{{ t('connections.scopeExplorerTitle', '标签资源管理器') }}</span>
<span class="text-[11px] tracking-normal normal-case text-text-secondary">{{ visibleTagTreeNodes.length }}</span>
</div>