mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
organize seach space apis
This commit is contained in:
parent
43362a383e
commit
78ab020d80
15 changed files with 154 additions and 42 deletions
|
|
@ -55,8 +55,8 @@ import {
|
|||
SelectValue,
|
||||
} from "@/components/ui/select";
|
||||
import { useAtom, useAtomValue } from "jotai";
|
||||
import { activeSearchSpaceChatsAtom } from "@/atoms/chats/queries/active-search-space-chats.query.atom";
|
||||
import { deleteChatMutationAtom } from "@/atoms/chats/mutations/delete-chat.mutation.atom";
|
||||
import { activeSearchSpaceChatsAtom } from "@/atoms/chats/chat-queries.atom";
|
||||
import { deleteChatMutationAtom } from "@/atoms/chats/chat-mutations.atom";
|
||||
|
||||
export interface Chat {
|
||||
created_at: string;
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ import {
|
|||
} from "@/components/ui/sidebar";
|
||||
import { useLLMPreferences } from "@/hooks/use-llm-configs";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { activeChatIdAtom } from "@/atoms/chats/queries/active-chat.query.atom";
|
||||
import { chatUIAtom } from "@/atoms/chats/active-chat.atom";
|
||||
import { activeSearchSpaceIdAtom } from "@/atoms/seach-spaces/active-seach-space.atom";
|
||||
import { activeChatIdAtom } from "@/atoms/chats/chat-queries.atom";
|
||||
import { chatUIAtom } from "@/atoms/chats/chat-uis.atom";
|
||||
import { activeSearchSpaceIdAtom } from "@/atoms/seach-spaces/seach-space-queries.atom";
|
||||
|
||||
export function DashboardClientLayout({
|
||||
children,
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ const DashboardPage = () => {
|
|||
{searchSpaces &&
|
||||
searchSpaces.length > 0 &&
|
||||
searchSpaces.map((space) => (
|
||||
<motion.div key={space.id} variants={itemVariants} className="aspect-[4/3]">
|
||||
<motion.div key={space.id} variants={itemVariants} className="aspect-4/3">
|
||||
<Tilt
|
||||
rotationFactor={6}
|
||||
isRevese
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue