From 1d58b0d1413ba8109a60c7a53362bf5d926561db Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 08:33:51 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20CodeRabbit=20Chat:=20Implement?= =?UTF-8?q?=20requested=20code=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/chat.tsx | 3 --- components/header.tsx | 2 -- components/report-button.tsx | 6 +----- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/components/chat.tsx b/components/chat.tsx index 7f019a46..d3560a77 100644 --- a/components/chat.tsx +++ b/components/chat.tsx @@ -21,7 +21,6 @@ import { MapDataProvider, useMapData } from './map/map-data-context'; // Add thi import { updateDrawingContext } from '@/lib/actions/chat'; // Import the server action import dynamic from 'next/dynamic' import { HeaderSearchButton } from './header-search-button' -import { ReportButton } from './report-button' type ChatProps = { id?: string // This is the chatId @@ -140,7 +139,6 @@ export function Chat({ id }: ChatProps) { return ( {/* Add Provider */} -
{activeView ? : isUsageOpen ? : } @@ -187,7 +185,6 @@ export function Chat({ id }: ChatProps) { return ( {/* Add Provider */} -
{/* This is the new div for scrolling */}
diff --git a/components/header.tsx b/components/header.tsx index 45db5f99..7b0b605a 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -71,8 +71,6 @@ export const Header = () => { -
- diff --git a/components/report-button.tsx b/components/report-button.tsx index 086ab92e..6073b707 100644 --- a/components/report-button.tsx +++ b/components/report-button.tsx @@ -8,7 +8,6 @@ import { useAIState } from 'ai/rsc' import { useMapData } from '@/components/map/map-data-context' import { useMap } from '@/components/map/map-context' import { generateReport } from '@/lib/utils/report-generator' -import { toast } from 'sonner' interface ReportButtonProps { inline?: boolean @@ -42,15 +41,12 @@ export const ReportButton = ({ inline = false }: ReportButtonProps) => { mapSnapshot, chatTitle }) - - toast.success('Report generated successfully') } catch (error) { console.error('Failed to generate report:', error) - toast.error('Failed to generate report') } finally { setIsGenerating(false) } - } + const button = (