mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-04 10:40:23 -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.
67 lines
2.1 KiB
Python
67 lines
2.1 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Test script to verify database schema is correct
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
from sqlalchemy import create_engine, text, inspect
|
|
|
|
def test_schema():
|
|
"""Test if the database has the correct schema"""
|
|
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 required tables
|
|
existing_tables = inspector.get_table_names()
|
|
required_tables = ["users", "projects", "time_entries", "settings", "tasks"]
|
|
missing_tables = [table for table in required_tables if table not in existing_tables]
|
|
|
|
if missing_tables:
|
|
print(f"Missing tables: {missing_tables}")
|
|
return False
|
|
|
|
print("✓ All required tables exist")
|
|
|
|
# Check time_entries has task_id column
|
|
if 'time_entries' in existing_tables:
|
|
columns = inspector.get_columns("time_entries")
|
|
column_names = [col['name'] for col in columns]
|
|
print(f"time_entries columns: {column_names}")
|
|
|
|
if 'task_id' not in column_names:
|
|
print("✗ time_entries table missing task_id column")
|
|
return False
|
|
else:
|
|
print("✓ time_entries table has task_id column")
|
|
|
|
# Check tasks table structure
|
|
if 'tasks' in existing_tables:
|
|
columns = inspector.get_columns("tasks")
|
|
column_names = [col['name'] for col in columns]
|
|
print(f"tasks columns: {column_names}")
|
|
print("✓ tasks table exists with correct structure")
|
|
|
|
print("✓ Database schema is correct")
|
|
return True
|
|
|
|
except Exception as e:
|
|
print(f"Error testing schema: {e}")
|
|
import traceback
|
|
traceback.print_exc()
|
|
return False
|
|
|
|
if __name__ == "__main__":
|
|
if test_schema():
|
|
print("Schema test PASSED")
|
|
sys.exit(0)
|
|
else:
|
|
print("Schema test FAILED")
|
|
sys.exit(1)
|