UNIFIED ATLAS · 8 CATEGORIES · 69 LIVE DEMOS

69 Product & Engineering Concepts
Interactive Demo Atlas

69 interactive demos organized into 8 themes, merged and deduplicated from @poteto (12 terms) ↗ and @chenchengpro (63 terms) ↗.

Showing a single category
CATEGORY 01 / 08 · Responsiveness & Perceived Speed · 8 Terms

Responsiveness & Perceived Speed

You can't zero out network latency, but skeleton screens, SWR, intent prefetching, optimistic UI, and the 400ms threshold dramatically improve how fast an interface feels.

Same 1600ms Real Duration · Perceived Speed Race 0 / 1600 ms
❌ Blocking Spinner WaitReady
Click below to start
✅ Progressive StreamingReady
Click below to start
01 / 69 · RESPONSIVENESS

perceived latency

Subjective Wait Feel

What makes an interface feel "slow" is rarely the raw millisecond count—it's the anxiety of staring at a blank screen with no immediate sign of life.

  • Key levers: Instant press feedback (<16ms), skeleton screens, streaming renders, prefetching, and optimistic updates can make the exact same 1.6s wait feel nearly instant.
  • Psychology: Occupied, progressive waits where the eye already has structure to scan subjectively feel about half as long as blank waits.
Prompt for AIAPI latency can't be reduced further right now—lower perceived latency with a first-frame skeleton screen, progressive streaming, and immediate press feedback.
Nielsen's 3 Thresholds · Click to Feel
Waiting for click…
≤ 0.1sFeels like direct manipulation; no loader needed
≤ 1.0sNoticeable pause, flow intact; show subtle status
> 1.0s (10s flow loss)Attention breaks! Show determinate progress & cancel
02 / 69 · RESPONSIVENESS

response time limits

0.1s / 1s / 10s Thresholds

Jakob Nielsen's three perceptual boundaries—0.1s (instant), 1s (flow intact), and 10s (attention lost)—dictate which feedback pattern belongs on screen.

  • Anti-pattern: Flashing a full-screen spinner for a 60ms request adds jarring visual flicker (delay spinners by at least 200–300ms).
  • Long-task rule: Past 2–3s, show determinate progress or ETA; past 10s, let the task run in the background with a notification.
Prompt for AIDesign loading feedback around Nielsen's response time limits: stay silent under 100ms, fade in a subtle skeleton or status after 300ms, and show a cancellable progress bar past 3s.
The 400ms Line · Rapidly Switch Filter Tabs
Current View: All (24 items) Click rapidly across the tabs above to feel the rhythm gap between 110ms and 680ms
Interaction Flow Index 96% · In Sync
03 / 69 · RESPONSIVENESS

Doherty threshold

The 400ms Flow Line

IBM's 1982 research showed that when system response stays under 400ms, human and computer lock into a tight feedback loop and productivity jumps nonlinearly.

  • Product takeaway: Tools like Linear, Superhuman, and Raycast feel addictive because 95% of core interactions stay well below 400ms (often under 50ms).
  • Engineering levers: Local search indexes, in-memory caches, optimistic mutations, and keyboard-first shortcuts.
Prompt for AIKeep end-to-end latency for list filtering and tab switching under the Doherty threshold (<400ms), using local in-memory filtering with incremental background sync if needed.
0ms Instant Update + Auto-Rollback on Error
Pessimistic UI
Optimistic UI
Click both like buttons (or check "Simulate 500 Error" to test rollback).
04 / 69 · RESPONSIVENESS

optimistic UI

Instant Update + Rollback

Bet on the 99% of writes that succeed: update the UI immediately, sync in the background, and cleanly roll back with an explanation in the 1% error case.

  • Three engineering hurdles: Reconciling temporary IDs, handling rapid-click race conditions (versioning/queues), and rolling back without clobbering newer successful edits.
  • Off-limits: Never fake success for payments, irreversible deletes, or high-failure operations.
Prompt for AISwitch like, bookmark, and checkbox toggles to optimistic UI, with race-condition handling for rapid clicks and lossless rollback on failure.
Three Loading States Side by Side
Switch modes above to compare layout shift on arrival
05 / 69 · RESPONSIVENESS

skeleton screen

Layout-Matched Placeholders

Draw a muted placeholder outline that matches the exact geometry of the incoming content—easing wait anxiety while eliminating layout shift (CLS) on arrival.

  • Key craft: Match real content heights as closely as possible and keep the shimmer calm (a slow wave feels faster; frantic pulsing breeds anxiety).
  • Anti-pattern: Flashing a skeleton for content that arrives in 80ms turns loading into visual strobing.
Prompt for AIReplace the loading spinner with a skeleton screen matched 1:1 to the real card dimensions so there is zero layout shift when data arrives.
Instant Cache + Silent Background Refresh
📊 Today's Dashboard ● Ready
Active Users: 1,240
Click "Re-enter Page" below to see 0ms cached render + background refresh
06 / 69 · RESPONSIVENESS

stale-while-revalidate

Cached First, Fresh in Background

Render the last cached snapshot at 0ms the moment a view opens, while quietly fetching fresh data in the background and merging it in seamlessly.

  • Origin: Born as an HTTP Cache-Control directive (RFC 5861) and popularized across frontend data layers by TanStack Query and Vercel SWR.
  • Boundary: Ideal for dashboards, feeds, and lists; unsuitable for strict real-time balances or live ticket inventory where stale numbers mislead users.
Prompt for AIUse a stale-while-revalidate strategy for this frequently revisited list view: render local cache at 0ms, revalidate silently in the background, and merge updates smoothly.
Preload on Hover for 0ms Click-to-Open
Hover the card above for 0.5s before clicking, then compare with Prefetch OFF!
07 / 69 · RESPONSIVENESS

prefetch on intent

Preload Before the Click

Between moving a cursor onto a target and completing the click lies a 150–400ms golden window—fire the request early so the data is waiting when the click lands.

  • Intent signals: Desktop mouseenter / pointerdown, mobile viewport entry via IntersectionObserver, or search-input pause prediction.
  • Restraint: Only prefetch lightweight, idempotent GET requests, and disable automatically under saveData or poor connectivity.
Prompt for AIAdd prefetch on intent to detail links (trigger data and chunk preloading after an 80ms hover delay or on pointerdown) so clicking opens in near-0ms.
Spend Your Motion Budget on the Reveal
Notice which approach feels like a faster product
08 / 69 · RESPONSIVENESS

animate the result, not the wait

Save Motion for the Reveal

Overly elaborate spinners trap the user's attention on the fact that they're waiting. Spend that motion budget on the 250ms where the result gracefully arrives—what lingers is lightness and polish.

  • Anti-pattern: Building an elaborate 3D spinning logo loader, only for the actual content to snap harshly onto the screen.
  • Better craft: Keep the wait ultra-quiet (subtle breath or static skeleton), then welcome the result with a gentle slide-and-fade staggered reveal.
Prompt for AIFollow "animate the result, not the wait": strip out the flashy loading spinner in favor of a quiet pending state plus a crisp, staggered entrance animation when result cards arrive.
CATEGORY 02 / 08 · Motion, Game Feel & Tactile Craft · 9 Terms

Motion, Game Feel & Micro-Interactions

From @poteto's coyote time, impact frames, and hitstop to frequency-gated motion, easing curves, interruptible springs, and rubber-banding.

Running toward the cliff…
09 / 69 · GAME FEEL → UI FORGIVENESS

Coyote Time

Edge-Grace Forgiveness

Allowing a jump to still register for 80–150ms after stepping off a ledge—a tiny bit of "physics cheating" that makes controls feel extraordinarily responsive.

  • Origin: Named after Wile E. Coyote in Looney Tunes, hovering in mid-air for a beat past the cliff edge before falling.
  • Why it's essential: Strictly accurate edge detection feels to humans like a dropped input. Often paired with Jump Buffering (queuing a jump pressed just before landing).
📱 UI Interaction Mapping · Input Forgiveness
Submenu safe triangles & hover grace periods: Moving diagonally toward a submenu briefly crosses a sibling item without collapsing the menu. The same principle powers 44pt expanded hit targets around 24px icons, forgiving swipe-back thresholds, and brief post-delete Undo windows.
Prompt for AI Add 150ms of coyote time (grace period) and a hover safe triangle to this cascading submenu / drag gesture so slight boundary drifts don't collapse it immediately.
1x Normal Speed
10 / 69 · ANIMATION CRAFT → PEAK UI FEEDBACK

Impact Frame

High-Contrast Peak Flash

Inserting 1–3 frames of extreme high-contrast black-and-white silhouette or inverted abstraction at the peak of an impact—too brief to read consciously, yet unmistakable to the visual cortex as raw energy.

  • vs. Hitstop: Hitstop bends time (freezing frames to sell weight), while Impact Frame spikes contrast and composition (selling energy). They frequently work together.
  • Accessibility floor: Always honor prefers-reduced-motion and avoid rapid flashing that can trigger discomfort.
📱 UI Interaction Mapping · Instant High-Contrast State Anchor
iOS screenshot shutter flash and Apple Pay / Face ID confirmation rings: Switch to "📱 Pay / Shutter UI" and turn on 0.2x Slow-Mo to clearly see the punch added by 2 high-contrast impact frames over a plain fade-in.
Prompt for AI Add a restrained 1–2 frame high-contrast impact frame flash at the climax of payment confirmation / capture, degrading gracefully to a simple fade under prefers-reduced-motion.
Frequency Gating · Rapid-Click to Watch Duration Decay
Task Card #1
Rapid-click "Next Item" 5+ times to watch animation duration adaptively decay!
Animation duration: 300ms
11 / 69 · MOTION

frequency-gated motion

Less Motion for Frequent Actions

Animations seen once a day can afford ceremony; actions triggered 20 times a minute must feel near-instant.

  • Golden rule: Motion duration should scale inversely with interaction frequency—400ms feels great on onboarding or checkout, while anything over 100ms on tab switches, command palettes, or arrow-key navigation feels maddening.
  • Pro technique: Detect rapid input bursts and automatically collapse transitions to 0–50ms until the streak ends.
Prompt for AITier animations using frequency-gated motion: eliminate transitions (≤60ms) on keyboard navigation and high-frequency switches, reserving gentle motion for rare, high-stakes state changes.
Three Easing Curves Racing (Exact Same 650ms)
12 / 69 · MOTION

ease-out vs ease-in

Fast Start vs. Slow Start

Always enter with ease-out (fast start, soft landing) and exit with ease-in (accelerate away)—a snappy takeoff makes the UI feel immediately responsive.

  • Why ease-in fails on entry: ease-in drags off the line like a lead weight, tricking users into thinking the click lagged for 150ms.
  • Go-to curves: Enter with cubic-bezier(0.16, 1, 0.3, 1); exit faster (around 70% of the entrance duration).
Prompt for AISwitch all modal and drawer entrances from linear/ease-in to a crisp ease-out curve (e.g. cubic-bezier(0.16,1,0.3,1)), and use a shorter ease-in for exits.
Interruptible Spring · Click Rapidly Anywhere to Redirect
Click rapidly around the canvas above to compare locked input vs. fluid mid-flight redirection
13 / 69 · MOTION

interruptible animation

Mid-Flight Velocity Handoff

When a user changes their mind mid-transition (e.g., closing a drawer halfway open), the UI must inherit current velocity and reverse smoothly—never lock input or snap abruptly.

  • Under the hood: Duration-based keyframes are notoriously hard to interrupt cleanly; physics-driven springs naturally preserve position and momentum when the target changes mid-flight.
  • Gold standard: Swiping up on iOS while an app is halfway through launching reverses seamlessly without a single dropped beat.
Prompt for AIMake this drawer/popover an interruptible animation driven by spring physics instead of a locked fixed-duration transition, so reversing mid-flight feels completely fluid.
Spatial Continuity · Click Corners to Watch Growth Origin
Quick Menu
Your eye tracks where it came from and where it returns.
14 / 69 · MOTION

spatial continuity / transform-origin

Anchor Motion to Its Trigger

Elements should expand from the exact control that summoned them and collapse back into it, so the user's brain never has to rebuild its mental map of the screen.

  • Instant CSS win: Setting a dropdown's transform-origin to top left or top right instead of the default center immediately elevates polish.
  • Next level: Shared Element Transitions / View Transitions API (e.g., a thumbnail expanding directly into its full hero view).
Prompt for AIAudit all popovers and menus for spatial continuity: anchor transform-origin to each trigger button's edge instead of scaling out of thin air from the center.
Drag List Past Boundary (or Click Simulate)
📩 Inbox Top EdgeDrag down past limit ↓
Design Review Notes10:24
iOS TestFlight Build Ready09:12
Weekly Metrics DigestYesterday
Offset: 0px (progressive resistance)
15 / 69 · MOTION

rubber-banding

Elastic Overscroll Resistance

Instead of hitting a dead brick wall at a scroll boundary, resistance increases nonlinearly the harder you pull, then springs back gently on release—tactilely communicating "you've reached the edge."

  • Classic formula: Apple's well-known damping curve (1 - 1 / (x * c / d + 1)) * d grows stiffer with distance and asymptotically caps displacement.
  • Where it shines: Scroll container edges, draggable bottom sheets pulled past max height, and slider overscroll micro-feedback.
Prompt for AIAdd nonlinear rubber-banding resistance and a spring snap-back when this draggable Bottom Sheet is pulled past its top limit, replacing the hard clamp.
Full Spatial Motion vs. Gentle In-Place Fade
✨ Notification Card
Clear state change, zero dizzying travel
16 / 69 · MOTION

reduced motion

Gentle Fade Over Spatial Travel

Large translations, parallax scrolling, and zooming transitions can trigger vestibular discomfort. Honoring prefers-reduced-motion doesn't mean removing all feedback—it means replacing spatial movement with calm in-place fades.

  • Common mistake: Globally nuking every transition to 0ms makes state changes jarring; keeping a subtle 150ms opacity fade preserves clarity comfortably.
Prompt for AIAdd prefers-reduced-motion: reduce media queries to all spatial transitions, gracefully degrading them to in-place opacity fades rather than stripping feedback outright.
Hitstop & Micro-Interactions · Dry vs. Juicy Completion
Click above to feel: 50ms press compression + spring rebound + celebration burst
17 / 69 · MOTION

hitstop / juice

Micro-Pause & Tactile Polish

Juice is the crisp tactile satisfaction layered on top of unchanged core logic—subtle press squash, a micro-hitstop, spring rebound, particles, and optional sound or haptics.

  • Use with restraint: Save juice for milestones worth celebrating (clearing a checklist, shipping a release, hitting a streak)—never fire confetti on everyday buttons.
Prompt for AIAdd restrained juice to the "Release Shipped / All Tasks Done" milestone action: a 50ms press micro-pause, a springy check rebound, and a subtle particle burst.
CATEGORY 03 / 08 · Information Architecture & Navigation · 10 terms

Information Architecture & Navigation

Core interaction laws, information scent, affordances & signifiers, mental models, empty states, and keyboard-first command palettes.

Compare cognitive load: flat dump vs. layered reveal
Cognitive load25% · Core essentials
PrinterHP
Copies1 copy
ColorB&W
18 / 69 · INFO & NAV

progressive disclosure

Reveal complexity on demand

Surface the 20% of controls needed for 80% of tasks by default, and tuck rare advanced parameters into an expandable secondary layer.

  • AI-era parallel: Agent Skills expose only a one-line summary upfront and load full instructions on match — progressive disclosure for the context window.
Prompt for AIApply progressive disclosure to this form: keep only the 3 highest-frequency fields visible upfront and tuck the rest inside a collapsible "Advanced options" section.
Goal: Reset SSH key · Hover to test scent
Hover or focus a card to check pre-click scent confidence; click to test hitting SSH keys.
19 / 69 · INFO & NAV

information scent

Clear cues before clicking

Like foragers following a trail, users rely on labels, breadcrumbs, and subtitles to predict whether a link holds what they want — when the scent fades, users bounce.

  • Partner to progressive disclosure: a collapsed menu without strong scent is just a black hole hiding your features.
Prompt for AIStrengthen the navigation's information scent: replace vague labels like "General / More / Other" with front-loaded keywords plus a one-line subtitle stating what lives inside.
What is clickable? What is draggable? Can you tell?
20 / 69 · INFO & NAV

affordance / signifier

Visible cues for action

Affordance is what an object can do (be dragged, be clicked); Signifier is the visible cue that communicates it (a drag handle ⋮⋮, underline, or raised button).

  • Over-flattened trap: styling a button to look identical to plain body text keeps the affordance while stripping away the signifier.
Prompt for AIAdd clear signifiers to this sortable list: include a ⋮⋮ drag handle, hover highlight, and cursor: grab so users immediately recognize it can be reordered.
Compare: typing codes from memory vs. picking visually
21 / 69 · INFO & NAV

recognition over recall

Spot answers, skip memorization

Spotting the right choice in a list is effortless, while reciting exact syntax or IDs from memory is painful — keep options visible, filterable, and backed by recent items.

  • Practical patterns: recent queries in search bars, autocomplete in code editors, and visual thumbnail previews instead of raw parameter names.
Prompt for AIFollow recognition over recall: replace the free-text format/code input with a searchable dropdown that shows visual previews and recent choices.
Timed test: click "Export PDF" as fast as you can
4 items: -- vs 20 items: --
Click "Start Trial" first, then hit "Export PDF" as fast as you can!
22 / 69 · INFO & NAV

Hick's law

Fewer choices, faster decisions

Decision time grows logarithmically with the number of options: RT = a + b · log₂(n + 1). More choices mean longer hesitation and lower conversion.

  • How to tame it: group related actions, highlight a recommended default, or split into a multi-step wizard instead of dumping 20 peer buttons at once.
Prompt for AITrim this toolbar using Hick's law: surface only the 4 most frequent actions with a highlighted primary option, and group the rest into a secondary menu.
Fitts's law: time a small/far target vs. big/near
Click "Start" on the left, then immediately hit the target to compare time & difficulty!
23 / 69 · INFO & NAV

Fitts's law

Closer and bigger wins

Time to acquire a target grows logarithmically with the distance-to-size ratio: MT = a + b · log₂(D/W + 1) — make frequent primary actions big and close, and keep destructive actions smaller and farther away.

  • Screen-edge bonus: desktop corners and top edges have "infinite depth" because the pointer stops at the bezel (why macOS's menu bar is effortless to hit); on mobile, the thumb sweet spot sits in the lower half.
Prompt for AIOptimize hit targets using Fitts's law: place primary mobile actions in the bottom thumb zone at ≥44×44pt, and separate destructive delete buttons from the main submit CTA.
Navbar test: quirky "innovation" vs. convention
24 / 69 · INFO & NAV

Jakob's law

Honor familiar UI patterns

Users spend 99% of their time on other sites and apps, so they expect your product to work the same effortless way as the tools they already know.

  • Don't reinvent basic chrome: logo top-left for home, search in the top bar, cart/avatar top-right, ⌘K for quick search — save your originality for core product value.
Prompt for AIFollow Jakob's law: use standard web/OS conventions for the navbar, shortcuts, and form controls rather than inventing unfamiliar layouts that add learning overhead.
Database schema model vs. user mental model
25 / 69 · INFO & NAV

mental model

Match how users think

Every user carries an internal picture of how a system works. The closer the UI aligns with that mental model (not your backend tables), the smoother onboarding feels.

  • Classic mismatch: exposing a backend table like ACL_Policy_Binding directly baffles everyday users; reframing it as "Who can view or edit this doc" clicks instantly.
Prompt for AIStop exposing backend schema terms and internal jargon; reorganize the labels and workflows around the user's mental model.
First impression when there is zero data
26 / 69 · INFO & NAV

empty state

Guide the first step

The very first screen a new user sees is almost always empty. An empty state isn't "No data" — it's an onboarding springboard that explains value and invites action.

  • Three essentials: (1) one line explaining what will live here; (2) one clear primary CTA (create/import); (3) a one-click sample template to dissolve blank-page anxiety.
Prompt for AIDesign a guided empty state: explain the value of this view, provide one clear primary creation CTA, and include a "Try with sample data" shortcut.
Command palette: type to filter, ↑ ↓ Enter to run Press ⌘K anywhere on this site too
Power users keep their hands on the keyboard and reach deep actions in under 3s (Esc to clear).
27 / 69 · INFO & NAV

keyboard-first / command palette

Hands stay on keys

Let heavy users drive every workflow without lifting their hands off the keyboard; a ⌘K command palette flattens hundreds of nested commands into 0.5-second fuzzy search.

  • Dogfooding in action: press ⌘K anywhere on this guide to jump straight to any of the 69 concepts.
Prompt for AIAdd keyboard-first navigation and a global ⌘K command palette: support fuzzy search across all frequent actions, ↑↓ selection, Enter execution, and shortcut hints beside menu items.
CATEGORY 04 / 08 · Error Tolerance & User Trust · 8 terms

Error Tolerance & User Trust

Undo over confirm dialogs, poka-yoke safeguards, complete state coverage, graceful degradation, idempotency, autosave, and local-first architecture.

Delete email: nagging modal vs. instant delete + Undo
Email deleted
28 / 69 · ERROR & TRUST

undo over confirm

Reversible beats modal nagging

Users reflexively click "OK" on confirmation popups, so modals break flow without actually stopping slips. Making actions reversible with a clear Undo bar is both faster and genuinely safer.

  • Where modals still belong: truly irreversible, high-blast-radius actions (company-wide email blast, dropping a production DB) warrant explicit confirmation or delayed send (like Gmail's 5-second Undo Send).
Prompt for AIRefactor list archive/delete using undo over confirm: drop the blocking confirmation modal, apply the action immediately, and show a toast with a 5-second Undo button.
Structural safeguard: deleting a prod database Type prod-db to unlock
⚠️ Permanently delete database prod-db
Inspired by Japanese mistake-proofing: make accidental triggers structurally impossible.
The dangerous button stays locked until the exact name is typed.
29 / 69 · ERROR & TRUST

poka-yoke

Make mistakes structurally impossible

Borrowed from Toyota lean manufacturing (reversible USB-C plugs, microwaves that halt when opened): design constraints so silly mistakes can't happen in the first place instead of scolding users afterward.

  • Software examples: disabling return dates earlier than departure, requiring repo-name entry before deletion, and auto-grouping credit card digits while blocking letters.
Prompt for AIAdd poka-yoke constraints to this date-range picker and destructive deletion flow so invalid ranges and accidental deletes are prevented at the source.
Live check: submit typo email alice@gmial.com
Click "Sign up" to compare a hostile error against actionable recovery.
30 / 69 · ERROR & TRUST

error prevention / recovery

Preserve input, offer fixes

A great error message answers three questions — what went wrong, why it happened, and how to fix it right now — and never wipes the form the user just filled out.

  • Classic touches: catching email typos (gmial.com → one-click fix to gmail.com), and offering "Retry while keeping your draft" when a request drops.
Prompt for AIImprove error handling for error prevention / recovery: never clear user input, translate raw error codes into plain language, and attach a one-click fix or retry action.
Toggle all 6 real-world states (don't design only the ideal!)
31 / 69 · ERROR & TRUST

complete state coverage

Design beyond happy paths

Mockups usually show a tidy 3-item list with crisp 2-word titles; what breaks production is always empty, slow, errored, missing fields, and 80-character names.

  • Pre-ship 6-state checklist: Ideal / Empty / Loading / Partial / Error / Overflow (extreme strings and narrow viewports).
Prompt for AIGive this card component complete state coverage: implement dedicated empty, loading, error, partial-data, and long-text truncation states.
Inject a non-core failure — does checkout survive?
● CORE PATH Checkout & payment 100% healthy
● AI Recommendations Personalized feed
500 White-Screen Crash The recommendations timeout dragged the entire checkout page down with it!
32 / 69 · ERROR & TRUST

graceful degradation

Isolate failures, protect core

When peripheral services fail, bandwidth drops, or hardware is constrained, fall back locally and keep the core journey alive.

  • React in practice: wrap non-essential widgets in isolated ErrorBoundary components so one broken chart never crashes the whole screen.
Prompt for AIWrap each secondary module in its own error boundary with a cached fallback to achieve graceful degradation, ensuring peripheral API failures never take down the core flow.
Simulate 3 flaky-network retries for a $99 charge
Charged: $0
Click the button on the left to watch what happens when 3 identical requests hit the server.
33 / 69 · ERROR & TRUST

idempotency

Safe retries, zero duplicates

Running the same operation once or ten times yields the exact same outcome — the foundation that makes auto-retries and frantic double-clicks completely safe.

  • Standard pattern: generate a unique client Idempotency-Key (UUID) per write intent; the server caches the first result and replays it on retries instead of double-charging or duplicating orders.
Prompt for AIAdd idempotency to this order/payment endpoint: generate and send a client Idempotency-Key and deduplicate on the server so flaky retries never cause duplicate side effects.
Autosave: type notes, then simulate a tab crash
● Draft saved locally
34 / 69 · ERROR & TRUST

autosave / no lost work

Never lose user input

Losing half an hour of writing to a browser crash or stray back-swipe is the fastest way to lose a user's trust forever.

  • Cheapest safety net: debounce-write drafts continuously to localStorage / IndexedDB, restore automatically on return, and show a subtle "Draft restored" badge.
Prompt for AIAdd autosave / no lost work to long forms and editors: debounce-save drafts to local storage while typing, restore automatically after a crash or refresh, and clear upon submit.
Go offline on the right and keep working seamlessly
Local-first engine: reads & writes hit local DB first (0ms), then sync in the background when back online.
35 / 69 · ERROR & TRUST

local-first

Instant local, sync later

Treat the on-device database as the primary source of truth and use the cloud for background sync and backup — editing stays 0ms-smooth on flights and subways instead of being held hostage by spotty Wi-Fi.

  • Notable examples: Linear, Obsidian, Figma, and Apple Notes — often powered under the hood by sync engines and CRDT conflict resolution.
Prompt for AIEvaluate making the core notes/tasks module local-first: write to local IndexedDB/SQLite for instant feedback and sync incrementally to the cloud via a background queue.
CATEGORY 05 / 08 · Visual Consistency & Stability · 8 Terms

Visual Consistency & Stability

Layout stability, stable keys, visual hierarchy, design tokens, optical alignment, concentric radii, tabular numerals, and information density.

CLS shift: late banner pushes buttons down
📢 Late-loading promo banner (pushed the buttons down!)
Confirm Action
Waiting…
36 / 69 · VISUAL STABILITY

layout shift (CLS)

Unexpected layout jumps

When async images, fonts, or banners load in and shove the page downward, users aim for "Cancel" and accidentally hit "Charge"—instantly breaking trust.

  • The fix: Always set width/height or aspect-ratio on images and video, reserve fixed-height skeletons for async modules, and pair font-display: optional/swap with metric overrides.
Prompt for AIAudit the page for layout shift (CLS): reserve an explicit aspect-ratio or fixed min-height for every async image and banner so content arrives with zero jump.
Stable keys: edit "Banana" note, then prepend a row
With index keys, prepending a row causes the note you typed for "Banana" to jump onto "Mango"!
37 / 69 · VISUAL STABILITY

stable identity

Persistent list keys

When lists reorder, insert, or filter, every row needs a unique entity ID that stays constant across renders—otherwise inputs drift onto the wrong items, checkboxes scramble, and transitions break.

  • Golden rule: Never use array index or Math.random() as a React/SwiftUI/Vue key or id for dynamic lists.
Prompt for AIAudit stable identity across all dynamic lists: replace array index keys with stable entity IDs so local row state never drifts on insert or reorder.
Same exact copy—only size, contrast, and spacing change
38 / 69 · VISUAL STABILITY

visual hierarchy

Guided eye flow

When everything on the page shouts at the same volume, nothing gets heard. Use scale, weight, contrast, and whitespace to guide the eye in a clear 1 → 2 → 3 scan order.

  • In practice: Allow only 1 filled primary button per section, mute secondary metadata aggressively (avoid pure white/black everywhere), and group with whitespace instead of extra borders.
Prompt for AIStrengthen this card's visual hierarchy: make the headline and primary metric stand out, de-emphasize timestamps and secondary actions, and replace extra dividers with spacing.
Change one semantic token—every component updates
● ACTIVE Learn more ↗
Never scatter hardcoded hex colors (like #fb7185) inside components—always reference semantic tokens (like --color-accent).
39 / 69 · VISUAL STABILITY

design tokens

Semantic style variables

Abstract colors, radii, type sizes, and spacing into cross-platform semantic variables (like surface.elevated or text.muted) so theming, dark mode, and multi-platform parity become a one-line change.

  • Two-tier model: Primitive palette (gray-900) → semantic tokens (bg-surface); component code only consumes the semantic layer.
Prompt for AIReplace hardcoded colors and border radii with semantic design tokens so light/dark modes and every platform stay consistent.
Circular play button: visually centered
40 / 69 · VISUAL STABILITY

optical alignment

Visual center over math

Asymmetric shapes like a play triangle (▶) or round letterforms (O) look off-center when placed at exact mathematical center—nudge them 1–4px to balance visual weight.

  • Common spots: Nudge play icons right by 2–4px, tighten left padding slightly on icon-leading buttons, and optically hang oversized headings past the left text margin.
Prompt for AIApply optical alignment tweaks to the play icon and icon-leading pill buttons so they sit centered by visual weight rather than raw bounding box.
Drag slider: same radius vs. concentric formula
Inner Card
Outer R=26 P=14 → r = R − P = 12
41 / 69 · VISUAL STABILITY

concentric radius

Nested corner harmony

Using the same border-radius on nested containers makes the corner gap bulge awkwardly and look cheap; follow innerRadius = outerRadius - padding and the curve becomes effortlessly smooth.

  • Quick eye test: Inspect the corner gap—concentric radii keep the gap identical along the straight edges and around the bend.
Prompt for AIFix concentric radius on nested cards and image frames: compute inner corners via CSS variables using innerRadius = outerRadius - padding.
Tabular numerals: proportional jitter vs. rock-steady
❌ proportional-nums (Jitters)
11:11.11
88:88.88
1 is narrower than 8—columns misalign and shake
✅ tabular-nums (Rock-steady)
11:11.11
88:88.88
Every digit shares one width—crisp columns, zero jitter
Auto-cycling
42 / 69 · VISUAL STABILITY

tabular numerals

Fixed-width digits

For timers, live prices, percentages, and financial tables, a single line of font-variant-numeric: tabular-nums eliminates horizontal twitching and aligns columns cleanly.

  • Cross-platform: CSS font-variant-numeric: tabular-nums; SwiftUI .monospacedDigit(); Android Compose fontFeatureSettings = "tnum".
Prompt for AIApply tabular numerals (tabular-nums / monospacedDigit) to all countdowns, live metrics, and currency columns to prevent jitter and keep digits vertically aligned.
Same issue list: match density to user context
43 / 69 · VISUAL STABILITY

information density

Right density per task

Generous whitespace isn't automatically better: marketing pages need airy storytelling, while 8-hour daily tools (IDEs, terminals, issue trackers) thrive on disciplined high density.

  • Dense ≠ cluttered: Strong grid alignment, monospaced metadata, quiet borders, and clear hierarchy let one screen hold 3x the data while staying effortless to scan.
Prompt for AIThis is a high-frequency pro workspace—raise information density by trimming dead whitespace and nested cards so key statuses and actions scan in one screen.
CATEGORY 06 / 08 · Copy & Microcopy · 5 Terms

UI Copy & Microcopy

Microcopy, verb-first labels, one verb per action, letting the layout explain, and front-loading key information.

Microcopy: dissolve billing and cancellation doubts
44 / 69 · COPY

microcopy

Anxiety-easing micro-lines

Those 5–12 quiet words tucked under a button, inside a placeholder, or beside an error exist to defuse hesitation in the exact half-second a user pauses.

  • Highest-ROI spots: Phone fields ("Verification only—never marketing texts") and card-upfront trials ("$0 charged today; email reminder 3 days before renewal").
Prompt for AIPolish the microcopy around signup and checkout actions: add one crisp line that preempts the user's top worries about billing, privacy, and reversibility.
Dialog test: can you click from buttons alone?
45 / 69 · COPY

verb-first labels

Action-led button copy

Users skip dialog body text and scan only the buttons. Lead every button with a specific verb (e.g. "Discard draft", "Sign out")—never vague "Yes / No / OK".

  • Classic disaster: A dialog asks "Cancel your reservation?" above [Cancel] [OK]—which button cancels the reservation, and which cancels the dialog?
Prompt for AIReplace all "OK / Cancel / Yes / No" confirmation buttons with verb-first labels (like "Discard changes" and "Keep editing") so outcomes are unmistakable without reading the body.
Verb consistency across the same product
46 / 69 · COPY

one verb per action

Consistent action glossary

Across your entire product, assign exactly one verb to each semantic action and never swap in synonyms—otherwise users wonder if "Remove", "Clear", and "Delete" secretly behave differently.

  • Canonical trio: Delete = destroy permanently; Remove = unlink from this view (item still exists); Archive = hide while keeping recoverable.
Prompt for AIDefine a product verb glossary and enforce one verb per action: draw a hard line between "Remove" (unlink) and "Delete" (destroy), used consistently everywhere.
Cut 40 words of instructions with a visual control
47 / 69 · COPY

let the layout explain

Visuals over instructions

Whenever a screen needs three gray lines explaining "how this works", the fix is rarely better copy—it's a clearer layout or visual preview.

  • Gold standard: Instead of describing "Left sidebar vs. Top bar" or "Light vs. Dark", show clickable mini wireframes—zero explanatory copy, understood in 0.2 seconds.
Prompt for AIFollow let the layout explain: cut the long help paragraph and turn abstract layout/theme dropdowns into visual radio cards with live mini wireframes.
F-pattern scan: do the first 2 words tell the story?
48 / 69 · COPY

front-loading

Lead with the signal

People scan screens in an F-pattern, often reading only the first 2–4 words of each line. Push the outcome, status, and keyword to the front and ruthlessly cut filler lead-ins.

  • Before → After: "Regarding the payment request you submitted yesterday, review has failed" → "Payment failed: insufficient card balance (Ticket #402)".
Prompt for AIRewrite these notification titles and menu items with front-loading: put the status or action keyword in the first 2–3 words and strip filler prefixes like "Regarding" or "Click here to".
CATEGORY 07 / 08 · Product Judgment & Craft · 11 Terms

Product Judgment & Craft

11 core concepts for product trade-offs and daily polish—from JTBD, sensible defaults, and escape hatches to friction logs and dogfooding.

Same goal: Feature-first vs. JTBD outcome-first
49 / 69 · PRODUCT JUDGMENT

job to be done

Outcome Over Features (JTBD)

Users don't want a 6mm power drill—they hire your product to make a 6mm hole in the wall (or simply hang a picture straight).

  • Framing formula: "When a user is in [situation], they want to make [progress] so they can achieve [outcome]." Design around the job, not a feature checklist.
Prompt for AIRe-examine this requirement through a job to be done lens: what outcome is the user actually trying to achieve? Is there a more direct solution than adding a pile of config toggles?
New-user retention funnel comparison
50 / 69 · PRODUCT JUDGMENT

time to value / aha moment

Speed to First Value

TTV is the time from first launch to experiencing the core magic (the Aha Moment). Every signup wall or survey you put in front of it drops half your new users.

  • Playbook: Give users a playable sandbox or preloaded template first, and only ask them to sign up when they're ready to save their work.
Prompt for AICompress new-user time to value: move non-essential onboarding forms after the core aha moment, and provide a one-click live template right on the first screen.
Physics metaphor: where does the ball (user) naturally roll?
51 / 69 · PRODUCT JUDGMENT

pit of success

Effortless Path to Right

Great product and API design ensures that even if a user skips the docs and takes the laziest path, they still fall naturally into the right, safe outcome.

  • Anti-pattern: Tools that require reading 10 pages of docs and dodging 5 footguns just to get basic usage right.
Prompt for AIRedesign the default flow and API around a pit of success so the most intuitive, low-effort usage is automatically safe and follows best practices.
New deployment config: blank interrogation vs. ready to run
52 / 69 · PRODUCT JUDGMENT

sensible defaults

Thoughtful Out-of-the-Box Picks

90% of users never touch default settings. Making thoughtful default choices on their behalf is the kindest way to eliminate decision fatigue.

  • Rule of thumb: Never ask for what you can auto-detect (timezone, locale, theme, region), and prefill the option that fits 80% of use cases.
Prompt for AIAdd sensible defaults to every config option (auto-detect environment settings and prefill best-practice values) so users can run in one click without tweaking anything.
Visual filter builder + expert Raw SQL escape hatch
53 / 69 · PRODUCT JUDGMENT

escape hatch

Expert Low-Level Override

Clean abstractions and smart defaults feel great, but 5% of power-user needs will always outgrow them. Leave a direct low-level exit (Raw SQL, JSON, CLI, or custom CSS) so experts never hit a wall.

Prompt for AIKeep the visual configuration clean, but give power users an escape hatch (a toggle to edit raw JSON or expressions) so the abstraction never traps experts.
Onboarding barrier vs. capability ceiling across 3 tool types
54 / 69 · PRODUCT JUDGMENT

low floor, high ceiling

Easy Entry, Endless Depth

Think Excel, Figma, or VS Code: a beginner builds something useful in 5 minutes (low floor), while a pro can spend 5 years without hitting the top (high ceiling).

  • How to pull it off: Pair sensible defaults + progressive disclosure to lower the floor, and keyboard-first + escape hatch to raise the ceiling.
Prompt for AIDon't strip out pro capabilities just to look beginner-friendly. Design with a low floor, high ceiling approach: effortless out of the box, with shortcuts and scripting for advanced workflows.
Death by a thousand cuts: click annoyances to drain patience
User Goodwill HP 100 / 100
Each one looks like a minor P3 on its own—together, they quietly drive users away!
55 / 69 · PRODUCT JUDGMENT

paper cuts

Tiny Compounding Annoyances

Death by a thousand paper cuts: small blemishes too minor to make the roadmap, yet stinging users 20 times a day until they silently churn.

  • Top-team habit: Schedule a recurring "Paper Cut Sprint" or "Quality Friday" to batch-fix these 10-minute irritants.
Prompt for AIRun a paper cuts sweep across this flow: check focus management, ESC to dismiss, stray whitespace on copy, and filter-state persistence.
Friction log: tag severity across a 3-step onboarding journey 2 friction points logged
56 / 69 · PRODUCT JUDGMENT

friction log

First-Time User Stumble Diary

Walk through your product end-to-end as a total newcomer and log every moment you pause for 2 seconds, frown, make an extra click, or dig through docs—ten times truer than retrospective recall.

  • Google / Stripe classic: Every new hire writes a Friction Log in week one, capturing raw obstacles before they go blind to the product's quirks.
Prompt for AIAct as a first-time user walking through the core flow and write a severity-tagged friction log (🟢 Smooth / 🟡 Snag / 🔴 Blocker).
Three Kano curves + drag time slider to watch delighters decay Year 1
Time elapsed: Today's delighter → tomorrow's baseline
57 / 69 · PRODUCT JUDGMENT

Kano model (delighter)

Baseline vs. Delighter Curves

Features fall into three buckets: Must-bes (unpraised when present, infuriating when missing), Performance (faster/more is better), and Delighters (unexpected touches that spark word of mouth).

  • Brutal law: Delighters decay over time—autosave thrilled people a decade ago, and today missing it is an outage. Nail every must-be first, then add 1–2 delighters.
Prompt for AIPrioritize this backlog with the Kano model: which items are non-negotiable must-bes, and which 1–2 low-cost details can serve as memorable delighters?
Peak-end rule: same average score, ending seals the memory
58 / 69 · PRODUCT JUDGMENT

peak-end rule

Peak & Ending Dominate Memory

Nobel laureate Daniel Kahneman showed that people don't remember the average of an experience—they judge it by its emotional peak and how it ended.

  • Where to invest: Put your crispest micro-interactions and warmest feedback at the completion moment (deploy succeeded, inbox zero, export ready), and never let a flow die on an ugly error screen.
Prompt for AIApply the peak-end rule to polish the completion screen of this flow: add a crisp outcome summary, light celebratory motion, and an obvious next step.
Comparing bug-discovery feedback loop speed
59 / 69 · PRODUCT JUDGMENT

dogfooding

Use Your Own Product Daily

When engineers and PMs do real daily work inside their own product, getting annoyed by a sluggish button three times in a morning guarantees it gets fixed by the afternoon.

  • Watch the blind spot: Dogfooding catches latency and high-frequency rough edges fast, but teams go numb to onboarding friction—pair it with external friction logs.
Prompt for AIDesign a lightweight dogfooding feedback shortcut (e.g. shake or hotkey screenshot-to-issue in internal builds) so daily pain points turn into tickets in seconds.
CATEGORY 08 / 08 · Systems, Concurrency & Formal Logic in UI · 10 Terms

Systems & Formal Correctness

10 backend and concurrency concepts that directly hit UI—race conditions, debounce/throttle, P99, cold starts, backpressure, eventual consistency, plus liveness, deadlock freedom, linearizability, and vacuous truth.

Classic search race: slow response arrives late and overwrites fresh results!
Current search input: "react"
Click below to simulate: slow request "r" (1.1s), then 100ms later fast request "react" (0.3s)
60 / 69 · SYSTEM → UI

race condition / last-write-wins

Out-of-Order Response Overwrite

Network responses don't return in the order they were sent. Letting whoever arrives last overwrite the UI (Last-Write-Wins) leaves the input showing "react" while the list suddenly flips back to "r".

  • Standard frontend fix: Cancel stale requests with AbortController, or track a monotonic requestId and drop late responses.
Prompt for AIFix the search autocomplete and tab-switch race condition: use AbortController or an incrementing request sequence ID to discard late responses and prevent last-write-wins overwrites.
Spam the button on the right and compare all three event tracks live!
Top: Raw events · Mid: Throttle (fixed cadence) · Bottom: Debounce (fires after pause)
61 / 69 · SYSTEM → UI

debounce / throttle

Event Rate Shaping

Debounce waits until input stops for e.g. 300ms before firing once (search typeahead, autosave); Throttle lets at most one call through every 200ms no matter how fast events fire (scroll, resize).

  • Don't swap them: Debouncing scroll makes infinite lists feel frozen until you stop; throttling search fires wasted requests mid-word.
Prompt for AIAdd a 250ms debounce to search input and throttle the scroll/resize listeners so rapid bursts don't flood the API or main thread.
Tail latency: P50=45ms looks rosy, but fan-out hits P99 Chance of hitting P99: 18.2%
Parallel requests per page N=20 Formula: 1 - 0.99^N
62 / 69 · SYSTEM → UI

tail latency (p99)

Slowest 1% Fan-Out Cost

Averages and P50 hide the painful slowest 1%. When a page fires 20 requests in parallel, the odds of hitting a P99 spike jump to 18% (roughly 1 in every 5 loads stalls).

  • Classic paper: Jeff Dean's The Tail at Scale. Cut request waterfalls and stream cards independently so one slow call never blocks the whole screen.
Prompt for AIDon't stop at average latency—track tail latency (p99) and decouple parallel page dependencies so a single slow tail request can't stall the entire first render.
Serverless / App first cold start vs. warm reuse
Waiting for request… 0 ms
🟥 Container boot🟨 Init deps🟩 Actual logic
63 / 69 · SYSTEM → UI

cold start

First-Boot Startup Tax

Spinning up a serverless function, edge worker, or heavy client from zero often takes 1–3 seconds—and that sluggish first hit is a new user's very first impression.

  • Mitigations: Trim boot-time bundles, lazy-load heavy modules, keep a warm instance pool, and pair cold paths with tailored skeletons or prefetching.
Prompt for AIProfile the cold start bottleneck on first load and serverless APIs: split out heavy init dependencies or pre-warm an instance pool before login.
500 msg/s log stream flooding a UI render pipeline
Backpressure active: batching on a 60fps budget keeps the queue flat and UI smooth
64 / 69 · SYSTEM → UI

backpressure

Downstream Flow Control

When upstream produces far faster than downstream can consume (like a WebSocket pushing 500 terminal logs or ticks/sec), the consumer must push back—slowing, batching, or dropping stale frames—or the queue blows up and freezes the page.

  • Essential for live dashboards & terminals: Batch renders with requestAnimationFrame and cap memory with a Ring Buffer instead of calling setState on every message.
Prompt for AIAdd backpressure to this live stream subscription: use a bounded buffer and batch UI updates per rAF frame so high-frequency pushes can't lock up the main thread or memory.
Write US-East primary → replicate to Tokyo replica (~1s lag)
US-East Primary (Write)
🐱
Version v1
AP-Tokyo Replica (Read)
🐱
Version v1
Click top-right to change the avatar and watch replication lag briefly show the old image on refresh!
65 / 69 · SYSTEM → UI

eventual consistency

Delayed Replica Convergence

Distributed replicas don't stay identical millisecond-for-millisecond; they only guarantee that once writes stop, every node will eventually converge to the same value.

  • How UI covers the gap: Seeing an old avatar right after saving feels broken. Layer Read-Your-Writes or a short-lived local optimistic cache in the client to mask replication lag.
Prompt for AIBackend eventual consistency makes users see stale values right after saving. Add a client-side read-your-writes cache or brief primary-read sticky window to mask replication lag.
Safety ✅ (No crash) · Liveness ✅ (Traffic flows)
66 / 69 · FORMAL METHODS → UI STATE MACHINE

Liveness

Guaranteed Forward Progress

Safety promises "nothing bad ever happens," while Liveness promises "something good eventually happens." Optimize only for safety and a completely frozen app scores 100%.

  • Key distinction: Safety violations can be caught by a finite counterexample; liveness violations only surface over infinite runs (hard to tell "stuck forever" from "just really slow").
  • Prerequisite: Liveness always depends on scheduler or network fairness assumptions.
📱 UI Interaction Mapping · The Infinite Loading Overlay
To prevent double charges (Safety), you set isLoading = true on click—but forget finally { setLoading(false) } on error or cancel. Nothing double-submits, yet the screen is trapped behind a spinner forever: a classic UI liveness failure.
Prompt for AI Beyond preventing duplicate submits (safety), audit this form and modal state machine for liveness: every error, timeout, or cancel path must guarantee the loading overlay eventually clears.
Completed tasks: 0
67 / 69 · CONCURRENCY → MODAL & LAYOUT LOOPS

Deadlock Freedom

No Circular Wait Stalls

The system must never freeze in a cycle of mutual lock waiting; breaking any one of the four Coffman conditions—most commonly via a global lock order—eliminates circular wait.

  • Progress hierarchy: Deadlock-free < Starvation-free < Lock-free < Wait-free.
  • Watch for Livelock: Both sides stay frantically active while making zero forward progress.
📱 UI Interaction Mapping · Modal Focus Deadlock & Scrollbar Livelock
UI Deadlock: Modal A's backdrop blocks clicks to Modal B, while Modal B's focus trap locks global interaction—neither can be dismissed (fix: a single Modal Queue).
UI Livelock: A ResizeObserver at a scrollbar threshold triggers an endless 60fps loop: "scrollbar appears → content narrows & wraps → scrollbar hides → widens again."
Prompt for AI Consolidate global modals into a single priority queue to guarantee UI deadlock freedom, and inspect ResizeObserver callbacks for scrollbar-threshold layout livelock.
Every op has a single atomic point ● inside its interval
68 / 69 · DISTRIBUTED SYSTEMS → CLIENT CACHE SYNC

Linearizability

Atomic Real-Time Consistency

Even when reads and writes overlap in time, each operation appears to take effect atomically at a single instant between call and return—once a write finishes, no later read may return a stale value.

  • Common mix-up: Linearizability (single object + real-time order) vs. Serializability (multi-object transaction isolation); together they form Strict Serializability.
  • Trade-off: Cross-node consensus costs extra RTT and availability (CAP / PACELC).
📱 UI Interaction Mapping · Flashing Back to Stale Data on Route Change
You save a document title as v2 on the detail page, navigate back to the list, and an earlier slow GET lands and overwrites the row back to v1—making it look like your save vanished. Guard client consistency with AbortController, version checks, or monotonic sequence numbers.
Prompt for AI Fix the brief flash of stale state after navigating back: add version checks or AbortController in the client fetch layer so completed writes are never overwritten by late queries (client-side linearizability).
Choose input orders =

                  
69 / 69 · FORMAL LOGIC → FORM VALIDATION & E2E

Vacuously True

Empty-Set False Green Trap

A universal claim ("every item in the set satisfies P") is strictly true when the set is empty because no counterexample exists—the sneakiest "false green" trap in production logic and AI-written tests.

  • Language traps: JS [].every(fn) === true and Python all([]) === True; an auth check given an empty approver list silently fails open.
  • Test trap: for (const x of list) expect(...) passes green with 0 assertions when the list is empty.
📱 UI Interaction Mapping · Empty Form Enables Submit Button
A dynamic form disables submit via disabled={!items.every(isValid)}. When the user deletes the last row (0 items), [].every(...) flips to true and lights up the Submit button. Switch to "📱 Empty Form Submit Bug" on the left and click "Clear list" to see it happen.
Prompt for AI Audit this form's submit-disable logic, permission .every() checks, and E2E assertions to verify none are vacuously true on empty lists (add explicit non-empty guards).
↑ Top