diff --git a/components/project/traces/trace-filter.tsx b/components/project/traces/trace-filter.tsx index e12526e3..78ca1e78 100644 --- a/components/project/traces/trace-filter.tsx +++ b/components/project/traces/trace-filter.tsx @@ -134,96 +134,98 @@ export default function FilterDialog({ return ( - - - Filter Traces - - Select filters to apply to the traces. - - - -
-

Attributes

- {advancedFilters.map((filter, index) => ( -
- - updateAdvancedFilter(index, "attribute", attribute) - } - /> - - updateAdvancedFilter(index, "operator", operator) - } - /> - - updateAdvancedFilter(index, "value", e.target.value) - } - className="mr-2" - /> + +
+ + Filter Traces + + Select filters to apply to the traces. + + + +
+

Attributes

+ {advancedFilters.map((filter, index) => ( +
+ + updateAdvancedFilter(index, "attribute", attribute) + } + /> + + updateAdvancedFilter(index, "operator", operator) + } + /> + + updateAdvancedFilter(index, "value", e.target.value) + } + className="mr-2" + /> + +
+ ))} + +
+
+

User Id

+ +
+
+

Prompt Id

+ +
+ + + {(selectedFilters.length > 0 || + advancedFilters.length > 0 || + selectedUserId !== "" || + selectedPromptId !== "") && ( -
- ))} - -
-
-

User Id

- -
-
-

Prompt Id

- -
- - - {(selectedFilters.length > 0 || - advancedFilters.length > 0 || - selectedUserId !== "" || - selectedPromptId !== "") && ( - - )} - - + +
); diff --git a/components/shared/project-switcher.tsx b/components/shared/project-switcher.tsx index 99b31610..70f23a0e 100644 --- a/components/shared/project-switcher.tsx +++ b/components/shared/project-switcher.tsx @@ -18,6 +18,7 @@ import { usePathname } from "next/navigation"; import React from "react"; import { useQuery } from "react-query"; import { toast } from "sonner"; +import { ScrollArea } from "../ui/scroll-area"; export function ProjectSwitcher({ email }: { email: string }) { const [open, setOpen] = React.useState(false); @@ -45,7 +46,7 @@ export function ProjectSwitcher({ email }: { email: string }) { }); return ( - + - + - No project found. - - {projects?.projects.map((project: any) => ( - - - setOpen(false)} - > -
-

{project.name}

- -
-
-
- - ))} -
+ + No project found. + + {projects?.projects.map((project: any) => ( + + + setOpen(false)} + > +
+

{project.name}

+ +
+
+
+ + ))} +
+