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
+1 -1
View File
@@ -120,7 +120,7 @@ waived, no tender. It adds **nothing** to cash, card, the ticket bucket or the d
tender sums add 0), so the shift total is untouched by construction. The Z-report sums
`forgoneMinor` into `forgoneTotalMinor` + `forgoneCount`, stamps them on the signed
`shift_z_report` (only when > 0, so older payloads stay identical) and prints one line
`Dalje të falura (N): X` after the merchant-validation leakage line — a separate figure on
`Dalje manuale (N): X` after the merchant-validation leakage line — a separate figure on
purpose, so the owner can tell "the bar validated it" from "the operator let it out".
### Shift history UI + permission scoping (2026-06-19)
+9 -3
View File
@@ -77,7 +77,7 @@ unchanged) and on the ticket being closed.
role from Setup → Roles — "the owner can give permission to other operators" (user).
- **`PayStation.forgive(identity, { operator, note })`** — quotes the fee as the pay flow
would, signs `payment { amountMinor: 0, forgoneMinor: <quote>, operator, reasonCode:
"exit.forgiven", reason: "forgiven exit by X — fee of N CUR waived: <note>" }` with **no
"exit.forgiven", reason: "manual exit by X — fee of N CUR, no payment: <note>" }` with **no
tender** (nothing was tendered), marks the projection paid. Refuses (409) when the quote
carries module charge lines (a wash on the ticket): parking is forgiven, a wash is not.
- **`ExitFlow.reopenBarrier(id, operator, { forgiven })`** — the existing human-intervention
@@ -91,13 +91,19 @@ unchanged) and on the ticket being closed.
gate (`409 no_shift`); the note is optional; no identity = the no-session path.
- **Z-report**: `forgoneTotalMinor` + `forgoneCount` summed from `forgoneMinor` (never into
cash/card; `discountTotalMinor` untouched), on the signed `shift_z_report` only when > 0, one
print line `Dalje të falura (N): X`, shown in the X-report, the close confirm and history.
print line `Dalje manuale (N): X`, shown in the X-report, the close confirm and history.
- **Web**: in the pay/exit modal a red ghost "Forgive & open" for an OPEN transient that owes
money (unpaid or overstay) → reason box → "Confirm — open exit, no payment"; on the booth
header a "Forgive & open exit" next to the exit lane light for the no-ticket case
(`window.prompt` for the reason — Cancel aborts, empty proceeds). Both only render with
(a small styled dialog, same chrome as every other form — optional reason, red confirm). Both only render with
`barrier:create` + own open shift.
Live-feed reason texts in en/sq. **Nothing is printed.**
- Tests: exit-flow (ticketed + no-session), pay-station (`forgive`), shift-service (totals
untouched, own line, history), routes (403 without the permission, 409 no shift, 400 no
note accepted, ledger sequence entry→payment→anomaly→exit, report figures).
**Wording (user, 2026-10-09).** The user-facing words are **"manual exit" / "dalje manuale"**,
not forgive/forgiven/forgone — too much "fal, falur, falje" (user). Applies to both language
files, the printed Z-report line (`Dalje manuale (N)`) and the signed English fallback
sentences. Internal names stay (`exit.forgiven`, `forgoneMinor`, `barrier:create`) — they
are code identifiers, not copy.
+6
View File
@@ -3490,3 +3490,9 @@ Pages: [[forgiven-exit]], [[booth-exit-flow]] §Forgiven exit, [[shift]] §Forgi
"We don't need to force the user to write a reason." Route no longer 400s without a note; an
empty note is signed as "(no reason given)"; modal confirm enabled with an empty box; booth
prompt: Cancel aborts, empty proceeds; en/sq texts say optional. [[forgiven-exit]] §5 updated.
## [2026-10-09] decision | Forgiven exit wording → "manual exit" / "dalje manuale"
User trimmed the Albanian copy ("Too much fal, falur, falje") and asked for the same in
English: buttons, dialog, results, live-feed reasons, shift figures, the printed Z line and the
signed English fallback now say manual exit; identifiers unchanged. [[forgiven-exit]] §Wording.