Job list shows cargo tonnage instead of count (ISS-066, v0.35.0) #68

Merged
kamilkrzywda merged 2 commits from fix/job-list-cargo-tonnage into master 2026-09-21 04:58:30 +02:00
Owner

Fixes #66

Open-package rows in the Jobs tab now show cargo as type + tonnage — e.g. Mail 10.0t — instead of Mail × 12. New formatCargo(cargoType, weightKg) in lib/format.ts reuses the existing (kg/1000).toFixed(1)t pattern from the loadout display; the row span gets a dedicated open-package-cargo-{id} testid.

Unit: 3 new cases in lib/format.test.ts. E2E: e2e/right-pane.spec.ts forces a 10 t package via the create-package hook and asserts the row shows 10.0t (verified by CI against the isolated dind stack). No server or OpenAPI changes — weightKg was already in the snapshot.

Fixes #66 Open-package rows in the Jobs tab now show cargo as type + tonnage — e.g. `Mail 10.0t` — instead of `Mail × 12`. New `formatCargo(cargoType, weightKg)` in `lib/format.ts` reuses the existing `(kg/1000).toFixed(1)t` pattern from the loadout display; the row span gets a dedicated `open-package-cargo-{id}` testid. Unit: 3 new cases in `lib/format.test.ts`. E2E: `e2e/right-pane.spec.ts` forces a 10 t package via the create-package hook and asserts the row shows `10.0t` (verified by CI against the isolated dind stack). No server or OpenAPI changes — `weightKg` was already in the snapshot.
kamilkrzywda added 1 commit 2026-09-21 04:36:28 +02:00
Job list shows cargo tonnage instead of count (ISS-066, v0.35.0)
CI / build + unit + e2e (pull_request) Failing after 10m9s
d3038b3c7f
kamilkrzywda scheduled this pull request to auto merge when all checks succeed 2026-09-21 04:36:34 +02:00
kamilkrzywda added 1 commit 2026-09-21 04:50:12 +02:00
fix(e2e): hook package weight within starter payload (4 t < 4.8 t max)
CI / build + unit + e2e (pull_request) Successful in 8m21s
0ac133f750
kamilkrzywda merged commit 6d8e1ad35e into master 2026-09-21 04:58:30 +02:00
Sign in to join this conversation.