Internal HR Application (Next.js)
An internal HR portal for Greydient Lab, bringing employee records, leave management, project resourcing, peer reviews, and onboarding into one place.
- Status
- Internal tool
- Stack
Overview
I built an internal HR portal for Greydient Lab to bring several employee and administrative workflows into one application.
Staff can manage their profiles, file leave requests, check project assignments, participate in peer reviews, and complete onboarding tasks. Administrators have access to the tools and permissions needed to manage these processes.
The application also shares its data model with the Agentic HR Chatbot, allowing both applications to work with the same employee records, leave requests, and project information.
The problem
A lot of HR-related tasks were being handled through conversations and separate tracking processes. Finding out who’s on leave, checking project assignments, submitting leave requests, and keeping track of reviews all required moving between different sources of information.
There was also a need to control access to administrative features without giving every employee the same level of permission.
I wanted to bring these workflows together in one place while keeping the different responsibilities and access levels clearly defined.
What I built
Employee records and profiles
A centralized employee directory with individual profiles containing job titles, employment types, departments, employment dates, personal details, and emergency contacts.
Leave management
A leave application and approval workflow where employees can submit requests with the leave type, dates, and duration. Approvers can review requests, make decisions, and keep a record of approval history.
Project resourcing
A resourcing module for managing projects, tasks, and employee allocations.
Projects have their own codes and logos, while tasks can be assigned to employees with specific date ranges and allocation percentages. A resourcing calendar provides an overview of who’s assigned to what and when.
Peer reviews
A peer review system for assigning reviewers and tracking review progress. It keeps records of the reviewer, assigned employee, person who created the assignment, review dates, and submitted questions and answers.
Employee onboarding
A dedicated onboarding flow to help organize the tasks and information required when bringing new employees into the company.
Role-based permissions
Access to administrative features is controlled through role-based permissions. Specific responsibilities, such as managing resourcing or peer reviews, can be granted independently.
Permissions are enforced in the application and backed by the database rather than relying solely on hiding interface elements.
Company announcements
An announcements section where company updates can be published and made available to employees through the portal.
Authentication and data
Google sign-in is handled through Firebase Authentication, while application data is stored in MySQL and accessed through Prisma.
The portal also shares its underlying data model with the Agentic HR Chatbot, keeping employee, leave, and project information consistent between the two applications.
Tech stack
Next.js, React, TypeScript, Prisma, MySQL, Firebase Authentication, TanStack Query, Tailwind CSS, and Radix UI.
Outcome
The application is actively used by Greydient Lab employees as the central place for managing HR-related tasks, from leave applications and project resourcing to peer reviews and onboarding.
It brings these workflows together in one authenticated application, with administrative access controlled through explicit permissions.
It also provides a shared data foundation for the Agentic HR Chatbot, keeping employee, leave, and project information consistent across both applications.
What I learned
Building internal tools comes with a different set of considerations. The interface doesn’t need to accommodate thousands of users, but the information it handles still needs to be accurate and consistent.
One important part of this project was keeping the data shared between the HR portal and the chatbot. An employee’s leave records or project assignments shouldn’t depend on which application they’re viewing.
I also found that permissions are easier to maintain when they’re treated as part of the data model rather than scattered throughout the application. It makes responsibilities clearer and gives the system room to grow as more administrative features are added.