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,705 @@
|
|
|
1
|
+
## File 68 — Forms, Input, Data Entry & Validation Intelligence
|
|
2
|
+
|
|
3
|
+
File 67 taught the agent how users **move through the product**.
|
|
4
|
+
|
|
5
|
+
File 68 teaches it how users **provide information, manipulate data, and recover from input mistakes**.
|
|
6
|
+
|
|
7
|
+
> **A form is not a collection of fields. It is a conversation between the user and the system.**
|
|
8
|
+
|
|
9
|
+
The agent should optimize forms for **clarity, speed, accuracy, accessibility, validation, recovery, and trust**.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 1. Form architecture
|
|
14
|
+
|
|
15
|
+
Every form should answer:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
What information is required?
|
|
19
|
+
↓
|
|
20
|
+
Why is it required?
|
|
21
|
+
↓
|
|
22
|
+
What should the user enter?
|
|
23
|
+
↓
|
|
24
|
+
How should they enter it?
|
|
25
|
+
↓
|
|
26
|
+
When should it be validated?
|
|
27
|
+
↓
|
|
28
|
+
What happens after submission?
|
|
29
|
+
↓
|
|
30
|
+
How can they recover?
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Never add fields simply because the backend happens to contain them.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# 2. Required vs optional data
|
|
38
|
+
|
|
39
|
+
Explicitly classify:
|
|
40
|
+
|
|
41
|
+
```text
|
|
42
|
+
REQUIRED
|
|
43
|
+
Essential for the operation
|
|
44
|
+
|
|
45
|
+
OPTIONAL
|
|
46
|
+
Useful but not necessary
|
|
47
|
+
|
|
48
|
+
CONDITIONAL
|
|
49
|
+
Required only under certain circumstances
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Avoid excessive optional fields that increase cognitive load.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
# 3. Field selection
|
|
57
|
+
|
|
58
|
+
Choose the input control based on the data.
|
|
59
|
+
|
|
60
|
+
```text id="g6r2m8"
|
|
61
|
+
Short text
|
|
62
|
+
Long text
|
|
63
|
+
Number
|
|
64
|
+
Currency
|
|
65
|
+
Date
|
|
66
|
+
Time
|
|
67
|
+
Date + time
|
|
68
|
+
Single selection
|
|
69
|
+
Multiple selection
|
|
70
|
+
Boolean
|
|
71
|
+
File
|
|
72
|
+
Image
|
|
73
|
+
Search
|
|
74
|
+
Password
|
|
75
|
+
Code
|
|
76
|
+
Rich text
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
The control should match the user's task.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
# 4. Input type intelligence
|
|
84
|
+
|
|
85
|
+
Use platform-appropriate keyboards and controls where possible.
|
|
86
|
+
|
|
87
|
+
Examples:
|
|
88
|
+
|
|
89
|
+
```text id="x4n7q2"
|
|
90
|
+
Email
|
|
91
|
+
→ Email keyboard
|
|
92
|
+
|
|
93
|
+
Phone
|
|
94
|
+
→ Phone keyboard
|
|
95
|
+
|
|
96
|
+
Number
|
|
97
|
+
→ Numeric keyboard
|
|
98
|
+
|
|
99
|
+
URL
|
|
100
|
+
→ URL keyboard
|
|
101
|
+
|
|
102
|
+
Password
|
|
103
|
+
→ Secure input
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Reducing unnecessary typing is a major UX improvement.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
# 5. Field labeling
|
|
111
|
+
|
|
112
|
+
Important fields should have persistent labels.
|
|
113
|
+
|
|
114
|
+
Use:
|
|
115
|
+
|
|
116
|
+
```text id="p8m3v5"
|
|
117
|
+
Label
|
|
118
|
+
[ Input ]
|
|
119
|
+
Helper text
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
rather than depending entirely on placeholder text.
|
|
123
|
+
|
|
124
|
+
Placeholders should provide examples or formatting hints.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
# 6. Field grouping
|
|
129
|
+
|
|
130
|
+
Related fields should be grouped logically.
|
|
131
|
+
|
|
132
|
+
Example:
|
|
133
|
+
|
|
134
|
+
```text id="r5k9c1"
|
|
135
|
+
Personal information
|
|
136
|
+
├── Name
|
|
137
|
+
├── Email
|
|
138
|
+
└── Phone
|
|
139
|
+
|
|
140
|
+
Address
|
|
141
|
+
├── Country
|
|
142
|
+
├── City
|
|
143
|
+
└── Postal code
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
The grouping should reflect the user's mental model.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
# 7. Form sequencing
|
|
151
|
+
|
|
152
|
+
Order fields according to the natural task.
|
|
153
|
+
|
|
154
|
+
```text id="v3q8m2"
|
|
155
|
+
Context
|
|
156
|
+
↓
|
|
157
|
+
Essential information
|
|
158
|
+
↓
|
|
159
|
+
Dependent information
|
|
160
|
+
↓
|
|
161
|
+
Optional information
|
|
162
|
+
↓
|
|
163
|
+
Confirmation
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Don't force users to enter advanced information before establishing basic context.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
# 8. Progressive disclosure
|
|
171
|
+
|
|
172
|
+
For complex forms:
|
|
173
|
+
|
|
174
|
+
```text id="m7x4p9"
|
|
175
|
+
Essential fields
|
|
176
|
+
↓
|
|
177
|
+
User continues
|
|
178
|
+
↓
|
|
179
|
+
Additional fields
|
|
180
|
+
↓
|
|
181
|
+
Advanced options
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
This reduces initial cognitive load.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
# 9. Defaults
|
|
189
|
+
|
|
190
|
+
Good defaults reduce effort.
|
|
191
|
+
|
|
192
|
+
Possible defaults:
|
|
193
|
+
|
|
194
|
+
```text id="c2n8r5"
|
|
195
|
+
Current date
|
|
196
|
+
Common option
|
|
197
|
+
Previously used setting
|
|
198
|
+
Recommended value
|
|
199
|
+
Detected configuration
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
But defaults must be:
|
|
203
|
+
|
|
204
|
+
* Safe
|
|
205
|
+
* Predictable
|
|
206
|
+
* Easy to change
|
|
207
|
+
* Appropriate to context
|
|
208
|
+
|
|
209
|
+
Never silently choose a dangerous or consequential option.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
# 10. Input formatting
|
|
214
|
+
|
|
215
|
+
Formatting can reduce ambiguity.
|
|
216
|
+
|
|
217
|
+
Examples:
|
|
218
|
+
|
|
219
|
+
```text id="k5m2v7"
|
|
220
|
+
Phone number
|
|
221
|
+
Date
|
|
222
|
+
Currency
|
|
223
|
+
File size
|
|
224
|
+
Identification number
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
But avoid aggressive formatting that makes editing difficult.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
# 11. Validation timing
|
|
232
|
+
|
|
233
|
+
Validation can occur:
|
|
234
|
+
|
|
235
|
+
```text id="z8q3m6"
|
|
236
|
+
During typing
|
|
237
|
+
On blur
|
|
238
|
+
On field completion
|
|
239
|
+
On submit
|
|
240
|
+
After server response
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Use timing based on the problem.
|
|
244
|
+
|
|
245
|
+
For example:
|
|
246
|
+
|
|
247
|
+
* Password strength → during input
|
|
248
|
+
* Required field → after interaction
|
|
249
|
+
* Username availability → asynchronous validation
|
|
250
|
+
* Complete form submission → server validation
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
# 12. Inline validation
|
|
255
|
+
|
|
256
|
+
Good inline validation is:
|
|
257
|
+
|
|
258
|
+
```text id="n4v7p1"
|
|
259
|
+
Specific
|
|
260
|
+
Nearby
|
|
261
|
+
Actionable
|
|
262
|
+
Timely
|
|
263
|
+
Non-destructive
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
Example:
|
|
267
|
+
|
|
268
|
+
> Password must contain at least 8 characters.
|
|
269
|
+
|
|
270
|
+
Better than:
|
|
271
|
+
|
|
272
|
+
> Invalid password.
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
# 13. Error recovery
|
|
277
|
+
|
|
278
|
+
Every validation error should ideally provide a path forward.
|
|
279
|
+
|
|
280
|
+
```text id="x6m2r8"
|
|
281
|
+
ERROR
|
|
282
|
+
↓
|
|
283
|
+
Explain
|
|
284
|
+
↓
|
|
285
|
+
Identify field
|
|
286
|
+
↓
|
|
287
|
+
Tell user what to do
|
|
288
|
+
↓
|
|
289
|
+
Allow correction
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
Never make users guess what went wrong.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
# 14. Server-side validation
|
|
297
|
+
|
|
298
|
+
Client-side validation is not sufficient.
|
|
299
|
+
|
|
300
|
+
The agent should understand:
|
|
301
|
+
|
|
302
|
+
```text id="j3q8m5"
|
|
303
|
+
Client validation
|
|
304
|
+
+
|
|
305
|
+
Server validation
|
|
306
|
+
+
|
|
307
|
+
Error mapping
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
Server errors should be transformed into useful UI communication.
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
# 15. Async validation
|
|
315
|
+
|
|
316
|
+
For operations such as:
|
|
317
|
+
|
|
318
|
+
```text id="p7v4c2"
|
|
319
|
+
Username availability
|
|
320
|
+
Email verification
|
|
321
|
+
Promo codes
|
|
322
|
+
Address lookup
|
|
323
|
+
Remote search
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
the UI should support:
|
|
327
|
+
|
|
328
|
+
```text
|
|
329
|
+
Idle
|
|
330
|
+
Checking
|
|
331
|
+
Available
|
|
332
|
+
Unavailable
|
|
333
|
+
Error
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
Avoid creating race conditions where an older response overwrites a newer value.
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
# 16. Submission states
|
|
341
|
+
|
|
342
|
+
A form should define:
|
|
343
|
+
|
|
344
|
+
```text id="r9x3m6"
|
|
345
|
+
Ready
|
|
346
|
+
Submitting
|
|
347
|
+
Success
|
|
348
|
+
Failure
|
|
349
|
+
Retry
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
During submission:
|
|
353
|
+
|
|
354
|
+
* prevent accidental duplicate submissions
|
|
355
|
+
* communicate progress where appropriate
|
|
356
|
+
* preserve user input when possible
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
# 17. Prevent accidental data loss
|
|
361
|
+
|
|
362
|
+
Important forms should handle:
|
|
363
|
+
|
|
364
|
+
```text id="f2k7v4"
|
|
365
|
+
Back
|
|
366
|
+
Navigation
|
|
367
|
+
App interruption
|
|
368
|
+
Network failure
|
|
369
|
+
Session expiry
|
|
370
|
+
Unexpected exit
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
Where appropriate:
|
|
374
|
+
|
|
375
|
+
```text
|
|
376
|
+
Save draft
|
|
377
|
+
Autosave
|
|
378
|
+
Restore input
|
|
379
|
+
Unsaved changes warning
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
# 18. Multi-step forms
|
|
385
|
+
|
|
386
|
+
Use multi-step forms when the task naturally contains stages.
|
|
387
|
+
|
|
388
|
+
Example:
|
|
389
|
+
|
|
390
|
+
```text id="c8m5n2"
|
|
391
|
+
Information
|
|
392
|
+
↓
|
|
393
|
+
Configuration
|
|
394
|
+
↓
|
|
395
|
+
Review
|
|
396
|
+
↓
|
|
397
|
+
Confirmation
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
Each step should have:
|
|
401
|
+
|
|
402
|
+
* clear purpose
|
|
403
|
+
* progress indication
|
|
404
|
+
* valid navigation
|
|
405
|
+
* preserved data
|
|
406
|
+
* error handling
|
|
407
|
+
|
|
408
|
+
Don't split a simple form into multiple screens unnecessarily.
|
|
409
|
+
|
|
410
|
+
---
|
|
411
|
+
|
|
412
|
+
# 19. Review before commitment
|
|
413
|
+
|
|
414
|
+
For consequential operations:
|
|
415
|
+
|
|
416
|
+
```text id="v5q8x3"
|
|
417
|
+
Input
|
|
418
|
+
↓
|
|
419
|
+
Review
|
|
420
|
+
↓
|
|
421
|
+
Confirm
|
|
422
|
+
↓
|
|
423
|
+
Process
|
|
424
|
+
↓
|
|
425
|
+
Result
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
Useful for:
|
|
429
|
+
|
|
430
|
+
* payments
|
|
431
|
+
* destructive operations
|
|
432
|
+
* account changes
|
|
433
|
+
* publishing
|
|
434
|
+
* large submissions
|
|
435
|
+
|
|
436
|
+
---
|
|
437
|
+
|
|
438
|
+
# 20. Keyboard behavior
|
|
439
|
+
|
|
440
|
+
On mobile, the keyboard changes available space.
|
|
441
|
+
|
|
442
|
+
The agent should validate:
|
|
443
|
+
|
|
444
|
+
```text id="m6r2p8"
|
|
445
|
+
Focus
|
|
446
|
+
Scrolling
|
|
447
|
+
Keyboard avoidance
|
|
448
|
+
Next-field navigation
|
|
449
|
+
Submit action
|
|
450
|
+
Dismiss behavior
|
|
451
|
+
Input visibility
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
A focused field hidden behind the keyboard is a functional UX failure.
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
# 21. Accessibility
|
|
459
|
+
|
|
460
|
+
Forms must support:
|
|
461
|
+
|
|
462
|
+
```text id="q4x9c7"
|
|
463
|
+
Labels
|
|
464
|
+
Roles
|
|
465
|
+
Focus order
|
|
466
|
+
Error announcements
|
|
467
|
+
Accessible descriptions
|
|
468
|
+
Touch targets
|
|
469
|
+
Keyboard navigation
|
|
470
|
+
Screen readers
|
|
471
|
+
Dynamic text size
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
Visual labels alone aren't enough.
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
# 22. Sensitive inputs
|
|
479
|
+
|
|
480
|
+
Special handling may be required for:
|
|
481
|
+
|
|
482
|
+
```text id="t7m3v5"
|
|
483
|
+
Passwords
|
|
484
|
+
Authentication codes
|
|
485
|
+
Financial information
|
|
486
|
+
Private data
|
|
487
|
+
Security credentials
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
Consider:
|
|
491
|
+
|
|
492
|
+
* secure entry
|
|
493
|
+
* visibility toggles
|
|
494
|
+
* masking
|
|
495
|
+
* appropriate autofill
|
|
496
|
+
* clipboard behavior
|
|
497
|
+
* privacy expectations
|
|
498
|
+
|
|
499
|
+
---
|
|
500
|
+
|
|
501
|
+
# 23. Input persistence
|
|
502
|
+
|
|
503
|
+
For long forms, determine whether values should survive:
|
|
504
|
+
|
|
505
|
+
```text id="k2p8m4"
|
|
506
|
+
Validation failure
|
|
507
|
+
Navigation
|
|
508
|
+
Temporary interruption
|
|
509
|
+
App restart
|
|
510
|
+
Network failure
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
Persistence should be intentional rather than accidental.
|
|
514
|
+
|
|
515
|
+
---
|
|
516
|
+
|
|
517
|
+
# 24. Form feedback
|
|
518
|
+
|
|
519
|
+
After successful submission:
|
|
520
|
+
|
|
521
|
+
```text id="s5n7q2"
|
|
522
|
+
Confirm success
|
|
523
|
+
↓
|
|
524
|
+
Explain next state
|
|
525
|
+
↓
|
|
526
|
+
Provide next relevant action
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
Example:
|
|
530
|
+
|
|
531
|
+
```text
|
|
532
|
+
Profile updated.
|
|
533
|
+
|
|
534
|
+
Your changes are now active.
|
|
535
|
+
|
|
536
|
+
[Continue]
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
---
|
|
540
|
+
|
|
541
|
+
# 25. Dynamic forms
|
|
542
|
+
|
|
543
|
+
Forms may change based on previous answers.
|
|
544
|
+
|
|
545
|
+
Example:
|
|
546
|
+
|
|
547
|
+
```text id="x8m4v6"
|
|
548
|
+
Account type
|
|
549
|
+
↓
|
|
550
|
+
Business
|
|
551
|
+
↓
|
|
552
|
+
Business-specific fields appear
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
Dynamic fields should:
|
|
556
|
+
|
|
557
|
+
* appear predictably
|
|
558
|
+
* preserve relevant values
|
|
559
|
+
* clearly communicate why they appeared
|
|
560
|
+
* remove obsolete requirements safely
|
|
561
|
+
|
|
562
|
+
---
|
|
563
|
+
|
|
564
|
+
# 26. Dependent fields
|
|
565
|
+
|
|
566
|
+
Example:
|
|
567
|
+
|
|
568
|
+
```text id="p3q7n9"
|
|
569
|
+
Country
|
|
570
|
+
↓
|
|
571
|
+
State / region
|
|
572
|
+
↓
|
|
573
|
+
City
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
The agent should handle:
|
|
577
|
+
|
|
578
|
+
```text
|
|
579
|
+
Loading
|
|
580
|
+
Unavailable
|
|
581
|
+
Changed parent value
|
|
582
|
+
Reset dependent value
|
|
583
|
+
Validation
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
---
|
|
587
|
+
|
|
588
|
+
# 27. Forms with large datasets
|
|
589
|
+
|
|
590
|
+
For huge option sets, avoid giant dropdowns.
|
|
591
|
+
|
|
592
|
+
Consider:
|
|
593
|
+
|
|
594
|
+
```text id="r6x2m8"
|
|
595
|
+
Searchable selection
|
|
596
|
+
Autocomplete
|
|
597
|
+
Picker
|
|
598
|
+
Grouped selection
|
|
599
|
+
Virtualized list
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
The interaction should scale with dataset size.
|
|
603
|
+
|
|
604
|
+
---
|
|
605
|
+
|
|
606
|
+
# 28. Form anti-patterns
|
|
607
|
+
|
|
608
|
+
Detect:
|
|
609
|
+
|
|
610
|
+
```text id="c9m4p7"
|
|
611
|
+
Placeholder-only labels
|
|
612
|
+
Unnecessary fields
|
|
613
|
+
Vague errors
|
|
614
|
+
Validation on every keystroke
|
|
615
|
+
No validation until submission
|
|
616
|
+
Hidden requirements
|
|
617
|
+
Duplicate submission
|
|
618
|
+
Lost input
|
|
619
|
+
Keyboard obstruction
|
|
620
|
+
Huge dropdowns
|
|
621
|
+
Overly long forms
|
|
622
|
+
Unexpected defaults
|
|
623
|
+
Disabled submit with no explanation
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
---
|
|
627
|
+
|
|
628
|
+
# 29. Form quality checklist
|
|
629
|
+
|
|
630
|
+
```text id="v8q2m5"
|
|
631
|
+
□ Every field has a purpose
|
|
632
|
+
□ Required fields are clear
|
|
633
|
+
□ Labels persist
|
|
634
|
+
□ Input types match data
|
|
635
|
+
□ Keyboard is appropriate
|
|
636
|
+
□ Defaults are safe
|
|
637
|
+
□ Validation timing is appropriate
|
|
638
|
+
□ Errors are actionable
|
|
639
|
+
□ Server errors are handled
|
|
640
|
+
□ Submission state exists
|
|
641
|
+
□ Duplicate submission is prevented
|
|
642
|
+
□ User input is preserved
|
|
643
|
+
□ Keyboard behavior works
|
|
644
|
+
□ Accessibility is supported
|
|
645
|
+
□ Success is communicated
|
|
646
|
+
□ Recovery paths exist
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
---
|
|
650
|
+
|
|
651
|
+
# 30. Form intelligence workflow
|
|
652
|
+
|
|
653
|
+
```text id="h5r8n3"
|
|
654
|
+
UNDERSTAND DATA REQUIREMENTS
|
|
655
|
+
↓
|
|
656
|
+
CLASSIFY FIELDS
|
|
657
|
+
↓
|
|
658
|
+
CHOOSE INPUT CONTROLS
|
|
659
|
+
↓
|
|
660
|
+
GROUP + ORDER
|
|
661
|
+
↓
|
|
662
|
+
DEFINE DEFAULTS
|
|
663
|
+
↓
|
|
664
|
+
DEFINE VALIDATION
|
|
665
|
+
↓
|
|
666
|
+
DEFINE ERROR RECOVERY
|
|
667
|
+
↓
|
|
668
|
+
DEFINE SUBMISSION STATES
|
|
669
|
+
↓
|
|
670
|
+
IMPLEMENT
|
|
671
|
+
↓
|
|
672
|
+
TEST REAL INPUT
|
|
673
|
+
↓
|
|
674
|
+
VALIDATE ACCESSIBILITY
|
|
675
|
+
↓
|
|
676
|
+
VERIFY DATA LOSS PROTECTION
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
---
|
|
680
|
+
|
|
681
|
+
## File 68 operating principle
|
|
682
|
+
|
|
683
|
+
> **Design data entry around the user's task, not the database schema.**
|
|
684
|
+
|
|
685
|
+
The agent should continuously minimize:
|
|
686
|
+
|
|
687
|
+
```text
|
|
688
|
+
Typing
|
|
689
|
+
Thinking
|
|
690
|
+
Remembering
|
|
691
|
+
Correcting
|
|
692
|
+
Waiting
|
|
693
|
+
Recovering
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
while maximizing:
|
|
697
|
+
|
|
698
|
+
```text
|
|
699
|
+
Clarity
|
|
700
|
+
Accuracy
|
|
701
|
+
Confidence
|
|
702
|
+
Control
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
|