feat: implement favorites/wishlist with availability reminders in planner#367
feat: implement favorites/wishlist with availability reminders in planner#367
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
- Enable wishlist button in item display (was disabled) - Add toggle functionality for favorite/unfavorite items - Show favorite indicator (⭐) on items in list and detail views - Implement favorites availability checker in home display - Show reminder when favorited items are available via: - Traveling Spirit - Returning Spirits - Current Season - Active Events - Permanent Shops - Display up to 5 available favorited items in home page Co-authored-by: imnaiyar <137700126+imnaiyar@users.noreply.github.com>
0244155 to
f527058
Compare
f527058 to
954dd6d
Compare
Deploying sky-utils with
|
| Latest commit: |
661aaf0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a00c4c62.sky-utils.pages.dev |
| Branch Preview URL: | https://copilot-add-favorites-featur.sky-utils.pages.dev |
|
/review |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Compliance Guide 🔍(Compliance updated until commit 2dd1cf4)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 2dd1cf4
|
||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
User description
TODO
Users need to track items they want to collect and be notified when those items become available through Traveling Spirits, Returning Spirits, events, seasons, or shops.
Changes
Items Display (
items.ts)PlannerAction.ToggleFavoriteactionHome Display (
home.ts)getAvailableFavoritedItems()- scans favorites against all active sources (TS, RS, events, seasons, shops)createFavoritesReminder()- displays available favorites section (max 5 items)Implementation
Uses existing infrastructure:
favouritesfield in user schema (comma-separated GUIDs)toggleItemFavorite()in planner-utils.tsPlannerDataHelper.hasGuid()for state checksSkips unlocked items in availability scan. Checks item presence in:
Reminder shows item name, availability source, and quick view button.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
PR Type
Enhancement
Description
Implement favorites/wishlist system for items with availability tracking
Display available favorited items in home page and dedicated favorites tab
Show favorite indicators (⭐) on items across list and detail views
Scan all purchase sources (TS, RS, events, seasons, shops) for favorited items
Sort spirit trees by date and improve cost display formatting
Diagram Walkthrough
File Walkthrough
8 files
Add utility functions for items and cost handlingAdd Favourite display tab to navigation enumImplement favorites display with availability scanningIntegrate favorites reminder into home displayAdd favorite toggle and smart source navigationSort spirit trees by date and add event instancesRegister FavouriteDisplay handler in navigationDraw favorite star indicator on spirit tree items4 files
Fix event instance spirit reference resolutionHandle nullable cost formatting in displaysFix cost display and emoji formattingHandle nullable cost formatting in TS display2 files
Refactor tab filtering and expose filter managerRefactor cost formatting and improve display layout1 files
Document planner architecture and new displays1 files
Add planner emoji sync script