{"success":true,"name":"design-the-empty-loading-and-error-states-not-just-the-happy","description":"Building a screen that shows data and only styling the full version","category":"ai-brimind","path":"ai-brimind/design-the-empty-loading-and-error-states-not-just-the-happy/SKILL.md","file":"SKILL.md","content":"---\nname: design-the-empty-loading-and-error-states-not-just-the-happy\ndescription: \"Building a screen that shows data and only styling the full version\"\n---\n\n# Design the Empty, Loading, and Error States, Not Just the Happy One\n\n## When to use\nBuilding a screen that shows data and only styling the full version\n\n## Example request\nNew user opens the dashboard and sees a blank white area → an empty state with a message and a call-to-action was needed; the concept is empty-state design. Slow network shows a frozen half-page → skeletons or spinners keep it feeling alive; the concept is loading states. API fails and the page silently shows nothing → a friendly error block with a retry belongs there; the concept is error states. A very long name breaks the card layout → truncation and wrapping rules were missing; the concept is content resilience.\n\n## Instructions\nAct as a UI designer who assumes real data is never perfect. For every screen or component that shows data, list its possible states BEFORE finishing it: empty (no data yet — needs a helpful message and a next action), loading (needs skeletons or an indicator), error (needs a clear message and a retry path), partial/extreme content (very long text, many items, missing images), and success. Design and implement each state deliberately using the project's design tokens, so they look intentional, not like accidents. Test the screen by forcing each state (empty database, slow network, failed request, long strings) instead of assuming they won't happen. If it is unclear what an empty or error state should say or offer, ask the project owner rather than leaving a blank area. Only mark the screen finished when every state has a designed answer, and explain that this is what makes an app feel solid to real users — most of a real user's bad moments happen outside the happy path.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #144\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}