@wix/himalaya-cli 0.1644.0 → 0.1646.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 +1938 -1415
- package/guides/himi-test.md +1 -1
- package/guides/one-app-to-himi-app.md +39 -14
- package/package.json +2 -2
package/guides/himi-test.md
CHANGED
|
@@ -283,7 +283,7 @@ Only **unambiguous** defects, so a green run stays worth trusting:
|
|
|
283
283
|
| `settles-off-loading` | error | Still on `loading` / `isLoading` after settling — stuck on the skeleton forever. |
|
|
284
284
|
| `non-finite-number` | error | `NaN` / `Infinity` in worker state — the wrong-total / missing-operand reducer bug. Read live, before the JSON trip to the host flattens it to `null`. On device it renders as an **empty** label, not the text "NaN". |
|
|
285
285
|
| `placeholder-in-text` | error | `undefined`, `null`, `NaN`, `[object Object]` or a JSON blob rendered as visible text. |
|
|
286
|
-
| `unsubstituted-binding` | error | A raw `$service:` / `$item` token, or an unresolved `$t:` i18n key, reaching visible text. |
|
|
286
|
+
| `unsubstituted-binding` | error | A raw `$service:` / `$item` token, or an unresolved `$t:` i18n key, reaching visible text. A whole-value `$t:` key that the app's own catalog (`l10n/<default locale>.json`) answers is substituted: a worker may keep one in its state for the renderer to translate. A key the catalog lacks, one inside prose, or the `$`-stripped `t:key` form still fails. |
|
|
287
287
|
| `item-field-missing` | error | A list row template binds `$item.<field>`, but none of the list's real rows carries `<field>`: the web preview paints `item.<field>` as text and native paints nothing (a worker emitting `jobType` while the template reads `$item.type`). Judged only against real rows, and on the first segment. `warning` when the prop declares `collapseWhenEmpty`. |
|
|
288
288
|
| `unresolved-wix-media` | error | A media-typed prop holding a raw Wix media handle/id the renderer cannot load. |
|
|
289
289
|
| `binding-unresolved` | error / warning | A `$service:` binding aimed at state the worker never defines. It is an error when the missing value can leave visible UI blank. A direct prop with sibling `collapseWhenEmpty: true` is an advisory warning instead: the renderer deliberately removes that zero-size optional chrome, while the warning keeps the omitted contract auditable. |
|
|
@@ -65,8 +65,10 @@ app still needs its own locale configuration and complete translation catalogs;
|
|
|
65
65
|
worker dates and numbers must use that app locale separately. Source collection,
|
|
66
66
|
template translation and runtime formatting are distinct migration checks.
|
|
67
67
|
|
|
68
|
-
If the business read returns `403`, migration can use the
|
|
69
|
-
path.
|
|
68
|
+
If the published-structure read or the business read returns `403`, migration can use the
|
|
69
|
+
internal source-read path. A site operator with no access to the site is refused at the first
|
|
70
|
+
read, so it covers both: after the permission is confirmed, the published structure and its
|
|
71
|
+
final consistency check are read as the site Visitor too. Wix must confirm an active site USER token, the
|
|
70
72
|
`BRANDED_APPS.MANAGE_INTERNAL` organization permission, and that permission for the
|
|
71
73
|
exact requested site. Missing or unavailable authorization keeps
|
|
72
74
|
`source_forbidden`. The read preserves the selected app instance and saves only
|
|
@@ -156,7 +158,7 @@ The CLI's versioned native-widget inventory supplies these rows automatically.
|
|
|
156
158
|
|
|
157
159
|
| Source section type | Effective behavior to verify |
|
|
158
160
|
| --- | --- |
|
|
159
|
-
| `bookings_services_list_section` | Search, category and location filters. |
|
|
161
|
+
| `bookings_services_list_section` | Search, category and location filters; each card's dates (a course), price and an Ended badge for a past course. `himi_services` has all of them, so never hand-write a list: a page made only of this section opens that screen, and beside other sections the generator keeps the title and a See All link to it. |
|
|
160
162
|
| `single_group_feed_section`, `groups_feed_section` | Post actions, attachments, comments/post destination, topic filter and the group's Members / Library / Rules / Media destinations. |
|
|
161
163
|
| `platform_general_contact_section`, `platform_general_contact_section_bp` | Business address and map, respecting authored visibility and available coordinates. |
|
|
162
164
|
| `achievements_list_section` | Category filter, including All Categories with no categories; actual visitor/member login, access/join/payment/Continue states; participants line; default limit 2 and See All when applicable. |
|
|
@@ -630,6 +632,17 @@ Apply these interpretation rules:
|
|
|
630
632
|
available for ordinary page content owned by this screen service. Bind the same
|
|
631
633
|
current source metadata in both workers; never take the target from route params.
|
|
632
634
|
The reusable screen recipes include an Invite integration example.
|
|
635
|
+
**Side menu.** When the source header shows Invite, the side menu (drawer) also gets an
|
|
636
|
+
"Invite" row that opens the same `source_invite` flow, hidden by the same availability flag as
|
|
637
|
+
the top-bar action. Do not hand-write it: once `source_invite` is declared in
|
|
638
|
+
`navigation.linkableScreens`, run `himi one-app provision --evidence-dir .himi/one-app --content .`
|
|
639
|
+
again. It reads the collected `invite-plan.json`, adds the row (`drawer_invite`) in front of the
|
|
640
|
+
first section header, and reports `invite.status`: `set`, `unchanged` (the source hides Invite, or
|
|
641
|
+
the row is there), `absent` (no side menu, no destination for it to follow because Invite never becomes the home screen, or the flow is not declared yet: the reason says so) or
|
|
642
|
+
`manual`. The label's source text is `Invite`; with the row the step also adds its Hebrew translation
|
|
643
|
+
(`tab.invite`) to the app's own `l10n/he.json` and lists the locales it wrote in `invite.translated` (a rerun
|
|
644
|
+
also repairs a missing or empty row while the drawer row is already there). Any
|
|
645
|
+
other locale catalog needs its row from `himi validate`'s missing-translation report.
|
|
633
646
|
The native nav worker stays alive across account switches, so it must not own
|
|
634
647
|
a fresh-load login continuation. The screen service uses shared confirmed
|
|
635
648
|
consumer auth continuation: its Share tap begins
|
|
@@ -1302,7 +1315,7 @@ section and the business description are read from the source. A section it has
|
|
|
1302
1315
|
(`recipes/*.json`) when the scaffold ships them; the current starter ships none, so today they take the fallback
|
|
1303
1316
|
below. A page with such modules gets ONE worker, `tier5-src/page-<screen>/index.ts`, that registers the modules
|
|
1304
1317
|
its sections use (blog list, programs carousel, inline events). A page that is only a template vertical (programs list,
|
|
1305
|
-
members, loyalty, shop, groups feed) opens the template's screen, and a groups feed passes the source's own title,
|
|
1318
|
+
members, loyalty, shop, groups feed, services list) opens the template's screen, and a groups feed passes the source's own title,
|
|
1306
1319
|
"Group list" label and post count. A data section never vanishes: when the shared modules cannot honor its settings
|
|
1307
1320
|
(featured-only lists, another post layout, events or groups limited to a chosen set) or its recipe is missing from the
|
|
1308
1321
|
scaffold, it keeps its place as the source's title and a "See All" button that opens the page showing that data,
|
|
@@ -1328,19 +1341,31 @@ cannot be inspected: call the builder in your generator and serialize the value
|
|
|
1328
1341
|
returns. Run the generator inside the app (after `npm install`), so
|
|
1329
1342
|
`@wix/himalaya/screens` resolves to the app's own dependency.
|
|
1330
1343
|
|
|
1331
|
-
###
|
|
1344
|
+
### Write the source's tabs
|
|
1332
1345
|
|
|
1333
|
-
The template's `navigation.
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1346
|
+
The template's `navigation.tabBar` has its own Home, Book and Profile tabs, and its `linkableScreens` carry the template's
|
|
1347
|
+
tab ids. `himi one-app generate` saves the source's tabs beside its screens (`.himi/one-app/gen/screens.json.tabs.json`: the first four
|
|
1348
|
+
pages, then a More tab), and once those screens are written with `himi template screens --upsert`, this step puts the tabs
|
|
1349
|
+
in the app:
|
|
1337
1350
|
|
|
1338
|
-
|
|
1339
|
-
-
|
|
1340
|
-
|
|
1351
|
+
```sh
|
|
1352
|
+
himi one-app apply-navigation --evidence-dir .himi/one-app --content . [--tabs <file>] [--dry-run]
|
|
1353
|
+
```
|
|
1354
|
+
|
|
1355
|
+
It writes `navigation.navKind` and `navigation.tabBar.items` (each tab's screen, label, and an icon from the icon catalog,
|
|
1356
|
+
with its filled variant when there is one) and repoints every `linkableScreens` tab id the old tabs left behind, as
|
|
1357
|
+
`himi validate --strict` would otherwise report with `nav-linkable-tab-unknown`:
|
|
1358
|
+
|
|
1359
|
+
- a screen a tab opens keeps that tab's id, and a screen reached from it follows its parent's tab;
|
|
1360
|
+
- a screen the More tab lists takes the More tab's id (only when there is a More tab);
|
|
1361
|
+
- any other screen takes `""`, the default stack.
|
|
1362
|
+
|
|
1363
|
+
A tab for a screen the app does not define is refused with `screen_missing` and nothing is written: write the generated
|
|
1364
|
+
screens first, and keep any template screen a tab opens when you trim. A source icon with no catalog match is reported
|
|
1365
|
+
under `gaps` and gets a neutral icon; choose a better one in `config.ts`. The drawer is not touched.
|
|
1341
1366
|
|
|
1342
|
-
Check `homeScreenId` and any `himi.open` target that still names a template screen (`"home"`, `"profile"`)
|
|
1343
|
-
|
|
1367
|
+
Check `homeScreenId` and any `himi.open` target that still names a template screen (`"home"`, `"profile"`):
|
|
1368
|
+
it must be a screen your `SCREENS` map defines, and the first tab's screen is the one the app should open on.
|
|
1344
1369
|
|
|
1345
1370
|
### Preserve the template features the source exposes
|
|
1346
1371
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1646.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": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "ebd7d82d917b742cfef3eb2492d0984c04bdf5fb43971d14b93b0776"
|
|
76
76
|
}
|