feat(go): M6.2 — adults page (table, filters, credits/debts/unmatched, Pay buttons) #27
Reference in New Issue
Block a user
Delete Branch "feat/go-m6-2-adults-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/adultsHTML page on the Go frontend: reconcile table with per-cell status colours (cell-ok,cell-unpaid,cell-unpaid-current,cell-overridden), totals row, credits/debts/unmatched sections, Pay button hrefs to/qr.AssembleAdults(ctx)extracted so/adultsand/api/adultsshare one code path —make paritystays green.static/js/filters.js: NFD-normalize name filter + month-range column hiding; future months hidden by default.AdultsPageDataview model +qrHref/qrHrefAlltemplate funcs (URL-encode Czech SPD QR params).TestAdultsPagemirrors Python'stest_adults_routefixture assertions.Test plan
make go-testgreenmake paritygreen (3/3 API routes unchanged)http://localhost:8080/adultsagainst real data: table renders, cell colours correct, filters work (name + month range), Pay buttons present for past-month unpaid cellsThe lifted-from-Python app.css already styles .list-container/.list-item, .unmatched-row, .balance-pos/.balance-neg, and cell-{status}; the M6.2 template invented .credits-list / .unmatched-table / .balance-cell that had no rules, so those sections rendered unstyled. - Credits / Debts: <ul><li> → <div class="list-container"><div class="list-item"> <span class="list-item-name"> + <span class="list-item-val"> (debts red inline). - Unmatched: <table> → <div class="list-container"> + <div class="unmatched-row">. - Balance cell: balance-pos / balance-neg with style="position: relative;"; Pay-All button now lives inside it (no separate trailing column). - Total row: cell-{status} + caption span "received / expected" + bold/dark inline styles. - Drop redundant .cell wrapper class; balance value drops trailing "CZK". - Section headings: "Credits (Advance Payments / Surplus)" + "Debts (Missing Payments)". - Source links: <div class="description"> block under h1 (was at page bottom). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>