diff --git a/apps/web/src/components/settings/Integrations.test.tsx b/apps/web/src/components/settings/Integrations.test.tsx index 9c1386bb..e0e7ebab 100644 --- a/apps/web/src/components/settings/Integrations.test.tsx +++ b/apps/web/src/components/settings/Integrations.test.tsx @@ -530,6 +530,8 @@ describe('Integrations settings', () => { expect( screen.getByRole('button', { name: 'Create Linear app' }), ).toBeInTheDocument(); + expect(screen.queryByText('Callback URL')).not.toBeInTheDocument(); + expect(screen.queryByText('Webhook URL')).not.toBeInTheDocument(); expect(screen.getByLabelText('Client ID')).toBeInTheDocument(); expect(screen.getByLabelText('Client secret')).toBeInTheDocument(); expect(screen.getByLabelText('Webhook secret')).toBeInTheDocument(); diff --git a/apps/web/src/components/settings/LinearOauthSetupDialog.tsx b/apps/web/src/components/settings/LinearOauthSetupDialog.tsx index c4ffa328..26aaf476 100644 --- a/apps/web/src/components/settings/LinearOauthSetupDialog.tsx +++ b/apps/web/src/components/settings/LinearOauthSetupDialog.tsx @@ -13,7 +13,6 @@ import { Alert, AlertDescription, Button, - Copy, Dialog, DialogContent, DialogDescription, @@ -57,31 +56,6 @@ const EMPTY_FORM: LinearOauthForm = { webhookSecret: '', }; -function EndpointField({ label, value }: { label: string; value: string }) { - const copyValue = async () => { - await navigator.clipboard.writeText(value); - toast.success(`${label} copied.`); - }; - - return ( -
- -
- - -
-
- ); -} - function CredentialField({ id, label, @@ -296,16 +270,6 @@ export function LinearOauthSetupDialog({ Create Linear app -
- - -
diff --git a/apps/web/src/trpc/commands/linear/index.test.ts b/apps/web/src/trpc/commands/linear/index.test.ts index 97c298ea..53d11f76 100644 --- a/apps/web/src/trpc/commands/linear/index.test.ts +++ b/apps/web/src/trpc/commands/linear/index.test.ts @@ -101,7 +101,10 @@ describe('Linear OAuth setup', () => { expect(manifest).toMatchObject({ schemaVersion: '1.0.0', distribution: 'private', - display: { description: 'Cloud coding agents for all' }, + display: { + description: 'Cloud coding agents for all', + iconUrl: 'https://roomote.example/roomote-logo.png', + }, oauth: { client_name: 'roomote-example', redirect_uris: [setup.callbackUrl], diff --git a/apps/web/src/trpc/commands/linear/oauth-setup.ts b/apps/web/src/trpc/commands/linear/oauth-setup.ts index 06243151..0a8a28c0 100644 --- a/apps/web/src/trpc/commands/linear/oauth-setup.ts +++ b/apps/web/src/trpc/commands/linear/oauth-setup.ts @@ -71,6 +71,7 @@ function buildLinearOauthSetup(publicOrigin: string) { distribution: 'private', display: { description: DEPLOYMENT_APP_DESCRIPTION, + iconUrl: new URL('/roomote-logo.png', publicOrigin).toString(), }, developer: { name: 'Roomote' }, oauth: {