Go to file
Randy Fischer 92ad6a92e3 Persist uploaded order CSVs across app restarts
Uploaded CSVs previously lived only in memory; reloading the app reset the
order list to the embedded SEED_ORDERS_CSV. Now every upload is written to a
new IndexedDB store so inspectors keep their order list after closing/reopening
the PWA.

- db.js: bump DB_VERSION to 4, add object store `ordersCsv` (keyPath 'id'),
  saveOrdersCsv(csvText) and loadOrdersCsv().
- csvLoader.js: loadOrdersFromUpload returns { text, orders } so the handler
  can persist the raw text alongside the parsed result.
- main.js: init() prefers the stored CSV, falls back to SEED_ORDERS_CSV. The
  upload handler persists the CSV before re-rendering.
2026-04-15 15:47:15 +02:00
_docs Initial repo scaffold on develop 2026-04-15 15:24:55 +02:00
public Persist uploaded order CSVs across app restarts 2026-04-15 15:47:15 +02:00
src Persist uploaded order CSVs across app restarts 2026-04-15 15:47:15 +02:00
.gitignore Initial repo scaffold on develop 2026-04-15 15:24:55 +02:00
README.md Initial repo scaffold on develop 2026-04-15 15:24:55 +02:00

README.md

Duimstok-inspecties Bovenbouw

ProRail duimstok-inspecties voor wissels, overwegen en spoor. MVP / PWA — vanilla HTML, CSS, JS, IndexedDB, service worker.

Project-structuur

01_Applicatie/
├── public/                 frontend assets (open public/index.html direct)
│   ├── index.html
│   ├── manifest.webmanifest
│   ├── sw.js               service worker
│   ├── icons/
│   ├── css/
│   └── js/
├── src/                    applicatielogica (DDD-lagen)
│   ├── Domain/
│   ├── Application/
│   └── Infrastructure/
└── _docs/                  projectdocumentatie

Uitvoeren

Snel testen (geen PWA-functionaliteit): Dubbelklik public/index.html. Werkt vanaf file://.

Volledige PWA (service worker + installatie): Start een webserver vanuit 01_Applicatie/ en open de app via http://localhost:<poort>/public/:

python -m http.server 8000
# open http://localhost:8000/public/

Service worker, installatieknop en offline-caching werken alleen vanaf http(s):// of localhost — niet vanaf file://.

Branches

  • master — live productie (auto-deploy bij merge)
  • develop — staging (auto-deploy bij merge)
  • feature branches — nieuwe functionaliteit, merge via PR in develop

Zie _docs/ voor verdere projectdocumentatie.