From f5964e1d6ef7a3c9bf351a2986c6aae508eb13b0 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 8 Feb 2026 16:48:10 +0000 Subject: [PATCH 1/8] feat: make plant icon functional for history toggle - Updated plant icon (logo) in header to be a prominent outline button. - Ensured it correctly toggles the chat history sidebar. - Removed redundant and broken history toggles in header and sidebar. - Ensured chat path and sharePath are persisted correctly in database. - Updated Playwright tests to reflect the new test ID for history toggle. Co-authored-by: ngoiyaeric <115367894+ngoiyaeric@users.noreply.github.com> --- components/header.tsx | 25 +++++++------- components/history-container.tsx | 16 --------- components/history.tsx | 26 -------------- components/mobile-icons-bar.tsx | 4 --- components/sidebar.tsx | 9 ++--- header.patch | 59 ++++++++++++++++++++++++++++++++ lib/actions/chat.ts | 2 ++ tests/sidebar.spec.ts | 4 +-- verify_history_toggle.py | 22 ++++++++++++ 9 files changed, 101 insertions(+), 66 deletions(-) delete mode 100644 components/history-container.tsx delete mode 100644 components/history.tsx create mode 100644 header.patch create mode 100644 verify_history_toggle.py diff --git a/components/header.tsx b/components/header.tsx index fd80bc44..be13575f 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -4,12 +4,8 @@ import Image from 'next/image' import { useCalendarToggle } from './calendar-toggle-context' import { ModeToggle } from './mode-toggle' import { cn } from '@/lib/utils' -import HistoryContainer from './history-container' import { Button } from '@/components/ui/button' import { - Search, - CircleUserRound, - Map, CalendarDays, TentTree } from 'lucide-react' @@ -51,17 +47,24 @@ export const Header = () => { -