You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Complete Phase 5 - Social Features (Favorites)
Implement comprehensive favorites functionality:
- Created favorite mutations and hooks in queries-client.ts
- useAddFavoriteTechnology/useRemoveFavoriteTechnology
- useAddFavoriteTechStack/useRemoveFavoriteTechStack
- useFavoriteTechnologies/useFavoriteTechStacks
- Automatic query invalidation on mutations
- Built FavoriteButton component with optimistic updates
- Heart icon with filled state
- Real-time count updates
- Auth check with sign-in prompt
- Error handling with rollback
- Created TechnologyHeader and StackHeader components
- Client components wrapping page headers
- Integrated FavoriteButton with proper props
- Updated detail pages to use new header components
- /tech/[slug] with technology favorite button
- /stacks/[slug] with stack favorite button
- Completely rebuilt /favorites page
- Fetches real user favorites from API
- Displays favorited technologies and stacks
- Auth check with sign-in prompt
- Empty state with browse action buttons
- Loading states with GridSkeleton
All features include optimistic UI updates and proper error handling.
Build: 12 routes, 175 kB largest page
0 commit comments