Skip to content

Commit 707f6cf

Browse files
authored
Fix issues with ts build breaking client (#44)
1 parent 5ddc7aa commit 707f6cf

File tree

6 files changed

+4
-14
lines changed

6 files changed

+4
-14
lines changed

test-proj/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@babel/runtime": "^7.27.6",
1818
"@lezer/highlight": "^1.2.1",
19-
"@llamaindex/ui": "^2.1.1",
19+
"@llamaindex/ui": "^2.1.2",
2020
"@radix-ui/themes": "^3.2.1",
2121
"class-variance-authority": "^0.7.1",
2222
"clsx": "^2.1.1",

test-proj/ui/src/pages/HomePage.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
import type { TypedAgentData } from "llama-cloud-services/beta/agent";
99
import styles from "./HomePage.module.css";
1010
import { useNavigate } from "react-router-dom";
11-
import { agentClient } from "@/lib/client";
1211
import { useEffect, useState } from "react";
1312

1413
export default function HomePage() {
@@ -45,20 +44,18 @@ function TaskList() {
4544
<div className={styles.page}>
4645
<main className={styles.main}>
4746
<div className={styles.grid}>
48-
<ItemCount title="Total Items" client={agentClient} />
47+
<ItemCount title="Total Items" />
4948
<ItemCount
5049
title="Reviewed"
5150
filter={{
5251
status: { eq: "approved" },
5352
}}
54-
client={agentClient}
5553
/>
5654
<ItemCount
5755
title="Needs Review"
5856
filter={{
5957
status: { eq: "pending_review" },
6058
}}
61-
client={agentClient}
6259
/>
6360
</div>
6461
<div className={styles.commandBar}>

test-proj/ui/src/pages/ItemPage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import MyJsonSchema from "../schemas/MySchema.json" with { type: "json" };
1313
import { useToolbar } from "@/lib/ToolbarContext";
1414
import { useNavigate } from "react-router-dom";
1515
import { modifyJsonSchema } from "@llamaindex/ui/lib";
16-
import { agentClient } from "@/lib/client";
1716
import { APP_TITLE } from "@/lib/config";
1817

1918
export default function ItemPage() {
@@ -27,7 +26,6 @@ export default function ItemPage() {
2726
jsonSchema: modifyJsonSchema(MyJsonSchema as any, {}),
2827
itemId: itemId as string,
2928
isMock: false,
30-
client: agentClient,
3129
});
3230

3331
const navigate = useNavigate();

ui/package.json.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@babel/runtime": "^7.27.6",
1818
"@lezer/highlight": "^1.2.1",
19-
"@llamaindex/ui": "^2.1.1",
19+
"@llamaindex/ui": "^2.1.2",
2020
"@radix-ui/themes": "^3.2.1",
2121
"class-variance-authority": "^0.7.1",
2222
"clsx": "^2.1.1",

ui/src/pages/HomePage.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
import type { TypedAgentData } from "llama-cloud-services/beta/agent";
99
import styles from "./HomePage.module.css";
1010
import { useNavigate } from "react-router-dom";
11-
import { agentClient } from "@/lib/client";
1211
import { useEffect, useState } from "react";
1312

1413
export default function HomePage() {
@@ -45,20 +44,18 @@ function TaskList() {
4544
<div className={styles.page}>
4645
<main className={styles.main}>
4746
<div className={styles.grid}>
48-
<ItemCount title="Total Items" client={agentClient} />
47+
<ItemCount title="Total Items" />
4948
<ItemCount
5049
title="Reviewed"
5150
filter={{
5251
status: { eq: "approved" },
5352
}}
54-
client={agentClient}
5553
/>
5654
<ItemCount
5755
title="Needs Review"
5856
filter={{
5957
status: { eq: "pending_review" },
6058
}}
61-
client={agentClient}
6259
/>
6360
</div>
6461
<div className={styles.commandBar}>

ui/src/pages/ItemPage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import MyJsonSchema from "../schemas/MySchema.json" with { type: "json" };
1313
import { useToolbar } from "@/lib/ToolbarContext";
1414
import { useNavigate } from "react-router-dom";
1515
import { modifyJsonSchema } from "@llamaindex/ui/lib";
16-
import { agentClient } from "@/lib/client";
1716
import { APP_TITLE } from "@/lib/config";
1817

1918
export default function ItemPage() {
@@ -27,7 +26,6 @@ export default function ItemPage() {
2726
jsonSchema: modifyJsonSchema(MyJsonSchema as any, {}),
2827
itemId: itemId as string,
2928
isMock: false,
30-
client: agentClient,
3129
});
3230

3331
const navigate = useNavigate();

0 commit comments

Comments
 (0)