Commit Graph

48 Commits

Author SHA1 Message Date
d4e56c5cde Improve db migrations.
Move all migration code to python module and use it from app.py. Use Enum values to avoid problems with Enum names in DB.
2025-07-03 12:04:03 +02:00
Jens Luedicke
387243d516 Add missing templates and API endpoints. 2025-07-03 09:26:47 +02:00
Jens Luedicke
d10f5547a5 Attribute name fix. 2025-07-03 09:17:26 +02:00
Jens Luedicke
00a4cdb84e Add System Administrator dashboard. 2025-07-03 09:15:18 +02:00
Jens Luedicke
8e81a73812 Fix for DB Migration. #4 2025-07-03 08:51:04 +02:00
Jens Luedicke
3eeae1f411 Fix for DB Migration. #3 2025-07-03 08:49:05 +02:00
Jens Luedicke
c379d06db6 Fix for DB Migration. #2 2025-07-03 08:46:24 +02:00
Jens Luedicke
2311986db8 Fix for DB Migration. 2025-07-03 08:42:44 +02:00
Jens Luedicke
2a62dcdcf3 Add DB Migration for new Role. 2025-07-03 01:42:27 +02:00
Jens Luedicke
03455374e5 Add SYSTEM_ADMINISTRATOR role. 2025-07-03 01:33:32 +02:00
Jens Luedicke
115972c918 Add missing DB migration step. 2025-07-02 23:15:47 +02:00
Jens Luedicke
80d22e05c4 Fix DB migration/enum handling. 2025-07-02 23:11:27 +02:00
Jens Luedicke
8e100f101a Add Freelancer registration model. 2025-07-02 23:05:30 +02:00
ff6d2da523 Move break time settings into admin area. 2025-07-02 17:00:35 +02:00
f641be6026 Add date/time formatting options. 2025-07-02 16:36:23 +02:00
197ffde545 Add time rounding option. 2025-07-02 16:15:35 +02:00
0db0531fea Allow manual time entry. 2025-07-02 15:57:51 +02:00
5099b7a419 Update About page and routing (when not logged in). 2025-07-02 13:34:07 +02:00
Jens Luedicke
81b7a46f9e Merge branch 'master' into improve-history-views 2025-07-02 13:07:20 +02:00
8f49958dfa Add company feature. 2025-07-02 12:42:18 +02:00
Jens Luedicke
85847b5d39 Add setting to disable user email verification. 2025-07-01 23:45:03 +02:00
c9ee69712d Fix for DB initialization. 2025-07-01 15:03:03 +02:00
6c27bdeea7 Run DB migrations on app start. 2025-07-01 14:47:50 +02:00
57c7a05709 Fix path to sqlite db. 2025-07-01 14:30:27 +02:00
3cf2f381c1 Store sqlite db on data volume. 2025-07-01 12:57:29 +02:00
0693169839 Make first user the admin. 2025-07-01 12:44:10 +02:00
264144ebca Prepare for fly.io 2025-07-01 11:22:56 +02:00
63de80f752 Move data export and data formatting functions into own modules. 2025-07-01 11:00:25 +02:00
141c7d4ee4 Remove old /history route. 2025-07-01 10:41:37 +02:00
ad10c1fa7d Consolitated History views. 2025-07-01 10:41:05 +02:00
Jens Luedicke
26028aae73 Fix some CSS mis-alignments. Remove obsolete template file. 2025-06-29 21:25:59 +02:00
Jens Luedicke
be111a4bed Implement comprehensive project time logging feature
Add complete project management system with role-based access control:

**Core Features:**
- Project creation and management for Admins/Supervisors
- Time tracking with optional project selection and notes
- Project-based filtering and reporting in history
- Enhanced export functionality with project data
- Team-specific project assignments

**Database Changes:**
- New Project model with full relationships
- Enhanced TimeEntry model with project_id and notes
- Updated migration scripts with rollback support
- Sample project creation for testing

**User Interface:**
- Project management templates (create, edit, list)
- Enhanced time tracking with project dropdown
- Project filtering in history page
- Updated navigation for role-based access
- Modern styling with hover effects and responsive design

**API Enhancements:**
- Project validation and access control
- Updated arrive endpoint with project support
- Enhanced export functions with project data
- Role-based route protection

**Migration Support:**
- Comprehensive migration scripts (migrate_projects.py)
- Updated main migration script (migrate_db.py)
- Detailed migration documentation
- Rollback functionality for safe deployment

**Role-Based Access:**
- Admins: Full project CRUD operations
- Supervisors: Project creation and management
- Team Leaders: View team hours with projects
- Team Members: Select projects when tracking time

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-29 17:18:10 +02:00
Jens Luedicke
38a51c3eed Refactor and enhance export functionality with Team Hours support
- Fix missing import statements for CSV/Excel export functionality
- Refactor export code into modular helper functions for better maintainability
- Add comprehensive Team Hours export feature with CSV and Excel support
- Enhance export UI styling with modern gradients and hover effects
- Add role-based access control for team export functionality
- Include date range filtering and team leader inclusion options
- Add proper error handling and user feedback for export operations
- Update dependencies to include pandas and xlsxwriter
- Fix JavaScript scope issues for export button functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-29 16:24:55 +02:00
Jens Luedicke
24d52e795c Merge branch 'master' into feature-user-management 2025-06-29 15:52:56 +02:00
Jens Luedicke
0964a2177a Add 2FA authentification. 2025-06-29 15:41:55 +02:00
Jens Luedicke
33d5948e00 Only show today's logged work entries in Home screen. 2025-06-29 15:19:27 +02:00
Jens Luedicke
ecc6c1f5ac Add Dashboard for users with specific role. 2025-06-29 15:17:38 +02:00
Jens Luedicke
d8ec7d636e Add Team Roles feature. 2025-06-28 22:39:28 +02:00
Jens Luedicke
b9aa7ad413 Add Export to CSV or Excel. 2025-06-28 12:54:48 +02:00
Jens Luedicke
e7593dc840 Add System Settings. Enable/Disable User registration. 2025-06-28 11:30:34 +02:00
Jens Luedicke
99765d5728 Enable blocking and unblocking of users. 2025-06-28 11:10:22 +02:00
Jens Luedicke
44809e34f0 Require registration by mail link. 2025-06-28 10:33:18 +02:00
Jens Luedicke
5fa044e69c Change navigation. 2025-06-28 09:48:29 +02:00
Jens Luedicke
452f3abd80 Initial user management. 2025-06-28 09:33:39 +02:00
Jens Luedicke
dc4229e468 Fix error when saving work duration. 2025-06-27 20:45:26 +02:00
4277980c6e Enable resuming of logged work entry. 2025-06-27 15:14:57 +02:00
7f9783b2fc Improve logging features (edit and delete). 2025-06-27 15:14:57 +02:00
a8d1f33874 Initial commit. 2025-06-27 15:14:57 +02:00