AddThisFeature

Better Error States

Tell people what broke and what to do about it.

simple UI & Polish

What it adds

Error states that explain what failed, whether it's the user's fault, and what to try next.

What your agent is told to do

4
  1. 1

    Find every place the app can fail: failed fetches, 404s, 500s, permission denials, validation errors, offline.

  2. 2

    Distinguish them. 'Not found', 'not allowed', 'we broke', and 'you're offline' need different copy and different actions — a generic 'Something went wrong' is a dead end.

  3. 3

    Always offer a way forward: retry, go back, or contact support.

  4. 4

    Never show a raw exception, stack trace, or status code to a user. Log those; show a human sentence.

Edge cases it handles

4
  • A retry must actually re-run the failed request, not reload the whole page.
  • Repeated failures must not spam the user with identical errors.
  • An error inside a small widget must not take down the whole page — scope the boundary.
  • Offline is not a server error. Detect it and say so.

Definition of done

7
  • Every failure mode has its own state and its own copy.
  • No raw exceptions or status codes are shown to users.
  • Every error offers a next action.
  • A widget-level failure does not blank the page.
  • Errors are logged where developers can see them.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.