current org

This commit is contained in:
2026-03-09 09:21:48 -04:00
commit 22e4864b8e
82 changed files with 4587 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
entity:
id: fre-11-dashboard
name: FRE-11 Dashboard Integration
description: Web platform integration with authentication, notifications, and subscription management
status: in_progress
priority: high
company_id: e4a42be5-3bd4-46ad-8b3b-f2da60d203d4
facts:
- id: fre-11-assigned
type: assignment
subject: junior-engineer
object: FRE-11 dashboard integration task
timestamp: "2026-03-09T07:36:00Z"
- id: fre-11-goal
type: goal
subject: FRE-11
object: Integrate authentication, email notifications, and subscription management into dashboard
timestamp: "2026-03-09T07:36:00Z"
- id: fre-11-status
type: status
subject: FRE-11
object: in_progress
timestamp: "2026-03-09T18:00:00Z"
- id: fre-11-auth-complete
type: fact
subject: Authentication
object: Clerk integration implemented in auth-context.jsx and ProtectedRoute.jsx
timestamp: "2026-03-09T18:00:00Z"
- id: fre-11-email-complete
type: fact
subject: Email Notifications
object: 8 templates implemented with queue-based dispatcher (web/src/email/)
timestamp: "2026-03-09T18:00:00Z"
- id: fre-11-subscription-complete
type: fact
subject: Subscription Management
object: Stripe checkout with Standard ($39/mo) and Unlimited ($79/mo) plans
timestamp: "2026-03-09T18:00:00Z"
- id: fre-11-jobs-api-complete
type: fact
subject: Jobs API
object: Enhanced with notification dispatching and BullMQ queue
timestamp: "2026-03-09T18:00:00Z"
- id: fre-11-next-steps
type: goal
subject: FRE-11
object: Integrate realtime job events into Dashboard, test SMTP, connect auth to sessions
timestamp: "2026-03-09T18:00:00Z"
access:
last_accessed: "2026-03-09T18:00:00Z"
access_count: 1

View File

@@ -0,0 +1,56 @@
# FRE-11 Dashboard Integration
**Status:** In Progress 🔄
## Summary
Web platform integration with authentication, email notifications, and subscription management.
## Components Implemented
### 1. Authentication System
- **Files:** `web/src/lib/auth-context.jsx`, `ProtectedRoute.jsx`
- Clerk integration for user authentication
- Protected routes redirect to sign-in when unauthenticated
### 2. Email Notification System
- **Location:** `web/src/email/`
- 8 email templates (job started/completed/failed, payment received, usage warnings)
- Notification dispatcher with queue-based sending
- Preferences API for user notification settings
### 3. Subscription Management
- **Location:** `web/src/routes/settings.jsx`
- Stripe checkout integration
- Pricing plans: Standard ($39/mo, 10hrs) and Unlimited ($79/mo)
- Session retrieval endpoint for webhook callbacks
### 4. Jobs API Enhanced
- **Location:** `web/src/server/api/jobs.js`
- Notification dispatching on job lifecycle events
- BullMQ queue with priority tiers based on subscription
### 5. Notification Dispatcher
- **Location:** `web/src/server/notificationsDispatcher.js`
- Queue-based notification processing
- Retry logic for failed sends
## Next Steps
1. Integrate realtime job events into Dashboard component (currently using 5s polling)
2. Set up notification preferences API endpoints
3. Test email sending with real SMTP provider
4. Connect authentication to user sessions
## Progress Log
### 2026-03-09
- ✅ Authentication system implemented
- ✅ Email notification system with 8 templates
- ✅ Subscription management with Stripe checkout
- ✅ Jobs API enhanced with notifications
- ✅ Notification dispatcher with BullMQ queue
**Next Session:**
- Integrate realtime job events into Dashboard
- Test email notification system with real SMTP
- Connect authentication to user sessions