feat: Wishlist with price-drop alerts (Variation 3)#7
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/thomasiverson/GitHubCopilot_Customized/sessions/cb969598-68cd-4ed3-8b23-0236eeb0cbf4 Co-authored-by: thomasiverson <12767513+thomasiverson@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add price-drop detection and stock awareness to wishlist
feat: Wishlist with price-drop alerts (Variation 3)
May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a frontend-only wishlist that tracks the price at which each item was saved and surfaces price drops and low-stock warnings.
New:
WishlistContext(context/WishlistContext.tsx)Persists
WishlistEntry[]tolocalStorage("wishlist_v2"):Exposes
toggleWishlist,isWishlisted,wishlistCount, andgetPriceDrop— wheregetPriceDropreturnscurrentPrice - savedPrice(negative = cheaper now).Updated: Product cards (
Products.tsx)bg-yellow-400) overlaid at bottom of image whengetPriceDrop< 0stockLevel?: numbertoProductinterfaceNew: Wishlist page (
components/wishlist/Wishlist.tsx)useQuery, filters to wishlisted entriesstockLevel <= 5)Wiring
App.tsx:/wishlistroute added;WishlistProviderwraps the app insideThemeProviderNavigation.tsx: "Wishlist" link with count badge, shown only whenisLoggedInOriginal prompt