lufox-digital/timetracker
Tentang
Self-hosted team time tracking (Symfony 8 + SolidJS) with Jira Server/Cloud sync, LDAP/AD login, passkeys & 2FA, scoped API tokens, and XLSX export.
Sistem dan infrastrukturYang dapat Anda lakukan
- Spreadsheet-like worklog grid with inline editing and autosave
- Smart autocompletion: typing a ticket number fills in project and customer
- Suggested start/end times, continue/prolong actions, overlap and gap highlighting
- Bulk entry for vacation and sick leave from admin-managed presets, honoring per-user contract hours, weekends and public holidays
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliLufox TimeTracker
Professional time tracking solution for teams and enterprises with advanced LDAP integration, Jira synchronization, and comprehensive reporting.
![]()
Table of Contents
- About
- Features
- Screenshots
- Quick Start
- Requirements
- Usage
- Configuration
- Architecture
- Documentation
- Development
- Testing
- Deployment
- Contributing
- Security
- License
- Support
About
TimeTracker is a self-hosted web application for project- and customer-based time tracking, built and used in production by Lufox. Employees log their work in a fast, keyboard-friendly grid; project leads export monthly statements for controlling and invoicing; worklogs are mirrored to Jira automatically.
- Self-hosted & open source — AGPL-3.0, ships as a Docker image
- Enterprise sign-in — LDAP / Active Directory with automatic user provisioning
- Built for speed — inline grid editing, terse time input (
930→09:30), ticket-based autocompletion, shortcuts for everything - Accessible — WCAG 2.2 AA target with a documented AAA subset (7:1 contrast in both color schemes, full keyboard operation)
- Bilingual — English and German UI, switchable per user
Features
Time tracking
- Spreadsheet-like worklog grid with inline editing and autosave
- Smart autocompletion: typing a ticket number fills in project and customer
- Suggested start/end times, continue/prolong actions, overlap and gap highlighting
- Bulk entry for vacation and sick leave from admin-managed presets, honoring per-user contract hours, weekends and public holidays
Reporting & export
- Monthly overview calendar with contract targets and running balance
- Evaluation page: effort breakdowns by customer, project, ticket, activity, user and day, with flexible filters and date presets
- XLSX monthly statement for controlling (billable-only filter, ticket titles) and per-user CSV export
Administration
- Manage customers, projects, users, teams, holidays, presets, ticket systems, activities and work contracts in one shared CRUD shell with inline editing, filtering, CSV export and bulk actions
- Role model:
USER/DEVtrack time;PLandADMINadditionally get Billing and Administration
Jira integration
- Automatic background worklog sync (create/update/delete) for both Jira Server/DC (OAuth 1.0a) and Jira Cloud (OAuth 2.0 / 3LO)
- Per-user, per-ticket-system tokens, encrypted at rest
- Optional mirroring of external customer tickets into an internal Jira project
Quality of life
- Light/dark/system theme, three UI densities, top-bar or sidebar navigation
- Command palette (Ctrl/⌘+K) and a full keyboard-shortcut system with discoverable Alt badges
- In-app help with per-page explanations, legend and shortcut tables
Screenshots
Many more in the User Guide.
Quick Start
Using Docker (Recommended)
git clone https://github.com/lufox-digital/timetracker.git
cd timetracker
make up # build and start the dev stack (app, nginx, MariaDB, dev LDAP)
make install # composer + frontend dependencies
make db-migrate # apply database migrations
# Access the application
open http://localhost:8765
Sign in with one of the seeded development LDAP users, e.g. i.myself /
myself123 (project lead — sees all features) or developer / dev123
(regular user). See docs/development.md for the full list.
Manual Installation
# Prerequisites: PHP 8.6, MariaDB 12+, Composer, bun (frontend), Node.js 26+ (e2e)
composer install --ignore-platform-req=php # until laminas-ldap declares PHP 8.6
cd frontend && bun install && bun run build && cd ..
# The committed .env ships development defaults. Create a .env.local to
# override what differs on your machine — at least DATABASE_URL and the
# LDAP_* settings. (.env.example only holds Docker Compose variables.)
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
symfony server:start
Requirements
- PHP: 8.6 with extensions:
ldap,pdo_mysql,intl,mbstring - Database: MariaDB 12+. Not MySQL — the migrations use MariaDB's
IF [NOT] EXISTSclauses onADD COLUMN,DROP COLUMN,CREATE INDEXandADD … FOREIGN KEY, which MySQL 8 rejects, so they cannot even parse there - LDAP / Active Directory: any LDAP v3 server for authentication (a preconfigured dev LDAP container ships with the Docker setup)
- Node.js: 26+ (for the Playwright e2e tooling; the frontend builds with bun)
Usage
- User Guide — every feature explained, with screenshots
- FAQ — quick answers to common questions
- In-app help — press ? in the app, or open the ? icon in the header
Configuration
Runtime configuration happens through environment variables (.env /
.env.local); Jira ticket systems are configured in the admin UI, not env vars.
The most important variables:
| Variable | Purpose |
|---|---|
DATABASE_URL |
MariaDB connection string |
LDAP_HOST, LDAP_BASEDN, … |
LDAP/AD connection (8 variables) |
LDAP_CREATE_USER |
Auto-create accounts on first successful login |
APP_TITLE, APP_LOGO_URL |
Branding |
APP_LOCALE |
Default language (en/de) |
APP_ENCRYPTION_KEY |
Encrypts stored Jira tokens at rest |
Full reference: docs/configuration.md
Architecture
flowchart LR
Browser["Browser<br/>SolidJS SPA + Twig login"] -->|HTTP :8765| Nginx
Nginx -->|FastCGI :9000| App["PHP-FPM 8.6<br/>Symfony 8"]
App --> DB[("MariaDB 12")]
App -->|bind / search| LDAP["LDAP / Active Directory"]
App -->|"REST (OAuth)"| Jira["Jira Server/DC · Cloud"]
- Backend: PHP 8.6, Symfony 8, Doctrine ORM 3 — controllers are single-action classes; business logic lives in services
- Frontend: SolidJS 1.9 + TypeScript SPA under
/ui/, built with Vite 8 and bun, styled with Tailwind CSS 4 and design tokens - Testing: PHPUnit 13 (unit/integration/controller/api), Playwright e2e, Vitest for the frontend, PHPStan level 10, PHP-CS-Fixer, Rector
- Infrastructure: Docker (multi-stage bake), GitHub Actions CI/CD, build provenance on every release (how to verify)
Details: docs/techstack.md · Decisions: docs/adr/
Documentation
| Guide | Description |
|---|---|
| User Guide | Using the app, with screenshots |
| FAQ | Common questions, quick answers |
| Features | Feature overview at a glance |
| Development | Local setup and development workflow |
| Configuration | Environment variables and settings |
| API Reference | REST API endpoints and examples |
| Testing | Testing strategy and commands |
| Security | Security implementation details |
| Deployment | Production deployment guide |
| Troubleshooting | Common issues and solutions |
| Architecture Decisions | ADRs — why things are the way they are |
Development
# Run tests
make test
# Static analysis & code style
make check-all
# Fix code style
make fix-all
# Frontend dev server with HMR
cd frontend && bun run dev
Code Quality Standards
- PER-CS + Symfony code style (PHP-CS-Fixer,
@PER-CS+@Symfonyrulesets — see .php-cs-fixer.dist.php) - PHPStan Level 10 static analysis
- PHPUnit tests
- Conventional Commits
- Git hooks via CaptainHook run the full quality gate before every commit
See CONTRIBUTING.md for contribution guidelines and CODE_OF_CONDUCT.md for community standards.
Testing
make test # PHPUnit against the seeded test database
make e2e # Playwright end-to-end suite (starts its own stack)
cd frontend && bun run test # frontend unit tests (Vitest)
The PHPUnit targets run in the app-dev container. Its image, ghcr.io/lufox-digital/timetracker:dev, is not published: Docker Compose builds it from the Dockerfile the first time a target needs it (a short manifest unknown line before the build is the failed pull attempt and is harmless). make bake-dev rebuilds it after a Dockerfile or dependency change. Before the first make test, install the dependencies and start the test database and the dev LDAP server, which make test does not start:
make install # composer + frontend dependencies
make reset-test-db # create and seed db_unittest
docker compose up -d --wait ldap-dev # LDAP integration tests
CI runs the full matrix on every PR: lint/static analysis, unit, integration, frontend, and ten sharded e2e jobs. See docs/testing.md.
Deployment
Production runs from the published container image
ghcr.io/lufox-digital/timetracker (tags: production, latest, semver) behind
nginx, with MariaDB and TLS terminated at your reverse proxy:
COMPOSE_PROFILES=prod docker compose up -d
Step-by-step instructions, env-var reference, backup/upgrade/rollback procedures and a production checklist: docs/DEPLOYMENT_GUIDE.md
Contributing
Contributions are welcome! Please read CONTRIBUTING.md first — it covers the workflow (fork → branch → PR), Conventional Commits, the DCO sign-off requirement, and the quality gates your change must pass.
Who decides what, and why no approving review is required, is described in GOVERNANCE.md; the maintainers are named in MAINTAINERS.md, and what is planned next is in ROADMAP.md.
Good first steps: check the open issues or improve the documentation.
Security
Please report vulnerabilities privately as described in SECURITY.md — do not open public issues for security problems. Which versions receive security fixes is listed in SECURITY.md.
License
This project is licensed under the AGPL-3.0 License - see LICENSE for details.
Support
- Documentation: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Built by Lufox
Jelajahi proyek terkait
Memuat…