diff --git a/frontend/src/components/ResourceListToolbar.vue b/frontend/src/components/ResourceListToolbar.vue index e17c4072..02131887 100644 --- a/frontend/src/components/ResourceListToolbar.vue +++ b/frontend/src/components/ResourceListToolbar.vue @@ -12,7 +12,9 @@ :value="selectedSpace" :options="spaceOptions" :placeholder="$t('listSpaceSidebar.spaces')" :aria-label="$t('listSpaceSidebar.spaces')" filterable clearable @change="(value: unknown) => $emit('update:modelValue', String(value || 'all'))"> - + { if (!props.hideScopes) orgStore.fetchOrganizations() }) .category-tabs { .artifact-filter-tabs(); } .scope-count { margin-left: 5px; font-size: var(--app-text-xs); opacity: 0.65; font-variant-numeric: tabular-nums; } .space-filter { width: 180px; } +.space-filter-icon-active { color: var(--td-brand-color); } .search-input { width: 260px; max-width: 100%; margin-left: auto; } @media (max-width: 720px) { .search-input { width: 100%; } diff --git a/frontend/src/components/icons/ResourceIcon.vue b/frontend/src/components/icons/ResourceIcon.vue index caac3bc1..aeba4dbd 100644 --- a/frontend/src/components/icons/ResourceIcon.vue +++ b/frontend/src/components/icons/ResourceIcon.vue @@ -6,15 +6,16 @@ import { computed } from 'vue' import knowledgeIcon from '@/assets/img/zhishiku.svg' import agentIcon from '@/assets/img/agent.svg' +import artifactIcon from '@/assets/img/artifact.svg' import organizationIcon from '@/assets/img/organization.svg' const props = withDefaults(defineProps<{ - type: 'knowledge' | 'agent' | 'organization' + type: 'knowledge' | 'agent' | 'artifact' | 'organization' size?: number }>(), { size: 20 }) // Reuse the navigation assets while inheriting the surrounding theme color. -const icons = { knowledge: knowledgeIcon, agent: agentIcon, organization: organizationIcon } +const icons = { knowledge: knowledgeIcon, agent: agentIcon, artifact: artifactIcon, organization: organizationIcon } const iconStyle = computed(() => ({ width: `${props.size}px`, height: `${props.size}px`, diff --git a/frontend/src/views/agent/AgentList.vue b/frontend/src/views/agent/AgentList.vue index 72665b52..617b58b4 100644 --- a/frontend/src/views/agent/AgentList.vue +++ b/frontend/src/views/agent/AgentList.vue @@ -4,7 +4,10 @@
-

{{ $t('agent.title') }}

+

+ + {{ $t('agent.title') }} +

@@ -1551,6 +1554,9 @@ watch(keyword, () => { collapsedAgentSections.value = new Set() }) } h2 { + display: flex; + align-items: center; + gap: 8px; margin: 0; color: var(--td-text-color-primary); font-family: var(--app-font-family); diff --git a/frontend/src/views/artifacts/ArtifactLibrary.vue b/frontend/src/views/artifacts/ArtifactLibrary.vue index d55aded4..06601146 100644 --- a/frontend/src/views/artifacts/ArtifactLibrary.vue +++ b/frontend/src/views/artifacts/ArtifactLibrary.vue @@ -2,7 +2,10 @@
-

{{ $t('artifactLibrary.title') }}

+

+ + {{ $t('artifactLibrary.title') }} +

{{ $t('artifactLibrary.subtitle') }}

@@ -206,6 +209,7 @@ import { import { formatArtifactDateTime, formatArtifactSize } from '@/utils/sessionArtifacts' import { resolveFilePreviewExt } from '@/utils/filePreview' import EmptyState from '@/components/EmptyState.vue' +import ResourceIcon from '@/components/icons/ResourceIcon.vue' import DocumentPreview from '@/components/document-preview.vue' import ArtifactFileIcon from '@/views/chat/components/ArtifactFileIcon.vue' @@ -410,6 +414,9 @@ onBeforeUnmount(() => { } h2 { + display: flex; + align-items: center; + gap: 8px; margin: 0; color: var(--td-text-color-primary); font-family: var(--app-font-family); diff --git a/frontend/src/views/knowledge/KnowledgeBaseList.vue b/frontend/src/views/knowledge/KnowledgeBaseList.vue index dfe96190..1daa44d5 100644 --- a/frontend/src/views/knowledge/KnowledgeBaseList.vue +++ b/frontend/src/views/knowledge/KnowledgeBaseList.vue @@ -4,7 +4,10 @@
-

{{ $t('knowledgeBase.title') }}

+

+ + {{ $t('knowledgeBase.title') }} +

@@ -1554,6 +1557,9 @@ watch(keyword, () => { collapsedKbSections.value = new Set() }) } h2 { + display: flex; + align-items: center; + gap: 8px; margin: 0; color: var(--td-text-color-primary); font-family: var(--app-font-family); diff --git a/frontend/src/views/organization/OrganizationList.vue b/frontend/src/views/organization/OrganizationList.vue index 559a2276..21a8e984 100644 --- a/frontend/src/views/organization/OrganizationList.vue +++ b/frontend/src/views/organization/OrganizationList.vue @@ -4,7 +4,10 @@
-

{{ $t('organization.title') }}

+

+ + {{ $t('organization.title') }} +

{ collapsedOrgSections.value = new Set() }) } h2 { + display: flex; + align-items: center; + gap: 8px; margin: 0; color: var(--td-text-color-primary); font-family: var(--app-font-family);