mobileui-os 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/AGENTS.md +47 -0
  2. package/CHANGELOG.md +25 -0
  3. package/README.md +78 -0
  4. package/bin/cli.mjs +375 -0
  5. package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
  6. package/knowledge/android/accessibility.md +333 -0
  7. package/knowledge/android/components-controls.md +270 -0
  8. package/knowledge/android/material-design-3.md +174 -0
  9. package/knowledge/android/navigation-patterns.md +212 -0
  10. package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
  11. package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
  12. package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
  13. package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
  14. package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
  15. package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
  16. package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
  17. package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
  18. package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
  19. package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
  20. package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
  21. package/knowledge/apple/Interaction-behaviour.md +1378 -0
  22. package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
  23. package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
  24. package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
  25. package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
  26. package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
  27. package/knowledge/apple/Patterns-templates-composition.md +647 -0
  28. package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
  29. package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
  30. package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
  31. package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
  32. package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
  33. package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
  34. package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
  35. package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
  36. package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
  37. package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
  38. package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
  39. package/knowledge/apple/accessibility.md +2162 -0
  40. package/knowledge/apple/color.md +1933 -0
  41. package/knowledge/apple/component-architecture.md +2208 -0
  42. package/knowledge/apple/components.md +2172 -0
  43. package/knowledge/apple/design-decision-framework.md +1883 -0
  44. package/knowledge/apple/design-review-engine.md +2108 -0
  45. package/knowledge/apple/design-tokens.md +1943 -0
  46. package/knowledge/apple/designing-for-ios.md +1680 -0
  47. package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
  48. package/knowledge/apple/hig-foundation.md +1806 -0
  49. package/knowledge/apple/iconography.md +1903 -0
  50. package/knowledge/apple/interaction-patterns.md +2513 -0
  51. package/knowledge/apple/interaction.md +2141 -0
  52. package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
  53. package/knowledge/apple/ios-components-and-controls.md +1634 -0
  54. package/knowledge/apple/ios-components-patterns.md +1343 -0
  55. package/knowledge/apple/ios-design-system-architecture.md +1520 -0
  56. package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
  57. package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
  58. package/knowledge/apple/ios-forms-and-input.md +1458 -0
  59. package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
  60. package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
  61. package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
  62. package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
  63. package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
  64. package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
  65. package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
  66. package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
  67. package/knowledge/apple/ios-search-and-discovery.md +1456 -0
  68. package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
  69. package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
  70. package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
  71. package/knowledge/apple/layout.md +2331 -0
  72. package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
  73. package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
  74. package/knowledge/apple/motion-and-animation.md +1698 -0
  75. package/knowledge/apple/motion.md +2087 -0
  76. package/knowledge/apple/navigation.md +2281 -0
  77. package/knowledge/apple/responsive-adaptive.md +2159 -0
  78. package/knowledge/apple/screen-architecture.md +2067 -0
  79. package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
  80. package/knowledge/apple/typography.md +1802 -0
  81. package/knowledge/apple/ui-ux inteligence audit.md +106 -0
  82. package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
  83. package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
  84. package/knowledge/apple/visual-materials.md +2189 -0
  85. package/package.json +53 -0
  86. package/principles/design-principles.md +37 -0
  87. package/principles/platform-principles.md +25 -0
  88. package/principles/ux-principles.md +16 -0
  89. package/references/official-links.md +11 -0
  90. package/skills/accessibility-engineer/SKILL.md +125 -0
  91. package/skills/analytics-engineer/SKILL.md +283 -0
  92. package/skills/animation-engineer/SKILL.md +316 -0
  93. package/skills/component-designer/SKILL.md +75 -0
  94. package/skills/component-library-engineer/SKILL.md +140 -0
  95. package/skills/component-library-ops/SKILL.md +155 -0
  96. package/skills/design-system/SKILL.md +77 -0
  97. package/skills/design-token-engineer/SKILL.md +203 -0
  98. package/skills/design-token-pipeline/SKILL.md +277 -0
  99. package/skills/device-lab-engineer/SKILL.md +387 -0
  100. package/skills/forms-engineer/SKILL.md +79 -0
  101. package/skills/internationalization-engineer/SKILL.md +256 -0
  102. package/skills/motion-designer/SKILL.md +77 -0
  103. package/skills/native-data-fetching/SKILL.md +50 -0
  104. package/skills/navigation-architect/SKILL.md +65 -0
  105. package/skills/performance-engineer/SKILL.md +250 -0
  106. package/skills/platform-specialist/SKILL.md +95 -0
  107. package/skills/pre-release-gate/SKILL.md +75 -0
  108. package/skills/screen-designer/SKILL.md +117 -0
  109. package/skills/security-engineer/SKILL.md +375 -0
  110. package/skills/skills.json +134 -0
  111. package/skills/testing-auditor/SKILL.md +62 -0
  112. package/skills/ui-architect/SKILL.md +86 -0
  113. package/skills/ui-implementer/SKILL.md +188 -0
  114. package/skills/ux-architect/SKILL.md +49 -0
  115. package/skills/ux-auditor/SKILL.md +52 -0
  116. package/skills/visual-auditor/SKILL.md +71 -0
  117. package/templates/audit-report.md +29 -0
  118. package/templates/design-tokens.ts +33 -0
  119. package/templates/screen-spec.md +61 -0
  120. package/workflows/new-screen.md +17 -0
  121. package/workflows/pre-release.md +21 -0
  122. package/workflows/redesign.md +14 -0
  123. package/workflows/ui-audit.md +22 -0
@@ -0,0 +1,1674 @@
1
+ # iOS Empty States, Loading, Errors & Recovery
2
+
3
+ > Agent intelligence module for designing empty states, loading states,
4
+ > errors, offline behavior, failures, recovery, retry flows, and resilient UI.
5
+
6
+ Version: 1.0
7
+ Platform: iOS / iPadOS / React Native / Expo
8
+ Role: UI state and recovery intelligence
9
+
10
+ Parent:
11
+
12
+ * ios-design-system-architecture.md
13
+ * ios-motion-animation-transitions.md
14
+ * ios-navigation-and-information-architecture.md
15
+ * ios-components-and-controls.md
16
+ * ios-forms-input-data-entry.md
17
+ * ios-search-filtering-discovery.md
18
+ * accessibility-inclusive-interaction.md
19
+
20
+ # 1. PURPOSE
21
+
22
+ A production interface is not one screen.
23
+
24
+ It is a collection of states:
25
+
26
+ ```text
27
+ Initial
28
+ ↓
29
+ Loading
30
+ ↓
31
+ Success
32
+ ↓
33
+ Empty
34
+ ↓
35
+ Error
36
+ ↓
37
+ Retry
38
+ ↓
39
+ Offline
40
+ ↓
41
+ Recovered
42
+ ```
43
+
44
+ The agent must design these states deliberately.
45
+
46
+ # 2. CORE PRINCIPLE
47
+
48
+ Never design only the successful state.
49
+
50
+ For every meaningful screen ask:
51
+
52
+ ```text
53
+ What does the user see before data arrives?
54
+ What if there is no data?
55
+ What if loading fails?
56
+ What if the network disappears?
57
+ What if the user retries?
58
+ What if the operation partially succeeds?
59
+ ```
60
+
61
+ # 3. STATE-FIRST DESIGN
62
+
63
+ A screen should have an explicit state model.
64
+
65
+ Example:
66
+
67
+ ```text
68
+ idle
69
+ loading
70
+ success
71
+ empty
72
+ error
73
+ offline
74
+ refreshing
75
+ ```
76
+
77
+ Do not infer application state solely from whether an array happens to be empty.
78
+
79
+ # 4. STATE MACHINE
80
+
81
+ A typical data screen:
82
+
83
+ ```text
84
+ INITIAL
85
+ ↓
86
+ LOADING
87
+ ↓
88
+ SUCCESS ─────→ REFRESHING
89
+ │ ↓
90
+ │ SUCCESS
91
+ │
92
+ ├──→ EMPTY
93
+ │
94
+ └──→ ERROR
95
+ ↓
96
+ RETRY
97
+ ↓
98
+ LOADING
99
+ ```
100
+
101
+ # 5. STATE PRIORITY
102
+
103
+ When multiple conditions exist, determine which state has priority.
104
+
105
+ Example:
106
+
107
+ ```text
108
+ Existing content
109
+ +
110
+ Network unavailable
111
+ ```
112
+
113
+ should generally remain usable rather than becoming a blank error screen.
114
+
115
+ # 6. EMPTY ≠ ERROR
116
+
117
+ These are fundamentally different:
118
+
119
+ ```text
120
+ EMPTY
121
+ = Nothing exists.
122
+
123
+ ERROR
124
+ = Something was expected but could not be retrieved.
125
+ ```
126
+
127
+ # 7. EMPTY ≠ LOADING
128
+
129
+ An empty result during loading does not necessarily mean the dataset is empty.
130
+
131
+ # 8. EMPTY ≠ OFFLINE
132
+
133
+ An empty dataset and unavailable connectivity are different states.
134
+
135
+ # 9. LOADING
136
+
137
+ Loading communicates:
138
+
139
+ ```text
140
+ The system is working.
141
+ ```
142
+
143
+ It should not communicate:
144
+
145
+ ```text
146
+ Something is broken.
147
+ ```
148
+
149
+ # 10. INITIAL LOADING
150
+
151
+ Initial loading occurs before meaningful content is available.
152
+
153
+ # 11. INITIAL LOADING DESIGN
154
+
155
+ Use:
156
+
157
+ ```text
158
+ Skeleton
159
+ Progress indicator
160
+ Placeholder structure
161
+ ```
162
+
163
+ depending on the content.
164
+
165
+ # 12. SKELETONS
166
+
167
+ Skeletons are useful when the layout of incoming content is predictable.
168
+
169
+ # 13. SKELETON PRINCIPLE
170
+
171
+ A skeleton should resemble the eventual structure enough to establish spatial
172
+ continuity.
173
+
174
+ # 14. SKELETON ABUSE
175
+
176
+ Do not create elaborate skeletons for simple screens.
177
+
178
+ # 15. SPINNER
179
+
180
+ A spinner is useful for short, indeterminate operations.
181
+
182
+ # 16. LONG LOADING
183
+
184
+ For long operations, provide more context where useful:
185
+
186
+ ```text
187
+ Loading library...
188
+ Preparing files...
189
+ Syncing...
190
+ ```
191
+
192
+ Avoid fake precision.
193
+
194
+ # 17. PROGRESS
195
+
196
+ Use progress when the system can meaningfully estimate completion.
197
+
198
+ # 18. FAKE PROGRESS
199
+
200
+ Never use an artificial progress bar to create false confidence.
201
+
202
+ # 19. LOADING TIME
203
+
204
+ As waiting increases, the interface should become increasingly informative.
205
+
206
+ # 20. LONG WAIT
207
+
208
+ After a meaningful delay, consider:
209
+
210
+ ```text
211
+ Explanation
212
+ Cancel
213
+ Retry
214
+ Alternative action
215
+ ```
216
+
217
+ depending on the operation.
218
+
219
+ # 21. LOADING INTERACTION
220
+
221
+ Users should not accidentally trigger duplicate operations while something is
222
+ already processing.
223
+
224
+ # 22. CANCEL
225
+
226
+ Long-running operations should support cancellation when technically possible
227
+ and useful.
228
+
229
+ # 23. LOADING BUTTON
230
+
231
+ A submitting button may transition:
232
+
233
+ ```text
234
+ Normal
235
+ ↓
236
+ Loading
237
+ ↓
238
+ Success / Error
239
+ ```
240
+
241
+ # 24. LOADING BUTTON LABEL
242
+
243
+ Do not remove all contextual meaning.
244
+
245
+ For example:
246
+
247
+ ```text
248
+ Saving...
249
+ ```
250
+
251
+ can be more informative than:
252
+
253
+ ```text
254
+ Loading...
255
+ ```
256
+
257
+ # 25. REFRESHING
258
+
259
+ Refreshing existing content is different from initial loading.
260
+
261
+ # 26. PRESERVE CONTENT DURING REFRESH
262
+
263
+ Prefer:
264
+
265
+ ```text
266
+ Existing content
267
+ +
268
+ Refreshing indicator
269
+ ```
270
+
271
+ over:
272
+
273
+ ```text
274
+ Blank screen
275
+ +
276
+ Spinner
277
+ ```
278
+
279
+ # 27. REFRESH PRINCIPLE
280
+
281
+ Do not make the interface look empty merely because fresh data is being
282
+ requested.
283
+
284
+ # 28. BACKGROUND REFRESH
285
+
286
+ Background updates should not unnecessarily interrupt the user's current task.
287
+
288
+ # 29. SILENT REFRESH
289
+
290
+ If the user does not need to know that a background update happened, avoid
291
+ visual disruption.
292
+
293
+ # 30. EMPTY STATE
294
+
295
+ An empty state should answer:
296
+
297
+ ```text
298
+ Why is this empty?
299
+ What can I do?
300
+ ```
301
+
302
+ when useful.
303
+
304
+ # 31. TYPES OF EMPTY STATES
305
+
306
+ Common types:
307
+
308
+ ```text
309
+ First-use empty
310
+ No results
311
+ Filtered empty
312
+ Completed
313
+ Permission-dependent
314
+ Offline
315
+ Deleted
316
+ Unavailable
317
+ ```
318
+
319
+ Treat them differently.
320
+
321
+ # 32. FIRST-USE EMPTY
322
+
323
+ The user has not created or added anything yet.
324
+
325
+ # 33. FIRST-USE EMPTY DESIGN
326
+
327
+ Explain the value and provide the primary action.
328
+
329
+ Example:
330
+
331
+ ```text
332
+ No playlists yet
333
+
334
+ Create your first playlist.
335
+
336
+ [Create playlist]
337
+ ```
338
+
339
+ # 34. NO-RESULT EMPTY
340
+
341
+ Search produced no matches.
342
+
343
+ The state should preserve the query context.
344
+
345
+ # 35. FILTERED EMPTY
346
+
347
+ Content exists but current filters exclude everything.
348
+
349
+ Provide:
350
+
351
+ ```text
352
+ Clear filters
353
+ Adjust filters
354
+ ```
355
+
356
+ when appropriate.
357
+
358
+ # 36. COMPLETED EMPTY
359
+
360
+ An empty state may represent successful completion.
361
+
362
+ Example:
363
+
364
+ ```text
365
+ No tasks remaining
366
+ ```
367
+
368
+ This should feel different from an error.
369
+
370
+ # 37. PERMISSION EMPTY
371
+
372
+ Content may be unavailable because permission has not been granted.
373
+
374
+ Explain:
375
+
376
+ ```text
377
+ What permission is needed
378
+ Why it matters
379
+ How to enable it
380
+ ```
381
+
382
+ # 38. PERMISSION DENIED
383
+
384
+ Do not repeatedly ask for permission without explaining the consequence.
385
+
386
+ # 39. DELETED STATE
387
+
388
+ If content was intentionally deleted, communicate the new state rather than
389
+ making it appear as though something failed.
390
+
391
+ # 40. EMPTY STATE STRUCTURE
392
+
393
+ A strong empty state may contain:
394
+
395
+ ```text
396
+ Icon / illustration
397
+ Title
398
+ Explanation
399
+ Primary action
400
+ Optional secondary action
401
+ ```
402
+
403
+ Not every empty state needs all five.
404
+
405
+ # 41. EMPTY STATE TITLE
406
+
407
+ Titles should describe the state.
408
+
409
+ Good:
410
+
411
+ ```text
412
+ No saved files
413
+ ```
414
+
415
+ Weak:
416
+
417
+ ```text
418
+ Nothing here
419
+ ```
420
+
421
+ # 42. EMPTY STATE DESCRIPTION
422
+
423
+ Keep explanations concise.
424
+
425
+ # 43. EMPTY STATE ACTION
426
+
427
+ Give users a meaningful next step where one exists.
428
+
429
+ # 44. EMPTY STATE ILLUSTRATIONS
430
+
431
+ Illustrations should reinforce the context rather than becoming decoration.
432
+
433
+ # 45. EMPTY STATE ANIMATION
434
+
435
+ Avoid making users wait through an animation before they can act.
436
+
437
+ # 46. ERROR
438
+
439
+ An error means the intended operation did not complete successfully.
440
+
441
+ # 47. ERROR CATEGORIES
442
+
443
+ Common errors:
444
+
445
+ ```text
446
+ Network
447
+ Authentication
448
+ Authorization
449
+ Validation
450
+ Not found
451
+ Conflict
452
+ Timeout
453
+ Server
454
+ Storage
455
+ Permission
456
+ Device capability
457
+ Unknown
458
+ ```
459
+
460
+ Different failures may require different recovery.
461
+
462
+ # 48. ERROR LANGUAGE
463
+
464
+ Errors should communicate:
465
+
466
+ ```text
467
+ What happened
468
+ What the user can do
469
+ ```
470
+
471
+ when those details are known.
472
+
473
+ # 49. TECHNICAL ERRORS
474
+
475
+ Do not expose raw implementation errors to ordinary users.
476
+
477
+ Avoid:
478
+
479
+ ```text
480
+ ECONNRESET
481
+ SQLiteException
482
+ HTTP 500
483
+ NullPointerException
484
+ ```
485
+
486
+ unless the context is specifically technical.
487
+
488
+ # 50. USER-FACING ERROR
489
+
490
+ Translate technical failure into actionable language.
491
+
492
+ Example:
493
+
494
+ ```text
495
+ Couldn't load your files.
496
+
497
+ Check your connection and try again.
498
+ ```
499
+
500
+ # 51. ERROR ACTIONS
501
+
502
+ Possible actions:
503
+
504
+ ```text
505
+ Retry
506
+ Try again
507
+ Sign in
508
+ Open settings
509
+ Go back
510
+ Contact support
511
+ Continue offline
512
+ ```
513
+
514
+ Only expose actions that make sense.
515
+
516
+ # 52. RETRY
517
+
518
+ Retry should actually attempt recovery.
519
+
520
+ # 53. RETRY LOOP
521
+
522
+ Do not force users into endless:
523
+
524
+ ```text
525
+ Retry
526
+ Retry
527
+ Retry
528
+ Retry
529
+ ```
530
+
531
+ without changing anything or explaining the persistent failure.
532
+
533
+ # 54. AUTOMATIC RETRY
534
+
535
+ Automatic retries can be useful for transient failures.
536
+
537
+ They should have limits.
538
+
539
+ # 55. EXPONENTIAL BACKOFF
540
+
541
+ Network operations may use progressively longer retry intervals.
542
+
543
+ # 56. USER RETRY
544
+
545
+ Manual retry should remain available when the operation can reasonably succeed
546
+ again.
547
+
548
+ # 57. RETRY IDEMPOTENCY
549
+
550
+ Be careful retrying operations that create or charge something.
551
+
552
+ A retry must not accidentally duplicate an irreversible operation.
553
+
554
+ # 58. PAYMENT / TRANSACTION FAILURE
555
+
556
+ Never assume a failed client request means the server did not process the
557
+ operation.
558
+
559
+ # 59. TRANSACTION STATE
560
+
561
+ For consequential operations:
562
+
563
+ ```text
564
+ Pending
565
+ ↓
566
+ Confirmed
567
+ ↓
568
+ Failed
569
+ ```
570
+
571
+ may be safer than simply:
572
+
573
+ ```text
574
+ Success / Error
575
+ ```
576
+
577
+ # 60. UNKNOWN OUTCOME
578
+
579
+ If the client cannot determine whether an operation succeeded:
580
+
581
+ ```text
582
+ Do not blindly retry.
583
+ ```
584
+
585
+ Provide a safe way to verify status.
586
+
587
+ # 61. NETWORK ERROR
588
+
589
+ Network errors should communicate connectivity limitations without blaming the
590
+ user.
591
+
592
+ # 62. OFFLINE MODE
593
+
594
+ If the application supports offline operation:
595
+
596
+ ```text
597
+ Network unavailable
598
+ +
599
+ Local functionality
600
+ ```
601
+
602
+ should remain available.
603
+
604
+ # 63. OFFLINE-FIRST
605
+
606
+ For offline-capable apps:
607
+
608
+ ```text
609
+ Local data
610
+ ↓
611
+ User action
612
+ ↓
613
+ Local update
614
+ ↓
615
+ Sync later
616
+ ```
617
+
618
+ can provide a much better experience than blocking the user.
619
+
620
+ # 64. OFFLINE INDICATOR
621
+
622
+ Use an offline indicator when the network state materially affects behavior.
623
+
624
+ # 65. OFFLINE OVEREXPOSURE
625
+
626
+ Do not place a giant permanent "OFFLINE" banner on every screen if the user
627
+ already knows the app remains functional.
628
+
629
+ # 66. SYNCING
630
+
631
+ A useful model:
632
+
633
+ ```text
634
+ Saved locally
635
+ ↓
636
+ Waiting to sync
637
+ ↓
638
+ Syncing
639
+ ↓
640
+ Synced
641
+ ```
642
+
643
+ Communicate these states when they matter.
644
+
645
+ # 67. SYNC FAILURE
646
+
647
+ If synchronization fails:
648
+
649
+ ```text
650
+ Local data
651
+ +
652
+ Retry state
653
+ ```
654
+
655
+ should be preserved where possible.
656
+
657
+ # 68. CONFLICT
658
+
659
+ When the same data changes in multiple places, the interface may need:
660
+
661
+ ```text
662
+ Keep mine
663
+ Keep remote
664
+ Merge
665
+ Review
666
+ ```
667
+
668
+ depending on the application.
669
+
670
+ # 69. CONFLICT SAFETY
671
+
672
+ Never silently destroy meaningful user work during synchronization.
673
+
674
+ # 70. AUTHENTICATION ERROR
675
+
676
+ Expired authentication should provide a recovery path.
677
+
678
+ Example:
679
+
680
+ ```text
681
+ Your session expired.
682
+
683
+ [Sign in again]
684
+ ```
685
+
686
+ # 71. AUTHENTICATION PRESERVATION
687
+
688
+ Where safe, preserve the user's current task while authentication is restored.
689
+
690
+ # 72. AUTHORIZATION ERROR
691
+
692
+ Distinguish:
693
+
694
+ ```text
695
+ Not signed in
696
+ ```
697
+
698
+ from:
699
+
700
+ ```text
701
+ Signed in but not allowed
702
+ ```
703
+
704
+ # 73. NOT FOUND
705
+
706
+ A missing resource should provide context and navigation options where useful.
707
+
708
+ # 74. SERVER ERROR
709
+
710
+ Server failures should be communicated without unnecessary technical details.
711
+
712
+ # 75. TIMEOUT
713
+
714
+ Timeouts should not automatically imply permanent failure.
715
+
716
+ # 76. STORAGE FAILURE
717
+
718
+ If local storage fails:
719
+
720
+ ```text
721
+ Explain
722
+ Preserve recoverable state
723
+ Offer recovery
724
+ ```
725
+
726
+ where possible.
727
+
728
+ # 77. DEVICE PERMISSION FAILURE
729
+
730
+ If the application needs access to:
731
+
732
+ ```text
733
+ Photos
734
+ Files
735
+ Microphone
736
+ Camera
737
+ Location
738
+ Notifications
739
+ ```
740
+
741
+ and access is unavailable, explain the consequence.
742
+
743
+ # 78. PERMISSION RECOVERY
744
+
745
+ Provide a path to system settings when the permission can no longer be requested
746
+ directly.
747
+
748
+ # 79. ERROR LOCATION
749
+
750
+ Place errors as close to the failed operation as practical.
751
+
752
+ # 80. GLOBAL ERROR
753
+
754
+ Use global banners/alerts when the failure affects the whole application or
755
+ current workflow.
756
+
757
+ # 81. LOCAL ERROR
758
+
759
+ Use local error states when only one component failed.
760
+
761
+ # 82. PARTIAL FAILURE
762
+
763
+ Do not replace an entire screen with an error if only one component failed.
764
+
765
+ # 83. COMPONENT FAILURE
766
+
767
+ Example:
768
+
769
+ ```text
770
+ Profile
771
+ ✓
772
+
773
+ Recommendations
774
+ ✗ Couldn't load
775
+ [Retry]
776
+ ```
777
+
778
+ The working content should remain usable.
779
+
780
+ # 84. PARTIAL DATA
781
+
782
+ If some data loads and some does not, preserve successful data.
783
+
784
+ # 85. ERROR PRIORITY
785
+
786
+ Critical errors deserve more attention than minor background failures.
787
+
788
+ # 86. ERROR INTERRUPTIONS
789
+
790
+ Do not interrupt the user with an alert for every recoverable background error.
791
+
792
+ # 87. ALERTS
793
+
794
+ Use alerts when the user genuinely needs to make a decision or acknowledge an
795
+ important problem.
796
+
797
+ # 88. BANNERS
798
+
799
+ Use banners for contextual, non-blocking communication.
800
+
801
+ # 89. INLINE ERRORS
802
+
803
+ Use inline states when the problem belongs to a specific component.
804
+
805
+ # 90. TOASTS
806
+
807
+ Transient messages can communicate small outcomes but should not be the only
808
+ way to communicate critical errors.
809
+
810
+ # 91. ERROR PERSISTENCE
811
+
812
+ Important errors should remain visible long enough for users to understand and
813
+ act on them.
814
+
815
+ # 92. ERROR DISMISSAL
816
+
817
+ Allow dismissal when the error no longer needs attention.
818
+
819
+ # 93. ERROR RECOVERY
820
+
821
+ A good error state answers:
822
+
823
+ ```text
824
+ Can I fix this?
825
+ Can I retry?
826
+ Can I continue?
827
+ Can I go back?
828
+ Can I preserve my work?
829
+ ```
830
+
831
+ # 94. RECOVERY HIERARCHY
832
+
833
+ Prefer recovery actions in this order when applicable:
834
+
835
+ ```text
836
+ Continue safely
837
+ ↓
838
+ Retry
839
+ ↓
840
+ Correct input
841
+ ↓
842
+ Change configuration
843
+ ↓
844
+ Restart workflow
845
+ ↓
846
+ Contact support
847
+ ```
848
+
849
+ # 95. RECOVERY WITHOUT RESTART
850
+
851
+ Do not force users to restart the entire app for a recoverable error.
852
+
853
+ # 96. RECOVERY WITHOUT DATA LOSS
854
+
855
+ Recovery should preserve user-created content whenever possible.
856
+
857
+ # 97. FORM ERROR RECOVERY
858
+
859
+ For failed forms:
860
+
861
+ ```text
862
+ Keep values
863
+ ↓
864
+ Show errors
865
+ ↓
866
+ Allow correction
867
+ ```
868
+
869
+ Never unnecessarily reset the form.
870
+
871
+ # 98. FILE OPERATION RECOVERY
872
+
873
+ For copy/move/delete operations:
874
+
875
+ ```text
876
+ Success
877
+ Failure
878
+ Partial success
879
+ Conflict
880
+ ```
881
+
882
+ may all require different states.
883
+
884
+ # 99. BATCH OPERATIONS
885
+
886
+ If 100 files are being processed and 3 fail:
887
+
888
+ ```text
889
+ 97 succeeded
890
+ 3 failed
891
+ ```
892
+
893
+ may be more useful than:
894
+
895
+ ```text
896
+ Operation failed
897
+ ```
898
+
899
+ # 100. PROGRESSIVE ERROR DETAIL
900
+
901
+ Start concise.
902
+
903
+ Allow deeper technical detail for advanced users where useful.
904
+
905
+ # 101. DEBUG MODE
906
+
907
+ Developer-facing applications may expose:
908
+
909
+ ```text
910
+ Error code
911
+ Request ID
912
+ Stack information
913
+ Diagnostic details
914
+ ```
915
+
916
+ behind an appropriate advanced/debug interface.
917
+
918
+ # 102. SUPPORT INFORMATION
919
+
920
+ For persistent failures, useful diagnostic information may include:
921
+
922
+ ```text
923
+ Error identifier
924
+ Time
925
+ Operation
926
+ Device/app version
927
+ ```
928
+
929
+ while respecting privacy.
930
+
931
+ # 103. ERROR LOGGING
932
+
933
+ User-facing recovery and developer-facing diagnostics are separate concerns.
934
+
935
+ # 104. UNKNOWN ERROR
936
+
937
+ Unknown failures should still have a usable fallback:
938
+
939
+ ```text
940
+ Something went wrong.
941
+
942
+ [Try again]
943
+ ```
944
+
945
+ but avoid pretending to know the cause.
946
+
947
+ # 105. UNKNOWN ERROR DETAIL
948
+
949
+ If possible:
950
+
951
+ ```text
952
+ Try again
953
+ ```
954
+
955
+ can be accompanied by:
956
+
957
+ ```text
958
+ If the problem continues, contact support.
959
+ ```
960
+
961
+ # 106. RETRY FEEDBACK
962
+
963
+ After retry:
964
+
965
+ ```text
966
+ Retrying...
967
+ ```
968
+
969
+ should transition clearly to:
970
+
971
+ ```text
972
+ Success
973
+ ```
974
+
975
+ or:
976
+
977
+ ```text
978
+ Still unavailable
979
+ ```
980
+
981
+ # 107. RECOVERY SUCCESS
982
+
983
+ Recovery should restore the normal interface rather than leaving stale error
984
+ visuals behind.
985
+
986
+ # 108. STATE TRANSITION
987
+
988
+ Example:
989
+
990
+ ```text
991
+ ERROR
992
+ ↓ retry
993
+ LOADING
994
+ ↓
995
+ SUCCESS
996
+ ```
997
+
998
+ The UI should visually follow the state machine.
999
+
1000
+ # 109. MOTION
1001
+
1002
+ Use subtle transitions between states when they improve continuity.
1003
+
1004
+ Do not make recovery slower because of animation.
1005
+
1006
+ # 110. ACCESSIBILITY
1007
+
1008
+ State changes must be understandable without relying on animation or color.
1009
+
1010
+ # 111. SCREEN READERS
1011
+
1012
+ Important dynamic state changes should be announced appropriately.
1013
+
1014
+ # 112. ERROR ANNOUNCEMENT
1015
+
1016
+ Do not overwhelm assistive technology with repeated announcements for minor
1017
+ background changes.
1018
+
1019
+ # 113. LOADING ANNOUNCEMENT
1020
+
1021
+ Only announce loading states when they are meaningful and likely to affect the
1022
+ user's expectations.
1023
+
1024
+ # 114. EMPTY ACCESSIBILITY
1025
+
1026
+ The empty-state title and explanation should provide sufficient semantic
1027
+ context.
1028
+
1029
+ # 115. REDUCED MOTION
1030
+
1031
+ State transitions must remain understandable when motion is reduced.
1032
+
1033
+ # 116. COLOR
1034
+
1035
+ Do not communicate:
1036
+
1037
+ ```text
1038
+ Success = green
1039
+ Error = red
1040
+ ```
1041
+
1042
+ as the only semantic signal.
1043
+
1044
+ # 117. ICONS
1045
+
1046
+ Icons can reinforce:
1047
+
1048
+ ```text
1049
+ Error
1050
+ Success
1051
+ Offline
1052
+ Warning
1053
+ Info
1054
+ ```
1055
+
1056
+ but should accompany understandable text where necessary.
1057
+
1058
+ # 118. ERROR CONTRAST
1059
+
1060
+ Error and warning states must remain readable in:
1061
+
1062
+ ```text
1063
+ Light mode
1064
+ Dark mode
1065
+ High contrast
1066
+ Large text
1067
+ ```
1068
+
1069
+ .
1070
+
1071
+ # 119. LARGE TEXT
1072
+
1073
+ Error messages should accommodate text scaling without clipping.
1074
+
1075
+ # 120. LOCALIZATION
1076
+
1077
+ Error text can become much longer after translation.
1078
+
1079
+ Layouts must tolerate expansion.
1080
+
1081
+ # 121. OFFLINE LOCALIZATION
1082
+
1083
+ Offline states should be understandable without requiring remote resources.
1084
+
1085
+ # 122. EMPTY STATE PERSONALITY
1086
+
1087
+ Brand personality may appear in empty states, but clarity comes first.
1088
+
1089
+ # 123. ERROR PERSONALITY
1090
+
1091
+ Avoid jokes or playful language when users are experiencing:
1092
+
1093
+ ```text
1094
+ Data loss
1095
+ Payment problems
1096
+ Security issues
1097
+ Critical failures
1098
+ ```
1099
+
1100
+ .
1101
+
1102
+ # 124. SUCCESS PERSONALITY
1103
+
1104
+ Celebratory feedback should be proportional to the importance of the action.
1105
+
1106
+ # 125. FIRST-RUN EXPERIENCE
1107
+
1108
+ The first empty state can also teach the user how to begin.
1109
+
1110
+ # 126. ONBOARDING VS EMPTY STATE
1111
+
1112
+ Do not turn every empty state into a long onboarding tutorial.
1113
+
1114
+ # 127. EMPTY STATE ACTION
1115
+
1116
+ One clear primary action is usually better than five competing choices.
1117
+
1118
+ # 128. SECONDARY ACTION
1119
+
1120
+ Use a secondary action only when it meaningfully helps recovery or exploration.
1121
+
1122
+ # 129. LOADING + NAVIGATION
1123
+
1124
+ If the user leaves a loading screen, decide whether the request:
1125
+
1126
+ ```text
1127
+ Continues
1128
+ Cancels
1129
+ ```
1130
+
1131
+ based on the operation.
1132
+
1133
+ # 130. SCREEN LIFECYCLE
1134
+
1135
+ Do not update a screen that is no longer relevant without handling lifecycle
1136
+ state correctly.
1137
+
1138
+ # 131. STALE DATA
1139
+
1140
+ Cached data can be preferable to a blank screen.
1141
+
1142
+ Show:
1143
+
1144
+ ```text
1145
+ Cached content
1146
+ +
1147
+ Updating...
1148
+ ```
1149
+
1150
+ when appropriate.
1151
+
1152
+ # 132. DATA FRESHNESS
1153
+
1154
+ If data may be stale, communicate freshness when it affects decisions.
1155
+
1156
+ # 133. STALE-WHILE-REVALIDATE
1157
+
1158
+ A useful model:
1159
+
1160
+ ```text
1161
+ Cached data
1162
+ ↓
1163
+ Show immediately
1164
+ ↓
1165
+ Refresh remotely
1166
+ ↓
1167
+ Update when ready
1168
+ ```
1169
+
1170
+ # 134. CONTENT PLACEHOLDER
1171
+
1172
+ Do not display stale content as though it were guaranteed current when freshness
1173
+ matters.
1174
+
1175
+ # 135. RECOVERY AFTER APP RESTART
1176
+
1177
+ If the app crashes or is terminated during an operation, determine what state
1178
+ can safely be restored.
1179
+
1180
+ # 136. DRAFT RESTORATION
1181
+
1182
+ Long-form user work should be restorable where practical.
1183
+
1184
+ # 137. TRANSACTION RESTORATION
1185
+
1186
+ Financial or irreversible operations require stronger state verification than
1187
+ ordinary UI state.
1188
+
1189
+ # 138. CRASH RECOVERY
1190
+
1191
+ After a crash:
1192
+
1193
+ ```text
1194
+ Recover safe work
1195
+ ↓
1196
+ Explain if necessary
1197
+ ↓
1198
+ Return user to useful context
1199
+ ```
1200
+
1201
+ # 139. EMPTY DATA AFTER MIGRATION
1202
+
1203
+ Database or schema migration should not accidentally present an existing user
1204
+ with an empty-state UI because data loading temporarily failed.
1205
+
1206
+ # 140. DATA INTEGRITY
1207
+
1208
+ Never interpret:
1209
+
1210
+ ```text
1211
+ Database error
1212
+ ```
1213
+
1214
+ as:
1215
+
1216
+ ```text
1217
+ There are zero records.
1218
+ ```
1219
+
1220
+ # 141. API RESPONSE VALIDATION
1221
+
1222
+ Validate remote data before converting it into a successful UI state.
1223
+
1224
+ # 142. MALFORMED DATA
1225
+
1226
+ If data is incomplete:
1227
+
1228
+ ```text
1229
+ Render what is safe
1230
+ +
1231
+ Gracefully handle missing fields
1232
+ ```
1233
+
1234
+ rather than crashing the screen.
1235
+
1236
+ # 143. IMAGE FAILURE
1237
+
1238
+ If an image fails:
1239
+
1240
+ ```text
1241
+ Placeholder
1242
+ Fallback icon
1243
+ Retry
1244
+ ```
1245
+
1246
+ may be appropriate.
1247
+
1248
+ # 144. MEDIA FAILURE
1249
+
1250
+ Media apps should distinguish:
1251
+
1252
+ ```text
1253
+ Loading
1254
+ Unavailable
1255
+ Unsupported
1256
+ Permission denied
1257
+ Corrupt
1258
+ Network failure
1259
+ ```
1260
+
1261
+ # 145. DOCUMENT FAILURE
1262
+
1263
+ Document viewers should distinguish:
1264
+
1265
+ ```text
1266
+ Not found
1267
+ Unsupported format
1268
+ Corrupt document
1269
+ Permission denied
1270
+ Loading
1271
+ ```
1272
+
1273
+ # 146. MUSIC FAILURE
1274
+
1275
+ Music players should distinguish:
1276
+
1277
+ ```text
1278
+ File missing
1279
+ Unsupported codec
1280
+ Permission denied
1281
+ Playback failure
1282
+ Network unavailable
1283
+ ```
1284
+
1285
+ # 147. AI FAILURE
1286
+
1287
+ AI interfaces should distinguish:
1288
+
1289
+ ```text
1290
+ Generation failed
1291
+ Network failed
1292
+ Rate limited
1293
+ Authentication failed
1294
+ Content unavailable
1295
+ ```
1296
+
1297
+ where known.
1298
+
1299
+ # 148. AI PARTIAL OUTPUT
1300
+
1301
+ If generation fails after partial output:
1302
+
1303
+ ```text
1304
+ Preserve useful output
1305
+ Explain interruption
1306
+ Offer retry/continue
1307
+ ```
1308
+
1309
+ when technically safe.
1310
+
1311
+ # 149. AI RETRY
1312
+
1313
+ Retrying generation should not unexpectedly duplicate or overwrite useful
1314
+ existing output.
1315
+
1316
+ # 150. SEARCH FAILURE
1317
+
1318
+ Search must distinguish:
1319
+
1320
+ ```text
1321
+ No matches
1322
+ ```
1323
+
1324
+ from:
1325
+
1326
+ ```text
1327
+ Search unavailable
1328
+ ```
1329
+
1330
+ # 151. SYNC FAILURE
1331
+
1332
+ Sync errors should preserve local work where possible.
1333
+
1334
+ # 152. BACKGROUND TASK FAILURE
1335
+
1336
+ Background failures should not necessarily interrupt the foreground task.
1337
+
1338
+ # 153. NOTIFICATION OF FAILURE
1339
+
1340
+ Notify users about background failures when the failure materially affects
1341
+ something they care about.
1342
+
1343
+ # 154. RECOVERY NOTIFICATION
1344
+
1345
+ If the system automatically recovers, avoid unnecessary notifications.
1346
+
1347
+ # 155. STATE PERSISTENCE
1348
+
1349
+ Decide which states survive:
1350
+
1351
+ ```text
1352
+ Navigation
1353
+ App backgrounding
1354
+ App termination
1355
+ Restart
1356
+ Device restart
1357
+ ```
1358
+
1359
+ based on their meaning.
1360
+
1361
+ # 156. STATE EXPIRATION
1362
+
1363
+ Some states should expire.
1364
+
1365
+ For example:
1366
+
1367
+ ```text
1368
+ Temporary error
1369
+ Loading indicator
1370
+ Transient banner
1371
+ ```
1372
+
1373
+ should not remain forever.
1374
+
1375
+ # 157. STATE RESTORATION
1376
+
1377
+ Persistent states may include:
1378
+
1379
+ ```text
1380
+ Draft
1381
+ Selected filters
1382
+ Search query
1383
+ Playback position
1384
+ User preferences
1385
+ ```
1386
+
1387
+ where useful.
1388
+
1389
+ # 158. ERROR STATE ANTI-PATTERNS
1390
+
1391
+ Avoid:
1392
+
1393
+ ```text
1394
+ Blank screen
1395
+ Generic error everywhere
1396
+ Raw technical messages
1397
+ Endless retry loops
1398
+ Destructive reset
1399
+ Lost form input
1400
+ Full-screen errors for local failures
1401
+ Blocking alerts for minor problems
1402
+ Fake loading
1403
+ Infinite spinners
1404
+ ```
1405
+
1406
+ .
1407
+
1408
+ # 159. EMPTY STATE ANTI-PATTERNS
1409
+
1410
+ Avoid:
1411
+
1412
+ ```text
1413
+ Nothing here
1414
+ No explanation
1415
+ No action
1416
+ Huge decorative illustration
1417
+ Multiple competing CTAs
1418
+ Confusing empty/error distinction
1419
+ ```
1420
+
1421
+ .
1422
+
1423
+ # 160. LOADING ANTI-PATTERNS
1424
+
1425
+ Avoid:
1426
+
1427
+ ```text
1428
+ Spinner forever
1429
+ Blank screen
1430
+ Blocking interaction unnecessarily
1431
+ Fake percentage
1432
+ Replacing usable content with skeletons during refresh
1433
+ ```
1434
+
1435
+ .
1436
+
1437
+ # 161. RECOVERY ANTI-PATTERNS
1438
+
1439
+ Avoid:
1440
+
1441
+ ```text
1442
+ Restart the app
1443
+ Start over
1444
+ Try again forever
1445
+ Clear all data
1446
+ Log out unnecessarily
1447
+ ```
1448
+
1449
+ when safer recovery exists.
1450
+
1451
+ # 162. STATE DESIGN TEMPLATE
1452
+
1453
+ For every major screen define:
1454
+
1455
+ ```text
1456
+ Screen:
1457
+ Purpose:
1458
+
1459
+ Initial:
1460
+ Loading:
1461
+ Refreshing:
1462
+ Success:
1463
+ Empty:
1464
+ Error:
1465
+ Offline:
1466
+ Permission denied:
1467
+ Partial failure:
1468
+ Retry:
1469
+ Recovery:
1470
+ ```
1471
+
1472
+ .
1473
+
1474
+ # 163. COMPONENT STATE TEMPLATE
1475
+
1476
+ For each reusable component:
1477
+
1478
+ ```text
1479
+ Component:
1480
+ Default:
1481
+ Loading:
1482
+ Disabled:
1483
+ Empty:
1484
+ Error:
1485
+ Success:
1486
+ Offline:
1487
+ Pressed:
1488
+ Focused:
1489
+ Accessibility:
1490
+ Reduced motion:
1491
+ ```
1492
+
1493
+ .
1494
+
1495
+ # 164. DATA OPERATION TEMPLATE
1496
+
1497
+ For every asynchronous operation:
1498
+
1499
+ ```text
1500
+ Operation:
1501
+ Start:
1502
+ Loading:
1503
+ Success:
1504
+ Empty:
1505
+ Failure:
1506
+ Retry:
1507
+ Cancellation:
1508
+ Timeout:
1509
+ Offline:
1510
+ Unknown outcome:
1511
+ Recovery:
1512
+ ```
1513
+
1514
+ .
1515
+
1516
+ # 165. AGENT STATE CHECK
1517
+
1518
+ Before implementing a screen, ask:
1519
+
1520
+ ```text
1521
+ What happens before data arrives?
1522
+ What happens if there is no data?
1523
+ What happens if the request fails?
1524
+ What happens if the user is offline?
1525
+ What happens if only part of the data fails?
1526
+ ```
1527
+
1528
+ # 166. AGENT RECOVERY CHECK
1529
+
1530
+ Ask:
1531
+
1532
+ ```text
1533
+ Can the user continue?
1534
+ Can they retry?
1535
+ Can their work be preserved?
1536
+ Can the operation be safely repeated?
1537
+ Can the system recover automatically?
1538
+ ```
1539
+
1540
+ # 167. AGENT ERROR CHECK
1541
+
1542
+ Ask:
1543
+
1544
+ ```text
1545
+ Is this really an error?
1546
+ Who needs to know?
1547
+ Where should it appear?
1548
+ What action can actually fix it?
1549
+ ```
1550
+
1551
+ # 168. AGENT LOADING CHECK
1552
+
1553
+ Ask:
1554
+
1555
+ ```text
1556
+ Is loading visible?
1557
+ Is progress known?
1558
+ Can the user interact?
1559
+ Can the operation be cancelled?
1560
+ Does existing content remain useful?
1561
+ ```
1562
+
1563
+ # 169. AGENT EMPTY CHECK
1564
+
1565
+ Ask:
1566
+
1567
+ ```text
1568
+ Why is the screen empty?
1569
+ Is this expected?
1570
+ What should the user do next?
1571
+ Can they create/import/search something?
1572
+ ```
1573
+
1574
+ # 170. STATE REVIEW CHECKLIST
1575
+
1576
+ ```text
1577
+ [ ] Initial state defined
1578
+ [ ] Loading state defined
1579
+ [ ] Refreshing state defined
1580
+ [ ] Success state defined
1581
+ [ ] Empty state defined
1582
+ [ ] Error state defined
1583
+ [ ] Offline state defined
1584
+ [ ] Permission state defined where relevant
1585
+ [ ] Partial failure defined
1586
+ [ ] Retry behavior defined
1587
+ [ ] Cancellation defined where relevant
1588
+ [ ] Recovery path defined
1589
+ [ ] User data is preserved
1590
+ [ ] Errors are actionable
1591
+ [ ] Technical details are hidden from normal users
1592
+ [ ] Stale data behavior is intentional
1593
+ [ ] Background failures are handled
1594
+ [ ] Accessibility state changes are considered
1595
+ [ ] Reduced motion is supported
1596
+ [ ] Light/dark states work
1597
+ [ ] Large text works
1598
+ [ ] Localization is considered
1599
+ ```
1600
+
1601
+ # 171. QUALITY SCORE
1602
+
1603
+ ```text
1604
+ State completeness 15
1605
+ Recovery 15
1606
+ Error clarity 15
1607
+ Loading UX 10
1608
+ Empty-state quality 10
1609
+ Data preservation 15
1610
+ Offline resilience 5
1611
+ Accessibility 10
1612
+ Performance 5
1613
+ ──────────────────────────────
1614
+ Total 100
1615
+ ```
1616
+
1617
+ Interpretation:
1618
+
1619
+ ```text
1620
+ 95–100 Exceptional
1621
+ 90–94 Excellent
1622
+ 80–89 Strong
1623
+ 70–79 Needs refinement
1624
+ 60–69 Weak
1625
+ <60 Redesign
1626
+ ```
1627
+
1628
+ # 172. FINAL PRINCIPLE
1629
+
1630
+ A premium application does not merely look beautiful when everything works.
1631
+
1632
+ It remains understandable when:
1633
+
1634
+ ```text
1635
+ The network disappears.
1636
+ The server fails.
1637
+ The database is empty.
1638
+ The user makes a mistake.
1639
+ A permission is denied.
1640
+ A request takes too long.
1641
+ Only half the data loads.
1642
+ ```
1643
+
1644
+ That is where product quality becomes visible.
1645
+
1646
+ # 173. FINAL AGENT DIRECTIVE
1647
+
1648
+ Never ship a screen with only:
1649
+
1650
+ ```text
1651
+ Happy path
1652
+ ```
1653
+
1654
+ Instead design:
1655
+
1656
+ ```text
1657
+ Happy path
1658
+ +
1659
+ Empty path
1660
+ +
1661
+ Loading path
1662
+ +
1663
+ Failure path
1664
+ +
1665
+ Recovery path
1666
+ +
1667
+ Offline path
1668
+ +
1669
+ Accessibility path
1670
+ ```
1671
+
1672
+ A truly polished interface is not one that never fails.
1673
+
1674
+ It is one that **fails gracefully and helps the user recover**.