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,647 @@
|
|
|
1
|
+
## File 65 — UI/UX Patterns, Templates & Screen Composition Intelligence
|
|
2
|
+
|
|
3
|
+
File 64 taught the agent **how to choose between competing solutions**.
|
|
4
|
+
|
|
5
|
+
File 65 now gives it a structured vocabulary for **assembling interfaces quickly without falling into repetitive, generic, or inconsistent layouts**.
|
|
6
|
+
|
|
7
|
+
> **Reuse proven interaction patterns while composing each screen around its actual user goal.**
|
|
8
|
+
|
|
9
|
+
The key distinction:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
COMPONENT
|
|
13
|
+
↓
|
|
14
|
+
PATTERN
|
|
15
|
+
↓
|
|
16
|
+
TEMPLATE
|
|
17
|
+
↓
|
|
18
|
+
SCREEN
|
|
19
|
+
↓
|
|
20
|
+
FLOW
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
A component is a building block.
|
|
24
|
+
A pattern solves a recurring interaction problem.
|
|
25
|
+
A template provides structural guidance.
|
|
26
|
+
A screen is a contextual composition.
|
|
27
|
+
A flow connects screens around a goal.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# 1. Pattern intelligence
|
|
32
|
+
|
|
33
|
+
The agent should recognize common patterns such as:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
Navigation
|
|
37
|
+
Search
|
|
38
|
+
Filtering
|
|
39
|
+
Sorting
|
|
40
|
+
Selection
|
|
41
|
+
Creation
|
|
42
|
+
Editing
|
|
43
|
+
Deletion
|
|
44
|
+
Confirmation
|
|
45
|
+
Onboarding
|
|
46
|
+
Authentication
|
|
47
|
+
Settings
|
|
48
|
+
Dashboard
|
|
49
|
+
Lists
|
|
50
|
+
Grids
|
|
51
|
+
Detail views
|
|
52
|
+
Forms
|
|
53
|
+
Checkout
|
|
54
|
+
Progress
|
|
55
|
+
Notifications
|
|
56
|
+
Media controls
|
|
57
|
+
Command actions
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
But patterns should be treated as **starting points**, not mandatory templates.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
# 2. Pattern selection
|
|
65
|
+
|
|
66
|
+
Before choosing a pattern:
|
|
67
|
+
|
|
68
|
+
```text id="v8q2m5"
|
|
69
|
+
USER GOAL
|
|
70
|
+
↓
|
|
71
|
+
CONTENT TYPE
|
|
72
|
+
↓
|
|
73
|
+
ACTION TYPE
|
|
74
|
+
↓
|
|
75
|
+
FREQUENCY
|
|
76
|
+
↓
|
|
77
|
+
RISK
|
|
78
|
+
↓
|
|
79
|
+
CONTEXT
|
|
80
|
+
↓
|
|
81
|
+
SELECT PATTERN
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
For example, a frequently accessed filter might deserve persistent controls, while an advanced filter might belong in a sheet.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
# 3. Screen composition
|
|
89
|
+
|
|
90
|
+
A screen should be composed around hierarchy:
|
|
91
|
+
|
|
92
|
+
```text id="p3m7x1"
|
|
93
|
+
CONTEXT
|
|
94
|
+
↓
|
|
95
|
+
PRIMARY INFORMATION
|
|
96
|
+
↓
|
|
97
|
+
PRIMARY ACTION
|
|
98
|
+
↓
|
|
99
|
+
SECONDARY INFORMATION
|
|
100
|
+
↓
|
|
101
|
+
SECONDARY ACTIONS
|
|
102
|
+
↓
|
|
103
|
+
OPTIONAL / ADVANCED CONTENT
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Not every screen needs every layer.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
# 4. Screen archetypes
|
|
111
|
+
|
|
112
|
+
The agent should recognize common structural archetypes.
|
|
113
|
+
|
|
114
|
+
### Dashboard
|
|
115
|
+
|
|
116
|
+
```text id="a7n4k2"
|
|
117
|
+
Context
|
|
118
|
+
↓
|
|
119
|
+
Summary
|
|
120
|
+
↓
|
|
121
|
+
Important metrics/content
|
|
122
|
+
↓
|
|
123
|
+
Primary actions
|
|
124
|
+
↓
|
|
125
|
+
Recent activity
|
|
126
|
+
↓
|
|
127
|
+
Secondary content
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### List
|
|
131
|
+
|
|
132
|
+
```text id="r5c8m3"
|
|
133
|
+
Header
|
|
134
|
+
↓
|
|
135
|
+
Search / filters
|
|
136
|
+
↓
|
|
137
|
+
List
|
|
138
|
+
↓
|
|
139
|
+
Item actions
|
|
140
|
+
↓
|
|
141
|
+
Empty / loading / error states
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Detail
|
|
145
|
+
|
|
146
|
+
```text id="x2v9q6"
|
|
147
|
+
Context
|
|
148
|
+
↓
|
|
149
|
+
Identity / title
|
|
150
|
+
↓
|
|
151
|
+
Primary information
|
|
152
|
+
↓
|
|
153
|
+
Actions
|
|
154
|
+
↓
|
|
155
|
+
Supporting information
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Form
|
|
159
|
+
|
|
160
|
+
```text id="m4k8p1"
|
|
161
|
+
Context
|
|
162
|
+
↓
|
|
163
|
+
Fields
|
|
164
|
+
↓
|
|
165
|
+
Validation
|
|
166
|
+
↓
|
|
167
|
+
Primary action
|
|
168
|
+
↓
|
|
169
|
+
Recovery / cancellation
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Settings
|
|
173
|
+
|
|
174
|
+
```text id="q7n3s5"
|
|
175
|
+
Category
|
|
176
|
+
↓
|
|
177
|
+
Related settings
|
|
178
|
+
↓
|
|
179
|
+
Current values
|
|
180
|
+
↓
|
|
181
|
+
Descriptions
|
|
182
|
+
↓
|
|
183
|
+
Advanced options
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
These are structural patterns, not rigid layouts.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
# 5. Pattern composition
|
|
191
|
+
|
|
192
|
+
Patterns should be composable.
|
|
193
|
+
|
|
194
|
+
For example:
|
|
195
|
+
|
|
196
|
+
```text id="f8r2c4"
|
|
197
|
+
Search
|
|
198
|
+
+
|
|
199
|
+
Filter
|
|
200
|
+
+
|
|
201
|
+
Sort
|
|
202
|
+
+
|
|
203
|
+
List
|
|
204
|
+
+
|
|
205
|
+
Pagination
|
|
206
|
+
+
|
|
207
|
+
Empty state
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
can form a powerful content-management experience.
|
|
211
|
+
|
|
212
|
+
The agent should understand **how patterns interact**, including conflicts.
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
# 6. Primary-action hierarchy
|
|
217
|
+
|
|
218
|
+
Every screen should answer:
|
|
219
|
+
|
|
220
|
+
> **What is the most important action here?**
|
|
221
|
+
|
|
222
|
+
The agent should establish:
|
|
223
|
+
|
|
224
|
+
```text id="s5v9m2"
|
|
225
|
+
Primary
|
|
226
|
+
↓
|
|
227
|
+
Secondary
|
|
228
|
+
↓
|
|
229
|
+
Tertiary
|
|
230
|
+
↓
|
|
231
|
+
Destructive
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Avoid giving every action equal visual weight.
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
# 7. Content density
|
|
239
|
+
|
|
240
|
+
Choose density according to:
|
|
241
|
+
|
|
242
|
+
```text id="c3x7n8"
|
|
243
|
+
Task frequency
|
|
244
|
+
Information complexity
|
|
245
|
+
Screen size
|
|
246
|
+
User expertise
|
|
247
|
+
Interaction speed
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Examples:
|
|
251
|
+
|
|
252
|
+
```text id="h6q2w4"
|
|
253
|
+
High-frequency professional tool
|
|
254
|
+
→ higher density
|
|
255
|
+
|
|
256
|
+
Consumer onboarding
|
|
257
|
+
→ lower density
|
|
258
|
+
|
|
259
|
+
Media library
|
|
260
|
+
→ visual density
|
|
261
|
+
|
|
262
|
+
Configuration interface
|
|
263
|
+
→ structured density
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
There is no universal "correct" density.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
# 8. Lists vs grids vs cards
|
|
271
|
+
|
|
272
|
+
The agent should choose based on content.
|
|
273
|
+
|
|
274
|
+
### List
|
|
275
|
+
|
|
276
|
+
Good when users need:
|
|
277
|
+
|
|
278
|
+
* scanning
|
|
279
|
+
* comparison
|
|
280
|
+
* compact information
|
|
281
|
+
* repeated actions
|
|
282
|
+
|
|
283
|
+
### Grid
|
|
284
|
+
|
|
285
|
+
Good when:
|
|
286
|
+
|
|
287
|
+
* visual identity matters
|
|
288
|
+
* items are spatially comparable
|
|
289
|
+
* images dominate
|
|
290
|
+
|
|
291
|
+
### Cards
|
|
292
|
+
|
|
293
|
+
Useful when:
|
|
294
|
+
|
|
295
|
+
* information groups need separation
|
|
296
|
+
* content is heterogeneous
|
|
297
|
+
* actions belong to individual groups
|
|
298
|
+
|
|
299
|
+
Cards should not be used simply because they "look modern."
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
# 9. Forms
|
|
304
|
+
|
|
305
|
+
Forms should minimize unnecessary cognitive effort.
|
|
306
|
+
|
|
307
|
+
The agent should reason about:
|
|
308
|
+
|
|
309
|
+
```text id="j4m8v2"
|
|
310
|
+
Field order
|
|
311
|
+
Grouping
|
|
312
|
+
Defaults
|
|
313
|
+
Input type
|
|
314
|
+
Validation
|
|
315
|
+
Keyboard behavior
|
|
316
|
+
Error placement
|
|
317
|
+
Progress
|
|
318
|
+
Save behavior
|
|
319
|
+
Cancellation
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
Prefer contextual validation over dumping all errors after submission.
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
# 10. Search
|
|
327
|
+
|
|
328
|
+
Search should define:
|
|
329
|
+
|
|
330
|
+
```text id="z7p3k5"
|
|
331
|
+
Entry
|
|
332
|
+
↓
|
|
333
|
+
Input
|
|
334
|
+
↓
|
|
335
|
+
Suggestions
|
|
336
|
+
↓
|
|
337
|
+
Results
|
|
338
|
+
↓
|
|
339
|
+
Filtering
|
|
340
|
+
↓
|
|
341
|
+
Empty result
|
|
342
|
+
↓
|
|
343
|
+
Recovery
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
The agent should consider:
|
|
347
|
+
|
|
348
|
+
* recent searches
|
|
349
|
+
* suggestions
|
|
350
|
+
* typo tolerance
|
|
351
|
+
* filters
|
|
352
|
+
* sorting
|
|
353
|
+
* query persistence
|
|
354
|
+
* clear action
|
|
355
|
+
* loading
|
|
356
|
+
* no-results recovery
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
# 11. Filtering and sorting
|
|
361
|
+
|
|
362
|
+
The agent should distinguish:
|
|
363
|
+
|
|
364
|
+
**Filtering**
|
|
365
|
+
|
|
366
|
+
> What should be included?
|
|
367
|
+
|
|
368
|
+
**Sorting**
|
|
369
|
+
|
|
370
|
+
> In what order should included items appear?
|
|
371
|
+
|
|
372
|
+
Avoid hiding both behind confusing controls.
|
|
373
|
+
|
|
374
|
+
For complex systems:
|
|
375
|
+
|
|
376
|
+
```text id="q9v5m1"
|
|
377
|
+
Search
|
|
378
|
+
+
|
|
379
|
+
Filters
|
|
380
|
+
+
|
|
381
|
+
Sort
|
|
382
|
+
+
|
|
383
|
+
Active-filter indicators
|
|
384
|
+
+
|
|
385
|
+
Clear/reset
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
---
|
|
389
|
+
|
|
390
|
+
# 12. Onboarding
|
|
391
|
+
|
|
392
|
+
Onboarding should exist only when it provides real value.
|
|
393
|
+
|
|
394
|
+
Prefer:
|
|
395
|
+
|
|
396
|
+
```text id="b5k8r3"
|
|
397
|
+
Immediate value
|
|
398
|
+
↓
|
|
399
|
+
Progressive education
|
|
400
|
+
↓
|
|
401
|
+
Optional advanced guidance
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
Avoid forcing users through long tutorials before they can use the product.
|
|
405
|
+
|
|
406
|
+
---
|
|
407
|
+
|
|
408
|
+
# 13. Empty-state patterns
|
|
409
|
+
|
|
410
|
+
Choose based on cause:
|
|
411
|
+
|
|
412
|
+
```text id="n2x7c4"
|
|
413
|
+
First use
|
|
414
|
+
No results
|
|
415
|
+
No data
|
|
416
|
+
Filtered out
|
|
417
|
+
Completed
|
|
418
|
+
Error
|
|
419
|
+
Offline
|
|
420
|
+
Permission
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
Each should have an appropriate explanation and next action.
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
427
|
+
# 14. Detail-page architecture
|
|
428
|
+
|
|
429
|
+
A detail screen should establish:
|
|
430
|
+
|
|
431
|
+
```text id="m8q3t6"
|
|
432
|
+
What is this?
|
|
433
|
+
↓
|
|
434
|
+
Why does it matter?
|
|
435
|
+
↓
|
|
436
|
+
What can I do?
|
|
437
|
+
↓
|
|
438
|
+
What additional information exists?
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
Important actions should remain discoverable without overwhelming the primary content.
|
|
442
|
+
|
|
443
|
+
---
|
|
444
|
+
|
|
445
|
+
# 15. Modal vs page vs sheet
|
|
446
|
+
|
|
447
|
+
The agent should choose based on task characteristics.
|
|
448
|
+
|
|
449
|
+
### Modal
|
|
450
|
+
|
|
451
|
+
Use for:
|
|
452
|
+
|
|
453
|
+
* focused decisions
|
|
454
|
+
* short tasks
|
|
455
|
+
* interruption requiring attention
|
|
456
|
+
|
|
457
|
+
### Bottom sheet
|
|
458
|
+
|
|
459
|
+
Useful for:
|
|
460
|
+
|
|
461
|
+
* contextual options
|
|
462
|
+
* filters
|
|
463
|
+
* lightweight actions
|
|
464
|
+
* mobile-friendly secondary tasks
|
|
465
|
+
|
|
466
|
+
### Full screen
|
|
467
|
+
|
|
468
|
+
Better for:
|
|
469
|
+
|
|
470
|
+
* complex workflows
|
|
471
|
+
* substantial input
|
|
472
|
+
* extended content
|
|
473
|
+
|
|
474
|
+
Don't turn every interaction into a modal.
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
# 16. Navigation patterns
|
|
479
|
+
|
|
480
|
+
The agent should map:
|
|
481
|
+
|
|
482
|
+
```text id="c4p9s2"
|
|
483
|
+
Primary destinations
|
|
484
|
+
Secondary destinations
|
|
485
|
+
Contextual destinations
|
|
486
|
+
Transient actions
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
Then select appropriate structures.
|
|
490
|
+
|
|
491
|
+
Navigation should reflect **information architecture**, not merely available UI components.
|
|
492
|
+
|
|
493
|
+
---
|
|
494
|
+
|
|
495
|
+
# 17. Progressive disclosure
|
|
496
|
+
|
|
497
|
+
Complexity should appear when needed.
|
|
498
|
+
|
|
499
|
+
```text id="r8m2v5"
|
|
500
|
+
Essential
|
|
501
|
+
↓
|
|
502
|
+
Useful
|
|
503
|
+
↓
|
|
504
|
+
Advanced
|
|
505
|
+
↓
|
|
506
|
+
Expert
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
This allows powerful functionality without overwhelming new users.
|
|
510
|
+
|
|
511
|
+
---
|
|
512
|
+
|
|
513
|
+
# 18. Pattern anti-patterns
|
|
514
|
+
|
|
515
|
+
The agent should actively identify:
|
|
516
|
+
|
|
517
|
+
```text id="t6x1q8"
|
|
518
|
+
Card overload
|
|
519
|
+
Modal overload
|
|
520
|
+
Nested scrolling
|
|
521
|
+
Too many tabs
|
|
522
|
+
Hidden primary actions
|
|
523
|
+
Button soup
|
|
524
|
+
Navigation duplication
|
|
525
|
+
Unnecessary carousels
|
|
526
|
+
Infinite dropdowns
|
|
527
|
+
Overly dense dashboards
|
|
528
|
+
Decorative complexity
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
A pattern becomes an anti-pattern when it creates more friction than value.
|
|
532
|
+
|
|
533
|
+
---
|
|
534
|
+
|
|
535
|
+
# 19. Pattern registry
|
|
536
|
+
|
|
537
|
+
For a mature project, maintain:
|
|
538
|
+
|
|
539
|
+
```text id="y4m7p2"
|
|
540
|
+
Pattern
|
|
541
|
+
Purpose
|
|
542
|
+
When to use
|
|
543
|
+
When not to use
|
|
544
|
+
Anatomy
|
|
545
|
+
Variants
|
|
546
|
+
States
|
|
547
|
+
Accessibility
|
|
548
|
+
Examples
|
|
549
|
+
Dependencies
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
This gives the agent a reusable pattern vocabulary.
|
|
553
|
+
|
|
554
|
+
---
|
|
555
|
+
|
|
556
|
+
# 20. Composition decision framework
|
|
557
|
+
|
|
558
|
+
When designing a screen:
|
|
559
|
+
|
|
560
|
+
```text id="u3n8q5"
|
|
561
|
+
What is the user's goal?
|
|
562
|
+
↓
|
|
563
|
+
What information is necessary?
|
|
564
|
+
↓
|
|
565
|
+
What action matters most?
|
|
566
|
+
↓
|
|
567
|
+
Which pattern solves it?
|
|
568
|
+
↓
|
|
569
|
+
Which existing components support it?
|
|
570
|
+
↓
|
|
571
|
+
What states exist?
|
|
572
|
+
↓
|
|
573
|
+
How should it adapt?
|
|
574
|
+
↓
|
|
575
|
+
How should it recover from failure?
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
Only then should the agent finalize the composition.
|
|
579
|
+
|
|
580
|
+
---
|
|
581
|
+
|
|
582
|
+
# 21. Template vs custom composition
|
|
583
|
+
|
|
584
|
+
Use templates when:
|
|
585
|
+
|
|
586
|
+
```text id="k7v2m4"
|
|
587
|
+
The problem is common
|
|
588
|
+
+
|
|
589
|
+
The structure is stable
|
|
590
|
+
+
|
|
591
|
+
Reuse improves consistency
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
Compose custom screens when:
|
|
595
|
+
|
|
596
|
+
```text id="p5x8n1"
|
|
597
|
+
The user goal is unique
|
|
598
|
+
OR
|
|
599
|
+
The content structure differs substantially
|
|
600
|
+
OR
|
|
601
|
+
The template creates unnecessary constraints
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
Never force every screen into the same template.
|
|
605
|
+
|
|
606
|
+
---
|
|
607
|
+
|
|
608
|
+
# 22. Screen composition quality test
|
|
609
|
+
|
|
610
|
+
```text id="z4m6c9"
|
|
611
|
+
□ User goal is obvious
|
|
612
|
+
□ Primary information is prominent
|
|
613
|
+
□ Primary action is clear
|
|
614
|
+
□ Secondary content doesn't compete
|
|
615
|
+
□ Navigation is understandable
|
|
616
|
+
□ Density matches the task
|
|
617
|
+
□ Patterns are appropriate
|
|
618
|
+
□ States are covered
|
|
619
|
+
□ Accessibility is considered
|
|
620
|
+
□ Responsive behavior is defined
|
|
621
|
+
□ No unnecessary UI exists
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
---
|
|
625
|
+
|
|
626
|
+
## File 65 operating principle
|
|
627
|
+
|
|
628
|
+
```text id="m8v4q2"
|
|
629
|
+
UNDERSTAND USER GOAL
|
|
630
|
+
↓
|
|
631
|
+
SELECT APPROPRIATE PATTERN
|
|
632
|
+
↓
|
|
633
|
+
COMPOSE WITH EXISTING COMPONENTS
|
|
634
|
+
↓
|
|
635
|
+
ESTABLISH HIERARCHY
|
|
636
|
+
↓
|
|
637
|
+
HANDLE STATES
|
|
638
|
+
↓
|
|
639
|
+
ADAPT TO CONTEXT
|
|
640
|
+
↓
|
|
641
|
+
VALIDATE
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
The agent should **reuse patterns intelligently without producing cookie-cutter interfaces**.
|
|
645
|
+
|
|
646
|
+
---
|
|
647
|
+
|