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,1308 @@
|
|
|
1
|
+
# iOS Forms, Input & Data Entry
|
|
2
|
+
|
|
3
|
+
> Agent intelligence module for designing forms, text entry, validation,
|
|
4
|
+
> selection, keyboards, input states, and data-entry workflows.
|
|
5
|
+
|
|
6
|
+
Version: 1.0
|
|
7
|
+
Platform: iOS / iPadOS / React Native / Expo
|
|
8
|
+
Role: Form UX and input intelligence
|
|
9
|
+
|
|
10
|
+
Parent:
|
|
11
|
+
|
|
12
|
+
* ios-design-system-architecture.md
|
|
13
|
+
* accessibility-inclusive-interaction.md
|
|
14
|
+
* ios-components-and-controls.md
|
|
15
|
+
* ios-typography-icons-visual-hierarchy.md
|
|
16
|
+
* ios-motion-animation-transitions.md
|
|
17
|
+
|
|
18
|
+
# 1. PURPOSE
|
|
19
|
+
|
|
20
|
+
Forms should make entering information:
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
Understandable
|
|
24
|
+
Fast
|
|
25
|
+
Forgiving
|
|
26
|
+
Predictable
|
|
27
|
+
Accessible
|
|
28
|
+
Recoverable
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The goal is not merely to collect data.
|
|
32
|
+
|
|
33
|
+
The goal is to minimize the user's cognitive and physical effort.
|
|
34
|
+
|
|
35
|
+
# 2. CORE PRINCIPLE
|
|
36
|
+
|
|
37
|
+
Before asking for information, ask:
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
Do we actually need it?
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Every unnecessary field creates friction.
|
|
44
|
+
|
|
45
|
+
# 3. FORM MINIMIZATION
|
|
46
|
+
|
|
47
|
+
Prefer:
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
Required information
|
|
51
|
+
+
|
|
52
|
+
Optional information when valuable
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
over collecting everything upfront.
|
|
56
|
+
|
|
57
|
+
# 4. PROGRESSIVE DISCLOSURE
|
|
58
|
+
|
|
59
|
+
Complex forms can reveal additional fields based on earlier choices.
|
|
60
|
+
|
|
61
|
+
Avoid overwhelming users with irrelevant fields.
|
|
62
|
+
|
|
63
|
+
# 5. FORM STRUCTURE
|
|
64
|
+
|
|
65
|
+
A strong form usually has:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
Title
|
|
69
|
+
↓
|
|
70
|
+
Context
|
|
71
|
+
↓
|
|
72
|
+
Fields
|
|
73
|
+
↓
|
|
74
|
+
Validation
|
|
75
|
+
↓
|
|
76
|
+
Primary action
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
.
|
|
80
|
+
|
|
81
|
+
# 6. LABELS
|
|
82
|
+
|
|
83
|
+
Every input should have a persistent, understandable label.
|
|
84
|
+
|
|
85
|
+
# 7. PLACEHOLDER ≠ LABEL
|
|
86
|
+
|
|
87
|
+
Do not use placeholder text as the only field label.
|
|
88
|
+
|
|
89
|
+
Placeholder content disappears when the user types.
|
|
90
|
+
|
|
91
|
+
# 8. PLACEHOLDERS
|
|
92
|
+
|
|
93
|
+
Use placeholders for:
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
Examples
|
|
97
|
+
Expected format
|
|
98
|
+
Sample values
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
not essential field names.
|
|
102
|
+
|
|
103
|
+
# 9. FIELD LABELS
|
|
104
|
+
|
|
105
|
+
Good:
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
Email address
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Weak:
|
|
112
|
+
|
|
113
|
+
```text
|
|
114
|
+
Enter something here
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
# 10. HELPER TEXT
|
|
118
|
+
|
|
119
|
+
Use helper text when the user needs additional context.
|
|
120
|
+
|
|
121
|
+
Example:
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
Password
|
|
125
|
+
At least 8 characters
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
.
|
|
129
|
+
|
|
130
|
+
# 11. HELPER TEXT RESTRAINT
|
|
131
|
+
|
|
132
|
+
Do not explain obvious fields.
|
|
133
|
+
|
|
134
|
+
Excessive helper text increases visual noise.
|
|
135
|
+
|
|
136
|
+
# 12. REQUIRED FIELDS
|
|
137
|
+
|
|
138
|
+
Clearly communicate required information.
|
|
139
|
+
|
|
140
|
+
If most fields are required, consider marking only optional fields instead.
|
|
141
|
+
|
|
142
|
+
# 13. OPTIONAL FIELDS
|
|
143
|
+
|
|
144
|
+
Avoid making users guess whether an unmarked field is required.
|
|
145
|
+
|
|
146
|
+
# 14. FIELD ORDER
|
|
147
|
+
|
|
148
|
+
Order fields according to the user's natural information flow.
|
|
149
|
+
|
|
150
|
+
# 15. COGNITIVE ORDER
|
|
151
|
+
|
|
152
|
+
Example:
|
|
153
|
+
|
|
154
|
+
```text
|
|
155
|
+
Name
|
|
156
|
+
Email
|
|
157
|
+
Phone
|
|
158
|
+
Address
|
|
159
|
+
Payment
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
may be more natural than arbitrary database order.
|
|
163
|
+
|
|
164
|
+
# 16. FIELD GROUPING
|
|
165
|
+
|
|
166
|
+
Group related information:
|
|
167
|
+
|
|
168
|
+
```text
|
|
169
|
+
Personal information
|
|
170
|
+
Contact information
|
|
171
|
+
Preferences
|
|
172
|
+
Payment
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
.
|
|
176
|
+
|
|
177
|
+
# 17. SECTIONING
|
|
178
|
+
|
|
179
|
+
Large forms should be divided into meaningful sections.
|
|
180
|
+
|
|
181
|
+
# 18. FORM LENGTH
|
|
182
|
+
|
|
183
|
+
If a form becomes very long, consider:
|
|
184
|
+
|
|
185
|
+
```text
|
|
186
|
+
Steps
|
|
187
|
+
Sections
|
|
188
|
+
Progressive disclosure
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
instead of one enormous screen.
|
|
192
|
+
|
|
193
|
+
# 19. MULTI-STEP FORMS
|
|
194
|
+
|
|
195
|
+
Use multi-step forms when information naturally falls into meaningful stages.
|
|
196
|
+
|
|
197
|
+
# 20. STEP DESIGN
|
|
198
|
+
|
|
199
|
+
Each step should have:
|
|
200
|
+
|
|
201
|
+
```text
|
|
202
|
+
Clear purpose
|
|
203
|
+
Limited cognitive load
|
|
204
|
+
Progress indication where useful
|
|
205
|
+
Easy back navigation
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
.
|
|
209
|
+
|
|
210
|
+
# 21. PROGRESS INDICATOR
|
|
211
|
+
|
|
212
|
+
For long workflows, communicate:
|
|
213
|
+
|
|
214
|
+
```text
|
|
215
|
+
Current step
|
|
216
|
+
Remaining steps
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
when useful.
|
|
220
|
+
|
|
221
|
+
# 22. AVOID FAKE PROGRESS
|
|
222
|
+
|
|
223
|
+
Do not imply that a workflow is nearly complete when the remaining work is
|
|
224
|
+
substantial.
|
|
225
|
+
|
|
226
|
+
# 23. INPUT TYPE
|
|
227
|
+
|
|
228
|
+
Choose the input method that matches the data.
|
|
229
|
+
|
|
230
|
+
Examples:
|
|
231
|
+
|
|
232
|
+
```text
|
|
233
|
+
Email → email keyboard
|
|
234
|
+
Phone → phone keyboard
|
|
235
|
+
Number → numeric keyboard
|
|
236
|
+
URL → URL keyboard
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
.
|
|
240
|
+
|
|
241
|
+
# 24. KEYBOARD
|
|
242
|
+
|
|
243
|
+
The keyboard should make the requested input easier, not harder.
|
|
244
|
+
|
|
245
|
+
# 25. RETURN KEY
|
|
246
|
+
|
|
247
|
+
Configure the return key according to the workflow:
|
|
248
|
+
|
|
249
|
+
```text
|
|
250
|
+
Next
|
|
251
|
+
Done
|
|
252
|
+
Search
|
|
253
|
+
Go
|
|
254
|
+
Send
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
where appropriate.
|
|
258
|
+
|
|
259
|
+
# 26. NEXT ACTION
|
|
260
|
+
|
|
261
|
+
If a form has multiple fields, allow users to move efficiently between fields.
|
|
262
|
+
|
|
263
|
+
# 27. FOCUS
|
|
264
|
+
|
|
265
|
+
Focus should communicate:
|
|
266
|
+
|
|
267
|
+
```text
|
|
268
|
+
Where am I?
|
|
269
|
+
What should I enter?
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
.
|
|
273
|
+
|
|
274
|
+
# 28. AUTOFOCUS
|
|
275
|
+
|
|
276
|
+
Autofocus can be useful when:
|
|
277
|
+
|
|
278
|
+
```text
|
|
279
|
+
There is one obvious input
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
but can be disruptive when the user needs to inspect context first.
|
|
283
|
+
|
|
284
|
+
# 29. KEYBOARD APPEARANCE
|
|
285
|
+
|
|
286
|
+
When the keyboard opens, the focused field must remain visible.
|
|
287
|
+
|
|
288
|
+
# 30. KEYBOARD AVOIDANCE
|
|
289
|
+
|
|
290
|
+
Do not allow the keyboard to obscure:
|
|
291
|
+
|
|
292
|
+
```text
|
|
293
|
+
Focused field
|
|
294
|
+
Current validation message
|
|
295
|
+
Primary action
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
when possible.
|
|
299
|
+
|
|
300
|
+
# 31. SCROLLING
|
|
301
|
+
|
|
302
|
+
Forms should scroll naturally when content exceeds available space.
|
|
303
|
+
|
|
304
|
+
# 32. FOCUS + SCROLL
|
|
305
|
+
|
|
306
|
+
When focus changes:
|
|
307
|
+
|
|
308
|
+
```text
|
|
309
|
+
Scroll
|
|
310
|
+
↓
|
|
311
|
+
Focused field visible
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
should happen smoothly.
|
|
315
|
+
|
|
316
|
+
# 33. INPUT ACCESSIBILITY
|
|
317
|
+
|
|
318
|
+
Inputs require:
|
|
319
|
+
|
|
320
|
+
```text
|
|
321
|
+
Accessible label
|
|
322
|
+
Role
|
|
323
|
+
Value
|
|
324
|
+
State
|
|
325
|
+
Hint when necessary
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
.
|
|
329
|
+
|
|
330
|
+
# 34. TEXT INPUT
|
|
331
|
+
|
|
332
|
+
Text fields should communicate their purpose clearly.
|
|
333
|
+
|
|
334
|
+
# 35. SINGLE-LINE INPUT
|
|
335
|
+
|
|
336
|
+
Use for:
|
|
337
|
+
|
|
338
|
+
```text
|
|
339
|
+
Name
|
|
340
|
+
Email
|
|
341
|
+
Search
|
|
342
|
+
Username
|
|
343
|
+
Short values
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
.
|
|
347
|
+
|
|
348
|
+
# 36. MULTI-LINE INPUT
|
|
349
|
+
|
|
350
|
+
Use for:
|
|
351
|
+
|
|
352
|
+
```text
|
|
353
|
+
Notes
|
|
354
|
+
Messages
|
|
355
|
+
Descriptions
|
|
356
|
+
Long-form content
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
.
|
|
360
|
+
|
|
361
|
+
# 37. TEXT AREA
|
|
362
|
+
|
|
363
|
+
Multi-line inputs should provide enough initial space to communicate that
|
|
364
|
+
longer content is supported.
|
|
365
|
+
|
|
366
|
+
# 38. AUTO-GROW
|
|
367
|
+
|
|
368
|
+
Auto-growing text areas can be useful for messages and notes, but should have a
|
|
369
|
+
reasonable maximum height before becoming scrollable.
|
|
370
|
+
|
|
371
|
+
# 39. CHARACTER COUNTERS
|
|
372
|
+
|
|
373
|
+
Use character counters when a limit materially affects the user.
|
|
374
|
+
|
|
375
|
+
# 40. CHARACTER LIMITS
|
|
376
|
+
|
|
377
|
+
Avoid arbitrary limits when the underlying system does not require them.
|
|
378
|
+
|
|
379
|
+
# 41. INPUT MASKING
|
|
380
|
+
|
|
381
|
+
Use masks only when they genuinely improve data entry.
|
|
382
|
+
|
|
383
|
+
Example:
|
|
384
|
+
|
|
385
|
+
```text
|
|
386
|
+
Phone number
|
|
387
|
+
Date
|
|
388
|
+
Card number
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
.
|
|
392
|
+
|
|
393
|
+
# 42. MASKING PROBLEM
|
|
394
|
+
|
|
395
|
+
Overly aggressive masks can make:
|
|
396
|
+
|
|
397
|
+
```text
|
|
398
|
+
Paste
|
|
399
|
+
Editing
|
|
400
|
+
Selection
|
|
401
|
+
Accessibility
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
more difficult.
|
|
405
|
+
|
|
406
|
+
# 43. FORMATTING
|
|
407
|
+
|
|
408
|
+
Format values after input when possible rather than making typing difficult.
|
|
409
|
+
|
|
410
|
+
# 44. EMAIL INPUT
|
|
411
|
+
|
|
412
|
+
Email fields should:
|
|
413
|
+
|
|
414
|
+
```text
|
|
415
|
+
Use email keyboard
|
|
416
|
+
Accept common valid formats
|
|
417
|
+
Avoid unnecessary case transformations
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
.
|
|
421
|
+
|
|
422
|
+
# 45. PASSWORD INPUT
|
|
423
|
+
|
|
424
|
+
Password fields should communicate:
|
|
425
|
+
|
|
426
|
+
```text
|
|
427
|
+
Secure input
|
|
428
|
+
Visibility state
|
|
429
|
+
Requirements
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
without creating unnecessary friction.
|
|
433
|
+
|
|
434
|
+
# 46. PASSWORD VISIBILITY
|
|
435
|
+
|
|
436
|
+
Allow users to reveal passwords when practical.
|
|
437
|
+
|
|
438
|
+
# 47. PASSWORD RULES
|
|
439
|
+
|
|
440
|
+
Show requirements before submission when they materially affect success.
|
|
441
|
+
|
|
442
|
+
# 48. VALIDATION
|
|
443
|
+
|
|
444
|
+
Validation should prevent avoidable mistakes without punishing users.
|
|
445
|
+
|
|
446
|
+
# 49. VALIDATE TOO EARLY
|
|
447
|
+
|
|
448
|
+
Do not show an error before the user has had a reasonable chance to complete
|
|
449
|
+
the field.
|
|
450
|
+
|
|
451
|
+
# 50. VALIDATE TOO LATE
|
|
452
|
+
|
|
453
|
+
Do not wait until the entire form is submitted if a mistake can be clearly
|
|
454
|
+
identified earlier.
|
|
455
|
+
|
|
456
|
+
# 51. INLINE VALIDATION
|
|
457
|
+
|
|
458
|
+
Useful for:
|
|
459
|
+
|
|
460
|
+
```text
|
|
461
|
+
Email format
|
|
462
|
+
Password requirements
|
|
463
|
+
Username availability
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
when feedback can be immediate and stable.
|
|
467
|
+
|
|
468
|
+
# 52. SUBMISSION VALIDATION
|
|
469
|
+
|
|
470
|
+
Final validation must still occur at submission because data may change or
|
|
471
|
+
server-side constraints may exist.
|
|
472
|
+
|
|
473
|
+
# 53. CLIENT + SERVER VALIDATION
|
|
474
|
+
|
|
475
|
+
Client validation improves UX.
|
|
476
|
+
|
|
477
|
+
Server validation remains authoritative.
|
|
478
|
+
|
|
479
|
+
# 54. ERROR MESSAGE
|
|
480
|
+
|
|
481
|
+
Good errors explain:
|
|
482
|
+
|
|
483
|
+
```text
|
|
484
|
+
What is wrong
|
|
485
|
+
How to fix it
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
.
|
|
489
|
+
|
|
490
|
+
# 55. BAD ERROR
|
|
491
|
+
|
|
492
|
+
Avoid:
|
|
493
|
+
|
|
494
|
+
```text
|
|
495
|
+
Invalid input
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
when a more actionable explanation is possible.
|
|
499
|
+
|
|
500
|
+
# 56. GOOD ERROR
|
|
501
|
+
|
|
502
|
+
Prefer:
|
|
503
|
+
|
|
504
|
+
```text
|
|
505
|
+
Enter a valid email address.
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
.
|
|
509
|
+
|
|
510
|
+
# 57. ERROR LOCATION
|
|
511
|
+
|
|
512
|
+
Place the error close to the affected field.
|
|
513
|
+
|
|
514
|
+
# 58. ERROR SUMMARY
|
|
515
|
+
|
|
516
|
+
For long forms, a summary may also be useful.
|
|
517
|
+
|
|
518
|
+
It should allow users to navigate to affected fields where possible.
|
|
519
|
+
|
|
520
|
+
# 59. ERROR COLOR
|
|
521
|
+
|
|
522
|
+
Do not rely on red alone.
|
|
523
|
+
|
|
524
|
+
Use:
|
|
525
|
+
|
|
526
|
+
```text
|
|
527
|
+
Icon
|
|
528
|
+
Text
|
|
529
|
+
Semantic state
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
as supporting signals.
|
|
533
|
+
|
|
534
|
+
# 60. ERROR PRESERVATION
|
|
535
|
+
|
|
536
|
+
Never erase valid user-entered information merely because another field failed.
|
|
537
|
+
|
|
538
|
+
# 61. SUBMISSION FAILURE
|
|
539
|
+
|
|
540
|
+
If server submission fails:
|
|
541
|
+
|
|
542
|
+
```text
|
|
543
|
+
Preserve form
|
|
544
|
+
Explain failure
|
|
545
|
+
Offer recovery
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
.
|
|
549
|
+
|
|
550
|
+
# 62. NETWORK FAILURE
|
|
551
|
+
|
|
552
|
+
Network errors should not turn a completed form into an empty form.
|
|
553
|
+
|
|
554
|
+
# 63. RETRY
|
|
555
|
+
|
|
556
|
+
Provide retry when the operation can safely be repeated.
|
|
557
|
+
|
|
558
|
+
# 64. DUPLICATE SUBMISSION
|
|
559
|
+
|
|
560
|
+
Disable or protect against accidental repeated submissions when the operation
|
|
561
|
+
is not idempotent.
|
|
562
|
+
|
|
563
|
+
# 65. SUBMIT STATE
|
|
564
|
+
|
|
565
|
+
A submitting button should communicate:
|
|
566
|
+
|
|
567
|
+
```text
|
|
568
|
+
Processing
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
without making the user wonder whether the tap worked.
|
|
572
|
+
|
|
573
|
+
# 66. BUTTON LABEL
|
|
574
|
+
|
|
575
|
+
Prefer action-specific labels:
|
|
576
|
+
|
|
577
|
+
```text
|
|
578
|
+
Create account
|
|
579
|
+
Save changes
|
|
580
|
+
Send message
|
|
581
|
+
Pay now
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
over:
|
|
585
|
+
|
|
586
|
+
```text
|
|
587
|
+
Submit
|
|
588
|
+
```
|
|
589
|
+
|
|
590
|
+
when context allows.
|
|
591
|
+
|
|
592
|
+
# 67. DISABLED SUBMIT
|
|
593
|
+
|
|
594
|
+
A disabled primary action should not leave users guessing why it is disabled.
|
|
595
|
+
|
|
596
|
+
# 68. EARLY ENABLEMENT
|
|
597
|
+
|
|
598
|
+
When practical, allow the user to attempt submission and provide actionable
|
|
599
|
+
validation rather than disabling everything based on hidden conditions.
|
|
600
|
+
|
|
601
|
+
# 69. DATA LOSS
|
|
602
|
+
|
|
603
|
+
Forms must protect against accidental data loss.
|
|
604
|
+
|
|
605
|
+
# 70. UNSAVED CHANGES
|
|
606
|
+
|
|
607
|
+
If the user tries to leave with meaningful unsaved work, consider a clear
|
|
608
|
+
confirmation or recovery mechanism.
|
|
609
|
+
|
|
610
|
+
# 71. AUTOSAVE
|
|
611
|
+
|
|
612
|
+
Autosave is valuable for:
|
|
613
|
+
|
|
614
|
+
```text
|
|
615
|
+
Notes
|
|
616
|
+
Documents
|
|
617
|
+
Long forms
|
|
618
|
+
Drafts
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
when appropriate.
|
|
622
|
+
|
|
623
|
+
# 72. AUTOSAVE FEEDBACK
|
|
624
|
+
|
|
625
|
+
Users should know when changes are saved.
|
|
626
|
+
|
|
627
|
+
Example:
|
|
628
|
+
|
|
629
|
+
```text
|
|
630
|
+
Saving...
|
|
631
|
+
Saved
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
without excessive interruption.
|
|
635
|
+
|
|
636
|
+
# 73. DRAFT RECOVERY
|
|
637
|
+
|
|
638
|
+
If a process fails, recover the user's previous input when possible.
|
|
639
|
+
|
|
640
|
+
# 74. COPY / PASTE
|
|
641
|
+
|
|
642
|
+
Do not unnecessarily block paste.
|
|
643
|
+
|
|
644
|
+
Pasting often improves accessibility and speed.
|
|
645
|
+
|
|
646
|
+
# 75. TEXT SELECTION
|
|
647
|
+
|
|
648
|
+
Do not interfere with normal selection behavior unless there is a strong
|
|
649
|
+
product requirement.
|
|
650
|
+
|
|
651
|
+
# 76. AUTOCORRECT
|
|
652
|
+
|
|
653
|
+
Do not disable autocorrection globally without a reason.
|
|
654
|
+
|
|
655
|
+
# 77. AUTOCAPITALIZATION
|
|
656
|
+
|
|
657
|
+
Configure based on the expected content.
|
|
658
|
+
|
|
659
|
+
Examples:
|
|
660
|
+
|
|
661
|
+
```text
|
|
662
|
+
Names → normal capitalization
|
|
663
|
+
Email → usually no auto-capitalization
|
|
664
|
+
Codes → context-dependent
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
.
|
|
668
|
+
|
|
669
|
+
# 78. SPELL CHECKING
|
|
670
|
+
|
|
671
|
+
Use appropriate platform text behavior unless the content is code, identifiers,
|
|
672
|
+
or another domain where spell checking is harmful.
|
|
673
|
+
|
|
674
|
+
# 79. SECURE INPUT
|
|
675
|
+
|
|
676
|
+
Sensitive information should use secure input mechanisms.
|
|
677
|
+
|
|
678
|
+
# 80. DATA PRIVACY
|
|
679
|
+
|
|
680
|
+
Do not collect sensitive information merely because the form can.
|
|
681
|
+
|
|
682
|
+
# 81. SENSITIVE DATA
|
|
683
|
+
|
|
684
|
+
Avoid displaying sensitive values unnecessarily.
|
|
685
|
+
|
|
686
|
+
# 82. AUTOFILL
|
|
687
|
+
|
|
688
|
+
Support platform autofill mechanisms where appropriate.
|
|
689
|
+
|
|
690
|
+
# 83. AUTOFILL
|
|
691
|
+
|
|
692
|
+
Autofill reduces:
|
|
693
|
+
|
|
694
|
+
```text
|
|
695
|
+
Typing
|
|
696
|
+
Errors
|
|
697
|
+
Time
|
|
698
|
+
```
|
|
699
|
+
|
|
700
|
+
.
|
|
701
|
+
|
|
702
|
+
# 84. AUTOFILL DESIGN
|
|
703
|
+
|
|
704
|
+
Do not design forms in ways that prevent legitimate autofill.
|
|
705
|
+
|
|
706
|
+
# 85. CONTACT INFORMATION
|
|
707
|
+
|
|
708
|
+
Where appropriate, allow users to select existing information instead of
|
|
709
|
+
manually entering it.
|
|
710
|
+
|
|
711
|
+
# 86. PICKERS
|
|
712
|
+
|
|
713
|
+
Use a picker when the user is choosing from a known set.
|
|
714
|
+
|
|
715
|
+
# 87. PICKER VS TEXT FIELD
|
|
716
|
+
|
|
717
|
+
Use:
|
|
718
|
+
|
|
719
|
+
```text
|
|
720
|
+
Known finite choices → Picker
|
|
721
|
+
Unknown/free value → Text input
|
|
722
|
+
```
|
|
723
|
+
|
|
724
|
+
.
|
|
725
|
+
|
|
726
|
+
# 88. SEGMENTED CONTROL
|
|
727
|
+
|
|
728
|
+
Use segmented controls for a small number of mutually exclusive options where
|
|
729
|
+
the choices should remain visible.
|
|
730
|
+
|
|
731
|
+
# 89. MENU
|
|
732
|
+
|
|
733
|
+
Use menus when there are several actions or selections but constant visibility
|
|
734
|
+
is unnecessary.
|
|
735
|
+
|
|
736
|
+
# 90. RADIO-LIKE SELECTION
|
|
737
|
+
|
|
738
|
+
For a small group of mutually exclusive options, clearly expose the selected
|
|
739
|
+
state.
|
|
740
|
+
|
|
741
|
+
# 91. CHECKBOX-LIKE SELECTION
|
|
742
|
+
|
|
743
|
+
Use multi-select semantics when multiple choices are allowed.
|
|
744
|
+
|
|
745
|
+
# 92. SWITCH
|
|
746
|
+
|
|
747
|
+
Use switches for immediate on/off settings.
|
|
748
|
+
|
|
749
|
+
# 93. STEPPER
|
|
750
|
+
|
|
751
|
+
Use steppers when users adjust a numeric value incrementally.
|
|
752
|
+
|
|
753
|
+
# 94. SLIDER
|
|
754
|
+
|
|
755
|
+
Use sliders for continuous or approximate ranges.
|
|
756
|
+
|
|
757
|
+
# 95. SLIDER LABEL
|
|
758
|
+
|
|
759
|
+
A slider should expose its current value clearly.
|
|
760
|
+
|
|
761
|
+
# 96. DATE INPUT
|
|
762
|
+
|
|
763
|
+
Use native date selection patterns when the user is choosing a calendar date.
|
|
764
|
+
|
|
765
|
+
# 97. TIME INPUT
|
|
766
|
+
|
|
767
|
+
Use appropriate time selection controls rather than forcing manual formatting
|
|
768
|
+
when practical.
|
|
769
|
+
|
|
770
|
+
# 98. DATE + TIME
|
|
771
|
+
|
|
772
|
+
When both are needed, communicate whether the values are:
|
|
773
|
+
|
|
774
|
+
```text
|
|
775
|
+
Local
|
|
776
|
+
Remote
|
|
777
|
+
Timezone-dependent
|
|
778
|
+
```
|
|
779
|
+
|
|
780
|
+
when that distinction matters.
|
|
781
|
+
|
|
782
|
+
# 99. TIME ZONES
|
|
783
|
+
|
|
784
|
+
Never silently assume a timezone when it materially changes the meaning of
|
|
785
|
+
user data.
|
|
786
|
+
|
|
787
|
+
# 100. NUMERIC INPUT
|
|
788
|
+
|
|
789
|
+
Use numeric keyboards for numeric fields, but do not assume the numeric keyboard
|
|
790
|
+
contains every character your validation requires.
|
|
791
|
+
|
|
792
|
+
# 101. DECIMAL INPUT
|
|
793
|
+
|
|
794
|
+
If decimal values are expected, ensure the chosen input method supports the
|
|
795
|
+
needed decimal representation.
|
|
796
|
+
|
|
797
|
+
# 102. CURRENCY
|
|
798
|
+
|
|
799
|
+
Do not make users manually enter currency symbols when the system can infer the
|
|
800
|
+
currency safely.
|
|
801
|
+
|
|
802
|
+
# 103. NUMBER FORMATTING
|
|
803
|
+
|
|
804
|
+
Use appropriate grouping and decimal formatting after entry where useful.
|
|
805
|
+
|
|
806
|
+
# 104. PHONE NUMBERS
|
|
807
|
+
|
|
808
|
+
Phone numbers are regional.
|
|
809
|
+
|
|
810
|
+
Do not assume one fixed formatting rule for every country.
|
|
811
|
+
|
|
812
|
+
# 105. INTERNATIONALIZATION
|
|
813
|
+
|
|
814
|
+
Forms must support:
|
|
815
|
+
|
|
816
|
+
```text
|
|
817
|
+
Long names
|
|
818
|
+
Different date formats
|
|
819
|
+
Different number formats
|
|
820
|
+
Different phone formats
|
|
821
|
+
Different currencies
|
|
822
|
+
Different scripts
|
|
823
|
+
```
|
|
824
|
+
|
|
825
|
+
.
|
|
826
|
+
|
|
827
|
+
# 106. TEXT EXPANSION
|
|
828
|
+
|
|
829
|
+
Labels and errors may become much longer after localization.
|
|
830
|
+
|
|
831
|
+
# 107. RTL
|
|
832
|
+
|
|
833
|
+
Support right-to-left layouts where the application targets RTL languages.
|
|
834
|
+
|
|
835
|
+
# 108. RTL ICONS
|
|
836
|
+
|
|
837
|
+
Directional icons may need semantic mirroring.
|
|
838
|
+
|
|
839
|
+
Not every icon should be mirrored.
|
|
840
|
+
|
|
841
|
+
# 109. FORM DENSITY
|
|
842
|
+
|
|
843
|
+
Do not compress forms merely to fit everything on one screen.
|
|
844
|
+
|
|
845
|
+
# 110. WHITESPACE
|
|
846
|
+
|
|
847
|
+
Adequate spacing helps users associate:
|
|
848
|
+
|
|
849
|
+
```text
|
|
850
|
+
Label
|
|
851
|
+
Input
|
|
852
|
+
Helper
|
|
853
|
+
Error
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
with the correct field.
|
|
857
|
+
|
|
858
|
+
# 111. FIELD HEIGHT
|
|
859
|
+
|
|
860
|
+
Fields should provide sufficient space for:
|
|
861
|
+
|
|
862
|
+
```text
|
|
863
|
+
Text
|
|
864
|
+
Touch
|
|
865
|
+
Focus indication
|
|
866
|
+
Error state
|
|
867
|
+
```
|
|
868
|
+
|
|
869
|
+
.
|
|
870
|
+
|
|
871
|
+
# 112. BORDER VS CONTAINER
|
|
872
|
+
|
|
873
|
+
A field does not always need a heavy border.
|
|
874
|
+
|
|
875
|
+
Hierarchy can also come from:
|
|
876
|
+
|
|
877
|
+
```text
|
|
878
|
+
Background
|
|
879
|
+
Underline
|
|
880
|
+
Spacing
|
|
881
|
+
Typography
|
|
882
|
+
```
|
|
883
|
+
|
|
884
|
+
depending on the design language.
|
|
885
|
+
|
|
886
|
+
# 113. FOCUS STATE
|
|
887
|
+
|
|
888
|
+
Focused fields need a clear visual state.
|
|
889
|
+
|
|
890
|
+
# 114. FOCUS CONTRAST
|
|
891
|
+
|
|
892
|
+
Focus indicators must remain visible in both light and dark appearances.
|
|
893
|
+
|
|
894
|
+
# 115. ERROR STATE
|
|
895
|
+
|
|
896
|
+
Error styling should not destroy the field's readability.
|
|
897
|
+
|
|
898
|
+
# 116. SUCCESS STATE
|
|
899
|
+
|
|
900
|
+
Use success indicators only when they communicate useful information.
|
|
901
|
+
|
|
902
|
+
# 117. VALID STATE
|
|
903
|
+
|
|
904
|
+
Do not add green checkmarks to every field merely because the value is valid.
|
|
905
|
+
|
|
906
|
+
# 118. FORM ANIMATION
|
|
907
|
+
|
|
908
|
+
Animations should not interfere with typing or focus.
|
|
909
|
+
|
|
910
|
+
# 119. ERROR EXPANSION
|
|
911
|
+
|
|
912
|
+
If an error message appears and changes layout, animate only when it improves
|
|
913
|
+
understanding and does not disrupt typing.
|
|
914
|
+
|
|
915
|
+
# 120. KEYBOARD TRANSITIONS
|
|
916
|
+
|
|
917
|
+
Keyboard appearance should not cause abrupt content jumps.
|
|
918
|
+
|
|
919
|
+
# 121. FORM SUBMISSION
|
|
920
|
+
|
|
921
|
+
The primary action should remain easy to find.
|
|
922
|
+
|
|
923
|
+
# 122. FIXED ACTIONS
|
|
924
|
+
|
|
925
|
+
A fixed bottom action can be useful for long forms, but must not cover the
|
|
926
|
+
keyboard or content.
|
|
927
|
+
|
|
928
|
+
# 123. BOTTOM ACTIONS
|
|
929
|
+
|
|
930
|
+
Ensure fixed actions respect:
|
|
931
|
+
|
|
932
|
+
```text
|
|
933
|
+
Safe area
|
|
934
|
+
Keyboard
|
|
935
|
+
Accessibility text size
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
.
|
|
939
|
+
|
|
940
|
+
# 124. FORM NAVIGATION
|
|
941
|
+
|
|
942
|
+
Back navigation should preserve entered information unless the user explicitly
|
|
943
|
+
chooses to discard it.
|
|
944
|
+
|
|
945
|
+
# 125. CANCEL
|
|
946
|
+
|
|
947
|
+
Cancel should communicate whether entered data will be discarded.
|
|
948
|
+
|
|
949
|
+
# 126. DESTRUCTIVE CANCEL
|
|
950
|
+
|
|
951
|
+
If canceling causes meaningful data loss, make the consequence explicit.
|
|
952
|
+
|
|
953
|
+
# 127. CONFIRMATION
|
|
954
|
+
|
|
955
|
+
Confirm destructive form exits only when the risk justifies the interruption.
|
|
956
|
+
|
|
957
|
+
# 128. MULTI-FIELD WORKFLOWS
|
|
958
|
+
|
|
959
|
+
A good workflow supports:
|
|
960
|
+
|
|
961
|
+
```text
|
|
962
|
+
Next
|
|
963
|
+
Previous
|
|
964
|
+
Review
|
|
965
|
+
Submit
|
|
966
|
+
```
|
|
967
|
+
|
|
968
|
+
where appropriate.
|
|
969
|
+
|
|
970
|
+
# 129. REVIEW STEP
|
|
971
|
+
|
|
972
|
+
For expensive or consequential operations, provide a review stage before final
|
|
973
|
+
confirmation.
|
|
974
|
+
|
|
975
|
+
# 130. PAYMENT FORMS
|
|
976
|
+
|
|
977
|
+
Payment flows should prioritize:
|
|
978
|
+
|
|
979
|
+
```text
|
|
980
|
+
Accuracy
|
|
981
|
+
Trust
|
|
982
|
+
Security
|
|
983
|
+
Clear totals
|
|
984
|
+
Clear currency
|
|
985
|
+
```
|
|
986
|
+
|
|
987
|
+
.
|
|
988
|
+
|
|
989
|
+
# 131. FORM TRUST
|
|
990
|
+
|
|
991
|
+
Avoid suspicious visual patterns such as hidden fees or ambiguous primary
|
|
992
|
+
actions.
|
|
993
|
+
|
|
994
|
+
# 132. AI-ASSISTED INPUT
|
|
995
|
+
|
|
996
|
+
AI can reduce data entry through:
|
|
997
|
+
|
|
998
|
+
```text
|
|
999
|
+
Suggestions
|
|
1000
|
+
Autofill
|
|
1001
|
+
Extraction
|
|
1002
|
+
Formatting
|
|
1003
|
+
Summarization
|
|
1004
|
+
```
|
|
1005
|
+
|
|
1006
|
+
but users should remain in control.
|
|
1007
|
+
|
|
1008
|
+
# 133. AI SUGGESTIONS
|
|
1009
|
+
|
|
1010
|
+
Suggestions should be clearly distinguishable from user-entered values.
|
|
1011
|
+
|
|
1012
|
+
# 134. AI EXTRACTION
|
|
1013
|
+
|
|
1014
|
+
If AI extracts information from an image or document:
|
|
1015
|
+
|
|
1016
|
+
```text
|
|
1017
|
+
Extract
|
|
1018
|
+
↓
|
|
1019
|
+
Show result
|
|
1020
|
+
↓
|
|
1021
|
+
Allow correction
|
|
1022
|
+
↓
|
|
1023
|
+
Confirm
|
|
1024
|
+
```
|
|
1025
|
+
|
|
1026
|
+
Do not silently commit uncertain values.
|
|
1027
|
+
|
|
1028
|
+
# 135. AI FORM COMPLETION
|
|
1029
|
+
|
|
1030
|
+
Never overwrite user-entered information without clear reason and recoverability.
|
|
1031
|
+
|
|
1032
|
+
# 136. CONFIDENCE
|
|
1033
|
+
|
|
1034
|
+
Low-confidence AI-generated values should be treated as suggestions, not facts.
|
|
1035
|
+
|
|
1036
|
+
# 137. SEARCH
|
|
1037
|
+
|
|
1038
|
+
Search inputs should provide:
|
|
1039
|
+
|
|
1040
|
+
```text
|
|
1041
|
+
Clear purpose
|
|
1042
|
+
Fast activation
|
|
1043
|
+
Useful suggestions
|
|
1044
|
+
Clear empty state
|
|
1045
|
+
```
|
|
1046
|
+
|
|
1047
|
+
.
|
|
1048
|
+
|
|
1049
|
+
# 138. SEARCH SUBMISSION
|
|
1050
|
+
|
|
1051
|
+
If results update automatically, do not require an unnecessary Search button.
|
|
1052
|
+
|
|
1053
|
+
# 139. SEARCH CLEAR
|
|
1054
|
+
|
|
1055
|
+
Provide an easy way to clear the current query.
|
|
1056
|
+
|
|
1057
|
+
# 140. SEARCH HISTORY
|
|
1058
|
+
|
|
1059
|
+
Search history should be useful but should not expose private information
|
|
1060
|
+
without appropriate controls.
|
|
1061
|
+
|
|
1062
|
+
# 141. FILTERS
|
|
1063
|
+
|
|
1064
|
+
Filters should communicate:
|
|
1065
|
+
|
|
1066
|
+
```text
|
|
1067
|
+
Available options
|
|
1068
|
+
Selected options
|
|
1069
|
+
Result impact
|
|
1070
|
+
Clear/reset capability
|
|
1071
|
+
```
|
|
1072
|
+
|
|
1073
|
+
.
|
|
1074
|
+
|
|
1075
|
+
# 142. FILTER STATE
|
|
1076
|
+
|
|
1077
|
+
Users should be able to understand which filters are active without reopening
|
|
1078
|
+
the filter interface.
|
|
1079
|
+
|
|
1080
|
+
# 143. SORTING
|
|
1081
|
+
|
|
1082
|
+
Sorting controls should clearly communicate the current sort order.
|
|
1083
|
+
|
|
1084
|
+
# 144. FORM STATE MODEL
|
|
1085
|
+
|
|
1086
|
+
Model form state explicitly:
|
|
1087
|
+
|
|
1088
|
+
```text
|
|
1089
|
+
idle
|
|
1090
|
+
editing
|
|
1091
|
+
valid
|
|
1092
|
+
invalid
|
|
1093
|
+
saving
|
|
1094
|
+
saved
|
|
1095
|
+
submitting
|
|
1096
|
+
success
|
|
1097
|
+
error
|
|
1098
|
+
```
|
|
1099
|
+
|
|
1100
|
+
Do not rely solely on visual state.
|
|
1101
|
+
|
|
1102
|
+
# 145. FIELD STATE MODEL
|
|
1103
|
+
|
|
1104
|
+
Each field may have:
|
|
1105
|
+
|
|
1106
|
+
```text
|
|
1107
|
+
empty
|
|
1108
|
+
focused
|
|
1109
|
+
filled
|
|
1110
|
+
valid
|
|
1111
|
+
invalid
|
|
1112
|
+
disabled
|
|
1113
|
+
readonly
|
|
1114
|
+
```
|
|
1115
|
+
|
|
1116
|
+
.
|
|
1117
|
+
|
|
1118
|
+
# 146. FORM RECOVERY MODEL
|
|
1119
|
+
|
|
1120
|
+
```text
|
|
1121
|
+
Input
|
|
1122
|
+
↓
|
|
1123
|
+
Local state
|
|
1124
|
+
↓
|
|
1125
|
+
Validation
|
|
1126
|
+
↓
|
|
1127
|
+
Persistence/draft
|
|
1128
|
+
↓
|
|
1129
|
+
Submission
|
|
1130
|
+
↓
|
|
1131
|
+
Server result
|
|
1132
|
+
```
|
|
1133
|
+
|
|
1134
|
+
Each stage should have a recoverable failure path.
|
|
1135
|
+
|
|
1136
|
+
# 147. AGENT FORM CHECK
|
|
1137
|
+
|
|
1138
|
+
Before designing a form, ask:
|
|
1139
|
+
|
|
1140
|
+
```text
|
|
1141
|
+
What information is actually required?
|
|
1142
|
+
Can any field be eliminated?
|
|
1143
|
+
Can any field be inferred?
|
|
1144
|
+
Can autofill help?
|
|
1145
|
+
Can the user select instead of typing?
|
|
1146
|
+
```
|
|
1147
|
+
|
|
1148
|
+
.
|
|
1149
|
+
|
|
1150
|
+
# 148. AGENT INPUT CHECK
|
|
1151
|
+
|
|
1152
|
+
For every field:
|
|
1153
|
+
|
|
1154
|
+
```text
|
|
1155
|
+
What is the expected value?
|
|
1156
|
+
What keyboard is appropriate?
|
|
1157
|
+
What input type is appropriate?
|
|
1158
|
+
Can the value be pasted?
|
|
1159
|
+
Can it be autofilled?
|
|
1160
|
+
What happens when it is invalid?
|
|
1161
|
+
```
|
|
1162
|
+
|
|
1163
|
+
.
|
|
1164
|
+
|
|
1165
|
+
# 149. AGENT VALIDATION CHECK
|
|
1166
|
+
|
|
1167
|
+
Ask:
|
|
1168
|
+
|
|
1169
|
+
```text
|
|
1170
|
+
When should validation happen?
|
|
1171
|
+
Where should the error appear?
|
|
1172
|
+
Can the user recover?
|
|
1173
|
+
Will their input be preserved?
|
|
1174
|
+
```
|
|
1175
|
+
|
|
1176
|
+
.
|
|
1177
|
+
|
|
1178
|
+
# 150. AGENT KEYBOARD CHECK
|
|
1179
|
+
|
|
1180
|
+
Ask:
|
|
1181
|
+
|
|
1182
|
+
```text
|
|
1183
|
+
Does the keyboard obscure content?
|
|
1184
|
+
Can users move to the next field?
|
|
1185
|
+
Is the return key meaningful?
|
|
1186
|
+
Can the keyboard be dismissed?
|
|
1187
|
+
```
|
|
1188
|
+
|
|
1189
|
+
.
|
|
1190
|
+
|
|
1191
|
+
# 151. AGENT ACCESSIBILITY CHECK
|
|
1192
|
+
|
|
1193
|
+
Ask:
|
|
1194
|
+
|
|
1195
|
+
```text
|
|
1196
|
+
Can a screen reader identify every field?
|
|
1197
|
+
Are labels persistent?
|
|
1198
|
+
Are errors announced appropriately?
|
|
1199
|
+
Can text scale?
|
|
1200
|
+
Can controls be reached without precision gestures?
|
|
1201
|
+
```
|
|
1202
|
+
|
|
1203
|
+
.
|
|
1204
|
+
|
|
1205
|
+
# 152. AGENT DATA-SAFETY CHECK
|
|
1206
|
+
|
|
1207
|
+
Ask:
|
|
1208
|
+
|
|
1209
|
+
```text
|
|
1210
|
+
Could the user lose work?
|
|
1211
|
+
Is sensitive data exposed?
|
|
1212
|
+
Can the operation be retried?
|
|
1213
|
+
What happens offline?
|
|
1214
|
+
```
|
|
1215
|
+
|
|
1216
|
+
.
|
|
1217
|
+
|
|
1218
|
+
# 153. FORM REVIEW CHECKLIST
|
|
1219
|
+
|
|
1220
|
+
```text
|
|
1221
|
+
[ ] Only necessary fields are requested
|
|
1222
|
+
[ ] Labels are persistent
|
|
1223
|
+
[ ] Placeholders are supplementary
|
|
1224
|
+
[ ] Fields are logically grouped
|
|
1225
|
+
[ ] Input types are appropriate
|
|
1226
|
+
[ ] Keyboards match input
|
|
1227
|
+
[ ] Focus behavior is correct
|
|
1228
|
+
[ ] Keyboard does not obscure fields
|
|
1229
|
+
[ ] Autofill is supported where appropriate
|
|
1230
|
+
[ ] Paste is supported
|
|
1231
|
+
[ ] Validation is understandable
|
|
1232
|
+
[ ] Errors appear near fields
|
|
1233
|
+
[ ] Input is preserved after errors
|
|
1234
|
+
[ ] Submit state is clear
|
|
1235
|
+
[ ] Network failures are recoverable
|
|
1236
|
+
[ ] Unsaved work is protected
|
|
1237
|
+
[ ] Accessibility semantics are correct
|
|
1238
|
+
[ ] Large text works
|
|
1239
|
+
[ ] Localization works
|
|
1240
|
+
[ ] RTL is considered where relevant
|
|
1241
|
+
```
|
|
1242
|
+
|
|
1243
|
+
.
|
|
1244
|
+
|
|
1245
|
+
# 154. QUALITY SCORE
|
|
1246
|
+
|
|
1247
|
+
```text id="xxw5ea"
|
|
1248
|
+
Clarity 15
|
|
1249
|
+
Input efficiency 15
|
|
1250
|
+
Validation 15
|
|
1251
|
+
Error recovery 10
|
|
1252
|
+
Accessibility 15
|
|
1253
|
+
Keyboard/input behavior 10
|
|
1254
|
+
Data preservation 10
|
|
1255
|
+
Localization 5
|
|
1256
|
+
Visual hierarchy 5
|
|
1257
|
+
──────────────────────────────
|
|
1258
|
+
Total 100
|
|
1259
|
+
```
|
|
1260
|
+
|
|
1261
|
+
Interpretation:
|
|
1262
|
+
|
|
1263
|
+
```text
|
|
1264
|
+
95–100 Exceptional
|
|
1265
|
+
90–94 Excellent
|
|
1266
|
+
80–89 Strong
|
|
1267
|
+
70–79 Needs refinement
|
|
1268
|
+
60–69 Weak
|
|
1269
|
+
<60 Redesign
|
|
1270
|
+
```
|
|
1271
|
+
|
|
1272
|
+
# 155. FINAL PRINCIPLE
|
|
1273
|
+
|
|
1274
|
+
A form should feel less like:
|
|
1275
|
+
|
|
1276
|
+
```text
|
|
1277
|
+
"Fill out this database."
|
|
1278
|
+
```
|
|
1279
|
+
|
|
1280
|
+
and more like:
|
|
1281
|
+
|
|
1282
|
+
```text
|
|
1283
|
+
"Tell me what I need, one understandable step at a time."
|
|
1284
|
+
```
|
|
1285
|
+
|
|
1286
|
+
# 156. FINAL AGENT DIRECTIVE
|
|
1287
|
+
|
|
1288
|
+
Before shipping a form, verify:
|
|
1289
|
+
|
|
1290
|
+
```text
|
|
1291
|
+
Minimum information
|
|
1292
|
+
+
|
|
1293
|
+
Best input method
|
|
1294
|
+
+
|
|
1295
|
+
Clear labels
|
|
1296
|
+
+
|
|
1297
|
+
Immediate but reasonable validation
|
|
1298
|
+
+
|
|
1299
|
+
Error recovery
|
|
1300
|
+
+
|
|
1301
|
+
Keyboard awareness
|
|
1302
|
+
+
|
|
1303
|
+
Accessibility
|
|
1304
|
+
+
|
|
1305
|
+
Data preservation
|
|
1306
|
+
```
|
|
1307
|
+
|
|
1308
|
+
The best form is often the form that **asks the user to do the least work**.
|