Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test-proj/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@babel/runtime": "^7.27.6",
"@lezer/highlight": "^1.2.1",
"@llamaindex/ui": "^2.1.1",
"@llamaindex/ui": "^2.1.2",
"@radix-ui/themes": "^3.2.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
Expand Down
5 changes: 1 addition & 4 deletions test-proj/ui/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
import type { TypedAgentData } from "llama-cloud-services/beta/agent";
import styles from "./HomePage.module.css";
import { useNavigate } from "react-router-dom";
import { agentClient } from "@/lib/client";
import { useEffect, useState } from "react";

export default function HomePage() {
Expand Down Expand Up @@ -45,20 +44,18 @@ function TaskList() {
<div className={styles.page}>
<main className={styles.main}>
<div className={styles.grid}>
<ItemCount title="Total Items" client={agentClient} />
<ItemCount title="Total Items" />
<ItemCount
title="Reviewed"
filter={{
status: { eq: "approved" },
}}
client={agentClient}
/>
<ItemCount
title="Needs Review"
filter={{
status: { eq: "pending_review" },
}}
client={agentClient}
/>
</div>
<div className={styles.commandBar}>
Expand Down
2 changes: 0 additions & 2 deletions test-proj/ui/src/pages/ItemPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import MyJsonSchema from "../schemas/MySchema.json" with { type: "json" };
import { useToolbar } from "@/lib/ToolbarContext";
import { useNavigate } from "react-router-dom";
import { modifyJsonSchema } from "@llamaindex/ui/lib";
import { agentClient } from "@/lib/client";
import { APP_TITLE } from "@/lib/config";

export default function ItemPage() {
Expand All @@ -27,7 +26,6 @@ export default function ItemPage() {
jsonSchema: modifyJsonSchema(MyJsonSchema as any, {}),
itemId: itemId as string,
isMock: false,
client: agentClient,
});

const navigate = useNavigate();
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@babel/runtime": "^7.27.6",
"@lezer/highlight": "^1.2.1",
"@llamaindex/ui": "^2.1.1",
"@llamaindex/ui": "^2.1.2",
"@radix-ui/themes": "^3.2.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
Expand Down
5 changes: 1 addition & 4 deletions ui/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
import type { TypedAgentData } from "llama-cloud-services/beta/agent";
import styles from "./HomePage.module.css";
import { useNavigate } from "react-router-dom";
import { agentClient } from "@/lib/client";
import { useEffect, useState } from "react";

export default function HomePage() {
Expand Down Expand Up @@ -45,20 +44,18 @@ function TaskList() {
<div className={styles.page}>
<main className={styles.main}>
<div className={styles.grid}>
<ItemCount title="Total Items" client={agentClient} />
<ItemCount title="Total Items" />
<ItemCount
title="Reviewed"
filter={{
status: { eq: "approved" },
}}
client={agentClient}
/>
<ItemCount
title="Needs Review"
filter={{
status: { eq: "pending_review" },
}}
client={agentClient}
/>
</div>
<div className={styles.commandBar}>
Expand Down
2 changes: 0 additions & 2 deletions ui/src/pages/ItemPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import MyJsonSchema from "../schemas/MySchema.json" with { type: "json" };
import { useToolbar } from "@/lib/ToolbarContext";
import { useNavigate } from "react-router-dom";
import { modifyJsonSchema } from "@llamaindex/ui/lib";
import { agentClient } from "@/lib/client";
import { APP_TITLE } from "@/lib/config";

export default function ItemPage() {
Expand All @@ -27,7 +26,6 @@ export default function ItemPage() {
jsonSchema: modifyJsonSchema(MyJsonSchema as any, {}),
itemId: itemId as string,
isMock: false,
client: agentClient,
});

const navigate = useNavigate();
Expand Down