~/projects/estimate-versions
Quote Version Control
An internal system that keeps every version of the Excel quotes staff build, shows any of them instantly, and highlights what changed since the last one.


The problem
Staff built quotes in Excel, and every revision added another file. Which one was the latest, and what had changed since the last version, could only be found by opening the files and comparing them by eye.
Before and now
Before
- Staffedit the quote in Excel
- More and more files“final_2.xlsx”, “final_3.xlsx”…
- Changes found by eyeprices checked cell by cell
Between a traveller's first request and the final quote there are several versions. Staff needed a history of what changed, to show the client when needed and to keep track themselves.
Now
- Upload the Excel filethe same Excel as always
- Version historynumbered and saved automatically
- PDF previewrendered by LibreOffice in the background
- Changes at a glancechanged, cancelled and confirmed in colour
The interface borrows from GitHub — quotes are like repositories and versions like commits — without showing any of those words.
Architecture
- BrowserReact SPA
- TraefikTLS
- Go backendgin · SQLBoiler · serves the SPA
- PostgreSQLversions and sheet snapshots
- Gotenbergxlsx → PDF
- Object Storageoriginals and PDFs
One process serves both the API and the SPA; there is no nginx.
Technical highlights
- Diffs from stored snapshotsEach upload saves its sheets as JSONB, so comparing never re-opens the Excel files.
- Upload now, render laterA version shows up at once; the PDF is made separately, and unfinished renders resume after a restart.
- Keeping .xls numbers intactLibreOffice breaks some calculated values; a Python step puts back the ones stored in the original file.
Outcome
Any version of a quote can be checked at once, without opening a file.
Changes since the last version show in colour, so checking prices is faster.
Excel stays exactly as people use it; the history is simply added behind it.
