A typed answer to an agent's question can't contain a space #281
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What happens
On an agent's question, "Type your own answer" takes letters but no spaces (found answering run 134's judge).
GateCard.tsxstores the answer trimmed on every keystroke,setAnswer(index, text.trim() ? [text.trim()] : null), and the input shows the stored value. A space typed at the end is trimmed away at once; one typed mid-word survives.Fix
Keep the text as typed in the field; trim it only when the answer is sent.
Done when
A typed answer with spaces can be entered and is sent trimmed, with a UI test that types one.
From #279.
Shipped in PR #284 (merge
8c527d6), live on production.Verified by
ui/e2e/gates.spec.ts("an agent's question is answered in the operator's own words, spaces and all"), which typesuse pyjwtkey by key and checks thatuse pyjwtis sent, green in CI and in the suite. The deployed console keeps the text as typed and trims it on send.