buildmymcpserver/apps/web/lib
Marco Sadjadi 3dc65e4f4d
All checks were successful
Deploy to Production / deploy (push) Successful in 1m20s
fix(ux): human-readable API errors instead of raw api_error_NNN codes
apiFetch threw new Error(api_error_<status>), so any UI fallback to (e).message showed a cryptic code, and some flows surfaced bare codes like slug_taken. Added a central humanizeError() in lib/api.ts: prefers the backend detail sentence, then a mapped friendly message per known code, then a status-based fallback - never a raw code. apiFetch now sets the thrown error message via it, so every (e).message fallback across the app becomes a real sentence. Wizard analyze/build now use humanizeError directly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 21:08:39 +02:00
..
api.ts fix(ux): human-readable API errors instead of raw api_error_NNN codes 2026-05-31 21:08:39 +02:00
cn.ts feat(web): Next.js 15 shell — design tokens, landing, auth pages 2026-05-19 00:30:20 +02:00
install-snippets.ts fix(oauth): allow generic RFC 7591 DCR + expand install snippets 2026-05-28 17:20:01 +02:00
seo.ts fix(pricing): every tier claim now true or honest; build real priority queue 2026-05-31 13:33:41 +02:00
templates-server.ts @ 2026-05-31 12:08:05 +02:00