@swiss-ai-hub/web 0.315.0 → 0.315.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.
@@ -100,6 +100,7 @@ const route = useRoute()
100
100
  const { t } = useI18n()
101
101
  const toast = useToast()
102
102
  const confirm = useConfirm()
103
+ const tenantPath = useTenantPath()
103
104
  const { tenantId } = useTenant()
104
105
  const { deleteAgentInstance, isDeleting } = useDeleteAgentInstance()
105
106
  const { exportAgentInstance } = useExportAgentInstance()
@@ -122,6 +123,13 @@ function confirmDelete() {
122
123
 
123
124
  async function handleDelete() {
124
125
  try {
126
+ // When the deleted agent's own detail page is open, leave it first: the delete invalidates the
127
+ // instance query, and a still-mounted detail page would refetch the now-missing agent and raise
128
+ // a 404 error toast. Navigating away deactivates that query so it is only marked stale, not refetched.
129
+ if (isActive.value) {
130
+ await navigateTo(tenantPath('/service/agents'))
131
+ }
132
+
125
133
  await deleteAgentInstance({
126
134
  agentClass: props.agent.agent_class,
127
135
  agentId: props.agent.agent_id,
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.315.0",
6
+ "version": "0.315.2",
7
7
  "description": "Swiss AI Hub - Admin & Management UI (Nuxt 3 layer)",
8
8
  "main": "./nuxt.config.ts",
9
9
  "repository": {
@@ -375,6 +375,7 @@ export {
375
375
  type DocumentUploadResponse,
376
376
  type DocumentUploadValidationRequest,
377
377
  type DocumentUploadValidationResponse,
378
+ type DraftedReplyRef,
378
379
  type EdgeData,
379
380
  type Embedding,
380
381
  type EmbeddingEvent,
@@ -737,6 +738,13 @@ export {
737
738
  type LocaleResponse,
738
739
  type LocaleString,
739
740
  type Logprob,
741
+ type MailAttachmentRef,
742
+ type MailBatchDraftedEvent,
743
+ type MailBatchDraftedEventWritable,
744
+ type MailFetchedEvent,
745
+ type MailFetchedEventWritable,
746
+ type MailMovedEvent,
747
+ type MailMovedEventWritable,
740
748
  type MemoriesResponse,
741
749
  type Memory,
742
750
  type MemoryDto,
@@ -967,6 +975,9 @@ export {
967
975
  type TranslateTextResponses,
968
976
  type TranslationRequest,
969
977
  type TranslationResponse,
978
+ type UnreadMailListedEvent,
979
+ type UnreadMailListedEventWritable,
980
+ type UnreadMailSummary,
970
981
  type UpdateAgentInstanceData,
971
982
  type UpdateAgentInstanceDto,
972
983
  type UpdateAgentInstanceError,