From 7041525c20675c39a7eb2d41f156438707f8c7ba Mon Sep 17 00:00:00 2001 From: Will Chen Date: Mon, 21 Apr 2025 16:19:40 -0700 Subject: [PATCH] Handle rename & deletes in proposal --- src/components/chat/ChatInput.tsx | 25 ++++++++++--- src/ipc/handlers/proposal_handlers.ts | 51 +++++++++++++++++++-------- src/lib/schemas.ts | 1 + 3 files changed, 59 insertions(+), 18 deletions(-) diff --git a/src/components/chat/ChatInput.tsx b/src/components/chat/ChatInput.tsx index ca7ef00..02339a5 100644 --- a/src/components/chat/ChatInput.tsx +++ b/src/components/chat/ChatInput.tsx @@ -10,6 +10,8 @@ import { Check, Loader2, Package, + FileX, + SendToBack, } from "lucide-react"; import type React from "react"; import { useCallback, useEffect, useRef, useState } from "react"; @@ -32,6 +34,7 @@ import { Proposal, SuggestedAction, ProposalResult, + FileChange, } from "@/lib/schemas"; import type { Message } from "@/ipc/ipc_types"; import { isPreviewOpenAtom } from "@/atoms/viewAtoms"; @@ -461,10 +464,7 @@ function ChatInputActions({