@swiss-ai-hub/web 0.298.0 → 0.298.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "bbv Software Services AG (https://www.bbv.ch)",
5
5
  "type": "module",
6
- "version": "0.298.0",
6
+ "version": "0.298.2",
7
7
  "description": "Swiss AI Hub - Admin & Management UI (Nuxt 3 layer)",
8
8
  "main": "./nuxt.config.ts",
9
9
  "repository": {
@@ -47,7 +47,7 @@
47
47
  :key="group.agentClass"
48
48
  >
49
49
  <div
50
- v-if="group.instances.length > 0 && !showNoResults"
50
+ v-if="showGroupHeader(group)"
51
51
  class="pb-4"
52
52
  >
53
53
  <div class="flex items-center gap-2 pb-2">
@@ -95,7 +95,7 @@
95
95
  </div>
96
96
  <div
97
97
  v-if="showNoResults"
98
- class="flex items-center justify-center py-8 text-surface-500"
98
+ class="mb-28 flex items-center justify-center text-surface-500"
99
99
  >
100
100
  <span class="text-xl">{{ t('agent.list.no_results') }}</span>
101
101
  </div>
@@ -177,6 +177,13 @@ const openWorkflowModal = (group: AgentGroup) => {
177
177
  workflowModalOpen.value = true
178
178
  }
179
179
 
180
+ const hasActiveFilters = computed(() =>
181
+ !!searchQuery.value || !!agentClass.value || !!status.value,
182
+ )
183
+
184
+ const showGroupHeader = (group: AgentGroup) =>
185
+ hasActiveFilters.value ? group.instances.length > 0 : group.isAvailable
186
+
180
187
  const openCreateModal = (agentClass: string) => {
181
188
  selectedClassForCreate.value = agentClass
182
189
  initialDataForCreate.value = null