01a0765d - Log displayed failures and KYC/limit blockers - #1454
Conversation
…ror log The crash screen already posted failures to POST /v1/log/clientError. In-flow ErrorHint and wallet ConnectError did not, so a customer-visible failure never reached the error log. Both now report through useReportDisplayedError.
The ingest treats a later account id as a different failure. Match the crash screen: send once with whatever account is known at first fire.
c932107 to
0dd0ae0
Compare
|
EN: DE: DetailsPass 1 found that hydrating Quality and logic were re-reviewed on HEAD KYC/limit process hints and form validation are intentionally not reported. |
KYC, limit and similar in-flow blockers now post to the client error ingest with type QuoteError so they are recorded without being treated as crashes.
|
EN: DE: DetailsHead Review passes:
Comment gate: no review threads, no inline comments, no reviews. The earlier ready comment (5559107929) described the pre-QuoteError scope and is superseded by this one. Mergeable: CI at this head, all Commits are GitHub-verified. |
EN:
Customer-visible failures (ErrorHint, ConnectError, crash screen) post as ERROR. KYC/limit process blockers (QuoteErrorHint) post as QuoteError so they are recorded as INFO, not as crashes. Visible copy is unchanged. Coverage on every touched production file is 100% statement, branch, function and line.
DE:
Sichtbare Ausfälle (ErrorHint, ConnectError, Crash-Screen) gehen als ERROR. KYC-/Limit-Blocker (QuoteErrorHint) gehen als QuoteError und werden als INFO erfasst, nicht als Absturz. Die sichtbare Copy bleibt gleich. Coverage auf jeder angefassten Produktionsdatei ist 100 % Statement, Branch, Function und Line.
Details
useReportDisplayedErrortakes an optional type (defaultHandledError).QuoteErrorHintreports withQuoteError. Empty KYC-data hint reports the enum string. Form validation is not logged. A matching backend change recordsQuoteErrorat INFO.Per-file coverage (statement / branch / function / line), measured on the build host with Node 20:
src/hooks/report-displayed-error.hook.tssrc/components/error-hint.tsxsrc/components/home/connect-shared.tsxsrc/components/quote-error-hint.tsx