@wix/himalaya-cli 0.1738.0 → 0.1739.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 +1 -0
- package/guides/tier-5-add-a-screen.md +12 -0
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -29216,6 +29216,7 @@ var init_page_worker = __esm({
|
|
|
29216
29216
|
var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
|
|
29217
29217
|
var init_icon_catalog_generated = __esm({
|
|
29218
29218
|
"../../core/ts/src/icon-catalog.generated.ts"() {
|
|
29219
|
+
"use strict";
|
|
29219
29220
|
init_define_HHP_CATALOG();
|
|
29220
29221
|
ICON_VIEW_BOX = 24;
|
|
29221
29222
|
ICON_STROKE_WIDTH = 2;
|
|
@@ -1089,6 +1089,18 @@ them from the store like real data. Every screen that shows the record reads the
|
|
|
1089
1089
|
each other screen that shows the record and assert the changed value there (`himi docs
|
|
1090
1090
|
himi-test`, "Prove a local mutation survives a cold visit").
|
|
1091
1091
|
|
|
1092
|
+
**A count or summary of those records is computed from the store, never written down.** A
|
|
1093
|
+
line like "3 activities · 4.5 km", a total, a "2 of 5 done" or a badge count describes records
|
|
1094
|
+
the user can change, so the screen that shows it computes it from the records every time it
|
|
1095
|
+
reads them: in `load`, in the `"return"` refresh, and in any of its own actions that changes them.
|
|
1096
|
+
Use one helper for all three, so no path leaves the old value on screen. Never put it on the
|
|
1097
|
+
sample data as a ready-made string or number (`summary: "3 activities"`, `count: 3`): the first
|
|
1098
|
+
change makes it wrong, and nothing checks that it was right to begin with. Neither `himi validate`
|
|
1099
|
+
nor `himi test` can catch a stale summary, because to them it is only text. Assert it in the same
|
|
1100
|
+
`coldVisits` journey: change a record, open the screen that summarises it, and check every part
|
|
1101
|
+
the change can move (both the count and the distance in "3 activities · 4.5 km"), or the whole
|
|
1102
|
+
rendered line.
|
|
1103
|
+
|
|
1092
1104
|
### App services: state that outlives every screen
|
|
1093
1105
|
|
|
1094
1106
|
An app service is a `defineService` in the app's one app-level bundle, which the shell
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1739.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": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "bb30d0f036568b2a2927d255bf646a87107fde47a6fc77f3a4e60063"
|
|
86
86
|
}
|