✨ Major Features Added: - Complete magical theming and rebranding from LifeRPG to The Wizard's Grimoire - Production-grade React frontend with Tailwind CSS v4 and magical aesthetics - Comprehensive analytics dashboard with Recharts integration (ScryingPortal) - Push notifications system with PWA service worker support - Drag & drop functionality using @dnd-kit for habit reordering - Social features with friends system and leaderboards - Performance optimization tools and monitoring - Mobile app enhancement with PWA installation support 🏗️ Technical Infrastructure: - Advanced service worker with offline support and background sync - Zustand state management for scalable application state - Production-ready UI component system with enhanced Button, Card, Input - Progressive Web App (PWA) with manifest and app installation - FastAPI backend with comprehensive API endpoints - Docker containerization and CI/CD pipeline setup 📱 Progressive Web App Features: - Offline functionality with intelligent caching - Push notification support for habit reminders - App installation on mobile and desktop platforms - Background sync for offline data management - Performance monitoring and optimization tools 🎨 User Experience: - Magical wizard/grimoire theming throughout application - Responsive design optimized for all device sizes - Drag & drop habit management with smooth animations - Interactive analytics with multiple chart types - Social connectivity with friends and competitive features - Comprehensive notification and performance settings 🔧 Developer Experience: - Modern development stack with Vite and React - Comprehensive testing setup and CI/CD pipelines - Code quality tools with pre-commit hooks - Docker development environment - Detailed documentation and implementation guides This represents a complete transformation from prototype to production-ready application with enterprise-grade features and magical user experience.
33 lines
1.3 KiB
Python
33 lines
1.3 KiB
Python
import json
|
|
import os
|
|
|
|
def test_email_hook_console_transport(client, monkeypatch):
|
|
# Force console transport
|
|
monkeypatch.setenv('LIFERPG_EMAIL_TRANSPORT', 'console')
|
|
# Force inline execution (no RQ)
|
|
monkeypatch.setattr('modern.backend.app.get_queue', lambda: None, raising=False)
|
|
# Import models after client fixture initialized DB
|
|
from modern.backend import models
|
|
# Create a dummy integration with an EmailHook in post_sync
|
|
db = models.SessionLocal()
|
|
try:
|
|
integ = models.Integration(user_id=1, provider='slack', external_id=None, config=json.dumps({
|
|
'hooks': {
|
|
'pre_sync': [],
|
|
'post_sync': [
|
|
{ 'type': 'email', 'to': 'ops@example.com', 'subject': 'Sync {provider}', 'body': 'count={count}', 'on': 'success' }
|
|
]
|
|
}
|
|
}))
|
|
db.add(integ)
|
|
db.commit()
|
|
db.refresh(integ)
|
|
finally:
|
|
db.close()
|
|
# Trigger sync enqueue inline path by calling /api/v1/integrations/{id}/sync with no RQ (queue not running in tests)
|
|
resp = client.post(f'/api/v1/integrations/{integ.id}/sync')
|
|
assert resp.status_code == 200
|
|
data = resp.json()
|
|
assert data.get('queued') is False
|
|
# We can't easily assert email delivery; success here is the inline path completed without error
|