4 Commits

Author SHA1 Message Date
b39329d432 feat(settings): add user profile settings with theme toggle
Add user profile management system:
- Create user_profiles table with display name, bio, theme prefs
- Add profile settings page at /dashboard/settings/profile
- Integrate next-themes for light/dark/system theme switching
- Update sidebar to display user's profile data and avatar
- Wire up Account menu link and Log out button
2026-01-22 05:41:11 -07:00
abb6a421d8 feat(wishlist): add reddit-style upvote/downvote for items
Replace single vote button with up/down voting system:
- Users can upvote OR downvote (not both)
- Clicking same vote removes it, different vote changes it
- Items sorted by score (upvotes - downvotes) by default
- Score displayed with color coding (green/red/muted)

Also adds PDF/CSV export with jspdf and onSuccess callback
for add dialog refresh.
2026-01-22 03:33:21 -07:00
ecbc9c627d feat(wishlist): add comment delete, voting, and replies
- Add parentId column to wishlist_comments for reply threading
- Create wishlist_comment_votes table for up/down voting
- Add deleteComment action (owner-only, cascades to replies)
- Add toggleCommentVote action with toggle behavior
- Update getItemWithComments to return nested CommentWithMeta
- Create CommentItem component with voting UI and reply support
- One level of reply depth enforced (can't reply to replies)
2026-01-22 03:18:10 -07:00
6e7ed3634b feat(wishlist): add infrastructure wishlist page
- add D1 database with drizzle ORM for wishlist data
- create wishlist items, votes, and comments tables
- implement server actions for CRUD, voting, comments
- add wishlist page with auth protection
- create components: stats, filters, item cards, add dialog, detail drawer
- add optimistic updates for voting
- update sidebar navigation with Infrastructure Wishlist link
- configure middleware to use WORKOS_REDIRECT_URI env var for local dev
2026-01-22 00:19:46 -07:00