Attention points close with a verdict: approved / rejected #16
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/flag-disposition"
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?
On the manager's entry page the two free-text boxes under an attention point made no sense as a workflow - the owner called it out: a toelichting and a reden, with no decision, means the point is never handled. Looking is not deciding.
What the two boxes were
Toelichtingwas a free note stored on the flag (resolution_note);Redenfed the audit trail (record_audit(reason=...)) - a code-audit field leaking into the UI. Two vague boxes, no outcome.The fix (owner advice implemented)
Flag.disposition: approved / rejected (Postgres enumflagdisposition, migration 0010), NULL while open. The verdict is what closes the point.flag.resolveaudit row stores as the reason.Verified live
Entry 4 (PD9MODE, two MODE_NOT_ALLOWED flags): flagged one Afgekeurd with "Geen geldige modes voor de NLC" - verdict + note render on the page - the other left open with its dropdown; an empty-verdict POST was refused (flag untouched).
Tests: 315 (3 new, 1 updated to the verdict API).
The manager's entry drill-in showed no mode, so the mode could not be controlled there at all. The shared per-QSO table (preview, confirmation, manager drill-in and the live sessions view) gets a Mode column fed by a display helper: - The mode is rendered in the reglement's own vocabulary: FM, SSB, CW. SSB's emission labels USB/LSB are ACCEPTED and read as "SSB" (owner: do not disapprove them), the same normalisation the flag layer and the live logger apply - so a logged USB is an ordinary SSB row, no finding. - EDI's numeric mode codes never reach the table (1/2/6 are translated at parse time); a mode outside the reglement keeps its RAW value ("DG", "RY") with a MODE_NOT_ALLOWED marker on that row, so the manager can adjudicate what was actually logged. - A blank mode renders as an em dash - EDI allows an empty mode column by the standard, so absence is not a finding. Verified on the running stack: entry 1 (PD1SCO) shows FM/SSB per row; entry 4 (PD9MODE) keeps DG and RY with the marker. Tests: 312 (5 new).