mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-07 04:50:32 -05:00
small update
This commit is contained in:
+201
-50
@@ -1,73 +1,224 @@
|
||||
# TimeTracker Documentation
|
||||
|
||||
Welcome to the TimeTracker documentation. This directory contains comprehensive documentation for all aspects of the application.
|
||||
Welcome to the comprehensive TimeTracker documentation. Everything you need to install, configure, use, and contribute to TimeTracker.
|
||||
|
||||
## 📚 Documentation Index
|
||||
---
|
||||
|
||||
### 🚀 Getting Started
|
||||
- **[README.md](../README.md)** - Main project overview and quick start guide
|
||||
- **[REQUIREMENTS.md](REQUIREMENTS.md)** - System requirements and dependencies
|
||||
- **[PROJECT_STRUCTURE.md](PROJECT_STRUCTURE.md)** - Detailed project architecture
|
||||
## 📖 Quick Links
|
||||
|
||||
### 🐳 Docker & Deployment
|
||||
- **[DOCKER_PUBLIC_SETUP.md](DOCKER_PUBLIC_SETUP.md)** - Public Docker deployment guide
|
||||
- **[DOCKER_STARTUP_TROUBLESHOOTING.md](DOCKER_STARTUP_TROUBLESHOOTING.md)** - Docker troubleshooting
|
||||
- **[SOLUTION_GUIDE.md](SOLUTION_GUIDE.md)** - Common problems and solutions
|
||||
- **[GITHUB_WORKFLOW_IMAGES.md](GITHUB_WORKFLOW_IMAGES.md)** - Images built on releases and main
|
||||
- **[Main README](../README.md)** — Product overview and quick start
|
||||
- **[Installation Guide](#-installation--deployment)** — Get TimeTracker running
|
||||
- **[Feature Guides](#-feature-documentation)** — Learn what TimeTracker can do
|
||||
- **[Troubleshooting](#-troubleshooting)** — Solve common issues
|
||||
|
||||
### 🔧 Features
|
||||
- **[TASK_MANAGEMENT.md](TASK_MANAGEMENT.md)** - Task management system overview
|
||||
- **[TASK_MANAGEMENT_README.md](TASK_MANAGEMENT_README.md)** - Detailed task management guide
|
||||
- **[CLIENT_MANAGEMENT_README.md](CLIENT_MANAGEMENT_README.md)** - Client model and relationships
|
||||
- **[INVOICE_FEATURE_README.md](INVOICE_FEATURE_README.md)** - Invoice system documentation
|
||||
- **[ENHANCED_INVOICE_SYSTEM_README.md](ENHANCED_INVOICE_SYSTEM_README.md)** - Advanced invoice features
|
||||
- **[INVOICE_INTERFACE_IMPROVEMENTS.md](INVOICE_INTERFACE_IMPROVEMENTS.md)** - Invoice UI improvements
|
||||
- Analytics and reporting features (see the Reports section in the app)
|
||||
- **[MOBILE_IMPROVEMENTS.md](MOBILE_IMPROVEMENTS.md)** - Mobile interface enhancements
|
||||
---
|
||||
|
||||
### 🛠️ Technical Details
|
||||
- **[LOGO_UPLOAD_SYSTEM_README.md](LOGO_UPLOAD_SYSTEM_README.md)** - Logo upload functionality
|
||||
- **[LOGO_UPLOAD_IMPLEMENTATION_SUMMARY.md](LOGO_UPLOAD_IMPLEMENTATION_SUMMARY.md)** - Logo system implementation
|
||||
- **[PDF_GENERATION_TROUBLESHOOTING.md](PDF_GENERATION_TROUBLESHOOTING.md)** - PDF generation issues and fixes
|
||||
## 🚀 Installation & Deployment
|
||||
|
||||
### 📋 Project Guidelines
|
||||
- **[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)** - Community guidelines
|
||||
- **[CONTRIBUTING.md](CONTRIBUTING.md)** - How to contribute to the project
|
||||
- **[GITHUB_WORKFLOW_IMAGES.md](GITHUB_WORKFLOW_IMAGES.md)** - GitHub workflow documentation
|
||||
### Getting Started
|
||||
- **[Requirements](REQUIREMENTS.md)** — System requirements and dependencies
|
||||
- **[Docker Public Setup](DOCKER_PUBLIC_SETUP.md)** — Production deployment with Docker
|
||||
- **[Local Testing with SQLite](LOCAL_TESTING_WITH_SQLITE.md)** — Quick test without database setup
|
||||
|
||||
## 🔍 Quick Navigation
|
||||
### Database & Migrations
|
||||
- **[Database Migrations](../migrations/README.md)** — Database schema management with Flask-Migrate
|
||||
- **[Migration Guide](../migrations/MIGRATION_GUIDE.md)** — Migrate existing databases
|
||||
- **[Enhanced Database Startup](ENHANCED_DATABASE_STARTUP.md)** — Automatic database initialization
|
||||
- **[Database Startup Fix](DATABASE_STARTUP_FIX_README.md)** — Database connection troubleshooting
|
||||
|
||||
### Docker & Containers
|
||||
- **[Docker Startup Troubleshooting](DOCKER_STARTUP_TROUBLESHOOTING.md)** — Fix Docker issues
|
||||
- **[Docker Startup Configuration](../docker/STARTUP_MIGRATION_CONFIG.md)** — Container startup behavior
|
||||
- **[Docker Connection Troubleshooting](../docker/TROUBLESHOOTING_DB_CONNECTION.md)** — Database connection in Docker
|
||||
|
||||
---
|
||||
|
||||
## ✨ Feature Documentation
|
||||
|
||||
### Core Features
|
||||
- **[Task Management](TASK_MANAGEMENT_README.md)** — Complete task tracking system
|
||||
- **[Task Management Overview](TASK_MANAGEMENT.md)** — Task management concepts
|
||||
- **[Client Management](CLIENT_MANAGEMENT_README.md)** — Manage clients and relationships
|
||||
- **[Invoice System](INVOICE_FEATURE_README.md)** — Generate and track invoices
|
||||
- **[Enhanced Invoice System](ENHANCED_INVOICE_SYSTEM_README.md)** — Advanced invoicing features
|
||||
- **[Calendar Features](CALENDAR_FEATURES_README.md)** — Calendar view and bulk entry
|
||||
|
||||
### Advanced Features
|
||||
- **[Command Palette](COMMAND_PALETTE_USAGE.md)** — Keyboard shortcuts and quick actions
|
||||
- **[Bulk Time Entry](BULK_TIME_ENTRY_README.md)** — Create multiple time entries at once
|
||||
- **[Logo Upload System](LOGO_UPLOAD_SYSTEM_README.md)** — Brand your invoices
|
||||
- **[Toast Notification System](TOAST_NOTIFICATION_SYSTEM.md)** — User feedback and notifications
|
||||
- **[Translation System](TRANSLATION_SYSTEM.md)** — Multi-language support
|
||||
|
||||
### Additional Documentation
|
||||
- **[Mobile Improvements](MOBILE_IMPROVEMENTS.md)** — Mobile-optimized interface
|
||||
- **[Invoice Interface Improvements](INVOICE_INTERFACE_IMPROVEMENTS.md)** — Invoice UI enhancements
|
||||
- **[PDF Generation Troubleshooting](PDF_GENERATION_TROUBLESHOOTING.md)** — Fix PDF generation issues
|
||||
|
||||
---
|
||||
|
||||
## 🔧 Technical Documentation
|
||||
|
||||
### Project Structure
|
||||
- **[Project Structure](PROJECT_STRUCTURE.md)** — Codebase organization and architecture
|
||||
- **[Solution Guide](SOLUTION_GUIDE.md)** — Technical solutions and patterns
|
||||
|
||||
### Development
|
||||
- **[Contributing Guidelines](CONTRIBUTING.md)** — How to contribute to TimeTracker
|
||||
- **[Code of Conduct](CODE_OF_CONDUCT.md)** — Community standards and expectations
|
||||
- **[Version Management](VERSION_MANAGEMENT.md)** — Release process and versioning
|
||||
|
||||
### CI/CD
|
||||
- **[CI/CD Documentation](cicd/)** — Continuous integration and deployment
|
||||
- **[Documentation](cicd/CI_CD_DOCUMENTATION.md)** — CI/CD overview
|
||||
- **[Quick Start](cicd/CI_CD_QUICK_START.md)** — Get started with CI/CD
|
||||
- **[Implementation Summary](cicd/CI_CD_IMPLEMENTATION_SUMMARY.md)** — What was implemented
|
||||
- **[GitHub Actions Setup](cicd/GITHUB_ACTIONS_SETUP.md)** — Configure GitHub Actions
|
||||
- **[GitHub Actions Verification](cicd/GITHUB_ACTIONS_VERIFICATION.md)** — Verify CI/CD setup
|
||||
|
||||
### Release & Images
|
||||
- **[Release Process](RELEASE_PROCESS.md)** — How to create releases
|
||||
- **[GitHub Workflow Images](GITHUB_WORKFLOW_IMAGES.md)** — Docker images on GitHub Container Registry
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ Troubleshooting
|
||||
|
||||
### Common Issues
|
||||
- **[Docker Startup Troubleshooting](DOCKER_STARTUP_TROUBLESHOOTING.md)** — Docker won't start
|
||||
- **[Database Connection Issues](../docker/TROUBLESHOOTING_DB_CONNECTION.md)** — Can't connect to database
|
||||
- **[PDF Generation Issues](PDF_GENERATION_TROUBLESHOOTING.md)** — PDFs not generating
|
||||
- **[Solution Guide](SOLUTION_GUIDE.md)** — General problem solving
|
||||
|
||||
### Quick Fixes
|
||||
- **Port conflicts**: Change `PORT=8081` in docker-compose command
|
||||
- **Database issues**: Run `docker-compose down -v && docker-compose up -d`
|
||||
- **Permission errors**: Check file ownership with `chown -R $USER:$USER .`
|
||||
- **Migration failures**: See [Database Migrations](../migrations/README.md)
|
||||
|
||||
---
|
||||
|
||||
## 📚 Additional Resources
|
||||
|
||||
### Features & Improvements
|
||||
Detailed documentation about features and improvements is available in:
|
||||
- **[Implementation Notes](implementation-notes/)** — Development summaries and changelogs
|
||||
- **[Feature Guides](features/)** — Specific feature documentation
|
||||
|
||||
### Implementation Notes
|
||||
Recent improvements and changes:
|
||||
- **[Analytics Improvements](implementation-notes/ANALYTICS_IMPROVEMENTS_SUMMARY.md)**
|
||||
- **[Calendar Improvements](implementation-notes/CALENDAR_IMPROVEMENTS_SUMMARY.md)**
|
||||
- **[Command Palette Improvements](implementation-notes/COMMAND_PALETTE_IMPROVEMENTS.md)**
|
||||
- **[Dashboard & Navbar](implementation-notes/DASHBOARD_NAVBAR_IMPROVEMENTS.md)**
|
||||
- **[Kanban Improvements](implementation-notes/KANBAN_IMPROVEMENTS.md)**
|
||||
- **[Notification System](implementation-notes/NOTIFICATION_SYSTEM_SUMMARY.md)**
|
||||
- **[OIDC Improvements](implementation-notes/OIDC_IMPROVEMENTS.md)**
|
||||
- **[Reports Improvements](implementation-notes/REPORTS_IMPROVEMENTS_SUMMARY.md)**
|
||||
- **[Styling Consistency](implementation-notes/STYLING_CONSISTENCY_SUMMARY.md)**
|
||||
- **[Toast Notifications](implementation-notes/TOAST_NOTIFICATION_IMPROVEMENTS.md)**
|
||||
- **[Translation Improvements](implementation-notes/TRANSLATION_IMPROVEMENTS_SUMMARY.md)**
|
||||
- **[Translation Fixes](implementation-notes/TRANSLATION_FIXES_SUMMARY.md)**
|
||||
- **[UI Improvements](implementation-notes/UI_IMPROVEMENTS_SUMMARY.md)**
|
||||
|
||||
### Feature Specific
|
||||
Feature documentation and quick starts:
|
||||
- **[Alembic Migrations](features/ALEMBIC_MIGRATION_README.md)**
|
||||
- **[Project Costs](features/PROJECT_COSTS_FEATURE.md)**
|
||||
- **[Project Costs Quick Start](features/QUICK_START_PROJECT_COSTS.md)**
|
||||
- **[Calendar Quick Start](features/CALENDAR_QUICK_START.md)**
|
||||
- **[Badges](features/BADGES.md)**
|
||||
- **[Code Formatting](features/RUN_BLACK_FORMATTING.md)**
|
||||
|
||||
---
|
||||
|
||||
## 🔍 Documentation by Topic
|
||||
|
||||
### For New Users
|
||||
1. Start with the main [README.md](../README.md)
|
||||
2. Check [REQUIREMENTS.md](REQUIREMENTS.md) for system requirements
|
||||
3. Review [PROJECT_STRUCTURE.md](PROJECT_STRUCTURE.md) for architecture overview
|
||||
1. Start with **[Main README](../README.md)** for product overview
|
||||
2. Review **[Requirements](REQUIREMENTS.md)** to check if your system is compatible
|
||||
3. Follow **[Docker Public Setup](DOCKER_PUBLIC_SETUP.md)** for installation
|
||||
4. Explore **[Feature Documentation](#-feature-documentation)** to learn what TimeTracker can do
|
||||
|
||||
### For Developers
|
||||
1. Read [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines
|
||||
2. Review feature-specific documentation for areas you're working on
|
||||
3. Check [SOLUTION_GUIDE.md](SOLUTION_GUIDE.md) for common issues
|
||||
1. Read **[Contributing Guidelines](CONTRIBUTING.md)** before making changes
|
||||
2. Review **[Project Structure](PROJECT_STRUCTURE.md)** to understand the codebase
|
||||
3. Check **[Solution Guide](SOLUTION_GUIDE.md)** for technical patterns
|
||||
4. Use **[Local Testing with SQLite](LOCAL_TESTING_WITH_SQLITE.md)** for development
|
||||
|
||||
### For Deployment
|
||||
1. Review [DOCKER_PUBLIC_SETUP.md](DOCKER_PUBLIC_SETUP.md) for Docker deployment
|
||||
2. Check [DOCKER_STARTUP_TROUBLESHOOTING.md](DOCKER_STARTUP_TROUBLESHOOTING.md) if you encounter issues
|
||||
3. See [SOLUTION_GUIDE.md](SOLUTION_GUIDE.md) for deployment solutions
|
||||
### For Administrators
|
||||
1. Follow **[Docker Public Setup](DOCKER_PUBLIC_SETUP.md)** for deployment
|
||||
2. Review **[Version Management](VERSION_MANAGEMENT.md)** for updates
|
||||
3. Set up **[Database Migrations](../migrations/README.md)** for schema management
|
||||
4. Configure **[CI/CD](cicd/)** for automated deployments
|
||||
|
||||
### For Troubleshooting
|
||||
1. Check **[Docker Startup Troubleshooting](DOCKER_STARTUP_TROUBLESHOOTING.md)**
|
||||
2. Review **[Database Connection Issues](../docker/TROUBLESHOOTING_DB_CONNECTION.md)**
|
||||
3. Consult **[Solution Guide](SOLUTION_GUIDE.md)** for common problems
|
||||
4. Check specific feature documentation if issue is feature-related
|
||||
|
||||
---
|
||||
|
||||
## 📝 Documentation Structure
|
||||
|
||||
All documentation files are organized by category and purpose:
|
||||
```
|
||||
docs/
|
||||
├── README.md # This file - documentation index
|
||||
├── REQUIREMENTS.md # System requirements
|
||||
├── PROJECT_STRUCTURE.md # Codebase architecture
|
||||
├── CONTRIBUTING.md # Contribution guidelines
|
||||
├── CODE_OF_CONDUCT.md # Community standards
|
||||
│
|
||||
├── cicd/ # CI/CD documentation
|
||||
│ ├── CI_CD_DOCUMENTATION.md
|
||||
│ ├── CI_CD_QUICK_START.md
|
||||
│ └── ...
|
||||
│
|
||||
├── features/ # Feature-specific guides
|
||||
│ ├── ALEMBIC_MIGRATION_README.md
|
||||
│ ├── PROJECT_COSTS_FEATURE.md
|
||||
│ └── ...
|
||||
│
|
||||
└── implementation-notes/ # Development notes
|
||||
├── ANALYTICS_IMPROVEMENTS_SUMMARY.md
|
||||
├── UI_IMPROVEMENTS_SUMMARY.md
|
||||
└── ...
|
||||
```
|
||||
|
||||
- **Feature Documentation**: Explains specific application features
|
||||
- **Technical Guides**: Implementation details and technical information
|
||||
- **Deployment Guides**: Setup and deployment instructions
|
||||
- **Troubleshooting**: Common issues and their solutions
|
||||
- **Project Guidelines**: Community and contribution guidelines
|
||||
---
|
||||
|
||||
## 🤝 Contributing to Documentation
|
||||
|
||||
If you find errors or want to improve the documentation:
|
||||
Found an error? Want to improve the docs?
|
||||
|
||||
1. Check the [CONTRIBUTING.md](CONTRIBUTING.md) guidelines
|
||||
2. Make your changes
|
||||
3. Submit a pull request
|
||||
1. Check the **[Contributing Guidelines](CONTRIBUTING.md)**
|
||||
2. Make your changes to the relevant documentation file
|
||||
3. Test that all links work correctly
|
||||
4. Submit a pull request with a clear description
|
||||
|
||||
Good documentation helps everyone use and contribute to the project effectively!
|
||||
Good documentation helps everyone! 📚
|
||||
|
||||
---
|
||||
|
||||
## 💡 Tips for Using This Documentation
|
||||
|
||||
- **Use the search function** in your browser (Ctrl/Cmd + F) to find specific topics
|
||||
- **Follow links** to related documentation for deeper understanding
|
||||
- **Start with Quick Links** at the top if you're in a hurry
|
||||
- **Browse by topic** using the categorized sections
|
||||
- **Check Implementation Notes** for recent changes and improvements
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
|
||||
**Need help?** [Open an issue](https://github.com/drytrix/TimeTracker/issues) or check the [troubleshooting section](#-troubleshooting)
|
||||
|
||||
**Want to contribute?** See our [Contributing Guidelines](CONTRIBUTING.md)
|
||||
|
||||
---
|
||||
|
||||
[⬆ Back to Top](#timetracker-documentation)
|
||||
|
||||
</div>
|
||||
|
||||
@@ -345,11 +345,10 @@ def test_task_status_transitions(app, task):
|
||||
@pytest.mark.smoke
|
||||
def test_invoice_creation(app, invoice):
|
||||
"""Test basic invoice creation."""
|
||||
with app.app_context():
|
||||
db.session.refresh(invoice)
|
||||
assert invoice.id is not None
|
||||
assert invoice.invoice_number is not None
|
||||
assert invoice.status == 'draft'
|
||||
# Invoice is already refreshed in the fixture, no need to refresh again
|
||||
assert invoice.id is not None
|
||||
assert invoice.invoice_number is not None
|
||||
assert invoice.status == 'draft'
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
|
||||
Reference in New Issue
Block a user