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,1458 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# iOS Forms & Input
|
|
4
|
+
|
|
5
|
+
> Agent intelligence module for designing clear, accessible, efficient,
|
|
6
|
+
> forgiving, and platform-aligned forms and input experiences.
|
|
7
|
+
|
|
8
|
+
Version: 1.0
|
|
9
|
+
Platform: iOS / iPadOS / React Native / Expo
|
|
10
|
+
Role: Form and input intelligence
|
|
11
|
+
|
|
12
|
+
Parent:
|
|
13
|
+
|
|
14
|
+
* ios-design-system-architecture.md
|
|
15
|
+
* ios-components-and-controls.md
|
|
16
|
+
* ios-navigation-and-information-architecture.md
|
|
17
|
+
* ios-lists-collections-and-data-display.md
|
|
18
|
+
* typography.md
|
|
19
|
+
* spacing.md
|
|
20
|
+
* accessibility-and-inclusive-design.md
|
|
21
|
+
* motion-and-animation.md
|
|
22
|
+
|
|
23
|
+
# 1. PURPOSE
|
|
24
|
+
|
|
25
|
+
Input is a conversation between the user and the application.
|
|
26
|
+
|
|
27
|
+
A good input experience should communicate:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
What do I enter?
|
|
31
|
+
Why do I enter it?
|
|
32
|
+
How should I enter it?
|
|
33
|
+
Is it valid?
|
|
34
|
+
What went wrong?
|
|
35
|
+
What happens next?
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The agent must optimize for:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
clarity
|
|
42
|
+
speed
|
|
43
|
+
forgiveness
|
|
44
|
+
predictability
|
|
45
|
+
accessibility
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
before visual decoration.
|
|
49
|
+
|
|
50
|
+
# 2. FORM DESIGN PRINCIPLE
|
|
51
|
+
|
|
52
|
+
Ask for the minimum information required to complete the task.
|
|
53
|
+
|
|
54
|
+
Avoid collecting information merely because it might be useful later.
|
|
55
|
+
|
|
56
|
+
# 3. FORM COMPLEXITY
|
|
57
|
+
|
|
58
|
+
Classify forms as:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
Simple
|
|
62
|
+
Moderate
|
|
63
|
+
Complex
|
|
64
|
+
Multi-step
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Use the smallest structure that adequately supports the task.
|
|
68
|
+
|
|
69
|
+
# 4. SINGLE INPUT
|
|
70
|
+
|
|
71
|
+
For one value:
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
Label
|
|
75
|
+
Input
|
|
76
|
+
Supporting information
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
should usually be enough.
|
|
80
|
+
|
|
81
|
+
Do not build an elaborate form container around a single simple input unless
|
|
82
|
+
the interaction requires it.
|
|
83
|
+
|
|
84
|
+
# 5. INPUT ANATOMY
|
|
85
|
+
|
|
86
|
+
A robust input may contain:
|
|
87
|
+
|
|
88
|
+
```text
|
|
89
|
+
Label
|
|
90
|
+
Input area
|
|
91
|
+
Leading element
|
|
92
|
+
Trailing element
|
|
93
|
+
Supporting text
|
|
94
|
+
Validation state
|
|
95
|
+
Error message
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Not every field requires every element.
|
|
99
|
+
|
|
100
|
+
# 6. LABELS
|
|
101
|
+
|
|
102
|
+
Every input should have a clear semantic label.
|
|
103
|
+
|
|
104
|
+
Do not rely solely on placeholder text as the label.
|
|
105
|
+
|
|
106
|
+
# 7. PLACEHOLDER TEXT
|
|
107
|
+
|
|
108
|
+
Placeholder text should provide an example or hint.
|
|
109
|
+
|
|
110
|
+
It should not be the only identification of the field.
|
|
111
|
+
|
|
112
|
+
# 8. PLACEHOLDER LIFETIME
|
|
113
|
+
|
|
114
|
+
When the user begins entering text, the placeholder disappears.
|
|
115
|
+
|
|
116
|
+
Therefore:
|
|
117
|
+
|
|
118
|
+
```text
|
|
119
|
+
placeholder ≠ label
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
# 9. LABEL POSITION
|
|
123
|
+
|
|
124
|
+
Labels may appear:
|
|
125
|
+
|
|
126
|
+
```text
|
|
127
|
+
above the field
|
|
128
|
+
inside a field when appropriate
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
depending on the design system.
|
|
132
|
+
|
|
133
|
+
Prioritize clarity over trendy floating-label behavior.
|
|
134
|
+
|
|
135
|
+
# 10. FLOATING LABELS
|
|
136
|
+
|
|
137
|
+
Floating labels are optional.
|
|
138
|
+
|
|
139
|
+
Do not use them automatically.
|
|
140
|
+
|
|
141
|
+
Evaluate:
|
|
142
|
+
|
|
143
|
+
```text
|
|
144
|
+
readability
|
|
145
|
+
accessibility
|
|
146
|
+
space efficiency
|
|
147
|
+
animation complexity
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
.
|
|
151
|
+
|
|
152
|
+
# 11. SUPPORTING TEXT
|
|
153
|
+
|
|
154
|
+
Supporting text should explain:
|
|
155
|
+
|
|
156
|
+
```text
|
|
157
|
+
format
|
|
158
|
+
constraint
|
|
159
|
+
purpose
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Example:
|
|
163
|
+
|
|
164
|
+
```text
|
|
165
|
+
Password
|
|
166
|
+
At least 8 characters
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
# 12. INPUT PURPOSE
|
|
170
|
+
|
|
171
|
+
Every input should communicate its expected content.
|
|
172
|
+
|
|
173
|
+
Examples:
|
|
174
|
+
|
|
175
|
+
```text
|
|
176
|
+
Email
|
|
177
|
+
Phone number
|
|
178
|
+
Search
|
|
179
|
+
Password
|
|
180
|
+
Date
|
|
181
|
+
Amount
|
|
182
|
+
Username
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
The keyboard and input configuration should match the purpose.
|
|
186
|
+
|
|
187
|
+
# 13. KEYBOARD OPTIMIZATION
|
|
188
|
+
|
|
189
|
+
Select the appropriate keyboard/input mode.
|
|
190
|
+
|
|
191
|
+
Examples:
|
|
192
|
+
|
|
193
|
+
```text
|
|
194
|
+
email → email keyboard
|
|
195
|
+
phone → phone keypad
|
|
196
|
+
numeric → numeric input
|
|
197
|
+
URL → URL keyboard
|
|
198
|
+
search → search keyboard
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
The goal is to reduce unnecessary user effort.
|
|
202
|
+
|
|
203
|
+
# 14. RETURN KEY
|
|
204
|
+
|
|
205
|
+
The return/action key should reflect the next operation where practical.
|
|
206
|
+
|
|
207
|
+
Examples:
|
|
208
|
+
|
|
209
|
+
```text
|
|
210
|
+
Next
|
|
211
|
+
Search
|
|
212
|
+
Done
|
|
213
|
+
Go
|
|
214
|
+
Send
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
.
|
|
218
|
+
|
|
219
|
+
# 15. FOCUS
|
|
220
|
+
|
|
221
|
+
Focus should be predictable.
|
|
222
|
+
|
|
223
|
+
When a field receives focus:
|
|
224
|
+
|
|
225
|
+
```text
|
|
226
|
+
visual state changes
|
|
227
|
+
keyboard behavior is correct
|
|
228
|
+
scroll position adjusts
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
when necessary.
|
|
232
|
+
|
|
233
|
+
# 16. AUTOFOCUS
|
|
234
|
+
|
|
235
|
+
Use autofocus sparingly.
|
|
236
|
+
|
|
237
|
+
It can be appropriate when:
|
|
238
|
+
|
|
239
|
+
```text
|
|
240
|
+
the screen exists primarily for one input
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Avoid automatically opening the keyboard when it interferes with navigation or
|
|
244
|
+
orientation.
|
|
245
|
+
|
|
246
|
+
# 17. FOCUS ORDER
|
|
247
|
+
|
|
248
|
+
For multiple fields, focus should follow logical reading and task order.
|
|
249
|
+
|
|
250
|
+
# 18. FORM NAVIGATION
|
|
251
|
+
|
|
252
|
+
Users should be able to move efficiently between fields.
|
|
253
|
+
|
|
254
|
+
For long forms:
|
|
255
|
+
|
|
256
|
+
```text
|
|
257
|
+
Next
|
|
258
|
+
Next
|
|
259
|
+
Next
|
|
260
|
+
Done
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
can be more efficient than repeatedly tapping fields.
|
|
264
|
+
|
|
265
|
+
# 19. KEYBOARD AVOIDANCE
|
|
266
|
+
|
|
267
|
+
The keyboard must never permanently obscure the active input.
|
|
268
|
+
|
|
269
|
+
The interface should adjust appropriately when the keyboard appears.
|
|
270
|
+
|
|
271
|
+
# 20. SCROLLING WITH KEYBOARD
|
|
272
|
+
|
|
273
|
+
If the active field is below the keyboard:
|
|
274
|
+
|
|
275
|
+
```text
|
|
276
|
+
scroll automatically
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
only as much as necessary.
|
|
280
|
+
|
|
281
|
+
# 21. KEYBOARD DISMISSAL
|
|
282
|
+
|
|
283
|
+
Provide natural ways to dismiss the keyboard where appropriate.
|
|
284
|
+
|
|
285
|
+
Examples:
|
|
286
|
+
|
|
287
|
+
```text
|
|
288
|
+
Done
|
|
289
|
+
Return
|
|
290
|
+
Tap outside
|
|
291
|
+
Scroll
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
depending on the screen.
|
|
295
|
+
|
|
296
|
+
# 22. INPUT HEIGHT
|
|
297
|
+
|
|
298
|
+
Inputs should have comfortable interaction areas.
|
|
299
|
+
|
|
300
|
+
Do not make fields visually tiny merely to achieve density.
|
|
301
|
+
|
|
302
|
+
# 23. TOUCH TARGET
|
|
303
|
+
|
|
304
|
+
Interactive input controls should provide sufficiently large touch targets,
|
|
305
|
+
even when their visual contents are compact.
|
|
306
|
+
|
|
307
|
+
# 24. INPUT STATES
|
|
308
|
+
|
|
309
|
+
At minimum consider:
|
|
310
|
+
|
|
311
|
+
```text
|
|
312
|
+
Default
|
|
313
|
+
Focused
|
|
314
|
+
Filled
|
|
315
|
+
Disabled
|
|
316
|
+
Read-only
|
|
317
|
+
Error
|
|
318
|
+
Success
|
|
319
|
+
Loading
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
when relevant.
|
|
323
|
+
|
|
324
|
+
# 25. DEFAULT
|
|
325
|
+
|
|
326
|
+
The default state should clearly communicate:
|
|
327
|
+
|
|
328
|
+
```text
|
|
329
|
+
this field can be interacted with
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
without excessive decoration.
|
|
333
|
+
|
|
334
|
+
# 26. FOCUS STATE
|
|
335
|
+
|
|
336
|
+
Focus should be visually obvious.
|
|
337
|
+
|
|
338
|
+
Use combinations of:
|
|
339
|
+
|
|
340
|
+
```text
|
|
341
|
+
border
|
|
342
|
+
surface
|
|
343
|
+
label
|
|
344
|
+
cursor
|
|
345
|
+
accent
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
rather than relying only on subtle color changes.
|
|
349
|
+
|
|
350
|
+
# 27. FILLED STATE
|
|
351
|
+
|
|
352
|
+
Once data exists:
|
|
353
|
+
|
|
354
|
+
```text
|
|
355
|
+
the value becomes primary
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
and supporting hints should not compete with it.
|
|
359
|
+
|
|
360
|
+
# 28. DISABLED
|
|
361
|
+
|
|
362
|
+
Disabled controls should communicate:
|
|
363
|
+
|
|
364
|
+
```text
|
|
365
|
+
unavailable
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
without becoming visually indistinguishable from normal text.
|
|
369
|
+
|
|
370
|
+
# 29. READ-ONLY
|
|
371
|
+
|
|
372
|
+
Read-only is different from disabled.
|
|
373
|
+
|
|
374
|
+
The value may be important but not editable.
|
|
375
|
+
|
|
376
|
+
# 30. READ-ONLY DESIGN
|
|
377
|
+
|
|
378
|
+
A read-only value should remain readable and discoverable.
|
|
379
|
+
|
|
380
|
+
Do not unnecessarily make it appear broken.
|
|
381
|
+
|
|
382
|
+
# 31. ERROR STATE
|
|
383
|
+
|
|
384
|
+
Errors should explain:
|
|
385
|
+
|
|
386
|
+
```text
|
|
387
|
+
what is wrong
|
|
388
|
+
how to fix it
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
.
|
|
392
|
+
|
|
393
|
+
# 32. ERROR LOCATION
|
|
394
|
+
|
|
395
|
+
Prefer showing the error close to the affected input.
|
|
396
|
+
|
|
397
|
+
Do not force the user to search elsewhere for the problem.
|
|
398
|
+
|
|
399
|
+
# 33. ERROR TIMING
|
|
400
|
+
|
|
401
|
+
Do not aggressively show errors before the user has had a reasonable chance
|
|
402
|
+
to complete the input.
|
|
403
|
+
|
|
404
|
+
Validation timing should match the task.
|
|
405
|
+
|
|
406
|
+
# 34. VALIDATION STRATEGIES
|
|
407
|
+
|
|
408
|
+
Common strategies:
|
|
409
|
+
|
|
410
|
+
```text
|
|
411
|
+
On submit
|
|
412
|
+
On blur
|
|
413
|
+
While typing
|
|
414
|
+
After debounce
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
Choose based on the input.
|
|
418
|
+
|
|
419
|
+
Examples:
|
|
420
|
+
|
|
421
|
+
```text
|
|
422
|
+
email availability → debounce
|
|
423
|
+
password strength → while typing
|
|
424
|
+
required field → submit / blur
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
.
|
|
428
|
+
|
|
429
|
+
# 35. REAL-TIME VALIDATION
|
|
430
|
+
|
|
431
|
+
Real-time validation should be useful, not noisy.
|
|
432
|
+
|
|
433
|
+
Do not repeatedly tell users something is invalid while they are still entering it.
|
|
434
|
+
|
|
435
|
+
# 36. ERROR LANGUAGE
|
|
436
|
+
|
|
437
|
+
Use direct, human language.
|
|
438
|
+
|
|
439
|
+
Weak:
|
|
440
|
+
|
|
441
|
+
```text
|
|
442
|
+
Invalid input
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
Better:
|
|
446
|
+
|
|
447
|
+
```text
|
|
448
|
+
Enter a valid email address.
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
# 37. ERROR TONE
|
|
452
|
+
|
|
453
|
+
Do not blame the user.
|
|
454
|
+
|
|
455
|
+
Avoid:
|
|
456
|
+
|
|
457
|
+
```text
|
|
458
|
+
You entered the wrong value.
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
Prefer:
|
|
462
|
+
|
|
463
|
+
```text
|
|
464
|
+
Enter a valid value.
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
# 38. ERROR RECOVERY
|
|
468
|
+
|
|
469
|
+
An error should leave the user with an obvious next action.
|
|
470
|
+
|
|
471
|
+
```text
|
|
472
|
+
Error
|
|
473
|
+
↓
|
|
474
|
+
Explanation
|
|
475
|
+
↓
|
|
476
|
+
Correction
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
.
|
|
480
|
+
|
|
481
|
+
# 39. FORM VALIDATION
|
|
482
|
+
|
|
483
|
+
Validate according to actual business rules.
|
|
484
|
+
|
|
485
|
+
Do not validate purely according to arbitrary UI assumptions.
|
|
486
|
+
|
|
487
|
+
# 40. CLIENT + SERVER VALIDATION
|
|
488
|
+
|
|
489
|
+
Client validation improves feedback.
|
|
490
|
+
|
|
491
|
+
Server validation remains authoritative for server-controlled rules.
|
|
492
|
+
|
|
493
|
+
# 41. VALIDATION CONSISTENCY
|
|
494
|
+
|
|
495
|
+
The client and server should avoid contradictory rules.
|
|
496
|
+
|
|
497
|
+
Example:
|
|
498
|
+
|
|
499
|
+
```text
|
|
500
|
+
client: minimum 8 characters
|
|
501
|
+
server: minimum 12 characters
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
creates unnecessary friction.
|
|
505
|
+
|
|
506
|
+
# 42. SUCCESS STATE
|
|
507
|
+
|
|
508
|
+
Success feedback should be proportional to the importance of the operation.
|
|
509
|
+
|
|
510
|
+
Do not display giant success animations for routine input.
|
|
511
|
+
|
|
512
|
+
# 43. INPUT MASKING
|
|
513
|
+
|
|
514
|
+
Use formatting when it materially helps users.
|
|
515
|
+
|
|
516
|
+
Examples:
|
|
517
|
+
|
|
518
|
+
```text
|
|
519
|
+
phone numbers
|
|
520
|
+
currency
|
|
521
|
+
dates
|
|
522
|
+
identifiers
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
Do not make formatting so aggressive that it interferes with editing.
|
|
526
|
+
|
|
527
|
+
# 44. CURRENCY INPUT
|
|
528
|
+
|
|
529
|
+
Currency inputs should distinguish:
|
|
530
|
+
|
|
531
|
+
```text
|
|
532
|
+
amount
|
|
533
|
+
currency
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
where necessary.
|
|
537
|
+
|
|
538
|
+
# 45. NUMERIC INPUT
|
|
539
|
+
|
|
540
|
+
Numeric fields should clearly communicate expected units.
|
|
541
|
+
|
|
542
|
+
Example:
|
|
543
|
+
|
|
544
|
+
```text
|
|
545
|
+
Weight
|
|
546
|
+
kg
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
rather than forcing users to infer the unit.
|
|
550
|
+
|
|
551
|
+
# 46. STEPPERS
|
|
552
|
+
|
|
553
|
+
Use steppers when values change in small predictable increments.
|
|
554
|
+
|
|
555
|
+
Good for:
|
|
556
|
+
|
|
557
|
+
```text
|
|
558
|
+
quantity
|
|
559
|
+
count
|
|
560
|
+
small numeric adjustments
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
.
|
|
564
|
+
|
|
565
|
+
# 47. SLIDERS
|
|
566
|
+
|
|
567
|
+
Sliders are useful for continuous or approximate values.
|
|
568
|
+
|
|
569
|
+
Examples:
|
|
570
|
+
|
|
571
|
+
```text
|
|
572
|
+
volume
|
|
573
|
+
brightness
|
|
574
|
+
balance
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
.
|
|
578
|
+
|
|
579
|
+
# 48. SLIDER PRECISION
|
|
580
|
+
|
|
581
|
+
Do not use sliders when exact numeric entry is more important than approximate
|
|
582
|
+
selection.
|
|
583
|
+
|
|
584
|
+
# 49. SLIDER FEEDBACK
|
|
585
|
+
|
|
586
|
+
Provide sufficient feedback about the current value.
|
|
587
|
+
|
|
588
|
+
# 50. TOGGLES
|
|
589
|
+
|
|
590
|
+
Use toggles for immediate binary settings.
|
|
591
|
+
|
|
592
|
+
Examples:
|
|
593
|
+
|
|
594
|
+
```text
|
|
595
|
+
Notifications
|
|
596
|
+
Dark Mode
|
|
597
|
+
Wi-Fi
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
where the change can happen immediately.
|
|
601
|
+
|
|
602
|
+
# 51. TOGGLE VS BUTTON
|
|
603
|
+
|
|
604
|
+
Use:
|
|
605
|
+
|
|
606
|
+
```text
|
|
607
|
+
Toggle → persistent on/off state
|
|
608
|
+
Button → action
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
Do not use buttons to represent persistent state.
|
|
612
|
+
|
|
613
|
+
# 52. TOGGLE LABEL
|
|
614
|
+
|
|
615
|
+
The label should describe the setting itself.
|
|
616
|
+
|
|
617
|
+
Example:
|
|
618
|
+
|
|
619
|
+
```text
|
|
620
|
+
Background Playback
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
rather than:
|
|
624
|
+
|
|
625
|
+
```text
|
|
626
|
+
Enable
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
# 53. CHECKBOX / MULTI-SELECT
|
|
630
|
+
|
|
631
|
+
Use selection controls when multiple independent choices can be selected.
|
|
632
|
+
|
|
633
|
+
# 54. RADIO / SINGLE SELECT
|
|
634
|
+
|
|
635
|
+
Use single-selection controls when exactly one option can be chosen from a set.
|
|
636
|
+
|
|
637
|
+
# 55. PICKERS
|
|
638
|
+
|
|
639
|
+
Use pickers when the user must choose from a constrained set.
|
|
640
|
+
|
|
641
|
+
Avoid forcing users to type values that could be selected safely.
|
|
642
|
+
|
|
643
|
+
# 56. PICKER DESIGN
|
|
644
|
+
|
|
645
|
+
The user should understand:
|
|
646
|
+
|
|
647
|
+
```text
|
|
648
|
+
current value
|
|
649
|
+
available choices
|
|
650
|
+
how to confirm
|
|
651
|
+
```
|
|
652
|
+
|
|
653
|
+
.
|
|
654
|
+
|
|
655
|
+
# 57. DATE INPUT
|
|
656
|
+
|
|
657
|
+
Choose a date interaction appropriate to the task.
|
|
658
|
+
|
|
659
|
+
Consider:
|
|
660
|
+
|
|
661
|
+
```text
|
|
662
|
+
calendar
|
|
663
|
+
date picker
|
|
664
|
+
relative options
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
.
|
|
668
|
+
|
|
669
|
+
# 58. RELATIVE DATES
|
|
670
|
+
|
|
671
|
+
For tasks such as scheduling, options like:
|
|
672
|
+
|
|
673
|
+
```text
|
|
674
|
+
Today
|
|
675
|
+
Tomorrow
|
|
676
|
+
Next week
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
can reduce input effort when appropriate.
|
|
680
|
+
|
|
681
|
+
# 59. TIME INPUT
|
|
682
|
+
|
|
683
|
+
Use a time selection mechanism that supports the user's expected precision.
|
|
684
|
+
|
|
685
|
+
# 60. COMBINED DATE + TIME
|
|
686
|
+
|
|
687
|
+
Avoid unnecessarily separating date and time when users conceptually treat them
|
|
688
|
+
as one scheduling decision.
|
|
689
|
+
|
|
690
|
+
# 61. SEARCH INPUT
|
|
691
|
+
|
|
692
|
+
Search fields should communicate:
|
|
693
|
+
|
|
694
|
+
```text
|
|
695
|
+
what can be searched
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
and provide an appropriate keyboard action.
|
|
699
|
+
|
|
700
|
+
# 62. SEARCH DEBOUNCE
|
|
701
|
+
|
|
702
|
+
For live search:
|
|
703
|
+
|
|
704
|
+
```text
|
|
705
|
+
input
|
|
706
|
+
↓
|
|
707
|
+
short debounce
|
|
708
|
+
↓
|
|
709
|
+
query
|
|
710
|
+
```
|
|
711
|
+
|
|
712
|
+
to avoid excessive requests.
|
|
713
|
+
|
|
714
|
+
# 63. SEARCH CANCELLATION
|
|
715
|
+
|
|
716
|
+
Users should be able to exit search mode without losing the surrounding context
|
|
717
|
+
when appropriate.
|
|
718
|
+
|
|
719
|
+
# 64. PASSWORD INPUT
|
|
720
|
+
|
|
721
|
+
Password fields should balance:
|
|
722
|
+
|
|
723
|
+
```text
|
|
724
|
+
privacy
|
|
725
|
+
accuracy
|
|
726
|
+
speed
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
.
|
|
730
|
+
|
|
731
|
+
# 65. PASSWORD VISIBILITY
|
|
732
|
+
|
|
733
|
+
Allow visibility toggling when useful.
|
|
734
|
+
|
|
735
|
+
This reduces entry errors without requiring repeated retyping.
|
|
736
|
+
|
|
737
|
+
# 66. PASSWORD STRENGTH
|
|
738
|
+
|
|
739
|
+
Strength indicators should help users create stronger passwords.
|
|
740
|
+
|
|
741
|
+
Avoid meaningless complexity meters.
|
|
742
|
+
|
|
743
|
+
# 67. PASSWORD REQUIREMENTS
|
|
744
|
+
|
|
745
|
+
State requirements before or during entry when possible.
|
|
746
|
+
|
|
747
|
+
Example:
|
|
748
|
+
|
|
749
|
+
```text
|
|
750
|
+
At least 8 characters
|
|
751
|
+
```
|
|
752
|
+
|
|
753
|
+
rather than revealing every rule only after submission.
|
|
754
|
+
|
|
755
|
+
# 68. CONFIRM PASSWORD
|
|
756
|
+
|
|
757
|
+
Only ask for confirmation when it provides meaningful protection against
|
|
758
|
+
mistakes.
|
|
759
|
+
|
|
760
|
+
Avoid duplicate fields by default.
|
|
761
|
+
|
|
762
|
+
# 69. EMAIL INPUT
|
|
763
|
+
|
|
764
|
+
Use appropriate input configuration and validation.
|
|
765
|
+
|
|
766
|
+
Do not reject legitimate email addresses using overly simplistic patterns.
|
|
767
|
+
|
|
768
|
+
# 70. PHONE INPUT
|
|
769
|
+
|
|
770
|
+
Phone input should account for:
|
|
771
|
+
|
|
772
|
+
```text
|
|
773
|
+
country
|
|
774
|
+
formatting
|
|
775
|
+
international numbers
|
|
776
|
+
```
|
|
777
|
+
|
|
778
|
+
where the application supports them.
|
|
779
|
+
|
|
780
|
+
# 71. URL INPUT
|
|
781
|
+
|
|
782
|
+
Provide URL-specific keyboard behavior and sensible normalization.
|
|
783
|
+
|
|
784
|
+
# 72. TEXTAREA
|
|
785
|
+
|
|
786
|
+
Use multiline input when users need to express meaningful free-form content.
|
|
787
|
+
|
|
788
|
+
Provide sufficient vertical space.
|
|
789
|
+
|
|
790
|
+
# 73. TEXT LENGTH
|
|
791
|
+
|
|
792
|
+
If length is constrained:
|
|
793
|
+
|
|
794
|
+
```text
|
|
795
|
+
communicate the limit
|
|
796
|
+
```
|
|
797
|
+
|
|
798
|
+
and provide feedback before the user loses work.
|
|
799
|
+
|
|
800
|
+
# 74. CHARACTER COUNTERS
|
|
801
|
+
|
|
802
|
+
Use counters when:
|
|
803
|
+
|
|
804
|
+
```text
|
|
805
|
+
limits matter
|
|
806
|
+
```
|
|
807
|
+
|
|
808
|
+
Avoid showing them when they add noise without helping the task.
|
|
809
|
+
|
|
810
|
+
# 75. AUTOCORRECTION
|
|
811
|
+
|
|
812
|
+
Allow platform text behavior unless the field requires specialized handling.
|
|
813
|
+
|
|
814
|
+
# 76. CAPITALIZATION
|
|
815
|
+
|
|
816
|
+
Configure capitalization according to semantic content.
|
|
817
|
+
|
|
818
|
+
Examples:
|
|
819
|
+
|
|
820
|
+
```text
|
|
821
|
+
sentence
|
|
822
|
+
words
|
|
823
|
+
characters
|
|
824
|
+
none
|
|
825
|
+
```
|
|
826
|
+
|
|
827
|
+
.
|
|
828
|
+
|
|
829
|
+
# 77. SPELL CHECKING
|
|
830
|
+
|
|
831
|
+
Enable it where natural-language entry benefits from correction.
|
|
832
|
+
|
|
833
|
+
# 78. SPECIALIZED INPUT
|
|
834
|
+
|
|
835
|
+
For usernames, codes, identifiers, or technical values:
|
|
836
|
+
|
|
837
|
+
```text
|
|
838
|
+
avoid inappropriate autocorrection
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
.
|
|
842
|
+
|
|
843
|
+
# 79. ONE-TIME CODES
|
|
844
|
+
|
|
845
|
+
OTP interfaces should minimize manual effort.
|
|
846
|
+
|
|
847
|
+
Support appropriate system-assisted code entry where available.
|
|
848
|
+
|
|
849
|
+
# 80. OTP FIELD DESIGN
|
|
850
|
+
|
|
851
|
+
Avoid forcing users to tap six tiny independent fields unless the interaction
|
|
852
|
+
specifically benefits from that presentation.
|
|
853
|
+
|
|
854
|
+
# 81. PASTE
|
|
855
|
+
|
|
856
|
+
Users should generally be able to paste values when appropriate.
|
|
857
|
+
|
|
858
|
+
Do not unnecessarily block paste.
|
|
859
|
+
|
|
860
|
+
# 82. COPY
|
|
861
|
+
|
|
862
|
+
Important values should support copying when users are likely to need them.
|
|
863
|
+
|
|
864
|
+
# 83. TEXT SELECTION
|
|
865
|
+
|
|
866
|
+
Do not disable standard text selection without a strong reason.
|
|
867
|
+
|
|
868
|
+
# 84. AUTOFILL
|
|
869
|
+
|
|
870
|
+
Use platform-supported autofill capabilities where appropriate.
|
|
871
|
+
|
|
872
|
+
The goal is to reduce repetitive user entry.
|
|
873
|
+
|
|
874
|
+
# 85. PRIVACY
|
|
875
|
+
|
|
876
|
+
Sensitive inputs should use appropriate secure presentation and storage.
|
|
877
|
+
|
|
878
|
+
Never expose sensitive values unnecessarily in UI.
|
|
879
|
+
|
|
880
|
+
# 86. SENSITIVE DATA
|
|
881
|
+
|
|
882
|
+
Consider:
|
|
883
|
+
|
|
884
|
+
```text
|
|
885
|
+
visibility
|
|
886
|
+
screen capture
|
|
887
|
+
clipboard
|
|
888
|
+
logs
|
|
889
|
+
analytics
|
|
890
|
+
```
|
|
891
|
+
|
|
892
|
+
when handling sensitive information.
|
|
893
|
+
|
|
894
|
+
# 87. FORMS + ACCESSIBILITY
|
|
895
|
+
|
|
896
|
+
Every field must expose:
|
|
897
|
+
|
|
898
|
+
```text
|
|
899
|
+
label
|
|
900
|
+
role
|
|
901
|
+
value
|
|
902
|
+
state
|
|
903
|
+
error
|
|
904
|
+
instructions
|
|
905
|
+
```
|
|
906
|
+
|
|
907
|
+
where applicable.
|
|
908
|
+
|
|
909
|
+
# 88. SCREEN READERS
|
|
910
|
+
|
|
911
|
+
Do not depend on visual grouping alone to communicate relationships between
|
|
912
|
+
labels, values, and errors.
|
|
913
|
+
|
|
914
|
+
# 89. DYNAMIC TYPE
|
|
915
|
+
|
|
916
|
+
Forms must tolerate larger text.
|
|
917
|
+
|
|
918
|
+
Never assume the default font size is the only possible size.
|
|
919
|
+
|
|
920
|
+
# 90. ACCESSIBLE ERRORS
|
|
921
|
+
|
|
922
|
+
Errors should be announced or made discoverable appropriately for assistive
|
|
923
|
+
technology.
|
|
924
|
+
|
|
925
|
+
# 91. FOCUS MANAGEMENT
|
|
926
|
+
|
|
927
|
+
After submission failure:
|
|
928
|
+
|
|
929
|
+
```text
|
|
930
|
+
move focus intelligently
|
|
931
|
+
```
|
|
932
|
+
|
|
933
|
+
to the first meaningful error when appropriate.
|
|
934
|
+
|
|
935
|
+
Do not unexpectedly jump the user around the form.
|
|
936
|
+
|
|
937
|
+
# 92. FORM SECTIONS
|
|
938
|
+
|
|
939
|
+
Group related fields.
|
|
940
|
+
|
|
941
|
+
Example:
|
|
942
|
+
|
|
943
|
+
```text
|
|
944
|
+
Personal Information
|
|
945
|
+
Payment Information
|
|
946
|
+
Preferences
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
.
|
|
950
|
+
|
|
951
|
+
# 93. FORM ORDER
|
|
952
|
+
|
|
953
|
+
Use natural task order.
|
|
954
|
+
|
|
955
|
+
Ask:
|
|
956
|
+
|
|
957
|
+
```text
|
|
958
|
+
What must the user know first?
|
|
959
|
+
What must they provide next?
|
|
960
|
+
What depends on previous information?
|
|
961
|
+
```
|
|
962
|
+
|
|
963
|
+
.
|
|
964
|
+
|
|
965
|
+
# 94. CONDITIONAL FIELDS
|
|
966
|
+
|
|
967
|
+
Only reveal additional fields when their context becomes relevant.
|
|
968
|
+
|
|
969
|
+
Example:
|
|
970
|
+
|
|
971
|
+
```text
|
|
972
|
+
Business account
|
|
973
|
+
↓
|
|
974
|
+
Company name
|
|
975
|
+
```
|
|
976
|
+
|
|
977
|
+
.
|
|
978
|
+
|
|
979
|
+
# 95. PROGRESSIVE DISCLOSURE
|
|
980
|
+
|
|
981
|
+
Do not expose every possible field immediately.
|
|
982
|
+
|
|
983
|
+
Reveal complexity when needed.
|
|
984
|
+
|
|
985
|
+
# 96. CONDITIONAL FIELD ANIMATION
|
|
986
|
+
|
|
987
|
+
Transitions should be subtle and maintain spatial context.
|
|
988
|
+
|
|
989
|
+
Avoid dramatic movement for simple field changes.
|
|
990
|
+
|
|
991
|
+
# 97. MULTI-STEP FORMS
|
|
992
|
+
|
|
993
|
+
Use multi-step flows when the task is genuinely complex.
|
|
994
|
+
|
|
995
|
+
Do not split a simple three-field form into three screens.
|
|
996
|
+
|
|
997
|
+
# 98. STEP INDICATOR
|
|
998
|
+
|
|
999
|
+
When a multi-step process is long enough to require orientation, communicate
|
|
1000
|
+
progress.
|
|
1001
|
+
|
|
1002
|
+
# 99. BACK NAVIGATION
|
|
1003
|
+
|
|
1004
|
+
Going back should preserve entered information whenever possible.
|
|
1005
|
+
|
|
1006
|
+
# 100. FORM DRAFTS
|
|
1007
|
+
|
|
1008
|
+
Long or valuable forms should consider draft preservation.
|
|
1009
|
+
|
|
1010
|
+
# 101. UNSAVED CHANGES
|
|
1011
|
+
|
|
1012
|
+
If leaving would cause meaningful data loss:
|
|
1013
|
+
|
|
1014
|
+
```text
|
|
1015
|
+
warn
|
|
1016
|
+
```
|
|
1017
|
+
|
|
1018
|
+
before discarding it.
|
|
1019
|
+
|
|
1020
|
+
# 102. AUTO-SAVE
|
|
1021
|
+
|
|
1022
|
+
Auto-save is valuable for:
|
|
1023
|
+
|
|
1024
|
+
```text
|
|
1025
|
+
notes
|
|
1026
|
+
documents
|
|
1027
|
+
long forms
|
|
1028
|
+
creative work
|
|
1029
|
+
```
|
|
1030
|
+
|
|
1031
|
+
when technically appropriate.
|
|
1032
|
+
|
|
1033
|
+
# 103. SAVE BUTTON
|
|
1034
|
+
|
|
1035
|
+
A save button is useful when users expect explicit confirmation or when changes
|
|
1036
|
+
must be committed as a single transaction.
|
|
1037
|
+
|
|
1038
|
+
# 104. IMMEDIATE SETTINGS
|
|
1039
|
+
|
|
1040
|
+
For simple settings:
|
|
1041
|
+
|
|
1042
|
+
```text
|
|
1043
|
+
toggle
|
|
1044
|
+
change
|
|
1045
|
+
immediate persistence
|
|
1046
|
+
```
|
|
1047
|
+
|
|
1048
|
+
is often preferable to:
|
|
1049
|
+
|
|
1050
|
+
```text
|
|
1051
|
+
toggle
|
|
1052
|
+
change
|
|
1053
|
+
Save
|
|
1054
|
+
```
|
|
1055
|
+
|
|
1056
|
+
.
|
|
1057
|
+
|
|
1058
|
+
# 105. FORM SUBMISSION
|
|
1059
|
+
|
|
1060
|
+
Submission should clearly communicate:
|
|
1061
|
+
|
|
1062
|
+
```text
|
|
1063
|
+
processing
|
|
1064
|
+
success
|
|
1065
|
+
failure
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
.
|
|
1069
|
+
|
|
1070
|
+
# 106. SUBMIT BUTTON
|
|
1071
|
+
|
|
1072
|
+
The primary submit action should be visually obvious.
|
|
1073
|
+
|
|
1074
|
+
Avoid multiple competing primary actions.
|
|
1075
|
+
|
|
1076
|
+
# 107. DISABLE SUBMIT
|
|
1077
|
+
|
|
1078
|
+
Do not disable submission merely because optional fields are incomplete.
|
|
1079
|
+
|
|
1080
|
+
Only disable when the action genuinely cannot proceed.
|
|
1081
|
+
|
|
1082
|
+
# 108. LOADING SUBMIT
|
|
1083
|
+
|
|
1084
|
+
During submission:
|
|
1085
|
+
|
|
1086
|
+
```text
|
|
1087
|
+
prevent accidental duplicate submissions
|
|
1088
|
+
communicate progress
|
|
1089
|
+
```
|
|
1090
|
+
|
|
1091
|
+
while preserving user context.
|
|
1092
|
+
|
|
1093
|
+
# 109. DOUBLE SUBMISSION
|
|
1094
|
+
|
|
1095
|
+
Protect against repeated taps.
|
|
1096
|
+
|
|
1097
|
+
The UI should not create duplicate operations because a user tapped twice.
|
|
1098
|
+
|
|
1099
|
+
# 110. ASYNC VALIDATION
|
|
1100
|
+
|
|
1101
|
+
For server checks:
|
|
1102
|
+
|
|
1103
|
+
```text
|
|
1104
|
+
input
|
|
1105
|
+
↓
|
|
1106
|
+
debounce
|
|
1107
|
+
↓
|
|
1108
|
+
checking
|
|
1109
|
+
↓
|
|
1110
|
+
available / unavailable
|
|
1111
|
+
```
|
|
1112
|
+
|
|
1113
|
+
communicate status clearly.
|
|
1114
|
+
|
|
1115
|
+
# 111. NETWORK FAILURE
|
|
1116
|
+
|
|
1117
|
+
If validation fails because of connectivity:
|
|
1118
|
+
|
|
1119
|
+
```text
|
|
1120
|
+
do not tell the user their input is invalid
|
|
1121
|
+
```
|
|
1122
|
+
|
|
1123
|
+
Distinguish:
|
|
1124
|
+
|
|
1125
|
+
```text
|
|
1126
|
+
invalid input
|
|
1127
|
+
```
|
|
1128
|
+
|
|
1129
|
+
from:
|
|
1130
|
+
|
|
1131
|
+
```text
|
|
1132
|
+
unable to verify
|
|
1133
|
+
```
|
|
1134
|
+
|
|
1135
|
+
# 112. FORM RESET
|
|
1136
|
+
|
|
1137
|
+
Reset should be deliberate.
|
|
1138
|
+
|
|
1139
|
+
If destructive:
|
|
1140
|
+
|
|
1141
|
+
```text
|
|
1142
|
+
confirm
|
|
1143
|
+
```
|
|
1144
|
+
|
|
1145
|
+
or provide undo when appropriate.
|
|
1146
|
+
|
|
1147
|
+
# 113. CLEAR FIELD
|
|
1148
|
+
|
|
1149
|
+
A clear button can be useful for:
|
|
1150
|
+
|
|
1151
|
+
```text
|
|
1152
|
+
search
|
|
1153
|
+
large text
|
|
1154
|
+
filters
|
|
1155
|
+
```
|
|
1156
|
+
|
|
1157
|
+
when clearing is a frequent operation.
|
|
1158
|
+
|
|
1159
|
+
# 114. INPUT ACCESSIBILITY
|
|
1160
|
+
|
|
1161
|
+
Do not encode meaning exclusively through:
|
|
1162
|
+
|
|
1163
|
+
```text
|
|
1164
|
+
color
|
|
1165
|
+
position
|
|
1166
|
+
animation
|
|
1167
|
+
```
|
|
1168
|
+
|
|
1169
|
+
.
|
|
1170
|
+
|
|
1171
|
+
# 115. INPUT MOTION
|
|
1172
|
+
|
|
1173
|
+
Use motion to communicate:
|
|
1174
|
+
|
|
1175
|
+
```text
|
|
1176
|
+
focus
|
|
1177
|
+
validation
|
|
1178
|
+
appearance
|
|
1179
|
+
disappearance
|
|
1180
|
+
```
|
|
1181
|
+
|
|
1182
|
+
not decoration.
|
|
1183
|
+
|
|
1184
|
+
# 116. ERROR MOTION
|
|
1185
|
+
|
|
1186
|
+
A subtle transition can draw attention to an error.
|
|
1187
|
+
|
|
1188
|
+
Avoid aggressive shaking or animation that feels punitive.
|
|
1189
|
+
|
|
1190
|
+
# 117. HAPTICS
|
|
1191
|
+
|
|
1192
|
+
Haptic feedback may reinforce meaningful events such as:
|
|
1193
|
+
|
|
1194
|
+
```text
|
|
1195
|
+
selection
|
|
1196
|
+
successful completion
|
|
1197
|
+
important confirmation
|
|
1198
|
+
```
|
|
1199
|
+
|
|
1200
|
+
when appropriate.
|
|
1201
|
+
|
|
1202
|
+
# 118. FORM DENSITY
|
|
1203
|
+
|
|
1204
|
+
Compact forms may be appropriate for:
|
|
1205
|
+
|
|
1206
|
+
```text
|
|
1207
|
+
professional tools
|
|
1208
|
+
power-user interfaces
|
|
1209
|
+
large datasets
|
|
1210
|
+
```
|
|
1211
|
+
|
|
1212
|
+
but should remain accessible.
|
|
1213
|
+
|
|
1214
|
+
# 119. FORM WHITESPACE
|
|
1215
|
+
|
|
1216
|
+
Whitespace should separate conceptual groups, not simply create visual luxury.
|
|
1217
|
+
|
|
1218
|
+
# 120. FORM CONSISTENCY
|
|
1219
|
+
|
|
1220
|
+
Equivalent inputs should behave consistently across the application.
|
|
1221
|
+
|
|
1222
|
+
# 121. DESIGN SYSTEM INPUT API
|
|
1223
|
+
|
|
1224
|
+
A conceptual component API:
|
|
1225
|
+
|
|
1226
|
+
```text id="x3qv4m"
|
|
1227
|
+
<Input
|
|
1228
|
+
label="Email"
|
|
1229
|
+
value={email}
|
|
1230
|
+
onChange={...}
|
|
1231
|
+
keyboardType="email-address"
|
|
1232
|
+
state="default"
|
|
1233
|
+
/>
|
|
1234
|
+
```
|
|
1235
|
+
|
|
1236
|
+
The exact implementation depends on the project's architecture.
|
|
1237
|
+
|
|
1238
|
+
# 122. SEMANTIC INPUT API
|
|
1239
|
+
|
|
1240
|
+
Prefer:
|
|
1241
|
+
|
|
1242
|
+
```text id="l4r1kj"
|
|
1243
|
+
state="error"
|
|
1244
|
+
```
|
|
1245
|
+
|
|
1246
|
+
over:
|
|
1247
|
+
|
|
1248
|
+
```text id="n5a2vc"
|
|
1249
|
+
borderColor="red"
|
|
1250
|
+
```
|
|
1251
|
+
|
|
1252
|
+
The component should determine the correct visual expression.
|
|
1253
|
+
|
|
1254
|
+
# 123. FORM COMPOSITION
|
|
1255
|
+
|
|
1256
|
+
Prefer:
|
|
1257
|
+
|
|
1258
|
+
```text id="r2e9e1"
|
|
1259
|
+
Form
|
|
1260
|
+
├── Section
|
|
1261
|
+
│ ├── Field
|
|
1262
|
+
│ └── Field
|
|
1263
|
+
└── Section
|
|
1264
|
+
└── Field
|
|
1265
|
+
```
|
|
1266
|
+
|
|
1267
|
+
rather than manually recreating every layout on every screen.
|
|
1268
|
+
|
|
1269
|
+
# 124. FORM STATE
|
|
1270
|
+
|
|
1271
|
+
Separate:
|
|
1272
|
+
|
|
1273
|
+
```text id="xw4t2k"
|
|
1274
|
+
input value
|
|
1275
|
+
validation state
|
|
1276
|
+
submission state
|
|
1277
|
+
server state
|
|
1278
|
+
```
|
|
1279
|
+
|
|
1280
|
+
when practical.
|
|
1281
|
+
|
|
1282
|
+
# 125. FORM PERFORMANCE
|
|
1283
|
+
|
|
1284
|
+
Do not cause the entire form to rerender unnecessarily for every keystroke,
|
|
1285
|
+
especially for complex forms.
|
|
1286
|
+
|
|
1287
|
+
# 126. INPUT PERFORMANCE
|
|
1288
|
+
|
|
1289
|
+
Expensive validation should not run synchronously on every character unless
|
|
1290
|
+
the feedback is truly necessary.
|
|
1291
|
+
|
|
1292
|
+
# 127. FORM AUTOCOMPLETE
|
|
1293
|
+
|
|
1294
|
+
Use platform and application context to reduce repeated entry where appropriate.
|
|
1295
|
+
|
|
1296
|
+
# 128. USER CORRECTION
|
|
1297
|
+
|
|
1298
|
+
Design for mistakes.
|
|
1299
|
+
|
|
1300
|
+
Users will:
|
|
1301
|
+
|
|
1302
|
+
```text id="b4sv5e"
|
|
1303
|
+
type incorrectly
|
|
1304
|
+
paste incorrectly
|
|
1305
|
+
change their mind
|
|
1306
|
+
leave fields incomplete
|
|
1307
|
+
```
|
|
1308
|
+
|
|
1309
|
+
The system should make recovery easy.
|
|
1310
|
+
|
|
1311
|
+
# 129. FORGIVENESS
|
|
1312
|
+
|
|
1313
|
+
A premium form does not punish ordinary mistakes.
|
|
1314
|
+
|
|
1315
|
+
It helps users recover quickly.
|
|
1316
|
+
|
|
1317
|
+
# 130. FORM REVIEW
|
|
1318
|
+
|
|
1319
|
+
Before shipping, evaluate:
|
|
1320
|
+
|
|
1321
|
+
```text id="t7u0qm"
|
|
1322
|
+
Labels
|
|
1323
|
+
Keyboard
|
|
1324
|
+
Focus
|
|
1325
|
+
Input states
|
|
1326
|
+
Validation
|
|
1327
|
+
Errors
|
|
1328
|
+
Accessibility
|
|
1329
|
+
Submission
|
|
1330
|
+
Loading
|
|
1331
|
+
Recovery
|
|
1332
|
+
Persistence
|
|
1333
|
+
Privacy
|
|
1334
|
+
```
|
|
1335
|
+
|
|
1336
|
+
.
|
|
1337
|
+
|
|
1338
|
+
# 131. FORM REVIEW SCORE
|
|
1339
|
+
|
|
1340
|
+
```text id="7o9v8k"
|
|
1341
|
+
Clarity 15
|
|
1342
|
+
Efficiency 15
|
|
1343
|
+
Error handling 15
|
|
1344
|
+
Accessibility 15
|
|
1345
|
+
Input behavior 10
|
|
1346
|
+
Keyboard integration 10
|
|
1347
|
+
State handling 10
|
|
1348
|
+
Privacy 5
|
|
1349
|
+
Consistency 5
|
|
1350
|
+
──────────────────────────
|
|
1351
|
+
Total 100
|
|
1352
|
+
```
|
|
1353
|
+
|
|
1354
|
+
Interpretation:
|
|
1355
|
+
|
|
1356
|
+
```text id="4e72cg"
|
|
1357
|
+
95–100 Exceptional
|
|
1358
|
+
90–94 Excellent
|
|
1359
|
+
80–89 Strong
|
|
1360
|
+
70–79 Needs refinement
|
|
1361
|
+
60–69 Weak
|
|
1362
|
+
<60 Redesign
|
|
1363
|
+
```
|
|
1364
|
+
|
|
1365
|
+
# 132. AGENT FORM DECISION TREE
|
|
1366
|
+
|
|
1367
|
+
```text id="6m3m4v"
|
|
1368
|
+
What is the user entering?
|
|
1369
|
+
↓
|
|
1370
|
+
Known constrained value?
|
|
1371
|
+
├── YES → picker / selector
|
|
1372
|
+
└── NO
|
|
1373
|
+
↓
|
|
1374
|
+
Short text?
|
|
1375
|
+
├── YES → text field
|
|
1376
|
+
└── NO
|
|
1377
|
+
↓
|
|
1378
|
+
Long-form text?
|
|
1379
|
+
├── YES → multiline input
|
|
1380
|
+
└── NO
|
|
1381
|
+
↓
|
|
1382
|
+
Numeric?
|
|
1383
|
+
├── YES → numeric control
|
|
1384
|
+
└── NO → specialized input
|
|
1385
|
+
```
|
|
1386
|
+
|
|
1387
|
+
# 133. AGENT FORM DESIGN FLOW
|
|
1388
|
+
|
|
1389
|
+
```text id="8v7pko"
|
|
1390
|
+
User goal
|
|
1391
|
+
↓
|
|
1392
|
+
Required information
|
|
1393
|
+
↓
|
|
1394
|
+
Minimum fields
|
|
1395
|
+
↓
|
|
1396
|
+
Field semantics
|
|
1397
|
+
↓
|
|
1398
|
+
Input mechanism
|
|
1399
|
+
↓
|
|
1400
|
+
Keyboard configuration
|
|
1401
|
+
↓
|
|
1402
|
+
Focus order
|
|
1403
|
+
↓
|
|
1404
|
+
Validation strategy
|
|
1405
|
+
↓
|
|
1406
|
+
Error recovery
|
|
1407
|
+
↓
|
|
1408
|
+
Submission
|
|
1409
|
+
↓
|
|
1410
|
+
Loading
|
|
1411
|
+
↓
|
|
1412
|
+
Success
|
|
1413
|
+
↓
|
|
1414
|
+
Persistence
|
|
1415
|
+
↓
|
|
1416
|
+
Accessibility
|
|
1417
|
+
↓
|
|
1418
|
+
Privacy
|
|
1419
|
+
```
|
|
1420
|
+
|
|
1421
|
+
.
|
|
1422
|
+
|
|
1423
|
+
# 134. FINAL FORM PRINCIPLE
|
|
1424
|
+
|
|
1425
|
+
The best form is not the most beautiful form.
|
|
1426
|
+
|
|
1427
|
+
It is the form that makes the user's intended task feel:
|
|
1428
|
+
|
|
1429
|
+
```text id="f0n6g2"
|
|
1430
|
+
obvious
|
|
1431
|
+
fast
|
|
1432
|
+
forgiving
|
|
1433
|
+
predictable
|
|
1434
|
+
```
|
|
1435
|
+
|
|
1436
|
+
.
|
|
1437
|
+
|
|
1438
|
+
# 135. FINAL AGENT DIRECTIVE
|
|
1439
|
+
|
|
1440
|
+
Before adding another field, ask:
|
|
1441
|
+
|
|
1442
|
+
> "Does the user actually need to provide this?"
|
|
1443
|
+
|
|
1444
|
+
Before adding another validation rule, ask:
|
|
1445
|
+
|
|
1446
|
+
> "Does this protect the system or meaningfully help the user?"
|
|
1447
|
+
|
|
1448
|
+
Before adding another visual treatment, ask:
|
|
1449
|
+
|
|
1450
|
+
> "Does this improve understanding?"
|
|
1451
|
+
|
|
1452
|
+
Before adding another interaction, ask:
|
|
1453
|
+
|
|
1454
|
+
> "Does this reduce effort?"
|
|
1455
|
+
|
|
1456
|
+
Build forms around **human intent**, not database structure.
|
|
1457
|
+
|
|
1458
|
+
|