✨ 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.
104 lines
3.2 KiB
YAML
104 lines
3.2 KiB
YAML
name: Nightly DB Drift Check
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 3 * * *" # daily at 03:00 UTC
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
drift-postgres:
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: drift-postgres-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
services:
|
|
postgres:
|
|
image: postgres:16
|
|
env:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: liferpg
|
|
ports:
|
|
- 5432:5432
|
|
options: >-
|
|
--health-cmd="bash -lc 'cat < /dev/null > /dev/tcp/127.0.0.1/5432'" \
|
|
--health-interval=10s \
|
|
--health-timeout=5s \
|
|
--health-retries=10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Cache pip
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-3.12-${{ hashFiles('**/requirements*.txt', 'poetry.lock', 'Pipfile.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-3.12-
|
|
- name: Install deps
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -r modern/backend/requirements_full.txt alembic
|
|
- name: Wait for Postgres
|
|
run: |
|
|
python - <<'PY'
|
|
import socket, time, sys
|
|
host, port = '127.0.0.1', 5432
|
|
for i in range(60):
|
|
try:
|
|
with socket.create_connection((host, port), timeout=1):
|
|
sys.exit(0)
|
|
except OSError:
|
|
time.sleep(1)
|
|
print('Postgres not ready', file=sys.stderr)
|
|
sys.exit(1)
|
|
PY
|
|
- name: Create DB schema
|
|
env:
|
|
DATABASE_URL: postgresql+psycopg2://postgres:postgres@localhost:5432/liferpg
|
|
run: |
|
|
export PYTHONPATH=$(pwd)
|
|
alembic -c modern/alembic.ini upgrade head
|
|
- name: Run schema drift check (Postgres)
|
|
env:
|
|
DATABASE_URL: postgresql+psycopg2://postgres:postgres@localhost:5432/liferpg
|
|
run: |
|
|
export PYTHONPATH=$(pwd)
|
|
python scripts/alembic_check.py
|
|
|
|
drift-sqlite:
|
|
runs-on: ubuntu-latest
|
|
concurrency:
|
|
group: drift-sqlite-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Cache pip
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-3.12-${{ hashFiles('**/requirements*.txt', 'poetry.lock', 'Pipfile.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-3.12-
|
|
- name: Install deps
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -r modern/backend/requirements_full.txt alembic
|
|
- name: Upgrade DB
|
|
env:
|
|
DATABASE_URL: sqlite:///./modern_dev.db
|
|
run: |
|
|
export PYTHONPATH=$(pwd)
|
|
alembic -c modern/alembic.ini upgrade head
|
|
- name: Drift check (sqlite)
|
|
env:
|
|
DATABASE_URL: sqlite:///./modern_dev.db
|
|
run: |
|
|
export PYTHONPATH=$(pwd)
|
|
python scripts/alembic_check.py
|