mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 02:19:43 +00:00
Add dares feature schema and admin portal
This commit is contained in:
1 parent
aff0bc0888
commit
b933c3c421
6 files changed
+1559
-2
No files matched your search
+28
-2
@@ -1,8 +1,34 @@
|
||||
# Dares Feature - Architecture & Implementation Plan
|
||||
|
||||
> **Status**: Planning Complete - Ready for Implementation
|
||||
> **Status**: Phase 1 Complete (Database + Admin Portal)
|
||||
> **Created**: 2026-01-08
|
||||
> **Target**: Schema + Admin Portal (Phase 1), Mobile App (Phase 2 - Later)
|
||||
> **Updated**: 2026-01-08
|
||||
> **Target**: Schema + Admin Portal (Phase 1 - DONE), Mobile App (Phase 2 - Later)
|
||||
|
||||
## Implementation Summary
|
||||
|
||||
### Completed (Phase 1)
|
||||
|
||||
| Component | Files | Status |
|
||||
|-----------|-------|--------|
|
||||
| Database Migration | `apps/supabase/migrations/20260109000000_create_dares_feature.sql` | Applied to prod |
|
||||
| Dare Packs Page | `apps/admin/src/pages/content/DarePacksPage.tsx` | Complete |
|
||||
| Dares Page | `apps/admin/src/pages/content/DaresPage.tsx` | Complete |
|
||||
| Routes | `apps/admin/src/App.tsx` | Updated |
|
||||
| Sidebar | `apps/admin/src/components/layout/Sidebar.tsx` | Updated |
|
||||
|
||||
### Database Tables Created
|
||||
|
||||
- `dare_packs` - Collections of dares (0 rows)
|
||||
- `dares` - Individual dare content (0 rows)
|
||||
- `sent_dares` - Dare instances between partners (0 rows)
|
||||
- `dare_messages` - Chat messages for dares (0 rows)
|
||||
- `dare_status` enum type with states: pending, active, completed, expired, declined, cancelled
|
||||
|
||||
### Admin Routes Added
|
||||
|
||||
- `/dare-packs` - List all dare packs
|
||||
- `/dare-packs/:packId/dares` - List dares in a pack
|
||||
|
||||
## Overview
|
||||
|
||||
|
||||
Reference in new issue
Block a user