Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(control-ui): correct the Teams CLI instruction on the Teams create panel

Jose Ramirez9686ccd758ff
diff --git a/control-ui/app/communication-channels/new/page.tsx b/control-ui/app/communication-channels/new/page.tsx
index 3905e9b04..d00d481a0 100644
--- a/control-ui/app/communication-channels/new/page.tsx
+++ b/control-ui/app/communication-channels/new/page.tsx
@@ -733,10 +733,8 @@ export default function CreateCommunicationChannelPage() {
</Field>
<ol className="cu-teams-setup__instructions">
<li>
- Run this from the project directory that has the Teams CLI project.
- </li>
- <li>
- The command writes generated Teams bot values into <code>.env</code>.
+ Run this from any directory. The command writes CLIENT_ID, TENANT_ID and
+ CLIENT_SECRET into .env in whichever directory you run it from.
</li>
<li>
In Teams Developer Portal, enable{' '}
diff --git a/control-ui/components/__tests__/CreateCommunicationChannelPage.test.tsx b/control-ui/components/__tests__/CreateCommunicationChannelPage.test.tsx
index 5fe61fd38..4d4cda9a4 100644
--- a/control-ui/components/__tests__/CreateCommunicationChannelPage.test.tsx
+++ b/control-ui/components/__tests__/CreateCommunicationChannelPage.test.tsx
@@ -248,7 +248,7 @@ describe('CreateCommunicationChannelPage — provider setup', () => {
expect(botNameInput).toHaveValue('evenfire-bot')
expect(
- screen.getByText(/The command writes generated Teams bot values into/i)
+ screen.getByText(/The command writes CLIENT_ID, TENANT_ID and CLIENT_SECRET into/i)
).toBeInTheDocument()
expect(screen.getByText('Upload and download files')).toBeInTheDocument()
@@ -616,3 +616,18 @@ describe('CreateCommunicationChannelPage — Slack app manifest', () => {
expect(screen.queryByText(/display_information:/)).not.toBeInTheDocument()
})
})
+
+describe('CreateCommunicationChannelPage — Teams CLI instruction', () => {
+ it('does not tell the operator to run the command from a Teams CLI project directory', async () => {
+ render(
+ <ToastProvider>
+ <CreateCommunicationChannelPage />
+ </ToastProvider>
+ )
+
+ await fillStep1AndContinue()
+ fireEvent.click(screen.getByRole('radio', { name: 'Microsoft Teams' }))
+
+ expect(screen.queryByText(/project directory that has the Teams CLI project/i)).toBeNull()
+ })
+})
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 0a12528c3..03b9ca001 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.416",
+ "version": "0.1.417",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.416",
+ "version": "0.1.417",
"dependencies": {
"@clerum/llm-providers": "file:../packages/llm-providers",
"@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",
diff --git a/control-ui/package.json b/control-ui/package.json
index 1836bdf09..e5d1c727d 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.416",
+ "version": "0.1.417",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",