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.
- package/AGENTS.md +47 -0
- package/CHANGELOG.md +25 -0
- package/README.md +78 -0
- package/bin/cli.mjs +375 -0
- package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
- package/knowledge/android/accessibility.md +333 -0
- package/knowledge/android/components-controls.md +270 -0
- package/knowledge/android/material-design-3.md +174 -0
- package/knowledge/android/navigation-patterns.md +212 -0
- package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
- package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
- package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
- package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
- package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
- package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
- package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
- package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
- package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
- package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
- package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
- package/knowledge/apple/Interaction-behaviour.md +1378 -0
- package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
- package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
- package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
- package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
- package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
- package/knowledge/apple/Patterns-templates-composition.md +647 -0
- package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
- package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
- package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
- package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
- package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
- package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
- package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
- package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
- package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
- package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
- package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
- package/knowledge/apple/accessibility.md +2162 -0
- package/knowledge/apple/color.md +1933 -0
- package/knowledge/apple/component-architecture.md +2208 -0
- package/knowledge/apple/components.md +2172 -0
- package/knowledge/apple/design-decision-framework.md +1883 -0
- package/knowledge/apple/design-review-engine.md +2108 -0
- package/knowledge/apple/design-tokens.md +1943 -0
- package/knowledge/apple/designing-for-ios.md +1680 -0
- package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
- package/knowledge/apple/hig-foundation.md +1806 -0
- package/knowledge/apple/iconography.md +1903 -0
- package/knowledge/apple/interaction-patterns.md +2513 -0
- package/knowledge/apple/interaction.md +2141 -0
- package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
- package/knowledge/apple/ios-components-and-controls.md +1634 -0
- package/knowledge/apple/ios-components-patterns.md +1343 -0
- package/knowledge/apple/ios-design-system-architecture.md +1520 -0
- package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
- package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
- package/knowledge/apple/ios-forms-and-input.md +1458 -0
- package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
- package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
- package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
- package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
- package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
- package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
- package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
- package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
- package/knowledge/apple/ios-search-and-discovery.md +1456 -0
- package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
- package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
- package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
- package/knowledge/apple/layout.md +2331 -0
- package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
- package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
- package/knowledge/apple/motion-and-animation.md +1698 -0
- package/knowledge/apple/motion.md +2087 -0
- package/knowledge/apple/navigation.md +2281 -0
- package/knowledge/apple/responsive-adaptive.md +2159 -0
- package/knowledge/apple/screen-architecture.md +2067 -0
- package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
- package/knowledge/apple/typography.md +1802 -0
- package/knowledge/apple/ui-ux inteligence audit.md +106 -0
- package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
- package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
- package/knowledge/apple/visual-materials.md +2189 -0
- package/package.json +53 -0
- package/principles/design-principles.md +37 -0
- package/principles/platform-principles.md +25 -0
- package/principles/ux-principles.md +16 -0
- package/references/official-links.md +11 -0
- package/skills/accessibility-engineer/SKILL.md +125 -0
- package/skills/analytics-engineer/SKILL.md +283 -0
- package/skills/animation-engineer/SKILL.md +316 -0
- package/skills/component-designer/SKILL.md +75 -0
- package/skills/component-library-engineer/SKILL.md +140 -0
- package/skills/component-library-ops/SKILL.md +155 -0
- package/skills/design-system/SKILL.md +77 -0
- package/skills/design-token-engineer/SKILL.md +203 -0
- package/skills/design-token-pipeline/SKILL.md +277 -0
- package/skills/device-lab-engineer/SKILL.md +387 -0
- package/skills/forms-engineer/SKILL.md +79 -0
- package/skills/internationalization-engineer/SKILL.md +256 -0
- package/skills/motion-designer/SKILL.md +77 -0
- package/skills/native-data-fetching/SKILL.md +50 -0
- package/skills/navigation-architect/SKILL.md +65 -0
- package/skills/performance-engineer/SKILL.md +250 -0
- package/skills/platform-specialist/SKILL.md +95 -0
- package/skills/pre-release-gate/SKILL.md +75 -0
- package/skills/screen-designer/SKILL.md +117 -0
- package/skills/security-engineer/SKILL.md +375 -0
- package/skills/skills.json +134 -0
- package/skills/testing-auditor/SKILL.md +62 -0
- package/skills/ui-architect/SKILL.md +86 -0
- package/skills/ui-implementer/SKILL.md +188 -0
- package/skills/ux-architect/SKILL.md +49 -0
- package/skills/ux-auditor/SKILL.md +52 -0
- package/skills/visual-auditor/SKILL.md +71 -0
- package/templates/audit-report.md +29 -0
- package/templates/design-tokens.ts +33 -0
- package/templates/screen-spec.md +61 -0
- package/workflows/new-screen.md +17 -0
- package/workflows/pre-release.md +21 -0
- package/workflows/redesign.md +14 -0
- package/workflows/ui-audit.md +22 -0
|
@@ -0,0 +1,1205 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# iOS Sheets, Modals & Popovers
|
|
4
|
+
|
|
5
|
+
> Agent intelligence module for designing temporary surfaces, focused tasks,
|
|
6
|
+
> contextual actions, confirmations, and layered interaction without breaking
|
|
7
|
+
> context or navigation.
|
|
8
|
+
|
|
9
|
+
Version: 1.0
|
|
10
|
+
Platform: iOS / iPadOS / React Native / Expo
|
|
11
|
+
Role: Modal surface intelligence
|
|
12
|
+
|
|
13
|
+
Parent:
|
|
14
|
+
|
|
15
|
+
* ios-design-system-architecture.md
|
|
16
|
+
* ios-navigation-and-information-architecture.md
|
|
17
|
+
* ios-components-and-controls.md
|
|
18
|
+
* ios-gestures-and-touch.md
|
|
19
|
+
* ios-forms-and-input.md
|
|
20
|
+
* ios-motion-and-animation.md
|
|
21
|
+
* accessibility-and-inclusive-design.md
|
|
22
|
+
|
|
23
|
+
# 1. PURPOSE
|
|
24
|
+
|
|
25
|
+
Temporary surfaces should help users complete a focused task without making
|
|
26
|
+
the application feel like a collection of disconnected screens.
|
|
27
|
+
|
|
28
|
+
The agent must distinguish between:
|
|
29
|
+
|
|
30
|
+
```text
|
|
31
|
+
Full screen
|
|
32
|
+
Sheet
|
|
33
|
+
Bottom sheet
|
|
34
|
+
Popover
|
|
35
|
+
Alert
|
|
36
|
+
Confirmation
|
|
37
|
+
Context menu
|
|
38
|
+
Action sheet
|
|
39
|
+
Overlay
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Each represents a different interaction model.
|
|
43
|
+
|
|
44
|
+
# 2. CORE PRINCIPLE
|
|
45
|
+
|
|
46
|
+
Use a temporary surface when the user needs to:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
Choose
|
|
50
|
+
Confirm
|
|
51
|
+
Edit
|
|
52
|
+
Inspect
|
|
53
|
+
Configure
|
|
54
|
+
Act on context
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
without permanently leaving the current context.
|
|
58
|
+
|
|
59
|
+
# 3. MODALITY
|
|
60
|
+
|
|
61
|
+
Before using a modal surface ask:
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
Does the user need to finish this task first?
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
If no, consider a non-modal presentation.
|
|
68
|
+
|
|
69
|
+
# 4. MODAL VS NON-MODAL
|
|
70
|
+
|
|
71
|
+
Modal:
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
User must deal with this before continuing.
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Non-modal:
|
|
78
|
+
|
|
79
|
+
```text
|
|
80
|
+
User can inspect or interact without losing the underlying context.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
# 5. FULL-SCREEN PRESENTATION
|
|
84
|
+
|
|
85
|
+
Use a full-screen presentation when the task is:
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
Complex
|
|
89
|
+
Long
|
|
90
|
+
Content-heavy
|
|
91
|
+
Multi-step
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Do not force a complex workflow into a tiny sheet.
|
|
95
|
+
|
|
96
|
+
# 6. SHEETS
|
|
97
|
+
|
|
98
|
+
Sheets are useful for focused tasks that benefit from retaining the context
|
|
99
|
+
behind them.
|
|
100
|
+
|
|
101
|
+
Examples:
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
Edit
|
|
105
|
+
Filter
|
|
106
|
+
Share
|
|
107
|
+
Choose
|
|
108
|
+
Configure
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
.
|
|
112
|
+
|
|
113
|
+
# 7. BOTTOM SHEETS
|
|
114
|
+
|
|
115
|
+
A bottom sheet is useful when the content or action naturally emerges from the
|
|
116
|
+
bottom interaction area.
|
|
117
|
+
|
|
118
|
+
Examples:
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
Filters
|
|
122
|
+
Actions
|
|
123
|
+
Playback controls
|
|
124
|
+
Quick configuration
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
.
|
|
128
|
+
|
|
129
|
+
# 8. SHEET HEIGHT
|
|
130
|
+
|
|
131
|
+
Choose a height based on content.
|
|
132
|
+
|
|
133
|
+
Avoid arbitrary fixed heights when content size can vary.
|
|
134
|
+
|
|
135
|
+
# 9. SHEET DETENTS
|
|
136
|
+
|
|
137
|
+
Possible conceptual states:
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
Compact
|
|
141
|
+
Medium
|
|
142
|
+
Expanded
|
|
143
|
+
Full
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Use only the states necessary for the task.
|
|
147
|
+
|
|
148
|
+
# 10. SHEET CONTENT
|
|
149
|
+
|
|
150
|
+
The sheet should communicate:
|
|
151
|
+
|
|
152
|
+
```text
|
|
153
|
+
Purpose
|
|
154
|
+
Available actions
|
|
155
|
+
Current state
|
|
156
|
+
Dismissal
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
without requiring the user to inspect the background.
|
|
160
|
+
|
|
161
|
+
# 11. SHEET HANDLE
|
|
162
|
+
|
|
163
|
+
A drag indicator may communicate that a sheet is movable.
|
|
164
|
+
|
|
165
|
+
Do not treat it as the only discoverability mechanism for important behavior.
|
|
166
|
+
|
|
167
|
+
# 12. SHEET DISMISSAL
|
|
168
|
+
|
|
169
|
+
Users should understand how to dismiss the sheet.
|
|
170
|
+
|
|
171
|
+
Possible mechanisms:
|
|
172
|
+
|
|
173
|
+
```text
|
|
174
|
+
Close
|
|
175
|
+
Cancel
|
|
176
|
+
Swipe down
|
|
177
|
+
Back
|
|
178
|
+
Completion
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Choose based on context.
|
|
182
|
+
|
|
183
|
+
# 13. DISMISSAL SEMANTICS
|
|
184
|
+
|
|
185
|
+
Dismissal must have a predictable meaning.
|
|
186
|
+
|
|
187
|
+
For example:
|
|
188
|
+
|
|
189
|
+
```text
|
|
190
|
+
Cancel → abandon changes
|
|
191
|
+
Done → accept changes
|
|
192
|
+
Close → leave without necessarily implying cancellation
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Do not use these interchangeably without reason.
|
|
196
|
+
|
|
197
|
+
# 14. UNSAVED CHANGES
|
|
198
|
+
|
|
199
|
+
If dismissal can destroy meaningful work:
|
|
200
|
+
|
|
201
|
+
```text
|
|
202
|
+
Warn
|
|
203
|
+
Confirm
|
|
204
|
+
or
|
|
205
|
+
Auto-save
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
depending on the product.
|
|
209
|
+
|
|
210
|
+
# 15. SHEET STATE PRESERVATION
|
|
211
|
+
|
|
212
|
+
When a sheet is temporarily dismissed or collapsed, preserve meaningful state
|
|
213
|
+
where users reasonably expect it.
|
|
214
|
+
|
|
215
|
+
# 16. SHEET REOPENING
|
|
216
|
+
|
|
217
|
+
Reopening a sheet should not unexpectedly reset the user's work unless reset
|
|
218
|
+
is explicitly intended.
|
|
219
|
+
|
|
220
|
+
# 17. SHEET BACKGROUND
|
|
221
|
+
|
|
222
|
+
The underlying content should remain visually recognizable when modality permits.
|
|
223
|
+
|
|
224
|
+
This reinforces:
|
|
225
|
+
|
|
226
|
+
```text
|
|
227
|
+
"You are still here."
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
# 18. DIMMING
|
|
231
|
+
|
|
232
|
+
Background dimming can establish modality.
|
|
233
|
+
|
|
234
|
+
Do not make the background darker than necessary.
|
|
235
|
+
|
|
236
|
+
# 19. VISUAL HIERARCHY
|
|
237
|
+
|
|
238
|
+
The sheet should clearly dominate the background while remaining visually
|
|
239
|
+
connected to it.
|
|
240
|
+
|
|
241
|
+
# 20. SHEET CORNERS
|
|
242
|
+
|
|
243
|
+
Rounded corners can communicate a floating/temporary surface.
|
|
244
|
+
|
|
245
|
+
Use them consistently with the application's visual language.
|
|
246
|
+
|
|
247
|
+
# 21. SHEET SHADOW
|
|
248
|
+
|
|
249
|
+
Depth should communicate layering, not decoration.
|
|
250
|
+
|
|
251
|
+
Do not add excessive shadows to every overlay.
|
|
252
|
+
|
|
253
|
+
# 22. SHEET SAFE AREAS
|
|
254
|
+
|
|
255
|
+
Respect:
|
|
256
|
+
|
|
257
|
+
```text
|
|
258
|
+
Safe areas
|
|
259
|
+
Home indicator
|
|
260
|
+
Keyboard
|
|
261
|
+
System bars
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
.
|
|
265
|
+
|
|
266
|
+
# 23. SHEET + KEYBOARD
|
|
267
|
+
|
|
268
|
+
When a sheet contains input:
|
|
269
|
+
|
|
270
|
+
```text
|
|
271
|
+
Sheet
|
|
272
|
+
↓
|
|
273
|
+
Keyboard appears
|
|
274
|
+
↓
|
|
275
|
+
Content adjusts
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
without obscuring the active field.
|
|
279
|
+
|
|
280
|
+
# 24. SHEET SCROLLING
|
|
281
|
+
|
|
282
|
+
If content exceeds the available height:
|
|
283
|
+
|
|
284
|
+
```text
|
|
285
|
+
Sheet
|
|
286
|
+
↓
|
|
287
|
+
Scrollable content
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
rather than allowing content to overflow invisibly.
|
|
291
|
+
|
|
292
|
+
# 25. SHEET + SCROLL CONFLICT
|
|
293
|
+
|
|
294
|
+
When a sheet can both drag and scroll:
|
|
295
|
+
|
|
296
|
+
```text
|
|
297
|
+
drag gesture
|
|
298
|
+
+
|
|
299
|
+
scroll gesture
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
must have predictable ownership.
|
|
303
|
+
|
|
304
|
+
# 26. EXPANDING SHEET
|
|
305
|
+
|
|
306
|
+
A common interaction model:
|
|
307
|
+
|
|
308
|
+
```text
|
|
309
|
+
Collapsed
|
|
310
|
+
↓
|
|
311
|
+
Drag upward
|
|
312
|
+
↓
|
|
313
|
+
Expanded
|
|
314
|
+
↓
|
|
315
|
+
Scroll content
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
The transition should feel continuous.
|
|
319
|
+
|
|
320
|
+
# 27. SHEET VELOCITY
|
|
321
|
+
|
|
322
|
+
Fast dismissal gestures can be supported where appropriate, but the result
|
|
323
|
+
should remain predictable.
|
|
324
|
+
|
|
325
|
+
# 28. SHEET SNAP POINTS
|
|
326
|
+
|
|
327
|
+
Snap points should correspond to meaningful states.
|
|
328
|
+
|
|
329
|
+
Avoid arbitrary stopping positions.
|
|
330
|
+
|
|
331
|
+
# 29. SHEET ACCESSIBILITY
|
|
332
|
+
|
|
333
|
+
A sheet should expose:
|
|
334
|
+
|
|
335
|
+
```text
|
|
336
|
+
Role
|
|
337
|
+
Title
|
|
338
|
+
Current state
|
|
339
|
+
Available actions
|
|
340
|
+
Dismissal
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
to assistive technologies.
|
|
344
|
+
|
|
345
|
+
# 30. SHEET FOCUS
|
|
346
|
+
|
|
347
|
+
When presented, focus should move appropriately for the task.
|
|
348
|
+
|
|
349
|
+
Avoid unexpected focus changes when the sheet is informational rather than
|
|
350
|
+
interactive.
|
|
351
|
+
|
|
352
|
+
# 31. POPOVERS
|
|
353
|
+
|
|
354
|
+
Popovers are appropriate for contextual choices or information attached to a
|
|
355
|
+
specific control or object.
|
|
356
|
+
|
|
357
|
+
# 32. POPOVER CONTEXT
|
|
358
|
+
|
|
359
|
+
A popover should visually communicate:
|
|
360
|
+
|
|
361
|
+
```text
|
|
362
|
+
"This belongs to that."
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
# 33. POPOVER ANCHOR
|
|
366
|
+
|
|
367
|
+
The popover should remain visually connected to its source.
|
|
368
|
+
|
|
369
|
+
# 34. POPOVER POSITION
|
|
370
|
+
|
|
371
|
+
Position should adapt to available screen space.
|
|
372
|
+
|
|
373
|
+
Do not assume one fixed direction.
|
|
374
|
+
|
|
375
|
+
# 35. POPOVER CONTENT
|
|
376
|
+
|
|
377
|
+
Keep popovers focused.
|
|
378
|
+
|
|
379
|
+
They should not become miniature applications.
|
|
380
|
+
|
|
381
|
+
# 36. POPOVER ACTIONS
|
|
382
|
+
|
|
383
|
+
Good popover content:
|
|
384
|
+
|
|
385
|
+
```text
|
|
386
|
+
Sort
|
|
387
|
+
Filter
|
|
388
|
+
Choose
|
|
389
|
+
Inspect
|
|
390
|
+
Quick configuration
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
.
|
|
394
|
+
|
|
395
|
+
# 37. POPOVER VS SHEET
|
|
396
|
+
|
|
397
|
+
Use a popover when:
|
|
398
|
+
|
|
399
|
+
```text
|
|
400
|
+
The source context matters strongly.
|
|
401
|
+
The content is compact.
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
Use a sheet when:
|
|
405
|
+
|
|
406
|
+
```text
|
|
407
|
+
The task requires more space.
|
|
408
|
+
The interaction is more substantial.
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
.
|
|
412
|
+
|
|
413
|
+
# 38. POPOVER VS MENU
|
|
414
|
+
|
|
415
|
+
A menu is primarily for selecting actions.
|
|
416
|
+
|
|
417
|
+
A popover can contain richer contextual content.
|
|
418
|
+
|
|
419
|
+
# 39. POPOVER DISMISSAL
|
|
420
|
+
|
|
421
|
+
Tapping outside should generally dismiss a temporary popover when appropriate.
|
|
422
|
+
|
|
423
|
+
# 40. POPOVER ACCESSIBILITY
|
|
424
|
+
|
|
425
|
+
Do not make spatial attachment the only way to understand what the popover
|
|
426
|
+
belongs to.
|
|
427
|
+
|
|
428
|
+
# 41. ALERTS
|
|
429
|
+
|
|
430
|
+
Alerts interrupt the user.
|
|
431
|
+
|
|
432
|
+
Therefore they should be reserved for situations that genuinely require
|
|
433
|
+
attention.
|
|
434
|
+
|
|
435
|
+
# 42. ALERT PURPOSE
|
|
436
|
+
|
|
437
|
+
Use alerts for:
|
|
438
|
+
|
|
439
|
+
```text
|
|
440
|
+
Important errors
|
|
441
|
+
Critical decisions
|
|
442
|
+
Consequences
|
|
443
|
+
Permission-related decisions
|
|
444
|
+
Irreversible operations
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
when interruption is justified.
|
|
448
|
+
|
|
449
|
+
# 43. ALERT ABUSE
|
|
450
|
+
|
|
451
|
+
Do not use alerts for:
|
|
452
|
+
|
|
453
|
+
```text
|
|
454
|
+
Routine success
|
|
455
|
+
Minor information
|
|
456
|
+
Every validation error
|
|
457
|
+
Non-critical notifications
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
.
|
|
461
|
+
|
|
462
|
+
# 44. ALERT TITLES
|
|
463
|
+
|
|
464
|
+
The title should communicate the central issue immediately.
|
|
465
|
+
|
|
466
|
+
# 45. ALERT MESSAGE
|
|
467
|
+
|
|
468
|
+
The message should explain:
|
|
469
|
+
|
|
470
|
+
```text
|
|
471
|
+
What happened
|
|
472
|
+
Why it matters
|
|
473
|
+
What the user can do
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
when needed.
|
|
477
|
+
|
|
478
|
+
# 46. ALERT ACTIONS
|
|
479
|
+
|
|
480
|
+
Actions should represent actual decisions.
|
|
481
|
+
|
|
482
|
+
Examples:
|
|
483
|
+
|
|
484
|
+
```text
|
|
485
|
+
Cancel
|
|
486
|
+
Delete
|
|
487
|
+
Retry
|
|
488
|
+
Allow
|
|
489
|
+
Continue
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
.
|
|
493
|
+
|
|
494
|
+
# 47. PRIMARY ACTION
|
|
495
|
+
|
|
496
|
+
The primary action should be visually and semantically clear.
|
|
497
|
+
|
|
498
|
+
# 48. DESTRUCTIVE ACTION
|
|
499
|
+
|
|
500
|
+
Destructive actions should be clearly distinguished.
|
|
501
|
+
|
|
502
|
+
Do not disguise destructive actions as neutral buttons.
|
|
503
|
+
|
|
504
|
+
# 49. CONFIRMATION
|
|
505
|
+
|
|
506
|
+
Confirmation should be proportional to consequence.
|
|
507
|
+
|
|
508
|
+
Ask for confirmation when:
|
|
509
|
+
|
|
510
|
+
```text
|
|
511
|
+
The action is destructive
|
|
512
|
+
The action is difficult to undo
|
|
513
|
+
The consequence is significant
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
.
|
|
517
|
+
|
|
518
|
+
# 50. CONFIRMATION FATIGUE
|
|
519
|
+
|
|
520
|
+
Repeated unnecessary confirmation makes users stop reading.
|
|
521
|
+
|
|
522
|
+
Avoid:
|
|
523
|
+
|
|
524
|
+
```text
|
|
525
|
+
Delete
|
|
526
|
+
↓
|
|
527
|
+
Are you sure?
|
|
528
|
+
↓
|
|
529
|
+
Delete
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
for routine reversible actions.
|
|
533
|
+
|
|
534
|
+
# 51. UNDO VS CONFIRMATION
|
|
535
|
+
|
|
536
|
+
When an action is reversible:
|
|
537
|
+
|
|
538
|
+
```text
|
|
539
|
+
Action
|
|
540
|
+
↓
|
|
541
|
+
Undo
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
may be better than:
|
|
545
|
+
|
|
546
|
+
```text
|
|
547
|
+
Action
|
|
548
|
+
↓
|
|
549
|
+
Confirmation
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
.
|
|
553
|
+
|
|
554
|
+
# 52. DESTRUCTIVE WORKFLOW
|
|
555
|
+
|
|
556
|
+
For highly consequential operations:
|
|
557
|
+
|
|
558
|
+
```text
|
|
559
|
+
Intent
|
|
560
|
+
↓
|
|
561
|
+
Explain consequence
|
|
562
|
+
↓
|
|
563
|
+
Confirm
|
|
564
|
+
↓
|
|
565
|
+
Execute
|
|
566
|
+
↓
|
|
567
|
+
Feedback
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
.
|
|
571
|
+
|
|
572
|
+
# 53. CONFIRMATION LANGUAGE
|
|
573
|
+
|
|
574
|
+
Use direct language.
|
|
575
|
+
|
|
576
|
+
Weak:
|
|
577
|
+
|
|
578
|
+
```text
|
|
579
|
+
Continue?
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
Better:
|
|
583
|
+
|
|
584
|
+
```text
|
|
585
|
+
Delete playlist?
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
The user should understand what will happen.
|
|
589
|
+
|
|
590
|
+
# 54. ACTION LABELS
|
|
591
|
+
|
|
592
|
+
Prefer labels describing the result.
|
|
593
|
+
|
|
594
|
+
Better:
|
|
595
|
+
|
|
596
|
+
```text
|
|
597
|
+
Delete
|
|
598
|
+
Save
|
|
599
|
+
Discard
|
|
600
|
+
Retry
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
rather than:
|
|
604
|
+
|
|
605
|
+
```text
|
|
606
|
+
Yes
|
|
607
|
+
No
|
|
608
|
+
OK
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
when ambiguity exists.
|
|
612
|
+
|
|
613
|
+
# 55. CANCEL
|
|
614
|
+
|
|
615
|
+
Cancel should actually cancel.
|
|
616
|
+
|
|
617
|
+
Do not use "Cancel" for an action that saves changes.
|
|
618
|
+
|
|
619
|
+
# 56. DONE
|
|
620
|
+
|
|
621
|
+
Done communicates:
|
|
622
|
+
|
|
623
|
+
```text
|
|
624
|
+
"I finished editing."
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
It is not universally equivalent to Save.
|
|
628
|
+
|
|
629
|
+
# 57. CLOSE
|
|
630
|
+
|
|
631
|
+
Close generally communicates:
|
|
632
|
+
|
|
633
|
+
```text
|
|
634
|
+
"Dismiss this surface."
|
|
635
|
+
```
|
|
636
|
+
|
|
637
|
+
without necessarily communicating whether data was committed.
|
|
638
|
+
|
|
639
|
+
# 58. ACTION SHEETS
|
|
640
|
+
|
|
641
|
+
Action-oriented temporary surfaces can present a set of contextual actions.
|
|
642
|
+
|
|
643
|
+
Use them when multiple related choices need to be exposed.
|
|
644
|
+
|
|
645
|
+
# 59. ACTION ORDER
|
|
646
|
+
|
|
647
|
+
Order actions according to:
|
|
648
|
+
|
|
649
|
+
```text
|
|
650
|
+
Frequency
|
|
651
|
+
Importance
|
|
652
|
+
Risk
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
.
|
|
656
|
+
|
|
657
|
+
# 60. DESTRUCTIVE ACTION POSITION
|
|
658
|
+
|
|
659
|
+
Destructive actions should be clearly separated from routine actions where
|
|
660
|
+
appropriate.
|
|
661
|
+
|
|
662
|
+
# 61. CONTEXT MENUS
|
|
663
|
+
|
|
664
|
+
Context menus provide secondary actions associated with a specific object.
|
|
665
|
+
|
|
666
|
+
Typical triggers:
|
|
667
|
+
|
|
668
|
+
```text
|
|
669
|
+
Long press
|
|
670
|
+
Contextual interaction
|
|
671
|
+
Platform-specific menu invocation
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
.
|
|
675
|
+
|
|
676
|
+
# 62. CONTEXT MENU CONTENT
|
|
677
|
+
|
|
678
|
+
Keep the menu concise.
|
|
679
|
+
|
|
680
|
+
Do not dump every available action into it.
|
|
681
|
+
|
|
682
|
+
# 63. CONTEXT MENU ACTION GROUPING
|
|
683
|
+
|
|
684
|
+
Related actions should be grouped logically.
|
|
685
|
+
|
|
686
|
+
# 64. CONTEXT MENU DESTRUCTIVE ACTION
|
|
687
|
+
|
|
688
|
+
Place destructive actions distinctly and label them clearly.
|
|
689
|
+
|
|
690
|
+
# 65. PREVIEW
|
|
691
|
+
|
|
692
|
+
Contextual preview can allow users to inspect content before fully opening it.
|
|
693
|
+
|
|
694
|
+
This is especially useful for:
|
|
695
|
+
|
|
696
|
+
```text
|
|
697
|
+
Files
|
|
698
|
+
Documents
|
|
699
|
+
Links
|
|
700
|
+
Media
|
|
701
|
+
Messages
|
|
702
|
+
```
|
|
703
|
+
|
|
704
|
+
.
|
|
705
|
+
|
|
706
|
+
# 66. PREVIEW VS NAVIGATION
|
|
707
|
+
|
|
708
|
+
Use preview when the user may only need to inspect.
|
|
709
|
+
|
|
710
|
+
Navigate when the user intends to work deeply with the object.
|
|
711
|
+
|
|
712
|
+
# 67. MODAL STACKING
|
|
713
|
+
|
|
714
|
+
Avoid stacking temporary surfaces:
|
|
715
|
+
|
|
716
|
+
```text
|
|
717
|
+
Sheet
|
|
718
|
+
↓
|
|
719
|
+
Alert
|
|
720
|
+
↓
|
|
721
|
+
Popover
|
|
722
|
+
↓
|
|
723
|
+
Another sheet
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
unless the interaction genuinely requires it.
|
|
727
|
+
|
|
728
|
+
# 68. MODAL DEPTH
|
|
729
|
+
|
|
730
|
+
The user should always understand:
|
|
731
|
+
|
|
732
|
+
```text
|
|
733
|
+
Where am I?
|
|
734
|
+
What is currently active?
|
|
735
|
+
How do I return?
|
|
736
|
+
```
|
|
737
|
+
|
|
738
|
+
.
|
|
739
|
+
|
|
740
|
+
# 69. MODAL STACK RECOVERY
|
|
741
|
+
|
|
742
|
+
If multiple temporary layers exist, dismissal should unwind them predictably.
|
|
743
|
+
|
|
744
|
+
# 70. BACK BUTTON
|
|
745
|
+
|
|
746
|
+
Back navigation should follow the user's mental hierarchy.
|
|
747
|
+
|
|
748
|
+
Typically:
|
|
749
|
+
|
|
750
|
+
```text
|
|
751
|
+
Current temporary surface
|
|
752
|
+
↓
|
|
753
|
+
Previous temporary surface
|
|
754
|
+
↓
|
|
755
|
+
Underlying screen
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
when multiple layers are justified.
|
|
759
|
+
|
|
760
|
+
# 71. DEEP MODALITY
|
|
761
|
+
|
|
762
|
+
Avoid trapping users in a sequence of confirmations.
|
|
763
|
+
|
|
764
|
+
The application should remain navigable.
|
|
765
|
+
|
|
766
|
+
# 72. MODAL TRANSITIONS
|
|
767
|
+
|
|
768
|
+
Transitions should communicate:
|
|
769
|
+
|
|
770
|
+
```text
|
|
771
|
+
Presentation
|
|
772
|
+
Hierarchy
|
|
773
|
+
Dismissal
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
.
|
|
777
|
+
|
|
778
|
+
# 73. PRESENTATION DIRECTION
|
|
779
|
+
|
|
780
|
+
Use spatial transitions that reinforce where the surface comes from or where it
|
|
781
|
+
belongs.
|
|
782
|
+
|
|
783
|
+
# 74. DISMISSAL DIRECTION
|
|
784
|
+
|
|
785
|
+
Dismissal should visually reverse the presentation where appropriate.
|
|
786
|
+
|
|
787
|
+
# 75. REDUCED MOTION
|
|
788
|
+
|
|
789
|
+
Respect reduced-motion preferences.
|
|
790
|
+
|
|
791
|
+
The hierarchy must remain understandable without animated transitions.
|
|
792
|
+
|
|
793
|
+
# 76. MODAL PERFORMANCE
|
|
794
|
+
|
|
795
|
+
Temporary surfaces should appear promptly.
|
|
796
|
+
|
|
797
|
+
Do not perform unnecessary expensive work before presentation.
|
|
798
|
+
|
|
799
|
+
# 77. LOADING MODALS
|
|
800
|
+
|
|
801
|
+
Avoid blocking the entire application with a loading modal when only one section
|
|
802
|
+
is loading.
|
|
803
|
+
|
|
804
|
+
# 78. LOADING SURFACE
|
|
805
|
+
|
|
806
|
+
Prefer localized loading states when possible.
|
|
807
|
+
|
|
808
|
+
Example:
|
|
809
|
+
|
|
810
|
+
```text
|
|
811
|
+
Sheet
|
|
812
|
+
↓
|
|
813
|
+
Content loading
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
instead of:
|
|
817
|
+
|
|
818
|
+
```text
|
|
819
|
+
Full-screen blocking spinner
|
|
820
|
+
```
|
|
821
|
+
|
|
822
|
+
# 79. ERROR IN SHEET
|
|
823
|
+
|
|
824
|
+
If a sheet operation fails:
|
|
825
|
+
|
|
826
|
+
```text
|
|
827
|
+
Preserve entered data
|
|
828
|
+
Explain failure
|
|
829
|
+
Offer retry
|
|
830
|
+
```
|
|
831
|
+
|
|
832
|
+
.
|
|
833
|
+
|
|
834
|
+
# 80. NETWORK FAILURE
|
|
835
|
+
|
|
836
|
+
Do not automatically dismiss a sheet simply because a network request failed.
|
|
837
|
+
|
|
838
|
+
# 81. FORM SHEETS
|
|
839
|
+
|
|
840
|
+
Forms in sheets should remain focused.
|
|
841
|
+
|
|
842
|
+
Do not put an entire complex application inside a sheet.
|
|
843
|
+
|
|
844
|
+
# 82. FORM SUBMISSION
|
|
845
|
+
|
|
846
|
+
When a form completes:
|
|
847
|
+
|
|
848
|
+
```text
|
|
849
|
+
Success
|
|
850
|
+
↓
|
|
851
|
+
Close or transition
|
|
852
|
+
↓
|
|
853
|
+
Update underlying context
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
without unnecessarily making users manually refresh.
|
|
857
|
+
|
|
858
|
+
# 83. DATA SYNCHRONIZATION
|
|
859
|
+
|
|
860
|
+
When a sheet modifies underlying content, the background screen should reflect
|
|
861
|
+
the updated state immediately when practical.
|
|
862
|
+
|
|
863
|
+
# 84. SHEET + NAVIGATION
|
|
864
|
+
|
|
865
|
+
A sheet may contain navigation for complex tasks, but keep the hierarchy clear.
|
|
866
|
+
|
|
867
|
+
# 85. NESTED NAVIGATION
|
|
868
|
+
|
|
869
|
+
If a sheet contains multiple screens, it should visually and semantically behave
|
|
870
|
+
like a coherent temporary workflow.
|
|
871
|
+
|
|
872
|
+
# 86. MODAL EXIT
|
|
873
|
+
|
|
874
|
+
Users should not lose work merely because they accidentally dismissed a surface.
|
|
875
|
+
|
|
876
|
+
# 87. DESTRUCTIVE DISMISSAL
|
|
877
|
+
|
|
878
|
+
If dismissal destroys state, clearly communicate the consequence before the
|
|
879
|
+
dismissal becomes final.
|
|
880
|
+
|
|
881
|
+
# 88. OUTSIDE TAP
|
|
882
|
+
|
|
883
|
+
Outside-tap dismissal is appropriate for lightweight temporary surfaces.
|
|
884
|
+
|
|
885
|
+
Avoid it for important editing workflows unless state is safely preserved.
|
|
886
|
+
|
|
887
|
+
# 89. POPOVER OUTSIDE TAP
|
|
888
|
+
|
|
889
|
+
A contextual popover can usually dismiss when the user interacts elsewhere.
|
|
890
|
+
|
|
891
|
+
# 90. ALERT OUTSIDE TAP
|
|
892
|
+
|
|
893
|
+
Critical alerts should generally require an explicit action.
|
|
894
|
+
|
|
895
|
+
# 91. MODAL ACCESSIBILITY
|
|
896
|
+
|
|
897
|
+
When a surface becomes modal, assistive technology should understand that the
|
|
898
|
+
underlying content is temporarily unavailable or secondary.
|
|
899
|
+
|
|
900
|
+
# 92. ACCESSIBLE DISMISSAL
|
|
901
|
+
|
|
902
|
+
Dismissal must have an accessible action.
|
|
903
|
+
|
|
904
|
+
Do not rely exclusively on swiping.
|
|
905
|
+
|
|
906
|
+
# 93. ACCESSIBLE ACTIONS
|
|
907
|
+
|
|
908
|
+
All important actions must expose semantic labels.
|
|
909
|
+
|
|
910
|
+
# 94. DYNAMIC TYPE
|
|
911
|
+
|
|
912
|
+
Temporary surfaces must accommodate larger text sizes without clipping or
|
|
913
|
+
hiding actions.
|
|
914
|
+
|
|
915
|
+
# 95. LARGE CONTENT
|
|
916
|
+
|
|
917
|
+
If a sheet contains substantial content:
|
|
918
|
+
|
|
919
|
+
```text
|
|
920
|
+
Use scrolling
|
|
921
|
+
```
|
|
922
|
+
|
|
923
|
+
rather than shrinking text or controls.
|
|
924
|
+
|
|
925
|
+
# 96. BUTTON PLACEMENT
|
|
926
|
+
|
|
927
|
+
Important actions should remain easy to reach and understand.
|
|
928
|
+
|
|
929
|
+
# 97. ACTION DENSITY
|
|
930
|
+
|
|
931
|
+
Do not place too many actions into one temporary surface.
|
|
932
|
+
|
|
933
|
+
Prioritize.
|
|
934
|
+
|
|
935
|
+
# 98. SHEET DESIGN HIERARCHY
|
|
936
|
+
|
|
937
|
+
Recommended hierarchy:
|
|
938
|
+
|
|
939
|
+
```text
|
|
940
|
+
Title
|
|
941
|
+
↓
|
|
942
|
+
Context
|
|
943
|
+
↓
|
|
944
|
+
Primary content
|
|
945
|
+
↓
|
|
946
|
+
Primary action
|
|
947
|
+
↓
|
|
948
|
+
Secondary actions
|
|
949
|
+
```
|
|
950
|
+
|
|
951
|
+
depending on task.
|
|
952
|
+
|
|
953
|
+
# 99. POPOVER DESIGN HIERARCHY
|
|
954
|
+
|
|
955
|
+
Recommended:
|
|
956
|
+
|
|
957
|
+
```text
|
|
958
|
+
Context
|
|
959
|
+
↓
|
|
960
|
+
Choices / information
|
|
961
|
+
↓
|
|
962
|
+
Optional action
|
|
963
|
+
```
|
|
964
|
+
|
|
965
|
+
.
|
|
966
|
+
|
|
967
|
+
# 100. ALERT DESIGN HIERARCHY
|
|
968
|
+
|
|
969
|
+
Recommended:
|
|
970
|
+
|
|
971
|
+
```text
|
|
972
|
+
Problem
|
|
973
|
+
↓
|
|
974
|
+
Consequence / explanation
|
|
975
|
+
↓
|
|
976
|
+
Decision
|
|
977
|
+
```
|
|
978
|
+
|
|
979
|
+
.
|
|
980
|
+
|
|
981
|
+
# 101. MODAL CONTENT PRINCIPLE
|
|
982
|
+
|
|
983
|
+
Temporary surfaces should contain only what is necessary to complete the
|
|
984
|
+
temporary task.
|
|
985
|
+
|
|
986
|
+
# 102. MODAL VISUAL LANGUAGE
|
|
987
|
+
|
|
988
|
+
Temporary surfaces should feel like part of the application's design system,
|
|
989
|
+
not unrelated overlays.
|
|
990
|
+
|
|
991
|
+
# 103. SURFACE CONSISTENCY
|
|
992
|
+
|
|
993
|
+
Maintain consistency in:
|
|
994
|
+
|
|
995
|
+
```text
|
|
996
|
+
Corner treatment
|
|
997
|
+
Typography
|
|
998
|
+
Spacing
|
|
999
|
+
Buttons
|
|
1000
|
+
Motion
|
|
1001
|
+
Elevation
|
|
1002
|
+
```
|
|
1003
|
+
|
|
1004
|
+
.
|
|
1005
|
+
|
|
1006
|
+
# 104. SURFACE HIERARCHY
|
|
1007
|
+
|
|
1008
|
+
The visual system should communicate:
|
|
1009
|
+
|
|
1010
|
+
```text
|
|
1011
|
+
Background
|
|
1012
|
+
↓
|
|
1013
|
+
Surface
|
|
1014
|
+
↓
|
|
1015
|
+
Elevated surface
|
|
1016
|
+
↓
|
|
1017
|
+
Critical alert
|
|
1018
|
+
```
|
|
1019
|
+
|
|
1020
|
+
without excessive visual noise.
|
|
1021
|
+
|
|
1022
|
+
# 105. MODAL COLOR
|
|
1023
|
+
|
|
1024
|
+
Do not rely on darkening or blur alone to communicate hierarchy.
|
|
1025
|
+
|
|
1026
|
+
Structural separation should remain understandable.
|
|
1027
|
+
|
|
1028
|
+
# 106. BLUR
|
|
1029
|
+
|
|
1030
|
+
Blur can establish depth and preserve context.
|
|
1031
|
+
|
|
1032
|
+
Use it intentionally rather than as a mandatory decoration.
|
|
1033
|
+
|
|
1034
|
+
# 107. BACKDROP INTERACTION
|
|
1035
|
+
|
|
1036
|
+
If the backdrop is interactive, users should understand what happens when they
|
|
1037
|
+
touch it.
|
|
1038
|
+
|
|
1039
|
+
If it is not interactive, it should not appear misleadingly interactive.
|
|
1040
|
+
|
|
1041
|
+
# 108. MODAL STATE MACHINE
|
|
1042
|
+
|
|
1043
|
+
Conceptually:
|
|
1044
|
+
|
|
1045
|
+
```text
|
|
1046
|
+
Hidden
|
|
1047
|
+
↓
|
|
1048
|
+
Presenting
|
|
1049
|
+
↓
|
|
1050
|
+
Presented
|
|
1051
|
+
↓
|
|
1052
|
+
Interacting
|
|
1053
|
+
├── Complete
|
|
1054
|
+
├── Dismiss
|
|
1055
|
+
└── Error
|
|
1056
|
+
↓
|
|
1057
|
+
Presented
|
|
1058
|
+
```
|
|
1059
|
+
|
|
1060
|
+
.
|
|
1061
|
+
|
|
1062
|
+
# 109. PRESENTATION FAILURE
|
|
1063
|
+
|
|
1064
|
+
If presentation fails or content cannot load:
|
|
1065
|
+
|
|
1066
|
+
```text
|
|
1067
|
+
Do not leave a broken invisible state.
|
|
1068
|
+
```
|
|
1069
|
+
|
|
1070
|
+
Provide a meaningful recovery path.
|
|
1071
|
+
|
|
1072
|
+
# 110. MODAL REVIEW
|
|
1073
|
+
|
|
1074
|
+
Before shipping, evaluate:
|
|
1075
|
+
|
|
1076
|
+
```text
|
|
1077
|
+
Purpose
|
|
1078
|
+
Modality
|
|
1079
|
+
Hierarchy
|
|
1080
|
+
Presentation
|
|
1081
|
+
Dismissal
|
|
1082
|
+
Actions
|
|
1083
|
+
Destructive behavior
|
|
1084
|
+
Keyboard
|
|
1085
|
+
Scrolling
|
|
1086
|
+
Accessibility
|
|
1087
|
+
State preservation
|
|
1088
|
+
Performance
|
|
1089
|
+
```
|
|
1090
|
+
|
|
1091
|
+
.
|
|
1092
|
+
|
|
1093
|
+
# 111. MODAL REVIEW SCORE
|
|
1094
|
+
|
|
1095
|
+
```text
|
|
1096
|
+
Purpose 10
|
|
1097
|
+
Hierarchy 10
|
|
1098
|
+
Context preservation 10
|
|
1099
|
+
Dismissal 10
|
|
1100
|
+
Action clarity 10
|
|
1101
|
+
Accessibility 15
|
|
1102
|
+
State preservation 10
|
|
1103
|
+
Error handling 10
|
|
1104
|
+
Motion 5
|
|
1105
|
+
Performance 5
|
|
1106
|
+
Privacy 5
|
|
1107
|
+
──────────────────────────
|
|
1108
|
+
Total 100
|
|
1109
|
+
```
|
|
1110
|
+
|
|
1111
|
+
Interpretation:
|
|
1112
|
+
|
|
1113
|
+
```text
|
|
1114
|
+
95–100 Exceptional
|
|
1115
|
+
90–94 Excellent
|
|
1116
|
+
80–89 Strong
|
|
1117
|
+
70–79 Needs refinement
|
|
1118
|
+
60–69 Weak
|
|
1119
|
+
<60 Redesign
|
|
1120
|
+
```
|
|
1121
|
+
|
|
1122
|
+
# 112. AGENT SURFACE DECISION TREE
|
|
1123
|
+
|
|
1124
|
+
```text
|
|
1125
|
+
What is the user doing?
|
|
1126
|
+
↓
|
|
1127
|
+
Critical decision?
|
|
1128
|
+
└── Alert
|
|
1129
|
+
|
|
1130
|
+
Choosing an action?
|
|
1131
|
+
└── Action menu / contextual menu
|
|
1132
|
+
|
|
1133
|
+
Compact contextual choice?
|
|
1134
|
+
└── Popover
|
|
1135
|
+
|
|
1136
|
+
Focused task?
|
|
1137
|
+
└── Sheet
|
|
1138
|
+
|
|
1139
|
+
Complex temporary workflow?
|
|
1140
|
+
└── Full-screen presentation
|
|
1141
|
+
|
|
1142
|
+
Deep application workflow?
|
|
1143
|
+
└── Normal navigation
|
|
1144
|
+
```
|
|
1145
|
+
|
|
1146
|
+
# 113. AGENT MODAL DESIGN FLOW
|
|
1147
|
+
|
|
1148
|
+
```text
|
|
1149
|
+
User intent
|
|
1150
|
+
↓
|
|
1151
|
+
Task complexity
|
|
1152
|
+
↓
|
|
1153
|
+
Importance
|
|
1154
|
+
↓
|
|
1155
|
+
Modality requirement
|
|
1156
|
+
↓
|
|
1157
|
+
Surface selection
|
|
1158
|
+
↓
|
|
1159
|
+
Content hierarchy
|
|
1160
|
+
↓
|
|
1161
|
+
Presentation
|
|
1162
|
+
↓
|
|
1163
|
+
Interaction
|
|
1164
|
+
↓
|
|
1165
|
+
Dismissal
|
|
1166
|
+
↓
|
|
1167
|
+
State preservation
|
|
1168
|
+
↓
|
|
1169
|
+
Error recovery
|
|
1170
|
+
↓
|
|
1171
|
+
Accessibility
|
|
1172
|
+
↓
|
|
1173
|
+
Motion
|
|
1174
|
+
```
|
|
1175
|
+
|
|
1176
|
+
.
|
|
1177
|
+
|
|
1178
|
+
# 114. FINAL SURFACE PRINCIPLE
|
|
1179
|
+
|
|
1180
|
+
A temporary surface should feel like:
|
|
1181
|
+
|
|
1182
|
+
```text
|
|
1183
|
+
"I stepped aside to complete this."
|
|
1184
|
+
```
|
|
1185
|
+
|
|
1186
|
+
not:
|
|
1187
|
+
|
|
1188
|
+
```text
|
|
1189
|
+
"The application suddenly replaced itself."
|
|
1190
|
+
```
|
|
1191
|
+
|
|
1192
|
+
# 115. FINAL AGENT DIRECTIVE
|
|
1193
|
+
|
|
1194
|
+
Before creating a modal, ask:
|
|
1195
|
+
|
|
1196
|
+
```text
|
|
1197
|
+
Does this truly need to interrupt?
|
|
1198
|
+
Would a sheet preserve context better?
|
|
1199
|
+
Would navigation be clearer?
|
|
1200
|
+
Can the action be reversible?
|
|
1201
|
+
Can the user dismiss safely?
|
|
1202
|
+
What happens to unsaved work?
|
|
1203
|
+
Is the surface accessible?
|
|
1204
|
+
```
|
|
1205
|
+
|