commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
61aafb19faca09232eba47c78461f854de835535
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.26.0", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.26.0.tgz", - "integrity": "sha512-6YVBElyExt2W1exhNd0UJbmaqBaL2TyKuYrMGskxTPc5XjZOp/pv6DJxQhmIVgD0beVXDs7ObEbt02/tZeP0TA==", + "version": "0.27.0", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.27.0.tgz", + "integrity": "sha512-hcUi09B9gzGSUcN3FkCP+yFlmySV8PDWn0qR8jiT2sqI+i3MrR0wy5uDOeklcxw2FWIKtpCopyxFzn8kCAn8ag==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -66,7 +66,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.38", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0", - "@walmart/ask-sam-mini-app": "0.26.0", + "@walmart/ask-sam-mini-app": "0.27.0", "@walmart/config-components": "1.0.21", "@walmart/feedback-all-spark-miniapp": "0.0.50", "@walmart/functional-components": "1.0.27",
Version increment
Version increment
4b2d21e6aa1ea7a208349fd412a57592957d4232
--- package.json @@ -96,7 +96,7 @@ "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/redux-store": "6.3.29", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.36.3", + "@walmart/wmconnect-mini-app": "2.37.0", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- src/components/FilterChip/styles.ts @@ -1,7 +1,7 @@ -import {StyleSheet, ViewStyle} from 'react-native'; +import {StyleSheet, TextStyle} from 'react-native'; import {colors} from '@walmart/gtp-shared-components'; -const chipContainerShared: ViewStyle = { +const chipContainerShared: TextStyle = { borderWidth: 2, borderRadius: 1000, justifyContent: 'center', --- src/components/FilterChipGroup/styles.ts @@ -1,7 +1,7 @@ -import {StyleSheet, ViewStyle} from 'react-native'; +import {StyleSheet, TextStyle, ViewStyle} from 'react-native'; import {colors} from '@walmart/gtp-shared-components'; -const shiftChipDefault: ViewStyle = { +const shiftChipDefault: TextStyle = { borderWidth: 0, borderRadius: 16, display: 'flex', --- yarn.lock @@ -7116,7 +7116,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/redux-store": "npm:6.3.29" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.36.3" + "@walmart/wmconnect-mini-app": "npm:2.37.0" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -7199,9 +7199,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.36.3": - version: 2.36.3 - resolution: "@walmart/wmconnect-mini-app@npm:2.36.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.36.3.tgz" +"@walmart/wmconnect-mini-app@npm:2.37.0": + version: 2.37.0 + resolution: "@walmart/wmconnect-mini-app@npm:2.37.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.37.0.tgz" dependencies: expo: "npm:~52.0.46" react: "npm:18.3.1" @@ -7216,7 +7216,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/7f40911ea24ce056af1c2a1c23d81cfd98fe4f6c839677a8ea1bc7ad9619db7f49f6e50a06a1dca762843557b5610fd08aea11e7739acfe8072377d98765c408 + checksum: 10c0/c44e72c8868ce9a0a3f28f478ee90e7e6937bbecca70cc0b072eb3d3cb554d010569e647f8878d15148251bf27b229f54b9d596121f3013133074863f917194d languageName: node linkType: hard
feat(ui): update package dependency
feat(ui): update package dependency
be003141d689ae5ae05b9e711826c5989ca32bea
--- __tests__/screens/ViewTeamScreen/__snapshots__/ViewTeamScreenTest.tsx.snap @@ -979,28 +979,6 @@ exports[`ViewTeamScreen should render view team screen with expected elements 1` "userId": "E0K03J3.S00100", "win": 999990252, }, - { - "__typename": "MewAssociate", - "absentData": null, - "associateId": "999996419", - "firstName": "MUBINABONU", - "fullName": "MADAMINOVA, MUBINABONU", - "jobCategoryCodeDesc": "PERSONAL SHOPPER", - "lastName": "MADAMINOVA", - "payType": "H", - "preferredFirstName": "MUBINABONU", - "preferredFullName": "MUBINABONU MADAMINOVA", - "preferredLastName": "MADAMINOVA", - "punch": { - "__typename": "Punch", - "clockStatus": "9", - "clockStatusDesc": "UNKNOWN", - "lastPunchType": "", - }, - "storeSchedule": [], - "userId": "M0M14R9.S00100", - "win": 999996419, - }, { "__typename": "MewAssociate", "absentData": null, @@ -1023,6 +1001,28 @@ exports[`ViewTeamScreen should render view team screen with expected elements 1` "userId": "MLDESJA.S00100", "win": 999993326, }, + { + "__typename": "MewAssociate", + "absentData": null, + "associateId": "999996419", + "firstName": "MUBINABONU", + "fullName": "MADAMINOVA, MUBINABONU", + "jobCategoryCodeDesc": "PERSONAL SHOPPER", + "lastName": "MADAMINOVA", + "payType": "H", + "preferredFirstName": "MUBINABONU", + "preferredFullName": "MUBINABONU MADAMINOVA", + "preferredLastName": "MADAMINOVA", + "punch": { + "__typename": "Punch", + "clockStatus": "9", + "clockStatusDesc": "UNKNOWN", + "lastPunchType": "", + }, + "storeSchedule": [], + "userId": "M0M14R9.S00100", + "win": 999996419, + }, { "__typename": "MewAssociate", "absentData": null, @@ -1427,28 +1427,6 @@ exports[`ViewTeamScreen should render view team screen with expected elements 1` "userId": "E0K03J3.S00100", "win": 999990252, }, - { - "__typename": "MewAssociate", - "absentData": null, - "associateId": "999996419", - "firstName": "MUBINABONU", - "fullName": "MADAMINOVA, MUBINABONU", - "jobCategoryCodeDesc": "PERSONAL SHOPPER", - "lastName": "MADAMINOVA", - "payType": "H", - "preferredFirstName": "MUBINABONU", - "preferredFullName": "MUBINABONU MADAMINOVA", - "preferredLastName": "MADAMINOVA", - "punch": { - "__typename": "Punch", - "clockStatus": "9", - "clockStatusDesc": "UNKNOWN", - "lastPunchType": "", - }, - "storeSchedule": [], - "userId": "M0M14R9.S00100", - "win": 999996419, - }, { "__typename": "MewAssociate", "absentData": null, @@ -1471,6 +1449,28 @@ exports[`ViewTeamScreen should render view team screen with expected elements 1` "userId": "MLDESJA.S00100", "win": 999993326, }, + { + "__typename": "MewAssociate", + "absentData": null, + "associateId": "999996419", + "firstName": "MUBINABONU", + "fullName": "MADAMINOVA, MUBINABONU", + "jobCategoryCodeDesc": "PERSONAL SHOPPER", + "lastName": "MADAMINOVA", + "payType": "H", + "preferredFirstName": "MUBINABONU", + "preferredFullName": "MUBINABONU MADAMINOVA", + "preferredLastName": "MADAMINOVA", + "punch": { + "__typename": "Punch", + "clockStatus": "9", + "clockStatusDesc": "UNKNOWN", + "lastPunchType": "", + }, + "storeSchedule": [], + "userId": "M0M14R9.S00100", + "win": 999996419, + }, { "__typename": "MewAssociate", "absentData": null, @@ -2847,28 +2847,6 @@ exports[`ViewTeamScreen should render view team screen with expected elements 1` "userId": "E0K03J3.S00100", "win": 999990252, }, - { - "__typename": "MewAssociate", - "absentData": null, - "associateId": "999996419", - "firstName": "MUBINABONU", - "fullName": "MADAMINOVA, MUBINABONU", - "jobCategoryCodeDesc": "PERSONAL SHOPPER", - "lastName": "MADAMINOVA", - "payType": "H", - "preferredFirstName": "MUBINABONU", - "preferredFullName": "MUBINABONU MADAMINOVA", - "preferredLastName": "MADAMINOVA", - "punch": { - "__typename": "Punch", - "clockStatus": "9", - "clockStatusDesc": "UNKNOWN", - "lastPunchType": "", - }, - "storeSchedule": [], - "userId": "M0M14R9.S00100", - "win": 999996419, - }, { "__typename": "MewAssociate", "absentData": null, @@ -2891,6 +2869,28 @@ exports[`ViewTeamScreen should render view team screen with expected elements 1` "userId": "MLDESJA.S00100", "win": 999993326, }, + { + "__typename": "MewAssociate", + "absentData": null, + "associateId": "999996419", + "firstName": "MUBINABONU", + "fullName": "MADAMINOVA, MUBINABONU", + "jobCategoryCodeDesc": "PERSONAL SHOPPER", + "lastName": "MADAMINOVA", + "payType": "H", + "preferredFirstName": "MUBINABONU", + "preferredFullName": "MUBINABONU MADAMINOVA", + "preferredLastName": "MADAMINOVA", + "punch": { + "__typename": "Punch", + "clockStatus": "9", + "clockStatusDesc": "UNKNOWN", + "lastPunchType": "", + }, + "storeSchedule": [], + "userId": "M0M14R9.S00100", + "win": 999996419, + }, { "__typename": "MewAssociate", "absentData": null,
Update sorting logic
Update sorting logic
898b70e36a271fba9c1b8d33ff7657291f6174ee
--- targets/US/package.json @@ -91,7 +91,7 @@ "@walmart/avp-shared-library": "0.8.9", "@walmart/backroom-mini-app": "1.2.6", "@walmart/calling-mini-app": "0.5.6", - "@walmart/checkout-mini-app": "3.22.0", + "@walmart/checkout-mini-app": "3.24.0", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.4.5", "@walmart/core-services": "~6.4.1", --- yarn.lock @@ -6150,9 +6150,9 @@ __metadata: languageName: node linkType: hard -"@walmart/checkout-mini-app@npm:3.22.0": - version: 3.22.0 - resolution: "@walmart/checkout-mini-app@npm:3.22.0" +"@walmart/checkout-mini-app@npm:3.24.0": + version: 3.24.0 + resolution: "@walmart/checkout-mini-app@npm:3.24.0" dependencies: "@stomp/stompjs": "npm:^7.0.0" cpc-input: "npm:^1.7.28" @@ -6179,10 +6179,7 @@ __metadata: "@walmart/functional-components": ">=2" "@walmart/gtp-shared-components": ">=2" "@walmart/me-at-walmart-common": "*" - "@walmart/react-native-env": ^0.1.0 "@walmart/react-native-scanner-3.0": ">=0.3.0" - "@walmart/react-native-shared-navigation": ">=6" - "@walmart/redux-store": ">=3" "@walmart/ui-components": ">=1" graphql-tag: "*" luxon: ">=1.26.0" @@ -6197,7 +6194,7 @@ __metadata: react-native-wm-telemetry: ">=6" react-redux: ^8.1.3 redux: ^4.0.5 - checksum: 10c0/ec22cfe4dc40d516dbd2ebcca7c9d95753ec1b51e2af2b23fd2b2965f1a0f062c5d56385a03bd2d6cae9a484128f53e3ce1b4bf6fc19c12897f1210bc4a5cc87 + checksum: 10c0/91d35fd0b64431acf11e0576c0d6bdc209d079fef43070e269357269f1f5fe7ae91cde4e97cae541132c4e425b88a3ffc1bb6154c9ef496383cee530c3840238 languageName: node linkType: hard @@ -6998,7 +6995,7 @@ __metadata: "@walmart/avp-shared-library": "npm:0.8.9" "@walmart/backroom-mini-app": "npm:1.2.6" "@walmart/calling-mini-app": "npm:0.5.6" - "@walmart/checkout-mini-app": "npm:3.22.0" + "@walmart/checkout-mini-app": "npm:3.24.0" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.4.5" "@walmart/core-services": "npm:~6.4.1"
checkout-mini-app-changes
checkout-mini-app-changes
80b63bad800fbd2d09ab350eecfc2d258272d7ff
--- package-lock.json @@ -36,7 +36,7 @@ "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.56", - "@walmart/attendance-mini-app": "0.70.0", + "@walmart/attendance-mini-app": "0.72.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~1.4.15", "@walmart/core-services-allspark": "~1.10.18", @@ -4696,9 +4696,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "0.70.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.70.0.tgz", - "integrity": "sha512-V+cNKZ9jYJTAzW5q0jUH0MDvAxA8jmsD1IwieD2oT9u1rDjAqdjF9ChUp1jLYjlKX6TWbwm+1rKR0dMTa/CKNQ==", + "version": "0.72.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.72.0.tgz", + "integrity": "sha512-0KOUmACOhlotatMmBJivxMJy9Dad9FlHTPorcnyLsI4xo+nJxy86aMv7p6czIQd4XkPKntvH2Koz9tTOlt3+rA==", "dependencies": { "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.40", @@ -24920,9 +24920,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "0.70.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.70.0.tgz", - "integrity": "sha512-V+cNKZ9jYJTAzW5q0jUH0MDvAxA8jmsD1IwieD2oT9u1rDjAqdjF9ChUp1jLYjlKX6TWbwm+1rKR0dMTa/CKNQ==", + "version": "0.72.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.72.0.tgz", + "integrity": "sha512-0KOUmACOhlotatMmBJivxMJy9Dad9FlHTPorcnyLsI4xo+nJxy86aMv7p6czIQd4XkPKntvH2Koz9tTOlt3+rA==", "requires": { "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.40", --- package.json @@ -78,7 +78,7 @@ "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.56", - "@walmart/attendance-mini-app": "0.70.0", + "@walmart/attendance-mini-app": "0.72.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~1.4.15", "@walmart/core-services-allspark": "~1.10.18",
update AMA to 0.72.0
update AMA to 0.72.0
080f3c1a864533f27def2232ac688d45a41e5ddd
--- packages/allspark-utils/src/RenderGuard.tsx @@ -38,9 +38,9 @@ export const RenderGuard = ( // Setup pre render hook const complete = usePreRender?.(); - // Toggle on when hook returns true + // Toggle on when hook first returns true useEffect(() => { - if (complete) { + if (complete && !ready) { toggleOn(); } // eslint-disable-next-line react-hooks/exhaustive-deps
fix: render guard had possiblity to run again
fix: render guard had possiblity to run again
65ae132fb1e92de6c3a949fdd5ed0cfea058004e
--- src/components/TeamList.tsx @@ -445,6 +445,10 @@ export const TeamChatCard = (props: { const [expanded, setExpanded] = useState(false); const toggle = () => { + analytics('expandteamlist', { + message: 'expand or contract teams list', + expandedVal: expanded, + }); setExpanded(!expanded); if (expanded) { scrollToTop();
add show/hide teams expansion listener
add show/hide teams expansion listener
70589ebb965cf8427b9ee15e228f46d43db7c77b
--- package.json @@ -109,7 +109,7 @@ "@walmart/exception-mini-app": "1.8.19", "@walmart/expo-config-plugins": "~0.5.3", "@walmart/facilities-management-miniapp": "0.18.33", - "@walmart/feedback-all-spark-miniapp": "^0.9.78", + "@walmart/feedback-all-spark-miniapp": "0.9.79", "@walmart/financial-wellbeing-feature-app": "1.31.6", "@walmart/functional-components": "~6.3.28", "@walmart/global-vpi-mini-app": "1.1.40", --- yarn.lock @@ -7786,9 +7786,9 @@ __metadata: languageName: node linkType: hard -"@walmart/feedback-all-spark-miniapp@npm:^0.9.78": - version: 0.9.78 - resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.78::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffeedback-all-spark-miniapp%2F-%2F%40walmart%2Ffeedback-all-spark-miniapp-0.9.78.tgz" +"@walmart/feedback-all-spark-miniapp@npm:0.9.79": + version: 0.9.79 + resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.79::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffeedback-all-spark-miniapp%2F-%2F%40walmart%2Ffeedback-all-spark-miniapp-0.9.79.tgz" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -7804,7 +7804,7 @@ __metadata: react-redux: ^7.2.1 reduxsauce: ^1.2.0 reselect: ^4.0.0 - checksum: 10c0/7dde3d5aaa16d03234f4daf7c6e13a133bebe034d1c6f701b9d3521fe5bf367a5bb2ea6e5d6453fded851020054c43edcd2202109d9a58fb29a6f703958048ce + checksum: 10c0/47b6124fef74bb17950d81045ec1fcb41f65b52f206171aea90ab36fa70d8bd350ab022b79a1d5d26dd5eb935d1aab7395bf6bce7d60275662bc92a974c3770b languageName: node linkType: hard @@ -8326,7 +8326,7 @@ __metadata: "@walmart/exception-mini-app": "npm:1.8.19" "@walmart/expo-config-plugins": "npm:~0.5.3" "@walmart/facilities-management-miniapp": "npm:0.18.33" - "@walmart/feedback-all-spark-miniapp": "npm:^0.9.78" + "@walmart/feedback-all-spark-miniapp": "npm:0.9.79" "@walmart/financial-wellbeing-feature-app": "npm:1.31.6" "@walmart/functional-components": "npm:~6.3.28" "@walmart/global-vpi-mini-app": "npm:1.1.40"
fix(update): bug fix feedback app GDVCVR-17867 (#4809)
fix(update): bug fix feedback app GDVCVR-17867 (#4809) Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
6dd187e62388fd94c8b87aed95ea77489391e7e0
--- packages/allspark-foundation/__tests__/Feature/AllsparkFeatureModule.test.tsx @@ -2,7 +2,6 @@ import { AllsparkFeatureModule } from '../../src/Feature/AllsparkFeatureModule'; import { render } from '@testing-library/react-native'; import { Text } from 'react-native'; - describe('AllsparkFeatureModule', () => { let allsparkFeatureModule: AllsparkFeatureModule; const config: AllsparkModuleConfig = {
code cleanup
code cleanup
56fc909d04b0c8ed9a86dbd795f318d728f5bcdd
--- package-lock.json @@ -3333,9 +3333,9 @@ "integrity": "sha512-2lWd8SElggyOahK4nn0xJgPzSqTS5npYsrLCfOj3aeMy0/fXufGzmTvAVeI0dTAAOqGBHWXFhB87ANiVAf6F6w==" }, "@walmart/counts-component-miniapp": { - "version": "0.0.20", - "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.20.tgz", - "integrity": "sha512-53F4Ig1Bd7bMzwgmq0OnDa+T3PKdi0wyyTDg67F9mvdRn05Le+EVv6Dji8fft8XE8hGmgK5sjwpTuarBmnDsVQ==" + "version": "0.0.21", + "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.21.tgz", + "integrity": "sha512-TNtHMUjDjLX0ub9WSNK78jhhrD4kF1/VfuvmJ55pEvwNVzXyM1iipdn5+Xr4r5HEDGPwd+Ti5rgO6unu3NIcRA==" }, "@walmart/exception-mini-app": { "version": "0.34.0", --- package.json @@ -75,7 +75,7 @@ "@walmart/allspark-me-mini-app": "0.2.4", "@walmart/ask-sam-mini-app": "0.30.15", "@walmart/config-components": "^1.0.29", - "@walmart/counts-component-miniapp": "0.0.20", + "@walmart/counts-component-miniapp": "0.0.21", "@walmart/exception-mini-app": "0.34.0", "@walmart/feedback-all-spark-miniapp": "0.0.58", "@walmart/functional-components": "1.0.32",
Counts component version bump
Counts component version bump
230a4b56e30e2e47f1e84cacbdb85baaf7d3ac5a
--- packages/components-library/README.md @@ -28,14 +28,12 @@ This library requires the following peer dependencies to be installed in your pr ```json { - "@react-native-picker/picker": "~2.11.1", + "@expo/vector-icons": "~14.1.0", "@walmart/gtp-shared-components-3": "*", - "expo": "53.x", + "expo-image": "~2.4.0", "react": "19.x", "react-dom": "19.x", - "react-native": "0.79.x", - "react-native-device-info": "~10.13.1", - "react-native-web": "^0.20.0" + "react-native": "0.79.x" } ``` --- packages/components-library/package.json @@ -1,24 +1,19 @@ { "peerDependencies": { - "@react-native-picker/picker": "~2.11.1", + "@expo/vector-icons": "~14.1.0", "@walmart/gtp-shared-components-3": "*", - "expo": "53.x", - "expo-image": "^2.4.0", + "expo-image": "~2.4.0", "react": "19.x", "react-dom": "19.x", - "react-native": "0.79.x", - "react-native-device-info": "~10.13.1", - "react-native-web": "^0.20.0" + "react-native": "0.79.x" }, "devDependencies": { "@babel/core": "^7.20.0", "@expo/metro-runtime": "~5.0.5", - "@expo/vector-icons": "~14.1.0", "@gorhom/bottom-sheet": "^4.6.4", "@react-native-async-storage/async-storage": "2.1.2", "@react-native-community/datetimepicker": "8.4.1", "@react-native-community/slider": "4.5.6", - "@react-native-picker/picker": "2.11.1", "@storybook/addon-ondevice-actions": "^8.3.5", "@storybook/addon-ondevice-controls": "^8.3.5", "@storybook/react-native": "^8.3.5", --- yarn.lock @@ -3666,7 +3666,7 @@ __metadata: languageName: node linkType: hard -"@expo/vector-icons@npm:^14.0.0, @expo/vector-icons@npm:^14.1.0, @expo/vector-icons@npm:~14.1.0": +"@expo/vector-icons@npm:^14.0.0, @expo/vector-icons@npm:^14.1.0": version: 14.1.0 resolution: "@expo/vector-icons@npm:14.1.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40expo%2Fvector-icons%2F-%2Fvector-icons-14.1.0.tgz" peerDependencies: @@ -9884,12 +9884,10 @@ __metadata: dependencies: "@babel/core": "npm:^7.20.0" "@expo/metro-runtime": "npm:~5.0.5" - "@expo/vector-icons": "npm:~14.1.0" "@gorhom/bottom-sheet": "npm:^4.6.4" "@react-native-async-storage/async-storage": "npm:2.1.2" "@react-native-community/datetimepicker": "npm:8.4.1" "@react-native-community/slider": "npm:4.5.6" - "@react-native-picker/picker": "npm:2.11.1" "@storybook/addon-ondevice-actions": "npm:^8.3.5" "@storybook/addon-ondevice-controls": "npm:^8.3.5" "@storybook/react-native": "npm:^8.3.5" @@ -9918,15 +9916,12 @@ __metadata: ts-node: "npm:^10.9.2" typescript: "npm:~5.8.3" peerDependencies: - "@react-native-picker/picker": ~2.11.1 + "@expo/vector-icons": ~14.1.0 "@walmart/gtp-shared-components-3": "*" - expo: 53.x - expo-image: ^2.4.0 + expo-image: ~2.4.0 react: 19.x react-dom: 19.x react-native: 0.79.x - react-native-device-info: ~10.13.1 - react-native-web: ^0.20.0 languageName: unknown linkType: soft
feat(ax-comp): remove unused peer dependencies (#539)
feat(ax-comp): remove unused peer dependencies (#539) * feat(ax-comp): remove unused peer dependencies * feat(ax-comp): remove unused peer dependencies
396b97c08360ba8ebf2da1b64cbf37f2846e3077
--- graphql.yml @@ -32,7 +32,7 @@ applications: tags: - 'v1' - name: 'getForYouHeaderAssociateDetails' - hash: 'b68381014b562b9ef8c1d7ceace1428a360e4aeec862bbe203a573137862bde3' + hash: '287c026851ea047047ca9b3813d9f50e917a86796053ab650c6331e6ea02a92d' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.graphql' tags: - 'v1' @@ -109,7 +109,7 @@ applications: tags: - 'v1' - name: 'getForYouHeaderAssociateDetails' - hash: 'b68381014b562b9ef8c1d7ceace1428a360e4aeec862bbe203a573137862bde3' + hash: '287c026851ea047047ca9b3813d9f50e917a86796053ab650c6331e6ea02a92d' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.graphql' tags: - 'v1' --- packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.graphql @@ -1,6 +1,7 @@ query getForYouHeaderAssociateDetails($businessUnitNumber: Int!, $country: String!, $endDate: Date!, $idType: idType = USERID, $startDate: Date!, $userId: String!) { getAssociateById(id: $userId, idType: $idType) { __typename + associateId wfmSchedule( businessUnitNumber: $businessUnitNumber country: $country --- packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.ts @@ -17,6 +17,7 @@ export type GetForYouHeaderAssociateDetailsQuery = { __typename?: "Query"; getAssociateById?: { __typename: "Associate"; + associateId: string; wfmSchedule?: { __typename: "WFMSchedule"; scheduleWeeks?: @@ -55,6 +56,7 @@ export const GetForYouHeaderAssociateDetailsDocument = gql` ) { getAssociateById(id: $userId, idType: $idType) { __typename + associateId wfmSchedule( businessUnitNumber: $businessUnitNumber country: $country
fix(graphql): add associateid (#479)
fix(graphql): add associateid (#479)
8ad6f04dc845168894c75499fd8a0014bb5a860b
--- __tests__/components/__snapshots__/AssociateListItem.test.tsx.snap @@ -27,6 +27,12 @@ exports[`AssociateListItem should render AssociateListItem with props 1`] = ` accessibilityRole="text" accessible={true} importantForAccessibility="yes" + style={ + { + "flex": 1, + "flexDirection": "row", + } + } > <View> <View
chore: update yarn.lock to resolve dependency conflicts
chore: update yarn.lock to resolve dependency conflicts
b8e5a46a84cd424da9a0b3a6381d59db7a54a333
--- packages/allspark-foundation/src/Device/redux.ts @@ -39,6 +39,11 @@ export const deviceSlice = createSlice({ state.loading = false; state.error = action.payload; }, + ADD_VERSION_MODIFIER: (state, action: PayloadAction<string>) => { + if (state.data?.appVersion) { + state.data.appVersion = `${state.data.appVersion}-${action.payload}`; + } + }, }, });
feat: add capability to tag device version with modifier through redux action
feat: add capability to tag device version with modifier through redux action
dbef59c2113356d94745514e1391e80544ee64f6
--- src/components/TeamList.tsx @@ -218,7 +218,6 @@ const StoreTeamItem = (props: {style?: StyleProp<ViewStyle>}) => { const associateList = (associateData.data?.getDailyRoster || []) as Associate[]; return associateList; - // eslint-disable-next-line react-hooks/exhaustive-deps }, [associateData.data?.getDailyRoster]); const clockedInCount = (rosterData as any)?.filter(associateIsClockedIn)?.length ?? 0; --- src/hooks/teams.ts @@ -6,10 +6,8 @@ import {Associate} from '../types'; import {useDailyRoster} from './roster'; import {Team} from '../queries/schema.types'; import moment from 'moment-timezone'; -// import {useGetTeamByIdMock, useGetTeamsByStoreMock} from '../mocks'; export const useGetTeamById = (teamId: string) => { - // return useGetTeamByIdMock(teamId); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -17,12 +15,6 @@ export const useGetTeamById = (teamId: string) => { SiteSelectors.getSiteCountry, ); - // return { - // loading: false, - // data: {getTeamById: _.find(teamsMock, {teamId})}, - // error: false, - // }; // comment in if needed for testing - return useGetTeamByIdQuery({ variables: { storeNbr: storeNbr!, @@ -35,7 +27,6 @@ export const useGetTeamById = (teamId: string) => { }; export const useGetTeamsByStore = () => { - // return useGetTeamsByStoreMock(); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -43,8 +34,6 @@ export const useGetTeamsByStore = () => { SiteSelectors.getSiteCountry, ); - // return {loading: false, data: {getTeamsByStore: teamsMock}, error: false}; // comment in if needed for testing - return useGetTeamsByStoreQuery({ variables: {storeNbr: storeNbr!, countryCode: countryCode!}, skip: !storeNbr || !countryCode, --- src/components/TeamList.tsx @@ -218,7 +218,6 @@ const StoreTeamItem = (props: {style?: StyleProp<ViewStyle>}) => { const associateList = (associateData.data?.getDailyRoster || []) as Associate[]; return associateList; - // eslint-disable-next-line react-hooks/exhaustive-deps }, [associateData.data?.getDailyRoster]); const clockedInCount = (rosterData as any)?.filter(associateIsClockedIn)?.length ?? 0; --- src/hooks/teams.ts @@ -6,10 +6,8 @@ import {Associate} from '../types'; import {useDailyRoster} from './roster'; import {Team} from '../queries/schema.types'; import moment from 'moment-timezone'; -// import {useGetTeamByIdMock, useGetTeamsByStoreMock} from '../mocks'; export const useGetTeamById = (teamId: string) => { - // return useGetTeamByIdMock(teamId); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -17,12 +15,6 @@ export const useGetTeamById = (teamId: string) => { SiteSelectors.getSiteCountry, ); - // return { - // loading: false, - // data: {getTeamById: _.find(teamsMock, {teamId})}, - // error: false, - // }; // comment in if needed for testing - return useGetTeamByIdQuery({ variables: { storeNbr: storeNbr!, @@ -35,7 +27,6 @@ export const useGetTeamById = (teamId: string) => { }; export const useGetTeamsByStore = () => { - // return useGetTeamsByStoreMock(); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -43,8 +34,6 @@ export const useGetTeamsByStore = () => { SiteSelectors.getSiteCountry, ); - // return {loading: false, data: {getTeamsByStore: teamsMock}, error: false}; // comment in if needed for testing - return useGetTeamsByStoreQuery({ variables: {storeNbr: storeNbr!, countryCode: countryCode!}, skip: !storeNbr || !countryCode,
Removed comments
Removed comments
3f7e93499915cf11001325723f6e96374aedb9c1
--- src/components/TeamList.tsx @@ -40,6 +40,7 @@ import {Associate, Team} from '../types'; import {useTranslation} from 'react-i18next'; import {TEXTING_I18N_NAMESPACE} from '../translations'; import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors'; +import moment from 'moment-timezone'; const styles = StyleSheet.create({ listItem: { @@ -118,7 +119,12 @@ const TeamItem = (props: { const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>(); - const {loading, teamData, teamRoster} = useGetRosterByTeam(teamId); + const date = moment().format('YYYY-MM-DD'); + const formattedDate = moment(date, 'YYYY-MM-DD').toDate(); + const {loading, teamData, teamRoster} = useGetRosterByTeam( + teamId, + formattedDate, + ); const team = teamData?.getTeamById; const userIsInRoster = useUserIsInRoster(); const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled); @@ -218,6 +224,7 @@ const StoreTeamItem = (props: {style?: StyleProp<ViewStyle>}) => { const associateList = (associateData.data?.getDailyRoster || []) as Associate[]; return associateList; + // eslint-disable-next-line react-hooks/exhaustive-deps }, [associateData.data?.getDailyRoster]); const clockedInCount = (rosterData as any)?.filter(associateIsClockedIn)?.length ?? 0; @@ -301,6 +308,7 @@ export const TeamChatCard = (props: { return allTeams .filter((team) => team.teamId !== primaryTeam) .sort(sortByTeamName); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [primaryTeam, data?.getTeamsByStore]); const [expanded, setExpanded] = useState(false); --- src/hooks/teams.ts @@ -7,7 +7,7 @@ import {useDailyRoster} from './roster'; import {Team} from '../queries/schema.types'; // import {useGetTeamByIdMock, useGetTeamsByStoreMock} from '../mocks'; -export const useGetTeamById = (teamId: string, date?: Date) => { +export const useGetTeamById = (teamId: string, date: Date) => { // return useGetTeamByIdMock(teamId); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, @@ -23,12 +23,7 @@ export const useGetTeamById = (teamId: string, date?: Date) => { // }; // comment in if needed for testing return useGetTeamByIdQuery({ - variables: { - storeNbr: storeNbr!, - teamId, - date, - countryCode: countryCode!, - }, + variables: {storeNbr: storeNbr!, teamId, date, countryCode: countryCode!}, skip: !storeNbr || !countryCode, }); }; @@ -50,12 +45,12 @@ export const useGetTeamsByStore = () => { }); }; -export const useGetRosterByTeam = (teamId: string) => { +export const useGetRosterByTeam = (teamId: string, date: Date) => { const { loading: teamLoading, data: teamData, error: teamError, - } = useGetTeamById(teamId); + } = useGetTeamById(teamId, date); const { loading: rosterLoading, --- src/components/TeamList.tsx @@ -40,6 +40,7 @@ import {Associate, Team} from '../types'; import {useTranslation} from 'react-i18next'; import {TEXTING_I18N_NAMESPACE} from '../translations'; import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors'; +import moment from 'moment-timezone'; const styles = StyleSheet.create({ listItem: { @@ -118,7 +119,12 @@ const TeamItem = (props: { const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>(); - const {loading, teamData, teamRoster} = useGetRosterByTeam(teamId); + const date = moment().format('YYYY-MM-DD'); + const formattedDate = moment(date, 'YYYY-MM-DD').toDate(); + const {loading, teamData, teamRoster} = useGetRosterByTeam( + teamId, + formattedDate, + ); const team = teamData?.getTeamById; const userIsInRoster = useUserIsInRoster(); const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled); @@ -218,6 +224,7 @@ const StoreTeamItem = (props: {style?: StyleProp<ViewStyle>}) => { const associateList = (associateData.data?.getDailyRoster || []) as Associate[]; return associateList; + // eslint-disable-next-line react-hooks/exhaustive-deps }, [associateData.data?.getDailyRoster]); const clockedInCount = (rosterData as any)?.filter(associateIsClockedIn)?.length ?? 0; @@ -301,6 +308,7 @@ export const TeamChatCard = (props: { return allTeams .filter((team) => team.teamId !== primaryTeam) .sort(sortByTeamName); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [primaryTeam, data?.getTeamsByStore]); const [expanded, setExpanded] = useState(false); --- src/hooks/teams.ts @@ -7,7 +7,7 @@ import {useDailyRoster} from './roster'; import {Team} from '../queries/schema.types'; // import {useGetTeamByIdMock, useGetTeamsByStoreMock} from '../mocks'; -export const useGetTeamById = (teamId: string, date?: Date) => { +export const useGetTeamById = (teamId: string, date: Date) => { // return useGetTeamByIdMock(teamId); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, @@ -23,12 +23,7 @@ export const useGetTeamById = (teamId: string, date?: Date) => { // }; // comment in if needed for testing return useGetTeamByIdQuery({ - variables: { - storeNbr: storeNbr!, - teamId, - date, - countryCode: countryCode!, - }, + variables: {storeNbr: storeNbr!, teamId, date, countryCode: countryCode!}, skip: !storeNbr || !countryCode, }); }; @@ -50,12 +45,12 @@ export const useGetTeamsByStore = () => { }); }; -export const useGetRosterByTeam = (teamId: string) => { +export const useGetRosterByTeam = (teamId: string, date: Date) => { const { loading: teamLoading, data: teamData, error: teamError, - } = useGetTeamById(teamId); + } = useGetTeamById(teamId, date); const { loading: rosterLoading,
Added date changes
Added date changes
958a1998775869a5dce55c3300b574af7cb483e6
--- yarn.lock @@ -6643,7 +6643,7 @@ __metadata: version: 0.0.0-use.local resolution: "@walmart/core-services-allspark@workspace:packages/core-services-allspark" dependencies: - "@walmart/allspark-foundation": "patch:@walmart/allspark-foundation@npm%3A6.27.4#~/.yarn/patches/@walmart-allspark-foundation-npm-6.27.4-1bec92a113.patch" + "@walmart/allspark-foundation": "npm:*" "@walmart/me-at-walmart-common": "workspace:^" "@walmart/me-at-walmart-container": "workspace:^" typescript: "npm:5.0.4" @@ -7101,7 +7101,7 @@ __metadata: version: 0.0.0-use.local resolution: "@walmart/me-at-walmart-common@workspace:packages/me-at-walmart-common" dependencies: - "@walmart/allspark-foundation": "patch:@walmart/allspark-foundation@npm%3A6.27.4#~/.yarn/patches/@walmart-allspark-foundation-npm-6.27.4-1bec92a113.patch" + "@walmart/allspark-foundation": "npm:*" typescript: "npm:5.0.4" peerDependencies: "@reduxjs/toolkit": "*"
revert yarn..lock
revert yarn..lock
138f05eb66a3d73625ce8c96cc2febb164647206
--- yarn.lock @@ -6776,7 +6776,7 @@ __metadata: "@walmart/facilities-management-miniapp@npm:0.17.0": version: 0.17.0 - resolution: "@walmart/facilities-management-miniapp@npm:0.17.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffacilities-management-miniapp%2F-%2Ffacilities-management-miniapp-0.17.0.tgz" + resolution: "@walmart/facilities-management-miniapp@npm:0.17.0" peerDependencies: "@walmart/allspark-foundation": "*" checksum: 10c0/b57f8bd194c854b2871f77947a18bf05aeacd3b71dc4dccea74385c65a15d9ea3b432a96428d533847346a3beab9417f2a806aea2c9037f08acf32954413ace0
remove facilities mgmt archive in yarn lock
remove facilities mgmt archive in yarn lock
15164fab80cb3ad8ec99a0c19cf440b950b11f5d
--- src/screens/ChannelsScreen.tsx @@ -142,7 +142,6 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( } extraData={extraData} estimatedItemSize={100} - contentInset={{bottom: bottomInset}} contentContainerStyle={{ paddingTop: channelTopMargin, paddingBottom: bottomInset, --- src/screens/ChannelsScreen.tsx @@ -142,7 +142,6 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( } extraData={extraData} estimatedItemSize={100} - contentInset={{bottom: bottomInset}} contentContainerStyle={{ paddingTop: channelTopMargin, paddingBottom: bottomInset,
update top margin for channel screen
update top margin for channel screen
55e90c29b7b1d3f7a607500aafc87c65a2466b11
--- package.json @@ -127,7 +127,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-geolocation": "1.2.0", "@walmart/metrics-mini-app": "1.29.15", - "@walmart/mod-flex-mini-app": "1.30.2", + "@walmart/mod-flex-mini-app": "1.30.3", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.4.3", "@walmart/my-walmart-components": "1.1.0", --- yarn.lock @@ -8378,7 +8378,7 @@ __metadata: "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-geolocation": "npm:1.2.0" "@walmart/metrics-mini-app": "npm:1.29.15" - "@walmart/mod-flex-mini-app": "npm:1.30.2" + "@walmart/mod-flex-mini-app": "npm:1.30.3" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.4.3" "@walmart/my-walmart-components": "npm:1.1.0" @@ -8654,9 +8654,9 @@ __metadata: languageName: node linkType: hard -"@walmart/mod-flex-mini-app@npm:1.30.2": - version: 1.30.2 - resolution: "@walmart/mod-flex-mini-app@npm:1.30.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.30.2.tgz" +"@walmart/mod-flex-mini-app@npm:1.30.3": + version: 1.30.3 + resolution: "@walmart/mod-flex-mini-app@npm:1.30.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.30.3.tgz" peerDependencies: "@react-navigation/drawer": ">=6" "@react-navigation/material-top-tabs": ">=6" @@ -8691,7 +8691,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 uuid: ^3.3.2 - checksum: 10c0/480ec5518bf3b0933127c3994c702f0aed7df07db07c6c22493a78dbe08a2831f25f7dbf427a72a8a7360b6405d32382dcc936b024bf0b18455ecd843978074e + checksum: 10c0/51a5464c8dd638f2c57a6487a19d0b957a70e6fe636065dfdc077664afd55ba8ec209bf0cd580532b258556c2cbcf1aa64ad8ec6bafef864e991b6da790c38f2 languageName: node linkType: hard
fix(mod-flex-mini-app): INNODELOC-17003 Update clearance price type code (#4841)
fix(mod-flex-mini-app): INNODELOC-17003 Update clearance price type code (#4841) Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
524b13c575393cc4d2faedb704fb252da1ef08aa
--- packages/allspark-foundation/__tests__/Work/Context.test.tsx @@ -1,3 +1,7 @@ +// ******************************************************** +// DELETE THIS FILE *************************************** +// ******************************************************** + import { render, fireEvent } from '@testing-library/react-native'; import { Text, Button } from 'react-native'; import { WorkProvider, useWorkContext } from '../../src/Work'; --- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -488,7 +488,9 @@ export class AllsparkContainer< }; // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - + // ******************************************************** + // REVERT THESE CHANGES *********************************** + // ******************************************************** return ( <SafeAreaProvider> <StatusBar {...DEFAULT_STATUSBAR_PROPS} {...statusBar} />
feat: add temp comments DWORK-6097
feat: add temp comments DWORK-6097
50538b099e161c68c6634baddf63eeaa9f872a03
--- packages/allspark-utils/src/addInterceptor.ts @@ -0,0 +1,48 @@ +export type InterceptorMap<T extends Object> = Partial< + Record< + keyof T, + T[keyof T] extends (...params: any[]) => any + ? (...params: Parameters<T[keyof T]>) => Parameters<T[keyof T]> + : (value: T[keyof T]) => T[keyof T] + > +>; + +export const addInterceptMethod = <T extends Object>(value: T) => { + let _interceptors = {} as InterceptorMap<T>; + + const newValue = Object.assign(value, { + /** + * @description for given keys on object will run corresponding + * interceptor, if availble, before each function is called or + * value is accessed. For functions interceptors return modified params + * while for values they return a modified value. + */ + intercept: (interceptors: InterceptorMap<T>) => { + _interceptors = interceptors; + }, + }); + + const proxyHandler: ProxyHandler<typeof newValue> = { + get: function (target, property, receiver) { + const interceptor = _interceptors[property as keyof T]; + + if (!interceptor) { + return Reflect.get(target, property, receiver); + } + + const targetValue = target[property as keyof T]; + if (typeof targetValue === 'function') { + return new Proxy(targetValue, { + apply(__, thisArg, args) { + //@ts-ignore + return Reflect.apply(targetValue, thisArg, interceptor(...args)); + }, + }); + } + + return interceptor(target[property as keyof T]); + }, + }; + + return new Proxy(newValue, proxyHandler); +}; --- packages/allspark-utils/src/addProxy.ts @@ -1,8 +1,15 @@ +export type ProxyMap<T> = Partial<T>; + export const addProxyMethod = <T extends Object>(value: T) => { - let proxyInstance: Partial<T> = {}; + let proxyInstance: ProxyMap<T> = {}; const newValue = Object.assign(value, { - proxy: (instance: Partial<T>) => { + /** + * @description proxy object with a partially matching + * object. If value is defined on proxy it will be used instead + * of the original. + */ + proxy: (instance: ProxyMap<T>) => { proxyInstance = instance; }, }); --- packages/allspark-utils/src/index.ts @@ -1,4 +1,7 @@ +export { addInterceptMethod } from './addInterceptor'; +export type { InterceptorMap } from './addInterceptor'; export { addProxyMethod } from './addProxy'; +export type { ProxyMap } from './addProxy'; export { CacheValue } from './cacheValue'; export type { CacheInfoEvents, CacheErrorEvents } from './cacheValue'; export type { CacheValueConfig } from './cacheValue';
feat: add interceptor util. update types
feat: add interceptor util. update types
a2ae244c5c0ecc7397a0420b1b34a4a9c8c9cb08
--- package.json @@ -89,7 +89,7 @@ "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.6.0", + "@walmart/wmconnect-mini-app": "3.7.0", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6368,7 +6368,7 @@ __metadata: "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.6.0" + "@walmart/wmconnect-mini-app": "npm:3.7.0" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6451,9 +6451,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.6.0": - version: 3.6.0 - resolution: "@walmart/wmconnect-mini-app@npm:3.6.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.6.0.tgz" +"@walmart/wmconnect-mini-app@npm:3.7.0": + version: 3.7.0 + resolution: "@walmart/wmconnect-mini-app@npm:3.7.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.0.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6464,7 +6464,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/1ba0b0dfadb2f9dc7813bda36d88c9961e2cf2b8204fbda6a2c4465c09fb077b2c65b60f425787c5d7bf866e63d2d6a60d2ac14270667f8b7b746c58edbc7912 + checksum: 10c0/981975ee68eda7d59cf3bd337ea9931c4f4abb9ce758ccf2664293da7a93d9dee5950af40e019d2423947548bba23c78b549b5d45240785afee4800090374fd9 languageName: node linkType: hard
feat(ui): updated version
feat(ui): updated version
b7ecf618b5efc1a7975674ef8666e4a1ed748500
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.3.9", + "version": "1.3.10", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation-hub/src/Shared/Hooks/index.ts @@ -1,3 +1,6 @@ export * from './useHubConfig'; export * from './useUserPersonaType'; export * from './useUserCanSeeHub'; +export * from './useGetViewersPrimaryTeam'; + +export * from './types'; --- packages/allspark-foundation-hub/src/Shared/Hooks/types.ts --- packages/allspark-foundation-hub/src/Shared/Hooks/useGetViewersPrimaryTeam.ts @@ -21,7 +21,7 @@ export const useGetViewersPrimaryTeam = () => { const isUserSalariedEmployee: boolean = employeeType?.toUpperCase() === EMP_TYPE_SALARIED; if (!viewerTeam?.length) { - if (isSalaried || isUserSalariedEmployee) { + if (!isSiteDC && (isSalaried || isUserSalariedEmployee)) { return [{ teamName: MANAGEMENT_TEAM_LABEL, teamId: MANAGEMENT_TEAM_ID }]; } else { return [ --- packages/allspark-foundation-hub/src/Store/Hooks/index.ts @@ -1,7 +1,4 @@ export * from './useGetAllTeamsOfStore'; -export * from './useGetViewersPrimaryTeam'; export * from './useTeamSelection'; export * from './useTeamsByStore'; export * from './useUserPreferences'; - -export * from './types'; --- packages/allspark-foundation-hub/src/Store/Hooks/useTeamSelection.ts @@ -1,5 +1,9 @@ import { useTeamsByStore } from './useTeamsByStore'; -import { Team as TeamType, AreaTeamMap } from '../../Shared'; +import { + Team as TeamType, + AreaTeamMap, + useGetViewersPrimaryTeam, +} from '../../Shared'; import { createSections } from '../Modules/TeamSelection/Utils/sectionListData'; import { sortTeamsAscComparator, @@ -9,7 +13,6 @@ import { import { useState } from 'react'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { useUserPreferences } from './useUserPreferences'; -import { useGetViewersPrimaryTeam } from './useGetViewersPrimaryTeam'; export const useTeamSelection = () => { const logger = LoggerService.getContainerInstance(); --- packages/allspark-foundation-hub/src/Store/Modules/TeamSelection/Screens/TeamSelection.tsx @@ -1,8 +1,14 @@ import React, { useEffect, useState } from 'react'; -import { Team as TeamType, AreaTeamMap } from '../../../../Shared'; +import { + Team as TeamType, + AreaTeamMap, + useGetViewersPrimaryTeam, + ErrorScreen, + FEATURE_ID, + PLATFORM_NAME, +} from '../../../../Shared'; import { TeamSelectionList } from '../Component/TeamSelectionList'; import { TeamSelectionLoader } from '../Component/TeamSelectionLoader'; -import { ErrorScreen } from '../../../../Shared'; import { createSections } from '../Utils/sectionListData'; import { sortAreas } from '../Utils/teams'; import { useSelector } from 'react-redux'; @@ -11,9 +17,7 @@ import { useGetAssociatePreferencesQuery } from '@walmart/me-at-walmart-athena-q import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { useTeamsByStore } from '../../../Hooks/useTeamsByStore'; -import { useGetViewersPrimaryTeam } from '../../../Hooks/useGetViewersPrimaryTeam'; import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation'; -import { FEATURE_ID, PLATFORM_NAME } from '../../../../Shared'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; import { teamsByWorkgroup } from '../Utils/teamsByWorkGroup'; --- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx @@ -39,6 +39,7 @@ import { FEATURE_ID, HOME_OFFICE_DOMAIN, StoreImages as Images, + useGetViewersPrimaryTeam, } from '../../../Shared'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; @@ -46,7 +47,6 @@ import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; import { useUserPersonaType } from '../../../Shared/Hooks/useUserPersonaType'; import { useFocusEffect } from '@react-navigation/native'; -import { useGetViewersPrimaryTeam } from '../../Hooks'; export * from './types';
Expose type for get viewer primary team function
Expose type for get viewer primary team function
ebfa209b2c091dd54e586327f73d43613a1ccd33
--- graphql.yml @@ -23,7 +23,7 @@ applications: - name: "GetSupplyChainShifts" queryTemplate: "src/queries/getSupplyChainShifts.graphql" tags: - - "v2" + - "v1" - name: "GetTeamById" queryTemplate: "src/queries/getTeamById.graphql" tags: @@ -31,7 +31,7 @@ applications: - name: "GetTeamsByStore" queryTemplate: "src/queries/getTeamsbyStore.graphql" tags: - - "v1" + - "v2" - name: "upsertAssociateTextPreferences" queryTemplate: "src/queries/upsertAssociateTextPreference.graphql" tags: @@ -53,7 +53,7 @@ applications: - name: "GetSupplyChainShifts" queryTemplate: "src/queries/getSupplyChainShifts.graphql" tags: - - "v2" + - "v1" - name: "GetTeamById" queryTemplate: "src/queries/getTeamById.graphql" tags: @@ -61,7 +61,7 @@ applications: - name: "GetTeamsByStore" queryTemplate: "src/queries/getTeamsbyStore.graphql" tags: - - "v1" + - "v2" - name: "upsertAssociateTextPreferences" queryTemplate: "src/queries/upsertAssociateTextPreference.graphql" tags: @@ -83,7 +83,7 @@ applications: # - name: "GetSupplyChainShifts" # queryTemplate: "src/queries/getSupplyChainShifts.graphql" # tags: - # - "v2" + # - "v1" # - name: "GetTeamById" # queryTemplate: "src/queries/getTeamById.graphql" # tags: @@ -91,7 +91,7 @@ applications: # - name: "GetTeamsByStore" # queryTemplate: "src/queries/getTeamsbyStore.graphql" # tags: - # - "v1" + # - "v2" # - name: "upsertAssociateTextPreferences" # queryTemplate: "src/queries/upsertAssociateTextPreference.graphql" # tags:
update tags
update tags
c4f3860034ab0f6770e05fc8c17f435aecb5921f
--- package-lock.json @@ -11859,9 +11859,9 @@ "integrity": "sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw==" }, "graphql-config": { - "version": "4.4.0", - "resolved": "https://npme.walmart.com/graphql-config/-/graphql-config-4.4.0.tgz", - "integrity": "sha512-QUrX7R4htnTBTi83a0IlIilWVfiLEG8ANFlHRcxoZiTvOXTbgan67SUdGe1OlopbDuyNgtcy4ladl3Gvk4C36A==", + "version": "4.4.1", + "resolved": "https://npme.walmart.com/graphql-config/-/graphql-config-4.4.1.tgz", + "integrity": "sha512-B8wlvfBHZ5WnI4IiuQZRqql6s+CKz7S+xpUeTb28Z8nRBi8tH9ChEBgT5FnTyE05PUhHlrS2jK9ICJ4YBl9OtQ==", "requires": { "@graphql-tools/graphql-file-loader": "^7.3.7", "@graphql-tools/json-file-loader": "^7.3.7",
chore: update lock file
chore: update lock file
95ca92ac657300b1651b31f83054bc7239746d39
--- package-lock.json @@ -40,7 +40,7 @@ "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", - "@walmart/attendance-mini-app": "1.52.0", + "@walmart/attendance-mini-app": "1.54.0", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9", @@ -7991,9 +7991,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "1.52.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.52.0.tgz", - "integrity": "sha512-jscspXrFV3tM5wcVMmCVvHrrUGMzgaNxtHsf2JlUbSrFsALpsRdILsgCswF6b/b4CFfu15tXoexsM0xOdxoEkQ==", + "version": "1.54.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.54.0.tgz", + "integrity": "sha512-axx6nL0aBUZvlEdSPDRnIjGRD6fSr48swdZPPVT5KZmFXv/NOJEhsmLTyv3U5LgfjQIvzxQ1T0UGTDbalZ90qA==", "dependencies": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", @@ -33515,9 +33515,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "1.52.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.52.0.tgz", - "integrity": "sha512-jscspXrFV3tM5wcVMmCVvHrrUGMzgaNxtHsf2JlUbSrFsALpsRdILsgCswF6b/b4CFfu15tXoexsM0xOdxoEkQ==", + "version": "1.54.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.54.0.tgz", + "integrity": "sha512-axx6nL0aBUZvlEdSPDRnIjGRD6fSr48swdZPPVT5KZmFXv/NOJEhsmLTyv3U5LgfjQIvzxQ1T0UGTDbalZ90qA==", "requires": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", --- package.json @@ -81,7 +81,7 @@ "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", - "@walmart/attendance-mini-app": "1.52.0", + "@walmart/attendance-mini-app": "1.54.0", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9",
ama v1.54.0
ama v1.54.0
ec1ddea104f2f8885dd519538731958b62791a2f
--- src/home/components/GreetingRowV2/mockData.tsx @@ -12,7 +12,7 @@ export const mockData = { 'firstName': 'GLORIA', 'fullName': 'PANTOJA, GLORIA', 'lastName': 'PANTOJA', - 'hireDate': '2010-05-27', + 'hireDate': '2010-07-10', 'punch': { 'lastPunchTime': '2025-05-16 13:43:10', 'lastPunchType': '2',
feat(header): build for anniversary
feat(header): build for anniversary
4a2f188d5e09b25b684a24c85bae33d5fb5a81d9
--- docs/CHANGELOG.md @@ -1,3 +1,11 @@ +# [3.7.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v3.6.0...v3.7.0) (2025-09-22) + + +### Features + +* audio parameters updated ([205a7c5](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/205a7c5b7836944a7fa084cd03aef66465abfee1)) +* **ui:** audio upload error fix ([4d81e04](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/4d81e041ba35205b6ac62d176acd854136dd8e8f)) + # [3.6.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v3.5.0...v3.6.0) (2025-09-17) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.6.0", + "version": "3.7.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.7.0 [skip ci]
chore(release): 3.7.0 [skip ci] # [3.7.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v3.6.0...v3.7.0) (2025-09-22) ### Features * audio parameters updated ([205a7c5](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/205a7c5b7836944a7fa084cd03aef66465abfee1)) * **ui:** audio upload error fix ([4d81e04](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/4d81e041ba35205b6ac62d176acd854136dd8e8f))
c3ea05fcee9e39d0af8987d00992bd2b12b606ff
--- src/utils/rosterDetail.tsx @@ -261,13 +261,23 @@ export const getFilterCount = ( }, allTeams: any[], ) => { - if (teamState.teamIds?.[0] === TOTAL_STORE_TEAM_ID) { +if (teamState.teamIds && teamState.teamIds.length > 0 && teamState.teamIds[0] === TOTAL_STORE_TEAM_ID) { + if (teamRoster) { return { - scheduledCount: teamRoster?.filter(associateIsScheduled).length, - clockedInCount: teamRoster?.filter(associateIsClockedIn)?.length, - absentCount: teamRoster?.filter(associateIsAbsent)?.length, - tardyCount: teamRoster?.filter(associateIsTardy)?.length, + scheduledCount: teamRoster.filter(associateIsScheduled).length, + clockedInCount: teamRoster.filter(associateIsClockedIn).length, + absentCount: teamRoster.filter(associateIsAbsent).length, + tardyCount: teamRoster.filter(associateIsTardy).length, }; + } else { + return { + scheduledCount: 0, + clockedInCount: 0, + absentCount: 0, + tardyCount: 0, + }; + } +} } else { let clockedInCount = 0; let absentCount = 0;
Update src/utils/rosterDetail.tsx
Update src/utils/rosterDetail.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com>
a1cdc1968f27d8f7a6a7c40554827d6b5a9f418d
--- src/core/notificationInit.ts @@ -82,8 +82,6 @@ export function* onInit(): any { authToken, }; - console.log('WmNotification is', WmNotification); - yield put(SumoActionCreators.chargeStarted()); yield call(WmNotification.charge, options as SumoOptions); yield put(SumoActionCreators.chargeSuccess()); @@ -122,6 +120,7 @@ export function* getAssociateProfile() { domain = Domain.HOMEOFFICE; break; case 'dc': + case 'distribution center': domain = Domain.DC; break; default:
remove console.log; add 'distribution center' to switch case
remove console.log; add 'distribution center' to switch case
9d54c2a842c3c7c469528c132fe0f581f5bba881
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.3.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.2.0...v2.3.0) (2024-06-11) + + +### Features + +* **ui:** Merge changes SMDV-5809 ([7826f0d](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/7826f0d0b52ef754811f41e0aec5062b86a2a089)) + # [2.2.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.1.0...v2.2.0) (2024-05-17) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.2.0", + "version": "2.3.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.3.0 [skip ci]
chore(release): 2.3.0 [skip ci] # [2.3.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.2.0...v2.3.0) (2024-06-11) ### Features * **ui:** Merge changes SMDV-5809 ([7826f0d](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/7826f0d0b52ef754811f41e0aec5062b86a2a089))
4e94c25828c7c8966e5f3fbae5e19897d7326b74
--- __tests__/harness/mockData/associate.ts @@ -45,6 +45,6 @@ export const generateMockAssociate = ( preferredLastName: testValues?.preferredLastName || chance.string(), punch: null, //TODO: create generator for this field userId: testValues?.userId || chance.string(), - win: testValues?.win || chance.integer(), + win: testValues?.win, }; }; --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.1-alpha.1", + "version": "1.15.1-alpha.2", "main": "dist/index.js", "files": [ "dist" @@ -99,9 +99,9 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.1-alpha.1", + "@walmart/roster-mini-app": "2.12.1-alpha.2", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.7.0", + "@walmart/wmconnect-mini-app": "2.8.0-alpha.3", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- yarn.lock @@ -6400,9 +6400,9 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.1-alpha.1" + "@walmart/roster-mini-app": "npm:2.12.1-alpha.2" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.7.0" + "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.3" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6582,9 +6582,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.1-alpha.1": - version: 2.12.1-alpha.1 - resolution: "@walmart/roster-mini-app@npm:2.12.1-alpha.1" +"@walmart/roster-mini-app@npm:2.12.1-alpha.2": + version: 2.12.1-alpha.2 + resolution: "@walmart/roster-mini-app@npm:2.12.1-alpha.2" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6626,7 +6626,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/a0d2d248c3f834e65b0de0260bc0d13ab014e710eb8e1455a87e5fe3fba1f0d56dd033240ad4bafc629303a8da35a40bbd847797599237376e30b95aa65fa731 + checksum: 10c0/d233a0dd19912a3465695d9ae8f0700079ab39811b7cb49e6cc3d12fe23a63c0a30505edd49feb8a89789c4e262c126ec7db76b31c06f1d479f9fb2ba467477f languageName: node linkType: hard @@ -6650,9 +6650,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.7.0": - version: 2.7.0 - resolution: "@walmart/wmconnect-mini-app@npm:2.7.0" +"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.3": + version: 2.8.0-alpha.3 + resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.3" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6664,13 +6664,13 @@ __metadata: "@react-navigation/native": ^6.0.8 "@reduxjs/toolkit": ^1.9.7 "@types/node": 20.5.9 - "@walmart/allspark-graphql-client": ^1.4.6 + "@walmart/allspark-graphql-client": ~6.3.20 "@walmart/allspark-http-client": 6.1.4 "@walmart/config-components": 4.4.0 - "@walmart/core-services": 6.1.4 - "@walmart/core-services-allspark": 6.1.4 - "@walmart/core-utils": 6.1.4 - "@walmart/gtp-shared-components": 2.2.1 + "@walmart/core-services": ~6.4.1 + "@walmart/core-services-allspark": 6.25.1 + "@walmart/core-utils": ~6.3.9 + "@walmart/gtp-shared-components": 2.2.4 "@walmart/react-native-encrypted-storage": ~1.1.3 "@walmart/react-native-logger": 1.34.8 "@walmart/react-native-scanner-3.0": 0.5.1 @@ -6692,7 +6692,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/ce28cf7664920e6c76161a7537363d4018fff03ba73095dc215984bb74121d6db890ec95a25dc466be9036d91982e149ce94342953e7707c17aa04c38bd86248 + checksum: 10c0/0d9d8fd2e96c135e23196af1db4e408cb879ffb265536ed69de053cebfbd816da65d813dc2c318d21edef32ffc0eeeaa51bacd4b26b2942891cff788275d924b languageName: node linkType: hard
Update my team mini app version
Update my team mini app version
f96cb8f13b2aef94394b01aebc99f725ad9a6546
--- .gitignore @@ -52,6 +52,7 @@ install-state.gz build.context.json +.claude .claude-flow .swarm .yalc
chore: add .claude to .gitignore file
chore: add .claude to .gitignore file
b53a77ecda1f156ea5bd57f424dfc44a278316ff
--- package-lock.json @@ -1879,17 +1879,17 @@ } }, "@walmart/allspark-me-mini-app": { - "version": "0.0.3", - "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.0.3.tgz", - "integrity": "sha512-c5a+HA+mn/6t70gZbm3/cFMCHi7IENZNkF1p0FOEK7luOqP3Fx6G2D4ymQhlIJwBb8MsyjAWGDbAniEq5TZf9g==", + "version": "0.0.4", + "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.0.4.tgz", + "integrity": "sha512-f3Rl21gyjBKXEGZg81B+AS5PggcsrdNyoY8XjReT/5QGAre2A5wn+uppUfm4oG7luCfIzE5f5os30oySv4MqlQ==", "requires": { "reselect": "^4.0.0" } }, "@walmart/ask-sam-mini-app": { - "version": "0.6.4", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.4.tgz", - "integrity": "sha512-mA9PXtjpCe6eZRCrDzVi4X7BGYSddprZTUYDYPM9D3mSGVcMpqIcIICoZgS8umptHDsQ30LydDkFLjnMCYiyHw==", + "version": "0.6.6", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.6.tgz", + "integrity": "sha512-V4szxf7LoTf8GeL4jfZUVPEOhV3v2fNg+mFNUEqb+Yqqfdh/ZWMAfpQsvOUtmzbm8OeshjAKnb2PZLLGTwnzFA==", "requires": { "@babel/preset-typescript": "^7.10.4", "apisauce": "^1.1.2", --- package.json @@ -38,7 +38,7 @@ "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": "^4.14.159", "@walmart/allspark-home-mini-app": "0.0.11", - "@walmart/allspark-me-mini-app": "0.0.3", + "@walmart/allspark-me-mini-app": "0.0.4", "@walmart/ask-sam-mini-app": "^0.6.6", "@walmart/config-components": "^1.0.4", "@walmart/functional-components": "^1.0.21",
Incrementing me mini app version
Incrementing me mini app version
a159c02390d887400b5d274431733b58bd25cb1f
--- ios/Podfile.lock @@ -673,7 +673,7 @@ PODS: - RNFBApp - RNFS (2.20.0): - React-Core - - RNGestureHandler (2.9.0): + - RNGestureHandler (2.8.0): - React-Core - RNImageCropPicker (0.38.1): - React-Core @@ -688,7 +688,7 @@ PODS: - React-Core - RNReactNativeHapticFeedback (1.14.0): - React-Core - - RNReanimated (2.14.0): + - RNReanimated (2.14.2): - DoubleConversion - FBLazyVector - FBReactNativeSpec @@ -1144,7 +1144,7 @@ SPEC CHECKSUMS: boost: a7c83b31436843459a1961bfd74b96033dc77234 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 - DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 + DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 FBLazyVector: affa4ba1bfdaac110a789192f4d452b053a86624 FBReactNativeSpec: fe8b5f1429cfe83a8d72dc8ed61dc7704cac8745 Firebase: 4ba896cb8e5105d4b9e247e1c1b6222b548df55a @@ -1170,7 +1170,7 @@ SPEC CHECKSUMS: Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541 FlipperKit: 02fd59af13a1465d04268cbffe3f93505f0a1dc2 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 - glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85 + glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b GoogleAppMeasurement: 7a33224321f975d58c166657260526775d9c6b1a GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f GoogleUtilities: bad72cb363809015b1f7f19beb1f1cd23c589f95 @@ -1256,11 +1256,11 @@ SPEC CHECKSUMS: RNFBPerf: e9072fe2bd2476c5263a99509f52538ef392fe3f RNFBRemoteConfig: 0e5306c3cc8a6d59d1544d5691ea31ab69d14603 RNFS: 4ac0f0ea233904cb798630b3c077808c06931688 - RNGestureHandler: 071d7a9ad81e8b83fe7663b303d132406a7d8f39 + RNGestureHandler: 62232ba8f562f7dea5ba1b3383494eb5bf97a4d3 RNImageCropPicker: 648356d68fbf9911a1016b3e3723885d28373eda RNPermissions: dcdb7b99796bbeda6975a6e79ad519c41b251b1c RNReactNativeHapticFeedback: 1e3efeca9628ff9876ee7cdd9edec1b336913f8c - RNReanimated: 641a9c02fe2f910371cb102aaac94d57cdf24e5d + RNReanimated: 3ed15d2c7d7fd9d9a284de291a1e347d132d282b RNScreens: 4a1af06327774490d97342c00aee0c2bafb497b7 RNSha256: 80bea5b2e7005f813f6438cb41e573b3d531146c RNSketchCanvas: 124a2a11b9bce418ef6e34262fc163d00b5f714b --- package-lock.json @@ -43,7 +43,7 @@ "@walmart/core-services-allspark": "~2.2.2", "@walmart/core-utils": "~1.3.0", "@walmart/core-widget-registry": "~0.7.2", - "@walmart/counts-component-miniapp": "0.1.1", + "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.15.0", "@walmart/exception-mini-app": "1.0.14", "@walmart/facilities-management-miniapp": "0.4.2", @@ -64,7 +64,7 @@ "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.14", - "@walmart/price-changes-mini-app": "^1.7.2", + "@walmart/price-changes-mini-app": "1.7.3", "@walmart/profile-feature-app": "0.76.0", "@walmart/push-to-talk-mini-app": "1.8.59", "@walmart/react-native-encrypted-storage": "1.1.3", @@ -5018,9 +5018,9 @@ } }, "node_modules/@walmart/counts-component-miniapp": { - "version": "0.1.1", - "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.1.tgz", - "integrity": "sha512-hSiEW70o+gB54zVo7DjS0dk1Qp6UbWQ79JqBVbEuXH9igRwg2AH2pcWZhCndxvVh7K1l3zusbHZz187SrZZBXw==", + "version": "0.1.2", + "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.2.tgz", + "integrity": "sha512-/MvR5ACBMHVTgVtBgQ8lYQAQc1dMgfvNQ2n4XdgbXSyi9PLVNJjr89WTh1h9YBJxtihmwMMhx66cP3TVqZal6A==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -5660,9 +5660,9 @@ } }, "node_modules/@walmart/price-changes-mini-app": { - "version": "1.7.2", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.7.2.tgz", - "integrity": "sha512-LHY6pRf0CG2OzzNmUuBuKN60xni1htDb1DGTVUrvp9fvWq1O+ySmagZBXemkJos9eBy/I27HTp2IMR/EHgYA4g==", + "version": "1.7.3", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.7.3.tgz", + "integrity": "sha512-wc2XWTJVM9JHs/eiF65k9MDb3/Cy2Q+MoWSkChFicgC+UWDwtM+SIxRn3i+zz0UBTAkXDxYfNeMjv3Ct94ql+w==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -25137,9 +25137,9 @@ "integrity": "sha512-qCDWQF6Uvg9ftBqG4BHItlS1Fh6B0kzBDa3d9/ObmcAaeiGhWM1H3WkOaNeI+h8j7SoSAHiHeyGVbw+OCpH2sQ==" }, "@walmart/counts-component-miniapp": { - "version": "0.1.1", - "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.1.tgz", - "integrity": "sha512-hSiEW70o+gB54zVo7DjS0dk1Qp6UbWQ79JqBVbEuXH9igRwg2AH2pcWZhCndxvVh7K1l3zusbHZz187SrZZBXw==" + "version": "0.1.2", + "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.1.2.tgz", + "integrity": "sha512-/MvR5ACBMHVTgVtBgQ8lYQAQc1dMgfvNQ2n4XdgbXSyi9PLVNJjr89WTh1h9YBJxtihmwMMhx66cP3TVqZal6A==" }, "@walmart/emergency-mini-app": { "version": "1.15.0", @@ -25316,9 +25316,9 @@ } }, "@walmart/price-changes-mini-app": { - "version": "1.7.2", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.7.2.tgz", - "integrity": "sha512-LHY6pRf0CG2OzzNmUuBuKN60xni1htDb1DGTVUrvp9fvWq1O+ySmagZBXemkJos9eBy/I27HTp2IMR/EHgYA4g==" + "version": "1.7.3", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.7.3.tgz", + "integrity": "sha512-wc2XWTJVM9JHs/eiF65k9MDb3/Cy2Q+MoWSkChFicgC+UWDwtM+SIxRn3i+zz0UBTAkXDxYfNeMjv3Ct94ql+w==" }, "@walmart/profile-feature-app": { "version": "0.76.0", --- package.json @@ -85,7 +85,7 @@ "@walmart/core-services-allspark": "~2.2.2", "@walmart/core-utils": "~1.3.0", "@walmart/core-widget-registry": "~0.7.2", - "@walmart/counts-component-miniapp": "0.1.1", + "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.15.0", "@walmart/exception-mini-app": "1.0.14", "@walmart/facilities-management-miniapp": "0.4.2", @@ -106,7 +106,7 @@ "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.14", - "@walmart/price-changes-mini-app": "1.7.2", + "@walmart/price-changes-mini-app": "1.7.3", "@walmart/profile-feature-app": "0.76.0", "@walmart/push-to-talk-mini-app": "1.8.59", "@walmart/react-native-encrypted-storage": "1.1.3",
bump price changes to 1.7.3 and counts to 0.1.2
bump price changes to 1.7.3 and counts to 0.1.2
a7c8ac306c9e0ec2d0c6e9dd61ea2ae9c9b11e34
--- src/components/RosterWidget/useRosterWidget.ts @@ -28,7 +28,7 @@ export const useRosterWidget = ( isSiteDC: boolean, ) => { const {t} = translationClient.useTranslation(); - const {selectedTeamIds, refresh, widgetStyle} = props; + const {selectedTeamIds, refresh, widgetStyle, selectedShifts} = props; const [widgetRefresh, setWidgetRefresh] = useState(false); const [state, setState] = useState<{ scheduledCount: number; @@ -87,7 +87,7 @@ export const useRosterWidget = ( props.selectedShifts as ShiftMappingList, ) : []; - }, [teamDataForSite, isSiteDC]); + }, [teamDataForSite, isSiteDC, selectedShifts, selectedTeamIds]); const configureRosterInfo = () => { if (selectedTeamIds?.includes(TOTAL_STORE_TEAM_ID)) { @@ -115,10 +115,22 @@ export const useRosterWidget = ( scheduledCount + (teamData.membership?.filter(associateIsScheduled) ?.length as number); + //TODO: Update team type clockedInCount = - clockedInCount + (teamData?.mewClockedInCount as number); - absentCount = absentCount + (teamData?.mewAbsentCount as number); - tardyCount = tardyCount + (teamData?.mewTardyCount as number); + clockedInCount + + teamData.membership?.filter((team: any) => + associateIsClockedIn(team?.associate), + )?.length; + absentCount = + absentCount + + teamData.membership?.filter((team: any) => + associateIsAbsent(team?.associate), + )?.length; + tardyCount = + tardyCount + + teamData.membership?.filter((team: any) => + associateIsTardy(team?.associate), + )?.length; } }); setState({ @@ -187,6 +199,7 @@ export const useRosterWidget = ( teamDataForStore?.getTeamsByStore, teamDataForSite, isSiteDC, + selectedShifts, ]); useEffect(() => { --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -58,6 +58,9 @@ import { associateIsClockedIn, associateIsScheduled, associateIsScheduledWithShifts, + associateIsClockedInWithShifts, + associateIsAbsentWithShifts, + associateIsTardyWithShifts, associateIsTardy, } from '../../utils/user'; import {ListEmptyComponent} from '../../components/EmptyList'; @@ -309,10 +312,20 @@ export const SupplyChainRosterDetailScreen = ({ associateIsScheduledWithShifts(associate, state.shiftIds), )?.length as number); clockedInCount = - filteredAssociates?.filter(associateIsClockedIn)?.length; + clockedInCount + + (teamData?.membership?.filter((team) => + associateIsClockedInWithShifts(team, state.shiftIds), + )?.length as number); absentCount = - filteredAssociates?.filter(associateIsAbsent)?.length; - tardyCount = filteredAssociates?.filter(associateIsTardy)?.length; + absentCount + + (teamData?.membership?.filter((team) => + associateIsAbsentWithShifts(team, state.shiftIds), + )?.length as number); + tardyCount = + tardyCount + + (teamData?.membership?.filter((team) => + associateIsTardyWithShifts(team, state.shiftIds), + )?.length as number); } } else { if (state.teamIds?.includes(teamData?.teamId as string)) { @@ -369,13 +382,7 @@ export const SupplyChainRosterDetailScreen = ({ ] : []), ]; - }, [ - isSalariedOrLead, - selectedFilter, - filterCount, - currentTeam?.mewClockedInCount, - t, - ]); + }, [isSalariedOrLead, selectedFilter, filterCount, t]); const filterLabels = { all: t('rosterScreen.filters.all'), --- src/utils/user.ts @@ -116,25 +116,58 @@ export const associateIsScheduled = ( return associate?.wfmSchedule !== null; }; +// Remove this once we get shifts in this format +export const mapShift: Record<string, number> = { + ['A1']: 1, + ['A2']: 2, + ['A3']: 3, + ['B1']: 4, + ['B2']: 5, + ['B3']: 6, +}; + export const associateIsScheduledWithShifts = ( associate: Associate | TeamAssociateMembership['associate'] | any, shifts: string[], ) => { - // Remove this once we get shifts in this format - const mapShift: Record<string, number> = { - ['A1']: 1, - ['A2']: 2, - ['A3']: 3, - ['B1']: 4, - ['B2']: 5, - ['B3']: 6, - }; const shiftSiteIds = shifts?.map((shift) => mapShift[shift]); return ( associate?.wfmSchedule !== null && shiftSiteIds?.includes(Number(associate.shiftCode)) ); }; +export const associateIsAbsentWithShifts = ( + associate: Associate | TeamAssociateMembership['associate'] | any, + shifts: string[], +) => { + const shiftSiteIds = shifts?.map((shift: string) => mapShift[shift]); + return ( + associate?.associate?.absentData?.absenceTypeCode === 1 && + shiftSiteIds?.includes(Number(associate.shiftCode)) + ); +}; + +export const associateIsTardyWithShifts = ( + associate: Associate | TeamAssociateMembership['associate'] | any, + shifts: string[], +) => { + const shiftSiteIds = shifts?.map((shift) => mapShift[shift]); + return ( + associate?.associate?.absentData?.absenceTypeCode === 2 && + shiftSiteIds?.includes(Number(associate.shiftCode)) + ); +}; +export const associateIsClockedInWithShifts = ( + associate: Associate | TeamAssociateMembership['associate'] | any, + shifts: string[], +) => { + const shiftSiteIds = shifts?.map((shift) => mapShift[shift]); + return ( + ClockStatusEnum.clockedOut !== + Number(associate?.associate?.punch?.clockStatus) && + shiftSiteIds?.includes(Number(associate.shiftCode)) + ); +}; export const associateDisplayName = (associate?: Associate) => { const preferredFullName =
Adding filter count changes
Adding filter count changes
852160361bcc400ce53e97e71a6b43b25bfdb981
--- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx @@ -232,7 +232,7 @@ export class AllsparkFeatureModule< <Navigator.Screen key={screen} name={screen} - {...restConfig} + {...(restConfig as any)} {...routeConfig} component={ScreenComponent} /> --- packages/allspark-foundation/src/Feature/types.ts @@ -4,7 +4,7 @@ import { Saga } from 'redux-saga'; import { NotificationEventListeners } from '../Notification'; import { FeatureTranslationResources } from '../Translation/types'; -import { +import type { AllsparkModalConfig, AllsparkScreenConfig, StackNavigator, --- packages/allspark-foundation/src/FeatureRunner/navigation.tsx @@ -40,7 +40,6 @@ import { ChangeLanguageButton } from './components/LanguageButton'; import { FeatureRunnerScreenParams } from './screens/types'; import { ImpersonationScreen } from './screens/Impersonation'; import { ClockModal } from './modals/ClockModal'; -import { ParamListBase } from '@react-navigation/native'; export const renderHeader = (props: StackHeaderProps) => ( <Header {...props} bannersEnabled={true} /> @@ -59,17 +58,15 @@ export const createFeatureRunnerNavigation = <F extends AllsparkFeatureModule>( dependencies: AllsparkFeatureModule[] = [], plugins: FeatureRunnerPlugin[] = [] ) => { - const Stack = createStackNavigator< - FeatureRunnerScreenParams | ParamListBase - >(); + const Stack = createStackNavigator<FeatureRunnerScreenParams>(); const Drawer = createDrawerNavigator(); const FeatureScreens = feature.buildAllScreens({ - Navigator: Stack, + Navigator: Stack as any, }); const DependencyScreens = dependencies.map((dep) => dep.buildAllScreens({ - Navigator: Stack, + Navigator: Stack as any, }) ); --- packages/allspark-foundation/src/FeatureRunner/screens/types.ts @@ -1,7 +1,8 @@ +import { ParamListBase } from '@react-navigation/native'; import { AuthConfiguration } from '../../Auth'; import { ImpersonationFormProps } from '../../User'; -export type FeatureRunnerScreenParams = { +export type FeatureRunnerScreenParams = ParamListBase & { [key: string & {}]: any; 'container.login': { authConfigs: AuthConfiguration[]; --- packages/allspark-foundation/src/FeatureRunner/types.ts @@ -2,7 +2,7 @@ import { ComponentProps, ComponentType } from 'react'; import { AuthConfiguration } from '../Auth'; import { AllsparkContainer } from '../Container'; import { EnvironmentDerivedValue } from '../Environment'; -import { AllsparkFeatureModule } from '../Core'; +import { AllsparkFeatureModule, AllsparkScreenProps } from '../Core'; import { ImpersonationFormProps } from '../User'; import { SideMenuItemProps } from './screens/SideMenu'; @@ -13,7 +13,7 @@ export type FeatureRunnerPlugin = { // rendered on side menu menuOption?: SideMenuItemProps; // rendered as a screen, screen link shown on plugins section of home screen - screen?: ComponentType<any>; + screen?: ComponentType<AllsparkScreenProps<any, any>>; }; export type AllsparkFeatureRunnerConfig< --- packages/allspark-foundation/src/Navigation/types.ts @@ -1,6 +1,7 @@ import React, { ComponentType } from 'react'; import type { NavigationListBase, + NavigationProp, StackNavigationState, } from '@react-navigation/core'; import type { @@ -55,7 +56,7 @@ export type EventManagerTypes = { }; export type StackNavigator = TypedNavigator<{ - ParamList: ParamListBase | FeatureRunnerScreenParams; + ParamList: ParamListBase; NavigatorID: string | undefined; State: StackNavigationState<ParamListBase>; ScreenOptions: {}; @@ -64,6 +65,16 @@ export type StackNavigator = TypedNavigator<{ Navigator: React.ComponentType<any>; }>; +export type FeatureStackNavigator = TypedNavigator<{ + ParamList: FeatureRunnerScreenParams; + NavigatorID: string | undefined; + State: StackNavigationState<FeatureRunnerScreenParams>; + ScreenOptions: {}; + EventMap: StackNavigationEventMap; + NavigationList: NavigationListBase<FeatureRunnerScreenParams>; + Navigator: React.ComponentType<any>; +}>; + export type AnyNavigator = TypedNavigator<any, any>; export type AllsparkNavigationConfig = { @@ -138,8 +149,8 @@ export type AllsparkScreenConfig< RouteName extends keyof ParamList, > = Omit< RouteConfig< - ParamListBase, - keyof ParamListBase, + ParamList, + keyof ParamList, NavigationState, StackNavigationOptions, EventMapBase, --- packages/allspark-foundation/src/Translation/client.ts @@ -1,4 +1,4 @@ -import i18next, { InitOptions, KeyPrefix, TFunction } from 'i18next'; +import i18next, { InitOptions, KeyPrefix, TFunction, i18n } from 'i18next'; import { UseTranslationOptions, useTranslation as baseUseTranslation, @@ -23,7 +23,31 @@ export const DefaultConfig: TranslationClientOptions = { * allows for configuration after instance creation and creating of feature clients * that scope translate to a particular namespace */ -export const TranslationClient = (config?: TranslationClientOptions) => { +export const TranslationClient = ( + config?: TranslationClientOptions +): i18n & { + initialize: (options: TranslationClientOptions) => Promise<void>; + createFeatureClient: < + K extends string, + R extends FeatureTranslationResources | undefined, + >( + featureId: K + ) => TranslationFeatureClient<K, R>; + getFeatureClient: < + K extends string, + R extends FeatureTranslationResources | undefined, + >( + featureId: K + ) => TranslationFeatureClient<K, R> | undefined; + setDefaultNamespace: (ns: string) => void; + getLocaleConfig: (languageCode?: string) => any; + getSupportedLanguages: () => string[]; + select: ( + languageConfig?: { [key: string]: string } | string + ) => string | undefined; + getDeviceLanguage: () => string | undefined; + syncToDeviceLanguage: () => void; +} => { // Default global instance i18next.init(config || DefaultConfig); const _instance = i18next.cloneInstance(); @@ -266,7 +290,7 @@ export class TranslationFeatureClient< * Add resources to the translation feature client. Resources should be added when creating an AllsparkFeatureModule so * this should rarely be required. */ - public addResources = (lng: string, resources: any) => { + public addResources = (lng: string, resources: any): i18n => { return AllsparkTranslationClient.addResources( lng, this.featureID, --- packages/allspark-foundation/tsconfig.json @@ -1,16 +1,19 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "composite": true, "allowJs": true, - "rootDir": "src", + "composite": true, + "module": "Preserve", + "moduleResolution": "bundler", "outDir": "./", + "rootDir": "src", + "strict": true }, "include": [ "src/**/*.ts", "src/**/*.tsx", "src/**/*.js", - "src/**/*.json", + "src/**/*.json" ], "exclude": [ "node_modules/*",
fix: type errors
fix: type errors
1bb6932c50a1faf8071d08370312c25692f1c091
--- package-lock.json @@ -4530,9 +4530,9 @@ } }, "@walmart/ui-components": { - "version": "1.3.0-rc.11", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.11.tgz", - "integrity": "sha512-8/KgDYiuTC9JhJPBzFjem8Ocovaqe0vNMN/okkhUgBCiAimUMixQNsCChwsrE1IRfOT5+1hvSJeunZXy/fCIcw==", + "version": "1.3.0-rc.12", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.12.tgz", + "integrity": "sha512-9T1x+x9OZaVXqR24Qb6JzjaysUjHOs8npqtcZb8qDbfSfBFbQQpkXuaABsxGFnTKtWyTXWRqzyLm3Fm7kr/t3g==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -103,7 +103,7 @@ "@walmart/shelfavailability-mini-app": "0.8.3", "@walmart/taskit-mini-app": "^0.200.0-rc.1", "@walmart/time-clock-mini-app": "0.4.27", - "@walmart/ui-components": "1.3.0-rc.11", + "@walmart/ui-components": "1.3.0-rc.12", "@walmart/welcomeme-mini-app": "0.44.0", "@walmart/wfm-ui": "0.2.11", "axios-cache-adapter": "2.7.3",
bug fix SSMP-2932
bug fix SSMP-2932
4caead2f1d2b06bd1057d9b640c2de6295f0e311
--- package-lock.json @@ -65,7 +65,7 @@ "@walmart/pay-stub-miniapp": "0.9.21", "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10", - "@walmart/profile-feature-app": "0.121.0", + "@walmart/profile-feature-app": "0.122.0", "@walmart/push-to-talk-mini-app": "1.8.59", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", @@ -5694,9 +5694,9 @@ } }, "node_modules/@walmart/profile-feature-app": { - "version": "0.121.0", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.121.0.tgz", - "integrity": "sha512-xkJaRm+ynUyTVg2t5jBWpfZdUVr1S2LCl/RrZDc7RAk9A0I074krawHDag51UFtOCq/PydTlBGJi6kyir81baw==", + "version": "0.122.0", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.122.0.tgz", + "integrity": "sha512-Ik3RbRRHaJI5j8WXZr8uofWokw0PsyUt68aJgx8Ytav20qMzn7h/yFI/X9Bnr/TBF40ZVeLsSg3Qgvou2jp3Yw==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/bottom-tabs": "^6.0.0", @@ -25334,9 +25334,9 @@ "integrity": "sha512-TIzjXjT8jlsb/OrY7WPr4xUv5RsCsnNN0wwjawIwOHurrZtrFn8f/WjwkY8e6zUC3AlZ4QsHdaKqCD/pfkgGPg==" }, "@walmart/profile-feature-app": { - "version": "0.121.0", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.121.0.tgz", - "integrity": "sha512-xkJaRm+ynUyTVg2t5jBWpfZdUVr1S2LCl/RrZDc7RAk9A0I074krawHDag51UFtOCq/PydTlBGJi6kyir81baw==" + "version": "0.122.0", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.122.0.tgz", + "integrity": "sha512-Ik3RbRRHaJI5j8WXZr8uofWokw0PsyUt68aJgx8Ytav20qMzn7h/yFI/X9Bnr/TBF40ZVeLsSg3Qgvou2jp3Yw==" }, "@walmart/push-to-talk-mini-app": { "version": "1.8.59", --- package.json @@ -73,6 +73,7 @@ "@react-navigation/stack": "^6.1.0", "@sharcoux/slider": "^6.1.1", "@terrylinla/react-native-sketch-canvas": "0.8.0", + "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/allspark-graphql-client": "^0.1.0", "@walmart/allspark-home-mini-app": "0.6.14", "@walmart/allspark-neon-core": "0.1.31", @@ -103,11 +104,10 @@ "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", - "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.21", "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10", - "@walmart/profile-feature-app": "0.121.0", + "@walmart/profile-feature-app": "0.122.0", "@walmart/push-to-talk-mini-app": "1.8.59", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0",
Bump profile-feature-app to 0.122.0
Bump profile-feature-app to 0.122.0
ed5c4d1fa58c284a162d4619e26e05cc6ac53b99
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 124 + versionCode 125 versionName "1.0.11" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>124</string> + <string>125</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
0c715df66b3bb7c64860b9e3388bef60d5e1c1ca
--- src/channels/components/ChannelRow.tsx @@ -65,8 +65,9 @@ export const ChannelRow = (props: ChannelRowProps) => { const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>(); - const {channelData, channelName, lastMessage, unread} = - useChannelDetails(channelPath); + const {channelData, channelName, lastMessage, unread} = useChannelDetails( + channelPath, + ); const {data: roster} = useDailyRoster(); if (!channelData) { --- src/presence/components/PresenceIndicator.tsx @@ -41,7 +41,6 @@ export const PresenceIndicator = ({ style, textStyle, }: PresenceIndicatorProps) => { - return ( <View style={[styles.indicatorRow, style]}> {showIndicator && ( --- src/queries/schema.types.ts @@ -2,9 +2,13 @@ export type Maybe<T> = T | null; export type InputMaybe<T> = Maybe<T>; export type Exact<T extends {[key: string]: unknown}> = {[K in keyof T]: T[K]}; export type MakeOptional<T, K extends keyof T> = Omit<T, K> & - {[SubKey in K]?: Maybe<T[SubKey]>}; + { + [SubKey in K]?: Maybe<T[SubKey]>; + }; export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & - {[SubKey in K]: Maybe<T[SubKey]>}; + { + [SubKey in K]: Maybe<T[SubKey]>; + }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; --- src/channels/components/ChannelRow.tsx @@ -65,8 +65,9 @@ export const ChannelRow = (props: ChannelRowProps) => { const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>(); - const {channelData, channelName, lastMessage, unread} = - useChannelDetails(channelPath); + const {channelData, channelName, lastMessage, unread} = useChannelDetails( + channelPath, + ); const {data: roster} = useDailyRoster(); if (!channelData) { --- src/presence/components/PresenceIndicator.tsx @@ -41,7 +41,6 @@ export const PresenceIndicator = ({ style, textStyle, }: PresenceIndicatorProps) => { - return ( <View style={[styles.indicatorRow, style]}> {showIndicator && ( --- src/queries/schema.types.ts @@ -2,9 +2,13 @@ export type Maybe<T> = T | null; export type InputMaybe<T> = Maybe<T>; export type Exact<T extends {[key: string]: unknown}> = {[K in keyof T]: T[K]}; export type MakeOptional<T, K extends keyof T> = Omit<T, K> & - {[SubKey in K]?: Maybe<T[SubKey]>}; + { + [SubKey in K]?: Maybe<T[SubKey]>; + }; export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & - {[SubKey in K]: Maybe<T[SubKey]>}; + { + [SubKey in K]: Maybe<T[SubKey]>; + }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string;
lint fixes according to the different version
lint fixes according to the different version
1e324b1637a3c2d5ab3f2237d455971e2c453bd4
--- ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision Binary files a/ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision and b/ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision differ
update provision profile.
update provision profile.
a6ab9014cdddc3ebfc44301f31dacc0e90927ef2
--- __tests__/__snapshots__/AppTest.tsx.snap @@ -2,7 +2,7 @@ exports[`RootContainer renders and fires startup event 1`] = ` <Provider - env="beta" + env="dev" environmentOverrides={{}} > <RenderGuard> @@ -13,7 +13,7 @@ exports[`RootContainer renders and fires startup event 1`] = ` exports[`RootContainer renders with no linking config on undefined userid 1`] = ` <Provider - env="beta" + env="dev" environmentOverrides={{}} > <RenderGuard>
snapshot updated
snapshot updated
8ee5ea0625ed324c377a005edc1bb87483736e6a
--- packages/allspark-foundation/src/Components/Banners/AllsparkBanner.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { GestureResponderEvent, StyleSheet, View } from 'react-native'; -import Animated, { FadeIn, FadeOut } from 'react-native-reanimated'; +import Animated from 'react-native-reanimated'; import { Banner, Alert, @@ -45,7 +45,15 @@ export const AllsparkBanner = (props: { onRemove: (id: string) => void; }) => { const { banner, onRemove } = props; - const { id, type = 'banner', variant = 'info', closable, value } = banner; + const { + id, + type = 'banner', + variant = 'info', + closable, + value, + animationIn, + animationOut, + } = banner; const { t } = useAllsparkTranslation(); @@ -55,7 +63,7 @@ export const AllsparkBanner = (props: { }; return ( - <Animated.View entering={FadeIn} exiting={FadeOut}> + <Animated.View entering={animationIn} exiting={animationOut}> {type === 'banner' && ( <Banner variant={variant} --- packages/allspark-foundation/src/Components/Banners/types.ts @@ -4,11 +4,13 @@ import { StyleProp, ViewStyle, } from 'react-native'; +import Animated from 'react-native-reanimated'; import { BannerVariant, AlertVariant, LinkColorType, } from '@walmart/gtp-shared-components'; +import { ComponentProps } from 'react'; /** * Based on implemenation in gtp components @@ -24,6 +26,8 @@ export type BannerConfig = { variant?: BannerVariant; closable?: boolean; onClose?: (event: GestureResponderEvent) => void; + animationIn?: ComponentProps<typeof Animated.View>['entering']; + animationOut?: ComponentProps<typeof Animated.View>['exiting']; }; /** @@ -45,6 +49,8 @@ export type AlertConfig = { }; onClose?: (event: GestureResponderEvent) => void; style?: StyleProp<ViewStyle>; + animationIn?: ComponentProps<typeof Animated.View>['entering']; + animationOut?: ComponentProps<typeof Animated.View>['exiting']; }; /**
feat: add option to customize banner enter and exit animation, default to none
feat: add option to customize banner enter and exit animation, default to none
bea3e3236951097436b624fc30ab74440c18017f
--- README.md @@ -39,13 +39,11 @@ This is the Me@Walmart app. - [Onboarding docs](https://gecgithub01.walmart.com/ - `yarn` - `yarn build` +- `yarn prebuild` - `bundle install` ### ios setup steps -- `cd ios` -- `bundle exec pod install` -- `cd ..` - default env is dev, run: `xed ios/AllSpark.xcworkspace` - xcode will launch the project, select the AllSpark project in the project navigator. - choose "automatically manage signing" for the debug target and select "Wal-Mart Stores, Inc" Team. @@ -63,7 +61,11 @@ cd allspark-core ### Install dependencies +``` yarn +yarn build +yarn prebuild +``` ### Run the App
updating readme to include prebuild
updating readme to include prebuild
79aacfc6445445953cb28c8c72f968bdfad09e7e
--- targets/US/package.json @@ -93,7 +93,7 @@ "@walmart/calling-mini-app": "0.5.17", "@walmart/checkout-mini-app": "3.31.0", "@walmart/compass-sdk-rn": "5.19.15", - "@walmart/config-components": "4.5.3", + "@walmart/config-components": "4.5.5", "@walmart/core-services": "~6.5.2", "@walmart/core-services-allspark": "workspace:^", "@walmart/core-utils": "6.3.9", --- yarn.lock @@ -6219,9 +6219,9 @@ __metadata: languageName: node linkType: hard -"@walmart/config-components@npm:4.5.3": - version: 4.5.3 - resolution: "@walmart/config-components@npm:4.5.3" +"@walmart/config-components@npm:4.5.5": + version: 4.5.5 + resolution: "@walmart/config-components@npm:4.5.5" peerDependencies: "@react-native-firebase/app": ">=15.1.1" "@react-native-firebase/database": ">=15.1.1" @@ -6233,12 +6233,11 @@ __metadata: jwt-decode: ">=3.0" react: "*" react-native: "*" - react-native-check-app-install: ">=0.0.5" react-native-device-info: ">=10.1.0" redux: ">=4.2.0" reduxsauce: ">=1" reselect: ">=4" - checksum: 10c0/95c3e1a5f8422426f81b052f78d6b4f60ddc8dd499df096dfa07fe1b4becd6ee8b479ac23a3586eea30628e82e6f51f4cf42ea9da3319a46c720b5842ee53623 + checksum: 10c0/f3c8639e142efd020d0b97e6880c3c1b9debee1215cd96f81006039899704b700c3646cd3eb381a82984cda7c28ffd49542c147950399a1028bd4e8c1f017ba7 languageName: node linkType: hard @@ -7008,7 +7007,7 @@ __metadata: "@walmart/calling-mini-app": "npm:0.5.17" "@walmart/checkout-mini-app": "npm:3.31.0" "@walmart/compass-sdk-rn": "npm:5.19.15" - "@walmart/config-components": "npm:4.5.3" + "@walmart/config-components": "npm:4.5.5" "@walmart/core-services": "npm:~6.5.2" "@walmart/core-services-allspark": "workspace:^" "@walmart/core-utils": "npm:6.3.9"
remove react native check app install
remove react native check app install
47537b3abca4ebcb8e1766a3c1347a068eba6101
--- package.json @@ -44,7 +44,7 @@ "@walmart/functional-components": "^1.0.21", "@walmart/gtp-shared-components": "^0.2.2", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.0.19", + "@walmart/push-to-talk-mini-app": "0.0.20", "@walmart/react-native-logger": "^1.14.0", "@walmart/react-native-shared-navigation": "^0.2.0", "@walmart/redux-store": "^1.0.4",
Update package.json
Update package.json
be37ed23132a34f1cd61dcdd159405159f685cb0
--- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/types.ts @@ -44,6 +44,16 @@ export interface TeamSelectionListItemProps { toggleSelection: () => void; } +export interface RenderTeamSelectionListItemsProps { + teams: Team[]; + areaTeamsLength?: number; + isLastListItem: boolean; + isPrimaryArea: boolean; + selectedTeams: Team[]; + primaryTeam: Team; + handleSelectSingle: (teamName: Team) => void; +} + export type UserType = 'teamLead' | 'salariedAssociate'; export interface TeamSelectionListProps { areas: Area[];
Adding types for RenderTeamSelectionListItemProps
Adding types for RenderTeamSelectionListItemProps
d93a62ed86cdebb4bd7411ddee22735e2df3ca44
--- plugins/withRealm.ts @@ -1,11 +1,5 @@ -import { - ConfigPlugin, - withAppBuildGradle, - withDangerousMod, -} from "@expo/config-plugins"; +import { ConfigPlugin, withAppBuildGradle } from "@expo/config-plugins"; import { mergeContents } from "@expo/config-plugins/build/utils/generateCode"; -import { promises } from "fs"; -import path from "path"; import withGradleDependencies from "./withGradleDependencies";
chore: remove unused imports
chore: remove unused imports
c51dec77e87edb83fb238e57340f38fc79adf6e1
--- src/common/constants.ts @@ -4,6 +4,7 @@ export const LOCAL_STORAGE_KEY_PREFIX = 'roster-'; export const ASC_SORT = -1; export const DESC_SORT = 1; export const NO_SORT = 0; +export const supplyChainDomain = 'supplyChain'; export const payTypes = Object.freeze({ SALARIED: 'S', --- src/screens/AllTeamsScreen/SupplyChainAllTeamsScreen.tsx @@ -1,6 +1,6 @@ /* eslint-disable react/no-unstable-nested-components */ import React, {useState, useRef, useCallback} from 'react'; -import {translationClient, logger} from '../../common'; +import {translationClient, logger, supplyChainDomain} from '../../common'; import {View, SectionList, RefreshControl} from 'react-native'; import { TOTAL_STORE_TEAM_ID, @@ -78,7 +78,7 @@ export const SupplyChainAllTeamsScreen = () => { <> <TeamListItem teamId='Totalsite' - domain='supplyChain' + domain={supplyChainDomain} iconType='navArrow' isLastListItem subText={ @@ -164,7 +164,7 @@ export const SupplyChainAllTeamsScreen = () => { <TeamListItem key={`team-${item.teamName}`} teamName={item.teamName} - domain='supplyChain' + domain={supplyChainDomain} teamId={item.teamId} isLastListItem={index === section.data.length - 1} subText={
move constant to constand file
move constant to constand file
fe68383f1161fb15637cf1386de0daade5b2bc12
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/SideMenuContentTest.tsx.snap @@ -18,7 +18,7 @@ exports[`SideMenuContent matches snapshot for undefined user info, and can imper developersText="impersonation.developers" deviceType="PERSONAL" displayName="Sam Walton" - displayPttAlert={3} + displayPttAlert={0} displayTaskItAlert={false} displayTimeClock={true} enableDevelopersOption={true} @@ -100,7 +100,7 @@ exports[`SideMenuContent matches snapshot with not user/clockstatus data 1`] = ` developersText="impersonation.developers" deviceType="PERSONAL" displayName="Sam Walton" - displayPttAlert={3} + displayPttAlert={0} displayTaskItAlert={false} displayTimeClock={true} enableDevelopersOption={false} @@ -182,7 +182,7 @@ exports[`SideMenuContent matches snapshot with user/clockstatus data 1`] = ` developersText="impersonation.developers" deviceType="PERSONAL" displayName="Sam Walton" - displayPttAlert={3} + displayPttAlert={0} displayTaskItAlert={true} displayTimeClock={true} enableDevelopersOption={false}
snapshot update
snapshot update (cherry picked from commit 20f62655caaa1c58e2c1f099b337d52e6cbcd6d2)
2681e7979864690862b6c0b161906bb7f4837fc4
--- packages/celebration-mini-app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.24.2](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.24.1...@walmart/celebration-mini-app@1.24.2) (2025-11-10) + +### Bug Fixes + +- birthdays tab list padding ([e4e0f89](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/e4e0f898f4ac1725e3d15c73f7f719298d4d9e52)) + ## [1.24.1](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.24.0...@walmart/celebration-mini-app@1.24.1) (2025-11-10) **Note:** Version bump only for package @walmart/celebration-mini-app --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.24.1", + "version": "1.24.2", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.24.2
6f724a468d6b83fa33a85a4f98dfae7a3f6472ea
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -4,8 +4,8 @@ import { ComponentContainer, } from '@walmart/allspark-foundation/Components'; import { useDispatch } from 'react-redux'; -import { validateWidgets } from './utils'; -import { LayoutConfigType, ValidatedTeamWidgetMapping } from './types'; +import { createDefaultWidgetsConfig, validateWidgets } from './utils'; +import { ValidatedTeamWidgetMapping } from './types'; import { AllsparkFeatureModule } from '@walmart/allspark-foundation/Feature'; import { enUS, esMX } from '../../translation'; import { FEATURE_ID, FEATURE_NAME } from '../../constant'; @@ -58,13 +58,15 @@ export class AllsparkHubContainer { name: string, ccmNamespace: string, screeName: string, - defaultLayout: LayoutConfigType + defaultWidgets: string[] ): this => { const dispatch = useDispatch(); this.containerName = name; + const defaultWidgetConfig = createDefaultWidgetsConfig(defaultWidgets); dispatch(ManagerExperienceCreators.setHubScreenName(screeName)); + dispatch(ManagerExperienceCreators.setDefaultWidgets(defaultWidgets)); this.AllsparkWidgetContainer = AllsparkComponentContainers.create(name); - this.widgetCCMConfigs = useHubConfig(ccmNamespace, defaultLayout); + this.widgetCCMConfigs = useHubConfig(ccmNamespace, defaultWidgetConfig); return this; }; --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -49,6 +49,9 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const selectedTeamIds = useSelector( ManagerExperienceSelectors.getSelectedTeamData ); + const defaultWidgets = useSelector( + ManagerExperienceSelectors.getDefaultWidgets + ); const logger = LoggerService.getContainerInstance(); const loggerRef = useRef(logger); /**Refresh props */ @@ -228,11 +231,15 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { loggerRef.current.info('Adding widget to layoutConfig'); return [...layoutConfigList, layoutConfig]; }) - : createDefaultWidgetPlaceholder(teamState.teamLabel, widgets); + : createDefaultWidgetPlaceholder( + teamState.teamLabel, + widgets, + defaultWidgets + ); loggerRef.current.info('Setting allowedWidgetsList'); setAllowedWidgetsList(allowedWidgets); - }, [teamState, widgets]); + }, [defaultWidgets, teamState, widgets]); /** Bottom sheet update */ const routeParams: any = useRoute()?.params; --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/types.ts @@ -22,12 +22,10 @@ export interface ValidatedTeamWidgetMapping { export type LayoutConfigType = { [key: string]: { teamName: string; - widgets: [ - { - name: string; - rank: number; - enable: boolean; - }, - ]; + widgets: { + name: string; + rank: number; + enable: boolean; + }[]; }; }; --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/utils.ts @@ -38,15 +38,28 @@ export const validateWidgets = (data: { return validatedData; }; +export const createDefaultWidgetsConfig = (defaultWidgets: string[]) => { + const defaultWidgetConfig = defaultWidgets.map((widget, index) => { + return { + name: widget, + rank: index + 1, + enable: true, + }; + }); + + return { default: { teamName: 'default', widgets: defaultWidgetConfig } }; +}; + export const createDefaultWidgetPlaceholder = ( teamId: string, - widgets: ValidatedTeamWidgetMapping + widgets: ValidatedTeamWidgetMapping, + defaultWidgets: string[] ) => { const ccmWidgets = cloneDeep(widgets); const widgetData = { [teamId]: { teamName: Images[teamId]?.teamName || 'default', - widgets: ['roster'], + widgets: defaultWidgets, }, }; const updatedWidgets = { ...ccmWidgets, ...widgetData }; --- packages/allspark-foundation-hub/src/HubFeature/Redux/reducer.ts @@ -7,6 +7,7 @@ export const INITIAL_STATE: ManagerExperienceState = { selectedTeamPreference: '', selectedTeamData: [], hubScreenName: '', + defaultWidgets: [], userIsAlreadyOnboarded: false, userOnboardingComplete: false, userOnboardingInProgress: false, @@ -33,6 +34,9 @@ export const managerExperienceSlice = createSlice({ setHubScreenName: (state, action: PayloadAction<string>) => { state.hubScreenName = action.payload; }, + setDefaultWidgets: (state, action: PayloadAction<string[]>) => { + state.defaultWidgets = action.payload; + }, startUserOnboarding: (state) => { state.userOnboardingInProgress = true; state.userOnboardingComplete = false; --- packages/allspark-foundation-hub/src/HubFeature/Redux/types.ts @@ -2,6 +2,7 @@ export interface ManagerExperienceState { selectedTeamPreference: string; selectedTeamData: string[]; hubScreenName: string; + defaultWidgets: string[]; userIsAlreadyOnboarded: boolean; userOnboardingComplete: boolean; userOnboardingInProgress: boolean;
feat(ui): update default layout config
feat(ui): update default layout config
4a279e939fd203362db1046d6cec3ce50ed3df17
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/TeamShiftSwitcher/TeamShiftSwitcher.tsx @@ -8,6 +8,7 @@ import { teamShiftSwitcherStyles as styles } from './style'; import { TeamShiftSwitcherProps } from './types'; import { useAllsparkTranslation } from '@walmart/allspark-foundation'; import { FEATURE_ID } from '../../constant'; +import { generateShiftText } from '../../Utils/teamShiftSwitcher'; export const TeamShiftSwitcher = ({ allSavedTeams, @@ -21,10 +22,9 @@ export const TeamShiftSwitcher = ({ const TeamImage = useAllsparkImage(); const { t } = useAllsparkTranslation(FEATURE_ID); const imageInfo = Images[teamId] ?? Images['0000000']; - const shiftText = - selectedShifts.length === numTotalShifts - ? t('teamShiftSwitcher.allShifts') - : selectedShifts.join(', '); + const shiftText = selectedShifts + ? generateShiftText(selectedShifts, numTotalShifts, t) + : undefined; const savedTeamsText = allSavedTeams ? allSavedTeams.join(', ') : ''; return isLoading ? ( <TeamSwitcherLoading /> @@ -40,12 +40,16 @@ export const TeamShiftSwitcher = ({ <Body color='white' weight='700'> {teamName} </Body> - <View style={styles.spacer} /> - <Body color='white'>|</Body> - <View style={styles.spacer} /> - <Body color='white' weight='700'> - {shiftText} - </Body> + {shiftText && ( + <> + <View style={styles.spacer} /> + <Body color='white'>|</Body> + <View style={styles.spacer} /> + <Body color='white' weight='700'> + {shiftText} + </Body> + </> + )} </Body> {allSavedTeams && ( <Body --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/TeamShiftSwitcher/types.ts @@ -4,6 +4,6 @@ export interface TeamShiftSwitcherProps { numTotalShifts: number; teamName: string; teamId: string; - selectedShifts: string[]; + selectedShifts?: string[]; onPress: () => void; } --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Utils/teamShiftSwitcher.ts @@ -0,0 +1,16 @@ +import { TFunction } from 'i18next'; + +export const generateShiftText = ( + selectedShifts: string[], + numTotalShifts: number, + t: TFunction +) => { + if (selectedShifts.length === numTotalShifts) { + return t('teamShiftSwitcher.allShifts'); + } + const shiftKeyword = + selectedShifts.length === 1 + ? t('teamShiftSwitcher.shift') + : t('teamShiftSwitcher.shifts'); + return `${shiftKeyword} ${selectedShifts?.join(', ')}`; +}; --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts @@ -4,14 +4,18 @@ export const enUS = { }, teamShiftSwitcher: { allShifts: 'All shifts', + shift: 'Shift', + shifts: 'Shifts', }, }; -export const esMX = { +export const esMX: typeof enUS = { searchTeamInput: { placeHolder: 'Buscar un equipo', }, teamShiftSwitcher: { allShifts: 'Todos los turnos', + shift: 'Cambio', + shifts: 'Cambios', }, };
feat: updates selected shift type and util
feat: updates selected shift type and util
bae02fa8c5f9ef8e2082ac261612ba3cfe66416a
--- package-lock.json @@ -51,7 +51,7 @@ "@walmart/avp-shared-library": "0.2.12", "@walmart/backroom-mini-app": "1.0.6", "@walmart/calling-mini-app": "0.1.24", - "@walmart/checkout-mini-app": "3.9.310", + "@walmart/checkout-mini-app": "3.10.0", "@walmart/compass-sdk-rn": "5.19.3", "@walmart/config-components": "4.3.2", "@walmart/copilot-mini-app": "3.70.5", @@ -11109,9 +11109,9 @@ } }, "node_modules/@walmart/checkout-mini-app": { - "version": "3.9.310", - "resolved": "https://npme.walmart.com/@walmart/checkout-mini-app/-/checkout-mini-app-3.9.310.tgz", - "integrity": "sha512-0OlBjReggE8Uv14oU58i4mGEB/jCpEErECJfwtnqu8krahZfU0LIN9EnjD6te66nTyC+b1HlOk3/h/Mj4RR6aQ==", + "version": "3.10.0", + "resolved": "https://npme.walmart.com/@walmart/checkout-mini-app/-/checkout-mini-app-3.10.0.tgz", + "integrity": "sha512-vW1GTy87Wv30aI+JfjTnhf7BJQBtxadEtg3PivLCaO2ZKZTuZzyLW1BfqbWlTNGNoSrxNAxXo211FMSjsRJXtg==", "dependencies": { "@stomp/stompjs": "^7.0.0", "cpc-input": "^1.7.28", --- package.json @@ -92,7 +92,7 @@ "@walmart/avp-shared-library": "0.2.12", "@walmart/backroom-mini-app": "1.0.6", "@walmart/calling-mini-app": "0.1.24", - "@walmart/checkout-mini-app": "3.9.310", + "@walmart/checkout-mini-app": "3.10.0", "@walmart/compass-sdk-rn": "5.19.3", "@walmart/config-components": "4.3.2", "@walmart/copilot-mini-app": "3.70.5",
Checkout drop21 PR against me@
Checkout drop21 PR against me@
8bc494ecfbf92954fde5f70f55eb6c1a1c90cd99
--- package-lock.json @@ -3094,9 +3094,9 @@ "integrity": "sha512-6mn+6g+DjmNh3C26iI+gVE0XZQpnUVIIJJIKr+UX6eYhBmjSxI89C4/8VEr3+slxjAxKdQehgkqYnj5tuJHgxw==" }, "@walmart/exception-mini-app": { - "version": "0.17.0", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.17.0.tgz", - "integrity": "sha512-gbZPAZa4+Wzv+dSGUv/u16rzBJPtHY6Yo+LCdnumv1vHQAZpEiBu6cV3L+mCRUzAaxZyvVyrB5gTBebQvg3xSg==" + "version": "0.20.0", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.20.0.tgz", + "integrity": "sha512-mrrLcdbiDVDSpJkZF8UD3IyBS5McRGxhOBvJkPww2fe6Ha2jVH3oqKDn9Qlf+9t8xNY4UJLwlhZkkXERB+Azfw==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.0.50", @@ -3146,9 +3146,9 @@ } }, "@walmart/manager-approvals-miniapp": { - "version": "0.0.25", - "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.25.tgz", - "integrity": "sha512-xr7ZTzOLyVf+t7fVLUHekm2OJT4tPbe0TGhDkE9uMsUu+Kde/PclBFqddUp36CmM+9Cn4y9o8CqEDcvctA6Ylw==" + "version": "0.0.32", + "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.32.tgz", + "integrity": "sha512-XSCO6S7sWn9s3IUiBnthIm7hf9YDXeFGExQcDnTJkRsrhENYWMO+fCUNpVOx7EX1R1aH65kQMoE1vLFoHdE35Q==" }, "@walmart/moment-walmart": { "version": "1.0.4", --- package.json @@ -69,7 +69,7 @@ "@walmart/ask-sam-mini-app": "0.29.10", "@walmart/config-components": "^1.0.26", "@walmart/counts-component-miniapp": "0.0.11", - "@walmart/exception-mini-app": "0.17.0", + "@walmart/exception-mini-app": "0.20.0", "@walmart/feedback-all-spark-miniapp": "0.0.50", "@walmart/functional-components": "1.0.27", "@walmart/gtp-shared-components": "^1.1.5",
bump Exception mini app version
bump Exception mini app version
afe161e4bf88bcf55148b962d1859d2a6fae89a2
--- package.json @@ -73,6 +73,7 @@ "@react-navigation/stack": "^6.1.0", "@sharcoux/slider": "^6.1.1", "@terrylinla/react-native-sketch-canvas": "0.8.0", + "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/allspark-graphql-client": "^0.1.0", "@walmart/allspark-home-mini-app": "0.6.14", "@walmart/allspark-neon-core": "0.1.31", @@ -95,15 +96,14 @@ "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "^2.0.0", "@walmart/impersonation-mini-app": "1.10.0", - "@walmart/ims-print-services-ui": "1.2.0", + "@walmart/ims-print-services-ui": "1.2.2", "@walmart/inbox-mini-app": "0.81.3", - "@walmart/iteminfo-mini-app": "5.3.2", + "@walmart/iteminfo-mini-app": "5.3.3", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", - "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.21", "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10",
updated iteminfo and print version
updated iteminfo and print version
ff29c3a8c5e7ba9a9d40a3bd751d1ffaf5656083
--- package.json @@ -161,7 +161,7 @@ "@walmart/sidekick-mini-app": "4.231.0", "@walmart/store-feature-orders": "1.34.7", "@walmart/talent-preboarding-mini-app": "1.0.48", - "@walmart/taskit-mini-app": "5.42.33", + "@walmart/taskit-mini-app": "5.42.35", "@walmart/time-clock-mini-app": "3.19.6", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.27.1", --- yarn.lock @@ -8402,7 +8402,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.231.0" "@walmart/store-feature-orders": "npm:1.34.7" "@walmart/talent-preboarding-mini-app": "npm:1.0.48" - "@walmart/taskit-mini-app": "npm:5.42.33" + "@walmart/taskit-mini-app": "npm:5.42.35" "@walmart/time-clock-mini-app": "npm:3.19.6" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.27.1" @@ -9306,12 +9306,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.42.33": - version: 5.42.33 - resolution: "@walmart/taskit-mini-app@npm:5.42.33::__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.42.33.tgz" +"@walmart/taskit-mini-app@npm:5.42.35": + version: 5.42.35 + resolution: "@walmart/taskit-mini-app@npm:5.42.35::__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.42.35.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/d6936a1decb42917e5e1b7a25fd8668ffb6b08924b51defa591fde53345018a6af0f1a61a5cb0c87b1fd9862361cc24dc0cca16c5ea8767a30cc6cacf6b86906 + checksum: 10c0/69cb58ec5777748df4bbfffdac746507fa7f41b7eddf3cfbdedb68b41cb1080f73b3c06137554404722a06b7cca2442c590fa9942812557c20d1ec5d7668cd55 languageName: node linkType: hard
Fixing Few safety bug fix on (#4864)
Fixing Few safety bug fix on (#4864)
139f7232ed34e2b55c83a9ba74ddae3ad6a7d673
--- packages/allspark-foundation/__tests__/Components/ComponentContainers.test.tsx @@ -80,12 +80,12 @@ describe('ComponentContainer', () => { expect(container.hasComponent('mockComponent2')).toBe(true); }); - test('register method adds a component (deprecated)', () => { + test('register method adds a component', () => { container.register('mockComponent', MockComponent); expect(container.hasComponent('mockComponent')).toBe(true); }); - test('multiRegister method adds multiple components (deprecated)', () => { + test('multiRegister method adds multiple components', () => { container.multiRegister([ ['mockComponent1', MockComponent], ['mockComponent2', MockComponent],
code cleanup
code cleanup
50182e52539bd26a9afb934fcddc8f4d2b263a05
--- core/src/navigation/index.tsx @@ -22,14 +22,6 @@ export const RootStackNavigation = (props: { const isAppAccessible = useSelector(getIsAppAccessible); - /** - * Get User will check for previously logged in user and set - * their details in the auth state. - */ - useEffect(() => { - AuthService.getUser(); - }, []); - return ( <> <RootStack.Navigator --- core/src/startup/AuthFlow.ts @@ -3,8 +3,15 @@ import {call, cancel, fork, take} from 'redux-saga/effects'; import {FirebaseRemoteConfigTypes} from '@react-native-firebase/remote-config'; import WmConfig from 'react-native-wm-config'; -import {IAuthActions, AuthActionTypes} from '@walmart/allspark-foundation/Auth'; +import { + IAuthActions, + AuthActionTypes, + AuthService, +} from '@walmart/allspark-foundation/Auth'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; +import {noop} from '@walmart/allspark-utils'; +import {LoggerService} from '@walmart/allspark-foundation/Logger'; +import {TelemetryService} from '@walmart/allspark-foundation/Telemetry'; /** * Auth errors that shouldn't redirect to the Login Error screen where errors can be manually reported. @@ -28,6 +35,12 @@ export const isSilentSignInError = (error?: Error) => ); export function* authFlow() { + /** + * Get User will check for previously logged in user and set + * their details in the auth state. + */ + AuthService.getUser(); + while (true) { const signInAction: | IAuthActions['SIGN_IN_ERROR'] @@ -37,6 +50,23 @@ export function* authFlow() { ]); if (signInAction.type === AuthActionTypes.SIGN_IN_ERROR) { + // Initial sign in could have invalid grant error, at which point nothing is handling signout, so do it here + if (signInAction.payload.code === 'invalid_grant') { + LoggerService.getFeatureInstance('auth')?.info( + 'AUTH: SIGN_OUT_INITIATED', + {source: 'auth-flow'}, + ); + TelemetryService.getFeatureInstance('auth')?.logEvent( + 'sign_out_init_on_invalid_grant', + { + // @ts-ignore - category missing from type + category: signInAction.category?.toLowerCase() || 'sign_in_error', + source: 'auth-flow', + }, + ); + AuthService.signOut().catch(noop); + } + const errorScreenEnabled: FirebaseRemoteConfigTypes.ConfigValue = yield call(WmConfig.getValue, 'core', 'ssoFeedbackWidgetEnabled'); --- packages/me-at-walmart-container/src/services/auth.ts @@ -1,8 +1,6 @@ import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; import { - AuthActionCreators, AuthSelectors, - AuthService, AuthServiceCreator, } from '@walmart/allspark-foundation/Auth'; import { @@ -83,21 +81,11 @@ export const onAuthError = async (event: AuthErrorEvent) => { AuthLogger.info('AUTH: SIGN_OUT_INITIATED'); AuthTelemetry.logEvent('sign_out_init_on_invalid_grant', { category: event.category.toLowerCase(), + source: 'event-listener', }); AllsparkReduxStore.dispatch(MeAtWalmartAuthActions.SIGN_OUT_REQUEST()); } break; - // If failed to get the current user because of invalid grant, sign the user out immediately. - case 'GET_USER_ERROR': - if (event.code === 'invalid_grant') { - AuthLogger.info('AUTH: SIGN_OUT_INITIATED'); - AuthTelemetry.logEvent('sign_out_init_on_invalid_grant', { - category: event.category.toLowerCase(), - }); - AuthService.signOut(); - AllsparkReduxStore.dispatch(AuthActionCreators.SIGN_OUT()); - } - break; // If failed to refresh token with user logged in, request a sign out case 'TOKEN_REFRESH_ERROR': const authData = AllsparkReduxStore.select(AuthSelectors.getData);
fix: invalid grant auth error handling
fix: invalid grant auth error handling
f028022f0b685d1904ee334ca2ba27d23148524c
--- package.json @@ -53,8 +53,6 @@ "eslint-plugin-jest": "27.6.0", "eslint-plugin-prettier": "5.1.3", "eslint-plugin-react-native": "4.1.0", - "expo": "~52.0.46", - "expo-image": "~2.3.2", "graphql": "^16.8.1", "graphql-tag": "*", "husky": "^9.0.11", --- packages/allspark-foundation/package.json @@ -127,8 +127,8 @@ "@walmart/react-native-shared-navigation": ">=6.3", "@walmart/react-native-sumo-sdk": "^2.7.0", "@walmart/redux-store": ">=6.3", - "expo": "*", - "expo-image": "*", + "expo": ">=52", + "expo-image": ">=2", "react": "*", "react-native": "*", "react-native-gesture-handler": "2.x", --- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx @@ -622,14 +622,17 @@ export class AllsparkFeatureModule< return; } - const imageNames = this._resolveCapability(this._prefetchedImages); - const imageUrls = imageNames?.map((name) => CDN_BASE_URL + name) || []; - + const imagePaths = this._resolveCapability(this._prefetchedImages); + const imageUrls = imagePaths?.map((imagePath) => { + // Check https prefix to ignore prepending of CDN base url and make call as is. + return imagePath.startsWith('https://') ? imagePath : CDN_BASE_URL + imagePath; + }) || []; + if (!imageUrls.length) { return; } - this._resourceMap.prefetchedImages = imageNames; + this._resourceMap.prefetchedImages = imagePaths; this._connectedMap.prefetchedImages = true; try { --- packages/allspark-foundation/src/Feature/types.ts @@ -138,7 +138,9 @@ export type AllsparkModuleConfig = { translations?: FeatureCapability<IAllsparkTranslations>; /** - * @description Image names to be prefetched from `allspark-images` CDN. + * @description Image names or urls to be prefetched. If only the name is provided, + * `allspark-images` CDN base URL will be prepended to the name. + * Example: `metrics/cone-error-3212fb53c5.png` */ prefetchedImages?: string[]; }; --- yarn.lock @@ -9603,8 +9603,8 @@ __metadata: "@walmart/react-native-shared-navigation": ">=6.3" "@walmart/react-native-sumo-sdk": ^2.7.0 "@walmart/redux-store": ">=6.3" - expo: "*" - expo-image: "*" + expo: ">=52" + expo-image: ">=2" react: "*" react-native: "*" react-native-gesture-handler: 2.x @@ -10403,8 +10403,6 @@ __metadata: eslint-plugin-jest: "npm:27.6.0" eslint-plugin-prettier: "npm:5.1.3" eslint-plugin-react-native: "npm:4.1.0" - expo: "npm:~52.0.46" - expo-image: "npm:~2.3.2" graphql: "npm:^16.8.1" graphql-tag: "npm:*" husky: "npm:^9.0.11"
fix(prefetch-images): Fixed PR comments
fix(prefetch-images): Fixed PR comments
9a544edaedb295bc11edcc6e29514b8bc8974d54
--- graphql.yml @@ -83,11 +83,11 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociateById.graphql' tags: - 'v1' - - name: 'getAssociatePreferences' - hash: '38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql' - tags: - - 'v1' + # - name: "getAssociatePreferences" + # hash: "38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql" + # tags: + # - "v1" - name: 'getDailyRosterHome' hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql' @@ -103,18 +103,18 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' tags: - 'v1' - - name: 'GetTeamsByStore' - hash: 'e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql' - tags: - - 'v1' + # - name: "GetTeamsByStore" + # hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql" + # tags: + # - "v1" - name: 'upsertAssociatePreference' hash: '972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036' queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql' tags: - 'v1' - - name: 'upsertManagerExperiencePreference' - hash: 'bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql' - tags: - - 'v1' + # - name: "upsertManagerExperiencePreference" + # hash: "bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql" + # tags: + # - "v1"
fix: remove unwanted queries in graphql
fix: remove unwanted queries in graphql
8225f0c7392969e7830ad58795a6e77370aabd06
--- packages/allspark-foundation/src/Feature/types.ts @@ -239,7 +239,6 @@ export type FeatureEventTypeMap = { * description Called when the feature capability is disconnected */ onDisconnect: DisconnectCapabilities | undefined; - /** * @description Called when the feature capability is disconnected */
Merge changes
Merge changes
88acd23a345e4af432d9fa7c8af98c3753169caa
--- core/__tests__/__mocks__/@walmart/metrics-mini-app.js @@ -1,6 +1,6 @@ module.exports = { __esModule: true, default: { - buildScreensByTag: () => 'MetricsScreens', + buildAllScreens: () => 'MetricsScreens', }, }; --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -5,7 +5,6 @@ import {TransitionPresets, createStackNavigator} from '@react-navigation/stack'; import {ContainerActionCreators} from '@walmart/allspark-foundation/Container'; import {ModalTransitionOptions} from '@walmart/allspark-foundation/Navigation'; import {AllsparkTranslationClient} from '@walmart/allspark-foundation/Translation'; -import {ScreenTags} from '@walmart/me-at-walmart-common'; import {Header} from '@walmart/ui-components'; import {AmpNav} from '@walmart/amp-mini-app/dist/components/AmpNav'; @@ -563,7 +562,7 @@ export const MainStackNav = () => { Navigator: MainStack as any, })} - {MetricsFeature.buildScreensByTag(ScreenTags.AssociateStack, { + {MetricsFeature.buildAllScreens({ Navigator: MainStack as any, })} --- core/src/navigation/USHallway/AssociateHallwayNav/Tabs/HomeStackNav.tsx @@ -5,7 +5,6 @@ import {createStackNavigator} from '@react-navigation/stack'; import {UserSelectors} from '@walmart/allspark-foundation/User'; -import {ScreenTags} from '@walmart/me-at-walmart-common'; import {Spinner} from '@walmart/gtp-shared-components'; import {Header} from '@walmart/ui-components'; import InboxScreen from '@walmart/inbox-mini-app'; @@ -49,7 +48,7 @@ export const HomeStackNav = (_: MainTabsScreenProps<'home'>) => { Navigator: HomeStack as any, })} - {MetricsFeature.buildScreensByTag(ScreenTags.HomeTab, { + {MetricsFeature.buildAllScreens({ Navigator: HomeStack as any, })}
using buildAllScreens instead of buildScreensByTag on metricsFeature screens
using buildAllScreens instead of buildScreensByTag on metricsFeature screens
77eb4b81a0b9c5620342695fc80c6bc3401608fc
--- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -124,7 +124,7 @@ export const SupplyChainRosterDetailScreen = ({ teamLabel: string[]; teamIds: string[]; }>({ - shiftIds: [loggedInUserShift], + shiftIds: [loggedInUserShift as string], teamLabel: [defaultTeamLabel as string], teamIds: selectedTeamIds?.length ? selectedTeamIds : defaultTeamIds, });
fix(ui): update roster and wmconnect mini app version smdv-9999
fix(ui): update roster and wmconnect mini app version smdv-9999
f561c5a1e03dec96fb7bc4cc4d7d89cb43e47a7e
--- __tests__/screens/AllTeamsScreen.test.tsx @@ -6,7 +6,6 @@ import {SupplyChainAllTeamsScreen} from '../../src/screens/AllTeamsScreen/Supply import {SiteSelectors} from '@walmart/allspark-foundation/Site'; import * as hooks from '../../src/hooks'; import {useSelector} from 'react-redux'; -import {act} from 'react-test-renderer'; import {waitFor} from '@testing-library/react-native'; // Mock the problematic virtualized list component
fix(bug): add tests for SupplyChainAllTeamsScreen
fix(bug): add tests for SupplyChainAllTeamsScreen
897d8f618fdb7e07035ef05fd13e34f0fc3a08c9
--- packages/allspark-utils/src/addProxy.ts @@ -31,11 +31,3 @@ export const addProxyMethod = <T extends Object>(value: T) => { return new Proxy(newValue, proxyHandler); }; - -export class Proxyable { - constructor() {} - - public proxy<T extends typeof this>(instance: T) { - return addProxyMethod<T>(instance); - } -} --- packages/allspark-utils/src/index.ts @@ -1,4 +1,4 @@ -export { addProxyMethod, Proxyable } from './addProxy'; +export { addProxyMethod } from './addProxy'; export { CacheValue } from './cacheValue'; export type { CacheValueConfig } from './cacheValue'; export { createFallbackInstance } from './createFallback';
fix: remove util
fix: remove util
32d19c0dc085ac47d5d4738eb56d1eef2014e0df
--- .looper.multibranch.yml @@ -497,6 +497,7 @@ flows: - (name looper prebuild clean) ./BuildSupport/looper-clean.sh - (name looper credentials) ./BuildSupport/looper-credentials.sh - call: cocoapods-install + - (name prepare xcode) bundle exec fastlane set_xcodeversion version:$TARGET_XCODE cocoapods-install: - dir(ios): @@ -514,7 +515,7 @@ flows: fi exit 0 - (name cocoapods setup) ./BuildSupport/install-cocoapods.sh - - (name prepare xcode) bundle exec fastlane set_xcodeversion version:$TARGET_XCODE +# - (name prepare xcode) bundle exec fastlane set_xcodeversion version:$TARGET_XCODE # - (name prepare xcode) bundle exec fastlane run xcversion version:"13.0" # performs the ios build for the given env
update hallway2
update hallway2
8d2308709fcd31f2c8e5693d9e06feb70b4f8665
--- targets/US/package.json @@ -148,7 +148,7 @@ "@walmart/store-feature-orders": "1.27.1", "@walmart/taskit-mini-app": "4.17.17", "@walmart/time-clock-mini-app": "2.419.0", - "@walmart/topstock-mini-app": "1.16.25", + "@walmart/topstock-mini-app": "1.17.8", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.96.0", --- yarn.lock @@ -7055,7 +7055,7 @@ __metadata: "@walmart/store-feature-orders": "npm:1.27.1" "@walmart/taskit-mini-app": "npm:4.17.17" "@walmart/time-clock-mini-app": "npm:2.419.0" - "@walmart/topstock-mini-app": "npm:1.16.25" + "@walmart/topstock-mini-app": "npm:1.17.8" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.96.0" @@ -8037,9 +8037,9 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.16.25": - version: 1.16.25 - resolution: "@walmart/topstock-mini-app@npm:1.16.25" +"@walmart/topstock-mini-app@npm:1.17.8": + version: 1.17.8 + resolution: "@walmart/topstock-mini-app@npm:1.17.8" peerDependencies: "@react-native-firebase/app": ^15.1.1 "@react-native-firebase/crashlytics": ^15.1.1 @@ -8056,7 +8056,7 @@ __metadata: react-native-haptic-feedback: ^1.13.0 react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/e214b9e8fc472d3099d2da6910f87cd0d6a486370832535150c8b7aaec1fd3e862b8cc9e96512c67527bfed1a8787c35c5d86ada1d5a950d2a13405b33d73bcc + checksum: 10c0/512620ef5a43f471a4eadbd443454c0f9869cdad5ff1546408765bf50912496a3e992516f3dbfaed9cb187c5146df135eb289a4e08723de9823b19885c26ce49 languageName: node linkType: hard
updated topstock version to 1.17.8
updated topstock version to 1.17.8
f8ebf14050bf7c72cefed958e60815d491a5e692
--- packages/allspark-foundation/src/Translation/client.ts @@ -185,7 +185,7 @@ export const TranslationClient = (config?: TranslationClientOptions) => { const syncToDeviceLanguage = async () => { const originalDeviceLanguage = await getDeviceLanguage(); const parsedDeviceLanguage = originalDeviceLanguage.replace('_', '-'); - const supportedLanguages = _instance?.options?.supportedLanguages || []; + const supportedLanguages = _instance?.options?.supportedLngs || []; const allowedDeviceLanguage = supportedLanguages.includes(parsedDeviceLanguage) ? parsedDeviceLanguage : 'en-US';
Modification to the syncToDeviceLanguage
Modification to the syncToDeviceLanguage
4fbc650db66b56acd0716b1baff85b52bcfb2bc6
--- scripts/mini-app-scan/package-deprecation/mini-app-check/analyzer.ts @@ -256,6 +256,10 @@ export async function handleAnalysisResults(allFindings: DeprecationFinding[], s targetBranch: prContext.targetBranch } }); + } else { + // Only cleanup when there are NO findings at all (neither deprecated nor scheduled) + console.log('🗑️ No findings to report, cleaning up any existing comments...'); + await cleanupPRComment(repoInfo, prContext.prNumber, githubToken, '<!-- mini-app-package-deprecation-check -->'); } } @@ -266,11 +270,10 @@ export async function handleAnalysisResults(allFindings: DeprecationFinding[], s if (summary.hasError) { console.log('🚨 Deprecated libraries found - build should fail'); + } else if (allFindings.length === 0) { + console.log('✅ No deprecated or scheduled libraries found'); } else { - console.log('✅ No deprecated libraries found'); - if(prContext && repoInfo && githubToken) { - await cleanupPRComment(repoInfo, prContext.prNumber, githubToken, '<!-- mini-app-package-deprecation-check -->'); - } + console.log('✅ No deprecated libraries found (but some scheduled deprecations exist)'); } }
fix(comments): adjust comments
fix(comments): adjust comments
323366c2f8d8a0efd9ab5f44c731c1490bd4319e
--- packages/allspark-foundation/package.json @@ -40,7 +40,7 @@ "allspark-generate-graphql": "./cli/generate.js", "allspark-link": "./cli/link.js", "allspark-setup": "./cli/setup.js", - "certify-booted-sim": "./cli/certify-booted-sim", + "certify-booted-sim": "./cli/certify-booted-sim" }, "repository": { "type": "git", --- packages/allspark-foundation/src/FeatureRunner/screens/Permissions.tsx @@ -11,7 +11,7 @@ import { useSelector } from 'react-redux'; import { NotificationSelectors } from '../../Notification'; import { LocationSelectors } from '../../Location'; -import { PermissionStatus, isStatusSet } from '../../Permissions'; +import { PermissionStatus, isStatusRequestable } from '../../Permissions'; import { useContainerService } from '../../Container'; import { AllsparkNotificationClient } from '../../Notification'; @@ -38,14 +38,14 @@ const PermissionRow = (props: { <ListItem title={name} trailing={ - isStatusSet(status) ? ( - <Button variant='tertiary' onPress={openSettings}> - Settings - </Button> - ) : ( + isStatusRequestable(status) ? ( <Button variant='secondary' onPress={onRequest}> Request </Button> + ) : ( + <Button variant='tertiary' onPress={openSettings}> + Settings + </Button> ) } UNSAFE_style={styles.listItem} --- packages/allspark-foundation/src/Location/selectors.ts @@ -4,7 +4,12 @@ import { generateSubSelectors, } from '../Redux/utils'; import { locationSlice } from './redux'; -import { isStatusGranted, isStatusSet } from '../Permissions'; +import { + isStatusGranted, + isStatusBlocked, + isStatusRequestable, + isStatusUnset, +} from '../Permissions'; const GeneratedSelectors = generateSelectorsForSlice(locationSlice); @@ -33,14 +38,22 @@ export const LocationSelectors = { ...GeneratedSelectors, ...LocationDataSelectors, ...PermissionSelectors, - getPermissionSet: createSelector( + getPermissionRequestable: createSelector( + [PermissionSelectors.getPermissionStatus], + isStatusRequestable + ), + getPermissionUnset: createSelector( [PermissionSelectors.getPermissionStatus], - isStatusSet + isStatusUnset ), getPermissionGranted: createSelector( [PermissionSelectors.getPermissionStatus], isStatusGranted ), + getPermissionBlocked: createSelector( + [PermissionSelectors.getPermissionStatus], + isStatusBlocked + ), ...generateSubSelectors( LocationDataSelectors.getLocationCoordinates, ['latitude', 'longitude'], --- packages/allspark-foundation/src/Notification/selectors.ts @@ -3,7 +3,12 @@ import { generateSelectorsForSlice, generateSubSelectors, } from '../Redux/utils'; -import { isStatusGranted, isStatusSet } from '../Permissions'; +import { + isStatusGranted, + isStatusBlocked, + isStatusRequestable, + isStatusUnset, +} from '../Permissions'; import { notificationSlice } from './redux'; const GeneratedSelectors = generateSelectorsForSlice(notificationSlice); @@ -25,14 +30,22 @@ const PermissionSelectors = generateSubSelectors( export const NotificationSelectors = { ...GeneratedSelectors, ...PermissionSelectors, - getPermissionSet: createSelector( + getPermissionRequestable: createSelector( + [PermissionSelectors.getPermissionStatus], + isStatusRequestable + ), + getPermissionUnset: createSelector( [PermissionSelectors.getPermissionStatus], - isStatusSet + isStatusUnset ), getPermissionGranted: createSelector( [PermissionSelectors.getPermissionStatus], isStatusGranted ), + getPermissionBlocked: createSelector( + [PermissionSelectors.getPermissionStatus], + isStatusBlocked + ), getProfileId: createSelector( [GeneratedSelectors.getState], (state) => state.profile?.profileId --- packages/allspark-foundation/src/Permissions/utils.ts @@ -1,13 +1,36 @@ import { PermissionStatus } from 'react-native-permissions'; +import { Platform } from 'react-native'; /** - * Checks if a permission status is set to a valid value. + * Checks if permissions status indicates permission is requestable. + * Check [Permission Flow](https://github.com/zoontek/react-native-permissions) here for more details. */ -export const isStatusSet = (status?: PermissionStatus) => - status === 'granted' || status === 'blocked' || status === 'limited'; +export const isStatusRequestable = (status?: PermissionStatus) => + Platform.select({ + ios: status === 'denied', + default: status !== 'unavailable', + }); /** * Checks if a permission status is granted. */ export const isStatusGranted = (status?: PermissionStatus) => status === 'granted'; + +/** + * Checks if a permission status is blocked. + */ +export const isStatusBlocked = (status?: PermissionStatus) => + status === 'blocked'; + +/** + * Checks if a permission status indicates it has been set. Meaning it has been prompted for or blocked. + */ +export const isStatusSet = (status?: PermissionStatus) => + status === 'granted' || status === 'blocked' || status === 'limited'; + +/** + * Checks if a permission status indicates it has not been set and can be. + */ +export const isStatusUnset = (status?: PermissionStatus) => + !isStatusSet(status) && isStatusRequestable(status);
feat: add more specific permission selectors for location and notification
feat: add more specific permission selectors for location and notification
d34493c36ee547588ab113744f3a4acd9ecbfe40
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.12.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.11.0...v2.12.0) (2024-09-25) + + +### Features + +* **ui:** fixed critical sonar violations ([800f59a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/800f59a4b3c3132ab9fbad40ba76c65dd11c63f6)) + # [2.11.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.10.0...v2.11.0) (2024-09-12) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.11.0", + "version": "2.12.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.12.0 [skip ci]
chore(release): 2.12.0 [skip ci] # [2.12.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.11.0...v2.12.0) (2024-09-25) ### Features * **ui:** fixed critical sonar violations ([800f59a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/800f59a4b3c3132ab9fbad40ba76c65dd11c63f6))
8adea094d66ef4690a1c3586dff3f3f17972d581
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.1-alpha.9", + "version": "2.12.1-alpha.10", "main": "dist/index.js", "files": [ "dist"
Update roster mini app version
Update roster mini app version
c2f07d7ffefd01a28331663f278a5fca2ccd2566
--- package.json @@ -104,6 +104,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "6.1.4", "@walmart/ui-components": "1.15.1", + "@walmart/wmconnect-mini-app": "2.21.0", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- src/screens/RosterDetailScreen/StoreRosterDetailScreen.tsx @@ -69,6 +69,7 @@ import {AllsparkSharedComponents} from '@walmart/allspark-foundation/Components' import {RosterDetailScreenDisabled} from './RosterDetailScreenDisabled'; import {RosterDetailScreenProps} from './types'; import {WarningBanner} from '../../components/WarningBanner'; +import {PresenceProvider} from '@walmart/wmconnect-mini-app'; //Todo: Refactor some functionalities in this component export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { @@ -442,7 +443,7 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { } return ( - <> + <PresenceProvider> <WarningBanner /> {isSalariedOrLead ? ( <TeamSwitcher @@ -548,6 +549,6 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { }} /> )} - </> + </PresenceProvider> ); }; --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -83,6 +83,7 @@ import {RosterDetailScreenDisabled} from './RosterDetailScreenDisabled'; import {RosterDetailScreenProps} from './types'; import {WarningBanner} from '../../components/WarningBanner'; import {SupplyChainTeam} from '../../queries/schema.types'; +import {PresenceProvider} from '@walmart/wmconnect-mini-app'; //Todo: Refactor some functionalities in this component export const SupplyChainRosterDetailScreen = ({ @@ -747,7 +748,7 @@ export const SupplyChainRosterDetailScreen = ({ } return ( - <> + <PresenceProvider> <WarningBanner /> {isSalariedOrLead ? ( <View style={styles.switcherContainer}> @@ -881,6 +882,6 @@ export const SupplyChainRosterDetailScreen = ({ }} /> )} - </> + </PresenceProvider> ); }; --- yarn.lock @@ -6566,6 +6566,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:6.1.4" "@walmart/ui-components": "npm:1.15.1" + "@walmart/wmconnect-mini-app": "npm:2.21.0" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6698,6 +6699,52 @@ __metadata: languageName: node linkType: hard +"@walmart/wmconnect-mini-app@npm:2.21.0": + version: 2.21.0 + resolution: "@walmart/wmconnect-mini-app@npm:2.21.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.21.0.tgz" + peerDependencies: + "@react-native-async-storage/async-storage": ^1.21.0 + "@react-native-community/netinfo": ^11.0.1 + "@react-native-firebase/analytics": ~17.4.2 + "@react-native-firebase/crashlytics": ~17.4.2 + "@react-native-firebase/database": ~17.4.2 + "@react-native-firebase/perf": ~17.4.2 + "@react-navigation/drawer": ^6.6.4 + "@react-navigation/native": ^6.0.8 + "@reduxjs/toolkit": ^1.9.7 + "@types/node": 20.5.9 + "@walmart/allspark-graphql-client": ~6.3.20 + "@walmart/allspark-http-client": 6.1.4 + "@walmart/config-components": 4.4.0 + "@walmart/core-services": ~6.4.1 + "@walmart/core-services-allspark": 6.25.1 + "@walmart/core-utils": ~6.3.9 + "@walmart/gtp-shared-components": 2.2.4 + "@walmart/react-native-encrypted-storage": ~1.1.3 + "@walmart/react-native-logger": 1.34.8 + "@walmart/react-native-scanner-3.0": 0.5.1 + "@walmart/react-native-shared-navigation": 6.1.4 + "@walmart/react-native-sumo-sdk": "*" + i18next: ^23.6.0 + moment-timezone: ~0.5.43 + npm-run-all: ^4.1.5 + react-i18next: ^13.3.1 + react-native-apollo-devtools-client: ^1.0.4 + react-native-app-auth: ^6.4.3 + react-native-device-info: ~10.13.1 + react-native-gesture-handler: ^2.14.0 + react-native-get-random-values: ~1.10.0 + react-native-reanimated: ^3.6.0 + react-native-safe-area-context: ^4.8.2 + react-native-screens: ^3.28.0 + react-native-wm-telemetry: 6.1.4 + redux: ^4.2.1 + redux-saga: ^1.2.3 + wifi-store-locator: 1.4.1 + checksum: 10c0/fbbccd6275312f8f9b79e0d4a55e3bf3995fa385dac0751e043d0972c83d361ceccb1433576c01fa7871d1aea7d4e392cc7d9712c94c0a0223d414d94bdb260a + languageName: node + linkType: hard + "@whatwg-node/disposablestack@npm:^0.0.5": version: 0.0.5 resolution: "@whatwg-node/disposablestack@npm:0.0.5"
Update the roster mini app with presence provider
Update the roster mini app with presence provider
7d1045e0ed963c9a327ba8d4c1d2a532dc1f55ae
--- .gitignore @@ -42,7 +42,7 @@ local.properties node_modules/ npm-debug.log yarn-error.log -install-state.gz +.yarn/install-state.gz # fastlane
Adding install-state.gz to gitignore file
Adding install-state.gz to gitignore file
d7120b855734edca01b3cc74df65c4b50e2abc60
--- package.json @@ -88,7 +88,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.25-rc1", + "@walmart/facilities-management-miniapp": "0.5.25", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6",
Bumped up version
Bumped up version
6d23144ed9af9755f1481d613acd400aac8e0998
--- packages/me-at-walmart-container/src/translations/index.ts @@ -6,7 +6,6 @@ export const MeAtWalmartTranslationConfig: TranslationClientOptions = { ns: ['container'], defaultNS: 'container', compatibilityJSON: 'v3', - supportedLngs: ['en-US', 'es-MX'], localeConfig: { 'en-US': { currency: '$',
fix: supported languages field caused problems for those expecting default en language
fix: supported languages field caused problems for those expecting default en language
acef1b99664d909f2ce93d095810386870e05d7d
--- src/components/GroupMessageButton/GroupMessageButton.tsx @@ -34,7 +34,8 @@ export const GroupMessageButton = ({ const team = data?.getTeamById; const startTeamText = useStartTeamText(); const startStoreText = useStartStoreText(); - const isTotalStore = teamId === TOTAL_STORE_ID; + // Use the utility function to check if this is a total store team (handles both canonical and legacy IDs) + const isTotalStore = isTotalStoreTeam(teamId); const messageLabel = isTotalStore ? t('rosterScreen.rosterMessageBtn.messageStore') : t('rosterScreen.rosterMessageBtn.messageTeam'); @@ -51,7 +52,7 @@ export const GroupMessageButton = ({ const showMessageTeamBtn = useSelector(displayMessageTeamBtn); const handleMessage = () => { - if (isTotalStoreTeam(teamId)) { + if (isTotalStore) { analytics('message_store', {message: 'Message store button pressed'}); startStoreText(); } else { @@ -85,7 +86,7 @@ export const GroupMessageButton = ({ size="medium" leading={<Icons.ChatBubbleIcon size="medium" />} onPress={handleMessage} - isFullWidth={true} + isFullWidth={isFabEnabled} disabled={disabled} > <Text>{messageLabel}</Text>
fix(ui): message team/store btn fab fix
fix(ui): message team/store btn fab fix
cecaf5992f8f864a830ecc7efae4bbda19e32dd5
--- src/navigation/AssociateHallwayNav/Tabs/index.tsx @@ -175,7 +175,7 @@ export const MainTabsNav = () => { const badgesCount = useSelector(getInboxBadgeCount); const taskTabBadge = getTaskTabBarBadge(); - const myTeamTabBadge = MyTeamHooks.useChannelUnreadCount(); + const myTeamTabBadge = MyTeamHooks.useMessagesUnreadCount(); const {total} = useWorkBadgeCount(); const configMap = useSelector(getBottomNavConfigMap); const {home, me, askSam, myTeam, taskit, copilot} = configMap;
using unread messages rather than channels for badge count
using unread messages rather than channels for badge count
91a1e5e9b2858d7ac54f2cdb9614fb2d65382ae9
--- package-lock.json @@ -61,7 +61,6 @@ "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", - "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.21", "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10", @@ -5606,25 +5605,6 @@ "moment": "^2.24.0" } }, - "node_modules/@walmart/OneWalmart-MiniApp": { - "version": "1.0.12", - "resolved": "https://npme.walmart.com/@walmart/OneWalmart-MiniApp/-/OneWalmart-MiniApp-1.0.12.tgz", - "integrity": "sha512-QW8uD3fnP0S1sI1SSaOOFdsRhLMrd+nV6VnCDh33s9eTHRiegyi2KYl51N6juKXI7zJXGUuehFla/IA2Ch+VWQ==", - "dependencies": { - "react-native-fast-image": "^8.5.11" - }, - "peerDependencies": { - "@react-navigation/native": "^6.0.0", - "@react-navigation/stack": "^6.1.0", - "@walmart/core-services": "^1.0.3", - "@walmart/gtp-shared-components": ">=1.8.5", - "@walmart/redux-store": "^1.0.12", - "react": "^17.0.2", - "react-native": "^0.67.4", - "react-redux": "^7.2.1", - "redux": "^4.1.2" - } - }, "node_modules/@walmart/pay-stub-miniapp": { "version": "0.9.21", "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.21.tgz", @@ -25292,14 +25272,6 @@ "resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.4.tgz", "integrity": "sha1-696avfrTbdFORoktjdt8w3uZ9hw=" }, - "@walmart/OneWalmart-MiniApp": { - "version": "1.0.12", - "resolved": "https://npme.walmart.com/@walmart/OneWalmart-MiniApp/-/OneWalmart-MiniApp-1.0.12.tgz", - "integrity": "sha512-QW8uD3fnP0S1sI1SSaOOFdsRhLMrd+nV6VnCDh33s9eTHRiegyi2KYl51N6juKXI7zJXGUuehFla/IA2Ch+VWQ==", - "requires": { - "react-native-fast-image": "^8.5.11" - } - }, "@walmart/pay-stub-miniapp": { "version": "0.9.21", "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.21.tgz", --- package.json @@ -73,7 +73,6 @@ "@react-navigation/stack": "^6.1.0", "@sharcoux/slider": "^6.1.1", "@terrylinla/react-native-sketch-canvas": "0.8.0", - "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/allspark-graphql-client": "^0.1.0", "@walmart/allspark-home-mini-app": "0.6.14", "@walmart/allspark-neon-core": "0.1.31",
removing OneWalmart mini app
removing OneWalmart mini app
c870e4c43bb1ff8c3f7e95a6e607575ae4852621
--- package.json @@ -161,7 +161,7 @@ "@walmart/sidekick-mini-app": "4.231.0", "@walmart/store-feature-orders": "1.34.7", "@walmart/talent-preboarding-mini-app": "1.0.48", - "@walmart/taskit-mini-app": "5.42.31", + "@walmart/taskit-mini-app": "5.42.33", "@walmart/time-clock-mini-app": "3.19.6", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.27.1", --- yarn.lock @@ -8402,7 +8402,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.231.0" "@walmart/store-feature-orders": "npm:1.34.7" "@walmart/talent-preboarding-mini-app": "npm:1.0.48" - "@walmart/taskit-mini-app": "npm:5.42.31" + "@walmart/taskit-mini-app": "npm:5.42.33" "@walmart/time-clock-mini-app": "npm:3.19.6" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.27.1" @@ -9306,12 +9306,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.42.31": - version: 5.42.31 - resolution: "@walmart/taskit-mini-app@npm:5.42.31" +"@walmart/taskit-mini-app@npm:5.42.33": + version: 5.42.33 + resolution: "@walmart/taskit-mini-app@npm:5.42.33::__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.42.33.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/e9f0acdd5f4c8193ab72e689fb1ca15c856d64fc7d6e435b9b327cf0b54e55fe4f0bf155545136d6f4b3391cc9316837a62841090d9b74d4d1fb0d260a4c31c5 + checksum: 10c0/d6936a1decb42917e5e1b7a25fd8668ffb6b08924b51defa591fde53345018a6af0f1a61a5cb0c87b1fd9862361cc24dc0cca16c5ea8767a30cc6cacf6b86906 languageName: node linkType: hard
feat: fixing back issue (#4860)
feat: fixing back issue (#4860)
49fa8d99b81df18ee41d22a8e714b28f85f5a7b3
--- .looper.multibranch.yml @@ -1,9 +1,3 @@ inherit: job:///allspark/allspark-core/allspark-template:allspark-template.yml updateTaskStatusOnGit: true # added as per discussion on SREDP-11895 - -envs: - ios: - variables: - COCOAPOD_VERSION: "1.15.2" - TARGET_XCODE: "15.4" \ No newline at end of file
PR feedback looper
PR feedback looper
dc8968623cc163826934c7d0772d27178eb73c2f
--- packages/allspark-foundation-hub/src/Store/Modules/Hub/HubDashboard.tsx @@ -226,8 +226,6 @@ export const HubDashboard = ({ ]) ); - console.log('====>isOffSite', isOffSite); - return ( <> {showOnboarding && !isOffSite ? ( --- packages/allspark-foundation-hub/src/Store/Modules/Onboarding/TeamOnboarding/Screens/TeamOnboardingScreen.tsx @@ -78,7 +78,6 @@ export const TeamOnboardingScreen = () => { }, ]; - console.log('===> TeamOnboardingScreen', showHubOnboardingScreen); return showHubOnboardingScreen ? ( <TeamOnboarding heading={t('teamOnboarding.heading', {
feat(ui): removed logs
feat(ui): removed logs
5d5c98724b81fb47fa6fd0bd6036009d9685e59a
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.26", + "@walmart/facilities-management-miniapp": "0.6.0-beta1", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6", @@ -5070,9 +5070,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.5.26", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.26.tgz", - "integrity": "sha512-0JMTSSuNBAS9CtUd+ydc2Z5X++w6jlW3GEIwLqxHBwn35mPy4SA9eMx1CfdaYC49RNX/BQ4gVWJGNGfnnx6Mfw==", + "version": "0.6.0-beta1", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.0-beta1.tgz", + "integrity": "sha512-EPZWldSCO+iG46jBGhdIh4P5dGOKcNIwsPF9z3zqTL9u043BOuKlfJn6Rwal9Y5DByEWO0Isv4/Cthx/9GylLw==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -5107,7 +5107,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.4.0-rc.2", "@walmart/redux-store": "3.1.2", - "@walmart/taskit-mini-app": "0.49.11", + "@walmart/taskit-mini-app": "0.49.0", "@walmart/ui-components": "1.5.0", "axios": "^0.26.1", "i18next": "^22.0.1", @@ -25324,9 +25324,9 @@ "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.26", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.26.tgz", - "integrity": "sha512-0JMTSSuNBAS9CtUd+ydc2Z5X++w6jlW3GEIwLqxHBwn35mPy4SA9eMx1CfdaYC49RNX/BQ4gVWJGNGfnnx6Mfw==" + "version": "0.6.0-beta1", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.0-beta1.tgz", + "integrity": "sha512-EPZWldSCO+iG46jBGhdIh4P5dGOKcNIwsPF9z3zqTL9u043BOuKlfJn6Rwal9Y5DByEWO0Isv4/Cthx/9GylLw==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.10", --- package.json @@ -88,7 +88,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.26", + "@walmart/facilities-management-miniapp": "0.6.0-beta1", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6",
Updating package.json - @walmart/facilities-management-miniapp to 0.6.0-beta1
Updating package.json - @walmart/facilities-management-miniapp to 0.6.0-beta1
fcf196f4b4a1e312139950355086e9b64d43b1df
--- __tests__/source/__snapshots__/index.test.tsx.snap @@ -27,4 +27,27 @@ exports[`myTeamMiniApp should render MyTeamMiniApp as expected 1`] = ` </SafeAreaProvider> `; -exports[`myTeamMiniApp should render TeamHub as expected 1`] = `null`; +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> +`;
feat(ui): update navigation for team hub
feat(ui): update navigation for team hub
41a377fd37fbce9e08a86db37a3cc5f5de0fbfa8
--- package.json @@ -76,7 +76,7 @@ "@walmart/ask-sam-mini-app": "^0.41.8", "@walmart/config-components": "3.0.2", "@walmart/core-services": "~1.0.14", - "@walmart/core-services-allspark": "^1.4.91", + "@walmart/core-services-allspark": "~1.4.91", "@walmart/core-utils": "^1.0.8", "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.41.1",
change core service allspark dependency to auto update patch only
change core service allspark dependency to auto update patch only
a4a3b13f56c168f63ae5b0bb78dd724e91b9dfa8
--- package-lock.json @@ -51,7 +51,7 @@ "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "^2.0.0-rc.1", - "@walmart/impersonation-mini-app": "1.6.0", + "@walmart/impersonation-mini-app": "1.7.0", "@walmart/ims-print-services-ui": "1.2.0", "@walmart/inbox-mini-app": "0.73.0", "@walmart/iteminfo-mini-app": "5.3.1", @@ -5172,9 +5172,9 @@ "license": "UNLICENSED" }, "node_modules/@walmart/impersonation-mini-app": { - "version": "1.6.0", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.6.0.tgz", - "integrity": "sha512-aeUFmSRYeCkhKL+8w5kC78K23akQlu0q6Nk5nk/Lq+IfhCNYgKUf3MgywUmW8F1KjKOeEEOqwmnb1/T4twehMQ==", + "version": "1.7.0", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.7.0.tgz", + "integrity": "sha512-CjkWgZoyOiXIL4snaotyF20rxFo2/8M9L83BJd0Ui9856Eb3HJ8aUWVm7+P43KMjJ0ZVov/RlK/8OoXCcgFyxg==", "dependencies": { "@walmart/gtp-shared-components": "1.8.18" }, @@ -24995,9 +24995,9 @@ } }, "@walmart/impersonation-mini-app": { - "version": "1.6.0", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.6.0.tgz", - "integrity": "sha512-aeUFmSRYeCkhKL+8w5kC78K23akQlu0q6Nk5nk/Lq+IfhCNYgKUf3MgywUmW8F1KjKOeEEOqwmnb1/T4twehMQ==", + "version": "1.7.0", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.7.0.tgz", + "integrity": "sha512-CjkWgZoyOiXIL4snaotyF20rxFo2/8M9L83BJd0Ui9856Eb3HJ8aUWVm7+P43KMjJ0ZVov/RlK/8OoXCcgFyxg==", "requires": { "@walmart/gtp-shared-components": "1.8.18" }, --- package.json @@ -94,7 +94,7 @@ "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "^2.0.0-rc.1", - "@walmart/impersonation-mini-app": "1.6.0", + "@walmart/impersonation-mini-app": "1.7.0", "@walmart/ims-print-services-ui": "1.2.0", "@walmart/inbox-mini-app": "0.73.0", "@walmart/iteminfo-mini-app": "5.3.1",
adjest impersonation styling and data props for upgraded gtp shared component for TextField
adjest impersonation styling and data props for upgraded gtp shared component for TextField
cfe9dbfef1c966739d37b91dc2ab78f0693c31be
--- packages/my-walmart-hub/src/HubFramework/Core/Hub.tsx @@ -357,15 +357,19 @@ const HubLoadingState = React.memo((props: any) => { if (layoutItems.length > 0) { // Mirror the exact structure of the defaultLayout + let skeletonCounter = 0; return defaultLayout.map((row: any[]) => - row.map((widget: any) => ({ - ...widget, - componentId: 'skeleton-widget', - // Preserve the widget's ID to maintain widget management features - _widgetId: - widget._widgetId || - `skeleton-${Math.random().toString(36).substring(2, 9)}`, - })) + row.map((widget: any) => { + const uniqueId = `skeleton-${skeletonCounter++}`; + return { + ...widget, + componentId: 'skeleton-widget', + // Use unique ID for both component rendering and widget management + _widgetId: widget._widgetId || uniqueId, + // Add unique key to ensure React can differentiate between skeleton widgets + key: uniqueId, + }; + }) ); } @@ -376,6 +380,8 @@ const HubLoadingState = React.memo((props: any) => { .map((_, index) => ({ componentId: 'skeleton-widget', _widgetId: `skeleton-${index}`, + // Add unique key for each skeleton widget + key: `skeleton-${index}`, })), ]; }, [defaultLayout]);
feat: update unique index for the layout loader (#557)
feat: update unique index for the layout loader (#557) Co-authored-by: p0d02sx <prasansuresh.dhresh@walmart.com>
736f3ef1cb23c98d658746f5f13b28d2132b4f2b
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/HubHeader/HubHeader.tsx @@ -8,6 +8,8 @@ import { import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; import { TouchableOpacity } from 'react-native-gesture-handler'; import { RosterHeaderProps, getHeaderStyles } from '.'; +import { useSelector } from 'react-redux'; +import { teamImageEnabled } from '../../../SupplyChain/Redux'; export const RosterPageHeader = ({ title, @@ -22,6 +24,7 @@ export const RosterPageHeader = ({ backgroundColorOverride, fontSize = 18, }: RosterHeaderProps) => { + const showTeamImage = useSelector(teamImageEnabled); const TeamImage = useAllsparkImage(); const styles = useMemo( () => @@ -87,7 +90,7 @@ export const RosterPageHeader = ({ </TouchableOpacity> ))} </View> - {imageContent?.uri && ( + {imageContent?.uri && showTeamImage && ( <TeamImage testID={'hub-header-image'} style={styles.teamImage} --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilter.tsx @@ -7,12 +7,15 @@ 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 { useSelector } from 'react-redux'; +import { shiftFilterIconEnabled } from '../../Redux'; export const ShiftFilter = ({ shiftId, teamImage, handleSelectShift, }: ShiftFilterProps) => { + const showShiftIcon = useSelector(shiftFilterIconEnabled); const TeamImage = useAllsparkImage(); const [selected, setSelected] = useState(false); const handleSelect = () => { @@ -21,14 +24,14 @@ export const ShiftFilter = ({ }; const logger = LoggerService.getContainerInstance(); const telemetryService = useTelemetryService(); - const styles = ShiftFilterStyles(selected); + const styles = ShiftFilterStyles(selected, showShiftIcon); return ( <TouchableOpacity style={styles.container} testID={`shift-filter-${shiftId}`} onPress={handleSelect} > - <View style={styles.shiftFilterOuterContainer}> + {showShiftIcon && ( <TeamImage resizeMode='contain' source={{ @@ -47,16 +50,16 @@ export const ShiftFilter = ({ }} testID='teamImage-shiftFilter' /> - <View - accessible={true} - accessibilityLabel={`${shiftId}`} - accessibilityRole='button' - style={styles.shiftFilterInnerContainer} - > - <Body UNSAFE_style={styles.shiftId} testID='shiftId'> - {shiftId} - </Body> - </View> + )} + <View + accessible={true} + accessibilityLabel={`${shiftId}`} + accessibilityRole='button' + style={styles.shiftFilterInnerContainer} + > + <Body UNSAFE_style={styles.shiftId} testID='shiftId'> + {shiftId} + </Body> </View> </TouchableOpacity> ); --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/style.ts @@ -2,28 +2,23 @@ import { colors } from '@walmart/gtp-shared-components/dist'; import { StyleSheet } from 'react-native'; //TODO: Use teamImage background color from colors gtp shared components. Currently these colors are not matching from shared components. -export const ShiftFilterStyles = (selected: boolean) => +export const ShiftFilterStyles = (selected: boolean, hasIcon: boolean) => StyleSheet.create({ container: { display: 'flex', - padding: 8, + padding: selected ? 7 : 8, width: 109, - justifyContent: 'space-between', + height: 54, + gap: 10, alignItems: 'center', + justifyContent: hasIcon ? 'flex-start' : 'center', flexDirection: 'row', borderWidth: selected ? 2 : 1, borderRadius: 40, borderColor: selected ? colors.black : colors.gray['20'], backgroundColor: colors.white, }, - shiftFilterOuterContainer: { - display: 'flex', - flexDirection: 'row', - alignItems: 'center', - gap: 10, - }, teamImage: { - alignSelf: 'flex-start', height: 36, width: 36, backgroundColor: selected ? '#0071DC' : '#CCE3F8', --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -12,6 +12,8 @@ import { import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; import { styles } from './styles'; import { FEATURE_ID } from '../../constant'; +import { useSelector } from 'react-redux'; +import { hubHeaderEnabled } from '../../Redux'; export const OnboardingScreen = () => { const { t } = useAllsparkTranslation(FEATURE_ID); @@ -21,6 +23,8 @@ export const OnboardingScreen = () => { const [sections, setSearchedsections] = useState<typeof sortedSections>(sortedSections); + const showHubHeader = useSelector(hubHeaderEnabled); + const handleSearchInput = useCallback( (input: string) => { setInput(input); @@ -55,13 +59,15 @@ export const OnboardingScreen = () => { return ( <> <ScrollView contentContainerStyle={styles.rootContainer}> - <RosterPageHeader - title={t('dashboard.header.title')} - subText={t('dashboard.header.title')} - imageContent={Images['0000000']} // replace once we have image from allspark-images - backgroundColorOverride={styles.headerContainer} - fontSize={24} - /> + {showHubHeader && ( + <RosterPageHeader + title={t('dashboard.header.title')} + subText={t('dashboard.header.subtitle')} + imageContent={Images['0000000']} // replace once we have image from allspark-images + backgroundColorOverride={styles.headerContainer} + fontSize={24} + /> + )} <Divider /> <View style={styles.filterList}> <ShiftFilterList
feat: added feature flags for header and filter
feat: added feature flags for header and filter
88653509737a1f86531340d3c2ed76810395fe19
--- src/screens/ChannelsScreen.tsx @@ -68,7 +68,7 @@ const renderChannel: ListRenderItem<string> = ({ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( props: ChannelScreenProps, ) => { - const {bottom: bottomInset, top: topInset} = useSafeAreaInsets(); + const {bottom: bottomInset} = useSafeAreaInsets(); const {navigation, newMessageButtonOffset, isMeganavScreen} = props; const channels = useChannelContext(); const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); @@ -141,7 +141,7 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( } extraData={extraData} estimatedItemSize={100} - contentInset={{bottom: bottomInset, top: topInset}} + contentInset={{bottom: bottomInset}} /> ) : ( <TextingDisabledScreen --- src/screens/ChannelsScreen.tsx @@ -68,7 +68,7 @@ const renderChannel: ListRenderItem<string> = ({ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( props: ChannelScreenProps, ) => { - const {bottom: bottomInset, top: topInset} = useSafeAreaInsets(); + const {bottom: bottomInset} = useSafeAreaInsets(); const {navigation, newMessageButtonOffset, isMeganavScreen} = props; const channels = useChannelContext(); const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); @@ -141,7 +141,7 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( } extraData={extraData} estimatedItemSize={100} - contentInset={{bottom: bottomInset, top: topInset}} + contentInset={{bottom: bottomInset}} /> ) : ( <TextingDisabledScreen
remove top inset
remove top inset
24453822782d0f29405e77c3ecef2302117840ee
--- packages/me-at-walmart-container/src/graphql/index.ts @@ -1,20 +1,20 @@ -import {GraphQLClientConfig} from '@walmart/allspark-foundation/GraphQL'; -import {IMeAtWalmartEnvironment} from '@walmart/me-at-walmart-common'; -import {AthenaUriLink, TypeRemappingLink, ErrorLoggerLink} from './links'; -import {TypePolicies} from './policies'; +import { GraphQLClientConfig } from "@walmart/allspark-foundation/GraphQL"; +import { IMeAtWalmartEnvironment } from "@walmart/me-at-walmart-common"; +import { AthenaUriLink, ErrorLoggerLink } from "./links"; +import { TypePolicies } from "./policies"; export const MeAtWalmartGraphQLConfig = ( - env: IMeAtWalmartEnvironment, + env: IMeAtWalmartEnvironment ): GraphQLClientConfig => ({ httpConfig: { uri: env.graphql.url, headers: { ...env.graphql.headers, - 'Content-Type': 'application/json', + "Content-Type": "application/json", }, }, - links: [TypeRemappingLink, ErrorLoggerLink, AthenaUriLink], - cacheConfig: {typePolicies: TypePolicies}, + links: [ErrorLoggerLink, AthenaUriLink], + cacheConfig: { typePolicies: TypePolicies }, persistedQueryConfig: { enabled: env.graphql.persistedQueries, }, --- packages/me-at-walmart-container/src/graphql/links.ts @@ -5,48 +5,6 @@ import { AllsparkEnvironment } from "@walmart/allspark-foundation/Environment"; import { IMeAtWalmartEnvironment } from "@walmart/me-at-walmart-common"; import { GraphqlLogger } from "./logger"; -import { MewAssociate } from "./schema.types"; - -// Remap Mew typenames to their counterparts -const handleDailyRoster = (associates: MewAssociate[]) => { - return associates.map((associate) => { - const newAssociate = { - ...associate, - __typename: "Associate", // was MewAssociate - }; - - if (newAssociate.teams) { - // @ts-ignore - purposely renaming __typename - newAssociate.teams = newAssociate.teams.map((team) => { - const newTeam = { - ...team, - __typename: "Team", // was MewTeam - }; - - if (newTeam.membership) { - // @ts-ignore - purposely renaming __typename - newTeam.membership = newTeam.membership.map((membership) => ({ - ...membership, - __typename: "TeamAssociateMapping", // was MewTeamAssociateMapping - })); - } - - return newTeam; - }); - } - - return newAssociate; - }); -}; - -export const TypeRemappingLink = new ApolloLink((operation, forward) => { - return forward(operation).map((data) => { - if (data?.data?.getDailyRoster) { - data.data.getDailyRoster = handleDailyRoster(data.data.getDailyRoster); - } - return data; - }); -}); export const ErrorLoggerLink = onError(({ graphQLErrors }) => { if (graphQLErrors) {
refactor: remove uneeded type remapping link
refactor: remove uneeded type remapping link
369fe3728c72d2f6b5d1c005ee09072abb4e2943
--- android/app/src/main/assets/fonts/icomoon.ttf Binary files a/android/app/src/main/assets/fonts/icomoon.ttf and b/android/app/src/main/assets/fonts/icomoon.ttf differ --- ios/AllSpark.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + 31C9750725D6BD2F00044347 /* icomoon.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 31C9750625D6BD2F00044347 /* icomoon.ttf */; }; 31E17243255A601A0039C18F /* Bogle-Black.otf in Resources */ = {isa = PBXBuildFile; fileRef = F013540324ED83A70094D840 /* Bogle-Black.otf */; }; 31E17244255A601A0039C18F /* Bogle-BlackItalic.otf in Resources */ = {isa = PBXBuildFile; fileRef = F013540224ED83A70094D840 /* Bogle-BlackItalic.otf */; }; 31E17245255A601A0039C18F /* Bogle-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = F013540024ED83A70094D840 /* Bogle-Bold.otf */; }; @@ -28,7 +29,6 @@ 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 9F4DC07684EF306CE59EB89D /* Pods_AllSpark.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7667D95772601C361F753B51 /* Pods_AllSpark.framework */; }; F0C92FC2252B9F1E000B5582 /* Temp.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0C92FC1252B9F1E000B5582 /* Temp.swift */; }; - F0C92FC4252E3D2F000B5582 /* icomoon.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F0C92FC3252E3D2F000B5582 /* icomoon.ttf */; }; F0F40C0D24DDA8F00001739F /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = F0F40C0C24DDA8F00001739F /* GoogleService-Info.plist */; }; /* End PBXBuildFile section */ @@ -55,6 +55,7 @@ 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = AllSpark/main.m; sourceTree = "<group>"; }; 18C7AF990A657BA8B527E5F6 /* Pods-AllSpark.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark.release.xcconfig"; path = "Target Support Files/Pods-AllSpark/Pods-AllSpark.release.xcconfig"; sourceTree = "<group>"; }; 212ACBF9F6EA1B3866D5D388 /* Pods-AllSpark.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark.debug.xcconfig"; path = "Target Support Files/Pods-AllSpark/Pods-AllSpark.debug.xcconfig"; sourceTree = "<group>"; }; + 31C9750625D6BD2F00044347 /* icomoon.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = icomoon.ttf; sourceTree = "<group>"; }; 31D742EA2556B368004E5CA4 /* MaterialIcons.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = MaterialIcons.ttf; path = "../../sample-composite-app/android/app/src/main/assets/fonts/MaterialIcons.ttf"; sourceTree = "<group>"; }; 4120FE278C5A4EFEB2622758 /* DIGIMark-custom.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "DIGIMark-custom.ttf"; path = "../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/DIGIMark-custom.ttf"; sourceTree = "<group>"; }; 487EA0ED2D8819C46D45286A /* Pods_AllSpark_AllSparkTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AllSpark_AllSparkTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -172,6 +173,7 @@ 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( + 31C9750625D6BD2F00044347 /* icomoon.ttf */, 13B07FAE1A68108700A75B9A /* AllSpark */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 00E356EF1AD99517003FC87E /* AllSparkTests */, @@ -334,12 +336,12 @@ 31E17248255A601A0039C18F /* Bogle-LightItalic.otf in Resources */, 31E17249255A601A0039C18F /* Bogle-Medium.otf in Resources */, 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, + 31C9750725D6BD2F00044347 /* icomoon.ttf in Resources */, 31E17243255A601A0039C18F /* Bogle-Black.otf in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 31E17244255A601A0039C18F /* Bogle-BlackItalic.otf in Resources */, 31E17246255A601A0039C18F /* Bogle-BoldItalic.otf in Resources */, 31E17245255A601A0039C18F /* Bogle-Bold.otf in Resources */, - F0C92FC4252E3D2F000B5582 /* icomoon.ttf in Resources */, 31E1724A255A601A0039C18F /* Bogle-MediumItalic.otf in Resources */, F0F40C0D24DDA8F00001739F /* GoogleService-Info.plist in Resources */, 31E1724D255A601A0039C18F /* Bogle-Thin.otf in Resources */, --- ios/icomoon.ttf Binary files a/ios/icomoon.ttf and b/ios/icomoon.ttf differ --- package-lock.json @@ -3202,9 +3202,9 @@ } }, "@walmart/ui-components": { - "version": "1.0.91", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.91.tgz", - "integrity": "sha512-OL7BujM7udFfK5Vb9pJtibupVaZcMpGMXQ+PlTgiZAV3TYaNkfE6/hXXy1g11EGxyb9FNZBuNI1xx0S5SrnsTA==", + "version": "1.0.94", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.94.tgz", + "integrity": "sha512-IFxPhXUEj39RD89XNGyh+b5svGDFEZCtf5BlRRUZGUA+iZ9c1xtbF9tvBYBVnXUfw0pZ00X2FIWJ8XwkaWe81g==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -65,7 +65,7 @@ "@walmart/schedule-mini-app": "0.2.55", "@walmart/settings-mini-app": "1.1.14", "@walmart/time-clock-mini-app": "0.1.23", - "@walmart/ui-components": "1.0.91", + "@walmart/ui-components": "1.0.94", "@walmart/welcomeme-mini-app": "0.5.27", "i18next": "^19.7.0", "intl": "^1.2.5", --- src/translations/en-US.ts @@ -33,7 +33,7 @@ export const enUS = { menu: { settings: 'Settings', notifications: 'Notifications', - feedback: 'Give Feedback', + feedback: 'Give feedback', whatsNew: "What's new", }, welcome: {
clockStatus indicator fix and other misc vqa fixes (#311)
clockStatus indicator fix and other misc vqa fixes (#311) Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
1d347d7f2b0cc6f1302e5c81a489ad38f0b27400
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.1", + "version": "2.0.2", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.1", + "version": "2.0.2", "private": false, "main": "bundle/dist/index.js", "files": [
bumping package version for next publish
bumping package version for next publish
4572b1ca391a4f7ddbb0981075c44951e036a16f
--- docs/docusaurus.config.ts @@ -11,11 +11,11 @@ const config: Config = { url: 'https://gecgithub01.walmart.com', // Set the /<baseUrl>/ pathname under which your site is served // For GitHub pages deployment, it is often '/<projectName>/' - baseUrl: '/pages/smdv/allspark/', + baseUrl: '/pages/allspark/allspark/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'smdv', // Usually your GitHub org/user name. + organizationName: 'allspark', // Usually your GitHub org/user name. projectName: 'allspark', // Usually your repo name. deploymentBranch: 'gh-pages',
Update the components for doc
Update the components for doc
76d73f3e206d68036af822d091ae3b88ec615f2a
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -86,9 +86,9 @@ BAD96B05EA590DEDF555D52B /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-AllSpark/ExpoModulesProvider.swift"; sourceTree = "<group>"; }; CD1FCE7B27B747FE00A993B8 /* realm-js-ios.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "realm-js-ios.xcframework"; path = "../node_modules/realm/react-native/ios/realm-js-ios.xcframework"; sourceTree = "<group>"; }; CD1FCE7D27B747FE00A993B8 /* realm-monorepo.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "realm-monorepo.xcframework"; path = "Pods/Realm/core/realm-monorepo.xcframework"; sourceTree = "<group>"; }; - D21A295D106240A591C366AE /* version.txt */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = version.txt; path = "../node_modules/@walmart/gtp-shared-components/assets/fonts/version.txt"; sourceTree = "<group>"; }; E40167B22BA2232F0067AA6B /* boosted_walmart_chat_out_high_mono_20lufs.m4a */ = {isa = PBXFileReference; lastKnownFileType = file; path = boosted_walmart_chat_out_high_mono_20lufs.m4a; sourceTree = "<group>"; }; E40167B32BA2232F0067AA6B /* boosted_walmart_achievement_06_high_mono_20lufs.m4a */ = {isa = PBXFileReference; lastKnownFileType = file; path = boosted_walmart_achievement_06_high_mono_20lufs.m4a; sourceTree = "<group>"; }; + D21A295D106240A591C366AE /* version.txt */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = version.txt; path = "../node_modules/@walmart/gtp-shared-components/assets/fonts/version.txt"; sourceTree = "<group>"; }; E9AD4B152679309900D8DDD4 /* clockin.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockin.mp3; sourceTree = "<group>"; }; E9AD4B162679309900D8DDD4 /* clockout.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockout.mp3; sourceTree = "<group>"; }; E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockfailure.mp3; sourceTree = "<group>"; };
Reverting file encoding
Reverting file encoding
fbbf610edcc497b1197d1aaea3e7c8eddcd5f606
--- package-lock.json @@ -4983,9 +4983,9 @@ "integrity": "sha512-cN6NCvTVApgS+XbQXhGS5J7W7rjoa26sh7/5qERnAedZzvZPoHY9gHobC8bdSdzBqImHaGQkaoNvjhq7uihJZw==" }, "@walmart/amp-mini-app": { - "version": "0.2.10", - "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-0.2.10.tgz", - "integrity": "sha512-BKmYmlma1idy+z+xwgQakR7KhzY5MHWeb3Xnlfs3zfgEcUN+/GmYwmUsF1S2FgC0+l9lwZuHuXTiAVyA4eG6cw==" + "version": "0.2.12", + "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-0.2.12.tgz", + "integrity": "sha512-jKGgw9xx+UMyrMxPHA5rE+/D916I47G2+GAymAuV/Fo6EUhfx6jcZhWwOYH3oBrgQiWa5DbzAu/m8gDoIWGNfQ==" }, "@walmart/ask-sam-mini-app": { "version": "1.1.3", @@ -17292,7 +17292,7 @@ "node-dir": { "version": "0.1.17", "resolved": "https://npme.walmart.com/node-dir/-/node-dir-0.1.17.tgz", - "integrity": "sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==", + "integrity": "sha1-X1Zl2TNRM1yqvvjxxVRRbPXx5OU=", "requires": { "minimatch": "^3.0.2" } @@ -18159,7 +18159,7 @@ "options": { "version": "0.0.6", "resolved": "https://npme.walmart.com/options/-/options-0.0.6.tgz", - "integrity": "sha512-bOj3L1ypm++N+n7CEbbe473A414AB7z+amKYshRb//iuL3MpdDCLhPnw6aVTdKB9g5ZRVHIEp8eUln6L2NUStg==" + "integrity": "sha1-7CLTEoBrtT5zF3Pnza788cZDEo8=" }, "ora": { "version": "3.4.0", @@ -18207,7 +18207,7 @@ "os-tmpdir": { "version": "1.0.2", "resolved": "https://npme.walmart.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" }, "p-each-series": { "version": "2.2.0", @@ -18279,7 +18279,7 @@ "parse-json": { "version": "4.0.0", "resolved": "https://npme.walmart.com/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "requires": { "error-ex": "^1.3.1", "json-parse-better-errors": "^1.0.1" @@ -20079,7 +20079,7 @@ "resolve-from": { "version": "3.0.0", "resolved": "https://npme.walmart.com/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==" + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=" }, "resolve-url": { "version": "0.2.1", @@ -20264,7 +20264,7 @@ "serialize-error": { "version": "2.1.0", "resolved": "https://npme.walmart.com/serialize-error/-/serialize-error-2.1.0.tgz", - "integrity": "sha512-ghgmKt5o4Tly5yEG/UJp8qTd0AN7Xalw4XBtDEKP655B699qMEtra1WlXeE6WIvdEG481JvRxULKsInq/iNysw==" + "integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=" }, "serve-static": { "version": "1.14.1", @@ -20354,7 +20354,7 @@ "shell-quote": { "version": "1.6.1", "resolved": "https://npme.walmart.com/shell-quote/-/shell-quote-1.6.1.tgz", - "integrity": "sha512-V0iQEZ/uoem3NmD91rD8XiuozJnq9/ZJnbHVXHnWqP1ucAhS3yJ7sLIIzEi57wFFcK3oi3kFUC46uSyWr35mxg==", + "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", "requires": { "array-filter": "~0.0.0", "array-map": "~0.0.0", @@ -21202,7 +21202,7 @@ "temp": { "version": "0.8.3", "resolved": "https://npme.walmart.com/temp/-/temp-0.8.3.tgz", - "integrity": "sha512-jtnWJs6B1cZlHs9wPG7BrowKxZw/rf6+UpGAkr8AaYmiTyTO7zQlLoST8zx/8TcUPnZmeBoB+H8ARuHZaSijVw==", + "integrity": "sha1-4Ma8TSa5AxJEEOT+2BEDAU38H1k=", "requires": { "os-tmpdir": "^1.0.0", "rimraf": "~2.2.6" @@ -21211,7 +21211,7 @@ "rimraf": { "version": "2.2.8", "resolved": "https://npme.walmart.com/rimraf/-/rimraf-2.2.8.tgz", - "integrity": "sha512-R5KMKHnPAQaZMqLOsyuyUmcIjSeDm+73eoqQpaXA7AZ22BL+6C+1mcUscgOsNd8WVlJuvlgAPsegcx7pjlV0Dg==" + "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=" } } }, @@ -21287,7 +21287,7 @@ "isarray": { "version": "1.0.0", "resolved": "https://npme.walmart.com/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, "process-nextick-args": { "version": "2.0.1", @@ -21522,7 +21522,7 @@ "ultron": { "version": "1.0.2", "resolved": "https://npme.walmart.com/ultron/-/ultron-1.0.2.tgz", - "integrity": "sha512-QMpnpVtYaWEeY+MwKDN/UdKlE/LsFZXM5lO1u7GaZzNgmIbGixHEmVMIKT+vqYOALu3m5GYQy9kz4Xu4IVn7Ow==" + "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=" }, "unbox-primitive": { "version": "1.0.1", @@ -21601,7 +21601,7 @@ "unpipe": { "version": "1.0.0", "resolved": "https://npme.walmart.com/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" }, "unset-value": { "version": "1.0.0", @@ -21717,7 +21717,7 @@ "utils-merge": { "version": "1.0.1", "resolved": "https://npme.walmart.com/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" }, "uuid": { "version": "3.4.0", @@ -21767,7 +21767,7 @@ "vary": { "version": "1.1.2", "resolved": "https://npme.walmart.com/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" }, "verror": { "version": "1.10.0", --- package.json @@ -75,7 +75,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.44", "@walmart/allspark-home-mini-app": "0.5.47", "@walmart/allspark-neon-core": "0.1.29", - "@walmart/amp-mini-app": "0.2.11", + "@walmart/amp-mini-app": "0.2.12", "@walmart/ask-sam-mini-app": "1.1.3", "@walmart/config-components": "3.0.2", "@walmart/core-services": "~1.2.4",
Update amp-mini-app to 0.2.12, fix CTP-7944
Update amp-mini-app to 0.2.12, fix CTP-7944
bfdaa4570d175458443ccb3d4cc204e3b4b8e410
--- package-lock.json @@ -44,7 +44,7 @@ "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.9.0", - "@walmart/exception-mini-app": "1.0.3", + "@walmart/exception-mini-app": "1.0.13", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7", "@walmart/financial-wellbeing-feature-app": "1.0.64", @@ -4955,12 +4955,12 @@ } }, "node_modules/@walmart/exception-mini-app": { - "version": "1.0.3", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.3.tgz", - "integrity": "sha512-9ZfjhxrxCXvO72+bhwV2KRtUtjuZA60lzBRXeTbPuXxxz68A64IUaYdh4W8eBWBfySfUMQEo9HdHm56PXADEvA==", + "version": "1.0.13", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.13.tgz", + "integrity": "sha512-EDsf5anfmxACiPzg1JOWuyOhrgVkRw0C34QpEFRDaTjv8sBboM9sXosxLFlcwavJ4wfb4CNoDRc65v2mLwWq0g==", "peerDependencies": { "@walmart/functional-components": ">=2.0.6", - "@walmart/gtp-shared-components": "1.8.17", + "@walmart/gtp-shared-components": "^2.0.0-rc.1", "@walmart/ims-print-services-ui": "1.2.0", "@walmart/react-native-logger": ">=1.31.0-rc.0", "@walmart/redux-store": ">=3.1.3", @@ -24898,9 +24898,9 @@ } }, "@walmart/exception-mini-app": { - "version": "1.0.3", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.3.tgz", - "integrity": "sha512-9ZfjhxrxCXvO72+bhwV2KRtUtjuZA60lzBRXeTbPuXxxz68A64IUaYdh4W8eBWBfySfUMQEo9HdHm56PXADEvA==" + "version": "1.0.13", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.13.tgz", + "integrity": "sha512-EDsf5anfmxACiPzg1JOWuyOhrgVkRw0C34QpEFRDaTjv8sBboM9sXosxLFlcwavJ4wfb4CNoDRc65v2mLwWq0g==" }, "@walmart/facilities-management-miniapp": { "version": "0.4.2", --- package.json @@ -87,7 +87,7 @@ "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.9.0", - "@walmart/exception-mini-app": "1.0.3", + "@walmart/exception-mini-app": "1.0.13", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7", "@walmart/financial-wellbeing-feature-app": "1.0.64",
@walmart/exception-mini-app 1.0.13, gtp-shared-components 2.0.0-rc.1, ims-print-services-ui 1.2.0
@walmart/exception-mini-app 1.0.13, gtp-shared-components 2.0.0-rc.1, ims-print-services-ui 1.2.0
9732b9ca7321efdc8d1981bf35dde344973c1e0d
--- package.json @@ -89,7 +89,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.17.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.5.8", + "@walmart/facilities-management-miniapp": "0.5.10", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6",
FCM Version bump - 0.5.10
FCM Version bump - 0.5.10 FCM Version bump - 0.5.10