@wix/himalaya-cli 0.856.0 → 0.857.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/dist/cli.mjs +803 -699
- package/guides/mobile-ux.md +38 -7
- package/package.json +2 -2
package/guides/mobile-ux.md
CHANGED
|
@@ -135,6 +135,10 @@ driving a native shell, record the result—not an assumption—with `himi ux re
|
|
|
135
135
|
is required for `passed`/`failed` and names what you actually drove; an unavailable platform drove
|
|
136
136
|
nothing, so it takes no checks and needs a `--reason` instead.
|
|
137
137
|
|
|
138
|
+
`himi render --width`/`--device` writes into the same `.himi/ux-audit.json`, appending the width it
|
|
139
|
+
rendered. That is what the width marker below reads first, so rendering the screen at two widths is
|
|
140
|
+
itself the evidence — see the strict audit contract.
|
|
141
|
+
|
|
138
142
|
### Strict audit contract
|
|
139
143
|
|
|
140
144
|
**Two commands read this contract.** `himi validate` reports a gap as a **warning**, so a rewrite
|
|
@@ -162,12 +166,31 @@ better document, were refused, and pasted the sentence back:
|
|
|
162
166
|
- *or literally*: the phrase `one primary CTA per state` appears anywhere. It is not deprecated —
|
|
163
167
|
a document that passes today keeps passing.
|
|
164
168
|
|
|
165
|
-
The remaining marker, **width evidence**, is graded by **
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
-
|
|
170
|
-
|
|
169
|
+
The remaining marker, **width evidence**, is graded by **what you rendered, not by a phrase** — it
|
|
170
|
+
is a fact rather than a string, so there is nothing to paste. Three things satisfy it, and they are
|
|
171
|
+
tried in this order:
|
|
172
|
+
|
|
173
|
+
- **A recorded render — the primary path, and the one to prefer.** `himi render <screenId>
|
|
174
|
+
--content <app> --width 390`, then the same screen again at `--width 834` (or `--device iphone`
|
|
175
|
+
and `--device ipad`), appends the width each run actually rendered to `.himi/ux-audit.json` —
|
|
176
|
+
the same structured evidence file `himi ux record` writes. A recorded render **below 600px**
|
|
177
|
+
plus one **at 600px or wider** satisfies this marker on its own: the document need not name a
|
|
178
|
+
width anywhere. The gate is then reading a fact the tool produced instead of a sentence you
|
|
179
|
+
typed, which is the whole point of the marker.
|
|
180
|
+
|
|
181
|
+
Each entry carries the screen, the width, the `--device` preset when you used one, and the PNG
|
|
182
|
+
when `--png` wrote one. Re-rendering the same screen at the same width **replaces** that entry
|
|
183
|
+
rather than appending another, so a long dev loop leaves one line per screen and width, and a
|
|
184
|
+
native audit already recorded in the same file is never disturbed. A render with **no**
|
|
185
|
+
`--width`/`--device` records nothing on purpose: without one the PNG viewport is the headless
|
|
186
|
+
browser's desktop default, and writing that down would manufacture the very expanded render the
|
|
187
|
+
marker exists to prove. Recording never fails or slows a render — if the file cannot be written
|
|
188
|
+
the render still succeeds, and the paths below still apply. `.himi/` is gitignored, so this is
|
|
189
|
+
evidence about your checkout rather than something a pull request carries.
|
|
190
|
+
|
|
191
|
+
- Or name two pixel widths in the document, spanning compact → wider,
|
|
192
|
+
**each spelled as a width on itself**, within about 400 characters of each other so they read as
|
|
193
|
+
one statement: one **below 600px** (compact)
|
|
171
194
|
and one **at 600px or wider** (medium or expanded). A number is spelled as a width when it
|
|
172
195
|
carries a **unit** — `320px`, `320 px`, `320pt`, `320dp`, `320 pixels`, `320 wide` — or sits in a
|
|
173
196
|
**screenshot filename** — `home-320.png`, `home-834-dark.png`, `home-390x844.png`. That is the
|
|
@@ -211,9 +234,17 @@ way:
|
|
|
211
234
|
`expanded` must follow within about 400 characters, so keep them in the same sentence or bullet
|
|
212
235
|
rather than in separate sections.
|
|
213
236
|
|
|
237
|
+
The two written paths are a **fallback, not a deprecation**: plenty of real renders are not driven
|
|
238
|
+
by `himi render` at all — a simulator, a real phone, or an automated UI driver leaves no entry in
|
|
239
|
+
`.himi/ux-audit.json` — so a document that satisfies this marker today still satisfies it. A render
|
|
240
|
+
record can only **add** a way to pass; it never takes one away, and a record showing fewer size
|
|
241
|
+
classes than your document claims is not itself a finding.
|
|
242
|
+
|
|
214
243
|
When the marker fails, the error names **which** of the four things went wrong — no compact width,
|
|
215
244
|
no wider width, two widths too far apart to be one statement, or no number spelled as a width — and
|
|
216
|
-
says so alongside the height-axis rule if that is what discarded your numbers.
|
|
245
|
+
says so alongside the height-axis rule if that is what discarded your numbers. When the render
|
|
246
|
+
record holds something, it also names what it holds and the single command that would complete it
|
|
247
|
+
("holds 390px — compact only. Render the same screen again at 600px or wider"). Read the branch it
|
|
217
248
|
gave you rather than pasting the example: the example is a form that works, not the only one.
|
|
218
249
|
|
|
219
250
|
**HTML comments are stripped before any of this runs.** The scaffold ships a `<!-- LOAD-BEARING -->`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.857.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"artifactId": "himalaya-cli"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"falconPackageHash": "
|
|
66
|
+
"falconPackageHash": "629ade3aa68530bbdcfe1842b24b52fcb778d8e8f85ff394bc3372fb"
|
|
67
67
|
}
|