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,1370 @@
1
+ ```
2
+
3
+ # iOS Empty, Error & Offline States
4
+
5
+ > Agent intelligence module for designing empty states, failures, missing data,
6
+ > offline experiences, degraded connectivity, recovery, and resilient UI.
7
+
8
+ Version: 1.0
9
+ Platform: iOS / iPadOS / React Native / Expo
10
+ Role: Resilience and recovery UX intelligence
11
+
12
+ Parent:
13
+
14
+ * ios-design-system-architecture.md
15
+ * ios-loading-progress-async-states.md
16
+ * ios-alerts-confirmations-destructive-actions.md
17
+ * ios-components-and-controls.md
18
+ * ios-navigation-and-information-architecture.md
19
+ * accessibility-and-inclusive-design.md
20
+
21
+ # 1. PURPOSE
22
+
23
+ A polished application is not defined only by its successful state.
24
+
25
+ The agent must design for:
26
+
27
+ ```text
28
+ Normal
29
+ Empty
30
+ Loading
31
+ Partial
32
+ Offline
33
+ Error
34
+ Permission denied
35
+ Unavailable
36
+ Expired
37
+ Not found
38
+ Recovering
39
+ ```
40
+
41
+ Every meaningful state should have an intentional interface.
42
+
43
+ # 2. CORE PRINCIPLE
44
+
45
+ Never treat:
46
+
47
+ ```text
48
+ No data
49
+ ```
50
+
51
+ as equivalent to:
52
+
53
+ ```text
54
+ Something went wrong.
55
+ ```
56
+
57
+ They are fundamentally different states.
58
+
59
+ # 3. EMPTY VS ERROR
60
+
61
+ Empty:
62
+
63
+ ```text
64
+ The system worked.
65
+ There is simply nothing to display.
66
+ ```
67
+
68
+ Error:
69
+
70
+ ```text
71
+ The system could not produce the expected result.
72
+ ```
73
+
74
+ Do not use an error screen for a legitimate empty state.
75
+
76
+ # 4. EMPTY STATE TYPES
77
+
78
+ Common empty states:
79
+
80
+ ```text
81
+ First-use empty
82
+ User-created empty
83
+ Search empty
84
+ Filtered empty
85
+ Permission-related empty
86
+ Offline empty
87
+ Completed-state empty
88
+ Unavailable empty
89
+ ```
90
+
91
+ .
92
+
93
+ # 5. FIRST-USE EMPTY
94
+
95
+ The user has never populated the feature.
96
+
97
+ The UI should explain:
98
+
99
+ ```text
100
+ What this area is
101
+ Why it is useful
102
+ How to get started
103
+ ```
104
+
105
+ .
106
+
107
+ # 6. USER-CREATED EMPTY
108
+
109
+ The feature exists but currently contains no user-created content.
110
+
111
+ Example:
112
+
113
+ ```text
114
+ Playlists
115
+ No playlists yet.
116
+ Create your first playlist.
117
+ ```
118
+
119
+ .
120
+
121
+ # 7. SEARCH EMPTY
122
+
123
+ Search completed successfully but produced no results.
124
+
125
+ The UI should communicate:
126
+
127
+ ```text
128
+ No results
129
+ ```
130
+
131
+ and, where useful:
132
+
133
+ ```text
134
+ Try another query
135
+ Adjust filters
136
+ Check spelling
137
+ ```
138
+
139
+ .
140
+
141
+ # 8. FILTERED EMPTY
142
+
143
+ Data exists, but the current filters hide everything.
144
+
145
+ Do not incorrectly tell the user:
146
+
147
+ ```text
148
+ No items exist.
149
+ ```
150
+
151
+ Instead communicate:
152
+
153
+ ```text
154
+ No items match these filters.
155
+ ```
156
+
157
+ Provide:
158
+
159
+ ```text
160
+ Clear filters
161
+ ```
162
+
163
+ when appropriate.
164
+
165
+ # 9. SORTED EMPTY
166
+
167
+ Sorting itself normally should not create an empty state.
168
+
169
+ If it does, investigate whether the UI is incorrectly applying the operation.
170
+
171
+ # 10. PERMISSION EMPTY
172
+
173
+ A feature may appear empty because permission has not been granted.
174
+
175
+ Explain:
176
+
177
+ ```text
178
+ Why access is needed
179
+ What the user can do
180
+ How to grant access
181
+ ```
182
+
183
+ without pretending the data does not exist.
184
+
185
+ # 11. OFFLINE EMPTY
186
+
187
+ Offline should not automatically be treated as:
188
+
189
+ ```text
190
+ No data.
191
+ ```
192
+
193
+ If cached data exists, show it.
194
+
195
+ # 12. CACHED CONTENT
196
+
197
+ A resilient app can provide:
198
+
199
+ ```text
200
+ Cached data
201
+ +
202
+ Offline indicator
203
+ +
204
+ Retry / reconnect
205
+ ```
206
+
207
+ .
208
+
209
+ # 13. EMPTY STATE HIERARCHY
210
+
211
+ Recommended:
212
+
213
+ ```text
214
+ Visual / icon
215
+ ↓
216
+ Title
217
+ ↓
218
+ Explanation
219
+ ↓
220
+ Primary action
221
+ ↓
222
+ Optional secondary action
223
+ ```
224
+
225
+ Not every empty state needs every element.
226
+
227
+ # 14. EMPTY STATE TITLES
228
+
229
+ Titles should describe the state.
230
+
231
+ Good:
232
+
233
+ ```text
234
+ No saved files
235
+ No playlists yet
236
+ No results
237
+ ```
238
+
239
+ Weak:
240
+
241
+ ```text
242
+ Nothing here
243
+ Oops
244
+ Hmm...
245
+ ```
246
+
247
+ unless the product deliberately uses that voice.
248
+
249
+ # 15. EMPTY STATE BODY
250
+
251
+ Explain what the user can do next when useful.
252
+
253
+ Avoid unnecessary paragraphs.
254
+
255
+ # 16. EMPTY STATE ACTION
256
+
257
+ Provide an action when one naturally exists.
258
+
259
+ Examples:
260
+
261
+ ```text
262
+ Create playlist
263
+ Add file
264
+ Start writing
265
+ Clear filters
266
+ Retry
267
+ ```
268
+
269
+ .
270
+
271
+ # 17. EMPTY STATE WITHOUT ACTION
272
+
273
+ Some empty states need no button.
274
+
275
+ Example:
276
+
277
+ ```text
278
+ Search completed with no results.
279
+ ```
280
+
281
+ A clear explanation may be enough.
282
+
283
+ # 18. EMPTY STATE ILLUSTRATION
284
+
285
+ Illustrations can establish tone.
286
+
287
+ They should not overpower the actual message.
288
+
289
+ # 19. EMPTY STATE ICONS
290
+
291
+ Icons can communicate category quickly.
292
+
293
+ Use recognizable symbols rather than decorative ambiguity.
294
+
295
+ # 20. EMPTY STATE ANIMATION
296
+
297
+ Animation is optional.
298
+
299
+ Never require animation for comprehension.
300
+
301
+ # 21. EMPTY STATE PERSONALITY
302
+
303
+ Brand personality may appear in empty states, but clarity comes first.
304
+
305
+ # 22. ERROR TYPES
306
+
307
+ Distinguish:
308
+
309
+ ```text
310
+ Validation error
311
+ Network error
312
+ Server error
313
+ Permission error
314
+ Authentication error
315
+ Parsing error
316
+ Storage error
317
+ Timeout
318
+ Conflict
319
+ Not found
320
+ Unsupported operation
321
+ Unknown failure
322
+ ```
323
+
324
+ .
325
+
326
+ # 23. ERROR CLASSIFICATION
327
+
328
+ The UI should communicate the user-relevant consequence, not the internal
329
+ exception type.
330
+
331
+ # 24. TECHNICAL ERROR
332
+
333
+ Never expose raw implementation details to ordinary users.
334
+
335
+ Avoid:
336
+
337
+ ```text
338
+ NullPointerException
339
+ HTTP 500
340
+ SQLite constraint violation
341
+ ```
342
+
343
+ unless the application is specifically for developers.
344
+
345
+ # 25. USER-ORIENTED ERROR
346
+
347
+ Prefer:
348
+
349
+ ```text
350
+ Couldn't save this file.
351
+ Try again.
352
+ ```
353
+
354
+ over:
355
+
356
+ ```text
357
+ Database transaction failed.
358
+ ```
359
+
360
+ .
361
+
362
+ # 26. ERROR MESSAGE STRUCTURE
363
+
364
+ A useful error may contain:
365
+
366
+ ```text
367
+ What happened
368
+ +
369
+ Why it matters
370
+ +
371
+ What to do next
372
+ ```
373
+
374
+ .
375
+
376
+ # 27. ERROR RECOVERY
377
+
378
+ Whenever possible:
379
+
380
+ ```text
381
+ Error
382
+ ↓
383
+ Recovery action
384
+ ```
385
+
386
+ Examples:
387
+
388
+ ```text
389
+ Retry
390
+ Reconnect
391
+ Sign in
392
+ Grant access
393
+ Try another file
394
+ Restore
395
+ ```
396
+
397
+ .
398
+
399
+ # 28. ERROR WITHOUT RECOVERY
400
+
401
+ If the user cannot fix the issue themselves, do not provide fake actions.
402
+
403
+ # 29. RETRY
404
+
405
+ Retry when the failure is likely temporary.
406
+
407
+ Do not offer Retry for every error automatically.
408
+
409
+ # 30. RETRY LABEL
410
+
411
+ Use specific labels where helpful:
412
+
413
+ ```text
414
+ Try Again
415
+ Retry Upload
416
+ Reload
417
+ Reconnect
418
+ ```
419
+
420
+ rather than ambiguous:
421
+
422
+ ```text
423
+ OK
424
+ ```
425
+
426
+ .
427
+
428
+ # 31. RETRY PRESERVATION
429
+
430
+ Retry should preserve:
431
+
432
+ ```text
433
+ User input
434
+ Selected options
435
+ Navigation context
436
+ Existing data
437
+ ```
438
+
439
+ whenever possible.
440
+
441
+ # 32. NETWORK ERRORS
442
+
443
+ Network failures are among the most common application errors.
444
+
445
+ The UI should distinguish:
446
+
447
+ ```text
448
+ No connection
449
+ Slow connection
450
+ Server unavailable
451
+ Request timed out
452
+ Authentication expired
453
+ ```
454
+
455
+ where the distinction changes recovery.
456
+
457
+ # 33. OFFLINE DETECTION
458
+
459
+ Offline state should not depend solely on a single connectivity flag.
460
+
461
+ The application may need to distinguish:
462
+
463
+ ```text
464
+ Device offline
465
+ Network reachable
466
+ Server unreachable
467
+ Request failed
468
+ ```
469
+
470
+ .
471
+
472
+ # 34. OFFLINE UI
473
+
474
+ Offline UI should answer:
475
+
476
+ ```text
477
+ Are my existing data available?
478
+ Can I continue working?
479
+ What will sync later?
480
+ What cannot be done?
481
+ ```
482
+
483
+ .
484
+
485
+ # 35. OFFLINE-FIRST
486
+
487
+ When practical:
488
+
489
+ ```text
490
+ Local state
491
+ ↓
492
+ User action
493
+ ↓
494
+ Local result
495
+ ↓
496
+ Sync later
497
+ ```
498
+
499
+ can produce a significantly better experience than blocking the user.
500
+
501
+ # 36. OFFLINE READ
502
+
503
+ If cached data exists:
504
+
505
+ ```text
506
+ Show cached content.
507
+ ```
508
+
509
+ Do not replace it with:
510
+
511
+ ```text
512
+ No internet connection.
513
+ ```
514
+
515
+ alone.
516
+
517
+ # 37. OFFLINE WRITE
518
+
519
+ If writes can be safely queued:
520
+
521
+ ```text
522
+ Saved locally
523
+ Will sync when online
524
+ ```
525
+
526
+ is preferable to a generic failure.
527
+
528
+ # 38. SYNC STATUS
529
+
530
+ Useful states:
531
+
532
+ ```text
533
+ Synced
534
+ Syncing
535
+ Queued
536
+ Offline
537
+ Failed to sync
538
+ Conflict
539
+ ```
540
+
541
+ .
542
+
543
+ # 39. SYNC INDICATOR
544
+
545
+ Keep synchronization status subtle unless user action is required.
546
+
547
+ # 40. OFFLINE BANNER
548
+
549
+ A banner can communicate temporary connectivity state without blocking the
550
+ application.
551
+
552
+ # 41. OFFLINE BANNER ABUSE
553
+
554
+ Do not display a permanent banner that dominates the interface for a condition
555
+ the user already understands.
556
+
557
+ # 42. CONNECTION RECOVERY
558
+
559
+ When connectivity returns:
560
+
561
+ ```text
562
+ Reconnect
563
+ ↓
564
+ Sync
565
+ ↓
566
+ Update UI
567
+ ```
568
+
569
+ Avoid surprising navigation or disruptive alerts.
570
+
571
+ # 43. SYNC FAILURE
572
+
573
+ If sync fails:
574
+
575
+ ```text
576
+ Preserve local data
577
+ +
578
+ Explain sync issue
579
+ +
580
+ Retry
581
+ ```
582
+
583
+ where possible.
584
+
585
+ # 44. SYNC CONFLICT
586
+
587
+ Conflicts should expose the actual choices:
588
+
589
+ ```text
590
+ Keep mine
591
+ Keep remote
592
+ Review changes
593
+ Merge
594
+ ```
595
+
596
+ depending on product semantics.
597
+
598
+ # 45. SERVER ERRORS
599
+
600
+ Server-side failures should not automatically become:
601
+
602
+ ```text
603
+ Something went wrong.
604
+ ```
605
+
606
+ if the system knows something more useful.
607
+
608
+ # 46. 404 / NOT FOUND
609
+
610
+ A missing resource is different from a server failure.
611
+
612
+ Communicate:
613
+
614
+ ```text
615
+ This item is no longer available.
616
+ ```
617
+
618
+ when accurate.
619
+
620
+ # 47. AUTHENTICATION ERROR
621
+
622
+ Expired authentication may require:
623
+
624
+ ```text
625
+ Sign in again
626
+ ```
627
+
628
+ but preserve user context where possible.
629
+
630
+ # 48. AUTHORIZATION ERROR
631
+
632
+ Distinguish:
633
+
634
+ ```text
635
+ Not signed in
636
+ ```
637
+
638
+ from:
639
+
640
+ ```text
641
+ Signed in but not permitted.
642
+ ```
643
+
644
+ They require different recovery.
645
+
646
+ # 49. PERMISSION ERROR
647
+
648
+ If access is denied:
649
+
650
+ ```text
651
+ Explain
652
+ +
653
+ Offer settings / permission path
654
+ +
655
+ Provide alternative
656
+ ```
657
+
658
+ where applicable.
659
+
660
+ # 50. STORAGE ERRORS
661
+
662
+ For local storage failures:
663
+
664
+ ```text
665
+ Storage unavailable
666
+ Storage full
667
+ File inaccessible
668
+ Permission denied
669
+ ```
670
+
671
+ may require different actions.
672
+
673
+ # 51. STORAGE FULL
674
+
675
+ Do not merely say:
676
+
677
+ ```text
678
+ Failed.
679
+ ```
680
+
681
+ Explain that storage capacity is the issue when known.
682
+
683
+ # 52. FILE ERRORS
684
+
685
+ File operations should distinguish:
686
+
687
+ ```text
688
+ Missing
689
+ Corrupted
690
+ Unsupported
691
+ Permission denied
692
+ Already exists
693
+ Locked
694
+ ```
695
+
696
+ when useful.
697
+
698
+ # 53. UNSUPPORTED CONTENT
699
+
700
+ If content cannot be opened:
701
+
702
+ ```text
703
+ This file type isn't supported.
704
+ ```
705
+
706
+ Optionally provide:
707
+
708
+ ```text
709
+ Open with another app
710
+ Convert
711
+ Share
712
+ ```
713
+
714
+ where applicable.
715
+
716
+ # 54. VALIDATION ERRORS
717
+
718
+ Validation should generally happen close to the relevant field or action.
719
+
720
+ # 55. INLINE VALIDATION
721
+
722
+ Use inline validation for:
723
+
724
+ ```text
725
+ Required fields
726
+ Invalid format
727
+ Password mismatch
728
+ Invalid range
729
+ ```
730
+
731
+ .
732
+
733
+ # 56. FORM-LEVEL ERROR
734
+
735
+ Use a form-level message when the issue affects the entire submission.
736
+
737
+ # 57. ERROR TIMING
738
+
739
+ Do not aggressively show errors before the user has had a reasonable
740
+ opportunity to complete the field.
741
+
742
+ # 58. ERROR DISAPPEARANCE
743
+
744
+ Do not hide critical error information so quickly that users cannot read it.
745
+
746
+ # 59. ERROR PERSISTENCE
747
+
748
+ Errors that block progress should remain until:
749
+
750
+ ```text
751
+ Resolved
752
+ Dismissed
753
+ Replaced
754
+ ```
755
+
756
+ .
757
+
758
+ # 60. ERROR RECOVERY ACTION
759
+
760
+ The recovery action should be closest to the error when practical.
761
+
762
+ # 61. ERROR SUMMARY
763
+
764
+ For complex forms, provide an accessible error summary in addition to inline
765
+ messages.
766
+
767
+ # 62. MULTIPLE ERRORS
768
+
769
+ Prioritize errors.
770
+
771
+ Do not overwhelm the user with dozens of messages simultaneously.
772
+
773
+ # 63. ERROR ORDER
774
+
775
+ Useful priority:
776
+
777
+ ```text
778
+ Blocking
779
+ ↓
780
+ Required
781
+ ↓
782
+ Invalid
783
+ ↓
784
+ Optional improvement
785
+ ```
786
+
787
+ .
788
+
789
+ # 64. ERROR LANGUAGE
790
+
791
+ Use:
792
+
793
+ ```text
794
+ Clear
795
+ Specific
796
+ Neutral
797
+ Actionable
798
+ ```
799
+
800
+ language.
801
+
802
+ # 65. AVOID BLAME
803
+
804
+ Avoid:
805
+
806
+ ```text
807
+ You entered the wrong thing.
808
+ ```
809
+
810
+ Prefer:
811
+
812
+ ```text
813
+ Enter a valid email address.
814
+ ```
815
+
816
+ # 66. AVOID TECHNICAL JARGON
817
+
818
+ Unless the target audience is technical, avoid implementation terminology.
819
+
820
+ # 67. ERROR HUMOR
821
+
822
+ Humor can be used carefully in non-critical states.
823
+
824
+ Never let humor obscure:
825
+
826
+ ```text
827
+ What happened
828
+ What matters
829
+ How to recover
830
+ ```
831
+
832
+ # 68. ERROR ILLUSTRATION
833
+
834
+ Illustrations should support understanding rather than replace the error
835
+ message.
836
+
837
+ # 69. ERROR ALERT
838
+
839
+ Use an alert only when the error genuinely requires interruption.
840
+
841
+ # 70. ERROR BANNER
842
+
843
+ Use a banner when:
844
+
845
+ ```text
846
+ The issue affects a screen or section
847
+ ```
848
+
849
+ but does not require blocking the user.
850
+
851
+ # 71. ERROR INLINE
852
+
853
+ Use inline feedback for local problems.
854
+
855
+ # 72. ERROR SCREEN
856
+
857
+ Use a full error state when:
858
+
859
+ ```text
860
+ The entire destination cannot function meaningfully.
861
+ ```
862
+
863
+ Do not use a full-screen error for a small failed component.
864
+
865
+ # 73. PARTIAL FAILURE
866
+
867
+ If only one section fails:
868
+
869
+ ```text
870
+ Keep working sections visible.
871
+ ```
872
+
873
+ .
874
+
875
+ # 74. GRACEFUL DEGRADATION
876
+
877
+ When advanced functionality fails:
878
+
879
+ ```text
880
+ Fallback to simpler functionality
881
+ ```
882
+
883
+ where safe.
884
+
885
+ # 75. FEATURE UNAVAILABLE
886
+
887
+ Differentiate:
888
+
889
+ ```text
890
+ Broken
891
+ ```
892
+
893
+ from:
894
+
895
+ ```text
896
+ Not available in this environment.
897
+ ```
898
+
899
+ .
900
+
901
+ # 76. MAINTENANCE
902
+
903
+ Maintenance states should communicate:
904
+
905
+ ```text
906
+ What is unavailable
907
+ Whether other features work
908
+ When availability may return
909
+ ```
910
+
911
+ when known.
912
+
913
+ # 77. TIME-BASED AVAILABILITY
914
+
915
+ If a feature becomes available later, communicate timing carefully.
916
+
917
+ Do not invent a recovery time.
918
+
919
+ # 78. EMPTY AFTER DELETE
920
+
921
+ After deleting the last item:
922
+
923
+ ```text
924
+ Data exists no longer
925
+ ```
926
+
927
+ The UI should transition naturally to the appropriate empty state.
928
+
929
+ # 79. EMPTY AFTER FILTER
930
+
931
+ If filters create an empty result:
932
+
933
+ ```text
934
+ No matches
935
+ +
936
+ Clear filters
937
+ ```
938
+
939
+ when useful.
940
+
941
+ # 80. EMPTY AFTER SEARCH
942
+
943
+ Search should preserve the query so users can modify it.
944
+
945
+ # 81. EMPTY AFTER SYNC
946
+
947
+ If synchronization temporarily produces no content, avoid prematurely showing
948
+ a permanent empty state.
949
+
950
+ # 82. LOADING → EMPTY
951
+
952
+ Correct:
953
+
954
+ ```text
955
+ Loading
956
+ ↓
957
+ Request succeeds
958
+ ↓
959
+ No results
960
+ ↓
961
+ Empty state
962
+ ```
963
+
964
+ Incorrect:
965
+
966
+ ```text
967
+ Loading
968
+ ↓
969
+ Timeout
970
+ ↓
971
+ Empty state
972
+ ```
973
+
974
+ # 83. LOADING → ERROR
975
+
976
+ Correct:
977
+
978
+ ```text
979
+ Loading
980
+ ↓
981
+ Request fails
982
+ ↓
983
+ Error
984
+ ```
985
+
986
+ .
987
+
988
+ # 84. LOADING → OFFLINE
989
+
990
+ Correct:
991
+
992
+ ```text
993
+ Loading
994
+ ↓
995
+ Connection lost
996
+ ↓
997
+ Offline / retry state
998
+ ```
999
+
1000
+ when appropriate.
1001
+
1002
+ # 85. EMPTY → DATA
1003
+
1004
+ The transition into populated content should be natural.
1005
+
1006
+ Avoid requiring users to manually reload after creating the first item.
1007
+
1008
+ # 86. ERROR → SUCCESS
1009
+
1010
+ After recovery:
1011
+
1012
+ ```text
1013
+ Error
1014
+ ↓
1015
+ Retry
1016
+ ↓
1017
+ Success
1018
+ ```
1019
+
1020
+ The error state should disappear cleanly.
1021
+
1022
+ # 87. ERROR → ERROR
1023
+
1024
+ Repeated failures should not create stacked alerts or duplicated error messages.
1025
+
1026
+ # 88. ERROR LOGGING
1027
+
1028
+ Production apps should log technical context separately from user-facing
1029
+ messages when appropriate.
1030
+
1031
+ # 89. DIAGNOSTICS
1032
+
1033
+ Useful diagnostics may include:
1034
+
1035
+ ```text
1036
+ Request ID
1037
+ Error code
1038
+ Timestamp
1039
+ Connectivity
1040
+ Device state
1041
+ ```
1042
+
1043
+ but these should not clutter the primary UX.
1044
+
1045
+ # 90. SUPPORT FLOW
1046
+
1047
+ If the user must contact support, provide enough contextual information to make
1048
+ the report useful.
1049
+
1050
+ # 91. COPY ERROR DETAILS
1051
+
1052
+ Developer-oriented applications may offer:
1053
+
1054
+ ```text
1055
+ Copy diagnostic information
1056
+ ```
1057
+
1058
+ without exposing it by default.
1059
+
1060
+ # 92. ACCESSIBILITY
1061
+
1062
+ Error states must be exposed semantically.
1063
+
1064
+ Important errors should be announced appropriately.
1065
+
1066
+ # 93. ERROR FOCUS
1067
+
1068
+ When validation fails, focus should move logically without disorienting the user.
1069
+
1070
+ # 94. SCREEN READER ERROR
1071
+
1072
+ Ensure users can discover:
1073
+
1074
+ ```text
1075
+ Field
1076
+ Problem
1077
+ Correction
1078
+ ```
1079
+
1080
+ without relying on visual proximity.
1081
+
1082
+ # 95. COLOR
1083
+
1084
+ Never communicate errors only through red.
1085
+
1086
+ # 96. ICONS
1087
+
1088
+ Error icons should reinforce meaning.
1089
+
1090
+ Do not use warning symbols for every minor issue.
1091
+
1092
+ # 97. HAPTICS
1093
+
1094
+ Critical errors may use haptic feedback where appropriate.
1095
+
1096
+ Avoid haptic overload.
1097
+
1098
+ # 98. REDUCED MOTION
1099
+
1100
+ Error and recovery states must remain understandable without motion.
1101
+
1102
+ # 99. DYNAMIC TYPE
1103
+
1104
+ Long error messages must remain usable with large text.
1105
+
1106
+ # 100. LOCALIZATION
1107
+
1108
+ Error copy should allow expansion in other languages.
1109
+
1110
+ Do not design buttons around fixed English widths.
1111
+
1112
+ # 101. OFFLINE LOCALIZATION
1113
+
1114
+ Offline messages should explain whether:
1115
+
1116
+ ```text
1117
+ The feature is unavailable
1118
+ ```
1119
+
1120
+ or:
1121
+
1122
+ ```text
1123
+ The content is available locally.
1124
+ ```
1125
+
1126
+ .
1127
+
1128
+ # 102. ERROR STATE MACHINE
1129
+
1130
+ ```text id="m2frjv"
1131
+ NORMAL
1132
+ │
1133
+ ├── NO DATA → EMPTY
1134
+ │
1135
+ ├── REQUEST → LOADING
1136
+ │ ├── SUCCESS → DATA
1137
+ │ ├── EMPTY → EMPTY
1138
+ │ ├── ERROR → ERROR
1139
+ │ └── OFFLINE → OFFLINE
1140
+ │
1141
+ └── ACTION → PROCESSING
1142
+ ├── SUCCESS
1143
+ ├── PARTIAL
1144
+ ├── ERROR
1145
+ └── CANCELLED
1146
+ ```
1147
+
1148
+ # 103. OFFLINE STATE MACHINE
1149
+
1150
+ ```text id="vcz6i9"
1151
+ ONLINE
1152
+ ↓
1153
+ Connection lost
1154
+ ↓
1155
+ OFFLINE
1156
+ ├── Cached data available
1157
+ │ ↓
1158
+ │ Continue locally
1159
+ │
1160
+ └── No cached data
1161
+ ↓
1162
+ Offline empty
1163
+ ↓
1164
+ Reconnect
1165
+ ↓
1166
+ Sync / reload
1167
+ ```
1168
+
1169
+ # 104. AGENT DECISION TREE
1170
+
1171
+ ```text id="m6yk5f"
1172
+ Is there data?
1173
+ ├── YES → Show data
1174
+ │ ↓
1175
+ │ Is it stale?
1176
+ │ ├── YES → Refresh in background
1177
+ │ └── NO → Normal
1178
+ │
1179
+ └── NO
1180
+ ↓
1181
+ Did the request succeed?
1182
+ ├── YES → Empty state
1183
+ └── NO
1184
+ ↓
1185
+ Is device/network unavailable?
1186
+ ├── YES → Offline state
1187
+ └── NO → Error state
1188
+ ```
1189
+
1190
+ # 105. ERROR DECISION TREE
1191
+
1192
+ ```text id="e3kz9h"
1193
+ Failure
1194
+ ↓
1195
+ Can user recover?
1196
+ ├── YES → Show recovery action
1197
+ └── NO
1198
+ ↓
1199
+ Is more explanation useful?
1200
+ ├── YES → Explain
1201
+ └── NO → Concise failure state
1202
+ ```
1203
+
1204
+ # 106. EMPTY DECISION TREE
1205
+
1206
+ ```text id="7g3d3p"
1207
+ No content
1208
+ ↓
1209
+ Why?
1210
+ ├── First use → Getting started
1211
+ ├── User has no content → Create action
1212
+ ├── Search → No results
1213
+ ├── Filter → Clear filters
1214
+ ├── Permission → Explain access
1215
+ └── Offline → Offline / cached state
1216
+ ```
1217
+
1218
+ # 107. AGENT COPY FORMULA
1219
+
1220
+ For user-facing errors:
1221
+
1222
+ ```text id="7u3x5j"
1223
+ [What happened]
1224
+ +
1225
+ [What can I do?]
1226
+ ```
1227
+
1228
+ Example:
1229
+
1230
+ ```text id="a8w7jx"
1231
+ Couldn't upload the photo.
1232
+ Try again when you're connected.
1233
+ ```
1234
+
1235
+ # 108. EMPTY COPY FORMULA
1236
+
1237
+ ```text id="u1q0y4"
1238
+ [What is empty]
1239
+ +
1240
+ [What can the user do next?]
1241
+ ```
1242
+
1243
+ Example:
1244
+
1245
+ ```text id="1z9a8r"
1246
+ No playlists yet.
1247
+ Create one to organize your music.
1248
+ ```
1249
+
1250
+ # 109. OFFLINE COPY FORMULA
1251
+
1252
+ ```text id="4e0b8b"
1253
+ [Connection state]
1254
+ +
1255
+ [What remains possible]
1256
+ +
1257
+ [Recovery]
1258
+ ```
1259
+
1260
+ Example:
1261
+
1262
+ ```text id="9v5p8s"
1263
+ You're offline.
1264
+ Downloaded music is still available.
1265
+ ```
1266
+
1267
+ .
1268
+
1269
+ # 110. REVIEW CHECKLIST
1270
+
1271
+ ```text
1272
+ [ ] Empty and error states are distinct
1273
+ [ ] Loading is distinct from empty
1274
+ [ ] Offline is distinct from no data
1275
+ [ ] Cached content is preserved
1276
+ [ ] Errors are actionable
1277
+ [ ] Technical details are hidden
1278
+ [ ] User input is preserved
1279
+ [ ] Retry is meaningful
1280
+ [ ] Partial failure is handled
1281
+ [ ] Recovery is discoverable
1282
+ [ ] Permission states are clear
1283
+ [ ] Accessibility is supported
1284
+ [ ] Color is not the only signal
1285
+ [ ] Large text works
1286
+ [ ] Localization is considered
1287
+ [ ] Reduced motion is respected
1288
+ ```
1289
+
1290
+ .
1291
+
1292
+ # 111. QUALITY SCORE
1293
+
1294
+ ```text
1295
+ State accuracy 15
1296
+ Recovery 15
1297
+ Clarity 15
1298
+ Context preservation 10
1299
+ Offline resilience 10
1300
+ Error specificity 10
1301
+ Accessibility 10
1302
+ Consistency 5
1303
+ Performance 5
1304
+ Localization 5
1305
+ ────────────────────────────
1306
+ Total 100
1307
+ ```
1308
+
1309
+ Interpretation:
1310
+
1311
+ ```text
1312
+ 95–100 Exceptional
1313
+ 90–94 Excellent
1314
+ 80–89 Strong
1315
+ 70–79 Needs refinement
1316
+ 60–69 Weak
1317
+ <60 Redesign
1318
+ ```
1319
+
1320
+ # 112. FINAL PRINCIPLE
1321
+
1322
+ A resilient application does not pretend failures do not exist.
1323
+
1324
+ It makes failure:
1325
+
1326
+ ```text
1327
+ Understandable
1328
+ Recoverable
1329
+ Contained
1330
+ ```
1331
+
1332
+ .
1333
+
1334
+ # 113. FINAL AGENT DIRECTIVE
1335
+
1336
+ Never generate an error state before determining:
1337
+
1338
+ ```text
1339
+ What actually failed?
1340
+ What still works?
1341
+ What data is available?
1342
+ Can the user recover?
1343
+ Can the user continue?
1344
+ Is this actually an empty state?
1345
+ Is this actually an offline state?
1346
+ ```
1347
+
1348
+ Prefer:
1349
+
1350
+ ```text
1351
+ Useful content
1352
+ +
1353
+ Truthful state
1354
+ +
1355
+ Clear recovery
1356
+ ```
1357
+
1358
+ over:
1359
+
1360
+ ```text
1361
+ Blank screen
1362
+ +
1363
+ Generic error
1364
+ +
1365
+ Retry button
1366
+ ```
1367
+
1368
+ The goal is not merely to handle failure.
1369
+
1370
+ The goal is to make the application **remain useful when things go wrong**.