# DashPro

> A project monitoring system being rebuilt for the EPCC Division of Wijaya Karya: plan against actual for the main work items of each project, field reports with verification, and numbers leadership can trust. The foundation runs today.

The division follows about five main work items per project, such as piling, concrete, steel structure, piping and girders. Those numbers lived in an Excel workbook with a Power Pivot model, pasted and refreshed by one person, with no verification, delay reason, photo or history. An earlier web app was hardly filled in. DashPro is the rebuild, and this page shows what runs today and what is still planned.

- Every database read and write goes through one gate, and row level security keeps each project's data inside its own scope.
- Productivity formulas are stored as versioned trees with derived units and checked by golden tests from the old workbook.
- Specified before coded: a study of the old tools, research, requirements and build-ready specifications came first.

- 9 planned releases, R1.0 to R1.8
- 31 delay reason categories in 9 groups
- 514 regencies and cities in the location list

- Role: Lead AI Engineer, Digital Transformation
- Company: PT Wijaya Karya (Persero) Tbk
- Period: Since Nov 2026
- Stack: Next.js 16, React 19, TypeScript, Tailwind 4, Auth.js, Prisma 7, PostgreSQL 18, Row level security, decimal.js, pnpm workspaces, Playwright, Nginx, PM2
- Showcase repo: GitHub: wika-pms-showcase (https://github.com/nugrahalabib/wika-pms-showcase)

## What it is and who will use it

DashPro (Project Monitoring System) is a web application for the EPCC Division of PT Wijaya Karya (Persero) Tbk to follow the main work items of every project: plan against actual per work breakdown item, daily and monthly field reports with verification, and progress numbers that division leadership can trust. It replaces an Excel and Power Pivot dashboard and an earlier web app. I design, build and lead the rebuild as Lead AI Engineer for digital transformation in the division.

**Status: in development**
Built today: secure sign-in, account and access administration, audit and security trails, projects with members and working calendars, division reference data, a formula engine, a background worker with an email queue, and a design system. Planned for the next releases: baseline, daily reports, verification and dashboards. Images marked Design reference are drawings from the design kit, not working software.

*The project list, scoped to the signed-in user. The interface is in Indonesian; every project, person and number on this page is synthetic.*

*Who works in DashPro*

| Role | Job in DashPro | Built today |
| --- | --- | --- |
| Field executor (Pelaksana) | Reports the day's volume, manpower, hours, equipment and photos from a phone, with a reason when below plan, even without signal | Account, PIN, and a no-OTP mode for field accounts; reporting is planned |
| Project Control (PC) | The data hub of a project: members, calendar, baseline, verification and monthly progress at the project's own cut-off | Members and working calendar |
| Project Manager (MP) | Exactly one per project on any date; approves the baseline at level one and reviews monthly reports | Sees the whole project; approvals planned |
| Observer | Reads a whole project without write rights | Yes |
| Division Coordinator | Creates projects, appoints the MP and PC, owns division reference data and gives final baseline approval | Projects, appointments and reference data |
| Leadership | Reads every real project, with project dashboards, an S-curve, a division portfolio and a presentation mode | Read access; dashboards planned |
| Admin | Manages accounts, devices, access requests and the security trail, and sees no project data | Yes |

## The problem: two tools that did not stick

The division does not try to watch every activity of a project. It watches about five main work items per project. Until now those numbers lived in one Excel workbook with a Power Pivot model. Field progress reached Project Control in batches, one person pasted it into a table, refreshed the model and set slicers and timelines one by one. Along that path there was no formal verification, no delay reason, no photo, no change history and no view across projects.

The logic sat in **31 hand-written DAX measures**, with a different productivity formula for each of nine work types, and several formulas did not compute what their names promised. Leadership could not fully trust the dashboard.

An earlier web app tried to replace the workbook but was hardly filled in. It was built around data tables rather than people's daily work: a field reporter without an extra role was refused at the first step, one report took a four-step wizard per work item, there were no photos and no notifications, and the approval chain and generic roles did not match how the division works. Everyone could see every project.

Two kinds of value were never harvested. Dated delay reasons, photos and weather are the evidence a contractor needs when it claims a time extension from the owner, and real productivity across projects is what estimators need to price the next tender realistically.

> Both generations failed on adoption, trust in numbers and organisational fit, not on technology. (Conclusion of the study that opened the rebuild)

DashPro is designed around those three points: reporting must be easier than not reporting, every number must have one tested definition, and roles must follow how the division really works.

*The old way and the new way*

| Before | With DashPro |
| --- | --- |
| One workbook owner pastes field data and refreshes Power Pivot | Each role enters and checks its own data in the app (projects, members and calendars built; reports planned) |
| Productivity formulas hidden inside the workbook model | Formulas stored as versioned trees with derived units, checked by golden tests |
| Generic roles, everyone sees every project | Division roles plus project roles, with project scope enforced by row level security |
| No record of who changed what | Append-only audit and security trails written in the same transaction as the change |
| Cut-off forced to the calendar month | Cut-off rule, tolerance, radius and working calendar stored per project |
| Delay reasons missing or typed freely | 31 reason categories in 9 groups, to be required when actual falls below plan |
| Password only, no control over devices | Google or password, then a device code by email and a personal PIN, with Admin control of devices |

## How it will work, role by role

**One project in DashPro** (The first three steps run today; the rest are specified and planned.)
1. Create project: Built: Coordinator, with MP and PC
2. Team and calendar: Built: members, duties, working days
3. Baseline: Planned: PC builds, MP and Coordinator approve
4. Daily report: Planned: from a phone, even offline
5. Verify: Planned: only approved reports count
6. Read and decide: Planned: S-curve and portfolio

**The journey in detail**
1. Create project (Coordinator), built: Enters code, name, owner, regency, contract period, MP and PC; both receive an in-app notice and an invitation email.
2. Set up the team (PC or MP), built: Adds members with active periods, under separation-of-duty rules checked by the server.
3. Set the calendar (PC), built: Adjusts the weekly working pattern and dated exceptions; national holidays come from the division list.
4. Baseline (PC, MP, Coordinator), planned: PC builds the plan per work item from a work-type template, MP approves level one and the Coordinator gives final approval.
5. Daily report (field executor), planned: Reports volume, manpower, hours, equipment and photos from a phone, with a reason when below plan.
6. Verify (PC, or MP when the PC submitted), planned: Approves or returns reports with a note; only approved reports count in official numbers.
7. Monthly progress (PC and MP), planned: PC submits overall progress at the project's own cut-off and the MP reviews it.
8. Read and decide (Leadership), planned: Project dashboards with S-curve and deviation in points, and a division portfolio.

## What runs today

The foundation is the part people touch first and trust least when it goes wrong: getting in, being given the right access, and seeing only their own projects. That is what the first releases built.

**Sign-in**
Everyone enters through one gate. Google is the main path, and email and password stay available. A new device proves itself with a six digit code sent by email, valid for 10 minutes and single use, and can be trusted for 90 days. Then each person creates a six digit PIN, which unlocks the app after 6 minutes of idle time; five wrong PINs revoke the device. Sessions end 12 hours after sign-in, and the privacy notice appears once per version.

**Accounts**
Admins create and manage accounts without touching project data. Every action on another account asks for a reason and a PIN confirmation and is written to the audit and security trails. The last Admin and the last Coordinator cannot be removed, and unknown Google sign-ins land in a waiting list instead of an error.

**Projects**
The Coordinator creates a project and appoints its MP and PC in one step. A similar-name check runs while typing, the time zone follows the regency, and a new project always starts in Preparation. Project roles are memberships with dates, exactly one MP per project on any date is enforced by the database, and a sender never verifies their own report.

**Calendars**
Every project has its own working calendar because sites work different days and hours. The weekly pattern is versioned by start date, dated exceptions add holidays or working days, and national holidays and collective leave come from one division list based on the official decree. The calendar is the base for planned daily targets and on-time reporting.

**Settings**
Settings that shape every project live in one hub. The Coordinator owns the domain settings: 31 delay reason categories in 9 groups, each with an example, a typical responsible party and the evidence to ask for, and defaults for new projects such as hours, cut-off rule and thresholds. Defaults apply only to projects created afterwards.

### Told when something concerns you

In-app notices and emails are written in the same transaction as the action that caused them, and a background worker sends the emails. Invitations go out once per person per project, and security emails follow a sign-in from a new device or an Admin change to an account. The phone layout has bottom navigation for people who work on site.

*Component gallery, used for QA during development.*

### One design system

- Tokens in one file with machine-checked contrast; body text at least **7:1**.
- Status always shown as icon, text and colour; offline reports are never shown in red.
- Screen text only from one dictionary per module, without dashes or middle dots.
- Touch targets of 44 px and 17 px inputs on touch screens.

## What comes next

Field reporting, verification and dashboards are specified but not built. The figures below are design references drawn from the design kit with synthetic data, to show the intended screens. They are not screenshots of working software.

- A field executor sees today's work items with one button per card and reports on one screen.
- Reports are saved on the phone without signal and sent when signal returns.
- The PC verification list flags unusual values, below-plan items and photos taken outside the project radius.
- Project dashboards show progress against plan in points, an S-curve and on-time reporting; leadership gets a division portfolio and a presentation mode.

## How it is built

DashPro is a pnpm monorepo in TypeScript. The web app is Next.js 16 with Server Actions, Route Handlers and Auth.js. A separate Node.js worker runs all background work. A pure rules package holds time, decimal numbers, access decisions, screen text and the formula engine with **no I/O at all**: no database, no clock, no random numbers, so the same functions run in the browser, on the server, in the worker and in tests. One database package is the only place that talks to PostgreSQL.

**Decisions that shaped it**
- One data-access gate: Code calls the database only through a gate that sets the account, request and project scope per transaction; a write outside the gate is rejected by the database.
- Row level security from day one: Project scope is enforced inside PostgreSQL, so a missed check in application code cannot show another project's data.
- Rights read on every request: One pure function decides rights for pages, actions and the menu, from facts read in the database, so a role change applies without signing out.
- Decimals, never floats: Progress and productivity are official numbers, so decimal.js avoids rounding drift and a test fails if any table gets a float column.
- A worker on PostgreSQL, no Redis: Row locks with SKIP LOCKED and idempotency keys are enough for one division's volume, and avoid running another service.
- A real formula engine: A formula is a versioned JSON tree that the engine parses with error positions, gives a derived unit and a readable sentence, and evaluates in decimals; nine work types with 21 outputs ship as reference data.
- One dictionary for screen text: Users are non-technical and many are over 40, so wording lives in one Indonesian dictionary per module that guard tests can check.
- Specify before coding: The earlier generations failed on fit, not technology, so study, research, requirements and build-ready specifications came before the first line of product code.

**What happens when a Coordinator creates a project**
1. Fill the form: Code, name, owner, regency, contract dates, MP and PC; the time zone is filled from the regency.
2. Check the name: A similar-name check runs while typing; on save, a close match needs an explicit confirmation.
3. One transaction: Claims an idempotency key and inserts the project, its default calendar, cut-off rule, thresholds, radius and the MP and PC memberships.
4. Trail and notices in the same transaction: The audit trail, in-app notifications and queued invitation emails are written together, or not at all.
5. The worker sends: After commit a signal fires and the worker sends the invitations in its next 15-second round, retrying after 1, 5 or 15 minutes if needed.

### Quality and release

- Guard tests enforce the conventions: database imports only through the gate, a pure rules package, at most 600 lines per file, and screen text only from the dictionary.
- Integration tests rebuild a test database from zero and check every table for context triggers, row level security and the absence of float columns.
- Golden tests check the formula engine against worked examples taken from the study of the Excel workbook.
- Playwright tests run in Chromium and WebKit at 390, 1024 and 1440 px, with an accessibility check against WCAG 2.2 AA and a layout checker.
- A release only accepts a commit that is already on main; the deploy builds a new release folder, backs up and migrates the database, swaps a symlink and checks health, and an unhealthy release rolls back on its own.
- The sign-in flow went through a security review and was hardened afterwards.

## Status and how success will be judged

Work started in November 2026 and followed a fixed order: a study of the old workbook and app, comparison research, product requirements, build-ready specifications, then code. The first horizon is split into **nine releases** that follow the dependency chain, from the access foundation to a two-week pilot on one project and expansion. What exists now covers the access foundation and the project, people, reference-data and engine parts of the second release. The catalogue and formula screens, baseline, daily reports, verification and dashboards come next, in that order.

The pilot decision is written down in advance. Continue if yesterday's report completeness, the product's north-star measure, reaches 75 percent in the second week and every golden test passes. Change course between 50 and 75 percent. Stop if it stays below 50 percent for two weeks, or if an official number is wrong and cannot be fixed within two working days. Excel is then retired project by project, without a parallel run.

- **75%** report completeness needed to continue after the pilot
- **7:1** minimum contrast for body text
- **179** colour pairs checked in both themes

**At a glance**
- Client: EPCC Division, PT Wijaya Karya (Persero) Tbk
- Status: In development since November 2026
- Built: Access foundation, projects, people, calendars, reference data, formula engine, worker
- Planned: Baseline, daily and monthly reports, verification, dashboards
- Interface: Indonesian, desktop and phone
- Releases planned: 9

[DashPro showcase on GitHub](https://github.com/nugrahalabib/wika-pms-showcase): The business case, what is built and what is planned, and the developer notes, on synthetic data. The source code stays private.

**Still running project control in Excel?** I rebuild internal tools around how people actually work, with one tested definition for every number.

Source: https://nugrahalabib.com/work/dashpro
Author: Nugraha Labib Mujaddid (https://nugrahalabib.com)
Published: 2026-11-27. Updated: 2026-11-27.
