TypeScript · medium
The API helper eats every failure and returns null. The UI draws an empty success state while ops pages a real 500. On failure, fetchOrder must reject: do not launder errors into silence.
Success still returns the order; failures must surface, not become silent null. fetchOrder(1) → { id: 1 }. fetchOrder(500) rejects with a message containing ORDER_500.
workspace/
└── src/
└── api.ts (catch → null; UI shows "success")With sharpen installed, this command opens exactly this challenge in your local arena:
sharpen 29
First time? The full install is right below.
npm install -g @juanwmedia/sharpen sharpen 29 npx @juanwmedia/sharpen 29 sharpen update