From a67a1be5a72dd90172a32885a2b8b2d4ce1fc6a3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 04:00:08 +0000 Subject: [PATCH 1/2] Initial plan From e905a33fadcf4ab858fc574b85ad9b283c88a08f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 04:03:39 +0000 Subject: [PATCH 2/2] Add client-side wishlist feature with localStorage persistence Agent-Logs-Url: https://github.com/thomasiverson/GitHubCopilot_Customized/sessions/26b6c9c8-9532-4f13-99b1-dbd17e6d41fc Co-authored-by: thomasiverson <12767513+thomasiverson@users.noreply.github.com> --- frontend/src/App.tsx | 7 +- frontend/src/components/Navigation.tsx | 13 ++ frontend/src/components/Wishlist.tsx | 163 ++++++++++++++++++ .../components/entity/product/Products.tsx | 31 ++++ frontend/src/context/WishlistContext.tsx | 63 +++++++ frontend/src/context/wishlistContextUtils.tsx | 21 +++ 6 files changed, 297 insertions(+), 1 deletion(-) create mode 100644 frontend/src/components/Wishlist.tsx create mode 100644 frontend/src/context/WishlistContext.tsx create mode 100644 frontend/src/context/wishlistContextUtils.tsx diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index d0b02da..085e7e2 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -7,7 +7,9 @@ import Products from './components/entity/product/Products'; import Login from './components/Login'; import { AuthProvider } from './context/AuthContext'; import { ThemeProvider } from './context/ThemeContext'; +import { WishlistProvider } from './context/WishlistContext'; import AdminProducts from './components/admin/AdminProducts'; +import Wishlist from './components/Wishlist'; import { useTheme } from './context/ThemeContext'; // Wrapper component to apply theme classes @@ -25,6 +27,7 @@ function ThemedApp() { } /> } /> } /> + } />