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,1378 @@
1
+ # Interaction Design, Gestures, Touch Behavior & Micro-Interactions
2
+
3
+ > Advanced agent module for designing tactile interaction, gestures, feedback,
4
+ > state transitions, micro-interactions, direct manipulation, and interaction
5
+ > behavior across iOS, iPadOS, React Native, and Expo.
6
+
7
+ Version: 1.0
8
+ Platform: iOS / iPadOS / React Native / Expo
9
+ Layer: Advanced interaction intelligence
10
+
11
+ ---
12
+
13
+ # 1. PURPOSE
14
+
15
+ A premium interface is not defined only by appearance.
16
+
17
+ It is defined by:
18
+
19
+ ```text
20
+ Tap
21
+ Press
22
+ Swipe
23
+ Drag
24
+ Scroll
25
+ Hold
26
+ Release
27
+ Transition
28
+ Feedback
29
+ Recovery
30
+ ```
31
+
32
+ The interface should communicate what happened, what is happening, and what
33
+ will happen next.
34
+
35
+ ---
36
+
37
+ # 2. CORE PRINCIPLE
38
+
39
+ Every meaningful interaction should have:
40
+
41
+ ```text
42
+ Intent
43
+ → Action
44
+ → Feedback
45
+ → Result
46
+ ```
47
+
48
+ Example:
49
+
50
+ ```text
51
+ Tap Favorite
52
+ ↓
53
+ Favorite action
54
+ ↓
55
+ Icon responds
56
+ ↓
57
+ Item becomes favorited
58
+ ```
59
+
60
+ ---
61
+
62
+ # 3. DIRECT MANIPULATION
63
+
64
+ Whenever possible, users should manipulate objects directly.
65
+
66
+ Examples:
67
+
68
+ ```text
69
+ Drag file
70
+ Reorder playlist
71
+ Swipe item
72
+ Resize panel
73
+ Scrub media
74
+ Pull to refresh
75
+ ```
76
+
77
+ Direct manipulation reduces abstraction.
78
+
79
+ ---
80
+
81
+ # 4. INTERACTION PREDICTABILITY
82
+
83
+ Before an interaction occurs, users should be able to reasonably predict what
84
+ will happen.
85
+
86
+ Avoid surprising gesture behavior.
87
+
88
+ ---
89
+
90
+ # 5. TAP
91
+
92
+ Tap should be the default interaction for discrete actions.
93
+
94
+ Examples:
95
+
96
+ ```text
97
+ Open
98
+ Select
99
+ Play
100
+ Pause
101
+ Favorite
102
+ Toggle
103
+ ```
104
+
105
+ ---
106
+
107
+ # 6. TOUCH TARGETS
108
+
109
+ Interactive controls require sufficiently large touch areas.
110
+
111
+ Do not make users precisely hit tiny icons.
112
+
113
+ The visual icon and interactive hit area do not have to be identical.
114
+
115
+ ---
116
+
117
+ # 7. HIT AREA
118
+
119
+ Where appropriate:
120
+
121
+ ```text
122
+ Visual:
123
+ Small icon
124
+
125
+ Interactive:
126
+ Larger invisible touch region
127
+ ```
128
+
129
+ This improves usability without visually increasing control size.
130
+
131
+ ---
132
+
133
+ # 8. TOUCH FEEDBACK
134
+
135
+ Interactive elements should provide immediate acknowledgement.
136
+
137
+ Possible feedback:
138
+
139
+ ```text
140
+ Pressed state
141
+ Scale
142
+ Opacity
143
+ Highlight
144
+ Ripple
145
+ Haptic feedback
146
+ Animation
147
+ ```
148
+
149
+ ---
150
+
151
+ # 9. IMMEDIATE RESPONSE
152
+
153
+ The interface should acknowledge a user's action quickly, even if the actual
154
+ operation takes longer.
155
+
156
+ Example:
157
+
158
+ ```text
159
+ Tap
160
+ ↓
161
+ Immediate visual response
162
+ ↓
163
+ Async operation
164
+ ↓
165
+ Final state
166
+ ```
167
+
168
+ ---
169
+
170
+ # 10. LOADING FEEDBACK
171
+
172
+ Long-running actions should communicate progress.
173
+
174
+ Avoid leaving users wondering whether their tap worked.
175
+
176
+ ---
177
+
178
+ # 11. PRESS STATES
179
+
180
+ Pressed states should clearly communicate:
181
+
182
+ > The system registered my touch.
183
+
184
+ ---
185
+
186
+ # 12. DISABLED STATES
187
+
188
+ Disabled controls should communicate:
189
+
190
+ > This action is currently unavailable.
191
+
192
+ Do not rely on opacity alone.
193
+
194
+ ---
195
+
196
+ # 13. ENABLED VS DISABLED
197
+
198
+ The distinction should remain understandable under:
199
+
200
+ ```text
201
+ Dark mode
202
+ Light mode
203
+ Accessibility settings
204
+ Large text
205
+ Low contrast environments
206
+ ```
207
+
208
+ ---
209
+
210
+ # 14. TOGGLE INTERACTIONS
211
+
212
+ Toggles should immediately communicate their current state.
213
+
214
+ Example:
215
+
216
+ ```text
217
+ OFF
218
+ ↓
219
+ Tap
220
+ ↓
221
+ ON
222
+ ```
223
+
224
+ ---
225
+
226
+ # 15. TOGGLE PERSISTENCE
227
+
228
+ If a setting persists, reopening the interface should reflect the actual
229
+ stored state.
230
+
231
+ ---
232
+
233
+ # 16. DESTRUCTIVE ACTIONS
234
+
235
+ Destructive actions require stronger communication.
236
+
237
+ Examples:
238
+
239
+ ```text
240
+ Delete
241
+ Remove permanently
242
+ Erase
243
+ Reset
244
+ ```
245
+
246
+ ---
247
+
248
+ # 17. DESTRUCTIVE FEEDBACK
249
+
250
+ After destructive actions, clearly communicate the result.
251
+
252
+ ---
253
+
254
+ # 18. UNDO
255
+
256
+ When practical, prefer reversible actions.
257
+
258
+ Example:
259
+
260
+ ```text
261
+ Delete
262
+ ↓
263
+ Undo
264
+ ```
265
+
266
+ This can reduce unnecessary confirmation dialogs.
267
+
268
+ ---
269
+
270
+ # 19. CONFIRMATION
271
+
272
+ Confirmation should be used when the cost of accidental action is high.
273
+
274
+ Do not use confirmation for every operation.
275
+
276
+ ---
277
+
278
+ # 20. SWIPE GESTURES
279
+
280
+ Swipe can expose contextual actions.
281
+
282
+ Example:
283
+
284
+ ```text
285
+ Item
286
+ → Swipe
287
+ → Actions
288
+ ```
289
+
290
+ ---
291
+
292
+ # 21. SWIPE ACTION PRIORITY
293
+
294
+ The most useful actions should be easiest to discover.
295
+
296
+ Avoid exposing ten actions through one swipe.
297
+
298
+ ---
299
+
300
+ # 22. SWIPE-TO-DELETE
301
+
302
+ Deletion gestures should communicate destructive intent clearly.
303
+
304
+ Do not make destructive actions too easy to trigger accidentally.
305
+
306
+ ---
307
+
308
+ # 23. SWIPE NAVIGATION
309
+
310
+ Horizontal swipe navigation can be useful when screens form a natural sequence.
311
+
312
+ Do not introduce competing horizontal gesture systems.
313
+
314
+ ---
315
+
316
+ # 24. GESTURE CONFLICTS
317
+
318
+ The agent must identify conflicts between:
319
+
320
+ ```text
321
+ Scroll
322
+ Swipe
323
+ Back gesture
324
+ Drag
325
+ Pinch
326
+ Long press
327
+ ```
328
+
329
+ ---
330
+
331
+ # 25. GESTURE PRIORITY
332
+
333
+ When gestures conflict, establish a clear priority hierarchy.
334
+
335
+ Example:
336
+
337
+ ```text
338
+ System navigation
339
+ ↓
340
+ Screen navigation
341
+ ↓
342
+ Container scrolling
343
+ ↓
344
+ Component gesture
345
+ ```
346
+
347
+ ---
348
+
349
+ # 26. SCROLLING
350
+
351
+ Scrolling should feel natural and continuous.
352
+
353
+ Avoid unnecessary custom scrolling behavior that conflicts with platform
354
+ expectations.
355
+
356
+ ---
357
+
358
+ # 27. SCROLL MOMENTUM
359
+
360
+ Scrolling should preserve natural momentum where platform behavior supports
361
+ it.
362
+
363
+ ---
364
+
365
+ # 28. OVERSCROLL
366
+
367
+ Elastic or overscroll behavior can provide subtle physical feedback.
368
+
369
+ Use it intentionally rather than excessively.
370
+
371
+ ---
372
+
373
+ # 29. PULL TO REFRESH
374
+
375
+ Use pull-to-refresh when users naturally expect the content to update.
376
+
377
+ It should not be the only way to refresh important content.
378
+
379
+ ---
380
+
381
+ # 30. REFRESH FEEDBACK
382
+
383
+ The interface should communicate:
384
+
385
+ ```text
386
+ Pulling
387
+ Threshold reached
388
+ Refreshing
389
+ Completed
390
+ Failed
391
+ ```
392
+
393
+ where relevant.
394
+
395
+ ---
396
+
397
+ # 31. LONG PRESS
398
+
399
+ Long press is useful for contextual actions.
400
+
401
+ Examples:
402
+
403
+ ```text
404
+ Copy
405
+ Rename
406
+ Select
407
+ Preview
408
+ Context menu
409
+ ```
410
+
411
+ ---
412
+
413
+ # 32. LONG PRESS DISCOVERABILITY
414
+
415
+ Do not hide critical functionality exclusively behind long press.
416
+
417
+ ---
418
+
419
+ # 33. CONTEXT MENUS
420
+
421
+ Long press can reveal contextual menus when the platform supports them.
422
+
423
+ Actions should be relevant to the selected object.
424
+
425
+ ---
426
+
427
+ # 34. HAPTIC FEEDBACK
428
+
429
+ Haptics can reinforce important interaction events.
430
+
431
+ Potential uses:
432
+
433
+ ```text
434
+ Selection
435
+ Toggle
436
+ Completion
437
+ Boundary reached
438
+ Drag threshold
439
+ Error
440
+ ```
441
+
442
+ ---
443
+
444
+ # 35. HAPTIC RESTRAINT
445
+
446
+ Do not vibrate for every tap.
447
+
448
+ Haptics should have semantic meaning.
449
+
450
+ ---
451
+
452
+ # 36. HAPTIC CONSISTENCY
453
+
454
+ Similar actions should produce similar feedback throughout the application.
455
+
456
+ ---
457
+
458
+ # 37. DRAG INTERACTION
459
+
460
+ Dragging should communicate:
461
+
462
+ ```text
463
+ Grab
464
+ Move
465
+ Valid target
466
+ Invalid target
467
+ Drop
468
+ ```
469
+
470
+ ---
471
+
472
+ # 38. DRAG LIFT
473
+
474
+ When an object becomes draggable, provide visual acknowledgement.
475
+
476
+ The object may subtly:
477
+
478
+ ```text
479
+ Lift
480
+ Scale
481
+ Shadow
482
+ Separate from list
483
+ ```
484
+
485
+ ---
486
+
487
+ # 39. DROP TARGET
488
+
489
+ Valid drop zones should become obvious during drag.
490
+
491
+ ---
492
+
493
+ # 40. DROP COMPLETION
494
+
495
+ After dropping, provide immediate feedback that the operation succeeded.
496
+
497
+ ---
498
+
499
+ # 41. REORDERING
500
+
501
+ For reorderable lists:
502
+
503
+ ```text
504
+ Grab
505
+ ↓
506
+ Move
507
+ ↓
508
+ Insertion position
509
+ ↓
510
+ Release
511
+ ↓
512
+ New order
513
+ ```
514
+
515
+ The insertion location should remain clear.
516
+
517
+ ---
518
+
519
+ # 42. DRAG CANCELLATION
520
+
521
+ Users should be able to abandon a drag without accidentally modifying data.
522
+
523
+ ---
524
+
525
+ # 43. PINCH
526
+
527
+ Pinch is useful for:
528
+
529
+ ```text
530
+ Zoom
531
+ Scale
532
+ Canvas manipulation
533
+ Image viewing
534
+ ```
535
+
536
+ It should not be used when a simpler interaction communicates the same thing.
537
+
538
+ ---
539
+
540
+ # 44. DOUBLE TAP
541
+
542
+ Double tap should only be used when its meaning is obvious and consistent.
543
+
544
+ Avoid making essential functionality depend exclusively on it.
545
+
546
+ ---
547
+
548
+ # 45. TWO-FINGER GESTURES
549
+
550
+ Advanced gestures may be useful for expert applications but should not hide
551
+ basic workflows.
552
+
553
+ ---
554
+
555
+ # 46. MULTI-TOUCH
556
+
557
+ If multiple touches are supported, define interaction behavior explicitly.
558
+
559
+ Avoid accidental gesture combinations.
560
+
561
+ ---
562
+
563
+ # 47. GESTURE CANCELLATION
564
+
565
+ Every complex gesture should define what happens if the user:
566
+
567
+ ```text
568
+ Moves unexpectedly
569
+ Leaves the target
570
+ Releases early
571
+ Changes direction
572
+ ```
573
+
574
+ ---
575
+
576
+ # 48. GESTURE THRESHOLDS
577
+
578
+ Thresholds should be forgiving enough to avoid accidental activation while
579
+ remaining responsive.
580
+
581
+ ---
582
+
583
+ # 49. GESTURE VELOCITY
584
+
585
+ Where velocity matters, it should influence behavior naturally.
586
+
587
+ Example:
588
+
589
+ ```text
590
+ Fast swipe
591
+ → Strong dismissal
592
+
593
+ Slow drag
594
+ → Precise manipulation
595
+ ```
596
+
597
+ ---
598
+
599
+ # 50. GESTURE DIRECTION
600
+
601
+ Directional gestures should have clear semantic meaning.
602
+
603
+ ---
604
+
605
+ # 51. MICRO-INTERACTIONS
606
+
607
+ Micro-interactions are small pieces of feedback that communicate system state.
608
+
609
+ Examples:
610
+
611
+ ```text
612
+ Favorite animation
613
+ Save confirmation
614
+ Toggle animation
615
+ Progress indicator
616
+ Button response
617
+ Selection highlight
618
+ ```
619
+
620
+ ---
621
+
622
+ # 52. MICRO-INTERACTION PURPOSE
623
+
624
+ Every animation should communicate something.
625
+
626
+ Good reasons:
627
+
628
+ ```text
629
+ Cause
630
+ Change
631
+ Progress
632
+ Relationship
633
+ Feedback
634
+ ```
635
+
636
+ Bad reason:
637
+
638
+ ```text
639
+ "Because animation looks cool."
640
+ ```
641
+
642
+ ---
643
+
644
+ # 53. STATE TRANSITIONS
645
+
646
+ Instead of instantly replacing:
647
+
648
+ ```text
649
+ State A
650
+ ```
651
+
652
+ with:
653
+
654
+ ```text
655
+ State B
656
+ ```
657
+
658
+ the interface can visually communicate the relationship.
659
+
660
+ ---
661
+
662
+ # 54. ANIMATION CONTINUITY
663
+
664
+ Animations should connect related states.
665
+
666
+ Example:
667
+
668
+ ```text
669
+ Thumbnail
670
+ ↓
671
+ Expanded player
672
+ ```
673
+
674
+ The user should understand that the two surfaces represent the same object.
675
+
676
+ ---
677
+
678
+ # 55. SHARED ELEMENTS
679
+
680
+ When appropriate, shared elements can establish continuity between screens.
681
+
682
+ Examples:
683
+
684
+ ```text
685
+ Album artwork
686
+ Avatar
687
+ Document thumbnail
688
+ Product image
689
+ ```
690
+
691
+ ---
692
+
693
+ # 56. TRANSITION HIERARCHY
694
+
695
+ Motion should communicate:
696
+
697
+ ```text
698
+ Where something came from
699
+ Where it went
700
+ What changed
701
+ ```
702
+
703
+ ---
704
+
705
+ # 57. DURATION
706
+
707
+ Animations should feel quick enough to avoid blocking the user.
708
+
709
+ ---
710
+
711
+ # 58. ANIMATION FREQUENCY
712
+
713
+ Frequent interactions should use shorter and quieter animations than major
714
+ state changes.
715
+
716
+ ---
717
+
718
+ # 59. MICRO VS MACRO MOTION
719
+
720
+ Micro:
721
+
722
+ ```text
723
+ Toggle
724
+ Button
725
+ Icon
726
+ ```
727
+
728
+ Macro:
729
+
730
+ ```text
731
+ Screen transition
732
+ Panel expansion
733
+ Navigation
734
+ ```
735
+
736
+ They should not compete.
737
+
738
+ ---
739
+
740
+ # 60. EASING
741
+
742
+ Motion should feel physically plausible rather than mechanically linear.
743
+
744
+ Use platform-appropriate easing curves.
745
+
746
+ ---
747
+
748
+ # 61. SPRING MOTION
749
+
750
+ Spring-like motion can communicate physicality for:
751
+
752
+ ```text
753
+ Sheets
754
+ Drag interactions
755
+ Panels
756
+ Objects
757
+ ```
758
+
759
+ Use restraint.
760
+
761
+ ---
762
+
763
+ # 62. OVERSHOOT
764
+
765
+ Overshoot should be subtle.
766
+
767
+ Excessive bouncing quickly makes interfaces feel playful rather than premium.
768
+
769
+ ---
770
+
771
+ # 63. REDUCED MOTION
772
+
773
+ Respect system accessibility preferences for reduced motion.
774
+
775
+ ---
776
+
777
+ # 64. REDUCED MOTION BEHAVIOR
778
+
779
+ When motion is reduced:
780
+
781
+ ```text
782
+ Complex animation
783
+ ↓
784
+ Simplified transition
785
+ ```
786
+
787
+ The information conveyed by the animation should still remain understandable.
788
+
789
+ ---
790
+
791
+ # 65. LOADING MICRO-INTERACTIONS
792
+
793
+ Loading should feel intentional.
794
+
795
+ Possible states:
796
+
797
+ ```text
798
+ Idle
799
+ Loading
800
+ Progress
801
+ Complete
802
+ Error
803
+ Retry
804
+ ```
805
+
806
+ ---
807
+
808
+ # 66. SKELETONS
809
+
810
+ Skeleton screens can communicate structure before content arrives.
811
+
812
+ They should resemble the final layout.
813
+
814
+ ---
815
+
816
+ # 67. SKELETON ANIMATION
817
+
818
+ Skeleton animation should remain subtle.
819
+
820
+ Avoid excessive shimmer.
821
+
822
+ ---
823
+
824
+ # 68. PROGRESS
825
+
826
+ For measurable operations, communicate progress.
827
+
828
+ Example:
829
+
830
+ ```text
831
+ Downloading
832
+ ████████░░ 80%
833
+ ```
834
+
835
+ ---
836
+
837
+ # 69. INDETERMINATE PROGRESS
838
+
839
+ When progress cannot be calculated reliably, use an indeterminate indicator
840
+ rather than pretending to know the percentage.
841
+
842
+ ---
843
+
844
+ # 70. SUCCESS FEEDBACK
845
+
846
+ Successful actions should not always require a popup.
847
+
848
+ Often a subtle state change is better.
849
+
850
+ Example:
851
+
852
+ ```text
853
+ Save
854
+ ↓
855
+ Saved
856
+ ```
857
+
858
+ ---
859
+
860
+ # 71. ERROR FEEDBACK
861
+
862
+ Errors should explain:
863
+
864
+ ```text
865
+ What happened
866
+ What the user can do
867
+ ```
868
+
869
+ when recovery is possible.
870
+
871
+ ---
872
+
873
+ # 72. ERROR ANIMATION
874
+
875
+ Avoid aggressive animations for errors.
876
+
877
+ Use subtle attention cues.
878
+
879
+ ---
880
+
881
+ # 73. ATTENTION MANAGEMENT
882
+
883
+ Animation should never compete with the user's primary task.
884
+
885
+ ---
886
+
887
+ # 74. NOTIFICATION BADGES
888
+
889
+ Badges should communicate meaningful unresolved information.
890
+
891
+ Avoid using badges as decoration.
892
+
893
+ ---
894
+
895
+ # 75. COUNT BADGES
896
+
897
+ Numbers should represent actionable information.
898
+
899
+ Avoid enormous counts that provide little value.
900
+
901
+ ---
902
+
903
+ # 76. SELECTION FEEDBACK
904
+
905
+ Selection should be visually obvious.
906
+
907
+ Potential cues:
908
+
909
+ ```text
910
+ Background
911
+ Checkmark
912
+ Border
913
+ Accent
914
+ Haptic
915
+ ```
916
+
917
+ ---
918
+
919
+ # 77. MULTI-SELECTION
920
+
921
+ When entering selection mode:
922
+
923
+ ```text
924
+ Normal navigation
925
+ ↓
926
+ Selection mode
927
+ ```
928
+
929
+ the interface should clearly communicate the mode change.
930
+
931
+ ---
932
+
933
+ # 78. SELECTION TOOLBAR
934
+
935
+ Selection actions should appear in a logical location.
936
+
937
+ Examples:
938
+
939
+ ```text
940
+ Delete
941
+ Share
942
+ Move
943
+ Archive
944
+ ```
945
+
946
+ ---
947
+
948
+ # 79. SELECTION EXIT
949
+
950
+ Users should have an obvious way to leave selection mode.
951
+
952
+ ---
953
+
954
+ # 80. FOCUS
955
+
956
+ Keyboard and pointer interfaces require focus states.
957
+
958
+ Focus should remain visually distinguishable from selection.
959
+
960
+ ---
961
+
962
+ # 81. HOVER
963
+
964
+ Hover feedback should be subtle and should not trigger major state changes
965
+ unless explicitly intended.
966
+
967
+ ---
968
+
969
+ # 82. POINTER CURSORS
970
+
971
+ Where appropriate, cursor shape can communicate interaction type:
972
+
973
+ ```text
974
+ Pointer
975
+ Text
976
+ Resize
977
+ Drag
978
+ ```
979
+
980
+ ---
981
+
982
+ # 83. TOOLTIP
983
+
984
+ Tooltips can explain unfamiliar controls on pointer-based platforms.
985
+
986
+ Do not use tooltips to hide essential information.
987
+
988
+ ---
989
+
990
+ # 84. FEEDBACK LATENCY
991
+
992
+ The agent should distinguish:
993
+
994
+ ```text
995
+ Immediate feedback
996
+ Short operation
997
+ Long operation
998
+ Background operation
999
+ ```
1000
+
1001
+ and design each appropriately.
1002
+
1003
+ ---
1004
+
1005
+ # 85. OPTIMISTIC UI
1006
+
1007
+ When safe, the interface can update immediately before server confirmation.
1008
+
1009
+ Example:
1010
+
1011
+ ```text
1012
+ Favorite
1013
+ ↓
1014
+ Immediately favorited
1015
+ ↓
1016
+ Server confirms
1017
+ ```
1018
+
1019
+ ---
1020
+
1021
+ # 86. OPTIMISTIC FAILURE
1022
+
1023
+ If the operation fails, restore the previous state and communicate the problem.
1024
+
1025
+ ---
1026
+
1027
+ # 87. ASYNCHRONOUS ACTIONS
1028
+
1029
+ Long-running tasks should not freeze unrelated interface interactions.
1030
+
1031
+ ---
1032
+
1033
+ # 88. BACKGROUND TASKS
1034
+
1035
+ Background operations can communicate state through:
1036
+
1037
+ ```text
1038
+ Progress
1039
+ Status
1040
+ Notification
1041
+ Activity indicator
1042
+ ```
1043
+
1044
+ depending on the product.
1045
+
1046
+ ---
1047
+
1048
+ # 89. DISABLED DURING OPERATION
1049
+
1050
+ Do not disable the entire interface while one small operation runs.
1051
+
1052
+ Disable only controls that genuinely cannot be used.
1053
+
1054
+ ---
1055
+
1056
+ # 90. DOUBLE-TAP PROTECTION
1057
+
1058
+ For expensive or destructive actions, protect against accidental repeated
1059
+ activation.
1060
+
1061
+ ---
1062
+
1063
+ # 91. RAPID TAP HANDLING
1064
+
1065
+ Repeated taps should produce predictable results.
1066
+
1067
+ Avoid accidentally triggering:
1068
+
1069
+ ```text
1070
+ Duplicate submissions
1071
+ Duplicate navigation
1072
+ Duplicate purchases
1073
+ Duplicate downloads
1074
+ ```
1075
+
1076
+ ---
1077
+
1078
+ # 92. DEBOUNCE
1079
+
1080
+ Search fields and other rapidly changing inputs may require debouncing to
1081
+ prevent unnecessary work.
1082
+
1083
+ ---
1084
+
1085
+ # 93. THROTTLING
1086
+
1087
+ Continuous interactions such as scrolling or dragging may require throttling
1088
+ for performance.
1089
+
1090
+ ---
1091
+
1092
+ # 94. GESTURE PERFORMANCE
1093
+
1094
+ Gesture interactions should remain smooth under normal device load.
1095
+
1096
+ Avoid expensive JavaScript work on critical gesture paths when native or
1097
+ optimized alternatives are appropriate.
1098
+
1099
+ ---
1100
+
1101
+ # 95. INTERACTION + NETWORK
1102
+
1103
+ A network request should not make the UI feel unresponsive.
1104
+
1105
+ Use:
1106
+
1107
+ ```text
1108
+ Immediate feedback
1109
+ Loading state
1110
+ Optimistic update
1111
+ Progress
1112
+ Retry
1113
+ ```
1114
+
1115
+ as appropriate.
1116
+
1117
+ ---
1118
+
1119
+ # 96. OFFLINE INTERACTION
1120
+
1121
+ When offline, communicate which actions remain available.
1122
+
1123
+ Do not make the entire application appear broken if local functionality still
1124
+ works.
1125
+
1126
+ ---
1127
+
1128
+ # 97. ERROR RECOVERY
1129
+
1130
+ A failed action should preferably lead to:
1131
+
1132
+ ```text
1133
+ Failure
1134
+ ↓
1135
+ Explanation
1136
+ ↓
1137
+ Recovery
1138
+ ```
1139
+
1140
+ rather than:
1141
+
1142
+ ```text
1143
+ Failure
1144
+ ↓
1145
+ Dead end
1146
+ ```
1147
+
1148
+ ---
1149
+
1150
+ # 98. INTERACTION CONSISTENCY
1151
+
1152
+ If swiping left deletes an item in one part of the application, do not make
1153
+ swiping left archive it elsewhere without a strong contextual reason.
1154
+
1155
+ ---
1156
+
1157
+ # 99. GESTURE VOCABULARY
1158
+
1159
+ Establish a product-wide gesture language.
1160
+
1161
+ Example:
1162
+
1163
+ ```text
1164
+ Tap
1165
+ → Open
1166
+
1167
+ Long press
1168
+ → Context actions
1169
+
1170
+ Swipe
1171
+ → Contextual action
1172
+
1173
+ Drag
1174
+ → Move/reorder
1175
+
1176
+ Pinch
1177
+ → Zoom
1178
+ ```
1179
+
1180
+ ---
1181
+
1182
+ # 100. INTERACTION DISCOVERABILITY
1183
+
1184
+ Important interactions should have visible alternatives where practical.
1185
+
1186
+ Example:
1187
+
1188
+ ```text
1189
+ Long press
1190
+ +
1191
+ Context menu button
1192
+ ```
1193
+
1194
+ when the action is important enough.
1195
+
1196
+ ---
1197
+
1198
+ # 101. INTERACTION HIERARCHY
1199
+
1200
+ Primary interactions should be:
1201
+
1202
+ ```text
1203
+ Easy
1204
+ Fast
1205
+ Visible
1206
+ Reliable
1207
+ ```
1208
+
1209
+ Secondary interactions can require:
1210
+
1211
+ ```text
1212
+ Additional gesture
1213
+ Menu
1214
+ Contextual action
1215
+ ```
1216
+
1217
+ ---
1218
+
1219
+ # 102. INTERACTION ANTI-PATTERNS
1220
+
1221
+ Avoid:
1222
+
1223
+ ```text
1224
+ Hidden critical gestures
1225
+ Tiny touch targets
1226
+ Gesture conflicts
1227
+ Excessive animation
1228
+ Excessive haptics
1229
+ Unpredictable swipe actions
1230
+ Long-press-only essential features
1231
+ Invisible loading
1232
+ Blocking the entire UI
1233
+ Unclear disabled states
1234
+ Duplicate action execution
1235
+ Destructive gestures without protection
1236
+ Animation that ignores reduced-motion settings
1237
+ ```
1238
+
1239
+ ---
1240
+
1241
+ # 103. INTERACTION DESIGN WORKFLOW
1242
+
1243
+ The agent should follow:
1244
+
1245
+ ```text
1246
+ 1. Identify user actions
1247
+ ↓
1248
+ 2. Identify primary actions
1249
+ ↓
1250
+ 3. Identify secondary actions
1251
+ ↓
1252
+ 4. Define direct manipulation
1253
+ ↓
1254
+ 5. Define gestures
1255
+ ↓
1256
+ 6. Identify gesture conflicts
1257
+ ↓
1258
+ 7. Define feedback
1259
+ ↓
1260
+ 8. Define loading states
1261
+ ↓
1262
+ 9. Define success states
1263
+ ↓
1264
+ 10. Define error states
1265
+ ↓
1266
+ 11. Define haptic behavior
1267
+ ↓
1268
+ 12. Define animation behavior
1269
+ ↓
1270
+ 13. Define reduced-motion behavior
1271
+ ↓
1272
+ 14. Define accessibility behavior
1273
+ ↓
1274
+ 15. Define interruption/recovery
1275
+ ↓
1276
+ 16. Test rapid interactions
1277
+ ↓
1278
+ 17. Test offline behavior
1279
+ ↓
1280
+ 18. Test performance
1281
+ ↓
1282
+ 19. Audit consistency
1283
+ ```
1284
+
1285
+ ---
1286
+
1287
+ # 104. INTERACTION QUALITY GATE
1288
+
1289
+ ```text
1290
+ [ ] Every major action provides feedback
1291
+ [ ] Touch targets are comfortable
1292
+ [ ] Press states exist
1293
+ [ ] Disabled states are understandable
1294
+ [ ] Gestures have clear meaning
1295
+ [ ] Gesture conflicts are resolved
1296
+ [ ] Swipe actions are contextual
1297
+ [ ] Long press is not required for essential actions
1298
+ [ ] Drag operations communicate state
1299
+ [ ] Drop targets are clear
1300
+ [ ] Haptics have semantic purpose
1301
+ [ ] Animations communicate change
1302
+ [ ] Motion respects accessibility
1303
+ [ ] Loading states are visible
1304
+ [ ] Success states are clear
1305
+ [ ] Errors are recoverable where possible
1306
+ [ ] Destructive actions are protected
1307
+ [ ] Undo is considered
1308
+ [ ] Rapid taps are handled
1309
+ [ ] Async operations remain responsive
1310
+ [ ] Offline behavior is considered
1311
+ [ ] Interaction patterns are consistent
1312
+ [ ] Pointer interaction is considered
1313
+ [ ] Keyboard interaction is considered
1314
+ [ ] Performance remains smooth
1315
+ ```
1316
+
1317
+ ---
1318
+
1319
+ # 105. AGENT DECISION RULE
1320
+
1321
+ Before adding a gesture, ask:
1322
+
1323
+ ```text
1324
+ Is it discoverable?
1325
+
1326
+ Is it necessary?
1327
+
1328
+ Does it conflict with another gesture?
1329
+
1330
+ Is there a visible alternative?
1331
+
1332
+ Does it work with accessibility features?
1333
+
1334
+ Does it behave consistently with the rest of the application?
1335
+ ```
1336
+
1337
+ If the answer is unclear, prefer the simpler interaction.
1338
+
1339
+ ---
1340
+
1341
+ # 106. FINAL PRINCIPLE
1342
+
1343
+ The goal is not to create an application filled with gestures and animations.
1344
+
1345
+ The goal is to make every interaction feel:
1346
+
1347
+ ```text
1348
+ Intentional
1349
+ Immediate
1350
+ Predictable
1351
+ Responsive
1352
+ Physical
1353
+ Forgiving
1354
+ ```
1355
+
1356
+ The strongest interaction design follows:
1357
+
1358
+ ```text
1359
+ User action
1360
+ ↓
1361
+ Immediate acknowledgement
1362
+ ↓
1363
+ Meaningful motion/feedback
1364
+ ↓
1365
+ System result
1366
+ ↓
1367
+ Clear next state
1368
+ ```
1369
+
1370
+ A premium interface should make users feel that the application **understands
1371
+ their actions immediately**.
1372
+
1373
+ The user should rarely wonder:
1374
+
1375
+ > "Did that work?"
1376
+
1377
+ That question is one of the clearest signs that interaction feedback needs
1378
+ improvement.