People entered their holiday dates in a spreadsheet, and a manager checked the totals by hand. I wrote the spec for a planner that catches mistakes while people choose their dates. Agents wrote the code.
For the department we started with, the allowance was 28 days and at least one stretch had to be 14 days or longer. Public holidays and rescheduled days off counted differently. Managers sometimes spotted an error only after approving the schedule.
I wanted employees to see how many days they'd used as they edited their dates. Managers still needed to approve the plan and export it in the spreadsheet format they already used.
I wrote down the calculation rules, six checks, the user roles and the export format. I prototyped the department view, the year chart, the export and the mobile screens. I chose the architecture and split the work into stages and was responsible for signing off on the service.
The screens and server use Nuxt and TypeScript, with PostgreSQL for storage. The agents put leave calculations in a separate module with tests for holidays and rescheduled days off. Developers can run the service with test data.
The agents had a working version in one day. By day ten, the service was ready with tests.
Regional allowances came up as we worked through the rules. Employees in Irkutsk, for example, get more days. We left regional rules and the integration with 1C, an ERP platform, outside the first release.
Tell me what people do by hand today and what they need to get out of it.
Message me on Telegram