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,669 @@
|
|
|
1
|
+
## File 70 — Responsive, Adaptive & Cross-Platform UI Intelligence
|
|
2
|
+
|
|
3
|
+
File 69 taught the agent how to handle **large and complex information spaces**.
|
|
4
|
+
|
|
5
|
+
File 70 teaches it how to make interfaces work across **different screen sizes, orientations, platforms, input methods, system environments, and device capabilities** without simply shrinking one design into another.
|
|
6
|
+
|
|
7
|
+
> **Responsive design is not scaling. It is adapting the experience to the environment.**
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# 1. The adaptation model
|
|
12
|
+
|
|
13
|
+
The agent should reason through:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
DEVICE
|
|
17
|
+
↓
|
|
18
|
+
SCREEN
|
|
19
|
+
↓
|
|
20
|
+
WINDOW
|
|
21
|
+
↓
|
|
22
|
+
INPUT
|
|
23
|
+
↓
|
|
24
|
+
PLATFORM
|
|
25
|
+
↓
|
|
26
|
+
CAPABILITIES
|
|
27
|
+
↓
|
|
28
|
+
CONTEXT
|
|
29
|
+
↓
|
|
30
|
+
ADAPTIVE UI
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The same product can have different optimal presentations while preserving the same underlying experience.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# 2. Responsive vs adaptive
|
|
38
|
+
|
|
39
|
+
### Responsive
|
|
40
|
+
|
|
41
|
+
The interface continuously adjusts to available space.
|
|
42
|
+
|
|
43
|
+
```text
|
|
44
|
+
Width changes
|
|
45
|
+
↓
|
|
46
|
+
Layout adjusts
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Adaptive
|
|
50
|
+
|
|
51
|
+
The interface deliberately changes structure for a different context.
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
Phone
|
|
55
|
+
→ compact navigation
|
|
56
|
+
|
|
57
|
+
Tablet
|
|
58
|
+
→ expanded navigation
|
|
59
|
+
|
|
60
|
+
Desktop
|
|
61
|
+
→ persistent sidebar
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The agent should know when each approach is appropriate.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
# 3. Don't design around arbitrary breakpoints
|
|
69
|
+
|
|
70
|
+
Avoid:
|
|
71
|
+
|
|
72
|
+
```text id="b6m3x9"
|
|
73
|
+
"If width < 768, make everything smaller."
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Instead identify **content-driven breakpoints**:
|
|
77
|
+
|
|
78
|
+
```text id="q8v2r5"
|
|
79
|
+
At what width does the current layout stop working?
|
|
80
|
+
↓
|
|
81
|
+
What specifically breaks?
|
|
82
|
+
↓
|
|
83
|
+
What structural change solves it?
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Breakpoints should exist because the interface needs them.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
# 4. Layout hierarchy
|
|
91
|
+
|
|
92
|
+
The agent should determine:
|
|
93
|
+
|
|
94
|
+
```text id="m4x7p2"
|
|
95
|
+
Fixed elements
|
|
96
|
+
Fluid elements
|
|
97
|
+
Flexible elements
|
|
98
|
+
Scrollable regions
|
|
99
|
+
Expandable regions
|
|
100
|
+
Collapsible regions
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Then define how they respond to available space.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
# 5. Mobile-first reasoning
|
|
108
|
+
|
|
109
|
+
For mobile:
|
|
110
|
+
|
|
111
|
+
```text id="c8n5q1"
|
|
112
|
+
Limited space
|
|
113
|
+
↓
|
|
114
|
+
Prioritize
|
|
115
|
+
↓
|
|
116
|
+
Reduce simultaneous information
|
|
117
|
+
↓
|
|
118
|
+
Expose secondary content progressively
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Mobile should not simply be:
|
|
122
|
+
|
|
123
|
+
> Desktop UI compressed into a phone.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
# 6. Tablet behavior
|
|
128
|
+
|
|
129
|
+
Tablets often sit between mobile and desktop.
|
|
130
|
+
|
|
131
|
+
The agent should consider:
|
|
132
|
+
|
|
133
|
+
```text id="v5m9r3"
|
|
134
|
+
Split views
|
|
135
|
+
Expanded lists
|
|
136
|
+
Persistent controls
|
|
137
|
+
Multi-column layouts
|
|
138
|
+
Side panels
|
|
139
|
+
Larger touch targets
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Avoid treating tablets as oversized phones.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
# 7. Desktop behavior
|
|
147
|
+
|
|
148
|
+
Desktop interfaces can support:
|
|
149
|
+
|
|
150
|
+
```text id="x3q8k2"
|
|
151
|
+
Persistent navigation
|
|
152
|
+
Multi-column layouts
|
|
153
|
+
Side panels
|
|
154
|
+
Dense tables
|
|
155
|
+
Keyboard shortcuts
|
|
156
|
+
Hover states
|
|
157
|
+
Contextual toolbars
|
|
158
|
+
Large information spaces
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Use the extra space intentionally.
|
|
162
|
+
|
|
163
|
+
Don't simply stretch mobile content across a large screen.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
# 8. Orientation
|
|
168
|
+
|
|
169
|
+
Support:
|
|
170
|
+
|
|
171
|
+
```text id="n7p4c6"
|
|
172
|
+
Portrait
|
|
173
|
+
Landscape
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
where appropriate.
|
|
177
|
+
|
|
178
|
+
Consider:
|
|
179
|
+
|
|
180
|
+
* navigation
|
|
181
|
+
* media
|
|
182
|
+
* tables
|
|
183
|
+
* forms
|
|
184
|
+
* dialogs
|
|
185
|
+
* keyboard
|
|
186
|
+
* safe areas
|
|
187
|
+
|
|
188
|
+
Orientation changes should not unexpectedly destroy user context.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
# 9. Window resizing
|
|
193
|
+
|
|
194
|
+
On desktop and large-screen environments, the window may change size continuously.
|
|
195
|
+
|
|
196
|
+
The agent should test:
|
|
197
|
+
|
|
198
|
+
```text id="k2m8v4"
|
|
199
|
+
Very narrow
|
|
200
|
+
Narrow
|
|
201
|
+
Normal
|
|
202
|
+
Wide
|
|
203
|
+
Very wide
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Avoid layouts that only work at the developer's preferred window size.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
# 10. Safe areas
|
|
211
|
+
|
|
212
|
+
Mobile devices can have:
|
|
213
|
+
|
|
214
|
+
```text id="p6r3x9"
|
|
215
|
+
Status bars
|
|
216
|
+
Navigation areas
|
|
217
|
+
Camera cutouts
|
|
218
|
+
Rounded corners
|
|
219
|
+
Gesture areas
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
The agent should ensure important content and controls remain safely accessible.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
# 11. Input modality
|
|
227
|
+
|
|
228
|
+
Different environments support different inputs:
|
|
229
|
+
|
|
230
|
+
```text id="v8q4m2"
|
|
231
|
+
Touch
|
|
232
|
+
Mouse
|
|
233
|
+
Keyboard
|
|
234
|
+
Stylus
|
|
235
|
+
Game controller
|
|
236
|
+
Accessibility switch
|
|
237
|
+
Screen reader
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
The interface should not depend on only one interaction mechanism when multiple are relevant.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
# 12. Touch vs pointer
|
|
245
|
+
|
|
246
|
+
Touch interfaces require:
|
|
247
|
+
|
|
248
|
+
```text id="c5m9n1"
|
|
249
|
+
Larger targets
|
|
250
|
+
Less precision
|
|
251
|
+
Gesture support
|
|
252
|
+
Clear pressed states
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Pointer interfaces can support:
|
|
256
|
+
|
|
257
|
+
```text id="x7r3p8"
|
|
258
|
+
Hover
|
|
259
|
+
Tooltips
|
|
260
|
+
Fine-grained controls
|
|
261
|
+
Context menus
|
|
262
|
+
Pointer precision
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
The agent should adapt rather than merely duplicate the same interaction.
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
# 13. Hover states
|
|
270
|
+
|
|
271
|
+
Hover should enhance—not be required for—core functionality.
|
|
272
|
+
|
|
273
|
+
Anything revealed only on hover should have an accessible alternative.
|
|
274
|
+
|
|
275
|
+
Bad:
|
|
276
|
+
|
|
277
|
+
```text id="q4m8v2"
|
|
278
|
+
Important action appears only on hover
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
Better:
|
|
282
|
+
|
|
283
|
+
```text id="n6p3x7"
|
|
284
|
+
Visible action
|
|
285
|
+
+
|
|
286
|
+
Hover enhancement
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
# 14. Keyboard interaction
|
|
292
|
+
|
|
293
|
+
For keyboard-capable environments:
|
|
294
|
+
|
|
295
|
+
```text id="j8c5r2"
|
|
296
|
+
Tab order
|
|
297
|
+
Enter
|
|
298
|
+
Space
|
|
299
|
+
Escape
|
|
300
|
+
Arrow keys
|
|
301
|
+
Shortcuts
|
|
302
|
+
Focus visibility
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
The agent should verify that keyboard navigation is logical.
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
# 15. Focus management
|
|
310
|
+
|
|
311
|
+
Focus must remain understandable after:
|
|
312
|
+
|
|
313
|
+
```text id="m2x7q9"
|
|
314
|
+
Navigation
|
|
315
|
+
Modal opening
|
|
316
|
+
Modal closing
|
|
317
|
+
Validation errors
|
|
318
|
+
Dynamic content
|
|
319
|
+
Deletion
|
|
320
|
+
Async operations
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
Don't allow focus to disappear unpredictably.
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
# 16. Typography adaptation
|
|
328
|
+
|
|
329
|
+
Responsive typography should consider:
|
|
330
|
+
|
|
331
|
+
```text id="r4v8n3"
|
|
332
|
+
Viewport
|
|
333
|
+
Density
|
|
334
|
+
Text scaling
|
|
335
|
+
Localization
|
|
336
|
+
Accessibility
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Avoid forcing text to remain tiny simply to preserve a desktop layout.
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
# 17. Content adaptation
|
|
344
|
+
|
|
345
|
+
When space decreases:
|
|
346
|
+
|
|
347
|
+
```text id="x5q2m8"
|
|
348
|
+
Reduce secondary content
|
|
349
|
+
Collapse metadata
|
|
350
|
+
Move actions
|
|
351
|
+
Prioritize essential information
|
|
352
|
+
Enable progressive disclosure
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
Do not arbitrarily hide important information.
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
# 18. Navigation adaptation
|
|
360
|
+
|
|
361
|
+
Example:
|
|
362
|
+
|
|
363
|
+
```text id="p7m3v9"
|
|
364
|
+
Desktop
|
|
365
|
+
Sidebar
|
|
366
|
+
|
|
367
|
+
Tablet
|
|
368
|
+
Compact sidebar / rail
|
|
369
|
+
|
|
370
|
+
Mobile
|
|
371
|
+
Bottom navigation / compact header
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
The underlying destinations remain conceptually consistent.
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
# 19. Component adaptation
|
|
379
|
+
|
|
380
|
+
Components should have responsive behavior defined where necessary.
|
|
381
|
+
|
|
382
|
+
For example:
|
|
383
|
+
|
|
384
|
+
```text id="k8r4n2"
|
|
385
|
+
Toolbar
|
|
386
|
+
Desktop → inline actions
|
|
387
|
+
|
|
388
|
+
Mobile → primary action + overflow
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
This is preferable to creating completely unrelated components without reason.
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
# 20. Modal adaptation
|
|
396
|
+
|
|
397
|
+
A modal may become:
|
|
398
|
+
|
|
399
|
+
```text id="c3x9m5"
|
|
400
|
+
Desktop
|
|
401
|
+
Centered dialog
|
|
402
|
+
|
|
403
|
+
Mobile
|
|
404
|
+
Full-screen sheet
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
The task remains the same while the presentation adapts to available space.
|
|
408
|
+
|
|
409
|
+
---
|
|
410
|
+
|
|
411
|
+
# 21. Grid adaptation
|
|
412
|
+
|
|
413
|
+
A grid can change:
|
|
414
|
+
|
|
415
|
+
```text id="v6q2p8"
|
|
416
|
+
Columns
|
|
417
|
+
Card size
|
|
418
|
+
Gap
|
|
419
|
+
Content density
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
based on available width.
|
|
423
|
+
|
|
424
|
+
The agent should avoid fixed layouts that cause:
|
|
425
|
+
|
|
426
|
+
* overflow
|
|
427
|
+
* tiny cards
|
|
428
|
+
* excessive whitespace
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
# 22. Image adaptation
|
|
433
|
+
|
|
434
|
+
Images should consider:
|
|
435
|
+
|
|
436
|
+
```text id="m9n4x1"
|
|
437
|
+
Aspect ratio
|
|
438
|
+
Resolution
|
|
439
|
+
Cropping
|
|
440
|
+
Loading
|
|
441
|
+
Caching
|
|
442
|
+
Density
|
|
443
|
+
Network conditions
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
Don't sacrifice content quality unnecessarily on high-density screens.
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
# 23. Performance adaptation
|
|
451
|
+
|
|
452
|
+
Different environments have different capabilities.
|
|
453
|
+
|
|
454
|
+
Consider:
|
|
455
|
+
|
|
456
|
+
```text id="j5r8q3"
|
|
457
|
+
CPU
|
|
458
|
+
Memory
|
|
459
|
+
GPU
|
|
460
|
+
Network
|
|
461
|
+
Battery
|
|
462
|
+
Storage
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
A visually expensive interface may need reduced complexity on constrained devices.
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
# 24. Network-aware UI
|
|
470
|
+
|
|
471
|
+
The agent should distinguish:
|
|
472
|
+
|
|
473
|
+
```text id="f2m7v4"
|
|
474
|
+
Online
|
|
475
|
+
Slow network
|
|
476
|
+
Offline
|
|
477
|
+
Recovering connection
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
Provide appropriate behavior:
|
|
481
|
+
|
|
482
|
+
```text Retry
|
|
483
|
+
Cached content
|
|
484
|
+
Offline messaging
|
|
485
|
+
Deferred operations
|
|
486
|
+
Sync indicators
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
---
|
|
490
|
+
|
|
491
|
+
# 25. Platform conventions
|
|
492
|
+
|
|
493
|
+
For React Native / Expo applications, the agent should account for:
|
|
494
|
+
|
|
495
|
+
```text id="q8x3m6"
|
|
496
|
+
Android conventions
|
|
497
|
+
iOS conventions
|
|
498
|
+
Web conventions
|
|
499
|
+
Platform navigation
|
|
500
|
+
System dialogs
|
|
501
|
+
Permissions
|
|
502
|
+
Keyboard behavior
|
|
503
|
+
Gestures
|
|
504
|
+
Back behavior
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
Don't force identical behavior where platforms have established expectations.
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
|
|
511
|
+
# 26. Cross-platform consistency
|
|
512
|
+
|
|
513
|
+
Consistency does **not** mean identical pixels.
|
|
514
|
+
|
|
515
|
+
The goal is:
|
|
516
|
+
|
|
517
|
+
```text id="r7m4p2"
|
|
518
|
+
Same product meaning
|
|
519
|
+
+
|
|
520
|
+
Same core functionality
|
|
521
|
+
+
|
|
522
|
+
Same visual language
|
|
523
|
+
+
|
|
524
|
+
Platform-appropriate interaction
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
---
|
|
528
|
+
|
|
529
|
+
# 27. Cross-platform differences
|
|
530
|
+
|
|
531
|
+
Document intentional differences:
|
|
532
|
+
|
|
533
|
+
```text id="n5c8x3"
|
|
534
|
+
Platform
|
|
535
|
+
Difference
|
|
536
|
+
Reason
|
|
537
|
+
Expected behavior
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
This prevents later refactors from accidentally removing useful platform adaptation.
|
|
541
|
+
|
|
542
|
+
---
|
|
543
|
+
|
|
544
|
+
# 28. Responsive state preservation
|
|
545
|
+
|
|
546
|
+
When layout changes:
|
|
547
|
+
|
|
548
|
+
```text id="k3q9m6"
|
|
549
|
+
Scroll position
|
|
550
|
+
Selection
|
|
551
|
+
Input
|
|
552
|
+
Navigation state
|
|
553
|
+
Expanded sections
|
|
554
|
+
Filters
|
|
555
|
+
Playback
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
should remain stable wherever reasonable.
|
|
559
|
+
|
|
560
|
+
Responsive adaptation should not feel like restarting the interface.
|
|
561
|
+
|
|
562
|
+
---
|
|
563
|
+
|
|
564
|
+
# 29. Testing matrix
|
|
565
|
+
|
|
566
|
+
The agent should build a meaningful matrix:
|
|
567
|
+
|
|
568
|
+
```text id="x6m2p8"
|
|
569
|
+
Phone Tablet Desktop
|
|
570
|
+
Portrait ✓ ✓ -
|
|
571
|
+
Landscape ✓ ✓ ✓
|
|
572
|
+
Touch ✓ ✓ -
|
|
573
|
+
Pointer - ✓ ✓
|
|
574
|
+
Keyboard - ✓ ✓
|
|
575
|
+
Small width ✓ ✓ ✓
|
|
576
|
+
Large width - ✓ ✓
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
The exact matrix depends on the product.
|
|
580
|
+
|
|
581
|
+
---
|
|
582
|
+
|
|
583
|
+
# 30. Responsive anti-patterns
|
|
584
|
+
|
|
585
|
+
Detect:
|
|
586
|
+
|
|
587
|
+
```text id="v8q3n5"
|
|
588
|
+
Desktop squeezed into mobile
|
|
589
|
+
Arbitrary breakpoints
|
|
590
|
+
Tiny controls
|
|
591
|
+
Horizontal overflow
|
|
592
|
+
Hidden primary actions
|
|
593
|
+
Broken keyboard behavior
|
|
594
|
+
Hover-only functionality
|
|
595
|
+
Fixed-height containers
|
|
596
|
+
Text clipping
|
|
597
|
+
Modal overflow
|
|
598
|
+
Inconsistent navigation
|
|
599
|
+
Orientation resets
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
# 31. Adaptive design workflow
|
|
605
|
+
|
|
606
|
+
```text id="c4m7x2"
|
|
607
|
+
IDENTIFY ENVIRONMENTS
|
|
608
|
+
↓
|
|
609
|
+
IDENTIFY CONSTRAINTS
|
|
610
|
+
↓
|
|
611
|
+
IDENTIFY USER INPUT
|
|
612
|
+
↓
|
|
613
|
+
DEFINE CONTENT PRIORITIES
|
|
614
|
+
↓
|
|
615
|
+
DEFINE LAYOUT BEHAVIOR
|
|
616
|
+
↓
|
|
617
|
+
DEFINE COMPONENT ADAPTATION
|
|
618
|
+
↓
|
|
619
|
+
DEFINE NAVIGATION ADAPTATION
|
|
620
|
+
↓
|
|
621
|
+
IMPLEMENT
|
|
622
|
+
↓
|
|
623
|
+
TEST ACROSS ENVIRONMENTS
|
|
624
|
+
↓
|
|
625
|
+
FIX
|
|
626
|
+
↓
|
|
627
|
+
VERIFY
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
---
|
|
631
|
+
|
|
632
|
+
# 32. Responsive quality checklist
|
|
633
|
+
|
|
634
|
+
```text id="q9r5m3"
|
|
635
|
+
□ Layout adapts naturally
|
|
636
|
+
□ Breakpoints are justified
|
|
637
|
+
□ Content hierarchy survives resizing
|
|
638
|
+
□ Navigation remains understandable
|
|
639
|
+
□ Touch targets work
|
|
640
|
+
□ Keyboard navigation works
|
|
641
|
+
□ Focus remains logical
|
|
642
|
+
□ Safe areas are respected
|
|
643
|
+
□ Typography remains readable
|
|
644
|
+
□ Images adapt correctly
|
|
645
|
+
□ Modals remain usable
|
|
646
|
+
□ Tables remain usable
|
|
647
|
+
□ Orientation changes work
|
|
648
|
+
□ Network differences are handled
|
|
649
|
+
□ Platform conventions are respected
|
|
650
|
+
□ State survives layout changes
|
|
651
|
+
```
|
|
652
|
+
|
|
653
|
+
---
|
|
654
|
+
|
|
655
|
+
## File 70 operating principle
|
|
656
|
+
|
|
657
|
+
> **Design one coherent product experience that intelligently adapts to different environments instead of building one rigid interface and shrinking it everywhere.**
|
|
658
|
+
|
|
659
|
+
The agent should think:
|
|
660
|
+
|
|
661
|
+
```text id="m6x2p9"
|
|
662
|
+
SAME PRODUCT
|
|
663
|
+
+
|
|
664
|
+
DIFFERENT CONTEXT
|
|
665
|
+
=
|
|
666
|
+
ADAPTIVE EXPERIENCE
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
|