Skip to content

Add friends darius#69

Open
DariusR216 wants to merge 6 commits into
mainfrom
add-friends-darius
Open

Add friends darius#69
DariusR216 wants to merge 6 commits into
mainfrom
add-friends-darius

Conversation

@DariusR216
Copy link
Copy Markdown
Contributor

Overview

Implements a complete friend management system with user search, friend request sending/acceptance, and an inbox for managing pending requests. Includes a redesigned profile page matching the wireframe design.

Features Added

User Search & Discovery

  • Search users by username or display name
  • Browse all users feature (shows up to 50 users)
  • Real-time friendship status display (none, pending, friends)
  • Search API endpoint (/api/users/search)

Friend Requests

  • Send friend requests to any user
  • View pending requests (sent and received)
  • Accept or reject incoming requests
  • Friend requests inbox modal
  • Prevents duplicate requests and self-requests

Friends Management

  • View list of accepted friends
  • Friend count display on profile
  • Friend avatars in profile section

Profile Page Redesign

  • Matched wireframe design
  • Profile header with stats (songs, groups, friends)
  • Song of the Day section (placeholder)
  • Recent Activity section
  • Friends section with avatars
  • Action buttons: Requests, Add Friend, Settings
  • Full black background extending to bottom of page

- Add backend API endpoints for creating and joining groups
- Generate unique 6-character group codes
- Create frontend components for group management
- Add database schema documentation
- Implement role-based access (admin/member)
- Add copy-to-clipboard functionality for group codes

Requires Supabase setup to be fully functional
- Add privacy column (public/private) to groups table
- Add status column (pending/active/deleted) for temporary groups
- Add expires_at column for 3-day cleanup feature
- Add performance indexes for new columns
- Create migration.sql with ready-to-run SQL commands
- Update documentation with new feature explanations
- Add friends database table schema with RLS policies
- Create /api/friends route for getting friends list and sending friend requests
- Create /api/friends/requests route for managing friend requests (accept/reject)
- Create /api/users/search route for searching users to friend
- Update DATABASE_SCHEMA.md with friends table documentation
- Add friends migration SQL file for database setup

The friends feature includes:
- Send friend requests
- Accept/reject friend requests
- Get friends list
- Search for users to add as friends
- Automatic status handling (pending, accepted)
@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
vybe Ready Ready Preview Comment Nov 3, 2025 6:39pm

Comment thread apps/web/app/api/import-playlist/route.js Fixed
…gery

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants