How sebgui30/capstone-ii-spring works
1. Overall shape
- This is a desktop WinForms onboarding application built as a single .NET solution, not a web app or multi-service system.
- The runtime is the WinForms UI process; the main external dependency is PostgreSQL for persistent onboarding data.
- One important repo detail: the README says C#, but the source tree is Visual Basic .NET (.vb, .vbproj).
2. Top-level boundaries
- The solution is split into three practical layers:
- UI/forms: interactive screens for HR, managers, IT, and role selection.
- Business services: orchestration and workflow logic.
- Data/models: in-memory/session state plus domain objects.
- This is a classic desktop MVP-ish structure, with forms calling services rather than embedding all logic directly.
3. User-facing screens
- The main UI entry points are the forms under src/EmployeeOnboarding/:
- frmRoleSelection for choosing the active role.
- frmOnboardingRequest for HR intake.
- frmManagerDashboard for manager review.
- frmHRdashboard for HR tracking.
- frmITdashboard and frmITProvision for IT work queues and provisioning.
- frmRequestDetails for request inspection/detail workflows.
- These forms are the primary navigation and interaction layer for the whole system.
4. Workflow by department
- The application models a handoff pipeline:
- HR creates an onboarding request.
- Manager reviews and approves/rejects the request.
- IT receives the request for provisioning tasks.
- The dashboards reflect this division of responsibility, so the architecture is organized around departmental views of the same onboarding record.
5. Business layer
- Business/HRDashboardService.vb, RequestDetailsService.vb, and RoleSelectionService.vb hold the workflow logic that the forms depend on.
- This layer likely centralizes things like request retrieval, status transitions, role-based filtering, and display-ready data shaping.
- In the architecture diagram, these services sit between the WinForms screens and the data/state layer.
6. Data and state management
- Data/InMemoryRequestStore.vb suggests a local in-process store for onboarding requests, likely used to keep request state available across screens.
- Data/SessionStore.vb suggests the app also tracks the current user/session role locally during navigation.
- These are important because they indicate the app is not purely database-driven at every screen; some state is managed inside the desktop application process.
7. Domain model
- Models/Employee.vb and Models/OnboardingRequest.vb define the core business entities.
- Employee represents the person being onboarded; OnboardingRequest is the central record that moves through HR, manager, and IT steps.
- These models are the shared contract between UI, business services, and persistence.
8. Database layer and persistence
- The database/ folder contains SQL scripts for schema and seed/reference data:
- Schema.sql
- Users.sql
- Statuses.sql
- IT_Tasks.sql
- sample employee/request scripts
- an onboarding request script
- The database is PostgreSQL, and the README indicates a database like onboarding_portal with an onboarding schema.
- The schema files imply separate lookup/status tables and task tables, which supports the multi-stage workflow.
9. Configuration and integration points
- App.config is the key application configuration file, and the README notes that the database connection string is hardcoded in multiple files.
- That means database connectivity is a central integration concern and likely duplicated across parts of the app rather than abstracted behind a single repository/config service.
- PostgreSQL is therefore a direct dependency of the desktop client, not hidden behind an API.
10. Build and delivery
- The repo includes a GitHub Actions workflow at .github/workflows/ci.yml, so the project has automated CI for the .NET solution.
- The solution file EmployeeOnboarding.sln and project file EmployeeOnboarding.vbproj define the build boundary for the desktop app.
- The .vs folder indicates this is a Visual Studio–centric project.
11. Data flow summary
- A typical flow is: role selection → form entry/review → business service logic → in-memory/session state updates → database-backed persistence/reference data.
- Dashboards read request/status data and present it by role.
- Request details and provisioning screens act on a single onboarding request as it moves through the pipeline.
12. What to show in an architecture diagram
- Draw the center as a WinForms desktop application.
- Put the forms as the outer interaction layer, the business services in the middle, and the models/data stores beneath them.
- Show PostgreSQL and the SQL schema/scripts as the persistence side, with arrows from the business/data layer to the database.
- Emphasize the role-based departments as separate UI/workflow paths sharing the same onboarding request entity.
Main entry points: EmployeeOnboarding.vbproj VB Project · HRDashboardService.vb HR Service · RequestDetailsService.vb Details Service · InMemoryRequestStore.vb Request Store
Components 20
WinForms UI
Interactive desktop screens and role-specific dashboards.
- Role Select · Chooses the active department or user role.
src/EmployeeOnboarding/frmRoleSelection.vb - Request Entry · HR intake screen for onboarding requests.
src/EmployeeOnboarding/frmOnboardingRequest.vb - Manager View · Manager review and approval dashboard.
src/EmployeeOnboarding/frmManagerDashboard.vb - HR Dashboard · HR tracking and oversight screen.
src/EmployeeOnboarding/frmHRdashboard.vb - IT Dashboard · IT work queue and request triage screen.
src/EmployeeOnboarding/frmITdashboard.vb - IT Provision · Provisioning workflow for IT tasks.
src/EmployeeOnboarding/frmITProvision.vb - Request Details · Detailed view and action screen for a request.
src/EmployeeOnboarding/frmRequestDetails.vb
Business Layer
Workflow and display orchestration services.
- Role Service · Role selection and navigation logic.
src/EmployeeOnboarding/Business/RoleSelectionService.vb - HR Service · HR dashboard orchestration and request shaping.
src/EmployeeOnboarding/Business/HRDashboardService.vb - Details Service · Request lookup, status handling, and action logic.
src/EmployeeOnboarding/Business/RequestDetailsService.vb
State & Models
In-process stores and shared domain entities.
- Request Store · Process-local request cache/state.
src/EmployeeOnboarding/Data/InMemoryRequestStore.vb - Session Store · Tracks the current user role and session context.
src/EmployeeOnboarding/Data/SessionStore.vb - Employee · Person being onboarded.
src/EmployeeOnboarding/Models/Employee.vb - Onboarding Req · Central onboarding workflow record.
src/EmployeeOnboarding/Models/OnboardingRequest.vb
Database Layer
PostgreSQL schema and seed scripts.
- Schema Scripts · PostgreSQL schema and lookup tables for onboarding data.
database/Schema.sql - Seed Data · Reference and sample data for users, statuses, employees, and tasks.
database/Users.sql - PostgreSQL · External persistent store used by the desktop client.
Build & Delivery
Solution, project, and CI boundary.
- Solution · Top-level build boundary for the desktop app.
EmployeeOnboarding.sln - VB Project · Visual Basic .NET WinForms application project.
src/EmployeeOnboarding/EmployeeOnboarding.vbproj - CI Pipeline · Automated build workflow for the solution.
.github/workflows/ci.yml
Connections 21
- Solution → VB Project: builds · The solution contains the WinForms project.
- CI Pipeline → Solution: runs · CI builds the solution on each workflow run.
- VB Project → Role Select: starts · The project launches the desktop experience through role selection.
- Role Select → Role Service: uses · Role screen delegates navigation decisions to the service.
- Role Service → Session Store: updates · Selected role is stored in session context.
- Request Entry → HR Service: uses · HR intake screen delegates workflow logic.
- Manager View → Onboarding Req: reviews · Manager dashboard works on onboarding requests.
- HR Dashboard → HR Service: uses · HR dashboard relies on dashboard service logic.
- IT Dashboard → Onboarding Req: lists · IT dashboard presents pending onboarding work.
- IT Provision → Details Service: uses · Provisioning screen uses request-detail operations.
- Request Details → Details Service: uses · Request detail form delegates request actions.
- HR Service → Request Store: reads · Dashboard logic reads the shared request store.
- Details Service → Request Store: reads · Detail actions operate on stored requests.
- Request Store → Onboarding Req: holds · The store keeps onboarding request objects in memory.
- Onboarding Req → Employee: contains · Onboarding requests reference the employee being onboarded.
- HR Service → PostgreSQL: persists · HR workflow ultimately syncs with PostgreSQL data.
- Details Service → PostgreSQL: persists · Request detail actions update persistent request state.
- Schema Scripts → PostgreSQL: defines · Schema scripts define the PostgreSQL structure.
- Seed Data → PostgreSQL: loads · Seed scripts populate reference and sample data.
- VB Project → Schema Scripts: depends · The app is backed by the SQL-defined data model.
- VB Project → Request Store: depends · The runtime uses in-process stores for shared state.