diff --git a/packages/frontend/@n8n/i18n/src/locales/en.json b/packages/frontend/@n8n/i18n/src/locales/en.json index 3a9feb0702a..54ecff88856 100644 --- a/packages/frontend/@n8n/i18n/src/locales/en.json +++ b/packages/frontend/@n8n/i18n/src/locales/en.json @@ -9232,7 +9232,7 @@ "agents.channels.teams.setup.createBot.title": "Deploy Azure Bot", "agents.channels.teams.setup.createBot.description": "Prefilled from your credential. You choose the subscription and resource group.", "agents.channels.teams.setup.createBot.button": "Deploy to Azure", - "agents.channels.teams.setup.createBot.hint": "You need an Azure subscription.", + "agents.channels.teams.setup.createBot.hint": "Needs an Azure subscription. Opens Azure with the n8n bot template filled in (Azure may note it isn’t from Microsoft).", "agents.channels.teams.setup.availability.title": "Choose where it works", "agents.channels.teams.setup.availability.description": "Changing these later means downloading and uploading the app again.", "agents.channels.teams.setup.availability.directChat": "Direct chat", @@ -9261,7 +9261,13 @@ "agents.channels.teams.setup.install.connectFailed": "The package downloaded, but the channel is not connected: {error}", "agents.channels.teams.setup.install.staleDownload": "The credential changed during the download, so that package is for the previous bot. Download it again.", "agents.channels.teams.setup.install.title": "Connect Microsoft Teams", - "agents.channels.teams.setup.install.description": "Download the zip and upload it in Teams under Apps › Manage your apps › Upload an app.", + "agents.channels.teams.setup.download.title": "Download app package", + "agents.channels.teams.setup.download.description": "Built from the steps above.", + "agents.channels.teams.setup.install.description": "Upload the zip in Teams under Apps › Manage your apps › Upload an app.", + "agents.channels.teams.setup.install.addTo.teams": "Then choose Add to a team and pick the team it should join.", + "agents.channels.teams.setup.install.addTo.chats": "Then choose Add to a chat and pick the chat it should join.", + "agents.channels.teams.setup.install.addTo.both": "Then choose Add to a team or Add to a chat, and pick where it should work.", + "agents.channels.teams.setup.install.done": "Done", "agents.channels.teams.setup.install.button": "Download app package", "agents.channels.teams.setup.install.hint": "No Upload an app option? Ask your Teams admin to allow custom app uploads.", "agents.channels.teams.setup.install.downloadFailed": "Could not download the app package. Try again.", @@ -9567,8 +9573,9 @@ "agents.channels.teams.setup.createBot.existingBot": "Use an existing Azure Bot", "agents.channels.teams.setup.createBot.existingBotHint": "Paste this into the bot’s Configuration page and turn on the Microsoft Teams channel.", "agents.channels.teams.setup.availability.whereTitle": "Where can people use the agent?", - "agents.channels.teams.settings.updateNotice": "Changing these means downloading and uploading the app again.", - "agents.channels.teams.settings.updateNoticeChanged": "Saving downloads a new package. Upload it in Teams to apply the change.", + "agents.channels.teams.settings.updateNotice": "You’ll need to upload the app again to apply changes.", + "agents.channels.teams.settings.uploadHint": "To update, upload the new package in Teams under Apps › Manage your apps › Upload an app.", + "agents.channels.teams.settings.findBot": "Find your Azure Bot", "agents.channels.teams.settings.availabilityLabel": "Where it works", "agents.channels.teams.settings.identityLabel": "Appearance in Teams", "agents.channels.teams.settings.saveAndDownload": "Save and download package", diff --git a/packages/frontend/editor-ui/src/features/agents/__tests__/AgentChannelModal.test.ts b/packages/frontend/editor-ui/src/features/agents/__tests__/AgentChannelModal.test.ts index acb2facc36a..741ab78eeb7 100644 --- a/packages/frontend/editor-ui/src/features/agents/__tests__/AgentChannelModal.test.ts +++ b/packages/frontend/editor-ui/src/features/agents/__tests__/AgentChannelModal.test.ts @@ -6,6 +6,7 @@ import type { AgentApproval, ChatIntegrationDescriptor } from '@n8n/api-types'; import AgentChannelModal, { type ChannelView } from '../components/AgentChannelModal.vue'; const mocks = vi.hoisted(() => ({ + keepOpenAfterConnect: false, connect: vi.fn(), disconnect: vi.fn(), fetchStatus: vi.fn(), @@ -71,7 +72,7 @@ vi.mock('../channels/registry', async () => { const { ref, defineComponent } = await import('vue'); const platformView = { props: ['modelValue', 'mode', 'isPublished', 'runtime', 'ensureAgentPersisted'], - emits: ['update:modelValue', 'connect', 'connected'], + emits: ['update:modelValue', 'connect', 'connected', 'done'], setup: () => { // Platforms that drive their own flow (Slack) report `connected` while // still reporting `loading`, so the two are controlled together here. @@ -81,6 +82,7 @@ vi.mock('../channels/registry', async () => { validationError: null, beforeSave: mocks.beforeSave, afterSave: mocks.afterSave, + keepOpenAfterConnect: mocks.keepOpenAfterConnect, saveLabel: platformSaveLabel, loading, startOwnFlow: () => { @@ -97,6 +99,7 @@ vi.mock('../channels/registry', async () => { >