commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
15f3327a701b7707d4d3f0f1d8ea1a0c7db44888 | --- package-lock.json
@@ -66,7 +66,7 @@
"@walmart/metrics-mini-app": "0.15.14",
"@walmart/mod-flex-mini-app": "1.11.6",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/money-auth-shared-components": "0.0.2",
+ "@walmart/money-auth-shared-components": "0.0.3",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.10.15",
"@walmart/payrollsolution_miniapp": "0.131.15",
@@ -8820,9 +8820,9 @@
}
},
"node_modules/@walmart/money-auth-shared-components": {
- "version": "0.0.2",
- "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.2.tgz",
- "integrity": "sha512-Fjffkr8jkDC3UjkXsbf/A5TYj7jZdQeWyVHDuDpWE+tPvmtk+nfur0MVSgKthI/rwiSZTbakWtdgt5ClQLjCbw==",
+ "version": "0.0.3",
+ "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.3.tgz",
+ "integrity": "sha512-VrMuvjrq2Y/CZBJaIQxGnHx4ONoWWC06AyjjDghrJd7VvS/tj2Uw8OLbnm6MY7Qf9rZcoFwh+3Z5jzFJEAXoZQ==",
"hasInstallScript": true,
"dependencies": {
"crypto-js": "^3.3.0",
@@ -34458,9 +34458,9 @@
"version": "1.0.4"
},
"@walmart/money-auth-shared-components": {
- "version": "0.0.2",
- "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.2.tgz",
- "integrity": "sha512-Fjffkr8jkDC3UjkXsbf/A5TYj7jZdQeWyVHDuDpWE+tPvmtk+nfur0MVSgKthI/rwiSZTbakWtdgt5ClQLjCbw==",
+ "version": "0.0.3",
+ "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.3.tgz",
+ "integrity": "sha512-VrMuvjrq2Y/CZBJaIQxGnHx4ONoWWC06AyjjDghrJd7VvS/tj2Uw8OLbnm6MY7Qf9rZcoFwh+3Z5jzFJEAXoZQ==",
"requires": {
"crypto-js": "^3.3.0",
"react-native-drop-shadow": "^0.0.6"
--- package.json
@@ -107,7 +107,7 @@
"@walmart/metrics-mini-app": "0.15.14",
"@walmart/mod-flex-mini-app": "1.11.6",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/money-auth-shared-components": "0.0.2",
+ "@walmart/money-auth-shared-components": "0.0.3",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.10.15",
"@walmart/payrollsolution_miniapp": "0.131.15",
--- patches/@walmart+profile-feature-app+0.334.0.patch
@@ -0,0 +1,15 @@
+diff --git a/node_modules/@walmart/profile-feature-app/dist/components/DirectDepositTile/index.js b/node_modules/@walmart/profile-feature-app/dist/components/DirectDepositTile/index.js
+index 56231b3..32aba38 100644
+--- a/node_modules/@walmart/profile-feature-app/dist/components/DirectDepositTile/index.js
++++ b/node_modules/@walmart/profile-feature-app/dist/components/DirectDepositTile/index.js
+@@ -12,7 +12,9 @@ const DirectDepositTile = ({ marginRight }) => {
+ const { logEvent } = useProfileTelemetry();
+ const onDepositCardPress = () => {
+ logEvent('directDepositBtnTapped', {});
+- navigate('paymentselection');
++ navigation.navigate('paymentselection', {
++ screen: 'PaymentSelectionNav.PayMethodScreen'
++ });
+ };
+ return (<View style={[GlobalStyles.tileContainer, marginRight]}>
+ <TouchableOpacity testID={'Test.DirectDeposit.Button'} accessibilityLabel={t('depositCard.header')} accessibilityRole='button' onPress={onDepositCardPress} style={GlobalStyles.tile} activeOpacity={1}>
| bump version | bump version
|
0c59a77eb1011c2e003e6a46a33791ae3d860f60 | --- packages/allspark-foundation-hub/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.24.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.6...@walmart/allspark-foundation-hub@1.24.7) (2025-11-19)
+
+**Note:** Version bump only for package @walmart/allspark-foundation-hub
+
## [1.24.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.5...@walmart/allspark-foundation-hub@1.24.6) (2025-11-14)
**Note:** Version bump only for package @walmart/allspark-foundation-hub
--- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.24.6",
+ "version": "1.24.7",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/allspark-foundation/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.
+## [7.13.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.13.6...@walmart/allspark-foundation@7.13.7) (2025-11-19)
+
+### Bug Fixes
+
+- ALLSPARK-7238 fab edge case ([#494](https://gecgithub01.walmart.com/allspark/allspark/issues/494)) ([bf68a56](https://gecgithub01.walmart.com/allspark/allspark/commit/bf68a56d3881e7bc6f7972f95c42972ca35bf60c))
+
## [7.13.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.13.5...@walmart/allspark-foundation@7.13.6) (2025-11-14)
### Bug Fixes
--- packages/allspark-foundation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation",
- "version": "7.13.6",
+ "version": "7.13.7",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/me-at-walmart-geolocation/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.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.9...@walmart/me-at-walmart-geolocation@1.4.10) (2025-11-19)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
+
## [1.4.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.8...@walmart/me-at-walmart-geolocation@1.4.9) (2025-11-14)
**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
--- packages/me-at-walmart-geolocation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-geolocation",
- "version": "1.4.9",
+ "version": "1.4.10",
"description": "Geofencing, location tracking and location services for me@ apps",
"author": "m0n09mr <maksym.novakh@walmart.com>",
"main": "./lib/cjs/index.js",
--- packages/me-at-walmart-location/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.2.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.9...@walmart/me-at-walmart-location@1.2.10) (2025-11-19)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-location
+
## [1.2.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.8...@walmart/me-at-walmart-location@1.2.9) (2025-11-14)
**Note:** Version bump only for package @walmart/me-at-walmart-location
--- packages/me-at-walmart-location/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-location",
- "version": "1.2.9",
+ "version": "1.2.10",
"description": "Geofencing, location tracking and location services for me@ apps",
"author": "m0n09mr <maksym.novakh@walmart.com>",
"main": "./lib/cjs/index.js",
--- packages/my-walmart-hub/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.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.6...@walmart/my-walmart-hub@1.4.7) (2025-11-19)
+
+**Note:** Version bump only for package @walmart/my-walmart-hub
+
## [1.4.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.5...@walmart/my-walmart-hub@1.4.6) (2025-11-14)
**Note:** Version bump only for package @walmart/my-walmart-hub
--- packages/my-walmart-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/my-walmart-hub",
- "version": "1.4.6",
+ "version": "1.4.7",
"description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-foundation@7.13.7
- @walmart/allspark-foundation-hub@1.24.7
- @walmart/me-at-walmart-geolocation@1.4.10
- @walmart/me-at-walmart-location@1.2.10
- @walmart/my-walmart-hub@1.4.7
|
7820b3820d47f179fab3259c92ab14e376e45335 | --- package-lock.json
@@ -4343,9 +4343,9 @@
"integrity": "sha512-qJaaKPSs5rNbukmidrZoqqWylzPX1nos0NwavGpgMjfCIvRuAE83yxNgNMV2KNP8y42YfNhEQlMJ5dCnsg/vWw=="
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.106",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.106.tgz",
- "integrity": "sha512-L2I50EDzO5whSohxniEe2ZwOvah2YM5tg4JXAbTs2BXBe3xJdegfwKFbnEOm6KRZGVvKma6IUjtyhT+l0T/dSQ=="
+ "version": "0.5.107",
+ "resolved": "http://localhost:4873/@walmart%2fpush-to-talk-mini-app/-/push-to-talk-mini-app-0.5.107.tgz",
+ "integrity": "sha512-KjUIfjDRCWTziyTERQLMo876Ra1ywHT8yfagFnXMHn/P5bz/d2AHDP88lc9Ioy0NbA2VmIHj68l+9aEZOI5vSg=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -91,7 +91,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.101.0",
"@walmart/price-changes-mini-app": "1.0.6",
- "@walmart/push-to-talk-mini-app": "0.5.106",
+ "@walmart/push-to-talk-mini-app": "0.5.107",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| updating package version | updating package version
|
0f1e4f25441fff6ca75a99e2594deaf964308b05 | --- src/components/TeamList.tsx
@@ -73,6 +73,8 @@ const teamIconMap = {
'1000332': Images.stocking,
'1000123': Images.remodel,
'1000284': Images.home,
+ '1000343': Images.salesFloor,
+ '1111111': Images.management,
};
const TeamItem = (props: {
--- src/images/index.ts
@@ -22,4 +22,6 @@ export const Images = {
'wave-red': require('./siri-wave-red.png'),
'wave-yellow': require('./siri-wave-yellow.png'),
emptyTextMessages: require('./EmptyTextMessages.png'),
+ management: require('./teamIcons/TotalStore.png'),
+ salesFloor: require('./teamIcons/SalesFloor.png'),
};
--- src/images/teamIcons/SalesFloor.png
Binary files /dev/null and b/src/images/teamIcons/SalesFloor.png differ
--- src/components/TeamList.tsx
@@ -73,6 +73,8 @@ const teamIconMap = {
'1000332': Images.stocking,
'1000123': Images.remodel,
'1000284': Images.home,
+ '1000343': Images.salesFloor,
+ '1111111': Images.management,
};
const TeamItem = (props: {
--- src/images/index.ts
@@ -22,4 +22,6 @@ export const Images = {
'wave-red': require('./siri-wave-red.png'),
'wave-yellow': require('./siri-wave-yellow.png'),
emptyTextMessages: require('./EmptyTextMessages.png'),
+ management: require('./teamIcons/TotalStore.png'),
+ salesFloor: require('./teamIcons/SalesFloor.png'),
};
--- src/images/teamIcons/SalesFloor.png
Binary files /dev/null and b/src/images/teamIcons/SalesFloor.png differ
| update the management and salesfloor team image | update the management and salesfloor team image
|
b0bbd80fe76dd285ab891c5a52a044c9e3dca769 | --- __tests__/auth/ErrorScreenTest.tsx
@@ -102,6 +102,9 @@ describe('ErrorScreen', () => {
message: 'N/A',
userId: 'Encrypted-SWALTON3-1234',
siteId: '1234',
+ errorCategory: 'Store transfer issue',
+ otherQ1: [''],
+ otherQ2: '',
});
expect(interactionSpy).toHaveBeenCalled();
@@ -117,7 +120,10 @@ describe('ErrorScreen', () => {
mockUseState.mockReturnValueOnce(['1234', setSiteId]);
mockUseState.mockReturnValueOnce(['', setDetail]);
mockUseState.mockReturnValueOnce([false, setFormDirty]);
- mockUseState.mockReturnValueOnce(['', setErrorCategory]);
+ mockUseState.mockReturnValueOnce([
+ 'Store transfer issue',
+ setErrorCategory,
+ ]);
mockUseState.mockReturnValueOnce([[''], setselectedQ1Options]);
mockUseState.mockReturnValueOnce(['', setSelectedQ2Option]);
component.update(<ErrorScreen navigation={mockNavigation} />);
@@ -137,6 +143,9 @@ describe('ErrorScreen', () => {
message: 'no details entered by the user',
userId: 'Encrypted-SWALTON3-1234',
siteId: '1234',
+ errorCategory: 'Store transfer issue',
+ otherQ1: [''],
+ otherQ2: '',
});
expect(interactionSpy).toHaveBeenCalled();
| fix unit test failing | fix unit test failing
|
d42f9bf16a67087bb6ceeb7108d4c0335d7a7849 | --- packages/me-at-walmart-container/react-native.config.js
@@ -2,6 +2,7 @@ module.exports = {
dependencies: {
'@react-native-async-storage/async-storage': {},
'@react-native-community/netinfo': {},
+ '@react-native-firebase/app': {},
'@react-native-firebase/analytics': {},
'@react-native-firebase/crashlytics': {},
'@react-native-firebase/database': {},
| chore: add rn dependency | chore: add rn dependency
|
f62430b45610e86cb50204989ddee6135e17745e | --- packages/allspark-foundation/__tests__/GraphQL/links.test.ts
@@ -250,4 +250,6 @@ describe('DynamicLink', () => {
allsparkHttpLink.setOptions(newOptions);
expect(allsparkHttpLink.options).toEqual(newOptions);
});
- });
\ No newline at end of file
+ });
+
+
\ No newline at end of file
| code cleanup | code cleanup
|
7d37fc60e2a6911cd1c3f9f9a9201f19ba137771 | --- ios/Podfile.lock
@@ -424,7 +424,7 @@ PODS:
- React-Core
- react-native-wm-barcode (2.35.0):
- React
- - react-native-wm-voice-text (0.5.0):
+ - react-native-wm-voice-text (0.6.0):
- React
- React-perflogger (0.66.4)
- React-RCTActionSheet (0.66.4):
@@ -977,7 +977,7 @@ SPEC CHECKSUMS:
react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070
react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7
react-native-wm-barcode: d9cd05eb93e21a4cda7cff4f44bea383f70e61fe
- react-native-wm-voice-text: dcd2ab0e035ed425dc60e2eda85463b3602036e6
+ react-native-wm-voice-text: e41ea4227df3f52f3e2cab2f08fd89fbdcd02cfd
React-perflogger: 93075d8931c32cd1fce8a98c15d2d5ccc4d891bd
React-RCTActionSheet: 7d3041e6761b4f3044a37079ddcb156575fb6d89
React-RCTAnimation: 743e88b55ac62511ae5c2e22803d4f503f2a3a13
| update podfile | update podfile
|
6df2c713219d7b4563a9f2551f230195ccf21a1d | --- package-lock.json
@@ -4331,9 +4331,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.64",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.64.tgz",
- "integrity": "sha512-rq3+jtBa+uJCkLJdEUxFhGyZxtxWU43Lk96RbRVINwE+zAqcnd3cqSIcLFLHHxoc97BhWxrxPEoxOrzjnBmrJw=="
+ "version": "0.5.65",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.65.tgz",
+ "integrity": "sha512-C6982nGxyc4bQEh0QUzVJc1bMaZI0ns4E8RCmlz5f9iymR63EPvMT1WIgFL5ZUdlLkfQyC6qqwPPCUEGWt7BrA=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -88,7 +88,7 @@
"@walmart/manager-approvals-miniapp": "0.0.58",
"@walmart/metrics-mini-app": "0.4.14",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.5.64",
+ "@walmart/push-to-talk-mini-app": "0.5.65",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| bumping ptt mini app to 0.5.65 | bumping ptt mini app to 0.5.65
|
8a70e2e9a6f0d4dd7db7cd95ae93400c758211c3 | --- packages/allspark-app-auth/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.0.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-app-auth@1.8.2...@walmart/allspark-app-auth@2.0.3) (2022-10-19)
+
+**Note:** Version bump only for package @walmart/allspark-app-auth
+
+
+
+
+
## [1.8.2](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-app-auth@1.8.1...@walmart/allspark-app-auth@1.8.2) (2022-10-13)
**Note:** Version bump only for package @walmart/allspark-app-auth
--- packages/allspark-app-auth/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-app-auth",
- "version": "2.0.0",
+ "version": "2.0.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
--- packages/allspark-app-auth/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-app-auth",
- "version": "2.0.2",
+ "version": "2.0.3",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@@ -34,7 +34,7 @@
"@types/react": "~17.0.37",
"@types/react-native": "~0.67.4",
"@types/react-redux": "~7.1.9",
- "@walmart/allspark-foundation": "^2.0.2",
+ "@walmart/allspark-foundation": "^2.0.3",
"@walmart/react-native-encrypted-storage": "~1.1.12",
"react": "~17.0.2",
"react-native": "~0.67.4",
--- packages/allspark-foundation/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [2.0.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@2.0.2...@walmart/allspark-foundation@2.0.3) (2022-10-19)
+
+**Note:** Version bump only for package @walmart/allspark-foundation
+
+
+
+
+
## [2.0.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@2.0.1...@walmart/allspark-foundation@2.0.2) (2022-10-13)
**Note:** Version bump only for package @walmart/allspark-foundation
--- packages/allspark-foundation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation",
- "version": "2.0.2",
+ "version": "2.0.3",
"description": "",
"main": "index.js",
"types": "index.d.ts",
--- packages/allspark-http-client/CHANGELOG.md
@@ -0,0 +1,8 @@
+# Change Log
+
+All notable changes to this project will be documented in this file.
+See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+
+## 2.0.3 (2022-10-19)
+
+**Note:** Version bump only for package @walmart/allspark-http-client
--- packages/allspark-http-client/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "allspark-http-client",
- "version": "1.8.0",
+ "version": "2.0.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
--- packages/allspark-http-client/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-http-client",
- "version": "2.0.2",
+ "version": "2.0.3",
"description": "",
"author": "rlane1 <russell.lane@walmart.com>",
"license": "ISC",
--- packages/me-at-walmart-container/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.8.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/me-at-walmart-container@1.8.2...@walmart/me-at-walmart-container@1.8.3) (2022-10-19)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-container
+
+
+
+
+
## [1.8.2](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/me-at-walmart-container@1.8.1...@walmart/me-at-walmart-container@1.8.2) (2022-10-13)
**Note:** Version bump only for package @walmart/me-at-walmart-container
--- packages/me-at-walmart-container/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-container",
- "version": "1.8.2",
+ "version": "1.8.3",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@@ -92,12 +92,12 @@
"@types/react-native": "~0.67.4",
"@types/react-redux": "~7.1.9",
"@types/uuid": "~8.3.4",
- "@walmart/allspark-app-auth": "^2.0.0",
- "@walmart/allspark-foundation": "^2.0.2",
- "@walmart/allspark-http-client": "^2.0.0",
+ "@walmart/allspark-app-auth": "^2.0.3",
+ "@walmart/allspark-foundation": "^2.0.3",
+ "@walmart/allspark-http-client": "^2.0.3",
"@walmart/config-components": "3.0.3",
"@walmart/gtp-shared-components": "2.0.0-beta.7",
- "@walmart/me-at-walmart-foundation": "^1.8.2",
+ "@walmart/me-at-walmart-foundation": "^1.8.3",
"@walmart/react-native-encrypted-storage": "1.1.12",
"@walmart/react-native-logger": "1.29.0",
"@walmart/react-native-sumo-sdk": "2.2.2-beta.2",
--- packages/me-at-walmart-foundation/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [1.8.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-foundation@1.8.2...@walmart/me-at-walmart-foundation@1.8.3) (2022-10-19)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-foundation
+
+
+
+
+
## [1.8.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-foundation@1.8.1...@walmart/me-at-walmart-foundation@1.8.2) (2022-10-13)
**Note:** Version bump only for package @walmart/me-at-walmart-foundation
--- packages/me-at-walmart-foundation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-foundation",
- "version": "1.8.2",
+ "version": "1.8.3",
"description": "",
"author": "rlane1 <russell.lane@walmart.com>",
"homepage": "",
@@ -26,7 +26,7 @@
"clean": "rm -rf lib/ || true"
},
"devDependencies": {
- "@walmart/allspark-foundation": "^2.0.2"
+ "@walmart/allspark-foundation": "^2.0.3"
},
"peerDependencies": {
"@walmart/allspark-foundation": "~2.0.0"
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-app-auth@2.0.3
- @walmart/allspark-foundation@2.0.3
- @walmart/allspark-http-client@2.0.3
- @walmart/me-at-walmart-container@1.8.3
- @walmart/me-at-walmart-foundation@1.8.3
|
8000ec8af27f1c307520419b373366ef1ebf2fe8 | --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx
@@ -99,7 +99,7 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [
clockCheckEnabled: true,
},
{
- featureId: MINI_APPS.FEATURES_LANDING, //RECHECK
+ featureId: MINI_APPS.FEATURES_LANDING,
name: 'StoreFeatureOrders',
component: StoreFeatureOrdersMiniApp,
options: {
| ALLSPARK-4175: Removed comments | ALLSPARK-4175: Removed comments
|
a96d33be5d69d45d1f716959888d4aaadc11c7d3 | --- scripts/mini-app-scan/package-deprecation/scheduled-library-deprecation.json
@@ -208,6 +208,12 @@
"replacement": "@walmart/time-clock-feature-app and @walmart/timesheet-feature-app",
"enforcementDate": "2026-02-03",
"notes": "Use the replacements for all new development."
+ },
+ {
+ "legacyLibrary": "allspark-log-crypto",
+ "replacement": "",
+ "enforcementDate": "2025-12-16",
+ "notes": "Do not use this package as a part of dependency of MyWalmart"
}
]
| feat(ci): add allspark-log-crypto as a deprecated package (#5226) | feat(ci): add allspark-log-crypto as a deprecated package (#5226)
Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com> |
ad082353460dec043f3c1b2725b0dc863fc0587c | --- scripts/updateAndroidProjectConfig.sh
@@ -56,11 +56,11 @@ sed -i.bak -e "s/scheme=\"${BETA_PACKAGE}\"/scheme=\"${PACKAGE}\"/g" -e "s/schem
BUILD_CONFIG="${PACKAGE}.BuildConfig"
echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_APPLICATION}"
# sed -i.bak "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_APPLICATION} && rm ${MAIN_APPLICATION}.bak
-sed -i.bak -e 's/import ${BETA_BUILD_CONFIG};/import ${BUILD_CONFIG};/g' -e 's/import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/g' "${MAIN_APPLICATION}" && rm "${MAIN_APPLICATION}.bak"
+sed -E -i'' "s/import ${BETA_BUILD_CONFIG}|import ${PROD_BUILD_CONFIG}/import ${BUILD_CONFIG}/" ${MAIN_APPLICATION}
echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_ACTIVITY}"
# sed -i.bak "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_ACTIVITY} && rm ${MAIN_ACTIVITY}.bak
-sed -i.bak -e 's/import ${BETA_BUILD_CONFIG};/import ${BUILD_CONFIG};/g' -e 's/import\ ${PROD_BUILD_CONFIG};/import\ ${BUILD_CONFIG};/g' "${MAIN_ACTIVITY}" && rm "${MAIN_ACTIVITY}.bak"
+sed -E -i'' "s/import ${BETA_BUILD_CONFIG}|import ${PROD_BUILD_CONFIG}/import ${BUILD_CONFIG}/" ${MAIN_ACTIVITY}
echo "Updating CodePushDeploymentKey to ${CODE_PUSH_KEY} in ${STRINGS_XML}"
# sed -i.bak "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML} && rm ${STRINGS_XML}.bak
@@ -68,7 +68,7 @@ sed -i.bak -e "s/${DEV_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/g" -e "s/${BETA_CODE_PUSH
echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}"
# sed -i.bak "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS} && rm ${RN_CONFIG_JS}
-sed -i.bak -e 's/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/g' -e 's/android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/g' "${RN_CONFIG_JS}" && rm "${RN_CONFIG_JS}.bak"
+sed -E -i'' "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS}
echo "Printing ${MAIN_ACTIVITY}"
cat ${MAIN_ACTIVITY}
| Testing changes | Testing changes
|
3e4386322321da38ff7d9ca2d53e263c64a77883 | --- __tests__/sumo/SumoSagasTest.ts
@@ -38,7 +38,6 @@ import {
import {
getSumoCharged,
getSumoChargeError,
- getSumoCharging,
getSumoOptIn,
getSumoProfile,
SumoActionCreators,
@@ -48,6 +47,7 @@ import {
handleNotificationPermission,
chargeSumo,
waitForSumoCharge,
+ waitForSumoSuccess,
getPreHireProfile,
getAssociateProfile,
getProfileForUser,
@@ -169,34 +169,46 @@ describe('waitForSumoCharge', () => {
it('handles when already charged', () => {
const iterator = waitForSumoCharge();
expect(iterator.next().value).toEqual(select(getSumoCharged));
- expect(iterator.next(true).value).toEqual(select(getSumoCharging));
- expect(iterator.next(false).value).toEqual(select(getSumoChargeError));
+ expect(iterator.next(true).value).toEqual(select(getSumoChargeError));
expect(iterator.next(false).done).toEqual(true);
});
it('handles when not charged but has charge error', () => {
const iterator = waitForSumoCharge();
expect(iterator.next().value).toEqual(select(getSumoCharged));
- expect(iterator.next(false).value).toEqual(select(getSumoCharging));
expect(iterator.next(false).value).toEqual(select(getSumoChargeError));
expect(iterator.next(true).done).toEqual(true);
});
- it('handles when not charged and not charging', () => {
+ it('handles when not charged and no error', () => {
const iterator = waitForSumoCharge();
expect(iterator.next().value).toEqual(select(getSumoCharged));
- expect(iterator.next(false).value).toEqual(select(getSumoCharging));
expect(iterator.next(false).value).toEqual(select(getSumoChargeError));
expect(iterator.next(false).value).toEqual(fork(chargeSumo));
expect(iterator.next().value).toEqual(take(SumoTypes.CHARGE_SUCCESS));
expect(iterator.next().done).toEqual(true);
});
+});
- it('handles when not charged and charging', () => {
- const iterator = waitForSumoCharge();
+describe('waitForSumoSuccess', () => {
+ it('handles when already charged', () => {
+ const iterator = waitForSumoSuccess();
expect(iterator.next().value).toEqual(select(getSumoCharged));
- expect(iterator.next(false).value).toEqual(select(getSumoCharging));
expect(iterator.next(true).value).toEqual(select(getSumoChargeError));
+ expect(iterator.next(false).done).toEqual(true);
+ });
+
+ it('handles when not charged but has charge error', () => {
+ const iterator = waitForSumoSuccess();
+ expect(iterator.next().value).toEqual(select(getSumoCharged));
+ expect(iterator.next(false).value).toEqual(select(getSumoChargeError));
+ expect(iterator.next(true).done).toEqual(true);
+ });
+
+ it('handles when not charged and no error', () => {
+ const iterator = waitForSumoSuccess();
+ expect(iterator.next().value).toEqual(select(getSumoCharged));
+ expect(iterator.next(false).value).toEqual(select(getSumoChargeError));
expect(iterator.next(false).value).toEqual(take(SumoTypes.CHARGE_SUCCESS));
expect(iterator.next().done).toEqual(true);
});
@@ -485,7 +497,7 @@ describe('onTokenChanged', () => {
const token = '12355';
const iterator = onTokenChanged();
expect(iterator.next().value).toEqual(select(getAuthToken));
- expect(iterator.next(token).value).toEqual(call(waitForSumoCharge));
+ expect(iterator.next(token).value).toEqual(call(waitForSumoSuccess));
expect(iterator.next().value).toEqual(
call(WmNotification.setAuthToken, token),
);
--- src/sumo/SumoSagas.ts
@@ -49,7 +49,6 @@ import {
getSumoCharged,
getSumoOptIn,
getSumoProfile,
- getSumoCharging,
getSumoChargeError,
} from './SumoRedux';
import {NotificationRef} from './SumoEvents';
@@ -108,13 +107,19 @@ export function* chargeSumo(): any {
// If not charged, will pause execution until charge success or failure
export function* waitForSumoCharge(): any {
const charged: boolean = yield select(getSumoCharged);
- const charging: boolean = yield select(getSumoCharging);
const chargeError: string | null = yield select(getSumoChargeError);
if (!charged && !chargeError) {
- if (!charging) {
- yield fork(chargeSumo);
- }
+ yield fork(chargeSumo);
+ yield take(SumoTypes.CHARGE_SUCCESS);
+ }
+}
+
+export function* waitForSumoSuccess() {
+ const charged: boolean = yield select(getSumoCharged);
+ const chargeError: string | null = yield select(getSumoChargeError);
+
+ if (!charged && !chargeError) {
yield take(SumoTypes.CHARGE_SUCCESS);
}
}
@@ -258,7 +263,7 @@ export function* onUserChange() {
export function* onTokenChanged() {
const token: string = yield select(getAuthToken);
- yield call(waitForSumoCharge);
+ yield call(waitForSumoSuccess);
yield call(WmNotification.setAuthToken, token);
}
| Updating sagas | Updating sagas
|
e8f77490c997d50fdcbd0020b29aa9953b5d3c00 | --- package-lock.json
@@ -34,7 +34,7 @@
"@terrylinla/react-native-sketch-canvas": "0.8.0",
"@walmart/allspark-graphql-client": "^1.4.5",
"@walmart/allspark-neon-core": "0.1.31",
- "@walmart/amp-mini-app": "1.1.37",
+ "@walmart/amp-mini-app": "1.1.38",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.12.2",
"@walmart/attendance-mini-app": "0.190.2",
@@ -84,7 +84,7 @@
"@walmart/taskit-mini-app": "2.34.6",
"@walmart/time-clock-mini-app": "2.98.0",
"@walmart/topstock-mini-app": "1.0.6",
- "@walmart/ui-components": "1.15.0",
+ "@walmart/ui-components": "1.15.1",
"@walmart/welcomeme-mini-app": "0.77.0",
"@walmart/wfm-ui": "0.2.26",
"axios": "~1.2.6",
@@ -4792,9 +4792,9 @@
}
},
"node_modules/@walmart/amp-mini-app": {
- "version": "1.1.37",
- "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.37.tgz",
- "integrity": "sha512-PyR3MxE+6pwbWFJajubGKnlcYzkYZZwiKeGydC+SUAmnVWfQJj9aGJI0gDyFRInhNyfYcQjdznFYRM91TFRssA==",
+ "version": "1.1.38",
+ "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.38.tgz",
+ "integrity": "sha512-/grNiP+GMoiplxpOx5xjIRNQBzqWi2yF5nh6kRdW5rCox+NUo6PiMaTz6V7669KOwCTtMu7t8knVark1hKjGRw==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -6171,9 +6171,9 @@
}
},
"node_modules/@walmart/ui-components": {
- "version": "1.15.0",
- "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.15.0.tgz",
- "integrity": "sha512-ERJ9h1nCSe9MrUUhdtk4NI4cMC4rr+l4BnZTgAa+cbVmxiA50SzxFpURWQexElCf26OWixZzLI9aapL4dfD1mg==",
+ "version": "1.15.1",
+ "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.15.1.tgz",
+ "integrity": "sha512-BtcbrTmAgo6vAK41yeNWKp+2umQj2oSevilRWOrtC1W889EQgIfMb6eITdwjkEuYZCrKlZFRpT0uOUbMFsRflw==",
"license": "ISC",
"dependencies": {
"react-hook-form": "^7.33.1",
@@ -25118,9 +25118,9 @@
}
},
"@walmart/amp-mini-app": {
- "version": "1.1.37",
- "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.37.tgz",
- "integrity": "sha512-PyR3MxE+6pwbWFJajubGKnlcYzkYZZwiKeGydC+SUAmnVWfQJj9aGJI0gDyFRInhNyfYcQjdznFYRM91TFRssA=="
+ "version": "1.1.38",
+ "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.38.tgz",
+ "integrity": "sha512-/grNiP+GMoiplxpOx5xjIRNQBzqWi2yF5nh6kRdW5rCox+NUo6PiMaTz6V7669KOwCTtMu7t8knVark1hKjGRw=="
},
"@walmart/ask-sam-chat-components": {
"version": "0.2.13",
@@ -25511,9 +25511,9 @@
}
},
"@walmart/ui-components": {
- "version": "1.15.0",
- "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.15.0.tgz",
- "integrity": "sha512-ERJ9h1nCSe9MrUUhdtk4NI4cMC4rr+l4BnZTgAa+cbVmxiA50SzxFpURWQexElCf26OWixZzLI9aapL4dfD1mg==",
+ "version": "1.15.1",
+ "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.15.1.tgz",
+ "integrity": "sha512-BtcbrTmAgo6vAK41yeNWKp+2umQj2oSevilRWOrtC1W889EQgIfMb6eITdwjkEuYZCrKlZFRpT0uOUbMFsRflw==",
"requires": {
"react-hook-form": "^7.33.1",
"react-native-calendars": "^1.1291.0",
--- package.json
@@ -76,7 +76,7 @@
"@terrylinla/react-native-sketch-canvas": "0.8.0",
"@walmart/allspark-graphql-client": "^1.4.5",
"@walmart/allspark-neon-core": "0.1.31",
- "@walmart/amp-mini-app": "1.1.37",
+ "@walmart/amp-mini-app": "1.1.38",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.12.2",
"@walmart/attendance-mini-app": "0.190.2",
@@ -126,7 +126,7 @@
"@walmart/taskit-mini-app": "2.34.6",
"@walmart/time-clock-mini-app": "2.98.0",
"@walmart/topstock-mini-app": "1.0.6",
- "@walmart/ui-components": "1.15.0",
+ "@walmart/ui-components": "1.15.1",
"@walmart/welcomeme-mini-app": "0.77.0",
"@walmart/wfm-ui": "0.2.26",
"axios": "~1.2.6",
| Amp mini app version bump | Amp mini app version bump
|
3eb91a6cf6db14cb0c804ce3d286eb1b8ef124ad | --- android/app/src/main/AndroidManifest.xml
@@ -6,7 +6,9 @@
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
-
+ <uses-permission android:name="android.permission.RECORD_AUDIO"/>
+ <uses-permission android:name="android.permission.REQUEST_MICROPHONE"/>
+ <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<queries>
<package android:name="com.walmart.sso.app" />
| Adding request to access microphone setting for Learningminiapp | Adding request to access microphone setting for Learningminiapp
|
796b92ad5a560631715b1502c5a59ff8f08f4966 | --- packages/allspark-foundation-hub/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.22.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.22.1...@walmart/allspark-foundation-hub@1.22.2) (2025-11-10)
+
+**Note:** Version bump only for package @walmart/allspark-foundation-hub
+
## [1.22.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.22.0...@walmart/allspark-foundation-hub@1.22.1) (2025-11-10)
**Note:** Version bump only for package @walmart/allspark-foundation-hub
--- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.22.1",
+ "version": "1.22.2",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/allspark-foundation/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.
+# [7.13.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.12.1...@walmart/allspark-foundation@7.13.0) (2025-11-10)
+
+### Features
+
+- **v7:** header right ([#483](https://gecgithub01.walmart.com/allspark/allspark/issues/483)) ([e701f45](https://gecgithub01.walmart.com/allspark/allspark/commit/e701f4517cd915d3263733680b967a80677d690a))
+
## [7.12.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.12.0...@walmart/allspark-foundation@7.12.1) (2025-11-10)
**Note:** Version bump only for package @walmart/allspark-foundation
--- packages/allspark-foundation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation",
- "version": "7.12.1",
+ "version": "7.13.0",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/me-at-walmart-geolocation/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.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.2...@walmart/me-at-walmart-geolocation@1.4.3) (2025-11-10)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
+
## [1.4.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.1...@walmart/me-at-walmart-geolocation@1.4.2) (2025-11-10)
**Note:** Version bump only for package @walmart/me-at-walmart-geolocation
--- packages/me-at-walmart-geolocation/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-geolocation",
- "version": "1.4.2",
+ "version": "1.4.3",
"description": "Geofencing, location tracking and location services for me@ apps",
"author": "m0n09mr <maksym.novakh@walmart.com>",
"main": "./lib/cjs/index.js",
--- packages/me-at-walmart-location/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.2.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.2...@walmart/me-at-walmart-location@1.2.3) (2025-11-10)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-location
+
## [1.2.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.1...@walmart/me-at-walmart-location@1.2.2) (2025-11-10)
**Note:** Version bump only for package @walmart/me-at-walmart-location
--- packages/me-at-walmart-location/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-location",
- "version": "1.2.2",
+ "version": "1.2.3",
"description": "Geofencing, location tracking and location services for me@ apps",
"author": "m0n09mr <maksym.novakh@walmart.com>",
"main": "./lib/cjs/index.js",
--- packages/my-walmart-hub/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.3.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.3.0...@walmart/my-walmart-hub@1.3.1) (2025-11-10)
+
+**Note:** Version bump only for package @walmart/my-walmart-hub
+
# [1.3.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.2.1...@walmart/my-walmart-hub@1.3.0) (2025-11-10)
### Features
--- packages/my-walmart-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/my-walmart-hub",
- "version": "1.3.0",
+ "version": "1.3.1",
"description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/allspark-foundation@7.13.0
- @walmart/allspark-foundation-hub@1.22.2
- @walmart/me-at-walmart-geolocation@1.4.3
- @walmart/me-at-walmart-location@1.2.3
- @walmart/my-walmart-hub@1.3.1
|
91f702dcec793ca8a7bb5e4bfc6195799659d401 | --- __tests__/auth/ErrorScreenTest.tsx
@@ -265,6 +265,29 @@ describe('ErrorScreen', () => {
expect(setDetail).toHaveBeenCalledWith('999');
});
+ it('handle error for WmConfig getValue parsing', () => {
+ (WmConfig.getValue as jest.Mock).mockReturnValue({
+ asString: jest.fn().mockReturnValue(defaultConfig),
+ });
+ mockUseState.mockReturnValueOnce(['swalton3', setUserId]);
+ mockUseState.mockReturnValueOnce(['1234', setSiteId]);
+ mockUseState.mockReturnValueOnce(['N/A', setDetail]);
+ mockUseState.mockReturnValueOnce([true, setFormDirty]);
+ mockUseState.mockReturnValueOnce(['', setErrorCategory]);
+ mockUseState.mockReturnValueOnce([
+ defaultConfig.issues,
+ setErrorCategoriesFb,
+ ]);
+ mockUseState.mockReturnValueOnce([
+ defaultConfig.otherIssues,
+ setOtherErrorFb,
+ ]);
+ mockUseState.mockReturnValueOnce([{}, setSelectedOther]);
+ component.update(<ErrorScreen navigation={mockNavigation} />);
+
+ expect(setErrorCategoriesFb.length).toBe(0);
+ });
+
it('matches snapshot when dirty and no userId/siteId', () => {
mockUseState.mockReturnValueOnce(['', setUserId]);
mockUseState.mockReturnValueOnce(['', setSiteId]);
| unit test for wmConfig error | unit test for wmConfig error
|
c3970d8d8e1f72b3131424628022377bdc49e7d8 | --- .looper-pr.yml
@@ -31,4 +31,3 @@ envs:
-
| feat(ui): update looper yml #SMDV-9999 | feat(ui): update looper yml #SMDV-9999
|
4033aadebf0c5114b7d46d0800ecc04ce16c14d7 | --- packages/allspark-foundation/__tests__/Clock/connect.test.ts
@@ -26,12 +26,80 @@ jest.mock('../../src/Redux', () => ({
},
}));
-describe('connectClockService', () => {
- test('should connect state changes to Redux actions', () => {
- connectClockService(mockClockService).addChangeListener(() => {});
+describe('Clock/connect.ts', () => {
+ describe('initialize', () => {
+ test('should dispatch INIT_PROGRESS, INIT_SUCCESS on successful initialization', async () => {
+ const mockInitialized = true;
- expect(
- connectClockService(mockClockService).addChangeListener
- ).toHaveBeenCalled();
+ (mockClockService.initialize as jest.Mock).mockResolvedValue(
+ mockInitialized
+ );
+
+ await initialize.call(mockClockService);
+
+ expect(AllsparkReduxStore.dispatch).toHaveBeenCalledWith(
+ ClockActionCreators.INIT_PROGRESS()
+ );
+ expect(AllsparkReduxStore.dispatch).toHaveBeenCalledWith(
+ ClockActionCreators.INIT_SUCCESS()
+ );
+ });
+
+ test('should dispatch INIT_PROGRESS, INIT_ERROR on failed initialization', async () => {
+ const error = new Error('Initialization error');
+
+ (mockClockService.initialize as jest.Mock).mockRejectedValue(error);
+
+ await expect(initialize.call(mockClockService)).rejects.toThrow(error);
+
+ expect(AllsparkReduxStore.dispatch).toHaveBeenCalledWith(
+ ClockActionCreators.INIT_PROGRESS()
+ );
+ expect(AllsparkReduxStore.dispatch).toHaveBeenCalledWith(
+ ClockActionCreators.INIT_ERROR()
+ );
+ });
+ });
+
+ describe('fetch', () => {
+ test('should dispatch FETCH_PROGRESS, FETCH_SUCCESS on successful fetch', async () => {
+ const mockData = {} as ClockData;
+
+ (mockClockService.fetch as jest.Mock).mockResolvedValue(mockData);
+
+ await fetch.call(mockClockService);
+
+ expect(AllsparkReduxStore.dispatch).toHaveBeenCalledWith(
+ ClockActionCreators.FETCH_PROGRESS()
+ );
+ expect(AllsparkReduxStore.dispatch).toHaveBeenCalledWith(
+ ClockActionCreators.FETCH_SUCCESS(mockData)
+ );
+ });
+
+ test('should dispatch FETCH_PROGRESS, FETCH_ERROR on failed fetch', async () => {
+ const error = new Error('Fetch error');
+
+ (mockClockService.fetch as jest.Mock).mockRejectedValue(error);
+
+ await expect(fetch.call(mockClockService)).rejects.toThrow(error);
+
+ expect(AllsparkReduxStore.dispatch).toHaveBeenCalledWith(
+ ClockActionCreators.FETCH_PROGRESS()
+ );
+ expect(AllsparkReduxStore.dispatch).toHaveBeenCalledWith(
+ ClockActionCreators.FETCH_ERROR()
+ );
+ });
+ });
+
+ describe('connectClockService', () => {
+ test('should connect state changes to Redux actions', () => {
+ connectClockService(mockClockService).addChangeListener(() => {});
+
+ expect(
+ connectClockService(mockClockService).addChangeListener
+ ).toHaveBeenCalled();
+ });
});
});
| test setup | test setup
|
1f6bbe0437ee82dee8d4a5716375348d505394ab | --- __tests__/screens/SearchScreen/SearchScreenTest.tsx
@@ -106,7 +106,6 @@ describe('SearchScreen', () => {
});
it('should show no results if associate name or job description does not exist', () => {
- //TODO
const mockObject = {
firstName: '',
};
| Removing extra TODO | Removing extra TODO |
011110ae11c9ca134aa34b65495afeec0abe6f87 | --- docs/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [2.37.1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.37.0...v2.37.1) (2025-06-02)
+
+
+### Bug Fixes
+
+* **ui:** update user initials avatar ([c28c900](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c28c9001f33b29309e0691d6a6c463cf6f28237e))
+
# [2.37.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.36.3...v2.37.0) (2025-05-29)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/wmconnect-mini-app",
- "version": "2.37.0",
+ "version": "2.37.1",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 2.37.1 [skip ci] | chore(release): 2.37.1 [skip ci]
## [2.37.1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.37.0...v2.37.1) (2025-06-02)
### Bug Fixes
* **ui:** update user initials avatar ([c28c900](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c28c9001f33b29309e0691d6a6c463cf6f28237e))
|
360efa06dac294c0539fa18cb29fbb62b521e240 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "3.6.0",
+ "version": "3.6.1",
"main": "dist/index.js",
"files": [
"dist",
@@ -88,9 +88,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.0",
+ "@walmart/roster-mini-app": "3.8.1",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "3.7.0",
+ "@walmart/wmconnect-mini-app": "3.7.1",
"babel-jest": "^29.6.3",
"chance": "^1.1.11",
"crypto-js": "~4.2.0",
| feat(ada): update versions | feat(ada): update versions
|
00868ccd6679478363514746f2ccba11b97fa286 | --- src/components/ActionButton/ClockStatusIndicator.tsx
@@ -3,6 +3,8 @@ import {StyleProp, StyleSheet, TextStyle, View, ViewStyle} from 'react-native';
import {Body, colors} from '@walmart/gtp-shared-components';
import {useTranslation} from 'react-i18next';
import {ROSTER_I18N_NAMESPACE} from '../../translations';
+import {useSelector} from 'react-redux';
+import {displayClockIndicator} from '../../redux/selectors';
const styles = StyleSheet.create({
indicatorRow: {
@@ -44,7 +46,8 @@ export const ClockStatusIndicator = ({
textStyle,
}: PresenceIndicatorProps) => {
const {t} = useTranslation([ROSTER_I18N_NAMESPACE]);
- return (
+ const showAssociateClockStatus = useSelector(displayClockIndicator);
+ return showAssociateClockStatus ? (
<View style={[styles.indicatorRow, style]}>
{showIndicator && (
<View
@@ -60,5 +63,7 @@ export const ClockStatusIndicator = ({
</Body>
)}
</View>
+ ) : (
+ <></>
);
};
--- src/components/Roster/AssociateListItem.tsx
@@ -26,7 +26,12 @@ import {goToIndividualSchedule} from '../../navigation/utils';
import {StatusChip} from '../StatusChip';
import {isNil} from 'lodash';
import {ClockStatusIndicator} from '../ActionButton/ClockStatusIndicator';
-import {getEncryptedUserId} from '../../redux/selectors';
+import {
+ displayHourlySchedule,
+ displayJobDescription,
+ displayManagerSchedule,
+ getEncryptedUserId,
+} from '../../redux/selectors';
import {Associate, WFMSchedule} from '../../types';
interface AssociateListItemProps {
@@ -61,6 +66,9 @@ export const AssociateListItem: React.FC<AssociateListItemProps> = React.memo(
const encryptedId = encryptUserId(associate?.win?.toString() ?? '');
const viewerId = useSelector(getEncryptedUserId);
const participants: string[] = [viewerId, encryptedId];
+ const showJobDescription = useSelector(displayJobDescription);
+ const showHourlySchedule = useSelector(displayHourlySchedule);
+ const showManagerSchedule = useSelector(displayManagerSchedule);
const associateName = namecase(
associateDisplayName(associate).slice(0, 20),
@@ -123,10 +131,12 @@ export const AssociateListItem: React.FC<AssociateListItemProps> = React.memo(
)}
</>
}>
- <Body weight='400' size='small' numberOfLines={1}>
- {namecase(associate?.jobCategoryCodeDesc)}
- </Body>
- {isWfmScheduleValid ? (
+ {showJobDescription && (
+ <Body weight='400' size='small' numberOfLines={1}>
+ {namecase(associate?.jobCategoryCodeDesc)}
+ </Body>
+ )}
+ {showManagerSchedule && isWfmScheduleValid ? (
<Body weight='400' size='small' numberOfLines={1}>
{namecase(
formatSchedule(
@@ -138,6 +148,7 @@ export const AssociateListItem: React.FC<AssociateListItemProps> = React.memo(
)}
</Body>
) : (
+ showHourlySchedule &&
isStoreScheduleValid && (
<Body weight='400' size='small' numberOfLines={1}>
{namecase(formatSchedule(associate?.storeSchedule))}
--- src/screens/RosterScreen.tsx
@@ -6,6 +6,7 @@ import {ROSTER_I18N_NAMESPACE} from '../translations';
import {useTranslation} from 'react-i18next';
import {useSelector} from 'react-redux';
import {SiteSelectors} from '@walmart/redux-store';
+import {displayRoster} from '../redux/selectors';
export const styles = StyleSheet.create({
container: {flex: 1},
@@ -14,7 +15,8 @@ export const styles = StyleSheet.create({
export const RosterScreen: React.FC<any> = () => {
const {t} = useTranslation([ROSTER_I18N_NAMESPACE]);
const storeId: string = useSelector(SiteSelectors.getUserWorkingSite);
- return (
+ const showRoster = useSelector(displayRoster);
+ return showRoster ? (
<View style={styles.container}>
<Roster
associateActionButtons={[
@@ -27,5 +29,7 @@ export const RosterScreen: React.FC<any> = () => {
]}
/>
</View>
+ ) : (
+ <></>
);
};
--- src/services/config.ts
@@ -9,7 +9,7 @@ export const getGraphQLConfig = (envConfig: EnvConfig) => {
//envConfig.consumerId, // temporary until onboarded with athena
'wm_consumer.id':
envConfig.env === 'prod'
- ? 'cfac4a3d-ae91-43c8-81f5-ceb838e4cd44'
+ ? '7d935f1c-b438-4b89-9324-83a5380acf75'
: '1bfc1d19-903b-438b-be7e-b0733aade46b',
'x-o-platform': 'roster-miniapp',
'x-o-platform-version': miniAppPackage?.version || '2.x.x',
| Update new fields for feature flag | Update new fields for feature flag
|
f2fd534dfe14e6695c3fba30c6c542c195da40de | --- src/hooks/useRefreshing.tsx
@@ -0,0 +1,42 @@
+import { useRef, useState } from 'react';
+import moment from 'moment-timezone';
+
+export const useRefreshing = (timeout = 3500) => {
+ const lastUpdatedTimeout = useRef<any>();
+
+ const [state, setState] = useState<{
+ refreshTime: number;
+ refreshing: boolean;
+ lastRefresh: string;
+ }>({
+ refreshTime: Date.now(),
+ refreshing: false,
+ lastRefresh: '',
+ });
+
+ const stopRefresh = () =>
+ setState((prev) => ({
+ ...prev,
+ refreshing: false,
+ }));
+
+ const startRefresh = () => {
+ setState((prev) => ({
+ ...prev,
+ refreshTime: Date.now(),
+ refreshing: true,
+ lastRefresh: `today at ${moment().format('h:mma')}`,
+ }));
+
+ clearTimeout(lastUpdatedTimeout.current);
+ lastUpdatedTimeout.current = setTimeout(stopRefresh, timeout);
+ };
+
+ return {
+ refreshTimestamp: state.refreshTime,
+ refreshing: state.refreshing,
+ lastRefresh: state.lastRefresh,
+ startRefresh,
+ stopRefresh
+ };
+}
| feat(refreshing): add refreshing hook to easily reuse refreshing state and callbacks | feat(refreshing): add refreshing hook to easily reuse refreshing state and callbacks
|
f08938cbe02dfb7acfca3de550dda4976484eb74 | --- package.json
@@ -89,7 +89,7 @@
"@walmart/react-native-scanner-3.0": "0.10.4",
"@walmart/react-native-sumo-sdk": "2.8.0",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "3.2.0",
+ "@walmart/wmconnect-mini-app": "3.3.0",
"babel-jest": "^29.6.3",
"chance": "^1.1.11",
"crypto-js": "~4.2.0",
--- yarn.lock
@@ -6368,7 +6368,7 @@ __metadata:
"@walmart/react-native-scanner-3.0": "npm:0.10.4"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
"@walmart/ui-components": "npm:1.15.1"
- "@walmart/wmconnect-mini-app": "npm:3.2.0"
+ "@walmart/wmconnect-mini-app": "npm:3.3.0"
babel-jest: "npm:^29.6.3"
chance: "npm:^1.1.11"
crypto-js: "npm:~4.2.0"
@@ -6451,9 +6451,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:3.2.0":
- version: 3.2.0
- resolution: "@walmart/wmconnect-mini-app@npm:3.2.0::__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.2.0.tgz"
+"@walmart/wmconnect-mini-app@npm:3.3.0":
+ version: 3.3.0
+ resolution: "@walmart/wmconnect-mini-app@npm:3.3.0::__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.3.0.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=6.32.0"
expo: ~52.0.46
@@ -6464,7 +6464,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/4498eb836e4cd74becc4197781a8e2d245acb7b0204c0058ca5c27ea45ba2a18a076a26eb54def2413e3e1b831f656bc7eb37321d6b6b2e3a62b82da8003bfb6
+ checksum: 10c0/6f57b3104f8afc28285a852cddd1527211fcc5b89674febe071aa08419c704262c2cac330ea82dda1a51958bdc25aabee2cef502a60b3d70fbda340d1416bcd4
languageName: node
linkType: hard
| feat(ui): updating new version for drop 33 | feat(ui): updating new version for drop 33
|
bb71e88cdf7d61b80a46328cea00e69d7c7ffa47 | --- targets/US/package.json
@@ -147,7 +147,7 @@
"@walmart/shop-gnfr-mini-app": "1.0.137",
"@walmart/sidekick-mini-app": "4.84.9",
"@walmart/store-feature-orders": "1.27.1",
- "@walmart/taskit-mini-app": "4.25.6",
+ "@walmart/taskit-mini-app": "4.25.8",
"@walmart/time-clock-mini-app": "2.419.0",
"@walmart/topstock-mini-app": "1.17.11",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch",
--- yarn.lock
@@ -7054,7 +7054,7 @@ __metadata:
"@walmart/shop-gnfr-mini-app": "npm:1.0.137"
"@walmart/sidekick-mini-app": "npm:4.84.9"
"@walmart/store-feature-orders": "npm:1.27.1"
- "@walmart/taskit-mini-app": "npm:4.25.6"
+ "@walmart/taskit-mini-app": "npm:4.25.8"
"@walmart/time-clock-mini-app": "npm:2.419.0"
"@walmart/topstock-mini-app": "npm:1.17.11"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch"
@@ -7973,12 +7973,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/taskit-mini-app@npm:4.25.6":
- version: 4.25.6
- resolution: "@walmart/taskit-mini-app@npm:4.25.6"
+"@walmart/taskit-mini-app@npm:4.25.8":
+ version: 4.25.8
+ resolution: "@walmart/taskit-mini-app@npm:4.25.8"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/df65ffccadc82898b1ad1889c4fd7f8fb5d4629fc63b7de4e4a8d2b52a8ee79ea9ec6cda3326afb8b5d3d4636008d689584f6f389169364e40128b0bc53d3ad4
+ checksum: 10c0/b5ea688cb94c9a6c55e73f7fbc5415550dd46a576e227749d60622e5f1f47075854a5799f9694cf254c42856a61913707fbfdaeead3f14d2ea3a81613e4bf21f
languageName: node
linkType: hard
| chore: bump taskit version | chore: bump taskit version
|
82f75f9297da933041db74780dc512274c14fb62 | --- packages/celebration-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.26.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.25.2...@walmart/celebration-mini-app@1.26.0) (2025-11-13)
+
+### Features
+
+- **ui:** update celebration api ([84e385e](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/84e385ea101d7c763488cffc2f1dd9f8db76a651))
+
## [1.25.2](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.25.1...@walmart/celebration-mini-app@1.25.2) (2025-11-12)
### Bug Fixes
--- packages/celebration-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/celebration-mini-app",
- "version": "1.25.2",
+ "version": "1.26.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
| chore(version): updating package version | chore(version): updating package version
- @walmart/celebration-mini-app@1.26.0
|
d86fa93c4c0907ff6a75f4c46a89161f736c47c0 | --- packages/allspark-foundation-hub/src/HubFeature/Images/images.tsx
@@ -149,4 +149,12 @@ export const OnboardingImages = {
uri: 'https://i5-me.walmartimages.com/images/teams/team-onboarding-mgr-exp-228277d75b.png',
placeholder: 'KrJuo_NG?wSgodag?aWC$x',
},
+ teamOnboarding_centralized_info: {
+ uri: 'https://i5-me.walmartimages.com/images/managerexperience/team-onboarding-2-mgr-exp-904cfe7537.png',
+ placeholder: 'K7O|z~?c~T?cj[j[~Tj[WC',
+ },
+ teamOnboarding_insights: {
+ uri: 'https://i5-me.walmartimages.com/images/managerexperience/team-onboarding-1-mgr-exp-0d52f43161.png',
+ placeholder: 'KeQTJ?t7~Ut7fRRk-nj[R*',
+ },
};
--- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamOnboarding/Component/TeamOnboarding.tsx
@@ -27,7 +27,7 @@ export const TeamOnboarding = ({
buttonIsDisabled = false,
handlePressButton,
}: TeamOnboardingScreenProps) => {
- const TeamImage = useAllsparkImage();
+ const AllsparkImage = useAllsparkImage();
const logger = LoggerService.getContainerInstance();
const telemetryService = useTelemetryService();
const scrollPosition = useRef(new Animated.Value(0)).current;
@@ -57,7 +57,7 @@ export const TeamOnboarding = ({
style={styles.teamOnboardingViewContainer}
>
<View style={styles.imageContainer}>
- <TeamImage
+ <AllsparkImage
source={{ uri: Images.teamOnboarding.uri }}
placeholder={Images.teamOnboarding.placeholder}
style={styles.imageSize}
--- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamOnboarding/Component/TeamOnboardingCard.tsx
@@ -1,27 +1,44 @@
import React from 'react';
import { View, Text } from 'react-native';
import { teamOnboardingCardStyles as styles } from './styles';
-import { useAllsparkComponent } from '@walmart/allspark-foundation/Components/context';
+import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context';
+import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry';
+import { LoggerService } from '@walmart/allspark-foundation/Logger';
+
export interface TeamOnboardingCardInfo {
icon: string;
+ placeholder: string;
title: string | undefined;
description: string | undefined;
}
export const TeamOnboardingCard = ({
icon,
+ placeholder,
title,
description,
}: TeamOnboardingCardInfo) => {
- const Image = useAllsparkComponent('Image');
+ const logger = LoggerService.getContainerInstance();
+ const telemetryService = useTelemetryService();
+ const AllsparkImage = useAllsparkImage();
return (
<View accessible style={styles.container}>
<View style={styles.circleImage}>
- <Image
+ <AllsparkImage
source={{
uri: icon,
}}
style={styles.circleImageImg}
+ placeholder={placeholder}
+ resizeMode='contain'
+ onError={(err) => {
+ logger.error('ImageFailure', {
+ message: `Image failure ${err}`,
+ });
+ telemetryService.logEvent('image_uri_failure', {
+ message: 'Image failure',
+ });
+ }}
/>
</View>
<View style={styles.content}>
--- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamOnboarding/Component/TeamOnboardingCards.tsx
@@ -22,6 +22,7 @@ export const TeamOnboardingCards = ({ cards }: TeamOnboardingCardProps) => {
<TeamOnboardingCard
key={item.title}
icon={item.icon}
+ placeholder={item.placeholder}
title={item.title}
description={item.description}
/>
--- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamOnboarding/Component/styles.ts
@@ -48,8 +48,7 @@ export const teamOnboardingCardStyles = StyleSheet.create({
backgroundColor: colors.blue['10'],
},
circleImageImg: {
- width: '100%',
+ width: '50%',
height: '100%',
- resizeMode: 'cover',
},
});
--- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamOnboarding/Screens/TeamOnboardingScreen.tsx
@@ -5,6 +5,7 @@ import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation
import { FEATURE_ID } from '../../../constant';
import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry';
import { LoggerService } from '@walmart/allspark-foundation/Logger';
+import { OnboardingImages } from '../../../Images/images';
export const TeamOnboardingScreen = () => {
const { t } = useAllsparkTranslation(FEATURE_ID);
@@ -19,10 +20,10 @@ export const TeamOnboardingScreen = () => {
});
AllsparkNavigationClient.navigate('managerExperience.teamSelection');
};
- //TODO: upload actual png images to cdn and update the urls
const teamOnboardingCardsData = [
{
- icon: 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png',
+ icon: OnboardingImages.teamOnboarding_centralized_info.uri,
+ placeholder: OnboardingImages.teamOnboarding_centralized_info.placeholder,
title: t('teamOnboarding.teamOnboardingCardsData.firstCard.title', {
defaultValue: 'Centralized information',
fallbackLng: 'en-US',
@@ -37,7 +38,8 @@ export const TeamOnboardingScreen = () => {
),
},
{
- icon: 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png',
+ icon: OnboardingImages.teamOnboarding_insights.uri,
+ placeholder: OnboardingImages.teamOnboarding_insights.placeholder,
title: t('teamOnboarding.teamOnboardingCardsData.secondCard.title', {
defaultValue: 'Insights and recommended actions',
fallbackLng: 'en-US',
| Update image for onboarding screen | Update image for onboarding screen
|
95c97c505f06d39e4e4e4a657f9c42674e824beb | --- package.json
@@ -56,7 +56,7 @@
"@walmart/schedule-mini-app": "0.2.21",
"@walmart/settings-mini-app": "1.1.5",
"@walmart/time-clock-mini-app": "0.0.16",
- "@walmart/ui-components": "^1.0.75",
+ "@walmart/ui-components": "^1.0.77",
"i18next": "^19.7.0",
"intl": "^1.2.5",
"lodash": "^4.17.20",
@@ -104,7 +104,9 @@
"reselect": "^4.0.0",
"rn-fetch-blob": "^0.12.0",
"seamless-immutable": "^7.1.4",
- "victory-native": "^35.0.1"
+ "victory-native": "^35.0.1",
+ "@walmart/inbox-mini-app":"0.0.11",
+ "javascript-time-ago": "^2.3.3"
},
"devDependencies": {
"@babel/core": "^7.8.4",
--- src/navigation/Navigation.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import {View, Text, TouchableOpacity, StyleProp, ViewStyle} from 'react-native';
+import {TouchableOpacity} from 'react-native';
import {useTranslation} from 'react-i18next';
import {
DrawerActions,
@@ -15,7 +15,7 @@ import {TimeClockScreen, NewTorScreen} 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';
-
+import InboxMiniApp from '@walmart/inbox-mini-app';
import {
PushToTalkMiniApp,
Components,
@@ -35,18 +35,6 @@ import WmTelemetry from 'react-native-wm-telemetry';
import appJson from '../../app.json';
-// TODO - this is temporary and should be removed once all nav content is filled in
-const placeholderStyle: StyleProp<ViewStyle> = {
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
-};
-const ContentPlaceholder = (name: string) => () => (
- <View style={placeholderStyle}>
- <Text>{name} Placeholder</Text>
- </View>
-);
-
const MainTabs = createBottomTabNavigator();
const MainTabsNav = () => {
@@ -91,7 +79,7 @@ const MainTabsNav = () => {
/>
<MainTabs.Screen
name='inbox'
- component={ContentPlaceholder('Inbox')}
+ component={InboxMiniApp}
options={{
title: translate('navigation.inbox'),
tabBarAccessibilityLabel: 'inbox',
| Add inbox initial version (#149) | Add inbox initial version (#149)
* Add inbox initial version
* Update inbox mini app version
* Update Inbox mini app version, add javascript-time-ago nnpm
* lint fix
* Update inbox package version
* Update inbox package version0.0.7
* Update inbox package version 0.0.10
* inbox version upgraded to 0.0.11 - VQA done
Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com> |
8901f05e8945eec49ffdf7463dbd9031c10ef96a | --- .looper.codepush.yml
@@ -15,13 +15,13 @@ branches:
triggers:
- manual:
name: release staging - Click only once
- call: release staging
+ call: release
flows:
default:
- call: pr
- upload:
+ release:
- npm install
- echo $APPCENTER_API_TOKEN_ANDROID
- shell: |
| updated flow | updated flow
|
83f87c3167bb5914a5c325cc4957f044c9dd2c0b | --- package.json
@@ -145,7 +145,7 @@
"@walmart/returns-mini-app": "4.17.4",
"@walmart/rfid-scan-mini-app": "2.10.4",
"@walmart/rn-mobile-sdk-pairing": "2.1.8",
- "@walmart/rn-receiving-mini-app": "2.4.97",
+ "@walmart/rn-receiving-mini-app": "2.4.101",
"@walmart/roster-mini-app": "3.3.0",
"@walmart/schedule-mini-app": "2.2.1",
"@walmart/shelfavailability-mini-app": "1.5.45",
--- yarn.lock
@@ -7409,9 +7409,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/loadquality-mini-app@npm:2.0.23":
- version: 2.0.23
- resolution: "@walmart/loadquality-mini-app@npm:2.0.23::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Floadquality-mini-app%2F-%2F%40walmart%2Floadquality-mini-app-2.0.23.tgz"
+"@walmart/loadquality-mini-app@npm:2.0.26":
+ version: 2.0.26
+ resolution: "@walmart/loadquality-mini-app@npm:2.0.26::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Floadquality-mini-app%2F-%2F%40walmart%2Floadquality-mini-app-2.0.26.tgz"
peerDependencies:
"@react-native-clipboard/clipboard": ">=1.10.0"
"@react-native/metro-config": ">=0.73.0"
@@ -7440,7 +7440,7 @@ __metadata:
react-native-svg: ">=14.0.0"
react-native-svg-transformer: ">=1.3.0"
react-native-vision-camera: "*"
- checksum: 10c0/4c04fbb741c7eaa0e95399662aa4d00656f609153de85229cd1f5883049c7d5a574f326b73badcb1defa69c059b9bedb2ad5a8a75abcc243a4a7cf81f81e8234
+ checksum: 10c0/45560c6f285e3cfd977437948173dc6fe6b1b2d21b5b2b19182c7dd2501d1da07133afeb6bad723404bb3432d8994e05b2ce8d70e1bbf4b50fbeb9a9783c51f0
languageName: node
linkType: hard
@@ -7657,7 +7657,7 @@ __metadata:
"@walmart/returns-mini-app": "npm:4.17.4"
"@walmart/rfid-scan-mini-app": "npm:2.10.4"
"@walmart/rn-mobile-sdk-pairing": "npm:2.1.8"
- "@walmart/rn-receiving-mini-app": "npm:2.4.97"
+ "@walmart/rn-receiving-mini-app": "npm:2.4.101"
"@walmart/roster-mini-app": "npm:3.3.0"
"@walmart/schedule-mini-app": "npm:2.2.1"
"@walmart/shelfavailability-mini-app": "npm:1.5.45"
@@ -8288,12 +8288,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rn-receiving-mini-app@npm:2.4.97":
- version: 2.4.97
- resolution: "@walmart/rn-receiving-mini-app@npm:2.4.97::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Frn-receiving-mini-app%2F-%2F%40walmart%2Frn-receiving-mini-app-2.4.97.tgz"
+"@walmart/rn-receiving-mini-app@npm:2.4.101":
+ version: 2.4.101
+ resolution: "@walmart/rn-receiving-mini-app@npm:2.4.101::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Frn-receiving-mini-app%2F-%2F%40walmart%2Frn-receiving-mini-app-2.4.101.tgz"
dependencies:
"@walmart/atlas-rn-ui-components": "npm:1.2.2"
- "@walmart/loadquality-mini-app": "npm:2.0.23"
+ "@walmart/loadquality-mini-app": "npm:2.0.26"
peerDependencies:
"@react-native-clipboard/clipboard": ">=1.14.0"
"@react-native/metro-config": ">=0.73.0"
@@ -8319,7 +8319,7 @@ __metadata:
react-native-svg: ">=14.1.0"
react-native-svg-transformer: ">=1.3.0"
react-native-vision-camera: "*"
- checksum: 10c0/468485530bb5c2f252bd39a5407ff8a8e8ca7bd980836033d0880a6cc56c1d4eb4ed6e9146626761749e87e77ff17bd98cbcf575384e33c80e4da9f5a804aa86
+ checksum: 10c0/31e12c9afbed04391d4636e8accf9374e48662dd39bc7231b756f3e92dbb7ba4d37ea2216f09bed59403b9f1df5d75996f4d71115de1c3a263b85da9c89ad8d4
languageName: node
linkType: hard
@@ -12056,7 +12056,7 @@ __metadata:
"es-errors@npm:^1.3.0":
version: 1.3.0
- resolution: "es-errors@npm:1.3.0"
+ resolution: "es-errors@npm:1.3.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fes-errors%2F-%2Fes-errors-1.3.0.tgz"
checksum: 10c0/0a61325670072f98d8ae3b914edab3559b6caa980f08054a3b872052640d91da01d38df55df797fcc916389d77fc92b8d5906cf028f4db46d7e3003abecbca85
languageName: node
linkType: hard
@@ -14145,7 +14145,7 @@ __metadata:
"hasown@npm:^2.0.2":
version: 2.0.2
- resolution: "hasown@npm:2.0.2"
+ resolution: "hasown@npm:2.0.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fhasown%2F-%2Fhasown-2.0.2.tgz"
dependencies:
function-bind: "npm:^1.1.2"
checksum: 10c0/3769d434703b8ac66b209a4cca0737519925bbdb61dd887f93a16372b14694c63ff4e797686d87c90f08168e81082248b9b028bad60d4da9e0d1148766f56eb9
@@ -20791,7 +20791,7 @@ __metadata:
"set-function-name@npm:^2.0.2":
version: 2.0.2
- resolution: "set-function-name@npm:2.0.2"
+ resolution: "set-function-name@npm:2.0.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fset-function-name%2F-%2Fset-function-name-2.0.2.tgz"
dependencies:
define-data-property: "npm:^1.1.4"
es-errors: "npm:^1.3.0"
| fix(receiving): bug fix for Receiving drop 32 (#4454) | fix(receiving): bug fix for Receiving drop 32 (#4454)
* upgrade receiving mini app
* fix: app crash in lq
* fix: pdq fix and text missmatch |
8eb2920d718a4e068545d517a5d1e682db7cd82c | --- __tests__/auth/ErrorScreenTest.tsx
@@ -157,8 +157,8 @@ describe('ErrorScreen', () => {
interactionTask();
expect(mockNavigation.navigate).toHaveBeenCalledWith('Core.Toast', {
- message: 'welcome.errorRegisteredText',
- dismissText: 'welcome.gotIt',
+ message: 'welcomeScreen.errorRegisteredText',
+ dismissText: 'welcomeScreen.gotIt',
});
});
it('handles save on button press with errorCategory as Other', () => {
@@ -216,8 +216,8 @@ describe('ErrorScreen', () => {
interactionTask();
expect(mockNavigation.navigate).toHaveBeenCalledWith('Core.Toast', {
- message: 'welcome.errorRegisteredText',
- dismissText: 'welcome.gotIt',
+ message: 'welcomeScreen.errorRegisteredText',
+ dismissText: 'welcomeScreen.gotIt',
});
});
@@ -276,8 +276,8 @@ describe('ErrorScreen', () => {
expect(interactionSpy).toHaveBeenCalled();
interactionTask();
expect(mockNavigation.navigate).toHaveBeenCalledWith('Core.Toast', {
- message: 'welcome.errorRegisteredText',
- dismissText: 'welcome.gotIt',
+ message: 'welcomeScreen.errorRegisteredText',
+ dismissText: 'welcomeScreen.gotIt',
});
}, 1000);
});
--- src/auth/ErrorScreen.tsx
@@ -105,8 +105,8 @@ export const ErrorScreen: FC<any> = (props) => {
WmTelemetry.logEvent(SSO_APP, 'feedback_submitted', {});
InteractionManager.runAfterInteractions(() =>
navigation.navigate('Core.Toast', {
- message: translate('welcome.errorRegisteredText'),
- dismissText: translate('welcome.gotIt'),
+ message: translate('welcomeScreen.errorRegisteredText'),
+ dismissText: translate('welcomeScreen.gotIt'),
}),
);
logger.error('SSO error while Login', logMsg);
| update snackbar | update snackbar
|
3f76e36c26005df5621a169dbccbc965a150b212 | --- packages/me-at-walmart-container/__tests__/services/config.test.ts
@@ -21,7 +21,7 @@ describe('actualListener', () => {
it('should not call ChangeEventManager.runEvent when result is undefined', () => {
const runEventSpy = jest.spyOn(ChangeEventManager, 'runEvent');
actualListener(undefined);
- expect( runEventSpy ).not.toHaveBeenCalled();
+ expect(runEventSpy).not.toHaveBeenCalled();
});
it('should call ChangeEventManager.runEvent when result is defined', () => {
| clean up | clean up
|
f6a5ced340ac57b481a206bc2dddc99aa5b81ff8 | --- src/channels/components/ChannelRow.tsx
@@ -134,6 +134,13 @@ export const ChannelRow = (props: ChannelRowProps) => {
(associate) => Number(associate.associateId) === Number(firstRecipientWin)
);
+ const lastMessageSenderWin = decryptUserId(lastMessage?.sentFrom ?? '')
+ const lastMessageSenderAssociate = allAssociates.find(
+ (associate) => Number(associate?.associateId) === Number(lastMessageSenderWin)
+ )
+
+ const channelAvatarAssociate = group ? lastMessageSenderAssociate : firstRecipientAssociate
+
const firstRecipientClockedIn = associateIsClockedIn(firstRecipientAssociate);
const lastDeletedOrCreatedMessage = lastMessage?.deleted
? lastMessage?.deletedTimestamp?.toDate()
@@ -231,7 +238,7 @@ export const ChannelRow = (props: ChannelRowProps) => {
<Avatar
style={styles.avatar}
userId={recipients[0]}
- associate={firstRecipientAssociate ?? {} as Associate}
+ associate={channelAvatarAssociate ?? {} as Associate}
loading={loading ?? false}
showPresence={
!group && recipients.length === 1 && firstRecipientClockedIn
| chore: avatar data update | chore: avatar data update
|
6eb7fe1cc665055db3c3974b9d9c70ebefd4d3ec | --- packages/my-walmart-hub/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.3.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.2.1...@walmart/my-walmart-hub@1.3.0) (2025-11-10)
+
+### Features
+
+- **ui:** update my walmart hub for hub widget and other exports ([#484](https://gecgithub01.walmart.com/allspark/allspark/issues/484)) ([3aefdd0](https://gecgithub01.walmart.com/allspark/allspark/commit/3aefdd03aefd6a1be25203efa95ac5109143c845))
+
## [1.2.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.2.0...@walmart/my-walmart-hub@1.2.1) (2025-11-10)
**Note:** Version bump only for package @walmart/my-walmart-hub
--- packages/my-walmart-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/my-walmart-hub",
- "version": "1.2.1",
+ "version": "1.3.0",
"description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/my-walmart-hub@1.3.0
|
fd10367877eba12001089d4bc9d0388a1f9e3382 | --- package-lock.json
@@ -12454,7 +12454,7 @@
"@react-navigation/native": "^6.0.0",
"@react-navigation/stack": "^6.1.0",
"@walmart/core-services": "~2.0.11",
- "@walmart/gtp-shared-components": "2.2.1-rc.0",
+ "@walmart/gtp-shared-components": "2.2.1",
"@walmart/react-native-env": "0.2.0",
"react": "^18.2.0",
"react-native": "^0.72.8"
| changed gtp version to 2.2.1 | changed gtp version to 2.2.1
|
5b0a35bd97da1fa53d0e5197be3df979efd08479 | --- src/navigation/index.tsx
@@ -7,10 +7,7 @@ import {MessagesScreen} from '../screens/MessagesScreen';
import {TabsScreen} from '../screens/TabsScreen';
import {NewMessageScreen} from '../screens/NewMessageScreen';
import {ViewTeamScreen} from '../screens/ViewTeamScreen';
-import {
- SearchHeaderRight,
- SearchScreen,
-} from '../screens/SearchScreen';
+import {SearchHeaderRight, SearchScreen} from '../screens/SearchScreen';
import {buildMessageScreenOptions} from './utils';
import {TextingNavParamsMap} from './types';
import {
| fixing lint | fixing lint
|
60976a2c25db91a8475aa351d5dee9f1e2a575bd | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "3.2.1",
+ "version": "3.2.0",
"main": "dist/index.js",
"files": [
"dist",
| feat(ui): adding changes for wmconnect version | feat(ui): adding changes for wmconnect version
|
08f5e13bb289de3f8f67ad501c057a433c3e7283 | --- package.json
@@ -91,7 +91,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/payrollsolution_miniapp": "0.91.0",
"@walmart/price-changes-mini-app": "1.0.6",
- "@walmart/push-to-talk-mini-app": "0.5.87",
+ "@walmart/push-to-talk-mini-app": "0.5.88",
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.28.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
| updating package version for PTT | updating package version for PTT
|
280d2a742d00549a60d19c82be5a5122906f36bd | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/style.ts
@@ -45,11 +45,10 @@ export const ShiftFilterListStyles = StyleSheet.create({
container: {
flexDirection: 'row',
flexWrap: 'wrap',
+ marginTop: 8,
gap: 8,
},
- item: {
- marginBottom: 8,
- },
+ item: {},
alert: {
marginTop: 16,
},
| Updating ShiftFilterList styles | Updating ShiftFilterList styles
|
d5d759d33bfc436c72d0a2b85dfee0fbf6db615e | --- __tests__/components/MyWalmartv2/RosterListItem.test.tsx
@@ -60,6 +60,9 @@ jest.mock('@walmart/allspark-foundation', () => ({
Component: jest.fn().mockReturnValue(null),
},
},
+ UserSelectors: {
+ getWin: jest.fn((state) => state?.user?.data?.win),
+ },
}));
const baseAssociate: any = {
@@ -89,6 +92,9 @@ describe('RosterListItem', () => {
const mockStore = configureStore({
reducer: {
user: () => ({
+ data: {
+ win: 'w1',
+ },
workingSite: '1234',
homeSite: '1234',
impersonated: false,
--- src/components/MyWalmartv2/Common/RosterListItem/RosterListItem.tsx
@@ -1,4 +1,5 @@
import {memo, useMemo} from 'react';
+import {useSelector} from 'react-redux';
import {translationClient, WFMSchedule} from '../../../../common';
import {
associateIsClockedIn,
@@ -14,13 +15,16 @@ import {
Attribute,
} from '@walmart/ax-components';
import {StatusChip} from '../../../../components/StatusChip';
-import {ComponentsModule} from '@walmart/allspark-foundation';
+import {ComponentsModule, UserSelectors} from '@walmart/allspark-foundation';
import {CalendarIcon} from '@walmart/gtp-shared-components-3';
import {View} from 'react-native';
import {styles} from './style';
import {analytics} from '../../../../logger/analytics';
import {useFeatureFlags} from '../../../../hooks/useFeatureFlags';
-import {useIsImpersonatedOnDev, useUserIsInRoster} from '../../../../hooks/user';
+import {
+ useIsImpersonatedOnDev,
+ useUserIsInRoster,
+} from '../../../../hooks/user';
/**
* RosterListItem Component
@@ -85,6 +89,7 @@ export const RosterListItem = memo(
showJobDescription,
// _showViewSchedule reserved for future implementation
} = useFeatureFlags();
+ const userWin = useSelector(UserSelectors.getWin);
const {t} = translationClient.useTranslation();
const displayName = useMemo(() => nameCase(fullName), [fullName]);
const jobTitle = useMemo(
@@ -140,14 +145,18 @@ export const RosterListItem = memo(
undefined // storeId is optional
);
- if (!transformedSchedule || Object.keys(transformedSchedule).length === 0) {
+ if (
+ !transformedSchedule ||
+ Object.keys(transformedSchedule).length === 0
+ ) {
return {
schedulePrimary: '',
scheduleSecondary: '',
};
}
- const {schedStartTime, schedEndTime} = getScheduleStartAndEndTime(transformedSchedule);
+ const {schedStartTime, schedEndTime} =
+ getScheduleStartAndEndTime(transformedSchedule);
return {
schedulePrimary: `${schedStartTime} -`,
@@ -193,8 +202,10 @@ export const RosterListItem = memo(
showClockIndicator,
]);
+ const isSameAssociate = associate?.associateId == userWin;
+
const buttonContainer = useMemo(() => {
- if (!enableMessageButton || isSiteDC) return undefined;
+ if (!enableMessageButton || isSiteDC || isSameAssociate) return undefined;
return (
<ComponentsModule.SharedComponents.Component
id="wmConnect.RosterMessageButton"
@@ -212,7 +223,16 @@ export const RosterListItem = memo(
}}
/>
);
- }, [enableMessageButton, isSiteDC, associate, userIsInRoster, userIsImpersonatedOnDev, t, associateName, displayName]);
+ }, [
+ enableMessageButton,
+ isSiteDC,
+ associate,
+ userIsInRoster,
+ userIsImpersonatedOnDev,
+ t,
+ associateName,
+ displayName,
+ ]);
return (
<View style={styles.container}>
<View style={styles.listItem}>
@@ -225,7 +245,13 @@ export const RosterListItem = memo(
isClockedIn ? t('status.clockedIn') : t('status.clockedOut')
}. ${
schedulePrimary && scheduleSecondary
- ? `${t('rosterScreen.scheduleLabel', 'Schedule')}: ${schedulePrimary.replace(' -', '')} to ${scheduleSecondary}.`
+ ? `${t(
+ 'rosterScreen.scheduleLabel',
+ 'Schedule'
+ )}: ${schedulePrimary.replace(
+ ' -',
+ ''
+ )} to ${scheduleSecondary}.`
: ''
}`}
accessibilityHint={t(
--- src/components/MyWalmartv2/Widgets/Hourly/HourlyRosterWidget.tsx
@@ -187,6 +187,7 @@ const ListItem = memo(
() => associateIsClockedIn(associate),
[associate]
);
+ const userWin = useSelector(UserSelectors.getWin);
// Get siteId at component level (not in callback)
const siteId: string | undefined = useSelector(
@@ -244,6 +245,9 @@ const ListItem = memo(
<></>
);
+ const showMessageButton =
+ enableMessageButton && associate.associateId !== userWin;
+
return (
<AssociateListItem
associateName={displayName}
@@ -275,7 +279,7 @@ const ListItem = memo(
}
onPress={onPress}
buttonGroup={
- enableMessageButton ? (
+ showMessageButton ? (
<ComponentsModule.SharedComponents.Component
id="wmConnect.RosterMessageButton"
props={{
| fix(ui): hiding message button for self | fix(ui): hiding message button for self
|
233348333a0d60d0cfc2649c39ef028ee6c5f05d | --- package.json
@@ -133,6 +133,7 @@
"@firebase/firestore-types": "^2.5.1",
"@react-native-community/art@npm:^1.2.0": "patch:@react-native-community/art@npm%3A1.2.0#~/.yarn/patches/@react-native-community-art-npm-1.2.0-1c93d63acc.patch",
"@react-native-community/datetimepicker": "^7.6.2",
+ "@reduxjs/toolkit": "1.9.7",
"@stomp/stompjs": "^7.0.0",
"@types/crypto-js": "^4.1.3",
"@types/lodash": "~4.14.178",
@@ -146,7 +147,8 @@
"@types/seamless-immutable": "^7.1.16",
"@types/semver": "^7.3.4",
"@types/uuid": "^8.3.0",
- "@walmart/allspark-foundation": "6.22.0",
+ "@walmart/allspark-foundation": "6.27.4",
+ "@walmart/allspark-foundation-hub": "1.2.6",
"@walmart/allspark-graphql-client": "~6.3.28",
"@walmart/allspark-http-client": "~6.3.28",
"@walmart/allspark-utils": "~6.5.0",
@@ -193,7 +195,6 @@
"react-native-ble-manager": "~11.4.0",
"react-native-blob-util": "^0.19.5",
"react-native-calendars": "^1.1291.0",
- "react-native-check-app-install": "patch:react-native-check-app-install@npm%3A0.0.5#~/.yarn/patches/react-native-check-app-install-npm-0.0.5-fa2d399164.patch",
"react-native-circular-progress": "^1.3.7",
"react-native-code-push": "~8.2.2",
"react-native-device-info": "~10.13.1",
@@ -270,7 +271,7 @@
"pre-push": "run-p solidarity coverage"
}
},
- "packageManager": "yarn@4.1.1",
+ "packageManager": "yarn@4.4.0",
"engines": {
"node": ">=18"
}
--- targets/US/package.json
@@ -124,7 +124,7 @@
"@walmart/native-rfid-scanner": "3.12.1",
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.20.5",
- "@walmart/payrollsolution_miniapp": "0.145.18",
+ "@walmart/payrollsolution_miniapp": "0.145.20",
"@walmart/price-changes-mini-app": "1.10.18",
"@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/react-native-cookies": "1.0.1",
| bump version | bump version
|
d457ee63835fc7320be6262f4aa5e2ac446188d0 | --- .looper.multibranch.yml
@@ -23,45 +23,45 @@ envs:
IOS_BASE_PATH: targets/US/ios
ANDROID_BASE_PATH: targets/US/android
-branches:
- - spec: feature/drop25
- triggers:
- - manual:
- name: Publish Packages (Pre-Release)
- call: publishPrerelease
- - manual:
- name: Publish Packages (Graduate)
- call: publishGraduate
- - manual:
- name: Build Both Dev
- call: dev(test)
- - manual:
- name: Build Android Dev
- call: android-dev(test)
- - manual:
- name: Build iOS Dev
- call: ios-dev(test)
- - manual:
- name: Build Both Beta
- call: beta(test)
- - manual:
- name: Build Android Beta
- call: android-beta(test)
- - manual:
- name: Build iOS Beta
- call: ios-beta(test)
- - manual:
- name: Build Both Teflon
- call: teflon(test)
- - manual:
- name: Build Android Teflon
- call: android-teflon(test)
- - manual:
- name: Build iOS Teflon
- call: ios-teflon(test)
- - manual:
- name: Build Simulator
- call: push(simulator)
+# branches:
+# - spec: feature/drop25
+# triggers:
+# - manual:
+# name: Publish Packages (Pre-Release)
+# call: publishPrerelease
+# - manual:
+# name: Publish Packages (Graduate)
+# call: publishGraduate
+# - manual:
+# name: Build Both Dev
+# call: dev(test)
+# - manual:
+# name: Build Android Dev
+# call: android-dev(test)
+# - manual:
+# name: Build iOS Dev
+# call: ios-dev(test)
+# - manual:
+# name: Build Both Beta
+# call: beta(test)
+# - manual:
+# name: Build Android Beta
+# call: android-beta(test)
+# - manual:
+# name: Build iOS Beta
+# call: ios-beta(test)
+# - manual:
+# name: Build Both Teflon
+# call: teflon(test)
+# - manual:
+# name: Build Android Teflon
+# call: android-teflon(test)
+# - manual:
+# name: Build iOS Teflon
+# call: ios-teflon(test)
+# - manual:
+# name: Build Simulator
+# call: push(simulator)
flows:
yarnInstall:
| chore: remove branch spec from looper file | chore: remove branch spec from looper file
|
00b043cf8d20d0f273490f3286653b9ee132a277 | --- __tests__/components/RosterMessageButton.test.tsx
@@ -18,7 +18,6 @@ jest.mock('@walmart/allspark-foundation/User', () => {
getSiteId: jest.fn(),
getDomain: jest.fn(),
getWin: jest.fn(),
- getUserId: jest.fn(() => 'test-user-123'),
},
};
});
| fix(ui): revert changes that were out-of-scope | fix(ui): revert changes that were out-of-scope
|
db3d1691fbdbb8eea405c7adb4c4f1a3782f370c | --- .codepulseai.yml
@@ -1,12 +0,0 @@
-ignore:
- - "node_modules/"
- - "coverage/"
- - "*.yml"
- - "*.js"
- - "*.json"
-
-ignore_code_suggestion_keywords:
-
-auto_describe: true # If auto_describe flag value is set to true, PR title and description will be automatically generated by the CodePulseAI as soon as the PR is opened
-auto_review: true # If auto_review flag value is set to true, PR will be automatically reviewed by the CodePulseAI as soon as the PR is opened
-auto_extended_review: true # If auto_extended_review flag value is set to true, CodePulseAI will perform automated extended review of the PR as soon as the PR is opened
\ No newline at end of file
| Merge changes | Merge changes
|
c90408f8dfb1a3b3ee69bb305aa33ca70f9bee8a | --- ios/Podfile.lock
@@ -538,7 +538,7 @@ PODS:
- RCTTypeSafety
- React
- ReactCommon/turbomodule/core
- - react-native-scanner-3.0 (0.2.0):
+ - react-native-scanner-3.0 (0.1.32):
- Firebase/Analytics
- React
- ScanditBarcodeCapture (= 6.14.0)
@@ -1225,7 +1225,7 @@ SPEC CHECKSUMS:
react-native-ptt-module: 47e1b73551afa3830155cc92f4809d06c38e5eca
react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe
react-native-safe-area-context: 6c12e3859b6f27b25de4fee8201cfb858432d8de
- react-native-scanner-3.0: e2827283accaa51fa2e1f55bde21607ae0a695df
+ react-native-scanner-3.0: a0549e6f451262c91e545d3b69a6b9d8cf2ac1eb
react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457
react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253
react-native-view-shot: 792829857bbb23a9c8acdad9a640554bdee397a3
--- package-lock.json
@@ -42,7 +42,7 @@
"@walmart/core-services-allspark": "~2.10.8",
"@walmart/core-utils": "~2.0.5",
"@walmart/core-widget-registry": "~1.2.2",
- "@walmart/counts-component-miniapp": "0.1.4",
+ "@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.23.2",
"@walmart/exception-mini-app": "1.2.4",
"@walmart/facilities-management-miniapp": "0.6.7",
@@ -69,7 +69,7 @@
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
"@walmart/react-native-logger": "1.33.0",
- "@walmart/react-native-scanner-3.0": "0.2.0",
+ "@walmart/react-native-scanner-3.0": "0.1.32",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
@@ -5012,16 +5012,18 @@
}
},
"node_modules/@walmart/counts-component-miniapp": {
- "version": "0.1.4",
- "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.4.tgz",
- "integrity": "sha512-1lN+t45r6BIdJTQgBmIWDGcUN+N/hKQM22YHiGmRzOxX9MPd58zZ0n42QehBFxyE5TQVpPR3NsVWAaYCO17Mvg==",
+ "version": "0.1.2",
+ "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.2.tgz",
+ "integrity": "sha512-/MvR5ACBMHVTgVtBgQ8lYQAQc1dMgfvNQ2n4XdgbXSyi9PLVNJjr89WTh1h9YBJxtihmwMMhx66cP3TVqZal6A==",
"hasInstallScript": true,
"peerDependencies": {
+ "@react-native-community/async-storage": "^1.12.1",
+ "@react-native-community/netinfo": "9.3.6",
"@react-navigation/native": "^6.0.0",
"@react-navigation/stack": "^6.1.0",
"@walmart/core-services-allspark": "~1.10.11",
"@walmart/core-utils": "~1.3.0",
- "@walmart/gtp-shared-components": "2.0.2",
+ "@walmart/gtp-shared-components": "^2.0.0",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/redux-store": "^3.1.3",
"i18next": "^22.0.1",
@@ -5766,9 +5768,9 @@
}
},
"node_modules/@walmart/react-native-scanner-3.0": {
- "version": "0.2.0",
- "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.2.0.tgz",
- "integrity": "sha512-GkIMsrIJeZNHgfIzbq+dK7MDcKRIzs1Z9L8GEuTytP38hxlUGQPHPzKVKfkveYvihynKtAPJ8wAyuyTQEhYepg==",
+ "version": "0.1.32",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.32.tgz",
+ "integrity": "sha512-eTnQ4DX9rb8YNbj7tfn4iqRuiQotY3YNEJXDOm17/F4IbQ3/raWQgRArVvFAXswMz/pnSfIN7cqJEgUKlYX66Q==",
"license": "ISC",
"peerDependencies": {
"react-native": ">=0.47.1"
@@ -25146,9 +25148,9 @@
}
},
"@walmart/counts-component-miniapp": {
- "version": "0.1.4",
- "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.4.tgz",
- "integrity": "sha512-1lN+t45r6BIdJTQgBmIWDGcUN+N/hKQM22YHiGmRzOxX9MPd58zZ0n42QehBFxyE5TQVpPR3NsVWAaYCO17Mvg=="
+ "version": "0.1.2",
+ "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.2.tgz",
+ "integrity": "sha512-/MvR5ACBMHVTgVtBgQ8lYQAQc1dMgfvNQ2n4XdgbXSyi9PLVNJjr89WTh1h9YBJxtihmwMMhx66cP3TVqZal6A=="
},
"@walmart/emergency-mini-app": {
"version": "1.23.2",
@@ -25305,9 +25307,9 @@
"version": "1.33.0"
},
"@walmart/react-native-scanner-3.0": {
- "version": "0.2.0",
- "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.2.0.tgz",
- "integrity": "sha512-GkIMsrIJeZNHgfIzbq+dK7MDcKRIzs1Z9L8GEuTytP38hxlUGQPHPzKVKfkveYvihynKtAPJ8wAyuyTQEhYepg=="
+ "version": "0.1.32",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.32.tgz",
+ "integrity": "sha512-eTnQ4DX9rb8YNbj7tfn4iqRuiQotY3YNEJXDOm17/F4IbQ3/raWQgRArVvFAXswMz/pnSfIN7cqJEgUKlYX66Q=="
},
"@walmart/react-native-shared-navigation": {
"version": "1.0.2",
--- package.json
@@ -84,7 +84,7 @@
"@walmart/core-services-allspark": "~2.10.8",
"@walmart/core-utils": "~2.0.5",
"@walmart/core-widget-registry": "~1.2.2",
- "@walmart/counts-component-miniapp": "0.1.4",
+ "@walmart/counts-component-miniapp": "0.1.2",
"@walmart/emergency-mini-app": "1.23.2",
"@walmart/exception-mini-app": "1.2.4",
"@walmart/facilities-management-miniapp": "0.6.7",
@@ -111,7 +111,7 @@
"@walmart/react-native-encrypted-storage": "1.1.3",
"@walmart/react-native-env": "0.2.0",
"@walmart/react-native-logger": "1.33.0",
- "@walmart/react-native-scanner-3.0": "0.2.0",
+ "@walmart/react-native-scanner-3.0": "0.1.32",
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.1",
| fix(version): remove updated version of scanner & count | fix(version): remove updated version of scanner & count
|
e3c52fe88816a93d3c28e6d854e506b69a550fe7 | --- ios/Podfile.lock
@@ -615,8 +615,6 @@ PODS:
- BoringSSL-GRPC/Implementation (0.0.24):
- BoringSSL-GRPC/Interface (= 0.0.24)
- BoringSSL-GRPC/Interface (0.0.24)
- - BVLinearGradient (2.6.2):
- - React-Core
- CocoaAsyncSocket (7.6.5)
- CodePush (8.2.2):
- Base64 (~> 1.1)
@@ -2234,7 +2232,7 @@ PODS:
- FirebaseMessaging (<= 10.18.0)
- StructuredLogAssistantIOS (= 0.0.7)
- TOCropViewController (2.6.1)
- - topstock-mini-app (1.10.8):
+ - topstock-mini-app (1.12.0):
- React
- VisionCamera (3.7.1):
- React
@@ -2250,7 +2248,6 @@ PODS:
DEPENDENCIES:
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
- - BVLinearGradient (from `../node_modules/react-native-linear-gradient`)
- CocoaAsyncSocket
- CodePush (from `../node_modules/react-native-code-push`)
- "compass-sdk-rn (from `../node_modules/@walmart/compass-sdk-rn`)"
@@ -2479,8 +2476,6 @@ SPEC REPOS:
EXTERNAL SOURCES:
boost:
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
- BVLinearGradient:
- :path: "../node_modules/react-native-linear-gradient"
CodePush:
:path: "../node_modules/react-native-code-push"
compass-sdk-rn:
@@ -2732,7 +2727,6 @@ SPEC CHECKSUMS:
Base64: cecfb41a004124895a7bcee567a89bae5a89d49b
boost: 26fad476bfa736552bbfa698a06cc530475c1505
BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33
- BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
CodePush: eaa66fc8dd9ff611304ecc48397ce8831ba79ac9
compass-sdk-ios: 8077b7076d749de27c83846bad97ecde13f28657
@@ -2905,12 +2899,12 @@ SPEC CHECKSUMS:
StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1
SumoSDK: 58664bf3b83e2f4bcdfc52704235ab4bca519ceb
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
- topstock-mini-app: b194faed10e28756619b4105d6de60965bcd2058
+ topstock-mini-app: 37f838d08fe79248fc2e39c3f003e07afa51c2df
VisionCamera: ef56ac9d3e0fef4b94c7cf75735aaccc2326e35a
walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c
WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b
wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3
- Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee
+ Yoga: c716aea2ee01df6258550c7505fa61b248145ced
PODFILE CHECKSUM: fc93c11e2096b0f20e15b7c98c1efea2b0908817
--- package.json
@@ -146,7 +146,7 @@
"@walmart/store-feature-orders": "1.26.9",
"@walmart/taskit-mini-app": "3.0.2",
"@walmart/time-clock-mini-app": "2.395.0",
- "@walmart/topstock-mini-app": "1.10.8",
+ "@walmart/topstock-mini-app": "1.12.0",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch",
"@walmart/welcomeme-mini-app": "0.94.0",
"@walmart/wfm-ui": "0.8.12",
--- yarn.lock
@@ -7259,9 +7259,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/topstock-mini-app@npm:1.10.8":
- version: 1.10.8
- resolution: "@walmart/topstock-mini-app@npm:1.10.8"
+"@walmart/topstock-mini-app@npm:1.12.0":
+ version: 1.12.0
+ resolution: "@walmart/topstock-mini-app@npm:1.12.0"
peerDependencies:
"@react-native-firebase/app": ^15.1.1
"@react-native-firebase/crashlytics": ^15.1.1
@@ -7278,7 +7278,7 @@ __metadata:
react-native-haptic-feedback: ^1.13.0
react-native-vector-icons: ">=6.6.0"
react-redux: ">=7.2.0"
- checksum: 10c0/ba43295c85f5376b0cb43bf10e1487d3b9c28ec2bfc94abe01442f4c3a7dd36ef27dea9b3d9305878828e6fa8e6fdb3110920ff9125af31b501a1567ee166281
+ checksum: 10c0/64d49669316e55d8ed1bdce780f830cdf660d919b314d1f351dbc0e9877442cc268c3a1c34d768a1f4ed180f82ddfb6dae0e8cf7fe91483f9f2824c9c0fae105
languageName: node
linkType: hard
@@ -7861,7 +7861,7 @@ __metadata:
"@walmart/store-feature-orders": "npm:1.26.9"
"@walmart/taskit-mini-app": "npm:3.0.2"
"@walmart/time-clock-mini-app": "npm:2.395.0"
- "@walmart/topstock-mini-app": "npm:1.10.8"
+ "@walmart/topstock-mini-app": "npm:1.12.0"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch"
"@walmart/welcomeme-mini-app": "npm:0.94.0"
"@walmart/wfm-ui": "npm:0.8.12"
| fix(topstock): fix drop22 topstock | fix(topstock): fix drop22 topstock
|
37d7674f610ee9dc22321db3de87c8f2fa765056 | --- src/navConfig/NavConfigRedux.ts
@@ -3,7 +3,7 @@ import {createSelector} from 'reselect';
import Immutable, {ImmutableObject} from 'seamless-immutable';
import {GlobalState} from '@walmart/redux-store';
-interface NavConfigState {
+export interface NavConfigState {
initialized: boolean;
loaded: boolean;
loading: boolean;
@@ -11,10 +11,6 @@ interface NavConfigState {
data: any[] | null;
}
-interface AppState {
- navConfig?: NavConfigState;
-}
-
export const INITIAL_STATE: ImmutableObject<NavConfigState> = Immutable({
initialized: false,
loaded: false,
@@ -28,6 +24,7 @@ const {Types, Creators} = createActions(
initSuccess: null,
initError: null,
refresh: ['data'],
+ fetchNavConfig: null,
fetchProgress: null,
fetchSuccess: ['data'],
fetchError: null,
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx
@@ -1,6 +1,6 @@
import React, {useCallback, useEffect, useState} from 'react';
import {StatusBar, StyleSheet} from 'react-native';
-import {useSelector} from 'react-redux';
+import {useDispatch, useSelector} from 'react-redux';
import {useTranslation} from 'react-i18next';
import {DrawerActions} from '@react-navigation/native';
import {
@@ -19,7 +19,11 @@ import {useCanImpersonate} from '../../hooks';
import {ClockStatus} from '../../types/clockStatus';
import {UpdateSideMenu} from '../../updates/UpdateSideMenu';
import {getUser} from '../../redux/UserSelector';
-import {getNavConfig, getNavConfigState} from '../../navConfig/NavConfigRedux';
+import {
+ getNavConfig,
+ getNavConfigState,
+ NavConfigActionCreators,
+} from '../../navConfig/NavConfigRedux';
import {getClockStatusData, getDeviceType} from '../../redux/SharedSelectors';
import {UserSelectors} from '@walmart/redux-store';
@@ -36,6 +40,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
DrawerContentOptions
>> = (props) => {
const {navigation} = props;
+ const dispatch = useDispatch();
const [translate, i18n] = useTranslation();
const isDrawerOpen = useIsDrawerOpen();
const canImpersonate = useCanImpersonate();
@@ -45,6 +50,8 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
const {loading, error} = useSelector(getNavConfigState);
const remoteNavConfig = useSelector(getNavConfig);
const deviceType = useSelector(getDeviceType);
+ const nameInitials = useSelector(UserSelectors.getUserInitials);
+ const displayName = useSelector(UserSelectors.getUserName);
const [showDialog, setShowDialog] = useState(false);
@@ -95,17 +102,17 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loading]);
- const onDrawerClose = useCallback(() => {
+ const onDrawerClose = () => {
navigation.dispatch(DrawerActions.closeDrawer());
- }, [navigation]);
+ };
- const onNavigate = useCallback(
- (route: string, params?: Record<string, any> | undefined) => {
- onDrawerClose();
- setImmediate(() => navigation.navigate(route, params));
- },
- [onDrawerClose, navigation],
- );
+ const onNavigate = (
+ route: string,
+ params?: Record<string, any> | undefined,
+ ) => {
+ onDrawerClose();
+ setImmediate(() => navigation.navigate(route, params));
+ };
const onCancelSignout = () => {
WmTelemetry.logEvent('global_navigation', 'sign_out_cancelled', {
@@ -118,22 +125,18 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
setShowDialog(true);
};
- const handleSignOut = useCallback(() => {
+ const handleSignOut = () => {
setShowDialog(false);
WmTelemetry.logEvent('global_navigation', 'sign_out_confirmed', {
composite_app: appJson.displayName,
});
onDrawerClose();
connectedSSO.signOut(activityName, false);
- }, [onDrawerClose]);
+ };
- const onDevelopersOptionClick = useCallback(
- () => navigation.navigate('Impersonation'),
- [navigation],
- );
+ const onDevelopersOptionClick = () => navigation.navigate('Impersonation');
- const nameInitials = useSelector(UserSelectors.getUserInitials);
- const displayName = useSelector(UserSelectors.getUserName);
+ const onRetry = () => dispatch(NavConfigActionCreators.fetchNavConfig());
return (
<SafeAreaView style={styles.globalNavContainer}>
@@ -162,6 +165,8 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps<
loadingText={translate('menu.loadingText')}
error={error}
errorText={translate('menu.errorText')}
+ retryText={translate('menu.retryText')}
+ onRetry={onRetry}
/>
<Dialog
testID='signoutDialog'
--- src/translations/en-US.ts
@@ -47,6 +47,7 @@ export const enUS = {
itemInfo: 'Item information',
loadingText: 'Loading menu options',
errorText: 'Failed to load menu options',
+ retryText: 'Retry',
},
welcome: {
associateTitle: 'Hello Associates!',
--- src/translations/es-MX.ts
@@ -48,6 +48,7 @@ export const esMX = {
ManagerApprovals: 'Aprobaciones del Gerente',
loadingText: 'Loading menu options',
errorText: 'Failed to load menu options',
+ retryText: 'Retry',
},
welcome: {
associateTitle: 'Hola Asociados!',
--- src/types/ui-components.d.ts
@@ -60,6 +60,8 @@ declare module '@walmart/ui-components/containers' {
errorText?: string;
displayName: string;
nameInitials: string;
+ retryText?: string;
+ onRetry?: () => void;
}
export const GlobalNavigation: FC<GlobalNavigationProps>;
| Adding retry | Adding retry
|
0b5e0726d3442fabaa2b9235518667df865c03bd | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart",
- "version": "1.27.0",
+ "version": "1.27.1",
"private": true,
"workspaces": [
"core",
--- targets/US/android/app/build.gradle
@@ -106,8 +106,8 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 940
- versionName "1.27.0"
+ versionCode 941
+ versionName "1.27.1"
}
signingConfigs {
debug {
--- targets/US/ios/AllSpark/Info.plist
@@ -19,7 +19,7 @@
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<!-- @customization - default: <string>$(MARKETING_VERSION)</string> -->
- <string>1.27.0</string>
+ <string>1.27.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
--- targets/US/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-us",
- "version": "1.27.0",
+ "version": "1.27.1",
"private": true,
"scripts": {
"android": "react-native run-android",
@@ -121,7 +121,7 @@
"@walmart/me-at-walmart-container": "workspace:^",
"@walmart/me-at-walmart-core": "workspace:^",
"@walmart/metrics-mini-app": "1.27.3",
- "@walmart/mod-flex-mini-app": "1.23.2",
+ "@walmart/mod-flex-mini-app": "1.23.3",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "2.2.1",
"@walmart/myteam-mini-app": "1.12.0",
--- yarn.lock
@@ -7358,7 +7358,7 @@ __metadata:
"@walmart/me-at-walmart-container": "workspace:^"
"@walmart/me-at-walmart-core": "workspace:^"
"@walmart/metrics-mini-app": "npm:1.27.3"
- "@walmart/mod-flex-mini-app": "npm:1.23.2"
+ "@walmart/mod-flex-mini-app": "npm:1.23.3"
"@walmart/moment-walmart": "npm:1.0.4"
"@walmart/money-auth-shared-components": "npm:2.2.1"
"@walmart/myteam-mini-app": "npm:1.12.0"
@@ -7639,9 +7639,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/mod-flex-mini-app@npm:1.23.2":
- version: 1.23.2
- resolution: "@walmart/mod-flex-mini-app@npm:1.23.2"
+"@walmart/mod-flex-mini-app@npm:1.23.3":
+ version: 1.23.3
+ resolution: "@walmart/mod-flex-mini-app@npm:1.23.3"
peerDependencies:
"@react-navigation/drawer": ">=6"
"@react-navigation/material-top-tabs": ">=6"
@@ -7676,7 +7676,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
uuid: ^3.3.2
- checksum: 10c0/ba6b69475f79a7e0f92564853bd88de42600f92a8bf40a39390fe801d032d0b88bf54165d86c7f592c7a62d30d4dc12256b557ed7c75253daf0dba48f4e510a7
+ checksum: 10c0/acd33827250f952be237693455532f1ca2a440eb301f1c41582bd89ab19f462b3394e486b19e3ec4d3874b949773e4d1e628724197a5c26751971f1f7cbfd22e
languageName: node
linkType: hard
| Fix modflex app crash issue for drop 27 | Fix modflex app crash issue for drop 27
|
729f94ff35877b9b9035048ac8291e8a781bd954 | --- core/src/oneClick/MiniApps.ts
@@ -56,7 +56,7 @@ export enum MINI_APPS {
WHATSNEW_FACILITY = 'whatsNew-facility',
GIF = 'gif',
HOLIDAY_PLUS_UP = 'HolidayPlusUp',
- ASKSAM = 'askSam',
+ ASKSAM = 'ask_sam',
TASKIT = 'taskit',
TOPSTOCK = 'topstock',
TEXTING = 'texting',
| fix side button opens ask sam when turned off with one click toggle | fix side button opens ask sam when turned off with one click toggle
|
e2355735ae08dc4695ddcbc0ce28a6204fc93346 | --- package-lock.json
@@ -57,7 +57,7 @@
"@walmart/iteminfo-mini-app": "7.0.8",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.1.45",
- "@walmart/metrics-mini-app": "0.9.47",
+ "@walmart/metrics-mini-app": "0.9.48",
"@walmart/mod-flex-mini-app": "1.5.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
@@ -5537,9 +5537,9 @@
}
},
"node_modules/@walmart/metrics-mini-app": {
- "version": "0.9.47",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.47.tgz",
- "integrity": "sha512-9/Un94TIImAmiXswkIdoEeBeLaGnbClOli0Zr30XroTUzFwlXYXxwrEb8Ajn5gxbjs7yicA/zXeUZr/Zz3w2sw==",
+ "version": "0.9.48",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.48.tgz",
+ "integrity": "sha512-DsUYqrCL1W8ZcLdSsNp+p3oQBr45xS737+m/9RlA+3stfbrBRSf4orv1dx8xSgiaWXbdTI24l8zVF3ojaBFohg==",
"dependencies": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
@@ -5918,9 +5918,9 @@
}
},
"node_modules/@walmart/redux-store": {
- "version": "3.1.4",
- "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.1.4.tgz",
- "integrity": "sha512-nU/iS9ccQ8LhzczWRVFe4acjcWvN4QZuvGRMScnjMjozehIit+8LItz3LTGMO6HaOUq/lWxNTnUyu/VWmVBhLw==",
+ "version": "3.1.3",
+ "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.1.3.tgz",
+ "integrity": "sha512-PxvdYstWLtFzoB/Z/1sf+Ra98jWZ47uO8+MQB/pw89YCgbfZL0yhJpdTvpQ/8H/4kddbVJNjNLDVftJNOWCGfQ==",
"license": "MIT",
"dependencies": {
"namecase": "^1.1.2",
@@ -25615,9 +25615,9 @@
"integrity": "sha512-E6vAHwZlf/Z+rSLxDJBZsobTh19CO6crd5I6WQrYnM2+Hp+LhSZyh9dVkty6LLweJy6l4nmcVHJS6/A6QRC5aA=="
},
"@walmart/metrics-mini-app": {
- "version": "0.9.47",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.47.tgz",
- "integrity": "sha512-9/Un94TIImAmiXswkIdoEeBeLaGnbClOli0Zr30XroTUzFwlXYXxwrEb8Ajn5gxbjs7yicA/zXeUZr/Zz3w2sw==",
+ "version": "0.9.48",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.48.tgz",
+ "integrity": "sha512-DsUYqrCL1W8ZcLdSsNp+p3oQBr45xS737+m/9RlA+3stfbrBRSf4orv1dx8xSgiaWXbdTI24l8zVF3ojaBFohg==",
"requires": {
"@types/base-64": "^1.0.0",
"apisauce": "1.1.2",
@@ -25753,9 +25753,9 @@
}
},
"@walmart/redux-store": {
- "version": "3.1.4",
- "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.1.4.tgz",
- "integrity": "sha512-nU/iS9ccQ8LhzczWRVFe4acjcWvN4QZuvGRMScnjMjozehIit+8LItz3LTGMO6HaOUq/lWxNTnUyu/VWmVBhLw==",
+ "version": "3.1.3",
+ "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-3.1.3.tgz",
+ "integrity": "sha512-PxvdYstWLtFzoB/Z/1sf+Ra98jWZ47uO8+MQB/pw89YCgbfZL0yhJpdTvpQ/8H/4kddbVJNjNLDVftJNOWCGfQ==",
"requires": {
"namecase": "^1.1.2",
"reduxsauce": "^1.2.1"
--- package.json
@@ -99,7 +99,7 @@
"@walmart/iteminfo-mini-app": "7.0.8",
"@walmart/manager-approvals-miniapp": "0.2.1",
"@walmart/me-field-mini-app": "1.1.45",
- "@walmart/metrics-mini-app": "0.9.47",
+ "@walmart/metrics-mini-app": "0.9.48",
"@walmart/mod-flex-mini-app": "1.5.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.14",
| metrics version bump | metrics version bump
|
3c9911baa54261dabbc09e3cd6d66967554b2ab6 | --- package.json
@@ -116,7 +116,7 @@
"@walmart/inbox-mini-app": "0.102.2",
"@walmart/invue-react-native-sdk": "0.1.26-alpha.12",
"@walmart/iteminfo-mini-app": "8.6.1",
- "@walmart/learning-mini-app": "20.0.78",
+ "@walmart/learning-mini-app": "20.0.79",
"@walmart/manager-approvals-miniapp": "0.3.7",
"@walmart/me-at-walmart-athena-queries": "6.31.0",
"@walmart/me-at-walmart-common": "workspace:^",
--- yarn.lock
@@ -8355,9 +8355,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/learning-mini-app@npm:20.0.78":
- version: 20.0.78
- resolution: "@walmart/learning-mini-app@npm:20.0.78::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Flearning-mini-app%2F-%2F%40walmart%2Flearning-mini-app-20.0.78.tgz"
+"@walmart/learning-mini-app@npm:20.0.79":
+ version: 20.0.79
+ resolution: "@walmart/learning-mini-app@npm:20.0.79::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Flearning-mini-app%2F-%2F%40walmart%2Flearning-mini-app-20.0.79.tgz"
peerDependencies:
"@react-native-firebase/analytics": 17.4.2
"@react-native-firebase/app": 17.4.2
@@ -8429,7 +8429,7 @@ __metadata:
reduxsauce: ^1.2.0
reselect: ^4.0.0
wifi-store-locator: ^1.0.0-alpha2
- checksum: 10c0/87345c780df13fb7d0344159b1d7c6ee16b7b10c1a15d6aca40aaf0fa4f3ca85952e5033f61fa33b7854e57df142a45ea1bb31b12eb6c42581d7c985f9311448
+ checksum: 10c0/cd4c38ed800a5af76f18cf52879e1c3df854c5db063d465701e862df3aae11bab0c82b2fa1421545c4a94a035f75fa7a6a72c0114f56687894a7f436f27a0f7d
languageName: node
linkType: hard
@@ -8668,7 +8668,7 @@ __metadata:
"@walmart/inbox-mini-app": "npm:0.102.2"
"@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12"
"@walmart/iteminfo-mini-app": "npm:8.6.1"
- "@walmart/learning-mini-app": "npm:20.0.78"
+ "@walmart/learning-mini-app": "npm:20.0.79"
"@walmart/manager-approvals-miniapp": "npm:0.3.7"
"@walmart/me-at-walmart-athena-queries": "npm:6.31.0"
"@walmart/me-at-walmart-common": "workspace:^"
| fix(learning): LEARNING-102114 Resolve the accessibility bugs (#4659) | fix(learning): LEARNING-102114 Resolve the accessibility bugs (#4659)
* feat: Incremeneted learning-mini-app to 20.0.79
* chore: add sr yml file for service regsitry configuration (#4436)
* chore: add sr yml file for service regsitry configuration
* chore: fixing sr yaml
* fix(sr.yaml): add slack channel and new consumer id
* fix(sr.yaml): add slack channel and new consumer id
---------
Co-authored-by: Aroushi Sharma <aroushi.sharma@walmart.com>
* Revert "chore: add sr yml file for service regsitry configuration (#4436)"
This reverts commit e82a82f5db4e9121fac9a0b8d277187e98c876e2.
---------
Co-authored-by: Dylan Lane - rlane1 <Russell.Lane@walmart.com>
Co-authored-by: Aroushi Sharma <aroushi.sharma@walmart.com>
Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com>
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> |
742d1d66b6d4306389130b153401cc5af0a089df | --- package-lock.json
@@ -3296,9 +3296,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.30.9",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.9.tgz",
- "integrity": "sha512-yiLrQ91DdPnCYLEgcJ0V7GBUjt+GBnGd7PwmcKBDc+Fk3L4rj1gB8J2o8MAY29Rww9e8BcFeYS3FsLJMwj2/nw==",
+ "version": "0.30.10",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.10.tgz",
+ "integrity": "sha512-xrrwrZHJAejUV+0tyLPgH2ISuBXRdbRHZPlbXM8LItM6g+bihyGB7ub1uMV09zG2rn5jcohZcyLzLcZS+SdydQ==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
--- package.json
@@ -67,7 +67,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.41",
"@walmart/allspark-home-mini-app": "0.4.24",
"@walmart/allspark-me-mini-app": "0.1.0",
- "@walmart/ask-sam-mini-app": "0.30.9",
+ "@walmart/ask-sam-mini-app": "0.30.10",
"@walmart/config-components": "^1.0.26",
"@walmart/counts-component-miniapp": "0.0.15",
"@walmart/exception-mini-app": "0.28.0",
| Update ask sam | Update ask sam
|
c39d9b1d82d58c2d6960a88cd5422e614f55a913 | --- package-lock.json
@@ -40,7 +40,7 @@
"@walmart/amp-mini-app": "1.1.48",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.13.4",
- "@walmart/attendance-mini-app": "1.44.0",
+ "@walmart/attendance-mini-app": "1.45.0",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.1",
"@walmart/copilot-mini-app": "1.77.9",
@@ -7991,9 +7991,9 @@
}
},
"node_modules/@walmart/attendance-mini-app": {
- "version": "1.44.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.44.0.tgz",
- "integrity": "sha512-ZaBoH8MC9MaJLWgDyb2zqJdBpgTp1KkGf607Nx5qjv2F8VB021p0UOICVbyJe6AZrcl4uWpODRXCDs7g0pFakA==",
+ "version": "1.45.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.45.0.tgz",
+ "integrity": "sha512-17FZR4yiE2VW/A8Ft2376TQEmVuCQQvMVB4PmyooCO1OJL/lgQCNrhle9hisPMNAQnLyDRZkABofPO5+90KuVA==",
"dependencies": {
"@walmart/gta-react-native-calendars": "^0.0.16",
"@walmart/wfm-ui": "^0.2.26",
@@ -33515,9 +33515,9 @@
}
},
"@walmart/attendance-mini-app": {
- "version": "1.44.0",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.44.0.tgz",
- "integrity": "sha512-ZaBoH8MC9MaJLWgDyb2zqJdBpgTp1KkGf607Nx5qjv2F8VB021p0UOICVbyJe6AZrcl4uWpODRXCDs7g0pFakA==",
+ "version": "1.45.0",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.45.0.tgz",
+ "integrity": "sha512-17FZR4yiE2VW/A8Ft2376TQEmVuCQQvMVB4PmyooCO1OJL/lgQCNrhle9hisPMNAQnLyDRZkABofPO5+90KuVA==",
"requires": {
"@walmart/gta-react-native-calendars": "^0.0.16",
"@walmart/wfm-ui": "^0.2.26",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/amp-mini-app": "1.1.48",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.13.4",
- "@walmart/attendance-mini-app": "1.44.0",
+ "@walmart/attendance-mini-app": "1.45.0",
"@walmart/compass-sdk-rn": "4.2.0",
"@walmart/config-components": "4.2.1",
"@walmart/copilot-mini-app": "1.77.9",
| ama v1.45.0 | ama v1.45.0
|
96dff3b6f32e19807337c8a9f403c6c21f30aa9f | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/roster-mini-app",
- "version": "1.0.0.alpha.1",
+ "version": "1.0.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/roster-mini-app",
- "version": "1.0.0.alpha.1",
+ "version": "1.0.1",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.20.0",
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "1.0.0.alpha.1",
+ "version": "1.0.1",
"private": false,
"main": "dist/index.js",
"files": [
| Update version | Update version
|
2da124d6619a1d787583f2c3eaec81ae606b662b | --- src/impersonation/ImpersonationScreen.tsx
@@ -51,13 +51,13 @@ export const ImpersonationScreen = (
const dispatch = useDispatch();
const {t} = useAllsparkTranslation();
- const userData = useSelector(UserSelectors.getData);
+ const user = useSelector(UserSelectors.getData);
const impersonated = useSelector(UserSelectors.getImpersonated);
const isGeoValidationDisabled = useSelector(
ClockAppSelectors.getGeoValidationDisabled,
);
- const [showDialog, setShowDialog] = useState(false);
+ const [showBottomsheet, setShowBottomsheet] = useState(false);
const {control, handleSubmit, setValue, getValues, formState} =
useForm<ImpersonationFormFields>({
@@ -78,10 +78,10 @@ export const ImpersonationScreen = (
);
useEffect(() => {
- if (impersonated && userData) {
- setValue('userId', userData.userId);
- setValue('siteId', userData.workingSite!);
- setValue('domain', DOMAINS.find((d) => d.code === userData.domain)!);
+ if (impersonated && user) {
+ setValue('userId', user.userId);
+ setValue('siteId', user.workingSite!);
+ setValue('domain', DOMAINS.find((d) => d.code === user.domain)!);
}
}, []);
@@ -89,12 +89,10 @@ export const ImpersonationScreen = (
dispatch(ClockAppActions.setDisableGeoValidation(!isGeoValidationDisabled));
};
- const showExitConfirmation = () => setShowDialog(true);
- const dismissExitConfirmation = () => setShowDialog(false);
+ const showExitConfirmation = () => setShowBottomsheet(true);
+ const dismissExitConfirmation = () => setShowBottomsheet(false);
const onStartImpersonation = async (data: ImpersonationFormFields) => {
- console.log('rlane1 - form data', data);
-
try {
const impersonatee = await startImpersonation({
userId: data.userId,
@@ -103,9 +101,6 @@ export const ImpersonationScreen = (
});
if (impersonatee) {
- const {memberOf, ...rest} = impersonatee;
- console.log('rlane1 - impersonatee', rest);
-
cacheImpersonationData(impersonatee);
ImpersonationTelemetry.logEvent('impersonation_selected', {
@@ -115,9 +110,9 @@ export const ImpersonationScreen = (
ImpersonationLogger.info('Impersonation success', {
requestBody: {
- division: userData?.division,
- employeeType: userData?.employeeType,
- siteId: userData?.siteId,
+ division: user?.division,
+ employeeType: user?.employeeType,
+ siteId: user?.siteId,
impersonatee_division: impersonatee?.division,
impersonatee_employeeType: impersonatee?.employeeType,
impersonatee_userId: encryptUserId(
@@ -142,12 +137,11 @@ export const ImpersonationScreen = (
dismissExitConfirmation();
clearImpersonationCache();
- dispatch(UserActionCreators.EXIT_IMPERSONATION());
-
removeImpersonationBanner();
+ dispatch(UserActionCreators.EXIT_IMPERSONATION());
ImpersonationTelemetry.logEvent('impersonation_stopped', {
- associate_type: userData?.employeeType ? userData?.employeeType : '',
+ associate_type: user?.employeeType || '',
domain: getValues().domain.code,
});
@@ -296,7 +290,7 @@ export const ImpersonationScreen = (
<BottomSheet
hideHeader={true}
- isOpen={showDialog}
+ isOpen={showBottomsheet}
onClose={dismissExitConfirmation}>
<>
<Heading size='small' UNSAFE_style={styles.headerText}>
| chore: remove console logs | chore: remove console logs
|
7407df6a32c60376e9b8155c86083ac8f9c8fc0c | --- src/constants.ts
@@ -10,7 +10,6 @@ export const WHOLE_STORE = 'WHOLESTORE';
export const PUSHTOTALK_SCREEN_NAME = 'myTeam.pushToTalk';
export const LOCAL_STORAGE_KEY_PREFIX = 'texting-';
export const SEVEN_DAYS_AGO_TIMESTAMP = daysAgoTimestamp(7);
-
// eslint-disable-next-line no-shadow
export enum messageTypes {
AUDIO = 'AUDIO',
--- src/presence/context.ts
@@ -8,3 +8,6 @@ export const PresenceContext = createContext<IPresenceContext>({
subscriptionOn: noop,
subscriptionOff: noop,
});
+
+interface IDoNotDisturbContext {}
+export const DoNotDisturbContext = createContext<IDoNotDisturbContext>({});
--- src/presence/provider.tsx
@@ -11,7 +11,7 @@ import {SiteSelectors} from '@walmart/redux-store';
import firestore from '@react-native-firebase/firestore';
import {PresenceState} from './types';
-import {PresenceContext} from './context';
+import {PresenceContext, DoNotDisturbContext} from './context';
import {createUserCollectionPath} from './utils';
/**
@@ -77,3 +77,8 @@ export const PresenceProvider = (props: PropsWithChildren<{}>) => {
</PresenceContext.Provider>
);
};
+
+export const DoNotDisturbController = ({children}: PropsWithChildren<{}>) => {
+ useEffect(() => )
+ return <DoNotDisturbController>{children}</DoNotDisturbController>;
+};
--- src/presence/service.ts
@@ -5,7 +5,7 @@ import AsyncStorage from '@react-native-community/async-storage';
import {LOCAL_STORAGE_KEY_PREFIX} from '../constants';
import {logger} from '../logger/Logger';
-export const OFFLINE_LIMIT = 12 * 60 * 60;
+export const OFFLINE_LIMIT = 12 * 60 * 60; //TODO: Make this configurable in CCM. Put in DND Provider
const LAST_OFFLINE_CACHE_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_dnd_last_offline`;
export const goOnlineForUser = (storeId: string, userId: string) => {
@@ -47,6 +47,15 @@ export const setLastOfflineTimeForAsyncStorage = async () => {
);
};
+/**
+ * Algo:
+ * 1. App starts up - check last offline timestamp
+ * 2. If last offline timestamp is not expired then check if timeLeft <= threshold.
+ * 3. If timeLeft <= threshold then start setInterval for goOnlineForUserIfOfflineTimeExpired method
+ * 4. After first fire of goOnlineForUserIfOfflineTimeExpired, cancel the timer
+ * Note: threshold value is average session time for user on app (2 minutes default) <-- make configurable in CCM
+ */
+
export const goOnlineForUserIfOfflineTimeExpired = async (
storeId: string,
userId: string,
--- src/constants.ts
@@ -10,7 +10,6 @@ export const WHOLE_STORE = 'WHOLESTORE';
export const PUSHTOTALK_SCREEN_NAME = 'myTeam.pushToTalk';
export const LOCAL_STORAGE_KEY_PREFIX = 'texting-';
export const SEVEN_DAYS_AGO_TIMESTAMP = daysAgoTimestamp(7);
-
// eslint-disable-next-line no-shadow
export enum messageTypes {
AUDIO = 'AUDIO',
--- src/presence/context.ts
@@ -8,3 +8,6 @@ export const PresenceContext = createContext<IPresenceContext>({
subscriptionOn: noop,
subscriptionOff: noop,
});
+
+interface IDoNotDisturbContext {}
+export const DoNotDisturbContext = createContext<IDoNotDisturbContext>({});
--- src/presence/provider.tsx
@@ -11,7 +11,7 @@ import {SiteSelectors} from '@walmart/redux-store';
import firestore from '@react-native-firebase/firestore';
import {PresenceState} from './types';
-import {PresenceContext} from './context';
+import {PresenceContext, DoNotDisturbContext} from './context';
import {createUserCollectionPath} from './utils';
/**
@@ -77,3 +77,8 @@ export const PresenceProvider = (props: PropsWithChildren<{}>) => {
</PresenceContext.Provider>
);
};
+
+export const DoNotDisturbController = ({children}: PropsWithChildren<{}>) => {
+ useEffect(() => )
+ return <DoNotDisturbController>{children}</DoNotDisturbController>;
+};
--- src/presence/service.ts
@@ -5,7 +5,7 @@ import AsyncStorage from '@react-native-community/async-storage';
import {LOCAL_STORAGE_KEY_PREFIX} from '../constants';
import {logger} from '../logger/Logger';
-export const OFFLINE_LIMIT = 12 * 60 * 60;
+export const OFFLINE_LIMIT = 12 * 60 * 60; //TODO: Make this configurable in CCM. Put in DND Provider
const LAST_OFFLINE_CACHE_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_dnd_last_offline`;
export const goOnlineForUser = (storeId: string, userId: string) => {
@@ -47,6 +47,15 @@ export const setLastOfflineTimeForAsyncStorage = async () => {
);
};
+/**
+ * Algo:
+ * 1. App starts up - check last offline timestamp
+ * 2. If last offline timestamp is not expired then check if timeLeft <= threshold.
+ * 3. If timeLeft <= threshold then start setInterval for goOnlineForUserIfOfflineTimeExpired method
+ * 4. After first fire of goOnlineForUserIfOfflineTimeExpired, cancel the timer
+ * Note: threshold value is average session time for user on app (2 minutes default) <-- make configurable in CCM
+ */
+
export const goOnlineForUserIfOfflineTimeExpired = async (
storeId: string,
userId: string,
| capturing algo | capturing algo
|
189fa3fa2eea193d31238402cf63da153aa8b8cd | --- package.json
@@ -1,5 +1,5 @@
{
- "name": "@walmart/feature-app-template-typescript",
+ "name": "@walmart/texting-miniapp",
"version": "2.0.0",
"private": false,
"main": "bundle/dist/index.js",
--- package.json
@@ -1,5 +1,5 @@
{
- "name": "@walmart/feature-app-template-typescript",
+ "name": "@walmart/texting-miniapp",
"version": "2.0.0",
"private": false,
"main": "bundle/dist/index.js",
| renaming npm package for project | renaming npm package for project
|
864a0de5b5b7fe7e9b0d467c658f809943128658 | --- .gitignore
@@ -50,4 +50,9 @@ ios/
#Yarn
install-state.gz
-build.context.json
\ No newline at end of file
+build.context.json
+
+# AI and development tools
+.context-registry/
+CLAUDE.md
+.ai-team-workspace/
\ No newline at end of file
| chore: add AI and development tools to .gitignore | chore: add AI and development tools to .gitignore
|
c23fbde28f5a544a83dabe8c955ca790eae37dae | --- package-lock.json
@@ -40,7 +40,7 @@
"@walmart/amp-mini-app": "1.1.59",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.15.4",
- "@walmart/attendance-mini-app": "1.62.6",
+ "@walmart/attendance-mini-app": "1.62.7",
"@walmart/compass-sdk-rn": "5.7.0",
"@walmart/config-components": "4.2.7",
"@walmart/copilot-mini-app": "2.3.19",
@@ -8002,9 +8002,9 @@
}
},
"node_modules/@walmart/attendance-mini-app": {
- "version": "1.62.6",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.6.tgz",
- "integrity": "sha512-swbFpWXbtL26SPZBSy+QtOQOKtK3fTLY/IYKt2DrI2OajrFrH5/5CdRevQ+o+Dg7pAKz4gsyDUg7oYULtsuMPQ==",
+ "version": "1.62.7",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.7.tgz",
+ "integrity": "sha512-lNeIxKhBqW7hBaSgJXc0sxdEwPtzAnn1IszYCKlzSleQPMC0x8xver6ZNxK19LmX9JA9XCXfWsjZNAPkcWk2QA==",
"dependencies": {
"@walmart/gta-react-native-calendars": "^0.0.16",
"@walmart/wfm-ui": "^0.2.26",
@@ -34162,9 +34162,9 @@
}
},
"@walmart/attendance-mini-app": {
- "version": "1.62.6",
- "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.6.tgz",
- "integrity": "sha512-swbFpWXbtL26SPZBSy+QtOQOKtK3fTLY/IYKt2DrI2OajrFrH5/5CdRevQ+o+Dg7pAKz4gsyDUg7oYULtsuMPQ==",
+ "version": "1.62.7",
+ "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.7.tgz",
+ "integrity": "sha512-lNeIxKhBqW7hBaSgJXc0sxdEwPtzAnn1IszYCKlzSleQPMC0x8xver6ZNxK19LmX9JA9XCXfWsjZNAPkcWk2QA==",
"requires": {
"@walmart/gta-react-native-calendars": "^0.0.16",
"@walmart/wfm-ui": "^0.2.26",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/amp-mini-app": "1.1.59",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.15.4",
- "@walmart/attendance-mini-app": "1.62.6",
+ "@walmart/attendance-mini-app": "1.62.7",
"@walmart/compass-sdk-rn": "5.7.0",
"@walmart/config-components": "4.2.7",
"@walmart/copilot-mini-app": "2.3.19",
| ama v1.62.7 Updated MyBalances component to get config from CCM | ama v1.62.7 Updated MyBalances component to get config from CCM
|
a263c0dfc5eec78aa2bbe4d85f7867c9a15583f4 | --- package-lock.json
@@ -5442,9 +5442,9 @@
}
},
"@walmart/price-changes-mini-app": {
- "version": "1.5.4",
- "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.5.4.tgz",
- "integrity": "sha512-JM5F79SxIgq0cE/oqeZg7jWAaByTcIClkOWOPqRJ8nHH361keqSng3e5GiqXUYrpRHjKs4g87D1EImYvYfF8jw=="
+ "version": "1.5.4-alpha",
+ "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.5.4-alpha.tgz",
+ "integrity": "sha512-Qvxqr8VYrG4Hcad76gzu86ngkD6C0d3/Iu538r/mcxBDHCt0GS2kisV0mXF+rTlTpKEnW5mYLBqe44bmXFpswA=="
},
"@walmart/profile-feature-app": {
"version": "0.0.71",
| Bump price changes to 1.5.4-alpha | Bump price changes to 1.5.4-alpha
|
038902836c89cee2fc051a6073d381fdd5bb574e | --- package-lock.json
@@ -83,7 +83,7 @@
"@walmart/returns-mini-app": "3.9.0",
"@walmart/schedule-mini-app": "0.55.0",
"@walmart/shelfavailability-mini-app": "1.5.17",
- "@walmart/taskit-mini-app": "2.49.6",
+ "@walmart/taskit-mini-app": "2.49.7",
"@walmart/texting-mini-app": "2.0.40",
"@walmart/time-clock-mini-app": "2.175.2",
"@walmart/topstock-mini-app": "1.3.3",
@@ -9659,9 +9659,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "2.49.6",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.49.6.tgz",
- "integrity": "sha512-pBbJQNGMoF4uGHy9U3r1x+kSmoDsT03W5q1TaPXBxBWLXVjQQda8Fv4Gki8cHNPs7DjNoPfsxhsc3N0NS76HYw==",
+ "version": "2.49.7",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.49.7.tgz",
+ "integrity": "sha512-veasL4eZwplZw9C9KM7OsjTjSd9AImk2m+lifS53XuQOkhmEkWX0DuG/2yZFTe1cxa3evFJbLvuCKIZCzKPrdQ==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -33525,9 +33525,9 @@
"integrity": "sha512-8QEs//QA9txDVmgmIFhk+9mUSZw3zn2b+9PVGB0xyyAyKZn8+LbzpMqZTuzawF1PmFqfy/UAnMdhsuS80fikIg=="
},
"@walmart/taskit-mini-app": {
- "version": "2.49.6",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.49.6.tgz",
- "integrity": "sha512-pBbJQNGMoF4uGHy9U3r1x+kSmoDsT03W5q1TaPXBxBWLXVjQQda8Fv4Gki8cHNPs7DjNoPfsxhsc3N0NS76HYw=="
+ "version": "2.49.7",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.49.7.tgz",
+ "integrity": "sha512-veasL4eZwplZw9C9KM7OsjTjSd9AImk2m+lifS53XuQOkhmEkWX0DuG/2yZFTe1cxa3evFJbLvuCKIZCzKPrdQ=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -124,7 +124,7 @@
"@walmart/returns-mini-app": "3.9.0",
"@walmart/schedule-mini-app": "0.55.0",
"@walmart/shelfavailability-mini-app": "1.5.17",
- "@walmart/taskit-mini-app": "2.49.6",
+ "@walmart/taskit-mini-app": "2.49.7",
"@walmart/texting-mini-app": "2.0.40",
"@walmart/time-clock-mini-app": "2.175.2",
"@walmart/topstock-mini-app": "1.3.3",
| Updated taskit version | Updated taskit version
|
28f4e8bbc0fe9d1acd4d51027933b0d12c834462 | --- src/navigation/AssociateHallwayNav/MainStackNav.tsx
@@ -99,7 +99,23 @@ export const MainStackNav = () => {
...TransitionPresets.SlideFromRightIOS,
presentation: 'modal',
header: Header,
- }}>
+ }}
+ screenListeners={({navigation}) => ({
+ state: (e) => {
+ const currentState = e.data?.state?.routes;
+ const isItemInfoActive = currentState?.find(
+ (routeData: any) => routeData.name === 'itemInfo',
+ );
+ if (isItemInfoActive) {
+ const isItemInfoQuickActionSelected = currentState?.find(
+ (routeData: any) => routeData.name === 'itemInfoQuickAction',
+ );
+ if (isItemInfoQuickActionSelected) {
+ navigation.goBack();
+ }
+ }
+ },
+ })}>
{/* These screens already have Header defined. We do not show one from Core */}
<MainStack.Group screenOptions={{headerShown: false}}>
<MainStack.Screen name='tabs' component={MainTabsNav} />
| Fix scan twice bug, but with flash | Fix scan twice bug, but with flash
|
e3a0fd1e1f6ebac85318c6c7ebb2e8461f5c13af | --- package-lock.json
@@ -3228,9 +3228,9 @@
"integrity": "sha512-R+Kkr3KRExpa59xqPkVPF66+zGo88oZiqbfFx+BzrIJE6eUTUKTGCeiidVci+xjmfSnp6TKrMUkRBxh2b/GffA=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.1.54",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.54.tgz",
- "integrity": "sha512-knJBm8r/bD+F2cQ4zBaNPZ9sFk0qmVpgXdnPX6QhB3FOGys1PSvUVyU8jBXaixVuHhEMiTtXwaXYP9sNMylG4A==",
+ "version": "0.1.55",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.55.tgz",
+ "integrity": "sha512-P6N5OFs5klRAAPBsiYizFwtl8E+2OJzFXfthhBfYUmlP7Sy7CqfsQRJb11aCpMWnEkJtk3LYL4/R1OSz+Vbccw==",
"requires": {
"@react-native-community/datetimepicker": "^3.0.3",
"javascript-time-ago": "^2.3.4",
--- package.json
@@ -77,7 +77,7 @@
"@walmart/redux-store": "^1.0.12",
"@walmart/schedule-mini-app": "0.2.67",
"@walmart/settings-mini-app": "1.1.20",
- "@walmart/time-clock-mini-app": "0.1.54",
+ "@walmart/time-clock-mini-app": "0.1.55",
"@walmart/ui-components": "1.0.102",
"@walmart/welcomeme-mini-app": "0.5.27",
"crypto-js": "^3.3.0",
| Caching tor support data on client (#483) | Caching tor support data on client (#483)
|
c3691c9571cdcbeafc12bf9a25f9fb5dd135ba13 | --- package.json
@@ -128,7 +128,7 @@
"@types/seamless-immutable": "^7.1.16",
"@types/semver": "^7.3.4",
"@types/uuid": "^8.3.0",
- "@walmart/allspark-foundation": "6.17.0-alpha.3",
+ "@walmart/allspark-foundation": "6.17.0-alpha.4",
"@walmart/allspark-graphql-client": "~6.3.20",
"@walmart/allspark-http-client": "~6.3.20",
"@walmart/allspark-utils": "~6.5.0",
--- targets/US/package.json
@@ -77,7 +77,7 @@
"@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch",
"@walmart/allspark-authentication": "~6.4.1",
"@walmart/allspark-cope-key-listener": "0.0.17",
- "@walmart/allspark-foundation": "6.17.0-alpha.3",
+ "@walmart/allspark-foundation": "6.17.0-alpha.4",
"@walmart/allspark-graphql-client": "~6.3.20",
"@walmart/allspark-http-client": "~6.3.20",
"@walmart/allspark-neon-core": "0.1.31",
--- yarn.lock
@@ -5403,9 +5403,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation@npm:6.17.0-alpha.3":
- version: 6.17.0-alpha.3
- resolution: "@walmart/allspark-foundation@npm:6.17.0-alpha.3"
+"@walmart/allspark-foundation@npm:6.17.0-alpha.4":
+ version: 6.17.0-alpha.4
+ resolution: "@walmart/allspark-foundation@npm:6.17.0-alpha.4"
dependencies:
"@apollo/client": "npm:^3.8.6"
"@graphql-codegen/cli": "npm:^5.0.0"
@@ -5415,7 +5415,7 @@ __metadata:
"@graphql-codegen/typescript-react-apollo": "npm:^4.1.0"
"@reduxjs/toolkit": "npm:^1.9.7"
"@types/node-fetch": "npm:^2.6.9"
- "@walmart/allspark-utils": "npm:^6.5.1"
+ "@walmart/allspark-utils": "npm:^6.5.0"
axios: "npm:~1.6.0"
axios-cache-interceptor: "npm:^1.3.2"
crypto-js: "npm:~4.2.0"
@@ -5498,7 +5498,7 @@ __metadata:
allspark-generate-graphql: cli/generate.js
allspark-link: cli/link.js
allspark-setup: cli/setup.js
- checksum: 10c0/a8b7243a97b57946c98de3cbfbfedaa12a23064893824e2596ac98dc126a6fc2813900e39de70f87f38e3e698d4d4a27d359084092bb7de0f796a2cddeea317f
+ checksum: 10c0/bb85840543864dd3e07bd890b89fc4282c860b1be9214c48acc86c46f423de68db6a8116be06c01432d8603f00ae0130c387d5e74c4a7715c63e7a88533a6332
languageName: node
linkType: hard
@@ -6805,7 +6805,7 @@ __metadata:
"@types/uuid": "npm:^8.3.0"
"@walmart/allspark-authentication": "npm:~6.4.1"
"@walmart/allspark-cope-key-listener": "npm:0.0.17"
- "@walmart/allspark-foundation": "npm:6.17.0-alpha.3"
+ "@walmart/allspark-foundation": "npm:6.17.0-alpha.4"
"@walmart/allspark-graphql-client": "npm:~6.3.20"
"@walmart/allspark-http-client": "npm:~6.3.20"
"@walmart/allspark-neon-core": "npm:0.1.31"
| chore: bumping foundation to latest release | chore: bumping foundation to latest release
|
543b4b11230378b5bf60bca0f86c091181d11bb3 | --- .yarn/patches/@walmart-native-rfid-scanner-npm-3.10.10-75b9715617.patch
@@ -0,0 +1,13 @@
+diff --git a/native-rfid-scanner.podspec b/native-rfid-scanner.podspec
+index 852d4101293dba30d5fdd80a9854dcc97c4dc286..9bf49b653b5e687ef7888bcb3e344ddd9f653d8d 100644
+--- a/native-rfid-scanner.podspec
++++ b/native-rfid-scanner.podspec
+@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
+ s.platforms = { :ios => "10.0" }
+ s.source = { :git => "https://gecgithub01.walmart.com/SSAEIM/rfid-scan-mini-app.git", :tag => "#{s.version}" }
+
+- s.source_files = "ios/**/*.{h,m,mm,swift}"
++ s.source_files = "ios/*.{h,m,mm,swift}, ios/decoders/*.{h,m,mm,swift}, ios/managers/*.{h,m,mm,swift}, ios/scanners/*.{h,m,mm,swift}, ios/symbolrfid-sdk/ZebraRfidSdkFramework.xcframework/ios-arm64/ZebraRfidSdkFramework.framework/Headers/*.{h,m,mm,swift}, ios/utils/*.{h,m,mm,swift}"
+ s.ios.vendored_frameworks = "ios/symbolrfid-sdk/ZebraRfidSdkFramework.xcframework"
+ s.resources = "ios/resources/*.mp3"
+
--- app.config.US.ts
@@ -244,6 +244,9 @@ const CONFIG: ExpoConfig = {
backgroundColor: "#ffffff",
image: Environment.select({
prod: `${__dirname}/assets/images/splash.png`,
+ beta: `${__dirname}/assets/images/splash-beta.png`,
+ teflon: `${__dirname}/assets/images/splash-beta.png`,
+ dev: `${__dirname}/assets/images/splash-beta.png`,
default: `${__dirname}/assets/images/splash-beta.png`,
}),
},
--- jest.config.js
@@ -23,9 +23,6 @@ module.exports = {
lines: 5,
},
},
- // transform: {
- // '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', {rootMode: 'upward'}],
- // },
moduleNameMapper: {
'@walmart/ui-components/(.*)':
'<rootDir>/__tests__/__mocks__/@walmart/ui-components.js',
--- package.json
@@ -104,6 +104,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.1.22",
"@walmart/myteam-mini-app": "1.12.0",
+ "@walmart/native-rfid-scanner": "patch:@walmart/native-rfid-scanner@npm%3A3.10.10#~/.yarn/patches/@walmart-native-rfid-scanner-npm-3.10.10-75b9715617.patch",
"@walmart/onewalmart-miniapp": "1.0.24",
"@walmart/pay-stub-miniapp": "0.15.3",
"@walmart/payrollsolution_miniapp": "0.141.17",
--- src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx
@@ -53,7 +53,7 @@ import {
// eslint-disable-next-line import/no-unresolved
import {App as ReceiptCheckMiniApp} from '@walmart/receipt-check-miniapp';
import {ReturnsMiniApp} from '@walmart/returns-mini-app';
-// import RfidScanMiniApp from '@walmart/rfid-scan-mini-app';
+import RfidScanMiniApp from '@walmart/rfid-scan-mini-app';
import ReceivingRootApp from '@walmart/rn-receiving-mini-app';
import {ShelfAvailabilityMiniApp} from '@walmart/shelfavailability-mini-app';
import {GNFRApp} from '@walmart/shop-gnfr-mini-app';
@@ -199,15 +199,15 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [
},
clockCheckEnabled: true,
},
- // {
- // featureId: 'rfid',
- // name: 'RfidScan',
- // component: RfidScanMiniApp,
- // options: {
- // headerShown: false,
- // },
- // clockCheckEnabled: true,
- // },
+ {
+ featureId: 'rfid',
+ name: 'RfidScan',
+ component: RfidScanMiniApp,
+ options: {
+ headerShown: false,
+ },
+ clockCheckEnabled: true,
+ },
{
featureId: MINI_APPS.TASKIT,
name: 'taskItQuickActions',
--- yarn.lock
@@ -6875,6 +6875,26 @@ __metadata:
languageName: node
linkType: hard
+"@walmart/native-rfid-scanner@npm:3.10.10":
+ version: 3.10.10
+ resolution: "@walmart/native-rfid-scanner@npm:3.10.10"
+ peerDependencies:
+ react: "*"
+ react-native: "*"
+ checksum: 10c0/9ca3bac6e620888d1c770ed4507c1a7f0d58838aafa21ee80c64a45d73c8939ffa1f130281ae0a48f6fcf25acee1aff3c3cbed8d8ff71c36e9d5ffb8f5295e3c
+ languageName: node
+ linkType: hard
+
+"@walmart/native-rfid-scanner@patch:@walmart/native-rfid-scanner@npm%3A3.10.10#~/.yarn/patches/@walmart-native-rfid-scanner-npm-3.10.10-75b9715617.patch":
+ version: 3.10.10
+ resolution: "@walmart/native-rfid-scanner@patch:@walmart/native-rfid-scanner@npm%3A3.10.10#~/.yarn/patches/@walmart-native-rfid-scanner-npm-3.10.10-75b9715617.patch::version=3.10.10&hash=421d71"
+ peerDependencies:
+ react: "*"
+ react-native: "*"
+ checksum: 10c0/3be05365d2884579c9c1e74ae3a3590d8f61404ad4448309db8f06785b3fdf9bf4736c641b6ae2f360719fcdbedba72a9a2d5bfe75c902ae0530548047940926
+ languageName: node
+ linkType: hard
+
"@walmart/onewalmart-miniapp@npm:1.0.24":
version: 1.0.24
resolution: "@walmart/onewalmart-miniapp@npm:1.0.24"
@@ -8095,6 +8115,7 @@ __metadata:
"@walmart/moment-walmart": "npm:1.0.4"
"@walmart/money-auth-shared-components": "npm:0.1.22"
"@walmart/myteam-mini-app": "npm:1.12.0"
+ "@walmart/native-rfid-scanner": "patch:@walmart/native-rfid-scanner@npm%3A3.10.10#~/.yarn/patches/@walmart-native-rfid-scanner-npm-3.10.10-75b9715617.patch"
"@walmart/onewalmart-miniapp": "npm:1.0.24"
"@walmart/pay-stub-miniapp": "npm:0.15.3"
"@walmart/payrollsolution_miniapp": "npm:0.141.17"
| fix: native rfid scanner ios build error. enable rfid mini app | fix: native rfid scanner ios build error. enable rfid mini app
|
bbe23351a5f44f1a6122e7a7a9160ba4b3252245 | --- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "2.1.0",
+ "version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/myteam-mini-app",
- "version": "2.1.0",
+ "version": "1.0.0",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.20.0",
| merging develop | merging develop
|
913a091d1f8372aa2fb01ab9a2b6dffa91daab87 | --- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/HubHeader/HubHeader.tsx
@@ -68,7 +68,7 @@ export const RosterPageHeader = ({
)}
</View>
{links.map(({ label, onPress, Icon }) => (
- <TouchableOpacity style={styles.linkContainer}>
+ <TouchableOpacity onPress={onPress} style={styles.linkContainer}>
{Icon}
<Link
testID='pageHeader-textlink'
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/HubHeader/types.ts
@@ -13,7 +13,7 @@ export default interface RosterHeaderProps extends RightPanelConfig {
links?: Array<{
label: string;
onPress: () => void;
- Icon: React.ReactElement;
+ Icon?: React.ReactElement;
}>;
backgroundColorOverride?: { backgroundColor: string };
fontSize?: number;
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/EditSavedTeamModal/EditSavedTeamsModal.tsx
@@ -39,6 +39,8 @@ export const EditSavedTeamsModal = ({ modal }: ModalProps) => {
t.title.toLowerCase().includes(input.toLowerCase())
);
setSearchedsections(searched);
+ } else {
+ setSearchedsections(sortedSections);
}
},
[sortedSections, input]
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx
@@ -41,6 +41,8 @@ export const OnboardingScreen = () => {
t.title.toLowerCase().includes(input.toLowerCase())
);
setSearchedsections(searched);
+ } else {
+ setSearchedsections(sortedSections);
}
},
[sortedSections, input]
@@ -102,10 +104,16 @@ export const OnboardingScreen = () => {
<ScrollView contentContainerStyle={styles.rootContainer}>
<RosterPageHeader
title={t('dashboard.header.title')}
- subText={t('dashboard.header.title')}
- imageContent={Images['0000000']} // replace once we have image from allspark-images
+ subText={t('dashboard.header.subTitle')}
+ imageContent={Images['0000000']}
backgroundColorOverride={styles.headerContainer}
fontSize={24}
+ links={[
+ {
+ label: t('dashboard.skipLink'),
+ onPress: handleSaveButton,
+ },
+ ]}
/>
<Divider />
<View style={styles.filterList}>
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts
@@ -56,6 +56,7 @@ export const enUS = {
'Star teams you’re interested in, then save. If none are selected, you’ll see data for your entire site.',
},
buttonTitle: 'Save and go to my hub',
+ skipLink: 'Skip for now and go to my hub',
},
updateTeamsModal: {
title: 'Update teams',
@@ -131,6 +132,7 @@ export const esMX: typeof enUS = {
'Marca los equipos que te interesen y guarda. Si no se selecciona ninguno, verás los datos de todo el sitio.',
},
buttonTitle: 'Guardar e ir a mi centro',
+ skipLink: 'Skip for now and go to my hub',
},
updateTeamsModal: {
title: 'Update teams',
| feat(ui): added skip, fixed search logic | feat(ui): added skip, fixed search logic
|
4c78f4fa78bc4655e249087fb9b26f2695353906 | --- packages/allspark-foundation/src/User/devtools/ImpersonationPlugin.ts
@@ -7,6 +7,7 @@ import { UserActionTypes } from '../redux';
import { ImpersonationScreen } from './ImpersonationScreen';
import { checkPreviousImpersonation, onUpdateUser } from './utils';
+
/**
* Impersonation Plugin
* Allows developers to impersonate another user
--- packages/allspark-foundation/src/User/devtools/utils.ts
@@ -3,8 +3,8 @@ import { EnvironmentModule } from '../../Environment';
import { LocalStorageModule } from '../../LocalStorage';
import { LoggerModule } from '../../Logger';
import { ReduxModule } from '../../Redux';
-import { TranslationModule } from '../../Translation';
import { TelemetryModule } from '../../Telemetry';
+import { TranslationModule } from '../../Translation';
import {
IUserActions,
User,
@@ -111,9 +111,14 @@ export const clearImpersonationCache = async () => {
};
export const addImpersonationBanner = () => {
+ const {t} = TranslationModule.client;
+
AllsparkAlerts.add('impersonation', {
type: 'alert',
- value: TranslationModule.client.t('ImpersonationBanner.message'),
+ value: t('ImpersonationBanner.message', {
+ defaultValue: "Impersonation mode",
+ fallbackLng: 'en-US',
+ }),
variant: 'info',
closable: false,
});
| fix: impersonation banner translation (#467) | fix: impersonation banner translation (#467)
* fix: impersonation banner translation
* fix: post pr review
* fix: test
* Update utils.ts
---------
Co-authored-by: Dylan Lane - rlane1 <Russell.Lane@walmart.com> |
bc6b7dc5691509dba3aa5f3cc76ef4d3319f7f73 | --- src/codeOfConduct/provider.tsx
@@ -24,7 +24,7 @@ export const CodeOfConductProvider = (props: PropsWithChildren<{}>) => {
const [isAcknowledged, setIsAcknowledged] = useState(true);
const [isModalVisible, setIsModalVisible] = useState(false);
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
- const userId: string = useSelector(UserSelectors.getOriginalUserId);
+ const userId: string = useSelector(UserSelectors.getUserId);
const originalUser: UserType = useSelector(UserSelectors.getOriginalUser);
const deviceInfo: DeviceInfoType = useSelector(
DeviceInfoSelectors.getDeviceInfo,
--- src/codeOfConduct/service.ts
@@ -1,5 +1,6 @@
import {TextingApi} from '../services/TextingApi';
import {logger} from '../logger/Logger';
+import moment from 'moment-timezone';
const CODE_OF_CONDUCT_ENDPOINT =
'/directedvoice/ptt/v1/codeofconduct/CodeOfConduct/';
@@ -24,7 +25,7 @@ export const acknowledgeUser = async (userId: string, metadata: any) => {
data: {
userId,
isAcknowledged: true,
- ackTs: new Date(),
+ ackTs: moment().unix(),
metadata,
},
});
--- src/codeOfConduct/provider.tsx
@@ -24,7 +24,7 @@ export const CodeOfConductProvider = (props: PropsWithChildren<{}>) => {
const [isAcknowledged, setIsAcknowledged] = useState(true);
const [isModalVisible, setIsModalVisible] = useState(false);
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
- const userId: string = useSelector(UserSelectors.getOriginalUserId);
+ const userId: string = useSelector(UserSelectors.getUserId);
const originalUser: UserType = useSelector(UserSelectors.getOriginalUser);
const deviceInfo: DeviceInfoType = useSelector(
DeviceInfoSelectors.getDeviceInfo,
--- src/codeOfConduct/service.ts
@@ -1,5 +1,6 @@
import {TextingApi} from '../services/TextingApi';
import {logger} from '../logger/Logger';
+import moment from 'moment-timezone';
const CODE_OF_CONDUCT_ENDPOINT =
'/directedvoice/ptt/v1/codeofconduct/CodeOfConduct/';
@@ -24,7 +25,7 @@ export const acknowledgeUser = async (userId: string, metadata: any) => {
data: {
userId,
isAcknowledged: true,
- ackTs: new Date(),
+ ackTs: moment().unix(),
metadata,
},
});
| fix code of conduct parameter change | fix code of conduct parameter change
|
3a2708ae6ea0343b62678a332d1b3c137c1be33e | --- 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.3",
+ "@walmart/taskit-mini-app": "4.1.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.3":
- version: 3.2.3
- resolution: "@walmart/taskit-mini-app@npm:3.2.3"
- checksum: 10c0/40e569e4d728901df975fa1b3c16537bbe385960d816d70c9f859bd99c33854730ce4e960c7b4df0f1bd00466fc57b14917054b206be542433e4fb2f493c2903
+"@walmart/taskit-mini-app@npm:4.1.0":
+ version: 4.1.0
+ resolution: "@walmart/taskit-mini-app@npm:4.1.0"
+ peerDependencies:
+ "@walmart/allspark-foundation": "*"
+ checksum: 10c0/34885d9f5f8ff20d9a34d5b2af9cb1f812994d462e4468a5752590f49bccc02657c11b281d8cd16b2d21078f95745534ac9aa1a74f1bd1d4b0800d978255fe50
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.3"
+ "@walmart/taskit-mini-app": "npm:4.1.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-mini-app@4.1.0 | chore: bump taskit-mini-app@4.1.0
|
91d75b7d13c6d2dc8b2fbb62c282374bc9d1b709 | --- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Component/ErrorScreen.tsx
@@ -2,7 +2,7 @@ import { Button, ErrorMessage } from '@walmart/gtp-shared-components/dist';
import React from 'react';
import { errorScreenStyles as styles } from '../styles';
import { View } from 'react-native';
-import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context';
+import { useAllsparkImage } from '../../../../Components/context';
export interface ErrorScreenProps {
errorTitle: string;
| Merge changes | Merge changes
|
d9a42eb183b6a58e1d8b3a166eeb5367d69a78d4 | --- __tests__/harness/redux/mockState/userState.ts
@@ -1,3 +1,4 @@
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
const {User, UserState} = require('@walmart/allspark-foundation/User');
const {hourlyUserData} = require('./mockUsers/hourlyUser');
const {peopleLeadUserData} = require('./mockUsers/peopleLead');
--- __tests__/services/TextingApi.test.ts
@@ -260,6 +260,7 @@ describe('TextingApi', () => {
url: 'https://example.com/api-proxy/service/directedvoice/ptt/v1/textingnotificationservice/notifyRecipients',
}),
);
+ console.log('error', error);
expect(logger.error).toHaveBeenCalledTimes(0); // TODO: Fix this
}
});
--- scripts/runWithVariablePrompt.ts
@@ -59,6 +59,7 @@ const isPortInUse = (port: number): boolean => {
return result.length > 0; // If there's any output, the port is in use
} catch (e) {
// If the command fails, assume the port is free
+ console.log('Error', e);
return false;
}
};
@@ -355,7 +356,7 @@ const getIOSSimulators = (): IOSDevice[] => {
}
}
} catch (error) {
- console.log('No physical iOS devices detected');
+ console.log(`No physical iOS devices detected ${error}`);
}
return simulators;
@@ -395,9 +396,11 @@ const getAndroidEmulators = (): AndroidDevice[] => {
version = apiMatch[1];
}
} catch (e) {
+ console.log('Error', e);
// Silently fail and continue with unknown version
}
} catch (e) {
+ console.log('Error', e);
// If we can't get the version, continue with unknown
}
@@ -411,7 +414,7 @@ const getAndroidEmulators = (): AndroidDevice[] => {
}
} catch (e) {
console.log(
- 'Android emulator command not found, skipping emulator detection',
+ `Android emulator command not found, skipping emulator detection ${e}`,
);
}
@@ -459,6 +462,7 @@ const getAndroidEmulators = (): AndroidDevice[] => {
});
} catch (e) {
// If we can't get the detailed info, add with just the device ID
+ console.log('Error', e);
devices.push({
name: `Device ${deviceId} [Real Device]`,
id: deviceId,
@@ -468,7 +472,7 @@ const getAndroidEmulators = (): AndroidDevice[] => {
}
}
} catch (e) {
- console.log('ADB command not found or no physical devices connected');
+ console.log(`ADB command not found or no physical devices connected ${e}`);
}
return devices;
@@ -768,7 +772,7 @@ inquirer
}
} catch (e) {
console.log(
- 'Failed to start emulator automatically, will try to use running devices',
+ `Failed to start emulator automatically, will try to use running devices ${e}`,
);
}
--- src/containers/ChatInput/AudioPlayback.tsx
@@ -56,7 +56,7 @@ export const AudioPlayback = (props: {
SoundRef.current = Sound.sound;
} catch (e) {
logger.error('audio error', {
- message: `'error while loading audio from uri: ${audio.uri}'`,
+ message: `'error while loading audio from uri: ${audio.uri} ${e}'`,
});
}
};
--- src/containers/ChatInput/hooks.ts
@@ -149,7 +149,7 @@ export const useDocumentSubscriptionSnapshot =
} catch (e) {
// firestore/not-found: channel document doesn't exist yet.
logger.error('firestore error', {
- message: 'channel document does not exist',
+ message: `channel document does not exist ${e}`,
channelId: channelInfo.channelData!.id,
});
}
--- src/modals/MessagesScreen.tsx
@@ -560,7 +560,7 @@ export const MessagesScreen = ({
} catch (e) {
// firestore/not-found: channel document doesn't exist yet.
logger.error('firestore error', {
- message: 'channel document does not exist',
+ message: `channel document does not exist ${e}`,
channelId: channelId as string,
});
}
--- src/services/TextingApi.ts
@@ -165,7 +165,7 @@ export const fetchSasToken = async (store: string, countryCode: string) => {
return responseData.response;
}
} catch (error) {
- logger.error('texing blob', {message: 'error while fetching sasToken'});
+ logger.error('texing blob', {message: `error while fetching sasToken: ${error}`});
}
return '';
--- src/utils/blob.ts
@@ -1,5 +1,6 @@
import {Platform} from 'react-native';
import * as FileSystem from 'expo-file-system';
+import {logger} from '../common/logger';
import moment from 'moment-timezone';
// --- Local Blob Storage --- //
@@ -39,6 +40,10 @@ export const fileExists = async (uri: string) => {
const file = await FileSystem.getInfoAsync(uri);
return file.exists;
} catch (e) {
+ logger.error('fileExists error', {
+ message: `error checking if file exists: ${e}`,
+ uri
+ });
return false;
}
};
| fix(ui): fixing lint errors | fix(ui): fixing lint errors
|
729cc0c8061ba87a2378fd9732b2c5af490c6f04 | --- .yarn/plugins/plugin-setup-husky.cjs
@@ -2,9 +2,9 @@ module.exports = {
name: 'plugin-setup-husky',
factory: (require) => {
"use strict"
- const fs = require('node:fs')
+ const fs = require('fs')
const {resolve} = require('path')
- const {exec} = require('node:child_process')
+ const {exec} = require('child_process')
return {
default: {
--- package.json
@@ -73,7 +73,7 @@
"@sharcoux/slider": "^6.1.1",
"@shopify/flash-list": "1.6.4",
"@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch",
- "@walmart/allspark-authentication": "~6.4.9",
+ "@walmart/allspark-authentication": "~6.4.10",
"@walmart/allspark-cope-key-listener": "0.0.18",
"@walmart/allspark-foundation": "6.32.0",
"@walmart/allspark-foundation-hub": "1.4.2",
--- yarn.lock
@@ -7047,9 +7047,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-authentication@npm:~6.4.9":
- version: 6.4.9
- resolution: "@walmart/allspark-authentication@npm:6.4.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-authentication%2F-%2F%40walmart%2Fallspark-authentication-6.4.9.tgz"
+"@walmart/allspark-authentication@npm:~6.4.10":
+ version: 6.4.10
+ resolution: "@walmart/allspark-authentication@npm:6.4.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-authentication%2F-%2F%40walmart%2Fallspark-authentication-6.4.10.tgz"
dependencies:
"@walmart/allspark-utils": "npm:^6.5.4"
lodash: "npm:~4.17.21"
@@ -7059,7 +7059,7 @@ __metadata:
react: "*"
react-native: "*"
react-native-app-auth: ">=6"
- checksum: 10c0/54465578fbc8397e3a27ab4ae5a756515957156e964d4700869b3a77634370d8fd8f962bc4fa785ad8b06c87ded25dfdae771086cfe340a62cb5aca26efc4376
+ checksum: 10c0/5c09bd78959cb5dca5f9f5edff360fad521cc71008b473dace865f7a9be2fb3e7690a3b426cd2ee685ceb0a303154003e4daf33d4caa081eb335cf8cdf5e0c68
languageName: node
linkType: hard
@@ -8308,7 +8308,7 @@ __metadata:
"@types/react": "npm:~18.2.45"
"@types/react-native-vector-icons": "npm:6.4.18"
"@types/react-test-renderer": "npm:^18.0.7"
- "@walmart/allspark-authentication": "npm:~6.4.9"
+ "@walmart/allspark-authentication": "npm:~6.4.10"
"@walmart/allspark-cope-key-listener": "npm:0.0.18"
"@walmart/allspark-foundation": "npm:6.32.0"
"@walmart/allspark-foundation-hub": "npm:1.4.2"
| fix(package.json): ALLSPARK-5095 update auth lib and remove node prefix (#4137) | fix(package.json): ALLSPARK-5095 update auth lib and remove node prefix (#4137)
|
189d7f8343cf221ebc06c2432b605e7379af4c06 | --- __tests__/navConfig/NavConfigSagasTest.ts
@@ -34,6 +34,8 @@ import {
getUserSite,
waitForSiteConfig,
waitForUser,
+ getOriginalUserEmployeeType,
+ getOriginalUserDomain,
} from '../../src/redux';
import {
getSiteConfigDivisonCode,
@@ -75,6 +77,8 @@ const mockScope = {
env: 'dev',
userId: 'swalton3',
country: 'US',
+ employeeType: 'S',
+ domain: 'store/club',
};
describe('nav config sagas', () => {
@@ -148,6 +152,8 @@ describe('nav config sagas', () => {
call(DeviceInfo.getVersion),
call(DeviceInfo.getBundleId),
select(getDeviceType),
+ select(getOriginalUserEmployeeType),
+ select(getOriginalUserDomain),
]),
);
const {value, done} = iterator.next([
@@ -160,6 +166,8 @@ describe('nav config sagas', () => {
'1.0.8',
'com.walmart.stores.allspark.beta',
'COPIUM',
+ 'S',
+ 'store/club',
]);
expect(value).toEqual(mockScope);
--- src/navConfig/NavConfigSagas.ts
@@ -17,6 +17,8 @@ import {
getUserCountryCode,
getUserId,
getUserSite,
+ getOriginalUserEmployeeType,
+ getOriginalUserDomain,
} from '../redux/UserSelector';
import {waitForSiteConfig, waitForUser} from '../redux/SharedSagas';
import {
@@ -71,6 +73,8 @@ export function* getNavConfigScope(): any {
appVersion,
bundleId,
deviceType,
+ employeeType,
+ domain,
] = yield all([
select(getUserId),
select(getUserSite),
@@ -81,6 +85,8 @@ export function* getNavConfigScope(): any {
call(DeviceInfo.getVersion),
call(DeviceInfo.getBundleId),
select(getDeviceType),
+ select(getOriginalUserEmployeeType),
+ select(getOriginalUserDomain),
]);
return {
@@ -94,6 +100,8 @@ export function* getNavConfigScope(): any {
deviceType,
bundleId,
env: env.deployment,
+ employeeType,
+ domain,
};
}
| adding employee type and domain to nav config | adding employee type and domain to nav config
|
580b54afbe851c40d267bc6da66882c06d074024 | --- src/auth/ErrorScreen.tsx
@@ -58,7 +58,7 @@ export const ErrorScreen: FC<any> = (props) => {
);
logger.error('SSO error while Login', {
message: detail || 'no details entered by the user',
- userId: encryptUserId(userId, siteId),
+ userId: encryptUserId(userId.toUpperCase(), siteId),
siteId: siteId,
});
}
| user id uppercase | user id uppercase
(cherry picked from commit 837de1243ac3c37a4fbce112f81a34420a78711b)
|
fb67a423bcb050d8826cc96166bff1dd968a4b66 | --- package-lock.json
@@ -1995,9 +1995,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.0.52",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.52.tgz",
- "integrity": "sha512-8eLwTE330X+1/nv4y8nmc2dpW2cBm8LAzBai32raTdJKELRGjpxr73KjnyGB1CqnCRGNCziMblLj/SZTb22cNg=="
+ "version": "0.0.53",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.53.tgz",
+ "integrity": "sha512-oYKIx5GPi5S7JW+K/kDdTcWez1LoceJk5VJi9yVZNGSniea17gE3omk24P82oaGUbX18+8kSMCgmzR8CSo3Eyw=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -55,7 +55,7 @@
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/inbox-mini-app": "0.0.20",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.0.52",
+ "@walmart/push-to-talk-mini-app": "0.0.53",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.17.0",
"@walmart/react-native-shared-navigation": "^0.2.0",
| PTT version bump (#201) | PTT version bump (#201)
* PTT version upgrade
* updated PTT and Ask Sam version
* installed PTT
* PTT version bump
* PTT version update
* POD file
* PTT version bump
* PTT version update
* PTT version bump
Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com> |
ce2e1addc69993ef1b9504ce10be601b34f875cc | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx
@@ -4,19 +4,23 @@ import { ShiftFilter } from './ShiftFilter';
import { ShiftFilterListStyles as styles } from './style';
import { ShiftFilterListProps } from './types';
import { HubHeader } from '../../../Store';
+import { useAllsparkTranslation } from '@walmart/allspark-foundation';
+import { FEATURE_ID } from '../../../Store/constant';
+import { colors } from '@walmart/gtp-shared-components/dist';
-//TODO: Change hubhead styles or add hubheader styles to it
export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({
filterListData,
handleSelectShift,
}) => {
+ const { t } = useAllsparkTranslation(FEATURE_ID);
return (
<>
<HubHeader
- title='Pick your shift'
- subText='Select where the associate typically works.Shift A1 is selected by default, but you can change it at any time.'
- backgroundColor='white'
- textColor='black'
+ title={t('shiftFilter.title')}
+ subText={t('shiftFilter.subText')}
+ backgroundColor={colors.white}
+ textColor={colors.black}
+ noPadding
/>
<View style={styles.container}>
{filterListData?.map(
| Updating HubHeader props | Updating HubHeader props
|
944ea5f02b238e06536316e959a01b90d601bf5f | --- package-lock.json
@@ -71,7 +71,7 @@
"@walmart/mod-flex-mini-app": "1.14.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.14",
- "@walmart/myteam-mini-app": "1.0.15",
+ "@walmart/myteam-mini-app": "1.0.16",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.135.3",
@@ -88,7 +88,7 @@
"@walmart/receipt-check-miniapp": "1.18.7",
"@walmart/redux-store": "3.7.0",
"@walmart/returns-mini-app": "3.13.0",
- "@walmart/roster-mini-app": "1.0.17",
+ "@walmart/roster-mini-app": "1.0.18",
"@walmart/schedule-mini-app": "0.63.2",
"@walmart/shelfavailability-mini-app": "1.5.19",
"@walmart/store-feature-orders": "1.25.0",
@@ -100,7 +100,7 @@
"@walmart/welcomeme-mini-app": "0.86.0",
"@walmart/wfm-ui": "0.2.26",
"@walmart/wm-plus-mini-app": "0.12.19",
- "@walmart/wmconnect-mini-app": "1.0.15",
+ "@walmart/wmconnect-mini-app": "1.0.16",
"axios": "~1.2.6",
"axios-cache-adapter": "2.7.3",
"crypto-js": "^3.3.0",
@@ -9471,9 +9471,9 @@
}
},
"node_modules/@walmart/myteam-mini-app": {
- "version": "1.0.15",
- "resolved": "https://npme.walmart.com/@walmart/myteam-mini-app/-/myteam-mini-app-1.0.15.tgz",
- "integrity": "sha512-+2O524TczzxVwmQKEIGym3e2aPNohSd4EZFItTPm3W5YKQ1vlTNVNDTBOHRU3ElbM405NOFM3QAzZknrFhkxnA==",
+ "version": "1.0.16",
+ "resolved": "https://npme.walmart.com/@walmart/myteam-mini-app/-/myteam-mini-app-1.0.16.tgz",
+ "integrity": "sha512-E9EQw3LbWuesaZWMFAi15O7nGSbMH2+5o36J8hpv66QdNTtCIDv0TgZHKq6jOR1SYPGpEErShj5NrvXVB7RfcQ==",
"hasInstallScript": true
},
"node_modules/@walmart/onewalmart-miniapp": {
@@ -9761,9 +9761,9 @@
}
},
"node_modules/@walmart/roster-mini-app": {
- "version": "1.0.17",
- "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.17.tgz",
- "integrity": "sha512-FFb9Ebt3x8OiqWi0eW6aLlt1yd9SS40vfx66rv9d8tbkMTLteYuBv18+DkAoUKiiGYUSw+RUULy6VlLuLxhtNQ==",
+ "version": "1.0.18",
+ "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.18.tgz",
+ "integrity": "sha512-FGds7mO+7cQ9GuUTOWddKM0yNN1JSbjOSW2CWgC0dXoeTTOJkrAo7LF/aPMCSDCD8aQalC57GXvU5T9F2AUEGQ==",
"hasInstallScript": true
},
"node_modules/@walmart/schedule-mini-app": {
@@ -10139,9 +10139,9 @@
}
},
"node_modules/@walmart/wmconnect-mini-app": {
- "version": "1.0.15",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.15.tgz",
- "integrity": "sha512-nPIUPqtMXnTwR1UahbkO6o2reB8J2kVg2F1h0LKBn8v2AebEfJXfYDelKDFgKd+BsMJ6g/oE2BdHmc5WoDX2/g==",
+ "version": "1.0.16",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16.tgz",
+ "integrity": "sha512-cW1wpQmHKZ6QGDQnzqDcIfKYhquoOmLAN+aDzr8Mdp7cKkcxtmtsTWY9qLE1Kr6dFGIjlikL+0dTF3RuktJ1+A==",
"hasInstallScript": true
},
"node_modules/@wry/context": {
@@ -33533,9 +33533,9 @@
"integrity": "sha512-DCh82OLyonEngEcSHaXZjNP1g5UKXB/0NzM8Wn9Jj+TN8mLDHF/1Y8uqHgh7Eot53IBIF/WB6XReE6KSbrEj0A=="
},
"@walmart/myteam-mini-app": {
- "version": "1.0.15",
- "resolved": "https://npme.walmart.com/@walmart/myteam-mini-app/-/myteam-mini-app-1.0.15.tgz",
- "integrity": "sha512-+2O524TczzxVwmQKEIGym3e2aPNohSd4EZFItTPm3W5YKQ1vlTNVNDTBOHRU3ElbM405NOFM3QAzZknrFhkxnA=="
+ "version": "1.0.16",
+ "resolved": "https://npme.walmart.com/@walmart/myteam-mini-app/-/myteam-mini-app-1.0.16.tgz",
+ "integrity": "sha512-E9EQw3LbWuesaZWMFAi15O7nGSbMH2+5o36J8hpv66QdNTtCIDv0TgZHKq6jOR1SYPGpEErShj5NrvXVB7RfcQ=="
},
"@walmart/onewalmart-miniapp": {
"version": "1.0.16",
@@ -33655,9 +33655,9 @@
}
},
"@walmart/roster-mini-app": {
- "version": "1.0.17",
- "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.17.tgz",
- "integrity": "sha512-FFb9Ebt3x8OiqWi0eW6aLlt1yd9SS40vfx66rv9d8tbkMTLteYuBv18+DkAoUKiiGYUSw+RUULy6VlLuLxhtNQ=="
+ "version": "1.0.18",
+ "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.18.tgz",
+ "integrity": "sha512-FGds7mO+7cQ9GuUTOWddKM0yNN1JSbjOSW2CWgC0dXoeTTOJkrAo7LF/aPMCSDCD8aQalC57GXvU5T9F2AUEGQ=="
},
"@walmart/schedule-mini-app": {
"version": "0.63.2",
@@ -33804,9 +33804,9 @@
"integrity": "sha512-8cGOQnmRB/KCqC+xCAk1u0eBTgC34pHQK1Hl1tPh4Mh+LuDsJ6TSGWQaKe31x6jz564NN9IgL1PslZTuX9M6gg=="
},
"@walmart/wmconnect-mini-app": {
- "version": "1.0.15",
- "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.15.tgz",
- "integrity": "sha512-nPIUPqtMXnTwR1UahbkO6o2reB8J2kVg2F1h0LKBn8v2AebEfJXfYDelKDFgKd+BsMJ6g/oE2BdHmc5WoDX2/g=="
+ "version": "1.0.16",
+ "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16.tgz",
+ "integrity": "sha512-cW1wpQmHKZ6QGDQnzqDcIfKYhquoOmLAN+aDzr8Mdp7cKkcxtmtsTWY9qLE1Kr6dFGIjlikL+0dTF3RuktJ1+A=="
},
"@wry/context": {
"version": "0.7.0",
--- package.json
@@ -112,7 +112,7 @@
"@walmart/mod-flex-mini-app": "1.14.6",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.14",
- "@walmart/myteam-mini-app": "1.0.15",
+ "@walmart/myteam-mini-app": "1.0.16",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.15.2",
"@walmart/payrollsolution_miniapp": "0.135.3",
@@ -129,7 +129,7 @@
"@walmart/receipt-check-miniapp": "1.18.7",
"@walmart/redux-store": "3.7.0",
"@walmart/returns-mini-app": "3.13.0",
- "@walmart/roster-mini-app": "1.0.17",
+ "@walmart/roster-mini-app": "1.0.18",
"@walmart/schedule-mini-app": "0.63.2",
"@walmart/shelfavailability-mini-app": "1.5.19",
"@walmart/store-feature-orders": "1.25.0",
@@ -141,7 +141,7 @@
"@walmart/welcomeme-mini-app": "0.86.0",
"@walmart/wfm-ui": "0.2.26",
"@walmart/wm-plus-mini-app": "0.12.19",
- "@walmart/wmconnect-mini-app": "1.0.15",
+ "@walmart/wmconnect-mini-app": "1.0.16",
"axios": "~1.2.6",
"axios-cache-adapter": "2.7.3",
"crypto-js": "^3.3.0",
| Update version | Update version
|
3442e98f6f2e2ea9c4bb00ee307488f7372af244 | --- package-lock.json
@@ -39,7 +39,7 @@
"@walmart/attendance-mini-app": "0.190.2",
"@walmart/compass-sdk-rn": "4.0.0",
"@walmart/config-components": "4.1.0-rc.4",
- "@walmart/copilot-mini-app": "1.74.5",
+ "@walmart/copilot-mini-app": "1.74.9",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.11.0",
"@walmart/core-utils": "~2.0.5",
@@ -4935,9 +4935,9 @@
}
},
"node_modules/@walmart/copilot-mini-app": {
- "version": "1.74.5",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.74.5.tgz",
- "integrity": "sha512-OFvYEI4W4sx94tnnpZRDuHolbiZI1FIqYP4CDrh+TTiTQVe/1dsqP8sKGlwoKx4Qka/3e+ukahODovKlFkOgqw==",
+ "version": "1.74.9",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.74.9.tgz",
+ "integrity": "sha512-AymGhGICCvXzS8RKTwAVvezWahILIiWyS2l4T/OwCUmdN0pG5vaGhMe5jRWKF/Lu6LFAkr0DkEgHoBFmWNIXog==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -25130,9 +25130,9 @@
}
},
"@walmart/copilot-mini-app": {
- "version": "1.74.5",
- "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.74.5.tgz",
- "integrity": "sha512-OFvYEI4W4sx94tnnpZRDuHolbiZI1FIqYP4CDrh+TTiTQVe/1dsqP8sKGlwoKx4Qka/3e+ukahODovKlFkOgqw=="
+ "version": "1.74.9",
+ "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.74.9.tgz",
+ "integrity": "sha512-AymGhGICCvXzS8RKTwAVvezWahILIiWyS2l4T/OwCUmdN0pG5vaGhMe5jRWKF/Lu6LFAkr0DkEgHoBFmWNIXog=="
},
"@walmart/core-services": {
"version": "2.0.19",
--- package.json
@@ -81,7 +81,7 @@
"@walmart/attendance-mini-app": "0.190.2",
"@walmart/compass-sdk-rn": "4.0.0",
"@walmart/config-components": "4.1.0-rc.4",
- "@walmart/copilot-mini-app": "1.74.5",
+ "@walmart/copilot-mini-app": "1.74.9",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.11.0",
"@walmart/core-utils": "~2.0.5",
| chore: copilot-mini-app@1.74.9 | chore: copilot-mini-app@1.74.9
|
d96f212b5b83141963ef79dbb1dcd0b26580efcd | --- plugins/withRuler.ts
@@ -2,7 +2,6 @@ import {ConfigPlugin, withAppBuildGradle} from '@expo/config-plugins';
import withGradleDependencies from './withGradleDependencies';
import {mergeContents} from '@expo/config-plugins/build/utils/generateCode';
-
const withRuler: ConfigPlugin = (config) => {
config = withGradleDependencies(config, {
tag: 'ruler-dependencies',
| fix(ci): dummy commit to trigger CI | fix(ci): dummy commit to trigger CI
|
86cc1e73e31c5a33451d102d1884ca130a18c231 | --- .yarn/patches/@walmart-facilities-management-miniapp-npm-0.12.11-1f67331d88.patch
@@ -1,28 +0,0 @@
-diff --git a/dist/CoreComponent/hooks/useRequestPermissions.js b/dist/CoreComponent/hooks/useRequestPermissions.js
-index 6e8d58a624318f1fcbe27c04bd3bcdc19a699197..cc1e2db074a2c002636d7c49236e4cd665d4e6da 100644
---- a/dist/CoreComponent/hooks/useRequestPermissions.js
-+++ b/dist/CoreComponent/hooks/useRequestPermissions.js
-@@ -12,9 +12,10 @@ import { CAMERA_PERMISSIONS_STATUS_TYPES } from '../constants';
- import useLocalStorageHandler from './useLocalStorageHandler';
- import { stateChangeEventHandler } from './handlers';
- import { isLocationEnabled } from 'react-native-device-info';
--import { LocationSelectors } from '@walmart/allspark-foundation/Location';
-+// import { LocationSelectors } from '@walmart/allspark-foundation/Location';
- const useRequestPermissions = (props) => {
-- const getLocationPermissions = reactReduxSelector(LocationSelectors?.getPermissionStatus);
-+ // TODO - use AllsparkPermissionClient to directly check permission status
-+ // const getLocationPermissions = reactReduxSelector(LocationSelectors?.getPermissionStatus);
- const { permissions = [] } = props || {};
- const [isDeviceLocationEnabled, setDeviceLocationState] = useState(null);
- const { dispatch } = AllsparkReduxStore;
-@@ -27,7 +28,9 @@ const useRequestPermissions = (props) => {
- showPermissionsSheet: state?.[COMMON_REDUCER_KEY]?.permissions?.showPermissionsSheet,
- enableShowDefaultDialog: state?.[COMMON_REDUCER_KEY]?.permissions?.enableShowDefaultDialog,
- isLocationPermissionGranted: state?.[COMMON_REDUCER_KEY]?.permissions?.isLocationPermissionGranted,
-- isGlobalPermissionGranted: getLocationPermissions,
-+ // TODO- refactor, this is being used as a boolean below but value would've previously always have been a string.
-+ // Setting to true which effctively should maintain previous behavior.
-+ isGlobalPermissionGranted: true,
- }));
- async function handleIsLocationEnabled() {
- const result = await isLocationEnabled();
--- .yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch
@@ -1,28 +0,0 @@
-diff --git a/dist/CoreComponent/hooks/useRequestPermissions.js b/dist/CoreComponent/hooks/useRequestPermissions.js
-index 6e8d58a624318f1fcbe27c04bd3bcdc19a699197..cc1e2db074a2c002636d7c49236e4cd665d4e6da 100644
---- a/dist/CoreComponent/hooks/useRequestPermissions.js
-+++ b/dist/CoreComponent/hooks/useRequestPermissions.js
-@@ -12,9 +12,10 @@ import { CAMERA_PERMISSIONS_STATUS_TYPES } from '../constants';
- import useLocalStorageHandler from './useLocalStorageHandler';
- import { stateChangeEventHandler } from './handlers';
- import { isLocationEnabled } from 'react-native-device-info';
--import { LocationSelectors } from '@walmart/allspark-foundation/Location';
-+// import { LocationSelectors } from '@walmart/allspark-foundation/Location';
- const useRequestPermissions = (props) => {
-- const getLocationPermissions = reactReduxSelector(LocationSelectors?.getPermissionStatus);
-+ // TODO - use AllsparkPermissionClient to directly check permission status
-+ // const getLocationPermissions = reactReduxSelector(LocationSelectors?.getPermissionStatus);
- const { permissions = [] } = props || {};
- const [isDeviceLocationEnabled, setDeviceLocationState] = useState(null);
- const { dispatch } = AllsparkReduxStore;
-@@ -27,7 +28,9 @@ const useRequestPermissions = (props) => {
- showPermissionsSheet: state?.[COMMON_REDUCER_KEY]?.permissions?.showPermissionsSheet,
- enableShowDefaultDialog: state?.[COMMON_REDUCER_KEY]?.permissions?.enableShowDefaultDialog,
- isLocationPermissionGranted: state?.[COMMON_REDUCER_KEY]?.permissions?.isLocationPermissionGranted,
-- isGlobalPermissionGranted: getLocationPermissions,
-+ // TODO- refactor, this is being used as a boolean below but value would've previously always have been a string.
-+ // Setting to true which effctively should maintain previous behavior.
-+ isGlobalPermissionGranted: true,
- }));
- async function handleIsLocationEnabled() {
- const result = await isLocationEnabled();
--- targets/US/package.json
@@ -102,7 +102,6 @@
"@walmart/emergency-mini-app": "1.29.8",
"@walmart/exception-mini-app": "1.8.11",
"@walmart/facilities-management-miniapp": "0.15.7",
- "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@npm%3A0.14.6#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch",
"@walmart/feedback-all-spark-miniapp": "0.9.66",
"@walmart/financial-wellbeing-feature-app": "1.26.0",
"@walmart/functional-components": "~6.3.28",
--- yarn.lock
@@ -6363,21 +6363,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/facilities-management-miniapp@npm:0.14.6":
- version: 0.14.6
- resolution: "@walmart/facilities-management-miniapp@npm:0.14.6"
+"@walmart/facilities-management-miniapp@npm:0.15.7":
+ version: 0.15.7
+ resolution: "@walmart/facilities-management-miniapp@npm:0.15.7"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/c7d728a946a8593d3db3aad00eef1138358a3cb2a73b979059b48995e86537e2689c43460d3be6b69694a942baec985152dd870be4c74b8ef8caa7203cd72ffa
- languageName: node
- linkType: hard
-
-"@walmart/facilities-management-miniapp@patch:@walmart/facilities-management-miniapp@npm%3A0.14.6#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch":
- version: 0.14.6
- resolution: "@walmart/facilities-management-miniapp@patch:@walmart/facilities-management-miniapp@npm%3A0.14.6#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch::version=0.14.6&hash=60f49f"
- peerDependencies:
- "@walmart/allspark-foundation": "*"
- checksum: 10c0/05b4b840bd73f68f1fcba40c23fc42b18512c40473e7b2e26eb589de208124a66749135babe55c9c5ccf03a89bdab2acd1f10203cf716ba2be3049144540f897
+ checksum: 10c0/f5f9d07ea84607c7a539f5ace8ce217eddcac50500baa6be3928718d8edf5f6ce4595ab661c41494a2d80766a39f218f4c7748d82482dd1de9ac7b86ba6a16cb
languageName: node
linkType: hard
@@ -7018,7 +7009,6 @@ __metadata:
"@walmart/emergency-mini-app": "npm:1.29.8"
"@walmart/exception-mini-app": "npm:1.8.11"
"@walmart/facilities-management-miniapp": "npm:0.15.7"
- "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@npm%3A0.14.6#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.14.6-2a58bc097a.patch"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.66"
"@walmart/financial-wellbeing-feature-app": "npm:1.26.0"
"@walmart/functional-components": "npm:~6.3.28"
| Updating the parch | Updating the parch
|
fb244cd5f80e48da6e827762999a58dc096ad69e | --- package.json
@@ -134,7 +134,7 @@
"react-native-snap-carousel": "^3.9.1",
"react-native-sound-player": "0.10.9",
"react-native-splash-screen": "^3.2.0",
- "react-native-ssmp-sso-allspark": "1.1.8",
+ "react-native-ssmp-sso-allspark": "1.2.2",
"react-native-sumo-sdk": "^2.7.4-rc.9",
"react-native-svg": "^12.1.0",
"react-native-tab-view": "^2.15.2",
| version update | version update
|
ba2fd4682f542dd6fcb39032c0241144999e1bcf | --- jest.config.js
@@ -9,10 +9,10 @@ module.exports = {
],
coverageThreshold: {
global: {
- statements: 19.75,
+ statements: 19.5,
branches: 11.11,
- functions: 13.06,
- lines: 20,
+ functions: 13,
+ lines: 19,
},
},
transformIgnorePatterns: [
--- jest.config.js
@@ -9,10 +9,10 @@ module.exports = {
],
coverageThreshold: {
global: {
- statements: 19.75,
+ statements: 19.5,
branches: 11.11,
- functions: 13.06,
- lines: 20,
+ functions: 13,
+ lines: 19,
},
},
transformIgnorePatterns: [
| jest config | jest config
|
f4e974c0cdfb988192d0bb51fb0a86f96f646066 | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/EditSavedTeamModal/EditSavedTeamsModal.tsx
@@ -46,18 +46,32 @@ export const EditSavedTeamsModal = ({ modal: { closeModal } }: any) => {
const [selectedTeams, setSelectedTeams] =
useState<string[]>(teamPreferenceData);
- const [sections, setSearchedsections] =
+ const [sections, setSearchedSections] =
useState<AllTeamsSections[]>(allSiteTeamsSections);
const handleSearchInput = useCallback(
- (inp: string) => {
- if (inp.length > 2) {
- const searched = allSiteTeamsSections.filter((t: AllTeamsSections) =>
- t.title.toLowerCase().includes(inp.toLowerCase())
+ (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[]
);
- setSearchedsections(searched);
+ setSearchedSections(searchApplied);
} else {
- setSearchedsections(allSiteTeamsSections);
+ setSearchedSections(allSiteTeamsSections);
}
},
[allSiteTeamsSections]
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/UpdateTeamsModal/UpdateTeamsModal.tsx
@@ -59,7 +59,7 @@ export const UpdateTeamsModal = ({ modal: { closeModal } }: ModalProps) => {
useState<string[]>(prevSelectedTeamIds);
const [selectedShift, setSelectedShifts] =
useState<string[]>(shiftPreferenceData);
- const [sections, setSearchedsections] = useState(allSiteTeamsSections);
+ const [sections, setSearchedSections] = useState(allSiteTeamsSections);
const handleSelection = useCallback(
(item: string) => {
@@ -83,14 +83,28 @@ export const UpdateTeamsModal = ({ modal: { closeModal } }: ModalProps) => {
[selectedShift, setSelectedShifts]
);
const handleSearchInput = useCallback(
- (input: string) => {
- if (input.length > 2) {
- const searched = allSiteTeamsSections?.filter(
- (t) => t?.title.toLowerCase().includes(input.toLowerCase())
+ (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[]
);
- setSearchedsections(searched);
+ setSearchedSections(searchApplied);
} else {
- setSearchedsections(allSiteTeamsSections);
+ setSearchedSections(allSiteTeamsSections);
}
},
[allSiteTeamsSections]
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/ccmFallbacks.ts
@@ -23,7 +23,7 @@ export const CCMFallbacks = {
showShiftFilterIcon: true,
showShiftFilterGroup: true,
showSearchIcon: true,
- showMicrophoneIcon: true,
+ showMicrophoneIcon: false,
showStarIcon: true,
showLoadShiftsAlert: true,
showLoadTeamsAlert: true,
| feat: updated input based on feedback | feat: updated input based on feedback
|
a334707111c9d970e400d542ba311590fd927d43 | --- packages/allspark-foundation/__tests__/Navigation/utils.test.ts
@@ -1,4 +1,4 @@
-import { parseNavigateParams } from '../../src/Navigation/utils';
+import { parseNavigateParams, screenIdPairSplit } from '../../src/Navigation/utils';
import { ParamListBase } from '@react-navigation/native';
describe('parseNavigateParams', () => {
@@ -22,4 +22,41 @@ describe('parseNavigateParams', () => {
expect(result).toEqual(['Home.Detail', expectedParams]);
});
+ });
+
+ describe('screenIdPairSplit', () => {
+ it('should split a screen ID with even number of segments into pairs', () => {
+ const result = screenIdPairSplit('A.B.C.D');
+ expect(result).toEqual(['A.B', 'C.D']);
+ });
+
+ it('should handle odd number of segments, keeping the last one separate', () => {
+ const result = screenIdPairSplit('Home.Detail.ProfileScreen');
+ expect(result).toEqual(['Home.Detail', 'ProfileScreen']);
+ });
+
+ it('should handle a single segment', () => {
+ const result = screenIdPairSplit('SingleScreen');
+ expect(result).toEqual(['SingleScreen']);
+ });
+
+ it('should handle empty string', () => {
+ const result = screenIdPairSplit('');
+ expect(result).toEqual([]);
+ });
+
+ it('should filter out empty segments', () => {
+ const result = screenIdPairSplit('A..B.C');
+ expect(result).toEqual(['A.B', 'C']);
+ });
+
+ it('should handle leading and trailing dots', () => {
+ const result = screenIdPairSplit('.A.B.C.');
+ expect(result).toEqual(['A.B', 'C']);
+ });
+
+ it('should handle multiple consecutive dots', () => {
+ const result = screenIdPairSplit('A...B..C');
+ expect(result).toEqual(['A.B', 'C']);
+ });
});
\ No newline at end of file
--- packages/allspark-foundation/src/Navigation/utils.tsx
@@ -10,6 +10,29 @@ import {
} from '@react-navigation/native';
import { AllsparkNavigationClient } from './client';
+/**
+ * Split screen name into sections of 2 part names joined by "."
+ * "screen1.screen2.screen3.screen4.screen5" => ["screen1.screen2", "screen3.screen4", "screen5"]
+ * @param screenId The screen ID to split.
+ * @returns An array of segment pairs.
+ */
+export const screenIdPairSplit = (screenId: string): string[] => {
+ const parts = screenId.split('.').filter(Boolean);
+ const sections: string[] = [];
+ let i = 0;
+ // Process pairs of dot-separated segments
+ while (i + 1 < parts.length) {
+ // Combine current screenid with the next as a pair
+ sections.push(`${parts[i]}.${parts[i + 1]}`);
+ i = i + 2; // Skip the next part since we used it
+ }
+ // Handle any remaining single part at the end
+ if (i < parts.length) {
+ sections.push(parts[i]);
+ }
+ return sections;
+};
+
/**
* @deprecated Is not needed until we want to support automatic handling of nested navigation.
* Itention was to translate a screenId like "feature1.screen1.feature1.screen2.feature1.screen3" into a nested navigation object.
@@ -21,7 +44,7 @@ export const parseNavigateParams = (
): [string, any | undefined] => {
// Split screen name into sections of 2 part names joined by "."
// "screen1.screen2.screen3.screen4.screen5" => ["screen1.screen2", "screen3.screen4", "screen5"]
- const sections = screenId.split(/(\w+\.\w+)\./).filter(Boolean);
+ const sections = screenIdPairSplit(screenId);
// If only 1 section, there is no need for further logic
if (sections.length === 1) {
| fix(sec-hotspot): fixed a security hotspot related to regex | fix(sec-hotspot): fixed a security hotspot related to regex
|
78faeb96f9f76b898f54b94e14f73ab89a906557 | --- package-lock.json
@@ -37,7 +37,7 @@
"@terrylinla/react-native-sketch-canvas": "0.8.0",
"@walmart/allspark-graphql-client": "^1.4.5",
"@walmart/allspark-neon-core": "0.1.31",
- "@walmart/amp-mini-app": "1.1.68",
+ "@walmart/amp-mini-app": "1.1.72",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.17.10",
"@walmart/attendance-mini-app": "1.62.13",
@@ -8377,9 +8377,9 @@
}
},
"node_modules/@walmart/amp-mini-app": {
- "version": "1.1.68",
- "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.68.tgz",
- "integrity": "sha512-GxB3j9H+V54aL9BohPBrQMUKZrSnJypK+NqPiIpWLiEXicOcpV7rfSK9XGKggMk0TXothUOEMqUKJT6SBVnitg==",
+ "version": "1.1.72",
+ "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.72.tgz",
+ "integrity": "sha512-uMPvYGMHz0IivWMxLcfWH/uvZh8BvenUJwftLhTkdMd5Suv3WZTxSFla2jy1RQ3ws2F0e73PMoFZopAxSeYqXQ==",
"hasInstallScript": true,
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
@@ -29418,7 +29418,7 @@
"requires": {
"mv": "~2",
"safe-json-stringify": "~1",
- "uuid": "^8.0.0"
+ "uuid": "^3.3.2"
}
},
"@expo/cli": {
@@ -30108,7 +30108,7 @@
"md5": "^2.2.1",
"node-fetch": "^2.6.1",
"remove-trailing-slash": "^0.1.0",
- "uuid": "^8.3.2"
+ "uuid": "^3.3.2"
}
},
"@expo/sdk-runtime-versions": {
@@ -33122,9 +33122,9 @@
}
},
"@walmart/amp-mini-app": {
- "version": "1.1.68",
- "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.68.tgz",
- "integrity": "sha512-GxB3j9H+V54aL9BohPBrQMUKZrSnJypK+NqPiIpWLiEXicOcpV7rfSK9XGKggMk0TXothUOEMqUKJT6SBVnitg=="
+ "version": "1.1.72",
+ "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.72.tgz",
+ "integrity": "sha512-uMPvYGMHz0IivWMxLcfWH/uvZh8BvenUJwftLhTkdMd5Suv3WZTxSFla2jy1RQ3ws2F0e73PMoFZopAxSeYqXQ=="
},
"@walmart/ask-sam-chat-components": {
"version": "0.2.13",
--- package.json
@@ -78,7 +78,7 @@
"@terrylinla/react-native-sketch-canvas": "0.8.0",
"@walmart/allspark-graphql-client": "^1.4.5",
"@walmart/allspark-neon-core": "0.1.31",
- "@walmart/amp-mini-app": "1.1.68",
+ "@walmart/amp-mini-app": "1.1.72",
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.17.10",
"@walmart/attendance-mini-app": "1.62.13",
| AMP version for Drop 18 after crash fix | AMP version for Drop 18 after crash fix
|
b56009239a03340edd160211f2eb3b7ff012b045 | --- example/src/teamHub/screens/index.ts
@@ -1,7 +1,6 @@
import {ContainerScreen} from './container';
import {TestModal} from './modal';
import {OnboardingScreen} from './onboarding';
-import {TeamSelectionScreen} from './teamSelection';
import {HomeScreen} from './screen';
import {FeatureStack} from './stack';
import {TeamSelectionScreen} from './teamSelection';
@@ -12,7 +11,6 @@ export const TeamHubScreens = {
'teamHub.teamSelection': TeamSelectionScreen,
'teamHub.container': ContainerScreen,
'teamHub.stack': FeatureStack,
- 'teamHub.teamSelection': TeamSelectionScreen,
};
export const TeamHubModals = {
--- example/src/teamHub/screens/teamSelection.tsx
@@ -3,12 +3,15 @@ import {useNavigation} from '@react-navigation/native';
import {TeamHub} from '../feature';
import {TeamHubLogger, TeamHubTelemetry} from '../services';
import {TeamSelection} from '@walmart/allspark-foundation/Components/TeamOnboarding/TeamSelection/TeamSelection';
-import {Area, TeamName} from '@walmart/allspark-foundation/Components/TeamOnboarding/TeamSelection/types';
+import {
+ Area,
+ TeamName,
+} from '@walmart/allspark-foundation/Components/TeamOnboarding/TeamSelection/types';
import {areaTeamMap} from '@walmart/allspark-foundation/Components/TeamOnboarding/TeamSelection/TeamSelectionList';
export const TeamSelectionScreen = TeamHub.createScreen(
() => {
- // TODO: areas comes from API
+ // TODO: areas, myArea and primaryTeam come from API
const areas: Area[] = useMemo(
() => [
'Admin & Support',
--- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/TeamSelectionList.tsx
@@ -5,7 +5,7 @@ import { Checkbox } from '@walmart/gtp-shared-components/dist';
import { teamSelectionListStyles as styles } from './styles';
import { Area, TeamName } from './types';
-const areaTeamMap: Record<Area, TeamName[]> = {
+export const areaTeamMap: Record<Area, TeamName[]> = {
'Admin & Support': ['Admin & Support'],
'Digital': ['Digital', 'Digital Overnight'],
'Food & Consumables': [
--- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/styles.ts
@@ -44,10 +44,10 @@ export const teamSelectionListItemStyles = (hasBorder: boolean) =>
paddingLeft: 8,
paddingRight: 8,
borderRadius: 2,
- backgroundColor: colors.primary['min'],
+ backgroundColor: colors.primary.min,
},
primaryTeamText: {
- color: colors.primary['high'],
+ color: colors.primary.high,
fontFamily: 'Bogle-Regular',
fontSize: 12,
lineHeight: 16,
| feat: updated import errors | feat: updated import errors
|
cf59ab8f0f0a4a557f5292d7f50db9f4fbfe77e2 | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.0.1-beta.9",
+ "version": "1.0.1-beta.10",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
--- packages/allspark-foundation-hub/src/HubFeature/Store/Images/index.tsx
@@ -0,0 +1 @@
+export * from './images';
--- packages/allspark-foundation-hub/src/HubFeature/Store/index.tsx
@@ -5,3 +5,4 @@ export * from './Common';
export * from './Hooks';
export * from './Redux';
export * from './TeamSelection';
+export * from './Images';
| Update the import statements | Update the import statements
|
84018259576d6a79cead7d0b0c1ac891465baa5d | --- example/ios/Podfile.lock
@@ -1698,4 +1698,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 9bcb4ba63e465bf176432abd9b231eff81ba3324
-COCOAPODS: 1.14.3
+COCOAPODS: 1.13.0
--- example/src/feature3/screens/index.ts
@@ -8,7 +8,7 @@ export const Feature3Screens = {
'feature3.home': HomeScreen,
'feature3.onboarding': OnboardingScreen,
'feature3.container': ContainerScreen,
- 'feature1.stack': FeatureStack,
+ 'feature3.stack': FeatureStack,
};
export const Feature3Modals = {
--- example/src/feature3/screens/screen.tsx
@@ -6,6 +6,7 @@ import {useNavigation} from '@react-navigation/core';
import {Feature3Logger, Feature3Telemetry} from '../services';
import {Feature3} from '../feature';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
+import {Header} from '@walmart/allspark-foundation/Components';
export const HomeScreen = Feature3.createScreen(
() => {
@@ -20,10 +21,14 @@ export const HomeScreen = Feature3.createScreen(
}, []);
return (
- <View style={{flex: 1, marginTop: 20}}>
+ <View style={{flex: 1}}>
+ <Header
+ title="Hub value-prop title"
+ subText="Short introduction to convey the action we intend the associate to take through this hub."
+ />
<Button
variant="primary"
- UNSAFE_style={{marginBottom: 10}}
+ UNSAFE_style={{marginBottom: 10, marginTop: 20}}
onPress={() =>
AllsparkNavigationClient.navigate('feature3.onboarding')
}>
--- packages/allspark-foundation/src/Components/Hub/Header/index.tsx
@@ -1,8 +1,16 @@
-import { Text } from 'react-native';
+import React from 'react';
+import { Text, View } from 'react-native';
+import { HeaderTypes } from './types';
+import { HeaderStyles as styles } from './styles';
export * from './types';
-export const Header = () => (
- <>
- <Text>Header</Text>
- </>
+export const Header = ({ title, subText }: HeaderTypes) => (
+ <View style={styles.container}>
+ <Text style={styles.title} accessibilityLabel={title}>
+ {title}
+ </Text>
+ <Text style={styles.subText} accessibilityLabel={subText}>
+ {subText}
+ </Text>
+ </View>
);
--- packages/allspark-foundation/src/Components/Hub/Header/styles.ts
@@ -0,0 +1,23 @@
+import { StyleSheet } from 'react-native';
+import { colors } from '@walmart/gtp-shared-components';
+
+export const HeaderStyles = StyleSheet.create({
+ container: {
+ backgroundColor: colors.blue['100'],
+ flexDirection: 'column',
+ padding: 16,
+ },
+ title: {
+ color: colors.white,
+ fontWeight: 'bold',
+ fontSize: 24,
+ lineHeight: 32,
+ marginBottom: 4,
+ },
+ subText: {
+ color: colors.white,
+ fontWeight: 'normal',
+ fontSize: 16,
+ lineHeight: 24,
+ },
+});
--- packages/allspark-foundation/src/Components/Hub/Header/types.ts
@@ -1 +1,4 @@
-export type HeaderTypes = {};
+export type HeaderTypes = {
+ title: string;
+ subText: string;
+};
--- packages/allspark-foundation/src/Components/index.tsx
@@ -14,3 +14,4 @@ export const useAllsparkSnackbar = useSnackbar;
export { AllsparkDynamicComponents } from './DynamicComponents';
export { AllsparkComponentContainers } from './ComponentContainers';
+export { Header } from './Hub/Header';
| Create hub header component and add it to feature 3 | Create hub header component and add it to feature 3
|
301fe67344913f9e4d9d4c8b4b923096e268f2d1 | --- graphql.yml
@@ -5,8 +5,8 @@ notify:
slack:
channelName: smdv-graphql
applications:
- - name: "ASSOCIATE-EXP-HUB-MINIAPP"
- applicationKey: "ASSOCIATE-EXP-HUB-MINIAPP"
+ - name: "ASSOCIATE-EXP-HUB-MINI-APP"
+ applicationKey: "ASSOCIATE-EXP-HUB-MINI-APP"
description: "My Walmart 2.0 Associate Experience Hub mini app"
environments:
- name: "dev"
| feat(ui): update graphql, sr.yml and clean up | feat(ui): update graphql, sr.yml and clean up
|
f1ba00dae59c6609c7281cba5134b2e7a4ecc945 | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.0.1-alpha.1",
+ "version": "1.0.1-alpha.2",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
| Update the header text | Update the header text
|
453f90078320fbfa6a6be682c0ad12586dde5b09 | --- src/screens/RosterDetailScreen/StoreRosterDetailScreen/StoreRosterDetailScreen.tsx
@@ -1,4 +1,4 @@
-import React, {useEffect, useMemo, useRef, useState} from 'react';
+import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
import {RefreshControl, View} from 'react-native';
import {ErrorScreen, TeamSwitcher} from '@walmart/allspark-foundation-hub';
import {RosterDetailPageHeader} from '../../../components/RosterDetailPageHeader';
@@ -120,7 +120,7 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => {
allTeams as Team[],
) as Associate[])
: [];
- //Todo: Move some of the functions to utils or hooks
+
const filterCount = useMemo(
() => getFilterCount(teamRoster, teamState, allTeams),
[teamState, allTeamsData?.getTeamsByStore],
@@ -237,6 +237,90 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => {
);
};
+ const renderHeader = useCallback(() => {
+ return (
+ <>
+ {isSalariedOrLead ? (
+ <TeamSwitcher
+ onTeamChange={(teamLabel: string, teamIds: string[]) => {
+ setTeamState({
+ teamLabel: teamLabel,
+ teamIds: teamIds,
+ });
+ }}
+ refreshing={refreshState.refreshing}
+ />
+ ) : (
+ <RosterDetailPageHeader
+ header={headerAndSubtext.header}
+ subText={headerAndSubtext.subText}
+ teamId={teamState.teamIds?.[0]}
+ linkText={t('rosterScreen.viewTeamLink.linkLabel', {
+ context: translationContext,
+ })}
+ handleNavigation={() => {
+ analytics('view_all_teams', {
+ message: 'Navigate to all teams screen',
+ });
+ navigation.navigate('myTeam.allTeams');
+ }}
+ />
+ )}
+ </>
+ );
+ }, []);
+
+ const listHeaderComponent = useCallback(() => {
+ return (
+ <>
+ {refreshState.refreshing && (
+ <View testID='Hub.LastUpdatedText'>
+ <Body weight='regular' UNSAFE_style={[styles.lastUpdatedText]}>
+ Last updated, {refreshState.lastRefresh}
+ </Body>
+ </View>
+ )}
+ {!dataLoading && !userIsInRoster && (
+ <Alert variant='warning' UNSAFE_style={styles.error}>
+ {t('rosterScreen.notInRoster', {
+ siteId: storeId,
+ context: siteTranslationContext,
+ })}
+ </Alert>
+ )}
+ <RosterFiltersAndInfo
+ totalScheduleCount={filterCount.scheduledCount}
+ associates={teamRoster}
+ filterChips={filterChips}
+ headerText={
+ !isSalariedOrLead && isPrimaryTeam
+ ? `${teamState.teamLabel}${t('rosterScreen.teamRosterName')}`
+ : t('rosterScreen.rosterName')
+ }
+ loading={dataLoading}
+ teamName={currentTeamName}
+ handleFilter={(filterId: FilterValue) => {
+ analytics('filter_press', {
+ message: 'Filter associates',
+ filterName:
+ filterId === selectedFilter ? FilterValue.all : filterId,
+ });
+ setSelectedFilter(filterId);
+ }}
+ />
+ {showSearchInput && (
+ <TeamSearchInput
+ loading={dataLoading}
+ text={searchInput}
+ handleChange={(text: string) => {
+ setSearchInput(text);
+ }}
+ />
+ )}
+ </>
+ );
+ }, []);
+
useEffect(() => {
const associatesFiltered = filterAssociatesByStatusAndSearchInput(
teamRoster,
@@ -266,32 +350,7 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => {
return (
<PresenceProvider>
<WarningBanner />
- {isSalariedOrLead ? (
- <TeamSwitcher
- onTeamChange={(teamLabel: string, teamIds: string[]) => {
- setTeamState({
- teamLabel: teamLabel,
- teamIds: teamIds,
- });
- }}
- refreshing={refreshState.refreshing}
- />
- ) : (
- <RosterDetailPageHeader
- header={headerAndSubtext.header}
- subText={headerAndSubtext.subText}
- teamId={teamState.teamIds?.[0]}
- linkText={t('rosterScreen.viewTeamLink.linkLabel', {
- context: translationContext,
- })}
- handleNavigation={() => {
- analytics('view_all_teams', {
- message: 'Navigate to all teams screen',
- });
- navigation.navigate('myTeam.allTeams');
- }}
- />
- )}
+ {renderHeader()}
<FlashList
contentContainerStyle={styles.container}
data={filteredAssociates}
@@ -299,54 +358,7 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => {
estimatedItemSize={100}
contentInset={{bottom: bottomInset}}
showsVerticalScrollIndicator={false}
- ListHeaderComponent={
- <>
- {refreshState.refreshing && (
- <View testID='Hub.LastUpdatedText'>
- <Body weight='regular' UNSAFE_style={[styles.lastUpdatedText]}>
- Last updated, {refreshState.lastRefresh}
- </Body>
- </View>
- )}
- {!dataLoading && !userIsInRoster && (
- <Alert variant='warning' UNSAFE_style={styles.error}>
- {t('rosterScreen.notInRoster', {
- siteId: storeId,
- context: siteTranslationContext,
- })}
- </Alert>
- )}
- <RosterFiltersAndInfo
- totalScheduleCount={filterCount.scheduledCount}
- associates={teamRoster}
- filterChips={filterChips}
- headerText={
- !isSalariedOrLead && isPrimaryTeam
- ? `${teamState.teamLabel}${t('rosterScreen.teamRosterName')}`
- : t('rosterScreen.rosterName')
- }
- loading={dataLoading}
- teamName={currentTeamName}
- handleFilter={(filterId: FilterValue) => {
- analytics('filter_press', {
- message: 'Filter associates',
- filterName:
- filterId === selectedFilter ? FilterValue.all : filterId,
- });
- setSelectedFilter(filterId);
- }}
- />
- {showSearchInput && (
- <TeamSearchInput
- loading={dataLoading}
- text={searchInput}
- handleChange={(text: string) => {
- setSearchInput(text);
- }}
- />
- )}
- </>
- }
+ ListHeaderComponent={listHeaderComponent()}
ListEmptyComponent={
dataLoading ? <AssociateListLoading /> : renderListEmptyComponent()
}
| more refactoring of StoreRosterDetailsScreen | more refactoring of StoreRosterDetailsScreen
|
5e4a8cce34277dd029a400bf03f51e6c88689823 | --- src/screens/MessagesScreen.tsx
@@ -210,13 +210,24 @@ export const MessagesScreen = () => {
const sendPushNotification = async (message: MessageRequest) => {
//Send push notification
if (!isNil(siteId)) {
+ const getMessageTextForPush = () => {
+ if (message.image?.uri) {
+ return message.message || '';
+ }
+ if (message.audio?.uri) {
+ //TODO: Translate this text
+ return '1 Audio Message';
+ }
+ return message.message || '';
+ };
+
const recipients = channelData?.participants
.filter((recipient) => recipient !== viewerId)
.map((encyptedUser) => decryptUserId(encyptedUser));
const channelId = getChannelIdFromChannelPath(channelData?.id);
await PushNotificationApi.notifyRecipients(
capitalize(viewerFirstName),
- message?.message || '',
+ getMessageTextForPush(),
recipients || [],
parseInt(siteId, 10),
channelId,
--- src/screens/MessagesScreen.tsx
@@ -210,13 +210,24 @@ export const MessagesScreen = () => {
const sendPushNotification = async (message: MessageRequest) => {
//Send push notification
if (!isNil(siteId)) {
+ const getMessageTextForPush = () => {
+ if (message.image?.uri) {
+ return message.message || '';
+ }
+ if (message.audio?.uri) {
+ //TODO: Translate this text
+ return '1 Audio Message';
+ }
+ return message.message || '';
+ };
+
const recipients = channelData?.participants
.filter((recipient) => recipient !== viewerId)
.map((encyptedUser) => decryptUserId(encyptedUser));
const channelId = getChannelIdFromChannelPath(channelData?.id);
await PushNotificationApi.notifyRecipients(
capitalize(viewerFirstName),
- message?.message || '',
+ getMessageTextForPush(),
recipients || [],
parseInt(siteId, 10),
channelId,
| customize message based on type | customize message based on type
|
97a1ecaaa7bad45d8d2c37293adde94b473977e7 | --- package.json
@@ -63,7 +63,7 @@
"@redux-saga/testing-utils": "^1.1.3",
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
- "@walmart/shelfavailability-mini-app": "0.3.60",
+ "@walmart/shelfavailability-mini-app": "0.3.61",
"@walmart/allspark-health-survey-mini-app": "0.0.41",
"@walmart/allspark-home-mini-app": "0.4.21",
"@walmart/metrics-mini-app": "0.0.27",
| 0.3.61 dev build | 0.3.61 dev build
|
89fa704936b1d907b054ce7ecce1fc576650f0d9 | --- packages/expo-config-plugins/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.
+## [0.4.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.4.3...@walmart/expo-config-plugins@0.4.4) (2025-08-13)
+
+### Bug Fixes
+
+- **plugins:** gradle deps plugin did not check for duplicates. kotlinVersion undefined in higher RN versions ([b2c2d19](https://gecgithub01.walmart.com/allspark/allspark/commit/b2c2d198c8091b2701e1b736890937114efee038))
+
## [0.4.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.4.2...@walmart/expo-config-plugins@0.4.3) (2025-08-08)
**Note:** Version bump only for package @walmart/expo-config-plugins
--- packages/expo-config-plugins/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/expo-config-plugins",
- "version": "0.4.3",
+ "version": "0.4.4",
"description": "Expo config plugins for me@apps",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/expo-config-plugins@0.4.4
|
849cca60a716364eb882f85037450b9e52b3d2c3 | --- package-lock.json
@@ -90,7 +90,7 @@
"@walmart/schedule-mini-app": "0.63.2",
"@walmart/shelfavailability-mini-app": "1.5.19",
"@walmart/store-feature-orders": "1.25.0",
- "@walmart/taskit-mini-app": "2.57.4",
+ "@walmart/taskit-mini-app": "2.57.5",
"@walmart/texting-mini-app": "2.1.4",
"@walmart/time-clock-mini-app": "2.301.0",
"@walmart/topstock-mini-app": "1.4.14",
@@ -9881,9 +9881,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "2.57.4",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.57.4.tgz",
- "integrity": "sha512-6Xtb36m2nA0LvjZiLKu3iNEoYvlhJHB3QE+vooR7gdGRKJumubefkbdR6tEtGTk25IUYa6a/kYzzkYJxGdvmiA==",
+ "version": "2.57.5",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.57.5.tgz",
+ "integrity": "sha512-CxW/4PCtmxnFE+DLbhcesxZrsd2xifVNr1fUBKGK8WRXMYWPXX7OOW+A8fVoErwzsxUIbztl/PHDAhvT9ah/wg==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -33668,9 +33668,9 @@
"integrity": "sha512-In1wOQKpg7IgeWko0TQh6djKc+RLBLiA9geo/D06Z33gEa5JrK5oMoLoponsllKIoVndU3U0RsQDHjmRBSgMNA=="
},
"@walmart/taskit-mini-app": {
- "version": "2.57.4",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.57.4.tgz",
- "integrity": "sha512-6Xtb36m2nA0LvjZiLKu3iNEoYvlhJHB3QE+vooR7gdGRKJumubefkbdR6tEtGTk25IUYa6a/kYzzkYJxGdvmiA=="
+ "version": "2.57.5",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.57.5.tgz",
+ "integrity": "sha512-CxW/4PCtmxnFE+DLbhcesxZrsd2xifVNr1fUBKGK8WRXMYWPXX7OOW+A8fVoErwzsxUIbztl/PHDAhvT9ah/wg=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -131,7 +131,7 @@
"@walmart/schedule-mini-app": "0.63.2",
"@walmart/shelfavailability-mini-app": "1.5.19",
"@walmart/store-feature-orders": "1.25.0",
- "@walmart/taskit-mini-app": "2.57.4",
+ "@walmart/taskit-mini-app": "2.57.5",
"@walmart/texting-mini-app": "2.1.4",
"@walmart/time-clock-mini-app": "2.301.0",
"@walmart/topstock-mini-app": "1.4.14",
| updated taskit version | updated taskit version
|
1137570b5244b6e990809272465ceacfbc1cbcaf | --- __tests__/home/components/__snapshots__/DateRowTest.tsx.snap
@@ -15,7 +15,7 @@ exports[`DateRow renders with no week 1`] = `
testID="Home.HomeDate"
>
<Body
- style={
+ UNSAFE_style={
Array [
Object {
"color": "#2e2f32",
@@ -32,7 +32,7 @@ exports[`DateRow renders with no week 1`] = `
todayDateLabel
<Body
- style={
+ UNSAFE_style={
Array [
Object {
"color": "#2e2f32",
@@ -50,7 +50,7 @@ exports[`DateRow renders with no week 1`] = `
</Body>
</Body>
<Body
- style={
+ UNSAFE_style={
Array [
Object {
"color": "#2e2f32",
@@ -84,7 +84,7 @@ exports[`DateRow renders with week 1`] = `
testID="Home.HomeDate"
>
<Body
- style={
+ UNSAFE_style={
Array [
Object {
"color": "#2e2f32",
@@ -101,7 +101,7 @@ exports[`DateRow renders with week 1`] = `
todayDateLabel
<Body
- style={
+ UNSAFE_style={
Array [
Object {
"color": "#2e2f32",
@@ -119,7 +119,7 @@ exports[`DateRow renders with week 1`] = `
</Body>
</Body>
<Body
- style={
+ UNSAFE_style={
Array [
Object {
"color": "#2e2f32",
--- __tests__/storeInfo/__snapshots__/StoreInfoTest.tsx.snap
@@ -96,7 +96,7 @@ exports[`StoreInfo matches snapshot with all store info 1`] = `
changeStore.storeLabel
</Title>
<Caption
- style={
+ UNSAFE_style={
Object {
"color": "#2e2f32",
"fontSize": 16,
@@ -131,7 +131,7 @@ Cotton Plant, AL
testID="directionsButton"
>
<Caption
- style={
+ UNSAFE_style={
Object {
"fontSize": 14,
"lineHeight": 20,
@@ -198,7 +198,7 @@ exports[`StoreInfo matches snapshot with no coordinates 1`] = `
changeStore.storeLabel
</Title>
<Caption
- style={
+ UNSAFE_style={
Object {
"color": "#2e2f32",
"fontSize": 16,
@@ -259,7 +259,7 @@ exports[`StoreInfo matches snapshot without coordinates 1`] = `
changeStore.storeLabel
</Title>
<Caption
- style={
+ UNSAFE_style={
Object {
"color": "#2e2f32",
"fontSize": 16,
--- src/home/components/DateRow.tsx
@@ -46,13 +46,15 @@ export const DateRow: FC<Props> = (props) => {
return (
<View style={[styles.row, style]} testID='Home.HomeDate'>
- <Body weight='regular' style={[styles.dateMessage, {color: textColor}]}>
+ <Body
+ weight='regular'
+ UNSAFE_style={[styles.dateMessage, {color: textColor}]}>
{t('todayDateLabel')}{' '}
- <Body weight='bold' style={[styles.date, {color: textColor}]}>
+ <Body weight='bold' UNSAFE_style={[styles.date, {color: textColor}]}>
{date}
</Body>
</Body>
- <Body weight='regular' style={[styles.wmWeek, {color: textColor}]}>
+ <Body weight='regular' UNSAFE_style={[styles.wmWeek, {color: textColor}]}>
{t('walmartWeek', {week: getWalmartWeek(moment())})}
</Body>
</View>
--- src/storeInfo/StoreInfo.tsx
@@ -94,7 +94,7 @@ export const StoreInfo = (props: StoreInfoProps) => {
<Title style={styles.storeInfoText}>
{t('changeStore.storeLabel', {store, context})}
</Title>
- <Caption style={styles.storeInfoText}>{address}</Caption>
+ <Caption UNSAFE_style={styles.storeInfoText}>{address}</Caption>
</View>
{!!coordinates && (
@@ -102,7 +102,7 @@ export const StoreInfo = (props: StoreInfoProps) => {
testID='directionsButton'
onPress={openDirections}
style={styles.directionsButton}>
- <Caption style={styles.directionsButtonText}>
+ <Caption UNSAFE_style={styles.directionsButtonText}>
{t('changeStore.directionsButton')}
</Caption>
<ExternalLinkIcon size={16} />
| updated styles | updated styles
|
384fd022b7633cd8f8030ec1f753f80d646eca25 | --- __tests__/harness/redux/mockState/authState.ts
@@ -1 +1,20 @@
-export const authState = {};
+import {AuthState, AuthData} from '@walmart/redux-store';
+
+const authData: AuthData = {
+ accessToken: 'fake-access-token',
+ expirationDate: 'fake-expiration-date',
+ lastRefreshTime: 1234,
+ accessTokenExpirationDate: 'fake-expiration-date',
+ idToken: 'fake-id-token',
+};
+
+export const authState: AuthState = {
+ signingIn: false,
+ signInError: false,
+ signingOut: false,
+ signOutError: false,
+ fetchingToken: false,
+ fetchTokenError: false,
+ loaded: true,
+ data: authData,
+};
--- __tests__/harness/redux/mockState/index.ts
@@ -9,7 +9,7 @@ import {versionsState} from './versionsState';
import {deviceInfoState} from './deviceInfoState';
import {authState} from './authState';
-//TODO: Move this to the @walmart/redux-store project as a sharable mock or import initial state from the redux-store to use in a mock?
+//TODO: Move this to the @walmart/redux-store project to be maintained?
export const initialStateMock: GlobalState = {
auth: authState,
user: hourlyUserState,
--- __tests__/harness/redux/mockState/siteState.ts
@@ -1,14 +1,79 @@
-export const siteState = {
+import {SiteState, Site} from '@walmart/redux-store';
+
+export const siteData: Site = {
+ country: 'US',
+ siteId: 100,
+ division: {
+ code: '1',
+ description: 'fake-division-description',
+ },
+ timeZone: {
+ dstobservable: true,
+ timeZoneCode: 'CDT',
+ rawOffset: -21600,
+ dstOffset: 3600,
+ timeZoneId: 'America/Chicago',
+ timeZoneName: 'Central Daylight Time',
+ standard: 'CST',
+ },
+ currency: {
+ description: 'U.S. Dollar',
+ code: 'USD',
+ },
+ language: {
+ code: 'fake-language-code',
+ description: 'fake-language-description',
+ },
+ specialHours: [
+ {
+ operatingHours: {
+ endTime: '23.00.00',
+ startTime: '06.00.00',
+ },
+ type: {
+ description: 'HOLIDAY',
+ code: 'HOLIDAY',
+ },
+ hoursType: 'OPEN',
+ name: 'Christmas',
+ },
+ ],
+ isStoreOpen: true,
+ hoursOpen: '24',
+ isOpenSunday: true,
+ is24Hour: true,
+ location: {
+ address: {
+ postalCode: '72712-5705',
+ countryCode: 'US',
+ state: 'AR',
+ county: 'BENTON',
+ addressLine1: '406 S WALTON BLVD',
+ city: 'BENTONVILLE',
+ country: 'United States',
+ },
+ longitude: -94.224844,
+ latitude: 36.368173,
+ },
+ isTempStore: false,
+ storeAlignment: {
+ market: '323',
+ region: '42',
+ subDivision: 'A',
+ businessUnitOrgArea: '02',
+ subRegion: '99',
+ segment: '13',
+ },
+ contacts: undefined,
+ divisionDepartments: [],
+ relocationStoreNumber: undefined,
+};
+
+export const siteState: SiteState = {
loaded: true,
error: false,
fetchSiteError: false,
fetchingSite: false,
- data: {
- siteId: 100,
- country: 'US',
- },
- homeSite: {
- siteId: 100,
- country: 'US',
- },
+ data: siteData,
+ homeSite: siteData,
};
--- __tests__/harness/redux/mockState/authState.ts
@@ -1 +1,20 @@
-export const authState = {};
+import {AuthState, AuthData} from '@walmart/redux-store';
+
+const authData: AuthData = {
+ accessToken: 'fake-access-token',
+ expirationDate: 'fake-expiration-date',
+ lastRefreshTime: 1234,
+ accessTokenExpirationDate: 'fake-expiration-date',
+ idToken: 'fake-id-token',
+};
+
+export const authState: AuthState = {
+ signingIn: false,
+ signInError: false,
+ signingOut: false,
+ signOutError: false,
+ fetchingToken: false,
+ fetchTokenError: false,
+ loaded: true,
+ data: authData,
+};
--- __tests__/harness/redux/mockState/index.ts
@@ -9,7 +9,7 @@ import {versionsState} from './versionsState';
import {deviceInfoState} from './deviceInfoState';
import {authState} from './authState';
-//TODO: Move this to the @walmart/redux-store project as a sharable mock or import initial state from the redux-store to use in a mock?
+//TODO: Move this to the @walmart/redux-store project to be maintained?
export const initialStateMock: GlobalState = {
auth: authState,
user: hourlyUserState,
--- __tests__/harness/redux/mockState/siteState.ts
@@ -1,14 +1,79 @@
-export const siteState = {
+import {SiteState, Site} from '@walmart/redux-store';
+
+export const siteData: Site = {
+ country: 'US',
+ siteId: 100,
+ division: {
+ code: '1',
+ description: 'fake-division-description',
+ },
+ timeZone: {
+ dstobservable: true,
+ timeZoneCode: 'CDT',
+ rawOffset: -21600,
+ dstOffset: 3600,
+ timeZoneId: 'America/Chicago',
+ timeZoneName: 'Central Daylight Time',
+ standard: 'CST',
+ },
+ currency: {
+ description: 'U.S. Dollar',
+ code: 'USD',
+ },
+ language: {
+ code: 'fake-language-code',
+ description: 'fake-language-description',
+ },
+ specialHours: [
+ {
+ operatingHours: {
+ endTime: '23.00.00',
+ startTime: '06.00.00',
+ },
+ type: {
+ description: 'HOLIDAY',
+ code: 'HOLIDAY',
+ },
+ hoursType: 'OPEN',
+ name: 'Christmas',
+ },
+ ],
+ isStoreOpen: true,
+ hoursOpen: '24',
+ isOpenSunday: true,
+ is24Hour: true,
+ location: {
+ address: {
+ postalCode: '72712-5705',
+ countryCode: 'US',
+ state: 'AR',
+ county: 'BENTON',
+ addressLine1: '406 S WALTON BLVD',
+ city: 'BENTONVILLE',
+ country: 'United States',
+ },
+ longitude: -94.224844,
+ latitude: 36.368173,
+ },
+ isTempStore: false,
+ storeAlignment: {
+ market: '323',
+ region: '42',
+ subDivision: 'A',
+ businessUnitOrgArea: '02',
+ subRegion: '99',
+ segment: '13',
+ },
+ contacts: undefined,
+ divisionDepartments: [],
+ relocationStoreNumber: undefined,
+};
+
+export const siteState: SiteState = {
loaded: true,
error: false,
fetchSiteError: false,
fetchingSite: false,
- data: {
- siteId: 100,
- country: 'US',
- },
- homeSite: {
- siteId: 100,
- country: 'US',
- },
+ data: siteData,
+ homeSite: siteData,
};
| crafting initial siteSate and authState | crafting initial siteSate and authState
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.