@vertesia/ui 1.5.0-dev.20260901.045442Z → 1.5.0-dev.20260905.011013Z
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/lib/features/agent/chat/AgentRightPanel.d.ts +2 -3
- package/lib/features/agent/chat/AgentRightPanel.d.ts.map +1 -1
- package/lib/features/agent/chat/AgentRightPanel.js +3 -3
- package/lib/features/agent/chat/AgentRightPanel.js.map +1 -1
- package/lib/features/agent/chat/DocumentPanel.d.ts +7 -7
- package/lib/features/agent/chat/DocumentPanel.d.ts.map +1 -1
- package/lib/features/agent/chat/DocumentPanel.js +6 -12
- package/lib/features/agent/chat/DocumentPanel.js.map +1 -1
- package/lib/features/agent/chat/DocumentsTab.d.ts +15 -0
- package/lib/features/agent/chat/DocumentsTab.d.ts.map +1 -0
- package/lib/features/agent/chat/DocumentsTab.js +33 -0
- package/lib/features/agent/chat/DocumentsTab.js.map +1 -0
- package/lib/features/agent/chat/ModernAgentConversation.js +2 -2
- package/lib/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
- package/lib/features/agent/chat/ModernAgentOutput/Header.js +15 -10
- package/lib/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/features/agent/chat/hooks/useDocumentPanel.d.ts +2 -2
- package/lib/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -1
- package/lib/features/agent/chat/hooks/useDocumentPanel.js +0 -18
- package/lib/features/agent/chat/hooks/useDocumentPanel.js.map +1 -1
- package/lib/features/oauth/McpConnectionsButton.d.ts.map +1 -1
- package/lib/features/oauth/McpConnectionsButton.js +4 -1
- package/lib/features/oauth/McpConnectionsButton.js.map +1 -1
- package/lib/features/oauth/McpConnectionsDialog.d.ts.map +1 -1
- package/lib/features/oauth/McpConnectionsDialog.js +3 -2
- package/lib/features/oauth/McpConnectionsDialog.js.map +1 -1
- package/lib/features/oauth/useMcpConnections.d.ts +6 -7
- package/lib/features/oauth/useMcpConnections.d.ts.map +1 -1
- package/lib/features/oauth/useMcpConnections.js +27 -20
- package/lib/features/oauth/useMcpConnections.js.map +1 -1
- package/lib/features/store/types/TypeRegistry.d.ts +10 -5
- package/lib/features/store/types/TypeRegistry.d.ts.map +1 -1
- package/lib/features/store/types/search/ObjectTypeSearchContext.d.ts +10 -5
- package/lib/features/store/types/search/ObjectTypeSearchContext.d.ts.map +1 -1
- package/lib/i18n/locales/ar.json +10 -0
- package/lib/i18n/locales/de.json +6 -0
- package/lib/i18n/locales/en.json +6 -0
- package/lib/i18n/locales/es.json +6 -0
- package/lib/i18n/locales/fr.json +6 -0
- package/lib/i18n/locales/it.json +6 -0
- package/lib/i18n/locales/ja.json +6 -0
- package/lib/i18n/locales/ko.json +6 -0
- package/lib/i18n/locales/pt.json +6 -0
- package/lib/i18n/locales/ru.json +8 -0
- package/lib/i18n/locales/tr.json +6 -0
- package/lib/i18n/locales/zh-TW.json +6 -0
- package/lib/i18n/locales/zh.json +6 -0
- package/lib/router/NestedNavigationContext.d.ts +3 -1
- package/lib/router/NestedNavigationContext.d.ts.map +1 -1
- package/lib/router/NestedNavigationContext.js +2 -2
- package/lib/router/NestedNavigationContext.js.map +1 -1
- package/lib/vertesia-ui-features.js +14 -14
- package/lib/vertesia-ui-features.js.map +1 -1
- package/lib/vertesia-ui-i18n.3yHWompP.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.3yHWompP.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.4XKCcnL0.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.4XKCcnL0.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.78KG4J25.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.78KG4J25.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.BN06mpp1.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.BN06mpp1.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.CSzKLlHJ.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.CSzKLlHJ.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.Ccus7aRh.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.Ccus7aRh.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.D9j3c6gI.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.D9j3c6gI.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.DAUg4rrI.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.DAUg4rrI.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.DSxVZKXy.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.DSxVZKXy.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.aahVhHvR.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.aahVhHvR.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.js +2 -2
- package/lib/vertesia-ui-i18n.nZ3xJ26v.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.nZ3xJ26v.chunk.js.map +1 -0
- package/lib/vertesia-ui-i18n.xPYbuFzT.chunk.js +5 -0
- package/lib/vertesia-ui-i18n.xPYbuFzT.chunk.js.map +1 -0
- package/lib/vertesia-ui-router.js +1 -1
- package/lib/vertesia-ui-router.js.map +1 -1
- package/package.json +7 -7
- package/src/features/agent/chat/AgentRightPanel.tsx +4 -8
- package/src/features/agent/chat/DocumentPanel.tsx +39 -48
- package/src/features/agent/chat/DocumentsTab.test.tsx +87 -0
- package/src/features/agent/chat/DocumentsTab.tsx +124 -0
- package/src/features/agent/chat/ModernAgentConversation.test.tsx +0 -1
- package/src/features/agent/chat/ModernAgentConversation.tsx +0 -2
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +27 -14
- package/src/features/agent/chat/hooks/useDocumentPanel.test.tsx +33 -0
- package/src/features/agent/chat/hooks/useDocumentPanel.ts +3 -20
- package/src/features/oauth/McpConnectionsButton.test.tsx +79 -8
- package/src/features/oauth/McpConnectionsButton.tsx +6 -3
- package/src/features/oauth/McpConnectionsDialog.tsx +9 -3
- package/src/features/oauth/useMcpConnections.ts +33 -27
- package/src/i18n/locales/ar.json +10 -0
- package/src/i18n/locales/de.json +6 -0
- package/src/i18n/locales/en.json +6 -0
- package/src/i18n/locales/es.json +6 -0
- package/src/i18n/locales/fr.json +6 -0
- package/src/i18n/locales/it.json +6 -0
- package/src/i18n/locales/ja.json +6 -0
- package/src/i18n/locales/ko.json +6 -0
- package/src/i18n/locales/pt.json +6 -0
- package/src/i18n/locales/ru.json +8 -0
- package/src/i18n/locales/tr.json +6 -0
- package/src/i18n/locales/zh-TW.json +6 -0
- package/src/i18n/locales/zh.json +6 -0
- package/src/router/NestedNavigationContext.test.tsx +54 -0
- package/src/router/NestedNavigationContext.tsx +9 -2
- package/lib/features/agent/chat/DocumentTabBar.d.ts +0 -9
- package/lib/features/agent/chat/DocumentTabBar.d.ts.map +0 -1
- package/lib/features/agent/chat/DocumentTabBar.js +0 -9
- package/lib/features/agent/chat/DocumentTabBar.js.map +0 -1
- package/lib/vertesia-ui-i18n.BJBGsq-8.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.BJBGsq-8.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.BY5YG5cX.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.BY5YG5cX.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.Bd5_1BXO.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.Bd5_1BXO.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.Bvwej2HH.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.Bvwej2HH.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.CMT3f4gf.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.CMT3f4gf.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.D56DNPJW.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.D56DNPJW.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.DDzKLNx6.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.DDzKLNx6.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.D_Am1LpF.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.D_Am1LpF.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.DrZizgGV.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.DrZizgGV.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.DwHsq86z.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.DwHsq86z.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.PLpo0Bbz.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.PLpo0Bbz.chunk.js.map +0 -1
- package/lib/vertesia-ui-i18n.xVbXALqz.chunk.js +0 -5
- package/lib/vertesia-ui-i18n.xVbXALqz.chunk.js.map +0 -1
- package/src/features/agent/chat/DocumentTabBar.tsx +0 -41
package/src/i18n/locales/ar.json
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"agent.approvalMode.fullControlDescription": "تنفيذ إجراءات التعديل دون موافقة",
|
|
35
35
|
"agent.approvalMode.selectorLabel": "وضع موافقة الوكيل",
|
|
36
36
|
"agent.artifacts": "المخرجات",
|
|
37
|
+
"agent.backToDocuments": "العودة إلى المستندات",
|
|
37
38
|
"agent.backToMainAgent": "العودة إلى الوكيل الرئيسي",
|
|
38
39
|
"agent.batch": "دفعة",
|
|
39
40
|
"agent.browserPreview": "معاينة المتصفح",
|
|
@@ -69,7 +70,14 @@
|
|
|
69
70
|
"agent.dashboard": "لوحة المعلومات",
|
|
70
71
|
"agent.details": "تفاصيل",
|
|
71
72
|
"agent.document": "مستند",
|
|
73
|
+
"agent.documentCount_zero": "لا توجد مستندات",
|
|
74
|
+
"agent.documentCount_one": "مستند واحد",
|
|
75
|
+
"agent.documentCount_two": "مستندان",
|
|
76
|
+
"agent.documentCount_few": "{{count}} مستندات",
|
|
77
|
+
"agent.documentCount_many": "{{count}} مستندًا",
|
|
78
|
+
"agent.documentCount_other": "{{count}} مستند",
|
|
72
79
|
"agent.documents": "المستندات",
|
|
80
|
+
"agent.documentsFiltered": "{{visible}} من أصل {{total}} مستند",
|
|
73
81
|
"agent.download": "تحميل",
|
|
74
82
|
"agent.downloadConversation": "تحميل المحادثة",
|
|
75
83
|
"agent.dropFilesToUpload": "أسقط الملفات للرفع",
|
|
@@ -125,6 +133,7 @@
|
|
|
125
133
|
"agent.noConversationContent": "لا يوجد محتوى محادثة متاح للتصدير",
|
|
126
134
|
"agent.noDocumentsOpen": "لا توجد مستندات مفتوحة",
|
|
127
135
|
"agent.noFilesUploadedYet": "لم يتم رفع أي ملفات",
|
|
136
|
+
"agent.noMatchingDocuments": "لا توجد مستندات مطابقة",
|
|
128
137
|
"agent.noMessagesInWorkstream": "لا توجد رسائل في هذا التدفق بعد...",
|
|
129
138
|
"agent.noPlanAvailable": "لا توجد خطة متاحة",
|
|
130
139
|
"agent.noPlanDetected": "لم يتم اكتشاف أي خطة بعد",
|
|
@@ -367,6 +376,7 @@
|
|
|
367
376
|
"mcpConnections.enabled": "مفعل",
|
|
368
377
|
"mcpConnections.label": "MCP",
|
|
369
378
|
"mcpConnections.manage": "إدارة اتصالات MCP",
|
|
379
|
+
"mcpConnections.managedByApp": "يُدار بواسطة التطبيق",
|
|
370
380
|
"mcpConnections.settings": "الإعدادات",
|
|
371
381
|
"mcpConnections.subtitle": "إدارة خوادم MCP المتاحة لهذه المحادثة.",
|
|
372
382
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/de.json
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"agent.approvalMode.fullControlDescription": "Ändernde Aktionen ohne Genehmigung ausführen",
|
|
31
31
|
"agent.approvalMode.selectorLabel": "Agent-Genehmigungsmodus",
|
|
32
32
|
"agent.artifacts": "Artefakte",
|
|
33
|
+
"agent.backToDocuments": "Zurück zu den Dokumenten",
|
|
33
34
|
"agent.backToMainAgent": "Zurück zum Hauptagenten",
|
|
34
35
|
"agent.batch": "Stapel",
|
|
35
36
|
"agent.browserPreview": "Browser-Vorschau",
|
|
@@ -65,7 +66,10 @@
|
|
|
65
66
|
"agent.dashboard": "Dashboard",
|
|
66
67
|
"agent.details": "Details",
|
|
67
68
|
"agent.document": "Dokument",
|
|
69
|
+
"agent.documentCount_one": "{{count}} Dokument",
|
|
70
|
+
"agent.documentCount_other": "{{count}} Dokumente",
|
|
68
71
|
"agent.documents": "Dokumente",
|
|
72
|
+
"agent.documentsFiltered": "{{visible}} von {{total}} Dokumenten",
|
|
69
73
|
"agent.download": "Herunterladen",
|
|
70
74
|
"agent.downloadConversation": "Konversation herunterladen",
|
|
71
75
|
"agent.dropFilesToUpload": "Dateien zum Hochladen ablegen",
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
"agent.noConversationContent": "Kein Konversationsinhalt zum Exportieren verfügbar",
|
|
122
126
|
"agent.noDocumentsOpen": "Keine Dokumente geöffnet",
|
|
123
127
|
"agent.noFilesUploadedYet": "Noch keine Dateien hochgeladen",
|
|
128
|
+
"agent.noMatchingDocuments": "Keine passenden Dokumente",
|
|
124
129
|
"agent.noMessagesInWorkstream": "Noch keine Nachrichten in diesem Arbeitsbereich...",
|
|
125
130
|
"agent.noPlanAvailable": "Kein Plan verfügbar",
|
|
126
131
|
"agent.noPlanDetected": "Noch kein Plan erkannt",
|
|
@@ -359,6 +364,7 @@
|
|
|
359
364
|
"mcpConnections.enabled": "Aktiviert",
|
|
360
365
|
"mcpConnections.label": "MCP",
|
|
361
366
|
"mcpConnections.manage": "MCP-Verbindungen verwalten",
|
|
367
|
+
"mcpConnections.managedByApp": "Von der App verwaltet",
|
|
362
368
|
"mcpConnections.settings": "Einstellungen",
|
|
363
369
|
"mcpConnections.subtitle": "Verwalten Sie die für diese Unterhaltung verfügbaren MCP-Server.",
|
|
364
370
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/en.json
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"agent.artifacts": "Artifacts",
|
|
38
38
|
"agent.askAgentToReconcile": "Ask agent to merge",
|
|
39
39
|
"agent.backToArtifacts": "Back to artifacts",
|
|
40
|
+
"agent.backToDocuments": "Back to documents",
|
|
40
41
|
"agent.backToMainAgent": "Back to main agent",
|
|
41
42
|
"agent.batch": "Batch",
|
|
42
43
|
"agent.blockMode": "Block mode",
|
|
@@ -83,6 +84,8 @@
|
|
|
83
84
|
"agent.details": "Details",
|
|
84
85
|
"agent.directEditsReadyMessage": "I edited the working copy directly in the Full editor. The latest changes are already saved to {{path}}. Read that artifact and use it as the current source of truth. Do not apply these edits again.",
|
|
85
86
|
"agent.document": "Document",
|
|
87
|
+
"agent.documentCount_one": "{{count}} document",
|
|
88
|
+
"agent.documentCount_other": "{{count}} documents",
|
|
86
89
|
"agent.documentEditApplied": "Edit saved",
|
|
87
90
|
"agent.documentEditApplyFailed": "Couldn't apply the edit",
|
|
88
91
|
"agent.documentEditApplyFailedDescription": "The selected content has changed. Reselect the section and try again.",
|
|
@@ -109,6 +112,7 @@
|
|
|
109
112
|
"agent.documentEditingStartRequest": "Read the working copy and get ready to help me edit it. Do not make changes until I ask.",
|
|
110
113
|
"agent.documentEditingWelcome": "Start a conversation to edit this document collaboratively. You can also select any section in the document and comment on or edit it.",
|
|
111
114
|
"agent.documents": "Documents",
|
|
115
|
+
"agent.documentsFiltered": "{{visible}} of {{total}} documents",
|
|
112
116
|
"agent.download": "Download",
|
|
113
117
|
"agent.downloadConversation": "Download Conversation",
|
|
114
118
|
"agent.dropFilesToUpload": "Drop files to upload",
|
|
@@ -181,6 +185,7 @@
|
|
|
181
185
|
"agent.noContentAvailable": "No content available",
|
|
182
186
|
"agent.noContentToExport": "No content to export",
|
|
183
187
|
"agent.noConversationContent": "No conversation content available to export",
|
|
188
|
+
"agent.noMatchingDocuments": "No matching documents",
|
|
184
189
|
"agent.onlySystemArtifacts": "Only system files in this run. Enable \"System files\" to view them.",
|
|
185
190
|
"agent.noDocumentsOpen": "No documents open",
|
|
186
191
|
"agent.noFilesUploadedYet": "No files uploaded yet",
|
|
@@ -669,6 +674,7 @@
|
|
|
669
674
|
"mcpConnections.enabled": "Enabled",
|
|
670
675
|
"mcpConnections.label": "MCP",
|
|
671
676
|
"mcpConnections.manage": "Manage MCP connections",
|
|
677
|
+
"mcpConnections.managedByApp": "Managed by app",
|
|
672
678
|
"mcpConnections.settings": "Settings",
|
|
673
679
|
"mcpConnections.subtitle": "Manage the MCP servers available to this conversation.",
|
|
674
680
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/es.json
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"agent.approvalMode.fullControlDescription": "Ejecutar acciones de modificación sin aprobación",
|
|
32
32
|
"agent.approvalMode.selectorLabel": "Modo de aprobación del agente",
|
|
33
33
|
"agent.artifacts": "Artefactos",
|
|
34
|
+
"agent.backToDocuments": "Volver a los documentos",
|
|
34
35
|
"agent.backToMainAgent": "Volver al agente principal",
|
|
35
36
|
"agent.batch": "Lote",
|
|
36
37
|
"agent.browserPreview": "Vista previa del navegador",
|
|
@@ -66,7 +67,10 @@
|
|
|
66
67
|
"agent.dashboard": "Panel de control",
|
|
67
68
|
"agent.details": "Detalles",
|
|
68
69
|
"agent.document": "Documento",
|
|
70
|
+
"agent.documentCount_one": "{{count}} documento",
|
|
71
|
+
"agent.documentCount_other": "{{count}} documentos",
|
|
69
72
|
"agent.documents": "Documentos",
|
|
73
|
+
"agent.documentsFiltered": "{{visible}} de {{total}} documentos",
|
|
70
74
|
"agent.download": "Descargar",
|
|
71
75
|
"agent.downloadConversation": "Descargar conversación",
|
|
72
76
|
"agent.dropFilesToUpload": "Suelta archivos para subir",
|
|
@@ -122,6 +126,7 @@
|
|
|
122
126
|
"agent.noConversationContent": "No hay contenido de conversación disponible para exportar",
|
|
123
127
|
"agent.noDocumentsOpen": "Sin documentos abiertos",
|
|
124
128
|
"agent.noFilesUploadedYet": "Sin archivos subidos",
|
|
129
|
+
"agent.noMatchingDocuments": "No hay documentos coincidentes",
|
|
125
130
|
"agent.noMessagesInWorkstream": "No hay mensajes en este flujo de trabajo aún...",
|
|
126
131
|
"agent.noPlanAvailable": "Sin plan disponible",
|
|
127
132
|
"agent.noPlanDetected": "Aún no se ha detectado ningún plan",
|
|
@@ -361,6 +366,7 @@
|
|
|
361
366
|
"mcpConnections.enabled": "Activado",
|
|
362
367
|
"mcpConnections.label": "MCP",
|
|
363
368
|
"mcpConnections.manage": "Gestionar conexiones MCP",
|
|
369
|
+
"mcpConnections.managedByApp": "Gestionado por la aplicación",
|
|
364
370
|
"mcpConnections.settings": "Configuración",
|
|
365
371
|
"mcpConnections.subtitle": "Gestiona los servidores MCP disponibles para esta conversación.",
|
|
366
372
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/fr.json
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"agent.approvalMode.fullControlDescription": "Exécuter les actions de modification sans approbation",
|
|
32
32
|
"agent.approvalMode.selectorLabel": "Mode d’approbation de l’agent",
|
|
33
33
|
"agent.artifacts": "Artefacts",
|
|
34
|
+
"agent.backToDocuments": "Retour aux documents",
|
|
34
35
|
"agent.backToMainAgent": "Retour à l'agent principal",
|
|
35
36
|
"agent.batch": "Lot",
|
|
36
37
|
"agent.browserPreview": "Aperçu du navigateur",
|
|
@@ -66,7 +67,10 @@
|
|
|
66
67
|
"agent.dashboard": "Tableau de bord",
|
|
67
68
|
"agent.details": "Détails",
|
|
68
69
|
"agent.document": "Document",
|
|
70
|
+
"agent.documentCount_one": "{{count}} document",
|
|
71
|
+
"agent.documentCount_other": "{{count}} documents",
|
|
69
72
|
"agent.documents": "Documents",
|
|
73
|
+
"agent.documentsFiltered": "{{visible}} document(s) sur {{total}}",
|
|
70
74
|
"agent.download": "Télécharger",
|
|
71
75
|
"agent.downloadConversation": "Télécharger la conversation",
|
|
72
76
|
"agent.dropFilesToUpload": "Déposez des fichiers pour les envoyer",
|
|
@@ -122,6 +126,7 @@
|
|
|
122
126
|
"agent.noConversationContent": "Aucun contenu de conversation disponible pour l'export",
|
|
123
127
|
"agent.noDocumentsOpen": "Aucun document ouvert",
|
|
124
128
|
"agent.noFilesUploadedYet": "Aucun fichier envoyé",
|
|
129
|
+
"agent.noMatchingDocuments": "Aucun document correspondant",
|
|
125
130
|
"agent.noMessagesInWorkstream": "Aucun message dans ce flux de travail pour le moment...",
|
|
126
131
|
"agent.noPlanAvailable": "Aucun plan disponible",
|
|
127
132
|
"agent.noPlanDetected": "Aucun plan détecté pour le moment",
|
|
@@ -361,6 +366,7 @@
|
|
|
361
366
|
"mcpConnections.enabled": "Activé",
|
|
362
367
|
"mcpConnections.label": "MCP",
|
|
363
368
|
"mcpConnections.manage": "Gérer les connexions MCP",
|
|
369
|
+
"mcpConnections.managedByApp": "Géré par l’application",
|
|
364
370
|
"mcpConnections.settings": "Paramètres",
|
|
365
371
|
"mcpConnections.subtitle": "Gérez les serveurs MCP disponibles pour cette conversation.",
|
|
366
372
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/it.json
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"agent.approvalMode.fullControlDescription": "Esegui azioni di modifica senza approvazione",
|
|
32
32
|
"agent.approvalMode.selectorLabel": "Modalità di approvazione dell’agente",
|
|
33
33
|
"agent.artifacts": "Artefatti",
|
|
34
|
+
"agent.backToDocuments": "Torna ai documenti",
|
|
34
35
|
"agent.backToMainAgent": "Torna all'agente principale",
|
|
35
36
|
"agent.batch": "Lotto",
|
|
36
37
|
"agent.browserPreview": "Anteprima del browser",
|
|
@@ -66,7 +67,10 @@
|
|
|
66
67
|
"agent.dashboard": "Dashboard",
|
|
67
68
|
"agent.details": "Dettagli",
|
|
68
69
|
"agent.document": "Documento",
|
|
70
|
+
"agent.documentCount_one": "{{count}} documento",
|
|
71
|
+
"agent.documentCount_other": "{{count}} documenti",
|
|
69
72
|
"agent.documents": "Documenti",
|
|
73
|
+
"agent.documentsFiltered": "{{visible}} di {{total}} documenti",
|
|
70
74
|
"agent.download": "Scarica",
|
|
71
75
|
"agent.downloadConversation": "Scarica conversazione",
|
|
72
76
|
"agent.dropFilesToUpload": "Trascina i file per caricarli",
|
|
@@ -122,6 +126,7 @@
|
|
|
122
126
|
"agent.noConversationContent": "Nessun contenuto della conversazione disponibile per l'esportazione",
|
|
123
127
|
"agent.noDocumentsOpen": "Nessun documento aperto",
|
|
124
128
|
"agent.noFilesUploadedYet": "Nessun file caricato",
|
|
129
|
+
"agent.noMatchingDocuments": "Nessun documento corrispondente",
|
|
125
130
|
"agent.noMessagesInWorkstream": "Nessun messaggio in questo flusso di lavoro ancora...",
|
|
126
131
|
"agent.noPlanAvailable": "Nessun piano disponibile",
|
|
127
132
|
"agent.noPlanDetected": "Nessun piano rilevato",
|
|
@@ -361,6 +366,7 @@
|
|
|
361
366
|
"mcpConnections.enabled": "Attivato",
|
|
362
367
|
"mcpConnections.label": "MCP",
|
|
363
368
|
"mcpConnections.manage": "Gestisci connessioni MCP",
|
|
369
|
+
"mcpConnections.managedByApp": "Gestito dall'app",
|
|
364
370
|
"mcpConnections.settings": "Impostazioni",
|
|
365
371
|
"mcpConnections.subtitle": "Gestisci i server MCP disponibili per questa conversazione.",
|
|
366
372
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/ja.json
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"agent.approvalMode.fullControlDescription": "変更操作を承認なしで実行",
|
|
31
31
|
"agent.approvalMode.selectorLabel": "エージェント承認モード",
|
|
32
32
|
"agent.artifacts": "アーティファクト",
|
|
33
|
+
"agent.backToDocuments": "ドキュメント一覧に戻る",
|
|
33
34
|
"agent.backToMainAgent": "メインエージェントに戻る",
|
|
34
35
|
"agent.batch": "バッチ",
|
|
35
36
|
"agent.browserPreview": "ブラウザプレビュー",
|
|
@@ -65,7 +66,10 @@
|
|
|
65
66
|
"agent.dashboard": "ダッシュボード",
|
|
66
67
|
"agent.details": "詳細",
|
|
67
68
|
"agent.document": "ドキュメント",
|
|
69
|
+
"agent.documentCount_one": "{{count}} 件のドキュメント",
|
|
70
|
+
"agent.documentCount_other": "{{count}} 件のドキュメント",
|
|
68
71
|
"agent.documents": "ドキュメント",
|
|
72
|
+
"agent.documentsFiltered": "{{total}} 件中 {{visible}} 件のドキュメント",
|
|
69
73
|
"agent.download": "ダウンロード",
|
|
70
74
|
"agent.downloadConversation": "会話をダウンロード",
|
|
71
75
|
"agent.dropFilesToUpload": "ファイルをドロップしてアップロード",
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
"agent.noConversationContent": "エクスポートできる会話内容がありません",
|
|
122
126
|
"agent.noDocumentsOpen": "開いているドキュメントなし",
|
|
123
127
|
"agent.noFilesUploadedYet": "アップロードされたファイルなし",
|
|
128
|
+
"agent.noMatchingDocuments": "一致するドキュメントがありません",
|
|
124
129
|
"agent.noMessagesInWorkstream": "このワークストリームにはまだメッセージがありません...",
|
|
125
130
|
"agent.noPlanAvailable": "利用可能なプランなし",
|
|
126
131
|
"agent.noPlanDetected": "まだプランが検出されていません",
|
|
@@ -359,6 +364,7 @@
|
|
|
359
364
|
"mcpConnections.enabled": "有効",
|
|
360
365
|
"mcpConnections.label": "MCP",
|
|
361
366
|
"mcpConnections.manage": "MCP 接続を管理",
|
|
367
|
+
"mcpConnections.managedByApp": "アプリによる管理",
|
|
362
368
|
"mcpConnections.settings": "設定",
|
|
363
369
|
"mcpConnections.subtitle": "この会話で利用できる MCP サーバーを管理します。",
|
|
364
370
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/ko.json
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"agent.approvalMode.fullControlDescription": "승인 없이 수정 작업 실행",
|
|
31
31
|
"agent.approvalMode.selectorLabel": "에이전트 승인 모드",
|
|
32
32
|
"agent.artifacts": "아티팩트",
|
|
33
|
+
"agent.backToDocuments": "문서 목록으로 돌아가기",
|
|
33
34
|
"agent.backToMainAgent": "기본 에이전트로 돌아가기",
|
|
34
35
|
"agent.batch": "배치",
|
|
35
36
|
"agent.browserPreview": "브라우저 미리보기",
|
|
@@ -65,7 +66,10 @@
|
|
|
65
66
|
"agent.dashboard": "대시보드",
|
|
66
67
|
"agent.details": "세부정보",
|
|
67
68
|
"agent.document": "문서",
|
|
69
|
+
"agent.documentCount_one": "문서 {{count}}개",
|
|
70
|
+
"agent.documentCount_other": "문서 {{count}}개",
|
|
68
71
|
"agent.documents": "문서",
|
|
72
|
+
"agent.documentsFiltered": "문서 {{total}}개 중 {{visible}}개",
|
|
69
73
|
"agent.download": "다운로드",
|
|
70
74
|
"agent.downloadConversation": "대화 다운로드",
|
|
71
75
|
"agent.dropFilesToUpload": "파일을 끌어다 놓아 업로드",
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
"agent.noConversationContent": "내보낼 대화 내용이 없습니다",
|
|
122
126
|
"agent.noDocumentsOpen": "열린 문서 없음",
|
|
123
127
|
"agent.noFilesUploadedYet": "업로드된 파일 없음",
|
|
128
|
+
"agent.noMatchingDocuments": "일치하는 문서가 없습니다",
|
|
124
129
|
"agent.noMessagesInWorkstream": "이 워크스트림에 아직 메시지가 없습니다...",
|
|
125
130
|
"agent.noPlanAvailable": "사용 가능한 계획 없음",
|
|
126
131
|
"agent.noPlanDetected": "아직 계획이 감지되지 않았습니다",
|
|
@@ -359,6 +364,7 @@
|
|
|
359
364
|
"mcpConnections.enabled": "사용 설정됨",
|
|
360
365
|
"mcpConnections.label": "MCP",
|
|
361
366
|
"mcpConnections.manage": "MCP 연결 관리",
|
|
367
|
+
"mcpConnections.managedByApp": "앱에서 관리",
|
|
362
368
|
"mcpConnections.settings": "설정",
|
|
363
369
|
"mcpConnections.subtitle": "이 대화에서 사용할 수 있는 MCP 서버를 관리합니다.",
|
|
364
370
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/pt.json
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"agent.approvalMode.fullControlDescription": "Executar ações de modificação sem aprovação",
|
|
32
32
|
"agent.approvalMode.selectorLabel": "Modo de aprovação do agente",
|
|
33
33
|
"agent.artifacts": "Artefatos",
|
|
34
|
+
"agent.backToDocuments": "Voltar aos documentos",
|
|
34
35
|
"agent.backToMainAgent": "Voltar ao agente principal",
|
|
35
36
|
"agent.batch": "Lote",
|
|
36
37
|
"agent.browserPreview": "Prévia do navegador",
|
|
@@ -66,7 +67,10 @@
|
|
|
66
67
|
"agent.dashboard": "Painel",
|
|
67
68
|
"agent.details": "Detalhes",
|
|
68
69
|
"agent.document": "Documento",
|
|
70
|
+
"agent.documentCount_one": "{{count}} documento",
|
|
71
|
+
"agent.documentCount_other": "{{count}} documentos",
|
|
69
72
|
"agent.documents": "Documentos",
|
|
73
|
+
"agent.documentsFiltered": "{{visible}} de {{total}} documentos",
|
|
70
74
|
"agent.download": "Baixar",
|
|
71
75
|
"agent.downloadConversation": "Baixar conversa",
|
|
72
76
|
"agent.dropFilesToUpload": "Solte arquivos para enviar",
|
|
@@ -122,6 +126,7 @@
|
|
|
122
126
|
"agent.noConversationContent": "Nenhum conteúdo de conversa disponível para exportar",
|
|
123
127
|
"agent.noDocumentsOpen": "Sem documentos abertos",
|
|
124
128
|
"agent.noFilesUploadedYet": "Sem arquivos enviados",
|
|
129
|
+
"agent.noMatchingDocuments": "Nenhum documento correspondente",
|
|
125
130
|
"agent.noMessagesInWorkstream": "Nenhuma mensagem neste fluxo de trabalho ainda...",
|
|
126
131
|
"agent.noPlanAvailable": "Sem plano disponível",
|
|
127
132
|
"agent.noPlanDetected": "Nenhum plano detectado ainda",
|
|
@@ -361,6 +366,7 @@
|
|
|
361
366
|
"mcpConnections.enabled": "Ativado",
|
|
362
367
|
"mcpConnections.label": "MCP",
|
|
363
368
|
"mcpConnections.manage": "Gerenciar conexões MCP",
|
|
369
|
+
"mcpConnections.managedByApp": "Gerenciado pelo aplicativo",
|
|
364
370
|
"mcpConnections.settings": "Configurações",
|
|
365
371
|
"mcpConnections.subtitle": "Gerencie os servidores MCP disponíveis para esta conversa.",
|
|
366
372
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/ru.json
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"agent.approvalMode.fullControlDescription": "Выполнять изменяющие действия без одобрения",
|
|
33
33
|
"agent.approvalMode.selectorLabel": "Режим одобрения агента",
|
|
34
34
|
"agent.artifacts": "Артефакты",
|
|
35
|
+
"agent.backToDocuments": "Назад к документам",
|
|
35
36
|
"agent.backToMainAgent": "Вернуться к основному агенту",
|
|
36
37
|
"agent.batch": "Пакет",
|
|
37
38
|
"agent.browserPreview": "Предпросмотр браузера",
|
|
@@ -67,7 +68,12 @@
|
|
|
67
68
|
"agent.dashboard": "Панель управления",
|
|
68
69
|
"agent.details": "Детали",
|
|
69
70
|
"agent.document": "Документ",
|
|
71
|
+
"agent.documentCount_one": "{{count}} документ",
|
|
72
|
+
"agent.documentCount_few": "{{count}} документа",
|
|
73
|
+
"agent.documentCount_many": "{{count}} документов",
|
|
74
|
+
"agent.documentCount_other": "{{count}} документа",
|
|
70
75
|
"agent.documents": "Документы",
|
|
76
|
+
"agent.documentsFiltered": "{{visible}} из {{total}} документов",
|
|
71
77
|
"agent.download": "Скачать",
|
|
72
78
|
"agent.downloadConversation": "Скачать разговор",
|
|
73
79
|
"agent.dropFilesToUpload": "Перетащите файлы для загрузки",
|
|
@@ -123,6 +129,7 @@
|
|
|
123
129
|
"agent.noConversationContent": "Нет содержимого разговора для экспорта",
|
|
124
130
|
"agent.noDocumentsOpen": "Нет открытых документов",
|
|
125
131
|
"agent.noFilesUploadedYet": "Файлы не загружены",
|
|
132
|
+
"agent.noMatchingDocuments": "Подходящих документов нет",
|
|
126
133
|
"agent.noMessagesInWorkstream": "Пока нет сообщений в этом рабочем потоке...",
|
|
127
134
|
"agent.noPlanAvailable": "План недоступен",
|
|
128
135
|
"agent.noPlanDetected": "План пока не обнаружен",
|
|
@@ -363,6 +370,7 @@
|
|
|
363
370
|
"mcpConnections.enabled": "Включено",
|
|
364
371
|
"mcpConnections.label": "MCP",
|
|
365
372
|
"mcpConnections.manage": "Управление подключениями MCP",
|
|
373
|
+
"mcpConnections.managedByApp": "Управляется приложением",
|
|
366
374
|
"mcpConnections.settings": "Настройки",
|
|
367
375
|
"mcpConnections.subtitle": "Управляйте серверами MCP, доступными для этого разговора.",
|
|
368
376
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/tr.json
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"agent.approvalMode.fullControlDescription": "Değiştiren işlemleri onaysız çalıştır",
|
|
31
31
|
"agent.approvalMode.selectorLabel": "Ajan onay modu",
|
|
32
32
|
"agent.artifacts": "Yapılar",
|
|
33
|
+
"agent.backToDocuments": "Belgelere geri dön",
|
|
33
34
|
"agent.backToMainAgent": "Ana ajana dön",
|
|
34
35
|
"agent.batch": "Toplu",
|
|
35
36
|
"agent.browserPreview": "Tarayıcı önizlemesi",
|
|
@@ -65,7 +66,10 @@
|
|
|
65
66
|
"agent.dashboard": "Gösterge paneli",
|
|
66
67
|
"agent.details": "Ayrıntılar",
|
|
67
68
|
"agent.document": "Belge",
|
|
69
|
+
"agent.documentCount_one": "{{count}} belge",
|
|
70
|
+
"agent.documentCount_other": "{{count}} belge",
|
|
68
71
|
"agent.documents": "Belgeler",
|
|
72
|
+
"agent.documentsFiltered": "{{total}} belgeden {{visible}} tanesi",
|
|
69
73
|
"agent.download": "İndir",
|
|
70
74
|
"agent.downloadConversation": "Konuşmayı indir",
|
|
71
75
|
"agent.dropFilesToUpload": "Yüklemek için dosyaları bırakın",
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
"agent.noConversationContent": "Dışa aktarılacak konuşma içeriği yok",
|
|
122
126
|
"agent.noDocumentsOpen": "Açık belge yok",
|
|
123
127
|
"agent.noFilesUploadedYet": "Yüklenen dosya yok",
|
|
128
|
+
"agent.noMatchingDocuments": "Eşleşen belge yok",
|
|
124
129
|
"agent.noMessagesInWorkstream": "Bu iş akışında henüz mesaj yok...",
|
|
125
130
|
"agent.noPlanAvailable": "Plan mevcut değil",
|
|
126
131
|
"agent.noPlanDetected": "Henüz bir plan algılanmadı",
|
|
@@ -359,6 +364,7 @@
|
|
|
359
364
|
"mcpConnections.enabled": "Etkin",
|
|
360
365
|
"mcpConnections.label": "MCP",
|
|
361
366
|
"mcpConnections.manage": "MCP bağlantılarını yönet",
|
|
367
|
+
"mcpConnections.managedByApp": "Uygulama tarafından yönetiliyor",
|
|
362
368
|
"mcpConnections.settings": "Ayarlar",
|
|
363
369
|
"mcpConnections.subtitle": "Bu konuşma için kullanılabilen MCP sunucularını yönetin.",
|
|
364
370
|
"mcpConnections.title": "MCP",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"agent.approvalMode.fullControlDescription": "不需核准即可執行修改動作",
|
|
31
31
|
"agent.approvalMode.selectorLabel": "代理程式核准模式",
|
|
32
32
|
"agent.artifacts": "產物",
|
|
33
|
+
"agent.backToDocuments": "返回文件列表",
|
|
33
34
|
"agent.backToMainAgent": "返回主代理",
|
|
34
35
|
"agent.batch": "批次",
|
|
35
36
|
"agent.browserPreview": "瀏覽器預覽",
|
|
@@ -65,7 +66,10 @@
|
|
|
65
66
|
"agent.dashboard": "儀表板",
|
|
66
67
|
"agent.details": "詳情",
|
|
67
68
|
"agent.document": "文件",
|
|
69
|
+
"agent.documentCount_one": "{{count}} 個文件",
|
|
70
|
+
"agent.documentCount_other": "{{count}} 個文件",
|
|
68
71
|
"agent.documents": "文件",
|
|
72
|
+
"agent.documentsFiltered": "{{total}} 個文件中的 {{visible}} 個",
|
|
69
73
|
"agent.download": "下載",
|
|
70
74
|
"agent.downloadConversation": "下載對話",
|
|
71
75
|
"agent.dropFilesToUpload": "拖放檔案上傳",
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
"agent.noConversationContent": "沒有可匯出的對話內容",
|
|
122
126
|
"agent.noDocumentsOpen": "沒有開啟的文件",
|
|
123
127
|
"agent.noFilesUploadedYet": "暫無上傳檔案",
|
|
128
|
+
"agent.noMatchingDocuments": "沒有符合的文件",
|
|
124
129
|
"agent.noMessagesInWorkstream": "此工作流程中暫無訊息...",
|
|
125
130
|
"agent.noPlanAvailable": "暫無計劃",
|
|
126
131
|
"agent.noPlanDetected": "尚未偵測到計劃",
|
|
@@ -359,6 +364,7 @@
|
|
|
359
364
|
"mcpConnections.enabled": "已啟用",
|
|
360
365
|
"mcpConnections.label": "MCP",
|
|
361
366
|
"mcpConnections.manage": "管理 MCP 連線",
|
|
367
|
+
"mcpConnections.managedByApp": "由應用程式管理",
|
|
362
368
|
"mcpConnections.settings": "設定",
|
|
363
369
|
"mcpConnections.subtitle": "管理可用於此對話的 MCP 伺服器。",
|
|
364
370
|
"mcpConnections.title": "MCP",
|
package/src/i18n/locales/zh.json
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"agent.approvalMode.fullControlDescription": "无需批准即可执行修改操作",
|
|
31
31
|
"agent.approvalMode.selectorLabel": "代理批准模式",
|
|
32
32
|
"agent.artifacts": "产物",
|
|
33
|
+
"agent.backToDocuments": "返回文档列表",
|
|
33
34
|
"agent.backToMainAgent": "返回主代理",
|
|
34
35
|
"agent.batch": "批次",
|
|
35
36
|
"agent.browserPreview": "浏览器预览",
|
|
@@ -65,7 +66,10 @@
|
|
|
65
66
|
"agent.dashboard": "仪表板",
|
|
66
67
|
"agent.details": "详情",
|
|
67
68
|
"agent.document": "文档",
|
|
69
|
+
"agent.documentCount_one": "{{count}} 个文档",
|
|
70
|
+
"agent.documentCount_other": "{{count}} 个文档",
|
|
68
71
|
"agent.documents": "文档",
|
|
72
|
+
"agent.documentsFiltered": "{{total}} 个文档中的 {{visible}} 个",
|
|
69
73
|
"agent.download": "下载",
|
|
70
74
|
"agent.downloadConversation": "下载对话",
|
|
71
75
|
"agent.dropFilesToUpload": "拖放文件上传",
|
|
@@ -121,6 +125,7 @@
|
|
|
121
125
|
"agent.noConversationContent": "没有可导出的对话内容",
|
|
122
126
|
"agent.noDocumentsOpen": "没有打开的文档",
|
|
123
127
|
"agent.noFilesUploadedYet": "暂无上传文件",
|
|
128
|
+
"agent.noMatchingDocuments": "没有匹配的文档",
|
|
124
129
|
"agent.noMessagesInWorkstream": "此工作流中暂无消息...",
|
|
125
130
|
"agent.noPlanAvailable": "暂无计划",
|
|
126
131
|
"agent.noPlanDetected": "尚未检测到计划",
|
|
@@ -359,6 +364,7 @@
|
|
|
359
364
|
"mcpConnections.enabled": "已启用",
|
|
360
365
|
"mcpConnections.label": "MCP",
|
|
361
366
|
"mcpConnections.manage": "管理 MCP 连接",
|
|
367
|
+
"mcpConnections.managedByApp": "由应用管理",
|
|
362
368
|
"mcpConnections.settings": "设置",
|
|
363
369
|
"mcpConnections.subtitle": "管理可用于此对话的 MCP 服务器。",
|
|
364
370
|
"mcpConnections.title": "MCP",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// @vitest-environment jsdom
|
|
2
|
+
|
|
3
|
+
import { act, cleanup, fireEvent, render, screen } from '@testing-library/react';
|
|
4
|
+
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
|
|
5
|
+
import { NestedNavigationContext } from './NestedNavigationContext';
|
|
6
|
+
import { NestedRouterProvider } from './NestedRouterProvider';
|
|
7
|
+
import { RouteComponent } from './RouteComponent';
|
|
8
|
+
import { useNavigate } from './Router';
|
|
9
|
+
import { RouterProvider } from './RouterProvider';
|
|
10
|
+
|
|
11
|
+
function NavigationButton() {
|
|
12
|
+
const navigate = useNavigate();
|
|
13
|
+
return (
|
|
14
|
+
<button type="button" onClick={() => navigate('/objects/object-1')}>
|
|
15
|
+
Open object
|
|
16
|
+
</button>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
describe('NestedNavigationContext', () => {
|
|
21
|
+
beforeEach(() => {
|
|
22
|
+
window.history.pushState({}, '', '/store/objects');
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
afterEach(() => {
|
|
26
|
+
cleanup();
|
|
27
|
+
window.history.pushState({}, '', '/');
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('can apply a top-level base path from inside a nested route', () => {
|
|
31
|
+
const routes = [
|
|
32
|
+
{
|
|
33
|
+
path: '/store/objects/*',
|
|
34
|
+
Component: () => (
|
|
35
|
+
<NestedRouterProvider routes={[{ path: '/', Component: () => null }]}>
|
|
36
|
+
<NestedNavigationContext basePath="/store" isBasePathNested={false}>
|
|
37
|
+
<NavigationButton />
|
|
38
|
+
</NestedNavigationContext>
|
|
39
|
+
</NestedRouterProvider>
|
|
40
|
+
),
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
render(
|
|
45
|
+
<RouterProvider routes={routes}>
|
|
46
|
+
<RouteComponent />
|
|
47
|
+
</RouterProvider>,
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
act(() => fireEvent.click(screen.getByRole('button', { name: 'Open object' })));
|
|
51
|
+
|
|
52
|
+
expect(window.location.pathname).toBe('/store/objects/object-1');
|
|
53
|
+
});
|
|
54
|
+
});
|
|
@@ -7,10 +7,17 @@ import { ReactRouterContext, useRouterContext } from './Router';
|
|
|
7
7
|
|
|
8
8
|
interface NestedNavigationContextProps {
|
|
9
9
|
basePath: string;
|
|
10
|
+
/** Whether this base path is relative to the current nested router. Defaults to true. */
|
|
11
|
+
isBasePathNested?: boolean;
|
|
10
12
|
fixLinks?: boolean;
|
|
11
13
|
children: React.ReactNode | React.ReactNode[];
|
|
12
14
|
}
|
|
13
|
-
export function NestedNavigationContext({
|
|
15
|
+
export function NestedNavigationContext({
|
|
16
|
+
basePath,
|
|
17
|
+
isBasePathNested = true,
|
|
18
|
+
fixLinks = false,
|
|
19
|
+
children,
|
|
20
|
+
}: NestedNavigationContextProps) {
|
|
14
21
|
const ctx = useRouterContext();
|
|
15
22
|
|
|
16
23
|
const wrapWithFixLinks = fixLinks
|
|
@@ -27,7 +34,7 @@ export function NestedNavigationContext({ basePath, fixLinks = false, children }
|
|
|
27
34
|
return ctx.navigate(to, options);
|
|
28
35
|
}
|
|
29
36
|
const actualBasePath = options?.basePath ? joinPath(basePath, options.basePath) : basePath;
|
|
30
|
-
return ctx.navigate(to, { ...options, basePath: actualBasePath });
|
|
37
|
+
return ctx.navigate(to, { ...options, basePath: actualBasePath, isBasePathNested });
|
|
31
38
|
},
|
|
32
39
|
}}
|
|
33
40
|
>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { OpenDocument } from './types/document.js';
|
|
2
|
-
interface DocumentTabBarProps {
|
|
3
|
-
documents: OpenDocument[];
|
|
4
|
-
activeId: string | null;
|
|
5
|
-
onSelect: (id: string) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function DocumentTabBar({ documents, activeId, onSelect }: DocumentTabBarProps): import("react").JSX.Element | null;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=DocumentTabBar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentTabBar.d.ts","sourceRoot":"","sources":["../../../../src/features/agent/chat/DocumentTabBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,UAAU,mBAAmB;IACzB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,mBAAmB,sCA8BpF"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Dropdown, MenuItem } from '@vertesia/ui/core';
|
|
3
|
-
import { ChevronDownIcon } from 'lucide-react';
|
|
4
|
-
export function DocumentTabBar({ documents, activeId, onSelect }) {
|
|
5
|
-
if (documents.length === 0)
|
|
6
|
-
return null;
|
|
7
|
-
return (_jsx("div", { className: "flex items-center gap-1 px-2 py-1.5", children: _jsx(Dropdown, { align: "right", trigger: _jsx(Button, { variant: "ghost", size: "xs", title: "All opened documents", className: "flex items-center gap-1.5 max-w-[220px] text-xs h-7 px-2", children: _jsx(ChevronDownIcon, { className: "size-3 shrink-0" }) }), children: documents.map((doc) => (_jsx(MenuItem, { onClick: () => onSelect(doc.id), className: doc.id === activeId ? 'font-medium' : '', children: _jsx("span", { className: "truncate max-w-[200px]", children: doc.title }) }, doc.id))) }) }));
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=DocumentTabBar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentTabBar.js","sourceRoot":"","sources":["../../../../src/features/agent/chat/DocumentTabBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAS/C,MAAM,UAAU,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAuB;IACjF,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAExC,OAAO,CACH,cAAK,SAAS,EAAC,qCAAqC,YAChD,KAAC,QAAQ,IACL,KAAK,EAAC,OAAO,EACb,OAAO,EACH,KAAC,MAAM,IACH,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,sBAAsB,EAC5B,SAAS,EAAC,0DAA0D,YAEpE,KAAC,eAAe,IAAC,SAAS,EAAC,iBAAiB,GAAG,GAC1C,YAGZ,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACpB,KAAC,QAAQ,IAEL,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,EAC/B,SAAS,EAAE,GAAG,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,YAEnD,eAAM,SAAS,EAAC,wBAAwB,YAAE,GAAG,CAAC,KAAK,GAAQ,IAJtD,GAAG,CAAC,EAAE,CAKJ,CACd,CAAC,GACK,GACT,CACT,CAAC;AACN,CAAC"}
|