Refactor chat input & properly update state for proposal

This commit is contained in:
Will Chen
2025-04-18 12:32:57 -07:00
parent db7ac39c97
commit b2e3631a29
10 changed files with 140 additions and 48 deletions

View File

@@ -11,6 +11,7 @@ export const selectedChatIdAtom = atom<number | null>(null);
export const isStreamingAtom = atom<boolean>(false);
export const chatInputValueAtom = atom<string>("");
export const homeChatInputValueAtom = atom<string>("");
// Atoms for chat list management
export const chatsAtom = atom<ChatSummary[]>([]);

View File

@@ -0,0 +1,4 @@
import { atom } from "jotai";
import type { Proposal, ProposalResult } from "@/lib/schemas";
export const proposalResultAtom = atom<ProposalResult | null>(null);