Workshop Production

From a won order to a finished window: what gets cut, in what order and who has it.

RoleSole developer: discovery with the workshop, data model, cutting plan, dashboard, tablets and deployClientGrupo CPS, aluminum and glass window workshopYear2026CodePrivate · deployed at Grupo CPS, in a pilot with the workshop
Next.js 16ReactTypeScriptPostgreSQLSelf-hosted SupabaseReact PDFJestCoolify
In pilot

Deployed since November 2026 and tested end to end on a copy of the real database. The workshop saw it running with sample jobs and decided to start with a pilot at the cutting station.

The quoting platform, continued behind the factory door. When an order is won, the system builds its production order with the breakdown already calculated. The workshop lead groups jobs into batches and sees the cutting plan bar by bar, each station works from a tablet that shows only its own queue, and the warehouse goes down by what was actually sent to be cut. Before building it I tried it out with a simulator and measured it against the factory software’s data.

The quoting platform solved the way in: the client builds an order and gets a price. But once the order is won a different job begins, and that one still ran on paper. The workshop lead writes up the order, runs the cut optimization in the factory software, prints it and hands it out.

With paper, nobody knows where a job stands without walking over to ask. Two jobs ready for production count on the same bars in the warehouse. And offcuts are kept, but knowing which ones exist depends on the memory of whoever does the cutting.

The goal: every order leaves the system with everything the workshop needs to cut, and every station sees what it has to do.

What I had to work around.

The factory software is not going away

Some jobs are quoted in WinMaker and never go through the web. The system had to take those orders too, and they only exist as a PDF.

A workshop that is not an assembly line

There are no automatic machines, and the same people cut, fit hardware and assemble. Whatever I built had to follow that way of working, not impose another one.

Busy hands and no label printer

Tablet screens with big buttons and few decisions. And until there is a printer, the ticket for each piece shows on the screen.

A warehouse that has not been counted

The real stock does not have its initial count yet. That is why a shortage in the warehouse is a warning, not a hard stop.

First a simulator and a measurement; then, a single app.

Before touching the database I built a simulator: a laptop playing the workshop lead and a tablet playing a station, with its own data. It let the workshop people say what was wrong before anything was built.

In parallel I measured with the company’s data instead of assuming: I read the 116 production orders in the archive and compared my bar packing against 36 real cutting diagrams from the factory software.

With that on the table, the decision was not to build a second system. The quoting platform creates the production order for each order, and the workshop comes in through its own domain to a dashboard and tablets that read the same tables. There is nothing to sync.

Factory software3,176 bars
New packing3,170 bars

Same cuts, same bar and same blade, across 36 real cutting diagrams: 254 profiles and 18,795 pieces. The new packing uses fewer bars than the factory software on 10 profiles, the same on 236 and one more on 8. The point was not to beat it, but to be able to pack the bars from the system without using more aluminum than today.

Why it is built this way.

One app, two domains

Quoting and production are the same application and the same database; each domain shows its own side. The production order comes from the order itself, with nothing exported or typed in again.

The order is born on the win and frozen on stocking

When the order is won, its production order is created as a draft so the workshop can see it coming. When the office marks the material as stocked, the breakdown is frozen and every unit gets its code. From then on the order is never recalculated.

Batches: group jobs to cut better

The workshop lead sends one or several jobs to the floor together and the system packs the bars across all of them. It pays off when they share profile and color: with the real 2026 orders, about one bar saved per shared profile and color.

The cutting plan is stored with the batch

Which piece goes on which bar, which job and which window it belongs to, and what offcut is left. The tablets show that plan as is; nobody recalculates it later.

The warehouse goes down by what is sent to be cut

Marking a job as stocked reserves its material. Sending a batch deducts what that batch cuts, and voiding it gives it back. Offcuts enter the warehouse on their own when each bar is closed, with their own code.

A tablet per station, not per person

Each tablet signs in with its station key; whoever arrives taps their name and sees their queue. The work for each task is split among the people who came in that day.

Read the PDF instead of asking for it to be typed in again

Jobs quoted in WinMaker come in by uploading their order PDF. The reader was tested on the 116 orders in the archive: out of 14,998 lines it failed to read 8, all with a negative length printed by the program itself.

Everything goes into the history

Who marked it as stocked, who built the batch, who cut each bar and when. The order reads like a timeline.

What I ruled out along the way.

Two systems kept in sync

A separate workshop system would have meant copying orders and breakdowns from one side to the other. With a single database there is nothing that can drift.

Pulling pieces out of a batch already started

It was discussed and ruled out: what has been cut cannot be undone. An urgent job goes into another batch, with higher priority.

A4 sheets of tickets to cut out

That was the first way around not having a label printer. It was replaced by the ticket on the tablet screen, until printing is automatic.

Imposing my glass cutting plan

In the measurement my plan used fewer sheets than the factory software, but the workshop cuts in a way that number does not capture. I asked how they cut first; the plan was adjusted after I showed it to them.

The path of a job, from the office to the station.

  1. 01

    The production order

    One per project, with the breakdown of the order, where each unit goes and the cutting order as a PDF: one sheet per window with its drawing, profiles, hardware and glass.

  2. 02

    Stocked and reserved

    One button in the office sets that job’s material aside in the warehouse, flags what is short and builds the shopping list.

  3. 03

    Workshop dashboard

    Incoming jobs, batches with their priority, the cutting plan, how each station is doing and who has each task.

  4. 04

    Tablets at the stations

    Aluminum cutting bar by bar, glass cutting sheet by sheet, insulated glass assembly, hardware and window assembly.

  5. 05

    Live view and problems

    What is done, what is in progress and what is left at each station. If someone flags a problem from their tablet, it reaches the workshop lead.

  6. 06

    Dates and deliveries

    Start and delivery date for each job, with a calendar to see how much work is ahead.

The finished window leaves with a QR code that opens its page on a phone. And jobs quoted in WinMaker enter the same dashboard by uploading their order PDF, so the workshop works the same way wherever the order comes from.

From the order to the station, on the same tables.

ORD

Won order

The quoting platform creates the production order with the breakdown of the order.

PO

Production order

A draft until stocking; after that, a frozen breakdown and one code per unit.

BAT

Batch

One or several jobs, with their bar and sheet plan stored.

JOB

Tasks per station

The batch is split into tasks by station and by person.

TAB

Tablets

Each station sees its queue and marks what is done; each cut produces its ticket.

WH

Warehouse

Reservations, deductions per batch and coded offcuts, all as movements.

The cutting plan is a pure function over the frozen breakdown, just like the quoting platform’s pricing engine. That is why it could be measured against the factory software’s data without spinning up any service.

What can be measured.

18,795

pieces from 36 real cutting diagrams used to measure the bar packing: 3,170 bars against 3,176 from the factory software.

1.8%

fewer bars when the 11 real orders of 2026 are cut together, and up to 2.8% in a group of three.

83%

of the pieces get their cut angle from the order PDF alone; 3,503 checks without a single difference.

In pilot

deployed since November 2026; the workshop starts with the cutting station.

Measured with the company’s own data.

Factory orders read
116 orders, 882 sheets
Lines the reader could not parse
8 of 14,998
Bars against the factory software
3,170 against 3,176
Cut angles
Extracted from the 2,641 product programs
End-to-end test
On a copy of the real database, with sample jobs

Before adding the dashboard and the tablets I ran my own audit of what was already there and turned it into a correction plan in batches. Every migration is rehearsed twice on a copy of production before it is applied.

The workshop, with sample jobs.

Workshop dashboard with incoming jobs and the ones ready to be batched
The workshop lead’s dashboard: how many windows are ready, the incoming jobs and the ones whose material is already stocked and can be grouped into a batch. Sample jobs.
Cutting plan of a batch, bar by bar
The cutting plan of a batch: each bar with its pieces, which window each one belongs to and what is left over. Color groups the pieces of the same window.
Tablet at the aluminum cutting station
The tablet at the cutting station: the bar in progress with the pieces already cut and the next one, and that person’s queue of bars.
Progress of each workshop station and how the work is split
How each station is doing: a problem flagged from a tablet, batch progress per task and who has what is left, with the estimated time.
  • A cheap simulator let the workshop weigh in before there was anything to redo.
  • Measuring against the system they already use changes the conversation: it stops being my word against habit.
  • The workshop knows things the data does not show: my glass plan used fewer sheets and still did not fit the way they cut.
  • Showing it running to the people who will use it produced fourteen concrete requests in a single meeting.

Want to talk about this project?

The code is private, but I can walk you through how it is built. Write to me if your workshop or factory still runs on paper, or if you want to talk about a role.