Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelwt committed Jul 9, 2024
1 parent efc9282 commit 695234d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/frontend/components/layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ function NavbarLink({
w="100%"
pl={5}
onClick={onClick || (() => handleNavigation(link))}
h={30}
label={<Text size="xs">{`${label}${soon ? " (soon)" : ""}`}</Text>}
h={33}
label={<Text size={13}>{`${label}${soon ? " (soon)" : ""}`}</Text>}
disabled={disabled || soon}
active={active}
leftSection={
<ThemeIcon variant={"subtle"} size="md" mr={-10}>
<Icon size={14} opacity={0.7} />
<Icon size={16} opacity={0.7} />
</ThemeIcon>
}
/>
Expand Down Expand Up @@ -153,7 +153,7 @@ function MenuSection({ item }) {
<>
<Text
mb={5}
fz={12}
fz={13}
fw={400}
opacity={0.8}
onClick={toggle}
Expand Down Expand Up @@ -395,7 +395,7 @@ export default function Sidebar() {
fz="xl"
type="button"
style={{
fontSize: 20,
wordBreak: "break-all",
textOverflow: "ellipsis",
overflow: "hidden",
}}
Expand Down
9 changes: 8 additions & 1 deletion packages/frontend/pages/users/[[...id]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import TopModels from "@/components/analytics/TopModels"
import LineChart from "@/components/analytics/LineChart"
import Link from "next/link"
import { deserializeDateRange, getDefaultDateRange } from "../analytics"
import { parseAsString, useQueryState } from "nuqs"

const columns = [
{
Expand Down Expand Up @@ -289,7 +290,11 @@ function SelectedUser({ id, onClose }) {
}

export default function Users() {
const [search, setSearch] = useState("")
const [search, setSearch] = useQueryState<string | undefined>(
"search",
parseAsString,
)

const [debouncedSearch] = useDebouncedValue(search, 200)
const [columnVisibility, setColumnVisibility] = useLocalStorage({
key: "users-columns",
Expand All @@ -299,6 +304,7 @@ export default function Users() {
const { users, loading, validating, loadMore } = useExternalUsers({
search: debouncedSearch,
})

const router = useRouter()

const [selectedUserId, setSelectedUserId] = useState<string | null>(null)
Expand Down Expand Up @@ -329,6 +335,7 @@ export default function Users() {
size="sm"
/>
</Card>

<DataTable
type="users"
availableColumns={columns}
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/checks/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ export const FIELD_PARAM: CheckParam = {
defaultValue: "output",
options: [
{
label: "Input",
label: "Prompt",
value: "input",
},
{
label: "Output",
label: "Response",
value: "output",
},
],
Expand Down

0 comments on commit 695234d

Please sign in to comment.