Skip to content

Commit 20d32d8

Browse files
committed
chore(ui): apply prettier formatting
1 parent 51b5df3 commit 20d32d8

5 files changed

Lines changed: 13 additions & 7 deletions

File tree

‎ui/src/core/api/client.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import type {
1414

1515
const configuredApiUrl = process.env.NEXT_PUBLIC_API_URL?.trim();
1616
const isStaticExport = process.env.NEXT_PUBLIC_STATIC_EXPORT === 'true';
17-
const API_URL = configuredApiUrl ?? (isStaticExport ? '' : 'http://localhost:8000');
17+
const API_URL =
18+
configuredApiUrl ?? (isStaticExport ? '' : 'http://localhost:8000');
1819
const API_KEY = process.env.NEXT_PUBLIC_AGENT_CONTROL_API_KEY?.trim() || null;
1920

2021
export const apiClient = createClient<paths>({

‎ui/src/core/layouts/app-layout.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ export function AppLayout({ children }: AppLayoutProps) {
210210
/>
211211
}
212212
label="My agents"
213-
active={router.pathname === '/' || router.pathname === '/agents'}
213+
active={
214+
router.pathname === '/' || router.pathname === '/agents'
215+
}
214216
onClick={closeNavbar}
215217
/>
216218

‎ui/src/core/page-components/agent-detail/agent-detail.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ const AgentDetailPage = ({ agentId, defaultTab }: AgentDetailPageProps) => {
276276
);
277277
} else if (value === 'controls') {
278278
router.push(
279-
getAgentRoute(agentId, { tab: 'controls', query: router.query }),
279+
getAgentRoute(agentId, {
280+
tab: 'controls',
281+
query: router.query,
282+
}),
280283
undefined,
281284
{
282285
shallow: true,

‎ui/src/core/page-components/agent-detail/modals/control-store/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export function ControlStoreModal({
281281
return (
282282
<Anchor
283283
component={Link}
284-
href={getAgentRoute(usedByAgent.agent_name)}
284+
href={getAgentRoute(usedByAgent.agent_name)}
285285
size="sm"
286286
underline="hover"
287287
>

‎ui/tests/agent-detail.spec.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ test.describe('Agent Detail Page', () => {
182182
).toBeVisible();
183183

184184
// URL should contain modal parameter
185-
await expect(
186-
mockedPage
187-
).toHaveURL(getAgentControlsUrl({ modal: 'control-store' }));
185+
await expect(mockedPage).toHaveURL(
186+
getAgentControlsUrl({ modal: 'control-store' })
187+
);
188188
});
189189

190190
test('closing edit modal removes query parameters', async ({

0 commit comments

Comments
 (0)