Request submission
Create a request with leave type, start and end dates, and a reason.
05HR WORKFLOW AUTOMATION
An employee leave application connecting request submission, personal history, and administrative decisions.

01 / OVERVIEW
LeaveFlow is a separated React frontend and Express backend. Employees submit requests and review their own history, while administrative endpoints provide an overview and status decisions.
Frontend, API & database development, bringing the interface, business workflow, and data layer together.
02 / THE BUSINESS REQUIREMENT
A leave request needs to move from employee submission to an administrative decision with clear ownership. Employees should see their own requests, and completed decisions should be handled deliberately.
03 / THE APPLICATION
Create a request with leave type, start and end dates, and a reason.
Retrieve requests for the authenticated user, ordered by creation date.
Review employee requests and decide between pending, approved, and rejected states.
Bearer token verification and dedicated administrative middleware protect request routes.
04 / TECHNICAL ARCHITECTURE
Employee and administrative interfaces in a separate frontend application.
Authentication middleware and controllers for request creation, history, and status decisions.
Parameterized SQL queries for users and leave requests.
05 / ENGINEERING DECISIONS
Independent frontend and backend repositories keep presentation and application logic distinct.
The personal-history query uses the user identity supplied by authentication middleware, instead of accepting an arbitrary user identifier.
The controller passes query values separately from SQL text for request creation, lookup, and updates.
06 / THE TECHNICAL CHALLENGE
Unrestricted status changes can make the request lifecycle ambiguous.
The status controller accepts a defined set of statuses, checks whether the request exists, and rejects changes to requests that have already been approved or rejected. Concurrent-update behavior remains a consideration for further hardening.
07 / THE RESULT
Employees can submit requests and review their own history. Administrative review uses a defined set of statuses, with checks for missing requests and decisions that have already been finalized.
Public sign-in interface. An authorized account is required to access employee and administrative workflows.
React/Express/PostgreSQL dependencies and request behavior checked against both LeaveFlow repositories. Screenshot from the original portfolio; it may show an earlier interface.