How jensenjr/min-tid works
min-tid is an offline-first Swedish employee time-reporting app. The main workflow is to record work or deviations, calculate daily hours and flex against the effective schedule, review and confirm days or months, then produce a period report. The shell also manages local persistence and optional encrypted device sync. README statements support several unsampled product branches; those relationships are cited to the README rather than presented as inspected implementation details.
Main entry points: PunchClock.tsx App shell · report.ts Period report · days.ts Day evaluation · Today.tsx Today view
Components 21
App experience
- App shell
src/components/PunchClock.tsx - Today view
src/views/Today.tsx - Calendar view
src/views/Calendar.tsx - More view
src/views/More.tsx
Time and rules
- Schedule rules
src/lib/schedule.ts - Work sessions
src/components/SessionModal.tsx - Day evaluation
src/lib/days.ts - Punch tracking
src/lib/attend.ts
Reporting and records
- Absence records
src/components/AbsenceModal.tsx - Expenses
src/components/ExpenseModal.tsx - Travel time
src/lib/travel.ts - Vacation balance
src/lib/vacation.ts - Month confirmation
src/lib/confirm.ts - Period report
src/lib/report.ts - Excel import/export
src/lib/excel - Device data
src/components/PunchClock.tsx
Encrypted sync
- Sync client
src/lib/sync.ts - Encryption keys
src/lib/crypto.ts
Sync backend
- Sync API
server/index.js - JSON account store
server/core.js
Other components
- Employee
Connections 24
- Employee → App shell: uses
README.md - App shell → Today view: shows
src/components/PunchClock.tsx - App shell → Calendar view: shows
src/components/PunchClock.tsx - App shell → More view: shows
src/components/PunchClock.tsx - Today view → Punch tracking: tracks punches
src/views/Today.tsx - Work sessions → Schedule rules: reads rules
src/components/SessionModal.tsx - Schedule rules → Day evaluation: sets day norm
src/lib/days.ts - Today view → Day evaluation: shows evaluation
src/views/Today.tsx - Calendar view → Day evaluation: shows day status
src/views/Calendar.tsx - Calendar view → Month confirmation: reviews months
src/views/Calendar.tsx - App shell → Work sessions: opens entry
src/components/PunchClock.tsx - App shell → Absence records: opens entry
src/components/PunchClock.tsx - App shell → Expenses: opens entry
src/components/PunchClock.tsx - More view → Excel import/export: offers import
README.md - App shell → Device data: loads and saves
README.md - Employee → Period report: requests totals
README.md - Period report → Excel import/export: exports workbook
README.md - App shell → Sync client: syncs optionally
src/components/PunchClock.tsx - Sync client → Encryption keys: encrypts state
src/lib/sync.ts - Sync client → Sync API: sends ciphertext
README.md - Sync API → JSON account store: stores accounts
README.md - Period report → Vacation balance: includes balance
README.md - Period report → Travel time: includes travel
README.md - Day evaluation → Absence records: accounts for
src/lib/days.ts