Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: reformat code for consistent style across the codebase

Steven Enamakele9ba3ee2c35e
diff --git a/app/scripts/lint-undefined-scales.mjs b/app/scripts/lint-undefined-scales.mjs
index 28ddf2bd50..6cb088ba25 100644
--- a/app/scripts/lint-undefined-scales.mjs
+++ b/app/scripts/lint-undefined-scales.mjs
@@ -33,16 +33,47 @@ const here = path.dirname(fileURLToPath(import.meta.url));
const appRoot = path.resolve(here, '..');
const SHADES = new Set([
- '50', '100', '150', '200', '300', '400', '500', '600', '700', '800', '900', '950',
+ '50',
+ '100',
+ '150',
+ '200',
+ '300',
+ '400',
+ '500',
+ '600',
+ '700',
+ '800',
+ '900',
+ '950',
]);
/** Colour-bearing utility prefixes, including directional border/divide forms. */
const UTILITY_PREFIXES = [
- 'bg', 'text', 'border', 'border-x', 'border-y',
- 'border-t', 'border-r', 'border-b', 'border-l',
- 'ring', 'ring-offset', 'divide', 'divide-x', 'divide-y',
- 'outline', 'shadow', 'fill', 'stroke', 'accent', 'caret',
- 'decoration', 'placeholder', 'from', 'to', 'via',
+ 'bg',
+ 'text',
+ 'border',
+ 'border-x',
+ 'border-y',
+ 'border-t',
+ 'border-r',
+ 'border-b',
+ 'border-l',
+ 'ring',
+ 'ring-offset',
+ 'divide',
+ 'divide-x',
+ 'divide-y',
+ 'outline',
+ 'shadow',
+ 'fill',
+ 'stroke',
+ 'accent',
+ 'caret',
+ 'decoration',
+ 'placeholder',
+ 'from',
+ 'to',
+ 'via',
];
/**
@@ -101,12 +132,14 @@ function shadeResolver() {
// Names carrying at least one numeric shade — what a caller may legally write
// as `<utility>-<name>-<shade>`. Used only for the operator-facing message.
const scaleNames = Object.keys(colors).filter(
- k => typeof colors[k] === 'object' && colors[k] !== null && Object.keys(colors[k]).some(x => /^\d+$/.test(x))
+ k =>
+ typeof colors[k] === 'object' &&
+ colors[k] !== null &&
+ Object.keys(colors[k]).some(x => /^\d+$/.test(x))
);
return { shadeExists, scaleNames };
}
-
const PATTERN = new RegExp(
`\\b(${UTILITY_PREFIXES.join('|')})-([a-z][a-z0-9]+)-(\\d{2,3})\\b`,
'g'
diff --git a/app/src/components/AppBackground.tsx b/app/src/components/AppBackground.tsx
index fb8900bf12..d569c17ac9 100644
--- a/app/src/components/AppBackground.tsx
+++ b/app/src/components/AppBackground.tsx
@@ -30,9 +30,7 @@ export default function AppBackground({ className = '' }: AppBackgroundProps) {
/>
)}
{showDots && (
- <div
- className="absolute inset-0 bg-transparent bg-[radial-gradient(circle_at_center,rgb(var(--content)/0.1)_1px,transparent_1px)] bg-[length:18px_18px] bg-[position:0_0]"
- />
+ <div className="absolute inset-0 bg-transparent bg-[radial-gradient(circle_at_center,rgb(var(--content)/0.1)_1px,transparent_1px)] bg-[length:18px_18px] bg-[position:0_0]" />
)}
</div>
);
diff --git a/app/src/components/ai-elements/Sources.tsx b/app/src/components/ai-elements/Sources.tsx
index 2e69021097..0c918e9eea 100644
--- a/app/src/components/ai-elements/Sources.tsx
+++ b/app/src/components/ai-elements/Sources.tsx
@@ -19,7 +19,6 @@ import type { ComponentProps } from 'react';
import { cn } from '../../lib/cn';
import { useT } from '../../lib/i18n/I18nContext';
import { CollapsibleContent, CollapsibleRoot, CollapsibleTrigger } from '../ui';
-
import { BookIcon, ChevronDownIcon } from './icons';
export type SourcesProps = ComponentProps<typeof CollapsibleRoot>;
@@ -32,9 +31,7 @@ export const Sources = ({ className, ...props }: SourcesProps) => (
/>
);
-export type SourcesTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
- count: number;
-};
+export type SourcesTriggerProps = ComponentProps<typeof CollapsibleTrigger> & { count: number };
export const SourcesTrigger = ({ className, count, children, ...props }: SourcesTriggerProps) => {
const { t } = useT();
diff --git a/app/src/components/channels/ChannelFieldInput.test.tsx b/app/src/components/channels/ChannelFieldInput.test.tsx
index a316469229..1b8b305622 100644
--- a/app/src/components/channels/ChannelFieldInput.test.tsx
+++ b/app/src/components/channels/ChannelFieldInput.test.tsx
@@ -1,8 +1,8 @@
import { fireEvent } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
-import type { FieldRequirement } from '../../types/channels';
import { renderWithProviders } from '../../test/test-utils';
+import type { FieldRequirement } from '../../types/channels';
import ChannelFieldInput from './ChannelFieldInput';
const textField: FieldRequirement = {
diff --git a/app/src/components/channels/mcp/McpConnectionHealthToolbar.tsx b/app/src/components/channels/mcp/McpConnectionHealthToolbar.tsx
index ae5525cb2c..4760bf5678 100644
--- a/app/src/components/channels/mcp/McpConnectionHealthToolbar.tsx
+++ b/app/src/components/channels/mcp/McpConnectionHealthToolbar.tsx
@@ -226,7 +226,11 @@ const McpConnectionHealthToolbar = ({
</Button>
</AlertDialogCancel>
<AlertDialogAction asChild>
- <Button variant="primary" tone="danger" size="sm" onClick={() => void runDisconnectAll()}>
+ <Button
+ variant="primary"
+ tone="danger"
+ size="sm"
+ onClick={() => void runDisconnectAll()}>
{t('mcp.health.disconnectConfirm.confirm')}
</Button>
</AlertDialogAction>
diff --git a/app/src/components/channels/mcp/McpInventoryImportTab.test.tsx b/app/src/components/channels/mcp/McpInventoryImportTab.test.tsx
index f61b15f3af..ce0af6e6c3 100644
--- a/app/src/components/channels/mcp/McpInventoryImportTab.test.tsx
+++ b/app/src/components/channels/mcp/McpInventoryImportTab.test.tsx
@@ -2,8 +2,8 @@ import { fireEvent, screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import { renderWithProviders } from '../../../test/test-utils';
-import { buildManifest, serializeManifest } from './McpInventoryManifest';
import McpInventoryImportTab from './McpInventoryImportTab';
+import { buildManifest, serializeManifest } from './McpInventoryManifest';
import type { InstalledServer } from './types';
const SERVER: InstalledServer = {
@@ -20,9 +20,7 @@ const SERVER: InstalledServer = {
describe('<McpInventoryImportTab />', () => {
it('renders the paste textarea, disables Preview until there is input', () => {
- renderWithProviders(
- <McpInventoryImportTab installedServers={[]} onInstallServer={vi.fn()} />
- );
+ renderWithProviders(<McpInventoryImportTab installedServers={[]} onInstallServer={vi.fn()} />);
expect(screen.getByLabelText('Paste manifest JSON')).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Preview' })).toBeDisabled();
});
@@ -39,9 +37,7 @@ describe('<McpInventoryImportTab />', () => {
fireEvent.click(screen.getByRole('button', { name: 'Preview' }));
expect(screen.getByRole('heading', { name: 'Preview' })).toBeInTheDocument();
- fireEvent.click(
- screen.getByRole('button', { name: 'Install DB Server from this manifest' })
- );
+ fireEvent.click(screen.getByRole('button', { name: 'Install DB Server from this manifest' }));
expect(onInstallServer).toHaveBeenCalledWith('acme/db-server', { DB_URL: '' });
});
});
diff --git a/app/src/components/channels/mcp/McpServersTab.tsx b/app/src/components/channels/mcp/McpServersTab.tsx
index 7a69cb18f8..13d6dd1a70 100644
--- a/app/src/components/channels/mcp/McpServersTab.tsx
+++ b/app/src/components/channels/mcp/McpServersTab.tsx
@@ -669,9 +669,7 @@ const McpServersTab = () => {
<TableHeader>
<TableRow className="bg-surface-muted">
<TableHead>{t('mcp.tab.column.name')}</TableHead>
- <TableHead className="hidden w-28 sm:table-cell">
- {t('mcp.tab.column.type')}
- </TableHead>
+ <TableHead className="hidden w-28 sm:table-cell">{t('mcp.tab.column.type')}</TableHead>
<TableHead className="hidden w-36 sm:table-cell">
{t('mcp.tab.column.author')}
</TableHead>
@@ -690,10 +688,7 @@ const McpServersTab = () => {
className="cursor-pointer"
tabIndex={0}
role="button"
- aria-label={t('mcp.tab.aria.viewDetails').replace(
- '{name}',
- server.display_name
- )}
+ aria-label={t('mcp.tab.aria.viewDetails').replace('{name}', server.display_name)}
onClick={() => handleSelectServer(server.server_id)}
onKeyDown={e => {
if (e.key === 'Enter' || e.key === ' ') {
@@ -736,10 +731,10 @@ const McpServersTab = () => {
);
})}
- {/* Registry servers — official first, then the registry's relevance
+ {/* Registry servers — official first, then the registry's relevance
order. Each row shows its transport, website/repo links, and the
real auth surfaces on install. */}
- {showRegistry && catalogRows}
+ {showRegistry && catalogRows}
</TableBody>
</Table>
diff --git a/app/src/components/chat/ArtifactCard.tsx b/app/src/components/chat/ArtifactCard.tsx
index 15b271245e..f6faa55638 100644
--- a/app/src/components/chat/ArtifactCard.tsx
+++ b/app/src/components/chat/ArtifactCard.tsx
@@ -2,12 +2,12 @@ import { useState } from 'react';
import { formatFileSize } from '../../lib/attachments';
import { useT } from '../../lib/i18n/I18nContext';
-import { Button } from '../ui';
import {
revealArtifactInFileManager,
saveArtifactViaDialog,
} from '../../services/artifactDownloadService';
import type { ArtifactSnapshot } from '../../store/chatRuntimeSlice';
+import { Button } from '../ui';
import { extensionFor } from './artifactExtension';
/**
diff --git a/app/src/components/chat/ChatFilesChip.tsx b/app/src/components/chat/ChatFilesChip.tsx
index f512eb37ed..5f618818ad 100644
--- a/app/src/components/chat/ChatFilesChip.tsx
+++ b/app/src/components/chat/ChatFilesChip.tsx
@@ -1,10 +1,10 @@
import { useEffect, useMemo, useState } from 'react';
import { useT } from '../../lib/i18n/I18nContext';
-import { Button } from '../ui';
import { listArtifactsForThread } from '../../services/artifactDownloadService';
import { upsertArtifactReadyForThread } from '../../store/chatRuntimeSlice';
import { useAppDispatch, useAppSelector } from '../../store/hooks';
+import { Button } from '../ui';
import ChatFilesPanel from './ChatFilesPanel';
/**
diff --git a/app/src/components/chat/QueuedFollowups.tsx b/app/src/components/chat/QueuedFollowups.tsx
index 7ae45d7c52..7f01fd1233 100644
--- a/app/src/components/chat/QueuedFollowups.tsx
+++ b/app/src/components/chat/QueuedFollowups.tsx
@@ -1,6 +1,6 @@
import { useT } from '../../lib/i18n/I18nContext';
-import { Button } from '../ui';
import type { QueuedFollowup } from '../../store/chatRuntimeSlice';
+import { Button } from '../ui';
interface QueuedFollowupsProps {
/** Follow-ups queued for the current thread while a turn is streaming. */
diff --git a/app/src/components/chat/UnsubscribeApprovalCard.tsx b/app/src/components/chat/UnsubscribeApprovalCard.tsx
index 3264f1715d..32c0d97b21 100644
--- a/app/src/components/chat/UnsubscribeApprovalCard.tsx
+++ b/app/src/components/chat/UnsubscribeApprovalCard.tsx
@@ -63,9 +63,7 @@ export const UnsubscribeApprovalCard: React.FC<Props> = ({ payload }) => {
<h4 className="font-semibold text-sm text-content">
{t('chat.unsubscribeApproval.title')}
</h4>
- <p className="text-sm text-content-secondary mt-1">
- {payload.metadata.message}
- </p>
+ <p className="text-sm text-content-secondary mt-1">{payload.metadata.message}</p>
<div className="text-xs text-content-muted mt-2 font-mono break-all bg-surface-subtle p-2 rounded">
{payload.metadata.unsubscribe_link}
</div>
diff --git a/app/src/components/composio/ComposioConnectModal.tsx b/app/src/components/composio/ComposioConnectModal.tsx
index af4af876cb..ffb9829a9d 100644
--- a/app/src/components/composio/ComposioConnectModal.tsx
+++ b/app/src/components/composio/ComposioConnectModal.tsx
@@ -106,273 +106,270 @@ export default function ComposioConnectModal({
maxWidthClassName="max-w-[460px]"
contentClassName="p-4 space-y-3">
{phase === 'idle' && (
- <>
- <p className="text-sm text-content-secondary">
- {`${t('composio.connect.idleDescription')} ${toolkit.name} ${t('composio.connect.idleDescriptionSuffix')}`}
- </p>
- <div className="rounded-xl border border-line bg-surface-muted p-3">
- <p className="mt-1 text-xs leading-relaxed text-content-secondary">
- {toolkit.name} {t('composio.connect.permissionsNote')}{' '}
- <span className="font-medium">{toolkit.permissionLabel}</span>.{' '}
- {t('composio.connect.permissionsNoteSuffix')}
- </p>
- </div>
- <RequiredFieldsForm
- fields={requiredFields}
- values={fieldValues}
- errors={fieldErrors}
- onChange={(key, v) => {
- setFieldValues(prev => ({ ...prev, [key]: v }));
- if (fieldErrors[key]) {
- setFieldErrors(prev => {
- const next = { ...prev };
- delete next[key];
- return next;
- });
- }
- }}
- />
- {error && phase === 'idle' && <p className="text-[11px] text-coral-600">{error}</p>}
- <Button
- variant="primary"
- size="lg"
- disabled={connectInFlight}
- onClick={() => void handleConnect()}
- className="w-full">
- {`${t('composio.connect.connect')} ${toolkit.name}`}
- </Button>
- </>
- )}
+ <>
+ <p className="text-sm text-content-secondary">
+ {`${t('composio.connect.idleDescription')} ${toolkit.name} ${t('composio.connect.idleDescriptionSuffix')}`}
+ </p>
+ <div className="rounded-xl border border-line bg-surface-muted p-3">
+ <p className="mt-1 text-xs leading-relaxed text-content-secondary">
+ {toolkit.name} {t('composio.connect.permissionsNote')}{' '}
+ <span className="font-medium">{toolkit.permissionLabel}</span>.{' '}
+ {t('composio.connect.permissionsNoteSuffix')}
+ </p>
+ </div>
+ <RequiredFieldsForm
+ fields={requiredFields}
+ values={fieldValues}
+ errors={fieldErrors}
+ onChange={(key, v) => {
+ setFieldValues(prev => ({ ...prev, [key]: v }));
+ if (fieldErrors[key]) {
+ setFieldErrors(prev => {
+ const next = { ...prev };
+ delete next[key];
+ return next;
+ });
+ }
+ }}
+ />
+ {error && phase === 'idle' && <p className="text-[11px] text-coral-600">{error}</p>}
+ <Button
+ variant="primary"
+ size="lg"
+ disabled={connectInFlight}
+ onClick={() => void handleConnect()}
+ className="w-full">
+ {`${t('composio.connect.connect')} ${toolkit.name}`}
+ </Button>
+ </>
+ )}
- {phase === 'needs-fields' && (
- <>
- <p className="text-sm text-content-secondary">
- {`${t('composio.connect.needsFieldsPrefix')} ${toolkit.name} ${t('composio.connect.needsFieldsSuffix')}`}
- </p>
- <RequiredFieldsForm
- fields={requiredFields}
- values={fieldValues}
- errors={fieldErrors}
- autoFocusFirst
- onChange={(key, v) => {
- setFieldValues(prev => ({ ...prev, [key]: v }));
- if (fieldErrors[key]) {
- setFieldErrors(prev => {
- const next = { ...prev };
- delete next[key];
- return next;
- });
- }
- }}
- />
- <Button
- variant="primary"
- size="lg"
- disabled={connectInFlight}
- onClick={() => void handleConnect()}
- className="w-full">
- {t('composio.connect.retryConnection')}
- </Button>
- <Button
- variant="secondary"
- size="md"
- onClick={() => {
- setPhase('idle');
- setFieldErrors({});
- setError(null);
- }}
- className="w-full">
- {t('common.cancel')}
- </Button>
- </>
- )}
+ {phase === 'needs-fields' && (
+ <>
+ <p className="text-sm text-content-secondary">
+ {`${t('composio.connect.needsFieldsPrefix')} ${toolkit.name} ${t('composio.connect.needsFieldsSuffix')}`}
+ </p>
+ <RequiredFieldsForm
+ fields={requiredFields}
+ values={fieldValues}
+ errors={fieldErrors}
+ autoFocusFirst
+ onChange={(key, v) => {
+ setFieldValues(prev => ({ ...prev, [key]: v }));
+ if (fieldErrors[key]) {
+ setFieldErrors(prev => {
+ const next = { ...prev };
+ delete next[key];
+ return next;
+ });
+ }
+ }}
+ />
+ <Button
+ variant="primary"
+ size="lg"
+ disabled={connectInFlight}
+ onClick={() => void handleConnect()}
+ className="w-full">
+ {t('composio.connect.retryConnection')}
+ </Button>
+ <Button
+ variant="secondary"
+ size="md"
+ onClick={() => {
+ setPhase('idle');
+ setFieldErrors({});
+ setError(null);
+ }}
+ className="w-full">
+ {t('common.cancel')}
+ </Button>
+ </>
+ )}
- {phase === 'authorizing' && (
- <p className="text-sm text-content-muted">{t('composio.connect.requestingUrl')}</p>
- )}
+ {phase === 'authorizing' && (
+ <p className="text-sm text-content-muted">{t('composio.connect.requestingUrl')}</p>
+ )}
- {phase === 'waiting' && (
- <>
- <div className="flex items-center gap-2 text-sm text-content-secondary">
- <div className="w-2 h-2 rounded-full bg-amber-500 animate-pulse" />
- {`${t('composio.connect.waitingFor')} ${toolkit.name} ${t('composio.connect.oauthComplete')}`}
- </div>
- {connectUrl && (
- <Button
- variant="secondary"
- size="md"
- onClick={() => void openUrl(connectUrl)}
- className="w-full">
- {t('composio.connect.reopenBrowser')}
- </Button>
- )}
- <p className="text-xs text-content-faint">{t('composio.connect.waitingHint')}</p>
- </>
+ {phase === 'waiting' && (
+ <>
+ <div className="flex items-center gap-2 text-sm text-content-secondary">
+ <div className="w-2 h-2 rounded-full bg-amber-500 animate-pulse" />
+ {`${t('composio.connect.waitingFor')} ${toolkit.name} ${t('composio.connect.oauthComplete')}`}
+ </div>
+ {connectUrl && (
+ <Button
+ variant="secondary"
+ size="md"
+ onClick={() => void openUrl(connectUrl)}
+ className="w-full">
+ {t('composio.connect.reopenBrowser')}
+ </Button>
)}
+ <p className="text-xs text-content-faint">{t('composio.connect.waitingHint')}</p>
+ </>
+ )}
- {phase === 'expired' && (
- <>
- <div className="rounded-xl border border-coral-200 bg-coral-50 p-3">
- <div className="flex items-center gap-2 text-sm font-medium text-coral-800">
- <div className="w-2 h-2 rounded-full bg-coral-500" />
- {t('composio.expiredAuthorization').replace('{name}', toolkit.name)}
- </div>
- <p className="mt-2 text-xs leading-relaxed text-coral-700">
- {t('composio.expiredDescription').replace('{name}', toolkit.name)}
- </p>
+ {phase === 'expired' && (
+ <>
+ <div className="rounded-xl border border-coral-200 bg-coral-50 p-3">
+ <div className="flex items-center gap-2 text-sm font-medium text-coral-800">
+ <div className="w-2 h-2 rounded-full bg-coral-500" />
+ {t('composio.expiredAuthorization').replace('{name}', toolkit.name)}
+ </div>
+ <p className="mt-2 text-xs leading-relaxed text-coral-700">
+ {t('composio.expiredDescription').replace('{name}', toolkit.name)}
+ </p>
+ </div>
+ <Button
+ variant="primary"
+ size="lg"
+ disabled={connectInFlight}
+ onClick={() => void handleConnect()}
+ className="w-full">
+ {`${t('composio.reconnect')} ${toolkit.name}`}
+ </Button>
+ </>
+ )}
+
+ {phase === 'connected' && (
+ <>
+ {/* Single connection: inline status (backward-compatible view) */}
+ {activeConnections.length <= 1 && (
+ <div className="flex items-center gap-2 text-sm text-sage-700">
+ <div className="w-2 h-2 rounded-full bg-sage-500" />
+ <div>
+ {`${toolkit.name} ${t('composio.connect.isConnected')}`} &nbsp;
+ {(activeConnections[0] ?? activeConnection) &&
+ deriveConnectionLabel(activeConnections[0] ?? activeConnection!) && (
+ <span className="text-[11px] text-content-faint font-mono">
+ ({deriveConnectionLabel((activeConnections[0] ?? activeConnection)!)})
+ </span>
+ )}
</div>
- <Button
- variant="primary"
- size="lg"
- disabled={connectInFlight}
- onClick={() => void handleConnect()}
- className="w-full">
- {`${t('composio.reconnect')} ${toolkit.name}`}
- </Button>
- </>
+ </div>
)}
-
- {phase === 'connected' && (
- <>
- {/* Single connection: inline status (backward-compatible view) */}
- {activeConnections.length <= 1 && (
- <div className="flex items-center gap-2 text-sm text-sage-700">
- <div className="w-2 h-2 rounded-full bg-sage-500" />
- <div>
- {`${toolkit.name} ${t('composio.connect.isConnected')}`} &nbsp;
- {(activeConnections[0] ?? activeConnection) &&
- deriveConnectionLabel(activeConnections[0] ?? activeConnection!) && (
- <span className="text-[11px] text-content-faint font-mono">
- ({deriveConnectionLabel((activeConnections[0] ?? activeConnection)!)})
- </span>
- )}
- </div>
- </div>
- )}
- {/* Multiple connections: list with per-connection controls */}
- {activeConnections.length > 1 && (
- <div className="space-y-2">
- <p className="text-xs font-medium text-content-muted uppercase tracking-wide">
- {t('composio.connect.connectedAccounts')} ({activeConnections.length})
- </p>
- {activeConnections.map(conn => (
- <div
- key={conn.id}
- className="flex items-center justify-between gap-2 rounded-lg border border-line bg-surface-muted px-3 py-2">
- <div className="flex items-center gap-2 min-w-0">
- <div className="w-2 h-2 rounded-full bg-sage-500 shrink-0" />
- <span className="text-sm text-content truncate">
- {deriveConnectionLabel(conn) ?? toolkit.name}
- </span>
- {conn.id === activeConnections[0]?.id && (
- <span className="text-[10px] font-medium text-primary-600 dark:text-primary-400 bg-primary-50 dark:bg-primary-500/10 px-1.5 py-0.5 rounded-full shrink-0">
- {t('composio.connect.defaultLabel')}
- </span>
- )}
- </div>
- <Button
- variant="tertiary"
- tone="danger"
- size="xs"
- onClick={() => void handleDisconnect(conn)}
- className="shrink-0">
- {t('composio.connect.disconnectAccount')}
- </Button>
- </div>
- ))}
- </div>
- )}
- {agentUnsupported && (
- <div className="rounded-xl border border-amber-200 bg-amber-50 p-3 dark:border-amber-500/30 dark:bg-amber-500/10">
- <div className="flex items-center gap-2 text-sm font-medium text-amber-800 dark:text-amber-200">
- <div className="h-2 w-2 rounded-full bg-amber-500" />
- {t('composio.previewBadge')}
+ {/* Multiple connections: list with per-connection controls */}
+ {activeConnections.length > 1 && (
+ <div className="space-y-2">
+ <p className="text-xs font-medium text-content-muted uppercase tracking-wide">
+ {t('composio.connect.connectedAccounts')} ({activeConnections.length})
+ </p>
+ {activeConnections.map(conn => (
+ <div
+ key={conn.id}
+ className="flex items-center justify-between gap-2 rounded-lg border border-line bg-surface-muted px-3 py-2">
+ <div className="flex items-center gap-2 min-w-0">
+ <div className="w-2 h-2 rounded-full bg-sage-500 shrink-0" />
+ <span className="text-sm text-content truncate">
+ {deriveConnectionLabel(conn) ?? toolkit.name}
+ </span>
+ {conn.id === activeConnections[0]?.id && (
+ <span className="text-[10px] font-medium text-primary-600 dark:text-primary-400 bg-primary-50 dark:bg-primary-500/10 px-1.5 py-0.5 rounded-full shrink-0">
+ {t('composio.connect.defaultLabel')}
+ </span>
+ )}
</div>
- <p className="mt-2 text-xs leading-relaxed text-amber-700 dark:text-amber-200/80">
- {t('composio.previewTooltip')}
- </p>
+ <Button
+ variant="tertiary"
+ tone="danger"
+ size="xs"
+ onClick={() => void handleDisconnect(conn)}
+ className="shrink-0">
+ {t('composio.connect.disconnectAccount')}
+ </Button>
</div>
- )}
- <ScopeToggles
- scopes={scopes}
- savingScope={savingScope}
- onToggle={handleToggleScope}
- error={scopeError}
- />
- {activeConnection && (
- <TriggerToggles
- toolkitSlug={toolkit.slug}
- toolkitName={toolkit.name}
- connectionId={activeConnection.id}
- />
- )}
- <Button
- variant="secondary"
- size="lg"
- disabled={connectInFlight}
- onClick={() => void handleConnect()}
- className="w-full">
- {t('composio.connect.addAnotherAccount')}
- </Button>
- <label
- htmlFor="composio-clear-memory-on-disconnect"
- className="flex items-start gap-2 rounded-lg border border-line bg-surface-muted px-3 py-2">
- <Checkbox
- id="composio-clear-memory-on-disconnect"
- checked={clearMemoryOnDisconnect}
- onCheckedChange={setClearMemoryOnDisconnect}
- className="mt-0.5"
- />
- <span className="min-w-0">
- <span className="block text-sm font-medium text-content">
- {t('accounts.disconnectClearMemory')}
- </span>
- <span className="block text-xs text-content-muted">
- {t('accounts.disconnectClearMemoryHint')}
- </span>
- </span>
- </label>
- <div className="grid grid-cols-2 gap-3">
- <Button
- variant="secondary"
- tone="danger"
- size="lg"
- onClick={() => void handleDisconnect()}
- className="w-full">
- {t('skills.disconnect')}
- </Button>
- <Button variant="primary" size="lg" onClick={onClose} className="w-full">
- {t('common.close')}
- </Button>
+ ))}
+ </div>
+ )}
+ {agentUnsupported && (
+ <div className="rounded-xl border border-amber-200 bg-amber-50 p-3 dark:border-amber-500/30 dark:bg-amber-500/10">
+ <div className="flex items-center gap-2 text-sm font-medium text-amber-800 dark:text-amber-200">
+ <div className="h-2 w-2 rounded-full bg-amber-500" />
+ {t('composio.previewBadge')}
</div>
- </>
+ <p className="mt-2 text-xs leading-relaxed text-amber-700 dark:text-amber-200/80">
+ {t('composio.previewTooltip')}
+ </p>
+ </div>
)}
-
- {phase === 'disconnecting' && (
- <p className="text-sm text-content-muted">{t('composio.connect.disconnecting')}</p>
+ <ScopeToggles
+ scopes={scopes}
+ savingScope={savingScope}
+ onToggle={handleToggleScope}
+ error={scopeError}
+ />
+ {activeConnection && (
+ <TriggerToggles
+ toolkitSlug={toolkit.slug}
+ toolkitName={toolkit.name}
+ connectionId={activeConnection.id}
+ />
)}
+ <Button
+ variant="secondary"
+ size="lg"
+ disabled={connectInFlight}
+ onClick={() => void handleConnect()}
+ className="w-full">
+ {t('composio.connect.addAnotherAccount')}
+ </Button>
+ <label
+ htmlFor="composio-clear-memory-on-disconnect"
+ className="flex items-start gap-2 rounded-lg border border-line bg-surface-muted px-3 py-2">
+ <Checkbox
+ id="composio-clear-memory-on-disconnect"
+ checked={clearMemoryOnDisconnect}
+ onCheckedChange={setClearMemoryOnDisconnect}
+ className="mt-0.5"
+ />
+ <span className="min-w-0">
+ <span className="block text-sm font-medium text-content">
+ {t('accounts.disconnectClearMemory')}
+ </span>
+ <span className="block text-xs text-content-muted">
+ {t('accounts.disconnectClearMemoryHint')}
+ </span>
+ </span>
+ </label>
+ <div className="grid grid-cols-2 gap-3">
+ <Button
+ variant="secondary"
+ tone="danger"
+ size="lg"
+ onClick={() => void handleDisconnect()}
+ className="w-full">
+ {t('skills.disconnect')}
+ </Button>
+ <Button variant="primary" size="lg" onClick={onClose} className="w-full">
+ {t('common.close')}
+ </Button>
+ </div>
+ </>
+ )}
- {phase === 'error' && (
- <>
- <div className="rounded-xl border border-coral-200 bg-coral-50 p-3">
- <p className="text-sm text-coral-700">{error ?? t('misc.somethingWentWrong')}</p>
- </div>
- <Button
- variant="secondary"
- size="md"
- onClick={() => {
- setClearMemoryOnDisconnect(false);
- setPhase(
- initiallyConnected ? 'connected' : initiallyExpired ? 'expired' : 'idle'
- );
- setError(null);
- }}
- className="w-full">
- {t('common.dismiss')}
- </Button>
- </>
- )}
+ {phase === 'disconnecting' && (
+ <p className="text-sm text-content-muted">{t('composio.connect.disconnecting')}</p>
+ )}
+
+ {phase === 'error' && (
+ <>
+ <div className="rounded-xl border border-coral-200 bg-coral-50 p-3">
+ <p className="text-sm text-coral-700">{error ?? t('misc.somethingWentWrong')}</p>
+ </div>
+ <Button
+ variant="secondary"
+ size="md"
+ onClick={() => {
+ setClearMemoryOnDisconnect(false);
+ setPhase(initiallyConnected ? 'connected' : initiallyExpired ? 'expired' : 'idle');
+ setError(null);
+ }}
+ className="w-full">
+ {t('common.dismiss')}
+ </Button>
+ </>
+ )}
</ModalShell>
);
}
-
diff --git a/app/src/components/composio/ScopeToggles.tsx b/app/src/components/composio/ScopeToggles.tsx
index 1acce9cc47..c9eb4075f8 100644
--- a/app/src/components/composio/ScopeToggles.tsx
+++ b/app/src/components/composio/ScopeToggles.tsx
@@ -1,6 +1,6 @@
+import type { ComposioUserScopePref } from '../../lib/composio/types';
import { useT } from '../../lib/i18n/I18nContext';
import { Switch } from '../ui';
-import type { ComposioUserScopePref } from '../../lib/composio/types';
type ScopeRowDef = { key: keyof ComposioUserScopePref; labelKey: string; hintKey: string };
diff --git a/app/src/components/composio/useComposioConnectFlow.ts b/app/src/components/composio/useComposioConnectFlow.ts
index e9feb2bdd4..8c6ac4288f 100644
--- a/app/src/components/composio/useComposioConnectFlow.ts
+++ b/app/src/components/composio/useComposioConnectFlow.ts
@@ -463,7 +463,6 @@ export function useComposioConnectFlow({
[activeConnection, activeConnections, clearMemoryOnDisconnect, onChanged, t]
);
-
return {
t,
phase,
diff --git a/app/src/components/feedback/FeedbackAdminMenu.tsx b/app/src/components/feedback/FeedbackAdminMenu.tsx
index f77c3403c0..0780b291fe 100644
--- a/app/src/components/feedback/FeedbackAdminMenu.tsx
+++ b/app/src/components/feedback/FeedbackAdminMenu.tsx
@@ -3,8 +3,8 @@ import { useState } from 'react';
import { useT } from '../../lib/i18n/I18nContext';
import { feedbackApi } from '../../services/api/feedbackApi';
-import { NativeSelect } from '../ui';
import type { FeedbackItem, FeedbackStatus } from '../../types/feedback';
+import { NativeSelect } from '../ui';
const log = debugFactory('feedback:admin');
diff --git a/app/src/components/feedback/FeedbackFilterSelect.tsx b/app/src/components/feedback/FeedbackFilterSelect.tsx
index 474a16a3f9..9f84df48f5 100644
--- a/app/src/components/feedback/FeedbackFilterSelect.tsx
+++ b/app/src/components/feedback/FeedbackFilterSelect.tsx
@@ -30,7 +30,10 @@ export default function FeedbackFilterSelect({
}: FeedbackFilterSelectProps) {
return (
<SelectRoot value={value} onValueChange={onChange}>
- <SelectTrigger aria-label={ariaLabel} inputSize="sm" className="w-auto gap-1.5 text-xs font-medium">
+ <SelectTrigger
+ aria-label={ariaLabel}
+ inputSize="sm"
+ className="w-auto gap-1.5 text-xs font-medium">
<SelectValue />
</SelectTrigger>
<SelectContent align="end">
diff --git a/app/src/components/feedback/FeedbackItemRow.tsx b/app/src/components/feedback/FeedbackItemRow.tsx
index 254cd58b91..ba079528a3 100644
--- a/app/src/components/feedback/FeedbackItemRow.tsx
+++ b/app/src/components/feedback/FeedbackItemRow.tsx
@@ -1,9 +1,9 @@
import { useState } from 'react';
import { useT } from '../../lib/i18n/I18nContext';
+import type { FeedbackItem } from '../../types/feedback';
import { Button } from '../ui';
import { AvatarFallback, AvatarRoot } from '../ui/Avatar';
-import type { FeedbackItem } from '../../types/feedback';
import FeedbackAdminMenu from './FeedbackAdminMenu';
import FeedbackComments from './FeedbackComments';
import FeedbackStatusBadge from './FeedbackStatusBadge';
diff --git a/app/src/components/feedback/FeedbackVoteControl.tsx b/app/src/components/feedback/FeedbackVoteControl.tsx
index 090dd7c41d..bb01207eff 100644
--- a/app/src/components/feedback/FeedbackVoteControl.tsx
+++ b/app/src/components/feedback/FeedbackVoteControl.tsx
@@ -3,8 +3,8 @@ import { useState } from 'react';
import { useT } from '../../lib/i18n/I18nContext';
import { feedbackApi } from '../../services/api/feedbackApi';
-import { Button } from '../ui';
import type { FeedbackItem, FeedbackVoteValue } from '../../types/feedback';
+import { Button } from '../ui';
const log = debugFactory('feedback:vote');
diff --git a/app/src/components/flows/WorkflowCopilotPanel.assistantUiRuntime.test.tsx b/app/src/components/flows/WorkflowCopilotPanel.assistantUiRuntime.test.tsx
index 56b1f40d3f..4bb6a478f0 100644
--- a/app/src/components/flows/WorkflowCopilotPanel.assistantUiRuntime.test.tsx
+++ b/app/src/components/flows/WorkflowCopilotPanel.assistantUiRuntime.test.tsx
@@ -24,11 +24,11 @@ import { act, render, screen } from '@testing-library/react';
import { Provider } from 'react-redux';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import type { WorkflowGraph, WorkflowNode } from '../../lib/flows/types';
import { __resetChatSurfaces, getChatSurface } from '../../providers/chatSurfaceHandlers';
import chatRuntimeReducer, { type WorkflowProposal } from '../../store/chatRuntimeSlice';
import threadReducer from '../../store/threadSlice';
import type { ThreadMessage } from '../../types/thread';
-import type { WorkflowGraph, WorkflowNode } from '../../lib/flows/types';
import WorkflowCopilotPanel from './WorkflowCopilotPanel';
vi.mock('../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (key: string) => key }) }));
diff --git a/app/src/components/flows/canvas/FlowNodeComponent.test.tsx b/app/src/components/flows/canvas/FlowNodeComponent.test.tsx
index bb2a1a98f6..f1941c974b 100644
--- a/app/src/components/flows/canvas/FlowNodeComponent.test.tsx
+++ b/app/src/components/flows/canvas/FlowNodeComponent.test.tsx
@@ -7,8 +7,8 @@
* only appears when both `CanvasActionsContext` is provided and the node is
* selected, and that each action fires through.
*/
-import { ReactFlow, ReactFlowProvider } from '@xyflow/react';
import { fireEvent, render, screen } from '@testing-library/react';
+import { ReactFlow, ReactFlowProvider } from '@xyflow/react';
import { describe, expect, it, vi } from 'vitest';
import type { FlowNode } from '../../../lib/flows/graphAdapter';
@@ -34,9 +34,10 @@ function sampleNode(overrides: Partial<FlowNode> = {}): FlowNode {
};
}
-function renderNode(node: FlowNode, actions?: React.ComponentProps<
- typeof CanvasActionsContext.Provider
->['value']) {
+function renderNode(
+ node: FlowNode,
+ actions?: React.ComponentProps<typeof CanvasActionsContext.Provider>['value']
+) {
const tree = (
<ReactFlowProvider>
<ReactFlow nodes={[node]} edges={[]} nodeTypes={nodeTypes} />
diff --git a/app/src/components/flows/canvas/nodeConfig/ScheduleField.tsx b/app/src/components/flows/canvas/nodeConfig/ScheduleField.tsx
index bc994fc933..21d287b347 100644
--- a/app/src/components/flows/canvas/nodeConfig/ScheduleField.tsx
+++ b/app/src/components/flows/canvas/nodeConfig/ScheduleField.tsx
@@ -14,6 +14,7 @@
*/
import { useCallback, useEffect, useId, useMemo, useState } from 'react';
+import { cn } from '../../../../lib/cn';
import {
buildCron,
type CronFreq,
@@ -26,7 +27,6 @@ import {
WEEKDAYS,
weekdayShortLabel,
} from '../../../../lib/flows/cron';
-import { cn } from '../../../../lib/cn';
import { useT } from '../../../../lib/i18n/I18nContext';
import Button from '../../../ui/Button';
import UiInput from '../../../ui/Input';
diff --git a/app/src/components/flows/canvas/nodeConfig/__tests__/NodeConnections.test.tsx b/app/src/components/flows/canvas/nodeConfig/__tests__/NodeConnections.test.tsx
index 784a04491f..52a6aa8a5f 100644
--- a/app/src/components/flows/canvas/nodeConfig/__tests__/NodeConnections.test.tsx
+++ b/app/src/components/flows/canvas/nodeConfig/__tests__/NodeConnections.test.tsx
@@ -17,9 +17,7 @@ const edges: FlowEdge[] = [
describe('NodeConnections', () => {
it('shows an empty state when the node has no edges', () => {
- render(
- <NodeConnections nodeId="n1" edges={[]} nodeLabelById={{}} onRemoveEdge={vi.fn()} />
- );
+ render(<NodeConnections nodeId="n1" edges={[]} nodeLabelById={{}} onRemoveEdge={vi.fn()} />);
expect(screen.getByTestId('node-connections-empty')).toBeInTheDocument();
});
diff --git a/app/src/components/flows/canvas/nodeConfig/nodeConfigFields.tsx b/app/src/components/flows/canvas/nodeConfig/nodeConfigFields.tsx
index 28b3e62732..961ee6eca1 100644
--- a/app/src/components/flows/canvas/nodeConfig/nodeConfigFields.tsx
+++ b/app/src/components/flows/canvas/nodeConfig/nodeConfigFields.tsx
@@ -317,7 +317,10 @@ export function ExpressionField({
<InputGroupInput
id={id}
type="text"
- className={cn(MONO_CLASS, warning && 'border-amber-400 focus:border-amber-500 focus:ring-amber-500/20')}
+ className={cn(
+ MONO_CLASS,
+ warning && 'border-amber-400 focus:border-amber-500 focus:ring-amber-500/20'
+ )}
value={value}
placeholder={placeholder}
data-testid={testId}
diff --git a/app/src/components/intelligence/ConfirmationModal.tsx b/app/src/components/intelligence/ConfirmationModal.tsx
index 7ac4965412..4edb1c79e6 100644
--- a/app/src/components/intelligence/ConfirmationModal.tsx
+++ b/app/src/components/intelligence/ConfirmationModal.tsx
@@ -105,7 +105,9 @@ export function ConfirmationModal({ modal, onClose }: ConfirmationModalProps) {
{/* No onClick here: Radix's Cancel already closes the dialog, which
routes through the Root's onOpenChange -> handleCancel above. */}
<AlertDialogCancel>{modal.cancelText || t('common.cancel')}</AlertDialogCancel>
- <AlertDialogAction tone={modal.destructive ? 'danger' : 'default'} onClick={handleConfirm}>
+ <AlertDialogAction
+ tone={modal.destructive ? 'danger' : 'default'}
+ onClick={handleConfirm}>
{modal.confirmText || t('common.confirm')}
</AlertDialogAction>
</AlertDialogFooter>
diff --git a/app/src/components/intelligence/MemoryChunkMentioned.tsx b/app/src/components/intelligence/MemoryChunkMentioned.tsx
index 3fb6585f12..93fb557732 100644
--- a/app/src/components/intelligence/MemoryChunkMentioned.tsx
+++ b/app/src/components/intelligence/MemoryChunkMentioned.tsx
@@ -6,8 +6,8 @@
* result list to chunks tagged with that entity.
*/
import { useT } from '../../lib/i18n/I18nContext';
-import Button from '../ui/Button';
import type { EntityRef } from '../../utils/tauriCommands';
+import Button from '../ui/Button';
interface MemoryChunkMentionedProps {
entities: EntityRef[];
diff --git a/app/src/components/intelligence/MemorySourcesRegistry.tsx b/app/src/components/intelligence/MemorySourcesRegistry.tsx
index ed1c9d937f..825fcff04b 100644
--- a/app/src/components/intelligence/MemorySourcesRegistry.tsx
+++ b/app/src/components/intelligence/MemorySourcesRegistry.tsx
@@ -35,10 +35,14 @@ import {
import Button from '../ui/Button';
import { AddMemorySourceDialog } from './AddMemorySourceDialog';
import { ConfirmationModal } from './ConfirmationModal';
+import { MemorySourceRow } from './MemorySourceRow';
import { AllInIcon, PlusIcon } from './memorySourcesIcons';
import { sourceTreeScope } from './memorySourcesRowHelpers';
-import { STAGE_FALLBACK_PERCENT, type SyncProgress, type SyncResult } from './memorySourcesSyncTypes';
-import { MemorySourceRow } from './MemorySourceRow';
+import {
+ STAGE_FALLBACK_PERCENT,
+ type SyncProgress,
+ type SyncResult,
+} from './memorySourcesSyncTypes';
import { MemorySyncSchedule } from './MemorySyncSchedule';
interface MemorySourcesRegistryProps {
@@ -550,4 +554,3 @@ export function MemorySourcesRegistry({
</section>
);
}
-
diff --git a/app/src/components/intelligence/SourceSettingsPanel.test.tsx b/app/src/components/intelligence/SourceSettingsPanel.test.tsx
index dcb9e67a7b..31c3df1e4e 100644
--- a/app/src/components/intelligence/SourceSettingsPanel.test.tsx
+++ b/app/src/components/intelligence/SourceSettingsPanel.test.tsx
@@ -2,8 +2,9 @@ import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { afterEach, describe, expect, it, vi } from 'vitest';
-import { SourceSettingsPanel } from './SourceSettingsPanel';
import type { MemorySourceEntry } from '../../services/memorySourcesService';
+import { updateMemorySource } from '../../services/memorySourcesService';
+import { SourceSettingsPanel } from './SourceSettingsPanel';
vi.mock('../../services/memorySourcesService', async () => {
const actual = await vi.importActual<typeof import('../../services/memorySourcesService')>(
@@ -12,8 +13,6 @@ vi.mock('../../services/memorySourcesService', async () => {
return { ...actual, updateMemorySource: vi.fn() };
});
-import { updateMemorySource } from '../../services/memorySourcesService';
-
const source: MemorySourceEntry = {
id: 'src-1',
kind: 'rss_feed',
diff --git a/app/src/components/intelligence/SyncAuditPanel.tsx b/app/src/components/intelligence/SyncAuditPanel.tsx
index 4e8e5ed21e..59e31d6094 100644
--- a/app/src/components/intelligence/SyncAuditPanel.tsx
+++ b/app/src/components/intelligence/SyncAuditPanel.tsx
@@ -5,8 +5,8 @@
import { useEffect, useState } from 'react';
import { useT } from '../../lib/i18n/I18nContext';
-import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../ui/Table';
import { memorySyncAuditLog, type SyncAuditEntry } from '../../utils/tauriCommands';
+import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '../ui/Table';
function formatDuration(ms: number): string {
if (ms < 1000) return `${ms}ms`;
diff --git a/app/src/components/intelligence/TeamHeader.tsx b/app/src/components/intelligence/TeamHeader.tsx
index 305ef92372..bc6c9be8d9 100644
--- a/app/src/components/intelligence/TeamHeader.tsx
+++ b/app/src/components/intelligence/TeamHeader.tsx
@@ -63,7 +63,9 @@ export function TeamHeader({
<div className="break-words text-sm font-semibold text-content">{title}</div>
<div className="mt-0.5 text-[11px] text-content-muted">
{t('intelligence.teams.header.lead')}{' '}
- <span className="font-mono text-primary-600 dark:text-primary-300">{team.leadAgentId}</span>
+ <span className="font-mono text-primary-600 dark:text-primary-300">
+ {team.leadAgentId}
+ </span>
{' · '}
{t('intelligence.teams.header.taskCount').replace('{count}', String(taskCount))}
{' · '}
diff --git a/app/src/components/intelligence/Toast.test.tsx b/app/src/components/intelligence/Toast.test.tsx
index c47220f0db..c6928df2bc 100644
--- a/app/src/components/intelligence/Toast.test.tsx
+++ b/app/src/components/intelligence/Toast.test.tsx
@@ -2,8 +2,8 @@ import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { describe, expect, it, vi } from 'vitest';
-import { ToastContainer } from './Toast';
import type { ToastNotification } from '../../types/intelligence';
+import { ToastContainer } from './Toast';
const notification: ToastNotification = {
id: 'n1',
diff --git a/app/src/components/intelligence/Toast.tsx b/app/src/components/intelligence/Toast.tsx
index 3556882d0a..76caf1a0ef 100644
--- a/app/src/components/intelligence/Toast.tsx
+++ b/app/src/components/intelligence/Toast.tsx
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useState } from 'react';
-import { Button, CloseIcon } from '../ui';
import type { ToastNotification } from '../../types/intelligence';
+import { Button, CloseIcon } from '../ui';
interface ToastProps {
notification: ToastNotification;
diff --git a/app/src/components/intelligence/memorySourcesRowHelpers.ts b/app/src/components/intelligence/memorySourcesRowHelpers.ts
index f5b8804de9..7236dd7420 100644
--- a/app/src/components/intelligence/memorySourcesRowHelpers.ts
+++ b/app/src/components/intelligence/memorySourcesRowHelpers.ts
@@ -4,10 +4,7 @@
*/
import type { MemorySourceEntry } from '../../services/memorySourcesService';
-export function relativeTimestamp(
- epochMs: number | null,
- t: (k: string) => string
-): string | null {
+export function relativeTimestamp(epochMs: number | null, t: (k: string) => string): string | null {
if (epochMs === null) return null;
const delta = Date.now() - epochMs;
if (delta < 1000) return t('time.justNow');
diff --git a/app/src/components/layout/ChipTabs.tsx b/app/src/components/layout/ChipTabs.tsx
index f4dde6de8a..ab78ec5d22 100644
--- a/app/src/components/layout/ChipTabs.tsx
+++ b/app/src/components/layout/ChipTabs.tsx
@@ -75,7 +75,8 @@ const compactChipSpacingClass = 'px-2 py-0.5';
// high-contrast and on-theme under any palette (light, dark, or custom).
// The hover fill is pinned to the same colour — a selected chip does not react
// to hover, and `tertiary` would otherwise contribute one.
-const activeChipClass = 'data-[state=active]:bg-content data-[state=active]:text-surface data-[state=active]:hover:bg-content';
+const activeChipClass =
+ 'data-[state=active]:bg-content data-[state=active]:text-surface data-[state=active]:hover:bg-content';
const inactiveChipClass =
'bg-surface border border-line text-content-secondary hover:bg-surface-hover';
diff --git a/app/src/components/layout/PageSectionHeader.tsx b/app/src/components/layout/PageSectionHeader.tsx
index faf8473b67..1afe14db8e 100644
--- a/app/src/components/layout/PageSectionHeader.tsx
+++ b/app/src/components/layout/PageSectionHeader.tsx
@@ -1,7 +1,7 @@
import type { ReactNode } from 'react';
import { cn } from '../../lib/cn';
-import { contentWidthVariants, type ContentWidth } from './contentWidth';
+import { type ContentWidth, contentWidthVariants } from './contentWidth';
/**
* PageSectionHeader — the canonical header for a functional page view: a title
diff --git a/app/src/components/layout/PageWelcome.tsx b/app/src/components/layout/PageWelcome.tsx
index c3c4efed8e..a7512396e0 100644
--- a/app/src/components/layout/PageWelcome.tsx
+++ b/app/src/components/layout/PageWelcome.tsx
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
import { cn } from '../../lib/cn';
import Button from '../ui/Button';
-import { contentWidthVariants, type ContentWidth } from './contentWidth';
+import { type ContentWidth, contentWidthVariants } from './contentWidth';
/**
* PageWelcome — the welcome landing shown as the first destination of a sidebar
diff --git a/app/src/components/layout/PanelHeader.tsx b/app/src/components/layout/PanelHeader.tsx
index 477bc35bf5..82ecf9f239 100644
--- a/app/src/components/layout/PanelHeader.tsx
+++ b/app/src/components/layout/PanelHeader.tsx
@@ -22,11 +22,7 @@ export const DEFAULT_PANEL_HEADER_BG = 'bg-surface-muted';
*/
export const panelHeaderVariants = cva(DEFAULT_PANEL_HEADER_CLASS, {
variants: {
- tone: {
- muted: DEFAULT_PANEL_HEADER_BG,
- surface: 'bg-surface',
- transparent: 'bg-transparent',
- },
+ tone: { muted: DEFAULT_PANEL_HEADER_BG, surface: 'bg-surface', transparent: 'bg-transparent' },
},
defaultVariants: { tone: 'muted' },
});
diff --git a/app/src/components/layout/PanelScaffold.tsx b/app/src/components/layout/PanelScaffold.tsx
index 50ce289ece..b2a2af4c60 100644
--- a/app/src/components/layout/PanelScaffold.tsx
+++ b/app/src/components/layout/PanelScaffold.tsx
@@ -1,7 +1,7 @@
import type { ReactNode } from 'react';
import { cn } from '../../lib/cn';
-import { contentWidthVariants, type ContentWidth } from './contentWidth';
+import { type ContentWidth, contentWidthVariants } from './contentWidth';
import PanelHeader, { type PanelHeaderProps } from './PanelHeader';
interface PanelScaffoldProps {
@@ -98,7 +98,9 @@ export default function PanelScaffold({
const showBorder = bodyBorder ?? hasVisibleHeader;
const body =
- width === 'full' ? children : (
+ width === 'full' ? (
+ children
+ ) : (
<div className={cn('mx-auto w-full', contentWidthVariants({ width }))}>{children}</div>
);
diff --git a/app/src/components/layout/TwoPanelLayout.tsx b/app/src/components/layout/TwoPanelLayout.tsx
index 0ea2b01546..36fb696022 100644
--- a/app/src/components/layout/TwoPanelLayout.tsx
+++ b/app/src/components/layout/TwoPanelLayout.tsx
@@ -209,7 +209,11 @@ export default function TwoPanelLayout({
// Drag/keyboard mechanics (clamp + commit-on-release) live in a shared hook
// — see `useResizableDivider` for why this isn't the same code as the shell
// sidebar's `SidebarRail`.
- const { dragWidth, onPointerDown, onKeyDown: onDividerKeyDown } = useResizableDivider({
+ const {
+ dragWidth,
+ onPointerDown,
+ onKeyDown: onDividerKeyDown,
+ } = useResizableDivider({
width: persistedWidth,
minWidth: minSidebarWidth,
maxWidth: maxSidebarWidth,
diff --git a/app/src/components/layout/contentWidth.ts b/app/src/components/layout/contentWidth.ts
index e441807797..fc084a42a8 100644
--- a/app/src/components/layout/contentWidth.ts
+++ b/app/src/components/layout/contentWidth.ts
@@ -22,14 +22,7 @@ import { cva, type VariantProps } from 'class-variance-authority';
* which centers by design).
*/
export const contentWidthVariants = cva('', {
- variants: {
- width: {
- sm: 'max-w-lg',
- md: 'max-w-2xl',
- lg: 'max-w-3xl',
- full: '',
- },
- },
+ variants: { width: { sm: 'max-w-lg', md: 'max-w-2xl', lg: 'max-w-3xl', full: '' } },
defaultVariants: { width: 'full' },
});
diff --git a/app/src/components/layout/shell/AppSidebar.tsx b/app/src/components/layout/shell/AppSidebar.tsx
index cee564bb4a..eb3f55ef1a 100644
--- a/app/src/components/layout/shell/AppSidebar.tsx
+++ b/app/src/components/layout/shell/AppSidebar.tsx
@@ -11,13 +11,13 @@ import { APP_VERSION } from '../../../utils/config';
import { isLocalSessionToken } from '../../../utils/localSession';
import ConnectionIndicator from '../../ConnectionIndicator';
import {
- SidebarContent as SidebarScrollRegion,
SidebarFooter,
SidebarMenu,
SidebarMenuButton,
SidebarMenuIcon,
SidebarMenuItem,
SidebarMenuLabel,
+ SidebarContent as SidebarScrollRegion,
SidebarTrigger,
Tooltip,
useSidebar,
diff --git a/app/src/components/layout/shell/CollapsedNavRail.tsx b/app/src/components/layout/shell/CollapsedNavRail.tsx
index a76eecb011..fe104c9786 100644
--- a/app/src/components/layout/shell/CollapsedNavRail.tsx
+++ b/app/src/components/layout/shell/CollapsedNavRail.tsx
@@ -113,7 +113,9 @@ export default function CollapsedNavRail() {
className={RAIL_BTN}>
<NavIcon id={tab.id} className="h-5 w-5" />
{showBadge && (
- <SidebarMenuBadge tone="attention" className="absolute -right-0.5 -top-0.5 ml-0">
+ <SidebarMenuBadge
+ tone="attention"
+ className="absolute -right-0.5 -top-0.5 ml-0">
{unreadCount > 9 ? '9+' : unreadCount}
</SidebarMenuBadge>
)}
diff --git a/app/src/components/layout/shell/SidebarHeader.tsx b/app/src/components/layout/shell/SidebarHeader.tsx
index 9a26ebb769..fb2be614a6 100644
--- a/app/src/components/layout/shell/SidebarHeader.tsx
+++ b/app/src/components/layout/shell/SidebarHeader.tsx
@@ -32,9 +32,7 @@ export default function SidebarHeader() {
// top padding). `data-tauri-drag-region` lives directly on the primitive
// (rather than a wrapping div in `AppSidebar`) so the header band is
// draggable window chrome without an extra hand-rolled layout element.
- <SidebarHeaderShell
- data-tauri-drag-region
- className="flex-row items-center justify-end gap-1">
+ <SidebarHeaderShell data-tauri-drag-region className="flex-row items-center justify-end gap-1">
<div className="flex items-center gap-0.5">
{/* Keyboard shortcuts — one-click open of the help directory (also ? / ⌘/). */}
<Tooltip label={t('shortcuts.title')}>
diff --git a/app/src/components/layout/shell/SidebarNav.tsx b/app/src/components/layout/shell/SidebarNav.tsx
index 9a68ddc391..05286bfe65 100644
--- a/app/src/components/layout/shell/SidebarNav.tsx
+++ b/app/src/components/layout/shell/SidebarNav.tsx
@@ -97,9 +97,7 @@ export default function SidebarNav() {
// Overlaid on the icon rather than trailing the row, so
// the count survives the collapsed rail's icon-only
// footprint.
- <SidebarMenuBadge
- tone="attention"
- className="absolute -right-1 -top-1 ml-0">
+ <SidebarMenuBadge tone="attention" className="absolute -right-1 -top-1 ml-0">
{unreadCount > 9 ? '9+' : unreadCount}
</SidebarMenuBadge>
)}
diff --git a/app/src/components/mcp-setup/SecretPromptDialog.tsx b/app/src/components/mcp-setup/SecretPromptDialog.tsx
index 9d4583dd29..5ab56f5d98 100644
--- a/app/src/components/mcp-setup/SecretPromptDialog.tsx
+++ b/app/src/components/mcp-setup/SecretPromptDialog.tsx
@@ -11,9 +11,9 @@
// `mcp_setup_request_secret`; the raw value never enters the LLM context.
import { useCallback, useEffect, useId, useState } from 'react';
-import { Button, ModalShell, TextField } from '../ui';
import { useT } from '../../lib/i18n/I18nContext';
import { callCoreRpc } from '../../services/coreRpcClient';
+import { Button, ModalShell, TextField } from '../ui';
type Request = { refId: string; keyName: string; prompt: string };
@@ -90,11 +90,7 @@ function SecretPromptDialog() {
onClose={handleCancel}
title={t('mcp.setup.secretDialog.title')}
titleId={titleId}
- closePolicy={{
- escape: !submitting,
- backdrop: !submitting,
- button: !submitting,
- }}
+ closePolicy={{ escape: !submitting, backdrop: !submitting, button: !submitting }}
contentClassName="px-0 py-0"
footer={
<div className="flex items-center justify-end gap-3">
@@ -128,7 +124,9 @@ function SecretPromptDialog() {
</div>
<div className="px-6 pb-2">
- <label htmlFor={inputId} className="block text-xs font-medium text-content-secondary mb-1">
+ <label
+ htmlFor={inputId}
+ className="block text-xs font-medium text-content-secondary mb-1">
{t('mcp.setup.secretDialog.inputLabel')}
</label>
<div className="flex items-stretch gap-2">
diff --git a/app/src/components/orchestration/OrchestratorTaskBoard.test.tsx b/app/src/components/orchestration/OrchestratorTaskBoard.test.tsx
index 0339e2ff49..3d1de499a1 100644
--- a/app/src/components/orchestration/OrchestratorTaskBoard.test.tsx
+++ b/app/src/components/orchestration/OrchestratorTaskBoard.test.tsx
@@ -41,10 +41,7 @@ describe('OrchestratorTaskBoard', () => {
fireEvent.click(submit);
await waitFor(() =>
- expect(add).toHaveBeenCalledWith({
- threadId: 'orchestrator-tasks',
- content: 'Ship the rail',
- })
+ expect(add).toHaveBeenCalledWith({ threadId: 'orchestrator-tasks', content: 'Ship the rail' })
);
await waitFor(() => expect((input as HTMLInputElement).value).toBe(''));
});
diff --git a/app/src/components/settings/components/MemoryWindowControl.tsx b/app/src/components/settings/components/MemoryWindowControl.tsx
index 426759a3ba..b7e6f4481d 100644
--- a/app/src/components/settings/components/MemoryWindowControl.tsx
+++ b/app/src/components/settings/components/MemoryWindowControl.tsx
@@ -144,8 +144,7 @@ const MemoryWindowControl = ({ onError, onSaved }: Props) => {
isActive
? 'border-primary-500 bg-primary-500/10'
: 'border-line-strong hover:bg-surface-hover',
- (!loaded || (saving !== null && !isSaving)) &&
- 'opacity-60 pointer-events-none'
+ (!loaded || (saving !== null && !isSaving)) && 'opacity-60 pointer-events-none'
)}>
<RadioGroupItem
id={inputId}
diff --git a/app/src/components/settings/components/__tests__/SettingsMenuItem.test.tsx b/app/src/components/settings/components/__tests__/SettingsMenuItem.test.tsx
index d4e778bd71..ee8d9ed634 100644
--- a/app/src/components/settings/components/__tests__/SettingsMenuItem.test.tsx
+++ b/app/src/components/settings/components/__tests__/SettingsMenuItem.test.tsx
@@ -28,7 +28,11 @@ describe('<SettingsMenuItem />', () => {
it('renders a static row when no onClick is provided', () => {
renderWithProviders(
- <SettingsMenuItem icon={<svg aria-hidden="true" />} title="Version" testId="settings-menu-version" />
+ <SettingsMenuItem
+ icon={<svg aria-hidden="true" />}
+ title="Version"
+ testId="settings-menu-version"
+ />
);
const row = screen.getByTestId('settings-menu-version');
diff --git a/app/src/components/settings/layout/SettingsSidebar.test.tsx b/app/src/components/settings/layout/SettingsSidebar.test.tsx
index db7119f4fb..d43065bcdc 100644
--- a/app/src/components/settings/layout/SettingsSidebar.test.tsx
+++ b/app/src/components/settings/layout/SettingsSidebar.test.tsx
@@ -7,24 +7,13 @@ import SettingsSidebar from './SettingsSidebar';
const navigateToSettings = vi.fn();
vi.mock('../hooks/useSettingsNavigation', () => ({
- useSettingsNavigation: () => ({
- currentRoute: 'privacy',
- navigateToSettings,
- }),
+ useSettingsNavigation: () => ({ currentRoute: 'privacy', navigateToSettings }),
}));
-vi.mock('../search/useSettingsSearch', () => ({
- useSettingsSearch: () => [],
-}));
+vi.mock('../search/useSettingsSearch', () => ({ useSettingsSearch: () => [] }));
vi.mock('../search/SettingsSearchBar', () => ({
- default: ({
- value,
- onValueChange,
- }: {
- value: string;
- onValueChange: (next: string) => void;
- }) => (
+ default: ({ value, onValueChange }: { value: string; onValueChange: (next: string) => void }) => (
<input
data-testid="settings-search-input"
value={value}
diff --git a/app/src/components/settings/panels/AgentEditorToolsPicker.test.tsx b/app/src/components/settings/panels/AgentEditorToolsPicker.test.tsx
index b27fdb5214..3b551de64a 100644
--- a/app/src/components/settings/panels/AgentEditorToolsPicker.test.tsx
+++ b/app/src/components/settings/panels/AgentEditorToolsPicker.test.tsx
@@ -13,9 +13,7 @@ import { agentRegistryApi } from '../../../services/api/agentRegistryApi';
import { AgentEditorToolsField } from './AgentEditorToolsPicker';
vi.mock('../../../services/api/agentRegistryApi', () => ({
- agentRegistryApi: {
- availableTools: vi.fn(),
- },
+ agentRegistryApi: { availableTools: vi.fn() },
}));
const mockAvailableTools = vi.mocked(agentRegistryApi.availableTools);
@@ -27,7 +25,9 @@ describe('AgentEditorToolsField', () => {
});
it('renders selected tools as chips', () => {
- render(<AgentEditorToolsField toolAllowlist={['memory_search', 'web_fetch']} onChange={vi.fn()} />);
+ render(
+ <AgentEditorToolsField toolAllowlist={['memory_search', 'web_fetch']} onChange={vi.fn()} />
+ );
expect(screen.getByText('memory_search')).toBeInTheDocument();
expect(screen.getByText('web_fetch')).toBeInTheDocument();
});
diff --git a/app/src/components/settings/panels/ApprovalHistoryPanel.tsx b/app/src/components/settings/panels/ApprovalHistoryPanel.tsx
index 2208d6b673..2f006f83c2 100644
--- a/app/src/components/settings/panels/ApprovalHistoryPanel.tsx
+++ b/app/src/components/settings/panels/ApprovalHistoryPanel.tsx
@@ -130,9 +130,7 @@ const ApprovalHistoryPanel = () => {
<SettingsEmptyState label={t('settings.approvalHistory.emptyState')} />
</div>
) : (
- <ul
- className="divide-y divide-line-subtle"
- data-testid="approval-history-list">
+ <ul className="divide-y divide-line-subtle" data-testid="approval-history-list">
{entries.map(entry => (
<li
key={entry.request_id}
diff --git a/app/src/components/settings/panels/CoreConnectionPanel.tsx b/app/src/components/settings/panels/CoreConnectionPanel.tsx
index 5ee95b1cb7..792756185f 100644
--- a/app/src/components/settings/panels/CoreConnectionPanel.tsx
+++ b/app/src/components/settings/panels/CoreConnectionPanel.tsx
@@ -389,7 +389,9 @@ const CoreConnectionPanel = () => {
{useRemote && (
<div className="flex flex-col gap-3 px-4 py-4">
<div className="flex flex-col gap-1">
- <Label htmlFor="core-remote-url" className="text-xs font-medium text-content-secondary">
+ <Label
+ htmlFor="core-remote-url"
+ className="text-xs font-medium text-content-secondary">
{t('bootCheck.coreRpcUrl')}
</Label>
<SettingsTextField
diff --git a/app/src/components/settings/panels/DeveloperOptionsPanel.tsx b/app/src/components/settings/panels/DeveloperOptionsPanel.tsx
index 335015b11a..b8ea0aec52 100644
--- a/app/src/components/settings/panels/DeveloperOptionsPanel.tsx
+++ b/app/src/components/settings/panels/DeveloperOptionsPanel.tsx
@@ -16,11 +16,11 @@ import { APP_ENVIRONMENT } from '../../../utils/config';
// TAURI-REACT-6 — into a rejected Promise so the existing `.catch(...)` /
// try/catch handlers see it as a normal IPC failure.
import { safeInvoke as invoke, isTauri } from '../../../utils/tauriCommands/common';
-import { resetWalkthrough } from '../../walkthrough/AppWalkthrough';
import Alert, { AlertDescription, AlertTitle } from '../../ui/Alert';
import Badge from '../../ui/Badge';
import Button from '../../ui/Button';
import Card from '../../ui/Card';
+import { resetWalkthrough } from '../../walkthrough/AppWalkthrough';
import SettingsMenuItem from '../components/SettingsMenuItem';
import { SettingsSection } from '../controls';
import { useSettingsNavigation } from '../hooks/useSettingsNavigation';
@@ -230,9 +230,7 @@ const CoreModeBadge = () => {
{t('devOptions.embeddedCoreSidecar')}
</span>
</div>
- <p className="text-xs text-content-secondary mt-1">
- {t('devOptions.sidecarSpawned')}
- </p>
+ <p className="text-xs text-content-secondary mt-1">{t('devOptions.sidecarSpawned')}</p>
</div>
</Alert>
);
@@ -365,7 +363,12 @@ const LogsFolderRow = () => {
<div className="text-[11px] text-content-muted mt-1 font-mono truncate">{path}</div>
)}
</div>
- <Button type="button" variant="secondary" size="sm" onClick={onClick} className="shrink-0">
+ <Button
+ type="button"
+ variant="secondary"
+ size="sm"
+ onClick={onClick}
+ className="shrink-0">
{t('devOptions.openLogsFolder')}
</Button>
</div>
diff --git a/app/src/components/settings/panels/EmbeddingsPanel.tsx b/app/src/components/settings/panels/EmbeddingsPanel.tsx
index 27229f035b..bc41d1453a 100644
--- a/app/src/components/settings/panels/EmbeddingsPanel.tsx
+++ b/app/src/components/settings/panels/EmbeddingsPanel.tsx
@@ -439,7 +439,9 @@ const EmbeddingsPanel = ({ embedded = false }: EmbeddingsPanelProps = {}) => {
/>
{showManagedLoginPrompt && (
- <Alert variant="warning" className="flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
+ <Alert
+ variant="warning"
+ className="flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
<AlertDescription className="opacity-100">
{t('settings.embeddings.managedBannerIntro')}{' '}
{isLocalSession
@@ -464,20 +466,22 @@ const EmbeddingsPanel = ({ embedded = false }: EmbeddingsPanelProps = {}) => {
)}
{/* Model & dimensions (for active provider with catalog models) */}
- {currentModels.length > 0 && selectedProvider !== 'custom' && selectedProvider !== 'none' && (
- <EmbeddingsModelSection
- currentModels={currentModels}
- allowedDims={allowedDims}
- model={settings.model}
- dimensions={settings.dimensions}
- onModelChange={modelId => void handleModelChange(modelId)}
- onDimsChange={dims => void handleDimsChange(dims)}
- canClearKey={Boolean(currentEntry?.requires_api_key && currentEntry.has_api_key)}
- onClearKey={() => void handleClearKey()}
- onTestConnection={() => void handleTestConnection()}
- testConnectionDisabled={selectedProvider === 'none' || managedRequiresLogin}
- />
- )}
+ {currentModels.length > 0 &&
+ selectedProvider !== 'custom' &&
+ selectedProvider !== 'none' && (
+ <EmbeddingsModelSection
+ currentModels={currentModels}
+ allowedDims={allowedDims}
+ model={settings.model}
+ dimensions={settings.dimensions}
+ onModelChange={modelId => void handleModelChange(modelId)}
+ onDimsChange={dims => void handleDimsChange(dims)}
+ canClearKey={Boolean(currentEntry?.requires_api_key && currentEntry.has_api_key)}
+ onClearKey={() => void handleClearKey()}
+ onTestConnection={() => void handleTestConnection()}
+ testConnectionDisabled={selectedProvider === 'none' || managedRequiresLogin}
+ />
+ )}
{/* Status bar */}
<SettingsStatusLine
diff --git a/app/src/components/settings/panels/EmbeddingsSetupModal.tsx b/app/src/components/settings/panels/EmbeddingsSetupModal.tsx
index cca5780df0..c653fab30b 100644
--- a/app/src/components/settings/panels/EmbeddingsSetupModal.tsx
+++ b/app/src/components/settings/panels/EmbeddingsSetupModal.tsx
@@ -6,7 +6,10 @@
* through as props.
*/
import { useT } from '../../../lib/i18n/I18nContext';
-import type { EmbeddingProviderEntry, EmbeddingsTestResult } from '../../../services/api/embeddingsApi';
+import type {
+ EmbeddingProviderEntry,
+ EmbeddingsTestResult,
+} from '../../../services/api/embeddingsApi';
import { Alert, Button, Label, ModalShell } from '../../ui';
import { SettingsTextField } from '../controls';
@@ -72,7 +75,9 @@ const EmbeddingsSetupModal = ({
if (!isCustom) onTest();
}}
disabled={setupTesting || setupSaving || (!isCustom && !setupKey.trim())}>
- {setupTesting ? t('settings.embeddings.testing') : t('settings.embeddings.testConnection')}
+ {setupTesting
+ ? t('settings.embeddings.testing')
+ : t('settings.embeddings.testConnection')}
</Button>
<div className="flex gap-2">
@@ -88,7 +93,9 @@ const EmbeddingsSetupModal = ({
(!isCustom && !setupKey.trim() && !setupProvider.has_api_key) ||
(isCustom && !customEndpoint.trim())
}>
- {setupSaving ? t('settings.embeddings.saving') : t('settings.embeddings.saveAndSwitch')}
+ {setupSaving
+ ? t('settings.embeddings.saving')
+ : t('settings.embeddings.saveAndSwitch')}
</Button>
</div>
</div>
@@ -97,7 +104,9 @@ const EmbeddingsSetupModal = ({
/* Custom endpoint form */
<div className="space-y-3">
<div>
- <Label className="block text-[11px] mb-1">{t('settings.embeddings.customEndpoint')}</Label>
+ <Label className="block text-[11px] mb-1">
+ {t('settings.embeddings.customEndpoint')}
+ </Label>
<SettingsTextField
type="text"
value={customEndpoint}
@@ -121,7 +130,9 @@ const EmbeddingsSetupModal = ({
/>
</div>
<div className="w-24">
- <Label className="block text-[11px] mb-1">{t('settings.embeddings.dimensions')}</Label>
+ <Label className="block text-[11px] mb-1">
+ {t('settings.embeddings.dimensions')}
+ </Label>
<SettingsTextField
type="number"
value={customDims}
diff --git a/app/src/components/settings/panels/RecoveryPhraseGenerateMode.tsx b/app/src/components/settings/panels/RecoveryPhraseGenerateMode.tsx
index d780281287..6222245c52 100644
--- a/app/src/components/settings/panels/RecoveryPhraseGenerateMode.tsx
+++ b/app/src/components/settings/panels/RecoveryPhraseGenerateMode.tsx
@@ -1,5 +1,5 @@
-import { MNEMONIC_GENERATE_WORD_COUNT } from '../../../utils/cryptoKeys';
import { useT } from '../../../lib/i18n/I18nContext';
+import { MNEMONIC_GENERATE_WORD_COUNT } from '../../../utils/cryptoKeys';
import { Alert } from '../../ui/Alert';
import Button from '../../ui/Button';
import { CheckIcon } from '../../ui/icons';
@@ -118,11 +118,7 @@ const RecoveryPhraseGenerateMode = ({
)}
</Button>
- <Button
- type="button"
- variant="tertiary"
- onClick={onSwitchToImport}
- className="w-full mb-3">
+ <Button type="button" variant="tertiary" onClick={onSwitchToImport} className="w-full mb-3">
{t('mnemonic.alreadyHavePhrase')}
</Button>
diff --git a/app/src/components/settings/panels/RecoveryPhrasePanel.tsx b/app/src/components/settings/panels/RecoveryPhrasePanel.tsx
index 019f2b705c..91290e88ac 100644
--- a/app/src/components/settings/panels/RecoveryPhrasePanel.tsx
+++ b/app/src/components/settings/panels/RecoveryPhrasePanel.tsx
@@ -15,8 +15,8 @@ import {
} from '../../../utils/cryptoKeys';
import { Alert } from '../../ui/Alert';
import Button from '../../ui/Button';
-import { CenteredLoadingState } from '../../ui/LoadingState';
import { CheckIcon, Spinner } from '../../ui/icons';
+import { CenteredLoadingState } from '../../ui/LoadingState';
import { useSettingsNavigation } from '../hooks/useSettingsNavigation';
import SettingsPanel from '../layout/SettingsPanel';
import RecoveryPhraseGenerateMode from './RecoveryPhraseGenerateMode';
diff --git a/app/src/components/settings/panels/RecoveryPhraseViewMode.tsx b/app/src/components/settings/panels/RecoveryPhraseViewMode.tsx
index 4af7418e66..3465079cd0 100644
--- a/app/src/components/settings/panels/RecoveryPhraseViewMode.tsx
+++ b/app/src/components/settings/panels/RecoveryPhraseViewMode.tsx
@@ -214,7 +214,12 @@ const RecoveryPhraseViewMode = ({
</>
)}
- <Button type="button" variant="secondary" size="md" onClick={onReplaceClick} className="w-full">
+ <Button
+ type="button"
+ variant="secondary"
+ size="md"
+ onClick={onReplaceClick}
+ className="w-full">
{t('mnemonic.replaceWallet')}
</Button>
</div>
diff --git a/app/src/components/settings/panels/TokenUsagePanel.tsx b/app/src/components/settings/panels/TokenUsagePanel.tsx
index 36b0784c94..78302652ff 100644
--- a/app/src/components/settings/panels/TokenUsagePanel.tsx
+++ b/app/src/components/settings/panels/TokenUsagePanel.tsx
@@ -44,9 +44,7 @@ interface StatTileProps {
const StatTile = ({ label, value, hint }: StatTileProps) => (
<div className="rounded-2xl border border-line p-4 bg-gradient-to-br from-surface to-surface-subtle">
<div className="text-xs font-medium text-content-muted">{label}</div>
- <div className="mt-1 text-2xl font-semibold text-content tabular-nums">
- {value}
- </div>
+ <div className="mt-1 text-2xl font-semibold text-content tabular-nums">{value}</div>
{hint && <div className="mt-0.5 text-xs text-content-faint">{hint}</div>}
</div>
);
diff --git a/app/src/components/settings/panels/builtinCloudProviders.ts b/app/src/components/settings/panels/builtinCloudProviders.ts
index 0d2df152a8..f0330236de 100644
--- a/app/src/components/settings/panels/builtinCloudProviders.ts
+++ b/app/src/components/settings/panels/builtinCloudProviders.ts
@@ -18,8 +18,7 @@ const TONE = {
// (100/500/300/900) rather than `slate-*` utilities so it does not ride the
// banned palette scale that `lint:ui-tokens` guards. Do NOT swap it for a
// saturated hue — that collides with `sky` and changes the design intent.
- slate:
- 'bg-[#f1f5f9] dark:bg-[#64748b]/15 ring-[#cbd5e1] text-[#0f172a] dark:text-[#f1f5f9]',
+ slate: 'bg-[#f1f5f9] dark:bg-[#64748b]/15 ring-[#cbd5e1] text-[#0f172a] dark:text-[#f1f5f9]',
sky: 'bg-sky-50 dark:bg-sky-500/10 ring-sky-200 text-sky-900 dark:text-sky-100',
fuchsia:
'bg-fuchsia-50 dark:bg-fuchsia-500/10 ring-fuchsia-200 text-fuchsia-900 dark:text-fuchsia-100',
diff --git a/app/src/components/settings/panels/persona/PersonaGuidedFields.tsx b/app/src/components/settings/panels/persona/PersonaGuidedFields.tsx
index c4731436bd..7146b73f1e 100644
--- a/app/src/components/settings/panels/persona/PersonaGuidedFields.tsx
+++ b/app/src/components/settings/panels/persona/PersonaGuidedFields.tsx
@@ -1,7 +1,7 @@
import { useT } from '../../../../lib/i18n/I18nContext';
+import Button from '../../../ui/Button';
import { SettingsRow, SettingsTextArea } from '../../controls';
import { useSettingsNavigation } from '../../hooks/useSettingsNavigation';
-import Button from '../../../ui/Button';
import { applyPersonaField, parsePersonaFields, type PersonaFieldKey } from './personaSections';
import PersonaTemplatePicker from './PersonaTemplatePicker';
diff --git a/app/src/components/settings/panels/theme/ColorTokenField.test.tsx b/app/src/components/settings/panels/theme/ColorTokenField.test.tsx
index 945cd3b789..7a346f7ae6 100644
--- a/app/src/components/settings/panels/theme/ColorTokenField.test.tsx
+++ b/app/src/components/settings/panels/theme/ColorTokenField.test.tsx
@@ -7,7 +7,12 @@ import ColorTokenField from './ColorTokenField';
describe('ColorTokenField', () => {
it('renders the label and the token key / hex description', () => {
renderWithProviders(
- <ColorTokenField tokenKey="surface-canvas" label="Canvas" value="47 110 244" onChange={() => {}} />
+ <ColorTokenField
+ tokenKey="surface-canvas"
+ label="Canvas"
+ value="47 110 244"
+ onChange={() => {}}
+ />
);
expect(screen.getByText('Canvas')).toBeInTheDocument();
@@ -16,7 +21,12 @@ describe('ColorTokenField', () => {
it('exposes the native colour swatch with the converted hex value and an accessible name', () => {
renderWithProviders(
- <ColorTokenField tokenKey="surface-canvas" label="Canvas" value="47 110 244" onChange={() => {}} />
+ <ColorTokenField
+ tokenKey="surface-canvas"
+ label="Canvas"
+ value="47 110 244"
+ onChange={() => {}}
+ />
);
const swatch = screen.getByLabelText('Canvas') as HTMLInputElement;
@@ -27,7 +37,12 @@ describe('ColorTokenField', () => {
it('calls onChange with the channel triple when the swatch changes', () => {
const onChange = vi.fn();
renderWithProviders(
- <ColorTokenField tokenKey="surface-canvas" label="Canvas" value="47 110 244" onChange={onChange} />
+ <ColorTokenField
+ tokenKey="surface-canvas"
+ label="Canvas"
+ value="47 110 244"
+ onChange={onChange}
+ />
);
const swatch = screen.getByLabelText('Canvas');
diff --git a/app/src/components/ui/Accordion.test.tsx b/app/src/components/ui/Accordion.test.tsx
index 7e3d047d6b..1416fdabec 100644
--- a/app/src/components/ui/Accordion.test.tsx
+++ b/app/src/components/ui/Accordion.test.tsx
@@ -6,8 +6,8 @@ import {
AccordionContent,
AccordionItem,
AccordionRoot,
- AccordionTrigger,
type AccordionSize,
+ AccordionTrigger,
type AccordionVariant,
} from './Accordion';
diff --git a/app/src/components/ui/Accordion.tsx b/app/src/components/ui/Accordion.tsx
index add7de0b32..ae84fff0c0 100644
--- a/app/src/components/ui/Accordion.tsx
+++ b/app/src/components/ui/Accordion.tsx
@@ -58,11 +58,7 @@ export const accordionTriggerVariants = cva(
],
{
variants: {
- size: {
- sm: 'px-3 py-2 text-xs',
- md: 'px-4 py-3 text-sm',
- lg: 'px-5 py-4 text-base',
- },
+ size: { sm: 'px-3 py-2 text-xs', md: 'px-4 py-3 text-sm', lg: 'px-5 py-4 text-base' },
},
defaultVariants: { size: 'md' },
}
@@ -73,11 +69,7 @@ export const accordionContentVariants = cva(
'overflow-hidden text-content-secondary data-[state=open]:animate-fade-up',
{
variants: {
- size: {
- sm: 'px-3 pb-2 text-xs',
- md: 'px-4 pb-3 text-sm',
- lg: 'px-5 pb-4 text-sm',
- },
+ size: { sm: 'px-3 pb-2 text-xs', md: 'px-4 pb-3 text-sm', lg: 'px-5 pb-4 text-sm' },
},
defaultVariants: { size: 'md' },
}
@@ -105,7 +97,8 @@ export const AccordionRoot = ({ className, variant, ...rest }: AccordionRootProp
);
export interface AccordionItemProps
- extends ComponentPropsWithRef<typeof AccordionPrimitive.Item>,
+ extends
+ ComponentPropsWithRef<typeof AccordionPrimitive.Item>,
VariantProps<typeof accordionItemVariants> {}
export const AccordionItem = ({ className, variant, ...rest }: AccordionItemProps) => (
@@ -118,7 +111,8 @@ export const AccordionItem = ({ className, variant, ...rest }: AccordionItemProp
);
export interface AccordionTriggerProps
- extends ComponentPropsWithRef<typeof AccordionPrimitive.Trigger>,
+ extends
+ ComponentPropsWithRef<typeof AccordionPrimitive.Trigger>,
VariantProps<typeof accordionTriggerVariants> {
/** The disclosure chevron. Opt out when the caller renders its own affordance. */
showChevron?: boolean;
@@ -171,7 +165,8 @@ export const AccordionTrigger = ({
);
export interface AccordionContentProps
- extends ComponentPropsWithRef<typeof AccordionPrimitive.Content>,
+ extends
+ ComponentPropsWithRef<typeof AccordionPrimitive.Content>,
VariantProps<typeof accordionContentVariants> {}
export const AccordionContent = ({ className, size, ...rest }: AccordionContentProps) => (
diff --git a/app/src/components/ui/AlertDialog.test.tsx b/app/src/components/ui/AlertDialog.test.tsx
index be24bb0a55..0da6d0eb0f 100644
--- a/app/src/components/ui/AlertDialog.test.tsx
+++ b/app/src/components/ui/AlertDialog.test.tsx
@@ -36,10 +36,7 @@ describe('AlertDialog', () => {
const content = screen.getByRole('alertdialog');
expect(content).toHaveAttribute('data-slot', 'alert-dialog-content');
- expect(screen.getByText('Delete workspace')).toHaveAttribute(
- 'data-slot',
- 'alert-dialog-title'
- );
+ expect(screen.getByText('Delete workspace')).toHaveAttribute('data-slot', 'alert-dialog-title');
expect(screen.getByText('This cannot be undone.')).toHaveAttribute(
'data-slot',
'alert-dialog-description'
diff --git a/app/src/components/ui/AlertDialog.tsx b/app/src/components/ui/AlertDialog.tsx
index 57c8eb899b..0cce3ab56b 100644
--- a/app/src/components/ui/AlertDialog.tsx
+++ b/app/src/components/ui/AlertDialog.tsx
@@ -28,8 +28,9 @@ export const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
* Do not "fix" the missing outside-click dismissal by adding an
* `onInteractOutside` that closes — that is the whole point of the component.
*/
-export interface AlertDialogOverlayProps
- extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay> {}
+export interface AlertDialogOverlayProps extends ComponentPropsWithoutRef<
+ typeof AlertDialogPrimitive.Overlay
+> {}
export const AlertDialogOverlay = forwardRef<
ElementRef<typeof AlertDialogPrimitive.Overlay>,
@@ -47,8 +48,9 @@ export const AlertDialogOverlay = forwardRef<
));
AlertDialogOverlay.displayName = 'AlertDialogOverlay';
-export interface AlertDialogContentProps
- extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> {
+export interface AlertDialogContentProps extends ComponentPropsWithoutRef<
+ typeof AlertDialogPrimitive.Content
+> {
/**
* Portal target. Defaults to `document.body`.
*
@@ -149,7 +151,8 @@ const alertDialogActionVariants = cva(
);
export interface AlertDialogActionProps
- extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>,
+ extends
+ ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>,
VariantProps<typeof alertDialogActionVariants> {}
/** The confirming choice. Defaults to the danger tone — this overlay exists for
diff --git a/app/src/components/ui/Collapsible.test.tsx b/app/src/components/ui/Collapsible.test.tsx
index 3d6b54c293..0460aa7078 100644
--- a/app/src/components/ui/Collapsible.test.tsx
+++ b/app/src/components/ui/Collapsible.test.tsx
@@ -5,8 +5,8 @@ import { describe, expect, it, vi } from 'vitest';
import {
CollapsibleContent,
CollapsibleRoot,
- CollapsibleTrigger,
type CollapsibleSize,
+ CollapsibleTrigger,
type CollapsibleVariant,
} from './Collapsible';
diff --git a/app/src/components/ui/Collapsible.tsx b/app/src/components/ui/Collapsible.tsx
index 83d47d0e2b..9170c3d340 100644
--- a/app/src/components/ui/Collapsible.tsx
+++ b/app/src/components/ui/Collapsible.tsx
@@ -41,11 +41,7 @@ export const collapsibleTriggerVariants = cva(
],
{
variants: {
- size: {
- sm: 'px-3 py-2 text-xs',
- md: 'px-4 py-3 text-sm',
- lg: 'px-5 py-4 text-base',
- },
+ size: { sm: 'px-3 py-2 text-xs', md: 'px-4 py-3 text-sm', lg: 'px-5 py-4 text-base' },
},
defaultVariants: { size: 'md' },
}
@@ -55,11 +51,7 @@ export const collapsibleContentVariants = cva(
'overflow-hidden text-content-secondary data-[state=open]:animate-fade-in',
{
variants: {
- size: {
- sm: 'px-3 pb-2 text-xs',
- md: 'px-4 pb-3 text-sm',
- lg: 'px-5 pb-4 text-sm',
- },
+ size: { sm: 'px-3 pb-2 text-xs', md: 'px-4 pb-3 text-sm', lg: 'px-5 pb-4 text-sm' },
},
defaultVariants: { size: 'md' },
}
@@ -69,7 +61,8 @@ export type CollapsibleVariant = NonNullable<VariantProps<typeof collapsibleVari
export type CollapsibleSize = NonNullable<VariantProps<typeof collapsibleTriggerVariants>['size']>;
export interface CollapsibleRootProps
- extends ComponentPropsWithRef<typeof CollapsiblePrimitive.Root>,
+ extends
+ ComponentPropsWithRef<typeof CollapsiblePrimitive.Root>,
VariantProps<typeof collapsibleVariants> {}
export const CollapsibleRoot = ({ className, variant, ...rest }: CollapsibleRootProps) => (
@@ -82,7 +75,8 @@ export const CollapsibleRoot = ({ className, variant, ...rest }: CollapsibleRoot
);
export interface CollapsibleTriggerProps
- extends ComponentPropsWithRef<typeof CollapsiblePrimitive.Trigger>,
+ extends
+ ComponentPropsWithRef<typeof CollapsiblePrimitive.Trigger>,
VariantProps<typeof collapsibleTriggerVariants> {}
export const CollapsibleTrigger = ({ className, size, ...rest }: CollapsibleTriggerProps) => (
@@ -95,7 +89,8 @@ export const CollapsibleTrigger = ({ className, size, ...rest }: CollapsibleTrig
);
export interface CollapsibleContentProps
- extends ComponentPropsWithRef<typeof CollapsiblePrimitive.Content>,
+ extends
+ ComponentPropsWithRef<typeof CollapsiblePrimitive.Content>,
VariantProps<typeof collapsibleContentVariants> {}
export const CollapsibleContent = ({ className, size, ...rest }: CollapsibleContentProps) => (
diff --git a/app/src/components/ui/InputGroup.test.tsx b/app/src/components/ui/InputGroup.test.tsx
index d6a06a4d7b..05d8e576e3 100644
--- a/app/src/components/ui/InputGroup.test.tsx
+++ b/app/src/components/ui/InputGroup.test.tsx
@@ -3,11 +3,7 @@ import userEvent from '@testing-library/user-event';
import { createRef } from 'react';
import { describe, expect, it, vi } from 'vitest';
-import InputGroupRoot, {
- InputGroupAddon,
- InputGroupButton,
- InputGroupInput,
-} from './InputGroup';
+import InputGroupRoot, { InputGroupAddon, InputGroupButton, InputGroupInput } from './InputGroup';
const RAW_PALETTE = /\b(bg|text|border|ring)-(neutral|stone|slate|canvas|white|black)\b/;
diff --git a/app/src/components/ui/InputGroup.tsx b/app/src/components/ui/InputGroup.tsx
index d2edfdf18d..1ac9811e8a 100644
--- a/app/src/components/ui/InputGroup.tsx
+++ b/app/src/components/ui/InputGroup.tsx
@@ -1,10 +1,4 @@
-import {
- createContext,
- forwardRef,
- type HTMLAttributes,
- useContext,
- useMemo,
-} from 'react';
+import { createContext, forwardRef, type HTMLAttributes, useContext, useMemo } from 'react';
import { cn } from '../../lib/cn';
import Button, { type ButtonProps } from './Button';
diff --git a/app/src/components/ui/Select.tsx b/app/src/components/ui/Select.tsx
index f7482296b4..74e8f6ca4c 100644
--- a/app/src/components/ui/Select.tsx
+++ b/app/src/components/ui/Select.tsx
@@ -31,8 +31,9 @@ export const SelectGroup = SelectPrimitive.Group;
export type SelectSize = 'sm' | 'md';
-export interface SelectTriggerProps
- extends ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
+export interface SelectTriggerProps extends ComponentPropsWithoutRef<
+ typeof SelectPrimitive.Trigger
+> {
inputSize?: SelectSize;
children: ReactNode;
}
@@ -55,10 +56,7 @@ export const SelectTrigger = forwardRef<HTMLButtonElement, SelectTriggerProps>(
{...rest}>
{children}
<SelectPrimitive.Icon asChild>
- <svg
- aria-hidden="true"
- viewBox="0 0 12 12"
- className="h-3 w-3 shrink-0 text-content-muted">
+ <svg aria-hidden="true" viewBox="0 0 12 12" className="h-3 w-3 shrink-0 text-content-muted">
<path
d="M2 4l4 4 4-4"
fill="none"
@@ -74,8 +72,9 @@ export const SelectTrigger = forwardRef<HTMLButtonElement, SelectTriggerProps>(
);
SelectTrigger.displayName = 'SelectTrigger';
-export interface SelectContentProps
- extends ComponentPropsWithoutRef<typeof SelectPrimitive.Content> {
+export interface SelectContentProps extends ComponentPropsWithoutRef<
+ typeof SelectPrimitive.Content
+> {
/** Portal target — see `DialogContent`. Defaults to `document.body`. */
container?: HTMLElement | null;
}
diff --git a/app/src/components/ui/Sidebar.tsx b/app/src/components/ui/Sidebar.tsx
index e4c0641963..faf69baf2f 100644
--- a/app/src/components/ui/Sidebar.tsx
+++ b/app/src/components/ui/Sidebar.tsx
@@ -330,7 +330,10 @@ export const SidebarRail = forwardRef<HTMLDivElement, SidebarRailProps>(
{/* Widened hit area — the visible seam stays 1px. */}
<span className="absolute inset-y-0 -left-1 -right-1 z-10" />
<span
- className={cn('absolute inset-0 transition-colors', indicatorClassName ?? DEFAULT_RAIL_INDICATOR)}
+ className={cn(
+ 'absolute inset-0 transition-colors',
+ indicatorClassName ?? DEFAULT_RAIL_INDICATOR
+ )}
/>
</div>
);
diff --git a/app/src/components/ui/Slider.tsx b/app/src/components/ui/Slider.tsx
index 83af4753f6..de11ab5676 100644
--- a/app/src/components/ui/Slider.tsx
+++ b/app/src/components/ui/Slider.tsx
@@ -33,15 +33,7 @@ export const sliderThumbVariants = cva(
'block rounded-full border-2 border-primary-500 bg-surface shadow-sm transition-colors ' +
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500/25 ' +
'disabled:pointer-events-none data-[disabled]:opacity-50',
- {
- variants: {
- size: {
- sm: 'h-3 w-3',
- md: 'h-4 w-4',
- },
- },
- defaultVariants: { size: 'md' },
- }
+ { variants: { size: { sm: 'h-3 w-3', md: 'h-4 w-4' } }, defaultVariants: { size: 'md' } }
);
export type SliderSize = NonNullable<VariantProps<typeof sliderThumbVariants>['size']>;
diff --git a/app/src/components/ui/VisuallyHidden.tsx b/app/src/components/ui/VisuallyHidden.tsx
index b6426c55a4..1e6926bb7a 100644
--- a/app/src/components/ui/VisuallyHidden.tsx
+++ b/app/src/components/ui/VisuallyHidden.tsx
@@ -3,8 +3,9 @@ import { type ComponentPropsWithoutRef, type ElementRef, forwardRef } from 'reac
import { cn } from '../../lib/cn';
-export interface VisuallyHiddenProps
- extends ComponentPropsWithoutRef<typeof VisuallyHiddenPrimitive.Root> {}
+export interface VisuallyHiddenProps extends ComponentPropsWithoutRef<
+ typeof VisuallyHiddenPrimitive.Root
+> {}
/**
* Content that is removed from the visual layout but stays in the accessibility
diff --git a/app/src/config/__tests__/navConfig.test.ts b/app/src/config/__tests__/navConfig.test.ts
index a8c7970000..4dea3a15bc 100644
--- a/app/src/config/__tests__/navConfig.test.ts
+++ b/app/src/config/__tests__/navConfig.test.ts
@@ -8,13 +8,7 @@ describe('NAV_TABS', () => {
});
it('has the correct ids in order', () => {
- expect(NAV_TABS.map(t => t.id)).toEqual([
- 'chat',
- 'human',
- 'brain',
- 'flows',
- 'connections',
- ]);
+ expect(NAV_TABS.map(t => t.id)).toEqual(['chat', 'human', 'brain', 'flows', 'connections']);
});
it('has the correct paths', () => {
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index 962b8e2d73..275d1e80bc 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -42,7 +42,6 @@ import {
handleComposerSlashCommand,
} from '../../features/conversations/composerSendDecision';
import { useMemorySyncActive } from '../../features/conversations/hooks/useBackgroundActivity';
-import { useChatSurfaceRegistration } from './hooks/useChatSurfaceRegistration';
import { formatResetTime } from '../../features/conversations/utils/format';
import {
GENERAL_TAB_VALUE,
@@ -128,6 +127,7 @@ import {
openhumanVoiceTranscribeBytes,
openhumanVoiceTts,
} from '../../utils/tauriCommands';
+import { useChatSurfaceRegistration } from './hooks/useChatSurfaceRegistration';
import { ThreadList } from './threadList/ThreadList';
const CHAT_MODEL_HINT = 'hint:chat';
diff --git a/app/src/pages/Brain.tsx b/app/src/pages/Brain.tsx
index 12d37a9a65..bd1fee0a1c 100644
--- a/app/src/pages/Brain.tsx
+++ b/app/src/pages/Brain.tsx
@@ -8,7 +8,6 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { Navigate, useLocation, useNavigate } from 'react-router-dom';
-import TinyPlaceSunsetNotice from '../components/upsell/TinyPlaceSunsetNotice';
import { CodingSessionsCard } from '../components/intelligence/CodingSessionsCard';
import GoalsPanel from '../components/intelligence/GoalsPanel';
import { MemoryControls } from '../components/intelligence/MemoryControls';
@@ -22,6 +21,7 @@ import PanelPage from '../components/layout/PanelPage';
import { SidebarContent } from '../components/layout/shell/SidebarSlot';
import TwoPaneNav from '../components/layout/TwoPaneNav';
import OrchestrationView from '../components/orchestration/OrchestrationView';
+import TinyPlaceSunsetNotice from '../components/upsell/TinyPlaceSunsetNotice';
import { useTinyPlaceIdentity } from '../hooks/useTinyPlaceIdentity';
import { useT } from '../lib/i18n/I18nContext';
import { useCoreState } from '../providers/CoreStateProvider';
diff --git a/app/src/pages/FlowCanvasPage.tsx b/app/src/pages/FlowCanvasPage.tsx
index fa06abbb6c..541a87af07 100644
--- a/app/src/pages/FlowCanvasPage.tsx
+++ b/app/src/pages/FlowCanvasPage.tsx
@@ -39,8 +39,8 @@ import {
import { ToastContainer } from '../components/intelligence/Toast';
import PanelPage from '../components/layout/PanelPage';
import Button from '../components/ui/Button';
-import { CenteredLoadingState, ErrorBanner } from '../components/ui/LoadingState';
import UiInput from '../components/ui/Input';
+import { CenteredLoadingState, ErrorBanner } from '../components/ui/LoadingState';
import { ToggleGroupItem, ToggleGroupRoot } from '../components/ui/ToggleGroup';
import { useFlowPreauthorization } from '../hooks/useFlowPreauthorization';
import { asFlowCanvasDraftState } from '../lib/flows/canvasDraft';
@@ -1068,12 +1068,13 @@ function FlowEditor({
variant="secondary"
size="xs"
value={sidePanel ?? ''}
- onValueChange={next =>
- setSidePanel(next === 'copilot' || next === 'legend' ? next : null)
- }
+ onValueChange={next => setSidePanel(next === 'copilot' || next === 'legend' ? next : null)}
aria-label={t('flows.canvas.sidePanelToggle')}
className="rounded-lg border border-line bg-surface p-0.5">
- <ToggleGroupItem value="copilot" data-testid="flow-canvas-copilot-toggle" className="border-0">
+ <ToggleGroupItem
+ value="copilot"
+ data-testid="flow-canvas-copilot-toggle"
+ className="border-0">
{t('flows.copilot.open')}
</ToggleGroupItem>
<ToggleGroupItem value="legend" data-testid="flow-canvas-legend-toggle" className="border-0">
diff --git a/app/src/pages/dev/UiGallery.tsx b/app/src/pages/dev/UiGallery.tsx
index 07cd200ecf..ef12b5804b 100644
--- a/app/src/pages/dev/UiGallery.tsx
+++ b/app/src/pages/dev/UiGallery.tsx
@@ -1,11 +1,6 @@
import { useState } from 'react';
-import {
- Source,
- Sources,
- SourcesContent,
- SourcesTrigger,
-} from '../../components/ai-elements';
+import { Source, Sources, SourcesContent, SourcesTrigger } from '../../components/ai-elements';
import {
AccordionContent,
AccordionItem,
diff --git a/app/test/playwright/specs/tinyplace-messaging.spec.ts b/app/test/playwright/specs/tinyplace-messaging.spec.ts
index d5c02037a5..2e9fae723c 100644
--- a/app/test/playwright/specs/tinyplace-messaging.spec.ts
+++ b/app/test/playwright/specs/tinyplace-messaging.spec.ts
@@ -139,7 +139,10 @@ test.describe('tiny.place direct messaging (core RPC)', () => {
plaintext: reply,
});
- const decrypted = await receiveMessage(aliceCore, { fromCryptoId: bob.cryptoId, timeoutMs: 15_000 });
+ const decrypted = await receiveMessage(aliceCore, {
+ fromCryptoId: bob.cryptoId,
+ timeoutMs: 15_000,
+ });
expect(decrypted, 'app core decrypts the peer reply').toBe(reply);
});
});