{"id":47710374,"url":"https://github.com/michaelchu/roster","last_synced_at":"2026-04-02T18:30:47.284Z","repository":{"id":341302869,"uuid":"1064110240","full_name":"michaelchu/roster","owner":"michaelchu","description":"A simple event management platform designed to streamline event registration and participant management.","archived":false,"fork":false,"pushed_at":"2026-03-09T22:38:19.000Z","size":2512,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T05:42:57.155Z","etag":null,"topics":["event-management","guest-list-app","invitation-system","meetups-organizer","organizer-app","party-planner-template","rsvp","scheduling"],"latest_commit_sha":null,"homepage":"https://rosterapp.co","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelchu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T14:54:17.000Z","updated_at":"2026-03-09T22:38:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/michaelchu/roster","commit_stats":null,"previous_names":["goldspanlabs/roster","michaelchu/roster"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/michaelchu/roster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelchu%2Froster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelchu%2Froster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelchu%2Froster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelchu%2Froster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelchu","download_url":"https://codeload.github.com/michaelchu/roster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelchu%2Froster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31312910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["event-management","guest-list-app","invitation-system","meetups-organizer","organizer-app","party-planner-template","rsvp","scheduling"],"created_at":"2026-04-02T18:30:44.984Z","updated_at":"2026-04-02T18:30:47.275Z","avatar_url":"https://github.com/michaelchu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roster - Mobile Event Signup Platform\n\nA mobile-first event management platform built with React, TypeScript, and Supabase.\n\n## Features\n\n### For Participants\n- **Event Signup** - Register for events via shareable links\n- **Quick Fill** - Auto-fills participant information from localStorage\n- **Custom Fields** - Support for event-specific form fields\n- **Waitlist** - Join waitlist when events are full\n- **Push Notifications** - Get notified about event updates, cancellations, and waitlist promotions\n\n### For Organizers\n- **Event Management** - Create, edit, duplicate, and delete events\n- **Group Management** - Organize events and members into groups with role-based access\n- **Participant Management** - View, search, and manage registered participants\n- **Label System** - Organize participants with custom labels\n- **Payment Tracking** - Track payment status for participants\n- **CSV Export** - Download participant lists with labels\n- **Push Notifications** - Get notified about new signups, withdrawals, and capacity changes\n- **Private Events** - Restrict event visibility to group members\n\n### Design\n- **Mobile-First** - Optimized for mobile screens with bottom navigation\n- **Dark Mode** - Theme toggle with system preference support\n- **Adjustable Font Size** - Customizable text size for accessibility\n\n## Tech Stack\n\n- **Frontend**: Vite + React 19 + TypeScript (strict mode)\n- **Styling**: Tailwind CSS + shadcn/ui components\n- **Database**: Supabase (PostgreSQL with Row Level Security)\n- **Authentication**: Supabase Auth with Google OAuth\n- **Push Notifications**: Web Push API with VAPID\n- **Testing**: Vitest + Playwright\n- **Storage**: localStorage for Quick Fill and appearance settings\n\n## Database Schema\n\nThe app uses the following tables:\n- `organizers` - User profiles linked to Supabase Auth\n- `events` - Event information with custom fields\n- `participants` - Event registrations\n- `labels` - Event-specific participant labels\n- `participant_labels` - Many-to-many relationship for labels\n- `groups` - Event groups for organizing related events\n- `notification_preferences` - User push notification settings\n- `push_subscriptions` - Web Push subscription data per device\n- `notifications` - Notification inbox/history\n- `notification_queue` - Queue for pending push notifications\n- `feature_flags` - Platform-wide feature toggles\n- `feature_flag_overrides` - User/group-level feature flag overrides\n\n## Getting Started\n\n1. **Install Dependencies**\n   ```bash\n   npm install\n   ```\n\n2. **Set up Environment Variables**\n   Copy `.env.example` to `.env` and fill in your Supabase credentials:\n   ```\n   VITE_SUPABASE_URL=your-supabase-url\n   VITE_SUPABASE_ANON_KEY=your-supabase-anon-key\n   VITE_GOOGLE_CLIENT_ID=your-google-client-id\n   ```\n\n3. **Start Local Supabase**\n   ```bash\n   npx supabase start\n   ```\n\n4. **Apply Database Migrations**\n   ```bash\n   npx supabase migration up\n   ```\n\n5. **Start Development Server**\n   ```bash\n   npm run dev\n   ```\n\n## Usage\n\n### Creating an Event\n1. Sign up/login as an organizer\n2. Navigate to Events tab\n3. Click \"New\" to create an event\n4. Add event details and custom fields\n5. Share the signup link with participants\n\n### Managing Participants\n1. View participants in the event detail page\n2. Add/remove labels for organization\n3. Export participant data to CSV\n4. Search and filter participants\n\n### Participant Registration\n1. Participants access the signup link on mobile\n2. Fill out the registration form\n3. Information is saved for Quick Fill on future events\n4. Confirmation screen shows successful registration\n\n## Key Files\n\n- `src/App.tsx` - Main app with routing\n- `src/hooks/useAuth.tsx` - Authentication context\n- `src/hooks/useNotifications.ts` - Push notification state management\n- `src/hooks/useFeatureFlags.ts` - Feature flag system\n- `src/lib/supabase.ts` - Database client and types\n- `src/services/` - Business logic and database abstraction layer\n- `src/components/BottomNav.tsx` - Mobile navigation\n- `src/components/MobileOnly.tsx` - Desktop restriction\n- `supabase/migrations/` - Database migrations (applied via `npx supabase migration up`)\n- `supabase/functions/` - Edge functions for push notifications\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Run development server\nnpm run dev\n\n# Build for production\nnpm run build\n\n# Preview production build\nnpm run preview\n```\n\n## Edge Functions\n\nThe `supabase/functions` directory contains Edge Functions for the push notification system.\n\n### Functions\n\n#### `send-push`\nProcesses the notification queue and sends push notifications to subscribed devices.\n\n**Trigger:**\n- Database webhook when items are added to `notification_queue`\n- Manual invocation for testing\n- Called by `process-scheduled` function\n\n**Environment Variables Required:**\n- `VAPID_PUBLIC_KEY` - Web Push VAPID public key\n- `VAPID_PRIVATE_KEY` - Web Push VAPID private key\n- `VAPID_SUBJECT` - VAPID subject (e.g., `mailto:your@email.com`)\n\n#### `process-scheduled`\nHandles time-based notifications like payment reminders (24hr after event).\n\n**Trigger:**\n- Cron job (recommended: every hour)\n- Can be set up via Supabase Dashboard or pg_cron\n\n### Edge Functions Setup\n\n#### 1. Generate VAPID Keys\n\n```bash\nnpx web-push generate-vapid-keys\n```\n\n#### 2. Configure Secrets\n\n```bash\nsupabase secrets set VAPID_PUBLIC_KEY=your_public_key\nsupabase secrets set VAPID_PRIVATE_KEY=your_private_key\nsupabase secrets set VAPID_SUBJECT=mailto:your@email.com\n```\n\n#### 3. Deploy Functions\n\n```bash\nsupabase functions deploy send-push\nsupabase functions deploy process-scheduled\n```\n\n#### 4. Set Up Cron Job (for scheduled notifications)\n\nIn Supabase Dashboard:\n1. Go to Database \u003e Extensions\n2. Enable `pg_cron` extension\n3. Create a cron job:\n\n```sql\nSELECT cron.schedule(\n  'process-scheduled-notifications',\n  '0 * * * *',\n  $$\n  SELECT net.http_post(\n    url := 'https://your-project.supabase.co/functions/v1/process-scheduled',\n    headers := '{\"Authorization\": \"Bearer YOUR_SERVICE_ROLE_KEY\"}'::jsonb\n  );\n  $$\n);\n```\n\n### Local Edge Functions Development\n\n#### 1. Generate VAPID Keys\n\n```bash\nnpx web-push generate-vapid-keys --json\n```\n\n#### 2. Configure Frontend Environment\n\nAdd the public key to your root `.env` file:\n\n```bash\nVITE_VAPID_PUBLIC_KEY=your_generated_public_key\n```\n\n#### 3. Configure Edge Function Environment\n\nCreate `supabase/.env.local` with all three VAPID keys:\n\n```bash\nVAPID_PUBLIC_KEY=your_generated_public_key\nVAPID_PRIVATE_KEY=your_generated_private_key\nVAPID_SUBJECT=mailto:your@email.com\n```\n\n#### 4. Configure Database Trigger\n\nThe database trigger uses `pg_net` to call the edge function. Since `pg_net` runs inside Docker, it needs `host.docker.internal` to reach your host machine:\n\n```sql\nINSERT INTO private.app_config (key, value) VALUES\n  ('service_role_key', 'your_local_service_role_key'),\n  ('supabase_url', 'http://host.docker.internal:54321')\nON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;\n```\n\nThe local service role key can be found in your `.env` file as `SUPABASE_SERVICE_ROLE_KEY`.\n\n#### 5. Start Edge Functions\n\n```bash\nnpx supabase functions serve --env-file supabase/.env.local\n```\n\n#### 6. Test the Full Pipeline\n\n```bash\n# Test send-push directly\ncurl -X POST http://localhost:54321/functions/v1/send-push \\\n  -H \"Authorization: Bearer YOUR_ANON_KEY\"\n\n# Test process-scheduled\ncurl -X POST http://localhost:54321/functions/v1/process-scheduled \\\n  -H \"Authorization: Bearer YOUR_ANON_KEY\"\n\n# Test full pipeline by inserting into notification_queue\npsql \"postgresql://postgres:postgres@127.0.0.1:54322/postgres\" -c \"\nINSERT INTO notification_queue (recipient_user_id, notification_type, title, body, scheduled_for, status)\nVALUES ('your_user_id', 'test', 'Test Push', 'Hello from local!', NOW(), 'pending');\n\"\n```\n\n**Notes:**\n- Local VAPID keys are different from production. Push subscriptions created locally won't work in production and vice versa.\n- Ensure your system allows notifications from your browser. On macOS: System Settings → Notifications → Chrome (or your browser) → Allow Notifications.\n\n## Testing\n\n### Unit Tests\n\n```bash\nnpm run test          # Run Vitest test suite\nnpm run test:ui       # Interactive Vitest UI\nnpm run test:coverage # Generate coverage reports\n```\n\n### E2E Tests\n\nE2E tests use Playwright. All required services are automatically started.\n\n#### Prerequisites\n\n1. **Docker must be running** (required for Supabase)\n\n2. **Ensure environment variables are set** in `.env`:\n   - `VITE_SUPABASE_URL` - Your local Supabase URL (default: `http://127.0.0.1:54321`)\n   - `VITE_SUPABASE_ANON_KEY` - Get from `npx supabase status` (shown as \"Publishable\" key)\n   - `SUPABASE_SERVICE_ROLE_KEY` - Get from `npx supabase status` (shown as \"Secret\" key)\n\n#### Running E2E Tests\n\n```bash\nnpm run test:e2e         # Run all E2E tests\nnpm run test:e2e:ui      # Run with Playwright UI\nnpm run test:e2e:headed  # Run with visible browser\n```\n\nPlaywright automatically starts:\n- Supabase (if not already running)\n- Vite dev server (port 5173)\n- Supabase edge functions (port 54321)\n\n#### Troubleshooting\n\n- **Tests failing with RLS/permission errors**: Ensure `SUPABASE_SERVICE_ROLE_KEY` is set in `.env`\n- **Supabase fails to start**: Ensure Docker is running\n- **Edge functions timeout**: Check Docker has enough resources allocated\n\n## License\n\nProprietary - All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelchu%2Froster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelchu%2Froster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelchu%2Froster/lists"}