📌 Description
Browsers of src/app/marketplace/page.tsx cannot save listings to revisit later; there's no favorites/watchlist concept on MarketplaceCard.
This issue adds a watchlist: a star/save toggle on cards and a 'Saved' rail that surfaces watched listings.
🎯 Requirements and Context
This is a feature / enhancement task for the CommitLabs frontend (Next.js + TypeScript). It must be implemented cleanly, fully typed, accessible, and well tested — and must not regress existing behavior.
- Add an accessible save/unsave toggle on
MarketplaceCard with clear pressed state.
- Persist watched listing ids (user preferences API or local) and render a Saved rail/section.
- Reflect saved state consistently across grid, quick-view, and the rail.
- Handle removed/sold listings in the watchlist gracefully.
🛠️ Suggested Execution
1. Fork the repo and create a branch
git checkout -b feature/marketplace-watchlist
2. Implement the change
- Primary files to add or modify:
src/components/MarketplaceCard.tsx — save toggle.
src/app/marketplace/page.tsx — Saved rail.
src/components/marketplace/WatchlistRail.tsx — new component.
- Add focused tests in
src/components/marketplace/Watchlist.test.tsx using Jest / Vitest + React Testing Library (happy-dom), covering rendering, interaction, and the edge cases below.
- Add documentation in
docs/MARKETPLACE_WATCHLIST.md describing the feature, props/API, accessibility behavior, and a usage example; cross-link it from the relevant README/docs.
- Keep the diff small and reviewer-friendly; reuse existing primitives, hooks, and the typed API client instead of duplicating logic.
3. Cover edge cases
- save/unsave persists
- sold listing handled in rail
- state consistent across views
- toggle accessible pressed state
4. Test and commit
- Run the suite (e.g.
pnpm test / pnpm vitest run) and ensure new lines are covered.
- Verify keyboard navigation, focus handling, and
prefers-reduced-motion where relevant.
Example commit message
feat: marketplace watchlist and saved listings rail
✅ Guidelines
- Minimum 95% test coverage on the new/changed lines.
- Clear, reviewer-friendly documentation (props/API + usage example + accessibility notes).
- No regressions to existing components, routes, or tests.
- Fully typed (no
any), accessible (labels, roles, live regions where relevant).
- Timeframe: 96 hours.
🏷️ Labels
type-feature · type-enhancement · area-frontend · MAYBE REWARDED · GRANTFOX OSS · OFFICIAL CAMPAIGN
💬 Community & Support
- Join the CommitLabs contributor Discord to coordinate, ask questions, and get unblocked fast: https://discord.gg/WV7tdYkJk
- Please introduce yourself in the channel before you start so we can avoid duplicate work, pair you with a reviewer, and get your PR merged quickly.
- Maintainers actively triage this channel and aim for fast, clear, respectful reviews — reach out any time you're blocked.
📌 Description
Browsers of
src/app/marketplace/page.tsxcannot save listings to revisit later; there's no favorites/watchlist concept onMarketplaceCard.This issue adds a watchlist: a star/save toggle on cards and a 'Saved' rail that surfaces watched listings.
🎯 Requirements and Context
This is a feature / enhancement task for the CommitLabs frontend (Next.js + TypeScript). It must be implemented cleanly, fully typed, accessible, and well tested — and must not regress existing behavior.
MarketplaceCardwith clear pressed state.🛠️ Suggested Execution
1. Fork the repo and create a branch
2. Implement the change
src/components/MarketplaceCard.tsx— save toggle.src/app/marketplace/page.tsx— Saved rail.src/components/marketplace/WatchlistRail.tsx— new component.src/components/marketplace/Watchlist.test.tsxusing Jest / Vitest + React Testing Library (happy-dom), covering rendering, interaction, and the edge cases below.docs/MARKETPLACE_WATCHLIST.mddescribing the feature, props/API, accessibility behavior, and a usage example; cross-link it from the relevant README/docs.3. Cover edge cases
4. Test and commit
pnpm test/pnpm vitest run) and ensure new lines are covered.prefers-reduced-motionwhere relevant.Example commit message
✅ Guidelines
any), accessible (labels, roles, live regions where relevant).🏷️ Labels
type-feature·type-enhancement·area-frontend·MAYBE REWARDED·GRANTFOX OSS·OFFICIAL CAMPAIGN💬 Community & Support