diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-23 09:13:17 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-23 09:13:17 +0200 |
| commit | 53071bb69f5d21b35b8a61c2b1dd18832ce781d4 (patch) | |
| tree | fa76c13cef78925d1b9650e92f64d5115dcdb6e7 /scripts | |
| parent | 2ca284619125af0d5c12e9210ff1bfc8f9122739 (diff) | |
| download | bokf-53071bb69f5d21b35b8a61c2b1dd18832ce781d4.tar.gz bokf-53071bb69f5d21b35b8a61c2b1dd18832ce781d4.zip | |
tui: aligned voucher detail, up/down between vouchers, list sorting
The detail pads every column by display width, blanks zero amounts and
shows row texts and a Summa line. Up/Down step to the previous/next
voucher in the list order; 's' cycles the list sort (number or date,
ascending or descending, saved in tui.conf). The list fetches all pages
of voucher.list instead of stopping at 200.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/tui-golden.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/scripts/tui-golden.py b/scripts/tui-golden.py index 9d6e9ca..864210c 100755 --- a/scripts/tui-golden.py +++ b/scripts/tui-golden.py @@ -543,6 +543,52 @@ SCENARIOS = [ ], }, { + # Up/Down in the voucher detail step through the list order; 's' + # cycles the list sort (ends back on the default, it is saved). + "name": "voucher-nav-sort", + "screen": "vouchers", + "expect": ["sorterade på nummer, stigande", "A1", "F1"], + "steps": [ + { + "keys": ["home", "enter"], + "expect": ["Verifikat A1 (1 av ", "Golden verifikat", + "Summa", "upp/ned = föregående/nästa"], + }, + { + "keys": ["down"], + "expect": [" (2 av "], + }, + { + "keys": ["up"], + "expect": ["Verifikat A1 (1 av "], + }, + { + "keys": ["esc", "s"], + "expect": ["sorterade på nummer, fallande"], + }, + { + "keys": ["home", "enter"], + "expect": [" (1 av "], + }, + { + "keys": ["down"], + "expect": [" (2 av "], + }, + { + "keys": ["esc", "s"], + "expect": ["sorterade på datum, stigande"], + }, + { + "keys": ["s"], + "expect": ["sorterade på datum, fallande"], + }, + { + "keys": ["s"], + "expect": ["sorterade på nummer, stigande"], + }, + ], + }, + { # Backspace in a freshly opened field edits the value; the next # key must not replace everything. "name": "form-edit-backspace", |
