How cwcarr69/wfe works
This repository implements a workforce timesheet and time-off management product, with a React client, .NET API, application/domain layers, and supporting integrations. The main workflow is an employee or manager using the client to view or change timesheets or time-off requests; API controllers query read models or dispatch commands, while domain aggregates enforce state changes. Other visible product areas include holidays, payroll-period review/export, notifications, audit, settings, and employee/payroll integration. The README is empty, and several subsystems are unsampled, so only evidenced relationships are shown; unverified frontend-to-API wiring is omitted.
Main entry points: Dispatcher.cs Command dispatcher · TimesheetController.cs Timesheet endpoints · QueryEmployee.cs Employee queries · app.js Timesheet UI
Components 25
Web client
- Timesheet UI
Front/src/app.js - Authentication client
Front/src/services/authService.js
API and application
- Web API host
Timesheet.Web.Api/Program.cs - Timesheet endpoints
Timesheet.Web.Api/Controllers/TimesheetController.cs - Time-off endpoints
Timesheet.Web.Api/Controllers/TimeoffController.cs - Command dispatcher
Timesheet.Application/Shared/Dispatcher.cs - Application wiring
Timesheet.Application/ServiceCollection.cs - Time-off commands
Timesheet.Application/Employees/CommandHandlers - Timesheet commands
Timesheet.Application/Timesheets/CommandHandlers - Approval workflows
Timesheet.Application/Workflow/Definitions - Holiday management
Timesheet.Application/Holidays - Payroll export
Timesheet.Application/Timesheets/Services/Export - Pay-period creation
Timesheet.Application/PayPeriods - Audit queries
Timesheet.Application/Audits/Queries/IQueryAudit.cs - Settings
Timesheet.Application/Settings
Domain model
- Employee and leave
Timesheet.Domain/Models/Employees/Employee.cs - Timesheet aggregate
Timesheet.Domain/Models/Timesheets/TimesheetHeader.cs - Timesheet read models
Timesheet.Domain/ReadModels/Timesheets/EmployeeTimesheet.cs
Read and persistence
- Employee queries
Timesheet.ReadModel/Queries/QueryEmployee.cs - SQL database
Product integrations
- Email notifications
Timesheet.EmailSender/Services/MailEngine.cs - Email worker
Timesheet.EmailService/Program.cs - FDP integration worker
Timesheet.FDPIntegratorService/Program.cs - Employee and payroll import
Timesheet.FDPDataIntegrator
Other components
- Employee or manager
Connections 18
- Timesheet UI → Employee or manager: serves UI
- Timesheet UI → Authentication client: uses auth
Front/src/app.js - Web API host → Timesheet endpoints: hosts endpoints
- Timesheet endpoints → Employee queries: queries employee data
Timesheet.Web.Api/Controllers/TimesheetController.cs - Timesheet endpoints → Command dispatcher: dispatches commands
Timesheet.Web.Api/Controllers/TimesheetController.cs - Time-off endpoints → Command dispatcher: dispatches commands
Timesheet.Web.Api/Controllers/TimeoffController.cs - Employee queries → SQL database: queries
Timesheet.ReadModel/Queries/QueryEmployee.cs - Employee queries → Timesheet read models: maps results
Timesheet.ReadModel/Queries/QueryEmployee.cs - Application wiring → Command dispatcher: registers
Timesheet.Application/ServiceCollection.cs - Application wiring → Approval workflows: registers
Timesheet.Application/ServiceCollection.cs - Command dispatcher → Time-off commands: dispatches
- Command dispatcher → Timesheet commands: dispatches
- Time-off commands → Employee and leave: changes leave state
- Timesheet commands → Timesheet aggregate: changes timesheets
- Timesheet endpoints → Payroll export: requests export
Timesheet.Web.Api/Controllers/TimesheetController.cs - Email worker → Email notifications: runs mail delivery
Timesheet.EmailService/Program.cs - Email notifications → Employee or manager: sends email
- FDP integration worker → Employee and payroll import: runs integration
Timesheet.FDPIntegratorService/Program.cs