Phase 3.1: Enhanced Chore Logging and Reporting System
This commit is contained in:
59
apply_chore_updates.bat
Normal file
59
apply_chore_updates.bat
Normal file
@@ -0,0 +1,59 @@
|
||||
@echo off
|
||||
echo ========================================
|
||||
echo Chore System Upgrade - Quick Setup
|
||||
echo ========================================
|
||||
echo.
|
||||
echo This script will copy all updated files to
|
||||
echo the correct locations.
|
||||
echo.
|
||||
pause
|
||||
|
||||
echo.
|
||||
echo Step 1: Copying updated API types...
|
||||
copy /Y D:\Hosted\familyhub\frontend\src\api\chores.ts D:\Hosted\familyhub\frontend\src\api\chores.ts.backup
|
||||
echo ✓ Backed up chores.ts
|
||||
echo (Original saved as chores.ts.backup)
|
||||
|
||||
echo.
|
||||
echo Step 2: Copying updated components...
|
||||
if exist D:\Hosted\familyhub\ChoreCard_updated.tsx (
|
||||
copy /Y D:\Hosted\familyhub\ChoreCard_updated.tsx D:\Hosted\familyhub\frontend\src\components\ChoreCard.tsx
|
||||
echo ✓ Updated ChoreCard.tsx
|
||||
) else (
|
||||
echo ✗ ChoreCard_updated.tsx not found!
|
||||
)
|
||||
|
||||
if exist D:\Hosted\familyhub\CreateChoreModal_updated.tsx (
|
||||
copy /Y D:\Hosted\familyhub\CreateChoreModal_updated.tsx D:\Hosted\familyhub\frontend\src\components\CreateChoreModal.tsx
|
||||
echo ✓ Updated CreateChoreModal.tsx
|
||||
) else (
|
||||
echo ✗ CreateChoreModal_updated.tsx not found!
|
||||
)
|
||||
|
||||
if exist D:\Hosted\familyhub\EditChoreModal.tsx (
|
||||
copy /Y D:\Hosted\familyhub\EditChoreModal.tsx D:\Hosted\familyhub\frontend\src\components\EditChoreModal.tsx
|
||||
echo ✓ Added EditChoreModal.tsx
|
||||
) else (
|
||||
echo ✗ EditChoreModal.tsx not found!
|
||||
)
|
||||
|
||||
if exist D:\Hosted\familyhub\Dashboard_updated.tsx (
|
||||
copy /Y D:\Hosted\familyhub\frontend\src\pages\Dashboard.tsx D:\Hosted\familyhub\frontend\src\pages\Dashboard.tsx.backup
|
||||
copy /Y D:\Hosted\familyhub\Dashboard_updated.tsx D:\Hosted\familyhub\frontend\src\pages\Dashboard.tsx
|
||||
echo ✓ Updated Dashboard.tsx (backup created)
|
||||
) else (
|
||||
echo ✗ Dashboard_updated.tsx not found!
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Files Updated!
|
||||
echo ========================================
|
||||
echo.
|
||||
echo Next steps:
|
||||
echo 1. Restart backend: D:\Hosted\familyhub\restart_backend.bat
|
||||
echo 2. Restart frontend in its terminal
|
||||
echo 3. Clear browser cache (Ctrl+Shift+R)
|
||||
echo 4. Test the new features!
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user