Skip to content

Commit 261ce3f

Browse files
committed
style: fix oxfmt violations on showcase/integrations
1 parent 5bb9296 commit 261ce3f

12 files changed

Lines changed: 44 additions & 34 deletions

File tree

showcase/integrations/langgraph-python/tests/e2e/chat-customization-css.spec.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ test.describe("Chat Customization (CSS)", () => {
8181
// `background: transparent` and styles the inner bg-muted child with
8282
// `var(--halcyon-paper-elevated)` (#fbf8f2) plus a 2px ember left border.
8383
// Assert the outer wrapper is transparent.
84-
await expect(userMsg).toHaveCSS(
85-
"background-color",
86-
"rgba(0, 0, 0, 0)",
87-
);
84+
await expect(userMsg).toHaveCSS("background-color", "rgba(0, 0, 0, 0)");
8885
});
8986

9087
test("assistant bubble uses transparent background after round-trip", async ({
@@ -102,9 +99,6 @@ test.describe("Chat Customization (CSS)", () => {
10299
// `background: transparent` — editorial serif text with no bubble, just
103100
// an ember left-rule via ::before. The default CopilotKit assistant has
104101
// a visible background, so transparent proves the theme won the cascade.
105-
await expect(assistant).toHaveCSS(
106-
"background-color",
107-
"rgba(0, 0, 0, 0)",
108-
);
102+
await expect(assistant).toHaveCSS("background-color", "rgba(0, 0, 0, 0)");
109103
});
110104
});

showcase/integrations/langgraph-python/tests/e2e/prebuilt-popup.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ test.describe("Pre-Built Popup", () => {
7676
// Playwright's pointer-based click, so use a JS-level .click() that
7777
// bypasses the overlay (same pattern as _genuine-shared.ts:clickByJs).
7878
await page.evaluate(() => {
79-
const btn = document.querySelector('[data-testid="copilot-close-button"]');
79+
const btn = document.querySelector(
80+
'[data-testid="copilot-close-button"]',
81+
);
8082
if (btn) (btn as HTMLElement).click();
8183
});
8284
await expect(popup).toBeHidden({ timeout: 10000 });

showcase/integrations/langgraph-python/tests/e2e/prebuilt-sidebar.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ test.describe("Pre-Built Sidebar", () => {
7979
// JS-level .click() that bypasses the overlay (same pattern as the
8080
// harness probes in _genuine-shared.ts:clickByJs).
8181
await page.evaluate(() => {
82-
const btn = document.querySelector('[data-testid="copilot-close-button"]');
82+
const btn = document.querySelector(
83+
'[data-testid="copilot-close-button"]',
84+
);
8385
if (btn) (btn as HTMLElement).click();
8486
});
8587

showcase/integrations/langgraph-typescript/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,17 @@
3232
"langchain": "1.3.4",
3333
"lucide-react": "^0.460.0",
3434
"next": "^15.5.15",
35-
"radix-ui": "^1.4.3",
36-
"react-markdown": "^10.1.0",
37-
"remark-gfm": "^4.0.1",
3835
"openai": "^5.9.0",
3936
"pdf-parse": "^1.1.1",
37+
"radix-ui": "^1.4.3",
4038
"react": "^19.0.0",
4139
"react-dom": "^19.0.0",
40+
"react-markdown": "^10.1.0",
4241
"recharts": "^2.15.0",
42+
"remark-gfm": "^4.0.1",
4343
"tailwind-merge": "^2.5.5",
4444
"zod": "^3.24.0"
4545
},
46-
"overrides": {
47-
"@ag-ui/langgraph": "0.0.32"
48-
},
4946
"devDependencies": {
5047
"@playwright/test": "^1.50.0",
5148
"@tailwindcss/postcss": "^4.0.0",
@@ -56,5 +53,8 @@
5653
"postcss": "^8.5.0",
5754
"tailwindcss": "^4.0.0",
5855
"typescript": "^5.7.0"
56+
},
57+
"overrides": {
58+
"@ag-ui/langgraph": "0.0.32"
5959
}
6060
}

showcase/integrations/langgraph-typescript/src/agent/gen-ui-agent.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import { z } from "zod";
1515
import { RunnableConfig } from "@langchain/core/runnables";
1616
import { tool } from "@langchain/core/tools";
1717
import { ToolNode } from "@langchain/langgraph/prebuilt";
18-
import { AIMessage, SystemMessage, ToolMessage } from "@langchain/core/messages";
18+
import {
19+
AIMessage,
20+
SystemMessage,
21+
ToolMessage,
22+
} from "@langchain/core/messages";
1923
import type { ToolRunnableConfig } from "@langchain/core/tools";
2024
import {
2125
Annotation,
@@ -48,7 +52,7 @@ const AgentStateAnnotation = Annotation.Root({
4852
...CopilotKitStateAnnotation.spec,
4953
// Last-write-wins reducer: each set_steps call replaces the full list.
5054
steps: Annotation<Step[]>({
51-
reducer: (_prev, next) => (next != null ? next : _prev ?? []),
55+
reducer: (_prev, next) => (next != null ? next : (_prev ?? [])),
5256
default: () => [],
5357
}),
5458
});

showcase/integrations/langgraph-typescript/src/agent/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"typescript": "^5.6.3",
2020
"zod": "^3.23.8"
2121
},
22-
"overrides": {
23-
"@ag-ui/langgraph": "0.0.32"
24-
},
2522
"devDependencies": {
2623
"@types/node": "^22.9.0"
24+
},
25+
"overrides": {
26+
"@ag-ui/langgraph": "0.0.32"
2727
}
2828
}

showcase/integrations/langgraph-typescript/src/agent/shared-state-streaming.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ import { z } from "zod";
1919
import { RunnableConfig } from "@langchain/core/runnables";
2020
import { tool } from "@langchain/core/tools";
2121
import { ToolNode } from "@langchain/langgraph/prebuilt";
22-
import { AIMessage, SystemMessage, ToolMessage } from "@langchain/core/messages";
22+
import {
23+
AIMessage,
24+
SystemMessage,
25+
ToolMessage,
26+
} from "@langchain/core/messages";
2327
import type { ToolRunnableConfig } from "@langchain/core/tools";
2428
import {
2529
Annotation,

showcase/integrations/langgraph-typescript/src/app/demos/beautiful-chat/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ function HomePage() {
5959
return (
6060
<ExampleLayout
6161
chatContent={
62-
<CopilotChat attachments={{ enabled: true }} input={{ disclaimer: () => null, className: "pb-6" }} />
62+
<CopilotChat
63+
attachments={{ enabled: true }}
64+
input={{ disclaimer: () => null, className: "pb-6" }}
65+
/>
6366
}
6467
appContent={<ExampleCanvas />}
6568
/>

showcase/integrations/langgraph-typescript/src/app/demos/declarative-json-render/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ const AGENT_ID = "byoc_json_render";
2727

2828
export default function ByocJsonRenderDemo() {
2929
return (
30-
<CopilotKit runtimeUrl="/api/copilotkit-declarative-json-render" agent={AGENT_ID}>
30+
<CopilotKit
31+
runtimeUrl="/api/copilotkit-declarative-json-render"
32+
agent={AGENT_ID}
33+
>
3134
<div className="flex justify-center items-center h-screen w-full">
3235
<div className="h-full w-full max-w-4xl">
3336
<Chat />

showcase/integrations/langgraph-typescript/tests/e2e/chat-customization-css.spec.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ test.describe("Chat Customization (CSS)", () => {
8181
// `background: transparent` and styles the inner bg-muted child with
8282
// `var(--halcyon-paper-elevated)` (#fbf8f2) plus a 2px ember left border.
8383
// Assert the outer wrapper is transparent.
84-
await expect(userMsg).toHaveCSS(
85-
"background-color",
86-
"rgba(0, 0, 0, 0)",
87-
);
84+
await expect(userMsg).toHaveCSS("background-color", "rgba(0, 0, 0, 0)");
8885
});
8986

9087
test("assistant bubble uses transparent background after round-trip", async ({
@@ -102,9 +99,6 @@ test.describe("Chat Customization (CSS)", () => {
10299
// `background: transparent` — editorial serif text with no bubble, just
103100
// an ember left-rule via ::before. The default CopilotKit assistant has
104101
// a visible background, so transparent proves the theme won the cascade.
105-
await expect(assistant).toHaveCSS(
106-
"background-color",
107-
"rgba(0, 0, 0, 0)",
108-
);
102+
await expect(assistant).toHaveCSS("background-color", "rgba(0, 0, 0, 0)");
109103
});
110104
});

0 commit comments

Comments
 (0)