How nobio/timetracker-ui2 works
This is a Next.js time-tracking frontend: a user signs in, then uses a dashboard for time entries and work summaries, geotracking, statistics, and settings/member administration. Route pages coordinate API-backed views; reusable map and chart components render domain data, while a typed API client handles requests and authentication refresh. The README provides no product-specific capability list, so the map follows the routes and features visible in the source index and excerpts; unsampled behavior is not expanded beyond those references.
Main entry points: client.ts API client · statistics/page.tsx Statistics route · settings/page.tsx Settings route · GeotrackTab.tsx Geotrack controls
Components 20
App routes
- Sign-in
src/app/page.tsx - Dashboard shell
src/app/dashboard/layout.tsx - Settings route
src/app/dashboard/settings/page.tsx - User administration
src/components/members/UsersTab.tsx
Time and location
- Time dashboard
src/app/dashboard/page.tsx - Geotracking route
src/app/dashboard/geotracking/page.tsx - Geotrack controls
src/components/members/GeotrackTab.tsx - Geotrack map
src/components/members/GeotrackMap.tsx - Time-entry map
src/components/Map.tsx
Statistics
- Statistics route
src/app/dashboard/statistics/page.tsx - Aggregate chart
src/components/statistics/AggregateChart.tsx - Break-time chart
src/components/statistics/BreaktimeChart.tsx - Come/go chart
src/components/statistics/ComeGoChart.tsx - Extra-hours chart
src/components/statistics/ExtraHoursChart.tsx
API and shared UI
- API client
src/lib/api/client.ts - API schema
src/lib/api/schema.ts - Theme switcher
src/components/ThemeSwitcher.tsx - App providers
src/components/providers.tsx
Other components
- User
- Time-tracking API
Connections 24
- User → Sign-in: signs in
src/app/page.tsx - Sign-in → API client: submits credentials
src/app/page.tsx - API client → Time-tracking API: sends API requests
src/lib/api/client.ts - Dashboard shell → API client: loads dashboard data
src/app/dashboard/layout.tsx - Dashboard shell → Theme switcher: renders switcher
src/app/dashboard/layout.tsx - Time dashboard → API client: reads and updates entries
src/app/dashboard/page.tsx - Time dashboard → Time-entry map: renders locations
src/app/dashboard/page.tsx - Geotracking route → Geotrack controls: renders controls
src/app/dashboard/geotracking/page.tsx - Geotrack controls → API client: fetches geotracking
src/components/members/GeotrackTab.tsx - Geotrack controls → Geotrack map: renders points
src/components/members/GeotrackTab.tsx - Settings route → API client: loads settings
src/app/dashboard/settings/page.tsx - Settings route → User administration: renders administration
src/app/dashboard/settings/page.tsx - User administration → API client: manages users
src/components/members/UsersTab.tsx - Settings route → Theme switcher: renders switcher
src/app/dashboard/settings/page.tsx - Statistics route → Aggregate chart: selects chart
src/app/dashboard/statistics/page.tsx - Statistics route → Break-time chart: selects chart
src/app/dashboard/statistics/page.tsx - Statistics route → Come/go chart: selects chart
src/app/dashboard/statistics/page.tsx - Statistics route → Extra-hours chart: selects chart
src/app/dashboard/statistics/page.tsx - Aggregate chart → API client: queries statistics
src/components/statistics/AggregateChart.tsx - Break-time chart → API client: queries statistics
src/components/statistics/BreaktimeChart.tsx - Come/go chart → API client: queries statistics
src/components/statistics/ComeGoChart.tsx - Extra-hours chart → API client: queries statistics
src/components/statistics/ExtraHoursChart.tsx - API client → API schema: uses types
src/lib/api/client.ts - App providers → Theme switcher: provides theme context