@wix/himalaya-cli 0.1040.0 → 0.1042.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 +33 -17
- package/dist/preview-assets.generated.bin +0 -0
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +42 -42
- package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/beauty-salon/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/beauty-salon-owner/config.ts +2 -2
- package/templates/beauty-salon-owner/dev/index.ts +287 -260
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
- package/templates/branded-lite/dev/index.ts +175 -175
- package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/branded-lite/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/community-club/dev/index.ts +28 -28
- package/templates/community-club/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/community-club/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/community-club-owner/config.ts +2 -2
- package/templates/community-club-owner/dev/index.ts +287 -260
- package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/community-club-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/community-club-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/community-club-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
- package/templates/community-club-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/community-club-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
- package/templates/events-meetups/dev/index.ts +21 -21
- package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/events-meetups/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/events-meetups-owner/config.ts +2 -2
- package/templates/events-meetups-owner/dev/index.ts +259 -208
- package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/events-meetups-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/events-meetups-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/gym-fitness/dev/index.ts +49 -49
- package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/gym-fitness/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/gym-fitness-owner/config.ts +2 -2
- package/templates/gym-fitness-owner/dev/index.ts +294 -285
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
- package/templates/nonprofit-cause/dev/index.ts +28 -28
- package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/nonprofit-cause/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/nonprofit-cause-owner/config.ts +2 -2
- package/templates/nonprofit-cause-owner/dev/index.ts +266 -233
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
- package/templates/owner-lite/config.ts +2 -2
- package/templates/owner-lite/dev/index.ts +295 -287
- package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/owner-lite/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/owner-lite/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/owner-lite/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/owner-lite/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
- package/templates/owner-lite/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/owner-lite/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
- package/templates/owner-lite/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
- package/templates/podcast-creator/dev/index.ts +28 -28
- package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/podcast-creator/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/podcast-creator-owner/config.ts +2 -2
- package/templates/podcast-creator-owner/dev/index.ts +287 -260
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
- package/templates/portfolio-creative/dev/index.ts +35 -35
- package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/portfolio-creative/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/portfolio-creative-owner/config.ts +2 -2
- package/templates/portfolio-creative-owner/dev/index.ts +287 -260
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
- package/templates/restaurant/dev/index.ts +21 -21
- package/templates/restaurant/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/restaurant/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/restaurant-owner/config.ts +2 -2
- package/templates/restaurant-owner/dev/index.ts +294 -285
- package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/restaurant-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/restaurant-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
- package/templates/retail-store/dev/index.ts +21 -21
- package/templates/retail-store/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/retail-store/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/retail-store-owner/config.ts +2 -2
- package/templates/retail-store-owner/dev/index.ts +280 -235
- package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/retail-store-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/retail-store-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
- package/templates/yoga-studio/dev/index.ts +42 -42
- package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/yoga-studio/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/yoga-studio-owner/config.ts +2 -2
- package/templates/yoga-studio-owner/dev/index.ts +266 -233
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +2 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/collection-service.ts +6 -1
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-account.ts +45 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
|
@@ -168,6 +168,8 @@ export function projectCollection(source: CollectionRow[], config: CollectionCon
|
|
|
168
168
|
items: visible.map(row => ({ ...row, collectionId: collectionId(row), collectionTitle: collectionTitle(row, config),
|
|
169
169
|
collectionMeta: [...new Set((config.metadata ?? ['total', 'statusLabel', 'price', 'priceLine', 'dateLine', 'meta']).filter(key => key !== config.subtitle).map(key => scalar(row[key])).filter(Boolean))].join(' · '),
|
|
170
170
|
collectionSelectLabel: prefs.selectedIds.includes(collectionId(row)) ? 'Selected' : 'Select',
|
|
171
|
+
// The save toggle names the action it WILL take (the service localizes it).
|
|
172
|
+
collectionSaveLabel: prefs.savedIds.includes(collectionId(row)) ? 'Remove from saved' : 'Save',
|
|
171
173
|
collectionSubtitle: scalar(row[config.subtitle ?? '']) || scalar(row.subtitle) || scalar(row.description) || scalar(row.meta),
|
|
172
174
|
collectionImage: scalar(row[config.image ?? '']), collectionNoImage: !scalar(row[config.image ?? '']), collectionHasImage: !!scalar(row[config.image ?? '']),
|
|
173
175
|
collectionSaved: prefs.savedIds.includes(collectionId(row)), collectionNotSaved: !prefs.savedIds.includes(collectionId(row)), collectionSelected: prefs.selectedIds.includes(collectionId(row)),
|
|
@@ -123,7 +123,12 @@ export function decorateCollection(name: string, def: { state: State; actions?:
|
|
|
123
123
|
pendingFilter = '';
|
|
124
124
|
}
|
|
125
125
|
const projected = projectCollection(rows, config, prefs, !!backend && config.backendQuery === true, known);
|
|
126
|
-
projected.items.forEach(row => {
|
|
126
|
+
projected.items.forEach(row => {
|
|
127
|
+
row.collectionSelectLabel = row.collectionSelected ? copyParam('collection.selected', 'Selected') : copyParam('collection.select', 'Select');
|
|
128
|
+
// the save toggle names the action it WILL take for this row. The
|
|
129
|
+
// old static "Save / unsave" made the owner work out the row's state.
|
|
130
|
+
row.collectionSaveLabel = row.collectionSaved ? copyParam('collection.unsave', 'Remove from saved') : copyParam('collection.save', 'Save');
|
|
131
|
+
});
|
|
127
132
|
if (previewId && !rows.some(row => collectionId(row) === previewId)) previewId = '';
|
|
128
133
|
const filterChoices = [{ id: 'all', label: copyParam('collection.all', 'All') }, { id: 'saved', label: copyParam('collection.saved', 'Saved') },
|
|
129
134
|
...projected.filters.map(label => ({ id: `value:${label}`, label: copyParam(`collection.filter.${label}`, label) }))];
|
|
@@ -6705,7 +6705,7 @@ const SCREENS = runtimeSetting({
|
|
|
6705
6705
|
},
|
|
6706
6706
|
{
|
|
6707
6707
|
"id": "save",
|
|
6708
|
-
"label": "
|
|
6708
|
+
"label": "$item.collectionSaveLabel",
|
|
6709
6709
|
"icon": "bookmark",
|
|
6710
6710
|
"action": {
|
|
6711
6711
|
"actionId": "tier5.himiEvents.collectionSave",
|
|
@@ -6777,7 +6777,7 @@ const SCREENS = runtimeSetting({
|
|
|
6777
6777
|
"rowSwipeActions": {
|
|
6778
6778
|
"trailing": [
|
|
6779
6779
|
{
|
|
6780
|
-
"label": "
|
|
6780
|
+
"label": "$item.collectionSaveLabel",
|
|
6781
6781
|
"icon": "bookmark",
|
|
6782
6782
|
"action": {
|
|
6783
6783
|
"actionId": "tier5.himiEvents.collectionSave",
|
|
@@ -7061,7 +7061,7 @@ const SCREENS = runtimeSetting({
|
|
|
7061
7061
|
},
|
|
7062
7062
|
{
|
|
7063
7063
|
"id": "save",
|
|
7064
|
-
"label": "
|
|
7064
|
+
"label": "$item.collectionSaveLabel",
|
|
7065
7065
|
"icon": "bookmark",
|
|
7066
7066
|
"action": {
|
|
7067
7067
|
"actionId": "tier5.himiEvents.collectionSave",
|
|
@@ -7380,7 +7380,7 @@ const SCREENS = runtimeSetting({
|
|
|
7380
7380
|
},
|
|
7381
7381
|
{
|
|
7382
7382
|
"id": "save",
|
|
7383
|
-
"label": "
|
|
7383
|
+
"label": "$item.collectionSaveLabel",
|
|
7384
7384
|
"icon": "bookmark",
|
|
7385
7385
|
"action": {
|
|
7386
7386
|
"actionId": "tier5.himiEvents.collectionSave",
|
|
@@ -7452,7 +7452,7 @@ const SCREENS = runtimeSetting({
|
|
|
7452
7452
|
"rowSwipeActions": {
|
|
7453
7453
|
"trailing": [
|
|
7454
7454
|
{
|
|
7455
|
-
"label": "
|
|
7455
|
+
"label": "$item.collectionSaveLabel",
|
|
7456
7456
|
"icon": "bookmark",
|
|
7457
7457
|
"action": {
|
|
7458
7458
|
"actionId": "tier5.himiEvents.collectionSave",
|
|
@@ -7736,7 +7736,7 @@ const SCREENS = runtimeSetting({
|
|
|
7736
7736
|
},
|
|
7737
7737
|
{
|
|
7738
7738
|
"id": "save",
|
|
7739
|
-
"label": "
|
|
7739
|
+
"label": "$item.collectionSaveLabel",
|
|
7740
7740
|
"icon": "bookmark",
|
|
7741
7741
|
"action": {
|
|
7742
7742
|
"actionId": "tier5.himiEvents.collectionSave",
|
|
@@ -8427,7 +8427,7 @@ const SCREENS = runtimeSetting({
|
|
|
8427
8427
|
},
|
|
8428
8428
|
{
|
|
8429
8429
|
"id": "save",
|
|
8430
|
-
"label": "
|
|
8430
|
+
"label": "$item.collectionSaveLabel",
|
|
8431
8431
|
"icon": "bookmark",
|
|
8432
8432
|
"action": {
|
|
8433
8433
|
"actionId": "tier5.himiEvents.collectionSave",
|
|
@@ -9973,7 +9973,7 @@ const SCREENS = runtimeSetting({
|
|
|
9973
9973
|
},
|
|
9974
9974
|
{
|
|
9975
9975
|
"id": "save",
|
|
9976
|
-
"label": "
|
|
9976
|
+
"label": "$item.collectionSaveLabel",
|
|
9977
9977
|
"icon": "bookmark",
|
|
9978
9978
|
"action": {
|
|
9979
9979
|
"actionId": "tier5.himiBlogFeed.collectionSave",
|
|
@@ -10055,7 +10055,7 @@ const SCREENS = runtimeSetting({
|
|
|
10055
10055
|
"rowSwipeActions": {
|
|
10056
10056
|
"trailing": [
|
|
10057
10057
|
{
|
|
10058
|
-
"label": "
|
|
10058
|
+
"label": "$item.collectionSaveLabel",
|
|
10059
10059
|
"icon": "bookmark",
|
|
10060
10060
|
"action": {
|
|
10061
10061
|
"actionId": "tier5.himiBlogFeed.collectionSave",
|
|
@@ -10320,7 +10320,7 @@ const SCREENS = runtimeSetting({
|
|
|
10320
10320
|
},
|
|
10321
10321
|
{
|
|
10322
10322
|
"id": "save",
|
|
10323
|
-
"label": "
|
|
10323
|
+
"label": "$item.collectionSaveLabel",
|
|
10324
10324
|
"icon": "bookmark",
|
|
10325
10325
|
"action": {
|
|
10326
10326
|
"actionId": "tier5.himiBlogFeed.collectionSave",
|
|
@@ -10610,7 +10610,7 @@ const SCREENS = runtimeSetting({
|
|
|
10610
10610
|
},
|
|
10611
10611
|
{
|
|
10612
10612
|
"id": "save",
|
|
10613
|
-
"label": "
|
|
10613
|
+
"label": "$item.collectionSaveLabel",
|
|
10614
10614
|
"icon": "bookmark",
|
|
10615
10615
|
"action": {
|
|
10616
10616
|
"actionId": "tier5.himiBlogFeed.collectionSave",
|
|
@@ -10692,7 +10692,7 @@ const SCREENS = runtimeSetting({
|
|
|
10692
10692
|
"rowSwipeActions": {
|
|
10693
10693
|
"trailing": [
|
|
10694
10694
|
{
|
|
10695
|
-
"label": "
|
|
10695
|
+
"label": "$item.collectionSaveLabel",
|
|
10696
10696
|
"icon": "bookmark",
|
|
10697
10697
|
"action": {
|
|
10698
10698
|
"actionId": "tier5.himiBlogFeed.collectionSave",
|
|
@@ -10957,7 +10957,7 @@ const SCREENS = runtimeSetting({
|
|
|
10957
10957
|
},
|
|
10958
10958
|
{
|
|
10959
10959
|
"id": "save",
|
|
10960
|
-
"label": "
|
|
10960
|
+
"label": "$item.collectionSaveLabel",
|
|
10961
10961
|
"icon": "bookmark",
|
|
10962
10962
|
"action": {
|
|
10963
10963
|
"actionId": "tier5.himiBlogFeed.collectionSave",
|
|
@@ -11598,7 +11598,7 @@ const SCREENS = runtimeSetting({
|
|
|
11598
11598
|
},
|
|
11599
11599
|
{
|
|
11600
11600
|
"id": "save",
|
|
11601
|
-
"label": "
|
|
11601
|
+
"label": "$item.collectionSaveLabel",
|
|
11602
11602
|
"icon": "bookmark",
|
|
11603
11603
|
"action": {
|
|
11604
11604
|
"actionId": "tier5.himiBlogFeed.collectionSave",
|
|
@@ -13033,7 +13033,7 @@ const SCREENS = runtimeSetting({
|
|
|
13033
13033
|
},
|
|
13034
13034
|
{
|
|
13035
13035
|
"id": "save",
|
|
13036
|
-
"label": "
|
|
13036
|
+
"label": "$item.collectionSaveLabel",
|
|
13037
13037
|
"icon": "bookmark",
|
|
13038
13038
|
"action": {
|
|
13039
13039
|
"actionId": "tier5.himiBrandedGroups.collectionSave",
|
|
@@ -13105,7 +13105,7 @@ const SCREENS = runtimeSetting({
|
|
|
13105
13105
|
"rowSwipeActions": {
|
|
13106
13106
|
"trailing": [
|
|
13107
13107
|
{
|
|
13108
|
-
"label": "
|
|
13108
|
+
"label": "$item.collectionSaveLabel",
|
|
13109
13109
|
"icon": "bookmark",
|
|
13110
13110
|
"action": {
|
|
13111
13111
|
"actionId": "tier5.himiBrandedGroups.collectionSave",
|
|
@@ -13370,7 +13370,7 @@ const SCREENS = runtimeSetting({
|
|
|
13370
13370
|
},
|
|
13371
13371
|
{
|
|
13372
13372
|
"id": "save",
|
|
13373
|
-
"label": "
|
|
13373
|
+
"label": "$item.collectionSaveLabel",
|
|
13374
13374
|
"icon": "bookmark",
|
|
13375
13375
|
"action": {
|
|
13376
13376
|
"actionId": "tier5.himiBrandedGroups.collectionSave",
|
|
@@ -13644,7 +13644,7 @@ const SCREENS = runtimeSetting({
|
|
|
13644
13644
|
},
|
|
13645
13645
|
{
|
|
13646
13646
|
"id": "save",
|
|
13647
|
-
"label": "
|
|
13647
|
+
"label": "$item.collectionSaveLabel",
|
|
13648
13648
|
"icon": "bookmark",
|
|
13649
13649
|
"action": {
|
|
13650
13650
|
"actionId": "tier5.himiBrandedGroups.collectionSave",
|
|
@@ -13716,7 +13716,7 @@ const SCREENS = runtimeSetting({
|
|
|
13716
13716
|
"rowSwipeActions": {
|
|
13717
13717
|
"trailing": [
|
|
13718
13718
|
{
|
|
13719
|
-
"label": "
|
|
13719
|
+
"label": "$item.collectionSaveLabel",
|
|
13720
13720
|
"icon": "bookmark",
|
|
13721
13721
|
"action": {
|
|
13722
13722
|
"actionId": "tier5.himiBrandedGroups.collectionSave",
|
|
@@ -13981,7 +13981,7 @@ const SCREENS = runtimeSetting({
|
|
|
13981
13981
|
},
|
|
13982
13982
|
{
|
|
13983
13983
|
"id": "save",
|
|
13984
|
-
"label": "
|
|
13984
|
+
"label": "$item.collectionSaveLabel",
|
|
13985
13985
|
"icon": "bookmark",
|
|
13986
13986
|
"action": {
|
|
13987
13987
|
"actionId": "tier5.himiBrandedGroups.collectionSave",
|
|
@@ -14605,7 +14605,7 @@ const SCREENS = runtimeSetting({
|
|
|
14605
14605
|
},
|
|
14606
14606
|
{
|
|
14607
14607
|
"id": "save",
|
|
14608
|
-
"label": "
|
|
14608
|
+
"label": "$item.collectionSaveLabel",
|
|
14609
14609
|
"icon": "bookmark",
|
|
14610
14610
|
"action": {
|
|
14611
14611
|
"actionId": "tier5.himiBrandedGroups.collectionSave",
|
|
@@ -15518,7 +15518,7 @@ const SCREENS = runtimeSetting({
|
|
|
15518
15518
|
},
|
|
15519
15519
|
{
|
|
15520
15520
|
"id": "save",
|
|
15521
|
-
"label": "
|
|
15521
|
+
"label": "$item.collectionSaveLabel",
|
|
15522
15522
|
"icon": "bookmark",
|
|
15523
15523
|
"action": {
|
|
15524
15524
|
"actionId": "tier5.himiBrandedCms.collectionSave",
|
|
@@ -15590,7 +15590,7 @@ const SCREENS = runtimeSetting({
|
|
|
15590
15590
|
"rowSwipeActions": {
|
|
15591
15591
|
"trailing": [
|
|
15592
15592
|
{
|
|
15593
|
-
"label": "
|
|
15593
|
+
"label": "$item.collectionSaveLabel",
|
|
15594
15594
|
"icon": "bookmark",
|
|
15595
15595
|
"action": {
|
|
15596
15596
|
"actionId": "tier5.himiBrandedCms.collectionSave",
|
|
@@ -15788,7 +15788,7 @@ const SCREENS = runtimeSetting({
|
|
|
15788
15788
|
},
|
|
15789
15789
|
{
|
|
15790
15790
|
"id": "save",
|
|
15791
|
-
"label": "
|
|
15791
|
+
"label": "$item.collectionSaveLabel",
|
|
15792
15792
|
"icon": "bookmark",
|
|
15793
15793
|
"action": {
|
|
15794
15794
|
"actionId": "tier5.himiBrandedCms.collectionSave",
|
|
@@ -16062,7 +16062,7 @@ const SCREENS = runtimeSetting({
|
|
|
16062
16062
|
},
|
|
16063
16063
|
{
|
|
16064
16064
|
"id": "save",
|
|
16065
|
-
"label": "
|
|
16065
|
+
"label": "$item.collectionSaveLabel",
|
|
16066
16066
|
"icon": "bookmark",
|
|
16067
16067
|
"action": {
|
|
16068
16068
|
"actionId": "tier5.himiBrandedCms.collectionSave",
|
|
@@ -16134,7 +16134,7 @@ const SCREENS = runtimeSetting({
|
|
|
16134
16134
|
"rowSwipeActions": {
|
|
16135
16135
|
"trailing": [
|
|
16136
16136
|
{
|
|
16137
|
-
"label": "
|
|
16137
|
+
"label": "$item.collectionSaveLabel",
|
|
16138
16138
|
"icon": "bookmark",
|
|
16139
16139
|
"action": {
|
|
16140
16140
|
"actionId": "tier5.himiBrandedCms.collectionSave",
|
|
@@ -16332,7 +16332,7 @@ const SCREENS = runtimeSetting({
|
|
|
16332
16332
|
},
|
|
16333
16333
|
{
|
|
16334
16334
|
"id": "save",
|
|
16335
|
-
"label": "
|
|
16335
|
+
"label": "$item.collectionSaveLabel",
|
|
16336
16336
|
"icon": "bookmark",
|
|
16337
16337
|
"action": {
|
|
16338
16338
|
"actionId": "tier5.himiBrandedCms.collectionSave",
|
|
@@ -16889,7 +16889,7 @@ const SCREENS = runtimeSetting({
|
|
|
16889
16889
|
},
|
|
16890
16890
|
{
|
|
16891
16891
|
"id": "save",
|
|
16892
|
-
"label": "
|
|
16892
|
+
"label": "$item.collectionSaveLabel",
|
|
16893
16893
|
"icon": "bookmark",
|
|
16894
16894
|
"action": {
|
|
16895
16895
|
"actionId": "tier5.himiBrandedCms.collectionSave",
|
|
@@ -168,6 +168,8 @@ export function projectCollection(source: CollectionRow[], config: CollectionCon
|
|
|
168
168
|
items: visible.map(row => ({ ...row, collectionId: collectionId(row), collectionTitle: collectionTitle(row, config),
|
|
169
169
|
collectionMeta: [...new Set((config.metadata ?? ['total', 'statusLabel', 'price', 'priceLine', 'dateLine', 'meta']).filter(key => key !== config.subtitle).map(key => scalar(row[key])).filter(Boolean))].join(' · '),
|
|
170
170
|
collectionSelectLabel: prefs.selectedIds.includes(collectionId(row)) ? 'Selected' : 'Select',
|
|
171
|
+
// The save toggle names the action it WILL take (the service localizes it).
|
|
172
|
+
collectionSaveLabel: prefs.savedIds.includes(collectionId(row)) ? 'Remove from saved' : 'Save',
|
|
171
173
|
collectionSubtitle: scalar(row[config.subtitle ?? '']) || scalar(row.subtitle) || scalar(row.description) || scalar(row.meta),
|
|
172
174
|
collectionImage: scalar(row[config.image ?? '']), collectionNoImage: !scalar(row[config.image ?? '']), collectionHasImage: !!scalar(row[config.image ?? '']),
|
|
173
175
|
collectionSaved: prefs.savedIds.includes(collectionId(row)), collectionNotSaved: !prefs.savedIds.includes(collectionId(row)), collectionSelected: prefs.selectedIds.includes(collectionId(row)),
|
|
@@ -123,7 +123,12 @@ export function decorateCollection(name: string, def: { state: State; actions?:
|
|
|
123
123
|
pendingFilter = '';
|
|
124
124
|
}
|
|
125
125
|
const projected = projectCollection(rows, config, prefs, !!backend && config.backendQuery === true, known);
|
|
126
|
-
projected.items.forEach(row => {
|
|
126
|
+
projected.items.forEach(row => {
|
|
127
|
+
row.collectionSelectLabel = row.collectionSelected ? copyParam('collection.selected', 'Selected') : copyParam('collection.select', 'Select');
|
|
128
|
+
// the save toggle names the action it WILL take for this row. The
|
|
129
|
+
// old static "Save / unsave" made the owner work out the row's state.
|
|
130
|
+
row.collectionSaveLabel = row.collectionSaved ? copyParam('collection.unsave', 'Remove from saved') : copyParam('collection.save', 'Save');
|
|
131
|
+
});
|
|
127
132
|
if (previewId && !rows.some(row => collectionId(row) === previewId)) previewId = '';
|
|
128
133
|
const filterChoices = [{ id: 'all', label: copyParam('collection.all', 'All') }, { id: 'saved', label: copyParam('collection.saved', 'Saved') },
|
|
129
134
|
...projected.filters.map(label => ({ id: `value:${label}`, label: copyParam(`collection.filter.${label}`, label) }))];
|
|
@@ -37,7 +37,7 @@ export default defineApp({
|
|
|
37
37
|
actions: "http://localhost:8190/v1/actions",
|
|
38
38
|
sync: "http://localhost:8190/v1/sync",
|
|
39
39
|
},
|
|
40
|
-
capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","presigned_upload"],
|
|
40
|
+
capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","presigned_upload","app_info"],
|
|
41
41
|
designTokensPath: "./tokens.json",
|
|
42
42
|
navigation: {
|
|
43
43
|
"navKind": "responsive",
|
|
@@ -567,7 +567,7 @@ export default defineApp({
|
|
|
567
567
|
"actions": [
|
|
568
568
|
{
|
|
569
569
|
"id": "himi_owner_lite.topbar_ask",
|
|
570
|
-
"icon": "
|
|
570
|
+
"icon": "ai",
|
|
571
571
|
"accessibilityLabel": "Ask about the club",
|
|
572
572
|
"onTap": {
|
|
573
573
|
"actionId": "himi.open",
|