@wix/himalaya-cli 0.1751.0 → 0.1753.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.
Files changed (69) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +1 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +16 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +10 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/auth-providers/wix/src/index.d.ts +1 -1
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/auth-providers/wix/src/native-engine.d.ts +49 -3
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +16 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +27 -2
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +105 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +27 -2
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-auth/worker.mjs +133 -13
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-auth.mjs +139 -13
  15. package/dist/browser-plane/assets.json +5 -5
  16. package/dist/browser-plane/preview-deferred/{21f35a12bd94f4ab97a9a75453c4adcadc438daf024a4b1950d5c356c123bd01.bin → 2671d1cadb15daa5e59440f4c924e30c221ab3d405e8a56a0ab1cdbe4764af3d.bin} +1 -1
  17. package/dist/browser-plane/sw.js +1 -1
  18. package/dist/cli.mjs +3918 -3348
  19. package/dist/preview-assets.generated.bin +0 -0
  20. package/guides/app-config.md +1 -1
  21. package/guides/himi-json-output.md +25 -3
  22. package/guides/one-app-section-mappings.md +1 -1
  23. package/guides/push-cli-onboarding.md +13 -0
  24. package/guides/qa-builds.md +3 -1
  25. package/guides/releasing-with-himi-serve.md +51 -0
  26. package/guides/store-submission.md +46 -1
  27. package/guides/wix-business-context.md +15 -1
  28. package/package.json +2 -2
  29. package/templates/beauty-salon/recipes/programs-filters.json +94 -0
  30. package/templates/beauty-salon/recipes/programs-see-all.json +43 -0
  31. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +19 -7
  32. package/templates/beauty-salon/tier5-src/himi-branded-lite-order/index.ts +7 -2
  33. package/templates/branded-lite/recipes/programs-filters.json +94 -0
  34. package/templates/branded-lite/recipes/programs-see-all.json +43 -0
  35. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +19 -7
  36. package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +10 -1
  37. package/templates/branded-lite/tier5-src/himi-branded-lite-order/index.ts +7 -2
  38. package/templates/community-club/recipes/programs-filters.json +94 -0
  39. package/templates/community-club/recipes/programs-see-all.json +43 -0
  40. package/templates/community-club/tier5-src/_shared/programs-section.ts +19 -7
  41. package/templates/events-meetups/recipes/programs-filters.json +94 -0
  42. package/templates/events-meetups/recipes/programs-see-all.json +43 -0
  43. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +19 -7
  44. package/templates/fitness-gym/tier5-src/himi-fitcoach-goal/index.ts +3 -4
  45. package/templates/gym-fitness/recipes/programs-filters.json +94 -0
  46. package/templates/gym-fitness/recipes/programs-see-all.json +43 -0
  47. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +19 -7
  48. package/templates/gym-fitness/tier5-src/himi-branded-lite-order/index.ts +7 -2
  49. package/templates/nonprofit-cause/recipes/programs-filters.json +94 -0
  50. package/templates/nonprofit-cause/recipes/programs-see-all.json +43 -0
  51. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +19 -7
  52. package/templates/podcast-creator/recipes/programs-filters.json +94 -0
  53. package/templates/podcast-creator/recipes/programs-see-all.json +43 -0
  54. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +19 -7
  55. package/templates/portfolio-creative/recipes/programs-filters.json +94 -0
  56. package/templates/portfolio-creative/recipes/programs-see-all.json +43 -0
  57. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +19 -7
  58. package/templates/portfolio-creative/tier5-src/himi-branded-lite-order/index.ts +7 -2
  59. package/templates/restaurant/recipes/programs-filters.json +94 -0
  60. package/templates/restaurant/recipes/programs-see-all.json +43 -0
  61. package/templates/restaurant/tier5-src/_shared/programs-section.ts +19 -7
  62. package/templates/retail-store/recipes/programs-filters.json +94 -0
  63. package/templates/retail-store/recipes/programs-see-all.json +43 -0
  64. package/templates/retail-store/tier5-src/_shared/programs-section.ts +19 -7
  65. package/templates/retail-store/tier5-src/himi-branded-lite-order/index.ts +7 -2
  66. package/templates/wholesale-store/tier5-src/himi-branded-lite-order/index.ts +7 -2
  67. package/templates/yoga-studio/recipes/programs-filters.json +94 -0
  68. package/templates/yoga-studio/recipes/programs-see-all.json +43 -0
  69. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +19 -7
Binary file
@@ -137,7 +137,7 @@ does not include answers `module_not_linked` on device. Some components need one
137
137
  and `himi validate` errors on a screen that uses one the app does not declare.
138
138
  `presigned_upload.putFile` also requires `files` on the calling screen.
139
139
 
140
- App-level capability vocabulary: `camera`, `barcode_scanner`, `biometrics`, `secure_storage`, `share`, `push`, `file_picker`, `files`, `open_url`, `pdf`, `clipboard`, `theme`, `l10n`, `photos`, `presigned_upload`, `ui`, `calendar`, `contacts`, `tasks`, `audio_record`, `audio_record_background`, `calls`, `location`, `location_background`, `motion`, `health`, `media_playback`, `webview`, `browser_auth`, `haptic`, `himi_apps`, `iap`, `keyboard`, `torch`, `network`, `wix_cashier`, `wix_chat`, `live_activity`, `local_database`, `speech`, `speaker_diarization`, `system_intents`, `on_device_ai`, `text_recognition`, `translation`, `image_labeling`, `barcode_detection`, `text_embedding`, `entity_extraction`, `app_info`, `release_control`, `legacy_import`, `godot`, `base44`, `animation`, `video_playback`.
140
+ App-level capability vocabulary: `camera`, `barcode_scanner`, `biometrics`, `secure_storage`, `share`, `push`, `file_picker`, `files`, `open_url`, `pdf`, `clipboard`, `theme`, `l10n`, `photos`, `presigned_upload`, `ui`, `calendar`, `contacts`, `tasks`, `audio_record`, `audio_record_background`, `calls`, `location`, `location_background`, `motion`, `health`, `media_playback`, `webview`, `browser_auth`, `haptic`, `himi_apps`, `iap`, `keyboard`, `torch`, `network`, `wix_cashier`, `wix_chat`, `live_activity`, `local_database`, `speech`, `speaker_diarization`, `system_intents`, `on_device_ai`, `text_recognition`, `translation`, `image_labeling`, `barcode_detection`, `text_embedding`, `entity_extraction`, `app_info`, `release_control`, `legacy_import`, `godot`, `base44`, `animation`, `video_playback`, `apple_sign_in`, `google_sign_in`.
141
141
 
142
142
  ## What `himi validate` checks (7 passes)
143
143
 
@@ -1073,6 +1073,28 @@ A failure after your yes says what was already written on the Wix side, in `erro
1073
1073
  the recorded consent (`consentId`), and `packageName` only when this run saved the package; for `create-app`,
1074
1074
  `packageName` when this run saved it. Running the command again asks for your yes once more and goes on from there.
1075
1075
 
1076
+ ## `himi store google testers pool-add|pool-remove|pool-check` codes
1077
+
1078
+ The owner's side of Wix's closed-test pool: the pool's Google Group (`HIMI_POOL_TESTER_GROUP`) on the app's closed
1079
+ track. The result is one JSON line on stdout (`ok: true`, `onTrack`, `groups`, and for a change the gplay job's `jobId`
1080
+ and `status`), or a failure on stderr with one of these codes. None of them prints a token.
1081
+
1082
+ | Code | Meaning |
1083
+ |---|---|
1084
+ | `invalid_usage` | A missing or malformed op or flag: no package (neither `packageName` in `store/google-play.json` nor `--android-package`), a track that is not a closed track, a malformed group address or developer id, or `--yes` (there is none). Nothing ran. |
1085
+ | `node_too_old` | Needs Node 24 or newer. Nothing ran. |
1086
+ | `pool_group_unset` | `HIMI_POOL_TESTER_GROUP` is not set. Checked first, so nothing was read or changed. |
1087
+ | `confirmation_required` | `pool-add` or `pool-remove` with no terminal to type yes at. Nothing was read or changed. |
1088
+ | `google_signin_failed` | Google sign-in was declined, aborted or failed (`reason`). Nothing was changed. |
1089
+ | `not_signed_in` | `pool-check` with no stored Google sign-in: it only reads and never starts a sign-in. Run `pool-add` or sign in first. Nothing was read or changed. |
1090
+ | `developer_unknown` | Your Play developer account is not known: set `developerId` in `store/google-play.json` or pass `--developer <id>`. Nothing was changed. |
1091
+ | `track_missing` | The app has no closed track by that name. Nothing was changed. |
1092
+ | `pool_group_last` | `pool-remove` when the pool's group is the track's only group: Google Play's API cannot set an empty list, so the error gives the Play Console step instead. Nothing was changed. |
1093
+ | `plan_unexpected` | The job's plan held a change you were not shown (anything beyond the track's testers, or groups that changed since they were read), so it was not approved. Nothing was changed. |
1094
+ | `groups_changed` | The track's groups changed between the plan and your yes (someone edited them meanwhile), so nothing was approved or written. Run the command again. |
1095
+ | `consent_declined` | You did not type yes. The job stays planned and unapproved; nothing was changed. |
1096
+ | `job_failed` | The gplay job failed or did not read back; `jobId` and `status` say where it stopped (`gplay-node jobs show <jobId>`). |
1097
+
1076
1098
  ## `himi store google keygen|resign` codes
1077
1099
 
1078
1100
  The owner-signed path's upload key (`keygen <package>`) and signature (`resign <in.aab> --keystore <file.p12>
@@ -1092,8 +1114,8 @@ keystore password is never printed.
1092
1114
 
1093
1115
  `himi store app set|show --app <id> --site <msid>` prints one envelope. A refusal from the publishing
1094
1116
  service keeps the service's own code in `serverError` (for example `forbidden_app`,
1095
- `store_app_linked_to_other_site`, `store_app_site_taken`, `premium_plan_required`) and its HTTP
1096
- `status`; the CLI `code` is one of:
1117
+ `store_app_linked_to_other_site`, `store_app_site_taken`, `premium_plan_required`,
1118
+ `store_app_service_refused`) and its HTTP `status`; the CLI `code` is one of:
1097
1119
 
1098
1120
  | Code | Meaning |
1099
1121
  |---|---|
@@ -1103,6 +1125,6 @@ service keeps the service's own code in `serverError` (for example `forbidden_ap
1103
1125
  | `wix_token_unavailable` | The account Wix token (`wix token`) could not be minted; the publishing service needs it to verify you own the app and the site. Nothing was sent. |
1104
1126
  | `unauthorized` | The control token was refused or revoked (401). |
1105
1127
  | `forbidden` | Not your app, not your site, or the token may not act for the app (403); `serverError` says which. |
1106
- | `refused` | A rule refused it (another 4xx): the package name, another app holding the site's store app, the app linked to another site, no saved package name, the site's plan; `serverError` says which. |
1128
+ | `refused` | A rule refused it (another 4xx): the package name, another app holding the site's store app, the app linked to another site, no saved package name, the site's plan; `serverError` says which. `store_app_service_refused` is Wix's store-app service refusing for a reason the plane has no code for: `error` carries the service's own words (scrubbed), and a `set` it refused leaves the app unlinked, so another site can be tried. |
1107
1129
  | `control_unreachable` | The publishing service could not be reached. |
1108
1130
  | `request_failed` | Any other failure (5xx); `status` and `serverError` say which. |
@@ -79,7 +79,7 @@ The **Himalaya implementation** cell is blank for every unassigned row. Notes on
79
79
 
80
80
  | Source sectionDefinitionId | Source viewer component | Himalaya implementation | Placement / reuse | Class | Settings, actions and gaps |
81
81
  | --- | --- | --- | --- | --- | --- |
82
- | `achievements_list_section` | `wix-one-app-achievements.SectionMemberChallengesScreen` | [Programs list/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/apps/himi-branded-lite/dev/index.ts) + [programs worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Existing base; member list added | Partial | `himi_member_programs` (worker `himi-branded-lite-member-programs`) is the member list: each card carries the signed-in member's standing from Participants v3 / Join Applications v3 (Joined, Program complete, Program ended, Pending request, Request approved, Invited, Participation suspended), a progress bar once started, the price before joining, the "All programs / Programs I joined" and category filters, cursor paging and pull-to-refresh; an ended program the member never joined is dropped. Still open: the 2-card section mode with "See all" (`extraProps.limit=2`, inline composition), join / cancel-request actions on the card itself (the card opens the program, which owns them), and Pricing Plans benefits ("Included in your plan"). |
82
+ | `achievements_list_section` | `wix-one-app-achievements.SectionMemberChallengesScreen` | [Programs list/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/apps/himi-branded-lite/dev/index.ts) + [programs worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Existing base; member list added | Partial | `himi_member_programs` (worker `himi-branded-lite-member-programs`) is the member list: each card carries the signed-in member's standing from Participants v3 / Join Applications v3 (Joined, Program complete, Program ended, Pending request, Request approved, Invited, Participation suspended), a progress bar once started, the price before joining, the "All programs / Programs I joined" and category filters, cursor paging and pull-to-refresh; an ended program the member never joined is dropped. The migration generator now composes the list inline: the category and "All programs / Programs I joined" filters (hidden when `isFilterVisible` is false), the default 2-card mode (`extraProps.limit`, an authored limit or an infinite list is followed) and "See all" to `himi_programs` only while more programs exist. Still open: join / cancel-request actions on the card itself (the card opens the program, which owns them), and Pricing Plans benefits ("Included in your plan"). |
83
83
  | `achievements_carousel_section` | `wix-one-app-achievements.MemberChallengesCarousel` | [Programs data/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-programs/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") + [Core Carousel](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/src/builder.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Existing base; adaptation needed | Partial | Reuse the Programs feature and compose a carousel; preserve source extraProps.limit=5 and selected programs. No ready-made legacy Challenges carousel adapter is claimed. |
84
84
  | `achievements_participant_carousel_section` | `wix-one-app-achievements.ParticipantChallengesCarousel` | | | Empty | The public Programs catalog is not a member-participating-programs carousel. No verified consumer participant/progress list implementation was found. |
85
85
 
@@ -81,6 +81,19 @@ checks. The output separates the saved setup state, backend configuration readin
81
81
  Apple signing readiness, native build, Himi routing and device delivery. A server that
82
82
  cannot provide live verification is reported as `live_verification_unavailable`.
83
83
 
84
+ The same output has a `social` block: whether member Apple and Google sign-in will be
85
+ accepted by the site, read from the Branded record on `--refresh` only (without it every
86
+ check is `not_checked`). `appleReady`, `googleIosReady` and `googleAndroidReady` are
87
+ `true`, `false` or `null`; `null` means unknown or not required, never ready. Each check
88
+ in `social.checks` names what is missing with a `code`, such as `bundle_id_missing`,
89
+ `ios_client_missing`, `android_client_missing`, `ios_client_mismatch` or `sha1_missing`. `appleReady` is `true`
90
+ only when the Apple connection is on the bundle and the App Store profile stored on the site
91
+ grants Sign in with Apple. It is `false` when the connection is missing or on another bundle.
92
+ Otherwise it is `null` when there is no stored profile for the bundle (`apple_capability_unreadable`),
93
+ or when that profile lacks Sign in with Apple (`stored_profile_lacks_apple_sign_in`), because the
94
+ binary may be signed with another profile.
95
+ The social block never changes the push `ok` verdict.
96
+
84
97
  A setup response of HTTP 202 may mean `needs_attention`, not a running background job.
85
98
  After a timeout the CLI reads status once and reports an uncertain submission; it never
86
99
  repeats the provisioning POST automatically. Inspect status before retrying.
@@ -1448,7 +1448,9 @@ himi dist --app <app> --platform android --aab --wait --target bo
1448
1448
  already linked to another site (`409 store_app_linked_to_other_site`; moving needs Wix support,
1449
1449
  because a build may have locked the package name). It records a link (app → site, one site per
1450
1450
  app), holds the site's store app (`409 store_app_site_taken` if another app holds it), and saves
1451
- the package name; the response says `linked: true` the first time. Only the Google Play package
1451
+ the package name; the response says `linked: true` the first time. A `set` the service refuses
1452
+ outright (`400 store_app_service_refused`, `409 package_name_in_use`, …) leaves no link behind, so
1453
+ the app can be linked to another site. Only the Google Play package
1452
1454
  name is saved this way (`400 store_app_link_android_only` for iOS ids): App Store builds stay
1453
1455
  Containers-only. Before a link exists, the check and `GET /v1/admin/site/store-app` answer
1454
1456
  `409 store_app_requires_site_binding`, the code an unbound app always got.
@@ -219,6 +219,57 @@ himi-serve release visibility --app <app> public # flip without repu
219
219
  `"visibility": "unlisted"` in `himalaya.content.json`.) The verb is `POST
220
220
  /v1/admin/app-settings` — owner-role callable, scope-checked, audited.
221
221
 
222
+ ### The closed-test pool for Himi apps (RelOps, operator config)
223
+
224
+ himi serve puts a Himi app's Google closed test (12 testers x 14 days) on the
225
+ branded closed-testing pool (catalyst-server `mobile-apps-branded-google-closed-testing`, `ClosedTestingService`).
226
+ RelOps drives it with `himi store relops pool add|status|end [--all-himi]` (see the store-submission guide).
227
+
228
+ | Route | What |
229
+ |---|---|
230
+ | `POST /v1/admin/site/store-pool?app&site` | add: `CreateTestedApp(package, msid)`; 201 with the owner's step |
231
+ | `GET /v1/admin/site/store-pool?app&site` | status: installed/12, day N of 14, our state, the service status |
232
+ | `DELETE /v1/admin/site/store-pool?app&site` | end: `UpdateTestedAppStatus(CANCELLED)`; never a delete |
233
+ | `POST /v1/admin/store-pool/teardown` | resolve `adding` rows, cancel every active entry in Himi's table, wait (bounded, 45 s) for archive, report what is left (`pool end --all-himi`) |
234
+ | `POST /v1/admin/store-pool/sweep` | the daily sweep; the operator credential or a RelOps login |
235
+
236
+ The gate, every call audited (`reason: store_pool_refused`, the code in `storeAppStatus`, with the underlying cause on
237
+ 5xx): a RelOps login on `HIMI_RELOPS_ACCOUNTS` (anyone else, the owner included: 403 `relops_only`; the sweep also takes
238
+ the operator static credential). **The toggle `specs.himalaya.ClosedTestPool` gates new adds only** (off or
239
+ unconducted: 404 `store_pool_disabled`): the sweep, teardown, status and end run whenever Himi's table has entries, so a
240
+ toggle opened per user, or closed again, never strands an entry on the pool. Add and status need the owner's
241
+ `play-console` consent under 90 days (403 `relops_consent_required`); **end and teardown need no consent** (they only
242
+ cancel Himi's own entries, which reduces exposure, so RelOps can always end). Add holds at most `HIMI_POOL_MAX_ACTIVE`
243
+ (default 5) open entries (429 `store_pool_full`), reserved atomically on the index row before the service is called.
244
+ The package is always the Containers app's saved package for the site the app holds.
245
+
246
+ Himi's own table lives in cloudStore (`himi/store-pool/<app>/<msid>` plus the index row `himi/store-pool/index`): package,
247
+ msid, addedBy, addedAt, deadline (addedAt + 21 days), state `adding | active | ending | archived | stuck | failed`.
248
+ **No orphans:** an add writes the index (its cap slot) first, then an `adding` row, and only then calls the service; a
249
+ definite refusal frees the slot (`failed`), an ambiguous one (timeout, unavailable) keeps `adding` with the error. A
250
+ retry of the add resumes it (asks the service first), and the sweep resolves an `adding` row older than 10 minutes: the
251
+ service has the package for our site ⇒ adopted as active; none ⇒ `failed`. Every row write is a compare-and-swap on
252
+ the state the writer read. Archived and failed keys leave the index 30 days after they closed (the rows stay). Only
253
+ entries in the table are ever cancelled. A package the service already tracks: if it is ours (an archived Himi entry for
254
+ the same package and site) the add calls `RestartTestedApp`, otherwise it is refused 409 `tested_app_exists_not_ours`
255
+ and left alone; a restart the service refuses is 409 `store_pool_readd_unsupported`.
256
+
257
+ Errors: 503 `store_pool_service_unavailable` (the closed-testing service; `serviceCode` says which),
258
+ 503 `store_pool_table_write_failed` / `store_pool_table_read_failed` (cloudStore), 503 `store_pool_unconfigured`,
259
+ 409 `store_pool_state_changed` (a concurrent write won), 500 `store_pool_internal_error`.
260
+
261
+ **The sweep** cancels an active entry past its deadline, whose consent expired, whose app no longer holds the site, or
262
+ that is done (COMPLETED, or 12 installs on day 14), then follows each cancelled entry until the service sets
263
+ `archivedDate`. Not archived 3 days after it ended: state `stuck` and a Slack alert. serve has no scheduler of its own,
264
+ so the sweep is an internal route: schedule a daily `POST /v1/admin/store-pool/sweep` with the operator control token
265
+ (a Buildkite scheduled pipeline or a Wix cron job).
266
+
267
+ Config: `HIMI_POOL_MAX_ACTIVE`, `HIMI_POOL_TESTER_GROUP` (the Google Group owners add to track `alpha`),
268
+ `HIMI_POOL_ALERT_CHANNEL` (posted by the `MREBOT_SLACK_TOKEN` bot; unset: a log line). The closed-testing client
269
+ calls with Himalaya's service identity, which needs
270
+ `MOBILE_APPS.BRANDED_GOOGLE_CLOSED_TESTING_{CREATE,GET,UPDATE}` (restart uses UPDATE). It is not wired yet: until the spike confirms the
271
+ generated ambassador package, the routes answer 503 `store_pool_unconfigured` with the toggle on.
272
+
222
273
  ## Patching one item of a release
223
274
 
224
275
  A whole `himi push` sends every screen, bundle, tokens and app-config in one body. To change
@@ -352,6 +352,51 @@ As with `wix-submit`, `--app` and `--site` can come from the app folder's `wix`
352
352
  It shows the app name, the package name (a package name can never be reused or changed once an app exists), and each
353
353
  declaration Google asks you to accept when creating an app, then asks for a typed `yes`.
354
354
 
355
+ ### RelOps only: Wix's closed-test pool
356
+
357
+ A personal Play account needs a closed test of **12 testers for 14 days** before Google allows production. For an app
358
+ RelOps works on, Wix can run that test on its own pool of 12 test phones. Only Wix's release team can start it; you
359
+ cannot, and neither can any other customer. It needs your RelOps consent with the Google scopes (`relops request
360
+ --platform android`), under 90 days old.
361
+
362
+ RelOps runs (Wix staff only, not in the customer help):
363
+
364
+ ```
365
+ himi store relops pool add --app <app id> --site <msid>
366
+ himi store relops pool status --app <app id> --site <msid>
367
+ himi store relops pool end --app <app id> --site <msid>
368
+ ```
369
+
370
+ - `add` puts the app on the pool, using the package name saved for the site's app (never one typed on the command
371
+ line), and prints **your one step**: add the pool's Google Group to the testers of the closed track `alpha`, with
372
+ `himi store google testers pool-add` (below) or by hand in Play Console. The phones opt in after that.
373
+ - `status` shows how many phones installed the app (out of 12), which day of 14 it is, and the entry's state.
374
+ - `end` stops the test and prints **your step**: remove the pool's Google Group from the track, with
375
+ `himi store google testers pool-remove`. The phones uninstall the app. A test is never deleted, only cancelled, so its history stays. RelOps can always end a test, even after
376
+ your consent expired.
377
+
378
+ Your steps, on your own computer and with your own Google sign-in (a RelOps seat cannot change your testers):
379
+
380
+ ```
381
+ export HIMI_POOL_TESTER_GROUP=<the pool group address RelOps gives you>
382
+ himi store google testers pool-add [--dir <app>] [--track alpha]
383
+ himi store google testers pool-check [--dir <app>] [--track alpha]
384
+ himi store google testers pool-remove [--dir <app>] [--track alpha]
385
+ ```
386
+
387
+ - `pool-add` reads the track's Google Groups, plans a `gplay.closedTest.setup` job with the same groups plus the pool's,
388
+ shows you the change and applies it only after your typed `yes` (there is no `--yes`). Then it reads the track back.
389
+ - `pool-remove` does the same with the pool's group taken out. Every other group you have stays. If the pool's group is
390
+ the track's only group, it stops and gives you the Play Console step instead: Google Play's API cannot set an empty
391
+ group list.
392
+ - `pool-check` only reads: it says whether the pool's group is on the track.
393
+ - The app comes from `packageName` (and `developerId`) in the app folder's `store/google-play.json`, or
394
+ `--android-package` and `--developer`. With `HIMI_POOL_TESTER_GROUP` unset, each of them stops before reading
395
+ anything. Codes: `himi docs himi-json-output`.
396
+
397
+ A test that is not ended is stopped for you after 21 days, when your consent expires, or when the app no longer holds
398
+ the site's store app. The pool takes only a few apps at a time; when it is full, RelOps is told to try later.
399
+
355
400
  ### Limits
356
401
 
357
402
  - **The owner's yes is a typed yes on a terminal.** No `himi mcp` tool can give it, so a chat message that says "the
@@ -359,7 +404,7 @@ declaration Google asks you to accept when creating an app, then asks for a type
359
404
  the yes as a strong habit, not a lock.
360
405
  - **Closed testing on a personal account.** Google requires a personal account to run a closed test with **12
361
406
  testers for 14 days** before it will allow production. An organization account is exempt. The plan says this up
362
- front. You find your own testers; Wix's tester pool is used only for apps Wix submits for you.
407
+ front. You find your own testers; Wix's tester pool is used only for RelOps apps (see "RelOps only: Wix's closed-test pool").
363
408
  - **Nothing has run live yet.** The Google steps are tested against fakes, not a real Play account. The first real
364
409
  run may find problems.
365
410
  - A reply to a policy issue cannot be unsent, and a package name cannot be changed.
@@ -322,12 +322,26 @@ Three optional parts of a site shell's `site` block add or trim native chrome wi
322
322
 
323
323
  - **`topBar.actions`**: up to three trailing icons, served app-wide as `navigation.topBarDefault` (`siteTopBarDefault(site)`), so every screen without a top bar of its own shows them. `label` is the icon's accessible name. A `target` is exactly one of:
324
324
  - `page`: a site page id of any placement. An `overflow` page has no row but can still be a target, for example the site's cart page.
325
- - `screen`: a native page's `screenId`, or a native screen the shell serves itself (`himi_notification_settings`, and the Account screen when a member binding is set).
325
+ - `screen`: a native page's `screenId`, or a native screen the shell serves itself (`himi_notification_settings`, and the Account screen and the member screens below when a member binding is set).
326
326
  - `url`: an https page off the site. The icon opens the same "Open in browser?" prompt an off-site link in a site page shows. A URL on the site is refused: declare it as a page instead.
327
327
 
328
328
  A target that is a tab switches to that tab (`himi.tab`). Any other target opens its screen (`himi.open`), and so does every target under the `drawer` and `single` layouts, which have no tab bar. Under `menuSource: "runtime"`, a site page target is always opened rather than switched to, because the site's own menu may move that page out of the tab bar on a later launch. On the page or native screen an icon opens, the bar leaves that icon out, so tapping it cannot push a second copy of it. A native screen that draws a top bar of its own keeps it as the author wrote it. A `url` with a `.` or `..` path segment is refused.
329
329
  - **`nativePages`**: the author's own Tier-5 screens as rows. Each one is a `tab`, `drawer` or `overflow` entry (an `overflow` entry is linkable only). They join the tab bar, drawer and rail with the site's pages, after the page named by `after` (default: after all of them, and never before `home`). Tabs count toward the four-tab limit together with the site's tabs. The WebView keep-alive cap only concerns site tabs, because a native tab keeps no WebView. Every native page is in `linkableScreens`. It is private by default: a link from outside the app (a website link, another app) to `<scheme>://screen/<screenId>` opens it only when the page sets `"public": true`. `"requiresAuth": true` implies public and signs the user in first. It needs a sign-in that gates deep links, which today means a Wix member binding. Any other app refuses it, a Base44 site included, rather than open the screen signed out. A native page that places the built-in Notifications or Account screen stays public unless it sets `"public": false`, which turns off outside links to that screen. A public native page opens on its tab when it has one. Under the `drawer`, `single` and one-tab `auto` layouts, where there is no tab to select, the link pushes it instead. Account deletion (`himi_delete_account`) cannot be placed. An id must differ from every site page's id and must not start with `drawer_`. A `screenId` must not start with `site_`.
330
330
 
331
+ **Member screens (Brandy, `wix` binding).** A Brandy app whose contract binds a Wix member client (`wix`) also serves Branded Lite's own member screens, with Branded Lite's builders and workers: the activity feed `himi_notifications`, the inbox `himi_inbox`, My Orders `himi_orders` and My Subscriptions `himi_my_subscriptions`. A native page may place any of them, and a `{ screen }` icon may open one that a native page places (an `overflow` page adds no row). The Account screen links to all of them. The screens they open (an order, a thread, a subscription, the sign-in form) are served too but cannot be placed. A visitor-only contract refuses a native page or icon that names a member screen, saying a `wix` binding is missing. Cart and checkout are not served yet: they need a visitor session shared with the website. The wishlist (`himi_saved_products`) is not served: it lists products saved on native product screens, which a site shell does not have. Inside these screens, a link to a screen a site shell does not serve goes to the website instead: Chat with us opens the site's contact page, Browse the shop and Browse plans open the site's shop and plans pages (a tab is switched to), and each is removed when the site has no such page. Reorder, which fills the native cart, is removed. A sensible default for a member app is Account and Notifications as drawer rows and a bell that opens Notifications:
332
+
333
+ ```json
334
+ "nativePages": [
335
+ { "id": "my_account", "screenId": "himi_account", "title": "Account", "icon": "person", "placement": "drawer" },
336
+ { "id": "activity", "screenId": "himi_notifications", "title": "Notifications", "icon": "bell", "placement": "drawer", "public": true }
337
+ ],
338
+ "topBar": { "actions": [
339
+ { "id": "notifications", "icon": "bell", "label": "Notifications", "target": { "screen": "himi_notifications" } }
340
+ ] }
341
+ ```
342
+
343
+ With `himi_notifications` placed, the built-in Notifications row is labelled Notification settings. The page ids avoid `account` and `notifications`, which the built-in rows reserve.
344
+
331
345
  The contract only places a native page. Its descriptor and worker come from the content package's own `dev/index.ts`, which checks that every placed screen is one it builds (`assertSiteNativePagesBuilt`), so `himi build`, `validate`, `render` and `push` refuse a native page whose screen is missing. The shared contract parser and the dist projection cannot see the content, so they check only the shape, the ids and the targets. Both fields survive `himi push` → `himi dist --shell brandy`: the projection keeps them with the rest of the site block, and a top-bar URL must also pass the bake-safe URL rule (https, with no query string).
332
346
 
333
347
  - **`pageTitle`** decides where a site page's screen draws its title in the top bar. `"auto"` (the default) draws none on a page that a tab, rail or drawer row opens, because the row's label already names it. It still draws one on an `overflow` page and on the page a link opens (`site_page`, which shows the page's own document title). `"always"` draws every title, which was the only behaviour before this setting, and `"never"` draws none. Under `menuSource: "runtime"`, `"auto"` keeps every title: the live menu can drop a page's row, so the build cannot know which titles a row repeats. A page's own `showTitle: true | false` wins over the rule. A hidden title is `topBar.titleDisplay: "hidden"` on that screen: nothing is drawn and the space is collapsed, but screen readers still announce the title as the screen's name. Because a screen's own `topBar` replaces `navigation.topBarDefault`, such a screen also carries the `topBar.actions` icons, so they stay on it. Website pages in a native app (`--site-pages`) keep their titles unless the block sets `pageTitle`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1751.0",
3
+ "version": "0.1753.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": "a2c172ddd85b96143f79e91b6d24f318ea40053308c64808a194f4e5"
85
+ "falconPackageHash": "19108f681f74deefec76fc586114d4510c9443b2d300fe3ccdd257ba"
86
86
  }
@@ -0,0 +1,94 @@
1
+ {
2
+ "_recipe": "The programs list's two filters: the participant-status segmented control (All programs / Programs I joined; hidden for a guest) and the category chips (All categories first; hidden when the site has no categories). Service: registerProgramsSection(svc,{layout:'list'}); the worker owns the options and hides a control the source turns off (options.filters). Also the list's empty line (a category or the joined filter with no programs), hidden while there are cards.",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered with registerProgramsSection",
5
+ "id": "unique node id prefix (e.g. the screen id)",
6
+ "statusLabel": "accessibility label of the status control",
7
+ "categoryLabel": "accessibility label of the category chips",
8
+ "allProgramsLabel": "fallback label of the first status option",
9
+ "joinedLabel": "fallback label of the second status option",
10
+ "allCategoriesLabel": "fallback label of the first category chip"
11
+ },
12
+ "node": {
13
+ "id": "{{id}}.filters",
14
+ "body": {
15
+ "package": "himalaya",
16
+ "type": "VStack",
17
+ "props": {
18
+ "spacing": 10,
19
+ "alignment": "leading",
20
+ "children": [
21
+ {
22
+ "id": "{{id}}.status_filter",
23
+ "body": {
24
+ "package": "himalaya",
25
+ "type": "SegmentedControl",
26
+ "props": {
27
+ "options": [
28
+ {
29
+ "id": "all",
30
+ "label": "{{allProgramsLabel}}"
31
+ },
32
+ {
33
+ "id": "joined",
34
+ "label": "{{joinedLabel}}"
35
+ }
36
+ ],
37
+ "optionsPath": "$service:{{svc}}.statusOptions",
38
+ "selectedId": "$service:{{svc}}.statusFilter",
39
+ "onChange": {
40
+ "actionId": "tier5.{{svc}}.setStatus"
41
+ }
42
+ }
43
+ },
44
+ "modifiers": {
45
+ "accessibilityLabel": "{{statusLabel}}",
46
+ "hiddenPath": "$service:{{svc}}.hideStatusFilter"
47
+ }
48
+ },
49
+ {
50
+ "id": "{{id}}.category_filter",
51
+ "body": {
52
+ "package": "himalaya",
53
+ "type": "FilterChips",
54
+ "props": {
55
+ "chips": [
56
+ {
57
+ "id": "",
58
+ "label": "{{allCategoriesLabel}}"
59
+ }
60
+ ],
61
+ "optionsPath": "$service:{{svc}}.categoryChips",
62
+ "selectedIds": [
63
+ "$service:{{svc}}.categoryId"
64
+ ],
65
+ "onChange": {
66
+ "actionId": "tier5.{{svc}}.setCategory"
67
+ }
68
+ }
69
+ },
70
+ "modifiers": {
71
+ "accessibilityLabel": "{{categoryLabel}}",
72
+ "hiddenPath": "$service:{{svc}}.hideCategoryFilter"
73
+ }
74
+ },
75
+ {
76
+ "id": "{{id}}.empty",
77
+ "body": {
78
+ "package": "himalaya",
79
+ "type": "Text",
80
+ "props": {
81
+ "text": "$service:{{svc}}.emptyText",
82
+ "style": "body",
83
+ "color": "textSecondary"
84
+ }
85
+ },
86
+ "modifiers": {
87
+ "hiddenPath": "$service:{{svc}}.noEmpty"
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "_recipe": "See all button for an INLINE programs list (a limited number of cards); shown only while more programs exist than the cards show. Omit when the scaffold has no himi_programs screen.",
3
+ "_placeholders": {
4
+ "svc": "service name registered with registerProgramsSection (inlineLimit set)",
5
+ "id": "unique node id prefix for this section",
6
+ "seeAllLabel": "button title",
7
+ "seeAllScreen": "screen id the button opens, himi_programs"
8
+ },
9
+ "node": {
10
+ "id": "{{id}}.seeall",
11
+ "body": {
12
+ "package": "himalaya",
13
+ "type": "VStack",
14
+ "props": {
15
+ "spacing": 0,
16
+ "alignment": "leading",
17
+ "children": [
18
+ {
19
+ "id": "{{id}}.seeall.button",
20
+ "body": {
21
+ "package": "himalaya",
22
+ "type": "Button",
23
+ "props": {
24
+ "title": "{{seeAllLabel}}",
25
+ "style": "secondary",
26
+ "size": "md",
27
+ "fullWidth": true,
28
+ "action": {
29
+ "actionId": "himi.open",
30
+ "params": { "screenId": "{{seeAllScreen}}" }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ ]
36
+ }
37
+ },
38
+ "modifiers": {
39
+ "padding": { "leading": 0, "trailing": 0, "top": 8, "bottom": 8 },
40
+ "hiddenPath": "$service:{{svc}}.noSeeAll"
41
+ }
42
+ }
43
+ }
@@ -113,6 +113,7 @@ export interface State {
113
113
  categoryId: string;
114
114
  categoryChips: Option[];
115
115
  hideCategoryFilter: boolean;
116
+ noSeeAll: boolean;
116
117
  hidePriceRetry: boolean;
117
118
  priceRetryText: string;
118
119
  summary: string;
@@ -339,7 +340,7 @@ function programContent(o: { program: WixProgram; participant?: WixParticipant;
339
340
  // ── Reads ────────────────────────────────────────────────────────────────────
340
341
 
341
342
  interface Scope { email: string; memberId: string; scope: string }
342
- interface PageMeta extends Record<string, unknown> { email: string; memberId: string; scope: string; needsSignIn: boolean; joinedFilter: boolean }
343
+ interface PageMeta extends Record<string, unknown> { email: string; memberId: string; scope: string; needsSignIn: boolean; joinedFilter: boolean; more?: boolean }
343
344
 
344
345
  type Participations = Map<string, WixParticipant>;
345
346
  /** The member's participations for this scope — walked once per first page, reused by its later pages. */
@@ -457,6 +458,9 @@ export interface ProgramsSectionOptions {
457
458
  order?: string[];
458
459
  /** list: hide a filter the source section turns off. */
459
460
  filters?: { status?: boolean; category?: boolean };
461
+ /** list: the section's inline mode: show this many cards, no paging, and offer See all while more programs exist
462
+ * (the source's `extraProps.limit`). Absent: the list follows the cursor to the last program. */
463
+ inlineLimit?: number;
460
464
  }
461
465
 
462
466
  const CAROUSEL_LIMIT = 5;
@@ -469,6 +473,7 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
469
473
  const display: Display = { card: carousel, duration: options.showDuration !== false, participants: options.showParticipants !== false };
470
474
  const showPrice = options.showPrice !== false;
471
475
  const limit = Math.min(PAGE_SIZE, Math.max(1, Math.floor(options.limit ?? CAROUSEL_LIMIT)));
476
+ const inlineLimit = !carousel && options.inlineLimit !== undefined && options.inlineLimit > 0 ? Math.min(PAGE_SIZE, Math.floor(options.inlineLimit)) : 0;
472
477
  const order = (options.order ?? []).filter((id) => typeof id === "string" && id).slice(0, ORDER_LIMIT);
473
478
  /** The promoted programs, in their configured order. A failed read promotes nothing: the default order stands. */
474
479
  async function promotedPrograms(): Promise<WixProgram[]> {
@@ -537,13 +542,18 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
537
542
  // An ended program the member never joined is not theirs to see (the One App's visibility rule) —
538
543
  // applied only when the member's participations are known, so a degraded read hides nothing they joined.
539
544
  .filter((p) => !isEnded(p) || participations.has(p.id) || !participationsKnown);
540
- const programs = carousel ? visible.slice(0, limit) : visible;
545
+ const programs = carousel ? visible.slice(0, limit) : inlineLimit ? visible.slice(0, inlineLimit) : visible;
541
546
  const pagingMetadata = response.pagingMetadata as { hasNext?: boolean; cursors?: { next?: string | null } } | undefined;
542
547
  // A last page may still carry a cursor: `hasNext: false` wins, as in the catalog bundle.
543
- const nextCursor = carousel ? "" : pagingMetadata?.hasNext === false ? "" : pagingMetadata?.cursors?.next ?? "";
544
- if (!carousel && pagingMetadata?.hasNext && !nextCursor) throw new Error("Programs response is missing its next-page cursor");
545
- if (!programs.length && nextCursor && nextCursor !== pageCursor) {
546
- if (read + 1 < MAX_EMPTY_READS) { pageCursor = nextCursor; continue; }
548
+ const readCursor = carousel ? "" : pagingMetadata?.hasNext === false ? "" : pagingMetadata?.cursors?.next ?? "";
549
+ // An inline list never hands a cursor to the screen, but it still reads on past a page that held nothing to show.
550
+ const nextCursor = inlineLimit ? "" : readCursor;
551
+ if (!carousel && !inlineLimit && pagingMetadata?.hasNext && !nextCursor) throw new Error("Programs response is missing its next-page cursor");
552
+ // An inline list reads one page and says whether programs remain past what it shows: that is the See all.
553
+ const pageMore = visible.length > inlineLimit || pagingMetadata?.hasNext === true || !!readCursor;
554
+ if (inlineLimit) metadata.more = pageMore;
555
+ if (!programs.length && readCursor && readCursor !== pageCursor) {
556
+ if (read + 1 < MAX_EMPTY_READS) { pageCursor = readCursor; continue; }
547
557
  // Past the cap, end the list rather than hand back an empty page with a cursor nothing can load.
548
558
  return { items: [], nextCursor: "", metadata };
549
559
  }
@@ -570,7 +580,7 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
570
580
  status: "loading", rows: [], isLoading: true, notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true,
571
581
  emptyText: "", errorText: "", identityLine: "", needsSignIn: false, noSignIn: true, nextCursor: "", noMore: true, noPageError: true, loadingMore: false,
572
582
  statusFilter: "all", statusOptions: [], hideStatusFilter: true, categoryId: "", categoryChips: [], hideCategoryFilter: true,
573
- hidePriceRetry: true, priceRetryText: "", summary: "", hasRows: false, noRows: true,
583
+ noSeeAll: true, hidePriceRetry: true, priceRetryText: "", summary: "", hasRows: false, noRows: true,
574
584
  };
575
585
 
576
586
  /** A row shows a price when the section does and the member is not in or past the program. */
@@ -631,6 +641,8 @@ export function registerProgramsSection(serviceName: string, options: ProgramsSe
631
641
  hideStatusFilter: options.filters?.status === false || (!member && statusFilter !== "joined"),
632
642
  categoryId, categoryChips,
633
643
  hideCategoryFilter: options.filters?.category === false || categoriesFailed || !categories || categories.length === 0,
644
+ // See all only for an inline (limited) list that has programs past the cards it shows.
645
+ noSeeAll: !(inlineLimit && status === "ready" && meta.more === true),
634
646
  hidePriceRetry: status !== "ready" || !views.some((view) => view && view.route !== "disabled" && (scopeIncomplete || view.retryable)),
635
647
  priceRetryText: copyParam("memberPrograms.priceRetryText", "Some prices could not be loaded."),
636
648
  // The rows loaded so far are not the catalog: a count is only true once the last page is in.
@@ -391,15 +391,20 @@ const svc = defineService<State, {
391
391
  // survives a failed load, and registering from there would subscribe to a record
392
392
  // this member's ownership was never established for — which `findOwnedOrder` and
393
393
  // `assertOrderMember` exist to establish.
394
- follow: (state) => {
394
+ // `scheme`: the host app's own URL scheme (a site shell serving this screen registers its customer's,
395
+ // not Branded Lite's), so the activity's tap returns to the app that started it. Absent or malformed:
396
+ // Branded Lite's.
397
+ follow: (state, arg?: unknown) => {
395
398
  if (state.liveTracking || !state.id || state.hideContent) return undefined;
399
+ const requested = (arg as { scheme?: unknown } | undefined)?.scheme;
400
+ const scheme = typeof requested === "string" && /^[a-z][a-z0-9+.-]*$/i.test(requested) ? requested : "himalaya-himi-branded-lite";
396
401
  liveSession = beginLiveSession({
397
402
  activityType: "member_order",
398
403
  entityType: "order",
399
404
  entityId: state.id,
400
405
  headline: state.title || copyParam("order.followHeadline", "Your order"),
401
406
  detail: [state.fulfillmentStatus, state.total].filter(Boolean).join(" · "),
402
- deepLink: `himalaya-himi-branded-lite://screen/himi_order?id=${encodeURIComponent(state.id)}`,
407
+ deepLink: `${scheme}://screen/himi_order?id=${encodeURIComponent(state.id)}`,
403
408
  ttlSeconds: FOLLOW_TTL_SECONDS,
404
409
  startingNote: copyParam("order.followStarting", "Starting…"),
405
410
  unavailableNote: copyParam("order.followUnavailable", "This device has no live surface."),
@@ -0,0 +1,94 @@
1
+ {
2
+ "_recipe": "The programs list's two filters: the participant-status segmented control (All programs / Programs I joined; hidden for a guest) and the category chips (All categories first; hidden when the site has no categories). Service: registerProgramsSection(svc,{layout:'list'}); the worker owns the options and hides a control the source turns off (options.filters). Also the list's empty line (a category or the joined filter with no programs), hidden while there are cards.",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered with registerProgramsSection",
5
+ "id": "unique node id prefix (e.g. the screen id)",
6
+ "statusLabel": "accessibility label of the status control",
7
+ "categoryLabel": "accessibility label of the category chips",
8
+ "allProgramsLabel": "fallback label of the first status option",
9
+ "joinedLabel": "fallback label of the second status option",
10
+ "allCategoriesLabel": "fallback label of the first category chip"
11
+ },
12
+ "node": {
13
+ "id": "{{id}}.filters",
14
+ "body": {
15
+ "package": "himalaya",
16
+ "type": "VStack",
17
+ "props": {
18
+ "spacing": 10,
19
+ "alignment": "leading",
20
+ "children": [
21
+ {
22
+ "id": "{{id}}.status_filter",
23
+ "body": {
24
+ "package": "himalaya",
25
+ "type": "SegmentedControl",
26
+ "props": {
27
+ "options": [
28
+ {
29
+ "id": "all",
30
+ "label": "{{allProgramsLabel}}"
31
+ },
32
+ {
33
+ "id": "joined",
34
+ "label": "{{joinedLabel}}"
35
+ }
36
+ ],
37
+ "optionsPath": "$service:{{svc}}.statusOptions",
38
+ "selectedId": "$service:{{svc}}.statusFilter",
39
+ "onChange": {
40
+ "actionId": "tier5.{{svc}}.setStatus"
41
+ }
42
+ }
43
+ },
44
+ "modifiers": {
45
+ "accessibilityLabel": "{{statusLabel}}",
46
+ "hiddenPath": "$service:{{svc}}.hideStatusFilter"
47
+ }
48
+ },
49
+ {
50
+ "id": "{{id}}.category_filter",
51
+ "body": {
52
+ "package": "himalaya",
53
+ "type": "FilterChips",
54
+ "props": {
55
+ "chips": [
56
+ {
57
+ "id": "",
58
+ "label": "{{allCategoriesLabel}}"
59
+ }
60
+ ],
61
+ "optionsPath": "$service:{{svc}}.categoryChips",
62
+ "selectedIds": [
63
+ "$service:{{svc}}.categoryId"
64
+ ],
65
+ "onChange": {
66
+ "actionId": "tier5.{{svc}}.setCategory"
67
+ }
68
+ }
69
+ },
70
+ "modifiers": {
71
+ "accessibilityLabel": "{{categoryLabel}}",
72
+ "hiddenPath": "$service:{{svc}}.hideCategoryFilter"
73
+ }
74
+ },
75
+ {
76
+ "id": "{{id}}.empty",
77
+ "body": {
78
+ "package": "himalaya",
79
+ "type": "Text",
80
+ "props": {
81
+ "text": "$service:{{svc}}.emptyText",
82
+ "style": "body",
83
+ "color": "textSecondary"
84
+ }
85
+ },
86
+ "modifiers": {
87
+ "hiddenPath": "$service:{{svc}}.noEmpty"
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ }
93
+ }
94
+ }