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,491 @@
|
|
|
1
|
+
## File 58 — Interaction, State & Edge-Case Engineering
|
|
2
|
+
|
|
3
|
+
This is the module that makes the UI **behave correctly**, not just look correct.
|
|
4
|
+
|
|
5
|
+
The core idea:
|
|
6
|
+
|
|
7
|
+
> **Every meaningful UI element exists within a state, responds to events, and must have a predictable outcome.**
|
|
8
|
+
|
|
9
|
+
A polished interface isn't simply:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
Screen → Button → Next Screen
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
It is:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
USER EVENT
|
|
19
|
+
↓
|
|
20
|
+
STATE CHANGE
|
|
21
|
+
↓
|
|
22
|
+
SYSTEM RESPONSE
|
|
23
|
+
↓
|
|
24
|
+
USER FEEDBACK
|
|
25
|
+
↓
|
|
26
|
+
NEXT AVAILABLE ACTION
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
### 1. Interaction architecture
|
|
32
|
+
|
|
33
|
+
Every interaction should define:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Trigger
|
|
37
|
+
↓
|
|
38
|
+
Intent
|
|
39
|
+
↓
|
|
40
|
+
Action
|
|
41
|
+
↓
|
|
42
|
+
State transition
|
|
43
|
+
↓
|
|
44
|
+
Feedback
|
|
45
|
+
↓
|
|
46
|
+
Result
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The agent should identify:
|
|
50
|
+
|
|
51
|
+
* Tap
|
|
52
|
+
* Press
|
|
53
|
+
* Long press
|
|
54
|
+
* Swipe
|
|
55
|
+
* Drag
|
|
56
|
+
* Scroll
|
|
57
|
+
* Pinch
|
|
58
|
+
* Focus
|
|
59
|
+
* Blur
|
|
60
|
+
* Keyboard input
|
|
61
|
+
* Submit
|
|
62
|
+
* Toggle
|
|
63
|
+
* Selection
|
|
64
|
+
* Navigation
|
|
65
|
+
* System events
|
|
66
|
+
* Hardware interactions
|
|
67
|
+
|
|
68
|
+
Avoid interactions that have no clear feedback or consequence.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### 2. UI state model
|
|
73
|
+
|
|
74
|
+
The agent should treat states as first-class design requirements.
|
|
75
|
+
|
|
76
|
+
A component may have:
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
Default
|
|
80
|
+
Hover
|
|
81
|
+
Pressed
|
|
82
|
+
Focused
|
|
83
|
+
Selected
|
|
84
|
+
Disabled
|
|
85
|
+
Loading
|
|
86
|
+
Success
|
|
87
|
+
Warning
|
|
88
|
+
Error
|
|
89
|
+
Empty
|
|
90
|
+
Offline
|
|
91
|
+
Locked
|
|
92
|
+
Permission-required
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Not every component needs every state.
|
|
96
|
+
|
|
97
|
+
The agent should determine **which states are semantically relevant**.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
### 3. Async state architecture
|
|
102
|
+
|
|
103
|
+
For operations involving network, storage, media, permissions or processing:
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
Idle
|
|
107
|
+
↓
|
|
108
|
+
Initiated
|
|
109
|
+
↓
|
|
110
|
+
Loading
|
|
111
|
+
↓
|
|
112
|
+
├── Success
|
|
113
|
+
├── Error
|
|
114
|
+
├── Cancelled
|
|
115
|
+
└── Timeout
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The UI should never leave the user wondering:
|
|
119
|
+
|
|
120
|
+
> "Did anything happen?"
|
|
121
|
+
|
|
122
|
+
Provide appropriate feedback.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### 4. Loading states
|
|
127
|
+
|
|
128
|
+
Choose the right loading pattern:
|
|
129
|
+
|
|
130
|
+
**Tiny operation**
|
|
131
|
+
|
|
132
|
+
```text
|
|
133
|
+
Inline spinner
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Content loading**
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
Skeleton
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Large transition**
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
Progress indicator
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Long-running operation**
|
|
149
|
+
|
|
150
|
+
```text
|
|
151
|
+
Progress + status + cancellation
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Avoid showing a generic spinner for everything.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
### 5. Error states
|
|
159
|
+
|
|
160
|
+
Errors should answer:
|
|
161
|
+
|
|
162
|
+
```text
|
|
163
|
+
What happened?
|
|
164
|
+
Why?
|
|
165
|
+
What can I do?
|
|
166
|
+
Can I recover?
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Prefer:
|
|
170
|
+
|
|
171
|
+
```text
|
|
172
|
+
Problem
|
|
173
|
+
↓
|
|
174
|
+
Explanation
|
|
175
|
+
↓
|
|
176
|
+
Recovery action
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
over:
|
|
180
|
+
|
|
181
|
+
```text
|
|
182
|
+
Something went wrong.
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
The agent should distinguish:
|
|
186
|
+
|
|
187
|
+
* Validation errors
|
|
188
|
+
* Network errors
|
|
189
|
+
* Permission errors
|
|
190
|
+
* Authentication errors
|
|
191
|
+
* Storage errors
|
|
192
|
+
* Processing errors
|
|
193
|
+
* System errors
|
|
194
|
+
* Unknown errors
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
### 6. Empty states
|
|
199
|
+
|
|
200
|
+
An empty state should explain **why the space is empty and what the user can do next**.
|
|
201
|
+
|
|
202
|
+
Examples:
|
|
203
|
+
|
|
204
|
+
```text
|
|
205
|
+
First-use empty
|
|
206
|
+
Search empty
|
|
207
|
+
Filtered empty
|
|
208
|
+
Error-induced empty
|
|
209
|
+
Permission-induced empty
|
|
210
|
+
Completed/cleared empty
|
|
211
|
+
Offline empty
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Each can require a different message and action.
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
### 7. Feedback architecture
|
|
219
|
+
|
|
220
|
+
Every important user action should have an appropriate response.
|
|
221
|
+
|
|
222
|
+
Possible feedback:
|
|
223
|
+
|
|
224
|
+
```text
|
|
225
|
+
Visual
|
|
226
|
+
Haptic
|
|
227
|
+
Audio
|
|
228
|
+
Animation
|
|
229
|
+
Toast
|
|
230
|
+
Snackbar
|
|
231
|
+
Inline message
|
|
232
|
+
Dialog
|
|
233
|
+
Navigation
|
|
234
|
+
Progress
|
|
235
|
+
State change
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
The agent should avoid excessive feedback.
|
|
239
|
+
|
|
240
|
+
The goal is:
|
|
241
|
+
|
|
242
|
+
> **Enough feedback to establish confidence, never enough to become noise.**
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
### 8. Confirmation patterns
|
|
247
|
+
|
|
248
|
+
Don't ask users to confirm everything.
|
|
249
|
+
|
|
250
|
+
Use confirmation when:
|
|
251
|
+
|
|
252
|
+
* the action is destructive
|
|
253
|
+
* recovery is difficult
|
|
254
|
+
* consequences are significant
|
|
255
|
+
* accidental activation is likely
|
|
256
|
+
|
|
257
|
+
Avoid confirmation when:
|
|
258
|
+
|
|
259
|
+
* the action is easily reversible
|
|
260
|
+
* the consequence is trivial
|
|
261
|
+
* confirmation creates unnecessary friction
|
|
262
|
+
|
|
263
|
+
Prefer **undo** when appropriate.
|
|
264
|
+
|
|
265
|
+
```text
|
|
266
|
+
Delete
|
|
267
|
+
↓
|
|
268
|
+
Item removed
|
|
269
|
+
↓
|
|
270
|
+
Undo
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
can often be better than:
|
|
274
|
+
|
|
275
|
+
```text
|
|
276
|
+
Are you sure?
|
|
277
|
+
↓
|
|
278
|
+
Yes / No
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
### 9. Interruptions
|
|
284
|
+
|
|
285
|
+
The agent must account for:
|
|
286
|
+
|
|
287
|
+
* App backgrounding
|
|
288
|
+
* App termination
|
|
289
|
+
* Incoming calls
|
|
290
|
+
* Permission dialogs
|
|
291
|
+
* Keyboard changes
|
|
292
|
+
* Orientation changes
|
|
293
|
+
* Network loss
|
|
294
|
+
* Authentication expiry
|
|
295
|
+
* Storage limitations
|
|
296
|
+
* System interruptions
|
|
297
|
+
* User navigation away
|
|
298
|
+
|
|
299
|
+
The question is:
|
|
300
|
+
|
|
301
|
+
> **What state should the user return to?**
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
### 10. Recovery architecture
|
|
306
|
+
|
|
307
|
+
Every recoverable failure should have a recovery strategy.
|
|
308
|
+
|
|
309
|
+
```text
|
|
310
|
+
FAILURE
|
|
311
|
+
↓
|
|
312
|
+
PRESERVE CONTEXT
|
|
313
|
+
↓
|
|
314
|
+
EXPLAIN PROBLEM
|
|
315
|
+
↓
|
|
316
|
+
OFFER RECOVERY
|
|
317
|
+
↓
|
|
318
|
+
RETRY / CORRECT / CANCEL
|
|
319
|
+
↓
|
|
320
|
+
RESTORE NORMAL STATE
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
Never force users to restart an entire flow unnecessarily.
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
### 11. Edge-case discovery
|
|
328
|
+
|
|
329
|
+
Before implementation, the agent should deliberately ask:
|
|
330
|
+
|
|
331
|
+
```text
|
|
332
|
+
What if there is:
|
|
333
|
+
0 items?
|
|
334
|
+
1 item?
|
|
335
|
+
100 items?
|
|
336
|
+
10,000 items?
|
|
337
|
+
|
|
338
|
+
What if input is:
|
|
339
|
+
empty?
|
|
340
|
+
invalid?
|
|
341
|
+
huge?
|
|
342
|
+
duplicated?
|
|
343
|
+
unexpected?
|
|
344
|
+
|
|
345
|
+
What if:
|
|
346
|
+
network disappears?
|
|
347
|
+
permission is denied?
|
|
348
|
+
storage is full?
|
|
349
|
+
operation takes too long?
|
|
350
|
+
user leaves?
|
|
351
|
+
user taps twice?
|
|
352
|
+
user taps rapidly?
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
This is where many seemingly polished applications fail.
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
### 12. Double-action protection
|
|
360
|
+
|
|
361
|
+
Important operations should handle rapid repeated input.
|
|
362
|
+
|
|
363
|
+
For example:
|
|
364
|
+
|
|
365
|
+
```text
|
|
366
|
+
Tap Save
|
|
367
|
+
Tap Save
|
|
368
|
+
Tap Save
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
should not create three records.
|
|
372
|
+
|
|
373
|
+
Possible strategies:
|
|
374
|
+
|
|
375
|
+
* Disable during processing
|
|
376
|
+
* Debounce
|
|
377
|
+
* Deduplicate
|
|
378
|
+
* Idempotent operations
|
|
379
|
+
* Optimistic state management
|
|
380
|
+
|
|
381
|
+
The correct mechanism depends on the operation.
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
### 13. Destructive actions
|
|
386
|
+
|
|
387
|
+
The agent should classify actions by consequence:
|
|
388
|
+
|
|
389
|
+
```text
|
|
390
|
+
Low risk
|
|
391
|
+
↓
|
|
392
|
+
Reversible
|
|
393
|
+
↓
|
|
394
|
+
Potentially destructive
|
|
395
|
+
↓
|
|
396
|
+
Irreversible
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
The stronger the consequence, the stronger the protection should be.
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
### 14. Interaction consistency
|
|
404
|
+
|
|
405
|
+
Equivalent actions should behave equivalently.
|
|
406
|
+
|
|
407
|
+
For example:
|
|
408
|
+
|
|
409
|
+
```text
|
|
410
|
+
Save
|
|
411
|
+
Save
|
|
412
|
+
Save
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
shouldn't mean three different things across three screens.
|
|
416
|
+
|
|
417
|
+
The agent should detect inconsistent:
|
|
418
|
+
|
|
419
|
+
* gestures
|
|
420
|
+
* button behavior
|
|
421
|
+
* navigation
|
|
422
|
+
* back actions
|
|
423
|
+
* dialogs
|
|
424
|
+
* confirmations
|
|
425
|
+
* feedback
|
|
426
|
+
* terminology
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
430
|
+
### 15. Edge-case matrix
|
|
431
|
+
|
|
432
|
+
For significant features, the agent should reason through:
|
|
433
|
+
|
|
434
|
+
| Condition | Expected UI |
|
|
435
|
+
| ------------------ | ----------------------------- |
|
|
436
|
+
| Initial | Default state |
|
|
437
|
+
| Loading | Progress feedback |
|
|
438
|
+
| Success | Result + next action |
|
|
439
|
+
| Empty | Explanation + useful action |
|
|
440
|
+
| Invalid | Inline correction |
|
|
441
|
+
| Error | Recovery |
|
|
442
|
+
| Offline | Appropriate degraded behavior |
|
|
443
|
+
| Permission denied | Explanation + settings/retry |
|
|
444
|
+
| Cancelled | Safe restoration |
|
|
445
|
+
| Interrupted | Resume/recover |
|
|
446
|
+
| Duplicate action | Prevent duplication |
|
|
447
|
+
| Destructive action | Appropriate protection |
|
|
448
|
+
|
|
449
|
+
---
|
|
450
|
+
|
|
451
|
+
### 16. Interaction quality test
|
|
452
|
+
|
|
453
|
+
Before declaring an interaction complete:
|
|
454
|
+
|
|
455
|
+
```text
|
|
456
|
+
□ Is the trigger obvious?
|
|
457
|
+
□ Is the action predictable?
|
|
458
|
+
□ Is feedback immediate enough?
|
|
459
|
+
□ Is the state change visible?
|
|
460
|
+
□ Can the user recover?
|
|
461
|
+
□ Can accidental repetition occur?
|
|
462
|
+
□ Are loading states handled?
|
|
463
|
+
□ Are errors handled?
|
|
464
|
+
□ Is cancellation handled?
|
|
465
|
+
□ Are interruptions handled?
|
|
466
|
+
□ Is accessibility supported?
|
|
467
|
+
□ Is behavior consistent elsewhere?
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
### File 58 operating principle
|
|
471
|
+
|
|
472
|
+
```text
|
|
473
|
+
EVENT
|
|
474
|
+
↓
|
|
475
|
+
INTENT
|
|
476
|
+
↓
|
|
477
|
+
STATE TRANSITION
|
|
478
|
+
↓
|
|
479
|
+
SYSTEM RESPONSE
|
|
480
|
+
↓
|
|
481
|
+
FEEDBACK
|
|
482
|
+
↓
|
|
483
|
+
RECOVERY
|
|
484
|
+
↓
|
|
485
|
+
VALIDATED RESULT
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
The agent should **never design only the happy path**.
|
|
489
|
+
|
|
490
|
+
It should design the **state machine surrounding the happy path**.
|
|
491
|
+
|