commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
5020c8985fe038a31fbbf925015d5fa02d52e514
--- package-lock.json @@ -3192,9 +3192,9 @@ "integrity": "sha512-0sVdqnfYb2Z90rZpk8drAttxOFKAIR3fAvOvFlVWOyxtPPXrAACOFzoTx++gO5SO5vZ1w6IlMKe8uTi2rpCWTA==" }, "@walmart/schedule-mini-app": { - "version": "0.2.66", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.66.tgz", - "integrity": "sha512-WvPW6GozsG9rxF7XsWC5nELzXgnbQyJZ0CKwN9ABdb2U44SDxBFQADcCDC/UHyHje7DpvJbG4DqLDYFVLFFxCg==", + "version": "0.2.67", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.67.tgz", + "integrity": "sha512-e8h2MP7CCIQ3UYgQnRCZxOqPDYdyB2GoBK4vqz+aMnSVG8jCA3K5g4UHP4bNeRC/ACY0ZM2APq6gcJTFgS8GpA==", "requires": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.1.43", @@ -3305,9 +3305,9 @@ }, "dependencies": { "@babel/runtime": { - "version": "7.13.10", - "resolved": "https://npme.walmart.com/@babel/runtime/-/runtime-7.13.10.tgz", - "integrity": "sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw==", + "version": "7.13.17", + "resolved": "https://npme.walmart.com/@babel/runtime/-/runtime-7.13.17.tgz", + "integrity": "sha512-NCdgJEelPTSh+FEFylhnP1ylq848l1z9t9N0j1Lfbcw0+KXGjsTvUmkxy+voLLXB5SOKMbLLx4jxYliGrYQseA==", "requires": { "regenerator-runtime": "^0.13.4" } --- package.json @@ -75,7 +75,7 @@ "@walmart/react-native-logger": "^1.25.0", "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/redux-store": "^1.0.12", - "@walmart/schedule-mini-app": "0.2.66", + "@walmart/schedule-mini-app": "0.2.67", "@walmart/settings-mini-app": "1.1.20", "@walmart/time-clock-mini-app": "0.1.52", "@walmart/ui-components": "1.0.102",
bump schedules (#472)
bump schedules (#472) Co-authored-by: Dylan Lane - rlane1 <Russell.Lane@walmart.com>
112104ef15e90f921687fd0ae3dd106a91fd49c7
--- .looper-pr.yml @@ -8,7 +8,7 @@ tools: flows: npm-install: - (name Enable Corepack) corepack enable - - (name Yarn Set Version) yarn set version 4.4.0 + - (name Yarn Set Version) yarn set version 4.6.0 - (name Yarn Version) yarn --version - (name Yarn Install) yarn install - (name Test Coverage) yarn run coverage --- package.json @@ -94,9 +94,9 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.7.4", "@walmart/redux-store": "6.3.29", - "@walmart/roster-mini-app": "2.33.0", + "@walmart/roster-mini-app": "2.34.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.33.0", + "@walmart/wmconnect-mini-app": "2.35.0", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6591,9 +6591,9 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.7.4" "@walmart/redux-store": "npm:6.3.29" - "@walmart/roster-mini-app": "npm:2.33.0" + "@walmart/roster-mini-app": "npm:2.34.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.33.0" + "@walmart/wmconnect-mini-app": "npm:2.35.0" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6717,51 +6717,24 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.33.0": - version: 2.33.0 - resolution: "@walmart/roster-mini-app@npm:2.33.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2Froster-mini-app-2.33.0.tgz" - peerDependencies: - "@react-native-async-storage/async-storage": ^1.21.0 - "@react-native-community/netinfo": ^11.0.1 - "@react-native-firebase/analytics": ~17.4.2 - "@react-native-firebase/crashlytics": ~17.4.2 - "@react-native-firebase/database": ~17.4.2 - "@react-native-firebase/perf": ~17.4.2 - "@react-navigation/drawer": ^6.6.4 - "@react-navigation/native": ^6.0.8 - "@reduxjs/toolkit": ^1.9.7 - "@types/node": 20.5.9 - "@walmart/allspark-authentication": 6.1.4 - "@walmart/allspark-graphql-client": ^1.4.6 - "@walmart/allspark-http-client": 6.1.4 - "@walmart/config-components": 4.4.0 - "@walmart/core-services": 6.1.4 - "@walmart/core-services-allspark": 6.25.1 - "@walmart/core-utils": 6.1.4 - "@walmart/functional-components": 6.1.4 - "@walmart/gtp-shared-components": 2.2.4 - "@walmart/react-native-encrypted-storage": ~1.1.3 - "@walmart/react-native-logger": 1.34.8 - "@walmart/react-native-scanner-3.0": 0.5.1 - "@walmart/react-native-shared-navigation": 6.1.4 - "@walmart/react-native-sumo-sdk": "*" - i18next: ^23.6.0 - moment-timezone: ~0.5.43 - npm-run-all: ^4.1.5 - react-i18next: ^13.3.1 - react-native-apollo-devtools-client: ^1.0.4 - react-native-app-auth: ^6.4.3 - react-native-device-info: ~10.13.1 - react-native-gesture-handler: ^2.14.0 - react-native-get-random-values: ~1.10.0 - react-native-reanimated: ^3.6.0 - react-native-safe-area-context: ^4.8.2 - react-native-screens: ^3.28.0 - react-native-wm-telemetry: 6.1.4 - redux: ^4.2.1 - redux-saga: ^1.2.3 - wifi-store-locator: 1.4.1 - checksum: 10c0/903411de13ff7a356a43d152cb2e7759097c752f125706d6d8f48ddfecf2d3b8aff1407f2715532122913a6c8f02972c9aab6eae08a0cc411c66ebf39528e850 +"@walmart/roster-mini-app@npm:2.34.0": + version: 2.34.0 + resolution: "@walmart/roster-mini-app@npm:2.34.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-2.34.0.tgz" + dependencies: + expo: "npm:^51.0.0" + react: "npm:18.2.0" + react-native: "npm:~0.75.4" + peerDependencies: + "@walmart/allspark-foundation": ">=6.32.0" + expo: ^51.0.0 + expo-image: ~1.13.0 + react: "*" + react-native: "*" + react-native-wm-config: 0.1.1 + dependenciesMeta: + "@walmart/me-at-walmart": + built: false + checksum: 10c0/2a3356e905a7a42a8e5ea7884e3258329c0641d8dc4e4522e322840e88c00667b92f7c8247afcc39f70aff860735625f1f08d04d4fcad49d1a4a76ab0096ee89 languageName: node linkType: hard @@ -6785,9 +6758,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.33.0": - version: 2.33.0 - resolution: "@walmart/wmconnect-mini-app@npm:2.33.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-2.33.0.tgz" +"@walmart/wmconnect-mini-app@npm:2.35.0": + version: 2.35.0 + resolution: "@walmart/wmconnect-mini-app@npm:2.35.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-2.35.0.tgz" dependencies: expo: "npm:^51.0.0" react: "npm:18.2.0" @@ -6802,7 +6775,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/10c8add5a3f3ccbf48a37ac00c57e319f762568b28a660191a41df82004fc4e9935e01d5117e6f2a1e334f0ad855e08caf3420a8b9a1d37e584fc6053d2e055e + checksum: 10c0/f420d2a74c8f9e32a66fef1a02a848d17d735a537f6d1e0657c3f1bd7246c8dbaf6a9daf74e3dafc0d9bcf1534a363faf4e65e4a258b63c282484ec6720c843f languageName: node linkType: hard
feat(ui): update package
feat(ui): update package
b677a97ddbf86086fdaee4973ed5dfe502b8b46c
--- android/app/src/main/assets/fonts/icomoon.ttf Binary files a/android/app/src/main/assets/fonts/icomoon.ttf and b/android/app/src/main/assets/fonts/icomoon.ttf differ --- ios/icomoon.ttf Binary files a/ios/icomoon.ttf and b/ios/icomoon.ttf differ
Manually updating the icomoon assets
Manually updating the icomoon assets
8801c31c278c68bb18a4dcfb84714454034bd161
--- targets/US/package.json @@ -86,7 +86,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.24.7", "@walmart/associate-listening-mini-app": "1.2.7", - "@walmart/attendance-mini-app": "3.87.0", + "@walmart/attendance-mini-app": "3.88.0", "@walmart/avp-feature-app": "0.10.7", "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.5.20", --- yarn.lock @@ -6001,9 +6001,9 @@ __metadata: languageName: node linkType: hard -"@walmart/attendance-mini-app@npm:3.87.0": - version: 3.87.0 - resolution: "@walmart/attendance-mini-app@npm:3.87.0" +"@walmart/attendance-mini-app@npm:3.88.0": + version: 3.88.0 + resolution: "@walmart/attendance-mini-app@npm:3.88.0" dependencies: "@walmart/wfm-ui": "npm:^0.2.26" moment-timezone: "npm:0.5.40" @@ -6033,7 +6033,7 @@ __metadata: redux-saga: ^1.2.0 reselect: ^4.1.0 wfm-allspark-data-library: ^3.3.0 - checksum: 10c0/8001dba9f2b2ca3f68a3a9dafeed726f294ea8aa601db4d0f7a929b93b877fa2c66fae26a97984586d6e678367038119b00900fc0d893015a1263b8eaa50d19d + checksum: 10c0/b91a3755e886eea0f86a8b610a6f2d17fe4f2716707f5da65484de960a32a4785fb52b6f9e2b7798214c46f8014a8c6f76ed39a1373e26bd9954ebe80806dc7c languageName: node linkType: hard @@ -7002,7 +7002,7 @@ __metadata: "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.24.7" "@walmart/associate-listening-mini-app": "npm:1.2.7" - "@walmart/attendance-mini-app": "npm:3.87.0" + "@walmart/attendance-mini-app": "npm:3.88.0" "@walmart/avp-feature-app": "npm:0.10.7" "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.5.20"
bump ama verion 3.88.0
bump ama verion 3.88.0
a38e2eb8df3d59cf0511711d74b571de24f135b6
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.0-alpha.7", + "version": "1.15.0-alpha.8", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.0-alpha.8", + "@walmart/roster-mini-app": "2.12.0-alpha.10", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "2.7.0", "babel-jest": "^29.2.1", --- src/navigation/utils.ts @@ -14,7 +14,7 @@ import { } from '../constants'; import {analytics} from '../logger/Analytics'; import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; -import {RosterWidget} from '../components/RosterWidget'; +import {RosterWidget} from '@walmart/roster-mini-app'; import {TeamHubHeader} from '../components/TeamHubHeader'; import {TeamHubButton} from '../components/TeamHubButton'; --- yarn.lock @@ -6428,7 +6428,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.0-alpha.8" + "@walmart/roster-mini-app": "npm:2.12.0-alpha.10" "@walmart/ui-components": "npm:1.15.1" "@walmart/wmconnect-mini-app": "npm:2.7.0" babel-jest: "npm:^29.2.1" @@ -6610,9 +6610,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.0-alpha.8": - version: 2.12.0-alpha.8 - resolution: "@walmart/roster-mini-app@npm:2.12.0-alpha.8" +"@walmart/roster-mini-app@npm:2.12.0-alpha.10": + version: 2.12.0-alpha.10 + resolution: "@walmart/roster-mini-app@npm:2.12.0-alpha.10" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6654,7 +6654,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/ada3ab6669347d0f03a9f59b8bed0c805fd8d00349dc124d964eaefc371756480870b69fce430d28c33ed70eb045228663dd689ad8141bdafaf91919b72d32d7 + checksum: 10c0/b51bd58acdbc0b9eeac0579514c85128245bb2407700d46e3efe4c4b4ac5a4f40dfd247d3780bded967195251afde551c86e5772e3b40e69d45b97fb9bf227ca languageName: node linkType: hard
Update roster widget on my Team mini app
Update roster widget on my Team mini app
b354d2360d59d064aafd048baccd3052fa06e389
--- core/src/copeSideKey/index.ts @@ -1,7 +1,9 @@ import KeyEvent from '@walmart/allspark-cope-key-listener'; import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; +import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; import {FeatureTags} from '@walmart/me-at-walmart-common'; +import {getSettingsAppConfig} from '../settings'; export const COPE_DEVICE_SIDE_KEY_CODE = 1015; export const COPE_SIDE_KEY_TARGET = 'itemInfoQuickAction'; @@ -28,8 +30,12 @@ export const CopeSideKeyFeature = new AllsparkFeatureModule('copeSideKey', { listeners: { feature: { onConnect: () => { - KeyEvent.onKeyDownListener(processKeyEvent); - KeyEvent.requestFocus(); + const settingsConfig = AllsparkReduxStore.select(getSettingsAppConfig); + const isEnabled = settingsConfig?.enableSideKey ?? true; + if (isEnabled) { + KeyEvent.onKeyDownListener(processKeyEvent); + KeyEvent.requestFocus(); + } }, onDisconnect: KeyEvent.removeKeyDownListener, },
chore: add cope side key changes from upstream branch
chore: add cope side key changes from upstream branch
7f9efd6b0f59ddce22ef149fc4cf95f6ba658a18
--- packages/allspark-foundation-hub/__tests__/HubFeature/supplyChain/__snapshots__/ShiftFilter.test.tsx.snap @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ShiftFilter Test 1: Renders ShiftFiltwwwer component with required elements correctly 1`] = ` +<View + accessibilityState={ + { + "busy": undefined, + "checked": undefined, + "disabled": undefined, + "expanded": undefined, + "selected": undefined, + } + } + accessibilityValue={ + { + "max": undefined, + "min": undefined, + "now": undefined, + "text": undefined, + } + } + accessible={true} + collapsable={false} + focusable={true} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + { + "alignItems": "center", + "backgroundColor": "#fff", + "borderColor": "#e3e4e5", + "borderRadius": 40, + "borderWidth": 1, + "display": "flex", + "flexDirection": "row", + "justifyContent": "space-between", + "opacity": 1, + "padding": 8, + "width": 109, + } + } + testID="shift-filter-shift123" +> + <View + style={ + { + "alignItems": "center", + "display": "flex", + "flexDirection": "row", + "gap": 10, + } + } + > + <Image + onError={[Function]} + placeholder="KXR:A^%h.AbIj?j??aM|M{" + resizeMode="contain" + source={ + { + "uri": "http://example.com/image.jpg", + } + } + style={ + { + "alignSelf": "flex-start", + "backgroundColor": "#CCE3F8", + "borderRadius": 40, + "height": 36, + "padding": 10, + "width": 36, + } + } + testID="teamImage-shiftFilter" + /> + <View + accessibilityLabel="shift123" + accessibilityRole="button" + accessible={true} + style={ + { + "display": "flex", + "flexDirection": "column", + } + } + > + <Body + UNSAFE_style={ + { + "fontSize": 16, + "fontWeight": "400", + "lineHeight": 24, + } + } + testID="shiftId" + > + shift123 + </Body> + </View> + </View> +</View> +`;
Adding snap
Adding snap
e2c44727b24b697629aae6e0faf2b1f5f345f010
--- package-lock.json @@ -79,7 +79,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", - "@walmart/taskit-mini-app": "2.23.17", + "@walmart/taskit-mini-app": "2.24.2", "@walmart/time-clock-mini-app": "2.49.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", @@ -6038,9 +6038,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "2.23.17", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.23.17.tgz", - "integrity": "sha512-NHWA4pv3grChRU4Es5v2zEZ88q3eFhTrIxVmiz9ldS4T3RfpfRQXk4ZU6eWGPeAqmO37J0FCvrLuMyo+Sa4gTg==", + "version": "2.24.2", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.2.tgz", + "integrity": "sha512-uhLLL6QUFD89irhLLN23W5AtM+AejCsH/6r4zYzi9Oq6y8E2uarVjV5OZ4EQW6O1uCp3KnT26tmG2Epvq8mpuA==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -25346,9 +25346,9 @@ "integrity": "sha512-6P9nNTvcS59vzeWoi2JKT4ldRTQgMShlzThbbagd6PzbPkOS+M2Tx009eR8GGL5YNwxUP1n3PKmCudppwE0J+w==" }, "@walmart/taskit-mini-app": { - "version": "2.23.17", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.23.17.tgz", - "integrity": "sha512-NHWA4pv3grChRU4Es5v2zEZ88q3eFhTrIxVmiz9ldS4T3RfpfRQXk4ZU6eWGPeAqmO37J0FCvrLuMyo+Sa4gTg==" + "version": "2.24.2", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.2.tgz", + "integrity": "sha512-uhLLL6QUFD89irhLLN23W5AtM+AejCsH/6r4zYzi9Oq6y8E2uarVjV5OZ4EQW6O1uCp3KnT26tmG2Epvq8mpuA==" }, "@walmart/tcnumber": { "version": "2.3.3", --- package.json @@ -121,7 +121,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", - "@walmart/taskit-mini-app": "2.23.17", + "@walmart/taskit-mini-app": "2.24.2", "@walmart/time-clock-mini-app": "2.49.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0",
Updating taskIt
Updating taskIt
91432eb7ba5f5c45af2929e2d4a710eaec7368e6
--- package-lock.json @@ -3177,9 +3177,9 @@ "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ==" }, "@walmart/react-native-logger": { - "version": "1.24.0", - "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.24.0.tgz", - "integrity": "sha512-BFBpM1E7Yom+DmRE8JRn+9c7WeoXWjsXB0wezNJSo5sA89uRgifcJSVXcqSRneyxE+f6rdX0hY1Pb6D5eHoONg==" + "version": "1.25.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.25.0.tgz", + "integrity": "sha512-Phn9ohuTTfIt9pXO3mjOxKMq8Twc1c8sTD8GbpZX24V8F2l8X3OvRngyxymaldP5+cYZeFBch/wya+Wk1sucvQ==" }, "@walmart/react-native-shared-navigation": { "version": "0.4.0", --- package.json @@ -72,7 +72,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.3.26", "@walmart/react-native-env": "^0.1.0", - "@walmart/react-native-logger": "^1.24.0", + "@walmart/react-native-logger": "^1.25.0", "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/redux-store": "^1.0.12", "@walmart/schedule-mini-app": "0.2.64",
fixed crashes from logger (#431)
fixed crashes from logger (#431) Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
60adde8ce547ac41508a6cd1c5f4be7acf6b2968
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.26.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.25.2...v1.26.0) (2025-04-10) + + +### Features + +* **ui:** updating wmconnect and roster app versions ([fea3ff1](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/fea3ff1638b4bb7896a94ad1c52b483ddd4f271c)) + ## [1.25.2](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.25.1...v1.25.2) (2025-04-07) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.25.2", + "version": "1.26.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 1.26.0 [skip ci]
chore(release): 1.26.0 [skip ci] # [1.26.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.25.2...v1.26.0) (2025-04-10) ### Features * **ui:** updating wmconnect and roster app versions ([fea3ff1](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/fea3ff1638b4bb7896a94ad1c52b483ddd4f271c))
3ad2a6d14c452f3a0233300f03771d585593899b
--- lerna.json @@ -20,10 +20,7 @@ "conventionalPrerelease": false } }, - "ignoreChanges": [ - "**/*.md", - "**/__tests__/**" - ], + "ignoreChanges": ["**/*.md", "**/__tests__/**", ".yarnrc.yml", "__snapshots__/**", "**/*.test.tsx", "**/*.stories.tsx"], "packages": [ "packages/*" ]
feat(ui): update associate exp hub version
feat(ui): update associate exp hub version
0eaf5ce52027a6adfdd15001283789a012ad1024
--- ios/Podfile.lock @@ -1917,11 +1917,11 @@ PODS: - React-Core - react-native-safe-area-context (4.10.1): - React-Core - - react-native-scanner-3.0 (0.5.1): + - react-native-scanner-3.0 (0.6.3): - Firebase/Analytics - React - - ScanditBarcodeCapture (= 6.14.0) - - ScanditCaptureCore (= 6.14.0) + - ScanditBarcodeCapture (= 6.23.2) + - ScanditCaptureCore (= 6.23.2) - react-native-splash-screen (3.3.0): - React-Core - react-native-video (5.2.1): @@ -2207,9 +2207,9 @@ PODS: - React-Core - RNVectorIcons (9.2.0): - React-Core - - ScanditBarcodeCapture (6.14.0): - - ScanditCaptureCore (= 6.14.0) - - ScanditCaptureCore (6.14.0) + - ScanditBarcodeCapture (6.23.2): + - ScanditCaptureCore (= 6.23.2) + - ScanditCaptureCore (6.23.2) - SDWebImage (5.17.0): - SDWebImage/Core (= 5.17.0) - SDWebImage/Core (5.17.0) --- package.json @@ -131,7 +131,7 @@ "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "6.1.4", "@walmart/react-native-logger": "1.34.8", - "@walmart/react-native-scanner-3.0": "0.5.1", + "@walmart/react-native-scanner-3.0": "0.6.3", "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.7.0", --- yarn.lock @@ -6847,12 +6847,12 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-scanner-3.0@npm:0.5.1": - version: 0.5.1 - resolution: "@walmart/react-native-scanner-3.0@npm:0.5.1" +"@walmart/react-native-scanner-3.0@npm:0.6.3": + version: 0.6.3 + resolution: "@walmart/react-native-scanner-3.0@npm:0.6.3" peerDependencies: react-native: ">=0.47.1" - checksum: 10c0/057690f9ff4919e8a32c87ccf1d5b708a27f62471b8422f99a52518f842da609af305f5ef98c5d8d6426782d18381bfe42043d46efe13c5cd3643e244bc1e796 + checksum: 10c0/f355e04845ce3955b5c71a098c1035364c45908c0a15fd6bd4200cc8bc1fa066b33a2931fd1d195b83f704ab27810c61452a43dae85bfd7f39ee3a8b72186ae7 languageName: node linkType: hard @@ -7771,7 +7771,7 @@ __metadata: "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-env": "npm:6.1.4" "@walmart/react-native-logger": "npm:1.34.8" - "@walmart/react-native-scanner-3.0": "npm:0.5.1" + "@walmart/react-native-scanner-3.0": "npm:0.6.3" "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.0"
Updated scanner version to 0.6.3
Updated scanner version to 0.6.3
cb1a6602200c580bd44d02cf1c9378691cfa0eb9
--- package.json @@ -87,7 +87,7 @@ "@walmart/core-widget-registry": "0.3.2", "@walmart/counts-component-miniapp": "0.0.39", "@walmart/exception-mini-app": "0.42.4", - "@walmart/facilities-management-miniapp": "0.2.5", + "@walmart/facilities-management-miniapp": "0.2.6", "@walmart/feedback-all-spark-miniapp": "0.8.0", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15",
Update package.json
Update package.json
854073a8967f8ed0c5410d939c26fef5a13d2f06
--- __tests__/redux/selectors.test.ts @@ -3,6 +3,7 @@ import {initialStateMock} from '../harness/redux/mockState'; import {setNestedValue} from '../harness'; import cloneDeep from 'lodash/cloneDeep'; import {SharedReduxState} from '../../src/redux/types'; +import {logger} from '../../src/logger/Logger'; jest.mock('@walmart/redux-store', () => ({ ...jest.requireActual('@walmart/redux-store'), @@ -31,6 +32,17 @@ describe('Selectors', () => { 'appConfig.data.roster', undefined, ) as SharedReduxState; + + let mockLogger; + + beforeEach(() => { + mockLogger = jest.spyOn(logger, 'error'); + mockLogger.mockImplementation(() => {}); + }); + + afterEach(() => { + mockLogger.mockRestore(); + }); it('getUserFirstName selector', () => { const state = setNestedValue( mockState, @@ -44,7 +56,6 @@ describe('Selectors', () => { const initialMockedName = selectors.getUserFirstName(initialStateMock); expect(initialMockedName).toStrictEqual('Darlene'); }); - it('getTextingAppConfigData selector', () => { const getTextingAppConfigData = selectors.getRosterConfigData(appConfigData); @@ -56,6 +67,68 @@ describe('Selectors', () => { expect(getRmaAppId).toStrictEqual(''); }); + it('getRosterState should handle errors', () => { + const error = new Error('Test error'); + const state = { + get roster() { + throw error; + }, + }; + + mockLogger = jest.spyOn(logger, 'error'); + mockLogger.mockImplementation(() => {}); + + try { + selectors.getRosterState(state); + } catch (e) {} + + expect(mockLogger).toHaveBeenCalledWith('getRosterState error', { + message: `error in fetching RosterState: ${error}`, + }); + }); + + it('getRbacState should handle errors', () => { + const error = new Error('Test error'); + const state = { + get rbac() { + throw error; + }, + }; + + const mockLogger = jest.spyOn(logger, 'error'); + mockLogger.mockImplementation(() => {}); + + const getGlobalState = jest.fn().mockReturnValue(state); + selectors.getRbacState.resultFunc = getGlobalState; + + try { + selectors.getRbacState(state); + } catch (e) {} + + expect(mockLogger).toHaveBeenCalledWith('getRbacState error', { + message: `error in fetching RbacState: ${error}`, + }); + }); + + it('getRosterConfigData should handle errors', () => { + const error = new Error('Test error'); + const state = { + get appConfig() { + throw error; + }, + }; + + const mockLogger = jest.spyOn(logger, 'error'); + mockLogger.mockImplementation(() => {}); + + try { + selectors.getRosterConfigData(state); + } catch (e) {} + + expect(mockLogger).toHaveBeenCalledWith('getTextingAppConfigData error', { + message: `error in fetching texting app config data: ${error}`, + }); + }); it('getRmaPath selector', () => { const getRmaPath = selectors.getRmaPath(appConfigData); expect(getRmaPath).toStrictEqual('/texting/weekly_schedule_link'); @@ -177,4 +250,69 @@ describe('Selectors', () => { ); expect(searchText).toStrictEqual('testText'); }); + + it('displayPrimaryTeam selector', () => { + const displayPrimaryTeam = selectors.displayPrimaryTeam(appConfigData); + expect(displayPrimaryTeam).toStrictEqual(false); + }); + + it('displayClockInCount selector', () => { + const displayClockInCount = selectors.displayClockInCount(appConfigData); + expect(displayClockInCount).toStrictEqual(false); + }); + + it('displayViewTeam selector', () => { + const displayViewTeam = selectors.displayViewTeam(appConfigData); + expect(displayViewTeam).toStrictEqual(false); + }); + + it('displayTotalStore selector', () => { + const displayTotalStore = selectors.displayTotalStore(appConfigData); + expect(displayTotalStore).toStrictEqual(false); + }); + + it('displayRecentSearchHistory selector', () => { + const displayRecentSearchHistory = + selectors.displayRecentSearchHistory(appConfigData); + expect(displayRecentSearchHistory).toStrictEqual(false); + }); + + it('displayTeamList selector', () => { + const displayTeamList = selectors.displayTeamList(appConfigData); + expect(displayTeamList).toStrictEqual(false); + }); + + it('displayRoster selector', () => { + const displayRoster = selectors.displayRoster(appConfigData); + expect(displayRoster).toStrictEqual(false); + }); + + it('displayClockIndicator selector', () => { + const displayClockIndicator = + selectors.displayClockIndicator(appConfigData); + expect(displayClockIndicator).toStrictEqual(false); + }); + + it('displayHourlySchedule selector', () => { + const displayHourlySchedule = + selectors.displayHourlySchedule(appConfigData); + expect(displayHourlySchedule).toStrictEqual(false); + }); + + it('displayManagerSchedule selector', () => { + const displayManagerSchedule = + selectors.displayManagerSchedule(appConfigData); + expect(displayManagerSchedule).toStrictEqual(false); + }); + + it('displayJobDescription selector', () => { + const displayJobDescription = + selectors.displayJobDescription(appConfigData); + expect(displayJobDescription).toStrictEqual(false); + }); + + it('showViewTimeClock selector', () => { + const showViewTimeClock = selectors.showViewTimeClock(appConfigData); + expect(showViewTimeClock).toStrictEqual(false); + }); });
Adding tests for selectors file
Adding tests for selectors file
d6b322f8a8235812e1c721446a022e4743380a30
--- package.json @@ -127,7 +127,7 @@ "@walmart/shelfavailability-mini-app": "1.5.18", "@walmart/store-feature-orders": "1.23.0", "@walmart/taskit-mini-app": "2.49.7", - "@walmart/texting-mini-app": "2.1.3", + "@walmart/texting-mini-app": "2.1.4", "@walmart/time-clock-mini-app": "2.175.2", "@walmart/topstock-mini-app": "1.4.8", "@walmart/ui-components": "1.15.1",
Texting mini app version update for View schedule
Texting mini app version update for View schedule
4e7e9bbd9632fd61816172615dce48fd0bf41775
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -19,7 +19,7 @@ import {useCanImpersonate} from '../../hooks'; import {ClockStatus} from '../../types/clockStatus'; import {UpdateSideMenu} from '../../updates/UpdateSideMenu'; import {getUser} from '../../redux/UserSelector'; -import {getNavConfig, getClockStatusData} from '../../redux/SharedSelectors'; +import {getClockStatusData} from '../../redux/SharedSelectors'; const activityName = 'MainActivity';
lintfix
lintfix
b42ada559e8b9daec86c420a0044bfc3267c3518
--- package.json @@ -373,7 +373,7 @@ "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.91.6", "@walmart/iteminfo-mini-app": "7.10.5", - "@walmart/learning-mini-app": "20.0.3", + "@walmart/learning-mini-app": "20.0.12", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.7", "@walmart/me-at-walmart-common": "6.0.7",
Added learning app in overrides
Added learning app in overrides
be297934c12e8ee94e2a4feaad6f46c2aeadc337
--- packages/me-at-walmart-container/src/services/navConfig.ts @@ -34,10 +34,16 @@ type SideMenuConfig = { navs?: SideMenuOption[]; }; +type UnknownMenuConfig = { + type?: 'default'; + navs?: unknown[]; +}; + type GlobaNavConfigData = ( | QuickActionConfig | BottomTabConfig | SideMenuConfig + | UnknownMenuConfig )[]; /** @@ -46,12 +52,21 @@ type GlobaNavConfigData = ( const transformGlobalData = (data: GlobaNavConfigData): NavConfigData => { return data.reduce( (config, option) => { - if (!option.type || !option.navs?.length) { + if (!option.navs?.length) { return config; } - // @ts-ignore - option.navs will match that of config[option.type] - config[option.type].push(...option.navs); + if (option.type === NavType.quickAction) { + config[NavType.quickAction].push(...option.navs); + } + + if (option.type === NavType.bottomNav) { + config[NavType.bottomNav].push(...option.navs); + } + + if (option.type === NavType.sideNav) { + config[NavType.sideNav].push(...option.navs); + } return config; },
fix: nav config transform not handling unexpected nav type
fix: nav config transform not handling unexpected nav type
c272c766271bbba534b94c63ea8a3b5686699553
--- yarn.lock @@ -6001,9 +6001,9 @@ __metadata: languageName: node linkType: hard -"@walmart/attendance-mini-app@npm:3.89.0": - version: 3.89.0 - resolution: "@walmart/attendance-mini-app@npm:3.89.0" +"@walmart/attendance-mini-app@npm:3.90.0": + version: 3.90.0 + resolution: "@walmart/attendance-mini-app@npm:3.90.0" dependencies: "@walmart/wfm-ui": "npm:^0.2.26" moment-timezone: "npm:0.5.40" @@ -6033,7 +6033,7 @@ __metadata: redux-saga: ^1.2.0 reselect: ^4.1.0 wfm-allspark-data-library: ^3.3.0 - checksum: 10c0/c0f6fc9e252b608440c9fe707d93a1f0eddc7a5c2d13733152f1f58f5c119d9b2fed1a58171ff7ddbd9a75f8144263019a83e60fb4f8c464cb9614fae873c552 + checksum: 10c0/ae65924622df16eb6168ec7f5de9e65ce0d8e50706e242e3f0281e7747659ec63d30dc859481a5bfbb71333b6c787082cd586769ec206b034fa5620c80f53425 languageName: node linkType: hard @@ -7002,7 +7002,7 @@ __metadata: "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.24.7" "@walmart/associate-listening-mini-app": "npm:1.2.7" - "@walmart/attendance-mini-app": "npm:3.89.0" + "@walmart/attendance-mini-app": "npm:3.90.0" "@walmart/avp-feature-app": "npm:0.10.7" "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.5.20"
bump ama verion 3.90.0 update
bump ama verion 3.90.0 update
d2845f29cf48c7893f5726a8254552e5ec5f2ba4
--- package.json @@ -168,6 +168,7 @@ "react-native-image-pan-zoom": "^2.1.12", "react-native-image-picker": "4.10.0", "react-native-image-resizer": "1.4.5", + "react-native-inappbrowser-reborn": "^3.7.0", "react-native-linear-gradient": "2.6.2", "react-native-loudness": "^2.0.0", "react-native-maps": "^1.3.2",
added package react-native-inapp-browser
added package react-native-inapp-browser
bd2305af4620b337f3eb82b933feb022021a22d2
--- package-lock.json @@ -4364,9 +4364,9 @@ "integrity": "sha512-soMMFPbISucCuTfmQK2K7HPqrJxtS+5XLniaNxj9LXtNzZuf62Sp7qRRtub9LNzDNkK79UHF6uRLmbG0Oq0vqA==" }, "@walmart/redux-store": { - "version": "1.1.20", - "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-1.1.20.tgz", - "integrity": "sha512-lj/55QVtlzBNmSVc8GeAJcgZp/LxDh1oVSxsNzpPK+126Gqv7Ss0dbeDWCu9+RX9N8DJBEnT6o4DXrfwDt1abA==", + "version": "1.1.21", + "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-1.1.21.tgz", + "integrity": "sha512-Ep4F0VcGmbryMWBjDrIKNSkiirxJ9FSCk04VFyilv34Ku2Xw6r6ReAbUxCU6E+YNYFVPmIb9yy7CLN066/y9hA==", "requires": { "namecase": "^1.1.2", "reduxsauce": "^1.2.1"
package-lock update
package-lock update
670ff1b57ffadd5152b9a233c5ae3dff3bb5b03a
--- src/components/ClockedOutScreenGuard.tsx @@ -8,11 +8,12 @@ import {StyleSheet} from 'react-native'; import {Alert} from '@walmart/gtp-shared-components'; import {useSelector} from 'react-redux'; import {ClockStatusSelectors} from '@walmart/redux-store'; -import {useTranslation} from '@walmart/core-services/Translations'; +import {useTranslation} from 'react-i18next'; import {UserHeader} from '../containers/UserHeader'; import {createStackNavigator} from '@react-navigation/stack'; import {TextingNavParamsMap} from '../navigation'; import {Header} from '@walmart/ui-components'; +import {TEXTING_I18N_NAMESPACE} from '../translations'; const styles = StyleSheet.create({ warning: { @@ -27,7 +28,7 @@ interface ClockedOutScreenGuardProps { const ClockedOutStack = createStackNavigator<TextingNavParamsMap>(); export const ClockedOutScreen = () => { - const {t} = useTranslation(); + const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); analytics('roster', {message: 'clocked out roster access'}, 10); return ( <> --- src/components/ClockedOutScreenGuard.tsx @@ -8,11 +8,12 @@ import {StyleSheet} from 'react-native'; import {Alert} from '@walmart/gtp-shared-components'; import {useSelector} from 'react-redux'; import {ClockStatusSelectors} from '@walmart/redux-store'; -import {useTranslation} from '@walmart/core-services/Translations'; +import {useTranslation} from 'react-i18next'; import {UserHeader} from '../containers/UserHeader'; import {createStackNavigator} from '@react-navigation/stack'; import {TextingNavParamsMap} from '../navigation'; import {Header} from '@walmart/ui-components'; +import {TEXTING_I18N_NAMESPACE} from '../translations'; const styles = StyleSheet.create({ warning: { @@ -27,7 +28,7 @@ interface ClockedOutScreenGuardProps { const ClockedOutStack = createStackNavigator<TextingNavParamsMap>(); export const ClockedOutScreen = () => { - const {t} = useTranslation(); + const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); analytics('roster', {message: 'clocked out roster access'}, 10); return ( <>
adding screen guard
adding screen guard
9aed7dcf3553bcd345751a6170e98c4e6ed471fc
--- 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.9.15](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.9.14...@walmart/allspark-foundation-hub@1.9.15) (2025-06-16) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.9.14](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.9.13...@walmart/allspark-foundation-hub@1.9.14) (2025-06-13) **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.9.14", + "version": "1.9.15", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-athena-queries/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. +## [6.33.5](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.33.4...@walmart/me-at-walmart-athena-queries@6.33.5) (2025-06-16) + +**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries + ## [6.33.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.33.3...@walmart/me-at-walmart-athena-queries@6.33.4) (2025-06-13) ### Bug Fixes --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "6.33.4", + "version": "6.33.5", "description": "> TODO: description", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.9.15 - @walmart/me-at-walmart-athena-queries@6.33.5
3366dc442e85bdce6eaf9a624b945929e158227d
--- package-lock.json @@ -40,7 +40,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "1.1.72", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.19.3", + "@walmart/ask-sam-mini-app": "1.19.4", "@walmart/attendance-mini-app": "3.10.0", "@walmart/avp-feature-app": "0.0.32", "@walmart/avp-shared-library": "0.0.53", @@ -67,7 +67,7 @@ "@walmart/iteminfo-mini-app": "7.8.3", "@walmart/learning-mini-app": "18.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", - "@walmart/metrics-mini-app": "0.19.3", + "@walmart/metrics-mini-app": "0.19.4", "@walmart/mod-flex-mini-app": "1.14.6", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.0.14", @@ -8443,9 +8443,9 @@ } }, "node_modules/@walmart/ask-sam-mini-app": { - "version": "1.19.3", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.19.3.tgz", - "integrity": "sha512-mEmMp499AqfozF6HWt/z/YIKnBilebcx35XLRMGbpvXdISXLmN44mf+bcRS5NUZDWkcmxBRrC5n0N3PWK9hGLg==", + "version": "1.19.4", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.19.4.tgz", + "integrity": "sha512-Bn+HfVW1Q3iJdOASTYdWhNFC/aLoycwedHTQ3eL+oU3t5ANz9IjUbYnAQXGXgp+xSrM3gbCXxdzUe9QZpTiOCQ==", "license": "NONE", "dependencies": { "apisauce": "^1.1.2", @@ -9350,9 +9350,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.19.3", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.19.3.tgz", - "integrity": "sha512-qUn6YcPL0qOpcyJaKwvuSsQJmUruqmy3laqSM96wCckWufFC0n6pw+Bj7mm8alzMP9EkL3jg2Va3EL516cqAjA==", + "version": "0.19.4", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.19.4.tgz", + "integrity": "sha512-zZQVVkoGhwfox9KqPwQvjHHDXStASNRgTN/kj2AFHx4Kpd5PSX2bi/GfGNzv26dDRogCU/M9oL1xRnqkuxHoXg==", "hasInstallScript": true, "dependencies": { "base-64": "^1.0.0" @@ -33216,9 +33216,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "1.19.3", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.19.3.tgz", - "integrity": "sha512-mEmMp499AqfozF6HWt/z/YIKnBilebcx35XLRMGbpvXdISXLmN44mf+bcRS5NUZDWkcmxBRrC5n0N3PWK9hGLg==", + "version": "1.19.4", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.19.4.tgz", + "integrity": "sha512-Bn+HfVW1Q3iJdOASTYdWhNFC/aLoycwedHTQ3eL+oU3t5ANz9IjUbYnAQXGXgp+xSrM3gbCXxdzUe9QZpTiOCQ==", "requires": { "apisauce": "^1.1.2", "axios-cache-adapter": "^2.7.3", @@ -33490,9 +33490,9 @@ } }, "@walmart/metrics-mini-app": { - "version": "0.19.3", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.19.3.tgz", - "integrity": "sha512-qUn6YcPL0qOpcyJaKwvuSsQJmUruqmy3laqSM96wCckWufFC0n6pw+Bj7mm8alzMP9EkL3jg2Va3EL516cqAjA==", + "version": "0.19.4", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.19.4.tgz", + "integrity": "sha512-zZQVVkoGhwfox9KqPwQvjHHDXStASNRgTN/kj2AFHx4Kpd5PSX2bi/GfGNzv26dDRogCU/M9oL1xRnqkuxHoXg==", "requires": { "base-64": "^1.0.0" } --- package.json @@ -81,7 +81,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "1.1.72", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.19.3", + "@walmart/ask-sam-mini-app": "1.19.4", "@walmart/attendance-mini-app": "3.10.0", "@walmart/avp-feature-app": "0.0.32", "@walmart/avp-shared-library": "0.0.53",
ask sam version bump - stop reload widgets
ask sam version bump - stop reload widgets
a452a9ebdfc27ac687a9b50fc1bd11e0e6ee8579
--- packages/allspark-foundation/__tests__/Nudge/helpers.test.tsx @@ -5,7 +5,7 @@ import { } from '../../src/Nudge/helpers'; import { waitFor } from '@testing-library/react-native'; -jest.mock('../../Translation', () => ({ +jest.mock('../../src/Translation', () => ({ AllsparkTranslationClient: { getDeviceLanguage: jest.fn(), }, @@ -24,10 +24,10 @@ jest.mock('../../src/Nudge/NudgeLocalStorage', () => { }; }); -const { AllsparkTranslationClient } = require('../../Translation'); +const { AllsparkTranslationClient } = require('../../src/Translation'); const { NudgeLocalStorage, -} = require('@walmart/allspark-foundation/Nudge/NudgeLocalStorage'); +} = require('../../src/Nudge/NudgeLocalStorage'); describe('helpes', () => { beforeEach(() => { --- packages/allspark-foundation/package.json @@ -45,7 +45,7 @@ }, "scripts": { "clean:tsbuildinfo": "rm -rf *.tsbuildinfo || true", - "clean": "yarn run clean:tsbuildinfo && rm -rf Auth Clock Config Components Container Core DeveloperMenu Device Environment Feature FeatureRunner Geolocation GlobalElements GraphQL HTTP Image LocalStorage Location Logger Navigation Network node_modules Notification Permissions Redux Scanner Services Site Telemetry Translation User Work utils cli || true", + "clean": "yarn run clean:tsbuildinfo && rm -rf Auth Clock Config Components Container Core DeveloperMenu Device Environment Feature FeatureRunner Geolocation GlobalElements GraphQL HTTP Image LocalStorage Location Logger Navigation Network node_modules Notification Permissions Redux Scanner Services Site Telemetry Translation User Work utils cli Nudge GlobalElements || true", "build": "yarn run clean && tsc", "link:assets": "npx react-native-asset", "expo:check": "expo install --check" --- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx @@ -174,15 +174,16 @@ export class AllsparkFeatureModule< // Ensure metadata object exists if (!metadata) { this.metadata = {}; - }; + } // For each key in metadata, if it doesn't exist in this.metadata, add it Object.keys(metadata).forEach((key) => { if (!this.metadata?.[key as keyof FeatureMetadata]) { - this.metadata![key as keyof FeatureMetadata] = metadata[key as keyof FeatureMetadata]; + this.metadata![key as keyof FeatureMetadata] = + metadata[key as keyof FeatureMetadata]; } }); - } + }; /** * Get configuration for feature screen by id @@ -210,14 +211,13 @@ export class AllsparkFeatureModule< const config = this.getScreenConfig<K>(screen); if (config) { - const { getComponent, clockCheckRequired, nudgeDisabled } = config; - + const { getComponent, clockCheckRequired } = config; // Wrap feature screen with foundation guards return withFeatureScreenGuards({ getComponent, featureId: this.id, clockCheckEnabled: Boolean(clockCheckRequired), - nudgeDisabled: Boolean(nudgeDisabled), + metadata: this.metadata, }); } --- packages/allspark-foundation/src/Feature/withFeatureScreenGuards.tsx @@ -2,6 +2,7 @@ import { ComponentType } from 'react'; import { withFeatureToggleGuard } from './withFeatureToggleGuard'; import { withClockGuard } from '../Clock/withClockGuard'; import { withNudgeGuard } from '../Nudge/withNudgeGuard'; +import { FeatureMetadata } from './types'; /** * HOC that wraps a screen component with applicable foundation screen guards. @@ -12,8 +13,9 @@ export const withFeatureScreenGuards = <T extends ComponentType<any>>(config: { getComponent?: () => T; featureId: string; clockCheckEnabled: boolean; - nudgeDisabled: boolean; + metadata?: FeatureMetadata; }) => { + const { metadata: { configKey, packageName } = {}, featureId } = config || {}; // Start with the feature toggle guard const withFeatureToggle = withFeatureToggleGuard(config); @@ -23,9 +25,10 @@ export const withFeatureScreenGuards = <T extends ComponentType<any>>(config: { : withFeatureToggle; // Apply nudge guard if not disabled - const withNudge = !config.nudgeDisabled - ? withNudgeGuard(withClock, config) - : withClock; + const withNudge = + configKey && packageName + ? withNudgeGuard(withClock, { featureId }) + : withClock; return withNudge; }; --- packages/allspark-foundation/src/Nudge/withNudgeGuard.tsx @@ -5,7 +5,7 @@ import React, { useMemo, useEffect, } from 'react'; -// import { AppUpdateBottomSheet } from '@walmart/my-walmart-components'; +import { AppUpdateBottomSheet } from '@walmart/my-walmart-components'; import { useNudge } from './hooks'; import { setNudgeLogsAndTelemetry } from './helpers'; import { @@ -34,10 +34,13 @@ import { * @returns A function component that renders the wrapped component inside the NudgeGuard. */ export const NudgeGuard = (props: PropsWithChildren<IWithNudgeGuardProps>) => { - const { children, featureId } = props; + const { children, featureId } = props; const { nudgeConfig, + isBottomSheetOpen, + handleUpdate, + handleOnNotNow, setBottomSheetOpen, } = useNudge({ featureId }); @@ -76,12 +79,7 @@ export const NudgeGuard = (props: PropsWithChildren<IWithNudgeGuardProps>) => { return ( <> {children} - {/* - @TODO: We cannot have a dependency on @walmart/my-walmart-components - The bottom sheet show for nudge will need to be configurable. - This can be done through the component context. - */} - {/* <AppUpdateBottomSheet + <AppUpdateBottomSheet description={config?.description!} imagePlaceholder={config?.placeholder} imageSource={config?.imgUrl} @@ -91,7 +89,7 @@ export const NudgeGuard = (props: PropsWithChildren<IWithNudgeGuardProps>) => { )} onPressUpdate={handleUpdate()} title={config?.title!} - /> */} + /> </> ); };
feat(nudge): ALLSPARK-6768 nudge core functionality
feat(nudge): ALLSPARK-6768 nudge core functionality
1509f228819fddd294dfa7d7b6dc1fffc91d417a
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.15.0", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.15.0.tgz", - "integrity": "sha512-wvRjQPmn8AGZ6v0+k+VJOGrm7mppHY8jhEKsjAkrWzyPSynHhHmb9KBRRyB7dO3oCJbbl4VkZkihqiiKERpLbg==", + "version": "0.17.0", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.17.0.tgz", + "integrity": "sha512-AjjVy7AtZi+9gOlNyh4RiqOzpyyfIrzTPfUl3A2fs3RcP7WwXZ+VEDa5gCX/h5xxITfnJWjLiCSjjl9UzGBpiw==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -65,7 +65,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.35", "@walmart/allspark-home-mini-app": "0.3.0", "@walmart/allspark-me-mini-app": "0.0.23", - "@walmart/ask-sam-mini-app": "0.15.0", + "@walmart/ask-sam-mini-app": "0.17.0", "@walmart/config-components": "1.0.21", "@walmart/feedback-all-spark-miniapp": "0.0.48", "@walmart/functional-components": "1.0.27",
bumping AskSam version for the UI fix (#542)
bumping AskSam version for the UI fix (#542) Co-authored-by: Hitesh Arora <> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
09d9b143498df24468d759073bca20cb5dc37e59
--- src/channels/components/EmptyChannels.tsx @@ -64,7 +64,9 @@ export const EmptyChannels = () => { {t('channelsScreen.emptyChannelsScreen.codeOfConduct')} </Text>{' '} and - <Text style={styles.linkStyle} onPress={() => navigate('TnC')}> + <Text + style={styles.linkStyle} + onPress={() => navigate('Settings.TermsOfUse')}> {' '} {t('channelsScreen.emptyChannelsScreen.termsOfUse')} </Text>{' '} --- src/channels/components/EmptyChannels.tsx @@ -64,7 +64,9 @@ export const EmptyChannels = () => { {t('channelsScreen.emptyChannelsScreen.codeOfConduct')} </Text>{' '} and - <Text style={styles.linkStyle} onPress={() => navigate('TnC')}> + <Text + style={styles.linkStyle} + onPress={() => navigate('Settings.TermsOfUse')}> {' '} {t('channelsScreen.emptyChannelsScreen.termsOfUse')} </Text>{' '}
update terms of use navigation
update terms of use navigation
6222fe90f992ad678b233fe6dfde291853b27616
--- src/components/Avatar.tsx @@ -9,12 +9,12 @@ import { } from 'react-native'; import {Body, colors} from '@walmart/gtp-shared-components'; import {UserSelectors} from '@walmart/redux-store'; -import {PresenceIndicator} from '../presence/components/PresenceIndicator'; import {useGetAssociateNameQuery} from '../queries/getAssociateName'; import {IdType} from '../queries/schema.types'; import {associateDisplayName, decryptUserId} from '../utils'; import {getGraphQLConfig} from '../services/config'; import {useEnvironment} from '@walmart/core-services/Environment'; +import {ClockStatusIndicator} from "./ClockStatusIndicator"; const styles = StyleSheet.create({ avatarContainer: { @@ -100,7 +100,7 @@ export const Avatar = (props: AvatarProps) => { {showPresence && ( <View style={styles.avatarClockedInIndicator}> - <PresenceIndicator isClockedIn={isClockedIn} /> + <ClockStatusIndicator isClockedIn={isClockedIn} /> </View> )} </View> --- src/components/ClockStatusIndicator.tsx @@ -0,0 +1,64 @@ +import React from 'react'; +import {StyleProp, StyleSheet, TextStyle, View, ViewStyle} from 'react-native'; +import {Body, colors} from '@walmart/gtp-shared-components'; +import {useTranslation} from 'react-i18next'; +import {TEXTING_I18N_NAMESPACE} from '../../translations'; + +const styles = StyleSheet.create({ + indicatorRow: { + flexDirection: 'row', + alignItems: 'center', + }, + clockStatus: { + height: 8, + width: 8, + borderRadius: 12, + borderWidth: 1, + }, + statusText: { + marginLeft: 4, + }, + clockedIn: { + backgroundColor: '#6dd400', + borderColor: colors.green[100], + }, + clockedOut: { + backgroundColor: colors.white, + borderColor: colors.gray[120], + }, +}); + +type PresenceIndicatorProps = { + isClockedIn: boolean | {}; + showIndicator?: boolean; + showText?: boolean; + style?: StyleProp<ViewStyle>; + textStyle?: StyleProp<TextStyle>; +}; + +export const ClockStatusIndicator = ({ + isClockedIn, + showIndicator = true, + showText = false, + style, + textStyle, + }: PresenceIndicatorProps) => { + const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + return ( + <View style={[styles.indicatorRow, style]}> + {showIndicator && ( + <View + style={[ + styles.clockStatus, + isClockedIn ? styles.clockedIn : styles.clockedOut, + ]} + /> + )} + {showText && ( + <Body UNSAFE_style={textStyle}> + {isClockedIn ? t('userHeader.clockedIn') : t('userHeader.clockedOut')} + </Body> + )} + </View> + ); +};
fix clock status indicator
fix clock status indicator
e14b64ff825408a838528cd136782869b6729f17
--- packages/allspark-foundation/src/Feature/README.md @@ -399,9 +399,9 @@ MyFeature.createModule({ ## Lazy Loading -During `createModule` when defining a set of feature capabilites, rather than a static config object, a function can be provided that returns the config object. +During `createModule`, when defining a set of feature capabilites, functions can be provided rather than a static config. -Use this to lazy load expensive feature capabilities to avoid unnecessary code execution and bundle size. +Use this to lazy load expensive capabilities and avoid unnecessary code execution. ```typescript MyFeature.createModule({ @@ -414,19 +414,23 @@ MyFeature.createModule({ }); ``` -It helps to follow the [recommended feature app structure]() so that these capabilites are isolated to their own files. +We recommend following the [recommended feature app structure]() so these capabilites are isolated to their own files. ### Lazy Loading Screens -Part of a screens configuration is the `getComponent` function. So again, you can take adavantage of this to lazy load expensive screens with inline require. +Part of a screen's configuration is the `getComponent` function. Utilize this to lazy load expensive screens with inline require. -So in the example below, screen1 would be preloaded, but screen2 would not be loaded until it is navigated to. +In the example below, screen1 would be preloaded, but screen2 would not be loaded until it is navigated to. ```typescript +import Screen1 from './Screens/Screen1'; + MyFeature.createModule({ name: 'My Feature', screens: { - screen1: {...}, + screen1: { + getComponent: () => Screen1, + }, screen2: { getComponent: () => require('./Screens/Screen2'), }
Update README.md
Update README.md
8e51760a257594b23f1244c103714039455b2e6d
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.45", + "@walmart/metrics-mini-app": "0.9.46", "@walmart/mod-flex-mini-app": "1.4.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -5382,9 +5382,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.9.45", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.45.tgz", - "integrity": "sha512-w/GiGLAX9C7ID+2Mau/Qedp4wOy68bGCt1lK3vppgJd3DjYOSIJaOIAQidR3xd2q4zBZrcd7jbZ+peBQd/D1tw==", + "version": "0.9.46", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.46.tgz", + "integrity": "sha512-vhxwlO5rIQkTJ+zkwbe1c1ym2k0IpJ2okoBXkCOBbFV6ylygK13ANEANXRo5qysXIM3LJ6Gp8Qmu51ilCW2XNg==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25114,9 +25114,9 @@ "integrity": "sha512-E6vAHwZlf/Z+rSLxDJBZsobTh19CO6crd5I6WQrYnM2+Hp+LhSZyh9dVkty6LLweJy6l4nmcVHJS6/A6QRC5aA==" }, "@walmart/metrics-mini-app": { - "version": "0.9.45", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.45.tgz", - "integrity": "sha512-w/GiGLAX9C7ID+2Mau/Qedp4wOy68bGCt1lK3vppgJd3DjYOSIJaOIAQidR3xd2q4zBZrcd7jbZ+peBQd/D1tw==", + "version": "0.9.46", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.46.tgz", + "integrity": "sha512-vhxwlO5rIQkTJ+zkwbe1c1ym2k0IpJ2okoBXkCOBbFV6ylygK13ANEANXRo5qysXIM3LJ6Gp8Qmu51ilCW2XNg==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2",
metrics version bump for supply chain requirements
metrics version bump for supply chain requirements
3d2cfc6315e8cb549fc8094c667a88afb552a92d
--- package-lock.json @@ -3193,9 +3193,9 @@ "integrity": "sha512-UfQvukDS75owqFhjEW+A8Ara/9zRAQNaesPJu1a6/zv8qauT9gUw/rq1VKcVeD2NiMaQCNNx+tNlOiluGRPTdQ==" }, "@walmart/time-clock-mini-app": { - "version": "0.1.39", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.39.tgz", - "integrity": "sha512-gHgG0CisFUSawHxsPO+NQgQzyn4PeNObJRw8xLY/lqXc2+pqB73cF9Ecke0BZWmqbU/kYIkDGhU0vlQ1jOKi2A==", + "version": "0.1.42", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.42.tgz", + "integrity": "sha512-7ZebPv/qidTWIwUFoREqwUKEA/Acpa4647jSm+rKQ+lqQ2L+H3wSY28HwNT9GpdLnkeFqEQbDOpDGcxTBPS+Yw==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "javascript-time-ago": "^2.3.4", --- package.json @@ -65,7 +65,7 @@ "@walmart/redux-store": "^1.0.12", "@walmart/schedule-mini-app": "0.2.58", "@walmart/settings-mini-app": "1.1.16", - "@walmart/time-clock-mini-app": "0.1.39", + "@walmart/time-clock-mini-app": "0.1.42", "@walmart/ui-components": "1.0.96", "@walmart/welcomeme-mini-app": "0.5.27", "i18next": "^19.7.0",
Controlling clocking geo accuracy using CCM (#380)
Controlling clocking geo accuracy using CCM (#380) * Controlling clocking geo accuracy using CCM * Post review time clock mini app bump * Time clock phantom punch fixes Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
cda319d2a104c4acce29d6cb446dfce506335689
--- .looper.multibranch.yml @@ -271,7 +271,7 @@ flows: - exposeVars(./fastlane/fastlane-session.json) - var(BUILD_NUMBER): echo "${fastlane-session.android_version_code}" - - echo "Android version code from file ${fastlane-session.android_version_code} and variable ${BUILD_NUMBER}" + - echo "Android version code ${BUILD_NUMBER}" - var(GIT_DIRECTORY = "allspark-core-version") - | (name Set Versioning) @@ -494,7 +494,7 @@ flows: # @param betacrashPIN - pin for this build slack-success: - exposeVars(./betacrash.json) - - (get android version code) bundle exec fastlane get_android_version_code + - echo "Android version code from slack-success ${BUILD_NUMBER}" - var(MESSAGE_TITLE): echo "${slackIcon} ${osIcon} ${releaseType} ${version}" - echo "betacrashUrl ${betacrash.url}" @@ -549,7 +549,7 @@ flows: # @param buildType - release or snapshot # @param releaseType slack-failure: - - exposeVars(./fastlane/fastlane-session.json) + - echo "Android version code from slack-failure ${BUILD_NUMBER}" - var(MESSAGE_TITLE): | echo ":x: ${osIcon} ${releaseType} BUILD FAILED"
removing call to get_android_vsersion_code
removing call to get_android_vsersion_code
533571a01b8143dc9536462e2ad2b4281a9f8f07
--- plugins/withBuildSupport.ts @@ -2,6 +2,10 @@ import { ConfigPlugin, withDangerousMod } from "@expo/config-plugins"; import { copyFileSync, readdirSync, statSync, mkdirSync } from "fs"; import path from "path"; +/** + * Temporary plugin to copy BuildSupport files to the ios project. These files might be used by the + * CI/CD pipeline so keeping them in the project for backwards compatability. + */ export const withBuildSupport: ConfigPlugin = (config) => { return withDangerousMod(config, [ "ios",
chore: add comment to build support plugin
chore: add comment to build support plugin
326550fd5f4d34c14392266c5a616c0a28d12963
--- jest.config.js @@ -1,5 +1,5 @@ module.exports = { - projects: ['<rootDir>/packages/*'], + projects: ['packages/*/jest.config.js'], setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'], testResultsProcessor: 'jest-sonar-reporter', coverageReporters: ['lcov', 'text'], --- packages/allspark-foundation/__tests__/utils/index.js @@ -1,7 +1,7 @@ import React from 'react'; import { Provider } from 'react-redux'; import { render as tlRender } from '@testing-library/react-native'; -import { AllsparkReduxStore } from '../../Redux'; +import { AllsparkReduxStore } from '../../src/Redux'; const render = (component, renderOptions = {}) => { const Wrapper = ({ children }) => {
fix unit test config
fix unit test config
80748c64ce1c47214253a9bd645a80658fd45123
--- .looper.multibranch.yml @@ -610,8 +610,6 @@ flows: msteams-success: - exposeVars(./betacrash.json) - - var(BUILD_NUMBER): - sh scripts/getIOSAppBundleNumber.sh ios/AllSpark/Info.plist - | #!/bin/sh -x @@ -640,8 +638,6 @@ flows: --downloadPassword "${betacrash.pin}" msteams-failure: - - var(BUILD_NUMBER): - sh scripts/getIOSAppBundleNumber.sh ios/AllSpark/Info.plist - | #!/bin/sh -x
removing setting of build number var locally
removing setting of build number var locally
0ac2f17f3b234d04079714e5abbe9f2ed60e3d94
--- package-lock.json @@ -4453,9 +4453,9 @@ } }, "@walmart/settings-mini-app": { - "version": "1.3.9", - "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.3.9.tgz", - "integrity": "sha512-+nkW3a+BJZlD+x/AXnNSLj66kf5rKSBNAtosz7LvWHuv+7VrtIDYwP/uoe8j5uneO4AJZpOHCIdEEGHYXOte4A==" + "version": "1.5.0", + "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.5.0.tgz", + "integrity": "sha512-wS09P2+WMawKcQb5GkrB4i9iAN25TVSaLGjLvpc6Iy92V5eLNGN2PVIBB3Blgfi4f7js6Mzppf9yQKe3qtzlpA==" }, "@walmart/shelfavailability-mini-app": { "version": "0.5.0", --- package.json @@ -95,7 +95,7 @@ "@walmart/react-native-sumo-sdk": "2.1.0", "@walmart/redux-store": "1.1.21", "@walmart/schedule-mini-app": "0.6.0", - "@walmart/settings-mini-app": "1.3.9", + "@walmart/settings-mini-app": "1.5.0", "@walmart/shelfavailability-mini-app": "0.5.0", "@walmart/taskit-mini-app": "0.0.77-rc.0", "@walmart/time-clock-mini-app": "0.4.24",
version update of settings-mini-app
version update of settings-mini-app
fc72023892dcef57a780b3b8ed29ebf7df1d192d
--- .yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch @@ -1,13 +0,0 @@ -diff --git a/compass-sdk-rn.podspec b/compass-sdk-rn.podspec -index 4c66910fbc7e5bb0a714a35ba2f68a3dcf4e92c5..7c638f34945af447d0ac269f9855b22066f9270d 100644 ---- a/compass-sdk-rn.podspec -+++ b/compass-sdk-rn.podspec -@@ -31,7 +31,7 @@ Pod::Spec.new do |s| - } - - s.dependency "React-Codegen" -- s.dependency "RCT-Folly", folly_version -+ s.dependency "RCT-Folly" - s.dependency "RCTRequired" - s.dependency "RCTTypeSafety" - s.dependency "ReactCommon/turbomodule/core" --- package.json @@ -106,7 +106,7 @@ "@walmart/celebration-mini-app": "1.35.0", "@walmart/checkout-mini-app": "4.19.0", "@walmart/clock-status-plugin": "0.13.0", - "@walmart/compass-sdk-rn": "patch:@walmart/compass-sdk-rn@npm%3A6.4.5#~/.yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch", + "@walmart/compass-sdk-rn": "6.4.16", "@walmart/config-components": "patch:@walmart/config-components@npm%3A4.12.1#~/.yarn/patches/@walmart-config-components-npm-4.12.1-935618cf47.patch", "@walmart/core-services": "~6.5.2", "@walmart/core-services-allspark": "6.27.0", @@ -446,7 +446,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-foundation": "7.14.4", "@walmart/allspark-utils": "7.1.0", - "@walmart/compass-sdk-rn": "patch:@walmart/compass-sdk-rn@npm%3A6.4.5#~/.yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch", + "@walmart/compass-sdk-rn": "6.4.16", "@walmart/config-components": "patch:@walmart/config-components@npm%3A4.12.1#~/.yarn/patches/@walmart-config-components-npm-4.12.1-935618cf47.patch", "@walmart/core-services-allspark": "6.27.0", "@walmart/core-widget-registry": "6.26.0", --- yarn.lock @@ -7750,23 +7750,13 @@ __metadata: languageName: node linkType: hard -"@walmart/compass-sdk-rn@npm:6.4.5": - version: 6.4.5 - resolution: "@walmart/compass-sdk-rn@npm:6.4.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcompass-sdk-rn%2F-%2F%40walmart%2Fcompass-sdk-rn-6.4.5.tgz" +"@walmart/compass-sdk-rn@npm:6.4.16": + version: 6.4.16 + resolution: "@walmart/compass-sdk-rn@npm:6.4.16::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcompass-sdk-rn%2F-%2F%40walmart%2Fcompass-sdk-rn-6.4.16.tgz" peerDependencies: react: "*" react-native: "*" - checksum: 10c0/96c2eef21a56c1854b0bf2b4fcf6a5d4575db76d4ad4af047b467e96abaeb8492358d57fa2c73e2a7b09ae8350c509b15d14b5b1c1ea0160d36ba8370a469eaf - languageName: node - linkType: hard - -"@walmart/compass-sdk-rn@patch:@walmart/compass-sdk-rn@npm%3A6.4.5#~/.yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch": - version: 6.4.5 - resolution: "@walmart/compass-sdk-rn@patch:@walmart/compass-sdk-rn@npm%3A6.4.5%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fcompass-sdk-rn%252F-%252F%2540walmart%252Fcompass-sdk-rn-6.4.5.tgz#~/.yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch::version=6.4.5&hash=43c614" - peerDependencies: - react: "*" - react-native: "*" - checksum: 10c0/3f83adaf3a4d75a90c68f5213a753e8e156c1677a5425eb1895b2aa55c1e772ff90bb3d21b0edfb91ab45c8974cef7c81b45a2b0ac74b500d593f02279ce35d9 + checksum: 10c0/3665701898424f7a62b3c4902833ea90b29d708ffc5d1833aad2196a98c0bd90f32fae64a83f09e0b14bbb7fc45a85427f2b55a118f7afbf89f957e4ed415288 languageName: node linkType: hard @@ -8447,7 +8437,7 @@ __metadata: "@walmart/celebration-mini-app": "npm:1.35.0" "@walmart/checkout-mini-app": "npm:4.19.0" "@walmart/clock-status-plugin": "npm:0.13.0" - "@walmart/compass-sdk-rn": "patch:@walmart/compass-sdk-rn@npm%3A6.4.5#~/.yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch" + "@walmart/compass-sdk-rn": "npm:6.4.16" "@walmart/config-components": "patch:@walmart/config-components@npm%3A4.12.1#~/.yarn/patches/@walmart-config-components-npm-4.12.1-935618cf47.patch" "@walmart/core-services": "npm:~6.5.2" "@walmart/core-services-allspark": "npm:6.27.0"
feat: feature/compass drop35 (#4973)
feat: feature/compass drop35 (#4973) Co-authored-by: Peter lin - k0l0bt0 <Peter.Lin@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
742718890bb75fea7e370fbc1f7dc5660a5be520
--- app.config.US.ts @@ -220,7 +220,7 @@ const CONFIG: ExpoConfig = { "Allow $(PRODUCT_NAME) to use your Camera for scanning barcodes", }, ], - ["./plugins/withAbiFilters", ["armeabi-v7a", "arm64-v8a", "x86", "x86_64"]], + "./plugins/withAbiFilters", // "./plugins/withActiveArchFix", "./plugins/withAppAuth", "./plugins/withBoringSSLFix", --- plugins/withAbiFilters.ts @@ -1,13 +1,21 @@ import { ConfigPlugin, withAppBuildGradle } from "@expo/config-plugins"; import { mergeContents } from "@expo/config-plugins/build/utils/generateCode"; +import { join } from "path"; +import { readFileSync } from "fs"; -type Props = string[]; +const withAbiFilters: ConfigPlugin = (config) => { -const withAbiFilters: ConfigPlugin<Props> = (config, props) => { - const newSrc = `ndk { - abiFilters ${props.map((item) => `"${item}"`).join(",")} - }`; return withAppBuildGradle(config, (config) => { + const gradlePropertiesPath = join(config.modRequest.platformProjectRoot, 'gradle.properties'); + const gradleProperties = readFileSync(gradlePropertiesPath, 'utf8'); + // get non commented full reactNativeArchitectures value , which is second in the gradle.properties + const reactNativeArchitectures = gradleProperties?.split('reactNativeArchitectures=')[2].split('\n')[0]; + const architecturesArray = reactNativeArchitectures.split(','); + + const newSrc = `ndk { + abiFilters ${architecturesArray.map((item) => `"${item}"`).join(",")} + }`; + config.modResults.contents = mergeContents({ tag: "abi-filters", src: config.modResults.contents,
update withAbiFilters to read gradle.prop for filters
update withAbiFilters to read gradle.prop for filters
a9d0b491abbb52b5fc0c4565dbceab0e8e95f505
--- packages/celebration-mini-app/src/screens/CelebrationDetailsScreen.tsx @@ -356,15 +356,15 @@ const CelebrationDetailsScreen = CelebrationFeature.createScreen( description={ isBirthday ? t('emptyListInfo.messageBirthdays', { - defaultValue: + defaultValue: 'There are no people in your team celebrating birthdays in the next 7 days.', - fallbackLng: 'en-US', - }) + fallbackLng: 'en-US', + }) : t('emptyListInfo.messageAnniversaries', { - defaultValue: + defaultValue: 'There are no people in your team celebrating anniversaries in the next 7 days.', - fallbackLng: 'en-US', - }) + fallbackLng: 'en-US', + }) } mediaComponent={ <AllsparkImage @@ -394,8 +394,8 @@ const CelebrationDetailsScreen = CelebrationFeature.createScreen( const thisWeekTitle = isBirthday ? t('birthdaysThisWeek', {defaultValue: 'Birthdays this week'}) : t('anniversariesThisWeek', { - defaultValue: 'Anniversaries this week', - }); + defaultValue: 'Anniversaries this week', + }); return ( <ScrollView
chore(ui): update lint errors
chore(ui): update lint errors
0c5f321b2c2930abf97a82137adac7a6a4b4b385
--- package.json @@ -89,7 +89,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.32.21", "@walmart/associate-listening-mini-app": "1.2.37", - "@walmart/attendance-mini-app": "3.174.0", + "@walmart/attendance-mini-app": "3.174.2", "@walmart/avp-feature-app": "0.16.25", "@walmart/avp-shared-library": "0.10.14", "@walmart/backroom-mini-app": "1.13.3", --- yarn.lock @@ -7739,9 +7739,9 @@ __metadata: languageName: node linkType: hard -"@walmart/attendance-mini-app@npm:3.174.0": - version: 3.174.0 - resolution: "@walmart/attendance-mini-app@npm:3.174.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.174.0.tgz" +"@walmart/attendance-mini-app@npm:3.174.2": + version: 3.174.2 + resolution: "@walmart/attendance-mini-app@npm:3.174.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.174.2.tgz" peerDependencies: "@react-native-community/datetimepicker": ">=5.1.0" "@react-navigation/native": ">=6.0.8" @@ -7771,7 +7771,7 @@ __metadata: redux-saga: ">=1.2.3" reselect: ">=4.1.0" wfm-allspark-data-library: ">=3.3.0" - checksum: 10c0/382b40a88018e7c23e201a35f4f207d94b446da65b316a66c8c197742625d82988b0729ac9af2c8df07a9fe19513255141d0736fb18ea8c0b7581c5161d48424 + checksum: 10c0/e33c4fe1d300896aa5b0a69af265eebd6523cb1ff534d8301755ba0cc9dc699b08b83bc7c69fc5a7b07870f52fa62f86d3f889ad7a0884522322c65cbb178e55 languageName: node linkType: hard @@ -8643,7 +8643,7 @@ __metadata: "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.32.21" "@walmart/associate-listening-mini-app": "npm:1.2.37" - "@walmart/attendance-mini-app": "npm:3.174.0" + "@walmart/attendance-mini-app": "npm:3.174.2" "@walmart/avp-feature-app": "npm:0.16.25" "@walmart/avp-shared-library": "npm:0.10.14" "@walmart/backroom-mini-app": "npm:1.13.3"
feat: attendance mini app crash fix (#4658)
feat: attendance mini app crash fix (#4658) Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
4e63f198312d461b5f99f2da84fc6bdd3f5dbee4
--- package.json @@ -99,7 +99,7 @@ "@walmart/gta-react-native-calendars": "0.1.0", "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", - "@walmart/ims-print-services-ui": "2.8.1", + "@walmart/ims-print-services-ui": "2.8.0", "@walmart/inbox-mini-app": "0.89.2", "@walmart/iteminfo-mini-app": "7.7.4", "@walmart/learning-mini-app": "17.0.4",
Revert Print UI to 2.8.0
Revert Print UI to 2.8.0 2.8.1 is planned for Drop 19
dcead2a3b3f77d391bd331174d08d41c3fc1cab7
--- __tests__/settings/dataSaver/sagasTest.ts @@ -221,7 +221,7 @@ test('dataSaverSagas', () => { expect(iterator.next().value).toEqual( all([ takeLatest(SettingsActionTypes.DATA_SAVER_CHANGE, onDataSaverChange), - debounce(500, NetworkActionTypes.STATE_CHANGED, onNetworkChange), + debounce(100, NetworkActionTypes.STATE_CHANGED, onNetworkChange), ]), ); }); --- src/settings/dataSaver/sagas.ts @@ -113,7 +113,7 @@ export function* dataSaverSagas() { yield all( createRestartableSagas([ takeLatest(SettingsActionTypes.DATA_SAVER_CHANGE, onDataSaverChange), - debounce(500, NetworkActionTypes.STATE_CHANGED, onNetworkChange), + debounce(100, NetworkActionTypes.STATE_CHANGED, onNetworkChange), ]), ); }
chore: reduce debounce time for network banner.
chore: reduce debounce time for network banner.
ca7b390b78478e0c7f65c51f362bd85c88e72db7
--- src/hooks/teams.ts @@ -1,6 +1,6 @@ import {useSelector} from 'react-redux'; import {useGetTeamByIdQuery} from '../queries/getTeamById'; -import {useGetTeamsByStoreQuery} from '../queries/getTeamsbyStore'; +import {useGetTeamsByStoreQuery} from '@walmart/me-at-walmart-athena-queries'; import {Associate} from '../types'; import {logger} from '../common/logger'; import {useDailyRoster} from './roster'; @@ -65,6 +65,7 @@ export const useGetTeamsByStore = () => { storeNbr: storeNbr!, date: moment().format('YYYY-MM-DD'), countryCode: countryCode!, + includeManagement: true, }, skip: !storeNbr || !countryCode, notifyOnNetworkStatusChange: true,
Updating getteamsbystore query to include management
Updating getteamsbystore query to include management
b6c2a016f3035cbc08e60b4c600a041eaf190e91
--- package.json @@ -17,7 +17,7 @@ "androidConfig:teflon": "sh scripts/updateAndroidProjectConfig.sh Teflon", "build": "yarn workspaces foreach -R --topological-dev run build", "check:dependencies": "yarn rnx-align-deps", - "coverage": "jest --coverage", + "coverage": "yarn run build && jest --coverage", "env:beta": "yarn run firebase:beta && cp env.beta.js env.js && yarn run projConfig:beta", "env:dev": "yarn run firebase:dev && cp env.dev.js env.js && yarn run projConfig:dev", "env:prod": "yarn run firebase:prod && cp env.prod.js env.js && yarn run projConfig:prod",
Updated coverage script
Updated coverage script
3f5955313bed6eb51b96dfe580f4b8e404bc8034
--- ios/Podfile.lock @@ -2072,6 +2072,6 @@ SPEC CHECKSUMS: Yoga: dc109b79db907f0f589fc423e991b09ec42d2295 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: bc85f0ecab1b1b7585482122a8b5d7888548d44d +PODFILE CHECKSUM: aa974c743da6f2b8f34d7624b49e605b95240d31 -COCOAPODS: 1.12.1 +COCOAPODS: 1.12.0
cocoapods downgrade to 1.12.0
cocoapods downgrade to 1.12.0
0fd5db33974ee9f19ec5c4f75bab88dc0300237c
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/iteminfo-mini-app": "7.1.4", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.3.0", - "@walmart/metrics-mini-app": "0.9.68", + "@walmart/metrics-mini-app": "0.11.4", "@walmart/mod-flex-mini-app": "1.6.3", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -5518,9 +5518,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.9.68", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.68.tgz", - "integrity": "sha512-l63bI0WlO/S0nfLY3TQGaNWxLRkzpVNrpi2S0VCvBctNHDkcCNjPRJoac77BJbxxacTLnSpgL+Vy6bWVkWmkgw==", + "version": "0.11.4", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.11.4.tgz", + "integrity": "sha512-7oVSahxzZZy9FLmlzV/q2koeAG/MIIv5KHgI/eb3FiNcX4EWDM4RECbrvHfrbv8sWAdbGGDeIhVUqTNcWx5KMg==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -5537,7 +5537,7 @@ "axios-cache-adapter": ">=2.7.3", "lodash": ">=4.17.21", "react": "18.1.0", - "react-native": "0.70.6", + "react-native": "0.70.9", "react-native-get-random-values": ">=1.8.0", "react-native-linear-gradient": ">=2.6.2", "react-redux": ">=8.0.4", @@ -25304,9 +25304,9 @@ "integrity": "sha512-75CISnPJImPcR33NhMkwonct2dJbHWVVZsL7DaADW28V2K2WEKLd+k0CvSHubjhxD2DAHKQf/gH0YZ3jDjiEtA==" }, "@walmart/metrics-mini-app": { - "version": "0.9.68", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.68.tgz", - "integrity": "sha512-l63bI0WlO/S0nfLY3TQGaNWxLRkzpVNrpi2S0VCvBctNHDkcCNjPRJoac77BJbxxacTLnSpgL+Vy6bWVkWmkgw==", + "version": "0.11.4", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.11.4.tgz", + "integrity": "sha512-7oVSahxzZZy9FLmlzV/q2koeAG/MIIv5KHgI/eb3FiNcX4EWDM4RECbrvHfrbv8sWAdbGGDeIhVUqTNcWx5KMg==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -99,7 +99,7 @@ "@walmart/iteminfo-mini-app": "7.1.4", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.3.0", - "@walmart/metrics-mini-app": "0.9.68", + "@walmart/metrics-mini-app": "0.11.4", "@walmart/mod-flex-mini-app": "1.6.3", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14",
Bumping metrics-mini-app version to 0.11.4
Bumping metrics-mini-app version to 0.11.4
ccef97a9e32efe08d3886dd9bdf7af9dc640b2fb
--- graphql.yml @@ -93,11 +93,21 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql' tags: - 'v1' - # - name: "getLoggedInUser" - # hash: "f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql" + - name: 'getLoggedInUser' + hash: 'f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' + tags: + - 'v1' + - name: 'getTeamByIdHome' + hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' + tags: + - 'v1' + # - name: "GetTeamsByStore" + # hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql" # tags: - # - "v1" + # - 'v1' - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql'
feat: allspark-4663 - making stage and prod in sync
feat: allspark-4663 - making stage and prod in sync
4a3b8142955a4caf1b2cb95b70d00fd7c8c329fd
--- .looper.multibranch.yml @@ -255,7 +255,7 @@ flows: - echo "buildType ${buildType}" - echo "workspace is ${WORKSPACE}" - - var(stuff = '{{ $root = {title = "stuff", version = "1.10"}, webhookUrl = "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/16391a60331c4d4999f112e40a0b2db1/f02e8323-deff-42c4-85df-613f84ca35ff"}}') + - var(stuff = '{{ \$root = {title = "stuff", version = "1.10"}, webhookUrl = "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/16391a60331c4d4999f112e40a0b2db1/f02e8323-deff-42c4-85df-613f84ca35ff"}}') # webhookUrl: "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/16391a60331c4d4999f112e40a0b2db1/f02e8323-deff-42c4-85df-613f84ca35ff" # $root: # title: "stuff"
trying something
trying something
3fe2097b7c5f133a47450f85b64ab7ff136833a2
--- ios/Podfile @@ -37,7 +37,7 @@ target 'AllSpark' do permissions_path = '../node_modules/react-native-permissions/ios' pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse" pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications" - pod 'TextServiceProto', :git => 'git@gecgithub01.walmart.com:smdv/TextServiceProto.git', :tag => '0.0.10' + pod 'TextServiceProto', :git => 'git@gecgithub01.walmart.com:smdv/TextServiceProto.git', :tag => '0.0.11' pod 'Permission-Camera', :path => "#{permissions_path}/Camera" # Enables Flipper. --- ios/Podfile.lock @@ -177,12 +177,12 @@ PODS: - RNPermissions - PromisesObjC (2.0.0) - Protobuf (3.19.4) - - PTT (0.7.13-rc.1): + - PTT (0.7.13-rc.2): - BinaryCodable (~> 0.2.1) - CocoaAsyncSocket (~> 7.6.3) - RealmSwift (= 10.15.0) - Starscream (~> 3.0.2) - - TextServiceProto (= 0.0.10) + - TextServiceProto (= 0.0.11) - RCT-Folly (2021.06.28.00-v2): - boost - DoubleConversion @@ -403,8 +403,8 @@ PODS: - React-Core - react-native-pdf (6.2.2): - React-Core - - react-native-ptt-module (1.5.50): - - PTT (= 0.7.13-rc.1) + - react-native-ptt-module (1.5.51): + - PTT (= 0.7.13-rc.2) - React - react-native-safe-area-context (3.3.2): - React-Core @@ -585,7 +585,7 @@ PODS: - Firebase/Messaging (~> 8.4) - StructuredLogAssistantIOS (= 0.0.6) - SwiftProtobuf (1.19.0) - - TextServiceProto (0.0.10): + - TextServiceProto (0.0.11): - SwiftProtobuf - VisionCamera (1.0.10): - React-Core @@ -679,7 +679,7 @@ DEPENDENCIES: - RNSVG (from `../node_modules/react-native-svg`) - RNVectorIcons (from `../node_modules/react-native-vector-icons`) - RNWMSSOLibrary (from `../node_modules/react-native-ssmp-sso-allspark`) - - "TextServiceProto (from `git@gecgithub01.walmart.com:smdv/TextServiceProto.git`, tag `0.0.10`)" + - "TextServiceProto (from `git@gecgithub01.walmart.com:smdv/TextServiceProto.git`, tag `0.0.11`)" - VisionCamera (from `../node_modules/react-native-vision-camera`) - "walmart-react-native-sumo-sdk (from `../node_modules/@walmart/react-native-sumo-sdk`)" - wifi-store-locator (from `../node_modules/wifi-store-locator`) @@ -889,7 +889,7 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-ssmp-sso-allspark" TextServiceProto: :git: "git@gecgithub01.walmart.com:smdv/TextServiceProto.git" - :tag: 0.0.10 + :tag: 0.0.11 VisionCamera: :path: "../node_modules/react-native-vision-camera" walmart-react-native-sumo-sdk: @@ -902,7 +902,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: TextServiceProto: :git: "git@gecgithub01.walmart.com:smdv/TextServiceProto.git" - :tag: 0.0.10 + :tag: 0.0.11 SPEC CHECKSUMS: Apollo: c3f1cc3bfb36e1c4bbb642f44184ad759ad42a87 @@ -939,7 +939,7 @@ SPEC CHECKSUMS: Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58 Protobuf: 235750e4696ff59fb07d949a9dbbc92b3c0700fe - PTT: 2b4f596bc730bffe7ce9cf77b8921d7937672770 + PTT: c7b101d7aebd1409d336a8f4badd21a6c26e9051 RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 RCTRequired: 4bf86c70714490bca4bf2696148638284622644b RCTTypeSafety: c475a7059eb77935fa53d2c17db299893f057d5d @@ -963,7 +963,7 @@ SPEC CHECKSUMS: react-native-netinfo: 77d133105df525d4a11f10fcaa8d0b8883ea6429 react-native-pager-view: 311c10a4eead1be627cad59062aa059d8108b943 react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f - react-native-ptt-module: 3f54bed986b238bda8425d82d1d6307b2a2bef90 + react-native-ptt-module: fa2c56135b48c1f3fa0237c00ade0a3baf4bb0c0 react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 @@ -1021,12 +1021,12 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: 68c6fc083b10202a570f4a737359dcc7f81ec6e4 SumoSDK: ebdf2ee2dccf6a09c913622fc4cb1c22d704ae92 SwiftProtobuf: 6ef3f0e422ef90d6605ca20b21a94f6c1324d6b3 - TextServiceProto: c3a9018512e1b6c4a816412ad96c22bae60bab0b + TextServiceProto: 01d720584724faab2f51a51153edf5b8ddd1826c VisionCamera: 60b74823ece943da919e2eb6dde62a676c486382 walmart-react-native-sumo-sdk: e9909165197e83876aac64a051a80c66205b01fd wifi-store-locator: 0f4d1e14ff9b98c559275105c655a5a6103ef427 Yoga: e7dc4e71caba6472ff48ad7d234389b91dadc280 -PODFILE CHECKSUM: d67cc89a6e8ec9b82383819af31eaf8361bba285 +PODFILE CHECKSUM: bad445a1e03103e750e2363574e815776b61d95e COCOAPODS: 1.10.1 --- package-lock.json @@ -4341,9 +4341,9 @@ "integrity": "sha512-KuJZ9iZmpMq6BxWoSB0VePjLjdQEgGbJgXs0mwWqjpryfnfhk9tUHaEvwgps53CEcS67hsGK0XbENH4SSD+L0Q==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.75", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.75.tgz", - "integrity": "sha512-Yv8PibqfYikVkeOlDm5ceR/5SQEQG4EPaQ1B34SETwvoH122IlUw3SVODP54yJovwK8ImcL64yfJAURxY+cuCQ==" + "version": "0.5.76", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.76.tgz", + "integrity": "sha512-ErNnYgcZE2BlctKh2LeJsq3ZSZYPUo1yyuoI3STehezQhKwBViIg/qBVY7jVpf5S1ETAmZaKY+45LJ9g5Li8rA==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", @@ -16950,9 +16950,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.5.50", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.50.tgz", - "integrity": "sha512-Ng/KGfhvL2bmCnhF3AQM6zRAT0atksSosKjlTghUDQLoYjcn2jCdFWNz5uOD7oejS8lP17PTyzEtjWVa6gE5ew==" + "version": "1.5.51", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.51.tgz", + "integrity": "sha512-JBuuOr9HimjDbI9MzdkJXwszkctlFo5279i9/QnQ16RERcd5rVG2dM69JqBVmSIXNF58Eh2I/I/kkAxGhVuzUg==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- package.json @@ -90,7 +90,7 @@ "@walmart/metrics-mini-app": "0.4.14", "@walmart/moment-walmart": "1.0.4", "@walmart/price-changes-mini-app": "1.0.5", - "@walmart/push-to-talk-mini-app": "0.5.75", + "@walmart/push-to-talk-mini-app": "0.5.76", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0", @@ -143,7 +143,7 @@ "react-native-pdf": "^6.2.0", "react-native-permissions": "3.0.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.5.50", + "react-native-ptt-module": "1.5.51", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.3.0",
updating to latest versions
updating to latest versions
d2d5d7ee3662b78abcdf6ff649ebb1d29150a397
--- src/screens/MyWalmartV2/AssociateRosterDetailScreen/AssociateRosterDetailScreen.tsx @@ -1,6 +1,6 @@ /* eslint-disable object-curly-spacing */ /* eslint-disable quotes */ -import React, { memo, useCallback, useEffect } from "react"; +import React, { memo, useCallback, useEffect, useState } from "react"; import { View, Text, TouchableOpacity } from "react-native"; import { useTranslation } from "react-i18next"; import { RosterList } from "../../../components/MyWalmartv2/Common/RosterList/RosterList"; @@ -42,12 +42,19 @@ export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( [searchConfig] ); + const [isScreenInitialized, setIsScreenInitialized] = useState(false); + useEffect(() => { + if (!isScreenInitialized) { + setIsScreenInitialized(true); + } update({ - visible: !refreshing || !associatesConfig?.loading, - insets: {bottom: 80}, - }) - }, [refreshing, associatesConfig?.loading]); + visible: + !refreshing || !associatesConfig?.loading || isScreenInitialized, + insets: { bottom: 80 }, + }); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [refreshing, associatesConfig?.loading, isScreenInitialized]); const handleFilterPress = useCallback( (filterId: RosterFilterValue) => { @@ -174,19 +181,21 @@ export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( /> <View> <Divider /> - <View id="group-message-button" style={styles.buttonContainer}> + <View + id="group-message-button" + style={styles.buttonContainer} + > <AllsparkSharedComponents.Component id="wmConnect.GroupMessageButton" props={{ teamIds: config.teamIds || [], disabled: - !config.userIsInRoster || - !config.userIsImpersonatedOnDev, + !config.userIsInRoster || + !config.userIsImpersonatedOnDev, }} /> </View> </View> - </View> </> )}
fix: SMDV-8700 updating fab visibilty
fix: SMDV-8700 updating fab visibilty
9ecb1873da54f4ec379fce1fac2403df8c06cec3
--- packages/allspark-foundation-hub/__tests__/HubFeature/supplyChain/ShiftFilter.test.tsx @@ -54,4 +54,10 @@ describe('ShiftFilter', () => { 'shift123' ); }); + + it('Test 3: Renders team image correctly', () => { + const { getByTestId } = render(<ShiftFilter {...mockShiftFilterProps} />); + const teamImage = getByTestId('teamImage-shiftFilter'); + expect(teamImage.props.source.uri).toBe('http://example.com/image.jpg'); + }); });
Adding Test 3 for shiftFilter
Adding Test 3 for shiftFilter
ec921604ad6ac5b3af235b73acc280dceeb8b0b8
--- graphql.yml @@ -1,5 +1,5 @@ schemaVersion: "1.0.0" - +enableGating: true teamRostersProductId: 2071 notify: slack: @@ -68,11 +68,11 @@ applications: queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociateById.graphql" tags: - "v1" - # - name: "getAssociatePreferences" - # hash: "38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql" - # tags: - # - "v1" + - name: "getAssociatePreferences" + hash: "38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4" + queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql" + tags: + - "v1" - name: "getDailyRosterHome" hash: "3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21" queryTemplate: "packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql" @@ -88,18 +88,18 @@ applications: queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql" tags: - "v1" - # - name: "GetTeamsByStore" - # hash: "0d9bcce8cdce8831861e22bd66c43d0891aef2304b2bab61e449c5570aa564d2" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql" - # tags: - # - "v1" + - name: "GetTeamsByStore" + hash: "0d9bcce8cdce8831861e22bd66c43d0891aef2304b2bab61e449c5570aa564d2" + queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql" + tags: + - "v1" - name: "upsertAssociatePreference" hash: "972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036" queryTemplate: "packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql" tags: - "v1" - # - name: "upsertManagerExperiencePreference" - # hash: "04ddb3950c4b2aa3b360e762e055dc6928c916cb5234f592b8a7181ac4169bfb" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql" - # tags: - # - "v1" + - name: "upsertManagerExperiencePreference" + hash: "04ddb3950c4b2aa3b360e762e055dc6928c916cb5234f592b8a7181ac4169bfb" + queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql" + tags: + - "v1" --- packages/me-at-walmart-athena-queries/src/getAssociatePreference.ts @@ -9,29 +9,44 @@ export type GetAssociatePreferencesQueryVariables = Types.Exact<{ win: Types.Scalars['String']; }>; - -export type GetAssociatePreferencesQuery = { __typename?: 'Query', associatePreferences?: { __typename: 'AssociatePreferences', meAtWalmartPreferences?: { __typename: 'MeAtWalmartPreferences', managerExperiencePreferences?: { __typename: 'ManagerExperiencePreferences', myTeams?: Array<{ __typename: 'Team', site?: string | null, teamId?: string | null, teamName?: string | null } | null> | null } | null } | null } | null }; - +export type GetAssociatePreferencesQuery = { + __typename?: 'Query'; + associatePreferences?: { + __typename: 'AssociatePreferences'; + meAtWalmartPreferences?: { + __typename: 'MeAtWalmartPreferences'; + managerExperiencePreferences?: { + __typename: 'ManagerExperiencePreferences'; + myTeams?: Array<{ + __typename: 'Team'; + site?: string | null; + teamId?: string | null; + teamName?: string | null; + } | null> | null; + } | null; + } | null; + } | null; +}; export const GetAssociatePreferencesDocument = gql` - query getAssociatePreferences($site: Int!, $win: String!) { - associatePreferences(walmartIdentificationNumber: $win) { - __typename - meAtWalmartPreferences { + query getAssociatePreferences($site: Int!, $win: String!) { + associatePreferences(walmartIdentificationNumber: $win) { __typename - managerExperiencePreferences { + meAtWalmartPreferences { __typename - myTeams(businessUnitNumber: $site) { + managerExperiencePreferences { __typename - site - teamId - teamName + myTeams(businessUnitNumber: $site) { + __typename + site + teamId + teamName + } } } } } -} - `; +`; /** * __useGetAssociatePreferencesQuery__ @@ -50,14 +65,37 @@ export const GetAssociatePreferencesDocument = gql` * }, * }); */ -export function useGetAssociatePreferencesQuery(baseOptions: ApolloReactHooks.QueryHookOptions<GetAssociatePreferencesQuery, GetAssociatePreferencesQueryVariables>) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useQuery<GetAssociatePreferencesQuery, GetAssociatePreferencesQueryVariables>(GetAssociatePreferencesDocument, options); - } -export function useGetAssociatePreferencesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<GetAssociatePreferencesQuery, GetAssociatePreferencesQueryVariables>) { - const options = {...defaultOptions, ...baseOptions} - return ApolloReactHooks.useLazyQuery<GetAssociatePreferencesQuery, GetAssociatePreferencesQueryVariables>(GetAssociatePreferencesDocument, options); - } -export type GetAssociatePreferencesQueryHookResult = ReturnType<typeof useGetAssociatePreferencesQuery>; -export type GetAssociatePreferencesLazyQueryHookResult = ReturnType<typeof useGetAssociatePreferencesLazyQuery>; -export type GetAssociatePreferencesQueryResult = Apollo.QueryResult<GetAssociatePreferencesQuery, GetAssociatePreferencesQueryVariables>; \ No newline at end of file +export function useGetAssociatePreferencesQuery( + baseOptions: ApolloReactHooks.QueryHookOptions< + GetAssociatePreferencesQuery, + GetAssociatePreferencesQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions }; + return ApolloReactHooks.useQuery< + GetAssociatePreferencesQuery, + GetAssociatePreferencesQueryVariables + >(GetAssociatePreferencesDocument, options); +} +export function useGetAssociatePreferencesLazyQuery( + baseOptions?: ApolloReactHooks.LazyQueryHookOptions< + GetAssociatePreferencesQuery, + GetAssociatePreferencesQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions }; + return ApolloReactHooks.useLazyQuery< + GetAssociatePreferencesQuery, + GetAssociatePreferencesQueryVariables + >(GetAssociatePreferencesDocument, options); +} +export type GetAssociatePreferencesQueryHookResult = ReturnType< + typeof useGetAssociatePreferencesQuery +>; +export type GetAssociatePreferencesLazyQueryHookResult = ReturnType< + typeof useGetAssociatePreferencesLazyQuery +>; +export type GetAssociatePreferencesQueryResult = Apollo.QueryResult< + GetAssociatePreferencesQuery, + GetAssociatePreferencesQueryVariables +>;
feat(ui): rremove unused fields in the upsert preference query
feat(ui): rremove unused fields in the upsert preference query
5cb0becc3464c83d33e1d22965f6929b641c62ae
--- android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://repository.walmart.com/repository/gradle_distros/gradle-7.3.3-all.zip +distributionUrl=https\://repository.walmart.com/repository/gradle_distros/gradle-7.5-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists --- android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://repository.walmart.com/repository/gradle_distros/gradle-7.3.3-all.zip +distributionUrl=https\://repository.walmart.com/repository/gradle_distros/gradle-7.5-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
fix: upgrade gradle version
fix: upgrade gradle version
efa94d65e981f98201fde40bf7439353a0cc8d75
--- package-lock.json @@ -63,7 +63,7 @@ "@walmart/iteminfo-mini-app": "7.7.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "14.0.2", - "@walmart/metrics-mini-app": "0.17.7", + "@walmart/metrics-mini-app": "0.17.8", "@walmart/mod-flex-mini-app": "1.13.6", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.0.12", @@ -9179,10 +9179,13 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.17.7", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.7.tgz", - "integrity": "sha512-nwzMNld1D1c0KwuZcECxGHDqyAX6rRu0aOfwxiRVjAxPb59qScGKV1+WWzfhCB7xJQ1c6blCX+bHFR2TgtEPLQ==", + "version": "0.17.8", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.8.tgz", + "integrity": "sha512-l0uo9pHVgwXwNZnhZqiRHxR45tHxzm4hRYZRzjIwOMXHdQEqB59G5IIRb8aN8MomCyrekKCFnReAPsOCAHY7LQ==", "hasInstallScript": true, + "dependencies": { + "base-64": "^1.0.0" + }, "engines": { "node": ">=16" }, @@ -9196,7 +9199,6 @@ "@walmart/redux-store": ">=3.1.4", "apisauce": ">=3.0.1", "axios-cache-adapter": ">=2.7.3", - "base-64": ">=1.0.0", "expo": "49.0.10", "lodash": ">=4.17.21", "moment-timezone": ">=0.5.33", @@ -10854,6 +10856,12 @@ "version": "1.0.2", "license": "MIT" }, + "node_modules/base-64": { + "version": "1.0.0", + "resolved": "https://npme.walmart.com/base-64/-/base-64-1.0.0.tgz", + "integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==", + "license": "MIT" + }, "node_modules/base64-js": { "version": "1.5.1", "funding": [ @@ -33369,9 +33377,12 @@ "integrity": "sha512-JGf97zQqXPczaYyCjbkSHZ/inO1AkewmMqaj9GgdIGQumgRL17lLsviNp2drH2yFLMee2JIMx2zMJ0g62LCuPw==" }, "@walmart/metrics-mini-app": { - "version": "0.17.7", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.7.tgz", - "integrity": "sha512-nwzMNld1D1c0KwuZcECxGHDqyAX6rRu0aOfwxiRVjAxPb59qScGKV1+WWzfhCB7xJQ1c6blCX+bHFR2TgtEPLQ==" + "version": "0.17.8", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.17.8.tgz", + "integrity": "sha512-l0uo9pHVgwXwNZnhZqiRHxR45tHxzm4hRYZRzjIwOMXHdQEqB59G5IIRb8aN8MomCyrekKCFnReAPsOCAHY7LQ==", + "requires": { + "base-64": "^1.0.0" + } }, "@walmart/mod-flex-mini-app": { "version": "1.13.6", @@ -34283,6 +34294,11 @@ "balanced-match": { "version": "1.0.2" }, + "base-64": { + "version": "1.0.0", + "resolved": "https://npme.walmart.com/base-64/-/base-64-1.0.0.tgz", + "integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==" + }, "base64-js": { "version": "1.5.1" }, --- package.json @@ -104,7 +104,7 @@ "@walmart/iteminfo-mini-app": "7.7.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "14.0.2", - "@walmart/metrics-mini-app": "0.17.7", + "@walmart/metrics-mini-app": "0.17.8", "@walmart/mod-flex-mini-app": "1.13.6", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.0.12",
Bumping metrics version to 0.17.8
Bumping metrics version to 0.17.8
616bf3d3a21f80ab8183fdf380efa5295baebec3
--- packages/me-at-walmart-container/src/redux/user.ts @@ -77,7 +77,7 @@ export function* onExitImpersonation(_: IUserActions['EXIT_IMPERSONATION']) { export const UserSagas = [ takeLeading(AuthActionTypes.SIGN_IN_SUCCESS, onSignInSuccess), - takeLeading(UserActionTypes.FETCH_SUCCESS, onUserFetchSuccess), + takeLatest(UserActionTypes.FETCH_SUCCESS, onUserFetchSuccess), takeLeading(UserActionTypes.START_IMPERSONATION, onStartImpersonation), takeLeading(UserActionTypes.EXIT_IMPERSONATION, onExitImpersonation), takeLatest(UserActionTypes.UPDATE, onUserUpdate),
fix: user success saga missed candidate action with take leading
fix: user success saga missed candidate action with take leading
501d2bab1ecda663274c24793dc4fd90886530ce
--- 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.19.16](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.15...@walmart/allspark-foundation-hub@1.19.16) (2025-10-29) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.19.15](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.14...@walmart/allspark-foundation-hub@1.19.15) (2025-10-29) **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.19.15", + "version": "1.19.16", "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.7.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.7.0...@walmart/allspark-foundation@7.7.1) (2025-10-29) + +### Bug Fixes + +- **nudge:** clean up and optimization nudge ([#453](https://gecgithub01.walmart.com/allspark/allspark/issues/453)) ([3b6b220](https://gecgithub01.walmart.com/allspark/allspark/commit/3b6b220741ad74e37cb8c5b498a14fa9552b5988)) + # [7.7.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.6.2...@walmart/allspark-foundation@7.7.0) (2025-10-29) ### Features --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.7.0", + "version": "7.7.1", "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.3.15](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.14...@walmart/me-at-walmart-geolocation@1.3.15) (2025-10-29) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.3.14](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.13...@walmart/me-at-walmart-geolocation@1.3.14) (2025-10-29) **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.3.14", + "version": "1.3.15", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.7.1 - @walmart/allspark-foundation-hub@1.19.16 - @walmart/me-at-walmart-geolocation@1.3.15
d938ca3292a3e3e321775650ac79f87e90c441e9
--- packages/expo-config-plugins/src/index.ts @@ -31,6 +31,7 @@ export default function getPlugins(additionalPlugins?: additionalPlugins[]) { moduleBasePath + 'withActiveArchFix', moduleBasePath + 'withAndroidOfflineRun', moduleBasePath + 'withAppAuth', + moduleBasePath + 'withEdgeToEdgeOptOut', moduleBasePath + 'withBoringSSLFix', moduleBasePath + 'withBuildSupport', moduleBasePath + 'withCompassSDK', @@ -97,6 +98,7 @@ export const withAbiFilters = moduleBasePath + 'withAbiFilters'; export const withActiveArchFix = moduleBasePath + 'withActiveArchFix'; export const withAndroidOfflineRun = moduleBasePath + 'withAndroidOfflineRun'; export const withAppAuth = moduleBasePath + 'withAppAuth'; +export const withEdgeToEdgeOptOut = moduleBasePath + 'withEdgeToEdgeOptOut'; export const withBoringSSLFix = moduleBasePath + 'withBoringSSLFix'; export const withBuildSupport = moduleBasePath + 'withBuildSupport'; export const withCompassSDK = moduleBasePath + 'withCompassSDK'; --- packages/expo-config-plugins/src/withEdgeToEdgeOptOut.ts @@ -0,0 +1,42 @@ +import { ConfigPlugin, withAndroidStyles } from '@expo/config-plugins'; + +/** + * Expo plugin to add android:windowOptOutEdgeToEdgeEnforcement to styles.xml + * This plugin modifies the Android styles.xml file to include the edge-to-edge enforcement opt-out. + */ +const withEdgeToEdgeOptOut: ConfigPlugin = (config) => { + return withAndroidStyles(config, (config) => { + const styles = config.modResults as any; + + // Find the AppTheme style + const appThemeStyle = styles.resources?.style?.find((style: any) => + style.$?.name === 'AppTheme' + ); + + if (appThemeStyle) { + // Check if the item already exists + const existingItem = appThemeStyle.item?.find((item: any) => + item.$?.name === 'android:windowOptOutEdgeToEdgeEnforcement' + ); + + if (!existingItem) { + // Ensure the item array exists + if (!appThemeStyle.item) { + appThemeStyle.item = []; + } + + // Add the edge-to-edge enforcement opt-out item + appThemeStyle.item.push({ + $: { + name: 'android:windowOptOutEdgeToEdgeEnforcement' + }, + _: 'true' + }); + + } + } + return config; + }); +}; + +export default withEdgeToEdgeOptOut;
fix(edge-to-edge): created new plugin to disable edge-to-edge android (#364)
fix(edge-to-edge): created new plugin to disable edge-to-edge android (#364) * fix(edge-to-edge): created new plugin to disable edge-to-edge android * chore(refactor): added index file mapping --------- Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com>
ea16150f913baac39f186792ae3423ed7c946339
--- packages/allspark-authentication/__tests__/Authentication.test.ts @@ -198,5 +198,26 @@ describe('AllsparkAuthentication', () => { message: revokeError.message, }); }); + + it('executes revoke and logout in parallel, both complete even if one fails', async () => { + const revokeError: AppAuthError = { + name: 'Error', + message: 'Revoke failed', + code: 'end_session_failed', + }; + ResultCache.getItem.mockResolvedValueOnce(AuthorizeResult); + ConfigCache.getItem.mockResolvedValueOnce(AuthorizeConfig); + (revoke as jest.Mock).mockRejectedValueOnce(revokeError); + (logout as jest.Mock).mockResolvedValueOnce({}); + + await auth.signOut(); + expect(revoke).toHaveBeenCalled(); + expect(logout).toHaveBeenCalled(); + + // both call happened even when on failed + expect(onInfoListener).toHaveBeenCalledWith({ + category: 'LOGOUT_USER_SUCCESS', + }); + }); }); }); --- packages/allspark-authentication/src/Authentication.ts @@ -336,8 +336,10 @@ export class AllsparkAuthentication { throw NO_CACHE_ERROR; } - await this._revokeToken(config, refreshToken); - await this._logoutUser(config, idToken); + await Promise.allSettled([ + this._revokeToken(config, refreshToken), + this._logoutUser(config, idToken), + ]); this._runInfoEvent('SIGN_OUT_SUCCESS'); }
chore: parallel call for signout revoke token and logout user (#497)
chore: parallel call for signout revoke token and logout user (#497) * chore: parallel call for signout revoke token and logout user * chore: add unit tests
828227cc8b89aa11187611961138adecfde6cff7
--- .gitignore @@ -89,3 +89,5 @@ amplifytools.xcconfig .secret-* **.sample #amplify-do-not-edit-end + +install-state.gz --- .yarn/install-state.gz Binary files a/.yarn/install-state.gz and /dev/null differ
Update foundation packages
Update foundation packages
8f9b27284d0f47b3d91d958cd5dd6b361145faa5
--- package-lock.json @@ -81,7 +81,7 @@ "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.34.6", - "@walmart/time-clock-mini-app": "2.109.0", + "@walmart/time-clock-mini-app": "2.111.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0", "@walmart/welcomeme-mini-app": "0.77.0", @@ -6025,9 +6025,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.109.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.109.0.tgz", - "integrity": "sha512-Luz/lIEH0tqsdZgdDqJ8gBP4oDZEDhAr5cIimcborpr5TgZGNecCSjlmUEHlg4m9F75OCSe2URoGF6ftqEHM1A==", + "version": "2.111.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.111.0.tgz", + "integrity": "sha512-DWR1Aybe41FZrHx00o8WQGdWBydOGZxbyWIB2fSK6D24KsFWD0+i3gQqKvOOtaJam4BQWwIHMQOa+SNhEPaawA==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -25397,9 +25397,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.109.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.109.0.tgz", - "integrity": "sha512-Luz/lIEH0tqsdZgdDqJ8gBP4oDZEDhAr5cIimcborpr5TgZGNecCSjlmUEHlg4m9F75OCSe2URoGF6ftqEHM1A==", + "version": "2.111.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.111.0.tgz", + "integrity": "sha512-DWR1Aybe41FZrHx00o8WQGdWBydOGZxbyWIB2fSK6D24KsFWD0+i3gQqKvOOtaJam4BQWwIHMQOa+SNhEPaawA==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -123,7 +123,7 @@ "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.34.6", - "@walmart/time-clock-mini-app": "2.109.0", + "@walmart/time-clock-mini-app": "2.111.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0", "@walmart/welcomeme-mini-app": "0.77.0",
Update time clock to 2.111.0
Update time clock to 2.111.0
cdbd0f7ba532fd756f7370c7169c899d1aac383e
--- 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.38", + "@walmart/amp-mini-app": "1.1.41", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.190.2",
Update AMP version
Update AMP version
e46a8911163704f919935402901dbb24d7a6c594
--- targets/US/ios/AllSpark.xcodeproj/project.pbxproj @@ -47,6 +47,8 @@ E9AD4B182679309900D8DDD4 /* clockin.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B152679309900D8DDD4 /* clockin.mp3 */; }; E9AD4B192679309900D8DDD4 /* clockout.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B162679309900D8DDD4 /* clockout.mp3 */; }; E9AD4B1A2679309900D8DDD4 /* clockfailure.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */; }; + EE94E3EE2CE5BEA600C6442D /* libswiftXPC.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = EE94E3ED2CE5BEA600C6442D /* libswiftXPC.tbd */; }; + EE94E3F02CE5BEAC00C6442D /* CoreAudioTypes.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EE94E3EF2CE5BEAC00C6442D /* CoreAudioTypes.framework */; }; F049B46226E00E1400F817E3 /* LaunchScreen-Teflon.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F049B46126E00E1400F817E3 /* LaunchScreen-Teflon.storyboard */; }; F0C92FC2252B9F1E000B5582 /* Temp.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0C92FC1252B9F1E000B5582 /* Temp.swift */; }; F0F40C0D24DDA8F00001739F /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = F0F40C0C24DDA8F00001739F /* GoogleService-Info.plist */; }; @@ -97,6 +99,8 @@ E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockfailure.mp3; sourceTree = "<group>"; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; + EE94E3ED2CE5BEA600C6442D /* libswiftXPC.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libswiftXPC.tbd; path = usr/lib/swift/libswiftXPC.tbd; sourceTree = SDKROOT; }; + EE94E3EF2CE5BEAC00C6442D /* CoreAudioTypes.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudioTypes.framework; path = System/Library/Frameworks/CoreAudioTypes.framework; sourceTree = SDKROOT; }; F01353FD24ED83A70094D840 /* Bogle-Thin.otf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "Bogle-Thin.otf"; path = "AllSpark/Bogle-Thin.otf"; sourceTree = "<group>"; }; F01353FE24ED83A70094D840 /* Bogle-BoldItalic.otf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "Bogle-BoldItalic.otf"; path = "AllSpark/Bogle-BoldItalic.otf"; sourceTree = "<group>"; }; F01353FF24ED83A70094D840 /* Bogle-Light.otf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "Bogle-Light.otf"; path = "AllSpark/Bogle-Light.otf"; sourceTree = "<group>"; }; @@ -124,6 +128,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + EE94E3F02CE5BEAC00C6442D /* CoreAudioTypes.framework in Frameworks */, + EE94E3EE2CE5BEA600C6442D /* libswiftXPC.tbd in Frameworks */, 1AC977DC290CA5AC004F94C9 /* libreact-native-scanner-3.0.a in Frameworks */, 0C19CC4426FB85E2006F71DE /* libresolv.tbd in Frameworks */, 122E6DA49D0C0B040E2C04B5 /* libPods-AllSpark.a in Frameworks */, @@ -196,6 +202,8 @@ 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { isa = PBXGroup; children = ( + EE94E3EF2CE5BEAC00C6442D /* CoreAudioTypes.framework */, + EE94E3ED2CE5BEA600C6442D /* libswiftXPC.tbd */, 1AC977DB290CA5AC004F94C9 /* libreact-native-scanner-3.0.a */, CD1FCE7B27B747FE00A993B8 /* realm-js-ios.xcframework */, CD1FCE7D27B747FE00A993B8 /* realm-monorepo.xcframework */, --- targets/US/ios/Podfile.lock @@ -2958,6 +2958,6 @@ SPEC CHECKSUMS: Yoga: c716aea2ee01df6258550c7505fa61b248145ced zxing-cpp: c597ce11887c1f17576a71b449fae721900bc46b -PODFILE CHECKSUM: f89f8fd084718a8459bfad1ed1081b9af51bc555 +PODFILE CHECKSUM: e45caceff59820fc357600d6b2277634c8242734 COCOAPODS: 1.14.3
updating scanner verison to 0.10.1
updating scanner verison to 0.10.1
3ac17283aca7d8136c7a44da33953df23cf43eec
--- packages/allspark-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-authentication", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -22,8 +22,8 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.3", - "@walmart/allspark-utils": "^5.0.0-alpha.3", + "@walmart/allspark-foundation": "^5.0.0-alpha.4", + "@walmart/allspark-utils": "^5.0.0-alpha.4", "lodash": "~4.17.21", "moment-timezone": "~0.5.37", "ts-retry-promise": "~0.7.0" --- packages/allspark-foundation/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/allspark-foundation", "private": false, - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -35,7 +35,7 @@ "@apollo/client": "^3.7.14", "@lifeomic/axios-fetch": "3.0.1", "@reduxjs/toolkit": "^1.9.5", - "@walmart/allspark-utils": "^5.0.0-alpha.3", + "@walmart/allspark-utils": "^5.0.0-alpha.4", "@walmart/gtp-shared-components": "^2.0.2", "axios": "~1.2.4", "crypto-js": "~4.1.1", --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js", @@ -26,6 +26,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.3" + "@walmart/allspark-foundation": "^5.0.0-alpha.4" } } --- packages/allspark-http-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-http-client", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", @@ -18,6 +18,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.3" + "@walmart/allspark-foundation": "^5.0.0-alpha.4" } } --- packages/allspark-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-utils", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,7 +18,7 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.3", - "@walmart/me-at-walmart-container": "^5.0.0-alpha.3" + "@walmart/allspark-foundation": "^5.0.0-alpha.4", + "@walmart/me-at-walmart-container": "^5.0.0-alpha.4" } } --- packages/core-services/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "", "main": "index.js", "types": "index.d.ts", @@ -15,7 +15,7 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.3", - "@walmart/allspark-utils": "^5.0.0-alpha.3" + "@walmart/allspark-foundation": "^5.0.0-alpha.4", + "@walmart/allspark-utils": "^5.0.0-alpha.4" } } --- packages/core-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-utils", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "Common functionality required across both container and mini apps.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,6 +18,6 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-utils": "^5.0.0-alpha.3" + "@walmart/allspark-utils": "^5.0.0-alpha.4" } } --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", @@ -18,6 +18,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/me-at-walmart-container": "^5.0.0-alpha.3" + "@walmart/me-at-walmart-container": "^5.0.0-alpha.4" } } --- packages/functional-components/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/functional-components", "private": false, - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "Functional Components", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -20,6 +20,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.3" + "@walmart/allspark-foundation": "^5.0.0-alpha.4" } } --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "> TODO: description", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", @@ -22,6 +22,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/me-at-walmart-container": "^5.0.0-alpha.3" + "@walmart/me-at-walmart-container": "^5.0.0-alpha.4" } } --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -25,8 +25,8 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.3", - "@walmart/allspark-utils": "^5.0.0-alpha.3", + "@walmart/allspark-foundation": "^5.0.0-alpha.4", + "@walmart/allspark-utils": "^5.0.0-alpha.4", "@walmart/config-components": "4.1.0-rc.4", "jwt-decode": "^3.1.2" }, @@ -38,9 +38,9 @@ "@react-native-firebase/crashlytics": "~15.1.1", "@react-native-firebase/database": "~15.1.1", "@react-native-firebase/perf": "~15.1.1", - "@walmart/allspark-authentication": "^5.0.0-alpha.3", - "@walmart/core-services": "^5.0.0-alpha.3", - "@walmart/core-utils": "^5.0.0-alpha.3", + "@walmart/allspark-authentication": "^5.0.0-alpha.4", + "@walmart/core-services": "^5.0.0-alpha.4", + "@walmart/core-utils": "^5.0.0-alpha.4", "@walmart/react-native-encrypted-storage": "~1.1.13", "@walmart/react-native-logger": "1.29.0", "@walmart/react-native-sumo-sdk": "2.4.0-rc.2", @@ -57,7 +57,7 @@ "@react-native-firebase/crashlytics": ">=15.1", "@react-native-firebase/database": ">=15.1", "@react-native-firebase/perf": ">=15.1", - "@walmart/allspark-authentication": ">=5.0.0-alpha.3", + "@walmart/allspark-authentication": ">=5.0.0-alpha.4", "@walmart/react-native-encrypted-storage": ">=1.1", "@walmart/react-native-logger": ">=1", "@walmart/react-native-sumo-sdk": ">=2.4", --- packages/redux-store/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/redux-store", - "version": "5.0.0-alpha.3", + "version": "5.0.0-alpha.4", "description": "Common redux store", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -19,6 +19,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.3" + "@walmart/allspark-foundation": "^5.0.0-alpha.4" } }
chore: bumping alpha version
chore: bumping alpha version
6391b293df314688baf5b1b4ef77583fee3a58a8
--- container/env.ts @@ -1,65 +0,0 @@ -import {IMeAtWalmartEnvironment} from '@walmart/me-at-walmart-common'; -import {EFormat, ELevel} from '@walmart/react-native-logger/dist/types'; -import {SumoEnvironment} from 'react-native-wm-notification'; - -export type EnvConfig = Omit< - IMeAtWalmartEnvironment, - 'auth | http | graphql | network | logger' ->; - -const config: EnvConfig = { - env: 'dev', - deployment: 'dev', - compositeAppName: 'allspark', - consumerId: 'b5fc6fe0-5927-44a6-a693-6e922e830b04', - appConsumerId: 'b5fc6fe0-5927-44a6-a693-6e922e830b04', - redirectUri: 'com.walmart.stores.allspark.beta://SSOLogin', - sumoOptions: { - appUUID: 'cb663e07-7bcc-4039-ae97-8fb8e8a9ff77', - consumerId: 'b5fc6fe0-5927-44a6-a693-6e922e830b04', - environment: SumoEnvironment.STAGE, - }, - splunk: { - url: 'https://analytics.mobile.walmart.com/analytics/allspark', - index: 'allspark', - format: EFormat.JSON, - }, - athena: { - // url: 'https://athena-gateway.sdev.us.walmart.net', // shadow gateway - url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', - headers: { - 'WM_SVC.NAME': 'ATHENA-GATEWAY', - 'WM_SVC.ENV': 'dev', - }, - persistedQueries: true, - }, - logLevel: ELevel.DEBUG, - internalUrl: - 'https://api-proxy.stg.soa-api-proxy.platform.glb.prod.walmart.com', - externalUrl: 'https://developer.api.us.stg.walmart.com', - internalBffUrl: - 'https://api-proxy-es2.stg-us-azure.soa-api-proxy.platform.prod.us.walmart.net', - externalBffUrl: 'https://developer.api.us.stg.walmart.com', - bffService: '/api-proxy/service/store/systems-bff/v1', - allsparkService: - 'https://developer.api.stg.walmart.com/api-proxy/service/allspark/api/v1', - rbacAppId: 'ec9f5c40-88be-4e90-8807-a4f15f11e84c', - associateAuthConfig: { - issuer: 'https://pfedcert.wal-mart.com', - clientId: 'MeAtWMT', - redirectUrl: 'com.walmart.stores.allspark.beta://SSOLogin', - scopes: ['openid', 'full'], - additionalParameters: {}, - clientAuthMethod: 'post', - }, - candidateAuthConfig: { - issuer: 'https://pfedcert.wal-mart.com', - clientId: 'WMStage', - redirectUrl: 'com.walmart.stores.allspark.beta://CandidateLogin', - scopes: ['openid', 'full'], - additionalParameters: {}, - clientAuthMethod: 'post', - }, -}; - -export default config;
fix: resolve comments
fix: resolve comments
c71b36c8ce78f6bbf7e7918fe7ac81f2df4dac29
--- packages/allspark-foundation/__tests__/Work/Context.test.tsx @@ -0,0 +1,26 @@ +import { render, fireEvent } from '@testing-library/react-native'; +import { Text, Button } from 'react-native'; +import { WorkProvider, useWorkContext } from '../../src/Work'; +import React from 'react'; + +const TestComponent = () => { + const { actionId, setActionId } = useWorkContext(); + return ( + <> + <Text testID="actionId">{actionId}</Text> + <Button testID="setActionId" onPress={() => setActionId('1234')} title="Set Action Id" /> + </> + ); +}; +describe('Work Provider', () => { + it('provide work context value', () => { + const { getByTestId } = render( + <WorkProvider> + <TestComponent /> + </WorkProvider> + ); + expect(getByTestId('actionId').props.children).toBe(null); + fireEvent.press(getByTestId('setActionId')); + expect(getByTestId('actionId').props.children).toBe('1234'); + }); +}); --- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -51,6 +51,7 @@ import { } from './types'; import { ActiveAllsparkContainer } from './ActiveContainerManager'; import { AllsparkComponentProvider } from '../Components/context'; +import { WorkProvider } from '../Work'; const styles = StyleSheet.create({ gestureRootView: { @@ -492,25 +493,27 @@ export class AllsparkContainer< <SafeAreaProvider> <StatusBar {...DEFAULT_STATUSBAR_PROPS} {...statusBar} /> <GestureHandlerRootView style={styles.gestureRootView}> - <LivingDesignProvider> - <RenderGuard preRender={this._waitForEnvironment}> - <AllsparkReduxProvider> - <TranslationProvider> - <HttpClientSetupGuard> - <GraphQLClientProvider> - <AllsparkNavigationProvider> - <AllsparkComponentProvider components={AllComponents}> - <RenderGuard preRender={this._rootSetup}> - {children} - </RenderGuard> - </AllsparkComponentProvider> - </AllsparkNavigationProvider> - </GraphQLClientProvider> - </HttpClientSetupGuard> - </TranslationProvider> - </AllsparkReduxProvider> - </RenderGuard> - </LivingDesignProvider> + <WorkProvider> + <LivingDesignProvider> + <RenderGuard preRender={this._waitForEnvironment}> + <AllsparkReduxProvider> + <TranslationProvider> + <HttpClientSetupGuard> + <GraphQLClientProvider> + <AllsparkNavigationProvider> + <AllsparkComponentProvider components={AllComponents}> + <RenderGuard preRender={this._rootSetup}> + {children} + </RenderGuard> + </AllsparkComponentProvider> + </AllsparkNavigationProvider> + </GraphQLClientProvider> + </HttpClientSetupGuard> + </TranslationProvider> + </AllsparkReduxProvider> + </RenderGuard> + </LivingDesignProvider> + </WorkProvider> </GestureHandlerRootView> </SafeAreaProvider> ); --- packages/allspark-foundation/src/Work/Context.tsx @@ -27,7 +27,7 @@ export const { export const WorkProvider = (props: PropsWithChildren<{}>) => { const { children } = props; - const [actionId, setActionId] = React.useState<string | null>('abcd'); + const [actionId, setActionId] = React.useState<string | null>(null); const value: IWorkContext = { actionId,
fix(DWORK-6097): added tests for work context
fix(DWORK-6097): added tests for work context
71e74a714dfd494d546c14fef0cadf500feff479
--- .looper.yml @@ -10,6 +10,9 @@ triggers: - manual: name: PR call: pr + - manual: + name: Publish From Changes (TEST) + call: publishFromChanges - manual: name: Publish call: publishAll @@ -30,3 +33,7 @@ flows: publishAll: - call: preparePublish - (name Publish) npm run publish + + publishFromChanges: + - call: preparePublish + - (name Publish Changed Packages) npx lerna publish --yes --- lerna.json @@ -1,5 +1,5 @@ { - "version": "independent", + "version": "5.0.0-beta.15", "npmClient": "npm", "changelogPreset": "angular", "command": { @@ -20,5 +20,8 @@ "ignoreChanges": [ "**/*.md", "**/__tests__/**" + ], + "packages": [ + "packages/*" ] }
chore: adding test looper flow for lerna reintegration
chore: adding test looper flow for lerna reintegration
dacbb45a514d2feb77ea7906d48e996cfb64a8c1
--- babel.config.js @@ -1,6 +1,6 @@ module.exports = (api) => { api.cache(true); - const plugins = ['react-native-reanimated/plugin', 'macros']; + const plugins = ['react-native-reanimated/plugin']; //remove console.logs only in CI environment. if (process.env.CI) { --- package-lock.json @@ -106,7 +106,6 @@ "@walmart/wm-plus-mini-app": "0.12.19", "axios": "~1.6.0", "axios-cache-adapter": "2.7.3", - "babel-plugin-macros": "^3.1.0", "crypto-js": "~4.2.0", "dayjs": "^1.11.5", "expo": "49.0.10", @@ -10235,6 +10234,7 @@ "version": "4.0.2", "resolved": "https://npme.walmart.com/@types/parse-json/-/parse-json-4.0.2.tgz", "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==", + "devOptional": true, "license": "MIT" }, "node_modules/@types/prop-types": { @@ -13802,6 +13802,7 @@ "resolved": "https://npme.walmart.com/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==", "license": "MIT", + "optional": true, "dependencies": { "@babel/runtime": "^7.12.5", "cosmiconfig": "^7.0.0", @@ -13817,6 +13818,7 @@ "resolved": "https://npme.walmart.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz", "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==", "license": "MIT", + "optional": true, "dependencies": { "@types/parse-json": "^4.0.0", "import-fresh": "^3.2.1", @@ -13833,6 +13835,7 @@ "resolved": "https://npme.walmart.com/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "license": "MIT", + "optional": true, "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -13849,6 +13852,7 @@ "resolved": "https://npme.walmart.com/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "license": "MIT", + "optional": true, "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -13867,6 +13871,7 @@ "resolved": "https://npme.walmart.com/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "license": "MIT", + "optional": true, "engines": { "node": ">=4" } @@ -13876,6 +13881,7 @@ "resolved": "https://npme.walmart.com/yaml/-/yaml-1.10.2.tgz", "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "license": "ISC", + "optional": true, "engines": { "node": ">= 6" } --- package.json @@ -147,7 +147,6 @@ "@walmart/wm-plus-mini-app": "0.12.19", "axios": "~1.6.0", "axios-cache-adapter": "2.7.3", - "babel-plugin-macros": "^3.1.0", "crypto-js": "~4.2.0", "dayjs": "^1.11.5", "expo": "49.0.10", --- src/biometrics/BiometricSagas.ts @@ -1,4 +1,4 @@ -import {call, take, select} from 'typed-redux-saga/macro'; +import {call, take, select} from 'typed-redux-saga'; import {takeLatest, put} from 'redux-saga/effects'; import {ReactNativeBiometricsLegacy as Biometrics} from 'react-native-biometrics'; --- src/navigation/AssociateHallwayNav/Banners.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {select} from 'typed-redux-saga/macro'; +import {select} from 'typed-redux-saga'; import {all, call, takeLatest} from 'redux-saga/effects'; import {AllScreenBanner as EmergencyBanner} from '@walmart/emergency-mini-app'; --- src/permissions/PermissionsSaga.ts @@ -1,4 +1,4 @@ -import {call, select, fork} from 'typed-redux-saga/macro'; +import {call, select, fork} from 'typed-redux-saga'; import {take, cancel, takeLatest, put} from 'redux-saga/effects'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; import {
fix: remove babel macros plugin
fix: remove babel macros plugin
e233da4ac28ffd9b25d51f1fe09278d19a36a733
--- packages/react-native-wm-notification/package.json @@ -1,5 +1,5 @@ { - "name": "@walmart/react-native-wm-notification", + "name": "react-native-wm-notification", "version": "5.0.0-beta.12", "description": "Notifications", "main": "lib/index.js",
fix: fix wm notification library name
fix: fix wm notification library name
27c8bea392bf49693602353cc15b8ece65cb4bac
--- src/utils/queryDataCheck.ts @@ -1,23 +0,0 @@ -export const isMoreThan50PercentNull = (obj: any) => { - const totalFields = obj.length; - let nullFields: number = 0; - obj.forEach((item: any) => { - if (item === null) { - nullFields++; - } - }); - const percentage = (nullFields / totalFields) * 100; - return percentage > 50; -}; - -export const isMoreThan50PercentUnknown = (obj: any) => { - const totalFields = obj.length; - let unknownFields: number = 0; - obj.forEach((associate: any) => { - if (associate?.punch?.clockStatus === 'unknown') { - unknownFields++; - } - }); - const percentage = (unknownFields / totalFields) * 100; - return percentage > 50; -}; --- src/utils/user.ts @@ -3,23 +3,12 @@ import CryptoJS from 'crypto-js'; import {ClockStatusEnum} from './ClockStatusEnum'; import moment from 'moment'; import {isNil} from 'lodash'; -import { - GetAssociateNameQuery, - useGetAssociateNameQuery, -} from '../queries/getAssociateName'; +import {GetAssociateNameQuery} from '../queries/getAssociateName'; import {Associate, WFMSchedule} from '../types'; import {logger} from '../logger/Logger'; -import { - isMoreThan50PercentNull, - isMoreThan50PercentUnknown, -} from '../utils/queryDataCheck'; const OBFUSCATION_KEY = 'texting-mini-app'; //Do not change this const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0'); -//eslint-disable-next-line -const {data: associateData} = useGetAssociateNameQuery({}); -const isNullData = isMoreThan50PercentNull(associateData); -const isUnknownData = isMoreThan50PercentUnknown(associateData); export const encryptUserId = (userId: string) => baseEncryptUserId(userId, OBFUSCATION_KEY).replace(/\//g, '\\'); @@ -56,11 +45,6 @@ export const associateIsTardy = (associate?: Associate) => associate?.absentData?.absenceTypeCode === 2; export const associateIsClockedIn = (associate?: Associate) => { - if (isUnknownData) { - logger.info('Unknown Data in associateIsClockedIn', { - message: 'GetAssociateNameQuery punch data is more than 50% unknown', - }); - } return ClockStatusEnum.clockedOut !== Number(associate?.punch?.clockStatus); }; @@ -148,11 +132,6 @@ export const associateDisplayName = ( associate?: Associate | GetAssociateNameQuery['getAssociateById'], ) => { try { - if (isNullData) { - logger.info('Null Data in associateDisplayName', { - message: 'GetAssociateNameQuery data is more than 50% null', - }); - } const preferredFullName = (!isNil(associate?.preferredFirstName) || !isNil(associate?.preferredLastName)) &&
Addressing PR comments
Addressing PR comments
9c8140bdded7b6ff8fd93df06b0d1c5a24c7d57f
--- src/cafeOrders/screens/RosterScreen.tsx @@ -4,7 +4,7 @@ import {FlatList, ListRenderItem} from 'react-native'; import {ParamListBase} from '@react-navigation/native'; import {StackNavigationProp} from '@react-navigation/stack'; import {useNavigation} from '@react-navigation/native'; -import {UserSelectors, SiteSelectors} from '@walmart/redux-store'; +import {UserSelectors, SiteSelectors, User} from '@walmart/redux-store'; import {Associate} from '../types'; import {AssociateRosterItem} from '../components/AssociateRosterItem'; import {encryptUserId} from '@walmart/allspark-utils'; @@ -73,19 +73,18 @@ const createChannelId = ( .join('-'); }; -// Global S const useStartTextConversation = () => { const navigation = useNavigation(); - const user = useSelector(UserSelectors.getOriginalUser); + const user: User = useSelector(UserSelectors.getOriginalUser); const site = useSelector(SiteSelectors.getUserWorkingSite); return useCallback( (participants: string[]) => { const storeChatId = `${site}_channels`; const channelId = createChannelId( - user, + user.userId, participants, - site || 'homeoffice', + site || user.domain, ); // Need to create new channel document here in fireStore before navigating into it. --- src/cafeOrders/screens/RosterScreen.tsx @@ -4,7 +4,7 @@ import {FlatList, ListRenderItem} from 'react-native'; import {ParamListBase} from '@react-navigation/native'; import {StackNavigationProp} from '@react-navigation/stack'; import {useNavigation} from '@react-navigation/native'; -import {UserSelectors, SiteSelectors} from '@walmart/redux-store'; +import {UserSelectors, SiteSelectors, User} from '@walmart/redux-store'; import {Associate} from '../types'; import {AssociateRosterItem} from '../components/AssociateRosterItem'; import {encryptUserId} from '@walmart/allspark-utils'; @@ -73,19 +73,18 @@ const createChannelId = ( .join('-'); }; -// Global S const useStartTextConversation = () => { const navigation = useNavigation(); - const user = useSelector(UserSelectors.getOriginalUser); + const user: User = useSelector(UserSelectors.getOriginalUser); const site = useSelector(SiteSelectors.getUserWorkingSite); return useCallback( (participants: string[]) => { const storeChatId = `${site}_channels`; const channelId = createChannelId( - user, + user.userId, participants, - site || 'homeoffice', + site || user.domain, ); // Need to create new channel document here in fireStore before navigating into it.
fix: fix channel id creation
fix: fix channel id creation
d65cd3ba7eaf67b5c58baa115cb0a87076d28b71
--- package-lock.json @@ -66,7 +66,7 @@ "@walmart/react-native-scanner-3.0": "0.4.2", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", - "@walmart/roster-mini-app": "1.0.1", + "@walmart/roster-mini-app": "1.0.2", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "1.0.3", "babel-jest": "^29.2.1", @@ -11834,9 +11834,9 @@ } }, "node_modules/@walmart/roster-mini-app": { - "version": "1.0.1", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.1.tgz", - "integrity": "sha512-eLGW+hp/uVLs6Ugt45J5aO7Gk6l2m3FjEyYjImdUwLACsuIzOGa8sP6RzaSPL/eM1t0dS0O37YfRM9J+Wu7JYw==", + "version": "1.0.2", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.2.tgz", + "integrity": "sha512-3NdKwpdscqQMxsVUBaUakJiyag5qf9xdGmdqkPyIp2MKVtctY3ZOih3ssIrVQHnXIFvz0d23vuEl2T/7epzzkQ==", "dev": true, "hasInstallScript": true }, @@ -41073,9 +41073,9 @@ } }, "@walmart/roster-mini-app": { - "version": "1.0.1", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.1.tgz", - "integrity": "sha512-eLGW+hp/uVLs6Ugt45J5aO7Gk6l2m3FjEyYjImdUwLACsuIzOGa8sP6RzaSPL/eM1t0dS0O37YfRM9J+Wu7JYw==", + "version": "1.0.2", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.2.tgz", + "integrity": "sha512-3NdKwpdscqQMxsVUBaUakJiyag5qf9xdGmdqkPyIp2MKVtctY3ZOih3ssIrVQHnXIFvz0d23vuEl2T/7epzzkQ==", "dev": true }, "@walmart/ui-components": { --- package.json @@ -90,7 +90,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "1.0.3", - "@walmart/roster-mini-app": "1.0.1", + "@walmart/roster-mini-app": "1.0.2", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
Update roster mini app version
Update roster mini app version
fe64acacf1a8ded89025fe31ed63ee86cbabd25b
--- package-lock.json @@ -4203,9 +4203,9 @@ "integrity": "sha512-ppHmGeLmROMI8bji9txjodeqetklJIUIVf7eioPug8ZtS0YJrWBdnty8kbVZp+fQm+nLsDG0aqUOPDgZzzDd9A==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.1.17", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.1.17.tgz", - "integrity": "sha512-PIzRQedTiE7vNa1HoFg9Ya4mVw7F64hr1aGkxI4ciWZ4XtrglmWuUVEET+jHO/Is1736K0Iqw/ScEhOFtmZxHA==" + "version": "0.1.18", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.1.18.tgz", + "integrity": "sha512-2tdAveh1wefH5/6g9iefk/19NbNSLf8EuV3KGovCa/obypLE9Rfa6VPpPNgqvgsD2U05w2uxs5ix6xut9fFmgQ==" }, "@walmart/functional-components": { "version": "1.0.34", --- package.json @@ -77,7 +77,7 @@ "@walmart/config-components": "1.0.35", "@walmart/counts-component-miniapp": "0.0.22", "@walmart/exception-mini-app": "0.38.1", - "@walmart/feedback-all-spark-miniapp": "0.1.17", + "@walmart/feedback-all-spark-miniapp": "0.1.18", "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0",
Bumped up feedback miniapp version
Bumped up feedback miniapp version
424afea6b09a67d69363e4c3e076ef85dda61892
--- .looper.yml @@ -13,19 +13,19 @@ triggers: # - manual: # name: Publish from Changes # call: publishFromChanges - - manual: - name: Publish from Package - call: publishFromPackage # - manual: - # name: Publish from Git - # call: publishFromGit + # name: Publish from Package + # call: publishFromPackage + - manual: + name: Publish + call: publishFromNpm flows: default: - call: pr pr: - - (name Boostrap) npm run bootstrap + - (name Boostrap) npm install - (name Lint) npm run lint # - (name Test) npm run test @@ -34,15 +34,12 @@ flows: publishFromChanges: - call: preparePublish - - (name npm config) npm config ls - (name Publish Changed Packages) npm run publish publishFromPackage: - call: preparePublish - - (name npm config) npm config ls - (name Publish from Package) npm run publish-from-package - publishFromGit: + publishFromNpm: - call: preparePublish - - (name npm config) npm config ls - - (name Publish from Git) npm run publish-from-git + - (name Publish) npm publish
chore: change looper publish
chore: change looper publish
2d8356e90fa68cf8fb14f1930d60e49155e1b76a
--- src/hooks/teams.ts @@ -13,10 +13,11 @@ import { MY_TEAMS_TEAM_ID, TOTAL_SITE_TEAM_ID, TOTAL_SITE_TEAM_LABEL, - TOTAL_STORE_TEAM_ID, + TOTAL_STORE_TEAM_ID as TOTAL_STORE_TEAM_ID_LEGACY, TOTAL_STORE_TEAM_LABEL, useGetViewersPrimaryTeam as useGetViewersPrimaryTeamFromHub, } from '@walmart/allspark-foundation-hub'; +import {TOTAL_STORE_TEAM_ID} from '@walmart/my-walmart-hub'; import { GetSupplyChainTeamByIdQuery, useGetSupplyChainTeamByIdQuery, @@ -47,6 +48,7 @@ export const useSupplyChainTeamById = (teamId: string) => { const countryCode: string | undefined = useSelector( UserSelectors.getCountryCode ); + const totalTeamId = teamId === TOTAL_STORE_TEAM_ID || teamId === TOTAL_STORE_TEAM_ID_LEGACY || teamId === TOTAL_SITE_TEAM_ID; const envConfig = useEnvironment(); const response = useGetSupplyChainTeamByIdQuery({ variables: { @@ -62,7 +64,7 @@ export const useSupplyChainTeamById = (teamId: string) => { !storeNbr || !countryCode || !teamId || - teamId === TOTAL_STORE_TEAM_ID || + totalTeamId || teamId === MY_TEAMS_TEAM_ID, notifyOnNetworkStatusChange: false, // Prevent unnecessary re-renders fetchPolicy: 'cache-and-network', // Return cached data immediately @@ -191,6 +193,7 @@ export const useGetTeamById = (teamId: string) => { const countryCode: string | undefined = useSelector( UserSelectors.getCountryCode ); + const totalTeamId = teamId === TOTAL_STORE_TEAM_ID || teamId === TOTAL_STORE_TEAM_ID_LEGACY; const envConfig = useEnvironment(); const response = useGetTeamByIdQuery({ variables: { @@ -206,7 +209,7 @@ export const useGetTeamById = (teamId: string) => { !storeNbr || !countryCode || !teamId || - teamId === TOTAL_STORE_TEAM_ID || + totalTeamId || teamId === MY_TEAMS_TEAM_ID, notifyOnNetworkStatusChange: false, // Prevent unnecessary re-renders fetchPolicy: 'cache-and-network', // Return cached data immediately --- src/screens/RosterDetailScreen/StoreRosterDetailScreen/useStoreRosterDetails.ts @@ -1,8 +1,9 @@ import { TOTAL_STORE_TEAM_LABEL, - TOTAL_STORE_TEAM_ID, + TOTAL_STORE_TEAM_ID as TOTAL_STORE_TEAM_ID_LEGACY, StoreManagerExperienceSelectors, } from '@walmart/allspark-foundation-hub'; +import {TOTAL_STORE_TEAM_ID} from '@walmart/my-walmart-hub'; import {useCallback, useState} from 'react'; import {useSelector} from 'react-redux'; import {RosterDetailScreenProps} from '../types'; @@ -65,7 +66,7 @@ export const useStoreRosterDetails = ({route}: RosterDetailScreenProps) => { ); const getCurrentTeamName = useCallback(() => { - if (teamState.teamIds.includes(TOTAL_STORE_TEAM_ID)) { + if (teamState.teamIds.includes(TOTAL_STORE_TEAM_ID) || teamState.teamIds.includes(TOTAL_STORE_TEAM_ID_LEGACY)) { return siteTranslationContext; } else if (teamState?.teamLabel) { return teamState?.teamLabel;
feat(ui): added checks
feat(ui): added checks
f706576cc7088ee0ac452b2bef3cb73f9a39d727
--- packages/allspark-foundation/src/Components/TeamListItem/images.ts @@ -19,9 +19,6 @@ export const images: Record<string, string> = { // Digital '1000326': 'https://i5-me.walmartimages.com/images/teams/digital-team-330e13ad96.png', - // Digital Overnight - 'Digital Overnight': - 'https://i5-me.walmartimages.com/images/teams/digital-team-330e13ad96.png', // Entertainment '1000198': 'https://i5-me.walmartimages.com/images/teams/entertainment-team-6dd2ca6713.png',
feat: removed digital overnight image
feat: removed digital overnight image
80d42d2089e33423367462d19857882b047d990b
--- package-lock.json @@ -53,9 +53,9 @@ "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "^2.0.0", "@walmart/impersonation-mini-app": "1.10.0", - "@walmart/ims-print-services-ui": "1.2.0", + "@walmart/ims-print-services-ui": "1.2.2", "@walmart/inbox-mini-app": "0.81.3", - "@walmart/iteminfo-mini-app": "5.3.2", + "@walmart/iteminfo-mini-app": "5.3.3", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", "@walmart/metrics-mini-app": "0.9.38", @@ -5298,9 +5298,9 @@ } }, "node_modules/@walmart/ims-print-services-ui": { - "version": "1.2.0", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-1.2.0.tgz", - "integrity": "sha512-ruI1vqy+0peD+BHi32DvhPSV8lmeoG/iLOeFYGekj40YwIKexXFepkYDiMTOr9tk5rzDg8d+FjRyzVAfKClhOw==", + "version": "1.2.2", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-1.2.2.tgz", + "integrity": "sha512-Mh3s0NI0QSMUtH5lkWqksw+QyROQIgz3tnb7Yn+sIAdJCo/sijB94t+dZLTdpIJcAQE0w7MGH8iSWnaGJ3gzrg==", "peerDependencies": { "@react-native-firebase/analytics": ">=10.5.1", "@react-native-firebase/app": ">=10.5.0", @@ -5308,7 +5308,7 @@ "@react-native-firebase/firestore": ">=10.5.1", "@react-native-firebase/perf": ">=10.5.1", "@walmart/functional-components": ">=1.0.22", - "@walmart/gtp-shared-components": ">=1.8.9", + "@walmart/gtp-shared-components": ">=2.0.0", "@walmart/react-native-logger": ">=1.17.0", "@walmart/ui-components": ">=1.1.11", "i18next": "^19.7.0", @@ -5340,9 +5340,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "5.3.2", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.2.tgz", - "integrity": "sha512-psbMzJx895210LbITEcHpk3hQgAhdvhAz1uw0/jF7IlSr4NUPtgXDkXLKrkHo0uEzEeNYA6nta1P2l2/4bIL6Q==", + "version": "5.3.3", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.3.tgz", + "integrity": "sha512-QCHDnZxpgBu7f8w2d/UCl4+E0wM/bxzfLKUU3Q68nsfd95D+C6HcoM58m5tJ/SIEcRnM1kyRuO5Ir5soyYgTbg==", "peerDependencies": { "@react-native-community/async-storage": ">=1.12.1", "@react-native-community/netinfo": ">=9.3.6", @@ -5361,8 +5361,8 @@ "@walmart/config-components": ">=1.0.8", "@walmart/counts-component-miniapp": ">=0.0.21", "@walmart/functional-components": ">=2.0.6", - "@walmart/gtp-shared-components": ">=1.8.17", - "@walmart/ims-print-services-ui": ">=1.1.10", + "@walmart/gtp-shared-components": ">=2.0.0", + "@walmart/ims-print-services-ui": ">=1.2.0", "@walmart/price-changes-mini-app": ">=1.4.5", "@walmart/react-native-env": ">=0.2.0", "@walmart/react-native-logger": ">=1.29.0", @@ -25227,9 +25227,9 @@ "integrity": "sha512-/bnQ0mzIwG00i3aUz27eVqZE0w6I15c8CsxErencSBbDrx/uQFPNUYl45/Z/Y0XLYLRmothQ9zQHmp4I7km6RQ==" }, "@walmart/ims-print-services-ui": { - "version": "1.2.0", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-1.2.0.tgz", - "integrity": "sha512-ruI1vqy+0peD+BHi32DvhPSV8lmeoG/iLOeFYGekj40YwIKexXFepkYDiMTOr9tk5rzDg8d+FjRyzVAfKClhOw==" + "version": "1.2.2", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-1.2.2.tgz", + "integrity": "sha512-Mh3s0NI0QSMUtH5lkWqksw+QyROQIgz3tnb7Yn+sIAdJCo/sijB94t+dZLTdpIJcAQE0w7MGH8iSWnaGJ3gzrg==" }, "@walmart/inbox-mini-app": { "version": "0.81.3", @@ -25240,9 +25240,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "5.3.2", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.2.tgz", - "integrity": "sha512-psbMzJx895210LbITEcHpk3hQgAhdvhAz1uw0/jF7IlSr4NUPtgXDkXLKrkHo0uEzEeNYA6nta1P2l2/4bIL6Q==" + "version": "5.3.3", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-5.3.3.tgz", + "integrity": "sha512-QCHDnZxpgBu7f8w2d/UCl4+E0wM/bxzfLKUU3Q68nsfd95D+C6HcoM58m5tJ/SIEcRnM1kyRuO5Ir5soyYgTbg==" }, "@walmart/manager-approvals-miniapp": { "version": "0.1.2",
chore: update lock
chore: update lock
365e232760cf6a9f5dd72d2f3e366dd666886d77
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", - "@walmart/metrics-mini-app": "0.9.40", + "@walmart/metrics-mini-app": "0.9.41", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", "@walmart/OneWalmart-MiniApp": "1.0.12", @@ -5507,9 +5507,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.9.40", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.40.tgz", - "integrity": "sha512-Pv8ThrT1IfUrHdIAT/Z+HvpyMY6tNfQhCQCgA47m8/KHQsO/SPogh33X5Cx5qugZiPyx1RfIBdZKc/D5BoL/pg==", + "version": "0.9.41", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.41.tgz", + "integrity": "sha512-AFCnGBMgckKWlGG/SanvR75Zhz6LziqneECZQSDTE765+Ho3TmiA4eT4yhhPz6pLtf3QIeVXIyNKfj978OciSA==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25255,9 +25255,9 @@ "integrity": "sha512-MbuwFAfzl+LjNffFJUNvP7Ay7kx9sri1Haia4t/p6linZT3HxOaCotJbu0fRVqMr4tXX1ZVCeB2JmSpjsE0UsA==" }, "@walmart/metrics-mini-app": { - "version": "0.9.40", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.40.tgz", - "integrity": "sha512-Pv8ThrT1IfUrHdIAT/Z+HvpyMY6tNfQhCQCgA47m8/KHQsO/SPogh33X5Cx5qugZiPyx1RfIBdZKc/D5BoL/pg==", + "version": "0.9.41", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.41.tgz", + "integrity": "sha512-AFCnGBMgckKWlGG/SanvR75Zhz6LziqneECZQSDTE765+Ho3TmiA4eT4yhhPz6pLtf3QIeVXIyNKfj978OciSA==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -101,7 +101,7 @@ "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", - "@walmart/metrics-mini-app": "0.9.40", + "@walmart/metrics-mini-app": "0.9.41", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", "@walmart/pay-stub-miniapp": "0.9.21",
updated metrics version
updated metrics version
d22c9563b0a76da00d6e92038f060ebd18b39d92
--- package-lock.json @@ -37,7 +37,7 @@ "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.3", - "@walmart/attendance-mini-app": "0.28.0", + "@walmart/attendance-mini-app": "0.29.0", "@walmart/config-components": "4.0.1", "@walmart/core-services": "~1.4.9", "@walmart/core-services-allspark": "~1.10.11", @@ -4704,9 +4704,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "0.28.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.28.0.tgz", - "integrity": "sha512-xDaNFBPTyCZTeGgaT3wAK5xn8Ff77MirmoQY0QYEoTvLlHtva4CEs2aqP8o6LV8gkrFuVF45mcnD+0Ae7DRtzQ==", + "version": "0.29.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.29.0.tgz", + "integrity": "sha512-uG52MEHSMBjTY9hijZFLXzDOJ5oRzQo59u6dQzTXWD+t46Xiy9jdbd+pWxb8g4eo1e0tQ0kDA6Ns3hGCDt9UBA==", "dependencies": { "@react-native-async-storage/async-storage": "^1.17.10", "@react-native-community/datetimepicker": "3.0.9", @@ -24913,9 +24913,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "0.28.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.28.0.tgz", - "integrity": "sha512-xDaNFBPTyCZTeGgaT3wAK5xn8Ff77MirmoQY0QYEoTvLlHtva4CEs2aqP8o6LV8gkrFuVF45mcnD+0Ae7DRtzQ==", + "version": "0.29.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.29.0.tgz", + "integrity": "sha512-uG52MEHSMBjTY9hijZFLXzDOJ5oRzQo59u6dQzTXWD+t46Xiy9jdbd+pWxb8g4eo1e0tQ0kDA6Ns3hGCDt9UBA==", "requires": { "@react-native-async-storage/async-storage": "^1.17.10", "@react-native-community/datetimepicker": "^5.1.0", --- package.json @@ -80,7 +80,7 @@ "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.3", - "@walmart/attendance-mini-app": "0.28.0", + "@walmart/attendance-mini-app": "0.29.0", "@walmart/config-components": "4.0.1", "@walmart/core-services": "~1.4.9", "@walmart/core-services-allspark": "~1.10.11",
Bump attendance mini app to 0.29.0
Bump attendance mini app to 0.29.0
48410b00b2be1348d03c292849906320e2d48629
--- package-lock.json @@ -32,7 +32,7 @@ "@walmart/react-native-scanner-3.0": "0.1.20", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.4.0-rc.2", - "@walmart/redux-store": "~3.1.3", + "@walmart/redux-store": "~3.1.4", "axios": "~1.2.4", "crypto-js": "~4.1.1", "graphql": "^16.6.0", @@ -10867,9 +10867,9 @@ } }, "node_modules/@walmart/redux-store": { - "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==", + "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==", "license": "MIT", "dependencies": { "namecase": "^1.1.2", @@ -26049,9 +26049,9 @@ "license": "MIT" }, "node_modules/react-native-permissions": { - "version": "3.7.3", - "resolved": "https://npme.walmart.com/react-native-permissions/-/react-native-permissions-3.7.3.tgz", - "integrity": "sha512-kHf79ygx1jP58IuaUimxj8McQK85OwerN8dnndOhgG8eyLeJMNiBFafKizbxFSCCCo1jmAAbTpA3iLM0UhHpbQ==", + "version": "3.8.0", + "resolved": "https://npme.walmart.com/react-native-permissions/-/react-native-permissions-3.8.0.tgz", + "integrity": "sha512-BfZ7ksgdpGchHZH8M/kxCGZbWeACANbnPmb3hNjVOMDQusc4PWlPpobX3eBqYMSKbpi7bMECeV9BVU4QuwAf9A==", "license": "MIT", "dependencies": { "picocolors": "^1.0.0", @@ -38661,9 +38661,9 @@ "integrity": "sha512-znjtuqe31SHlUzniJY0vEp2swjLmRuvFxGo+iPMPYfhSDAtcqwuEPV4xpR0QXKDX1oOTaPFgYYLcvrZ4LejN4w==" }, "@walmart/redux-store": { - "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==", + "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==", "requires": { "namecase": "^1.1.2", "reduxsauce": "^1.2.1" @@ -49774,9 +49774,9 @@ "dev": true }, "react-native-permissions": { - "version": "3.7.3", - "resolved": "https://npme.walmart.com/react-native-permissions/-/react-native-permissions-3.7.3.tgz", - "integrity": "sha512-kHf79ygx1jP58IuaUimxj8McQK85OwerN8dnndOhgG8eyLeJMNiBFafKizbxFSCCCo1jmAAbTpA3iLM0UhHpbQ==", + "version": "3.8.0", + "resolved": "https://npme.walmart.com/react-native-permissions/-/react-native-permissions-3.8.0.tgz", + "integrity": "sha512-BfZ7ksgdpGchHZH8M/kxCGZbWeACANbnPmb3hNjVOMDQusc4PWlPpobX3eBqYMSKbpi7bMECeV9BVU4QuwAf9A==", "requires": { "picocolors": "^1.0.0", "pkg-dir": "^5.0.0" --- packages/core-services/package.json @@ -21,7 +21,7 @@ "dependencies": { "@walmart/allspark-http-client": "^2.4.8", "@walmart/allspark-utils": "^1.5.1", - "@walmart/redux-store": "~3.1.3", + "@walmart/redux-store": "~3.1.4", "reduxsauce": "^1.2.1", "reselect": "^4.1.5", "seamless-immutable": "^7.1.4",
chore: increment redux store lib
chore: increment redux store lib
efeabd7cf1ea63738e34da1fc177eef94c20622f
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -110,6 +110,9 @@ Array [ <Screen name="profile.personalSettingsScreen" /> + <Screen + name="profile.aboutMeScreen" + /> <Screen name="paymentselection" /> @@ -311,6 +314,22 @@ Array [ } } /> + <Screen + name="profile.profilePictureScreen" + options={ + Object { + "cardStyleInterpolator": [MockFunction], + } + } + /> + <Screen + name="profile.profilePictureOptionScreen" + options={ + Object { + "cardStyleInterpolator": [MockFunction], + } + } + /> </Group> <Group screenOptions={ @@ -438,6 +457,9 @@ Array [ <Screen name="profile.personalSettingsScreen" /> + <Screen + name="profile.aboutMeScreen" + /> <Screen name="paymentselection" /> @@ -639,6 +661,22 @@ Array [ } } /> + <Screen + name="profile.profilePictureScreen" + options={ + Object { + "cardStyleInterpolator": [MockFunction], + } + } + /> + <Screen + name="profile.profilePictureOptionScreen" + options={ + Object { + "cardStyleInterpolator": [MockFunction], + } + } + /> </Group> <Group screenOptions={
Updated snapshots with added screens
Updated snapshots with added screens
9f6f8075f4e0a2c877a2243fc2f3606e1b76bd56
--- package.json @@ -172,7 +172,7 @@ "@walmart/shop-gnfr-mini-app": "1.0.454", "@walmart/sidekick-mini-app": "4.274.1", "@walmart/store-feature-orders": "1.35.6", - "@walmart/talent-performance-mini-app": "1.2.6", + "@walmart/talent-performance-mini-app": "1.2.7", "@walmart/talent-preboarding-mini-app": "1.0.63", "@walmart/talent-preboarding-shared-utils": "^0.1.114", "@walmart/taskit-mini-app": "5.52.7", --- yarn.lock @@ -8934,7 +8934,7 @@ __metadata: "@walmart/shop-gnfr-mini-app": "npm:1.0.454" "@walmart/sidekick-mini-app": "npm:4.274.1" "@walmart/store-feature-orders": "npm:1.35.6" - "@walmart/talent-performance-mini-app": "npm:1.2.6" + "@walmart/talent-performance-mini-app": "npm:1.2.7" "@walmart/talent-preboarding-mini-app": "npm:1.0.63" "@walmart/talent-preboarding-shared-utils": "npm:^0.1.114" "@walmart/taskit-mini-app": "npm:5.52.7" @@ -9905,9 +9905,9 @@ __metadata: languageName: node linkType: hard -"@walmart/talent-performance-mini-app@npm:1.2.6": - version: 1.2.6 - resolution: "@walmart/talent-performance-mini-app@npm:1.2.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftalent-performance-mini-app%2F-%2F%40walmart%2Ftalent-performance-mini-app-1.2.6.tgz" +"@walmart/talent-performance-mini-app@npm:1.2.7": + version: 1.2.7 + resolution: "@walmart/talent-performance-mini-app@npm:1.2.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftalent-performance-mini-app%2F-%2F%40walmart%2Ftalent-performance-mini-app-1.2.7.tgz" dependencies: "@walmart/apq-client-wrapper": "npm:0.2.4" peerDependencies: @@ -9929,7 +9929,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/f6040916cfcf99d09b46a188c3d36467bd6b5a50604b98e93ab2d44cddd54d51b556983a9d15c94a73307517b851ad4e61cc7779b34b2307d123f5c91b6064bb + checksum: 10c0/60d935bd8eb4b02642ae0bd7f067a422d22898ca47aa6dd48dd227ac5984002015bbe09961bc5675781b1e196eae3d0227f476d7467a5b9ca349537f67c85d83 languageName: node linkType: hard
chore: update @walmart/talent-performance-mini-app to version 1.2.7 i… (#5283)
chore: update @walmart/talent-performance-mini-app to version 1.2.7 i… (#5283) Co-authored-by: Shyam Ammanamanchi <shyam.ammanamanchi@walmart.com> Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com>
efa02657dc29eef50adfbf9c133b3643b023af21
--- packages/allspark-cli/package.json @@ -31,7 +31,7 @@ "prepublishOnly": "npm run build && chmod +x dist/cli-tool/index.js", "prepare": "npm run build && chmod +x dist/cli-tool/index.js", "copy-deps-map": "mkdir -p $(pwd)/dist/cli-tool/scripts && cp -R $(pwd)/src/cli-tool/scripts/dependencies-map $(pwd)/dist/cli-tool/scripts/dependencies-map", - "copy-lint-rules": "mkdir -p $(pwd)/dist/cli-tool/scripts && cp -R $(pwd)/src/cli-tool/scripts/lint-check/eslint-rules $(pwd)/dist/cli-tool/scripts/lint-check/eslint-rules && cp $(pwd)/src/cli-tool/scripts/lint-check/.eslintrc-mini-app.json $(pwd)/dist/cli-tool/scripts/lint-check/.eslintrc-mini-app.json" + "copy-lint-rules": "mkdir -p $(pwd)/dist/cli-tool/scripts/lint-check && cp -R $(pwd)/src/cli-tool/scripts/lint-check/eslint-rules $(pwd)/dist/cli-tool/scripts/lint-check/eslint-rules && cp $(pwd)/src/cli-tool/scripts/lint-check/.eslintrc-mini-app.json $(pwd)/dist/cli-tool/scripts/lint-check/.eslintrc-mini-app.json" }, "dependencies": { "@clack/prompts": "^0.7.0",
Feature/fix cli publish package (#408)
Feature/fix cli publish package (#408) * fix(cli): package publish issue * fix(cli): fix publish package
1f0740b44a4dd5e2c51c2968bb0f6f155afd88dd
--- src/redux/UserChangedActions.ts @@ -1,6 +1,7 @@ export const USER_CHANGED_ACTIONS = [ 'global/SIGN_IN_SUCCESS', 'global/START_IMPERSONATION', + 'impersonation/SET_IMPERSONATOR_DATA', ]; export const APP_CONFIG_INIT_ACTIONS = [ 'global/CONFIG_INIT_SUCCESS',
adding action to user changed actions (#537)
adding action to user changed actions (#537) Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
cb9e26d7db7c1e6916fde111e0b1c26ea838c504
--- container/package.json @@ -127,7 +127,7 @@ "jest-expo": "~53.0.10", "metro-react-native-babel-preset": "0.76.8", "prettier": "^2.8.8", - "react-test-renderer": "18.2.0", + "react-test-renderer": "19.0.0", "reactotron-core-client": "2.9.7", "ts-node": "^10.4.0", "typescript": "~5.8.3" --- yarn.lock @@ -8454,7 +8454,7 @@ __metadata: react-native-svg-transformer: "npm:^1.3.0" react-native-webview: "npm:13.12.5" react-native-wm-config: "npm:0.1.1" - react-test-renderer: "npm:18.2.0" + react-test-renderer: "npm:19.0.0" reactotron-core-client: "npm:2.9.7" reactotron-react-native: "npm:^5.1.12" reactotron-redux: "npm:^3.1.11" @@ -17170,7 +17170,7 @@ __metadata: languageName: node linkType: hard -"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.4.0": +"loose-envify@npm:^1.0.0, loose-envify@npm:^1.4.0": version: 1.4.0 resolution: "loose-envify@npm:1.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Floose-envify%2F-%2Floose-envify-1.4.0.tgz" dependencies: @@ -20091,13 +20091,6 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^16.12.0 || ^17.0.0 || ^18.0.0, react-is@npm:^18.0.0, react-is@npm:^18.2.0": - version: 18.3.1 - resolution: "react-is@npm:18.3.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-is%2F-%2Freact-is-18.3.1.tgz" - checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072 - languageName: node - linkType: hard - "react-is@npm:^16.13.0, react-is@npm:^16.13.1, react-is@npm:^16.7.0, react-is@npm:^16.8.6": version: 16.13.1 resolution: "react-is@npm:16.13.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-is%2F-%2Freact-is-16.13.1.tgz" @@ -20112,6 +20105,13 @@ __metadata: languageName: node linkType: hard +"react-is@npm:^18.0.0": + version: 18.3.1 + resolution: "react-is@npm:18.3.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-is%2F-%2Freact-is-18.3.1.tgz" + checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072 + languageName: node + linkType: hard + "react-is@npm:^19.0.0, react-is@npm:^19.1.0": version: 19.2.0 resolution: "react-is@npm:19.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-is%2F-%2Freact-is-19.2.0.tgz" @@ -20669,31 +20669,6 @@ __metadata: languageName: node linkType: hard -"react-shallow-renderer@npm:^16.15.0": - version: 16.15.0 - resolution: "react-shallow-renderer@npm:16.15.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-shallow-renderer%2F-%2Freact-shallow-renderer-16.15.0.tgz" - dependencies: - object-assign: "npm:^4.1.1" - react-is: "npm:^16.12.0 || ^17.0.0 || ^18.0.0" - peerDependencies: - react: ^16.0.0 || ^17.0.0 || ^18.0.0 - checksum: 10c0/c194d741792e86043a4ae272f7353c1cb9412bc649945c4220c6a101a6ea5410cceb3d65d5a4d750f11a24f7426e8eec7977e8a4e3ad5d3ee235ca2b18166fa8 - languageName: node - linkType: hard - -"react-test-renderer@npm:18.2.0": - version: 18.2.0 - resolution: "react-test-renderer@npm:18.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-test-renderer%2F-%2Freact-test-renderer-18.2.0.tgz" - dependencies: - react-is: "npm:^18.2.0" - react-shallow-renderer: "npm:^16.15.0" - scheduler: "npm:^0.23.0" - peerDependencies: - react: ^18.2.0 - checksum: 10c0/53dfada1da1e8dd0498a5601e9eea3dc6ca23c6c2694d1cab9712faea869c11e4ce1c9a618d674cb668a668b41fb6bcf9a7b0a078cd853b1922f002fa22f42c8 - languageName: node - linkType: hard - "react-test-renderer@npm:19.0.0": version: 19.0.0 resolution: "react-test-renderer@npm:19.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-test-renderer%2F-%2Freact-test-renderer-19.0.0.tgz" @@ -21515,15 +21490,6 @@ __metadata: languageName: node linkType: hard -"scheduler@npm:^0.23.0": - version: 0.23.2 - resolution: "scheduler@npm:0.23.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fscheduler%2F-%2Fscheduler-0.23.2.tgz" - dependencies: - loose-envify: "npm:^1.1.0" - checksum: 10c0/26383305e249651d4c58e6705d5f8425f153211aef95f15161c151f7b8de885f24751b377e4a0b3dd42cce09aad3f87a61dab7636859c0d89b7daf1a1e2a5c78 - languageName: node - linkType: hard - "scuid@npm:^1.1.0": version: 1.1.0 resolution: "scuid@npm:1.1.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fscuid%2F-%2Fscuid-1.1.0.tgz"
feat(ui): update allspark component container
feat(ui): update allspark component container
21e8a8451899125fb1ff0237051caf4ff9e87f0e
--- __tests__/setup.js @@ -31,8 +31,6 @@ jest.mock('@react-navigation/native', () => { return { ...actualNav, useFocusEffect: () => jest.fn(), - useNavigation: () => ({ - navigate: jest.fn(), - }), + useNavigation: jest.fn(), }; }); --- packages/allspark-foundation/__tests__/Navigation/DrawerButton.test.tsx @@ -1,14 +1,30 @@ import React from 'react'; import { DrawerButton } from '../../src/Navigation/components/DrawerButton'; -import { render, screen } from '@testing-library/react-native'; +import { fireEvent, render, screen } from '@testing-library/react-native'; +import { useAllsparkDrawer } from '../../src/Navigation/context'; +import { useNavigation } from '@react-navigation/native'; + +jest.mock('../../src/Navigation/context', () => ({ + useAllsparkDrawer: jest.fn(), +})); describe('Navigation/components/DrawerButton', () => { - test('should render correctly', async () => { + test('should render correctly and navigate when button is pressed', async () => { const props = { style: {}, iconStyle: {}, badgeStyle: {} }; + const mockedDispatch = jest.fn(); + + (useAllsparkDrawer as jest.Mock).mockReturnValue({ locked: false }); + + (useNavigation as jest.Mock).mockReturnValue({ dispatch: mockedDispatch }); + render(<DrawerButton {...props} />); - const bannerElement = screen.getByTestId('navigationMenu'); - expect(bannerElement).toBeTruthy(); + const button = screen.getByTestId('navigationMenu'); + expect(button).toBeTruthy(); + + fireEvent.press(button); + + expect(mockedDispatch).toHaveBeenCalled(); }); });
update navigation mock, add onpress test for Drawer button
update navigation mock, add onpress test for Drawer button
e1ec80cbad3ae8d5ce7ca0b3ae1b3cfe5eb23d5d
--- __tests__/core/initSSOTest.ts @@ -7,6 +7,7 @@ import { import { addSSOListeners, ssoTelemetryEventListener, + ASSOCIATE_USER_TYPE, } from '../../src/core/initSSO'; import {logger} from '../../src/services/Logger'; import {SSO_APP} from '../../src/types/telemetryConstants'; @@ -90,4 +91,50 @@ describe('ssoTelemetryEventListener', () => { }); expect(logger.info).toHaveBeenCalledWith('User change succeeded', {}); }); + it('logs error for store/dc associates if siteId is NOT_FOUND', () => { + const event = { + action: SSOPingFedEvents.types.userChanged, + domain: 'Store/Club', + siteId: 'NOT_FOUND', + countryCode: 'US', + userType: ASSOCIATE_USER_TYPE as String, + } as SSOPingFedEventData; + + ssoTelemetryEventListener(event); + + expect(WmTelemetry.logEvent).toHaveBeenCalledWith(SSO_APP, 'successful', { + isPreHire: 'false', + }); + expect(logger.info).toHaveBeenCalledWith('User change succeeded', {}); + expect(logger.error).toHaveBeenCalledWith( + 'Country or store number NOT_FOUND', + { + countryCode: 'US', + siteId: 'NOT_FOUND', + }, + ); + }); + it('logs error for store/dc associates if countryCode is NOT_FOUND', () => { + const event = { + action: SSOPingFedEvents.types.authSuccess, + domain: 'Store/Club', + siteId: '100', + countryCode: 'NOT_FOUND', + userType: ASSOCIATE_USER_TYPE as String, + } as SSOPingFedEventData; + + ssoTelemetryEventListener(event); + + expect(WmTelemetry.logEvent).toHaveBeenCalledWith(SSO_APP, 'successful', { + isPreHire: 'false', + }); + expect(logger.info).toHaveBeenCalledWith('User sign in succeeded', {}); + expect(logger.error).toHaveBeenCalledWith( + 'Country or store number NOT_FOUND', + { + siteId: '100', + countryCode: 'NOT_FOUND', + }, + ); + }); }); --- __tests__/core/loggerInitTest.ts @@ -166,7 +166,7 @@ describe('onUserChanged', () => { expect(iterator.next().done).toEqual(true); }); - it('adds user information to the default logger; NOT_FOUND site & countryCode', () => { + it('adds user information to the default logger; NOT_FOUND site', () => { const iterator = onUserChanged(); const sysInfo = { @@ -180,9 +180,7 @@ describe('onUserChanged', () => { expect(iterator.next('NOT_FOUND').value).toEqual( select(getOriginalUserData), ); - expect(iterator.next({...user, countryCode: 'NOT_FOUND'}).value).toEqual( - select(getIsImpersonated), - ); + expect(iterator.next(user).value).toEqual(select(getIsImpersonated)); expect(iterator.next(false).value).toEqual(call(getSystemInfo)); expect(iterator.next(sysInfo).value).toEqual(select(getEncryptionKey)); @@ -191,9 +189,9 @@ describe('onUserChanged', () => { ); expect(iterator.next(user.userId).value).toEqual( call(DefaultLogger.setUserInfo, { - country: 'NOT_FOUND', + country: user.countryCode, userId: user.userId, - storeNumber: 'NOT_FOUND', + storeNumber: '0', domain: user.domain, division: user.division, employeeType: user.employeeType, --- src/core/initSSO.ts @@ -9,6 +9,20 @@ import {SSO_APP} from '../types/telemetryConstants'; import {logger} from '../services/Logger'; export const PRE_HIRE_USER_TYPE = 'PRE_HIRE'; +export const ASSOCIATE_USER_TYPE = 'ASSOCIATE'; + +const logNotFoundError = (event: SSOPingFedEventData) => { + if ( + event.domain?.toUpperCase() !== 'HOMEOFFICE' && + event.userType?.toUpperCase() === ASSOCIATE_USER_TYPE && + (event.siteId === 'NOT_FOUND' || event.countryCode === 'NOT_FOUND') + ) { + logger.error('Country or store number NOT_FOUND', { + countryCode: event.countryCode, + siteId: event.siteId, + }); + } +}; export const ssoTelemetryEventListener = (event: SSOPingFedEventData) => { switch (event.action) { @@ -28,12 +42,14 @@ export const ssoTelemetryEventListener = (event: SSOPingFedEventData) => { WmTelemetry.logEvent(SSO_APP, 'successful', { isPreHire: String(event.userType === PRE_HIRE_USER_TYPE), }); + logNotFoundError(event); logger.info('User sign in succeeded', {}); break; case SSOPingFedEvents.types.userChanged: WmTelemetry.logEvent(SSO_APP, 'successful', { isPreHire: String(event.userType === PRE_HIRE_USER_TYPE), }); + logNotFoundError(event); logger.info('User change succeeded', {}); break; } --- src/core/loggerInit.ts @@ -31,6 +31,7 @@ import { getEncryptionKey, } from '../redux'; import {encryptUserId} from '../services/MaskUserId'; +import {defaultCountryCode} from '../transforms/user'; import {getDeviceType} from '../redux/SharedSelectors'; import env from '../../env'; @@ -107,8 +108,8 @@ export function* onUserChanged() { yield call(DefaultLogger.setUserInfo, { userId: encryptedUserId, - country: user.countryCode, - storeNumber: site, + country: defaultCountryCode(user.countryCode), + storeNumber: `${parseInt(site, 10) || 0}`, domain: user.domain, division: user.division, employeeType: user.employeeType,
Added logs at SSO event level
Added logs at SSO event level
011eb83d755c05a5b3e7a67939f8c466c4c56514
--- .looper-pr.yml @@ -13,6 +13,7 @@ flows: - (name Yarn Install) yarn install - (name Test Coverage) yarn run coverage + envs: global: variables:
feat(ci): added whitespace
feat(ci): added whitespace
d926b3b17c86f08cd01aaa5b460c72ecdc50d56b
--- docs/docs/components/allspark foundation/clients/foundation-graphQL.md @@ -31,7 +31,7 @@ The default headers for all requests. The feature specific type policies to add to the GraphQL client cache. ```typescript -const MyFeatureHttpClient = MyFeature.createGraphQLClient({ +const MyFeatureGraphQLClient = MyFeature.createGraphQLClient({ headers: { 'my-feature-header': 'my-feature-header-value', }, @@ -43,29 +43,29 @@ const MyFeatureHttpClient = MyFeature.createGraphQLClient({ #### `query` -Refer to Apollo Client Docs for [query](https://www.apollographql.com/docs/react/api/core/ApolloClient#query). +Refer to Apollo Client Docs for [query](https://www.apollographql.com/docs/react/data/queries#prerequisites). #### `mutate` -Refer to Apollo Client Docs for [mutate](https://www.apollographql.com/docs/react/api/core/ApolloClient#mutate). +Refer to Apollo Client Docs for [mutate](https://www.apollographql.com/docs/react/api/react/hoc/#propsmutate). #### `useQuery` Feature client only. -Refer to Apollo Client Docs for [useQuery](https://www.apollographql.com/docs/react/api/react/hooks#usequery). +Refer to Apollo Client Docs for [useQuery](https://www.apollographql.com/docs/react/data/queries#usequery-api). #### `useLazyQuery` Feature client only. -Refer to Apollo Client Docs for [useLazyQuery](https://www.apollographql.com/docs/react/api/react/hooks#uselazyquery). +Refer to Apollo Client Docs for [useLazyQuery](https://www.apollographql.com/docs/react/data/queries/#manual-execution-with-uselazyquery). #### `useMutation` Feature client only. -Refer to Apollo Client Docs for [useMutation](https://www.apollographql.com/docs/react/api/react/hooks#usemutation). +Refer to Apollo Client Docs for [useMutation](https://www.apollographql.com/docs/react/development-testing/static-typing/#usemutation). ### Feature Client Codegen --- docs/docs/components/allspark foundation/foundation-container.md @@ -189,7 +189,7 @@ Fired after some container cleanup is run. The setup type is passed as an argume An `AllsparkContainer` manages a `container` slice in the Allspark Redux Store. This is used to share container related information with the features. -Some fiels are `auto` handled, while others require `manaual` handling by the container. +Some fiels are `auto` handled, while others require `manual` handling by the container. ```ts type ContainerState = { --- docs/docs/components/allspark foundation/foundation-redux.md @@ -145,7 +145,28 @@ Current value of the internal redux store. ### `reducer()` -Current value of the root reducer +Current value of the root reducer. + +### `startListening()` +Adds a listener to the store using the `startListening` method on the listener middleware. Refer to the [documentation](https://redux-toolkit.js.org/api/createListenerMiddleware#startlistening) for more information and better examples. + +```ts +const unsubscribe = store.startListening({...}); +``` + +### `stopListening()` +Stops a listener on the store using the `stopListening` method on the listener middleware. Refer to the [documentation](https://redux-toolkit.js.org/api/createListenerMiddleware#stoplistening) for more information and better examples. + +```ts +const unsubscribe = store.stopListening({...}); +``` + +### `clearListeners()` +Clears all listeners on the store using the `clearListeners` method on the listener middleware. Refer to the [documentation](https://redux-toolkit.js.org/api/createListenerMiddleware#clearlisteners) for more information and better examples. + +```ts +const unsubscribe = store.clearListeners({...}); +``` ## Store Hooks @@ -171,6 +192,10 @@ A wrapper around the `useSelector` hook from `react-redux` that provides proper ```ts const value = useAllsparkSelector((state) => state.value); + +// With generated selectors + const selectors = generateSelectorsForSlice(mySlice); + const myValue = useAllsparkSelector(selectors.getValue); ``` ## Redux Utilities
Fixing issues, broken links.
Fixing issues, broken links.
e4cb536301e53702cb0c236ce1791b03a2dd3e5c
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 76 + versionCode 77 versionName "1.0.5" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>76</string> + <string>77</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>76</string> + <string>77</string> </dict> </plist>
Incrementing build number
Incrementing build number
9f689592789dac065cd77f2b31c79c22cf054bf2
--- package.json @@ -18,7 +18,7 @@ "lint": "yarn workspaces foreach --all -p run lint", "lint:fix": "yarn workspaces foreach --all -p run lint:fix", "prepare": "husky", - "test": "jest --no-watchman" + "test": "npm run build && jest --no-watchman" }, "repository": { "type": "git", --- packages/allspark-foundation-hub/__tests__/Hub/Container/HubDashboard.test.tsx @@ -4,7 +4,7 @@ import { HubDashboard } from '../../../src/Store/Modules/Hub'; import { cleanup, fireEvent, render } from '../../utils'; import { UserSelectors } from '@walmart/allspark-foundation/User'; import { - ManagerExperienceSelectors, + StoreManagerExperienceSelectors as ManagerExperienceSelectors, hubContainerEnabled, hubOnboardingSuccessBottomSheetEnabled, hubTeamSwitcherEnabled, @@ -18,7 +18,6 @@ import * as NavigationUtil from '@react-navigation/native'; import * as safeAreaContext from 'react-native-safe-area-context'; import { useUserPersonaType } from '../../../src/Shared/Hooks/useUserPersonaType'; -import {} from '../../../src/Store/Redux'; jest.mock('@react-navigation/native', () => ({ ...jest.requireActual('@react-navigation/native'), @@ -40,7 +39,7 @@ jest.mock('../../../src/Shared/Hooks/useUserPersonaType', () => ({ jest.mock('../../../src/Store/Redux/selectors', () => ({ ...jest.requireActual('../../../src/Store/Redux/selectors'), - ManagerExperienceSelectors: { + StoreManagerExperienceSelectors: { getDefaultWidgets: jest.fn(), getSelectedTeamIDs: jest.fn(), getUserOnboardingError: jest.fn(), @@ -186,7 +185,6 @@ describe('HubDashboard', () => { componentOverrides={{ ['Header']: { id: '' } }} /> ); - console.log('====root', root); expect(toJSON()).toMatchSnapshot(); });
feat(ui): import fix
feat(ui): import fix
daa8191c08a1b0efdeffdd3abed7f9b8d0101774
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/ask-sam-mini-app": "1.18.5", "@walmart/attendance-mini-app": "3.10.0", "@walmart/avp-feature-app": "0.1.5", - "@walmart/avp-shared-library": "0.1.5", + "@walmart/avp-shared-library": "0.1.6", "@walmart/calling-mini-app": "0.1.8", "@walmart/compass-sdk-rn": "5.18.15", "@walmart/config-components": "4.2.16", @@ -8573,9 +8573,9 @@ } }, "node_modules/@walmart/avp-shared-library": { - "version": "0.1.5", - "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.1.5.tgz", - "integrity": "sha512-LO65RM3gAAojD4fK/93x2MkU0dT3/jrUUSvxy7joJuDI8FkV3No5zevtYWydXA6iN01ycH8eY2/ieLKLEeHQ0A==", + "version": "0.1.6", + "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.1.6.tgz", + "integrity": "sha512-HJGJTPGo/doInywwnfEsg95+dz2gZBm4fCQIFQ7KcobSnMSQ1n52kuTDlBWPGnjZCC0Z4KbKN+P8QV4hkNjqsw==", "license": "ISC", "peerDependencies": { "axios": "^1.3.4", @@ -33253,9 +33253,9 @@ "integrity": "sha512-HZiCrJmdth1esjdw9NU6YodlLiqfRFQaTh7wKOhe7oIuDTgdpdcMNz0eQp2DgBTP8txlDjlp9Kl4H8LSfDP2mQ==" }, "@walmart/avp-shared-library": { - "version": "0.1.5", - "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.1.5.tgz", - "integrity": "sha512-LO65RM3gAAojD4fK/93x2MkU0dT3/jrUUSvxy7joJuDI8FkV3No5zevtYWydXA6iN01ycH8eY2/ieLKLEeHQ0A==" + "version": "0.1.6", + "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.1.6.tgz", + "integrity": "sha512-HJGJTPGo/doInywwnfEsg95+dz2gZBm4fCQIFQ7KcobSnMSQ1n52kuTDlBWPGnjZCC0Z4KbKN+P8QV4hkNjqsw==" }, "@walmart/calling-mini-app": { "version": "0.1.8", --- package.json @@ -84,7 +84,7 @@ "@walmart/ask-sam-mini-app": "1.18.5", "@walmart/attendance-mini-app": "3.10.0", "@walmart/avp-feature-app": "0.1.5", - "@walmart/avp-shared-library": "0.1.5", + "@walmart/avp-shared-library": "0.1.6", "@walmart/calling-mini-app": "0.1.8", "@walmart/compass-sdk-rn": "5.18.15", "@walmart/config-components": "4.2.16",
bumped avp version to 0.1.6
bumped avp version to 0.1.6
9285ba22dbbb9c580318b0466f011856989b0f77
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.34.0", + "version": "1.35.0", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.35.0", + "@walmart/roster-mini-app": "2.36.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- src/hooks/index.ts @@ -0,0 +1 @@ +export * from './user'; --- src/navigation/index.tsx @@ -8,28 +8,30 @@ import { TEAM_HUB_SCREEN_NAME, DEFAULT_WIDGET_IDS, } from '@walmart/allspark-foundation-hub'; -import {RosterMiniApp} from '@walmart/roster-mini-app'; +// import {RosterMiniApp} from '@walmart/roster-mini-app'; import {WarningBanner} from '../components/WarningBanner'; -import {useUserCanSeeTeamHub} from '../hooks/user'; +// import {useUserCanSeeTeamHub} from '../hooks/user'; export * from './types'; export const MyTeamMiniApp = () => { - const showManagerTeamHub = useUserCanSeeTeamHub(); + // const showManagerTeamHub = useUserCanSeeTeamHub(); - return showManagerTeamHub ? ( + // return showManagerTeamHub ? ( + return ( <> <WarningBanner /> <TeamHub /> </> - ) : ( - <> - <RosterMiniApp /> - {/* {rosterFeature.buildAllScreens({ - Navigator: RosterStack as any, - })} */} - </> ); + // ) : ( + // <> + // <RosterMiniApp /> + // {/* {rosterFeature.buildAllScreens({ + // Navigator: RosterStack as any, + // })} */} + // </> + // ); }; export const TeamHub = () => { --- src/shared/index.ts @@ -1 +1,2 @@ export {MyTeamMiniApp, TeamHub} from '../navigation'; +export * from '../hooks'; --- yarn.lock @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.35.0" + "@walmart/roster-mini-app": "npm:2.36.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.35.0": - version: 2.35.0 - resolution: "@walmart/roster-mini-app@npm:2.35.0" +"@walmart/roster-mini-app@npm:2.36.0": + version: 2.36.0 + resolution: "@walmart/roster-mini-app@npm:2.36.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/4784a9f17355d6399b4bbf8c2bd5131e5be3db85d4f16cc37f638895eb5093836ba301fb012d3ce02e21cf7ede5d82ea32181528c88eb6219f098402dc012f09 + checksum: 10c0/25f95a4ae30d6f5c0b821742b3dc183c88fd001da866fd5b8e20aceb7fda58630a24618254de2ecf272982e8ac8bd5403983671c8f38c8a8412f23f34cda8cf6 languageName: node linkType: hard
Update the my team mini app version
Update the my team mini app version
5d0d3d7e6357bfb2923d2270dea80226a23af436
--- packages/me-at-walmart-common/src/components/SidekickAssistantFAB/index.tsx @@ -277,6 +277,18 @@ export const useSidekickAssistantFABBottomOffset = (withSafeArea: boolean = fals export const FooterAvoidingSidekickAssistantFAB = ({children, footerHasSafeArea = true}: {children: React.ReactNode, footerHasSafeArea?: boolean}) => { const [footerHeight, setFooterHeight] = useState(0); const {bottom: safeAreaBottom} = useSafeAreaInsets(); + const {update} = useSidekickAssistantFAB(); + + useEffect(() => { + return () => { + update({ + insets: { + bottom: 0 + } + }); + }; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); const onHeightUpdate = (newHeight: number) => { let updateHeight = newHeight + SIDEKICK_ASSISTANT_FAB_INSETS;
fix(fab): update bottom insets to 0 (#5287)
fix(fab): update bottom insets to 0 (#5287) Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
1903716390325cd8b042d5e991315307f84548da
--- packages/allspark-foundation/src/Work/index.ts @@ -1 +1 @@ -export * from './redux' +export * from './redux';
feat: lint fix DWORK-6097
feat: lint fix DWORK-6097
bf72c213ccfaeb4567280156d72c77b7f33cf8a1
--- package.json @@ -177,7 +177,7 @@ "react-native-pdf": "^6.6.2", "react-native-permissions": "3.6.1", "react-native-popup-menu": "^0.16.0", - "react-native-ptt-module": "1.8.3", + "react-native-ptt-module": "1.8.6", "react-native-qrcode-svg": "^6.1.2", "react-native-reanimated": "2.12.0", "react-native-render-html": "^6.3.4",
update ptt version
update ptt version
bd799f8a9544e1176435d090710c0f274e4e9a31
--- __tests__/channels/components/__snapshots__/UnreadBadge.test.tsx.snap @@ -10,6 +10,8 @@ exports[`UnreadBadge should display "99+" when unreadCount exceeds 99 1`] = ` [ { "backgroundColor": "#ffc220", + "borderColor": "#803d10", + "borderWidth": 1, }, { "alignItems": "center", @@ -20,7 +22,9 @@ exports[`UnreadBadge should display "99+" when unreadCount exceeds 99 1`] = ` "paddingHorizontal": 4, }, ], - undefined, + { + "borderWidth": 0, + }, ] } testID="unreadBadgeCount" @@ -65,6 +69,8 @@ exports[`UnreadBadge should render the badge when there are unread messages and [ { "backgroundColor": "#ffc220", + "borderColor": "#803d10", + "borderWidth": 1, }, { "alignItems": "center", @@ -75,7 +81,9 @@ exports[`UnreadBadge should render the badge when there are unread messages and "paddingHorizontal": 4, }, ], - undefined, + { + "borderWidth": 0, + }, ] } testID="unreadBadgeCount" --- __tests__/screens/MessagesScreen/__snapshots__/OneToOneChatTests.tsx.snap @@ -472,11 +472,6 @@ exports[`Messages Screen One To One Chat should load list empty state when no me testID="error-component" > <View - accessibilityLabel="error : Connection lost" - accessibilityRole="alert" - accessible={true} - importantForAccessibility="auto" - onAccessibilityAction={[Function]} style={ [ { @@ -543,6 +538,8 @@ exports[`Messages Screen One To One Chat should load list empty state when no me } > <Text + accessibilityRole="alert" + accessible={true} style={ [ { @@ -1311,11 +1308,6 @@ exports[`Messages Screen One To One Chat should send a text message and push not testID="error-component" > <View - accessibilityLabel="error : Connection lost" - accessibilityRole="alert" - accessible={true} - importantForAccessibility="auto" - onAccessibilityAction={[Function]} style={ [ { @@ -1382,6 +1374,8 @@ exports[`Messages Screen One To One Chat should send a text message and push not } > <Text + accessibilityRole="alert" + accessible={true} style={ [ {
feat(ui): updating snapshots
feat(ui): updating snapshots
f40d473b9268f449b828beb62415eb880b96b93a
--- packages/me-at-walmart-container/__tests__/services/site/fetchSiteInfo.test.ts @@ -0,0 +1,100 @@ +import {fetchSiteInfo} from '../../../src/services/site/fetchSiteInfo'; +import {MeAtWalmartEnvironment} from '@walmart/allspark-foundation/Environment'; +import {AllsparkHttpClient} from '@walmart/allspark-foundation/HTTP'; +import {MeAtWalmartLoggerService} from '../../../src/services/logger'; + +jest.mock('../../../src/services/logger', () => ({ + MeAtWalmartLoggerService: { + getContainerInstance: jest.fn().mockReturnValue({ + debug: jest.fn(), + warn: jest.fn(), + error: jest.fn(), + }), + }, +})); + +describe('fetchSiteInfo', () => { + const mockStoreNumber = '12345'; + const mockEnv = { + http: { + externalUrl: 'https://api.example.com', + bffService: '/api', + consumerId: 'consumer-id', + }, + }; + + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('should fetch site info successfully and log debug', async () => { + const mockData = {key: 'value'}; + (MeAtWalmartEnvironment.getDeferred as jest.Mock).mockResolvedValue( + mockEnv, + ); + (AllsparkHttpClient.get as jest.Mock).mockResolvedValue({ + status: 200, + data: mockData, + }); + + const result = await fetchSiteInfo(mockStoreNumber); + + expect(result).toEqual(mockData); + expect(AllsparkHttpClient.get).toHaveBeenCalledWith( + 'https://developer.api.us.stg.walmart.com/api-proxy/service/store/systems-bff/v1/storeConfigs/v2/store/12345', + { + headers: { + Accept: 'application/json', + 'wm_consumer.id': 'b5fc6fe0-5927-44a6-a693-6e922e830b04', + }, + cache: { + override: false, + ttl: 1000 * 60 * 60 * 24 * 7, + }, + timeout: 5000, + }, + ); + expect( + MeAtWalmartLoggerService.getContainerInstance().debug, + ).toHaveBeenCalledWith('Successfully fetched store configs.', { + storeNumber: mockStoreNumber, + }); + }); + + it('should log a warning if no configs exist', async () => { + (MeAtWalmartEnvironment.getDeferred as jest.Mock).mockResolvedValue( + mockEnv, + ); + (AllsparkHttpClient.get as jest.Mock).mockResolvedValue({ + status: 404, + data: {}, + }); + + const result = await fetchSiteInfo(mockStoreNumber); + + expect(result).toEqual({}); + expect( + MeAtWalmartLoggerService.getContainerInstance().warn, + ).toHaveBeenCalledWith('No configs exist for this store.', { + storeNumber: mockStoreNumber, + }); + }); + + it('should handle errors and log error messages', async () => { + const mockError = new Error('Network Error'); + (MeAtWalmartEnvironment.getDeferred as jest.Mock).mockResolvedValue( + mockEnv, + ); + (AllsparkHttpClient.get as jest.Mock).mockRejectedValue(mockError); + + const result = await fetchSiteInfo(mockStoreNumber); + + expect(result).toEqual({}); + expect( + MeAtWalmartLoggerService.getContainerInstance().error, + ).toHaveBeenCalledWith('Unable to fetch store configs.', { + storeNumber: mockStoreNumber, + message: 'Network Error', + }); + }); +}); --- packages/me-at-walmart-container/__tests__/services/site/querySiteInfo.test.ts @@ -0,0 +1,132 @@ +import {querySiteInfo} from '../../../src/services/site/querySiteInfo'; +import {AllsparkLocalStorage} from '@walmart/allspark-foundation/LocalStorage'; +import {AllsparkGraphQLClient} from '@walmart/allspark-foundation/GraphQL'; +import {MeAtWalmartLoggerService} from '../../../src/services/logger'; +import {BusinessUnitByCountryAndNumberDocument} from '@walmart/me-at-walmart-athena-queries'; + +jest.mock('../../../src/services/logger', () => ({ + MeAtWalmartLoggerService: { + getContainerInstance: jest.fn().mockReturnValue({ + debug: jest.fn(), + error: jest.fn(), + }), + }, +})); + +describe('querySiteInfo', () => { + const mockStoreNumber = '12345'; + const mockCountryCode = 'US'; + const mockParsedData = { + contacts: [], + country: mockCountryCode, + currency: null, + division: null, + divisionDepartments: [], + isStoreOpen: false, + isTempStore: undefined, + location: null, + relocationStoreNumber: undefined, + siteId: mockStoreNumber, + specialHours: [], + storeAlignment: { + businessUnitOrgArea: undefined, + market: undefined, + region: undefined, + segment: undefined, + subDivision: undefined, + subRegion: undefined, + }, + timeZone: null, + }; + const mockResponse = { + data: { + businessUnitByCountryAndNumber: {}, + }, + }; + + const mockArg = { + country: mockCountryCode, + siteId: mockStoreNumber, + division: null, + timeZone: null, + currency: null, + specialHours: [], + isStoreOpen: false, + contacts: [], + location: null, + storeAlignment: {}, + divisionDepartments: [], + }; + + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('should return cached data if forceRefresh is false and cache exists', async () => { + const mockCachedResponse = {cached: 'data'}; + (AllsparkLocalStorage.get as jest.Mock).mockReturnValue(mockCachedResponse); + + const result = await querySiteInfo(mockStoreNumber, mockCountryCode); + + expect(result).toEqual(mockCachedResponse); + expect(AllsparkLocalStorage.get).toHaveBeenCalledWith('storage-appConfig'); + expect(AllsparkGraphQLClient.query).not.toHaveBeenCalled(); + expect(AllsparkLocalStorage.set).not.toHaveBeenCalled(); + }); + + it('should fetch data from API, parse it, cache it, and return it', async () => { + (AllsparkLocalStorage.get as jest.Mock).mockReturnValue(null); + (AllsparkGraphQLClient.query as jest.Mock).mockResolvedValue(mockResponse); + + const result = await querySiteInfo(mockStoreNumber, mockCountryCode); + + expect(result).toEqual(mockParsedData); + expect(AllsparkLocalStorage.get).toHaveBeenCalledWith('storage-appConfig'); + expect(AllsparkGraphQLClient.query).toHaveBeenCalledWith({ + query: BusinessUnitByCountryAndNumberDocument, + variables: { + businessUnitNbr: mockStoreNumber, + countryCode: mockCountryCode, + }, + context: {headers: {}}, + errorPolicy: 'all', + fetchPolicy: 'cache-first', + }); + expect(AllsparkLocalStorage.set).toHaveBeenCalledWith( + 'storage-appConfig', + JSON.stringify(mockArg), + ); + expect( + MeAtWalmartLoggerService.getContainerInstance().debug, + ).toHaveBeenCalledWith('Successfully fetched store configs.', { + storeNumber: mockStoreNumber, + }); + }); + + it('should handle errors, log them, and return null', async () => { + const mockError = new Error('Network Error'); + (AllsparkLocalStorage.get as jest.Mock).mockReturnValue(null); + (AllsparkGraphQLClient.query as jest.Mock).mockRejectedValue(mockError); + + const result = await querySiteInfo(mockStoreNumber, mockCountryCode); + + expect(result).toBeNull(); + expect(AllsparkLocalStorage.get).toHaveBeenCalledWith('storage-appConfig'); + expect(AllsparkGraphQLClient.query).toHaveBeenCalledWith({ + query: BusinessUnitByCountryAndNumberDocument, + variables: { + businessUnitNbr: mockStoreNumber, + countryCode: mockCountryCode, + }, + context: {headers: {}}, + errorPolicy: 'all', + fetchPolicy: 'cache-first', + }); + expect( + MeAtWalmartLoggerService.getContainerInstance().error, + ).toHaveBeenCalledWith('Successfully fetched store configs.', { + message: 'Network Error', + storeNumber: mockStoreNumber, + }); + }); +});
chore: test coverage
chore: test coverage
9da88903ecf1f73c3ac6e48f609491addce1bcc0
--- packages/celebration-mini-app/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.11.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.10.0...@walmart/celebration-mini-app@1.11.0) (2025-10-07) + +### Features + +- **ui:** update CCM feature flags and documentation ([0b27d7b](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/0b27d7bd8ae9defc34cfa1a19401ff72a2be9a29)) +- **ui:** update ccm values for celebration lists ([c69b7f7](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/c69b7f7a2aa1ad159fae992f11740233a23646c2)) +- **ui:** updating details screen with hooks, utils ([c013d4d](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/c013d4dc4cb4eea79d903875a940258e50f3be47)) + # [1.10.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.9.0...@walmart/celebration-mini-app@1.10.0) (2025-10-03) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.10.0", + "version": "1.11.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.11.0
9ceb12db9901ff44fd1714f1473da9e12ffbb3b2
--- package.json @@ -102,7 +102,7 @@ "@walmart/counts-component-miniapp": "0.1.11", "@walmart/emergency-mini-app": "1.27.1", "@walmart/exception-mini-app": "1.7.10", - "@walmart/facilities-management-miniapp": "0.11.1", + "@walmart/facilities-management-miniapp": "0.11.2", "@walmart/feedback-all-spark-miniapp": "0.9.60", "@walmart/financial-wellbeing-feature-app": "1.23.2", "@walmart/functional-components": "6.1.4", --- yarn.lock @@ -6022,9 +6022,9 @@ __metadata: languageName: node linkType: hard -"@walmart/facilities-management-miniapp@npm:0.11.1": - version: 0.11.1 - resolution: "@walmart/facilities-management-miniapp@npm:0.11.1" +"@walmart/facilities-management-miniapp@npm:0.11.2": + version: 0.11.2 + resolution: "@walmart/facilities-management-miniapp@npm:0.11.2" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-camera-roll/camera-roll": 5.6.0 @@ -6107,7 +6107,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: 1.4.1 xdate: ^0.8.2 - checksum: 10c0/1b17af4cd13d44dc403cfd8fe3ab94a97b03aaabd8deb12aa8ba11b1376499e451f12faaec3b829183540090e869b7f0b60eb906d731e451482f731220f2abad + checksum: 10c0/1d10f7682895e7eca9fc412dcc6dac6cc89e6b60b3140f31add90ee77a10cf3d0f0fd3d544c618e107c79114b4586be7d023766d1dbccfafa4ab0cbb31f7dede languageName: node linkType: hard @@ -7725,7 +7725,7 @@ __metadata: "@walmart/counts-component-miniapp": "npm:0.1.11" "@walmart/emergency-mini-app": "npm:1.27.1" "@walmart/exception-mini-app": "npm:1.7.10" - "@walmart/facilities-management-miniapp": "npm:0.11.1" + "@walmart/facilities-management-miniapp": "npm:0.11.2" "@walmart/feedback-all-spark-miniapp": "npm:0.9.60" "@walmart/financial-wellbeing-feature-app": "npm:1.23.2" "@walmart/functional-components": "npm:6.1.4"
Scanner and vision camera fix
Scanner and vision camera fix
2a7e1159c6e5e463a69e4111a6aeab35f0f0780e
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/UpdateTeamsModal/UpdateTeamsModal.tsx @@ -119,7 +119,7 @@ export const UpdateTeamsModal = ({ setSearchedSections(sectionListData); } }, - [allSiteTeamsSections] + [sectionListData] ); //@ts-ignore const handleApplyButton = useCallback(() => {
feat(ui): update on search dep
feat(ui): update on search dep