mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-03 18:19:46 -06:00
✨ Major UI/UX Improvements: - Redesign task management interface with modern card-based layout - Implement responsive design optimized for all devices - Add hover effects, smooth transitions, and modern animations - Integrate Bootstrap 5 with custom CSS variables and styling 🎨 Enhanced Task Templates: - tasks/list.html: Modern header, quick stats, advanced filtering, card grid - tasks/view.html: Comprehensive task overview with timeline and quick actions - tasks/create.html: Enhanced form with helpful sidebar and validation - tasks/edit.html: Improved editing interface with current task context - tasks/my_tasks.html: Personalized task view with task type indicators 🔧 Technical Improvements: - Fix CSRF token errors by removing Flask-WTF dependencies - Convert templates to use regular HTML forms matching route implementation - Ensure proper form validation and user experience - Maintain all existing functionality while improving interface 📱 Mobile-First Design: - Responsive grid layouts that stack properly on mobile - Touch-friendly buttons and interactions - Optimized spacing and typography for all screen sizes - Consistent design system across all task views 📊 Enhanced Features: - Quick stats overview showing task distribution by status - Advanced filtering with search, status, priority, project, and assignee - Priority-based color coding and visual indicators - Task timeline visualization for better project tracking - Improved form layouts with icons and helpful guidance 📚 Documentation Updates: - Update README.md with comprehensive task management feature descriptions - Add new screenshot section for enhanced task interface - Document modern UI/UX improvements and technical features - Include usage examples and workflow descriptions �� User Experience: - Clean, professional appearance suitable for business use - Intuitive navigation and clear visual hierarchy - Consistent styling with existing application design - Improved accessibility and usability across all devices This commit represents a significant enhancement to the task management system, transforming it from a basic interface to a modern, professional-grade solution that matches contemporary web application standards.
59 lines
1.7 KiB
Python
59 lines
1.7 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Simple script to fix the missing task_id column
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
import time
|
|
from sqlalchemy import create_engine, text, inspect
|
|
|
|
def fix_schema():
|
|
"""Fix the missing task_id column"""
|
|
url = os.getenv("DATABASE_URL", "")
|
|
|
|
if not url.startswith("postgresql"):
|
|
print("No PostgreSQL database configured")
|
|
return False
|
|
|
|
try:
|
|
engine = create_engine(url, pool_pre_ping=True)
|
|
inspector = inspect(engine)
|
|
|
|
# Check if time_entries table exists
|
|
if 'time_entries' not in inspector.get_table_names():
|
|
print("time_entries table not found")
|
|
return False
|
|
|
|
# Check if task_id column exists
|
|
columns = inspector.get_columns("time_entries")
|
|
column_names = [col['name'] for col in columns]
|
|
print(f"Current columns in time_entries: {column_names}")
|
|
|
|
if 'task_id' in column_names:
|
|
print("task_id column already exists")
|
|
return True
|
|
|
|
# Add the missing column
|
|
print("Adding task_id column...")
|
|
with engine.connect() as conn:
|
|
conn.execute(text("ALTER TABLE time_entries ADD COLUMN task_id INTEGER;"))
|
|
conn.commit()
|
|
|
|
print("✓ task_id column added successfully")
|
|
return True
|
|
|
|
except Exception as e:
|
|
print(f"Error fixing schema: {e}")
|
|
import traceback
|
|
traceback.print_exc()
|
|
return False
|
|
|
|
if __name__ == "__main__":
|
|
if fix_schema():
|
|
print("Schema fix completed successfully")
|
|
sys.exit(0)
|
|
else:
|
|
print("Schema fix failed")
|
|
sys.exit(1)
|