teqo/src/components/campaign/auth
Francisco Ignácio Fontoura Solla 2cfb7d5e67 Simplify the WebAuthn adoption: an error branch that could not reach a screen.
`postJson` caught a non-JSON response and threw a plain `Error` carrying
"Resposta inválida do servidor.", but all three islands read `message` only off
a `CampaignWebAuthnError` — so the sentence was written for the person and then
thrown down the channel that discards messages. Deleted rather than re-typed:
the islands' own fallback is better copy for a field worker, which is the same
reason the five list-cell controls substitute their own. Nothing user-visible
changes, because the string was already unreachable; the comment now records
why the branch is absent, so it does not come back.

The login failure sentence was also spelled twice for one slot on one screen —
the route's `genericMessage` and the button's fallback — so it became
`CAMPAIGN_BIOMETRIC_LOGIN_ERROR_MESSAGE`, twin of the enroll constant the
register half already shares between its route and its card.

Also widened two doc comments this branch made stale: `campaignJsonMutationRoute`
and `campaignJsonRequest` both claimed to serve only the list cells' quick edits,
and four of nine callers are now WebAuthn ceremonies.
2026-07-28 12:30:36 -03:00
..
CampaignAuthBackToLoginLink.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
CampaignAuthCardHeader.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
CampaignAuthPageShell.tsx Pass 2 W2: components/campaign em subpastas por dominio 2026-07-25 14:52:17 -03:00
CampaignBiometricLoginButton.tsx Simplify the WebAuthn adoption: an error branch that could not reach a screen. 2026-07-28 12:30:36 -03:00
CampaignPasskeysCard.tsx Deliver B40: biometric login for /campanha. 2026-07-28 10:59:23 -03:00
CampaignProfileSettings.tsx Deliver B40: biometric login for /campanha. 2026-07-28 10:59:23 -03:00
useCampaignBiometricsAvailable.ts Deliver B40: biometric login for /campanha. 2026-07-28 10:59:23 -03:00