Dzaki Fadh

The internal system an NGO uses to run its budgets, procurement, payments, and HR. I built and maintained its Next.js frontend over two years, next to a backend developer and a designer.

Client
PUSKAPA
When
Mar 2023 - Mar 2025 / Freelance
Role
Frontend, freelance, alongside a backend developer and a UI designer.
Stack
Next.js, React, TypeScript, Tailwind CSS, TanStack Table, React Hook Form, Playwright

01

The brief

PUSKAPA (Pusat Kajian dan Advokasi Perlindungan dan Kualitas Hidup Anak) is a think tank group at Universitas Indonesia, working on child protection and quality of life. Its programs carry billions of rupiah in funding a year, and the budgets, requisitions, and payments behind that money need approvals and a record of who decided what.

PUSKAPA's information was not yet integrated or centralized, so the plan was one system to improve on its existing intranet: HR records, program budgets, procurement, finance, and a portal for outside vendors. I joined as a freelance frontend developer in March 2023 and worked on it until March 2025, next to a UI/UX designer who was also a project manager, a system analyst, and a backend developer. The designer drew the screens, and I turned them into the working app.

SIMPUSKAPA is a real system that PUSKAPA staff use every day, and it is private. It holds staff records, contracts, budgets, and payments, so there is no public demo or live link, and I'm sorry I can't offer one. The screenshots on this page come from an offline copy of the interface that I filled with made-up data. No real staff, vendors, or amounts appear in them.

02

Budget, requisition, payment

Most of the app serves one chain. A program has a budget split into activities. Staff spend against it by filing a requisition form, one of four kinds: procurement, travel, personal hire, or staff cost. Once a requisition is approved, payment requests are filed against it, and each one goes through several approvers before the finance team processes it.

The screens along that chain have to agree on how much money is left. Each form shows the remaining budget and checks it again before it submits. What a person picked on one screen, like which activities and lines they were funding, has to follow them to the next. I kept that in one shared store and mirrored it into localStorage, so a reload or a trip to another tab doesn't empty a half-built payment request.

  1. Program budget
  2. Requisition form
  3. Payment request
  4. Finance processes

Remaining budget is checked before every submission, and any approver can send it back

The money chain most screens belong to.

03

Where the budget lives

A project's Budget Needs tab is where the chain starts. It lists every activity with its lines: description, vendor type, quantity, unit, and cost, each total rolled up to the activity and then the project. Staff open a requisition straight from an activity, and the form starts out filled with the lines they pick.

The requisition itself shows who requested it, who has approved it, and who is next. Each approver sees only the actions their step allows, with a note on why they have to wait when it isn't their turn yet.

Top of a project's Budget Needs tab, using sample data. Each activity has its own buttons for filing a request. Tap the image to open it full size.

04

Forms with a paper trail

A requisition and a payment request each carry a long approval history. The detail page puts the people and statuses first, then the lines being funded, then a button to open the log of everything that happened to it.

Every action is written to that log with who did it and when, so a finance officer can see why a payment was approved or sent back without asking around.

A requisition waiting on its project manager. The page tells the next approver to wait. Tap the image to open it full size.

05

Payments and the finance queue

Payment requests come in five variants: a plain payment, an advance, an advance per diem fee, a travel expense claim, and a statement settling an advance. Travel claims and per diem work out airfare, daily allowances, and tax, so the form does the arithmetic and the finance team checks the result instead of redoing it.

The finance list is a queue, not a table: tabs for ready to process, finance checker, pending, and paid, each with its count. Finance can process several requests in one go, and download the payment and transfer lists as Excel files for the bank.

The Excel library is large, so it loads only when someone presses Download. Staff who never export never pay for it.

The finance queue on its first tab. Bulk Process and Download Payment List sit top right. Tap the image to open it full size.

06

Who sees what

Staff see their own records. Managers see their team's. Finance and leadership see everything. The same screen has to behave three ways, depending on who opened it.

Permissions are keys like EMPLOYEE_UPDATE_ANY, EMPLOYEE_UPDATE_SUBORDINATE, and EMPLOYEE_UPDATE_SELF, grouped into templates that an admin assigns to a user. The keys travel inside the login token, so the frontend can decide without a request.

LayerWhat it doesWhy it exists
Edge middlewareRuns before any /dashboard page: decodes the token, refreshes it if it expired, and sends inactive users away.A page never renders for someone who isn't signed in.
Page loaderThe server-rendered page checks the permission key and redirects if it's missing.Someone typing a URL by hand still hits the check.
Component gateButtons and sections render only if the user's role matches.People don't see actions they can't use, so there's nothing to click and be refused.

None of this is security by itself. A determined user can edit anything running in their browser, so the API checks permissions again on every request. The frontend layers exist so people aren't shown buttons that will only fail.

Admin zone, with sample users. Roles are assigned here and drive what each person can open. Tap the image to open it full size.

07

Long forms that don't lose your work

Onboarding an employee, creating a program, and registering a vendor each take many fields across many screens. I built them as step-by-step wizards on React Hook Form, validating each step before the next opens.

A wizard can take twenty minutes, and an accidental refresh shouldn't undo it. Each draft is saved in the browser as it's filled, with a progress percentage, so a reload picks up where the person left off. Employee add and edit share one wizard; the route decides which it is.

08

One table, many lists

Almost every screen is a list: employees, contracts, vendors, requisitions, payments. Writing each table by hand would have meant a dozen versions of sorting, paging, and filtering that drift apart.

I built a shared table on TanStack Table in two forms, one for data already in the browser and one that asks the server for each page. Search, sorting, filters, and page size come from small shared hooks, and rows can be dragged into order where order matters.

09

People, contracts, and time off

The HR side covers employee records, employment contracts, performance evaluations, and time off. Staff request leave and managers approve it, each seeing a different view of the same data.

Time off has a team calendar, a week at a time, filterable by department and type of leave, so a manager can see who is out before approving another request.

A week of leave, using sample names. Tap the image to open it full size.

10

Keeping it fast and checked

The app grew screen by screen, and the biggest screens got slow to open. After running a bundle analysis I split the heaviest ones into dynamic imports, so a page loads only the code it uses. I also moved S3 presigned-URL generation, the step that lets the browser open a stored file, from the browser to the server.

The API client is generated from the backend's OpenAPI spec, so a changed endpoint shows up as a type error in the frontend instead of a bug in production. I also added to the Playwright end-to-end suite, which covers login, programs, requisitions, and payment requests.

Want a walkthrough of how a system like this fits together? Email me.

11

All screens

SIMPUSKAPA is private, so this is the closest I can get to a demo: the screens I could show, 28 in all, taken from an offline copy with made-up data. Open one to see it full size, then use the arrow keys, or the arrows on screen, to move through the rest.

Access2

  • Sign in

  • User management

Dashboard and queues4

  • Dashboard

  • Need action

  • Need approval

  • Request tracking

Projects and budgets6

  • Project list

  • Project information

  • Budget needs

  • Project requisition forms

  • Project payment requests

  • Internal needs

Procurement2

  • Requisition forms

  • Requisition detail

Finance4

  • Payment requests

  • Payment request detail

  • Finance reporting

  • Employee tax

Vendors2

  • Vendors

  • Vendor detail

People8

  • Employee list

  • Employee profile

  • Employee contracts

  • Employee performance

  • All contracts

  • Performance evaluations

  • Time off calendar

  • Time off requests