Files
family-hub/commit_phase3_1.bat

91 lines
2.7 KiB
Batchfile

#!/bin/bash
# Phase 3.1 Git Commit Script
# Commits all Phase 3.1 files to Git repository
cd "D:/Hosted/familyhub"
echo "================================================"
echo "Phase 3.1: Enhanced Chore Logging & Reporting"
echo "================================================"
echo ""
# Configure git if needed
git config user.name "Jess" 2>/dev/null || true
git config user.email "jess.rogerson.29@outlook.com" 2>/dev/null || true
# Add all backend files
echo "Adding backend files..."
git add backend/migrations/005_add_completion_logs.py
git add backend/app/models/chore_completion_log.py
git add backend/app/schemas/chore_completion_log.py
git add backend/app/api/v1/chore_logs.py
git add backend/app/models/user.py
git add backend/app/api/v1/public.py
# Add all frontend files
echo "Adding frontend files..."
git add frontend/package.json
git add frontend/src/App.tsx
git add frontend/src/pages/Dashboard.tsx
git add frontend/src/api/choreLogs.ts
git add frontend/src/pages/Reports.tsx
git add frontend/src/pages/UserStatsPage.tsx
git add frontend/src/components/UserStats.tsx
git add frontend/src/components/EnhancedCompletionModal.tsx
# Add documentation
echo "Adding documentation..."
git add PHASE_3_1_COMPLETE.md
git add PHASE_3_1_FRONTEND_COMPLETE.md
git add PHASE_3_1_COMMIT_MESSAGE.md
git add QUICK_START_TESTING.md
git add TESTING_GUIDE.md
git add COMPLETION_LOGS_FIXED.md
git add FIX_DEPENDENCIES.md
git add install_phase3_dependencies.bat
echo ""
echo "Committing files..."
git commit -m "Phase 3.1: Enhanced Chore Logging & Reporting System
✨ New Features
- Complete historical chore completion tracking
- Weekly reports dashboard with charts and leaderboards
- User statistics page with personal metrics
- Enhanced public API for kiosk completion logging
- Verification system for completions
📊 Backend
- chore_completion_logs table with indexes
- Weekly reports API endpoint
- User statistics API endpoint
- Completion verification endpoints
- Public API now creates log entries
🎨 Frontend
- Reports page: Weekly dashboard with visual stats
- User Stats page: Personal performance tracking
- Enhanced components with navigation links
- Modern UI with avatars and responsive design
📁 Files Created: 19
📝 Lines Added: ~2500+
🧪 Status: Tested and Functional
📅 Date: February 4, 2026
🚀 Next: Phase 3.1 Enhancements (recharts, animations, notifications)"
echo ""
echo "Pushing to Gitea..."
git push origin main
echo ""
echo "================================================"
echo "✅ Phase 3.1 Successfully Committed!"
echo "================================================"
echo ""
echo "Repository: https://gitea.hideawaygaming.com.au/jessikitty/family-hub"
echo ""
pause