feat(exit): manual-exit dialog + wording — styled modal replaces window.prompt; copy says 'manual exit' / 'dalje manuale'
Build & push images / images (push) Successful in 3m13s

- BoothScreen: the no-ticket open uses the app's Modal (explainer, optional reason,
  red confirm; Enter confirms, Escape/Cancel abort) instead of a browser prompt.
- en/sq: forgive/forgiven/forgone wording dropped from every user-facing string
  (buttons, dialog, results, live-feed reasons, shift figures); Albanian edited by the
  user, English aligned. Printed Z line is 'Dalje manuale (N)'. The signed English
  fallback sentences follow. Identifiers (exit.forgiven, forgoneMinor, barrier:create)
  unchanged.
- wiki: forgiven-exit §Wording, shift, log.
This commit is contained in:
2026-10-09 08:37:44 +02:00
parent 2e98167dba
commit 82e5833e4e
9 changed files with 99 additions and 42 deletions
+2 -2
View File
@@ -131,8 +131,8 @@ describe("forgiven exit (wiki/decisions/forgiven-exit.md)", () => {
expect(r.ok).toBe(true);
expect(exitsSigned("T1")).toHaveLength(1);
expect(exitsSigned("T1")[0]!.payload).toMatchObject({ reasonCode: "exit.forgiven" });
expect(anomalies("forgiven exit by owner")).toHaveLength(1);
expect(anomalies("forgiven exit by owner")[0]!.payload).toMatchObject({ forgiven: true, forgoneMinor: 20000, operator: "owner" });
expect(anomalies("manual exit by owner")).toHaveLength(1);
expect(anomalies("manual exit by owner")[0]!.payload).toMatchObject({ forgiven: true, forgoneMinor: 20000, operator: "owner" });
// The plain unpaid re-open path is still refused for the NEXT unpaid car.
await enter("T2", minutesAgo(90));
expect((await exit.reopenBarrier("T2", "owner")).ok).toBe(false);
+1 -1
View File
@@ -832,7 +832,7 @@ export class ShiftService {
// (older slips stay byte-identical). The takings above are already NET of it.
...(r.discountTotalMinor > 0 ? [`Zbritje (validime): ${money(r.discountTotalMinor)} ${cur}`] : []),
// Forgiven exits — fees waived by an operator; $0 payments, NOT in the takings.
...(r.forgoneCount > 0 ? [`Dalje të falura (${r.forgoneCount}): ${money(r.forgoneTotalMinor)} ${cur}`] : []),
...(r.forgoneCount > 0 ? [`Dalje manuale (${r.forgoneCount}): ${money(r.forgoneTotalMinor)} ${cur}`] : []),
"",
"-- Arka --",
`Gjëndje fillestare: ${money(r.openingFloatMinor)} ${cur}`,