The forges you sent are searched by name or email (#14641)
An owner with many clients finds one at once. /forges?q=maria keeps the forges whose name, the person it was sent for, or the claimant's email contains the text, ignoring case (searchClients, src/spawn/client_search.ts).
- On the page. A plain GET search box above the list; the text stays in the box and survives a reload. It combines with the state and sort links, which carry
q. No match saysNo forges match "…"with a link to clear. An emptyqshows all. - In the terminal. On Forges you sent (palette,
ctrl+k, admins, as the page is) press/, type a name or email and Enter; the first line names the search and its count, and no match says so./then an empty box shows all again. It combines withf(state) and uses the sameparseClientQueryandsearchClients(stateLines,src/tui/screens/forges.ts). - Counts. The state counts and All (N) are over the searched rows, so they agree with the list.
- Input.
qis trimmed, control characters dropped, capped at 80 characters, and escaped on output. The rows are in memory, so it is a substring match: no SQL, and%,_are ordinary characters. - Tests.
bun test test/client-search.test.ts test/tui-forges.test.ts.