Conversation
MapInputRow silently dropped any error from GET /users/:id/status, which made the option to pick a synced activity disappear with zero indication of why - identical to "no tracker connected". This is exactly what hid a JWT-secret-mismatch incident between v6_api and c2c_tracking from the frontend side. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughChangesTracking status error visibility
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Tracking-status failures are now visible in logs while local GPX activity remains available, so the change is mergeable. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit sees the tracker fail Comment |
Résumé
Dans l'éditeur de sortie,
MapInputRow.vueproposait l'option "utiliser une activité synchronisée" uniquement siGET /users/:id/statusréussissait ET rapportait au moins un vendeurconfigured. Toute erreur (401, réseau, ...) était avalée silencieusement — l'utilisateur voyait exactement la même chose que "aucun tracker connecté", sans indication qu'un problème existait.C'est précisément ce qui a masqué un incident de désynchronisation du secret JWT entre
v6_apietc2c_tracking(401 systématique, déjà corrigé côté infra) : rien côté frontend n'indiquait qu'un appel échouait.Changement
L'erreur est maintenant loguée via
console.error, avec un commentaire expliquant le contexte. Le comportement de repli (GPX local uniquement) reste inchangé — c'est le fallback sûr — seule l'observabilité change.Test plan
npm run lintpropre (1 warningno-consoleattendu, cohérent avec le pattern déjà utilisé ailleurs dans le repo, ex.NearbyStopsSection.vue)prettier --checkpropreSummary by CodeRabbit