feat: hardening de dados, erros e estados (itens 67/68/70/73/74/75/76) #310
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.37) × (1 − Review Confidence (0.39)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 212 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 68% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.321
Real PR Conversation Timeline
1 comments
"Review active on #310"
general
weight: 0.35
devin-ai-integration[bot]
Causa / por quê
Bloco 3 do plano frontend: reforçar tratamento de dados, erros e estados de tela. Sem regressões de funcionalidade.
O que muda
useAuth.tsx:getSessioncom.catch/.finally(loading nunca trava);valuememoizado;signOutlimpaqueryClient, canais do supabase e preferências locais (achievements).OrderDetailModal.tsx: banner de erro ao falhar carregar paradas (antes silenciava); clipboard de código de entrega comawait+try/catch.useAchievementsSystem.tsx:JSON.parseprotegido portry/catche chaves por usuário (achievements:<userId>).useServiceWorker.ts: listenercontrollerchangeregistrado uma única vez viauseEffectcom cleanup (antes acumulava a cada chamada).phone.ts: novo helpertoWhatsAppUrl(garante DDI 55 / E.164).BatchActionsToolbareMapHUDusam o helper;BatchActionsToolbarusaorder.shareLinkem vez detrack.lalamove.com/<id>; clipboard comtry/catch+ toast de erro.Verificado
tsc --noEmit -p tsconfig.app.json: 0 erros.npm run build: sucesso.vitest run: 1069/1069 (69 arquivos) verdes.eslintnos 7 arquivos tocados: 0 erros (só warnings pré-existentes de imports não usados).<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/adm01-debug/lalamove_v2/pull/310" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->