Skip to content

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

refactor(ui): align flow and settings panel layouts

Steven Enamakelc6885431141d
diff --git a/app/src/components/flows/canvas/AgentNodeInspector.tsx b/app/src/components/flows/canvas/AgentNodeInspector.tsx
index 34515f320e..0f09de42a7 100644
--- a/app/src/components/flows/canvas/AgentNodeInspector.tsx
+++ b/app/src/components/flows/canvas/AgentNodeInspector.tsx
@@ -27,7 +27,7 @@ import { useEffect, useId, useState } from 'react';
import { useT } from '../../../lib/i18n/I18nContext';
import { agentRegistryApi, type AgentRegistryEntry } from '../../../services/api/agentRegistryApi';
-import { Input as UiInput, NativeSelect } from '../../ui';
+import { NativeSelect, Input as UiInput } from '../../ui';
import { configString, SelectField } from './nodeConfig/nodeConfigFields';
const log = createDebug('app:flows:canvas:agentInspector');
diff --git a/app/src/components/flows/canvas/nodeConfig/ScheduleField.tsx b/app/src/components/flows/canvas/nodeConfig/ScheduleField.tsx
index e5f2605255..117892663f 100644
--- a/app/src/components/flows/canvas/nodeConfig/ScheduleField.tsx
+++ b/app/src/components/flows/canvas/nodeConfig/ScheduleField.tsx
@@ -30,10 +30,10 @@ import {
import { useT } from '../../../../lib/i18n/I18nContext';
import {
Button,
- Input as UiInput,
NativeSelect,
ToggleGroupItem,
ToggleGroupRoot,
+ Input as UiInput,
} from '../../../ui';
import { Field, MONO_CLASS } from './nodeConfigFields';
diff --git a/app/src/components/flows/canvas/nodeConfig/composioFields.tsx b/app/src/components/flows/canvas/nodeConfig/composioFields.tsx
index c5c72af33b..e43699f1fd 100644
--- a/app/src/components/flows/canvas/nodeConfig/composioFields.tsx
+++ b/app/src/components/flows/canvas/nodeConfig/composioFields.tsx
@@ -23,7 +23,7 @@ import { cn } from '../../../../lib/cn';
import { listAvailableTriggers, listTools } from '../../../../lib/composio/composioApi';
import { useT } from '../../../../lib/i18n/I18nContext';
import type { FlowConnection } from '../../../../services/api/flowsApi';
-import { Input as UiInput, NativeSelect } from '../../../ui';
+import { NativeSelect, Input as UiInput } from '../../../ui';
import { Field, MONO_CLASS } from './nodeConfigFields';
/** Sentinel select value that reveals a raw text input. */
diff --git a/app/src/components/flows/canvas/nodeConfig/nativeToolFields.tsx b/app/src/components/flows/canvas/nodeConfig/nativeToolFields.tsx
index 448b50f10b..c9a689e31d 100644
--- a/app/src/components/flows/canvas/nodeConfig/nativeToolFields.tsx
+++ b/app/src/components/flows/canvas/nodeConfig/nativeToolFields.tsx
@@ -14,7 +14,7 @@ import { useEffect, useMemo, useState } from 'react';
import { cn } from '../../../../lib/cn';
import { useT } from '../../../../lib/i18n/I18nContext';
import { listRuntimeTools, type RuntimeTool } from '../../../../services/api/runtimeToolsApi';
-import { Input as UiInput, NativeSelect } from '../../../ui';
+import { NativeSelect, Input as UiInput } from '../../../ui';
import { Field, MONO_CLASS } from './nodeConfigFields';
/** The `oh:` prefix that marks a native-tool slug (mirrors the Rust constant). */
diff --git a/app/src/components/flows/canvas/nodeConfig/nodeConfigFields.tsx b/app/src/components/flows/canvas/nodeConfig/nodeConfigFields.tsx
index 052d229e06..a6eb2040bc 100644
--- a/app/src/components/flows/canvas/nodeConfig/nodeConfigFields.tsx
+++ b/app/src/components/flows/canvas/nodeConfig/nodeConfigFields.tsx
@@ -23,11 +23,11 @@ import { useT } from '../../../../lib/i18n/I18nContext';
import type { FlowConnection } from '../../../../services/api/flowsApi';
import {
Button,
- Input as UiInput,
InputGroupAddon,
InputGroupInput,
InputGroupRoot,
NativeSelect,
+ Input as UiInput,
TextArea as UiTextArea,
} from '../../../ui';
import type { UpstreamExpressionOption } from './upstreamOptions';
diff --git a/app/src/components/layout/TwoPanelLayout.tsx b/app/src/components/layout/TwoPanelLayout.tsx
index 92a648d4ce..3bffa0ca3a 100644
--- a/app/src/components/layout/TwoPanelLayout.tsx
+++ b/app/src/components/layout/TwoPanelLayout.tsx
@@ -318,9 +318,7 @@ export default function TwoPanelLayout({
return (
<div className={cn('flex min-h-0', className)}>
{seamless ? (
- <div className={cn('flex min-h-0 flex-1 overflow-hidden', DEFAULT_PANE_CLASS)}>
- {panes}
- </div>
+ <div className={cn('flex min-h-0 flex-1 overflow-hidden', DEFAULT_PANE_CLASS)}>{panes}</div>
) : (
panes
)}
diff --git a/app/src/components/settings/panels/AgentAccessPanel.tsx b/app/src/components/settings/panels/AgentAccessPanel.tsx
index 04551ba739..4064ff0bb8 100644
--- a/app/src/components/settings/panels/AgentAccessPanel.tsx
+++ b/app/src/components/settings/panels/AgentAccessPanel.tsx
@@ -444,7 +444,9 @@ const AgentAccessPanel = () => {
// opt out of the assertive default for the same reason
// as the auto-approve-all warning above.
<Alert variant="warning" density="compact" role={undefined}>
- <AlertDescription>{t('settings.agentAccess.timeout.envOverride')}</AlertDescription>
+ <AlertDescription>
+ {t('settings.agentAccess.timeout.envOverride')}
+ </AlertDescription>
</Alert>
)}
<SettingsStatusLine
diff --git a/app/src/components/settings/panels/EmbeddingsProviderList.tsx b/app/src/components/settings/panels/EmbeddingsProviderList.tsx
index 390c2e88af..d078497674 100644
--- a/app/src/components/settings/panels/EmbeddingsProviderList.tsx
+++ b/app/src/components/settings/panels/EmbeddingsProviderList.tsx
@@ -3,8 +3,8 @@
* `EmbeddingsPanel.tsx` to keep that file under the repo's file-size
* convention.
*/
-import { useT } from '../../../lib/i18n/I18nContext';
import { cn } from '../../../lib/cn';
+import { useT } from '../../../lib/i18n/I18nContext';
import type { EmbeddingProviderEntry } from '../../../services/api/embeddingsApi';
import { Button } from '../../ui';
import { SettingsBadge, SettingsSection } from '../controls';
diff --git a/app/src/pages/FlowCanvasPage.tsx b/app/src/pages/FlowCanvasPage.tsx
index 9bc1b489d4..b7cb1b69c0 100644
--- a/app/src/pages/FlowCanvasPage.tsx
+++ b/app/src/pages/FlowCanvasPage.tsx
@@ -45,9 +45,9 @@ import {
Button,
CenteredLoadingState,
ErrorBanner,
- Input as UiInput,
ToggleGroupItem,
ToggleGroupRoot,
+ Input as UiInput,
} from '../components/ui';
import { useFlowPreauthorization } from '../hooks/useFlowPreauthorization';
import { asFlowCanvasDraftState } from '../lib/flows/canvasDraft';