commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
be155eb29341610ae385338314e19adf571f29ab
--- src/components/RosterWidget/RosterWidget.tsx @@ -68,7 +68,7 @@ export const RosterWidget = (props: TeamHubWidgetProps) => { </View> )} <View style={styles.scheduleInfoContainer}> - <Body weight='bold'>{state.scheduledCount}</Body> + <Body UNSAFE_style={{fontWeight: '700'}}>{state.scheduledCount}</Body> <Body> {t('hubWidget.roster.content.scheduleInfo')}</Body> </View> <View style={styles.rosterStatusContainer}> --- src/components/ShiftSwitcherModal/ShiftSwitcherModal.tsx @@ -88,7 +88,7 @@ export const ShiftSwitcherModal = ({ /> )} <View style={styles.header}> - <Body weight='700' UNSAFE_style={styles.headerText}> + <Body UNSAFE_style={[styles.headerText, {fontWeight: '700'}]}> {t('rosterScreen.shiftChip.modalTitle')} </Body> <IconButton --- src/screens/AllTeamsScreen/StoreAllTeamsScreen/StoreAllTeamsScreen.tsx @@ -81,7 +81,7 @@ export const StoreAllTeamsScreen = () => { const renderRefreshingBlock = useCallback(() => { return ( <View testID='Hub.LastUpdatedText'> - <Body weight='regular' UNSAFE_style={borrowedStyles.lastUpdatedText}> + <Body UNSAFE_style={borrowedStyles.lastUpdatedText}> {t('rosterScreen.allTeamsScreen.lastUpdated')} {state.lastRefresh} </Body> --- src/screens/AllTeamsScreen/SupplyChainAllTeamsScreen/SupplyChainAllTeamsScreen.tsx @@ -69,7 +69,7 @@ export const SupplyChainAllTeamsScreen = () => { const renderRefreshingBlock = useCallback(() => { return ( <View testID="Hub.LastUpdatedText"> - <Body weight="regular" UNSAFE_style={borrowedStyles.lastUpdatedText}> + <Body UNSAFE_style={borrowedStyles.lastUpdatedText}> {t('rosterScreen.allTeamsScreen.lastUpdated')} {state.lastRefresh} </Body> --- src/screens/RosterDetailScreen/RosterDetailScreenDisabled.tsx @@ -37,7 +37,7 @@ export const RosterDetailScreenDisabled = ( <View style={styles.textingDisabledView} testID='RosterDetailScreenDisabledContainer'> - <Body UNSAFE_style={styles.rosterUnavailable} weight='700'> + <Body UNSAFE_style={[styles.rosterUnavailable, {fontWeight: '700'}]}> {title} </Body> <Body UNSAFE_style={styles.rosterUnavailableDescription}> --- src/screens/RosterDetailScreen/StoreRosterDetailScreen/StoreRosterDetailScreen.tsx @@ -354,7 +354,7 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { <> {refreshState.refreshing && ( <View testID="Hub.LastUpdatedText"> - <Body weight="regular" UNSAFE_style={[styles.lastUpdatedText]}> + <Body UNSAFE_style={[styles.lastUpdatedText]}> Last updated, {refreshState.lastRefresh} </Body> </View> --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -477,7 +477,7 @@ export const SupplyChainRosterDetailScreen = ({ <> {refreshState.refreshing && ( <View testID="Hub.LastUpdatedText"> - <Body weight="regular" UNSAFE_style={[styles.lastUpdatedText]}> + <Body UNSAFE_style={[styles.lastUpdatedText]}> Last updated, {refreshState.lastRefresh} </Body> </View>
feat(ui): update build failures
feat(ui): update build failures
6d468f901a8eb31ebf78adfa2ab89d11a2f7c6a6
--- targets/US/ios/Podfile.lock @@ -623,7 +623,7 @@ PODS: - React-Core - SSZipArchive (~> 2.2.2) - compass-sdk-ios (0.4.12.3) - - compass-sdk-rn (5.19.13): + - compass-sdk-rn (5.19.14): - compass-sdk-ios (= 0.4.12.3) - React-Core - DoubleConversion (1.1.6) @@ -2737,7 +2737,7 @@ SPEC CHECKSUMS: CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 CodePush: eaa66fc8dd9ff611304ecc48397ce8831ba79ac9 compass-sdk-ios: e77515e01cf1c39cf342389b717b72c2aadf0c95 - compass-sdk-rn: 491bc4d39a622a68dd4203199a9492703633b958 + compass-sdk-rn: 70d7b5dc2cdf4b8491e71a3a647ead4261b473e0 DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953 EXAV: 523cd6969ca53b3b2762f18fb5450b76f84df44f EXConstants: a5f6276e565d98f9eb4280f81241fc342d641590 @@ -2910,8 +2910,8 @@ SPEC CHECKSUMS: walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 - Yoga: c716aea2ee01df6258550c7505fa61b248145ced + Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee PODFILE CHECKSUM: 17e750d8df86ae62ba07284ce6cb973a761640ea -COCOAPODS: 1.14.3 +COCOAPODS: 1.15.2 --- targets/US/package.json @@ -92,7 +92,7 @@ "@walmart/backroom-mini-app": "1.2.6", "@walmart/calling-mini-app": "0.3.5", "@walmart/checkout-mini-app": "3.22.0", - "@walmart/compass-sdk-rn": "5.19.13", + "@walmart/compass-sdk-rn": "5.19.14", "@walmart/config-components": "4.4.2", "@walmart/copilot-mini-app": "3.92.14", "@walmart/core-services": "~6.4.1", @@ -102,7 +102,7 @@ "@walmart/counts-component-miniapp": "0.1.11", "@walmart/emergency-mini-app": "1.27.7", "@walmart/exception-mini-app": "1.8.4", - "@walmart/facilities-management-miniapp": "0.11.15", + "@walmart/facilities-management-miniapp": "0.12.0", "@walmart/feedback-all-spark-miniapp": "0.9.66", "@walmart/financial-wellbeing-feature-app": "1.23.4", "@walmart/functional-components": "~6.3.20", --- yarn.lock @@ -5985,13 +5985,13 @@ __metadata: languageName: node linkType: hard -"@walmart/compass-sdk-rn@npm:5.19.13": - version: 5.19.13 - resolution: "@walmart/compass-sdk-rn@npm:5.19.13" +"@walmart/compass-sdk-rn@npm:5.19.14": + version: 5.19.14 + resolution: "@walmart/compass-sdk-rn@npm:5.19.14" peerDependencies: react: "*" react-native: "*" - checksum: 10c0/0c498344aba113e5c566441d6483867d08c2cb900f036f99a419896e8cc16fff610a75a56c7e5cb33cd911505730c5e0968d4cf069ebfb291b6c2ab9186aa26b + checksum: 10c0/2352cc579154937efae320e53dee45d7b690e7ed0ca30a4f56e3825a51a08a6d220eadddff55bade2967dfb452699a139b2215adb2b1f246111dc3105b6bf2b2 languageName: node linkType: hard @@ -6147,12 +6147,12 @@ __metadata: languageName: node linkType: hard -"@walmart/facilities-management-miniapp@npm:0.11.16": - version: 0.11.16 - resolution: "@walmart/facilities-management-miniapp@npm:0.11.16" +"@walmart/facilities-management-miniapp@npm:0.12.0": + version: 0.12.0 + resolution: "@walmart/facilities-management-miniapp@npm:0.12.0" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/56181b072f50bca56d56614b8a5f78977056715318453965c3cf0ee6a9b2a83dd3b57c0a90b3aa997b9d334ce6effbcad5f92c466c0b1a8bb39cc9d2ae18b47b + checksum: 10c0/a11ad06527a4714ac4f06a2c45e0d2e6bfd8dfa03c6f449a595eaa0d705ccf1572508d0ad33fffdb870c63222ac52c843e12308394ea3eb619364322d06726fe languageName: node linkType: hard @@ -6818,7 +6818,7 @@ __metadata: "@walmart/backroom-mini-app": "npm:1.2.6" "@walmart/calling-mini-app": "npm:0.3.5" "@walmart/checkout-mini-app": "npm:3.22.0" - "@walmart/compass-sdk-rn": "npm:5.19.13" + "@walmart/compass-sdk-rn": "npm:5.19.14" "@walmart/config-components": "npm:4.4.2" "@walmart/copilot-mini-app": "npm:3.92.14" "@walmart/core-services": "npm:~6.4.1" @@ -6828,7 +6828,7 @@ __metadata: "@walmart/counts-component-miniapp": "npm:0.1.11" "@walmart/emergency-mini-app": "npm:1.27.7" "@walmart/exception-mini-app": "npm:1.8.4" - "@walmart/facilities-management-miniapp": "npm:0.11.15" + "@walmart/facilities-management-miniapp": "npm:0.12.0" "@walmart/feedback-all-spark-miniapp": "npm:0.9.66" "@walmart/financial-wellbeing-feature-app": "npm:1.23.4" "@walmart/functional-components": "npm:~6.3.20"
version bump
version bump
5a0e9587c66457f9568c13b9c04f552caa98bb01
--- package-lock.json @@ -25609,9 +25609,9 @@ "integrity": "sha512-raDv8a9MZR5y2hpWo5YtAcfad6x+MZFWvqNQ1raaIntPJ1E3LHdA3Qf48Q4cfkjRIpjqLxc3q+Y4d1WTmpYjnQ==" }, "@walmart/taskit-mini-app": { - "version": "0.49.11", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.11.tgz", - "integrity": "sha512-D0Oi1XUgIvxIVjQL2wl0nyeTJr0Sqcvtezbag3ZG0tMlwxGJMXNB2PvkQ5n8JBuAV1YRlggsGtIp+yLz+slgCQ==" + "version": "0.49.12", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.12.tgz", + "integrity": "sha512-Qv9d7niybQ9sVyN87KI3gpbSa3I+QVLwf+TjW+l+mgG1LHRUou8uCygL5bfKDOB6acg5FqFKQ+x/ccEv74Fhtg==" }, "@walmart/tcnumber": { "version": "2.3.3", --- package.json @@ -122,7 +122,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", - "@walmart/taskit-mini-app": "0.49.11", + "@walmart/taskit-mini-app": "0.49.12", "@walmart/time-clock-mini-app": "2.25.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.76.0",
feature/taskit-mini-app-0.49.12
feature/taskit-mini-app-0.49.12
4ecb1f7377e49d607860111198cb6b33cef34a46
--- targets/US/package.json @@ -146,7 +146,7 @@ "@walmart/shelfavailability-mini-app": "1.5.33", "@walmart/sidekick-mini-app": "4.67.15", "@walmart/store-feature-orders": "1.26.12", - "@walmart/taskit-mini-app": "4.13.0", + "@walmart/taskit-mini-app": "4.16.0", "@walmart/time-clock-mini-app": "2.400.0", "@walmart/topstock-mini-app": "1.15.20", "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch", --- yarn.lock @@ -5050,13 +5050,6 @@ __metadata: languageName: node linkType: hard -"@types/promise-queue@npm:^2": - version: 2.2.3 - resolution: "@types/promise-queue@npm:2.2.3" - checksum: 10c0/cca190318f93375c468eb61832a8c94c843b803c3e36777adb3bb2155f1235030235832615a554b3015a34ede62a3556e50a00dad6dea87da2004ce23439c493 - languageName: node - linkType: hard - "@types/prop-types@npm:*": version: 15.7.12 resolution: "@types/prop-types@npm:15.7.12" @@ -6239,9 +6232,9 @@ __metadata: languageName: node linkType: hard -"@walmart/gtp-shared-components@npm:2.2.4-rc.0": - version: 2.2.4-rc.0 - resolution: "@walmart/gtp-shared-components@npm:2.2.4-rc.0" +"@walmart/gtp-shared-components@npm:2.2.3-rc.1": + version: 2.2.3-rc.1 + resolution: "@walmart/gtp-shared-components@npm:2.2.3-rc.1" dependencies: "@livingdesign/tokens": "npm:0.74.0" "@walmart/gtp-shared-icons": "npm:1.0.10" @@ -6259,7 +6252,7 @@ __metadata: bin: installFonts: scripts/installFonts runCodemods: scripts/runCodemods - checksum: 10c0/4c26056f36272359237de7745de550d6d02f29c14b270866034c2a8a7aa4db61dc6a430d3ba8396985cc15544289fff6fe8686afe6dbf0c520b4c8088e1cfed6 + checksum: 10c0/28b2522a151cb145b37143f4bfc91520d162f6e62fcc5e52abfe2aa813230147aea54129488b8873609361d0f7a675fb1efd7c9bd4f1edfff0108db51924b117 languageName: node linkType: hard @@ -6879,7 +6872,7 @@ __metadata: "@walmart/shelfavailability-mini-app": "npm:1.5.33" "@walmart/sidekick-mini-app": "npm:4.67.15" "@walmart/store-feature-orders": "npm:1.26.12" - "@walmart/taskit-mini-app": "npm:4.13.0" + "@walmart/taskit-mini-app": "npm:4.16.0" "@walmart/time-clock-mini-app": "npm:2.400.0" "@walmart/topstock-mini-app": "npm:1.15.20" "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch" @@ -7783,12 +7776,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:4.13.0": - version: 4.13.0 - resolution: "@walmart/taskit-mini-app@npm:4.13.0" +"@walmart/taskit-mini-app@npm:4.16.0": + version: 4.16.0 + resolution: "@walmart/taskit-mini-app@npm:4.16.0" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/19ff6ed1a2669b2b56ffcf121f33b2732ae0e7135ce570744fdc270039404f62cfc6d8020f95b3fc35fe8d6597593b71ce16757af4eb1c0915fef7a5b8a17321 + checksum: 10c0/6fef5d7f0d8e8b19948b9251fa3dfa3092e3fe323d31ab6b66c86f529763eae7a6ec222fdb50aef7ae1b58d5b913c20c0c0d46eab6c7d72dd97c1f319b18be7c languageName: node linkType: hard
chore: bump taskit version
chore: bump taskit version
3ac1a023bc1dd1eaf616ffd981cb3f4a90a559dc
--- package-lock.json @@ -132,7 +132,7 @@ "react-native-popup-menu": "^0.16.0", "react-native-ptt-module": "1.8.2", "react-native-qrcode-svg": "^6.1.2", - "react-native-reanimated": "2.10.0", + "react-native-reanimated": "2.12.0", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "4.3.1", "react-native-screens": "~3.15.0", @@ -20706,9 +20706,9 @@ } }, "node_modules/react-native-reanimated": { - "version": "2.10.0", - "resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-2.10.0.tgz", - "integrity": "sha512-jKm3xz5nX7ABtHzzuuLmawP0pFWP77lXNdIC6AWOceBs23OHUaJ29p4prxr/7Sb588GwTbkPsYkDqVFaE3ezNQ==", + "version": "2.12.0", + "resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-2.12.0.tgz", + "integrity": "sha512-nrlPyw+Hx9u4iJhZk9PoTvDo/QmVAd+bo7OK9Tv3hveNEF9++5oig/g3Uv9V93shy9avTYGsUprUvAEt/xdzeQ==", "license": "MIT", "dependencies": { "@babel/plugin-transform-object-assign": "^7.16.7", @@ -39659,9 +39659,9 @@ } }, "react-native-reanimated": { - "version": "2.10.0", - "resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-2.10.0.tgz", - "integrity": "sha512-jKm3xz5nX7ABtHzzuuLmawP0pFWP77lXNdIC6AWOceBs23OHUaJ29p4prxr/7Sb588GwTbkPsYkDqVFaE3ezNQ==", + "version": "2.12.0", + "resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-2.12.0.tgz", + "integrity": "sha512-nrlPyw+Hx9u4iJhZk9PoTvDo/QmVAd+bo7OK9Tv3hveNEF9++5oig/g3Uv9V93shy9avTYGsUprUvAEt/xdzeQ==", "requires": { "@babel/plugin-transform-object-assign": "^7.16.7", "@babel/preset-typescript": "^7.16.7", --- package.json @@ -174,7 +174,7 @@ "react-native-popup-menu": "^0.16.0", "react-native-ptt-module": "1.8.2", "react-native-qrcode-svg": "^6.1.2", - "react-native-reanimated": "2.10.0", + "react-native-reanimated": "2.12.0", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "4.3.1", "react-native-screens": "~3.15.0",
chore: bumping reanimated version
chore: bumping reanimated version
ae9719a64646aef94a0eb80ef65220cb8a5ab622
--- package-lock.json @@ -162,7 +162,7 @@ "react-native-linear-gradient": "2.6.2", "react-native-location-enabler": "^4.1.1", "react-native-loudness": "^2.0.0", - "react-native-maps": "~1.10.3", + "react-native-maps": "~1.3.2", "react-native-mask-input": "^1.2.3", "react-native-modal": "^13.0.1", "react-native-new-snap-carousel": "^3.9.3", @@ -32719,15 +32719,12 @@ "license": "Apache-2.0" }, "node_modules/react-native-maps": { - "version": "1.10.4", - "resolved": "https://npme.walmart.com/react-native-maps/-/react-native-maps-1.10.4.tgz", - "integrity": "sha512-m4BbaTkwCPI0T8X7vP2oKX4K23/BmSKFICOMD7HOs+zcpbu+D69mIhCAEuQ0XRrAckf1EarXWsJ5BSpH/lMO2Q==", + "version": "1.3.2", + "resolved": "https://npme.walmart.com/react-native-maps/-/react-native-maps-1.3.2.tgz", + "integrity": "sha512-NB7HGRZOgxxXCWzrhIVucx/bsrEWANvk3DLci1ov4P9MQnEVQYQCCkTxsnaEvO191GeBOCRDyYn6jckqbfMtmg==", "license": "MIT", "dependencies": { - "@types/geojson": "^7946.0.13" - }, - "engines": { - "node": ">=18" + "@types/geojson": "^7946.0.8" }, "peerDependencies": { "react": ">= 17.0.1", --- package.json @@ -203,7 +203,7 @@ "react-native-linear-gradient": "2.6.2", "react-native-location-enabler": "^4.1.1", "react-native-loudness": "^2.0.0", - "react-native-maps": "~1.10.3", + "react-native-maps": "~1.3.2", "react-native-mask-input": "^1.2.3", "react-native-modal": "^13.0.1", "react-native-new-snap-carousel": "^3.9.3", @@ -460,7 +460,7 @@ "react-native-linear-gradient": "2.6.2", "react-native-location-enabler": "^4.1.1", "react-native-loudness": "^2.0.0", - "react-native-maps": "~1.10.3", + "react-native-maps": "~1.3.2", "react-native-modal": "^13.0.1", "react-native-new-snap-carousel": "^3.9.3", "react-native-pager-view": "^6.0.1",
Downgrading react-native-maps
Downgrading react-native-maps
38e6e8c7ea93de2b0b50635499b76c884732a1fd
--- core/__tests__/__mocks__/@walmart/associate-listening-mini-app.js @@ -1,4 +1,4 @@ module.exports = { - AesSurveyCard: 'AesSurveyCard', + ConfigurableSurveyCard: 'ConfigurableSurveyCard', AvailableSurveysNav: 'AvailableSurveysNav', }; --- core/src/features/listening.ts @@ -11,11 +11,14 @@ export const ListeningFeature = new AllsparkFeatureModule('listening', { feature: { onConnect: () => { const { - AesSurveyCard, + ConfigurableSurveyCard, } = require('@walmart/associate-listening-mini-app'); // Add aes widget to home dashboard container - HomeDashboardContainer.add('AesSurveyCard', AesSurveyCard); + HomeDashboardContainer.add( + 'ConfigurableSurveyCard', + ConfigurableSurveyCard, + ); }, }, }, --- core/src/home/containers/HomeScreen/defaultLayout.ts @@ -41,7 +41,7 @@ export default [ ], [ { - component: 'AesSurveyCard', + component: 'ConfigurableSurveyCard', }, ], [ --- targets/US/package.json @@ -85,7 +85,7 @@ "@walmart/amp-mini-app": "1.1.89", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.24.7", - "@walmart/associate-listening-mini-app": "1.2.8", + "@walmart/associate-listening-mini-app": "1.2.9-0", "@walmart/attendance-mini-app": "3.44.0", "@walmart/avp-feature-app": "0.10.7", "@walmart/avp-shared-library": "0.10.1", --- yarn.lock @@ -5946,11 +5946,11 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-listening-mini-app@npm:1.2.8": - version: 1.2.8 - resolution: "@walmart/associate-listening-mini-app@npm:1.2.8" +"@walmart/associate-listening-mini-app@npm:1.2.9-0": + version: 1.2.9-0 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.9-0" dependencies: - "@walmart/associate-listening-utils": "npm:5.0.77" + "@walmart/associate-listening-utils": "npm:5.0.79" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -5959,17 +5959,17 @@ __metadata: "@walmart/gtp-shared-components": 2.0.5 react: ^18.2.0 react-native: 0.70.9 - checksum: 10c0/25703d96b51aafbe807e6c203b73080267fde00b188d614b1d442649ebb4359110e9bc312d2d9a2e87f427ceb0affb7385e99d8299fc5078d09cc3aebb89898c + checksum: 10c0/9be456f6455f3e30269d52b71fd37b1fffff43ecc0c4ea1f331402c6b1a25c65544a2dbe02f7e0cfdb10bb29b43a2cff49f66194df87bb78c865347ff65fb9fa languageName: node linkType: hard -"@walmart/associate-listening-utils@npm:5.0.77": - version: 5.0.77 - resolution: "@walmart/associate-listening-utils@npm:5.0.77" +"@walmart/associate-listening-utils@npm:5.0.79": + version: 5.0.79 + resolution: "@walmart/associate-listening-utils@npm:5.0.79" dependencies: "@types/semver": "npm:^7.3.4" semver: "npm:^7.3.4" - checksum: 10c0/76cdfe17b1540b809132ab9f0318ff44af5ff8cc411dcebe6f1fbe220a93ea82ba3fbd9ae5adb3758b975a3ff7d48bfd45e52ed64b8590c71025261b16459752 + checksum: 10c0/0623bc67e56f1e6efc7468cd6ef208503715e9fd49be0085af3eb4b2e11845eb10bc0b1b55e464d19e637ac2802226ff59ecadf9c3de634f99a3177494a7aa79 languageName: node linkType: hard @@ -7001,7 +7001,7 @@ __metadata: "@walmart/amp-mini-app": "npm:1.1.89" "@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.8" + "@walmart/associate-listening-mini-app": "npm:1.2.9-0" "@walmart/attendance-mini-app": "npm:3.44.0" "@walmart/avp-feature-app": "npm:0.10.7" "@walmart/avp-shared-library": "npm:0.10.1"
feat: 🎸 renamed aessurveycard to configurablesurveycard
feat: 🎸 renamed aessurveycard to configurablesurveycard
f5ab13c8a68c568897cce2316902419e7b69e37c
--- .looper-pr.yml @@ -13,7 +13,6 @@ flows: - (name Yarn Install) yarn install - (name Test Coverage) yarn run coverage - envs: global: variables:
feat(ui): update version SMDV-5955
feat(ui): update version SMDV-5955
978d43b663d1397694fe6918d99b93bc5234313a
--- __tests__/harness/athenaQueries/getTeamById.ts @@ -0,0 +1,23 @@ +import {GetTeamByIdDocument} from '../../../src/queries/getTeamById'; + +export const mockGetTeamByIdQuery = { + request: { + query: GetTeamByIdDocument, + variables: { + countryCode: 'US', + storeNbr: '100', + teamId: '1000333', + }, + }, + result: { + data: { + getTeamById: { + __typename: 'Team', + members: ['999991712', '999996723', '999995423', '999992253'], + site: '100', + teamId: '1000333', + teamName: 'Stocking ON', + }, + }, + }, +}; --- __tests__/harness/index.tsx @@ -26,6 +26,7 @@ import { } from '@apollo/client/testing'; import {mockGetDailyRosterQuery} from './athenaQueries/getDailyRoster'; import {mockGetTeamsByStoreQuery} from './athenaQueries/getTeamsByStore'; +import {mockGetTeamByIdQuery} from "./athenaQueries/getTeamById"; const rootReducer = reducerManager.getRootReducer(); @@ -65,6 +66,7 @@ const presenceContext = createMockPresenceContext(100); const mockAthenaQueries: MockedResponse[] = [ mockGetDailyRosterQuery, mockGetTeamsByStoreQuery, + mockGetTeamByIdQuery, ]; //TODO: Wrap harness with AllsparkCoreServices to make it more robust --- __tests__/screens/RosterScreen/RosterScreenTest.tsx @@ -15,9 +15,7 @@ describe('RosterScreen', () => { it('should render the loading state', () => { //TODO: Create assertions for the loading state const rosterScreenLoading = renderWithProviders(<RosterScreen navigation={mockNavigation} />); - // screen.getByText('Show teams'); - // screen.getByText('Stocking ON'); - // screen.getByRole('button', {name: 'Message'}); + }); //TODO: Make this a describe block instead of one test @@ -26,9 +24,9 @@ describe('RosterScreen', () => { <RosterScreen navigation={mockNavigation} />, ); await waitFor(() => new Promise((res) => setTimeout(res, 0))); - screen.getByText('Show teams'); - screen.getByText("Today's Total Store roster"); - expect(rosterScreen.toJSON()).toMatchSnapshot(); + rosterScreen.getByText('Show teams'); + rosterScreen.getByText("Today's Total Store roster"); + rosterScreen.getByText('Stocking ON'); }); it('Sort order should be in order of clockedin team leads, clockedout teamleads, clockedinusers then the rest sorted alphabetically by name', () => {}); it('should render the weekly schedule header', () => {}); --- __tests__/harness/athenaQueries/getTeamById.ts @@ -0,0 +1,23 @@ +import {GetTeamByIdDocument} from '../../../src/queries/getTeamById'; + +export const mockGetTeamByIdQuery = { + request: { + query: GetTeamByIdDocument, + variables: { + countryCode: 'US', + storeNbr: '100', + teamId: '1000333', + }, + }, + result: { + data: { + getTeamById: { + __typename: 'Team', + members: ['999991712', '999996723', '999995423', '999992253'], + site: '100', + teamId: '1000333', + teamName: 'Stocking ON', + }, + }, + }, +}; --- __tests__/harness/index.tsx @@ -26,6 +26,7 @@ import { } from '@apollo/client/testing'; import {mockGetDailyRosterQuery} from './athenaQueries/getDailyRoster'; import {mockGetTeamsByStoreQuery} from './athenaQueries/getTeamsByStore'; +import {mockGetTeamByIdQuery} from "./athenaQueries/getTeamById"; const rootReducer = reducerManager.getRootReducer(); @@ -65,6 +66,7 @@ const presenceContext = createMockPresenceContext(100); const mockAthenaQueries: MockedResponse[] = [ mockGetDailyRosterQuery, mockGetTeamsByStoreQuery, + mockGetTeamByIdQuery, ]; //TODO: Wrap harness with AllsparkCoreServices to make it more robust --- __tests__/screens/RosterScreen/RosterScreenTest.tsx @@ -15,9 +15,7 @@ describe('RosterScreen', () => { it('should render the loading state', () => { //TODO: Create assertions for the loading state const rosterScreenLoading = renderWithProviders(<RosterScreen navigation={mockNavigation} />); - // screen.getByText('Show teams'); - // screen.getByText('Stocking ON'); - // screen.getByRole('button', {name: 'Message'}); + }); //TODO: Make this a describe block instead of one test @@ -26,9 +24,9 @@ describe('RosterScreen', () => { <RosterScreen navigation={mockNavigation} />, ); await waitFor(() => new Promise((res) => setTimeout(res, 0))); - screen.getByText('Show teams'); - screen.getByText("Today's Total Store roster"); - expect(rosterScreen.toJSON()).toMatchSnapshot(); + rosterScreen.getByText('Show teams'); + rosterScreen.getByText("Today's Total Store roster"); + rosterScreen.getByText('Stocking ON'); }); it('Sort order should be in order of clockedin team leads, clockedout teamleads, clockedinusers then the rest sorted alphabetically by name', () => {}); it('should render the weekly schedule header', () => {});
adding getTeamById mock to pass the getByText assertion
adding getTeamById mock to pass the getByText assertion
dad67a2efe5d29d1038ef318d6538bc63474d63a
--- packages/mywalmart-firebase-config/__tests__/authenticate.test.ts @@ -77,7 +77,8 @@ describe('authenticate', () => { expect(FirebaseServicesLogger.info).toHaveBeenCalledWith('Fetched custom firebase token'); expect(FirebaseServicesLogger.info).toHaveBeenCalledWith('Firebase sign-in successful'); expect(mockPost).toHaveBeenCalledWith( - 'https://dev.walmart.com/api-proxy/service/directedvoice/ptt/v1/firebase/createcustomtoken' + 'https://dev.walmart.com/api-proxy/service/directedvoice/ptt/v1/firebase/createcustomtoken', + {} ); expect(mockSignInWithCustomToken).toHaveBeenCalledWith( expect.objectContaining({signOut: mockSignOut}), --- packages/mywalmart-firebase-config/src/auth/authenticate.ts @@ -14,7 +14,9 @@ import {FirebaseAuthHttpClient, getFirebaseAuthBaseUrl} from './http'; const getCustomToken = async () => { // Implementation to retrieve a custom token for Firebase authentication const baseUrl = getFirebaseAuthBaseUrl(); - const response = await FirebaseAuthHttpClient.post(`${baseUrl}/firebase/createcustomtoken`); + // Adding empty body as the endpoint does not accept empty POST requests. Decision was made to keep it + // as a POST instead of GET since it invovles creation of sensitive tokens and we do not want caching anywhere along the route. + const response = await FirebaseAuthHttpClient.post(`${baseUrl}/firebase/createcustomtoken`, {}); if (!response.data?.token) { throw new Error('Missing token in Firebase auth response'); }
fix(auth): firebase endpoint request fixed (#5258)
fix(auth): firebase endpoint request fixed (#5258) Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com> Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>
8353b3c95e557d122c486b22080d0814fd74b6cb
--- packages/allspark-foundation/src/Components/Hub/Header/index.tsx @@ -5,13 +5,8 @@ import { HeaderStyles } from './styles'; export * from './types'; -export const Header = ({ - title, - subText, - backgroundColor, - textColor, -}: HeaderTypes) => { - const styles = HeaderStyles(backgroundColor, textColor); +export const Header = ({ title, subText, textColor }: HeaderTypes) => { + const styles = HeaderStyles(textColor); return ( <View style={styles.container} testID='container'> <Text style={styles.title} accessibilityLabel={title}>
Updating header component
Updating header component
0a4a5592ef5f0d1510223a8799687ba59b29eea3
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.0-alpha.9", + "version": "2.12.0-alpha.10", "main": "dist/index.js", "files": [ "dist"
feat(ui): add roster widget
feat(ui): add roster widget
25da53fc54ac01d6f91179cbcd0ec64a2c8b0301
--- src/auth/ErrorScreen.tsx @@ -47,8 +47,9 @@ export const ErrorScreen: FC<any> = (props) => { const errSelectValid = !formDirty || !!errorCategory; const otherOptionValid = !formDirty || - (errorCategory === translate('ssoError.issues.other') && - !!selectedQ2Option); + (errorCategory === translate('ssoError.issues.other') + ? !!selectedQ2Option + : true); const missingFields = !userIdValid || !siteIdValid || !errSelectValid || !otherOptionValid; @@ -61,7 +62,7 @@ export const ErrorScreen: FC<any> = (props) => { const onSave = () => { setFormDirty(true); - if (userId && !missingFields) { + if (!missingFields) { const userIdValue = userId.split('.')[0]; navigation.goBack(); WmTelemetry.logEvent(SSO_APP, 'feedback_submitted', {});
fix non-other selected option
fix non-other selected option
d5b2b6d046ac73e28372815f667580c2b7af08ce
--- packages/allspark-foundation-hub/__tests__/HubFeature/Hub/Container/__snapshots__/HubDashboard.test.tsx.snap @@ -54,48 +54,7 @@ exports[`HubDashboard renders FloatingButton Component 1`] = ` ] `; -exports[`HubDashboard renders HubDashboard Component woth passed in widgets 1`] = ` -<RCTScrollView - contentContainerStyle={ - { - "paddingBottom": 48, - } - } - onScroll={[Function]} - refreshControl={ - <RefreshControlMock - colors={ - [ - "transparent", - ] - } - onRefresh={[Function]} - refreshing={false} - style={ - { - "backgroundColor": "transparent", - } - } - /> - } - scrollEventThrottle={16} - showsVerticalScrollIndicator={false} - stickyHeaderIndices={ - [ - 1, - ] - } - style={ - { - "paddingHorizontal": 0, - } - } - testID="HubDashboard.View" -> - <RCTRefreshControl /> - <View /> -</RCTScrollView> -`; +exports[`HubDashboard renders HubDashboard Component woth passed in widgets 1`] = `null`; exports[`HubDashboard renders TeamOnboardingScreen if showOnboarding is true 1`] = ` [ --- packages/allspark-foundation-hub/__tests__/HubFeature/__snapshots__/TeamListItem.test.tsx.snap @@ -74,7 +74,7 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`] } /> <View - accessibilityLabel="Management" + accessibilityLabel="Management 93 Clocked in" accessibilityRole="header" accessible={true} style={ @@ -88,7 +88,7 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`] UNSAFE_style={ { "fontSize": 16, - "fontWeight": "400", + "fontWeight": "700", "lineHeight": 24, } } @@ -96,6 +96,19 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`] > Management </Body> + <Body + UNSAFE_style={ + { + "color": "#2e2f32", + "fontFamily": "Bogle-Regular", + "fontSize": 14, + "fontWeight": "400", + "lineHeight": 20, + } + } + > + 93 Clocked in + </Body> </View> </View> <View @@ -199,7 +212,7 @@ exports[`TeamListItem renders list item for team selection correctly 1`] = ` } /> <View - accessibilityLabel="Management" + accessibilityLabel="Management " accessibilityRole="header" accessible={true} style={
Updating snapshot
Updating snapshot
729bd1715b405284c7c7c1f5052069dd7b2ae702
--- __tests__/settings/sideButton/__snapshots__/SideButtonPermissionBottomSheetTest.tsx.snap @@ -69,7 +69,7 @@ exports[`Side button permission bottom sheet tests matches snapshot 1`] = ` "bottom": 0, "height": 1334, "left": 0, - "opacity": 0.00011425836668732536, + "opacity": 0, "position": "absolute", "right": 0, "top": 0,
revert snapshot
revert snapshot
693039e785366978cb08c1f3fe818d8407efc356
--- package.json @@ -1,5 +1,5 @@ { - "name": "@walmart/wmconnect-minri-app", + "name": "@walmart/wmconnect-mini-app", "version": "2.36.2", "main": "main.js", "files": [
fix(ui): update package
fix(ui): update package
fdc24e23d0d51b9baf91c5660854b6137d214948
--- packages/me-at-walmart-container/__mocks__/@walmart/allspark-foundation/Logger.js @@ -5,6 +5,7 @@ const mockLogger = { debug: jest.fn(), warning: jest.fn(), setLogLevel: jest.fn(), + warn: jest.fn(), }; module.exports = { @@ -17,5 +18,6 @@ module.exports = { LoggerProvider: 'LoggerProvider', LoggerServiceCreator: jest.fn(() => ({ createFeatureInstance: jest.fn(() => mockLogger), + getContainerInstance: jest.fn(() => mockLogger), })), }; --- packages/me-at-walmart-container/__tests__/services/site/fetchSiteInfo.test.ts @@ -3,16 +3,6 @@ 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 = { --- packages/me-at-walmart-container/__tests__/services/site/querySiteInfo.test.ts @@ -4,15 +4,6 @@ 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';
chore: test coverage
chore: test coverage
9475840d2bbc9d121df54c4d90660c32df64f74c
--- package-lock.json @@ -82,7 +82,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.23.0", + "@walmart/time-clock-mini-app": "2.24.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26", @@ -6846,9 +6846,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.23.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.23.0.tgz", - "integrity": "sha512-I1zxHNvaMN44ILg1vKr/K4fR8TG2tnVyBGkWli4sbMIuU7fvBomswQxx2HohcC45ChZ7409sxb9NpgZqvHB72Q==", + "version": "2.24.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.24.0.tgz", + "integrity": "sha512-GBMz7ZDghAdZUZKyQADiZ0XitoOYEohAahFOPyr7o3Tv7dlcZrm5NHcizCgJjXZs5UrYM1ySXodpmTLZoU33UA==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -30245,9 +30245,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.23.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.23.0.tgz", - "integrity": "sha512-I1zxHNvaMN44ILg1vKr/K4fR8TG2tnVyBGkWli4sbMIuU7fvBomswQxx2HohcC45ChZ7409sxb9NpgZqvHB72Q==", + "version": "2.24.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.24.0.tgz", + "integrity": "sha512-GBMz7ZDghAdZUZKyQADiZ0XitoOYEohAahFOPyr7o3Tv7dlcZrm5NHcizCgJjXZs5UrYM1ySXodpmTLZoU33UA==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -124,7 +124,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.2", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.23.0", + "@walmart/time-clock-mini-app": "2.24.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26",
Update time clock to 2.24.0
Update time clock to 2.24.0
e455f178223bceec00b1dbebc850a913f2c48dbc
--- src/managerExperience/components/FilterChip/FilterChip.tsx @@ -7,7 +7,7 @@ import {View} from 'react-native'; export const FilterChip = (props: FilterChipProps) => { const {isApplied, label} = props; - if (props.label === '') return false; + if (props.label === '') return null; return ( <View testID='filter-chip'> <Chip
Update roster mini app
Update roster mini app
56240dc6a65bd2c67899c220c029bb4362e09e2f
--- ios/Podfile.lock @@ -401,7 +401,7 @@ PODS: - React-Core - react-native-pdf (6.2.2): - React-Core - - react-native-ptt-module (1.5.39): + - react-native-ptt-module (1.5.40): - PTT (= 0.7.8-rc.7) - React - react-native-safe-area-context (3.3.2): @@ -956,7 +956,7 @@ SPEC CHECKSUMS: react-native-netinfo: 77d133105df525d4a11f10fcaa8d0b8883ea6429 react-native-pager-view: 311c10a4eead1be627cad59062aa059d8108b943 react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f - react-native-ptt-module: 845028f95c1b06084848388b4746c989f20f13ea + react-native-ptt-module: 977f0f02f0b11b9c4b0a3c3d054d028f55f71272 react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 --- package-lock.json @@ -4331,9 +4331,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.70", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.70.tgz", - "integrity": "sha512-74AO87xA9vhG+V9gqD85WQnBhIlbWWNMl1JUszHuWqNo+bbEF9aomcToCvR+TFfeof8kByXpijpfFHUzoOIacQ==" + "version": "0.5.71", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.71.tgz", + "integrity": "sha512-YSycQhmBTCGy243rwHVJCyEq8Xqp8GEG+C22y7EECfmin07Jq7xUXGlR8qD4tav8cRLAhhF1mh+/L4HnLSo1Uw==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -88,7 +88,7 @@ "@walmart/manager-approvals-miniapp": "0.0.58", "@walmart/metrics-mini-app": "0.4.14", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.5.70", + "@walmart/push-to-talk-mini-app": "0.5.71", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0",
bumping ptt mini app version
bumping ptt mini app version
4804e89d2d870fe1e4980fde9692a57dd0c5a116
--- src/notification.ts @@ -10,6 +10,10 @@ import { import {createChannelPath} from './channels'; import {navigate} from '@walmart/react-native-shared-navigation'; +export const currentChannelIDRef: {current: string | null} = { + current: null, +}; + const goToMessageScreenForChannel = ( storeNumber: string, channelId: string, @@ -43,9 +47,25 @@ export const backgroundPushNotificationHandler = (event?: SumoPushEvent) => { export const foregroundPushNotificationHandler = (event?: SumoPushEvent) => { if (event?.customData?.category === 'pushtotalkv2') { const {storeNumber, channelId} = event?.customData; - // TODO - Handle when the user is already on the message screen - const handleOnTap = () => - goToMessageScreenForChannel(storeNumber, channelId); + + if (currentChannelIDRef.current?.includes(channelId)) { + return true; + } + + // TODO - if you navigate through the notification the back route is messed up now. + const handleOnTap = () => { + const channelPath = createChannelPath(storeNumber, channelId); + navigate(ROOT_CONTAINER_SCREEN_NAME, { + // @ts-ignore + screen: APP_CONTAINER_SCREEN_NAME, + params: { + screen: MESSAGES_SCREEN_NAME, + params: { + channelPath, + }, + }, + }); + }; navigate('Core.Toast', { //@ts-ignore duration: 4000, --- src/screens/MessagesScreen.tsx @@ -45,6 +45,7 @@ import {notifyRecipientsWithPush} from '../services/TextingApi'; import {FirebaseMessage, LocalMessage, MessageRequest} from '../types'; import {createMessageList, decryptUserId} from '../utils'; import {AudioPlayerContext} from '../audio'; +import {currentChannelIDRef} from '../notification'; const styles = StyleSheet.create({ container: { @@ -385,9 +386,11 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { */ // Fetch the initial messages to show useEffect(() => { + currentChannelIDRef.current = channelPath; connectToChannel().then(startMessageSubscription); return () => { + currentChannelIDRef.current = null; unsubscribeMessages.current?.(); }; }, [channelPath]); --- src/notification.ts @@ -10,6 +10,10 @@ import { import {createChannelPath} from './channels'; import {navigate} from '@walmart/react-native-shared-navigation'; +export const currentChannelIDRef: {current: string | null} = { + current: null, +}; + const goToMessageScreenForChannel = ( storeNumber: string, channelId: string, @@ -43,9 +47,25 @@ export const backgroundPushNotificationHandler = (event?: SumoPushEvent) => { export const foregroundPushNotificationHandler = (event?: SumoPushEvent) => { if (event?.customData?.category === 'pushtotalkv2') { const {storeNumber, channelId} = event?.customData; - // TODO - Handle when the user is already on the message screen - const handleOnTap = () => - goToMessageScreenForChannel(storeNumber, channelId); + + if (currentChannelIDRef.current?.includes(channelId)) { + return true; + } + + // TODO - if you navigate through the notification the back route is messed up now. + const handleOnTap = () => { + const channelPath = createChannelPath(storeNumber, channelId); + navigate(ROOT_CONTAINER_SCREEN_NAME, { + // @ts-ignore + screen: APP_CONTAINER_SCREEN_NAME, + params: { + screen: MESSAGES_SCREEN_NAME, + params: { + channelPath, + }, + }, + }); + }; navigate('Core.Toast', { //@ts-ignore duration: 4000, --- src/screens/MessagesScreen.tsx @@ -45,6 +45,7 @@ import {notifyRecipientsWithPush} from '../services/TextingApi'; import {FirebaseMessage, LocalMessage, MessageRequest} from '../types'; import {createMessageList, decryptUserId} from '../utils'; import {AudioPlayerContext} from '../audio'; +import {currentChannelIDRef} from '../notification'; const styles = StyleSheet.create({ container: { @@ -385,9 +386,11 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { */ // Fetch the initial messages to show useEffect(() => { + currentChannelIDRef.current = channelPath; connectToChannel().then(startMessageSubscription); return () => { + currentChannelIDRef.current = null; unsubscribeMessages.current?.(); }; }, [channelPath]);
adding current screen reference to handle it on notifications
adding current screen reference to handle it on notifications
74fe5c2258a7a66d3cdbb2e430f98aa868c87e69
--- src/Hooks/useUpsertSupplyChainAssociatePreference.ts @@ -64,15 +64,12 @@ export const useUpsertSupplyChainAssociatePreference = () => { ?.shiftCodePreference || [] ).filter(Boolean) as string[]; - console.log('====> Oncompleted', shiftsFromPreferences); - const teamsFromPreferences = response?.upsertAssociatePreference?.meAtWalmartPreferences ?.managerExperiencePreferences?.mySupplyChainTeams ?.supplyChainTeamPreference; try { - // Read current data from cache const currentData = client.readQuery({ query: GetSupplyChainAssociateTeamPreferenceDocument, variables: { @@ -81,10 +78,7 @@ export const useUpsertSupplyChainAssociatePreference = () => { }, }); - console.log('Current cached data:', currentData); - if (currentData) { - // Write updated data back to cache client.writeQuery({ query: GetSupplyChainAssociateTeamPreferenceDocument, variables: { @@ -121,10 +115,6 @@ export const useUpsertSupplyChainAssociatePreference = () => { }, }, }); - console.log( - 'Cache updated with new shifts:', - shiftsFromPreferences - ); } } catch (err) { console.error('Cache update error:', err); --- src/Modals/HOC/editModal.tsx @@ -3,24 +3,24 @@ import React, { useCallback, useEffect } from 'react'; import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation'; import { AssociateExpHubFeature } from 'src/common/feature'; import { AssociateExpHubTranslationClient } from 'src/common/translation'; -import { TeamItem } from 'src/Components/ModalWrapper/types'; import ModalContent from 'src/Components/SmartModal/ModalContent'; import { EditTeamSelectionListItem } from 'src/Components/EditTeamListItem'; -import { - useAllsparkDispatch, - useAllsparkSelector, -} from '@walmart/allspark-foundation'; -import { AssociateExpHubSelectors } from 'src/Redux/selectors'; -import { AssociateExpHubActionCreators } from 'src/Redux/actions'; import { useGetTeamSwitcherAdapter } from 'src/Adapters'; import { useGetViewersPrimaryTeam } from '@walmart/allspark-foundation-hub'; +import { useUpsertSupplyChainAssociatePreference } from 'src/Hooks/useUpsertSupplyChainAssociatePreference'; const EditTeamsModal = AssociateExpHubFeature.createModal( () => { const primaryTeam = useGetViewersPrimaryTeam(); - const { loading, preferences, shifts, teams } = useGetTeamSwitcherAdapter(); + const { loading, preferences, shiftCodePreferences, shifts, teams } = + useGetTeamSwitcherAdapter(); + const { upsertSupplyChainPreferences } = + useUpsertSupplyChainAssociatePreference(); const [allTeams, setAllTeams] = React.useState<any[]>([]); + const [selectedTeams, setSelectedTeams] = React.useState<string[]>( + preferences.map((team) => team.teamId!) + ); useEffect(() => { if (!allTeams.length && !loading && teams && teams.length) { @@ -29,41 +29,36 @@ const EditTeamsModal = AssociateExpHubFeature.createModal( }, [teams, loading]); const [translate] = AssociateExpHubTranslationClient.useTranslation(); - const dispatch = useAllsparkDispatch(); - - const mockListData = useAllsparkSelector( - AssociateExpHubSelectors.getSavedTeams - ); - const mockAllListData = useAllsparkSelector( - AssociateExpHubSelectors.getAllTeams - ); - - const [selectedItems, setSelectedItems] = React.useState<string[]>( - preferences.map((team) => team.teamId!) - ); - const handleEditSavedTeamsPress = (item: TeamItem) => { - setSelectedItems((prevState) => { - if (prevState.includes(item.teamId)) { - return prevState.filter((id) => id !== item.teamId); + const handleSelection = useCallback( + (item: string) => { + // teamSelectionTelemetry.logEvent('SC_toggle_saved_team', { + // message: 'SC saved team toggled', + // division: trimToFortyCharacters(division?.description ?? ''), + // siteNumber: siteNumber?.toString() ?? '', + // }); + const teamIsSelected = Boolean( + selectedTeams.find((team: string) => team === item) + ); + if (teamIsSelected) { + setSelectedTeams( + selectedTeams.filter((team: string) => team !== item) + ); + } else { + setSelectedTeams([...selectedTeams, item]); } - return [...prevState, item.teamId]; - }); - }; + }, + [selectedTeams] + ); const handleApplyPress = useCallback(() => { - dispatch( - AssociateExpHubActionCreators.setSavedTeams( - [...mockListData, ...mockAllListData].filter((team) => - selectedItems.includes(team.teamId) - ) - ) - ); + upsertSupplyChainPreferences({}, shiftCodePreferences, selectedTeams); AllsparkNavigationClient.closeModal( //@ts-ignore 'associateExperienceHub.editTeamsModal' ); - }, [dispatch, mockAllListData, mockListData, selectedItems]); + }, [upsertSupplyChainPreferences, shiftCodePreferences, selectedTeams]); + return ( <ModalContent modalConfig={{ @@ -78,12 +73,12 @@ const EditTeamsModal = AssociateExpHubFeature.createModal( renderSectionItem: ({ item }) => { return ( <EditTeamSelectionListItem - selectedTeams={selectedItems} + selectedTeams={selectedTeams} teamId={item.teamId} teamName={item.teamName} teamImage={item.teamImage!} isPrimary={item.teamId === primaryTeam[0]?.teamId} - toggleSelection={() => handleEditSavedTeamsPress(item)} + toggleSelection={() => handleSelection(item.teamId)} /> ); }, --- src/Modals/HOC/updateModal.tsx @@ -31,8 +31,6 @@ const UpdateModal = AssociateExpHubFeature.createModal( const [showMandatoryShiftAlert, setShowMandatoryShiftAlert] = React.useState(false); - console.log('====> shifts', preferences); - useEffect(() => { if (!allTeams.length && !loading && teams && teams.length) { setAllTeams(teams); @@ -104,7 +102,7 @@ const UpdateModal = AssociateExpHubFeature.createModal( [selectedShifts, setSelectedShifts] ); - const handleApplyButton = useCallback(() => { + const handleDCApplyButton = useCallback(() => { // telem.logEvent('SC_apply_team_switcher', { // message: 'SC apply selected teams and shifts', // division: trimToFortyCharacters(division?.description ?? ''), @@ -127,7 +125,11 @@ const UpdateModal = AssociateExpHubFeature.createModal( handleCloseModal(); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [selectedShifts, dispatch]); + }, [selectedShifts, preferences, dispatch]); + + const onApplyButtonPress = useCallback(() => { + return isSiteDC ? handleDCApplyButton() : handleCloseModal(); + }, [isSiteDC, handleDCApplyButton]); const shiftsConfig = { handleSelectShift, @@ -191,7 +193,7 @@ const UpdateModal = AssociateExpHubFeature.createModal( modalConfig={modalConfig} onCloseModal={handleCloseModal} modalHeaderTitle="Update team" - onPrimaryButtonPress={handleApplyButton} + onPrimaryButtonPress={onApplyButtonPress} onSecondaryButtonPress={handleCloseModal} /> );
feat(ui): site intgration for upsert complete #SMDV-7856
feat(ui): site intgration for upsert complete #SMDV-7856
4cd240724d4420a72d07ce2351cdfdcb1acf7f50
--- android/app/build.gradle @@ -358,7 +358,7 @@ dependencies { } else { implementation jscFlavor } - + implementation "com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava" }
🎨 Removing whitespaces
🎨 Removing whitespaces
ee165713f9eb266b59efba065152277da2c36ec9
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ExpandedTeamShift/ExpandedTeamShift.tsx @@ -5,25 +5,14 @@ import { HubHeader } from '../../../Store'; import { TeamSearchInput } from '../../../Shared/Components/SearchInput/SearchInput'; import EditSavedTeams from '../EditSavedTeams/EditSavedTeams'; import styles from './style'; -// import { TouchableOpacity, View } from 'react-native'; -// import { ShiftFilterStyles } from './style'; +import { colors } from '@walmart/gtp-shared-components'; import { Divider } from '@walmart/gtp-shared-components'; -// import { LoggerService } from '@walmart/allspark-foundation/Logger'; -// import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; -// import { ShiftFilterProps } from './types'; -// import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; -// import { Images } from '../../../Store/Images/images'; - +import { useAllsparkTranslation } from '@walmart/allspark-foundation'; +import { FEATURE_ID } from '../../../Store/constant'; +import { ActionButtonGroup } from '../../../Shared/Components/ActionButtonGroup'; export const ExpandedTeamShift = () => { - // const TeamImage = useAllsparkImage(); - // const [selected, setSelected] = useState(false); - // const handleSelect = () => { - // setSelected(!selected); - // handleSelectShift(shiftId); - // }; - // const logger = LoggerService.getContainerInstance(); - // const telemetryService = useTelemetryService(); - // const styles = ShiftFilterStyles(selected); + const { t } = useAllsparkTranslation(FEATURE_ID); + //TODO: Remove dummy data const shiftdata = [ { shiftId: 'A1', @@ -57,27 +46,36 @@ export const ExpandedTeamShift = () => { }, ]; return ( - <View style={styles.container}> - <ShiftFilterList - filterListData={shiftdata} - handleSelectShift={() => {}} + <> + <View style={styles.container}> + <ShiftFilterList + filterListData={shiftdata} + handleSelectShift={() => {}} + isModal + /> + <Divider UNSAFE_style={styles.divider} /> + <HubHeader + title={t('expandedTeamShiftModal.Teams.title')} + subText={t('expandedTeamShiftModal.Teams.subText')} + backgroundColor={colors.white} + textColor={colors.black} + /> + <TeamSearchInput handleChange={() => {}} /> + <EditSavedTeams handleEdit={() => {}} /> + <Divider UNSAFE_style={styles.divider} /> + <HubHeader + title={t('expandedTeamShiftModal.AllTeams.title')} + subText={t('expandedTeamShiftModal.AllTeams.subText')} + backgroundColor={colors.white} + textColor={colors.black} + /> + </View> + <ActionButtonGroup + secondaryButtonLabel={t('footerButtons.cancelButton')} + primaryButtonLabel={t('footerButtons.applyButton')} + onSecondaryButtonPress={() => {}} + onPrimaryButtonPress={() => {}} /> - <Divider UNSAFE_style={styles.divider} /> - <HubHeader - title='Teams' - subText='Choose the team or group you would like to view' - backgroundColor='white' - textColor='black' - /> - <TeamSearchInput handleChange={() => {}} /> - <EditSavedTeams handleEdit={() => {}} /> - <Divider /> - <HubHeader - title='Teams' - subText='Choose the team or group you would like to view' - backgroundColor='white' - textColor='black' - /> - </View> + </> ); };
Removing unused code
Removing unused code
50bad7fc39218badc8d70d686b782590cb990caa
--- ios/Podfile.lock @@ -356,9 +356,9 @@ PODS: - React - react-native-webview (10.10.0): - React-Core - - react-native-wm-barcode (2.24.0-patch.1): + - react-native-wm-barcode (2.25.0): - React - - react-native-wm-voice-text (0.3.1): + - react-native-wm-voice-text (0.4.1): - React - React-RCTActionSheet (0.63.2): - React-Core/RCTActionSheetHeaders (= 0.63.2) @@ -809,8 +809,8 @@ SPEC CHECKSUMS: react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 - react-native-wm-barcode: 480aead7f5dacfe1ca569d6d702d8607e7fae3f4 - react-native-wm-voice-text: 498a87b567be0074720a30386a22b1e7cde873f5 + react-native-wm-barcode: eeee6215ce0f2969b7648fee8015745d175269ce + react-native-wm-voice-text: 80c0b59ff0fab4daf179ee430e4ea285181e3891 React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5 React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6 React-RCTBlob: 39cf0ece1927996c4466510e25d2105f67010e13
updating podfile.lock
updating podfile.lock
ce2a2ee82f7cfc3fdf1688572fde7e1ce6691d16
--- packages/allspark-foundation-hub/src/HubFeature/ClockOut/Components/ClockOutOverlay.tsx @@ -1,45 +0,0 @@ -import { Body, Button, ErrorMessage } from '@walmart/gtp-shared-components'; -import React from 'react'; -import { clockOutScreenStyles as styles } from '../styles'; -import { View } from 'react-native'; -import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; -import { ClockOutOverlayProps } from '../types'; - -export const ClockOutOverlay = ({ - clockOutTitle, - clockOutDescription, - buttonText, - handleButtonPress, -}: ClockOutOverlayProps) => { - const TeamImage = useAllsparkImage(); - - //Todo: Update the image once uploaded on CDN - return ( - <View testID='clockout-screen-container' style={styles.container}> - <ErrorMessage - accessibilityRole='alert' - accessibilityLabel={clockOutTitle} - actions={ - <Button size='medium' variant='primary' onPress={handleButtonPress}> - {buttonText} - </Button> - } - media={ - <TeamImage - accessibilityRole='image' - accessibilityLabel={clockOutTitle} - source={{ - uri: 'https://i5-me.walmartimages.com/images/core/sso-clock-error-38de3a49bf.png', - }} - placeholder='KSPGsyw[IVskafWXIVWW~p' - height={162} - width={162} - /> - } - title={clockOutTitle} - > - <Body UNSAFE_style={styles.description}>{clockOutDescription}</Body> - </ErrorMessage> - </View> - ); -}; --- packages/allspark-foundation-hub/src/HubFeature/ClockOut/index.tsx @@ -1,26 +0,0 @@ -import React, { PropsWithChildren } from 'react'; -import { useSelector } from 'react-redux'; - -import { ClockSelectors } from '@walmart/allspark-foundation/Clock'; -import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation'; -import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; -import { FEATURE_ID } from '../constant'; -import { ClockOutOverlay } from './Components/ClockOutOverlay'; - -export const ClockOutGuard = (props: PropsWithChildren<{}>): any => { - const { children } = props; - - const { t } = useAllsparkTranslation(FEATURE_ID); - const isClockedOut = useSelector(ClockSelectors.getIsClockedOut); - - return isClockedOut ? ( - <ClockOutOverlay - clockOutTitle={t('clockOutGuard.title')} - clockOutDescription={t('clockOutGuard.content')} - buttonText={t('clockOutGuard.action')} - handleButtonPress={AllsparkNavigationClient.goBack} //Todo: Update the method for Clock in - /> - ) : ( - children - ); -}; --- packages/allspark-foundation-hub/src/HubFeature/ClockOut/styles.ts @@ -1,16 +0,0 @@ -import { colors } from '@walmart/gtp-shared-components'; -import { StyleSheet } from 'react-native'; - -export const clockOutScreenStyles = StyleSheet.create({ - container: { - paddingBottom: 40, - paddingTop: 64, - backgroundColor: colors.white, - width: '100%', - height: '100%', - paddingHorizontal: 32, - }, - description: { - textAlign: 'center', - }, -}); --- packages/allspark-foundation-hub/src/HubFeature/ClockOut/types.ts @@ -1,6 +0,0 @@ -export interface ClockOutOverlayProps { - clockOutTitle: string; - clockOutDescription: string; - buttonText: string; - handleButtonPress: () => void; -} --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -14,10 +14,10 @@ import { managerExperienceSlice } from '../../Redux/reducer'; import { HubDashboard } from './Screens'; import { ManagerExperienceCreators } from '../../Redux'; import { useHubConfig } from '../../Hooks/useHubConfig'; -import { ClockOutGuard } from '../../ClockOut'; import { BottomSheetProvider } from '../../BottomSheet/BottomSheetContext'; import { TeamSelection } from '../../TeamSelection'; import { OnboardingProvider } from '../../Onboarding/TeamOnboarding/OnboardingContext'; +import { ClockGuard } from '@walmart/allspark-foundation/Clock/withClockGuard'; export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { name: FEATURE_NAME, @@ -85,7 +85,7 @@ export class AllsparkHubContainer { public render = (): JSX.Element => { return ( - <ClockOutGuard> + <ClockGuard> <OnboardingProvider> <BottomSheetProvider> <HubDashboard @@ -95,7 +95,7 @@ export class AllsparkHubContainer { /> </BottomSheetProvider> </OnboardingProvider> - </ClockOutGuard> + </ClockGuard> ); }; } --- packages/allspark-foundation-hub/src/HubFeature/index.tsx @@ -4,4 +4,3 @@ export * from './Hub/TeamSwitcher'; export * from './Onboarding/TeamOnboarding'; export * from './BottomSheet'; export * from './Hub/HubWidget'; -export * from './ClockOut'; --- packages/allspark-foundation/src/Clock/index.ts @@ -4,3 +4,4 @@ export { ClockSagas } from './sagas'; export { ClockService, ClockServiceCreator } from './service'; export * from './selectors'; export * from './types'; +export * from './withClockGuard';
Update clock out screen guard
Update clock out screen guard
ae7e04afffd68be44503fcbdfb6efe7b8a2e62de
--- package-lock.json @@ -85,7 +85,7 @@ "@walmart/settings-mini-app": "1.19.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.40.8", - "@walmart/texting-mini-app": "2.0.30", + "@walmart/texting-mini-app": "2.0.31", "@walmart/time-clock-mini-app": "2.111.3", "@walmart/topstock-mini-app": "1.0.13", "@walmart/ui-components": "1.15.1", @@ -9175,9 +9175,9 @@ } }, "node_modules/@walmart/texting-mini-app": { - "version": "2.0.30", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.30.tgz", - "integrity": "sha512-gxQxp7qj0FDoOenHxSIbA0Ek8LdzQtFijTYZPjXgaoOjfz+WyoD7QoPqdOU7TvGl6eJ+3a8yp8gm4yoMXn4+hw==", + "version": "2.0.31", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.31.tgz", + "integrity": "sha512-UrSDr3JXkrg8+oo9o5OC8xSxNB4PVfiT/kQfZxMAirzd4blHX8Sy2oAENJIGq3avagXhZ8bNk+4DDizR2yylmA==", "hasInstallScript": true }, "node_modules/@walmart/time-clock-mini-app": { @@ -33841,9 +33841,9 @@ } }, "@walmart/texting-mini-app": { - "version": "2.0.30", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.30.tgz", - "integrity": "sha512-gxQxp7qj0FDoOenHxSIbA0Ek8LdzQtFijTYZPjXgaoOjfz+WyoD7QoPqdOU7TvGl6eJ+3a8yp8gm4yoMXn4+hw==" + "version": "2.0.31", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.31.tgz", + "integrity": "sha512-UrSDr3JXkrg8+oo9o5OC8xSxNB4PVfiT/kQfZxMAirzd4blHX8Sy2oAENJIGq3avagXhZ8bNk+4DDizR2yylmA==" }, "@walmart/time-clock-mini-app": { "version": "2.111.3", --- package.json @@ -126,7 +126,7 @@ "@walmart/settings-mini-app": "1.19.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.40.8", - "@walmart/texting-mini-app": "2.0.30", + "@walmart/texting-mini-app": "2.0.31", "@walmart/time-clock-mini-app": "2.111.3", "@walmart/topstock-mini-app": "1.0.13", "@walmart/ui-components": "1.15.1",
Drop 15 version update
Drop 15 version update
1fdc5c01b4a313d0fc429dbfc3a0da0001996243
--- ios/Podfile @@ -33,7 +33,6 @@ source 'git@gecgithub01.walmart.com:store-systems-associate-tech-platform/cocoap source 'git@gecgithub01.walmart.com:ssaeSCTP/CocoaPodSpecs.git' source 'https://github.com/CocoaPods/Specs.git' -Pod::UI.puts "Flipper enabed: #{ENV['NO_FLIPPER'] == '1' ? 'false' : 'true'}" # production = ENV["PRODUCTION"] == "1" target 'FeatureAppTemplateTS' do @@ -64,7 +63,6 @@ target 'FeatureAppTemplateTS' do pod 'nanopb', :modular_headers => true pod 'FirebaseMessaging', :modular_headers => true pod 'CocoaAsyncSocket', :modular_headers => true - # pod 'react-native-flipper', :path => '../node_modules/react-native-flipper/react-native-flipper.podspec', :configuration => 'Debug' post_integrate do |installer| begin --- ios/Podfile.lock @@ -2916,6 +2916,6 @@ SPEC CHECKSUMS: wifi-store-locator: a2f9bad93c287981791c18dad26c82b5e3994479 Yoga: 9db4b2da1ed5d8e0c94158f9ac379c8b1b529f59 -PODFILE CHECKSUM: d72055733413711980f72573cbce21403f8424dc +PODFILE CHECKSUM: 30c4ef08e1b6bf507d84c2a66890c7a41c759ccb COCOAPODS: 1.14.3 --- package.json @@ -161,6 +161,8 @@ "react-native-wm-notification": "^2.0.1", "react-native-wm-telemetry": "6.1.4", "react-test-renderer": "18.2.0", + "reactotron-react-native": "^5.1.12", + "reactotron-redux": "^3.1.11", "redux": "^4.2.1", "redux-dynamic-middlewares": "^2.2.0", "redux-saga": "^1.2.3", --- yarn.lock @@ -6575,6 +6575,8 @@ __metadata: react-native-wm-notification: "npm:^2.0.1" react-native-wm-telemetry: "npm:6.1.4" react-test-renderer: "npm:18.2.0" + reactotron-react-native: "npm:^5.1.12" + reactotron-redux: "npm:^3.1.11" redux: "npm:^4.2.1" redux-dynamic-middlewares: "npm:^2.2.0" redux-saga: "npm:^1.2.3" @@ -14743,6 +14745,13 @@ __metadata: languageName: node linkType: hard +"microdiff@npm:^1.5.0": + version: 1.5.0 + resolution: "microdiff@npm:1.5.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmicrodiff%2F-%2Fmicrodiff-1.5.0.tgz" + checksum: 10c0/5f55ca049451d63abf79fd1692808e1052180fbedfc91d9fcab9f02df0dd902aa6a4e30199fd345d1f91982842b12d85ffa86785e38d7dbfb6d59280074f9129 + languageName: node + linkType: hard + "micromatch@npm:^4.0.2, micromatch@npm:^4.0.4, micromatch@npm:^4.0.5, micromatch@npm:^4.0.8": version: 4.0.8 resolution: "micromatch@npm:4.0.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmicromatch%2F-%2Fmicromatch-4.0.8.tgz" @@ -14952,6 +14961,13 @@ __metadata: languageName: node linkType: hard +"mitt@npm:^3.0.1": + version: 3.0.1 + resolution: "mitt@npm:3.0.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmitt%2F-%2Fmitt-3.0.1.tgz" + checksum: 10c0/3ab4fdecf3be8c5255536faa07064d05caa3dd332bd318ff02e04621f7b3069ca1de9106cfe8e7ced675abfc2bec2ce4c4ef321c4a1bb1fb29df8ae090741913 + languageName: node + linkType: hard + "mixin-object@npm:^2.0.1": version: 2.0.1 resolution: "mixin-object@npm:2.0.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fmixin-object%2F-%2Fmixin-object-2.0.1.tgz" @@ -17059,6 +17075,46 @@ __metadata: languageName: node linkType: hard +"reactotron-core-client@npm:2.9.7": + version: 2.9.7 + resolution: "reactotron-core-client@npm:2.9.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freactotron-core-client%2F-%2Freactotron-core-client-2.9.7.tgz" + dependencies: + reactotron-core-contract: "npm:0.2.5" + checksum: 10c0/c18f93761feeadd043461b59ad0dee748d8a6ab0ac01beecda9653fdd190e15ecccd55d246a8ac25058f2b74b4d62ff07861f3fb0856d1995418b45886170485 + languageName: node + linkType: hard + +"reactotron-core-contract@npm:0.2.5": + version: 0.2.5 + resolution: "reactotron-core-contract@npm:0.2.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freactotron-core-contract%2F-%2Freactotron-core-contract-0.2.5.tgz" + checksum: 10c0/4cf35d9f5e442bbbd32346f9b9ae26e4dd2400ffb9abc618d039df3b3398eaef1fb59c9df04703d6da4e2786f2922454a454c5522c055c8300146da3d6754508 + languageName: node + linkType: hard + +"reactotron-react-native@npm:^5.1.12": + version: 5.1.12 + resolution: "reactotron-react-native@npm:5.1.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freactotron-react-native%2F-%2Freactotron-react-native-5.1.12.tgz" + dependencies: + mitt: "npm:^3.0.1" + reactotron-core-client: "npm:2.9.7" + peerDependencies: + react-native: ">=0.40.0" + checksum: 10c0/2ff62e132a6b611bee39e294b63f56ab7695d0e0e94354b849efc4f19664b39298f64971aca187dff85c97c6410b5f15eb39b4af42c7d6478d5d61703d474912 + languageName: node + linkType: hard + +"reactotron-redux@npm:^3.1.11": + version: 3.2.0 + resolution: "reactotron-redux@npm:3.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freactotron-redux%2F-%2Freactotron-redux-3.2.0.tgz" + dependencies: + microdiff: "npm:^1.5.0" + peerDependencies: + reactotron-core-client: "*" + redux: ">=4.0.0" + checksum: 10c0/1c28f7630635351c78daae5864928d1cd54d59095605673d5cffc8c145ecf936605ae16de77dec400a3b74d8ebffffa837ce286d96bfb0ac3693e0a86e3fa62d + languageName: node + linkType: hard + "read-pkg@npm:^3.0.0": version: 3.0.0 resolution: "read-pkg@npm:3.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fread-pkg%2F-%2Fread-pkg-3.0.0.tgz"
feat(ui): update the podfile
feat(ui): update the podfile
f1adecc1853e60bfa0d6766645073ae55fe22288
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.1-beta.11", + "version": "1.0.1-beta.12", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Update the hub dashboard for changes
Update the hub dashboard for changes
8c88745fb3efdac47cdab9ec86f8d45be5a0b03d
--- package.json @@ -150,7 +150,7 @@ "@walmart/shelfavailability-mini-app": "1.5.45", "@walmart/shop-gnfr-mini-app": "1.0.302", "@walmart/sidekick-mini-app": "4.199.7", - "@walmart/store-feature-orders": "1.29.5", + "@walmart/store-feature-orders": "1.30.0", "@walmart/taskit-mini-app": "5.38.2", "@walmart/time-clock-mini-app": "3.19.2", "@walmart/time-clock-mini-app-next": "3.0.0", --- yarn.lock @@ -8749,7 +8749,7 @@ __metadata: "@walmart/shelfavailability-mini-app": "npm:1.5.45" "@walmart/shop-gnfr-mini-app": "npm:1.0.302" "@walmart/sidekick-mini-app": "npm:4.199.7" - "@walmart/store-feature-orders": "npm:1.29.5" + "@walmart/store-feature-orders": "npm:1.30.0" "@walmart/taskit-mini-app": "npm:5.38.2" "@walmart/time-clock-mini-app": "npm:3.19.2" "@walmart/time-clock-mini-app-next": "npm:3.0.0" @@ -9562,9 +9562,9 @@ __metadata: languageName: node linkType: hard -"@walmart/store-feature-orders@npm:1.29.5": - version: 1.29.5 - resolution: "@walmart/store-feature-orders@npm:1.29.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fstore-feature-orders%2F-%2F%40walmart%2Fstore-feature-orders-1.29.5.tgz" +"@walmart/store-feature-orders@npm:1.30.0": + version: 1.30.0 + resolution: "@walmart/store-feature-orders@npm:1.30.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fstore-feature-orders%2F-%2F%40walmart%2Fstore-feature-orders-1.30.0.tgz" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.1.0" @@ -9578,7 +9578,7 @@ __metadata: react-native: ">=0.73.7" redux: ^4.2.1 reduxsauce: 1.2.0 - checksum: 10c0/a92f567d78fb90b87181141e03b800314005e1c71291bcce80e4375d7b37f91bdb67903272abcd1a62cc27be78cd69921db3cfdcd2bef7e4236dd4141c2317eb + checksum: 10c0/6afe84de08fcb2246d7130611c89b9af488872249ad9895e0292497c75c34dfa3ee081f93a9d0ee108a56ffd5c08f79a08b1366d7ea0ffcb03b901b0c60268d4 languageName: node linkType: hard
fix(headertitle changes): FSS-8134 drop31 header changes (#4328)
fix(headertitle changes): FSS-8134 drop31 header changes (#4328) Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
7ab6fe4be0b3b63cc8e5a4c4fc5eb117018d495d
--- packages/allspark-foundation-hub/src/SupplyChain/Components/Modal/ModalHeader.tsx @@ -47,9 +47,10 @@ const styles = StyleSheet.create({ textAlign: 'center', fontSize: 18, marginBottom: 10, + marginLeft: 40, }, closeIcon: { - paddingLeft: 16, + marginLeft: 5, marginBottom: 10, }, });
feat(ui): adjusted style
feat(ui): adjusted style
032c9c3b43197893a49c2042a29cf9ce70a3c3be
--- package-lock.json @@ -52,9 +52,9 @@ "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", - "@walmart/ims-print-services-ui": "2.0.3", + "@walmart/ims-print-services-ui": "2.0.4", "@walmart/inbox-mini-app": "0.81.9", - "@walmart/iteminfo-mini-app": "7.0.3", + "@walmart/iteminfo-mini-app": "7.0.4", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.41", @@ -5172,9 +5172,9 @@ } }, "node_modules/@walmart/ims-print-services-ui": { - "version": "2.0.3", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.3.tgz", - "integrity": "sha512-0/p4dPv2GYGB9xi2fD1M2HFF3jqtvhr0gJlz0VfGO062Hr4f11HZrleq20vbxb99/Ubsz4Q4amqqFcI4sJD4mg==", + "version": "2.0.4", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.4.tgz", + "integrity": "sha512-ubmlU2KZDAKmbOIqMoJySzH+tuwhON+d3z4WKrg/9MMkBofTwp4/Z2yBC/Dw3LWK6+fq95IKInEuxIcEBPy9xw==", "peerDependencies": { "@react-native-firebase/analytics": ">=10.5.1", "@react-native-firebase/app": ">=10.5.0", @@ -5214,9 +5214,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.0.3", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.3.tgz", - "integrity": "sha512-ty/fGyq7fYdjXgJLEaF3OowK9NnM07iLX0D4wm1Upiqf5E68iYMJtne/yg6zVzD1TVvjurA8L3P2wuSxXQnCog==", + "version": "7.0.4", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.4.tgz", + "integrity": "sha512-VUeJRN34ymHUtJWrHhnVLWPhtgOHg/gC+xT7GahxH4AdRsIneR02Z7xsukU80wyzxsHHuTu6xSBGTnNwTsbXcA==", "peerDependencies": { "@react-native-community/async-storage": ">=1.12.1", "@react-native-community/netinfo": ">=9.3.6", @@ -25085,9 +25085,9 @@ "integrity": "sha512-jytXe4i0C9GXvPCm6nB26ILZVkcSsBmcdykmGmlFKB4Q/d5i9imtLmFHLfhd6gxU7ZeBoKMJvymF5tWQbI6QoQ==" }, "@walmart/ims-print-services-ui": { - "version": "2.0.3", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.3.tgz", - "integrity": "sha512-0/p4dPv2GYGB9xi2fD1M2HFF3jqtvhr0gJlz0VfGO062Hr4f11HZrleq20vbxb99/Ubsz4Q4amqqFcI4sJD4mg==" + "version": "2.0.4", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.4.tgz", + "integrity": "sha512-ubmlU2KZDAKmbOIqMoJySzH+tuwhON+d3z4WKrg/9MMkBofTwp4/Z2yBC/Dw3LWK6+fq95IKInEuxIcEBPy9xw==" }, "@walmart/inbox-mini-app": { "version": "0.81.9", @@ -25099,9 +25099,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "7.0.3", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.3.tgz", - "integrity": "sha512-ty/fGyq7fYdjXgJLEaF3OowK9NnM07iLX0D4wm1Upiqf5E68iYMJtne/yg6zVzD1TVvjurA8L3P2wuSxXQnCog==" + "version": "7.0.4", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.4.tgz", + "integrity": "sha512-VUeJRN34ymHUtJWrHhnVLWPhtgOHg/gC+xT7GahxH4AdRsIneR02Z7xsukU80wyzxsHHuTu6xSBGTnNwTsbXcA==" }, "@walmart/manager-approvals-miniapp": { "version": "0.2.1", --- package.json @@ -94,9 +94,9 @@ "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", - "@walmart/ims-print-services-ui": "2.0.3", + "@walmart/ims-print-services-ui": "2.0.4", "@walmart/inbox-mini-app": "0.81.9", - "@walmart/iteminfo-mini-app": "7.0.3", + "@walmart/iteminfo-mini-app": "7.0.4", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.41",
bump up iteminfo and print version
bump up iteminfo and print version
461cef487b53341812c2b24877b0ff83896c708b
--- __tests__/navigation/__snapshots__/MyTeamNavigation.test.tsx.snap @@ -8,7 +8,7 @@ exports[`MyTeamNavigation should corretly render MyTeamNavigation 1`] = ` "backgroundColor": "white", }, "header": [Function], - "headerShown": true, + "headerShown": false, } } > --- __tests__/source/__snapshots__/index.test.tsx.snap @@ -27,27 +27,4 @@ exports[`myTeamMiniApp should render MyTeamMiniApp as expected 1`] = ` </SafeAreaProvider> `; -exports[`myTeamMiniApp should render TeamHub as expected 1`] = ` -<Navigator - screenOptions={ - { - "cardStyle": { - "backgroundColor": "white", - }, - "header": [Function], - "headerShown": true, - } - } -> - <Screen - component={[Function]} - name="myTeam" - options={ - { - "headerLeft": "DrawerButton", - "title": "My Team", - } - } - /> -</Navigator> -`; +exports[`myTeamMiniApp should render TeamHub as expected 1`] = `<SafeAreaProvider />`;
feat(ui): update myteam mini app version
feat(ui): update myteam mini app version
76326040161a5a15653a328f74d8329f1a1d7de9
--- __tests__/__mocks__/@walmart/price-changes-mini-app.js @@ -0,0 +1,3 @@ +module.exports = { + PriceChangesMiniApp: 'PriceChangesMiniApp', +}; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -64,6 +64,10 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` component="GuardedShelfAvailabilityMiniApp" name="shelfAvailability" /> + <Screen + component="GuardedPriceChangesMiniApp" + name="priceChanges" + /> </Group> <Screen component="WhatsNewScreen" @@ -223,6 +227,10 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] component="GuardedShelfAvailabilityMiniApp" name="shelfAvailability" /> + <Screen + component="GuardedPriceChangesMiniApp" + name="priceChanges" + /> </Group> <Screen component="WhatsNewScreen" --- ios/Podfile @@ -37,7 +37,8 @@ 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 'Permission-Camera', :path => "#{permissions_path}/Camera" + # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and --- package-lock.json @@ -4160,6 +4160,11 @@ "reselect": "^4.0.0" } }, + "@walmart/allspark-neon-core": { + "version": "0.1.16", + "resolved": "https://npme.walmart.com/@walmart/allspark-neon-core/-/allspark-neon-core-0.1.16.tgz", + "integrity": "sha512-xwRUll88H4v1sKNwDKJUOgQo2jOdV/35VgTCtBttTsqTb8PVv7q1YaEc9ahtQMCNpcznfhd7Sc7p7jF/vyP6nA==" + }, "@walmart/ask-sam-mini-app": { "version": "0.40.3", "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.40.3.tgz", @@ -4193,9 +4198,9 @@ "integrity": "sha512-EcUV5UbnNZBvacqLesY18XKO/o3G6/k61ocI/ydIIPOhLXRgkiztQqMBE75bYxU7lQkRYtqgxcK3SzvAKP0RoQ==" }, "@walmart/counts-component-miniapp": { - "version": "0.0.22", - "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.22.tgz", - "integrity": "sha512-4fNpEcmRJ99nwJAxvD9T+FqHRbehH/yEW7/YKLpvmdr0IzO0f1ZPZPMSt9Kl0+qQx1j5XMtY30/RQLoMoG0laQ==" + "version": "0.0.26", + "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.26.tgz", + "integrity": "sha512-j06Tdu/5GLnaq5FnsgtNlpMhGTnJiGOPC5KfPyg2qyAwub5JwjpZ83az8GSDmWbM5Sncw9ZiRtKP3J6PCiNpYQ==" }, "@walmart/exception-mini-app": { "version": "0.38.1", @@ -4248,9 +4253,9 @@ "integrity": "sha512-YI7uRzEn+/zFdSIeJHozor94HAtCtiMJFpii9NGPuWdXsWc6adqQOyUt9OSQ9KBw7GXsN5Z3ItexG5AjRXxhXw==" }, "@walmart/ims-print-services-ui": { - "version": "0.0.36", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.0.36.tgz", - "integrity": "sha512-DMXzHrlFBvd5qOHxju7irJ+4UkclgpwJVlEKzPqmL4oQPYXkjCydvbJR0O5FmZtDDyBrKxKtofD2vD4nyBeHPA==" + "version": "0.1.2", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.1.2.tgz", + "integrity": "sha512-VTFVDEWdPxEN1KxBdyekuo+nawsN8kQ7CzKxIsvCap21ZlZHPZUj5r3+4m2BuLgeVcD6m0BmKXrJXgY1lbXT+g==" }, "@walmart/inbox-mini-app": { "version": "0.21.0", @@ -4330,6 +4335,11 @@ } } }, + "@walmart/price-changes-mini-app": { + "version": "1.0.2", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.0.2.tgz", + "integrity": "sha512-UdvhG4bnIUaINRlYdTWew9w33xD3MaDS+Q/F95z75Jjsx8on1qzf47heoSEFSPHwtxqIb9/XegdHLruvraQrMA==" + }, "@walmart/push-to-talk-mini-app": { "version": "0.5.39", "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.39.tgz", --- package.json @@ -74,20 +74,22 @@ "@walmart/allspark-home-mini-app": "0.5.11", "@walmart/allspark-me-mini-app": "0.31.2", "@walmart/ask-sam-mini-app": "0.40.3", + "@walmart/allspark-neon-core": "0.1.16", "@walmart/config-components": "1.0.35", - "@walmart/counts-component-miniapp": "0.0.22", + "@walmart/counts-component-miniapp": "0.0.26", "@walmart/exception-mini-app": "0.38.1", "@walmart/feedback-all-spark-miniapp": "0.1.17", "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", "@walmart/impersonation-mini-app": "1.0.24", - "@walmart/ims-print-services-ui": "0.0.36", + "@walmart/ims-print-services-ui": "0.1.2", "@walmart/inbox-mini-app": "0.21.0", "@walmart/iteminfo-mini-app": "2.0.16", "@walmart/manager-approvals-miniapp": "0.0.58", "@walmart/metrics-mini-app": "0.4.14", "@walmart/moment-walmart": "1.0.4", + "@walmart/price-changes-mini-app": "1.0.2", "@walmart/push-to-talk-mini-app": "0.5.39", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", --- src/core/versionsInit.ts @@ -25,6 +25,7 @@ const miniApps = [ '@walmart/counts-component-miniapp', '@walmart/manager-approvals-miniapp', '@walmart/metrics-mini-app', + '@walmart/price-changes-mini-app', ]; export async function setupAppVersions() { --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -18,6 +18,8 @@ import {ExceptionMiniApp as PinpointMiniApp} from '@walmart/exception-mini-app'; import {ApprovalsMiniApp} from '@walmart/manager-approvals-miniapp'; import {ItemInfoMiniApp} from '@walmart/iteminfo-mini-app'; import {ShelfAvailabilityMiniApp} from '@walmart/shelfavailability-mini-app'; +import {PriceChangesMiniApp} from '@walmart/price-changes-mini-app'; + import {useRbacConfig} from '@walmart/config-components'; import { @@ -67,6 +69,11 @@ const WorkMiniApps = [ appName: 'Shelf Availability', component: ShelfAvailabilityMiniApp, }, + { + screenName: 'priceChanges', + appName: 'Price Changes', + component: PriceChangesMiniApp, + }, ]; const WorkMiniAppScreens = WorkMiniApps.map((screen) => { --- src/translations/en-US.ts @@ -19,6 +19,7 @@ export const enUS = { 'react-native-ssmp-sso-allspark': 'Single Sign On', '@walmart/counts-component-miniapp': 'Counts', '@walmart/manager-approvals-miniapp': 'Manager Approvals', + '@walmart/price-changes-mini-app': 'Price Changes', }, navigation: { main: 'Me@Walmart', --- src/translations/es-MX.ts @@ -19,6 +19,7 @@ export const esMX = { 'react-native-ssmp-sso-allspark': 'Single Sign On', '@walmart/counts-component-miniapp': 'Counts', '@walmart/manager-approvals-miniapp': 'Manager Approvals', + '@walmart/price-changes-mini-app': 'Cambios de precios', }, navigation: { main: 'Me@Walmart',
RTASPE-4470 - Price Changes Integration
RTASPE-4470 - Price Changes Integration
06d340ee4501f4655c382ccb73e3961264fa0611
--- packages/me-at-walmart-athena-queries/src/index.ts @@ -3,5 +3,8 @@ export * from './getAssociateById'; export * from './getDailyRosterHome'; export * from './getLoggedInUser'; export * from './getTeamByIdHome'; +export * from './getTeamsbyStore'; +export * from './getAssociatePreference'; +export * from './updateManagerExperiencePreference'; export * from './updateAssociatePrivacyPreference'; export * as AthenaTypes from './schema.types';
feat(ui): update me at walmart athena queries index file update
feat(ui): update me at walmart athena queries index file update
c082a66a7a1fa48b3091aa89c729049908b4b3d1
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.0-alpha.9", + "version": "1.0.1-alpha.1", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Update the reset to navigation
Update the reset to navigation
e2482865b722314c64c01f32f59245918817a7af
--- packages/redux-store/src/actions.ts @@ -20,6 +20,7 @@ import { UserActionCreators as foundationUserActionCreators, } from '@walmart/allspark-foundation/User'; import { DeviceActionCreators } from '@walmart/allspark-foundation/Device'; +import { MeAtWalmartAuthActions } from '@walmart/me-at-walmart-common'; import { dispatch } from './store'; import { @@ -85,7 +86,7 @@ export const AuthActionCreators = { signInProgress: foundationAuthActionCreators.SIGN_IN_PROGRESS, signInSuccess: foundationAuthActionCreators.SIGN_IN_SUCCESS, signInError: foundationAuthActionCreators.SIGN_IN_ERROR, - signOutRequest: foundationAuthActionCreators.SIGN_OUT, + signOutRequest: MeAtWalmartAuthActions.SIGN_OUT_REQUEST, signOutProgress: foundationAuthActionCreators.SIGN_OUT_PROGRESS, signOutSuccess: foundationAuthActionCreators.SIGN_OUT_SUCCESS, signOutError: foundationAuthActionCreators.SIGN_OUT_ERROR, @@ -375,11 +376,11 @@ export const ssoActions = new Proxy( /** * @deprecated use AuthActionCreators from '@walmart/allspark-foundation/Auth' and dispatch directly instead */ - signInProgress: authActions.signInProgress, + signInProgress: userActions.getUserProgress, /** * @deprecated use `AuthActionCreators.SIGN_IN_SUCCESS` from '@walmart/allspark-foundation/Auth' and dispatch directly instead */ - signInSuccess: authActions.signInSuccess, + signInSuccess: userActions.getUserSuccess, /** * @deprecated use `ClockActionCreators.FETCH_SUCCESS` from '@walmart/allspark-foundation/Auth' and dispatch directly instead */
fix: legacy actions were not properly mapped for backwards compat
fix: legacy actions were not properly mapped for backwards compat
e918253f04a39d3c137ed52070fcebe1b272cd53
--- jest.config.js @@ -12,7 +12,7 @@ module.exports = { statements: 14.07, branches: 3.51, functions: 6.02, - lines: 14.28, + lines: 14.27, }, }, transformIgnorePatterns: [ --- jest.config.js @@ -12,7 +12,7 @@ module.exports = { statements: 14.07, branches: 3.51, functions: 6.02, - lines: 14.28, + lines: 14.27, }, }, transformIgnorePatterns: [
add estimatedItemSize for flashlist
add estimatedItemSize for flashlist
9d319e5415010db41147ffc9d4f56aa9ea0c97dd
--- packages/core-services/Notification/redux.ts @@ -124,6 +124,8 @@ export const onResetNotificationState = ( ) => state.merge({ ...INITIAL_STATE, + optIn: state.optIn, + optInProgress: state.optInProgress, charged: state.charged, charging: state.charging, chargeError: state.chargeError,
fix: maintain opt in state for notification on reset action
fix: maintain opt in state for notification on reset action
abcc8ec77359996f082900c3ffb40046219fc19b
--- package-lock.json @@ -3367,9 +3367,9 @@ "integrity": "sha512-Am5QrgtwxJ23j3GsZZivaZknjiWTuPFvFxV1J0ysrQZ3H4wZcgsxuFdsCJqA3Hzufo3pZdyMTZhNtAx4IuQjjw==" }, "@walmart/inbox-mini-app": { - "version": "0.0.100", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.100.tgz", - "integrity": "sha512-hX99Doyqqrwy9aMJbhrucZ8j9MRYjRcJa8gL2z5ZnsU9a30KANm+Oi5w0gg6KsLzXMj7K5nyAPh4hmvHyFkexQ==" + "version": "0.0.101", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.101.tgz", + "integrity": "sha512-vI/gW47x/JzLbLNGVKZiuMuMd6xEPoWD8dv/wDUM6vpNC9LlIVE1W4Hz0kSKW4GYcUsZDRSKPmbgW7H/GnreXA==" }, "@walmart/iteminfo-mini-app": { "version": "1.0.22", --- package.json @@ -76,7 +76,7 @@ "@walmart/gtp-shared-components": "^1.1.8", "@walmart/impersonation-mini-app": "1.0.15", "@walmart/ims-print-services-ui": "0.0.19", - "@walmart/inbox-mini-app": "0.0.100", + "@walmart/inbox-mini-app": "0.0.101", "@walmart/iteminfo-mini-app": "1.0.22", "@walmart/manager-approvals-miniapp": "0.0.40", "@walmart/metrics-mini-app": "0.4.6",
SSMP-1534 (#809)
SSMP-1534 (#809) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
86993e38b79c2a51fb785f88717943c44eb14a49
--- src/images/assets/covid-vaccine.png Binary files /dev/null and b/src/images/assets/covid-vaccine.png differ --- src/images/assets/covid-vaccine@2x.png Binary files /dev/null and b/src/images/assets/covid-vaccine@2x.png differ --- src/images/assets/covid-vaccine@3x.png Binary files /dev/null and b/src/images/assets/covid-vaccine@3x.png differ --- src/images/assets/index.ts @@ -8,6 +8,7 @@ const Images: {[key: string]: ImageURISource} = { BlueHalfBackground: require('./blue-half-background.png'), CandidateIllustration: require('./candidate-illustration.png'), Close: require('./close-icon.png'), + CovidVaccineIllustration: require('./covid-vaccine.png'), DownloadBeta: require('./downloadBeta.png'), FaceID: require('./face-id.png'), ForceUpdate: require('./force-update.png'), @@ -17,22 +18,20 @@ const Images: {[key: string]: ImageURISource} = { HomeTabActive: require('./home-tab-active.png'), InboxTab: require('./inbox-tab.png'), InboxTabActive: require('./inbox-tab-active.png'), + ItemInfoIllustration: require('./item-info.png'), LabelIllustration: require('./label-illustration.png'), LandingIllustration: require('./landing-illustration.png'), LandingIllustration2: require('./landing-illustration2.png'), LocationIllustration: require('./location-illustration.png'), MenuIcon: require('./menu-icon.png'), - MenuIllustration: require('./menu-illustration.png'), MeTab: require('./me-tab.png'), MeTabActive: require('./me-tab-active.png'), NotificationsIllustration: require('./notifications-illustration.png'), PinIllustration: require('./pin-illustration.png'), - RosterIllustration: require('./roster-illustration.png'), SparkLogo: require('./spark.png'), SurveyIllustration: require('./survey-illustration.png'), TeamTab: require('./team-tab.png'), TeamTabActive: require('./team-tab-active.png'), - TimeclockBeepIllustration: require('./timeclock-beep-illustration.png'), TouchID: require('./touch-id.png'), WalmartSpark: require('./walmart-spark.png'), WelcomeIllustration: require('./welcome-illustration.png'), --- src/images/assets/item-info.png Binary files /dev/null and b/src/images/assets/item-info.png differ --- src/images/assets/item-info@2x.png Binary files /dev/null and b/src/images/assets/item-info@2x.png differ --- src/images/assets/item-info@3x.png Binary files /dev/null and b/src/images/assets/item-info@3x.png differ --- src/images/assets/menu-illustration.png Binary files a/src/images/assets/menu-illustration.png and /dev/null differ --- src/images/assets/menu-illustration@2x.png Binary files a/src/images/assets/menu-illustration@2x.png and /dev/null differ --- src/images/assets/menu-illustration@3x.png Binary files a/src/images/assets/menu-illustration@3x.png and /dev/null differ --- src/images/assets/roster-illustration.png Binary files a/src/images/assets/roster-illustration.png and /dev/null differ --- src/images/assets/roster-illustration@2x.png Binary files a/src/images/assets/roster-illustration@2x.png and /dev/null differ --- src/images/assets/roster-illustration@3x.png Binary files a/src/images/assets/roster-illustration@3x.png and /dev/null differ --- src/images/assets/timeclock-beep-illustration.png Binary files a/src/images/assets/timeclock-beep-illustration.png and /dev/null differ --- src/images/assets/timeclock-beep-illustration@2x.png Binary files a/src/images/assets/timeclock-beep-illustration@2x.png and /dev/null differ --- src/images/assets/timeclock-beep-illustration@3x.png Binary files a/src/images/assets/timeclock-beep-illustration@3x.png and /dev/null differ
Updated the images for the whats new.
Updated the images for the whats new.
2b8d56727a26ac5a3d97cd5b22c1d224115483ea
--- package.json @@ -86,7 +86,7 @@ "@walmart/amp-mini-app": "1.1.80", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.22.3", - "@walmart/associate-listening-mini-app": "1.2.1-feat-529b8e6", + "@walmart/associate-listening-mini-app": "1.2.1-feat-8d61d27", "@walmart/attendance-mini-app": "3.44.0", "@walmart/avp-feature-app": "0.5.1", "@walmart/avp-shared-library": "0.5.2", --- yarn.lock @@ -5664,9 +5664,9 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-listening-mini-app@npm:1.2.1-feat-529b8e6": - version: 1.2.1-feat-529b8e6 - resolution: "@walmart/associate-listening-mini-app@npm:1.2.1-feat-529b8e6" +"@walmart/associate-listening-mini-app@npm:1.2.1-feat-8d61d27": + version: 1.2.1-feat-8d61d27 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.1-feat-8d61d27" dependencies: "@walmart/associate-listening-utils": "npm:5.0.45" peerDependencies: @@ -5677,7 +5677,7 @@ __metadata: "@walmart/gtp-shared-components": 2.0.5 react: ^18.2.0 react-native: 0.70.9 - checksum: 10c0/5bb11d800de9c4a3d1d50d2a4d60d3688c220fc187d4b29d3757ab8b53dbcc83616a625ca433c4c9d47366244701c8536c7a25e0a79a54386179a7a51a542794 + checksum: 10c0/899a79ad7e7f77d270f86fda3ee52cf64a3f86bab494847ef07ba01d884c747a48f5c995d7bf078d9bbb7e4552d46096692d7e00f7d80fe6af794e7f36ac5557 languageName: node linkType: hard @@ -7773,7 +7773,7 @@ __metadata: "@walmart/amp-mini-app": "npm:1.1.80" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.22.3" - "@walmart/associate-listening-mini-app": "npm:1.2.1-feat-529b8e6" + "@walmart/associate-listening-mini-app": "npm:1.2.1-feat-8d61d27" "@walmart/attendance-mini-app": "npm:3.44.0" "@walmart/avp-feature-app": "npm:0.5.1" "@walmart/avp-shared-library": "npm:0.5.2"
fix: update associate-listening mini app version
fix: update associate-listening mini app version fixes a accessibility translation on the take survey button
77a511329b069f67ca42e94781bd158939c1aac0
--- package-lock.json @@ -63,7 +63,7 @@ "@walmart/iteminfo-mini-app": "7.4.0", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", - "@walmart/metrics-mini-app": "0.15.12", + "@walmart/metrics-mini-app": "0.15.13", "@walmart/mod-flex-mini-app": "1.10.4", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16", @@ -8675,9 +8675,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.15.12", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.12.tgz", - "integrity": "sha512-/+m61VGq/w4CGkd43LYMa7S/Qgfyc5s4DxivY+xqplg7l+dEe+qZJwmWYjelEJ+xrVcI9n0JhTzMrtLD+nHAlA==", + "version": "0.15.13", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.13.tgz", + "integrity": "sha512-l6q4v8UStQNtFNOcuZPF8nnViN4aCoAtH6qmBz9J4UqIt35vXySDkKxbcBPtIH2O4I7DRGvumnY1sfNn0B2aiA==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -33686,9 +33686,9 @@ "integrity": "sha512-JvV5AUWQ51uTUyD3LNk0UD8W5nQjUTRnMdJMvh2x3OHmKAhqTGctHoKjcpBzrtZlBie6e6Az3CUWtPrcA2TZwA==" }, "@walmart/metrics-mini-app": { - "version": "0.15.12", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.12.tgz", - "integrity": "sha512-/+m61VGq/w4CGkd43LYMa7S/Qgfyc5s4DxivY+xqplg7l+dEe+qZJwmWYjelEJ+xrVcI9n0JhTzMrtLD+nHAlA==", + "version": "0.15.13", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.13.tgz", + "integrity": "sha512-l6q4v8UStQNtFNOcuZPF8nnViN4aCoAtH6qmBz9J4UqIt35vXySDkKxbcBPtIH2O4I7DRGvumnY1sfNn0B2aiA==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2",
updating version bump in package-lock.json file
updating version bump in package-lock.json file
afe10db0dcfe879e2c57907f6961095a337c3b61
--- package.json @@ -138,7 +138,7 @@ "@walmart/pay-stub-miniapp": "0.24.15", "@walmart/payrollsolution_miniapp": "0.155.2", "@walmart/persona-hub": "0.3.3", - "@walmart/price-changes-mini-app": "1.15.1", + "@walmart/price-changes-mini-app": "1.15.2", "@walmart/profile-feature-app": "2.8.1-UPV2MyWalmart.8", "@walmart/react-native-barcode-builder": "^1.0.1", "@walmart/react-native-cookies": "1.0.1", --- yarn.lock @@ -8538,7 +8538,7 @@ __metadata: "@walmart/pay-stub-miniapp": "npm:0.24.15" "@walmart/payrollsolution_miniapp": "npm:0.155.2" "@walmart/persona-hub": "npm:0.3.3" - "@walmart/price-changes-mini-app": "npm:1.15.1" + "@walmart/price-changes-mini-app": "npm:1.15.2" "@walmart/profile-feature-app": "npm:2.8.1-UPV2MyWalmart.8" "@walmart/react-native-barcode-builder": "npm:^1.0.1" "@walmart/react-native-cookies": "npm:1.0.1" @@ -8966,9 +8966,9 @@ __metadata: languageName: node linkType: hard -"@walmart/price-changes-mini-app@npm:1.15.1": - version: 1.15.1 - resolution: "@walmart/price-changes-mini-app@npm:1.15.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.15.1.tgz" +"@walmart/price-changes-mini-app@npm:1.15.2": + version: 1.15.2 + resolution: "@walmart/price-changes-mini-app@npm:1.15.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.15.2.tgz" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.2.0" @@ -8987,7 +8987,7 @@ __metadata: redux-saga: ^1.1.3 reduxsauce: ^1.2.0 uuid: ^3.3.2 - checksum: 10c0/4960c3f415d1d56c23660567cebff18eae9019ad37a4abe3beef7203066ef1e54fc51f5385f7acf58ea58584fa7a339553dc2907e225a6546ecd69feec5fbe88 + checksum: 10c0/d6d0583fd6ef0896f757a6a311f7de3e430c0140fc2ea746ca7907fbbfcb559f2124186a14b9625735df2c70636957c6ded6311a8edc386ad137f67f28a768e3 languageName: node linkType: hard
chore: pc version update
chore: pc version update
96fb3be00aa3317611257604332bb52a1546eec3
--- src/notification.ts @@ -33,16 +33,22 @@ const goToMessageScreenForChannel = ( }; const triggerSoundFeedback = async () => { - const sound = new Audio.Sound(); try { - sound.loadAsync( + const {sound} = await Audio.Sound.createAsync( require('./media/corevoice_src_main_res_raw_textingsound.wav'), + {shouldPlay: true}, + (status) => { + if (status.isLoaded) { + const {didJustFinish} = status; + if (didJustFinish) { + sound.unloadAsync(); + } + } + }, ); - await sound.playAsync(); - sound.stopAsync(); } catch (e) { logger.error('audio error', { - message: 'error while loading audio from notification', + message: `'error while loading and playing audio from notification: ${e}'`, }); } }; --- src/notification.ts @@ -33,16 +33,22 @@ const goToMessageScreenForChannel = ( }; const triggerSoundFeedback = async () => { - const sound = new Audio.Sound(); try { - sound.loadAsync( + const {sound} = await Audio.Sound.createAsync( require('./media/corevoice_src_main_res_raw_textingsound.wav'), + {shouldPlay: true}, + (status) => { + if (status.isLoaded) { + const {didJustFinish} = status; + if (didJustFinish) { + sound.unloadAsync(); + } + } + }, ); - await sound.playAsync(); - sound.stopAsync(); } catch (e) { logger.error('audio error', { - message: 'error while loading audio from notification', + message: `'error while loading and playing audio from notification: ${e}'`, }); } };
fixing audio playing on notification
fixing audio playing on notification
3466152c00eefd04a10cd46274fef041262d5dd9
--- src/auth/ErrorScreen.tsx @@ -95,7 +95,7 @@ export const ErrorScreen: FC<any> = (props) => { userId: encryptUserId(userIdValue.toUpperCase(), siteId), siteId: siteId, code: errorCategory.code, - errorCategory: errorCategory[lang], + errorCategory: errorCategory['en-US'], }; if (errorCategory[lang] === translate('ssoError.other')) { logMsg.devicetype = deviceType;
changed log to english
changed log to english
c102117999707fcbbe2dfe65bf64d6fadaff7cc7
--- core/__tests__/__mocks__/@walmart/allspark-foundation/Translation.js @@ -1,6 +1,5 @@ module.exports = { ...jest.requireActual('@walmart/allspark-foundation/Translation'), - useAllsparkTranslation: jest.fn(), AllsparkTranslationClient: { t: jest.fn((key) => key), language: 'language', --- core/__tests__/core/FeatureToggleGuardTest.tsx @@ -13,11 +13,13 @@ jest.mock('../../src/oneClick/useOneClick'); const mockUseOneClick = useOneClick as jest.Mock; const mockTranslate = jest.fn((key, params) => `${key}_${params?.featureId || ''}`); +jest.mock('@walmart/allspark-foundation/Translation', () => ({ + useAllsparkTranslation: jest.fn(() => [mockTranslate]), +})); describe('FeatureToggleGuard', () => { beforeEach(() => { jest.clearAllMocks(); - (useAllsparkTranslation as jest.Mock).mockImplementation(() => [mockTranslate]); }); it('renders children when feature is enabled', () => {
re-added translation mock
re-added translation mock
20e20040bacbcf5e9112576b18fcaa0ccbf3d68d
--- __tests__/startup/dataSaverInitTest.ts @@ -2,7 +2,7 @@ import { cellularDataSaverSagas, onConnectivityChange, } from '../../src/startup/dataSaverInit'; -import {takeLatest, select} from 'redux-saga/effects'; +import {takeLatest, select, call} from 'redux-saga/effects'; import {getConnectivity, SET_CONNECTIVITY} from '@walmart/settings-mini-app'; import {getSettingsAppConfig} from '../../src/redux/SharedSelectors'; import {HttpClient} from '../../src/core/HttpClient'; @@ -51,6 +51,7 @@ describe('dataSaverInit', () => { describe('cellularDataSaverSagas', () => { it('sets up listener', () => { const iterator = cellularDataSaverSagas(); + expect(iterator.next().value).toEqual(call(onConnectivityChange)); expect(iterator.next().value).toEqual( takeLatest([SET_CONNECTIVITY], onConnectivityChange), ); --- src/startup/dataSaverInit.ts @@ -1,4 +1,4 @@ -import {takeLatest, select} from 'redux-saga/effects'; +import {takeLatest, select, call} from 'redux-saga/effects'; import {FeatureAppConfig} from '@walmart/redux-store'; import {createRestartableSaga} from '@walmart/core-utils'; import {getConnectivity, SET_CONNECTIVITY} from '@walmart/settings-mini-app'; @@ -23,6 +23,7 @@ export function* onConnectivityChange() { } export function* cellularDataSaverSagas() { + yield call(onConnectivityChange); yield createRestartableSaga( takeLatest([SET_CONNECTIVITY], onConnectivityChange), Logger.error,
Fixing data saver not working after restart
Fixing data saver not working after restart
4bf38da664d7f483140ad2a8bb51a568498d9074
--- src/common/container.ts @@ -1,5 +1,5 @@ -import {AllsparkComponentContainers} from '@walmart/allspark-foundation'; +import {ComponentsModule} from '@walmart/allspark-foundation'; import {FEATURE_ID} from './constants'; export const WmConnectContainer = - AllsparkComponentContainers.create<any>(FEATURE_ID); + ComponentsModule.ComponentContainers.create<any>(FEATURE_ID);
feat(ui): update allspark components
feat(ui): update allspark components
800f59a4b3c3132ab9fbad40ba76c65dd11c63f6
--- src/channels/utils.ts @@ -6,7 +6,7 @@ import CryptoJS from 'crypto-js'; * @returns SHA256 encrypted value of sorted participants */ export const createAssociateChannelId = (participants: string[]) => { - const sortData = participants.sort(); + const sortData = [...participants].sort(); const data = sortData.join('-'); const hash = CryptoJS.SHA256(data); return hash.toString(CryptoJS.enc.Hex); --- src/components/TeamList.tsx @@ -246,22 +246,20 @@ export const TeamItem = (props: TeamItemProps) => { trailing={ canMessage && isMessageButtonEnabled && !isNil(actionButtons) ? ( <View style={styles.buttonsStyle}> - {actionButtons.map( - (actionButton: RosterActionButton, index: number) => { - return ( - <Button - key={actionButton.i18nLabel + index} - variant={'secondary'} - UNSAFE_style={styles.actionButtonSpacing} - onPress={() => actionButton.action(team)} - size={'small'} - disabled={!userIsInRoster || !userIsImpersonatedOnDev} - testID={`actionButton-${actionButton.i18nLabel}`}> - <Text>{t(actionButton.i18nLabel)}</Text> - </Button> - ); - }, - )} + {actionButtons.map((actionButton: RosterActionButton) => { + return ( + <Button + key={actionButton.i18nLabel + actionButtons.length} + variant={'secondary'} + UNSAFE_style={styles.actionButtonSpacing} + onPress={() => actionButton.action(team)} + size={'small'} + disabled={!userIsInRoster || !userIsImpersonatedOnDev} + testID={`actionButton-${actionButton.i18nLabel}`}> + <Text>{t(actionButton.i18nLabel)}</Text> + </Button> + ); + })} </View> ) : showViewTeam ? ( <Body weight='400' size='small'> @@ -347,22 +345,20 @@ const StoreTeamItem = (props: { trailing={ <View testID='totalStoreMessage' style={styles.buttonsStyle}> {isMessageButtonEnabled && - actionButtons?.map( - (actionButton: RosterActionButton, index: number) => { - return ( - <Button - key={actionButton.i18nLabel + index} - variant={'secondary'} - UNSAFE_style={styles.actionButtonSpacing} - onPress={() => actionButton.action({teamId: 'TOTAL_STORE'})} - size={'small'} - disabled={!userIsInRoster || !userIsImpersonatedOnDev} - testID={`actionButton-${actionButton.i18nLabel}`}> - <Text>{t(actionButton.i18nLabel)}</Text> - </Button> - ); - }, - )} + actionButtons?.map((actionButton: RosterActionButton) => { + return ( + <Button + key={actionButton.i18nLabel + actionButtons.length} + variant={'secondary'} + UNSAFE_style={styles.actionButtonSpacing} + onPress={() => actionButton.action({teamId: 'TOTAL_STORE'})} + size={'small'} + disabled={!userIsInRoster || !userIsImpersonatedOnDev} + testID={`actionButton-${actionButton.i18nLabel}`}> + <Text>{t(actionButton.i18nLabel)}</Text> + </Button> + ); + })} </View> }> {showClockInCount ? ( @@ -438,7 +434,7 @@ export const TeamChatCard = (props: { const isLastItem = teamItemIndex === teams.length - 1; return ( <TeamItem - key={teamItemInfo.teamId! + teamItemIndex} + key={teamItemInfo.teamId! + teams.length} teamId={teamItemInfo.teamId!} style={isLastItem && styles.lastTeamItem} clockedInCount={teamItemInfo.mewClockedInCount ?? 0} @@ -452,7 +448,7 @@ export const TeamChatCard = (props: { const isLastWorkgroup = workgroupIndex === sortedWorkgroupKeys.length - 1; return ( <CardContent - key={workgroupName! + workgroupIndex} + key={workgroupName! + sortedWorkgroupKeys.length} UNSAFE_style={[ styles.workgroupCardContainer, isLastWorkgroup && styles.lastWorkgroupCardContainer, --- src/navigation/components.tsx @@ -53,7 +53,7 @@ export const LivingDesignTabBar = (props: MaterialTopTabBarProps) => { return ( <TabNavigationItem - key={route.name + index} + key={route.name} testID='tabNavigationItem' index={index} isCurrent={isFocused}
feat(ui): fixed critical sonar violations
feat(ui): fixed critical sonar violations
47474162b6973e8c5eb41f5e3cf4dd689ed6053c
--- graphql.yml @@ -30,7 +30,7 @@ applications: - name: 'GetTeamsByStore' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - - 'v1' + - 'v2' - name: 'upsertAssociateTextPreferences' queryTemplate: 'src/queries/upsertAssociateTextPreference.graphql' tags: @@ -56,7 +56,7 @@ applications: - name: 'GetTeamsByStore' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - - 'v1' + - 'v2' - name: 'upsertAssociateTextPreferences' queryTemplate: 'src/queries/upsertAssociateTextPreference.graphql' tags: @@ -82,7 +82,7 @@ applications: # - name: "GetTeamsByStore" # queryTemplate: "src/queries/getTeamsbyStore.graphql" # tags: - # - "v1" + # - "v2" # - name: "upsertAssociateTextPreferences" # queryTemplate: "src/queries/upsertAssociateTextPreference.graphql" # tags: --- src/hooks/teams.ts @@ -55,7 +55,7 @@ export const useGetTeamsByStore = () => { variables: { includeManagement: true, businessUnitNumber: Number(storeNbr)!, - storeNbr: storeNbr!, + siteNbr: storeNbr!, date: moment().format('YYYY-MM-DD'), countryCode: countryCode!, }, --- src/queries/getTeamsbyStore.graphql @@ -1,8 +1,8 @@ -query GetTeamsByStore($businessUnitNumber: Int!, $countryCode: String!, $date: Date!, $includeManagement: Boolean, $storeNbr: String!) { +query GetTeamsByStore($businessUnitNumber: Int!, $countryCode: String!, $date: Date!, $includeManagement: Boolean, $siteNbr: String!) { getTeamsByStore( countryCode: $countryCode includeManagement: $includeManagement - storeNbr: $storeNbr + storeNbr: $siteNbr ) { __typename members @@ -33,7 +33,6 @@ query GetTeamsByStore($businessUnitNumber: Int!, $countryCode: String!, $date: D mewClockedInCount mewClockedOutCount mewTardyCount(date: $date) - site teamId teamName workgroup --- src/queries/getTeamsbyStore.ts @@ -9,7 +9,7 @@ export type GetTeamsByStoreQueryVariables = Types.Exact<{ countryCode: Types.Scalars['String']; date: Types.Scalars['Date']; includeManagement?: Types.InputMaybe<Types.Scalars['Boolean']>; - storeNbr: Types.Scalars['String']; + siteNbr: Types.Scalars['String']; }>; export type GetTeamsByStoreQuery = { @@ -21,7 +21,6 @@ export type GetTeamsByStoreQuery = { mewClockedInCount?: number | null; mewClockedOutCount?: number | null; mewTardyCount?: number | null; - site?: string | null; teamId?: string | null; teamName?: string | null; workgroup?: string | null; @@ -53,12 +52,12 @@ export const GetTeamsByStoreDocument = gql` $countryCode: String! $date: Date! $includeManagement: Boolean - $storeNbr: String! + $siteNbr: String! ) { getTeamsByStore( countryCode: $countryCode includeManagement: $includeManagement - storeNbr: $storeNbr + storeNbr: $siteNbr ) { __typename members @@ -89,7 +88,6 @@ export const GetTeamsByStoreDocument = gql` mewClockedInCount mewClockedOutCount mewTardyCount(date: $date) - site teamId teamName workgroup @@ -114,7 +112,7 @@ export const GetTeamsByStoreDocument = gql` * countryCode: // value for 'countryCode' * date: // value for 'date' * includeManagement: // value for 'includeManagement' - * storeNbr: // value for 'storeNbr' + * siteNbr: // value for 'siteNbr' * }, * }); */
Update teams query
Update teams query
5884ec530228bdf07f1f0752cdb5899918536e12
--- packages/core-widget-registry/src/AskSam/index.ts @@ -1,5 +1,4 @@ -import { createRegistryHook } from '@walmart/allspark-utils'; -import { WidgetRegistry } from '../WidgetRegistry'; +import { createRegistryHook, WidgetRegistry } from '@walmart/allspark-utils'; import { AskSamWidgetProps } from './types'; export const AskSamWidgetRegistry = new WidgetRegistry< --- packages/core-widget-registry/src/AskSam/types.ts @@ -1,5 +1,5 @@ import { StyleProp, ViewStyle } from 'react-native'; -import { WidgetRenderProps } from '../WidgetRegistry'; +import { WidgetRenderProps } from '@walmart/allspark-utils'; export type ThisTimeEntity = | 'thissunday' --- packages/core-widget-registry/src/Core.ts @@ -1,10 +1,10 @@ import { StyleProp, ViewStyle } from 'react-native'; -import { createRegistryHook } from '@walmart/allspark-utils'; import { + createRegistryHook, createWidgetRegistryHooks, WidgetRegistry, WidgetRenderProps, -} from './WidgetRegistry'; +} from '@walmart/allspark-utils'; // --- Banners --- // export interface NavigationBannerProps extends WidgetRenderProps { --- packages/core-widget-registry/src/Home.ts @@ -1,6 +1,9 @@ import { StyleProp, ViewStyle } from 'react-native'; -import { createRegistryHook } from '@walmart/allspark-utils'; -import { WidgetRegistry, WidgetRenderProps } from './WidgetRegistry'; +import { + createRegistryHook, + WidgetRegistry, + WidgetRenderProps, +} from '@walmart/allspark-utils'; export interface HomeWidgetProps extends WidgetRenderProps { refresh: boolean; --- packages/core-widget-registry/src/Metrics.ts @@ -1,6 +1,9 @@ import { StyleProp, ViewStyle } from 'react-native'; -import { createRegistryHook } from '@walmart/allspark-utils'; -import { WidgetRegistry, WidgetRenderProps } from './WidgetRegistry'; +import { + createRegistryHook, + WidgetRegistry, + WidgetRenderProps, +} from '@walmart/allspark-utils'; export type PayloadStatusType = 'ok' | 'stale' | 'failed'; --- packages/core-widget-registry/src/WidgetRegistry.tsx @@ -1,76 +0,0 @@ -import React, { ComponentType } from 'react'; -import { Registry, useRegistry } from '@walmart/allspark-utils'; - -// --- Widget Registry --- // -export type WidgetRenderProps = Record<string, any>; - -export class WidgetRegistry< - K extends string = string, - T extends WidgetRenderProps = WidgetRenderProps -> extends Registry<K, ComponentType<T>> {} - -// --- Utility Types --- // -// To extract widget render keys/props from generic registry typing -type ExtractWidgetRegistryKeys<Registry> = Registry extends WidgetRegistry< - infer K -> - ? K - : string; - -type ExtractWidgetRegistryProps<Registry> = Registry extends WidgetRegistry< - string, - infer T -> - ? T - : any; - -// --- Widget Registry Hooks --- // - -/** - * @description - * Creates component from widget registry for given id/props - */ -export const useCreateRegistryComponent = <R extends WidgetRegistry<any, any>>( - widgetRegistry: R, - id: ExtractWidgetRegistryKeys<R>, - props: ExtractWidgetRegistryProps<R> -) => { - const registry = useRegistry(widgetRegistry); - const Component = registry.get(id); - - return Component - ? ((<Component {...props} />) as unknown as ComponentType< - ExtractWidgetRegistryProps<R> - >) - : null; -}; - -/** - * @description - * Creates component list for all items in registry for given props - */ -export const useCreateRegistryComponents = <R extends WidgetRegistry<any, any>>( - widgetRegistry: R, - props: ExtractWidgetRegistryProps<R> -) => { - const registry = useRegistry(widgetRegistry); - - return registry.map((Component) => <Component {...props} />) as ComponentType< - ExtractWidgetRegistryProps<R> - >[]; -}; - -/** - * @description - * Creates common hooks for a given widget registry - */ -export const createWidgetRegistryHooks = <R extends WidgetRegistry<any, any>>( - registry: R -) => ({ - useCreateRegistryComponent: ( - id: ExtractWidgetRegistryKeys<R>, - props: ExtractWidgetRegistryProps<R> - ) => useCreateRegistryComponent<R>(registry, id, props), - useCreateRegistryComponents: (props: ExtractWidgetRegistryProps<R>) => - useCreateRegistryComponents<R>(registry, props), -}); --- packages/core-widget-registry/src/index.tsx @@ -2,4 +2,3 @@ export * from './AskSam'; export * from './Core'; export * from './Home'; export * from './Metrics'; -export * from './WidgetRegistry';
feat: use widget registry from allspark utils
feat: use widget registry from allspark utils
4012b25fb1817fed30e23164c5c100006f29dff1
--- jest.config.js @@ -5,10 +5,10 @@ module.exports = { collectCoverageFrom: ['<rootDir>/src/**/*.{js,jsx,ts,tsx}'], coverageThreshold: { global: { - statements: 24.3, - branches: 7.8, - functions: 9.68, - lines: 25, + statements: 24.67, + branches: 7.96, + functions: 10.4, + lines: 25.39, }, }, transformIgnorePatterns: [ --- jest.config.js @@ -5,10 +5,10 @@ module.exports = { collectCoverageFrom: ['<rootDir>/src/**/*.{js,jsx,ts,tsx}'], coverageThreshold: { global: { - statements: 24.3, - branches: 7.8, - functions: 9.68, - lines: 25, + statements: 24.67, + branches: 7.96, + functions: 10.4, + lines: 25.39, }, }, transformIgnorePatterns: [
boosting coverage thresh
boosting coverage thresh
ebba63d7965b2717880c0faa210204735249109e
--- __tests__/AppTest.tsx @@ -1,14 +1,21 @@ import React from 'react'; import {create} from 'react-test-renderer'; -import {App} from '../src/index'; import {useSelector} from 'react-redux'; -import {BaseApp} from '../src/index'; import {MeAtWalmartContainer} from '@walmart/me-at-walmart-container'; import CodePush from 'react-native-code-push'; import {it} from '@jest/globals'; +import {BaseApp, App} from '../src/index'; const mockUseSelector = useSelector as jest.Mock; +jest.mock('../src/features/RootFeatures', () => ({ + initRootFeatures: jest.fn(() => Promise.resolve()), +})); + +jest.mock('../src/navigation', () => ({ + RootStackNavigation: 'RootStackNavigation', +})); + describe('RootContainer', () => { it('renders and fires startup event', () => { mockUseSelector.mockReturnValueOnce({userId: 'jdoe'}); // userId --- __tests__/__mocks__/@walmart/allspark-utils.js @@ -9,4 +9,6 @@ module.exports = { // Sagas createRestartableSaga: jest.fn((saga) => saga), createRestartableSagas: jest.fn((sagas) => sagas), + + RenderGuard: 'RenderGuard', }; --- __tests__/__snapshots__/AppTest.tsx.snap @@ -4,12 +4,24 @@ exports[`RootContainer renders and fires startup event 1`] = ` <Provider env="dev" environmentOverrides={{}} -/> +> + <RenderGuard + preRender={[MockFunction]} + > + <RootStackNavigation /> + </RenderGuard> +</Provider> `; exports[`RootContainer renders with no linking config on undefined userid 1`] = ` <Provider env="dev" environmentOverrides={{}} -/> +> + <RenderGuard + preRender={[MockFunction]} + > + <RootStackNavigation /> + </RenderGuard> +</Provider> `; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/DrawerNavTest.tsx.snap @@ -1,105 +1,113 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`DrawerNav matches default snapshot for initial render 1`] = ` -<ActivityMonitor - backgroundIdleTime={60000} - inactivityTime={30000} - onIdleTimeLapsed={[Function]} - pinFeatureEnabled={true} - siteIdPresent={false} +<RenderGuard + preRenderHook={[MockFunction]} > - <Header.Provider - value={ - { - "renderBanners": "Banners", - } - } + <ActivityMonitor + backgroundIdleTime={60000} + inactivityTime={30000} + onIdleTimeLapsed={[Function]} + pinFeatureEnabled={true} + siteIdPresent={false} > - <DrawerButton.Provider + <Header.Provider value={ { - "drawerLocked": undefined, - "lockDrawer": undefined, - "renderBadge": [Function], - "toggleDrawerLocked": undefined, - "unlockDrawer": undefined, + "renderBanners": "Banners", } } > - <Navigator - drawerContent={[Function]} - screenOptions={ + <DrawerButton.Provider + value={ { - "drawerStyle": { - "left": 0, - "width": 667.5, - }, - "drawerType": "front", - "headerShown": false, - "overlayColor": "rgba(0, 0, 0, 0.6)", - "swipeEnabled": true, + "drawerLocked": undefined, + "lockDrawer": undefined, + "renderBadge": [Function], + "toggleDrawerLocked": undefined, + "unlockDrawer": undefined, } } > - <Screen - component="MainStackNav" - name="mainStack" - /> - </Navigator> - </DrawerButton.Provider> - </Header.Provider> -</ActivityMonitor> + <Navigator + drawerContent={[Function]} + screenOptions={ + { + "drawerStyle": { + "left": 0, + "width": 667.5, + }, + "drawerType": "front", + "headerShown": false, + "overlayColor": "rgba(0, 0, 0, 0.6)", + "swipeEnabled": true, + } + } + > + <Screen + component="MainStackNav" + name="mainStack" + /> + </Navigator> + </DrawerButton.Provider> + </Header.Provider> + </ActivityMonitor> +</RenderGuard> `; exports[`DrawerNav matches snapshot after initial render 1`] = ` -<ActivityMonitor - backgroundIdleTime={60000} - inactivityTime={30000} - onIdleTimeLapsed={[Function]} - pinFeatureEnabled={true} - siteIdPresent={true} +<RenderGuard + preRenderHook={[MockFunction]} > - <Header.Provider - value={ - { - "renderBanners": "Banners", - } - } + <ActivityMonitor + backgroundIdleTime={60000} + inactivityTime={30000} + onIdleTimeLapsed={[Function]} + pinFeatureEnabled={true} + siteIdPresent={true} > - <DrawerButton.Provider + <Header.Provider value={ { - "drawerLocked": undefined, - "lockDrawer": undefined, - "renderBadge": [Function], - "toggleDrawerLocked": undefined, - "unlockDrawer": undefined, + "renderBanners": "Banners", } } > - <Navigator - drawerContent={[Function]} - screenOptions={ + <DrawerButton.Provider + value={ { - "drawerStyle": { - "left": 0, - "width": 667.5, - }, - "drawerType": "front", - "headerShown": false, - "overlayColor": "rgba(0, 0, 0, 0.6)", - "swipeEnabled": true, + "drawerLocked": undefined, + "lockDrawer": undefined, + "renderBadge": [Function], + "toggleDrawerLocked": undefined, + "unlockDrawer": undefined, } } > - <Screen - component="MainStackNav" - name="mainStack" - /> - </Navigator> - </DrawerButton.Provider> - </Header.Provider> -</ActivityMonitor> + <Navigator + drawerContent={[Function]} + screenOptions={ + { + "drawerStyle": { + "left": 0, + "width": 667.5, + }, + "drawerType": "front", + "headerShown": false, + "overlayColor": "rgba(0, 0, 0, 0.6)", + "swipeEnabled": true, + } + } + > + <Screen + component="MainStackNav" + name="mainStack" + /> + </Navigator> + </DrawerButton.Provider> + </Header.Provider> + </ActivityMonitor> +</RenderGuard> `; exports[`renderSideMenuContent matches snapshot 1`] = `<SideMenuContent />`;
chore: test updates
chore: test updates
c8c9bfe14de1381a0111d9405cded7705522be11
--- package.json @@ -135,7 +135,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.17.0", + "@walmart/allspark-foundation": "6.17.1", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-utils": "~6.5.0", --- targets/US/package.json @@ -77,7 +77,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "~6.4.1", "@walmart/allspark-cope-key-listener": "0.0.17", - "@walmart/allspark-foundation": "6.17.0", + "@walmart/allspark-foundation": "6.17.1", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -5679,9 +5679,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.17.0": - version: 6.17.0 - resolution: "@walmart/allspark-foundation@npm:6.17.0" +"@walmart/allspark-foundation@npm:6.17.1": + version: 6.17.1 + resolution: "@walmart/allspark-foundation@npm:6.17.1" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -5774,7 +5774,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/719e3e4110b71a5d5293d938cac04b20e45ef8d3029d06c26df93b5efd2d636feeefe6dc7a754748e3e869a16f0c9b12785bcad127a77724d7ac5e8a6e9ef3cd + checksum: 10c0/005606a2fd8fe4de8531ecc6f55faeaf3a7dcde573917d1bca7f1360240b5c215c0726f8b7cbdfea272aa67a165d1280761b60f3db324052a140edcbef5ed1cd languageName: node linkType: hard @@ -7057,7 +7057,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.17" - "@walmart/allspark-foundation": "npm:6.17.0" + "@walmart/allspark-foundation": "npm:6.17.1" "@walmart/allspark-graphql-client": "npm:~6.3.20" "@walmart/allspark-http-client": "npm:~6.3.20" "@walmart/allspark-neon-core": "npm:0.1.31"
chore: bump foundation to latest patch version
chore: bump foundation to latest patch version
b7a58433cbdf34262873696d288d235ccad174db
--- .yarn/patches/expo-image-npm-2.0.7-adb639d59c.patch @@ -1,8 +1,8 @@ diff --git a/ios/ExpoImage.podspec b/ios/ExpoImage.podspec -index 21bef71a3e1551e0a6a8cd5a7675040752764405..695a274072e1d47caeb85e7504a26568cafe7128 100644 +index 21bef71a3e1551e0a6a8cd5a7675040752764405..58017b80c7ef7fd31c585371aac82225b2a8ceaa 100644 --- a/ios/ExpoImage.podspec +++ b/ios/ExpoImage.podspec -@@ -19,7 +19,7 @@ Pod::Spec.new do |s| +@@ -19,10 +19,12 @@ Pod::Spec.new do |s| s.static_framework = true s.dependency 'ExpoModulesCore' @@ -10,4 +10,10 @@ index 21bef71a3e1551e0a6a8cd5a7675040752764405..695a274072e1d47caeb85e7504a26568 + s.dependency 'SDWebImage', '~> 5.21.0' s.dependency 'SDWebImageAVIFCoder', '~> 0.11.0' s.dependency 'SDWebImageSVGCoder', '~> 1.7.0' - s.dependency 'libavif/libdav1d' +- s.dependency 'libavif/libdav1d' ++ s.dependency 'libavif' ++ s.dependency 'librav1e' ++ s.dependency 'libgav1' + + # Swift/Objective-C compatibility + s.pod_target_xcconfig = { --- yarn.lock @@ -14240,7 +14240,7 @@ __metadata: "expo-image@patch:expo-image@npm%3A2.0.7#~/.yarn/patches/expo-image-npm-2.0.7-adb639d59c.patch": version: 2.0.7 - resolution: "expo-image@patch:expo-image@npm%3A2.0.7%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Fexpo-image%252F-%252Fexpo-image-2.0.7.tgz#~/.yarn/patches/expo-image-npm-2.0.7-adb639d59c.patch::version=2.0.7&hash=7a754e" + resolution: "expo-image@patch:expo-image@npm%3A2.0.7%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Fexpo-image%252F-%252Fexpo-image-2.0.7.tgz#~/.yarn/patches/expo-image-npm-2.0.7-adb639d59c.patch::version=2.0.7&hash=50a6fb" peerDependencies: expo: "*" react: "*" @@ -14249,7 +14249,7 @@ __metadata: peerDependenciesMeta: react-native-web: optional: true - checksum: 10c0/6e4814da15dfc2c06797382296026d45ea82a19eac40920941d0fd33aef3f0516094035da2e9e4b6334c5ed64b9072b9ff34283fa2207f5a3a8aca86b8f108c1 + checksum: 10c0/588767018717978dd831fa44f832389dfb7a441618f7b205dc5e2222d0d00f395d9b6075bbbdb527f0b37ddfdc78c17b6397d6b7d584d81f4bde823d9a2cb8c1 languageName: node linkType: hard
fix(image-symbol): fixed ios expo image symbol issue
fix(image-symbol): fixed ios expo image symbol issue
9bb2328583e1566ba355ae8940beac62ee78c6df
--- packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.ts @@ -1,7 +1,14 @@ import * as Types from './schema.types'; -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -import * as ApolloReactHooks from '@apollo/client'; +import { + gql, + useQuery, + useLazyQuery, + useSuspenseQuery, + QueryHookOptions, + LazyQueryHookOptions, + SuspenseQueryHookOptions, + QueryResult, +} from '@apollo/client'; const defaultOptions = {} as const; @@ -130,39 +137,39 @@ export const GetForYouHeaderAssociateDetailsDocument = gql` `; export function useGetForYouHeaderAssociateDetailsQuery( - baseOptions: ApolloReactHooks.QueryHookOptions< + baseOptions: QueryHookOptions< GetForYouHeaderAssociateDetailsQuery, GetForYouHeaderAssociateDetailsQueryVariables > ) { const options = { ...defaultOptions, ...baseOptions }; - return ApolloReactHooks.useQuery< + return useQuery< GetForYouHeaderAssociateDetailsQuery, GetForYouHeaderAssociateDetailsQueryVariables >(GetForYouHeaderAssociateDetailsDocument, options); } export function useGetForYouHeaderAssociateDetailsLazyQuery( - baseOptions?: ApolloReactHooks.LazyQueryHookOptions< + baseOptions?: LazyQueryHookOptions< GetForYouHeaderAssociateDetailsQuery, GetForYouHeaderAssociateDetailsQueryVariables > ) { const options = { ...defaultOptions, ...baseOptions }; - return ApolloReactHooks.useLazyQuery< + return useLazyQuery< GetForYouHeaderAssociateDetailsQuery, GetForYouHeaderAssociateDetailsQueryVariables >(GetForYouHeaderAssociateDetailsDocument, options); } export function useGetForYouHeaderAssociateDetailsSuspenseQuery( - baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions< + baseOptions?: SuspenseQueryHookOptions< GetForYouHeaderAssociateDetailsQuery, GetForYouHeaderAssociateDetailsQueryVariables > ) { const options = { ...defaultOptions, ...baseOptions }; - return ApolloReactHooks.useSuspenseQuery< + return useSuspenseQuery< GetForYouHeaderAssociateDetailsQuery, GetForYouHeaderAssociateDetailsQueryVariables >(GetForYouHeaderAssociateDetailsDocument, options); @@ -180,7 +187,7 @@ export type GetForYouHeaderAssociateDetailsSuspenseQueryHookResult = ReturnType< typeof useGetForYouHeaderAssociateDetailsSuspenseQuery >; -export type GetForYouHeaderAssociateDetailsQueryResult = Apollo.QueryResult< +export type GetForYouHeaderAssociateDetailsQueryResult = QueryResult< GetForYouHeaderAssociateDetailsQuery, GetForYouHeaderAssociateDetailsQueryVariables >;
feat(graphql): Change imports
feat(graphql): Change imports
eb2bf5d855a5ac26e6317d25ed651f3333c3e742
--- .looper.multibranch.yml @@ -1,28 +1,17 @@ inherit: job:///allspark/allspark-core/allspark-template:allspark-template.yml -cache: - - name: npm-cache - configs: - - type: yarn - checksum: - - 'yarn.lock' - excludes: - - '.yarn' - flows: prepare-npm-project: - - withcache('npm-cache'): - - (name Yarn Install) corepack enable - - (name Yarn Version) yarn --version - - (name Install Dependencies) yarn install + - (name Yarn Install) corepack enable + - (name Yarn Version) yarn --version + - (name Install Dependencies) yarn install - (name Set NPM Env) npm run firebase:dev && cp env.dev.js env.js app-build-init: - call: initialize - - withcache('npm-cache'): - - (name Yarn Install) corepack enable - - (name Yarn Version) yarn --version - - (name Install Dependencies) yarn install + - (name Yarn Install) corepack enable + - (name Yarn Version) yarn --version + - (name Install Dependencies) yarn install - if: ${MULTI_BUILD} then: - call: set-build-number
chore: looper template change
chore: looper template change
f7e0c26ec894840e040b8527eaaa1d1f83876774
--- packages/me-at-walmart-container/src/services/user/getAssociateInfo.ts @@ -36,6 +36,7 @@ export async function getAssociateInfo(tokenData: TokenData) { }, }, errorPolicy: 'all', + fetchPolicy: 'network-only', }); const loggedInUser = response.data.getLoggedInUser;
fix: get logged in user was returning cached data
fix: get logged in user was returning cached data
8e7d9f29239b92149c108119484673e41fbecb04
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.6.0-beta.1", + "version": "3.6.0-beta.2", "main": "dist/index.js", "files": [ "dist",
feat(ui): update package
feat(ui): update package
0a6abc6fad8a37d8be171d6798200e3310e9cb5d
--- src/Redux/reducer.ts @@ -1,85 +1,15 @@ -import { createSlice, PayloadAction } from '@reduxjs/toolkit'; -import { FEATURE_ID } from '../common/constants'; +import { createSlice, PayloadAction } from "@reduxjs/toolkit"; +import { FEATURE_ID } from "../common/constants"; import { AllTeamsSections, SupplyChainTeam, TeamSwitcherTypes, -} from '../common/types'; - -// export const mockAllListData = Object.entries(StoreImages).map( -// ([key, value]) => ({ -// teamLabel: value.teamName, -// teamId: key, -// teamImage: { -// uri: value.uri, -// blurHash: value.blurhash, -// }, -// }) -// ); - -// // TODO: remove this when api is integrated -// export const mockSavedListData = [ -// { -// teamLabel: 'Digital', -// teamId: '1000326', -// teamImage: { -// uri: 'https://i5-me.walmartimages.com/images/teams/digital-mgr-exp-e10d2521ae.png', -// blurHash: 'KQGm$Q%L?a?GM}bF_Mj@aJ', -// }, -// }, -// { -// teamLabel: 'Hardlines', -// teamId: '1000187', -// teamImage: { -// uri: 'https://i5-me.walmartimages.com/images/teams/task-image-hardlines-4d16bea505.png', -// blurHash: 'KQGm$Q%L?a?GM}bF_Mj@aJ', -// }, -// }, -// { -// teamLabel: 'Admin & Support', -// teamId: '1000188', -// teamImage: { -// uri: 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png', -// blurHash: 'KQGm$Q%L?a?GM}bF_Mj@aJ', -// }, -// }, -// { -// teamLabel: 'Receiving', -// teamId: '1000189', -// teamImage: { -// uri: 'https://i5-me.walmartimages.com/images/supplychain/receiving-amb-32e1aa6a1a.png', -// blurHash: 'KQGm$Q%L?a?GM}bF_Mj@aJ', -// }, -// }, -// { -// teamLabel: 'Leadership - Other', -// teamId: '1000190', -// teamImage: { -// uri: 'https://i5-me.walmartimages.com/images/supplychain/area-manager-46adc6e8aa.png', -// blurHash: 'KQGm$Q%L?a?GM}bF_Mj@aJ', -// }, -// }, -// { -// teamLabel: 'Distribution', -// teamId: '1000192', -// teamImage: { -// uri: 'https://i5-me.walmartimages.com/images/supplychain/receiving-amb-32e1aa6a1a.png', -// blurHash: 'KQGm$Q%L?a?GM}bF_Mj@aJ', -// }, -// }, -// ]; - -// const excludedSavedItems = (savedItemsList: any[]) => { -// const savedItems = savedItemsList.map((item) => item.teamId); -// const allItems = mockAllListData.map((item) => item.teamId); -// const excludedItems = allItems.filter((item) => !savedItems.includes(item)); -// return mockAllListData.filter((item) => excludedItems.includes(item.teamId)); -// }; +} from "../common/types"; export const DEFAULT_SELECTED_TEAM = { - teamId: '', - teamLabel: '', - teamImage: { uri: '', blurhash: '' }, + teamId: "", + teamLabel: "", + teamImage: { uri: "", blurhash: "" }, }; export const INITIAL_STATE: any = { @@ -90,11 +20,11 @@ export const INITIAL_STATE: any = { mySupplyChainTeamsData: null, savedSiteShifts: [], savedSiteTeams: [], - selectedShifts: ['A1'], + selectedShifts: ["A1"], selectedTeamData: DEFAULT_SELECTED_TEAM, selectedTeamIDs: [], selectedTeamIdsFromTeamSelection: [], - selectedTeamPreference: '', + selectedTeamPreference: "", singleSelectEnable: false, teamUpsertError: false, userIsAlreadyOnboarded: false, @@ -104,11 +34,11 @@ export const INITIAL_STATE: any = { userTeamSelectionComplete: false, userTeamSelectionError: null, userTeamSelectionInProgress: false, - userTeamSelectionUpdatedTime: '', + userTeamSelectionUpdatedTime: "", // new - savedTeamSelection: '', - allTeamSelection: '', + savedTeamSelection: "", + allTeamSelection: "", savedTeams: [], allTeams: [], };
feat(ui): remove commented out code #SMDV-7856
feat(ui): remove commented out code #SMDV-7856
b0465777949962b80eff689bfa5f414824c395ab
--- package-lock.json @@ -37,7 +37,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.74", "@walmart/attendance-mini-app": "0.86.0", - "@walmart/compass-sdk-rn": "3.16.1", + "@walmart/compass-sdk-rn": "3.16.17", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.15", @@ -81,7 +81,7 @@ "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.28.14", - "@walmart/time-clock-mini-app": "2.85.0", + "@walmart/time-clock-mini-app": "2.85.1", "@walmart/topstock-mini-app": "1.0.5", "@walmart/ui-components": "1.11.1", "@walmart/welcomeme-mini-app": "0.76.0", @@ -4907,9 +4907,9 @@ } }, "node_modules/@walmart/compass-sdk-rn": { - "version": "3.16.1", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.1.tgz", - "integrity": "sha512-uosdKTI5vIqbp0WPCEO8Bwy/0uJuk6cy5clCyJJGpheGIRQiSPcsqBy+vx21TI+N/eA0XSqHgDAsckpKYgloWQ==", + "version": "3.16.17", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.17.tgz", + "integrity": "sha512-E3AWgniUS68f9DfWvhX1XoPuo9FFe2RXL0HxYcX6w9zq1wIu+sZX79Y9c0NL6pecNWOpKex/krNPMFYgC5q3RA==", "license": "MIT", "peerDependencies": { "react": "*", @@ -6073,7 +6073,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.85.0", + "version": "2.85.1", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.85.1.tgz", + "integrity": "sha512-GB9cxUONeEqLTjAF+NYfJslF0+8Slpvj9urqbhQ46FBc21cgsZWXvtaWD8YsQIsSNspA1PM2HOxgl2rzFq6Xcg==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -25180,9 +25182,9 @@ } }, "@walmart/compass-sdk-rn": { - "version": "3.16.1", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.1.tgz", - "integrity": "sha512-uosdKTI5vIqbp0WPCEO8Bwy/0uJuk6cy5clCyJJGpheGIRQiSPcsqBy+vx21TI+N/eA0XSqHgDAsckpKYgloWQ==" + "version": "3.16.17", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.17.tgz", + "integrity": "sha512-E3AWgniUS68f9DfWvhX1XoPuo9FFe2RXL0HxYcX6w9zq1wIu+sZX79Y9c0NL6pecNWOpKex/krNPMFYgC5q3RA==" }, "@walmart/config-components": { "version": "4.1.0-rc.4", @@ -25493,7 +25495,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.85.0", + "version": "2.85.1", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.85.1.tgz", + "integrity": "sha512-GB9cxUONeEqLTjAF+NYfJslF0+8Slpvj9urqbhQ46FBc21cgsZWXvtaWD8YsQIsSNspA1PM2HOxgl2rzFq6Xcg==", "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.13", "@walmart/taskit-mini-app": "2.28.14", - "@walmart/time-clock-mini-app": "2.85.0", + "@walmart/time-clock-mini-app": "2.85.1", "@walmart/topstock-mini-app": "1.0.5", "@walmart/ui-components": "1.11.1", "@walmart/welcomeme-mini-app": "0.76.0",
Update time clock mini app to 2.85.1
Update time clock mini app to 2.85.1
1be42d7411347834678fbbc6eb08e6a9659eb717
--- ios/Podfile.lock @@ -682,7 +682,7 @@ PODS: - React-Core - RNReactNativeHapticFeedback (1.14.0): - React-Core - - RNReanimated (2.10.0): + - RNReanimated (2.12.0): - DoubleConversion - FBLazyVector - FBReactNativeSpec @@ -714,7 +714,7 @@ PODS: - React-RCTImage - RNSha256 (1.4.8): - React-Core - - RNSketchCanvas (0.8.5): + - RNSketchCanvas (0.8.0): - React - RNSoundPlayer (0.13.2): - React-Core @@ -1248,10 +1248,10 @@ SPEC CHECKSUMS: RNGestureHandler: 62232ba8f562f7dea5ba1b3383494eb5bf97a4d3 RNPermissions: 79d0c889562fd792329821bea3155fe6eb54d359 RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c - RNReanimated: 60e291d42c77752a0f6d6f358387bdf225a87c6e + RNReanimated: 2a91e85fcd343f8af3c58d3425b99fdd285590a5 RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7 RNSha256: 03d70c81d84084560180c1858dbf2c980a01c1b1 - RNSketchCanvas: 240f0cbe4b90d7df1c322565faff0f4680e228dd + RNSketchCanvas: 124a2a11b9bce418ef6e34262fc163d00b5f714b RNSoundPlayer: 369105c565b8fe6ea0a43fc882dc81eba444e842 RNSVG: 3a79c0c4992213e4f06c08e62730c5e7b9e4dc17 RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
chore: update podfile lock
chore: update podfile lock
f5aa6fc24ce7fff8548b3b54b0634da899da4a6f
--- package.json @@ -73,7 +73,7 @@ "@redux-saga/testing-utils": "^1.1.3", "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", - "@walmart/OneWalmart-MiniApp": "1.0.11", + "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/allspark-health-survey-mini-app": "0.0.44", "@walmart/allspark-home-mini-app": "0.6.10", "@walmart/allspark-neon-core": "0.1.31",
ECT-1733 Updated OneWalmart Miniapp version
ECT-1733 Updated OneWalmart Miniapp version
60106763b7f278459f559f2d49abea3e5f1af99b
--- packages/me-at-walmart-common/README.md @@ -1,5 +1,5 @@ -# Me@Walmat Common +# Me@Walmart Common -Library for common components and utilities used in the Me@Walmart application. +This library is meant for common components and utilities used in the Me@Walmart application. -Meant for component containers, dynamic components, widget registries, graphql queries, etc. \ No newline at end of file +Component containers, dynamic components, widget registries, graphql queries, etc. are all examples of things that could be included in this library. \ No newline at end of file --- packages/me-at-walmart-container/README.md @@ -1,5 +1,33 @@ -# WIP +# Me@Walmart Container -This package is still in an experimental state. +This is the AllsparkContainer for the Me At Walmart app. It contains all of its services, configurations, and dependencies. -## me-at-walmart-container +An AllsparkContainer can be created in the app in which it is used, but we've created this one as a node module for easy sharing with mini apps while standalone testing. + +## Usage + +The package has one main export `MeAtWalmartContainer`. This is the AllsparkContainer instance. Use it to setup the Me At Walmart container context for a given app. + +### Manual + +The Provider component can be used to wrap the app with the Me At Walmart container context. + +```typescript +import { MeAtWalmartContainer } from '@allspark/me-at-walmart-container'; + +<MeAtWalmartContainer.Provider env='dev'> + {/* Your app */} +</MeAtWalmartContainer.Provider> +``` + +### With AllsparkFeatureRunner + +An AllsparkFeatureRunner creates a app for standalone feature testing. Simply provide the container instance when creating the runner. + +```typescript +import { AllsparkFeatureRunner } from '@allspark/allspark-foundation/FeatureRunner'; +import { MeAtWalmartContainer } from '@allspark/me-at-walmart-container'; +import Feature1 from '...'; // AllsparkFeature instance + +export default new AllsparkFeatureRunner(MeAtWalmartContainer, Feature1, {env: 'dev'}); +```
docs: update readme
docs: update readme
7d76401398fe7dc5cafdd49ace212fc7495a752f
--- src/components/ActionButton.tsx @@ -58,7 +58,8 @@ export const ActionButton = ( ) : ( <> {typeof icon === 'string' - ? createElement(Icons[icon], { + ? // @ts-ignore + createElement(Icons[icon], { size: 'medium', color: 'white', }) --- src/components/TeamChatCard.tsx @@ -87,6 +87,7 @@ export const TeamChatCard = (props: { //TODO: Give this the correct types const clockedInCount = (teamMembership: any) => { + // @ts-ignore const userIdsInTeam = teamMembership.map((member) => { return member?.userId; }); @@ -120,6 +121,7 @@ export const TeamChatCard = (props: { height: 32, bottom: 0, }} + // @ts-ignore source={teamIconMap[primaryTeam.teamId]} /> } @@ -181,6 +183,7 @@ export const TeamChatCard = (props: { height: 32, bottom: 0, }} + // @ts-ignore source={teamIconMap[team.teamId]} /> } --- src/containers/ChatInput/AudioRecording.tsx @@ -8,6 +8,7 @@ import AudioRecorderPlayer, { } from 'react-native-audio-recorder-player'; import {useTimeout} from '@walmart/allspark-utils'; import {Caption} from '@walmart/gtp-shared-components'; +// @ts-ignore import {v4 as uuid} from 'uuid'; import {ActionButton} from '../../components'; --- src/containers/ChatInput/index.tsx @@ -93,7 +93,7 @@ const styles = StyleSheet.create({ }, }); -const InputTransition = (values) => { +const InputTransition = (values: any) => { 'worklet'; return { initialValues: { --- src/components/ActionButton.tsx @@ -58,7 +58,8 @@ export const ActionButton = ( ) : ( <> {typeof icon === 'string' - ? createElement(Icons[icon], { + ? // @ts-ignore + createElement(Icons[icon], { size: 'medium', color: 'white', }) --- src/components/TeamChatCard.tsx @@ -87,6 +87,7 @@ export const TeamChatCard = (props: { //TODO: Give this the correct types const clockedInCount = (teamMembership: any) => { + // @ts-ignore const userIdsInTeam = teamMembership.map((member) => { return member?.userId; }); @@ -120,6 +121,7 @@ export const TeamChatCard = (props: { height: 32, bottom: 0, }} + // @ts-ignore source={teamIconMap[primaryTeam.teamId]} /> } @@ -181,6 +183,7 @@ export const TeamChatCard = (props: { height: 32, bottom: 0, }} + // @ts-ignore source={teamIconMap[team.teamId]} /> } --- src/containers/ChatInput/AudioRecording.tsx @@ -8,6 +8,7 @@ import AudioRecorderPlayer, { } from 'react-native-audio-recorder-player'; import {useTimeout} from '@walmart/allspark-utils'; import {Caption} from '@walmart/gtp-shared-components'; +// @ts-ignore import {v4 as uuid} from 'uuid'; import {ActionButton} from '../../components'; --- src/containers/ChatInput/index.tsx @@ -93,7 +93,7 @@ const styles = StyleSheet.create({ }, }); -const InputTransition = (values) => { +const InputTransition = (values: any) => { 'worklet'; return { initialValues: {
fixing typescript issues
fixing typescript issues
056c11ac6b8597628111aabb106e1025b9c91195
--- src/components/modals/hoc/EditTeamsModal.tsx @@ -2,6 +2,7 @@ import React, {useCallback, useEffect, useRef, useState} from 'react'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; import {AssociateExpHubFeature} from '../../../utils/feature'; +import {AssociateExpHubLogger} from '../../../utils/logger'; import {AssociateExpHubTranslationClient} from '../../../utils/translation'; import {ModalContent} from '../smartModal'; import {useGetTeamsAdapter} from '../../../services'; @@ -261,16 +262,24 @@ const EditTeamsModal = AssociateExpHubFeature.createModal( const handleApplyPress = useCallback(() => { if (!enableEditModalUpsert) { - // When upsert is disabled, just close the modal without saving changes - // This provides a read-only experience where users can view but not modify team preferences - AllsparkNavigationClient.closeModal( - //@ts-ignore - MODALS.EDIT + AssociateExpHubLogger.info( + 'EditTeamsModal: Upsert disabled, closing modal without saving changes', + { + selectedTeamsCount: selectedTeams.length, + isSiteDC, + enableEditModalUpsert, + } ); return; } return isSiteDC ? handleDCUpsert() : handleStoreUpsert(); - }, [isSiteDC, handleDCUpsert, handleStoreUpsert, enableEditModalUpsert]); + }, [ + isSiteDC, + handleDCUpsert, + handleStoreUpsert, + enableEditModalUpsert, + selectedTeams, + ]); return ( <ModalContent --- src/components/modals/hoc/UpdateModal.tsx @@ -369,7 +369,13 @@ const UpdateModal = AssociateExpHubFeature.createModal( const handleDCApplyButton = useCallback(async () => { if (!enableUpdateModalUpsert) { - handleCloseModal(); + AssociateExpHubLogger.info('UpdateModal: DC apply - Upsert disabled', { + selectedShiftsCount: selectedShifts.length, + selectedShifts, + isSiteDC, + enableUpdateModalUpsert, + }); + return; } else if (selectedShifts.length === 0) { setShowMandatoryShiftAlert(true); } else { @@ -379,7 +385,15 @@ const UpdateModal = AssociateExpHubFeature.createModal( const onApplyButtonPress = useCallback(() => { if (!enableUpdateModalUpsert) { - handleCloseModal(); + AssociateExpHubLogger.info( + 'UpdateModal: Apply button - Upsert disabled', + { + savedTeamPreferencesCount: preferences.length, + isSiteDC, + enableUpdateModalUpsert, + } + ); + return; } else { return isSiteDC ? handleDCApplyButton() : handleCloseModal(); } --- src/components/team-switcher/MyWalmartTeamSwitcher.tsx @@ -6,6 +6,7 @@ import {AllsparkNavigationClient} from '@walmart/allspark-foundation'; import {MODALS} from '../../constants'; import {initTeamSwitcher} from './initTeamSwitcher'; import {withCCMFlag} from '../hoc'; +import TeamSwitcherFallback from './TeamSwitcherFallback'; import {useGetTeamsAdapter} from '../../services/api'; import { @@ -194,5 +195,6 @@ export const MyWalmartTeamSwitcher = withCCMFlag( MyWalmartTeamSwitcherComponent, { flagKey: 'showTeamSwitcher', + fallbackComponent: TeamSwitcherFallback, } ); --- src/components/team-switcher/TeamSwitcherFallback.tsx @@ -0,0 +1,27 @@ +import React from 'react'; +import {View, Text, StyleSheet} from 'react-native'; + +const TeamSwitcherFallback: React.FC = () => { + return ( + <View style={styles.container}> + <Text style={styles.message}> + Team Switcher is currently unavailable. + </Text> + </View> + ); +}; + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + }, + message: { + fontSize: 16, + color: '#fff', + textAlign: 'center', + }, +}); + +export default TeamSwitcherFallback;
feat(ui): update ff #SMDV-8174
feat(ui): update ff #SMDV-8174
5a81a8b3ed639dd72dd90396fe8347482c85a2f0
--- packages/allspark-foundation-hub/src/HubFeature/Store/HubHeader/index.tsx @@ -11,8 +11,9 @@ export const HubHeader = ({ subText, backgroundColor, textColor, + noPadding, }: HeaderTypes) => { - const styles = HeaderStyles(backgroundColor, textColor); + const styles = HeaderStyles(backgroundColor, textColor, noPadding); return ( <View accessible style={styles.container} testID='container'> <Body
Adding noPadding to the component
Adding noPadding to the component
79c70ae72738d9b92a8e8f5cc94065c9c75735e8
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -34,6 +34,9 @@ Array [ <Screen name="ShareConcerns" /> + <Screen + name="ShareIdeas" + /> <Screen component="SettingsMiniApp" name="Settings"
Snapshot updated
Snapshot updated
787890831cc53e22281988773532e2882777cb2d
--- core/src/core/FeatureToggleGuard.tsx @@ -5,7 +5,7 @@ import React, { useEffect, } from 'react'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; - +import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; import {useOneClick} from '../oneClick/useOneClick'; import { Button, @@ -13,16 +13,30 @@ import { ErrorMessage, } from '@walmart/gtp-shared-components/dist'; import {Image} from 'expo-image'; -import {View} from 'react-native'; +import {StyleSheet, View} from 'react-native'; import {capitalize} from 'lodash'; import {useNavigation} from '@react-navigation/native'; +import {i5Images} from '../images'; +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + }, + imageStyle: { + height: 140, + width: 140, + alignSelf: 'center', + marginBottom: 32, + } +}); export const FeatureToggleGuard = ( props: PropsWithChildren<{featureId: string}>, ) => { const {children, featureId} = props; const navigation = useNavigation(); + const [translate] = useAllsparkTranslation(); const oneClick = useOneClick(featureId); useEffect(() => { @@ -37,31 +51,26 @@ export const FeatureToggleGuard = ( if (!oneClick.enable) { return ( - <View style={{flex: 1, justifyContent: 'center'}}> + <View style={styles.container}> <Image - source='https://i5-me.walmartimages.com/images/metrics/cone-error-3212fb53c5.png' - style={{ - height: 140, - width: 140, - alignSelf: 'center', - marginBottom: 32, - }} - placeholder='KbNK;xj[_MkXa|ae%fa|=X' + source={i5Images.coneWarning.uri} + style={styles.imageStyle} + placeholder={i5Images.coneWarning.placeholderImageHash} /> <ErrorMessage UNSAFE_style={{flex: 0}} - title={`${capitalize(featureId)} isn't available right now`} + title={translate('featureToggleGuard.title', capitalize(featureId))} actions={ <ButtonGroup> <Button variant='primary' onPress={AllsparkNavigationClient.goBack}> - Got it + { translate('featureToggleGuard.action')} </Button> </ButtonGroup> }> - You'll be able to use {featureId} when everything is fixed. + { translate('featureToggleGuard.content', featureId)} </ErrorMessage> </View> ); --- core/src/images/assets/index.ts @@ -127,6 +127,10 @@ export const i5Images: {[key: string]: i5ImageType} = { uri: 'https://i5-me.walmartimages.com/images/core/coming-soon-illustration-fe2aab0e94.png', placeholderImageHash: 'KcNT|BN#?a%2ozM|~UZ~t6', }, + coneWarning: { + uri: 'https://i5-me.walmartimages.com/images/metrics/cone-error-3212fb53c5.png', + placeholderImageHash: 'KbNK;xj[_MkXa|ae%fa|=X', + }, confettiHomeCard: { uri: 'https://i5-me.walmartimages.com/images/core/confetti-home-card-09cb040af3.png', placeholderImageHash: 'K2TI%T_NrqMeg2%frCJCxt',
ALLSPARK-4175: Fixed inline styles
ALLSPARK-4175: Fixed inline styles
167a4b8621b9376028a902e5cdf20246c9d9d27a
--- packages/allspark-foundation/__tests__/Auth/saga.test.ts @@ -0,0 +1,61 @@ +import { runSaga } from 'redux-saga'; + +import { AuthActionTypes, IAuthActions } from '../../src/Auth/redux'; +import { AuthConfiguration } from '../../src/Auth'; +import { AuthService } from '../../src/Auth/service'; +import { + onGetUser, + onSignIn, + onFetchToken, + onSignOut, +} from '../../src/Auth/sagas'; + +jest.mock('../../src/Auth/service', () => ({ + AuthService: { + getUser: jest.fn(), + signIn: jest.fn(), + refreshToken: jest.fn(), + signOut: jest.fn(), + }, +})); + +describe('Auth Sagas', () => { + afterEach(() => { + jest.clearAllMocks(); + }); + + test('should call AuthService.getUser() when GET_USER action is dispatched', async () => { + const action = { + type: AuthActionTypes.GET_USER, + } as IAuthActions['GET_USER']; + + await runSaga({ dispatch: jest.fn() }, onGetUser, action).toPromise(); + expect(AuthService.getUser).toHaveBeenCalled(); + }); + + test('should call AuthService.signIn() with payload when SIGN_IN action is dispatched', async () => { + const payload = {} as AuthConfiguration; + const action: IAuthActions['SIGN_IN'] = { + type: AuthActionTypes.SIGN_IN, + payload, + }; + await runSaga({ dispatch: jest.fn() }, onSignIn, action).toPromise(); + expect(AuthService.signIn).toHaveBeenCalledWith(payload); + }); + + test('should call AuthService.refreshToken() when FETCH_TOKEN action is dispatched', async () => { + const action = { + type: AuthActionTypes.FETCH_TOKEN, + } as IAuthActions['FETCH_TOKEN']; + await runSaga({ dispatch: jest.fn() }, onFetchToken, action).toPromise(); + expect(AuthService.refreshToken).toHaveBeenCalled(); + }); + + test('should call AuthService.signOut() when SIGN_OUT action is dispatched', async () => { + const action = { + type: AuthActionTypes.SIGN_OUT, + } as IAuthActions['SIGN_OUT']; + await runSaga({ dispatch: jest.fn() }, onSignOut, action).toPromise(); + expect(AuthService.signOut).toHaveBeenCalled(); + }); +}); --- packages/allspark-foundation/__tests__/Clock/connect.test.ts @@ -56,7 +56,7 @@ describe('Clock/connect.ts', () => { test('should dispatch FETCH_PROGRESS, FETCH_SUCCESS on successful fetch', async () => { const mockData = {} as ClockData; (mockClockService.fetch as jest.Mock).mockResolvedValue(mockData); - await fetch.call(mockClockService); + await fetch.call(mockClockService, {}); expect(mockClockService.fetch).toHaveBeenCalled(); expect(AllsparkReduxStore.select(ClockSelectors.getIsClockedIn)).toEqual( @@ -67,7 +67,7 @@ describe('Clock/connect.ts', () => { test('should dispatch FETCH_PROGRESS, FETCH_ERROR on failed fetch', async () => { const error = new Error('Fetch error'); (mockClockService.fetch as jest.Mock).mockRejectedValue(error); - await expect(fetch.call(mockClockService)).rejects.toThrow(error); + await expect(fetch.call(mockClockService, {})).rejects.toThrow(error); expect(mockClockService.fetch).toHaveBeenCalled(); expect(AllsparkReduxStore.select(ClockSelectors.getError)).toEqual(true); --- packages/allspark-foundation/__tests__/Clock/saga.test.ts @@ -0,0 +1,36 @@ +import { runSaga } from 'redux-saga'; + +import { ClockActionTypes } from '../../src/Clock/redux'; +import { ClockService } from '../../src/Clock/service'; +import { onInit, onFetch } from '../../src/Clock/sagas'; + +jest.mock('../../src/Clock/service', () => ({ + ClockService: { + initialize: jest.fn(), + fetch: jest.fn(), + }, +})); + +describe('Clock sagas', () => { + afterEach(() => { + jest.clearAllMocks(); + }); + + test('should call ClockService.initialize() with payload when INIT action is dispatched', async () => { + const action = { + type: ClockActionTypes.INIT, + payload: {}, + }; + await runSaga({ dispatch: jest.fn() }, onInit, action).toPromise(); + expect(ClockService.initialize).toHaveBeenCalledWith({}); + }); + + test('should call ClockService.fetch() with payload when FETCH action is dispatched', async () => { + const payload = {}; + const action = { type: ClockActionTypes.FETCH, payload }; + + await runSaga({ dispatch: jest.fn() }, onFetch, action).toPromise(); + + expect(ClockService.fetch).toHaveBeenCalledWith(payload); + }); +});
test branch to see what the issue is
test branch to see what the issue is
c4713250e30bb0ef31d500c1fc6a70f159773e90
--- package-lock.json @@ -3393,9 +3393,9 @@ "integrity": "sha512-DMXzHrlFBvd5qOHxju7irJ+4UkclgpwJVlEKzPqmL4oQPYXkjCydvbJR0O5FmZtDDyBrKxKtofD2vD4nyBeHPA==" }, "@walmart/inbox-mini-app": { - "version": "0.13.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.13.0.tgz", - "integrity": "sha512-aAJuqyGIgPc1gypjY7JgtkqudW7wOydSJYfQrNkcoY9UIIP1w5nXJDGP0hFMxzxS6Nz5yMlYWAcGbecaJbCMFA==" + "version": "0.14.0", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.14.0.tgz", + "integrity": "sha512-73HAEev8DeHModZVTry22tqKnV5jJcaL4IyUVWvlvoyZ4iZfNgdIsR6VEzYN1TW5DHH5d44heAIR3K8kdUb4Qw==" }, "@walmart/iteminfo-mini-app": { "version": "2.0.9", @@ -3447,7 +3447,7 @@ "@walmart/patient-portal-mobile": { "version": "2.1.14", "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.14.tgz", - "integrity": "sha1-6a8PZ45o8XUCL3Jj8H7rlEfmefQ=", + "integrity": "sha512-LhqS1Ogr1vi5Nj2/gIRPQnn/ogReKbIhXvXsLdDzltCibI5YGoKxHpReIQKp3YJ01xBUJyUBzrc3G/JCe7KYSg==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "@walmart/react-native-collapsible": "1.5.3", @@ -3478,7 +3478,7 @@ "@walmart/react-native-collapsible": { "version": "1.5.3", "resolved": "https://npme.walmart.com/@walmart/react-native-collapsible/-/react-native-collapsible-1.5.3.tgz", - "integrity": "sha1-XoOvTwTbUqaib/9Ii//qp9yNBQk=", + "integrity": "sha512-A/eHjceqHN2FJVaimSrKO/wIHgP5ymIoiyTMRa10ce8NZ7ejhPelIkCqzwjvQ328HG38y7HPelvu/6xlsiFlUQ==", "requires": { "prop-types": "^15.6.2" } @@ -14207,7 +14207,7 @@ "squiggly-localization": { "version": "0.0.2", "resolved": "https://npme.walmart.com/squiggly-localization/-/squiggly-localization-0.0.2.tgz", - "integrity": "sha1-3ksz5Io53VPnUBiRSVDpxDaSGHU=" + "integrity": "sha512-9j/XUl0XvLk5wksN/nhOcRHmHesVHopX7v3Z1Hv398/656CLarKW0FAqL28zjKO68YH566s8PM1gflrAayBuMA==" }, "sshpk": { "version": "1.16.1", @@ -15467,7 +15467,7 @@ "wfm-allspark-data-library": { "version": "0.0.11", "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz", - "integrity": "sha1-E27LsiPO+Sbj5h3p0FQpcH9VU8g=", + "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==", "requires": { "@walmart/functional-components": "^1.0.22", "@walmart/react-native-env": "^0.1.0", @@ -15481,7 +15481,7 @@ "@walmart/react-native-env": { "version": "0.1.0", "resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.1.0.tgz", - "integrity": "sha1-ojNwDE5pPTzF1RuQXDc//Fnlpz0=" + "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ==" }, "moment": { "version": "2.24.0", @@ -15491,7 +15491,7 @@ "react-native-ssmp-sso-allspark": { "version": "0.0.1-rc8", "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz", - "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s=" + "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg==" } } }, --- package.json @@ -83,7 +83,7 @@ "@walmart/gtp-shared-components": "^1.2.0", "@walmart/impersonation-mini-app": "1.0.20", "@walmart/ims-print-services-ui": "0.0.36", - "@walmart/inbox-mini-app": "0.13.0", + "@walmart/inbox-mini-app": "0.14.0", "@walmart/iteminfo-mini-app": "2.0.9", "@walmart/manager-approvals-miniapp": "0.0.54", "@walmart/metrics-mini-app": "0.4.12",
inbox message impersonation fix
inbox message impersonation fix
8acb75ddcbbc8d438d2844341de8ab53dc940b56
--- android/app/build.gradle @@ -158,8 +158,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 913 - versionName "1.15.0" + versionCode 914 + versionName "1.15.1" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. --- android/app/src/main/AndroidManifest.xml @@ -8,6 +8,7 @@ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.RECORD_AUDIO"/> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> + <uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/> <queries> <package android:name="com.walmart.sso.app" /> </queries> --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.15.0</string> + <string>1.15.1</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -42,7 +42,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>913</string> + <string>914</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.15.0", + "version": "1.15.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.15.0", + "version": "1.15.1", "hasInstallScript": true, "dependencies": { "@firebase/firestore-types": "^2.5.1", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.15.0", + "version": "1.15.1", "private": true, "scripts": { "android": "react-native run-android",
Fixing AD_ID permission issue on android
Fixing AD_ID permission issue on android
4f52826834aa39a4b5b99089655795cfd12c712c
--- 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",
Update package.json
Update package.json
e5bc2a027283920d9d8d860f1644b3645e9b0ff0
--- package-lock.json @@ -3283,9 +3283,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.30.7", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.7.tgz", - "integrity": "sha512-mccXtxnNMRk1LgksLO3fUyHMZRVpJ0Xx2yoVEa7h5bL5166A7lRCCEHyU0nxzd+cev6rc3uwdMFHPdcf+JV77w==", + "version": "0.30.8", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.8.tgz", + "integrity": "sha512-LoHF4ijLrggmKHNzamdySGf/pz93Ejp94x3WMuFh53c2bQ2IU4QwVBppX8/YnEG1AOxZY8qrna5YDBh+6OYkSg==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -67,7 +67,7 @@ "@walmart/allspark-home-mini-app": "0.4.21", "@walmart/metrics-mini-app": "0.0.27", "@walmart/allspark-me-mini-app": "0.1.0", - "@walmart/ask-sam-mini-app": "0.30.7", + "@walmart/ask-sam-mini-app": "0.30.8", "@walmart/config-components": "^1.0.26", "@walmart/counts-component-miniapp": "0.0.14", "@walmart/exception-mini-app": "0.28.0",
Version increment
Version increment
84a23e91c499e6380fa7d23e3dd6c817273d5b96
--- package-lock.json @@ -4483,9 +4483,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.17.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.17.0.tgz", - "integrity": "sha512-RdFIxYZNPtyEKhZ5e3pxbfoTX/wW2BsQb0HqpfTt2U7CVN1TVC3psF9R3Bl8nj82QMPTq595NoLixyGkFFlN0Q==" + "version": "0.18.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.18.0.tgz", + "integrity": "sha512-DuO5koDaR5A8UHY070Dd/ldZYEHFiTPOq57Sg5izPv/ytRWaF8EdPkJtaEcOCgriQkHVpc2KXtA2Bt9fH8Xsow==" }, "@walmart/time-clock-mini-app": { "version": "0.5.1", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.12.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", - "@walmart/taskit-mini-app": "0.17.0", + "@walmart/taskit-mini-app": "0.18.0", "@walmart/time-clock-mini-app": "0.5.1", "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.52.0",
Updating taskit version
Updating taskit version
7c824a80a3e74cb532ce706883c1fd12005784f1
--- targets/US/package.json @@ -99,7 +99,7 @@ "@walmart/core-utils": "6.3.9", "@walmart/core-widget-registry": "workspace:^", "@walmart/counts-component-miniapp": "0.1.11", - "@walmart/emergency-mini-app": "1.27.1", + "@walmart/emergency-mini-app": "1.29.1", "@walmart/exception-mini-app": "1.8.3", "@walmart/facilities-management-miniapp": "0.11.7", "@walmart/feedback-all-spark-miniapp": "0.9.63", @@ -108,7 +108,7 @@ "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "patch:@walmart/gtp-shared-components@npm%3A2.2.3-rc.1#~/.yarn/patches/@walmart-gtp-shared-components-npm-2.2.3-rc.1-0c4d9613f6.patch", "@walmart/ims-print-services-ui": "2.11.3", - "@walmart/inbox-mini-app": "0.94.6", + "@walmart/inbox-mini-app": "0.96.2", "@walmart/iteminfo-mini-app": "7.13.2", "@walmart/learning-mini-app": "20.0.23", "@walmart/manager-approvals-miniapp": "0.2.4", --- yarn.lock @@ -6042,9 +6042,9 @@ __metadata: languageName: node linkType: hard -"@walmart/emergency-mini-app@npm:1.27.1": - version: 1.27.1 - resolution: "@walmart/emergency-mini-app@npm:1.27.1" +"@walmart/emergency-mini-app@npm:1.29.1": + version: 1.29.1 + resolution: "@walmart/emergency-mini-app@npm:1.29.1" dependencies: "@walmart/allspark-utils": "npm:^1.6.5" "@walmart/core-widget-registry": "npm:^0.6.6" @@ -6055,11 +6055,11 @@ __metadata: "@walmart/core-utils": ">=1.2" "@walmart/gtp-shared-components": ^2.0.0 "@walmart/redux-store": ^1.0.12 - react: ^17.0.2 - react-native: ^0.67.4 + react: "*" + react-native: "*" react-redux: ^7.2.1 redux: ^4.1.2 - checksum: 10c0/79a5b1c1e1d83822e9f570585cae5be497558093987d387dffab3f6812478da053abaad3b6a9e975048f0f92a3f4ae6b7e25859a5b2cb2d0a60d42c629f43ebe + checksum: 10c0/79bc4afb2af26bc152bbdf1ee635f36bd525dcde3c65da54e7c52fb66612f6d31f5d5317dd94409deddcc9cb4bdcb81ea9073545ad1569e88a48f7a158e08cf6 languageName: node linkType: hard @@ -6344,22 +6344,17 @@ __metadata: languageName: node linkType: hard -"@walmart/inbox-mini-app@npm:0.94.6": - version: 0.94.6 - resolution: "@walmart/inbox-mini-app@npm:0.94.6" - dependencies: - "@walmart/moment-walmart": "npm:^1.0.4" - "@walmart/walmart-fiscal-week": "npm:^0.3.6" - react-native-device-info: "npm:^10.3.0" +"@walmart/inbox-mini-app@npm:0.96.2": + version: 0.96.2 + resolution: "@walmart/inbox-mini-app@npm:0.96.2" peerDependencies: - "@walmart/allspark-utils": ^1.6.4 + "@walmart/allspark-foundation": "*" + "@walmart/allspark-utils": ">=1.6.4" "@walmart/feedback-all-spark-miniapp": ">=0.1.5" - "@walmart/schedule-mini-app": ^0.2.66 - crypto-js: ">=3.3.0" - lodash: ">=4.17.20" - prop-types: 15.7.2 - typescript: ^4.0.2 - checksum: 10c0/9aa3cc07da074c0262e103a615e997614e548cbf134b43f2e5f4ed600f4914ad10feaaa95356c495f6080b7341f939d217d1d6a2e8518400c451b8c1bd34376b + "@walmart/moment-walmart": ">=1.0.4" + "@walmart/schedule-mini-app": ">=0.2.66" + "@walmart/walmart-fiscal-week": ">=0.3.6" + checksum: 10c0/c99e9b461dbeeee3fee7d4e6591be2f7e1df7394ccfb23ceaf8c9a5c89fb6cb94ac436453c4218a0a80008ddc6645d9c3f0f5e74cbbdf0bd0d4cf4f9c8d52f12 languageName: node linkType: hard @@ -6832,7 +6827,7 @@ __metadata: "@walmart/core-utils": "npm:6.3.9" "@walmart/core-widget-registry": "workspace:^" "@walmart/counts-component-miniapp": "npm:0.1.11" - "@walmart/emergency-mini-app": "npm:1.27.1" + "@walmart/emergency-mini-app": "npm:1.29.1" "@walmart/exception-mini-app": "npm:1.8.3" "@walmart/facilities-management-miniapp": "npm:0.11.7" "@walmart/feedback-all-spark-miniapp": "npm:0.9.63" @@ -6841,7 +6836,7 @@ __metadata: "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "patch:@walmart/gtp-shared-components@npm%3A2.2.3-rc.1#~/.yarn/patches/@walmart-gtp-shared-components-npm-2.2.3-rc.1-0c4d9613f6.patch" "@walmart/ims-print-services-ui": "npm:2.11.3" - "@walmart/inbox-mini-app": "npm:0.94.6" + "@walmart/inbox-mini-app": "npm:0.96.2" "@walmart/iteminfo-mini-app": "npm:7.13.2" "@walmart/learning-mini-app": "npm:20.0.23" "@walmart/manager-approvals-miniapp": "npm:0.2.4" @@ -7944,16 +7939,6 @@ __metadata: languageName: node linkType: hard -"@walmart/walmart-fiscal-week@npm:^0.3.6": - version: 0.3.6 - resolution: "@walmart/walmart-fiscal-week@npm:0.3.6" - dependencies: - lodash: "npm:^4.17.4" - moment: "npm:2.18.1" - checksum: 10c0/060f1f5f4a79dd93cbfb9dcf52aeb7a1c759a8ae1d9bea22cf7aa029a4e3c298bc9ddc13c5066630c68eed6a7760cc4751b1c17e53e655ffc12ebf2a38243e63 - languageName: node - linkType: hard - "@walmart/welcomeme-mini-app@npm:0.94.0": version: 0.94.0 resolution: "@walmart/welcomeme-mini-app@npm:0.94.0"
Platform Drop24 changes
Platform Drop24 changes
c708de4391c92ce1711c553cdec1d3d840d1a2fa
--- packages/allspark-foundation-hub/src/HubFeature/Hooks/useHubConfig.ts @@ -1,6 +1,7 @@ import { ConfigSelectors } from '@walmart/allspark-foundation/Config'; import { useSelector } from 'react-redux'; +//Todo: Update appropriate types here export const useHubConfig = (ccmNamespace: string, defaultValue: any) => { const getCCMConfig = ConfigSelectors.createFeatureConfigSelector(ccmNamespace);
feat(ui): Update the user onboarded condition
feat(ui): Update the user onboarded condition
51dd52f5b6b8adceb3cbdb1c71f9fa4294aad860
--- src/components/AssociateRosterItem/index.tsx @@ -23,7 +23,7 @@ import { } from '../../utils'; import { useIsImpersonatedOnDev, - useIsSalariedOrTeamLead, + useIsWeeklyScheduleLinkVisible, usePushToTalk, useStartAssociateText, useUserIsInRoster, @@ -46,7 +46,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { SiteSelectors.getUserWorkingSite, ); const currentUser = useSelector(UserSelectors.getUser) as Associate; - const isSalariedOrTeamLead = useIsSalariedOrTeamLead(); + const isWeeklyScheduleVisible = useIsWeeklyScheduleLinkVisible(); const userIsInRoster = useUserIsInRoster(); const isPushToTalkEnabled: boolean = useSelector(pushToTalkEnabled); const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled); @@ -126,7 +126,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { <Body weight='400' size='small' numberOfLines={1}> {namecase(formatSchedule(associate?.storeSchedule))} </Body> - {isSalariedOrTeamLead && ( + {isWeeklyScheduleVisible && ( <Button variant='tertiary' size='small' --- src/components/RosterHeader.tsx @@ -5,7 +5,7 @@ import {Associate} from '../types'; import {goToWeeklySchedule} from '../navigation/utils'; import {TEXTING_I18N_NAMESPACE} from '../translations'; import {useTranslation} from 'react-i18next'; -import {useIsSalariedOrTeamLead} from '../hooks'; +import {useIsWeeklyScheduleLinkVisible} from '../hooks'; const styles = StyleSheet.create({ rosterHeader: { @@ -29,7 +29,7 @@ export type RosterHeaderProps = { export const RosterHeader = (props: RosterHeaderProps) => { const {teamName, associates} = props; const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); - const isSalariedOrTeamLead = useIsSalariedOrTeamLead(); + const isWeeklyScheduleVisible = useIsWeeklyScheduleLinkVisible(); const associateWINs = useMemo( () => @@ -51,7 +51,7 @@ export const RosterHeader = (props: RosterHeaderProps) => { teamName: teamName ? teamName : 'Total Store', })} </Body> - {isSalariedOrTeamLead && ( + {isWeeklyScheduleVisible && ( <Button variant='tertiary' size='small' --- src/hooks/roster.ts @@ -10,7 +10,7 @@ import { getRmaAppId, teamLeadJobDescriptions as teamLeadJobDescriptionsSelector, } from '../redux/selectors'; -import {find, isNil, some, toUpper} from 'lodash'; +import {find, isNil, toUpper} from 'lodash'; import {useGetAssociateNameQuery} from '../queries/getAssociateName'; import {IdType} from '../queries/schema.types'; import {payTypes} from '../constants'; @@ -72,7 +72,7 @@ export const useIsWeeklyScheduleLinkVisible = () => { //TODO: Change the name to have texting namespace. Using legacy app RBAC config const RMAPermissionsPath = '/ptt/weekly_schedule_link'; const RMAViewPermission = 'VIEW'; - const user = UserSelectors.getUser(); + const user: any = useSelector(UserSelectors.getUser); const teamLeadJobDescriptions = useSelector(teamLeadJobDescriptionsSelector); if (!isNil(user.domain) && user.domain.toLowerCase() === 'homeoffice') { --- src/components/AssociateRosterItem/index.tsx @@ -23,7 +23,7 @@ import { } from '../../utils'; import { useIsImpersonatedOnDev, - useIsSalariedOrTeamLead, + useIsWeeklyScheduleLinkVisible, usePushToTalk, useStartAssociateText, useUserIsInRoster, @@ -46,7 +46,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { SiteSelectors.getUserWorkingSite, ); const currentUser = useSelector(UserSelectors.getUser) as Associate; - const isSalariedOrTeamLead = useIsSalariedOrTeamLead(); + const isWeeklyScheduleVisible = useIsWeeklyScheduleLinkVisible(); const userIsInRoster = useUserIsInRoster(); const isPushToTalkEnabled: boolean = useSelector(pushToTalkEnabled); const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled); @@ -126,7 +126,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { <Body weight='400' size='small' numberOfLines={1}> {namecase(formatSchedule(associate?.storeSchedule))} </Body> - {isSalariedOrTeamLead && ( + {isWeeklyScheduleVisible && ( <Button variant='tertiary' size='small' --- src/components/RosterHeader.tsx @@ -5,7 +5,7 @@ import {Associate} from '../types'; import {goToWeeklySchedule} from '../navigation/utils'; import {TEXTING_I18N_NAMESPACE} from '../translations'; import {useTranslation} from 'react-i18next'; -import {useIsSalariedOrTeamLead} from '../hooks'; +import {useIsWeeklyScheduleLinkVisible} from '../hooks'; const styles = StyleSheet.create({ rosterHeader: { @@ -29,7 +29,7 @@ export type RosterHeaderProps = { export const RosterHeader = (props: RosterHeaderProps) => { const {teamName, associates} = props; const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); - const isSalariedOrTeamLead = useIsSalariedOrTeamLead(); + const isWeeklyScheduleVisible = useIsWeeklyScheduleLinkVisible(); const associateWINs = useMemo( () => @@ -51,7 +51,7 @@ export const RosterHeader = (props: RosterHeaderProps) => { teamName: teamName ? teamName : 'Total Store', })} </Body> - {isSalariedOrTeamLead && ( + {isWeeklyScheduleVisible && ( <Button variant='tertiary' size='small' --- src/hooks/roster.ts @@ -10,7 +10,7 @@ import { getRmaAppId, teamLeadJobDescriptions as teamLeadJobDescriptionsSelector, } from '../redux/selectors'; -import {find, isNil, some, toUpper} from 'lodash'; +import {find, isNil, toUpper} from 'lodash'; import {useGetAssociateNameQuery} from '../queries/getAssociateName'; import {IdType} from '../queries/schema.types'; import {payTypes} from '../constants'; @@ -72,7 +72,7 @@ export const useIsWeeklyScheduleLinkVisible = () => { //TODO: Change the name to have texting namespace. Using legacy app RBAC config const RMAPermissionsPath = '/ptt/weekly_schedule_link'; const RMAViewPermission = 'VIEW'; - const user = UserSelectors.getUser(); + const user: any = useSelector(UserSelectors.getUser); const teamLeadJobDescriptions = useSelector(teamLeadJobDescriptionsSelector); if (!isNil(user.domain) && user.domain.toLowerCase() === 'homeoffice') {
update weeklyschedule link
update weeklyschedule link
c11d90024c512df272c51a90b59249374cb63345
--- package-lock.json @@ -4232,9 +4232,9 @@ "integrity": "sha512-GJ/6zuVgXn+8rocbeOisIbHxBbGk8ZmKr3fqofSgLYe7x9YuiXPi2kfSjz0G7p/HcAS/FqHllNsqPCdoLbeVpg==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.1.33", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.1.33.tgz", - "integrity": "sha512-OUKRDWJAX0ORjOfAPJUR6bcjPm/5Hv2JAEPzVTdatRcxoQkEl8eAC6b4b98z/eSwIOBiN05+92VWciTeqB1erQ==" + "version": "0.3.4", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.3.4.tgz", + "integrity": "sha512-MRmpF7sjigb4hI0UNjkq22xYURLAgavJ8z/5DO5HhHHv6iFoM5d978Kinrx0SsdiOfb2XlTRcHpgiMIYO6pJJw==" }, "@walmart/functional-components": { "version": "1.0.34", --- package.json @@ -78,7 +78,7 @@ "@walmart/config-components": "3.0.2", "@walmart/counts-component-miniapp": "0.0.34", "@walmart/exception-mini-app": "0.40.2", - "@walmart/feedback-all-spark-miniapp": "0.1.33", + "@walmart/feedback-all-spark-miniapp": "0.3.4", "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -13,6 +13,7 @@ import {Components, Properties} from '@walmart/push-to-talk-mini-app'; import { FeedbackMiniApp, ShareConcernScreen, + ShareIdeasScreen, } from '@walmart/feedback-all-spark-miniapp'; import {FeedbackDialogScreen} from '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/FeedbackDialogScreen'; import {SurveySaysDialogScreen} from '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/SurveySaysDialogScreen'; @@ -119,7 +120,7 @@ export const MainStackNav = () => { name='ShareConcerns' component={ShareConcernScreen} /> - + <MainStack.Screen name='ShareIdeas' component={ShareIdeasScreen} /> <MainStack.Screen name='Settings' component={SettingsMiniApp} /> <MainStack.Screen
Feedback mini version bump
Feedback mini version bump
47d20de267692b6f2a78a4f576b25add50590a82
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.17", + "version": "1.0.18", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/roster-mini-app", - "version": "1.0.17", + "version": "1.0.18", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", @@ -66,7 +66,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.15", + "@walmart/wmconnect-mini-app": "1.0.16", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11834,9 +11834,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.15", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.15.tgz", - "integrity": "sha512-nPIUPqtMXnTwR1UahbkO6o2reB8J2kVg2F1h0LKBn8v2AebEfJXfYDelKDFgKd+BsMJ6g/oE2BdHmc5WoDX2/g==", + "version": "1.0.16", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16.tgz", + "integrity": "sha512-cW1wpQmHKZ6QGDQnzqDcIfKYhquoOmLAN+aDzr8Mdp7cKkcxtmtsTWY9qLE1Kr6dFGIjlikL+0dTF3RuktJ1+A==", "dev": true, "hasInstallScript": true }, @@ -41046,9 +41046,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.15", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.15.tgz", - "integrity": "sha512-nPIUPqtMXnTwR1UahbkO6o2reB8J2kVg2F1h0LKBn8v2AebEfJXfYDelKDFgKd+BsMJ6g/oE2BdHmc5WoDX2/g==", + "version": "1.0.16", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16.tgz", + "integrity": "sha512-cW1wpQmHKZ6QGDQnzqDcIfKYhquoOmLAN+aDzr8Mdp7cKkcxtmtsTWY9qLE1Kr6dFGIjlikL+0dTF3RuktJ1+A==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.17", + "version": "1.0.18", "private": false, "main": "dist/index.js", "files": [ @@ -89,7 +89,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.15", + "@walmart/wmconnect-mini-app": "1.0.16", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
Update version
Update version
e3729817f0a92a7485256bda649e4d3cf3886076
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -485,6 +485,7 @@ "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL", "${PODS_XCFRAMEWORKS_BUILD_DIR}/ScanditBarcodeCapture/ScanditBarcodeCapture.framework/ScanditBarcodeCapture", "${PODS_XCFRAMEWORKS_BUILD_DIR}/ScanditCaptureCore/ScanditCaptureCore.framework/ScanditCaptureCore", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/compass-sdk-rn/compass_sdk_ios.framework/compass_sdk_ios", "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework/hermes", ); name = "[CP] Embed Pods Frameworks"; @@ -494,6 +495,7 @@ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ScanditBarcodeCapture.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ScanditCaptureCore.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/compass_sdk_ios.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", ); runOnlyForDeploymentPostprocessing = 0; --- ios/Podfile.lock @@ -16,6 +16,8 @@ PODS: - BVLinearGradient (2.6.2): - React-Core - CocoaAsyncSocket (7.6.5) + - compass-sdk-rn (3.16.17): + - React-Core - DoubleConversion (1.1.6) - FBLazyVector (0.70.9) - FBReactNativeSpec (0.70.9): @@ -689,6 +691,8 @@ PODS: - React-Core - React-RCTImage - TOCropViewController + - RNInAppBrowser (3.7.0): + - React-Core - RNPermissions (3.6.1): - React-Core - RNReactNativeHapticFeedback (1.14.0): @@ -774,6 +778,7 @@ DEPENDENCIES: - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) - BVLinearGradient (from `../node_modules/react-native-linear-gradient`) - CocoaAsyncSocket + - "compass-sdk-rn (from `../node_modules/@walmart/compass-sdk-rn`)" - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) @@ -883,6 +888,7 @@ DEPENDENCIES: - RNFS (from `../node_modules/react-native-fs`) - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) - RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`) + - RNInAppBrowser (from `../node_modules/react-native-inappbrowser-reborn`) - RNPermissions (from `../node_modules/react-native-permissions`) - RNReactNativeHapticFeedback (from `../node_modules/react-native-haptic-feedback`) - RNReanimated (from `../node_modules/react-native-reanimated`) @@ -959,6 +965,8 @@ EXTERNAL SOURCES: :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" BVLinearGradient: :path: "../node_modules/react-native-linear-gradient" + compass-sdk-rn: + :path: "../node_modules/@walmart/compass-sdk-rn" DoubleConversion: :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" FBLazyVector: @@ -1119,6 +1127,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-gesture-handler" RNImageCropPicker: :path: "../node_modules/react-native-image-crop-picker" + RNInAppBrowser: + :path: "../node_modules/react-native-inappbrowser-reborn" RNPermissions: :path: "../node_modules/react-native-permissions" RNReactNativeHapticFeedback: @@ -1154,6 +1164,7 @@ SPEC CHECKSUMS: boost: a7c83b31436843459a1961bfd74b96033dc77234 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 + compass-sdk-rn: ae72c59724e5864ef20582e487c93187a87dd4fa DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 FBLazyVector: bc76253beb7463b688aa6af913b822ed631de31a FBReactNativeSpec: 85d34420d92cb178897de05e3aba90e7a8568162 @@ -1269,6 +1280,7 @@ SPEC CHECKSUMS: RNFS: 4ac0f0ea233904cb798630b3c077808c06931688 RNGestureHandler: 071d7a9ad81e8b83fe7663b303d132406a7d8f39 RNImageCropPicker: 648356d68fbf9911a1016b3e3723885d28373eda + RNInAppBrowser: e36d6935517101ccba0e875bac8ad7b0cb655364 RNPermissions: dcdb7b99796bbeda6975a6e79ad519c41b251b1c RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c RNReanimated: 6668b0587bebd4b15dd849b99e5a9c70fc12ed95 @@ -1296,6 +1308,6 @@ SPEC CHECKSUMS: Yoga: dc109b79db907f0f589fc423e991b09ec42d2295 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 5d9ba60be3dfb87f4278eff1d4ebb95b0c7dbcf4 +PODFILE CHECKSUM: 428e0e59976a5af07a4bda2ef6a2bae4353919ea COCOAPODS: 1.12.0
Updated after pod install.
Updated after pod install.
3302bdb02a14bcd0895eb885a8b0db9ceac4c17c
--- package.json @@ -81,7 +81,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "latest", - "@walmart/allspark-foundation-hub": "1.4.0", + "@walmart/allspark-foundation-hub": "latest", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", --- yarn.lock @@ -5992,7 +5992,7 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.4.0": +"@walmart/allspark-foundation-hub@npm:latest": version: 1.4.0 resolution: "@walmart/allspark-foundation-hub@npm:1.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.4.0.tgz" dependencies: @@ -6410,7 +6410,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:latest" - "@walmart/allspark-foundation-hub": "npm:1.4.0" + "@walmart/allspark-foundation-hub": "npm:latest" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0"
fix(ui): update the my team mini app version smdv-9999
fix(ui): update the my team mini app version smdv-9999
8116c0020dfe366a400a0e422c235a88b20fe3ed
--- app.config.US.ts @@ -71,6 +71,19 @@ const CONFIG: ExpoConfig = { }, experiments: { tsconfigPaths: true, + buildCacheProvider: { + plugin: '@walmart/allspark-build-cache-provider', + options: { + // Strategy is 'local-only' so this has no effect, but is currently required by the plugin + github: { + owner: 'x-user-id', + repo: 'x-repo-name', + token: process.env.GITHUB_TOKEN, + }, + cacheStrategy: 'local-only', // 'local-only' | 'remote-only' | 'local-and-remote' + fingerprintDebugging: false, + } + } }, assetBundlePatterns: ['**/*'], // Will be available on Constants.expoConfig.extra @@ -268,13 +281,6 @@ const CONFIG: ExpoConfig = { ] } ], - [ - 'expo-video', - { - supportsBackgroundPlayback: true, - supportsPictureInPicture: true - } - ], [ExpoPlugins.withBuildProperties, { android: { enableR8: { --- fingerprint.config.js @@ -0,0 +1,32 @@ +import {SourceSkips} from '@expo/fingerprint'; + +/** @type {import('@expo/fingerprint').Config} */ +const fingerprintOptions = { + sourceSkips: [ + SourceSkips.ExpoConfigVersions, // Exclude version numbers that change on every build + SourceSkips.ExpoConfigExtraSection, // Exclude NODE_ENV, TARGET + SourceSkips.PackageJsonAndroidAndIosScriptsIfNotContainRun, // Exclude scripts that don't contain "run" + ], + + // ignorePaths: [], + + // Normalize sensitive tokens + fileHookTransform: (source, chunk, _isEndOfFile, _encoding) => { + if (source.type === 'contents' && source.id === 'expoConfig') { + // Remove the experiments section from the config before hashing + let content = chunk.toString(); + try { + const configObj = JSON.parse(content); + delete configObj.experiments; + return JSON.stringify(configObj); + } catch { + // If parsing fails, fallback to original content + return content; + } + } + return chunk; + } +}; + +export default fingerprintOptions; + --- package.json @@ -331,6 +331,7 @@ "@types/node": "latest", "@types/react": "~19.0.10", "@types/react-native-vector-icons": "6.4.18", + "@walmart/allspark-build-cache-provider": "1.1.0", "adaptive-expressions": "^4.13.5", "adaptivecards-templating": "^2.1.0", "eslint": "^8.19.0", --- yarn.lock @@ -7094,6 +7094,18 @@ __metadata: languageName: node linkType: hard +"@walmart/allspark-build-cache-provider@npm:1.1.0": + version: 1.1.0 + resolution: "@walmart/allspark-build-cache-provider@npm:1.1.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-build-cache-provider%2F-%2F%40walmart%2Fallspark-build-cache-provider-1.1.0.tgz" + peerDependencies: + "@expo/fingerprint": ~0.13.4 + expo: 53.x + react: 19.x + react-native: 0.79.x + checksum: 10c0/09de9b9f725d59406fa49562464fb91a1eb42d13d50b71585990407bac427b7c96dec52d1e232ccbd3b0001aef78e4b02b7787bcaa904689e9651533360ee061 + languageName: node + linkType: hard + "@walmart/allspark-cli@npm:^1.7.3": version: 1.7.3 resolution: "@walmart/allspark-cli@npm:1.7.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-cli%2F-%2F%40walmart%2Fallspark-cli-1.7.3.tgz" @@ -8437,6 +8449,7 @@ __metadata: "@types/react": "npm:~19.0.10" "@types/react-native-vector-icons": "npm:6.4.18" "@walmart/allspark-authentication": "npm:7.1.4" + "@walmart/allspark-build-cache-provider": "npm:1.1.0" "@walmart/allspark-cope-key-listener": "npm:0.0.18" "@walmart/allspark-foundation": "npm:7.17.0" "@walmart/allspark-foundation-hub": "npm:1.25.18"
feat: add build cache (#5240)
feat: add build cache (#5240)
7c99627f6edd95a1639cd442d827938e72ca704b
--- package-lock.json @@ -135,6 +135,7 @@ "react-native-new-snap-carousel": "^3.9.3", "react-native-pager-view": "^6.0.1", "react-native-pdf": "^6.6.2", + "react-native-pell-rich-editor": "^1.8.8", "react-native-permissions": "3.6.1", "react-native-popup-menu": "^0.16.0", "react-native-ptt-module": "1.8.12", @@ -17967,6 +17968,16 @@ "deprecated-react-native-prop-types": "^2.3.0" } }, + "node_modules/react-native-pell-rich-editor": { + "version": "1.8.8", + "resolved": "https://npme.walmart.com/react-native-pell-rich-editor/-/react-native-pell-rich-editor-1.8.8.tgz", + "integrity": "sha512-pPpj3rVEbmOcGbUMiutuQhpxp5HzOQlhVGhZ6B7aWlsliWWDtsi+lu3RXNV+g62PcQ07qDDtZwKOx1fSzff6HQ==", + "license": "MIT", + "peerDependencies": { + "react-native": ">=0.50.0", + "react-native-webview": ">=7.5.2" + } + }, "node_modules/react-native-permissions": { "version": "3.6.1", "license": "MIT", @@ -33306,6 +33317,11 @@ "deprecated-react-native-prop-types": "^2.3.0" } }, + "react-native-pell-rich-editor": { + "version": "1.8.8", + "resolved": "https://npme.walmart.com/react-native-pell-rich-editor/-/react-native-pell-rich-editor-1.8.8.tgz", + "integrity": "sha512-pPpj3rVEbmOcGbUMiutuQhpxp5HzOQlhVGhZ6B7aWlsliWWDtsi+lu3RXNV+g62PcQ07qDDtZwKOx1fSzff6HQ==" + }, "react-native-permissions": { "version": "3.6.1" }, --- package.json @@ -177,6 +177,7 @@ "react-native-new-snap-carousel": "^3.9.3", "react-native-pager-view": "^6.0.1", "react-native-pdf": "^6.6.2", + "react-native-pell-rich-editor": "^1.8.8", "react-native-permissions": "3.6.1", "react-native-popup-menu": "^0.16.0", "react-native-ptt-module": "1.8.12", --- patches/react-native-pell-rich-editor+1.8.8.patch @@ -0,0 +1,20 @@ +diff --git a/node_modules/react-native-pell-rich-editor/src/RichEditor.js b/node_modules/react-native-pell-rich-editor/src/RichEditor.js +index 74de536..490cd29 100755 +--- a/node_modules/react-native-pell-rich-editor/src/RichEditor.js ++++ b/node_modules/react-native-pell-rich-editor/src/RichEditor.js +@@ -268,7 +268,6 @@ export default class RichTextEditor extends Component { + keyboardDisplayRequiresUserAction={false} + nestedScrollEnabled={!useContainer} + style={[styles.webview, style]} +- {...rest} + ref={that.setRef} + onMessage={that.onMessage} + originWhitelist={['*']} +@@ -278,6 +277,7 @@ export default class RichTextEditor extends Component { + javaScriptEnabled={true} + source={viewHTML} + onLoad={that.init} ++ {...rest} + /> + {Platform.OS === 'android' && <TextInput ref={ref => (that._input = ref)} style={styles._input} />} + </>
feature/profile-feature-app_rn70
feature/profile-feature-app_rn70
7a671c75f582b67ae95ae4d449d86292d0086e38
--- packages/allspark-foundation/src/HTTP/client.ts @@ -14,8 +14,7 @@ import { ResponseInterceptor, } from './types'; import { warnForIncorrectInterceptors, warnForLegacyCalls } from './warnings'; -import { AsyncHookResult, useAsync } from '@walmart/allspark-utils'; -import { useCallback } from 'react'; +import { useAsync, useLazyAsync } from '@walmart/allspark-utils'; const TIMEOUT = 10000; const NON_HEADER_KEYS = [ @@ -348,29 +347,22 @@ export class HttpClient extends Axios { * of the HttpClient instance. */ public useRequest<D extends any>(config: HttpClientRequestConfig<D>) { - // eslint-disable-next-line react-hooks/exhaustive-deps, react-hooks/rules-of-hooks - return useAsync(useCallback(() => this.request<D>(config), [])); + // eslint-disable-next-line react-hooks/rules-of-hooks + return useAsync( + (c: HttpClientRequestConfig<D>) => this.request<D>(c), + config + ); } /** - * Wrapper around the `useAsync` hook from `@walmart/allspark-utils` using the `request` method - * of the HttpClient instance. This hook will not be called on mount, but rather when the returned - * `refetch` function is called. + * Wrapper around the `useLazyAsync` hook from `@walmart/allspark-utils`. + * This hook will not be called on mount, but rather when the returned `reload` function is called. */ - public useLazyRequest<D extends any>( - config: HttpClientRequestConfig<D> & { featureId?: string } - ) { + public useLazyRequest<D extends any>(config: HttpClientRequestConfig<D>) { // eslint-disable-next-line react-hooks/rules-of-hooks - const state = useAsync( - // eslint-disable-next-line react-hooks/exhaustive-deps, react-hooks/rules-of-hooks - useCallback(() => this.request<D>(config), []), - false + return useLazyAsync((c: HttpClientRequestConfig<D>) => + this.request<D>(c || config) ); - - return [state.refetch, state] as [ - () => void, - AsyncHookResult<AxiosResponse<D>> - ]; } /** --- packages/allspark-foundation/src/HTTP/context.tsx @@ -1,11 +1,5 @@ -import React, { - createContext, - useContext, - PropsWithChildren, - useCallback, -} from 'react'; -import { AxiosResponse } from 'axios'; -import { AsyncHookResult, useAsync } from '@walmart/allspark-utils'; +import React, { createContext, useContext, PropsWithChildren } from 'react'; +import { useAsync, useLazyAsync } from '@walmart/allspark-utils'; import { AllsparkHttpClient, HttpClient } from './client'; import { HttpClientRequestConfig } from './types'; @@ -69,8 +63,10 @@ export const useHttpClientRequest = <D extends any>( ) => { const httpClient = useHttpClient(); - // eslint-disable-next-line react-hooks/exhaustive-deps - return useAsync(useCallback(() => httpClient.request<D>(config), [])); + return useAsync( + (c: HttpClientRequestConfig<D>) => httpClient.request<D>(c), + config + ); }; /** @@ -94,14 +90,7 @@ export const useLazyHttpClientRequest = <D extends any>( ) => { const httpClient = useHttpClient(); - const state = useAsync( - // eslint-disable-next-line react-hooks/exhaustive-deps - useCallback(() => httpClient.request<D>(config), []), - false + return useLazyAsync((c: HttpClientRequestConfig<D>) => + httpClient.request<D>(c || config) ); - - return [state.refetch, state] as [ - () => void, - AsyncHookResult<AxiosResponse<D>> - ]; };
refactor: update http client for new async hook format in utils
refactor: update http client for new async hook format in utils
3fdcdd3c90ed8a8c02527e6f6e703cbd51f5a0d1
--- packages/allspark-utils/__tests__/registries/MethodRegistry.test.ts @@ -0,0 +1,104 @@ +import { MethodRegistry } from '../../src/registries/MethodRegistry'; + +describe('MethodRegistry', () => { + type TestMethods = { + methodA: (x: number, y: number) => number; + methodB: (msg: string) => string; + }; + + let registry: MethodRegistry<TestMethods>; + + beforeEach(() => { + registry = new MethodRegistry<TestMethods>('testRegistry'); + }); + + it('initializes with an empty registry', () => { + expect(registry.size).toBe(0); + }); + + it('initializes with predefined methods', () => { + const initialMethods: Array< + [keyof TestMethods, TestMethods[keyof TestMethods]] + > = [ + ['methodA', (x, y) => x + y], + ['methodB', (msg) => `Hello, ${msg}`], + ]; + const initializedRegistry = new MethodRegistry<TestMethods>( + 'testRegistry', + initialMethods + ); + + expect(initializedRegistry.size).toBe(2); + expect(initializedRegistry.get('methodA')).toBeDefined(); + expect(initializedRegistry.get('methodB')).toBeDefined(); + }); + + it('adds a new method to the registry', () => { + const methodA = (x: number, y: number) => x + y; + registry.set('methodA', methodA); + + expect(registry.size).toBe(1); + expect(registry.get('methodA')).toBe(methodA); + }); + + it('executes a method using runMethod', () => { + const methodA = (x: number, y: number) => x + y; + registry.set('methodA', methodA); + + const result = registry.runMethod('methodA', 3, 4); + expect(result).toBe(7); + }); + + it('returns null when trying to run a non-existent method', () => { + const result = registry.runMethod('nonExistentMethod' as keyof TestMethods); + expect(result).toBeNull(); + }); + + it('enforces the limit on the number of methods', () => { + const spyConsoleWarn = jest.spyOn(console, 'warn'); + const limitedRegistry = new MethodRegistry<TestMethods>( + 'limitedRegistry', + [], + 2 + ); + + limitedRegistry.set('methodA', (x, y) => x + y); + limitedRegistry.set('methodC', (msg) => `Hello, ${msg}`); + limitedRegistry.set('methodB', () => 'This will trigger console warning'); + expect(spyConsoleWarn).toHaveBeenCalledWith( + 'limitedRegistry registry has met limit, methodB was not registered' + ); + }); + + it('overwrites an existing method when setting the same key', () => { + const methodA1 = (x: number, y: number) => x + y; + const methodA2 = (x: number, y: number) => x * y; + + registry.set('methodA', methodA1); + expect(registry.runMethod('methodA', 3, 4)).toBe(7); + + registry.set('methodA', methodA2); + expect(registry.runMethod('methodA', 3, 4)).toBe(12); + }); + + it('removes a method from the registry', () => { + const methodA = (x: number, y: number) => x + y; + registry.set('methodA', methodA); + + expect(registry.size).toBe(1); + + registry.delete('methodA'); + expect(registry.size).toBe(0); + expect(registry.get('methodA')).toBeUndefined(); + }); + + it('clears all methods from the registry', () => { + registry.set('methodA', (x, y) => x + y); + registry.set('methodB', (msg) => `Hello, ${msg}`); + + expect(registry.size).toBe(2); + + registry.clear(); + expect(registry.size).toBe(0); + }); +});
test: allspark-utils methodRegistry
test: allspark-utils methodRegistry
40fa1505594f8325701ccb8cb0aa30ab57027508
--- src/managerExperience/utils/allTeamsScreen.tsx @@ -19,7 +19,7 @@ const sortTeamsAscComparator = (teamA: TeamInfo, teamB: TeamInfo) => { export const createAllTeamsSections = ( allTeams: (Team | null)[] | null | undefined, - primaryTeamId: any, + primaryTeamId: string, primaryTeamArea: string, ) => { if (!allTeams || !primaryTeamId || allTeams.some((team) => team === null))
feat: fixed primaryTeamId type
feat: fixed primaryTeamId type
bc161d901bc7b36d22e965b712f8f582e03ab2c6
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 110 + versionCode 111 versionName "1.0.9" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>110</string> + <string>111</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
b4c0dc22cbc7c5426d3b7362651a11668859adbe
--- package-lock.json @@ -84,7 +84,7 @@ "@walmart/pay-stub-miniapp": "0.15.2", "@walmart/payrollsolution_miniapp": "0.140.1", "@walmart/price-changes-mini-app": "1.10.6", - "@walmart/profile-feature-app": "1.138.2", + "@walmart/profile-feature-app": "1.138.3", "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "6.0.5", "@walmart/react-native-logger": "1.34.8", @@ -12042,9 +12042,9 @@ } }, "node_modules/@walmart/profile-feature-app": { - "version": "1.138.2", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-1.138.2.tgz", - "integrity": "sha512-j0kVqlS1sEel2LOP9CHMNV31lykjdkZt9exsYHAA/9HtiHRma7CyzRIjg7LBJcruXKuyOGJqoNc1totGSDljMQ==", + "version": "1.138.3", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-1.138.3.tgz", + "integrity": "sha512-v6V7BTqMfvVrQekoVB3Ar4MhfD/wOQjokQTTy3eJqtqiqHtfTkOUFVYUdvQZwC0ib7Ip+i8FmgpbJxGFze5Ksw==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/bottom-tabs": "^6.0.0",
package lock json updated
package lock json updated
b759baed0bd0816e07912114142c304d0a58c01b
--- package.json @@ -176,7 +176,7 @@ "@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.10", + "@walmart/taskit-mini-app": "5.52.12", "@walmart/time-clock-feature-app": "1.0.1", "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.13#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch", "@walmart/timesheet-feature-app": "0.2.0", --- yarn.lock @@ -8910,7 +8910,7 @@ __metadata: "@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.10" + "@walmart/taskit-mini-app": "npm:5.52.12" "@walmart/time-clock-feature-app": "npm:1.0.1" "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.13#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch" "@walmart/timesheet-feature-app": "npm:0.2.0" @@ -9959,13 +9959,13 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.52.10": - version: 5.52.10 - resolution: "@walmart/taskit-mini-app@npm:5.52.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.52.10.tgz" +"@walmart/taskit-mini-app@npm:5.52.12": + version: 5.52.12 + resolution: "@walmart/taskit-mini-app@npm:5.52.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.52.12.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/gtp-shared-components-3": "*" - checksum: 10c0/80a517949f1ef8d5b79a2a0f53d35a1f74c5e82fa7ac6c51ed2dceff43dcc7a45a0b8fb63e52631b801aa4325e8c97b17fee81c9e7f5846f74877c1aad1110a3 + checksum: 10c0/a2dd0b69fede313c0908c06426aad55f7f15643f6a30711ba6a8796d14e8cd00c2de4c56db3a25af7053b2b902b2c328245618104179f159e805fb82545bd64c languageName: node linkType: hard
fix(notes): taskit mini app my walmart 2.0 bug fixes TASKIT-8132 (#5346)
fix(notes): taskit mini app my walmart 2.0 bug fixes TASKIT-8132 (#5346) Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com> Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com> Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com> Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com>
d715afd63524be292c3da2ed4080792b65deba52
--- package-lock.json @@ -1856,9 +1856,9 @@ } }, "@walmart/allspark-home-mini-app": { - "version": "0.1.0", - "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.1.0.tgz", - "integrity": "sha512-OPr3gJ9fi5n0WaAfuAig8d2QQJdmdamZ87MDcPEE0WAQPg9N6fux44CU0wrwG0K0cDKA1uviregGd4YlSXchEQ==", + "version": "0.1.1", + "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.1.1.tgz", + "integrity": "sha512-P64sXSZB7I5uTQSL4weIsjQG6SpkafFWFqwaybKD/TUmCDK8pN+jFVa/Ykm4kgaZo01PJDnKuEyyBen3zBVeXg==", "requires": { "moment": "^2.29.0", "react-native-get-random-values": "^1.5.0", @@ -1937,9 +1937,9 @@ "integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.0.19", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.19.tgz", - "integrity": "sha512-4dX+FyOYmEDzbTGLUP+4HBpQJ48KAShFYNRLblhrpiVfhvNKWkWkuFLCnCjg1xFTB3z0cCvnZu7ccm+Yd3IxIQ==" + "version": "0.0.20", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.20.tgz", + "integrity": "sha512-K7+mBGIgiJwbU62G2PZbv+qIDRXPlaCSXeWd2RkFWm2w2mnGCC/X9JWaC/vCW8cBFoJxluV2JLtrTA3MOyD+3A==" }, "@walmart/react-native-logger": { "version": "1.14.0", @@ -1957,9 +1957,13 @@ "integrity": "sha512-GFNpH0YBW+Y2wAvPPj8v9W3Ql8Qzy7zuAi71jhC4wn0VvdBbDnn5HcR8YFT7bgFRjCXmuWB7IM4snFrH74Nztw==" }, "@walmart/schedule-mini-app": { - "version": "0.2.5", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.5.tgz", - "integrity": "sha512-HvLAfwIR/0hFxGS7iL4mx97hCKE+x/MrmuTKwfB3P62DktFQ1xCP1fpWLUtzIeZtnXZADS197a1ikKaO/uFXpA==" + "version": "0.2.8", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.8.tgz", + "integrity": "sha512-NcvOleZh3rZTgBgXFIrVz3h0XfB2iQrZzel2pTVbDUJNGpo2o2lQ8vZZPenBMQhBc8aFbDBLJeEb+peUzfmxkw==", + "requires": { + "@walmart/moment-walmart": "^1.0.4", + "reselect": "^4.0.0" + } }, "@walmart/time-clock-mini-app": { "version": "0.0.9", @@ -2020,15 +2024,16 @@ } }, "@walmart/wfm-ui": { - "version": "0.1.13", - "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.13.tgz", - "integrity": "sha512-J25yEQ0zkyk1nuJKuMVPSXQ3zjUwYeF+bAd8FCUdogrSv/4RNkvbCfdEs8QcAED2Xqub05myazXzZzYWSTvIiA==", + "version": "0.1.18", + "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.18.tgz", + "integrity": "sha512-uix6xyJaZ97/zrOigIsmJba8Rax5wBrKnpMc5zAxIVlQdqYKZ6XGd9koOokoeDmAhMr+Jo25OD5Poe/587y2Zg==", "requires": { + "@walmart/gtp-shared-components": "^0.2.2", "@walmart/moment-walmart": "1.0.3", "lodash.get": "^4.4.2", "lodash.isequal": "^4.5.0", "lodash.uniqby": "^4.7.0", - "moment": "2.27.0", + "moment": "^2.27.0", "react-native-material-menu": "^0.4.2", "react-native-vector-icons": "^7.0.0", "wm-react-native-vector-icons": "^1.0.26", @@ -2041,9 +2046,9 @@ "integrity": "sha512-rq1NYboOSqlXtiorH3m+8FwaInZ9X6epZpecrf9IjPmxvsXWbCcFxjybtqcPhux6FzcViIUWsJ3gnZBhYls8rA==" }, "moment": { - "version": "2.27.0", - "resolved": "https://npme.walmart.com/moment/-/moment-2.27.0.tgz", - "integrity": "sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ==" + "version": "2.29.1", + "resolved": "https://npme.walmart.com/moment/-/moment-2.29.1.tgz", + "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" } } }, @@ -11571,9 +11576,9 @@ "dev": true }, "wfm-allspark-data-library": { - "version": "0.0.4", - "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.4.tgz", - "integrity": "sha512-on00OTbT6NPxoLus7XU36dAsS5ZXq1wSq7OQBKSqhbo8u4R5bb21+rVvnB03QyJH2CUKHp0wG9/j2D4lIhSEsw==", + "version": "0.0.6", + "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.6.tgz", + "integrity": "sha512-MvPQVhtQ2I+DuC4/+O8CsFEHCcAUe4pf6zYUWXe/91o7fku5ah5UR7gkC8aFkWDTyuO/7XaFgVkrXtQZIEjKSg==", "requires": { "azure-storage": "2.10.3", "moment": "2.24.0", --- package.json @@ -37,7 +37,7 @@ "@react-navigation/stack": "^5.9.0", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": "^4.14.159", - "@walmart/allspark-home-mini-app": "0.1.0", + "@walmart/allspark-home-mini-app": "0.1.1", "@walmart/allspark-me-mini-app": "0.0.5", "@walmart/ask-sam-mini-app": "^0.6.6", "@walmart/config-components": "^1.0.4", @@ -48,10 +48,10 @@ "@walmart/react-native-logger": "^1.14.0", "@walmart/react-native-shared-navigation": "^0.2.0", "@walmart/redux-store": "^1.0.4", - "@walmart/schedule-mini-app": "0.2.5", + "@walmart/schedule-mini-app": "0.2.8", "@walmart/time-clock-mini-app": "0.0.9", "@walmart/ui-components": "^1.0.66", - "@walmart/wfm-ui": "^0.1.13", + "@walmart/wfm-ui": "0.1.18", "i18next": "^19.7.0", "intl": "^1.2.5", "lodash": "^4.17.20", @@ -96,7 +96,7 @@ "reselect": "^4.0.0", "rn-fetch-blob": "^0.12.0", "victory-native": "^35.0.1", - "wfm-allspark-data-library": "0.0.4" + "wfm-allspark-data-library": "0.0.6" }, "devDependencies": { "@babel/core": "^7.8.4",
bump schedules mini app version
bump schedules mini app version
1275b9b31eac822746d12d1748565f9ea8db69b1
--- packages/allspark-foundation/__tests__/Auth/sagas.test.tsx @@ -15,6 +15,15 @@ jest.mock('../../src/Auth/service', ()=>({ } })) describe('Auth/sagas.ts', () => { + const mockAuthResult: AuthResult = { + scopes: ['test'], + accessToken: 'test', + accessTokenExpirationDate: '', + idToken: 'string', + refreshToken: 'string', + tokenType: 'string', + authorizationCode: 'string' + }; const mockGetUser = AuthService.getUser as jest.Mock; const mockSignIn = AuthService.signIn as jest.Mock; const mockSignOut = AuthService.signOut as jest.Mock; @@ -57,23 +66,6 @@ describe('Auth/sagas.ts', () => { expect(generator.next().done).toBe(true); expect(mockSignOut).toHaveBeenCalled(); }); -}); - -const mockAuthResult: AuthResult = { - scopes: ['test'], - accessToken: 'test', - accessTokenExpirationDate: '', - idToken: 'string', - refreshToken: 'string', - tokenType: 'string', - authorizationCode: 'string' -}; - -describe('waitForSignIn Saga', () => { - beforeEach(() => { - jest.clearAllMocks(); - }); - function expectSelectEffect(actual, expectedSelector) { expect(actual['@@redux-saga/IO']).toBe(true); expect(actual.combinator).toBe(false); @@ -85,7 +77,6 @@ describe('waitForSignIn Saga', () => { expect(typeof actual.payload.selector).toBe('function'); } } - it('should wait for SIGN_IN_SUCCESS or SIGN_IN_ERROR if signing in or data is null and no error', () => { const iterator = waitForToken(); @@ -117,13 +108,6 @@ describe('waitForSignIn Saga', () => { expect(iterator.next(false).done).toBe(false); expect(iterator.next().value).toEqual(undefined); }); -}); - -describe('waitForToken Saga', () => { - beforeEach(() => { - jest.clearAllMocks(); - }); - it('should wait for fetching if data is null and no error', () => { const iterator = waitForToken(); @@ -161,3 +145,6 @@ describe('waitForToken Saga', () => { expect(iterator.next().value).toEqual(undefined); }); }); + + + --- packages/allspark-foundation/__tests__/Clock/saga.test.ts @@ -70,14 +70,6 @@ describe('waitForClockInit Saga', () => { expect(generator.next(false).done).toBe(true); expect(generator.next().value).toEqual(undefined); }); -}); - - -describe('waitForClockFetch Saga', () => { - beforeEach(() => { - jest.clearAllMocks(); - }); - it('should wait for FETCH_SUCCESS or FETCH_ERROR if clock is loading or data is not loaded and no error', () => { const generator = waitForClockFetch(); expect(generator.next().value).toEqual(select(ClockSelectors.getLoading)); @@ -121,3 +113,5 @@ describe('waitForClockFetch Saga', () => { expect(generator.next().value).toEqual(undefined); }); }); + +
address pr comment
address pr comment
279c3a502b6ede864a8c592928fe7471d1fbde7d
--- 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.9", + "@walmart/facilities-management-miniapp": "0.3.0", "@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
dce4e0f0d5a8bb9fd9d23ceb100aed9ba0b641c3
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.2.0-alpha.5", + "version": "3.2.0-alpha.6", "main": "dist/index.js", "files": [ "dist", --- src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/SalariedOrTeamLeadRosterWidget.tsx @@ -1,7 +1,7 @@ import React, {useState, useEffect, useCallback} from 'react'; import {View} from 'react-native'; import {useSelector} from 'react-redux'; -import {Widget} from '@walmart/allspark-foundation-hub'; +import {HubWidget} from '@walmart/allspark-foundation-hub'; import {Body, Heading} from '@walmart/gtp-shared-components'; import {WidgetErrorBoundary} from './WidgetErrorBoundary'; import {logger, rosterTelemetry, translationClient} from '../../../../common'; @@ -27,6 +27,7 @@ export interface SalariedOrTeamLeadRosterWidgetProps { refresh?: string | number | null; // refreshTimestamp from Hub widgetStyle?: any; // styles.cardStyle from Hub teamData?: any; // team data from Hub context + isSiteDC?: boolean; // site type flag for DC vs Store // TeamHubWidgetProps compliance (from Hub layout) selectedTeamPreference?: string; @@ -45,6 +46,7 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC<SalariedOrTeamLeadRosterWidge refresh, widgetStyle, teamData, // Contains: selectedTeams, currentTeam, selectedShifts, shiftData, etc. + isSiteDC = false, // Default to store selectedTeamPreference, selectedTeamIds = [], selectedShifts = [], @@ -53,7 +55,10 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC<SalariedOrTeamLeadRosterWidge const [clickCount, setClickCount] = useState(0); const {t} = translationClient.useTranslation(); - const isSiteDC = useSelector(SiteSelectors.getWorkingSiteIsDC); + + // Get site type from selector and allow override from props + const selectorIsSiteDC = useSelector(SiteSelectors.getWorkingSiteIsDC); + const effectiveIsSiteDC = isSiteDC ?? selectorIsSiteDC; // Access shift data from teamData if needed: // const shiftData = teamData?.shiftData || {}; @@ -78,7 +83,7 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC<SalariedOrTeamLeadRosterWidge refresh: refresh?.toString() || null, widgetStyle, teamData, - }, isSiteDC); + }, effectiveIsSiteDC); const isPartialDataError = isPartialSupplyChainShiftsError || @@ -169,18 +174,16 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC<SalariedOrTeamLeadRosterWidge }; return ( - <Widget + <HubWidget iconName='AssociateIcon' - title={t('hubWidget.roster.title', { - default: 'Salaried & Team Lead Roster', + moduleTitle={t('hubWidget.roster.title', { + default: effectiveIsSiteDC ? 'DC Salaried & Team Lead Roster' : 'Salaried & Team Lead Roster', fallbackLng: 'en-US', })} shortIntro={`Teams: ${selectedTeamIds.length > 0 ? selectedTeamIds.join(', ') : 'All'}`} - variant={{ - type: 'content-only', - content: renderWidgetContent(), - }} - onHeaderPress={() => { + variant='content-only' + content={renderWidgetContent()} + onActionPress={() => { // Handle navigation to roster details rosterTelemetry.logEvent('salaried_roster_header_tap', { widget_id: 'salaried-or-team-lead-roster-widget', @@ -197,8 +200,13 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC<SalariedOrTeamLeadRosterWidge console.log('🚨 Navigation to SalariedRosterDetailsScreen requested'); AllsparkNavigationClient.navigate('myTeam.rosterDetail') }} - isLoading={combinedLoadingState} - style={styles.widgetStyle} + loading={combinedLoadingState} + routeName='myTeam.rosterDetail' + routeParams={{ + selectedTeamIds, + teamData, + isSiteDC + }} /> ); }; --- src/config/HubConfig.tsx @@ -6,6 +6,7 @@ * for use in the Associate Experience Hub. */ +import React from 'react'; import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; import {SalariedOrTeamLeadRosterWidget} from '../components/MyWalmartv2/Widgets'; @@ -20,16 +21,21 @@ export const ROSTER_HUB_CONFIG = { /** * Register Roster components with the Hub Framework */ -export const registerRosterComponents = () => { +export const registerRosterComponents = (isSiteDC: boolean = false) => { try { - // Register Roster Widget + // Create a wrapper component that passes isSiteDC to the widget + const RosterWidgetWithSiteConfig = (props: any) => ( + <SalariedOrTeamLeadRosterWidget {...props} isSiteDC={isSiteDC} /> + ); + + // Register Roster Widget with site configuration AllsparkComponentContainers.add( ROSTER_HUB_CONFIG.ID, ROSTER_HUB_CONFIG.WIDGET_IDS.ROSTER, - SalariedOrTeamLeadRosterWidget + RosterWidgetWithSiteConfig ); - console.log('Roster components registered successfully'); + console.log('Roster components registered successfully with isSiteDC:', isSiteDC); } catch (error) { console.error('Failed to register Roster components:', error); throw error; @@ -39,6 +45,6 @@ export const registerRosterComponents = () => { /** * Initialize Roster Hub integration */ -export const initializeRosterHub = () => { - registerRosterComponents(); +export const initializeRosterHub = (isSiteDC: boolean = false) => { + registerRosterComponents(isSiteDC); };
chore(ui): update roster widget
chore(ui): update roster widget
7bc21748b1aa30195f4150f3deccdf8e2f0fb507
--- __tests__/components/NewMessageHeader.test.tsx @@ -10,6 +10,14 @@ jest.mock('../../src/logger/Analytics', () => ({ analytics: jest.fn(), })); +jest.mock('@walmart/allspark-foundation/Navigation', () => ({ + NavigationModule: { + manager: { + closeAllModals: jest.fn(), + }, + }, +})); + jest.mock('@walmart/me-at-walmart-common', () => ({ HOME_HEADER_RIGHT_KEY: 'header_right', })); @@ -42,7 +50,6 @@ describe('NewMessageHeader', () => { screenTitle: 'Test Title', }); expect(mockCloseModal).toHaveBeenCalled(); - expect(NavigationModule.manager.closeAllModals).toHaveBeenCalled(); }); }); jest.mock('@walmart/allspark-foundation/User', () => { @@ -85,6 +92,5 @@ describe('MessagesHeader', () => { channelName: undefined, }); expect(mockCloseModal).toHaveBeenCalled(); - expect(NavigationModule.manager.closeAllModals).toHaveBeenCalled(); }); }); --- __tests__/containers/ChatInput/__snapshots__/MeteringVisualization.test.tsx.snap @@ -680,66 +680,102 @@ exports[`MeteringAnimation shows animated bars when isSpeaking is true 1`] = ` `; exports[`MeteringAnimation shows animated dots when isSpeaking is false 1`] = ` -<View> - <View - style={ +<View + style={ + [ { "alignItems": "center", "flexDirection": "row", - "justifyContent": "center", - "paddingHorizontal": 16, - } + }, + undefined, + ] + } +> + <View + style={ + [ + { + "backgroundColor": "#0071ce", + "borderRadius": 18, + "marginRight": 2, + "width": 3, + }, + { + "borderRadius": 1.5, + "height": 3, + "width": 3, + }, + ] } - > - <View - style={ - [ - { - "backgroundColor": "#0071ce", - "borderRadius": 3, - "height": 6, - "marginHorizontal": 3, - "width": 6, - }, - { - "opacity": 1, - }, - ] - } - /> - <View - style={ - [ - { - "backgroundColor": "#0071ce", - "borderRadius": 3, - "height": 6, - "marginHorizontal": 3, - "width": 6, - }, - { - "opacity": 1, - }, - ] - } - /> - <View - style={ - [ - { - "backgroundColor": "#0071ce", - "borderRadius": 3, - "height": 6, - "marginHorizontal": 3, - "width": 6, - }, - { - "opacity": 1, - }, - ] - } - /> - </View> + /> + <View + style={ + [ + { + "backgroundColor": "#0071ce", + "borderRadius": 18, + "marginRight": 2, + "width": 3, + }, + { + "borderRadius": 1.5, + "height": 3, + "width": 3, + }, + ] + } + /> + <View + style={ + [ + { + "backgroundColor": "#0071ce", + "borderRadius": 18, + "marginRight": 2, + "width": 3, + }, + { + "borderRadius": 1.5, + "height": 3, + "width": 3, + }, + ] + } + /> + <View + style={ + [ + { + "backgroundColor": "#0071ce", + "borderRadius": 18, + "marginRight": 2, + "width": 3, + }, + { + "borderRadius": 1.5, + "height": 3, + "width": 3, + }, + ] + } + /> + <View + style={ + [ + { + "backgroundColor": "#0071ce", + "borderRadius": 18, + "marginRight": 2, + "width": 3, + }, + { + "borderRadius": 1.5, + "height": 3, + "width": 3, + }, + ] + } + /> </View> `; --- __tests__/hooks/messages.test.ts @@ -44,10 +44,16 @@ jest.mock('@walmart/allspark-foundation/Navigation', () => ({ manager: { openModal: jest.fn(), closeModal: jest.fn(), + closeAllModals: jest.fn(), + getCurrentRouteName: jest.fn(() => 'SomeOtherScreen'), }, }, })); +jest.mock('../../src/hooks/useModalGuard', () => ({ + useModalGuard: jest.fn(() => (fn: () => void) => fn()), +})); + jest.mock('@react-native-firebase/firestore'); jest.mock('../../src/common/logger'); --- src/containers/ChatInput/AudioInput.tsx @@ -1,5 +1,5 @@ import React, {useEffect, useRef} from 'react'; -import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native'; +import {StyleProp, StyleSheet, View, ViewStyle, AppState} from 'react-native'; import {RecordingDetails} from './types'; import {AudioPlayback} from './AudioPlayback'; @@ -28,8 +28,11 @@ export const AudioInput = (props: { const status = await AudioModule.requestRecordingPermissionsAsync(); if (status && status.granted && autoRecord && isMountedRef.current) { - // Set recording immediately - no delay - setRecording(true); + // Check if app is active before starting recording + if (AppState.currentState === 'active') { + // Set recording immediately - no delay + setRecording(true); + } } } catch (error) { logger.error('AudioInput: Error requesting audio permissions', { --- src/containers/ChatInput/MeteringVisualization.tsx @@ -37,9 +37,10 @@ export const calculateMeterHeight = (max: number, meter: number = MEDIAN) => { export const MeteringAnimation = (props: { metering: number[]; + isSpeaking?: boolean; style?: StyleProp<ViewStyle>; }) => { - const {metering, style} = props; + const {metering, isSpeaking = true, style} = props; const scrollViewRef = useRef<ScrollView>(); @@ -57,11 +58,29 @@ export const MeteringAnimation = (props: { ); }; + const renderDot = (_meter: number, index: number) => { + return ( + <View + key={index} + style={[styles.meterBar, {height: 3, width: 3, borderRadius: 1.5}]} + /> + ); + }; + const onContentSizeChange = () => { scrollViewRef.current?.scrollToEnd({animated: true}); }; - // Show animated bars + // Show dots when not speaking + if (!isSpeaking) { + return ( + <View style={[styles.meterPlaybackContainer, style]}> + {metering.map(renderDot)} + </View> + ); + } + + // Show animated bars when speaking return ( <ScrollView testID={'meterScrollView'}
feat(ui): update modal guard
feat(ui): update modal guard
403008c9cfa8fb031b8b0b918db10fa2f032ee3b
--- __tests__/screens/RosterScreen/RosterScreenTest.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {screen, waitFor} from '@testing-library/react-native'; +import {waitFor} from '@testing-library/react-native'; import {RosterScreen} from '../../../src/screens/RosterScreen'; import {useNavigation} from '@react-navigation/native'; import {renderWithProviders} from '../../harness'; --- __tests__/screens/RosterScreen/RosterScreenTest.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {screen, waitFor} from '@testing-library/react-native'; +import {waitFor} from '@testing-library/react-native'; import {RosterScreen} from '../../../src/screens/RosterScreen'; import {useNavigation} from '@react-navigation/native'; import {renderWithProviders} from '../../harness';
cleanup import
cleanup import
731ee9cb6a60c0ed8a57b20ec0908f241adb9b8f
--- src/utils/queries/getTeamsByStore.graphql @@ -0,0 +1,38 @@ +query getTeamsByStore( + $countryCode: String! + $includeManagement: Boolean + $siteNbr: String! + $teamNamesLike: [String!] +) { + getTeamsByStore( + countryCode: $countryCode + includeManagement: $includeManagement + storeNbr: $siteNbr + teamNamesLike: $teamNamesLike + ) { + __typename + members + membership { + __typename + associate { + __typename + associateId + } + } + teamIcon { + __typename + teamIconBlurhashPlaceholder + teamIconUrl + } + merchDeptNbrs + metricsStoreArea { + data { + departmentNumbers + } + } + teamId + teamName + workgroup + workgroupId + } +}
feat(ui): added getTeamsByStore query
feat(ui): added getTeamsByStore query
89cdf1d92fc3c24b7d2e5ce068881ef823a7da0c
--- core/__tests__/navigation/USHallway/PreHireHallwayNav/__snapshots__/PreHireHallwayNavTest.tsx.snap @@ -1,16 +1,27 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`PreHireHallwayNav matches snapshot 1`] = ` -<Navigator - initialRouteName="welcomeMe.CandidateHome" - screenOptions={ - { - "header": [Function], - } - } +<RenderGuard + preRender={[Function]} > - WelcomeMeMiniApp - AskSamScreens - PaymentSelectionScreen -</Navigator> + <ActivityMonitor + backgroundIdleTime={14400000} + enabled={false} + inactivityTime={300000} + onIdleTimeLapsed={[Function]} + > + <Navigator + initialRouteName="welcomeMe.CandidateHome" + screenOptions={ + { + "header": [Function], + } + } + > + WelcomeMeMiniApp + AskSamScreens + PaymentSelectionScreen + </Navigator> + </ActivityMonitor> +</RenderGuard> `;
Update PreHireHallwayNavTest.tsx.snap
Update PreHireHallwayNavTest.tsx.snap
de217b752c7700dfa3e77eddaaa410a5ee039def
--- package.json @@ -82,7 +82,7 @@ "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", "@walmart/allspark-utils": "6.9.0", - "@walmart/amp-mini-app": "1.2.8", + "@walmart/amp-mini-app": "1.2.10", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.32.4", "@walmart/associate-listening-mini-app": "1.2.37", --- yarn.lock @@ -6612,17 +6612,16 @@ __metadata: languageName: node linkType: hard -"@walmart/amp-mini-app@npm:1.2.8": - version: 1.2.8 - resolution: "@walmart/amp-mini-app@npm:1.2.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Famp-mini-app%2F-%2F%40walmart%2Famp-mini-app-1.2.8.tgz" +"@walmart/amp-mini-app@npm:1.2.10": + version: 1.2.10 + resolution: "@walmart/amp-mini-app@npm:1.2.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Famp-mini-app%2F-%2F%40walmart%2Famp-mini-app-1.2.10.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/core-services": 6.1.4 "@walmart/gtp-shared-components": ^2.0.9 - "@walmart/redux-store": 6.1.4 react: ^18.2.0 react-native: ~0.73.7 - checksum: 10c0/88e3fc9ae1e347deb1ef68a36c6aa1ee2c452adc53bf54aa11e2510be9c95ede05e189d3a5a35bb2a081e56f4ca3ab6d6c75ebe4646a8ec70191879f3c02768c + checksum: 10c0/0832f696c18133e29fbf8d88f5ce7a32a115cd77b78efab3f44f1698a425e53efd9b3951c2288cabaa634acb31005e1c4e1cc551fe12936e431c10a4b9b5c158 languageName: node linkType: hard @@ -7588,7 +7587,7 @@ __metadata: "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31" "@walmart/allspark-utils": "npm:6.9.0" - "@walmart/amp-mini-app": "npm:1.2.8" + "@walmart/amp-mini-app": "npm:1.2.10" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.32.4" "@walmart/associate-listening-mini-app": "npm:1.2.37"
fix(version): updated the versions for amp-mini-app changes SSMP-10857 (#4483)
fix(version): updated the versions for amp-mini-app changes SSMP-10857 (#4483) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>