commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
cfb6e3fe0594a6cfa1d2192f1a5905bd950eec70 | --- packages/me-at-walmart-container/src/translations/index.ts
@@ -36,63 +36,54 @@ export const MeAtWalmartTranslationConfig: TranslationClientConfig = {
descriptor: 'Bengali (BD)',
currency: '৳',
dateFormat: 'DD/MM/YYYY',
- //@ts-expect-error
languageCode: 'bn-BD',
},
'fr-CA': {
descriptor: 'Français (CA)',
currency: '$',
dateFormat: 'DD/MM/YYYY',
- //@ts-expect-error
languageCode: 'fr-CA',
},
'fr-FR': {
descriptor: 'Français (FR)',
currency: '€',
dateFormat: 'DD/MM/YYYY',
- //@ts-expect-error
languageCode: 'fr-FR',
},
'hi-IN': {
descriptor: 'हिन्दी (IN)',
currency: '₹',
dateFormat: 'DD/MM/YYYY',
- //@ts-expect-error
languageCode: 'hi-IN',
},
'pt-PT': {
descriptor: 'Português (PT)',
currency: '€',
dateFormat: 'DD/MM/YYYY',
- //@ts-expect-error
languageCode: 'pt-PT',
},
'ru-RU': {
descriptor: 'Русский (RU)',
currency: '₽',
dateFormat: 'DD.MM.YYYY',
- //@ts-expect-error
languageCode: 'ru-RU',
},
'tl-PH': {
descriptor: 'ᜏᜒᜃᜅ᜔ ᜆᜄᜎᜓᜄ᜔ (PH)',
currency: '₱',
dateFormat: 'MM/DD/YYYY',
- //@ts-expect-error
languageCode: 'tl-PH',
},
'vi-VN': {
descriptor: 'Tiếng Việt (VN)',
currency: '₫',
dateFormat: 'DD/MM/YYYY',
- //@ts-expect-error
languageCode: 'vi-VN',
},
'zh-CN': {
descriptor: '中文 (CN)',
currency: '¥',
dateFormat: 'YYYY/MM/DD',
- //@ts-expect-error
languageCode: 'zh-CN',
}
},
| feat(translation): stabilize | feat(translation): stabilize
|
e6bad11565355d15feb2c1949a7572c63f965cc5 | --- package.json
@@ -101,7 +101,7 @@
"@walmart/backroom-mini-app": "1.17.10",
"@walmart/beneficiary-online-mini-app": "0.1.26",
"@walmart/beneficiary-online-shared-library": "1.2.7",
- "@walmart/calling-mini-app": "0.8.32",
+ "@walmart/calling-mini-app": "0.8.34",
"@walmart/candidate-authentication-lib": "0.0.12",
"@walmart/celebration-mini-app": "1.36.0",
"@walmart/checkout-mini-app": "4.20.44",
--- yarn.lock
@@ -8017,9 +8017,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/calling-mini-app@npm:0.8.32":
- version: 0.8.32
- resolution: "@walmart/calling-mini-app@npm:0.8.32::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcalling-mini-app%2F-%2F%40walmart%2Fcalling-mini-app-0.8.32.tgz"
+"@walmart/calling-mini-app@npm:0.8.34":
+ version: 0.8.34
+ resolution: "@walmart/calling-mini-app@npm:0.8.34::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcalling-mini-app%2F-%2F%40walmart%2Fcalling-mini-app-0.8.34.tgz"
peerDependencies:
"@react-native-community/datetimepicker": ">=5"
"@react-navigation/native": ">=6"
@@ -8065,7 +8065,7 @@ __metadata:
dependenciesMeta:
"@walmart/wmconnect-mini-app":
built: false
- checksum: 10c0/b48189202a68a7d2a5fe6937cf85e442ea2c35810a3b56ca475f574a60a423dbe838a922350e78c37639d6aeef1ad8fd12d02af17f5739f682458c5730bdff53
+ checksum: 10c0/2795de9a9537852a75a4698defdb80492ff1785d089588e183b3b6a6c6c5f8cef0bb01089e55d513b70f0336d03a4c96b343aded1a52f270038f9605d98d27df
languageName: node
linkType: hard
@@ -8820,7 +8820,7 @@ __metadata:
"@walmart/backroom-mini-app": "npm:1.17.10"
"@walmart/beneficiary-online-mini-app": "npm:0.1.26"
"@walmart/beneficiary-online-shared-library": "npm:1.2.7"
- "@walmart/calling-mini-app": "npm:0.8.32"
+ "@walmart/calling-mini-app": "npm:0.8.34"
"@walmart/candidate-authentication-lib": "npm:0.0.12"
"@walmart/celebration-mini-app": "npm:1.36.0"
"@walmart/checkout-mini-app": "npm:4.20.44"
| fix: Calling permission flow & webex id deletion ux fix | fix: Calling permission flow & webex id deletion ux fix
|
f56dd83e5e30ce7e154a2146c330217f3f373794 | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/roster-mini-app",
- "version": "1.0.19",
+ "version": "1.0.20",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/roster-mini-app",
- "version": "1.0.19",
+ "version": "1.0.20",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.20.0",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "1.0.19",
+ "version": "1.0.20",
"private": false,
"main": "dist/index.js",
"files": [
| Update version | Update version
|
e3864cf632dc8509dfcfbdc4da6ce4288cfbdae1 | --- core/__tests__/permissions/PermissionsSagaTest.ts
@@ -90,49 +90,28 @@ describe('permissions sagas', () => {
describe('handlePermissions', () => {
it('handles permissions set', () => {
const iterator = handlePermissions();
- let result = iterator.next();
- expect(result.value).toEqual(call(getPermissionsUnset));
- expect(result.done).toBe(false);
- result = iterator.next(false);
- expect(result.done).toBe(true);
+ expect(iterator.next().value).toEqual(call(getPermissionsUnset));
+ expect(iterator.next().done).toBe(true);
});
it('handles permissions not set', () => {
const flowTask = createMockTask();
const iterator = handlePermissions();
- let result = iterator.next();
- expect(result.value).toEqual(call(getPermissionsUnset));
- expect(result.done).toBe(false);
- result = iterator.next(true);
- expect(result.value).toEqual(call(resetTo, PERMISSION_WELCOME_SCREEN));
- expect(result.done).toBe(false);
- result = iterator.next();
- expect(result.value).toEqual(fork(permissionFlow));
- expect(result.done).toBe(false);
- result = iterator.next(flowTask);
- expect(result.value).toEqual(take(PERMISSIONS_COMPLETE.type));
- expect(result.done).toBe(false);
- result = iterator.next();
- expect(result.value).toEqual(cancel(flowTask));
- expect(result.done).toBe(false);
+ expect(iterator.next().value).toEqual(call(getPermissionsUnset));
+ expect(iterator.next(true).value).toEqual(call(resetTo, PERMISSION_WELCOME_SCREEN));
+ expect(iterator.next().value).toEqual(fork(permissionFlow));
+ expect(iterator.next(flowTask).value).toEqual(take(PERMISSIONS_COMPLETE.type));
+ expect(iterator.next().value).toEqual(cancel(flowTask));
+ expect(iterator.next().done).toBe(true);
});
it('handles permissions not set and undefined flow task', () => {
const iterator = handlePermissions();
- let result = iterator.next();
- expect(result.value).toEqual(call(getPermissionsUnset));
- expect(result.done).toBe(false);
- result = iterator.next(true);
- expect(result.value).toEqual(call(resetTo, PERMISSION_WELCOME_SCREEN));
- expect(result.done).toBe(false);
- result = iterator.next();
- expect(result.value).toEqual(fork(permissionFlow));
- expect(result.done).toBe(false);
- result = iterator.next(undefined);
- expect(result.value).toEqual(take(PERMISSIONS_COMPLETE.type));
- expect(result.done).toBe(false);
- result = iterator.next();
- expect(result.done).toBe(true);
+ expect(iterator.next().value).toEqual(call(getPermissionsUnset));
+ expect(iterator.next(true).value).toEqual(call(resetTo, PERMISSION_WELCOME_SCREEN));
+ expect(iterator.next().value).toEqual(fork(permissionFlow));
+ expect(iterator.next(undefined).value).toEqual(take(PERMISSIONS_COMPLETE.type));
+ expect(iterator.next().done).toBe(true);
});
});
});
@@ -173,7 +152,7 @@ describe('getPermissionsUnset', () => {
selector: expect.any(Function),
}),
}));
- expect(generator.next(false).done).toBeTruthy();
+ expect(generator.next().done).toBeTruthy();
});
});
| code cleanup | code cleanup
|
578e8ccd7aab226f03e48ee1b659971f969e9501 | --- src/auth/ErrorScreen.tsx
@@ -46,12 +46,11 @@ export const ErrorScreen: FC<any> = (props) => {
const siteIdValid = !formDirty || !!siteId;
const errSelectValid = !formDirty || !!errorCategory;
const otherOptionValid =
- !formDirty ||
- (errorCategory === translate('ssoError.issues.other')
+ errorCategory === translate('ssoError.issues.other')
? !!selectedQ2Option
- : true);
+ : true;
const missingFields =
- !userIdValid || !siteIdValid || !errSelectValid || !otherOptionValid;
+ !userId || !siteId || !errorCategory || !otherOptionValid;
useEffect(() => {
WmTelemetry.logEvent(SSO_APP, 'feedback_screen_loaded', {});
@@ -206,7 +205,7 @@ export const ErrorScreen: FC<any> = (props) => {
/>
</View>
)}
- {missingFields && (
+ {missingFields && !formDirty && (
<View style={styles.requiredErrorContainer}>
<Subheader testID='error-msg' style={styles.requiredError}>
{translate('ssoError.requiredError')}
| update required and log check logic | update required and log check logic
|
44ff4c432f5d0a2827f5b3bbc965173dfb69b346 | --- ios/Podfile.lock
@@ -573,7 +573,7 @@ PODS:
- React-Core
- react-native-pdf (6.2.2):
- React-Core
- - react-native-ptt-module (1.1.57):
+ - react-native-ptt-module (1.1.59):
- PTT (= 0.4.2)
- React
- react-native-safe-area-context (3.1.8):
@@ -996,7 +996,7 @@ SPEC CHECKSUMS:
react-native-logger: 7b829af1706f15d4aec9c4354a1fe054305b51b9
react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f
react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f
- react-native-ptt-module: 88c723a364b20f5f2b187775631c2267aa5a81b0
+ react-native-ptt-module: 849d6db541c01956eaf3252d243007ffc3a4c199
react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f
--- package-lock.json
@@ -2014,9 +2014,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.0.42",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.42.tgz",
- "integrity": "sha512-yzRz75yje/GUqeY9cqWvFofsZmbwVXwjFXERTL++NTBwc0dP2gga/qfmD0F0s4/cloEsepId6qutuQpfrAGN/A=="
+ "version": "0.0.45",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.45.tgz",
+ "integrity": "sha512-ZUNDDEnBKxjaEPdB0R+Y0Lwra4QnYjAgzzXrLKzrc0a00cTh76Z0COOItk+8ZR+VPqbJ07dcRD1VNANOW4n/2w=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
@@ -9248,9 +9248,9 @@
"integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w=="
},
"react-native-ptt-module": {
- "version": "1.1.57",
- "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.57.tgz",
- "integrity": "sha512-aaUzge8KowKYCbLDrHHDHEF2bmCFUlHCclAN2w6wYDTH0VFBXqXUfUp6qw2QRhkKDhyueU57wWKatrM4G1GfnQ=="
+ "version": "1.1.59",
+ "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.59.tgz",
+ "integrity": "sha512-2lk0Ppj+fL5ILAHYpZqevdIW2XZaoCdljK1jpeAVV/qMUiftgxUatTpUm+UUW2Ynau+aB0mgLoyTo93ck4Ct8A=="
},
"react-native-qrcode-svg": {
"version": "6.0.6",
--- package.json
@@ -50,7 +50,7 @@
"@walmart/functional-components": "^1.0.22",
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.0.42",
+ "@walmart/push-to-talk-mini-app": "0.0.45",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.17.0",
"@walmart/react-native-shared-navigation": "^0.2.0",
@@ -75,7 +75,7 @@
"react-native-modal": "^11.5.6",
"react-native-pdf": "^6.2.0",
"react-native-popup-menu": "^0.15.9",
- "react-native-ptt-module": "1.1.57",
+ "react-native-ptt-module": "1.1.59",
"react-native-qrcode-svg": "^6.0.6",
"react-native-reanimated": "^1.10.2",
"react-native-safe-area-context": "^3.1.3",
| PTT version update (#171) | PTT version update (#171)
* PTT version upgrade
* updated PTT and Ask Sam version
* installed PTT
* PTT version bump
* PTT version update
* POD file |
fbe6ae303c125e46282f2abdc135afbb54edea36 | --- package-lock.json
@@ -57,7 +57,7 @@
"@walmart/inbox-mini-app": "0.84.1",
"@walmart/iteminfo-mini-app": "7.3.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
- "@walmart/me-field-mini-app": "12.0.24",
+ "@walmart/me-field-mini-app": "12.0.25",
"@walmart/metrics-mini-app": "0.12.10",
"@walmart/mod-flex-mini-app": "1.9.4",
"@walmart/moment-walmart": "1.0.4",
@@ -5418,7 +5418,9 @@
}
},
"node_modules/@walmart/me-field-mini-app": {
- "version": "12.0.24",
+ "version": "12.0.25",
+ "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.25.tgz",
+ "integrity": "sha512-1mxrkjgtoltK8qzmoiVy9/rViZ/GoViHZG+1uYL1rV3o+ByksY7d8+foyY6BNzDfbg/6W2G24bdRMs7vpNf2qw==",
"hasInstallScript": true,
"peerDependencies": {
"@atmt/feedback-component-native": "^8.0.0",
@@ -25233,7 +25235,9 @@
}
},
"@walmart/me-field-mini-app": {
- "version": "12.0.24"
+ "version": "12.0.25",
+ "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.25.tgz",
+ "integrity": "sha512-1mxrkjgtoltK8qzmoiVy9/rViZ/GoViHZG+1uYL1rV3o+ByksY7d8+foyY6BNzDfbg/6W2G24bdRMs7vpNf2qw=="
},
"@walmart/metrics-mini-app": {
"version": "0.12.10",
@@ -25258,7 +25262,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.9.4"
+ "version": "1.9.4",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.9.4.tgz",
+ "integrity": "sha512-Z2Mh6hXBXAdZl6suTlO7lCa9GODtImMITZfhqNwYeDVT1fesqbW80s4zgUI2OyqDarPs9/wizWBooeyk+Anb2A=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
| Merge remote-tracking branch 'origin/develop' into feature/learningapp | Merge remote-tracking branch 'origin/develop' into feature/learningapp
|
9b3ebb7eaa120d099af4c336ee55e3ff52844b91 | --- README.md
@@ -217,7 +217,7 @@ The new target config file should be picked up by the script and shown as an opt
## Commit changes
-In this repo, we are using husky to enhance engineering practices committing the changes.
+In this repo, we are using husky to enhance engineering practice of committing the changes.
As a part of each commit cycle, husky will run scripts to make sure that all unit tests and linting are passed prior to commit new changes.
On top of that, we follow a conventional commit practices(please see below) and enhance it with `commitllint` and `commitizen`
| feat(app):update readme to trigger looper checks | feat(app):update readme to trigger looper checks
|
1041aa618d20a00b37b05674de015f98b664381f | --- android/app/build.gradle
@@ -140,7 +140,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 361
- versionName "1.3.0"
+ versionName "1.0.101"
}
splits {
abi {
--- ios/AllSpark/Info.plist
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.3.0</string>
+ <string>1.0.101</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
| allSpark 1.3.0 to 1.0.101 | allSpark 1.3.0 to 1.0.101
|
4c6fc05739514295b8c20c36b1378c189f048a8a | --- packages/allspark-foundation/src/GlobalElements/context.tsx
@@ -24,7 +24,6 @@ import Animated, {
AnimatedProps,
} from 'react-native-reanimated';
import { noop } from '@walmart/allspark-utils';
-import { useFocusEffect } from '@react-navigation/native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useNavigation } from '@react-navigation/native';
| fix: post conflict resolution | fix: post conflict resolution
|
e6fb604e9ce95ab78f42ba242d17599fa507ef07 | --- __tests__/__mocks__/@walmart/push-to-talk-mini-app.js
@@ -1,27 +0,0 @@
-module.exports = {
- PushToTalkMiniApp: 'PushToTalkMiniApp',
- Components: {
- GroupPreviewScreen: 'GroupPreviewScreen',
- DialogScreen: 'DialogScreen',
- JoinGroupScreen: 'JoinGroupScreen',
- DndConfirmationScreen: 'DndConfirmationScreen',
- StoreConfirmationScreen: 'StoreConfirmationScreen',
- NotificationsContainer: 'NotificationsContainer',
- },
- Properties: {
- GroupPreviewNavProperties: {},
- TalkDialogNavProperties: {},
- JoinGroupNavProperties: {},
- DndConfirmationNavProperties: {},
- StoreConfirmationNavProperties: {},
- },
- Hooks: {
- useVMBadgesCount: jest.fn(() => [0]),
- useTextMessages: jest.fn(),
- useTextBadgesCount: jest.fn(() => [0]),
- useUnreadMessageCount: jest.fn(() => [0]),
- },
- Providers: {
- ConversationProvider: 'ConversationProvider',
- },
-};
| delete push to talk mini app mock from __test__ | delete push to talk mini app mock from __test__
|
d95836cc17dfec793b997564050aa28b1c9821f9 | --- package-lock.json
@@ -71,7 +71,7 @@
"@walmart/impersonation-mini-app": "1.20.8",
"@walmart/ims-print-services-ui": "2.10.3",
"@walmart/inbox-mini-app": "0.92.9",
- "@walmart/iteminfo-mini-app": "7.10.5",
+ "@walmart/iteminfo-mini-app": "7.10.6",
"@walmart/learning-mini-app": "20.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-at-walmart-athena-queries": "6.0.7",
@@ -95,8 +95,8 @@
"@walmart/react-native-shared-navigation": "6.0.7",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.6.4",
- "@walmart/receipt-check-miniapp": "1.19.4",
"@walmart/react-native-webex-sdk": "0.1.8",
+ "@walmart/receipt-check-miniapp": "1.19.4",
"@walmart/redux-store": "6.0.7",
"@walmart/returns-mini-app": "4.6.0",
"@walmart/rfid-scan-mini-app": "2.2.8",
@@ -11684,9 +11684,9 @@
}
},
"node_modules/@walmart/iteminfo-mini-app": {
- "version": "7.10.5",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.10.5.tgz",
- "integrity": "sha512-oYPg4yxw1NHZWyPqfQE4zQcNRwFD7ugIJ0wih2+hmwPcuUsIcvTnEaCSYeMudMUrP8UXGeJh/wSP1gFTB3rXDg==",
+ "version": "7.10.6",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.10.6.tgz",
+ "integrity": "sha512-Cbyum7EmVMfGYmOx42WV63KJTfAQrxglJ7Wxa3w+OaKVJ/j9hv+B0Box4Mdjlmeqs0bezy+NK/OFs55OBSOgfw==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/drawer": ">=6.3.0",
--- package.json
@@ -112,7 +112,7 @@
"@walmart/impersonation-mini-app": "1.20.8",
"@walmart/ims-print-services-ui": "2.10.3",
"@walmart/inbox-mini-app": "0.92.9",
- "@walmart/iteminfo-mini-app": "7.10.5",
+ "@walmart/iteminfo-mini-app": "7.10.6",
"@walmart/learning-mini-app": "20.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-at-walmart-athena-queries": "6.0.7",
@@ -136,8 +136,8 @@
"@walmart/react-native-shared-navigation": "6.0.7",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.6.4",
- "@walmart/receipt-check-miniapp": "1.19.4",
"@walmart/react-native-webex-sdk": "0.1.8",
+ "@walmart/receipt-check-miniapp": "1.19.4",
"@walmart/redux-store": "6.0.7",
"@walmart/returns-mini-app": "4.6.0",
"@walmart/rfid-scan-mini-app": "2.2.8",
@@ -377,7 +377,7 @@
"@walmart/impersonation-mini-app": "1.20.8",
"@walmart/ims-print-services-ui": "2.10.3",
"@walmart/inbox-mini-app": "0.92.9",
- "@walmart/iteminfo-mini-app": "7.10.5",
+ "@walmart/iteminfo-mini-app": "7.10.6",
"@walmart/learning-mini-app": "20.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-at-walmart-athena-queries": "6.0.7",
| bump the core version | bump the core version
|
1dec62ebc1bcaf6b3fc6020f2145c4512a30f8b2 | --- .looper.multibranch.yml
@@ -142,6 +142,8 @@ envs:
BUNDLE_ID: "com.walmart.stores.allspark.beta"
XCODE_PROJECT_NAME: "AllSpark.xcodeproj"
RUBY_PATH: '/Users/jenkinspan/.rbenv/shims'
+ XCODEBUILD_FORMATTER: xcpretty
+ XCBEAUTIFY_CUSTOM_PATH: ${WORKSPACE}/xcbeautify
TARGET_NAME: "AllSpark"
PLIST_PATH: "AllSpark/Info.plist"
PROFILE_PATH: MeAtWMBeta_InHouse_Provision.mobileprovision
@@ -742,6 +744,7 @@ flows:
git clone https://${GITHUB_ACCESS_TOKEN}@gecgithub01.walmart.com/allspark/allspark-cicd-template.git --branch ${TEMPLATE_REPO_BRANCH} --single-branch fastlane
mv fastlane/allspark-template/Gemfile .
mv fastlane/allspark-template/fastlane/* fastlane/
+ mv fastlane/execs/* .
mv fastlane/profiles/* .
mv fastlane/automation/* .
rm -rf fastlane/profiles/ fastlane/.git
@@ -756,7 +759,7 @@ flows:
- call: slack-notification-pr(slack-pr)
mini-pr:
- - (name Branch Check, silent) echo "TBD"
+ # - (name Branch Check, silent) echo "TBD"
- call: build-npm
- (name Build JS Bundle) cd targets/${market} && ../../node_modules/.bin/react-native bundle --entry-file ./index.js --bundle-output ./bundle.js --reset-cache
@@ -898,6 +901,7 @@ flows:
- call: codesign-setup($value)
- call: pod-setup
- call: pod-install
+ - call: set-xcodebuild-formatter
- call: native-common($value)
build-android:
@@ -984,6 +988,13 @@ flows:
- (name Generate Store File) echo ${ANDROID_AAB_ENCODED_STORE_CERT} | base64 -d > ${WORKSPACE}/${ANDROID_BASE_PATH}/walmartAirwatchEnroller
- (name Generate Key Properties) touch ${WORKSPACE}/${ANDROID_BASE_PATH}/key.properties && $RUBY_PATH/bundle exec fastlane android_keys
+ set-xcodebuild-formatter:
+ - var(architecture):
+ - shell(name Get Mac Node Architecture): uname -p
+ - if: '%{ architecture == "arm" }'
+ then:
+ - var(XCODEBUILD_FORMATTER=${XCBEAUTIFY_CUSTOM_PATH})
+
native-common:
- try:
- (name Set NPM Env) npm run env:${ENV}
| Set xcodebuild-formatter based on Mac Node Arch | Set xcodebuild-formatter based on Mac Node Arch |
292be4e73a3cc5a122130ca9dbd74872210bed3d | --- ios/AllSpark.xcodeproj/project.pbxproj
@@ -500,7 +500,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 212ACBF9F6EA1B3866D5D388 /* Pods-AllSpark.debug.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta";
+ ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
@@ -540,7 +540,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 18C7AF990A657BA8B527E5F6 /* Pods-AllSpark.release.xcconfig */;
buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta";
+ ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements;
CODE_SIGN_IDENTITY = "iPhone Distribution";
--- ios/AllSpark/Info.plist
@@ -106,7 +106,7 @@
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
- <string>LaunchScreen-Beta</string>
+ <string>LaunchScreen-Dev</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
--- package-lock.json
@@ -3254,9 +3254,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.4.13-test.0",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.13-test.0.tgz",
- "integrity": "sha512-haj1W3P6GfnyCOMToykyht/aIZrYgkL1nRUtT72Up5Ah9oZQFyzEfDXg60IaHpguCVbpy/M6p9nwU8qfuIZbhQ==",
+ "version": "0.4.19-test.0",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.19-test.0.tgz",
+ "integrity": "sha512-7UFY+HABxywTC5OScokD6y6BIoFgsaeimmHr1Xa05FHXTHCx4fsoCn/UU5xvpt13WfJZtQRnjiDIAdYl++jzvg==",
"requires": {
"moment": "^2.29.0",
"uuid": "^8.3.1"
--- package.json
@@ -64,7 +64,7 @@
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/allspark-health-survey-mini-app": "0.0.41",
- "@walmart/allspark-home-mini-app": "0.4.13-test.0",
+ "@walmart/allspark-home-mini-app": "0.4.19-test.0",
"@walmart/allspark-me-mini-app": "0.1.0",
"@walmart/ask-sam-mini-app": "0.30.2",
"@walmart/config-components": "^1.0.26",
| bumping version for home | bumping version for home
|
b95f60e01acd73de9d321886422ec149ffaf1221 | --- package-lock.json
@@ -3936,7 +3936,7 @@
},
"axios-cache-adapter": {
"version": "2.7.3",
- "resolved": "http://npme.walmart.com/axios-cache-adapter/-/axios-cache-adapter-2.7.3.tgz",
+ "resolved": "https://npme.walmart.com/axios-cache-adapter/-/axios-cache-adapter-2.7.3.tgz",
"integrity": "sha512-A+ZKJ9lhpjthOEp4Z3QR/a9xC4du1ALaAsejgRGrH9ef6kSDxdFrhRpulqsh9khsEnwXxGfgpUuDp1YXMNMEiQ==",
"requires": {
"cache-control-esm": "1.0.0",
@@ -4329,7 +4329,7 @@
},
"cache-control-esm": {
"version": "1.0.0",
- "resolved": "http://npme.walmart.com/cache-control-esm/-/cache-control-esm-1.0.0.tgz",
+ "resolved": "https://npme.walmart.com/cache-control-esm/-/cache-control-esm-1.0.0.tgz",
"integrity": "sha512-Fa3UV4+eIk4EOih8FTV6EEsVKO0W5XWtNs6FC3InTfVz+EjurjPfDXY5wZDo/lxjDxg5RjNcurLyxEJBcEUx9g=="
},
"caller-callsite": {
@@ -4410,7 +4410,7 @@
},
"charenc": {
"version": "0.0.2",
- "resolved": "http://npme.walmart.com/charenc/-/charenc-0.0.2.tgz",
+ "resolved": "https://npme.walmart.com/charenc/-/charenc-0.0.2.tgz",
"integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc="
},
"ci-info": {
@@ -4774,7 +4774,7 @@
},
"crypt": {
"version": "0.0.2",
- "resolved": "http://npme.walmart.com/crypt/-/crypt-0.0.2.tgz",
+ "resolved": "https://npme.walmart.com/crypt/-/crypt-0.0.2.tgz",
"integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs="
},
"crypto-js": {
@@ -10785,7 +10785,7 @@
},
"md5": {
"version": "2.3.0",
- "resolved": "http://npme.walmart.com/md5/-/md5-2.3.0.tgz",
+ "resolved": "https://npme.walmart.com/md5/-/md5-2.3.0.tgz",
"integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
"requires": {
"charenc": "0.0.2",
@@ -12577,7 +12577,7 @@
},
"react-native-linear-gradient": {
"version": "2.5.6",
- "resolved": "http://npme.walmart.com/react-native-linear-gradient/-/react-native-linear-gradient-2.5.6.tgz",
+ "resolved": "https://npme.walmart.com/react-native-linear-gradient/-/react-native-linear-gradient-2.5.6.tgz",
"integrity": "sha512-HDwEaXcQIuXXCV70O+bK1rizFong3wj+5Q/jSyifKFLg0VWF95xh8XQgfzXwtq0NggL9vNjPKXa016KuFu+VFg=="
},
"react-native-material-menu": {
| fixing package lock | fixing package lock
|
649a39af695344149730dce418ce16d7cf9cdeb4 | --- packages/core-services-allspark/CHANGELOG.md
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.8.2](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.8.1...@walmart/core-services-allspark@2.8.2) (2023-02-15)
+
+
+### Bug Fixes
+
+* remove type policies for untested entities ([15deaad](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/15deaadf3cd2e03d3e57694bc4e4ebaf82cc4e09))
+
+
+
+
+
## [2.8.1](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.8.0...@walmart/core-services-allspark@2.8.1) (2023-02-14)
--- packages/core-services-allspark/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "2.8.1",
+ "version": "2.8.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
--- packages/core-services-allspark/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "2.8.1",
+ "version": "2.8.2",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/core-services-allspark@2.8.2
|
0996c3145d44de1be22f61a2cfbacc190c79725a | --- __tests__/navConfig/NavConfigSagasTest.ts
@@ -36,6 +36,7 @@ jest.mock('../../src/redux/CreateRestartableSagas', () => ({
jest.mock('../../env', () => ({
env: 'dev',
+ deployment: 'dev',
externalBffUrl: 'https://externalBffUrl.com',
internalBffUrl: 'https://internalBffUrl.com',
bffService: '/bffService',
--- src/navConfig/NavConfigSagas.ts
@@ -48,7 +48,7 @@ export function* getGlobalNavScope(): any {
bundleId,
deviceType,
appVersion,
- env: env.env,
+ env: env.deployment,
userId: user?.userId,
country: defaultCountryCode(user?.countryCode),
};
| Global nav config fix env reference | Global nav config fix env reference
|
f595e9951b0ceb5bb1de9d06400bb0efe202abb3 | --- package-lock.json
@@ -84,7 +84,7 @@
"@walmart/schedule-mini-app": "0.37.0",
"@walmart/settings-mini-app": "1.19.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
- "@walmart/taskit-mini-app": "2.47.1",
+ "@walmart/taskit-mini-app": "2.47.2",
"@walmart/texting-mini-app": "2.0.29",
"@walmart/time-clock-mini-app": "2.111.3",
"@walmart/topstock-mini-app": "1.0.13",
@@ -8090,9 +8090,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "2.47.1",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.1.tgz",
- "integrity": "sha512-3wp/KE2Nr9p6e9ydLDyh/s31o4QlLXx/O+dU6Y+TNLN9RBm+j8uDN1/RtMDOceAOD0JmL8USiD/nsts8+1BbsA==",
+ "version": "2.47.2",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.2.tgz",
+ "integrity": "sha512-lT5ruhBru1ojKQN292IBcBv3qxSjoUxP/ilZ6r9SpwdvjQFlamE4jN8BTH0ZxrE5lyXH6Cb3XqoO7I0NtH2coA==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -30719,9 +30719,9 @@
"version": "1.5.16"
},
"@walmart/taskit-mini-app": {
- "version": "2.47.1",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.1.tgz",
- "integrity": "sha512-3wp/KE2Nr9p6e9ydLDyh/s31o4QlLXx/O+dU6Y+TNLN9RBm+j8uDN1/RtMDOceAOD0JmL8USiD/nsts8+1BbsA=="
+ "version": "2.47.2",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.47.2.tgz",
+ "integrity": "sha512-lT5ruhBru1ojKQN292IBcBv3qxSjoUxP/ilZ6r9SpwdvjQFlamE4jN8BTH0ZxrE5lyXH6Cb3XqoO7I0NtH2coA=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -125,7 +125,7 @@
"@walmart/schedule-mini-app": "0.37.0",
"@walmart/settings-mini-app": "1.19.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
- "@walmart/taskit-mini-app": "2.47.1",
+ "@walmart/taskit-mini-app": "2.47.2",
"@walmart/texting-mini-app": "2.0.29",
"@walmart/time-clock-mini-app": "2.111.3",
"@walmart/topstock-mini-app": "1.0.13",
| chore: bump taskit@2.47.2 | chore: bump taskit@2.47.2
|
5450a9a143129ecedc9d70c82521722134576cfd | --- __tests__/common/creators.test.ts
@@ -0,0 +1,54 @@
+import { MyTeamFeature } from "../../src/common/feature";
+
+jest.mock('../../src/common/feature', () => ({
+ MyTeamFeature: {
+ createTranslationClient: jest.fn(() => {}),
+ createTelemetry: jest.fn(() => {}),
+ createLogger: jest.fn(() => {}),
+ createLocalStorage: jest.fn(() => {}),
+ createHttpClient: jest.fn(() => {}),
+ createGraphQLClient: jest.fn(() => {})
+ }
+}));
+
+describe('Common "Feature creators" tests', () => {
+ afterEach(() => {
+ jest.resetAllMocks();
+ });
+
+ it('tests the creation of translation', () => {
+ const translateClient = require('../../src/common/translation').translationClient;
+ expect(MyTeamFeature.createTranslationClient).toHaveBeenCalled();
+ expect(MyTeamFeature.createTelemetry).not.toHaveBeenCalled();
+ });
+
+ it('tests the creation of telemetry', () => {
+ const telemetry = require('../../src/common/telemetry').myTeamTelemetry;
+ expect(MyTeamFeature.createTelemetry).toHaveBeenCalled();
+ expect(MyTeamFeature.createLogger).not.toHaveBeenCalled();
+ });
+
+ it('tests the creation of logger', () => {
+ const logger = require('../../src/common/logger').logger;
+ expect(MyTeamFeature.createLogger).toHaveBeenCalled();
+ expect(MyTeamFeature.createLocalStorage).not.toHaveBeenCalled();
+ });
+
+ it('tests the creation of local storage', () => {
+ const lsClient = require('../../src/common/localStorage').localStorageClient;
+ expect(MyTeamFeature.createLocalStorage).toHaveBeenCalled();
+ expect(MyTeamFeature.createHttpClient).not.toHaveBeenCalled();
+ });
+
+ it('tests the creation of http client', () => {
+ const httpClient = require('../../src/common/http').httpClient;
+ expect(MyTeamFeature.createHttpClient).toHaveBeenCalled();
+ expect(MyTeamFeature.createGraphQLClient).not.toHaveBeenCalled();
+ });
+
+ it('tests the creation of graphql client', () => {
+ const graphQlClient = require('../../src/common/grahql').graphql;
+ expect(MyTeamFeature.createGraphQLClient).toHaveBeenCalled();
+ expect(MyTeamFeature.createTranslationClient).not.toHaveBeenCalled();
+ });
+});
--- __tests__/hooks/hooks.test.ts
@@ -0,0 +1,23 @@
+import { useSelector } from 'react-redux';
+import { useUserCanSeeTeamHub } from '../../src/hooks';
+
+jest.mock('react-redux', () => ({
+ ...jest.requireActual('react-redux'),
+ useSelector: jest.fn(() => false)
+}));
+
+jest.mock('@walmart/allspark-foundation-hub', () => ({
+ useUserCanSeeHub: jest.fn(() => true)
+}));
+
+describe('hooks tests', () => {
+ it('tests the useUserCanSeeTeamHub hook', () => {
+ let result = useUserCanSeeTeamHub();
+ expect(result).toBeFalsy();
+
+ (useSelector as jest.Mock).mockImplementation(() => true);
+
+ result = useUserCanSeeTeamHub();
+ expect(result).toBeTruthy();
+ });
+});
| Added tests for hooks and feature creators | Added tests for hooks and feature creators
|
7471ce54abc64fb64c37b3dfae1da69ef0e98812 | --- packages/allspark-foundation-hub/__tests__/supplyChain/Modals/__snapshots__/UpdateTeamsModal.test.tsx.snap
@@ -233,7 +233,6 @@ exports[`UpdateTeams Modal Error screen when network fails displays ModalErrorSc
exports[`UpdateTeamsModal renders ScrollView with correct props 1`] = `
[
<RCTScrollView
- onScroll={[Function]}
stickyHeaderIndices={
[
0,
@@ -570,7 +569,6 @@ exports[`UpdateTeamsModal renders ScrollView with correct props 1`] = `
exports[`UpdateTeamsModal renders UpdateTeamsModal correctly 1`] = `
[
<RCTScrollView
- onScroll={[Function]}
stickyHeaderIndices={
[
0,
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/EditSavedTeamsModal.tsx
@@ -4,8 +4,8 @@ import {
} from '@walmart/allspark-foundation';
import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation';
import { Body } from '@walmart/gtp-shared-components/dist';
-import React, { useCallback, useRef, useState } from 'react';
-import { Animated, ScrollView, SectionList, View } from 'react-native';
+import React, { useCallback, useState } from 'react';
+import { ScrollView, SectionList, View } from 'react-native';
import { useSelector } from 'react-redux';
import { SiteSelectors } from '@walmart/allspark-foundation/Site';
import { trimToFortyCharacters } from '../../../SupplyChain/Utils/utils';
@@ -52,8 +52,6 @@ export const EditSavedTeamsModal = ({
const showSearchInput = useSelector(teamSearchInputEnabled);
const division = useSelector(SiteSelectors.getWorkingSiteDivision);
const siteNumber = useSelector(SiteSelectors.getWorkingSiteSiteId);
- const scrollPosition = useRef(new Animated.Value(0)).current;
-
const teamPreferenceData: string[] =
useSelector(SC_ManagerExperienceSelectors.getSavedSiteTeams) || [];
// eslint-disable-next-line react-hooks/exhaustive-deps
@@ -150,22 +148,12 @@ export const EditSavedTeamsModal = ({
);
}
- const onScroll = Animated.event(
- [
- {
- nativeEvent: { contentOffset: { y: scrollPosition } },
- },
- ],
- { useNativeDriver: false }
- );
-
return (
<>
<ScrollView
stickyHeaderIndices={[0]}
style={modalStyles.rootContainer}
contentContainerStyle={modalStyles.contentContainer}
- onScroll={onScroll}
>
<ModalHeader
title={t('editSavedTeamsModal.title')}
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/UpdateTeamsModal/UpdateTeamsModal.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useCallback, useRef, useState } from 'react';
-import { Animated, ScrollView, View } from 'react-native';
+import { ScrollView, View } from 'react-native';
import { Divider } from '@walmart/gtp-shared-components';
import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation';
import { ShiftFilterList } from '../../Components/ShiftFilter/ShiftFilterList';
@@ -71,7 +71,6 @@ export const UpdateTeamsModal = ({
shiftPreferenceData.length === 0 ? ['A1'] : shiftPreferenceData;
const [selectedShifts, setSelectedShifts] = useState<string[]>(shiftData);
const scrollViewRef = useRef<ScrollView>(null);
- const scrollPosition = useRef(new Animated.Value(0)).current;
// eslint-disable-next-line react-hooks/exhaustive-deps
const sectionListData = [
@@ -201,15 +200,6 @@ export const UpdateTeamsModal = ({
);
}
- const onScroll = Animated.event(
- [
- {
- nativeEvent: { contentOffset: { y: scrollPosition } },
- },
- ],
- { useNativeDriver: false }
- );
-
return (
<>
<ScrollView
@@ -217,7 +207,6 @@ export const UpdateTeamsModal = ({
stickyHeaderIndices={[0]}
style={styles.rootContainer}
ref={scrollViewRef}
- onScroll={onScroll}
>
<ModalHeader
title={t('updateTeamsModal.screenTitle')}
| fix(ui): update scroll events | fix(ui): update scroll events
|
c2ad00a8a74d1e06de5264d644732ea847763c91 | --- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.4.0-alpha.14](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.13...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.14) (2025-08-29)
+
+**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app
+
# 1.4.0-alpha.13 (2025-08-29)
### Features
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.4.0-alpha.13",
+ "version": "1.4.0-alpha.14",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-mini-app@1.4.0-alpha.14
|
12613f5a636f521a4c27bff79dc6ef8653e140ae | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.40.0",
+ "version": "2.41.0",
"main": "dist/index.js",
"files": [
"dist"
--- src/screens/RosterDetailScreen/RosterDetailScreen.tsx
@@ -19,9 +19,10 @@ export const renderLeftHeader = (
primaryTeam: UseGetViewersPrimaryTeamReturnType,
showTeamHub: boolean,
) => {
- return (!showTeamHub && !route?.params?.teamId) ||
- (route?.params?.teamId &&
- primaryTeam?.[0]?.teamId === route?.params?.teamId)
+ return !showTeamHub &&
+ (!route?.params?.teamId ||
+ (route?.params?.teamId &&
+ primaryTeam?.[0]?.teamId === route?.params?.teamId))
? renderDrawerButton
: undefined;
};
| Update the roster primary team check | Update the roster primary team check
|
3512772069f1e56805b47724415a6ee307bcdeb1 | --- packages/core-services/Notification/types.ts
@@ -18,16 +18,17 @@ export type NotificationState<
optInError: boolean;
};
+// @todo - revert back to global/ once mini apps use these action definitions
export enum NotificationActions {
- CHARGE_STARTED = 'global/sumo/CHARGE_STARTED',
- CHARGE_SUCCESS = 'global/sumo/CHARGE_SUCCESS',
- CHARGE_FAILURE = 'global/sumo/CHARGE_FAILURE',
- PROFILE_STARTED = 'global/sumo/PROFILE_STARTED',
- PROFILE_SUCCESS = 'global/sumo/PROFILE_SUCCESS',
- PROFILE_FAILURE = 'global/sumo/PROFILE_FAILURE',
- RESET_NOTIFICATION_STATE = 'global/sumo/RESET_NOTIFICATION_STATE',
- OPT_IN_REQUEST = 'global/sumo/OPT_IN_REQUEST',
- RESET_SUMO_STATE = 'global/sumo/RESET_SUMO_STATE',
+ CHARGE_STARTED = 'core/sumo/CHARGE_STARTED',
+ CHARGE_SUCCESS = 'core/sumo/CHARGE_SUCCESS',
+ CHARGE_FAILURE = 'core/sumo/CHARGE_FAILURE',
+ PROFILE_STARTED = 'core/sumo/PROFILE_STARTED',
+ PROFILE_SUCCESS = 'core/sumo/PROFILE_SUCCESS',
+ PROFILE_FAILURE = 'core/sumo/PROFILE_FAILURE',
+ RESET_NOTIFICATION_STATE = 'core/sumo/RESET_NOTIFICATION_STATE',
+ OPT_IN_REQUEST = 'core/sumo/OPT_IN_REQUEST',
+ RESET_SUMO_STATE = 'core/sumo/RESET_SUMO_STATE',
}
export type NotificationActionTypes = typeof NotificationActions;
| fix: change notification action prefix in enum to match slice | fix: change notification action prefix in enum to match slice
|
e453d6180e341c661ddf682ac357e158b8fd6c2e | --- package-lock.json
@@ -5319,9 +5319,9 @@
"integrity": "sha512-sin68wxS4zRAtmn1wHS+Qkiw4wW3RdcogcdGe/Ix0HuP8lsaS3YOrjW6HeGqdfNijZ5xDXkAs0uToNLe81J4Yg=="
},
"@walmart/price-changes-mini-app": {
- "version": "1.4.6",
- "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.4.6.tgz",
- "integrity": "sha512-YE0jalslBrDzd7mpdsW4fs9GGdaoWK83fHACA8xNFg6+w5eX3Ej6QWIdgQlqMilsSMcdjmXPuO+ERadEG3eMRA=="
+ "version": "1.4.7",
+ "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.4.7.tgz",
+ "integrity": "sha512-bEBXGls3iBr7QKkkxW5dlK1cy4R2v1DupIT8cYgFejfY7xSrsEATiqWQlLaBUM9Y9ayLdX0NH5Qz34kyd/2rHQ=="
},
"@walmart/profile-feature-app": {
"version": "0.0.46",
--- package.json
@@ -98,7 +98,7 @@
"@walmart/mod-flex-mini-app": "1.1.0",
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.125.8",
- "@walmart/price-changes-mini-app": "^1.4.6",
+ "@walmart/price-changes-mini-app": "1.4.7",
"@walmart/profile-feature-app": "0.0.46",
"@walmart/push-to-talk-mini-app": "1.8.4",
"@walmart/react-native-encrypted-storage": "1.1.3",
| bump price changes to 1.4.7 for drop 8 fix | bump price changes to 1.4.7 for drop 8 fix
|
ef2cd13ffea5cb7c905a8ade53f7f1979fe5a9aa | --- plugins/withWebexSDK.ts
@@ -83,12 +83,12 @@ export const withWebexSDK: ConfigPlugin = (config) => {
config = withSounds(config, {
sounds: [
- "./assets/sounds/calling/BusyTone.wav",
+ // "./assets/sounds/calling/BusyTone.wav", // is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore
"./assets/sounds/calling/call_1_1_ringback.wav",
"./assets/sounds/calling/call_1_1_ringtone.wav",
- "./assets/sounds/calling/CallWaiting.wav",
- "./assets/sounds/calling/FastBusy.mp3",
- "./assets/sounds/calling/Reconnect.wav",
+ // "./assets/sounds/calling/CallWaiting.wav", // is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore
+ // "./assets/sounds/calling/FastBusy.mp3", // is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore
+ // "./assets/sounds/calling/Reconnect.wav", // is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore
],
});
| fix: calling wav audio files breaking android build | fix: calling wav audio files breaking android build
|
1429ed61b87298eec265a403c8d70bb06fe7e00e | --- package-lock.json
@@ -61,7 +61,7 @@
"@walmart/ims-print-services-ui": "2.7.3",
"@walmart/inbox-mini-app": "0.89.2",
"@walmart/iteminfo-mini-app": "7.7.4",
- "@walmart/learning-mini-app": "18.0.2",
+ "@walmart/learning-mini-app": "18.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
"@walmart/mod-flex-mini-app": "1.13.7",
@@ -9115,9 +9115,9 @@
}
},
"node_modules/@walmart/learning-mini-app": {
- "version": "18.0.2",
- "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-18.0.2.tgz",
- "integrity": "sha512-rKVnR+U/BqyH5sfiFee4GTNcIw/eNygRaneumgZ2m6VEkKf4iJX/cUo1KDjiJyBKWWbeLPc/5hpepGLpRhDyyw==",
+ "version": "18.0.3",
+ "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-18.0.3.tgz",
+ "integrity": "sha512-Jy7+QZeSmTY7OiiixaCL02Zoj9WfZh3PnA7e17Ptk51vgLROnp6JUkvdD8X9EyuPGc5lMmb+zXRIKEVRyf/ajg==",
"hasInstallScript": true,
"dependencies": {
"@livingdesign/tokens": "0.63.0",
@@ -33372,9 +33372,9 @@
"integrity": "sha512-UCVExhoIlJK7LNCuZx2B0A5T/i++j1pC4ehaPf4y3U0HIUgWrHWISk0Gafk2Fk9oO/mauz9BgFPGEmfTmSfC3g=="
},
"@walmart/learning-mini-app": {
- "version": "18.0.2",
- "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-18.0.2.tgz",
- "integrity": "sha512-rKVnR+U/BqyH5sfiFee4GTNcIw/eNygRaneumgZ2m6VEkKf4iJX/cUo1KDjiJyBKWWbeLPc/5hpepGLpRhDyyw==",
+ "version": "18.0.3",
+ "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-18.0.3.tgz",
+ "integrity": "sha512-Jy7+QZeSmTY7OiiixaCL02Zoj9WfZh3PnA7e17Ptk51vgLROnp6JUkvdD8X9EyuPGc5lMmb+zXRIKEVRyf/ajg==",
"requires": {
"@livingdesign/tokens": "0.63.0",
"@walmart/me-at-homeoffice-ui-components": "1.2.140"
--- package.json
@@ -102,7 +102,7 @@
"@walmart/ims-print-services-ui": "2.7.3",
"@walmart/inbox-mini-app": "0.89.2",
"@walmart/iteminfo-mini-app": "7.7.4",
- "@walmart/learning-mini-app": "18.0.2",
+ "@walmart/learning-mini-app": "18.0.3",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
"@walmart/mod-flex-mini-app": "1.13.7",
| feat: :sparkles: Bump learning mini app version to 18.0.3 | feat: :sparkles: Bump learning mini app version to 18.0.3
|
0102354b1db5295b7ffe2305060f9d79a10a17b9 | --- .looper-pr.yml
@@ -29,4 +29,3 @@ envs:
AUTHOR: temp
SLACK_CHANNEL: 'smdv-miniapp'
-
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.0.0",
+ "version": "1.1.0",
"main": "main.js",
"files": [
"dist",
| feat(ui): update associate exp #SMDV-9999 | feat(ui): update associate exp #SMDV-9999
|
e57a9aea4742113027e47659460c73d12ba79b04 | --- .looper.multibranch.yml
@@ -24,7 +24,7 @@ envs:
ANDROID_BASE_PATH: targets/US/android
branches:
- - spec: feature/returns-drop24
+ - spec: feature/drop24
triggers:
- manual:
name: Publish Packages (Pre-Release)
| Update .looper.multibranch.yml | Update .looper.multibranch.yml |
ddf81f78e575dff350501e71982fa110e2414f9c | --- package.json
@@ -94,5 +94,8 @@
"babel-jest": "29.2.1",
"metro-react-native-babel-preset": "0.76.8"
},
- "packageManager": "yarn@4.2.2"
+ "packageManager": "yarn@4.2.2",
+ "dependencies": {
+ "@shopify/flash-list": "^1.6.4"
+ }
}
--- packages/allspark-foundation/src/Components/Hub/TeamSwitcher/AddEditButton.tsx
@@ -3,11 +3,15 @@ import { View, Text, TouchableOpacity } from 'react-native';
import { Icons, colors } from '@walmart/gtp-shared-components';
import { TeamSwitcherStyles } from './styles';
-export const AddEditButton = () => {
+export const AddEditButton = ({ onPress }: { onPress?: () => void }) => {
const styles = useMemo(() => TeamSwitcherStyles(), []);
return (
- <TouchableOpacity style={styles.buttonContainer} testID='add-edit-button'>
+ <TouchableOpacity
+ style={styles.buttonContainer}
+ testID='add-edit-button'
+ onPress={onPress}
+ >
<View style={styles.button} testID='add-edit-icon'>
<Icons.PlusIcon color={colors.blue['100']} size='medium' />
</View>
--- packages/allspark-foundation/src/Components/Hub/TeamSwitcher/index.tsx
@@ -1,5 +1,6 @@
import React, { useEffect, useMemo, useState } from 'react';
-import { Text, View, Image, FlatList, TouchableOpacity } from 'react-native';
+import { Text, View, Image, TouchableOpacity } from 'react-native';
+import { FlashList } from '@shopify/flash-list';
import { TeamSwitcherProps, TeamSwitcherTypes } from './types';
import { TeamSwitcherStyles } from './styles';
import { VerticalDivider } from './VerticalDivider';
@@ -20,6 +21,8 @@ export const TeamSwitcher = ({ teamData = [] }: TeamSwitcherProps) => {
const handlePress = (teamLabel: string) => setSelectedTeam(teamLabel);
+ const handleAddEditpress = () => console.log('Add/Edit button pressed');
+
const renderTeamItem = ({ item }: { item: TeamSwitcherTypes }) => {
const isSelected = item.teamLabel === selectedTeam;
return (
@@ -61,14 +64,15 @@ export const TeamSwitcher = ({ teamData = [] }: TeamSwitcherProps) => {
return (
<View style={styles.container}>
- <FlatList
+ <FlashList
data={teamData}
renderItem={renderTeamItem}
keyExtractor={(item) => item.teamLabel}
horizontal={true}
showsHorizontalScrollIndicator={false}
contentContainerStyle={styles.flatListContent}
- ListFooterComponent={<AddEditButton />}
+ ListFooterComponent={<AddEditButton onPress={handleAddEditpress} />}
+ estimatedItemSize={100}
/>
</View>
);
--- yarn.lock
@@ -4866,6 +4866,20 @@ __metadata:
languageName: node
linkType: hard
+"@shopify/flash-list@npm:^1.6.4":
+ version: 1.6.4
+ resolution: "@shopify/flash-list@npm:1.6.4"
+ dependencies:
+ recyclerlistview: "npm:4.2.0"
+ tslib: "npm:2.4.0"
+ peerDependencies:
+ "@babel/runtime": "*"
+ react: "*"
+ react-native: "*"
+ checksum: 10c0/4b99f29f8ec2c9405c0f215d207cb489cea383c4c1d93bb594e7bb494204829b6d1b9fd9bad5c3ded5de1a0da098349b7c246cc558fb544834d8224b25f2f4c5
+ languageName: node
+ linkType: hard
+
"@sideway/address@npm:^4.1.5":
version: 4.1.5
resolution: "@sideway/address@npm:4.1.5"
@@ -6194,6 +6208,7 @@ __metadata:
"@react-native/babel-preset": "npm:^0.73.0"
"@react-native/eslint-config": "npm:0.73.2"
"@redux-saga/testing-utils": "npm:^1.1.3"
+ "@shopify/flash-list": "npm:^1.6.4"
"@testing-library/jest-native": "npm:5.4.3"
"@testing-library/react-native": "npm:12.3.2"
"@types/jest": "npm:29.2.1"
@@ -12240,7 +12255,7 @@ __metadata:
languageName: node
linkType: hard
-"lodash.debounce@npm:^4.0.8":
+"lodash.debounce@npm:4.0.8, lodash.debounce@npm:^4.0.8":
version: 4.0.8
resolution: "lodash.debounce@npm:4.0.8"
checksum: 10c0/762998a63e095412b6099b8290903e0a8ddcb353ac6e2e0f2d7e7d03abd4275fe3c689d88960eb90b0dde4f177554d51a690f22a343932ecbc50a5d111849987
@@ -14793,7 +14808,7 @@ __metadata:
languageName: node
linkType: hard
-"prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1":
+"prop-types@npm:15.8.1, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1":
version: 15.8.1
resolution: "prop-types@npm:15.8.1"
dependencies:
@@ -15465,6 +15480,20 @@ __metadata:
languageName: node
linkType: hard
+"recyclerlistview@npm:4.2.0":
+ version: 4.2.0
+ resolution: "recyclerlistview@npm:4.2.0"
+ dependencies:
+ lodash.debounce: "npm:4.0.8"
+ prop-types: "npm:15.8.1"
+ ts-object-utils: "npm:0.0.5"
+ peerDependencies:
+ react: ">= 15.2.1"
+ react-native: ">= 0.30.0"
+ checksum: 10c0/eee8e128f90d1c7fe97bc3c1204fd3b959e5895bef76bb45510f0eb23b2b72f5f7c48a87819abdefd0b8eb1dc7f76af57e3dcbaabcfb136306e6e8dee7c0375b
+ languageName: node
+ linkType: hard
+
"redent@npm:^3.0.0":
version: 3.0.0
resolution: "redent@npm:3.0.0"
@@ -17057,6 +17086,13 @@ __metadata:
languageName: node
linkType: hard
+"ts-object-utils@npm:0.0.5":
+ version: 0.0.5
+ resolution: "ts-object-utils@npm:0.0.5"
+ checksum: 10c0/0279f8a7504b3905f2b14769769985f214154f1aedc60077c3baaced078369ae465aecc6acc04c614f40893e559d05697f6f4ef9fc411e3b6d1d15e6269a5e14
+ languageName: node
+ linkType: hard
+
"ts-retry-promise@npm:~0.7.1":
version: 0.7.1
resolution: "ts-retry-promise@npm:0.7.1"
@@ -17075,6 +17111,13 @@ __metadata:
languageName: node
linkType: hard
+"tslib@npm:2.4.0":
+ version: 2.4.0
+ resolution: "tslib@npm:2.4.0"
+ checksum: 10c0/eb19bda3ae545b03caea6a244b34593468e23d53b26bf8649fbc20fce43e9b21a71127fd6d2b9662c0fe48ee6ff668ead48fd00d3b88b2b716b1c12edae25b5d
+ languageName: node
+ linkType: hard
+
"tslib@npm:^1.8.1":
version: 1.14.1
resolution: "tslib@npm:1.14.1"
| feat: update component from flatlist to flashlist | feat: update component from flatlist to flashlist
|
c47f689078cb5412a5bb7af6bc680743c072b147 | --- src/translations/en-US.ts
@@ -350,7 +350,7 @@ export const enUS_home = {
viewRoster: 'View roster',
},
todayDateLabel: 'Today is',
- userGreeting: 'Hi there',
+ userGreeting: 'Hey there',
walmartWeek: 'Week {{week}}',
};
| Update en-US.ts | Update en-US.ts
revert codepush changes |
2b80bca3cde9c72a0390e21a5c28d6d77b3bee71 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 126
+ versionCode 127
versionName "1.0.11"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>126</string>
+ <string>127</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
| Incrementing build number | Incrementing build number
|
3db72491196f96d641d0159a1cedb3bcb69677e0 | --- targets/US/ios/Podfile.lock
@@ -1033,6 +1033,7 @@ PODS:
- OsirisCamera (0.8.3-rc.6):
- Osiris (= 0.8.3-rc.6)
- OsirisBarcode (= 0.8.3-rc.6)
+ - OsirisDigitalLocks (0.8.9)
- OsirisVision (0.8.3-rc.6):
- Osiris (= 0.8.3-rc.6)
- OsirisCamera (= 0.8.3-rc.6)
@@ -2152,6 +2153,11 @@ PODS:
- Realm/Headers (10.51.0)
- RealmJS (12.8.1):
- React
+ - rn-mobile-sdk-pairing (2.1.4-osirisfix.2):
+ - glog
+ - OsirisDigitalLocks (= 0.8.9)
+ - RCT-Folly (= 2022.05.16.00)
+ - React-Core
- RNCAsyncStorage (1.24.0):
- React-Core
- RNCClipboard (1.16.1):
@@ -2426,6 +2432,7 @@ DEPENDENCIES:
- "ReactNativeART (from `../../../node_modules/@react-native-community/art`)"
- Realm
- RealmJS (from `../../../node_modules/realm`)
+ - "rn-mobile-sdk-pairing (from `../../../node_modules/@walmart/rn-mobile-sdk-pairing`)"
- "RNCAsyncStorage (from `../../../node_modules/@react-native-async-storage/async-storage`)"
- "RNCClipboard (from `../../../node_modules/@react-native-clipboard/clipboard`)"
- "RNCPicker (from `../../../node_modules/@react-native-picker/picker`)"
@@ -2462,6 +2469,8 @@ DEPENDENCIES:
SPEC REPOS:
"git@gecgithub01.walmart.com:Compass/compass-ios-private-pods.git":
- compass-sdk-ios
+ "git@gecgithub01.walmart.com:Project-Diamond/cocoapods-specs.git":
+ - OsirisDigitalLocks
"git@gecgithub01.walmart.com:ssaeSCTP/CocoaPodSpecs.git":
- StructuredLogAssistantIOS
- SumoSDK
@@ -2718,6 +2727,8 @@ EXTERNAL SOURCES:
:path: "../../../node_modules/@react-native-community/art"
RealmJS:
:path: "../../../node_modules/realm"
+ rn-mobile-sdk-pairing:
+ :path: "../../../node_modules/@walmart/rn-mobile-sdk-pairing"
RNCAsyncStorage:
:path: "../../../node_modules/@react-native-async-storage/async-storage"
RNCClipboard:
@@ -2855,6 +2866,7 @@ SPEC CHECKSUMS:
Osiris: 1b52d1f11f9c38f81e2a9c5764583639455043ab
OsirisBarcode: 8c40bffbc0a2016de00607f6b2512389d2f0e8cd
OsirisCamera: 3204d4ed1c9a47e44e0e606bfd0bd67679e70072
+ OsirisDigitalLocks: 84d67583c496887c2a5657a7c1b1700d8ab8293f
OsirisVision: b94dc2064b827855d6d510337a7737402feb8e9c
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
@@ -2929,6 +2941,7 @@ SPEC CHECKSUMS:
ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab
Realm: 7e75a684c16aca7c6a5db9c70caebf37f07dcee5
RealmJS: 2c7fdb3991d7655fba5f88eb288f75eaf5cb9980
+ rn-mobile-sdk-pairing: 0f0da25d98f3e6dc62279cdfa26563283cda5be7
RNCAsyncStorage: ec53e44dc3e75b44aa2a9f37618a49c3bc080a7a
RNCClipboard: d7a8903d32692b0a1e71738c3825465a9acae10e
RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1
--- targets/US/package.json
@@ -99,7 +99,7 @@
"@walmart/core-utils": "6.3.9",
"@walmart/core-widget-registry": "workspace:^",
"@walmart/counts-component-miniapp": "0.1.14",
- "@walmart/digital-locks-mini-app": "1.1.3",
+ "@walmart/digital-locks-mini-app": "1.1.3-osirisfix.1",
"@walmart/emergency-mini-app": "1.30.5",
"@walmart/exception-mini-app": "1.8.11",
"@walmart/facilities-management-miniapp": "0.17.0",
@@ -143,7 +143,7 @@
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.15.0",
"@walmart/rfid-scan-mini-app": "2.7.1",
- "@walmart/rn-mobile-sdk-pairing": "2.1.4",
+ "@walmart/rn-mobile-sdk-pairing": "2.1.4-osirisfix.2",
"@walmart/rn-receiving-mini-app": "2.4.45",
"@walmart/roster-mini-app": "2.9.0",
"@walmart/schedule-mini-app": "1.13.0",
--- yarn.lock
@@ -6708,13 +6708,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/digital-locks-mini-app@npm:1.1.3":
- version: 1.1.3
- resolution: "@walmart/digital-locks-mini-app@npm:1.1.3"
+"@walmart/digital-locks-mini-app@npm:1.1.3-osirisfix.1":
+ version: 1.1.3-osirisfix.1
+ resolution: "@walmart/digital-locks-mini-app@npm:1.1.3-osirisfix.1"
peerDependencies:
"@walmart/allspark-foundation": ">=6.0.0"
"@walmart/invue-react-native-sdk": 0.1.26-beta.3
- "@walmart/rn-mobile-sdk-pairing": 2.1.4
expo: 50.0.17
expo-image: 1.5.2
expo-secure-store: ~12.8.1
@@ -6726,7 +6725,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/9df6e87722a9b4765f6c599563f23cddc58f4837d2c73ff8e870529a1ed29d2b53849385dc0023b36459f795c4496ac0a28a403427f206e462895dbb3b147867
+ checksum: 10c0/76600411cbaa638c573a48f9394aae5c9c0052cdc0ca29b677298d9c2ac74ee665a6011facc31263bdbdfbc3e1a340dc60f7ad326e66a5a4415b32d924c69a39
languageName: node
linkType: hard
@@ -7430,7 +7429,7 @@ __metadata:
"@walmart/core-utils": "npm:6.3.9"
"@walmart/core-widget-registry": "workspace:^"
"@walmart/counts-component-miniapp": "npm:0.1.14"
- "@walmart/digital-locks-mini-app": "npm:1.1.3"
+ "@walmart/digital-locks-mini-app": "npm:1.1.3-osirisfix.1"
"@walmart/emergency-mini-app": "npm:1.30.5"
"@walmart/exception-mini-app": "npm:1.8.11"
"@walmart/facilities-management-miniapp": "npm:0.17.0"
@@ -7474,7 +7473,7 @@ __metadata:
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.15.0"
"@walmart/rfid-scan-mini-app": "npm:2.7.1"
- "@walmart/rn-mobile-sdk-pairing": "npm:2.1.4"
+ "@walmart/rn-mobile-sdk-pairing": "npm:2.1.4-osirisfix.2"
"@walmart/rn-receiving-mini-app": "npm:2.4.45"
"@walmart/roster-mini-app": "npm:2.9.0"
"@walmart/schedule-mini-app": "npm:1.13.0"
@@ -8197,14 +8196,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rn-mobile-sdk-pairing@npm:2.1.4":
- version: 2.1.4
- resolution: "@walmart/rn-mobile-sdk-pairing@npm:2.1.4"
+"@walmart/rn-mobile-sdk-pairing@npm:2.1.4-osirisfix.2":
+ version: 2.1.4-osirisfix.2
+ resolution: "@walmart/rn-mobile-sdk-pairing@npm:2.1.4-osirisfix.2"
peerDependencies:
"@walmart/invue-react-native-sdk": 0.1.26-beta.3
react: "*"
react-native: "*"
- checksum: 10c0/2f2bbb694f775cd6d9e183b030dd6125d7f47cbbf53a486b32c38f29e49ea813e95d94c4df58d0c7b6533dcfc0327c871527840da0858de2e5990da173fdf911
+ checksum: 10c0/63e928117900608122d8b4a5761983a862717153329e522eb3f6498d243d88ecf12d3f7d0546ffe21299639582a83fb8c90424b24073705b5db3205eb956ebd6
languageName: node
linkType: hard
| bump digital locks and pairing to osirisfix | bump digital locks and pairing to osirisfix
|
e1070cd9395cba9249e2484d60db106e32cf12b7 | --- graphql.yml
@@ -1,17 +1,24 @@
schemaVersion: '1.0.0'
teamRostersProductId: 1824
applications:
- - name: 'ROSTER-MINIAPP'
- applicationKey: 'ROSTER-MINIAPP'
- description: 'Roster mini app'
+ - name: 'TEXTING-MINIAPP'
+ applicationKey: 'TEXTING-MINIAPP'
+ description: 'Texting mini app'
environments:
- name: 'dev'
persistedQueries:
- name: 'GetAssociateClockStatus'
+ hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214'
queryTemplate: 'src/queries/getAssociateClockStatus.graphql'
tags:
- 'v1'
+ - name: 'GetAssociateName'
+ hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f'
+ queryTemplate: 'src/queries/getAssociateName.graphql'
+ tags:
+ - 'v1'
- name: 'GetDailyRoster'
+ hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3'
queryTemplate: 'src/queries/getDailyRoster.graphql'
tags:
- 'v3'
@@ -29,10 +36,17 @@ applications:
- name: 'stage'
persistedQueries:
- name: 'GetAssociateClockStatus'
+ hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214'
queryTemplate: 'src/queries/getAssociateClockStatus.graphql'
tags:
- 'v1'
+ - name: 'GetAssociateName'
+ hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f'
+ queryTemplate: 'src/queries/getAssociateName.graphql'
+ tags:
+ - 'v1'
- name: 'GetDailyRoster'
+ hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3'
queryTemplate: 'src/queries/getDailyRoster.graphql'
tags:
- 'v3'
| updating graphql yaml | updating graphql yaml
|
9fc2725c93a84a7fa613c9f2db24c98dfd3afb3f | --- core/__tests__/oneClick/utility/updateMegaNavCCMTest.ts
@@ -7,6 +7,6 @@ describe('getIsFeatureEnabled', () => {
});
it('turns feature off if it is disabled from bff', () => {
expect(getIsFeatureEnabled(true, false)).toEqual(false);
- expect(getIsFeatureEnabled(false, true)).toEqual(true);
+ expect(getIsFeatureEnabled(false, true)).toEqual(false);
});
});
--- core/src/oneClick/utility/updateMegaNavCCM.ts
@@ -6,7 +6,7 @@ import {OneClickConfig} from '../types';
export const getIsFeatureEnabled = (
featureConfigEnable: undefined | boolean,
menuEnabled: boolean,
-) => (featureConfigEnable || true) && menuEnabled;
+) => (featureConfigEnable ?? true) && menuEnabled;
export const updateMegaNavCCM = (
meganavData: NavConfigData,
| change to isEnable logic | change to isEnable logic
|
83b2c5db25d0c3fff06eb51b7d54000fe5517706 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 47
+ versionCode 48
versionName "1.0.2"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>47</string>
+ <string>48</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>invmgmt</string>
--- ios/AllSparkTests/Info.plist
@@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>47</string>
+ <string>48</string>
</dict>
</plist>
| Incrementing build number | Incrementing build number
|
10ece45173f2d6a691488b4a303988396c3cb70a | --- example/src/core/home.tsx
@@ -54,7 +54,7 @@ export function HomeScreen() {
variant="primary"
UNSAFE_style={{marginBottom: 10}}
onPress={() => AllsparkNavigationClient.navigate('teamHub.home')}>
- Open Feature 3
+ Open Team Hub
</Button>
<Button
variant="primary"
| feat(ui): update container for all spark hub | feat(ui): update container for all spark hub
|
b31c41abb9dec82b08bd6f5e640f7230e712be25 | --- package.json
@@ -98,7 +98,7 @@
"@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch",
"@walmart/avp-feature-app": "0.28.47",
"@walmart/avp-shared-library": "0.27.26",
- "@walmart/ax-components": "1.4.0-beta.5491+0c19f2ff1",
+ "@walmart/ax-components": "1.4.0-beta.5492+56a10a76a",
"@walmart/backroom-mini-app": "1.17.11",
"@walmart/beneficiary-online-mini-app": "0.1.26",
"@walmart/beneficiary-online-shared-library": "1.2.7",
--- src/app/tabs/_layout.tsx
@@ -106,7 +106,7 @@ export default function TabsNavigation() {
}
}}
options={{
- tabBarIcon: (props) => <Icon {...props} name='checklist' accessible={false} size='medium'/>,
+ tabBarIcon: (props) => <Icon {...props} name='bulletlist' accessible={false} size='medium'/>,
tabBarAccessibilityLabel: translate('forYou.tabAccessibilityLabel'),
title: translate('forYou.tabTitle')
}}
--- yarn.lock
@@ -7981,9 +7981,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/ax-components@npm:1.4.0-beta.5491+0c19f2ff1":
- version: 1.4.0-beta.5491
- resolution: "@walmart/ax-components@npm:1.4.0-beta.5491::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.4.0-beta.5491.tgz"
+"@walmart/ax-components@npm:1.4.0-beta.5492+56a10a76a":
+ version: 1.4.0-beta.5492
+ resolution: "@walmart/ax-components@npm:1.4.0-beta.5492::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.4.0-beta.5492.tgz"
peerDependencies:
"@expo/vector-icons": ~14.1.0
"@walmart/gtp-shared-components-3": "*"
@@ -7991,7 +7991,7 @@ __metadata:
react: 19.x
react-dom: 19.x
react-native: 0.79.x
- checksum: 10c0/347eb282ef9847dac6f3c6975dd2ecc40e72b2536f00516888249ce2efda7cb9e13174d9cbe394996b897e84495a2235bdcd9d77aab3f092cdc43350f15548d5
+ checksum: 10c0/8c82dee24f0b8ae1ec5c8bb0dd6cd27a575c70dd58db151ec848ce7c30ebfcb9dd9bf30f8071b668d05b14648078b2e565f886b7b7389f300f77061643c260f5
languageName: node
linkType: hard
@@ -8867,7 +8867,7 @@ __metadata:
"@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch"
"@walmart/avp-feature-app": "npm:0.28.47"
"@walmart/avp-shared-library": "npm:0.27.26"
- "@walmart/ax-components": "npm:1.4.0-beta.5491+0c19f2ff1"
+ "@walmart/ax-components": "npm:1.4.0-beta.5492+56a10a76a"
"@walmart/backroom-mini-app": "npm:1.17.11"
"@walmart/beneficiary-online-mini-app": "npm:0.1.26"
"@walmart/beneficiary-online-shared-library": "npm:1.2.7"
| fix(ui): updated components version and mapping | fix(ui): updated components version and mapping
|
10bdcd89c6fd275de8d201b112dc987109b2202e | --- src/app/tabs/_layout.tsx
@@ -4,7 +4,7 @@ import {useNavigation} from '@react-navigation/native';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import {HeaderButtonProps} from '@react-navigation/elements';
import {ClockSelectors, useAllsparkSelector, useAllsparkTranslation, UserSelectors} from '@walmart/allspark-foundation';
-import {ChatBubbleIcon, IconButton} from '@walmart/gtp-shared-components-3';
+import {IconButton} from '@walmart/gtp-shared-components-3';
import Images from '../../images/assets';
import {Image} from 'expo-image'
--- src/translations/locales/en-US.ts
@@ -182,10 +182,6 @@ export const enUS = {
'modalMessage': `${Constants.expoConfig?.name} can use $t({{biometric}}) to confirm your identity?`,
'modalTitle': 'Would you like to enable $t({{biometric}})?',
'modalTitleWhatsNew': `What's new in ${Constants.expoConfig?.name}`,
- 'yourTeam.clockedOutSubtitle':'You must be clocked in to access more information about your team.',
- 'yourTeam.headerTitle': 'Your Team',
- 'yourTeam.tabAccessibilityLabel': 'Your team',
- 'yourTeam.tabTitle': 'Your team',
'navigation.askSam': 'Sidekick',
'navigation.askSamTab': 'Sidekick',
'navigation.emergency': 'Message Details',
@@ -332,4 +328,8 @@ export const enUS = {
'whatsNew': 'What\'s New',
'whatsNewTitle': 'What\'s new',
'whatsNextTitle': 'What\'s next',
+ 'yourTeam.clockedOutSubtitle':'You must be clocked in to access more information about your team.',
+ 'yourTeam.headerTitle': 'Your Team',
+ 'yourTeam.tabAccessibilityLabel': 'Your team',
+ 'yourTeam.tabTitle': 'Your team',
};
| chore: fix lint | chore: fix lint
|
45ba417cf8c3cf697e35b25b22820ce671b7eb61 | --- packages/allspark-foundation-hub/src/HubFeature/Store/Common/TeamHub.ts
@@ -0,0 +1,38 @@
+import { ReactNode } from 'react';
+import { AllsparkComponentContainers } from '@walmart/allspark-foundation/Components';
+import { Icons } from '@walmart/gtp-shared-components';
+
+export interface BaseTeamHubWidgetProps {
+ loading?: boolean;
+ iconName: keyof typeof Icons;
+ moduleTitle: string;
+ variant: 'actionable' | 'informational' | 'content-only';
+ restricted?: boolean;
+ shortIntro?: string;
+ content?: ReactNode;
+ actionText?: string;
+ actionBtnText?: string;
+ onActionPress?: () => void;
+ isActionBtnDisabled?: boolean;
+ infoText?: string;
+ routeName: string;
+ routeParams?: { [key: string]: any } | undefined;
+ refresh?: boolean;
+}
+
+export interface TeamHubWidgetProps {
+ selectedTeamPreference?: string;
+ selectedTeamIds?: string[];
+ refresh?: string | null;
+ widgetStyle?: any;
+}
+
+export const TEAM_HUB_KEY = 'Me@Walmart.ManagerExperience.MyTeam';
+export const TEAM_HUB_CCM_NAMESPACE = 'myteam';
+export const TEAM_HUB_SCREEN_NAME = 'myTeam.root';
+export const DEFAULT_WIDGET_IDS = ['roster'];
+/**
+ * Component container for Team Hub Manager experience.
+ */
+export const TeamHubContainer =
+ AllsparkComponentContainers.create<TeamHubWidgetProps>(TEAM_HUB_KEY);
--- packages/allspark-foundation-hub/src/HubFeature/Store/Common/WorkHub.ts
@@ -0,0 +1,37 @@
+import { ReactNode } from 'react';
+import { AllsparkComponentContainers } from '@walmart/allspark-foundation/Components';
+import { Icons } from '@walmart/gtp-shared-components';
+
+export interface BaseWorkHubWidgetProps {
+ loading?: boolean;
+ iconName: keyof typeof Icons;
+ moduleTitle: string;
+ variant: 'actionable' | 'informational' | 'content-only';
+ restricted?: boolean;
+ shortIntro?: string;
+ content?: ReactNode;
+ actionText?: string;
+ actionBtnText?: string;
+ onActionPress?: () => void;
+ isActionBtnDisabled?: boolean;
+ infoText?: string;
+ routeName: string;
+ routeParams?: { [key: string]: any } | undefined;
+ refresh?: boolean;
+}
+
+export interface WorkHubWidgetProps {
+ selectedTeamPreference?: string;
+ selectedTeamIds?: string[];
+ refresh?: string | null;
+ widgetStyle?: any;
+}
+
+export const WORK_HUB_KEY = 'Me@Walmart.ManagerExperience.Work';
+export const WORK_HUB_CCM_NAMESPACE = 'sidekick';
+export const WORK_HUB_SCREEN_NAME = 'sidekick';
+/**
+ * Component container for Work Hub Manager experience.
+ */
+export const WorkHubContainer =
+ AllsparkComponentContainers.create<WorkHubWidgetProps>(WORK_HUB_KEY);
--- packages/allspark-foundation-hub/src/HubFeature/Store/Common/index.ts
@@ -0,0 +1,10 @@
+import { TEAM_HUB_KEY, TeamHubWidgetProps } from './TeamHub';
+import { WORK_HUB_KEY, WorkHubWidgetProps } from './WorkHub';
+
+export * from './TeamHub';
+export * from './WorkHub';
+
+export type HubFeatureContainers = {
+ [TEAM_HUB_KEY]: TeamHubWidgetProps;
+ [WORK_HUB_KEY]: WorkHubWidgetProps;
+};
--- packages/allspark-foundation-hub/src/HubFeature/allspark-extension.types.ts
@@ -0,0 +1,9 @@
+import { HubFeatureContainers } from './Store/Common';
+
+declare global {
+ namespace Allspark {
+ interface ComponentContainers extends HubFeatureContainers {}
+ }
+}
+
+export {};
| Update team hub and work hub types | Update team hub and work hub types
|
3bff0e4e0010cc5eb8e4c07b7b0e5aefa3d68959 | --- .github/pull_request_template.md
@@ -0,0 +1,40 @@
+## Note:
+PR/Template Process for Allspark-core: [Link](https://confluence.walmart.com/pages/viewpage.action?pageId=655900878#AllSparkIntegrateaFeatureAppwithCore-SubmitaPRtomergetodevelop)
+
+
+| :exclamation: YOUR PR WILL NOT BE REVIEWED IF THE TEMPLATE IS INCOMPLETE! |
+| ------------------------------------------------------------------------- |
+
+## Links to JIRA tickets:
+
+
+## Please describe the changes, problems and solutions this PR is addressing:
+
+
+
+## Please provide comparision diff of changes from mini app github:
+(Example: [v2.2.0...octocat:v2.3.3](https://github.com/octocat/linguist/compare/v2.2.0...octocat:v2.3.3) , How to do [comparision](https://docs.github.com/en/repositories/releasing-projects-on-github/comparing-releases))
+
+
+## App changes
+### Types of changes
+What types of changes does your code introduce?
+_Put an `x` in the boxes that apply_
+
+- [ ] Bugfix (non-breaking change which fixes an issue)
+- [ ] New feature (non-breaking change which adds functionality)
+- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
+- [ ] Build scripts (Changes to looper files or other scripts supporting the build)
+- [ ] Documentation Update (if none of the other choices apply)
+
+### Checklist
+- [ ] Have you updated the [Firebase events list](https://confluence.walmart.com/display/ALLSPARK/All+Spark+Custom+Firebase+Events+by+Feature+App) with your mini-app's events?
+- [ ] Are all peer dependencies for your mini app included in allspark-core package.json?
+- [ ] If this is a new mini-app, include the onboarding documentation link for your mini-app.
+- [ ] Please provide a **screenshot of code coverage** for the mini app node module. Minimum 90% coverage required.
+
+### Risk level:
+To help with review, estimate the risk level of the changes in this PR?
+- [ ] Low
+- [ ] Medium
+- [ ] High
| feat(ui): update PR template | feat(ui): update PR template
|
7cce9fd10b09606925a2e08f58dbafcbdf25282a | --- graphql.yml
@@ -87,8 +87,7 @@ applications:
tags:
- 'v1'
- name: 'GetTeamsByStore'
- hash: '2102505f2e34ecdf049dd663c666466673496619cf0562892f706d5e9e0095c7'
+ hash: '873fc65ca1ee7ff9f729ef6efc5c674ab9a9037b1838693e0fcbe9a00031a513'
queryTemplate: 'src/queries/getTeamsbyStore.graphql'
tags:
- - 'v2'
- - 'Drop16'
+ - 'v1'
--- graphql.yml
@@ -87,8 +87,7 @@ applications:
tags:
- 'v1'
- name: 'GetTeamsByStore'
- hash: '2102505f2e34ecdf049dd663c666466673496619cf0562892f706d5e9e0095c7'
+ hash: '873fc65ca1ee7ff9f729ef6efc5c674ab9a9037b1838693e0fcbe9a00031a513'
queryTemplate: 'src/queries/getTeamsbyStore.graphql'
tags:
- - 'v2'
- - 'Drop16'
+ - 'v1'
| Adding requested PR changes | Adding requested PR changes
|
d56bb3b3bcf655922d301e6062a0112975978cda | --- .yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch
@@ -1,13 +0,0 @@
-diff --git a/dist/components/ProfileCard/index.js b/dist/components/ProfileCard/index.js
-index eaeda6ad0d7e85f2b141048fac861b65092517db..63463cd605df2c6445af6972008f020e0ee06a3b 100644
---- a/dist/components/ProfileCard/index.js
-+++ b/dist/components/ProfileCard/index.js
-@@ -8,7 +8,7 @@ import Images from '../../themes/Images';
- import { Colors, GlobalStyles } from '../../themes';
- import { getHireDate, getPreferredFormattedName, ProfileCardInformationCreators, getLoading, getProfilePic, getTenure, getUpdatePronounsStatus, getPronouns, } from '../../redux/ProfileCard';
- import { getWin } from '../../redux/selectors';
--import Clipboard from '@react-native-community/clipboard';
-+import Clipboard from '@react-native-clipboard/clipboard';
- import { miniAppName } from '../../constants';
- import { AlertMessage, Spacer } from '../../components';
- import { useNavigation, } from '@react-navigation/native';
--- targets/US/package.json
@@ -127,7 +127,7 @@
"@walmart/pay-stub-miniapp": "0.20.11",
"@walmart/payrollsolution_miniapp": "0.145.31",
"@walmart/price-changes-mini-app": "1.10.25",
- "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch",
+ "@walmart/profile-feature-app": "1.138.5",
"@walmart/react-native-cookies": "1.0.1",
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-env": "~6.3.28",
--- yarn.lock
@@ -7462,7 +7462,7 @@ __metadata:
"@walmart/pay-stub-miniapp": "npm:0.20.11"
"@walmart/payrollsolution_miniapp": "npm:0.145.31"
"@walmart/price-changes-mini-app": "npm:1.10.25"
- "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch"
+ "@walmart/profile-feature-app": "npm:1.138.5"
"@walmart/react-native-cookies": "npm:1.0.1"
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
"@walmart/react-native-env": "npm:~6.3.28"
@@ -7924,9 +7924,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/profile-feature-app@npm:1.138.3":
- version: 1.138.3
- resolution: "@walmart/profile-feature-app@npm:1.138.3"
+"@walmart/profile-feature-app@npm:1.138.5":
+ version: 1.138.5
+ resolution: "@walmart/profile-feature-app@npm:1.138.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprofile-feature-app%2F-%2Fprofile-feature-app-1.138.5.tgz"
peerDependencies:
"@react-navigation/bottom-tabs": ^6.0.0
"@react-navigation/material-top-tabs": ^6.0.0
@@ -7963,50 +7963,7 @@ __metadata:
react-redux: ^8.0.4
realm: ^11.2.0
redux: ^4.1.2
- checksum: 10c0/14ee46bef549cca9bd8a3a97dd1f1de4868736ad0e2025e5f6a45c23cb6c8d3d235d41537312b548ea697dc5f9a318b8b1ecf415f4a34c9b0b50d34fd9a6d304
- languageName: node
- linkType: hard
-
-"@walmart/profile-feature-app@patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch":
- version: 1.138.3
- resolution: "@walmart/profile-feature-app@patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch::version=1.138.3&hash=61b022"
- peerDependencies:
- "@react-navigation/bottom-tabs": ^6.0.0
- "@react-navigation/material-top-tabs": ^6.0.0
- "@react-navigation/native": ^6.0.8
- "@react-navigation/stack": ^6.1.1
- "@shopify/flash-list": ^1.6.3
- "@walmart/core-services": ^1.0.3
- "@walmart/financial-wellbeing-feature-app": 1.0.18
- "@walmart/functional-components": ^2.0.2
- "@walmart/learning-mini-app": 16.0.27
- "@walmart/pay-stub-miniapp": 0.7.1
- "@walmart/payrollsolution_miniapp": 0.126.54
- "@walmart/react-native-env": ^0.2.0
- "@walmart/react-native-logger": ^1.29.0
- "@walmart/react-native-shared-navigation": ^1.0.2
- "@walmart/redux-store": ^2.0.4
- i18n-iso-countries: ^7.5.0
- lodash: ^4.17.21
- react: ^18.2.0
- react-native: ^0.70.5
- react-native-chart-kit: ^6.6.1
- react-native-device-info: ^10.3.0
- react-native-fast-image: ^8.5.11
- react-native-html-to-pdf: ^0.12.0
- react-native-pager-view: ^5.4.9
- react-native-pell-rich-editor: ^1.8.8
- react-native-safe-area-context: ^3.1.3
- react-native-share: ^7.6.6
- react-native-svg: ^13.4.0
- react-native-svg-transformer: ^1.0.0
- react-native-tab-view: ^2.16.0
- react-native-wm-network: ^0.1.0
- react-native-wm-telemetry: ^0.3.0
- react-redux: ^8.0.4
- realm: ^11.2.0
- redux: ^4.1.2
- checksum: 10c0/728895788405db0eae7a7663f42a32e0683defad2051d9b5fc9e06978583366472c59dd9f8c9d04ecb74f2365ff003bc869c2c5ac9c0d582df13a910420b17b6
+ checksum: 10c0/ff286142e5e13d124ebb3550d927012bb143d9f0d7a84f119cf34acbae6ad96f4fe9c5ff2f321a6874772399e027f798b59bc03e4a96de1c7de7f0c2ee97209d
languageName: node
linkType: hard
| bump version | bump version
|
141a3d4651ddd66fda7d3045ecdd777bfb2c6595 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx
@@ -37,6 +37,8 @@ export const OnboardingScreen = () => {
[]
);
+ // const showHubHeader = useSelector(hubHeaderEnabled);
+
const handleSearchInput = useCallback(
(input: string) => {
setInput(input);
| feat: added feature flags for header and filter | feat: added feature flags for header and filter
|
cea44ff99c0f4aa491a5904b73028db3410e5ef8 | --- .looper.multibranch.yml
@@ -260,6 +260,7 @@ flows:
## @param (unnamed) env release type
build:
- declare(BUILD_NUMBER)
+ - echo "Looper Run Id ${LOOPER_RUN_ID}"
- echo "release type ${releaseType}"
- echo "slackIcon ${slackIcon}"
- echo "slackChannel ${slackChannel}"
| quick test on looper run id | quick test on looper run id
|
5d45b2a3f8db6b72034b5d9049a67ca18d7cfe51 | --- packages/allspark-foundation/src/Components/ComponentContainers.tsx
@@ -130,7 +130,7 @@ export class ComponentContainer<Props = {}> {
* @param Component - The component to replace it with.
*/
public replace = (id: string, Component: ComponentType<Props>) => {
- if (this._components.get(id)) {
+ if (this._components.has(id)) {
this._components.set(id, Component);
this._eventManager.runEvent('change', id);
}
| refactor: change get to has on map interaction for simpler existence check | refactor: change get to has on map interaction for simpler existence check
|
c20fa71af420321d0532b0750735a48bc7ce2580 | --- packages/expo-config-plugins/src/index.ts
@@ -71,6 +71,7 @@ export default function getPlugins(additionalPlugins?: additionalPlugins[]) {
moduleBasePath + 'withWifiStoreLocator',
moduleBasePath + 'withWorkManagerInitializer',
moduleBasePath + 'withRuler',
+ moduleBasePath + 'withiOSStripBinarySymbols',
];
if (additionalPlugins && additionalPlugins.length > 0) {
additionalPlugins.map((plugin) => {
@@ -125,3 +126,4 @@ export const withWebexSDK = moduleBasePath + 'withWebexSDK';
export const withWifiStoreLocator = moduleBasePath + 'withWifiStoreLocator';
export const withWorkManagerInitializer = moduleBasePath + 'withWorkManagerInitializer';
export const withRuler = moduleBasePath + 'withRuler';
+export const withiOSStripBinarySymbols = moduleBasePath + 'withiOSStripBinarySymbols';
--- packages/expo-config-plugins/src/withiOSStripBinarySymbols.ts
@@ -0,0 +1,44 @@
+import {
+ withXcodeProject,
+ ConfigPlugin
+} from '@expo/config-plugins';
+
+const withiOSStripBinarySymbols: ConfigPlugin = (config) => {
+ return withXcodeProject(config, (config) => {
+ const xcodeProject = config.modResults;
+
+ // Add a new build phase
+ xcodeProject.addBuildPhase(
+ [], // files (empty for shell script)
+ 'PBXShellScriptBuildPhase',
+ '[CI] Strip Binary Symbols', // name of the build phase
+ null, // target (null means main target)
+ {
+ shellPath: '/bin/sh',
+ shellScript: `
+ # Define paths
+ FRAMEWORKS_SCRIPT_PATH="\${PODS_ROOT}/Target Support Files/Pods-MyWalmart/Pods-MyWalmart-frameworks.sh"
+ STRIP_BINARY_PATH="\${PROJECT_DIR}/BuildSupport/strip-binary-symbols.sh"
+
+ # Check if the strip-binary-symbols.sh reference already exists
+ if grep -q "$STRIP_BINARY_PATH" "$FRAMEWORKS_SCRIPT_PATH"; then
+ echo "The strip-binary-symbols.sh reference already exists in $FRAMEWORKS_SCRIPT_PATH"
+ exit 0
+ fi
+
+ # Append the code to the end of the file
+ echo "source $STRIP_BINARY_PATH" >> "$FRAMEWORKS_SCRIPT_PATH"
+
+ echo "Added strip-binary-symbols.sh reference to $FRAMEWORKS_SCRIPT_PATH"
+ exit 0
+ `,
+ inputPaths: ['\'${DWARF_DSYM_FOLDER_PATH}/${EXECUTABLE_NAME}.app.dSYM/Contents/Resources/DWARF/${EXECUTABLE_NAME}\''],
+ runOnlyForDeploymentPostprocessing: 1, // Run only for Release builds
+ }
+ );
+
+ return config;
+ });
+};
+
+module.exports = withiOSStripBinarySymbols;
| feat(plugin): allspark-6539 added strip binary symbols plugin | feat(plugin): allspark-6539 added strip binary symbols plugin
|
9b2d47f7454adc7efc48ec5946c3060c3a42fe44 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/EditSavedTeamModal/EditSavedTeamsModal.tsx
@@ -16,6 +16,7 @@ import { AllTeamsSections } from './types';
import { UserSelectors } from '@walmart/allspark-foundation/User';
import { ManagerExperienceSelectors } from '../../Redux';
import { useUpsertSupplyChainAssociatePreference } from '../../Hooks';
+import { filterTeamsBySearchInput } from '../../Utils/SearchInput';
export interface ModalProps {
modal: {
@@ -52,22 +53,9 @@ export const EditSavedTeamsModal = ({ modal: { closeModal } }: any) => {
const handleSearchInput = useCallback(
(searchString: string) => {
if (searchString.length > 2) {
- const searchApplied = allSiteTeamsSections.reduce(
- (accumulator: AllTeamsSections[], section: AllTeamsSections) => {
- const filteredTeams = section.data.filter((team) =>
- team.teamName.toLowerCase().includes(searchString.toLowerCase())
- );
- if (filteredTeams.length === 0) {
- return accumulator;
- }
- const filteredSection = {
- ...section,
- data: filteredTeams,
- };
- accumulator.push(filteredSection);
- return accumulator;
- },
- [] as AllTeamsSections[]
+ const searchApplied = filterTeamsBySearchInput(
+ allSiteTeamsSections,
+ searchString
);
setSearchedSections(searchApplied);
} else {
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/UpdateTeamsModal/UpdateTeamsModal.tsx
@@ -26,6 +26,7 @@ import {
} from '../../Hooks';
import { AllTeamsSections } from '../EditSavedTeamModal/types';
+import { filterTeamsBySearchInput } from '../../Utils/SearchInput';
export interface ModalProps {
modal: {
closeModal: () => void;
@@ -85,22 +86,9 @@ export const UpdateTeamsModal = ({ modal: { closeModal } }: ModalProps) => {
const handleSearchInput = useCallback(
(searchString: string) => {
if (searchString.length > 2) {
- const searchApplied = allSiteTeamsSections.reduce(
- (accumulator: AllTeamsSections[], section: AllTeamsSections) => {
- const filteredTeams = section.data.filter((team) =>
- team.teamName.toLowerCase().includes(searchString.toLowerCase())
- );
- if (filteredTeams.length === 0) {
- return accumulator;
- }
- const filteredSection = {
- ...section,
- data: filteredTeams,
- };
- accumulator.push(filteredSection);
- return accumulator;
- },
- [] as AllTeamsSections[]
+ const searchApplied = filterTeamsBySearchInput(
+ allSiteTeamsSections,
+ searchString
);
setSearchedSections(searchApplied);
} else {
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Utils/SearchInput.tsx
@@ -1,21 +1,23 @@
-import { SectionType } from '../../Store/TeamSelection';
+import { AllTeamsSections } from '../Screens/EditSavedTeamModal/types';
export const filterTeamsBySearchInput = (
- sections: SectionType[],
+ sections: AllTeamsSections[],
searchInput: string
) => {
- return sections
- .map((section) => {
- const filteredData = section.data.filter(
- (team) =>
- team?.teamName?.toLowerCase().includes(searchInput.toLowerCase())
+ return sections.reduce(
+ (accumulator: AllTeamsSections[], section: AllTeamsSections) => {
+ const filteredTeams = section.data.filter((team) =>
+ team.teamName.toLowerCase().includes(searchInput.toLowerCase())
);
- if (filteredData.length > 0) {
- return {
- ...section,
- data: filteredData,
- };
+ if (filteredTeams.length === 0) {
+ return accumulator;
}
- return null;
- })
- .filter((section) => section !== null);
+ const filteredSection = {
+ ...section,
+ data: filteredTeams,
+ };
+ accumulator.push(filteredSection);
+ return accumulator;
+ },
+ [] as AllTeamsSections[]
+ );
};
| feat: moved func to util | feat: moved func to util
|
0e144237d70f035d0f1430f5274f76ad3b432ec8 | --- package-lock.json
@@ -3328,9 +3328,9 @@
"integrity": "sha512-5cla0k4tS7an8zHF5Fn8udmss3AsWs1UXPV/QwC0W49L/BD6SK+I6TcuPnEnGugOS718JTgMSG32iPED/yOSIA=="
},
"@walmart/exception-mini-app": {
- "version": "0.28.0-rc.15",
- "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.28.0-rc.15.tgz",
- "integrity": "sha512-xhI5bNDfk1v/1Fq5IGpLl00gXyh31v1rmE80EtGGUNA3AIz+NmPu50jc1bn3bvYaZICuar3FPpnIMrYSMXuEGA=="
+ "version": "0.31.0",
+ "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.31.0.tgz",
+ "integrity": "sha512-yUnQ6yg1MIrxsiSO/l42A91UvIIfR8MR01gsNkyUf5Fx0UTtzyeo51Wq2wMYas9RKPwI63p9ZOrxzustiG+wzw=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.0.58",
--- package.json
@@ -69,7 +69,7 @@
"@walmart/ask-sam-mini-app": "0.30.12",
"@walmart/config-components": "^1.0.28",
"@walmart/counts-component-miniapp": "0.0.17",
- "@walmart/exception-mini-app": "0.28.0-rc.15",
+ "@walmart/exception-mini-app": "0.31.0",
"@walmart/feedback-all-spark-miniapp": "0.0.58",
"@walmart/functional-components": "1.0.31",
"@walmart/gtp-shared-components": "^1.2.0",
| pinpoint minor version bump | pinpoint minor version bump
|
b9db51459731de74340eec4adbdc4f601f168448 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.25",
+ "version": "2.12.26",
"main": "dist/index.js",
"files": [
"dist"
--- src/utils/rosterDetail.tsx
@@ -13,6 +13,7 @@ import {
import {goToIndividualSchedule} from '../navigation/utils';
import {FilterValue} from '../components/FilterChip/types';
import {Associate, Team, logger} from '../common';
+import {isEqual} from 'lodash';
export const generateTeamSwitcherData = (allTeams: Team[]) => {
return allTeams.map((team) => ({
@@ -58,7 +59,7 @@ export const generateTeamRoster = (
return dailyRoster;
}
- if (currentTeamIds === userTeamIds) {
+ if (isEqual(currentTeamIds, userTeamIds)) {
const userTeams = allTeams?.filter((team) =>
userTeamIds.includes(team?.teamId ?? ''),
);
| Update roster mini app version | Update roster mini app version
|
e59f79b5ac59945e2c50933253a371e9faae4381 | --- package.json
@@ -144,7 +144,7 @@
"@walmart/schedule-mini-app": "0.114.2",
"@walmart/shelfavailability-mini-app": "1.5.26",
"@walmart/store-feature-orders": "1.26.9",
- "@walmart/taskit-mini-app": "3.2.2",
+ "@walmart/taskit-mini-app": "3.3.0",
"@walmart/time-clock-mini-app": "2.395.0",
"@walmart/topstock-mini-app": "1.10.8",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch",
--- yarn.lock
@@ -7167,10 +7167,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/taskit-mini-app@npm:3.2.2":
- version: 3.2.2
- resolution: "@walmart/taskit-mini-app@npm:3.2.2"
- checksum: 10c0/6f22b32dcc4e0bac2606f37ef2545e429077f08cfa28e6152cbc68169eda1defa1b7c4dbca397f28dc8e6ab87c5bf360f64e2bdf18aaecff077e5c4ded08e05a
+"@walmart/taskit-mini-app@npm:3.3.0":
+ version: 3.3.0
+ resolution: "@walmart/taskit-mini-app@npm:3.3.0"
+ peerDependencies:
+ "@walmart/allspark-foundation": "*"
+ checksum: 10c0/2653dedf1ee21886b54194598fa88219dbf74e46e5c0b33d718de6f7fcf944e866ae7687c21034262245f74b2b7f2509dce3edea3aafd189e32356524fa5aacc
languageName: node
linkType: hard
@@ -7841,7 +7843,7 @@ __metadata:
"@walmart/schedule-mini-app": "npm:0.114.2"
"@walmart/shelfavailability-mini-app": "npm:1.5.26"
"@walmart/store-feature-orders": "npm:1.26.9"
- "@walmart/taskit-mini-app": "npm:3.2.2"
+ "@walmart/taskit-mini-app": "npm:3.3.0"
"@walmart/time-clock-mini-app": "npm:2.395.0"
"@walmart/topstock-mini-app": "npm:1.10.8"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch"
| chore: bump taskit version | chore: bump taskit version
|
53b64788dcdfb2615c0a4b29aef29c64a7dbe392 | --- packages/me-at-walmart-container/src/http/interceptors/unauthorized.ts
@@ -2,8 +2,8 @@ import { Interceptor } from '@walmart/allspark-foundation/HTTP';
import { AllsparkReduxStore } from '@walmart/allspark-foundation/Redux';
import { MeAtWalmartAuthActions } from '@walmart/me-at-walmart-common';
-import { MeAtWalmartLogger } from '../../services/logger';
-import { MeAtWalmartTelemetry } from '../../services/telemetry';
+import { AuthTelemetry } from '../../services/auth';
+import { AuthLogger } from '../../services/auth';
import { getAllowedHttp401ErrorLimit } from '../utils';
type UnathorizedHttpCode = 401;
@@ -27,14 +27,11 @@ export const UnauthorizedInterceptor: Interceptor = {
const code = `repeated_401`;
if (statusList.length > limit) {
- MeAtWalmartLogger.error(
- 'Signing user out due to repeated 401 errors',
- {
- limit,
- message: 'User is signed out due to repeated 401 errors',
- }
- );
- MeAtWalmartTelemetry.logEvent(`sign_out_init_on_${code}`, {
+ AuthLogger.error('Signing user out due to repeated 401 errors', {
+ limit,
+ message: 'User is signed out due to repeated 401 errors',
+ });
+ AuthTelemetry.logEvent(`sign_out_init_on_${code}`, {
code,
limit: String(limit),
});
--- packages/me-at-walmart-container/src/services/auth.ts
@@ -85,7 +85,9 @@ export const onAuthError = async (event: AuthErrorEvent) => {
const authData = AllsparkReduxStore.select(AuthSelectors.getData);
if (authData) {
AuthLogger.info(`AUTH: SIGN_OUT_INITIATED`);
- AuthTelemetry.logEvent('sign_out_init_on_token_rfrsh_err', {});
+ AuthTelemetry.logEvent('sign_out_init_on_token_rfrsh_err', {
+ code: event.code,
+ });
AllsparkReduxStore.dispatch(
MeAtWalmartAuthActions.SIGN_OUT_REQUEST(event.code)
);
| chore: update auth logger and code | chore: update auth logger and code
|
d39a0e02d8b82aacc6aa36d18c13fc1a199cd663 | --- scripts/updateAndroidProjectConfig.sh
@@ -14,6 +14,10 @@ MAIN_APPLICATION="android/app/src/main/java/com/walmart/stores/allspark/beta/Mai
MAIN_ACTIVITY="android/app/src/main/java/com/walmart/stores/allspark/beta/MainActivity.java"
MAIN_APPLICATION_RN_HOST="android/app/src/main/java/com/walmart/stores/allspark/beta/newarchitecture/MainApplicationReactNativeHost.java"
STRINGS_XML="android/app/src/main/res/values/strings.xml"
+RN_CONFIG_JS="react-native.config.js"
+
+RN_CONFIG_PROD_APP_MANIFEST_PATH="{manifestPath: '\/app\/src\/main\/AndroidManifest.xml'},"
+RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH="{},"
BETA_PACKAGE="com.walmart.stores.allspark.beta"
PROD_PACKAGE="com.walmart.squiggly"
@@ -28,6 +32,7 @@ if [[ "${env}" == "Prod" ]]; then
PACKAGE=${PROD_PACKAGE}
SPLASH=${PROD_SPLASH}
CODE_PUSH_KEY=$PROD_CODE_PUSH_KEY
+ RN_CONFIG_MANIFEST_PATH=$RN_CONFIG_PROD_APP_MANIFEST_PATH
elif [[ "${env}" == "Beta" ]]; then
PACKAGE=${BETA_PACKAGE}
SPLASH=${BETA_SPLASH}
@@ -36,6 +41,7 @@ else
PACKAGE=${BETA_PACKAGE}
SPLASH=${BETA_SPLASH}
CODE_PUSH_KEY=$DEV_CODE_PUSH_KEY
+ RN_CONFIG_MANIFEST_PATH=$RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH
fi
## Find and replace package name ########
@@ -61,4 +67,7 @@ sed -Ei '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import $
echo "Updating CodePushDeploymentKey to ${CODE_PUSH_KEY} in ${STRINGS_XML}"
sed -Ei '' "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML}
+echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}"
+sed -Ei '' "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS}
+
| updated manifest path. | updated manifest path.
|
1a277b9e2e63cdd9ee1d3e53766e59e7538ccfd7 | --- package.json
@@ -143,7 +143,7 @@
"@walmart/react-native-cookies": "1.0.1",
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-logger": "1.38.1",
- "@walmart/react-native-scanner-3.0": "0.15.5",
+ "@walmart/react-native-scanner-3.0": "0.15.6",
"@walmart/react-native-shared-navigation": "~6.3.28",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.8.0",
--- yarn.lock
@@ -8360,7 +8360,7 @@ __metadata:
"@walmart/react-native-cookies": "npm:1.0.1"
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
"@walmart/react-native-logger": "npm:1.38.1"
- "@walmart/react-native-scanner-3.0": "npm:0.15.5"
+ "@walmart/react-native-scanner-3.0": "npm:0.15.6"
"@walmart/react-native-shared-navigation": "npm:~6.3.28"
"@walmart/react-native-store-map": "npm:0.3.7"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
@@ -8890,12 +8890,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/react-native-scanner-3.0@npm:0.15.5":
- version: 0.15.5
- resolution: "@walmart/react-native-scanner-3.0@npm:0.15.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-scanner-3.0%2F-%2F%40walmart%2Freact-native-scanner-3.0-0.15.5.tgz"
+"@walmart/react-native-scanner-3.0@npm:0.15.6":
+ version: 0.15.6
+ resolution: "@walmart/react-native-scanner-3.0@npm:0.15.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-scanner-3.0%2F-%2F%40walmart%2Freact-native-scanner-3.0-0.15.6.tgz"
peerDependencies:
react-native: ">=0.47.1"
- checksum: 10c0/f6821873359f44c7c830d81ba6768b5019ac7a256c100cae21f106406ed76534f3d512171bc0fd4e3e186caaba8d9efb80b9ba8680e34378ee16d639e4b67c74
+ checksum: 10c0/0e02e0a2d6502a18cc52dedace36c30c4551121f83e73bcbf70d25475cf47d80f27f220e52879031d455bdb5d357709ce111d3feda1f9e1b436017265d1c9294
languageName: node
linkType: hard
| fix(scanner): VS-9403 Scanner feature and bug fixes (#4702) | fix(scanner): VS-9403 Scanner feature and bug fixes (#4702)
Co-authored-by: h0s0em0 <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>
Co-authored-by: Bhanu Singh - b0s0lpc <BHANU.SINGH1@walmart.com>
Co-authored-by: Aroushi Sharma <aroushi.sharma@walmart.com> |
ba14dd4513ed9538897870caa392f9ab426a66de | --- core/__tests__/__mocks__/@walmart/allspark-foundation/Translation.js
@@ -1,5 +1,6 @@
module.exports = {
...jest.requireActual('@walmart/allspark-foundation/Translation'),
+ useAllsparkTranslation: jest.fn(),
AllsparkTranslationClient: {
t: jest.fn((key) => key),
language: 'language',
--- core/__tests__/core/FeatureToggleGuardTest.tsx
@@ -10,13 +10,6 @@ import {enableConstellationSDK} from '@walmart/react-native-scanner-3.0';
import {Text} from 'react-native';
jest.mock('../../src/oneClick/useOneClick');
-jest.mock('@walmart/allspark-foundation/Navigation');
-jest.mock('@walmart/allspark-foundation/Translation', () => ({
- useAllsparkTranslation: jest.fn(),
-}));
-jest.mock('@walmart/react-native-scanner-3.0', () => ({
- enableConstellationSDK: jest.fn(),
-}));
const mockUseOneClick = useOneClick as jest.Mock;
const mockTranslate = jest.fn((key, params) => `${key}_${params?.featureId || ''}`);
| updated use of existing mocks | updated use of existing mocks
|
f860350fc3c654adc27a0cbed468fb2951ebdabf | --- src/components/TeamList.tsx
@@ -280,15 +280,18 @@ const TeamItem = (props: {
) : (
<></>
)}
- {showViewTeam && canMessage && isMessageButtonEnabled && !isNil(actionButtons) && (
- <Body weight='400' size='small'>
- <TouchableOpacity onPress={onViewTeam} testID='viewTeamButton'>
- <Text style={styles.viewTeamStyle}>
- {t('rosterScreen.teamListItem.viewTeam')}
- </Text>
- </TouchableOpacity>
- </Body>
- )}
+ {showViewTeam &&
+ canMessage &&
+ isMessageButtonEnabled &&
+ !isNil(actionButtons) && (
+ <Body weight='400' size='small'>
+ <TouchableOpacity onPress={onViewTeam} testID='viewTeamButton'>
+ <Text style={styles.viewTeamStyle}>
+ {t('rosterScreen.teamListItem.viewTeam')}
+ </Text>
+ </TouchableOpacity>
+ </Body>
+ )}
</ListItem>
);
};
| Update new version | Update new version
|
49977996c2b69e4d0810293f7bba5a00a27ac006 | --- .looper.multibranch.yml
@@ -4,7 +4,7 @@ inherit: "job:///metropolis/metroloop/metroloop-parent"
## Whenever you update the nodes, please update it at the two-place, below line & the global variable LOOPER_NODES
##
-node: ((osx||stable_osx||xcode12.5)&&!MAC-LAB-MINI36&&!MAC-LAB-MINI32&&!MAC-LAB-MINI07&&!MAC-DRFQLAB-MINI43&&!MAC-LAB-MINI09&&!MAC-LAB-MINI22)
+node: ((osx||stable_osx||xcode12.5)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI32&&!MAC-LAB-MINI09&&!MAC-LAB-MINI22)
tools:
android:
@@ -46,7 +46,7 @@ cache:
envs:
global:
variables:
- LOOPER_NODES: "((osx||stable_osx||xcode12.5)&&!MAC-LAB-MINI36&&!MAC-LAB-MINI32&&!MAC-LAB-MINI07&&!MAC-DRFQLAB-MINI43&&!MAC-LAB-MINI09&&!MAC-LAB-MINI22)"
+ LOOPER_NODES: "((osx||stable_osx||xcode12.5)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI32&&!MAC-LAB-MINI09&&!MAC-LAB-MINI22)"
GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}"
TMPDIR: /tmp
| adding and removing some bad nodes | adding and removing some bad nodes
|
0b91a868ece77120b026679b32a744f2446dc1e1 | --- packages/allspark-foundation/__mocks__/react-native-gesture-handler.js
@@ -1,5 +0,0 @@
-module.exports = {
- GestureHandlerRootView: ({ children }: { children: React.ReactNode }) => children,
- PanGestureHandler: jest.fn(),
- };
-
\ No newline at end of file
--- packages/allspark-foundation/__mocks__/react-native-safe-area-context.js
@@ -1,5 +1,14 @@
+const inset = {
+ top: 0,
+ right: 0,
+ bottom: 0,
+ left: 0,
+};
+
module.exports = {
+ ...jest.requireActual('react-native-safe-area-context'),
SafeAreaView: 'SafeAreaView',
- useSafeAreaInsets: jest.fn(() => ({top: 0, bottom: 0, right: 0, left: 0})),
- SafeAreaProvider: ({ children }: { children: React.ReactNode }) => children,
+ useSafeAreaInsets: jest.fn(() => inset),
+ SafeAreaProvider: ({ children }) => children,
+ useSafeAreaFrame: jest.fn(() => ({ x: 0, y: 0, width: 0, height: 0 })),
};
--- packages/allspark-foundation/__tests__/Container/__snapshots__/AllsparkContainer.test.tsx.snap
@@ -1,3 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`AllsparkContainer renders the Provider component and triggers the root setup 1`] = `<LivingDesignProvider />`;
+exports[`AllsparkContainer renders the Provider component and triggers the root setup 1`] = `
+<View
+ style={
+ {
+ "flex": 1,
+ }
+ }
+>
+ <LivingDesignProvider />
+</View>
+`;
--- packages/allspark-foundation/__tests__/FeatureRunner/navigation.test.ts
@@ -1,37 +0,0 @@
-import { createFeatureRunnerNavigation } from '../../src/FeatureRunner/navigation';
-import { AllsparkFeatureModule } from '../../src/Feature';
-
-jest.mock('../../src/Permissions', () => {
- const initVal = jest.requireActual('../../src/Permissions');
- return {
- ...initVal,
- PERMISSIONS: {
- ANDROID: {},
- IOS: {},
- WINDOWS: {},
- },
- };
-});
-
-jest.mock('../../src/Feature', () => ({
- AllsparkFeatureModule: jest.fn().mockImplementation(() => ({
- buildAllScreens: jest.fn().mockReturnValue([]),
- })),
-}));
-
-describe('createFeatureRunnerNavigation', () => {
- const mockFeature = new AllsparkFeatureModule();
- afterEach(() => {
- jest.clearAllMocks();
- });
- it('should be defined', () => {
- const result = createFeatureRunnerNavigation(mockFeature);
- expect(result).toBeDefined();
- });
- it('should call buildAllScreens with correct arguments', () => {
- createFeatureRunnerNavigation(mockFeature);
- expect(mockFeature.buildAllScreens).toHaveBeenCalledWith({
- Navigator: undefined,
- });
- });
-});
\ No newline at end of file
--- packages/allspark-foundation/__tests__/FeatureRunner/navigation.test.tsx
@@ -0,0 +1,116 @@
+import { AllsparkNavigationClient } from '../../src/Navigation';
+import {
+ createFeatureRunnerNavigation,
+ PluginComponentContainer,
+} from '../../src/FeatureRunner/navigation';
+import { AllsparkFeatureModule } from '../../src/Feature';
+
+jest.mock('../../src/Permissions', () => {
+ const initVal = jest.requireActual('../../src/Permissions');
+ return {
+ ...initVal,
+ PERMISSIONS: {
+ ANDROID: {},
+ IOS: {},
+ WINDOWS: {},
+ },
+ };
+});
+
+jest.mock('../../src/Feature', () => ({
+ ...jest.requireActual('../../src/Feature'),
+ AllsparkFeatureModule: jest.fn().mockImplementation(() => ({
+ buildAllScreens: jest.fn().mockReturnValue([]),
+ })),
+}));
+
+jest.mock('@react-navigation/native', () => {
+ return {
+ ...jest.requireActual('@react-navigation/native'),
+ };
+});
+
+jest.mock('@react-navigation/drawer', () => {
+ return {
+ ...jest.requireActual('@react-navigation/drawer'),
+ };
+});
+
+jest.mock('@react-navigation/stack', () => {
+ return {
+ ...jest.requireActual('@react-navigation/stack'),
+ };
+});
+
+// jest.mock('react-redux', () => ({
+// useSelector: jest.fn(),
+// }));
+jest.mock('../../src/Environment', () => ({
+ AllsparkEnvironment: {
+ resolveDerivedValue: jest.fn(),
+ },
+}));
+jest.mock('../../src/Navigation', () => ({
+ AllsparkNavigationClient: {
+ addModal: jest.fn(),
+ openModal: jest.fn(),
+ },
+}));
+jest.mock('../../src/Components', () => ({
+ ...jest.requireActual('../../src/Components'),
+ PluginComponentContainer: {
+ add: jest.fn(),
+ },
+}));
+jest.mock('../../src/FeatureRunner/screens/Home', () => ({
+ Home: () => 'HomeScreen',
+}));
+jest.mock('../../src/FeatureRunner/screens/Login', () => ({
+ Login: () => 'LoginScreen',
+}));
+
+const spyAdd = jest.spyOn(PluginComponentContainer, 'add');
+const mockFeature = new AllsparkFeatureModule('TestFeature', {
+ name: 'TestFeature',
+});
+describe('createFeatureRunnerNavigation', () => {
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+ it('should be defined', () => {
+ const result = createFeatureRunnerNavigation(mockFeature);
+ expect(result).toBeDefined();
+ });
+ it('should call buildAllScreens with correct arguments', () => {
+ createFeatureRunnerNavigation(mockFeature);
+ expect(mockFeature.buildAllScreens).toHaveBeenCalledWith(
+ expect.objectContaining({
+ Navigator: expect.objectContaining({
+ Group: expect.any(Function),
+ Screen: expect.any(Function),
+ Navigator: expect.any(Function),
+ }),
+ })
+ );
+ });
+ const mockPlugins = [
+ { name: 'Plugin1', component: () => 'PluginComponent', menuOption: {} },
+ ];
+
+ beforeEach(() => {
+ jest.clearAllMocks();
+ });
+
+ it('registers plugins to PluginComponentContainer and DynamicSideMenu', () => {
+ createFeatureRunnerNavigation(mockFeature, [], mockPlugins);
+ expect(spyAdd).toHaveBeenCalledWith('Plugin1', expect.any(Function));
+ });
+
+ it('adds ClockModal to AllsparkNavigationClient', () => {
+ createFeatureRunnerNavigation(mockFeature);
+ expect(AllsparkNavigationClient.addModal).toHaveBeenCalledWith(
+ 'container.clock',
+ expect.objectContaining({ modal: expect.any(Function) })
+ );
+ });
+});
--- packages/allspark-foundation/__tests__/utils/setup.js
@@ -1,6 +1,17 @@
+// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
+import { jest } from '@jest/globals';
+
jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter');
const { NativeModules } = require('react-native');
+// Include this line for mocking react-native-gesture-handler
+import 'react-native-gesture-handler/jestSetup';
+
+// Include this section for mocking react-native-reanimated
+import { setUpTests } from 'react-native-reanimated';
+
+setUpTests();
+
// Stub out NativeModules
NativeModules.RNCNetInfo = {};
NativeModules.RNGestureHandlerModule = {};
--- packages/allspark-foundation/jest.config.js
@@ -9,6 +9,9 @@ module.exports = {
globals: {
__DEV__: true,
},
- setupFiles: ['<rootDir>/__tests__/utils/setup.js'],
+ setupFiles: [
+ '<rootDir>/__tests__/utils/setup.js',
+ '<rootDir>/../../node_modules/react-native-gesture-handler/jestSetup.js',
+ ],
testPathIgnorePatterns: ['__mocks__/', '__tests__/utils/'],
};
| test: createFeatureRunnerNavigation | test: createFeatureRunnerNavigation
|
1e9aa212941734cf3f703ecd604cb8bf2f68bd67 | --- apps/example/src/container/services/location.ts
@@ -1,26 +1,34 @@
import {
LocationAccuracy,
- LocationUtilsClient,
LocationGeofenceClient,
LocationTrackingClient
-} from '@walmart/me-at-walmart-location';
-
+} from '@walmart/allspark-foundation/Location';
export class MyWalmartLocationService {
- public accuracy: typeof LocationAccuracy;
-
- constructor() {
- this.accuracy = LocationAccuracy.HIGH;
- }
+ public accuracy: LocationAccuracy = 4;
getLocationUtilClient(): any {
- return LocationUtilsClient
+ return {};
}
- getLocationGeofenceClient(): any {
- return LocationGeofenceClient
+ getLocationGeofenceClient(): LocationGeofenceClient {
+ return {
+ subscribe: () => ({} as any),
+ addTask: () => ({} as any),
+ updateTask: () => ({} as any),
+ startGeofencing: () => ({} as any),
+ unsubscribe: () => ({} as any),
+ unsubscribeAll: () => ({} as any),
+ } as any
}
- getLocationTrackingClient(): any {
- return LocationTrackingClient
+ getLocationTrackingClient(): LocationTrackingClient {
+ return {
+ subscribe: () => ({} as any),
+ addTask: () => ({} as any),
+ updateTask: () => ({} as any),
+ startLocationTracking: () => ({} as any),
+ unsubscribe: () => ({} as any),
+ unsubscribeAll: () => ({} as any),
+ } as any;
}
}
| chore: example app broken for location dependency | chore: example app broken for location dependency
|
892e47c5992bc641c8e1da58a3d790fdfa4718e9 | --- .looper-pr.yml
@@ -40,4 +40,3 @@ envs:
-
| feat(ui): update group name in looper SMDV-7738 | feat(ui): update group name in looper SMDV-7738
|
6d44d080a55df53add79e6eb19b1a3ee0c9ff05a | --- core/__tests__/__mocks__/@walmart/facilities-management-miniapp.js
@@ -1,3 +1,6 @@
module.exports = {
- FacilitiesMaintainanceStack: 'FacilitiesMaintainanceStack',
+ __esModule: true,
+ default: {
+ buildAllScreens: () => 'FacilitiesFeature',
+ },
};
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/MainStackNavTest.tsx
@@ -7,13 +7,6 @@ jest.mock('@walmart/emergency-mini-app', () => ({
EmergencyBannerScreen: 'EmergencyBannerScreen',
}));
-jest.mock('@walmart/facilities-management-miniapp', () => {
- return {
- __esModule: true,
- default: {buildAllScreens: jest.fn()},
- };
-});
-
jest.mock(
'../../../../src/navigation/USHallway/AssociateHallwayNav/Tabs',
() => ({
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -553,6 +553,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
PaystubScreen
AuthScreen
ExceptionMiniApp
+ FacilitiesFeature
</Navigator>
`;
@@ -1109,5 +1110,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
PaystubScreen
AuthScreen
ExceptionMiniApp
+ FacilitiesFeature
</Navigator>
`;
| Added fixit bulidAllscreen mock | Added fixit bulidAllscreen mock
|
cc150aa2b1d8a9e202a40d7a9fe9006f22f184c7 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "3.8.11",
+ "version": "3.8.12",
"main": "dist/index.js",
"files": [
"dist",
| feat(ui): update package version | feat(ui): update package version
|
bc60ad01ae4405a02a0301cf5c5dd7d1bd2bcebf | --- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.14.6](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.5...@walmart/associate-exp-hub-mini-app@1.14.6) (2026-01-16)
+
+### Bug Fixes
+
+- **ui:** MyWalmart 2.0 VQA Bugs ([0c76f3b](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/0c76f3b70e6a6297dd683af94a47d0a6679567a3))
+
## [1.14.5](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.3...@walmart/associate-exp-hub-mini-app@1.14.5) (2026-01-16)
### Bug Fixes
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.14.5",
+ "version": "1.14.6",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.25.4](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.25.3...@walmart/associate-exp-hub-team-switcher@2.25.4) (2026-01-16)
+
+### Bug Fixes
+
+- **ui:** MyWalmart 2.0 VQA Bugs ([0c76f3b](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/0c76f3b70e6a6297dd683af94a47d0a6679567a3))
+
## [2.25.3](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.25.1...@walmart/associate-exp-hub-team-switcher@2.25.3) (2026-01-16)
### Bug Fixes
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.25.3",
+ "version": "2.25.4",
"description": "Team Switcher module for Associate Experience Hub",
"packageManager": "yarn@4.6.0",
"engines": {
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-mini-app@1.14.6
- @walmart/associate-exp-hub-team-switcher@2.25.4
|
7da1bc1900c6af17c9795a012a5417193feb25c2 | --- package.json
@@ -164,7 +164,7 @@
"@walmart/rn-mobile-sdk-pairing": "2.1.8",
"@walmart/rn-receiving-mini-app": "2.8.25",
"@walmart/roster-mini-app": "3.9.0",
- "@walmart/schedule-mini-app": "5.3.1",
+ "@walmart/schedule-mini-app": "5.4.4",
"@walmart/shelfavailability-mini-app": "1.7.2",
"@walmart/shop-gnfr-mini-app": "1.0.454",
"@walmart/sidekick-mini-app": "4.253.2",
--- yarn.lock
@@ -8549,7 +8549,7 @@ __metadata:
"@walmart/rn-mobile-sdk-pairing": "npm:2.1.8"
"@walmart/rn-receiving-mini-app": "npm:2.8.25"
"@walmart/roster-mini-app": "npm:3.9.0"
- "@walmart/schedule-mini-app": "npm:5.3.1"
+ "@walmart/schedule-mini-app": "npm:5.4.4"
"@walmart/shelfavailability-mini-app": "npm:1.7.2"
"@walmart/shop-gnfr-mini-app": "npm:1.0.454"
"@walmart/sidekick-mini-app": "npm:4.253.2"
@@ -9297,9 +9297,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/schedule-mini-app@npm:5.3.1":
- version: 5.3.1
- resolution: "@walmart/schedule-mini-app@npm:5.3.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2F%40walmart%2Fschedule-mini-app-5.3.1.tgz"
+"@walmart/schedule-mini-app@npm:5.4.4":
+ version: 5.4.4
+ resolution: "@walmart/schedule-mini-app@npm:5.4.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2F%40walmart%2Fschedule-mini-app-5.4.4.tgz"
peerDependencies:
"@react-native-community/datetimepicker": ">=7.6.2"
"@react-native-firebase/remote-config": ">=10.1.1"
@@ -9333,7 +9333,7 @@ __metadata:
redux: ">=4.0.5"
reselect: ">=4.0.0"
wfm-allspark-data-library: ">=7.0.0"
- checksum: 10c0/67e5d057034724037aef2b3fe0fee795882bd58ca3967895e93694588858f821f0c53b67c89427d6fbb87bb6f662b013660cb5a5dd70538e1a6923a108677bac
+ checksum: 10c0/a87cad4ea33fe44b413a9c74b5aaa39237716dfb78191c5513580a030eaddb44618381fbaf5bbde0d1451cf618f08588172c0cf50ef20406ab0b5b5b27abe6b0
languageName: node
linkType: hard
| fix(schedules): update to AvailabilityLandingScreen navigation params (#5182) | fix(schedules): update to AvailabilityLandingScreen navigation params (#5182)
Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com>
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
d2eecbabc2e1944c1c04605d506b1fc0ef40d1bc | --- packages/me-at-walmart-container/__tests__/services/config.test.ts
@@ -12,7 +12,6 @@ import {
import {
AppConfig,
} from '@walmart/config-components';
-jest.mock('@walmart/config-components');
describe('actualListener', () => {
afterEach(() => {
--- packages/me-at-walmart-container/__tests__/services/navConfig.test.ts
@@ -5,8 +5,13 @@ import {
MeAtWalmartNavConfigService,
IMeAtWalmartNavConfigService,
MeAtWalmartNavConfigFetchParams,
+ transformGlobalData,
+ GlobaNavConfigData,
+ actualListener,
+ ChangeEventManager
} from '../../src/services/navConfig';
+
describe('NavConfigLogger Module', () => {
it('should export NavConfigLogger as an instance of MeAtWalmartLoggerService', () => {
expect(NavConfigLogger).toBeDefined();
@@ -42,3 +47,140 @@ describe('NavConfigLogger Module', () => {
expect(mockParams).toBeDefined();
});
});
+
+describe('transformGlobalData', () => {
+ it('should group navigation items by type', () => {
+ const mockData = [
+ {
+ type: 'QUICKACTION',
+ navs: [{ id: '1', label: 'Quick 1' }, { id: '2', label: 'Quick 2' }],
+ },
+ {
+ type: 'BOTTOMNAV',
+ navs: [{ id: '3', label: 'Bottom 1' }],
+ },
+ {
+ type: 'SIDENAV',
+ navs: [{ id: '4', label: 'Side 1' }],
+ },
+ ];
+
+ const expectedResult = {
+ QUICKACTION: [
+ { id: '1', label: 'Quick 1' },
+ { id: '2', label: 'Quick 2' },
+ ],
+ BOTTOMNAV: [{ id: '3', label: 'Bottom 1' }],
+ SIDENAV: [{ id: '4', label: 'Side 1' }],
+ };
+
+ const result = transformGlobalData(mockData);
+ expect(result).toEqual(expectedResult);
+ });
+
+ it('should skip options with empty navs', () => {
+ const mockData = [
+ {
+ type: 'QUICKACTION',
+ navs: [],
+ },
+ {
+ type: 'BOTTOMNAV',
+ navs: [{ id: '1', label: 'Bottom 1' }],
+ },
+ ];
+
+ const expectedResult = {
+ QUICKACTION: [],
+ BOTTOMNAV: [{ id: '1', label: 'Bottom 1' }],
+ SIDENAV: [],
+ };
+
+ const result = transformGlobalData(mockData);
+ expect(result).toEqual(expectedResult);
+ });
+
+ it('should handle data with missing `navs` property gracefully', () => {
+ const mockData = [
+ {
+ type: 'QUICKACTION',
+ },
+ {
+ type: 'SIDENAV',
+ navs: [{ id: '1', label: 'Side 1' }],
+ },
+ ];
+
+ const expectedResult = {
+ QUICKACTION: [],
+ BOTTOMNAV: [],
+ SIDENAV: [{ id: '1', label: 'Side 1' }],
+ };
+
+ const result = transformGlobalData(mockData as GlobaNavConfigData);
+ expect(result).toEqual(expectedResult);
+ });
+
+ it('should return an empty config when given an empty array', () => {
+ const mockData: GlobaNavConfigData = [];
+
+ const expectedResult = {
+ QUICKACTION: [],
+ BOTTOMNAV: [],
+ SIDENAV: [],
+ };
+
+ const result = transformGlobalData(mockData);
+ expect(result).toEqual(expectedResult);
+ });
+});
+
+describe('actualListener', () => {
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+
+ it('should call ChangeEventManager.runEvent with transformed data when data is defined', () => {
+ const mockData = [
+ {
+ type: 'QUICKACTION',
+ navs: [{ id: '1', label: 'Quick 1' }],
+ },
+ ];
+ const transformedData = {
+ QUICKACTION: [{ id: '1', label: 'Quick 1' }],
+ BOTTOMNAV: [],
+ SIDENAV: [],
+ };
+
+ const transformGlobalDataSpy = jest.spyOn(
+ require('../../src/services/navConfig'),
+ 'transformGlobalData'
+ ).mockReturnValueOnce(transformedData);
+
+
+ const runEventSpy = jest.spyOn(ChangeEventManager, 'runEvent');
+ actualListener(mockData);
+
+ //expect(transformGlobalDataSpy).toHaveBeenCalledTimes(1);
+ expect(transformGlobalDataSpy).toHaveBeenCalledWith(mockData);
+ expect(runEventSpy).toHaveBeenCalledTimes(1);
+ expect(runEventSpy).toHaveBeenCalledWith(
+ 'config_change',
+ transformedData
+ );
+ });
+
+ it('should not call ChangeEventManager.runEvent when data is undefined', () => {
+ const transformGlobalDataSpy = jest.spyOn(
+ require('../../src/services/navConfig'),
+ 'transformGlobalData'
+ );
+ const runEventSpy = jest.spyOn(ChangeEventManager, 'runEvent');
+ actualListener(undefined);
+
+ expect(transformGlobalDataSpy).not.toHaveBeenCalled();
+ expect(runEventSpy).not.toHaveBeenCalled();
+ });
+});
+
--- packages/me-at-walmart-container/src/services/navConfig.ts
@@ -39,7 +39,7 @@ type UnknownMenuConfig = {
navs?: unknown[];
};
-type GlobaNavConfigData = (
+export type GlobaNavConfigData = (
| QuickActionConfig
| BottomTabConfig
| SideMenuConfig
@@ -49,7 +49,7 @@ type GlobaNavConfigData = (
/**
* Transform GlobalNavConfigData into NavConfigData
*/
-const transformGlobalData = (data: GlobaNavConfigData): NavConfigData => {
+export const transformGlobalData = (data: GlobaNavConfigData): NavConfigData => {
return data.reduce(
(config, option) => {
if (!option.navs?.length) {
@@ -90,13 +90,15 @@ export const LISTENER_KEY = 'ALLSPARK_NAV_CONFIG';
// Manages change event on config service. GlobalNavConfig only allows for one listener so we're
// creating our own here to manage multiple listeners.
-const ChangeEventManager = new EventManager<{config_change: NavConfigData}>([
+export const ChangeEventManager = new EventManager<{config_change: NavConfigData}>([
'config_change',
]);
// Actual change listener we'll add to GlobalNavConfig to manage our change listener
-const actualListener = (data: GlobaNavConfigData | undefined) => {
+export const actualListener = (data: GlobaNavConfigData | undefined) => {
+ console.log(data)
if (data) {
+ console.log(data)
ChangeEventManager.runEvent('config_change', transformGlobalData(data));
}
};
| added test case to navConfig.test.ts | added test case to navConfig.test.ts
|
042b4349696d551568e42ffd984053c00804bf8e | --- packages/allspark-foundation/src/Feature/README.md
@@ -31,7 +31,7 @@ Use an `AllsparkFeature` instance to [create a feature module](#createmodule) th
This module is used to connect with an `AllsparkContainer` and should be the default export of your feature library.
```js
-export default AskSam.createModule({
+export default MyFeature.createModule({
name: 'My Feature',
listeners: {...},
modals: {...},
| chore: update documentation | chore: update documentation
|
1c584caa9b29bd0d41d8e1ce2154b8878690903e | --- .looper.multibranch.yml
@@ -66,15 +66,9 @@ envs:
XC_SCHEME: 'AllSpark'
XC_TARGET: 'AllSpark'
PRODUCT_NAME: 'Me@Walmart'
- NO_PROXY: "*.walmart.com,chromium.googlesource.com,apps.betacrash.com"
+ NO_PROXY: "*.walmart.com,chromium.googlesource.com"
ALLSPARK_CORE_GITHUB_URL: "https://gecgithub01.walmart.com/allspark/allspark-core"
- BETACRASH_TOKEN: "%{credentials.secret('betacrash-api-key')}"
- BETACRASH_APP_ID: "889"
- BETACRASH_URL_FILE: ./betacrash-url.log
- BETACRASH_PASSWORD_FILE: ./betacrash-password.log
- BETACRASH_JSON: ./betacrash-result.json
-
APPCENTER_API_KEY_iOS: "%{credentials.secret('appcenter_iOS')}"
APPCENTER_API_KEY_ANDROID: "%{credentials.secret('appcenter_android')}"
APPCENTER_DISTRIBUTE_DESTINATIONS: '*'
@@ -175,9 +169,8 @@ envs:
PROVISIONING_PROFILE: ./BuildSupport/Squiggly_AppStore_Provision.mobileprovision
ENTITLEMENTS: './BuildSupport/ExportOptionsProd.plist'
ARCHIVE_TYPE: "app-store"
- betacrash:
- url: "N/A"
- pin: "N/A"
+ fastlane-session:
+ release_url: "N/A"
beta:
variables:
env: "beta"
@@ -494,7 +487,7 @@ flows:
echo "about to run build ${env} / ${upperEnv}"
./gradlew assemble${upperEnv}Release --info --stacktrace
- # uploads build artifact to maven and betacrash
+ # uploads build artifact to maven and MS App Center
#
# @param env - environment the build was produced for (deployment, i.e. dev, beta, prod)
# @param version - the version of the build
@@ -509,13 +502,12 @@ flows:
- if: |
%{ env == "prod" }
then:
- - var(betacrashJson): toJson(betacrash)
- - echo $betacrashJson > ./betacrash.json
- - echo "Skipping uploading AppStore/PlayStore builds to Betacrash and publishing it to Slack."
+ - var(fastlaneJson): toJson(FASTLANE)
+ - echo $fastlaneJson > ./fastlane/fastlane-session.json
+ - echo "Skipping uploading AppStore/PlayStore builds to MS App Center and publishing it to Slack."
else:
- echo "Uploading builds to App Center"
- call: appcenter-upload
- # - (name Betacrash – upload build) sh scripts/betacrash.sh "$APP_TITLE" "${env}" "$BETACRASH_APP_ID" "${buildOutput}" "${buildType}" "${version}" 2>&1
# uploads iOS and android builds to Ms App Center
#
@@ -542,8 +534,7 @@ flows:
# @param env - what env (deployment) the build is for
# @param version - the version of the build
# @param buildOutput - output file from build
- # @param betacrashUrl - url for this build
- # @param betacrashPIN - pin for this build
+ # @param release_url - App Center install url for this build
# @param BUILD_NUMBER - the build number / version code of the build
slack-success:
- exposeVars(./fastlane/fastlane-session.json)
--- scripts/teamsSuccessTemplate.json
@@ -84,21 +84,6 @@
}
],
"width": "stretch"
- },
- {
- "type": "Column",
- "items": [
- {
- "type": "FactSet",
- "facts": [
- {
- "title": "Password",
- "value": "${downloadPassword}"
- }
- ]
- }
- ],
- "width": "stretch"
}
],
"separator": true
| code cleanup | code cleanup
|
d3f4721878d5ab3f1a9037bf0ff4018b96cfa957 | --- targets/US/package.json
@@ -109,7 +109,7 @@
"@walmart/gtp-shared-components": "2.2.5-rc.1",
"@walmart/ims-print-services-ui": "2.15.3",
"@walmart/inbox-mini-app": "0.96.8",
- "@walmart/iteminfo-mini-app": "8.0.2",
+ "@walmart/iteminfo-mini-app": "8.0.4",
"@walmart/learning-mini-app": "20.0.38",
"@walmart/manager-approvals-miniapp": "0.3.0",
"@walmart/me-at-walmart-athena-queries": "6.26.1",
--- yarn.lock
@@ -6535,9 +6535,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/iteminfo-mini-app@npm:8.0.2":
- version: 8.0.2
- resolution: "@walmart/iteminfo-mini-app@npm:8.0.2"
+"@walmart/iteminfo-mini-app@npm:8.0.4":
+ version: 8.0.4
+ resolution: "@walmart/iteminfo-mini-app@npm:8.0.4"
peerDependencies:
"@apollo/client": ">=3.7.3"
"@react-native-community/art": 1.2.0
@@ -6582,7 +6582,7 @@ __metadata:
reselect: ">=4.1.0"
uuid: ">=3.3.2"
victory-native: ">=36.5.0"
- checksum: 10c0/d6f95d4f38858e1293161b27b7abbe5fa4d691206b9c00dcf2df5fd637b8be07235ba30b4780460b80e842b11b15463d9eaac7aeaaa3593de8790138857a3f36
+ checksum: 10c0/a6da113ed7adf17a89f2a3a6936cb9d644bb7c69baa7839e721593caaff8ca2cb43819ececb70a22c8e0d1eddfb951e05362c8385669d32c57d79b64542edc0f
languageName: node
linkType: hard
@@ -7024,7 +7024,7 @@ __metadata:
"@walmart/gtp-shared-components": "npm:2.2.5-rc.1"
"@walmart/ims-print-services-ui": "npm:2.15.3"
"@walmart/inbox-mini-app": "npm:0.96.8"
- "@walmart/iteminfo-mini-app": "npm:8.0.2"
+ "@walmart/iteminfo-mini-app": "npm:8.0.4"
"@walmart/learning-mini-app": "npm:20.0.38"
"@walmart/manager-approvals-miniapp": "npm:0.3.0"
"@walmart/me-at-walmart-athena-queries": "npm:6.26.1"
| Feat: Bumped the item info version to 8.0.4 | Feat: Bumped the item info version to 8.0.4
|
f7605b7e2a0eecbcbbffbafabcd5f4983322cb7e | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "3.6.6",
+ "version": "3.6.7",
"main": "dist/index.js",
"files": [
"dist",
@@ -92,9 +92,9 @@
"@walmart/react-native-logger": "1.35.0",
"@walmart/react-native-scanner-3.0": "0.10.4",
"@walmart/react-native-sumo-sdk": "2.8.0",
- "@walmart/roster-mini-app": "3.8.6",
+ "@walmart/roster-mini-app": "3.8.7",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "3.7.6",
+ "@walmart/wmconnect-mini-app": "3.7.7",
"babel-jest": "^29.6.3",
"chance": "^1.1.11",
"crypto-js": "~4.2.0",
--- yarn.lock
@@ -7460,9 +7460,9 @@ __metadata:
"@walmart/react-native-logger": "npm:1.35.0"
"@walmart/react-native-scanner-3.0": "npm:0.10.4"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
- "@walmart/roster-mini-app": "npm:3.8.6"
+ "@walmart/roster-mini-app": "npm:3.8.7"
"@walmart/ui-components": "npm:1.15.1"
- "@walmart/wmconnect-mini-app": "npm:3.7.6"
+ "@walmart/wmconnect-mini-app": "npm:3.7.7"
babel-jest: "npm:^29.6.3"
chance: "npm:^1.1.11"
crypto-js: "npm:~4.2.0"
@@ -7570,9 +7570,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:3.8.6":
- version: 3.8.6
- resolution: "@walmart/roster-mini-app@npm:3.8.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.8.6.tgz"
+"@walmart/roster-mini-app@npm:3.8.7":
+ version: 3.8.7
+ resolution: "@walmart/roster-mini-app@npm:3.8.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.8.7.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=7.12.0"
"@walmart/gtp-shared-components-3": "*"
@@ -7584,7 +7584,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/a76541995d386e689ea10cfb94f3011b32859c69119231d703d9ce50e39937ff440bb34188eb51132679b2e8f11e94cde8537d671b6d6b1f5647b02dadaf5b22
+ checksum: 10c0/3e3ce24e685b4e6d51339921edb68d70d8e9e110ed25adbd1799f8abacbd710cb3d874b5426c4de8f2152925006dcefc07a59dfa4706576764801424ebe19a90
languageName: node
linkType: hard
@@ -7608,9 +7608,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:3.7.6":
- version: 3.7.6
- resolution: "@walmart/wmconnect-mini-app@npm:3.7.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.6.tgz"
+"@walmart/wmconnect-mini-app@npm:3.7.7":
+ version: 3.7.7
+ resolution: "@walmart/wmconnect-mini-app@npm:3.7.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.7.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=7.12.0"
"@walmart/gtp-shared-components": ^2.3.0-rc.0
@@ -7622,7 +7622,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/cf54af0741a2b56c35c081a683022994cc09253dfd74fd21e3979e6032250d05a24af494da3412783fdce19507b919f5339d32ea0916b387d8450ad484934bea
+ checksum: 10c0/1aca286af0816b7e5dfe0fad8b6370d6cafeb6cf26216c6ab4e185d82f737b8e8220cdb51e28f04b9f6356bc1f7d1cfd0993e7a9b3a43196f188f00dca777767
languageName: node
linkType: hard
| feat(ui): update versions for myteam | feat(ui): update versions for myteam
|
462c188ab5d041ba2de732ef3dc08595e44f4188 | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.0.0-beta.3",
+ "version": "1.0.0-beta.4",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
| Update widget style | Update widget style
|
c83a39a54d29eff9996ef23def36252f366a9326 | --- src/screens/MessagesScreen.tsx
@@ -235,6 +235,11 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
}
};
+ const convertEmojisToUnicode = (inputString?: string) => {
+ if (isNil(inputString)) return '';
+ return inputString;
+ };
+
const sendPushNotification = async (message: MessageRequest) => {
if (!isNil(siteId)) {
const getMessageTextForPush = () => {
@@ -244,7 +249,8 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
if (message.audio?.uri) {
return '1 Audio Message';
}
- return message.message || '';
+
+ return convertEmojisToUnicode(message.message) || '';
};
const recipients = channelData?.participants
--- src/screens/MessagesScreen.tsx
@@ -235,6 +235,11 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
}
};
+ const convertEmojisToUnicode = (inputString?: string) => {
+ if (isNil(inputString)) return '';
+ return inputString;
+ };
+
const sendPushNotification = async (message: MessageRequest) => {
if (!isNil(siteId)) {
const getMessageTextForPush = () => {
@@ -244,7 +249,8 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
if (message.audio?.uri) {
return '1 Audio Message';
}
- return message.message || '';
+
+ return convertEmojisToUnicode(message.message) || '';
};
const recipients = channelData?.participants
| add wrapper function to convert push message string emojis to unicode | add wrapper function to convert push message string emojis to unicode
|
3d60342049094f328e7059319b6debbb948894be | --- package.json
@@ -150,7 +150,7 @@
"@walmart/shop-gnfr-mini-app": "1.0.302",
"@walmart/sidekick-mini-app": "4.196.0",
"@walmart/store-feature-orders": "1.29.5",
- "@walmart/taskit-mini-app": "5.31.6",
+ "@walmart/taskit-mini-app": "5.34.9",
"@walmart/time-clock-mini-app": "2.462.1",
"@walmart/time-clock-mini-app-next": "2.812.1",
"@walmart/topstock-mini-app": "1.22.3",
--- yarn.lock
@@ -8383,7 +8383,7 @@ __metadata:
"@walmart/shop-gnfr-mini-app": "npm:1.0.302"
"@walmart/sidekick-mini-app": "npm:4.196.0"
"@walmart/store-feature-orders": "npm:1.29.5"
- "@walmart/taskit-mini-app": "npm:5.31.6"
+ "@walmart/taskit-mini-app": "npm:5.34.9"
"@walmart/time-clock-mini-app": "npm:2.462.1"
"@walmart/time-clock-mini-app-next": "npm:2.812.1"
"@walmart/topstock-mini-app": "npm:1.22.3"
@@ -9281,12 +9281,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/taskit-mini-app@npm:5.31.6":
- version: 5.31.6
- resolution: "@walmart/taskit-mini-app@npm:5.31.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.31.6.tgz"
+"@walmart/taskit-mini-app@npm:5.34.9":
+ version: 5.34.9
+ resolution: "@walmart/taskit-mini-app@npm:5.34.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.34.9.tgz"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/128dc39ae7af6b1e03e7a092db0de3708d01adc502c8ff1e0d1e13b2940341e640974e9585cfbe6e9d689eaef8c0f0a4adf87415e6af9a00c34c92379ce07960
+ checksum: 10c0/106412b0c7e04b29a62a2a584c220474f8a341ff4217c23062d8f602fdc985933ad96ca773fad58572112438ddbeaa52f19f7d3ba0d5821279ee75366ce19d1b
languageName: node
linkType: hard
| feat(notes): TASKIT-5804 drop 30 enhancements (#4202) | feat(notes): TASKIT-5804 drop 30 enhancements (#4202)
* feat(pckgs): ALLSPARK-5730 |5731 add expo-image-manipulator/picker dependencies
* chore: TASKIT-5804 bump taskit version
---------
Co-authored-by: Yarien Mendez <yarien.mendez.suarez@walmart.com>
Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com>
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
d4be51481c961c45c14b3035e895d421c591cf43 | --- package-lock.json
@@ -54,7 +54,7 @@
"@walmart/checkout-mini-app": "3.9.310",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.5",
+ "@walmart/copilot-mini-app": "3.92.6",
"@walmart/core-services": "6.0.15",
"@walmart/core-services-allspark": "6.0.15",
"@walmart/core-utils": "6.0.15",
@@ -11193,9 +11193,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "3.92.5",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.5.tgz",
- "integrity": "sha512-P1JUwSWUS/SXE3oElznhuk80kXsE8Igm8qEOGYvpSfqHBfxbylrayTBKo//ljNWagUmMaznkjKGGO02n9OG5Nw==",
+ "version": "3.92.6",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.6.tgz",
+ "integrity": "sha512-+qjAgsCUCA8ud312Xbey/sCmCScOwzTcbOZyNP6dJEpX4EeB2D2BtAj97fLDhBC9+Fkt1W+EJBzuvitEdIvWpg==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
--- package.json
@@ -95,7 +95,7 @@
"@walmart/checkout-mini-app": "3.9.310",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.5",
+ "@walmart/copilot-mini-app": "3.92.6",
"@walmart/core-services": "6.0.15",
"@walmart/core-services-allspark": "6.0.15",
"@walmart/core-utils": "6.0.15",
@@ -360,7 +360,7 @@
"@walmart/calling-mini-app": "0.1.24",
"@walmart/compass-sdk-rn": "5.19.3",
"@walmart/config-components": "4.3.2",
- "@walmart/copilot-mini-app": "3.92.5",
+ "@walmart/copilot-mini-app": "3.92.6",
"@walmart/core-services": "6.0.15",
"@walmart/core-services-allspark": "6.0.15",
"@walmart/core-utils": "6.0.15",
| chore: bump copilot@3.92.6 | chore: bump copilot@3.92.6
|
c82ffd466f4291fe5f4065b81626c4811db0e6a8 | --- package-lock.json
@@ -5307,9 +5307,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "5.1.2",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.1.2.tgz",
- "integrity": "sha512-GiysGtoLRVszzCUGo1yjqJaaqHYcp5ETIo+6BNd4oZihJ2+mb8RqQ+PC5689lb6JkTvnphQsPCVYkmu9GCIJ4w=="
+ "version": "5.1.3",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.1.3.tgz",
+ "integrity": "sha512-ikrdCnaBxNIBgZPhzgd9+UjqdCynQXOOA9TxqiG9zWWXoJbifyaM5ifbQca1dWG/5Q5XPUcOrQJg3qY8IWR//g=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.0.62",
--- package.json
@@ -95,7 +95,7 @@
"@walmart/impersonation-mini-app": "1.2.0",
"@walmart/ims-print-services-ui": "1.1.3",
"@walmart/inbox-mini-app": "0.55.0",
- "@walmart/iteminfo-mini-app": "5.1.2",
+ "@walmart/iteminfo-mini-app": "5.1.3",
"@walmart/manager-approvals-miniapp": "0.0.62",
"@walmart/me-field-mini-app": "1.1.22",
"@walmart/metrics-mini-app": "0.9.12",
| Item info more changes foro drop 8.1 | Item info more changes foro drop 8.1
|
7577f02194fe53ab3c130427cec2f9aa3d51a22d | --- src/appState/AppStateSagas.ts
@@ -24,8 +24,9 @@ export function* watchForAppStateChange(): any {
try {
while (true) {
const state = yield take(appStateChannel);
- if (AppStateActionCreators[state]) {
- yield put(AppStateActionCreators[state]());
+ const ActionCreatorForState = AppStateActionCreators[state];
+ if (ActionCreatorForState) {
+ yield put(ActionCreatorForState());
yield put(AppStateActionCreators.onAppStateChange(state));
}
}
| Clean up for function reference | Clean up for function reference
|
0a0e01af973bf11df5f7d36451f4b985fe0cbe9a | --- packages/allspark-foundation/src/Components/ComponentContainers.tsx
@@ -419,12 +419,6 @@ class ComponentContainerManager<ParamList extends Record<string, any>> {
};
}
-declare global {
- namespace Allspark {
- interface ComponentContainers {}
- }
-}
-
/**
* A component container renders all components added to it with a given set of props.
*
--- packages/allspark-foundation/src/Components/DynamicComponents.tsx
@@ -428,12 +428,6 @@ class DynamicComponentManager<ParmList extends Record<string, any>> {
};
}
-declare global {
- namespace Allspark {
- interface DynamicComponents {}
- }
-}
-
/**
* A collection of DynamicComponent instances.
*
--- packages/allspark-foundation/src/Components/SharedComponents.tsx
@@ -63,11 +63,5 @@ class SharedComponentManager<ParmList extends Record<string, any>> {
};
}
-declare global {
- namespace Allspark {
- interface SharedComponents {}
- }
-}
-
export const AllsparkSharedComponents =
new SharedComponentManager<Allspark.SharedComponents>();
--- packages/allspark-foundation/src/Core/index.ts
@@ -6,3 +6,4 @@ LogBox.ignoreLogs([/ReactNativeSumoSdk requires main queue setup/]);
export * from '../Container';
export * from '../Feature';
+export * from './types';
--- packages/allspark-foundation/src/Core/types.ts
@@ -0,0 +1,25 @@
+import { ParamListBase } from '@react-navigation/native';
+
+import { BaseAllsparkEnvironment } from '../Environment';
+import { BaseModalParams } from '../Navigation/modals';
+
+declare global {
+ namespace Allspark {
+ interface Environment extends BaseAllsparkEnvironment {}
+
+ interface ScreenParams extends ParamListBase {}
+ interface RootParamList {}
+
+ interface ModalParams extends BaseModalParams {}
+
+ interface ComponentContainers {}
+ interface DynamicComponents {}
+ interface SharedComponents {}
+ }
+
+ namespace ReactNavigation {
+ interface RootParamList extends Allspark.RootParamList {}
+ }
+}
+
+export {};
--- packages/allspark-foundation/src/Navigation/client.tsx
@@ -40,7 +40,7 @@ import {
} from './types';
import { DefaultModalOptions } from './constants';
import { getDrawerContext } from './context';
-import { BaseModalParams, DefaultModalStack } from './modals';
+import { DefaultModalStack } from './modals';
/**
* Allspark's Navigation client. A combination of react navigation
@@ -634,20 +634,6 @@ export class NavigationClient<
};
}
-declare global {
- namespace Allspark {
- interface ScreenParams extends ParamListBase {}
- interface RootParamList {}
-
- interface ModalParams extends BaseModalParams {}
- }
-
- // Connection of Allspark global types to React Navigation
- namespace ReactNavigation {
- interface RootParamList extends Allspark.RootParamList {}
- }
-}
-
/**
* Allspark's Navigation client. Used for global navigation, configuration, modal management, etc.
* @example
| refactor: combine all allspark global interfaces into one definition | refactor: combine all allspark global interfaces into one definition
|
8df000b5729b8e25c297184d5c75a6fc3ea96155 | --- docs/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [2.36.1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.36.0...v2.36.1) (2025-05-21)
+
+
+### Bug Fixes
+
+* **ui:** update package ([c28dce0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c28dce07fab80967084001bac29f564f48b8e147))
+
# [2.36.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.35.1...v2.36.0) (2025-05-21)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/wmconnect-mini-app",
- "version": "2.36.0",
+ "version": "2.36.1",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 2.36.1 [skip ci] | chore(release): 2.36.1 [skip ci]
## [2.36.1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.36.0...v2.36.1) (2025-05-21)
### Bug Fixes
* **ui:** update package ([c28dce0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c28dce07fab80967084001bac29f564f48b8e147))
|
3876805cb3c29fbb4a78ed719dff80a2b68cda36 | --- package.json
@@ -131,7 +131,7 @@
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-env": "6.1.4",
"@walmart/react-native-logger": "1.34.8",
- "@walmart/react-native-scanner-3.0": "0.6.6",
+ "@walmart/react-native-scanner-3.0": "0.6.7",
"@walmart/react-native-shared-navigation": "6.1.4",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.7.0",
--- yarn.lock
@@ -6873,12 +6873,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/react-native-scanner-3.0@npm:0.6.6":
- version: 0.6.6
- resolution: "@walmart/react-native-scanner-3.0@npm:0.6.6"
+"@walmart/react-native-scanner-3.0@npm:0.6.7":
+ version: 0.6.7
+ resolution: "@walmart/react-native-scanner-3.0@npm:0.6.7"
peerDependencies:
react-native: ">=0.47.1"
- checksum: 10c0/78833166f9fc6fc06874492fcbdfc02e2888833672ee7c54b7f5351b27f473305a7826930779eb8018a1dd8f07833c7f425f66ab23b078b7732f65be263491e6
+ checksum: 10c0/cd0e36da1988d75fcf62bddbf924c1e67adb6b24235356fb488d0d3536884cd03c538e59e6cc5330a64c541bee27e4742a4783a4db176d714fc31166bcd75da6
languageName: node
linkType: hard
@@ -7846,7 +7846,7 @@ __metadata:
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
"@walmart/react-native-env": "npm:6.1.4"
"@walmart/react-native-logger": "npm:1.34.8"
- "@walmart/react-native-scanner-3.0": "npm:0.6.6"
+ "@walmart/react-native-scanner-3.0": "npm:0.6.7"
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-store-map": "npm:0.3.7"
"@walmart/react-native-sumo-sdk": "npm:2.7.0"
| VS-5311 : Scanner version upgrade to 0.6.5 | VS-5311 : Scanner version upgrade to 0.6.5
|
611e6901dd4eb28f9be8e6fb8e6aab736a8fc06c | --- package.json
@@ -134,7 +134,7 @@
"@walmart/me-at-walmart-common": "workspace:^",
"@walmart/me-at-walmart-container": "workspace:^",
"@walmart/me-at-walmart-geolocation": "1.3.19",
- "@walmart/metrics-mini-app": "1.34.0",
+ "@walmart/metrics-mini-app": "1.34.4",
"@walmart/mod-flex-mini-app": "1.31.2",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "2.4.3",
--- yarn.lock
@@ -8474,7 +8474,7 @@ __metadata:
"@walmart/me-at-walmart-common": "workspace:^"
"@walmart/me-at-walmart-container": "workspace:^"
"@walmart/me-at-walmart-geolocation": "npm:1.3.19"
- "@walmart/metrics-mini-app": "npm:1.34.0"
+ "@walmart/metrics-mini-app": "npm:1.34.4"
"@walmart/mod-flex-mini-app": "npm:1.31.2"
"@walmart/moment-walmart": "npm:1.0.4"
"@walmart/money-auth-shared-components": "npm:2.4.3"
@@ -8717,18 +8717,18 @@ __metadata:
languageName: unknown
linkType: soft
-"@walmart/metrics-common@npm:1.8.0":
- version: 1.8.0
- resolution: "@walmart/metrics-common@npm:1.8.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fmetropolis-npm%2F%40walmart%2Fmetrics-common%2F-%2F%40walmart%2Fmetrics-common-1.8.0.tgz"
- checksum: 10c0/bda6dd9d72aab322ab8e805acff19486ec3a2a6778894fa0e0a980cce37b3174a20bc780eb95ce5cce8684a05f191628d67702673f1ab8a55cef29572b496cc2
+"@walmart/metrics-common@npm:1.8.2":
+ version: 1.8.2
+ resolution: "@walmart/metrics-common@npm:1.8.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fmetropolis-npm%2F%40walmart%2Fmetrics-common%2F-%2F%40walmart%2Fmetrics-common-1.8.2.tgz"
+ checksum: 10c0/21056142a6b449cb1ffcaef94299ab9ad468a42472cd6a8755784bc767ff212915228219c1c4ad80ff7cdc7da27665b45e34b2fcfbbc6b285f51d3aa12fbfaf5
languageName: node
linkType: hard
-"@walmart/metrics-mini-app@npm:1.34.0":
- version: 1.34.0
- resolution: "@walmart/metrics-mini-app@npm:1.34.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fmetropolis-npm%2F%40walmart%2Fmetrics-mini-app%2F-%2F%40walmart%2Fmetrics-mini-app-1.34.0.tgz"
+"@walmart/metrics-mini-app@npm:1.34.4":
+ version: 1.34.4
+ resolution: "@walmart/metrics-mini-app@npm:1.34.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fmetropolis-npm%2F%40walmart%2Fmetrics-mini-app%2F-%2F%40walmart%2Fmetrics-mini-app-1.34.4.tgz"
dependencies:
- "@walmart/metrics-common": "npm:1.8.0"
+ "@walmart/metrics-common": "npm:1.8.2"
base-64: "npm:^1.0.0"
peerDependencies:
"@apollo/client": ">=3.11.8"
@@ -8752,7 +8752,7 @@ __metadata:
react-native: 0.73.7
react-redux: ">=8.0.4"
reduxsauce: ">=1.2.0"
- checksum: 10c0/9f978f01825fc4f3e72ba79dc26f91036f3febf9a3ef7244ba81e271c55b7fb71a0bf8a7f1802a5ef557e101f871e5dc0e7153343d997eca1a944f30f7136365
+ checksum: 10c0/24085ab69a5abcd494e366e2493708631ff74cdc400de3e74d12f805e50d5049a82ecfe6221afae20c7f5ecdd463b514c6320672fdfe47ceef830d432361fcb4
languageName: node
linkType: hard
| Metrics Drop 35 Bug Fixes (#5140) | Metrics Drop 35 Bug Fixes (#5140)
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> |
be164ab620cddbdd3ce96bc7ff8ce0ad4b7caf45 | --- package-lock.json
@@ -2064,9 +2064,9 @@
"integrity": "sha512-LbHoqiU3zTvPrZ0rK7X1UICXTdJnK4iK0ZetSxF/zC+Kp8EKrAe3nkZhPnRqtJ6Q6Ql4xcN/EJYvc9JLQ9bB3g=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.0.16",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.0.16.tgz",
- "integrity": "sha512-Smawpi0PHFASKxutNy+rHshw2KY0Gym2gTHsJOgiyaXE81ovLaqJ5k2oxJJxvrddseTJqXvY33Rw1QRv7vElqQ==",
+ "version": "0.0.21",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.0.21.tgz",
+ "integrity": "sha512-vnF3EWqgIzYz/uvXxfGQndiCq6RdVZd0nyO4GeOK1ccFwiijsqbHAnzwBtTOU21b09OJqCQlAxl5cimVflznxQ==",
"requires": {
"@react-native-community/datetimepicker": "^3.0.3",
"moment-timezone": "^0.5.31"
--- package.json
@@ -57,7 +57,7 @@
"@walmart/redux-store": "^1.0.7",
"@walmart/schedule-mini-app": "0.2.22",
"@walmart/settings-mini-app": "1.1.5",
- "@walmart/time-clock-mini-app": "0.0.16",
+ "@walmart/time-clock-mini-app": "0.0.21",
"@walmart/ui-components": "^1.0.77",
"i18next": "^19.7.0",
"intl": "^1.2.5",
--- src/navigation/Navigation.tsx
@@ -11,7 +11,11 @@ import {createStackNavigator, TransitionPresets} from '@react-navigation/stack';
import {HomeMiniApp} from '@walmart/allspark-home-mini-app';
import {AskSamMiniApp} from '@walmart/ask-sam-mini-app';
import {MeMiniApp} from '@walmart/allspark-me-mini-app';
-import {TimeClockScreen, NewTorScreen} from '@walmart/time-clock-mini-app';
+import {
+ TimeClockScreen,
+ NewTorScreen,
+ TorInboxScreen,
+} from '@walmart/time-clock-mini-app';
import {ScheduleMiniApp} from '@walmart/schedule-mini-app';
import {HealthSurveyMiniApp} from '@walmart/allspark-health-survey-mini-app';
import SettingsMiniApp from '@walmart/settings-mini-app';
@@ -228,6 +232,17 @@ const RootNav = () => (
},
}}
/>
+ <RootStack.Screen
+ name='torInbox'
+ component={TorInboxScreen}
+ options={{
+ ...commonModalHeaderProps,
+ headerStyle: {
+ ...styles.primaryHeader,
+ shadowOffset: {width: 0, height: 0},
+ },
+ }}
+ />
<RootStack.Screen
name='scheduleScreen'
component={ScheduleMiniApp}
| Bumped Time Clock Mini App (#163) | Bumped Time Clock Mini App (#163)
* Bumped Time Clock Mini App
To introduce TOR inbox widget as well as default feature flag values
* Bumped mini app version
* Added Inbox details screen to root stack nav
Removed it from the inbox mini app due to UI issues: Nav header could not be overridden by child component
* Updated time clock mini app version |
2e4cd2958772d3f424e2c6d10e612ad20c699f6b | --- package-lock.json
@@ -79,7 +79,7 @@
"@walmart/schedule-mini-app": "0.33.0",
"@walmart/settings-mini-app": "1.17.0",
"@walmart/shelfavailability-mini-app": "1.5.13",
- "@walmart/taskit-mini-app": "2.28.8",
+ "@walmart/taskit-mini-app": "2.28.10",
"@walmart/time-clock-mini-app": "2.49.0",
"@walmart/ui-components": "1.10.1",
"@walmart/welcomeme-mini-app": "0.76.0",
@@ -6041,9 +6041,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "2.28.8",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.28.8.tgz",
- "integrity": "sha512-WnR/TyZuRKCEwSVnKDSd1JYIuKJPJjpWDAj6CLkrYsyoNPx4D2G1ONBKhjeRXNnGZvMtRviyzzHyoGdmOi95VQ==",
+ "version": "2.28.10",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.28.10.tgz",
+ "integrity": "sha512-U/LYTCPVNxds2sPoNeG7gbsgTnIuqSrO6q95knfdwUQ6meh2M79uSuRNGNjG7aBLrpiLRClrMyYu9pnZWfwYPQ==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -25453,9 +25453,9 @@
"integrity": "sha512-6P9nNTvcS59vzeWoi2JKT4ldRTQgMShlzThbbagd6PzbPkOS+M2Tx009eR8GGL5YNwxUP1n3PKmCudppwE0J+w=="
},
"@walmart/taskit-mini-app": {
- "version": "2.28.8",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.28.8.tgz",
- "integrity": "sha512-WnR/TyZuRKCEwSVnKDSd1JYIuKJPJjpWDAj6CLkrYsyoNPx4D2G1ONBKhjeRXNnGZvMtRviyzzHyoGdmOi95VQ=="
+ "version": "2.28.10",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.28.10.tgz",
+ "integrity": "sha512-U/LYTCPVNxds2sPoNeG7gbsgTnIuqSrO6q95knfdwUQ6meh2M79uSuRNGNjG7aBLrpiLRClrMyYu9pnZWfwYPQ=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -121,7 +121,7 @@
"@walmart/schedule-mini-app": "0.33.0",
"@walmart/settings-mini-app": "1.17.0",
"@walmart/shelfavailability-mini-app": "1.5.13",
- "@walmart/taskit-mini-app": "2.28.8",
+ "@walmart/taskit-mini-app": "2.28.10",
"@walmart/time-clock-mini-app": "2.49.0",
"@walmart/ui-components": "1.10.1",
"@walmart/welcomeme-mini-app": "0.76.0",
| updated taskit version | updated taskit version
|
2d0e1707ebc80febed364cf239a2919f9dda996f | --- packages/allspark-foundation-hub/__tests__/HubFeature/BottomSheet.test.tsx
@@ -26,7 +26,7 @@ describe('BottomSheet', () => {
'user.data.win',
'113333'
);
- const { getByTestId, toJSON } = render(
+ const { getByTestId, toJSON, unmount, root } = render(
<BottomSheet {...props} ref={ref} />,
{
preloadedState,
@@ -37,6 +37,9 @@ describe('BottomSheet', () => {
const bottomSheetElement = getByTestId('bottomSheet-modalContainer');
expect(bottomSheetElement.props.visible).toBe(true);
expect(toJSON()).toMatchSnapshot();
+ unmount();
+ //@ts-ignore
+ expect(root._fiber.child).toBeFalsy();
});
it('should accept a JSX Element as a content', () => {
| feat(ui): added unmount to bottomsheet case | feat(ui): added unmount to bottomsheet case
|
1af2303a8f8f38e2c2fcfbd2518bc94f53f2f4ae | --- src/components/AssociateRosterItem/index.tsx
@@ -37,6 +37,8 @@ import {TEXTING_I18N_NAMESPACE} from '../../translations';
import {messageButtonEnabled, pushToTalkEnabled} from '../../redux/selectors';
import AsyncStorage from '@react-native-async-storage/async-storage';
import {LOCAL_STORAGE_KEY_PREFIX} from '../../constants';
+import {useDispatch} from 'react-redux';
+import {textingSlice} from '../../redux/reducer';
export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
const {
associate,
@@ -47,6 +49,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
isSearchScreen = false,
} = props;
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
+ const dispatch = useDispatch();
const startAssociateText = useStartAssociateText(replace);
const startPushToTalk = usePushToTalk();
@@ -89,20 +92,23 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
RECENT_SEARCH_HISTORY_KEY,
JSON.stringify([
...updatedAssociateName,
- associate.preferredFullName,
+ namecase(name.slice(0, 20)),
]),
);
}
} else {
await AsyncStorage.setItem(
RECENT_SEARCH_HISTORY_KEY,
- JSON.stringify([associate.preferredFullName]),
+ JSON.stringify([namecase(name.slice(0, 20))]),
);
}
};
const onText = () => {
- if (isSearchScreen && associate && associate.preferredFullName) {
+ if (isSearchScreen) {
+ dispatch(
+ textingSlice.actions.SET_SEARCH_TEXT(namecase(name.slice(0, 20))),
+ );
storeAssociateName();
}
startAssociateText([associate.associateId!]);
--- src/screens/SearchScreen.tsx
@@ -38,9 +38,10 @@ import {associateDisplayName} from '../utils';
import {LOCAL_STORAGE_KEY_PREFIX} from '../constants';
import {logger} from '../logger/Logger';
import {renderAssociateRosterItem} from '../components';
-import {useDispatch} from 'react-redux';
-import {textingSlice} from '../redux/reducer';
import {RecentSearchHistory} from '../components/RecentSearchHistory';
+import {useDispatch, useSelector} from 'react-redux';
+import {getSearchText} from '../redux/selectors';
+import {textingSlice} from '../redux/reducer';
const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`;
@@ -95,16 +96,24 @@ const SearchHeaderBase = (props: StackHeaderProps) => {
const {top} = useSafeAreaInsets();
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
const dispatch = useDispatch();
+ const searchedInput = useSelector(getSearchText);
+ console.log('Recent searched input: ', searchedInput);
useEffect(() => {
+ if (searchedInput) {
+ setSearchInput(searchedInput);
+ dispatch(textingSlice.actions.SET_SEARCH_TEXT(''));
+ navigation.setParams({
+ searchInput,
+ });
+ }
navigation.setParams({
searchInput,
});
- }, [navigation, searchInput]);
+ }, [navigation, searchInput, searchedInput]);
const updateSearchInput = (value: string) => {
setSearchInput(value);
- dispatch(textingSlice.actions.SET_SEARCH_TEXT(value));
};
return (
@@ -186,7 +195,6 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => {
try {
if (recentSearchAssociates) {
const recentSearchHistoryValue = JSON.parse(recentSearchAssociates);
- console.log('Recent search history value: ', recentSearchHistoryValue);
recentSearchHistoryValue &&
setRecentSearchHistoryLength(recentSearchHistoryValue.length);
recentSearchHistoryLength !== recentSearchHistoryValue.length &&
--- src/components/AssociateRosterItem/index.tsx
@@ -37,6 +37,8 @@ import {TEXTING_I18N_NAMESPACE} from '../../translations';
import {messageButtonEnabled, pushToTalkEnabled} from '../../redux/selectors';
import AsyncStorage from '@react-native-async-storage/async-storage';
import {LOCAL_STORAGE_KEY_PREFIX} from '../../constants';
+import {useDispatch} from 'react-redux';
+import {textingSlice} from '../../redux/reducer';
export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
const {
associate,
@@ -47,6 +49,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
isSearchScreen = false,
} = props;
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
+ const dispatch = useDispatch();
const startAssociateText = useStartAssociateText(replace);
const startPushToTalk = usePushToTalk();
@@ -89,20 +92,23 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
RECENT_SEARCH_HISTORY_KEY,
JSON.stringify([
...updatedAssociateName,
- associate.preferredFullName,
+ namecase(name.slice(0, 20)),
]),
);
}
} else {
await AsyncStorage.setItem(
RECENT_SEARCH_HISTORY_KEY,
- JSON.stringify([associate.preferredFullName]),
+ JSON.stringify([namecase(name.slice(0, 20))]),
);
}
};
const onText = () => {
- if (isSearchScreen && associate && associate.preferredFullName) {
+ if (isSearchScreen) {
+ dispatch(
+ textingSlice.actions.SET_SEARCH_TEXT(namecase(name.slice(0, 20))),
+ );
storeAssociateName();
}
startAssociateText([associate.associateId!]);
--- src/screens/SearchScreen.tsx
@@ -38,9 +38,10 @@ import {associateDisplayName} from '../utils';
import {LOCAL_STORAGE_KEY_PREFIX} from '../constants';
import {logger} from '../logger/Logger';
import {renderAssociateRosterItem} from '../components';
-import {useDispatch} from 'react-redux';
-import {textingSlice} from '../redux/reducer';
import {RecentSearchHistory} from '../components/RecentSearchHistory';
+import {useDispatch, useSelector} from 'react-redux';
+import {getSearchText} from '../redux/selectors';
+import {textingSlice} from '../redux/reducer';
const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`;
@@ -95,16 +96,24 @@ const SearchHeaderBase = (props: StackHeaderProps) => {
const {top} = useSafeAreaInsets();
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
const dispatch = useDispatch();
+ const searchedInput = useSelector(getSearchText);
+ console.log('Recent searched input: ', searchedInput);
useEffect(() => {
+ if (searchedInput) {
+ setSearchInput(searchedInput);
+ dispatch(textingSlice.actions.SET_SEARCH_TEXT(''));
+ navigation.setParams({
+ searchInput,
+ });
+ }
navigation.setParams({
searchInput,
});
- }, [navigation, searchInput]);
+ }, [navigation, searchInput, searchedInput]);
const updateSearchInput = (value: string) => {
setSearchInput(value);
- dispatch(textingSlice.actions.SET_SEARCH_TEXT(value));
};
return (
@@ -186,7 +195,6 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => {
try {
if (recentSearchAssociates) {
const recentSearchHistoryValue = JSON.parse(recentSearchAssociates);
- console.log('Recent search history value: ', recentSearchHistoryValue);
recentSearchHistoryValue &&
setRecentSearchHistoryLength(recentSearchHistoryValue.length);
recentSearchHistoryLength !== recentSearchHistoryValue.length &&
| update recent search selection to navigate to the card | update recent search selection to navigate to the card
|
08d2f90ad18bcbf5f4fc37be3eb16432afd038e7 | --- graphql.yml
@@ -85,6 +85,7 @@ applications:
queryTemplate: "src/queries/upsertAssociateTextPreference.graphql"
tags:
- "v1"
+
# - name: "prod"
# persistedQueries:
# - name: "GetAssociateClockStatus"
| getDailyRoster query update redo | getDailyRoster query update redo
|
8fb975ea9ddb8e0493be85915b577ddf18c5afa5 | --- yarn.lock
@@ -6457,9 +6457,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/gtp-shared-components@npm:2.2.4":
- version: 2.2.4
- resolution: "@walmart/gtp-shared-components@npm:2.2.4"
+"@walmart/gtp-shared-components@npm:2.2.5-rc.1":
+ version: 2.2.5-rc.1
+ resolution: "@walmart/gtp-shared-components@npm:2.2.5-rc.1"
dependencies:
"@livingdesign/tokens": "npm:0.74.0"
"@walmart/gtp-shared-icons": "npm:1.0.10"
@@ -6477,7 +6477,7 @@ __metadata:
bin:
installFonts: scripts/installFonts
runCodemods: scripts/runCodemods
- checksum: 10c0/52b172f006e950284c34fee7e2b05637f2eec0c3b857a491f6853302936e1b48efe121fcd209444ec7e5572b23a4495a090a2f55fa41447c00823adaca6c17a2
+ checksum: 10c0/53d3bc413f1fba44f135d43bfa042eba13e905194435bb9c68e2e8086fac19e2a6628459026ead9f3bd02144fad1e4d2cf53d9f1953665926e612c64c23f57c7
languageName: node
linkType: hard
@@ -7022,7 +7022,7 @@ __metadata:
"@walmart/financial-wellbeing-feature-app": "npm:1.26.0"
"@walmart/functional-components": "npm:~6.3.28"
"@walmart/gta-react-native-calendars": "npm:0.7.0"
- "@walmart/gtp-shared-components": "npm:2.2.4"
+ "@walmart/gtp-shared-components": "npm:2.2.5-rc.1"
"@walmart/ims-print-services-ui": "npm:2.15.3"
"@walmart/inbox-mini-app": "npm:0.96.6"
"@walmart/iteminfo-mini-app": "npm:7.16.2"
| chore: update lock file | chore: update lock file
|
842a8ed8f058d18aa1f1c816617a58fff3e8c50f | --- ios/AllSpark.xcodeproj/project.pbxproj
@@ -221,7 +221,6 @@
buildPhases = (
53D455D8D940558DAEDE5BA8 /* [CP] Check Pods Manifest.lock */,
FD10A7F022414F080027D42C /* Start Packager */,
- B19715BBBE4DB4D4F5BA9CE7 /* [CP] Prepare Artifacts */,
13B07F871A680F5B00A75B9A /* Sources */,
13B07F8C1A680F5B00A75B9A /* Frameworks */,
13B07F8E1A680F5B00A75B9A /* Resources */,
@@ -390,7 +389,7 @@
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
- "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/AVScannerViewController.xib",
+ "${BUILT_PRODUCTS_DIR}/react-native-wm-barcode/react_native_wm_barcode.framework/AVScannerViewController.nib",
"${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/scanbeep.wav",
"${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/DIGIMark-custom.ttf",
"${PODS_ROOT}/../../node_modules/react-native-wm-voice-text/ios/state-change_confirm-down.wav",
@@ -429,24 +428,6 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-resources.sh\"\n";
showEnvVarsInLog = 0;
};
- B19715BBBE4DB4D4F5BA9CE7 /* [CP] Prepare Artifacts */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-artifacts.sh",
- "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/Frameworks/DMSDK.xcframework",
- );
- name = "[CP] Prepare Artifacts";
- outputPaths = (
- "${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-artifacts.sh\"\n";
- showEnvVarsInLog = 0;
- };
B82DE1EDF034E61626886659 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -454,10 +435,11 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-frameworks.sh",
- "${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/DMSDK/DMSDK.framework/DMSDK",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DMSDK.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
| matching with develop | matching with develop
|
e26c0e5d7f7addc3afde03c9feb780d80b2b620a | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/EditSavedTeamModal/EditSavedTeamsSectionLoading.tsx
@@ -24,7 +24,9 @@ const LoadingListItem = () => {
const LoadingListSection = () => {
const { width } = useWindowDimensions();
- const loadingListRenderer = new Array(4).fill(<LoadingListItem />);
+ const loadingListRenderer = new Array(4)
+ .fill(null)
+ .map((_, index) => <LoadingListItem key={index} />);
return (
<View style={styles.loadingListSectionContainer}>
<Skeleton height={24} width={width * 0.4} />
@@ -35,8 +37,8 @@ const LoadingListSection = () => {
export const EditSavedTeamsSectionLoading = () => {
const { height } = useWindowDimensions();
- const loadingListRenderer = new Array(Math.ceil(height / 300)).fill(
- <LoadingListSection />
- );
+ const loadingListRenderer = new Array(Math.ceil(height / 300))
+ .fill(null)
+ .map((_, index) => <LoadingListSection key={index} />);
return <ScrollView>{loadingListRenderer}</ScrollView>;
};
| feat: added index to arrays | feat: added index to arrays
|
ade5467798f1993b6cca9bacba2a0933382f6eb1 | --- src/components/Roster/types.ts
@@ -2,7 +2,7 @@ import {Associate, Team} from '../../types';
export interface RosterActionButton<T = any> {
i18nLabel: string;
- action: (data: T) => void; //TODO: Refactor this type, associateList item passes the associate obj. Teams might do something different
+ action: (data: T) => void;
}
export interface RosterData {
| fix action type | fix action type
|
55b944fbc3a5b6e8621d62b45fd20d8eca1bb31f | --- packages/allspark-foundation/README.md
@@ -88,6 +88,10 @@ To create a feature runner, start with the [AllsparkFeatureRunner](./src/Feature
## FAQ
+### How to transition an existing mini app?
+
+Follow the [Migration Doc](https://gecgithub01.walmart.com/allspark/allspark/blob/develop/packages/allspark-foundation/src/Core/docs/Migrating.md) for a phased approach to this migration process.
+
### How to resolve dependency conflicts during `npm install`?
If dependency conflicts come up during install, you can try the following:
| Update README.md | Update README.md
docs: add link to migration doc on root readme |
c4f382d7e0ccfcce84c9c7daf0fb1f921e7c6700 | --- package-lock.json
@@ -3038,9 +3038,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.10.35",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.35.tgz",
- "integrity": "sha512-VVyO7kKWAQ8XBqXSjMsehhkqzB97vlgSGibLBYlb+JjNRgPBL2NL8Naln0g+n+ZZSt9VPjX3JMxfTitJQUTrZQ==",
+ "version": "0.10.38",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.38.tgz",
+ "integrity": "sha512-9ZdJHiYatCI5Sx3OQ9i6FFBM4BXO+8GlXFMv4lzLYbSMfhq99gosLgU7g8EMFgPqz8OzdjlwakIW+DquhRrpkw==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
--- package.json
@@ -62,7 +62,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.31",
"@walmart/allspark-home-mini-app": "0.1.11",
"@walmart/allspark-me-mini-app": "0.0.22",
- "@walmart/ask-sam-mini-app": "0.10.35",
+ "@walmart/ask-sam-mini-app": "0.10.38",
"@walmart/config-components": "1.0.14",
"@walmart/feedback-all-spark-miniapp": "0.0.42",
"@walmart/functional-components": "1.0.25",
| ask-sam version increase (#439) | ask-sam version increase (#439)
Co-authored-by: Dylan Lane - rlane1 <Russell.Lane@walmart.com> |
f766412f8b93003e5a2599ebcc1f1a3f6483217c | --- packages/allspark-foundation-hub/src/Core/index.ts
@@ -7,4 +7,4 @@ LogBox.ignoreLogs([/ReactNativeSumoSdk requires main queue setup/]);
export * from '../HubFeature';
export * from '../HubFeature/Store';
export * from '../HubFeature/Shared/Components';
-export * from '../HubFeature/SupplyChain';
+export * from '../HubFeature/SupplyChain/Hooks';
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/EditSavedTeams/EditSavedTeams.tsx
@@ -69,7 +69,15 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => {
const savedData = {
data: {
supplyChainTeamsByAssociate: {
- teams: teams || [],
+ teams: teams?.length
+ ? teams
+ : [
+ {
+ teamId: Images['Default'].teamName,
+ teamName: t('teamShiftSwitcher.defaultTeam'),
+ teamImage: Images['Default'],
+ },
+ ],
errors: [],
},
},
@@ -103,7 +111,9 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => {
title={t('editSavedTeams.title')}
subText={t('editSavedTeams.subText')}
rightTextLink={showEditSavedTeams}
- textLinkLabel={showEditSavedTeams ? 'Edit' : undefined}
+ textLinkLabel={
+ showEditSavedTeams ? t('editSavedTeams.textLink') : undefined
+ }
onPressRightTextLink={showEditSavedTeams ? handleEdit : undefined}
/>
<FlashList
@@ -115,7 +125,7 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => {
isSelected={!isSingleSelect && !selecteTeamIds?.length}
teamId={Images['Saved'].teamName}
teamImage={Images['Saved']}
- teamName={Images['Saved'].teamName}
+ teamName={t('editSavedTeams.allSaved')}
onSelect={handleEditTeamSelection}
/>
)
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Hub/SiteHubDashboard.tsx
@@ -63,7 +63,7 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
teamIds: string[];
shifts: string[];
}>({
- teamLabel: TOTAL_SITE_TEAM_LABEL,
+ teamLabel: TOTAL_SITE_TEAM_ID,
teamIds: [TOTAL_SITE_TEAM_ID],
shifts: ['A1'],
});
@@ -301,7 +301,7 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
? t('teamShiftSwitcher.allSavedTeams')
: allTeamData[0]
}
- teamId={selectedTeamIds?.[0]}
+ teamId={selectedTeamIds?.[0] ? selectedTeamIds[0] : allTeamData[0]}
selectedShifts={shiftData}
onPress={() => {
AllsparkNavigationClient.openModal(
@@ -348,9 +348,13 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
layout={allowedWidgetsList}
props={{
...containerComponentProps,
- selectedTeamPreference: teamState.teamLabel,
- selectedTeamIds: selectedTeamIds || teamState.teamIds,
- selectedShifts: selectedShifts || teamState.shifts,
+ selectedTeamPreference: teamData,
+ selectedTeamIds: selectedTeamIds.length
+ ? selectedTeamIds
+ : teamPreferenceData,
+ selectedShifts: selectedShifts.length
+ ? selectedShifts
+ : shiftPreferenceData,
}}
/>
</ScrollView>
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/UpdateTeamsModal/styles.ts
@@ -37,6 +37,7 @@ export const styles = StyleSheet.create({
alertContainer: {
width: '100%',
marginBottom: 16,
+ paddingTop: 10,
},
buttonGroupContainer: {
width: '100%',
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/index.ts
@@ -1,3 +1,7 @@
export * from '../Shared/Components/HubHeader';
export * from '../Shared/Components/Popover';
export * from './Components/TeamShiftSwitcher';
+export * from './Hooks';
+export * as SupplyChainImages from './Images/images';
+export * from './Redux';
+export * from './constant';
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts
@@ -16,6 +16,8 @@ export const enUS = {
title: 'My Saved Teams',
subText:
"Shortcuts to quickly view teams you're interested in. Edit anytime.",
+ textLink: 'Edit',
+ allSaved: 'All saved teams',
},
editSavedTeamsModal: {
title: 'Edit My Saved Teams',
@@ -115,6 +117,8 @@ export const esMX: typeof enUS = {
title: 'Mis equipos guardados',
subText:
'Acceso directo para ver rápidamente los equipos que te interesan. Edita en cualquier momento.',
+ textLink: 'Editar',
+ allSaved: 'Todos los equipos guardados',
},
editSavedTeamsModal: {
title: 'Editar mis equipos guardados',
--- packages/allspark-foundation-hub/src/HubFeature/utils.ts
@@ -73,7 +73,7 @@ export const createDefaultWidgetPlaceholder = (
}
);
- return updatedAllowedWidgets;
+ return updatedAllowedWidgets || [];
};
export const getDefaultTeamsForUserType = (
| feat(ui): hub changes for roster | feat(ui): hub changes for roster
|
e289af98407243117b7197034c4a938a56d4bd92 | --- core/__tests__/permissions/PermissionsSagaTest.ts
@@ -91,7 +91,7 @@ describe('permissions sagas', () => {
it('handles permissions set', () => {
const iterator = handlePermissions();
expect(iterator.next().value).toEqual(call(getPermissionsUnset));
- expect(iterator.next().done).toBe(true);
+ expect(iterator.next(false).done).toEqual(true);
});
it('handles permissions not set', () => {
| code cleanup | code cleanup
|
80fe12ea275f0ed4ea27fec50ea08eb7daf6289b | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.42",
+ "version": "2.13.0",
"main": "dist/index.js",
"files": [
"dist"
@@ -85,7 +85,7 @@
"@typescript-eslint/parser": "^5.37.0",
"@walmart/allspark-authentication": "6.1.4",
"@walmart/allspark-foundation": "6.27.4",
- "@walmart/allspark-foundation-hub": "1.2.7-alpha.10",
+ "@walmart/allspark-foundation-hub": "1.2.14",
"@walmart/allspark-graphql-client": "^1.4.6",
"@walmart/allspark-http-client": "6.1.4",
"@walmart/config-components": "4.4.0",
--- yarn.lock
@@ -5914,9 +5914,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation-hub@npm:1.2.7-alpha.10":
- version: 1.2.7-alpha.10
- resolution: "@walmart/allspark-foundation-hub@npm:1.2.7-alpha.10"
+"@walmart/allspark-foundation-hub@npm:1.2.14":
+ version: 1.2.14
+ resolution: "@walmart/allspark-foundation-hub@npm:1.2.14"
dependencies:
"@reduxjs/toolkit": "npm:^1.9.7"
"@shopify/flash-list": "npm:~1.6.4"
@@ -5932,7 +5932,7 @@ __metadata:
react: "*"
react-native: "*"
react-native-safe-area-context: 4.x
- checksum: 10c0/1ad8d14ffd7f721a53e638b91f4557fd2160c029d2600f434377cc2b21ddc35d1d3621726429325def628ed3a81c2caf919a55bf3601f7cf37b5183dd6b72695
+ checksum: 10c0/08ade7acdeaab5a1fc406db8a03b4ff3f636ba4ce5b9a7d8d641bf1e9ae1091b4b4a9026fc0d6ba14a5952d92cf473ec2d59dcf6524123117bc74144d3afc968
languageName: node
linkType: hard
@@ -6383,7 +6383,7 @@ __metadata:
"@typescript-eslint/parser": "npm:^5.37.0"
"@walmart/allspark-authentication": "npm:6.1.4"
"@walmart/allspark-foundation": "npm:6.27.4"
- "@walmart/allspark-foundation-hub": "npm:1.2.7-alpha.10"
+ "@walmart/allspark-foundation-hub": "npm:1.2.14"
"@walmart/allspark-graphql-client": "npm:^1.4.6"
"@walmart/allspark-http-client": "npm:6.1.4"
"@walmart/config-components": "npm:4.4.0"
| Update the roster mini app version | Update the roster mini app version
|
f0b2e73679aef5de4a56b3643925995048c2eaa0 | --- packages/allspark-foundation-hub/src/SupplyChain/Components/TeamShiftSwitcher/TeamShiftSwitcher.tsx
@@ -67,6 +67,16 @@ export const TeamShiftSwitcher = ({
SC_ManagerExperienceSelectors.getSelectedShifts
);
+ const currentSelectedTeamIds = useMemo(
+ () => (selectedTeamIds?.length ? selectedTeamIds : teamPreferenceData),
+ [selectedTeamIds, teamPreferenceData]
+ );
+
+ const currentSelectedShifts = useMemo(
+ () => (selectedShifts?.length ? selectedShifts : shiftPreferenceData),
+ [selectedShifts, shiftPreferenceData]
+ );
+
const getTeamNameById = (teamIds: string[]): string[] => {
const matchingTeamNames: string[] = [];
@@ -106,7 +116,7 @@ export const TeamShiftSwitcher = ({
const fullTeamAndShiftText = generateTeamShiftText(
teamName,
- selectedShifts.length ? selectedShifts : shiftPreferenceData,
+ selectedShifts,
DEFAULT_SHIFTS_COUNT,
showShifts,
showTeamName,
@@ -133,6 +143,10 @@ export const TeamShiftSwitcher = ({
shiftText ? ` ${t('teamShiftSwitcher.and')} ${shiftText} ` : ''
}`;
+ useEffect(() => {
+ onTeamChange(currentSelectedTeamIds, allTeamData, currentSelectedShifts);
+ }, [currentSelectedTeamIds, currentSelectedShifts]);
+
useEffect(() => {
if (fullTeamAndShiftText) {
setTeamAndShiftText(fullTeamAndShiftText);
@@ -140,7 +154,6 @@ export const TeamShiftSwitcher = ({
}, [fullTeamAndShiftText, refreshing]);
const onTeamAndShiftChange = () => {
- onTeamChange(teamName, allTeamData, shiftPreferenceData);
AllsparkNavigationClient.openModal(
'managerExperience.supplyChain.updateModal' as any
);
--- packages/allspark-foundation-hub/src/SupplyChain/Components/TeamShiftSwitcher/types.ts
@@ -1,15 +1,7 @@
export interface TeamShiftSwitcherProps {
- // allSavedTeams?: string[];
- // isLoading: boolean;
- // numTotalShifts: number;
- // teamName: string;
- // teamId: string;
- // selectedShifts?: string[];
- // onPress: () => void;
-
onTeamChange: (
- teamLabel: string,
teamIds: string[],
+ teamLabel: string[],
shifts: string[]
) => void;
refreshing: boolean;
--- packages/allspark-foundation-hub/src/SupplyChain/Hub/SiteHubDashboard.tsx
@@ -62,13 +62,13 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
loading: preferencesLoading,
} = useGetSupplyChainTeamsPreferenceQuery();
const [teamState, setTeamState] = useState<{
- teamLabel: string;
teamIds: string[];
- shifts: string[];
+ teamLabel: string;
+ shiftsIds: string[];
}>({
- teamLabel: TOTAL_SITE_TEAM_ID,
teamIds: [TOTAL_SITE_TEAM_ID],
- shifts: ['A1'],
+ teamLabel: TOTAL_SITE_TEAM_ID,
+ shiftsIds: ['A1'],
});
const [show, setShow] = useState(false);
const [allowedWidgetsList, setAllowedWidgetsList] = useState<LayoutConfig>(
@@ -114,13 +114,13 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
setTeamState({
teamLabel: selectedTeamIds[0],
teamIds: selectedTeamIds,
- shifts: [defaultShift],
+ shiftsIds: [defaultShift],
});
} else {
setTeamState({
teamLabel: TOTAL_SITE_TEAM_LABEL,
teamIds: [TOTAL_SITE_TEAM_ID],
- shifts: [defaultShift],
+ shiftsIds: [defaultShift],
});
}
}, [defaultShift, selectedTeamIds]); // this fires when switcher value changes
@@ -318,10 +318,10 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
</View>
<TeamShiftSwitcher
refreshing={state.refreshing}
- onTeamChange={(teamLabel, teamIds, shifts) => {
+ onTeamChange={(teamIds, teamLabel, shiftsIds) => {
setTeamState({
- teamLabel,
- shifts,
+ teamLabel: teamLabel[0],
+ shiftsIds,
teamIds,
});
}}
| feat(ui): updated switcher callback data | feat(ui): updated switcher callback data
|
0230442ec7cf4712eddee1cd8543262a221c1a88 | --- packages/me-at-walmart-container/src/redux/auth.ts
@@ -1,4 +1,4 @@
-import { takeLatest, select } from 'redux-saga/effects';
+import { takeLatest, select, call } from 'redux-saga/effects';
import {
EnvironmentActionTypes,
EnvironmentSelectors,
@@ -35,6 +35,7 @@ export function* onAppConfigSuccess() {
}
export const AuthSagas = [
+ call(onEnvironmentSet),
takeLatest(EnvironmentActionTypes.SET, onEnvironmentSet),
takeLatest(ConfigActionTypes.FETCH_SUCCESS, onAppConfigSuccess),
];
--- packages/me-at-walmart-container/src/redux/logger.ts
@@ -49,16 +49,18 @@ export function* onEnvironmentSet() {
EnvironmentSelectors.getState
);
- yield call(MeAtWalmartLoggerService.setConfig, env.logger as any);
+ if (env.logger) {
+ yield call(MeAtWalmartLoggerService.setConfig, env.logger as any);
- yield call(MeAtWalmartLoggerService.setUserInfo, {
- env: env.env,
- deployment: env.deployment,
- });
+ yield call(MeAtWalmartLoggerService.setUserInfo, {
+ env: env.env,
+ deployment: env.deployment,
+ });
- MeAtWalmartLoggerService.getContainerInstance().info('Session started', {
- session: SESSION_ID,
- });
+ MeAtWalmartLoggerService.getContainerInstance().info('Session started', {
+ session: SESSION_ID,
+ });
+ }
}
export function* onAppConfigSuccess() {
@@ -168,6 +170,7 @@ export function* onDeviceSuccess({ payload }: IDeviceActions['FETCH_SUCCESS']) {
}
export const LoggerSagas = [
+ call(onEnvironmentSet),
takeLatest(EnvironmentActionTypes.SET, onEnvironmentSet),
takeLatest(ConfigActionTypes.FETCH_SUCCESS, onAppConfigSuccess),
takeLatest(USER_CHANGED_ACTIONS, onUserChanged),
| fix: env dependent sagas not called if set action missed | fix: env dependent sagas not called if set action missed
|
0034ed64f869df399d96c0103d5df7b076a76b71 | --- package-lock.json
@@ -4263,7 +4263,7 @@
"@walmart/gtp-shared-components": {
"version": "1.2.0",
"resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.2.0.tgz",
- "integrity": "sha1-uZ6zL5R12W20AFyA5eFskWpu0Iw=",
+ "integrity": "sha512-OxDrYdXQeR22V+aTBNqQHRJFyIOlOkp2erG4KS+0lEWWve1EApNHNyPgIbFQbydtWn1rybwFossRsVszkr2XKQ==",
"requires": {
"@react-native-community/datetimepicker": "^3.0.8",
"@react-native-community/picker": "^1.6.5",
@@ -4287,9 +4287,9 @@
"integrity": "sha512-7IEyBIuL87sBJj2YD1suMfIM0g/ifdZZ1B6IVWxOAkWRhTZXyrskZf9kySQ4/nAI8mspHkXXVmEsboRAJSZ8OA=="
},
"@walmart/iteminfo-mini-app": {
- "version": "4.1.5",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.1.5.tgz",
- "integrity": "sha512-yP9NGgm6SLAAx14VWVvPrGWjgU7U1SlQfX+4sMTWjZ1y3ogIXU3EsVNgwAsdiukCTlBztIMgEao7wtCnWKTCdg=="
+ "version": "0.1.297",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-0.1.297.tgz",
+ "integrity": "sha512-fVXlCXhFTyweSVghMZ5mkucCBSG/cuAhBiSK3an+67Kn7BfvUgqtmYgSifYCbqqbQ4FO5bXcEMhMzsNqj1XSfQ=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.0.59",
--- package.json
@@ -85,7 +85,7 @@
"@walmart/impersonation-mini-app": "1.0.27",
"@walmart/ims-print-services-ui": "0.1.25",
"@walmart/inbox-mini-app": "0.37.0",
- "@walmart/iteminfo-mini-app": "4.1.5",
+ "@walmart/iteminfo-mini-app": "0.1.297",
"@walmart/manager-approvals-miniapp": "0.0.59",
"@walmart/metrics-mini-app": "0.7.65",
"@walmart/moment-walmart": "1.0.4",
| item info qty input fix for iOS | item info qty input fix for iOS
|
f037a88674f985a140d7aaec6470c324301f07ce | --- package-lock.json
@@ -53,9 +53,9 @@
"@walmart/gta-react-native-calendars": "0.0.16",
"@walmart/gtp-shared-components": "2.0.6",
"@walmart/impersonation-mini-app": "1.18.3",
- "@walmart/ims-print-services-ui": "2.4.0",
+ "@walmart/ims-print-services-ui": "2.4.1",
"@walmart/inbox-mini-app": "0.83.3",
- "@walmart/iteminfo-mini-app": "7.3.2",
+ "@walmart/iteminfo-mini-app": "7.3.3",
"@walmart/manager-approvals-miniapp": "0.2.2",
"@walmart/me-field-mini-app": "1.3.0",
"@walmart/metrics-mini-app": "0.11.5",
@@ -5317,9 +5317,9 @@
}
},
"node_modules/@walmart/ims-print-services-ui": {
- "version": "2.4.0",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.4.0.tgz",
- "integrity": "sha512-ZdxUVkzLfTN2R78J9gS0k3t0k8fME+PuFa5bxJD1VfxXnCshF/c9N+ndGmffLtgh0Ae+jAKVOWuplSLes43nfQ==",
+ "version": "2.4.1",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.4.1.tgz",
+ "integrity": "sha512-KLCENVcP9ajrhDF2pMYpxV2QPP8H1gURRQYi31OpifEX1oYwj4deif6+jLvxq8LHQG+eKVwFiCOkqVnXLtpWXQ==",
"peerDependencies": {
"@react-native-firebase/analytics": ">=10.5.1",
"@react-native-firebase/app": ">=10.5.0",
@@ -5360,11 +5360,10 @@
}
},
"node_modules/@walmart/iteminfo-mini-app": {
- "version": "7.3.2",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.3.2.tgz",
- "integrity": "sha512-4RTrOcfWo8MePnOj8rilD+V6HDzYBSfMAge8Fk5xy7KzqtjhzXxaoFcxkdLKyb3Q08XSdmDHsIYZ54kE5TpzCQ==",
+ "version": "7.3.3",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.3.3.tgz",
+ "integrity": "sha512-sxgQ5+NyR1/hQxpgOXdyhUTn4X/5UYZRpNXptNsChFU7Jp/VoNaBiV08uUyw3OTgo5esRfb5FcFqHg8Kxm1j7Q==",
"peerDependencies": {
- "@react-native-community/async-storage": ">=1.12.1",
"@react-native-community/netinfo": ">=9.3.6",
"@react-native-firebase/analytics": ">=15.1.1",
"@react-native-firebase/app": ">=15.1.1",
@@ -5379,10 +5378,11 @@
"@walmart/allspark-neon-core": ">=0.1.31",
"@walmart/ask-sam-mini-app": ">=0.30.27",
"@walmart/config-components": ">=1.0.8",
+ "@walmart/core-services": ">=2.0.19",
"@walmart/counts-component-miniapp": ">=0.0.21",
"@walmart/functional-components": ">=2.0.6",
- "@walmart/gtp-shared-components": ">=2.0.2",
- "@walmart/ims-print-services-ui": ">=2.2.2",
+ "@walmart/gtp-shared-components": ">=2.0.6",
+ "@walmart/ims-print-services-ui": ">=2.4.0",
"@walmart/price-changes-mini-app": ">=1.4.5",
"@walmart/react-native-env": ">=0.2.0",
"@walmart/react-native-logger": ">=1.29.0",
@@ -25324,9 +25324,9 @@
"integrity": "sha512-l41PBLl3OZcEDIFiUE/ye4F93/qV6N8WU5iSqcWZr+6tmHQQ+uC/BJ55oy09mjC+/j3MAuoF3eL15yFjpgTMPA=="
},
"@walmart/ims-print-services-ui": {
- "version": "2.4.0",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.4.0.tgz",
- "integrity": "sha512-ZdxUVkzLfTN2R78J9gS0k3t0k8fME+PuFa5bxJD1VfxXnCshF/c9N+ndGmffLtgh0Ae+jAKVOWuplSLes43nfQ=="
+ "version": "2.4.1",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.4.1.tgz",
+ "integrity": "sha512-KLCENVcP9ajrhDF2pMYpxV2QPP8H1gURRQYi31OpifEX1oYwj4deif6+jLvxq8LHQG+eKVwFiCOkqVnXLtpWXQ=="
},
"@walmart/inbox-mini-app": {
"version": "0.83.3",
@@ -25338,9 +25338,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "7.3.2",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.3.2.tgz",
- "integrity": "sha512-4RTrOcfWo8MePnOj8rilD+V6HDzYBSfMAge8Fk5xy7KzqtjhzXxaoFcxkdLKyb3Q08XSdmDHsIYZ54kE5TpzCQ=="
+ "version": "7.3.3",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.3.3.tgz",
+ "integrity": "sha512-sxgQ5+NyR1/hQxpgOXdyhUTn4X/5UYZRpNXptNsChFU7Jp/VoNaBiV08uUyw3OTgo5esRfb5FcFqHg8Kxm1j7Q=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.2.2"
| updated package.lock | updated package.lock
|
bceecd503ba5f5c2c3ccb3f329b9af833d598f42 | --- package.json
@@ -145,7 +145,7 @@
"@walmart/shelfavailability-mini-app": "1.5.23",
"@walmart/store-feature-orders": "1.26.7",
"@walmart/taskit-mini-app": "2.81.15",
- "@walmart/time-clock-mini-app": "2.380.0",
+ "@walmart/time-clock-mini-app": "2.383.0",
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch",
"@walmart/welcomeme-mini-app": "0.90.3",
--- yarn.lock
@@ -7146,9 +7146,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/time-clock-mini-app@npm:2.380.0":
- version: 2.380.0
- resolution: "@walmart/time-clock-mini-app@npm:2.380.0"
+"@walmart/time-clock-mini-app@npm:2.383.0":
+ version: 2.383.0
+ resolution: "@walmart/time-clock-mini-app@npm:2.383.0"
dependencies:
"@react-navigation/elements": "npm:^1.3.1"
moment-timezone: "npm:0.5.33"
@@ -7191,7 +7191,7 @@ __metadata:
uuid: ^3.3.2
wifi-store-locator: ^1.4.0
xdate: ^0.8.2
- checksum: 10c0/64aad3b53707c6c4a4628ff4d339cd43ebdf072b38640fcf7a6953d038f3ac67d64a4a6ed9c1d475d7d47b7489f7f800a61a4b391c02d1bb6cd68f7a3ba0d4a1
+ checksum: 10c0/8818c2e2b7ef04a0d650aba40056c0190a4221bed4c3bac7dbd812f34d8343b7c1bdef2851d060239b3a5321f3e158e4a81a6092054cbef28e088a2a4fa4b0ce
languageName: node
linkType: hard
@@ -7785,7 +7785,7 @@ __metadata:
"@walmart/shelfavailability-mini-app": "npm:1.5.23"
"@walmart/store-feature-orders": "npm:1.26.7"
"@walmart/taskit-mini-app": "npm:2.81.15"
- "@walmart/time-clock-mini-app": "npm:2.380.0"
+ "@walmart/time-clock-mini-app": "npm:2.383.0"
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch"
"@walmart/welcomeme-mini-app": "npm:0.90.3"
| Update TCMA to 2.383.0 | Update TCMA to 2.383.0
|
229ef17da7254ddf4289f060b359e6a5ee3e4b31 | --- package.json
@@ -86,7 +86,7 @@
"@walmart/core-utils": "~1.3.0",
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.0.42",
- "@walmart/emergency-mini-app": "1.12.0",
+ "@walmart/emergency-mini-app": "1.13.0",
"@walmart/exception-mini-app": "1.0.3",
"@walmart/facilities-management-miniapp": "0.4.2",
"@walmart/feedback-all-spark-miniapp": "0.9.7",
| fix banner with impersonation and case mismatch etc | fix banner with impersonation and case mismatch etc
|
21a7ba2c5911a7b6782d2c3375198ab929e69417 | --- package.json
@@ -93,7 +93,7 @@
"@walmart/attendance-mini-app": "3.174.3",
"@walmart/avp-feature-app": "0.25.32",
"@walmart/avp-shared-library": "0.25.28",
- "@walmart/backroom-mini-app": "1.15.9",
+ "@walmart/backroom-mini-app": "1.15.10",
"@walmart/calling-mini-app": "0.8.11",
"@walmart/candidate-authentication-lib": "0.0.8",
"@walmart/checkout-mini-app": "4.17.0",
--- yarn.lock
@@ -7824,9 +7824,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/backroom-mini-app@npm:1.15.9":
- version: 1.15.9
- resolution: "@walmart/backroom-mini-app@npm:1.15.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.15.9.tgz"
+"@walmart/backroom-mini-app@npm:1.15.10":
+ version: 1.15.10
+ resolution: "@walmart/backroom-mini-app@npm:1.15.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.15.10.tgz"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -7848,7 +7848,7 @@ __metadata:
react-native-svg-transformer: ">=1.0.0"
react-redux: ">=8.0.0"
redux: ">=4.0.0"
- checksum: 10c0/d576e846606218ddd3c76e169b97e9a0d358c00b84317ebe315a0a27d8493018d20d323b6aa44a8c61b98b33d178de988f69bed4d4b90a3c4d08debacc13dcf5
+ checksum: 10c0/13be10145f06d15b03535bbd0390889d043a5a00dc59e8c7a51510bfaaff4c7cc51f84bc945fcfea6d39ed950c94ddef86c090913edb749652f185e03b62d8c6
languageName: node
linkType: hard
@@ -8686,7 +8686,7 @@ __metadata:
"@walmart/attendance-mini-app": "npm:3.174.3"
"@walmart/avp-feature-app": "npm:0.25.32"
"@walmart/avp-shared-library": "npm:0.25.28"
- "@walmart/backroom-mini-app": "npm:1.15.9"
+ "@walmart/backroom-mini-app": "npm:1.15.10"
"@walmart/calling-mini-app": "npm:0.8.11"
"@walmart/candidate-authentication-lib": "npm:0.0.8"
"@walmart/checkout-mini-app": "npm:4.17.0"
| fix: SVZPK-5166 Fix backroom annual inventory status check (#4715) | fix: SVZPK-5166 Fix backroom annual inventory status check (#4715)
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> |
63f0d9fdbabc15572797e555cbdb1e826b477ec6 | --- package.json
@@ -148,7 +148,7 @@
"@walmart/time-clock-mini-app": "2.353.0",
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch",
- "@walmart/welcomeme-mini-app": "0.93.0",
+ "@walmart/welcomeme-mini-app": "0.94.0",
"@walmart/wfm-ui": "0.8.7",
"@walmart/wm-plus-mini-app": "0.12.20",
"@walmart/wmconnect-mini-app": "1.1.6",
--- yarn.lock
@@ -7310,9 +7310,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/welcomeme-mini-app@npm:0.93.0":
- version: 0.93.0
- resolution: "@walmart/welcomeme-mini-app@npm:0.93.0"
+"@walmart/welcomeme-mini-app@npm:0.94.0":
+ version: 0.94.0
+ resolution: "@walmart/welcomeme-mini-app@npm:0.94.0"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -7320,7 +7320,7 @@ __metadata:
"@walmart/gtp-shared-components": ^2.0.0
react: ^18.2.0
react-native: ~0.70.5
- checksum: 10c0/76720618ef5331141930b72440d92542d618f8923dfbc97561bd09480e0b6caa33a1d34f456c0e8aad826ef1236296aa1f6b1c80a9e79dd06844a4b92f16a8f5
+ checksum: 10c0/0e43f0af8c487bfe5546c415a5c71e919c7d2d5f8d5ddde80dc39e21a860afa58bcb446669bfe11494268cc0848743d724bd67cda2a4e841e263f1ca7ff40129
languageName: node
linkType: hard
@@ -7788,7 +7788,7 @@ __metadata:
"@walmart/time-clock-mini-app": "npm:2.353.0"
"@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch"
- "@walmart/welcomeme-mini-app": "npm:0.93.0"
+ "@walmart/welcomeme-mini-app": "npm:0.94.0"
"@walmart/wfm-ui": "npm:0.8.7"
"@walmart/wm-plus-mini-app": "npm:0.12.20"
"@walmart/wmconnect-mini-app": "npm:1.1.6"
| feat: bumping package version as additional headers needed to be added | feat: bumping package version as additional headers needed to be added
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.