Back to projects

Web app ยท Calibration lab

X-Cal (Calibration Lab Platform)

Client: Kalam Calibration, Aequus Calibration (MTG)

Overview

Web platform for a calibration laboratory: a sales pipeline dashboard, a calibration dashboard with status distribution and trend, a schedule calendar, orders, field operations, device and calibrator records, and a template builder that connects certificate forms to cells in Google Sheets. Calibration files are stored in a connected Google Drive.

The problem

X-Cal is the web platform for an equipment calibration laboratory, used by sales staff, calibration technicians and lab managers. It runs on the shared Laravel API and the shared Vue app, and is chosen through the app switcher.

A calibration lab produces a certificate form per device, and each device type has its own layout, usually kept as a spreadsheet. Staff retype customer and order data into those sheets, technicians work on site where the network is unreliable, and managers have no view of the sales pipeline, the schedule and what is overdue or failed.

My part

I worked on X-Cal as a Senior Software Engineer at Rexolusi, and its API and data structure sit within the backend architecture I lead.

What I built

Quotation to calibration flow
Sales quotations convert to orders, then to calibration documents with devices, technicians, equipment receipt and non-conformance records, on the same approval lifecycle as the rest of the platform.
Template builder
A template links a Google Sheets file to a device type. Connectors map form fields to specific cells, and reference fields fill from the quotation or calibration detail, such as the customer name and quotation number.
Spreadsheet and Drive integration
Each calibration detail gets its own copy of the sheet in a connected Google Drive. The backend reads and writes cells and sheet formatting, and supports both a service account and OAuth2 credentials.
Dashboards and reports
A calibration dashboard shows status distribution, trend, calibrator performance, upcoming due dates and failed calibrations. Daily schedule, daily completion and monthly calibration reports are separate services, with a schedule calendar.
Field visit attendance
Technicians check in and out of customer visits with a photo and GPS position. The front end stamps the customer, location, purpose, coordinates and time onto the photo, and photos are stored on S3.
Offline work
The front end keeps a local database with a lookup cache, a queue of pending operations, draft calibrations and offline form values, and syncs them when a connection returns.

Decisions that shaped it

The spreadsheet is the certificate
Labs already keep certificate layouts in spreadsheets, so the platform maps form fields to cells instead of rebuilding every layout in code. A new device type then needs a template and connectors, not a release.
A checksum to detect template drift
Each calibration detail stores a checksum of its connector and form configuration, and a sync service compares it with the current template, reports what was added, removed or remapped and logs the sync, so a template can change without silently corrupting open work.
Reference fields resolved on the server
Values such as the customer name are listed with their source and whether they stay editable, and a resolver fills them, so the technician does not retype data that already exists in the order.
Offline actions as a queue of typed operations
Offline actions are stored as typed pending operations with a status and retry count, then replayed through the same service methods the online path uses, which avoids a second code path for writes.
A self-contained front-end module
The calibration module keeps its own pages, queries, services and types and uses relative imports inside the module, so its boundaries stay clear inside the shared Vue app.

Where it stands

  • The backend covers visit attendance, schedule, three report families and the dashboard, plus transaction services for calibration, equipment receipt, technicians and non-conformance.
  • Feature and unit tests exist for visit attendance, non-conformance and technician assignment.
  • The front-end module has a workflow document covering setup, quotation, order and execution.
  • Template sync results are kept in a log with the old and new checksums.

Core features

  • Sales pipeline
  • Calibration dashboard
  • Schedule calendar
  • Orders and field operations
  • Devices and calibrators
  • Certificate template builder
  • Google Drive storage

Tech stack

  • Laravel 10
  • PostgreSQL
  • Horizon
  • Vue 3
  • TypeScript
  • Pinia
  • Tailwind CSS
  • Vite
  • ApexCharts
  • AWS S3
  • Google API
  • Snappy (wkhtmltopdf)

Related clients