commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
44ef6b4a8c50ad4099944e067496e4d18ce4093c
--- src/components/AssociateRosterItem/index.tsx @@ -46,7 +46,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { ); const currentUser = useSelector(UserSelectors.getUser) as Associate; const isWeeklyScheduleVisible: boolean = useRbacConfigWithJobCode(); - const isHourlyAssociate: boolean = useRbacConfigWithJobCode(); + const isHourlyAssociate: boolean = isWeeklyScheduleVisible; const userIsInRoster = useUserIsInRoster(); const isPushToTalkEnabled: boolean = useSelector(pushToTalkEnabled); const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled); --- src/components/AssociateRosterItem/index.tsx @@ -46,7 +46,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { ); const currentUser = useSelector(UserSelectors.getUser) as Associate; const isWeeklyScheduleVisible: boolean = useRbacConfigWithJobCode(); - const isHourlyAssociate: boolean = useRbacConfigWithJobCode(); + const isHourlyAssociate: boolean = isWeeklyScheduleVisible; const userIsInRoster = useUserIsInRoster(); const isPushToTalkEnabled: boolean = useSelector(pushToTalkEnabled); const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled);
Updating requested PR changes
Updating requested PR changes
1de388f0572d2c93425d5846b40ddaeadaf0aa10
--- package-lock.json @@ -35,7 +35,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.3.3", + "@walmart/ask-sam-mini-app": "1.3.5", "@walmart/attendance-mini-app": "0.33.0", "@walmart/config-components": "4.0.1", "@walmart/core-services": "~1.4.9", @@ -4612,10 +4612,9 @@ } }, "node_modules/@walmart/ask-sam-mini-app": { - "version": "1.3.3", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.3.tgz", - "integrity": "sha512-LLPQEJ/YPR1cryaCQbkDlPlHkBVc0wV5IrdGdKVVLQjxnl7IL/XtlrG9pj1+diPDn3P9gPn73YeqY0xBtxl24A==", - "hasInstallScript": true, + "version": "1.3.5", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.5.tgz", + "integrity": "sha512-/U14MnwbkDggd9i+HmYtLdrMGZUSsYFuwgLipSloBxZXchWrxlN0NNRTzL6AgQKokRohPaXOYXfKbqD4vpI56A==", "license": "NONE", "dependencies": { "apisauce": "^1.1.2", @@ -24718,9 +24717,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "1.3.3", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.3.tgz", - "integrity": "sha512-LLPQEJ/YPR1cryaCQbkDlPlHkBVc0wV5IrdGdKVVLQjxnl7IL/XtlrG9pj1+diPDn3P9gPn73YeqY0xBtxl24A==", + "version": "1.3.5", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.5.tgz", + "integrity": "sha512-/U14MnwbkDggd9i+HmYtLdrMGZUSsYFuwgLipSloBxZXchWrxlN0NNRTzL6AgQKokRohPaXOYXfKbqD4vpI56A==", "requires": { "apisauce": "^1.1.2", "axios-cache-adapter": "^2.7.3", --- package.json @@ -78,7 +78,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.3.3", + "@walmart/ask-sam-mini-app": "1.3.5", "@walmart/attendance-mini-app": "0.33.0", "@walmart/config-components": "4.0.1", "@walmart/core-services": "~1.4.9",
Ask Sam version update for postinstall
Ask Sam version update for postinstall
2dacda65a13a3a6e0b51a17c9844cece71f80c4b
--- packages/associate-exp-hub-hub/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.20.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.19.1...@walmart/associate-exp-hub-hub@2.20.0) (2025-12-19) + +### Features + +- **ui:** update performance of associate exp hub ([df9fffa](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/df9fffac599dcd6eb8551eac0e4b9b2bb9888b25)) + ## [2.19.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.19.0...@walmart/associate-exp-hub-hub@2.19.1) (2025-12-19) **Note:** Version bump only for package @walmart/associate-exp-hub-hub --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.19.1", + "version": "2.20.0", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.13.2](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.13.1...@walmart/associate-exp-hub-mini-app@1.13.2) (2025-12-19) + +**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app + ## [1.13.1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.13.0...@walmart/associate-exp-hub-mini-app@1.13.1) (2025-12-19) **Note:** Version bump only for package @walmart/associate-exp-hub-mini-app --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.13.1", + "version": "1.13.2", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.22.2](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.22.1...@walmart/associate-exp-hub-team-switcher@2.22.2) (2025-12-19) + +**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher + ## [2.22.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.22.0...@walmart/associate-exp-hub-team-switcher@2.22.1) (2025-12-19) **Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.22.1", + "version": "2.22.2", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.20.0 - @walmart/associate-exp-hub-mini-app@1.13.2 - @walmart/associate-exp-hub-team-switcher@2.22.2
5e039bfd6cc79d6d3cf0e46c947570c606b56ace
--- core/__tests__/termsOfUse/__snapshots__/TermsOfUseTest.tsx.snap @@ -20,18 +20,18 @@ exports[`TermsOfUseView 1`] = ` [ { "data": [], - "title": "Me@Walmart Terms of Use for Walmart U.S. Associates + "title": "MyWalmart Terms of Use for Walmart U.S. Associates DC-TDC-01-00-01", }, { "data": [ - "The purpose of the Me@Walmart Terms of use is to establish general specifications for associates who are provided with usage access to the tools on a Walmart-owned device (“Company Device”), or on a personal smartphone device (“Personal Device”) through either enrollment in the BYOD program or downloading of the Me@Walmart mobile device Applications.", + "The purpose of the MyWalmart Terms of use is to establish general specifications for associates who are provided with usage access to the tools on a Walmart-owned device (“Company Device”), or on a personal smartphone device (“Personal Device”) through either enrollment in the BYOD program or downloading of the MyWalmart mobile device Applications.", ], "title": "Purpose", }, { "data": [ - "This policy applies to all associates who work for Walmart. “Walmart” means Walmart Inc., one of its subsidiary companies or any operating units in which Walmart Inc. has a majority or controlling interest (“Walmart”).", + "This This Terms of use document applies to all associates who work for Walmart. “Walmart” means Walmart Inc., one of its subsidiary companies or any operating units in which Walmart Inc. has a majority or controlling interest (“Walmart”).", ], "title": "Target Audience", }, @@ -42,6 +42,10 @@ DC-TDC-01-00-01", ], "title": "Scope", }, + { + "data": [], + "title": "Terms of Use", + }, { "data": [ "You may use the Applications only as provided in these Terms of Use. In order to install and use the Applications, you may be required to have a compatible a GPS-enabled smart phone or tablet device that functions on Apple or Android operating systems (a "Mobile Device"), internet access, and other necessary minimum specifications as required by Walmart. You may be required to obtain software updates from time to time as may be necessary for the continued use of the Applications. Individual features offered by the Applications, such as geotracking, are not guaranteed by Walmart to be uninterrupted or error free.", @@ -178,7 +182,7 @@ DC-TDC-01-00-01", size="large" weight="700" > - Me@Walmart Terms of Use for Walmart U.S. Associates + MyWalmart Terms of Use for Walmart U.S. Associates DC-TDC-01-00-01 </Body> </View> @@ -215,7 +219,7 @@ DC-TDC-01-00-01 size="small" weight="400" > - The purpose of the Me@Walmart Terms of use is to establish general specifications for associates who are provided with usage access to the tools on a Walmart-owned device (“Company Device”), or on a personal smartphone device (“Personal Device”) through either enrollment in the BYOD program or downloading of the Me@Walmart mobile device Applications. + The purpose of the MyWalmart Terms of use is to establish general specifications for associates who are provided with usage access to the tools on a Walmart-owned device (“Company Device”), or on a personal smartphone device (“Personal Device”) through either enrollment in the BYOD program or downloading of the MyWalmart mobile device Applications. </Body> </View> </View> @@ -252,7 +256,7 @@ DC-TDC-01-00-01 size="small" weight="400" > - This policy applies to all associates who work for Walmart. “Walmart” means Walmart Inc., one of its subsidiary companies or any operating units in which Walmart Inc. has a majority or controlling interest (“Walmart”). + This This Terms of use document applies to all associates who work for Walmart. “Walmart” means Walmart Inc., one of its subsidiary companies or any operating units in which Walmart Inc. has a majority or controlling interest (“Walmart”). </Body> </View> </View>
Updated snapshots for terms of use part of rebranding
Updated snapshots for terms of use part of rebranding
e538fbbd4ef03962dac035df8c37df787a6db10e
--- graphql.yml @@ -32,7 +32,7 @@ applications: tags: - 'v1' - name: 'getForYouHeaderAssociateDetails' - hash: 'b68381014b562b9ef8c1d7ceace1428a360e4aeec862bbe203a573137862bde3' + hash: 'f19faec9c82962897ac9defbf2871bcbf9b33534cb2ea743eb56ed4b5379ff5e' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.graphql' tags: - 'v1' @@ -109,7 +109,7 @@ applications: tags: - 'v1' - name: 'getForYouHeaderAssociateDetails' - hash: 'b68381014b562b9ef8c1d7ceace1428a360e4aeec862bbe203a573137862bde3' + hash: 'f19faec9c82962897ac9defbf2871bcbf9b33534cb2ea743eb56ed4b5379ff5e' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getForYouHeaderAssociateDetails.graphql' tags: - 'v1'
feat(graphql): fix graphql.yml (#463)
feat(graphql): fix graphql.yml (#463)
69ed5b7ac7e0419bca175adfe154b2b93f5bee38
--- ios/Podfile @@ -74,7 +74,6 @@ target 'AllSpark' do # necessary for Mac Catalyst builds :mac_catalyst_enabled => false ) - flipper_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end --- ios/Podfile.lock @@ -1285,6 +1285,6 @@ SPEC CHECKSUMS: Yoga: eca980a5771bf114c41a754098cd85e6e0d90ed7 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: a7616167e9ebf9afc799d12280a050c2d3a91414 +PODFILE CHECKSUM: 5d9ba60be3dfb87f4278eff1d4ebb95b0c7dbcf4 COCOAPODS: 1.11.3
fix: remove flipper post install command
fix: remove flipper post install command
8ec1a5ecf886280e49f82914da1938bca65419b7
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -799,13 +799,7 @@ ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "$(inherited)"; OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-Wl", - "-ld_classic", - " ", - "-Wl -ld_classic ", - ); + OTHER_LDFLAGS = "$(inherited)"; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; }; @@ -869,13 +863,7 @@ MTL_ENABLE_DEBUG_INFO = NO; OTHER_CFLAGS = "$(inherited)"; OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-Wl", - "-ld_classic", - " ", - "-Wl -ld_classic ", - ); + OTHER_LDFLAGS = "$(inherited)"; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; --- ios/Podfile.lock @@ -1316,7 +1316,7 @@ PODS: - React - react-native-loudness (2.0.0): - React - - react-native-maps (1.10.4): + - react-native-maps (1.3.2): - React-Core - react-native-netinfo (9.5.0): - React-Core @@ -2132,7 +2132,7 @@ SPEC CHECKSUMS: react-native-image-resizer: d9fb629a867335bdc13230ac2a58702bb8c8828f react-native-logger: c35ed51339fcca80a2e171a75a5cd7979e96f524 react-native-loudness: 38527e7e42c3be3e4ea3d8aace2621a8eb9cafda - react-native-maps: cdc4955fc67ddc7789eb8040deab5912de66b0c5 + react-native-maps: 085f614cf14d3637b2048bb9752da5b1c27c2886 react-native-netinfo: 48c5f79a84fbc3ba1d28a8b0d04adeda72885fa8 react-native-pager-view: e26d35e382d86950c936f8917e3beb9188115ccc react-native-pdf: 79aa75e39a80c1d45ffe58aa500f3cf08f267a2e @@ -2215,6 +2215,6 @@ SPEC CHECKSUMS: Yoga: b76f1acfda8212aa16b7e26bcce3983230c82603 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 3936091d7c58d32653168dc55d4937c86af517a7 +PODFILE CHECKSUM: 7b7b281b751e96e34f3bafe613be21dba2e71ef3 COCOAPODS: 1.12.0 --- package-lock.json @@ -50,8 +50,8 @@ "@walmart/avp-feature-app": "0.2.10", "@walmart/avp-shared-library": "0.2.12", "@walmart/calling-mini-app": "0.1.13", - "@walmart/compass-sdk-rn": "5.19.3", "@walmart/checkout-mini-app": "3.9.306", + "@walmart/compass-sdk-rn": "5.19.3", "@walmart/config-components": "4.3.1", "@walmart/copilot-mini-app": "3.70.5", "@walmart/core-services": "6.0.7",
Updating pod lock
Updating pod lock
f24a9b567c8271f116dce96bde6db60bcb5c5614
--- package-lock.json @@ -4563,9 +4563,9 @@ } }, "@walmart/ui-components": { - "version": "1.3.0-beta.11", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-beta.11.tgz", - "integrity": "sha512-1C++4yF6xppcO67J1cFNDqd4h+/Mmg0j/zPHu+GISyeqNRugvl7LZxF7Y/H3DqLXDNEVls6KpsdI7ybU3s/BnQ==", + "version": "1.3.0-rc.5", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.5.tgz", + "integrity": "sha512-GPCtV+29vzyHsgxeg2QpXR2dWj20hbMRqw/Tz1dhixJ2dGpuwmsOH7gR+Jo2TQ0WAxMDE9O3vx7VzTbDegRESg==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -98,7 +98,7 @@ "@walmart/redux-store": "1.1.25", "@walmart/settings-mini-app": "1.5.0", "@walmart/time-clock-mini-app": "0.4.25", - "@walmart/ui-components": "1.3.0-beta.11", + "@walmart/ui-components": "v1.3.0-rc.5", "@walmart/refrigeration-alarms-mini-app": "1.22.0", "@walmart/schedule-mini-app": "0.6.0", "@walmart/shelfavailability-mini-app": "0.7.0", --- src/images/assets/refrigeration-alarm-badge.png Binary files a/src/images/assets/refrigeration-alarm-badge.png and b/src/images/assets/refrigeration-alarm-badge.png differ --- src/navigation/AssociateHallwayNav/Tabs/index.tsx @@ -37,6 +37,7 @@ export const AskSamPlaceholder = () => <View />; export const onAskSamTabPress = (e: EventArg<'tabPress', true, undefined>) => { e.preventDefault(); navigate('askSam'); + WmTelemetry.logEvent('bottom_nav', 'askSam_clicked', {}); }; // --- Tab Component Customization --- //
update png
update png
cb15e1e1cfc8387df4d2a5c5b9b1af34d8edd117
--- __tests__/communicationsTest.tsx @@ -1,6 +1,7 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars import React from 'react'; -import {rawChannelsList} from "./harness/firestore/data/channels"; +// @ts-ignore +import {rawChannelsList} from './harness/firestore/data/channels'; describe('Messaging', () => { it('Can send message from user A to user B', () => { --- __tests__/harness/firestore/mockDatabase.ts @@ -34,8 +34,7 @@ mockReactNativeFirestore({ encryptUserId(rawUserList[1]), ], recentRead: { - [encryptUserId(rawUserList[1])]: - staticDateStrings[3], + [encryptUserId(rawUserList[1])]: staticDateStrings[3], }, }, ], --- __tests__/screens/MessagesScreenTest.tsx @@ -40,14 +40,14 @@ describe('ChatInput', () => { it('Pressing trash can stops audio recording and discards message. User is taken back to default chat input display', () => {}); }); -// describe('sanity check firestore mock', () => { -// test('testing stuff', () => { -// return mockFirestore -// .collection('text_channels') -// .get() -// .then((userDocs: any) => { -// expect(mockCollection).toHaveBeenCalledWith('text_channels'); -// expect(userDocs.docs[0].data().name).toEqual('Homer Simpson'); -// }); -// }); -// }); +describe('sanity check firestore mock', () => { + test('testing stuff', () => { + return mockFirestore + .collection('text_channels') + .get() + .then((userDocs: any) => { + expect(mockCollection).toHaveBeenCalledWith('text_channels'); + //expect(userDocs.docs[0].data().name).toEqual('Homer Simpson'); + }); + }); +}); --- __tests__/communicationsTest.tsx @@ -1,6 +1,7 @@ // eslint-disable-next-line @typescript-eslint/no-unused-vars import React from 'react'; -import {rawChannelsList} from "./harness/firestore/data/channels"; +// @ts-ignore +import {rawChannelsList} from './harness/firestore/data/channels'; describe('Messaging', () => { it('Can send message from user A to user B', () => { --- __tests__/harness/firestore/mockDatabase.ts @@ -34,8 +34,7 @@ mockReactNativeFirestore({ encryptUserId(rawUserList[1]), ], recentRead: { - [encryptUserId(rawUserList[1])]: - staticDateStrings[3], + [encryptUserId(rawUserList[1])]: staticDateStrings[3], }, }, ], --- __tests__/screens/MessagesScreenTest.tsx @@ -40,14 +40,14 @@ describe('ChatInput', () => { it('Pressing trash can stops audio recording and discards message. User is taken back to default chat input display', () => {}); }); -// describe('sanity check firestore mock', () => { -// test('testing stuff', () => { -// return mockFirestore -// .collection('text_channels') -// .get() -// .then((userDocs: any) => { -// expect(mockCollection).toHaveBeenCalledWith('text_channels'); -// expect(userDocs.docs[0].data().name).toEqual('Homer Simpson'); -// }); -// }); -// }); +describe('sanity check firestore mock', () => { + test('testing stuff', () => { + return mockFirestore + .collection('text_channels') + .get() + .then((userDocs: any) => { + expect(mockCollection).toHaveBeenCalledWith('text_channels'); + //expect(userDocs.docs[0].data().name).toEqual('Homer Simpson'); + }); + }); +});
adding more data to firestore data model
adding more data to firestore data model
1c8d816f422bbb8cb443c88bcfec99d7472cd2ee
--- lerna.json @@ -7,7 +7,7 @@ "conventionalCommits": true, "conventionalPrerelease": false, "message": "chore(publish): publish package", - "registry": "https://npme.walmart.com" + "registry": "https://npm.ci.artifacts.walmart.com/artifactory/api/npm/npme-npm" }, "version": { "message": "chore(version): updating package version",
Update hub
Update hub
2ad03690d1bb288bb1e69c38dc5ff247e8c09748
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 133 + versionCode 134 versionName "1.0.12" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>133</string> + <string>134</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
4213a18680643857c29f4f18c802774e3c320655
--- packages/myteam-mini-app/src/Translations/locales/en-US.json @@ -18,3 +18,4 @@ "hubHeader.title": "Support your team", "myTeam.title": "Team" } +
feat: trigger translations
feat: trigger translations
dd1b33eacc09b4b09e509677bb9ea798c6235d8e
--- packages/me-at-walmart-common/src/components/Metrics/index.ts @@ -1,2 +1,3 @@ export * from './usStores'; export * from './usSupplyChain'; +export type {PayloadStatusType} from './types';
type: updated metrics container types and documentation
type: updated metrics container types and documentation
b68004f8a7b5845b5c175727b820a184a5b55ffc
--- example/src/teamHub/screens/widgets.tsx @@ -1,105 +1,64 @@ +import { HubWidget } from '@walmart/allspark-foundation/Components/Hub/HubWidget'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; -import {Body, Button, colors} from '@walmart/gtp-shared-components/dist'; +import {Body} from '@walmart/gtp-shared-components/dist'; import {View} from 'react-native'; export const Widget1 = () => { return ( - <View - style={{ - paddingTop: 24, - paddingBottom: 24, - paddingLeft: 16, - paddingRight: 16, - backgroundColor: colors.white, - borderWidth: 1, - borderColor: colors.blue['10'], - }}> - <Body>Widget 1</Body> - <View style={{minHeight: 50}} /> - <View - style={{ - padding: 16, - paddingTop: 12, - backgroundColor: colors.blue['10'], - borderRadius: 8, - }}> - <Body>Time-sensitive action that is highly recommended</Body> - <Button - variant="primary" - onPress={() => - AllsparkNavigationClient.navigate('teamHub.onboarding') - }> - View widget 1 - </Button> - </View> - </View> + <HubWidget + variant="actionable" + iconName="CalendarIcon" + moduleTitle="Time & Attendance" + shortIntro="This widget variant is actionable insight." + content={ + <View> + <Body>Widget 1</Body> + </View> + } + actionText="6 time off requests that were submitted over 2 days ago need your attention." + actionBtnText="View Widget 1" + onActionPress={() => + AllsparkNavigationClient.navigate('teamHub.onboarding')} + /> ); }; export const Widget2 = () => { return ( - <View - style={{ - paddingTop: 24, - paddingBottom: 24, - paddingLeft: 16, - paddingRight: 16, - backgroundColor: colors.white, - borderWidth: 1, - borderColor: colors.blue['10'], - }}> - <Body>Widget 2</Body> - <View style={{minHeight: 50}} /> - <View - style={{ - padding: 16, - paddingTop: 12, - backgroundColor: colors.blue['10'], - borderRadius: 8, - }}> - <Body>Time-sensitive action that is highly recommended</Body> - <Button - variant="primary" - onPress={() => - AllsparkNavigationClient.navigate('teamHub.onboarding') - }> - View widget 2 - </Button> + <HubWidget + variant="actionable" + iconName="CalendarIcon" + moduleTitle="Time & Attendance" + shortIntro="This widget variant is actionable insight." + content={ + <View> + <Body>Widget 2</Body> </View> - </View> + } + actionText="Time-sensitive action that is highly recommended." + actionBtnText="View Widget 2" + onActionPress={() => + AllsparkNavigationClient.navigate('teamHub.onboarding')} + /> ); }; export const Widget3 = () => { return ( - <View - style={{ - paddingTop: 24, - paddingBottom: 24, - paddingLeft: 16, - paddingRight: 16, - backgroundColor: colors.white, - borderWidth: 1, - borderColor: colors.blue['10'], - }}> - <Body>Widget 3</Body> - <View style={{minHeight: 50}} /> - <View - style={{ - padding: 16, - paddingTop: 12, - backgroundColor: colors.blue['10'], - borderRadius: 8, - }}> - <Body>Time-sensitive action that is highly recommended</Body> - <Button - variant="primary" - onPress={() => - AllsparkNavigationClient.navigate('teamHub.onboarding') - }> - View widget 3 - </Button> + <HubWidget + variant="actionable" + iconName="CalendarIcon" + moduleTitle="Time & Attendance" + shortIntro="This widget variant is actionable insight." + content={ + <View> + <Body>Widget 3</Body> </View> - </View> + } + actionText="Time-sensitive action that is highly recommended." + actionBtnText="View Widget 3" + onActionPress={() => + AllsparkNavigationClient.navigate('teamHub.onboarding')} + /> ); };
replace example widgets with HubWidget component
replace example widgets with HubWidget component
5e975d35843506848464dc58bfbb7ef664a161ae
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -241,6 +241,7 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { }, [defaultWidgets, teamState, widgets]); /** Bottom sheet update */ + const navigation = useNavigation(); const resetTo = (screen: string) => { navigation.reset({ index: 0, @@ -249,7 +250,6 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { }; const routeParams: any = useRoute()?.params; - const navigation = useNavigation(); const { isOnbaordingBottomSheetVisible, isTeamUpdatedBottomSheetVisible,
Update the reset to navigation
Update the reset to navigation
55ddbe7a1c146b2f792834dd5d5de0f4ba8ecb18
--- packages/allspark-foundation/src/Components/Onboarding/TeamSelection/Screens/TeamSelection.tsx @@ -9,9 +9,9 @@ import { sortTeamsAscComparator, } from '../Utils/createAreaFunction'; import { useSelector } from 'react-redux'; -// import { UserSelectors } from '../../../../User'; import { UserSelectors } from '../../../../User'; import { useGetTeamsByStoreQuery } from '@walmart/me-at-walmart-athena-queries'; +import moment from 'moment-timezone'; export const TeamSelection = () => { const useGetViewersPrimaryTeamName = () => { @@ -20,11 +20,17 @@ export const TeamSelection = () => { }; const primaryTeam = useGetViewersPrimaryTeamName(); const primaryTeamName = primaryTeam[0].teamName; - const { data, loading } = useGetTeamsByStoreQuery({ + const storeNbr: string | undefined = useSelector( + UserSelectors.getWorkingSite + ); + const countryCode: string | undefined = useSelector( + UserSelectors.getCountryCode + ); + const { data, loading, error } = useGetTeamsByStoreQuery({ variables: { - storeNbr: '100', - date: '2024-07-15', - countryCode: 'US', + storeNbr: storeNbr as string, + date: moment().format('YYYY-MM-DD'), + countryCode: countryCode as string, }, }); const teamsByWorkgroup = useMemo(() => { @@ -103,6 +109,11 @@ export const TeamSelection = () => { } }; if (loading) { + //TODO: Add loading screen + return <Spinner size='large' />; + } + if (error) { + //TODO: Add error screen return <Spinner size='large' />; } --- packages/allspark-foundation/src/Components/Onboarding/TeamSelection/types.ts @@ -93,9 +93,7 @@ export interface ListHeaderProps { export interface TeamSelectionProps { headerTitle?: string; headerSubText?: string; - // areas: Area[]; selectedanys: any[]; - // myArea: Area; primaryany: any; userType: UserType; handleSelectSingle: (anyName: any) => void;
Adding query variables
Adding query variables
9b54fa575cbba43955f4882bbbef8aea331ad30d
--- lerna.json @@ -1,19 +1,19 @@ { - "version": "independent", + "version": "6.0.14", "npmClient": "yarn", "changelogPreset": "angular", "command": { "publish": { "conventionalCommits": true, - "conventionalPrerelease": true, + "conventionalPrerelease": false, "message": "chore(publish): publish package", "registry": "https://npme.walmart.com" }, "version": { "message": "chore(version): updating package version", - "allowBranch": ["main", "develop"], + "allowBranch": ["main", "develop", "feature/*"], "conventionalCommits": true, - "conventionalPrerelease": true + "conventionalPrerelease": false } }, "ignoreChanges": ["**/*.md", "**/__tests__/**"],
chore: lerna config change
chore: lerna config change
5343d06beddc874329cb77a51aeaab0dc153ac34
--- env.teflon.js @@ -39,7 +39,6 @@ export default { clientAuthMethod: 'post', }, athena: { - // url: 'https://athena-gateway.sstage.us.walmart.net/', url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', headers: { 'WM_SVC.NAME': 'ATHENA-GATEWAY',
🔀 Merging dev code to feature/learningapp
🔀 Merging dev code to feature/learningapp
3678149d2ea047915f7474aebea4864a5d1089d7
--- package-lock.json @@ -68,7 +68,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/roster-mini-app": "1.0.1", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.1", + "@walmart/wmconnect-mini-app": "1.0.3", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11863,9 +11863,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.1", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.1.tgz", - "integrity": "sha512-dqFEnqUSqE/wwT84QJQ0wA1iHHAmZy2kFQRfZFzQanREGg2/qHBHgSibufTaY0PG4l+8nyqceHGrJxyR1ZHLBg==", + "version": "1.0.3", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.3.tgz", + "integrity": "sha512-T+tXVobre8MIG7RmE9rFdQqwPLcioXwCOjV132riMz0JAdboftlbrBTUoX9QdUo8lMXyVaKgwqUDU/O/65MyEA==", "dev": true, "hasInstallScript": true }, @@ -41090,9 +41090,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.1", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.1.tgz", - "integrity": "sha512-dqFEnqUSqE/wwT84QJQ0wA1iHHAmZy2kFQRfZFzQanREGg2/qHBHgSibufTaY0PG4l+8nyqceHGrJxyR1ZHLBg==", + "version": "1.0.3", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.3.tgz", + "integrity": "sha512-T+tXVobre8MIG7RmE9rFdQqwPLcioXwCOjV132riMz0JAdboftlbrBTUoX9QdUo8lMXyVaKgwqUDU/O/65MyEA==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -89,7 +89,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.1", + "@walmart/wmconnect-mini-app": "1.0.3", "@walmart/roster-mini-app": "1.0.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- src/screens/TabsScreen.tsx @@ -11,6 +11,7 @@ import { WmConnect, DNDSwitch, PresenceProvider, + UnreadBadge, } from '@walmart/wmconnect-mini-app'; import {RosterScreen} from '@walmart/roster-mini-app'; @@ -50,7 +51,7 @@ export const TabsScreen: React.FC<TabsScreenProps> = () => { options={{ title: t('tabsScreen.messagesTab')!, lazy: true, - //tabBarBadge: UnreadBadge, //TODO: Import from texting app + tabBarBadge: UnreadBadge, }} component={WmConnect} />
Update wm connect mini app version
Update wm connect mini app version
e1b97279a3e9f89c8a2200b41e9ddab056a2a616
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-5", + "version": "1.0.17-alpha-6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-5", + "version": "1.0.17-alpha-6", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", @@ -67,7 +67,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.16-alpha-6", + "@walmart/wmconnect-mini-app": "1.0.16-alpha-7", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11836,9 +11836,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.16-alpha-6", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-6.tgz", - "integrity": "sha512-azElIaNmfytxl6pWyb28agNksCP7zOtSgxlJvTYrqNZLvaJT45C1uodGOdRIYcPu/tbAlUZlNNcHi/R2rYFQNg==", + "version": "1.0.16-alpha-7", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-7.tgz", + "integrity": "sha512-+3Kjc6mvzbpxdWAT732DF/u2IvgWagV15oL3AjdTTGs7f+FBa/y6xvj/yCExfO3sNdRb2b7wX3AA5pT5BW4bLQ==", "dev": true, "hasInstallScript": true }, @@ -41047,9 +41047,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.16-alpha-6", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-6.tgz", - "integrity": "sha512-azElIaNmfytxl6pWyb28agNksCP7zOtSgxlJvTYrqNZLvaJT45C1uodGOdRIYcPu/tbAlUZlNNcHi/R2rYFQNg==", + "version": "1.0.16-alpha-7", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-7.tgz", + "integrity": "sha512-+3Kjc6mvzbpxdWAT732DF/u2IvgWagV15oL3AjdTTGs7f+FBa/y6xvj/yCExfO3sNdRb2b7wX3AA5pT5BW4bLQ==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.17-alpha-5", + "version": "1.0.17-alpha-6", "private": false, "main": "dist/index.js", "files": [ @@ -90,7 +90,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.16-alpha-6", + "@walmart/wmconnect-mini-app": "1.0.16-alpha-7", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- src/components/Roster/Roster.tsx @@ -1,6 +1,6 @@ import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; import {AssociateListRenderItem, RosterProps} from './types'; -import {RefreshControl} from 'react-native'; +import {RefreshControl, View} from 'react-native'; import {styles} from './styles'; import {FlashList, ListRenderItem} from '@shopify/flash-list'; import { @@ -20,7 +20,7 @@ import {displayTeamList, teamLeadJobDescriptions} from '../../redux/selectors'; import {logger} from '../../logger/Logger'; import {AssociateListItem} from './AssociateListItem'; import {filterAssociatesBySearchInput} from './search'; -import {Alert} from '@walmart/gtp-shared-components'; +import {Alert, Body} from '@walmart/gtp-shared-components'; import {useTranslation} from 'react-i18next'; import {ROSTER_I18N_NAMESPACE} from '../../translations'; import {UserSelectors} from '@walmart/redux-store'; @@ -186,7 +186,9 @@ export const Roster: React.FC<RosterProps> = (props) => { scrollToTop={handleScrollToTop} /> ) : ( - <> </> + <View style={styles.emptyState}> + <Body>{`No teams found`}</Body> + </View> )} {!!associates.length && <RosterHeader associates={associates} />} </>
Update version
Update version
c769b0051ad8a81a5f53e73c807be0a776166be8
--- packages/allspark-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-authentication", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -22,8 +22,8 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.5", - "@walmart/allspark-utils": "^5.0.0-alpha.5", + "@walmart/allspark-foundation": "^5.0.0-alpha.6", + "@walmart/allspark-utils": "^5.0.0-alpha.6", "lodash": "~4.17.21", "moment-timezone": "~0.5.37", "ts-retry-promise": "~0.7.0" --- packages/allspark-foundation/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/allspark-foundation", "private": false, - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,7 +36,7 @@ "@apollo/client": "^3.7.14", "@lifeomic/axios-fetch": "3.0.1", "@reduxjs/toolkit": "^1.9.5", - "@walmart/allspark-utils": "^5.0.0-alpha.5", + "@walmart/allspark-utils": "^5.0.0-alpha.6", "@walmart/gtp-shared-components": "^2.0.2", "axios": "~1.2.4", "crypto-js": "~4.1.1", --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js", @@ -26,6 +26,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.5" + "@walmart/allspark-foundation": "^5.0.0-alpha.6" } } --- packages/allspark-http-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-http-client", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", @@ -18,6 +18,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.5" + "@walmart/allspark-foundation": "^5.0.0-alpha.6" } } --- packages/allspark-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-utils", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,7 +18,7 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.5", - "@walmart/me-at-walmart-container": "^5.0.0-alpha.5" + "@walmart/allspark-foundation": "^5.0.0-alpha.6", + "@walmart/me-at-walmart-container": "^5.0.0-alpha.6" } } --- packages/core-services/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "", "main": "index.js", "types": "index.d.ts", @@ -15,7 +15,7 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.5", - "@walmart/allspark-utils": "^5.0.0-alpha.5" + "@walmart/allspark-foundation": "^5.0.0-alpha.6", + "@walmart/allspark-utils": "^5.0.0-alpha.6" } } --- packages/core-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-utils", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "Common functionality required across both container and mini apps.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,6 +18,6 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-utils": "^5.0.0-alpha.5" + "@walmart/allspark-utils": "^5.0.0-alpha.6" } } --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", @@ -18,6 +18,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/me-at-walmart-container": "^5.0.0-alpha.5" + "@walmart/me-at-walmart-container": "^5.0.0-alpha.6" } } --- packages/functional-components/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/functional-components", "private": false, - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "Functional Components", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -20,6 +20,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.5" + "@walmart/allspark-foundation": "^5.0.0-alpha.6" } } --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "> TODO: description", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", @@ -22,6 +22,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/me-at-walmart-container": "^5.0.0-alpha.5" + "@walmart/me-at-walmart-container": "^5.0.0-alpha.6" } } --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -25,8 +25,8 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.5", - "@walmart/allspark-utils": "^5.0.0-alpha.5", + "@walmart/allspark-foundation": "^5.0.0-alpha.6", + "@walmart/allspark-utils": "^5.0.0-alpha.6", "@walmart/config-components": "4.1.0-rc.4", "jwt-decode": "^3.1.2" }, @@ -38,9 +38,9 @@ "@react-native-firebase/crashlytics": "~15.1.1", "@react-native-firebase/database": "~15.1.1", "@react-native-firebase/perf": "~15.1.1", - "@walmart/allspark-authentication": "^5.0.0-alpha.5", - "@walmart/core-services": "^5.0.0-alpha.5", - "@walmart/core-utils": "^5.0.0-alpha.5", + "@walmart/allspark-authentication": "^5.0.0-alpha.6", + "@walmart/core-services": "^5.0.0-alpha.6", + "@walmart/core-utils": "^5.0.0-alpha.6", "@walmart/react-native-encrypted-storage": "~1.1.13", "@walmart/react-native-logger": "1.29.0", "@walmart/react-native-sumo-sdk": "2.4.0-rc.2", @@ -57,7 +57,7 @@ "@react-native-firebase/crashlytics": ">=15.1", "@react-native-firebase/database": ">=15.1", "@react-native-firebase/perf": ">=15.1", - "@walmart/allspark-authentication": ">=5.0.0-alpha.5", + "@walmart/allspark-authentication": ">=5.0.0-alpha.6", "@walmart/react-native-encrypted-storage": ">=1.1", "@walmart/react-native-logger": ">=1", "@walmart/react-native-sumo-sdk": ">=2.4", --- packages/redux-store/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/redux-store", - "version": "5.0.0-alpha.5", + "version": "5.0.0-alpha.6", "description": "Common redux store", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -19,6 +19,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.5" + "@walmart/allspark-foundation": "^5.0.0-alpha.6" } }
chore: bump alpha version
chore: bump alpha version
98cf3d1e1a7cd3e6926cd10679f62674ab8960c3
--- src/screens/RosterScreen.tsx @@ -1,11 +1,14 @@ import React from 'react'; import {Roster} from '../components/Roster/Roster'; -import {View} from 'react-native'; +import {StyleSheet, View} from 'react-native'; + +export const styles = StyleSheet.create({ + container: {paddingVertical: 24, flex: 1}, +}); -//TODO: Cannot re-use roster component, only loads on one screen or the other. Find root cause export const RosterScreen: React.FC<any> = () => { return ( - <View style={[{paddingVertical: 24, flex: 1}]}> + <View style={styles.container}> <Roster /> </View> );
updating roster screen
updating roster screen
4207a23fdf785ea6d05de46a35004dc7eea58f5f
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.10.30", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.30.tgz", - "integrity": "sha512-ByYCZxifajBYitfJjkLfrv6z+N+tmcNAGxRJNbkMILBN+O8CYy6WHOVIYoqoSXh3yQQBvkeKgyVbOa1T530ziQ==", + "version": "0.10.31", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.31.tgz", + "integrity": "sha512-5yukv2+uYejrA1Cr+4sMw23I4fGa9nj5Mvgx4K3+AhQGexNXiYhhmImKJ9YaQFsaYBKtsBL2Uc3+fyvIvuvzXw==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -50,7 +50,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.25", "@walmart/allspark-home-mini-app": "0.1.11", "@walmart/allspark-me-mini-app": "0.0.22", - "@walmart/ask-sam-mini-app": "0.10.30", + "@walmart/ask-sam-mini-app": "0.10.31", "@walmart/config-components": "1.0.14", "@walmart/feedback-all-spark-miniapp": "0.0.42", "@walmart/functional-components": "1.0.25",
Ask sam version 0.10.31 (#402)
Ask sam version 0.10.31 (#402)
3422af4e698fc24169f9a9434167e60c0792df7f
--- __tests__/settings/versions/__snapshots__/VersionsListTest.tsx.snap @@ -20,7 +20,7 @@ exports[`VersionsList 1`] = ` [ { "data": [], - "title": "Me@Walmart (undefined)", + "title": "Me@Walmart (dev)", "version": undefined, }, ] @@ -65,7 +65,7 @@ exports[`VersionsList 1`] = ` size="medium" weight="700" > - appNames.Me@Walmart (undefined) + appNames.Me@Walmart (dev) </Body> <Body size="medium" --- package.json @@ -34,8 +34,8 @@ "prebuild": "ts-node scripts/runWithVariablePrompt.ts 'expo prebuild --clean' --skipContext", "run:ios": "ts-node scripts/runWithVariablePrompt.ts 'expo run:ios'", "run:android": "ts-node scripts/runWithVariablePrompt.ts 'expo run:android'", - "test": "jest --no-watchman", - "update:snapshots": "jest --no-watchman -u", + "test": "cp src/env.beta.ts src/env.ts && jest --no-watchman", + "update:snapshots": "cp src/env.beta.ts src/env.ts && jest --no-watchman -u", "verifyBranchName": "bash ./scripts/verifyBranchName.sh", "uploadBlobToAzure": "node ./scripts/dependencies-map/src/upload-to-azure/upload-to-azure.js", "buildDependenciesMap": "node ./scripts/dependencies-map/src/deps-crawler/index.js -- -f -dm -dc path='./scripts/dependencies-map/src/config/deps-source.json' chunk_size=20", --- src/settings/versions/VersionsList.tsx @@ -15,7 +15,7 @@ import { ContainerSelectors, LibraryInfo, } from '@walmart/allspark-foundation/Container'; -import { EnvironmentSelectors } from '@walmart/allspark-foundation'; +import { EnvironmentSelectors } from '@walmart/allspark-foundation/Environment'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; import { Divider } from '@walmart/gtp-shared-components'; import Constants from "expo-constants";
chore: fix tests
chore: fix tests
652507ab3c0c64b2ce921f7d1f0d6f93b768e1d7
--- packages/allspark-graphql-client/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.0.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.2...@walmart/allspark-graphql-client@0.0.3) (2023-01-11) + +**Note:** Version bump only for package @walmart/allspark-graphql-client + + + + + ## 0.0.2 (2023-01-10) **Note:** Version bump only for package @walmart/allspark-graphql-client --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "0.0.2", + "version": "0.0.3", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js", --- packages/allspark-redux-store/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.1...@walmart/allspark-redux-store@1.0.2) (2023-01-11) + +**Note:** Version bump only for package @walmart/allspark-redux-store + + + + + ## 1.0.1 (2023-01-10) **Note:** Version bump only for package @walmart/allspark-redux-store --- packages/allspark-redux-store/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-redux-store", - "version": "1.0.1", + "version": "1.0.2", "description": "Common redux store for allspark platform", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-graphql-client@0.0.3 - @walmart/allspark-redux-store@1.0.2
a4ab50188e0ef45e331cea6e9a52583f655fdcab
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/EditSavedTeams/EditSavedTeams.tsx @@ -10,6 +10,10 @@ import { useAllsparkTranslation } from '@walmart/allspark-foundation'; import mockData from './mock'; import { useSelector } from 'react-redux'; import { editSavedTeamsEnabled } from '../../Redux'; +import { + EditSavedTeamsSectionLoading, + LoadingListItem, +} from './EditSavedTeamsLoading'; type SavedTeam = { teamId: string; @@ -38,6 +42,8 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => { const showEditSavedTeams = useSelector(editSavedTeamsEnabled); const { bottom: bottomInset } = useSafeAreaInsets(); const divider = () => <View style={styles.divider} />; + // TODO: udpate loading to come from API + const loading = false; const { t } = useAllsparkTranslation(); return ( <View style={styles.container}> @@ -49,16 +55,21 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => { onPressRightTextLink={showEditSavedTeams ? handleEdit : undefined} /> <FlashList - ListHeaderComponent={() => ( - <PillTeamListItem - isSelected - teamId={Images['saved'].teamName} - teamImage={Images['saved']} - teamName={Images['saved'].teamName} - onSelect={() => {}} - /> - )} + ListHeaderComponent={ + loading ? ( + <LoadingListItem /> + ) : ( + <PillTeamListItem + isSelected + teamId={Images['Saved'].teamName} + teamImage={Images['Saved']} + teamName={Images['Saved'].teamName} + onSelect={() => {}} + /> + ) + } ListHeaderComponentStyle={styles.headerContainer} + ListEmptyComponent={<EditSavedTeamsSectionLoading />} data={mockData.data.supplyChainTeamsByAssociate.teams} renderItem={renderSavedTeamItem} estimatedItemSize={100} --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/EditSavedTeams/EditSavedTeamsLoading.tsx @@ -0,0 +1,26 @@ +import { Skeleton } from '@walmart/gtp-shared-components'; +import React from 'react'; +import { useWindowDimensions, View } from 'react-native'; +import styles from './style'; + +export const LoadingListItem = () => { + const { width } = useWindowDimensions(); + const imageDimensions = width * 0.1; + return ( + <View style={styles.loadingListItemContainer}> + <Skeleton + height={imageDimensions} + width={imageDimensions} + variant='rounded' + /> + <Skeleton height={20} width={width * 0.66} /> + </View> + ); +}; + +export const EditSavedTeamsSectionLoading = () => { + const loadingListRenderer = new Array(3).fill(<LoadingListItem />); + return ( + <View style={styles.loadingSavedTeamsContainer}>{loadingListRenderer}</View> + ); +}; --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/EditSavedTeams/style.ts @@ -17,4 +17,17 @@ export default StyleSheet.create({ divider: { margin: 2, }, + loadingSavedTeamsContainer: { + display: 'flex', + flexDirection: 'column', + paddingHorizontal: 24, + marginLeft: 24, + }, + loadingListItemContainer: { + display: 'flex', + flexDirection: 'row', + alignItems: 'center', + gap: 8, + paddingVertical: 8, + }, }); --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ExpandedTeamShift/ExpandedTeamShift.tsx @@ -55,6 +55,7 @@ export const ExpandedTeamShift = () => { <ShiftFilterList filterListData={shiftdata} handleSelectShift={() => {}} + // TODO: update loading to come from API isLoading={false} isModal />
feat: edit saved teams loader
feat: edit saved teams loader
05c128ba33f09224e71977e6815a933980030a81
--- packages/allspark-foundation/Hooks/index.ts @@ -2,6 +2,7 @@ export { useAppState, useAppStateEffect } from './useAppState'; export { useAsync } from './useAsync'; export { useBackButton } from './useBackButton'; export { useDeviceOrientation } from './useDeviceOrientation'; +export { useIsMounted } from './useIsMounted'; export { usePaginateList } from './usePaginateList'; export { usePrevious } from './usePrevious'; export { useRegistry, createRegistryHook } from './useRegistry'; --- packages/allspark-foundation/Hooks/useIsMounted.ts @@ -0,0 +1,15 @@ +import { useEffect, useRef } from 'react'; + +export const useIsMounted = () => { + const isMounted = useRef(false); + + useEffect(() => { + isMounted.current = true; + + return () => { + isMounted.current = false; + }; + }, []); + + return isMounted.current; +}; --- packages/allspark-foundation/Hooks/useRegistry.ts @@ -1,5 +1,6 @@ -import { useEffect, useRef, useState } from 'react'; +import { useEffect, useState } from 'react'; import { Registry } from '../Utils'; +import { useIsMounted } from './useIsMounted'; /** * @description @@ -7,11 +8,11 @@ import { Registry } from '../Utils'; */ export const useRegistry = <R extends Registry>(registry: R) => { const [, setState] = useState<any>(null); - const isMounted = useRef(false); + const isMounted = useIsMounted(); function reRender() { // force re-render on registry change - if (isMounted.current) { + if (isMounted) { setState({}); } } @@ -19,6 +20,7 @@ export const useRegistry = <R extends Registry>(registry: R) => { useEffect(() => { const { remove } = registry.addChangeListener(reRender); return () => remove(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [registry]); return registry; --- packages/allspark-foundation/Utils/registry.ts @@ -14,7 +14,7 @@ export class Registry<K = string, T = any> extends Map<K, T> { this.limit = limit; } - public register(key: K, value: T) { + private __register(key: K, value: T) { if (this.has(key)) { throw new Error( `${key} key already exists on ${this.id} component registry` @@ -26,24 +26,35 @@ export class Registry<K = string, T = any> extends Map<K, T> { } this.set(key, value); - this.eventManager.runEvent('change', this.getAll()); + return this; + } + public register(key: K, value: T) { + this.__register(key, value); + this.eventManager.runEvent('change', this.getAll()); return this; } public multiRegister(list: [K, T][]) { - list.forEach((component) => this.register(...component)); + list.forEach((component) => this.__register(...component)); + this.eventManager.runEvent('change', this.getAll()); return this; } - public unregister(key: K) { + private __unregister(key: K) { this.delete(key); + return this; + } + + public unregister(key: K) { + this.__unregister(key); this.eventManager.runEvent('change', this.getAll()); return this; } public multiUnregister(list: K[]) { - list.forEach((key) => this.unregister(key)); + list.forEach((key) => this.__unregister(key)); + this.eventManager.runEvent('change', this.getAll()); return this; }
chore: add changes from other repo
chore: add changes from other repo
356e795d6055f0672c6263f2c411506f38747528
--- ios/AllSpark.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Workspace - version = "1.0"> - <FileRef - location = "self:"> - </FileRef> -</Workspace>
update to remove unnecessary file
update to remove unnecessary file
d76c96402da93bc910a3bfc1f5b09cad7a03bf2b
--- package.json @@ -249,7 +249,7 @@ "react-native-wm-telemetry": "6.3.17", "react-native-wm-voice-text": "1.0.4", "react-redux": "^8.1.3", - "realm": "12.14.0", + "realm": "12.8.1", "redux": "^4.2.1", "redux-saga": "^1.2.3", "redux-thunk": "^2.4.0", --- yarn.lock @@ -6946,7 +6946,7 @@ __metadata: react-test-renderer: "npm:18.2.0" reactotron-react-native: "npm:^5.1.12" reactotron-redux: "npm:^3.1.11" - realm: "npm:12.14.0" + realm: "npm:12.8.1" redux: "npm:^4.2.1" redux-saga: "npm:^1.2.3" redux-thunk: "npm:^2.4.0" @@ -17524,7 +17524,7 @@ __metadata: languageName: node linkType: hard -"prebuild-install@npm:^7.1.2": +"prebuild-install@npm:^7.1.1": version: 7.1.3 resolution: "prebuild-install@npm:7.1.3" dependencies: @@ -19081,9 +19081,9 @@ __metadata: languageName: node linkType: hard -"realm@npm:12.14.0": - version: 12.14.0 - resolution: "realm@npm:12.14.0" +"realm@npm:12.8.1": + version: 12.8.1 + resolution: "realm@npm:12.8.1" dependencies: "@realm/fetch": "npm:^0.1.1" bson: "npm:^4.7.2" @@ -19091,13 +19091,13 @@ __metadata: node-gyp: "npm:latest" node-machine-id: "npm:^1.1.12" path-browserify: "npm:^1.0.1" - prebuild-install: "npm:^7.1.2" + prebuild-install: "npm:^7.1.1" peerDependencies: react-native: ">=0.71.0" peerDependenciesMeta: react-native: optional: true - checksum: 10c0/716efba5da28009fef78c2dcfb120b470541fed06f3722de5e12f36a5f72cb0d049f64041a0b8583e5c3cea8e874473762e57dc6b2f94c0d193e91ad4bcadc19 + checksum: 10c0/a4ee1635fcebb1ee1ced0d630eec2a4a1ba5f8866c4bdcbde3f870f1c9f05e11272ac308f36bb2b6df19ec7dc5dca718696aa83db997f5d143b7fe024d41fb41 languageName: node linkType: hard
fix: downgrade realm to fix memory allocation error on install
fix: downgrade realm to fix memory allocation error on install
2645b341dc0955926e0ee4c5f7a922b993db1f80
--- .looper.multibranch.yml @@ -52,6 +52,18 @@ flows: - call: build-npm - (name Build JS Bundle for ${market}) npm run bundle-js + app-build-init: + - call: initialize + # - call: initialize-fastlane + - withcache('yarn-cache'): + - call: yarn-steps + - (name Set NPM Env) yarn run env:${ENV} # added to run before set-build-number + - if: ${MULTI_BUILD} + then: + - call: set-build-number + else: + - call: incremental-build-number + build-android: - node(label = docker-daemon, ws = exclusive): - dockerAgent(mdc-agent): @@ -88,3 +100,19 @@ flows: - var(errorMessage = ${flowErrorMessage}) - call: build-notification(failure) - fail("${flowErrorMessage}") + + native-common: # added to remove npm run env:${ENV} which occurs too late + - call: build-app + # - call: app-size-operations + - exposeVars(package.json) + - declare(version) + - var(version = ${package.version}) + - if: | + %{ BUILD_TYPE == "SNAPSHOT" } + then: + - var(version = "${version}-${ENV}-SNAPSHOT") + - call: upload-app + - if: | + %{ ENV != "prod" } + then: + - call: build-notification(success)
chore: looper fix
chore: looper fix
045a4ac843ae8ab4f8fc4c3d5c3f3c736558dfce
--- .looper-pr.yml @@ -26,6 +26,7 @@ envs: ARTIFACT_PUBLISH: true AUTO_PR_MONO: false JIRAPREFIX: SSMP + ALLOW_NPM_PUSH_TO_AF: true MONO_REPO: allspark/allspark-core MONO_REPO_BASE_BRANCH: develop AUTHOR: temp --- .looper.yml @@ -6,6 +6,11 @@ tools: flavor: azul version: 17 +envs: + global: + variables: + ALLOW_NPM_PUSH_TO_AF: true + flows: default: - call: pr --- .yarnrc.yml @@ -1,3 +1,5 @@ +enableInlineHunks: true + nodeLinker: node-modules +npmRegistryServer: ${REPOSOLNS_NPM_REPO} -npmRegistryServer: "https://npme.walmart.com/"
Update the myteam changes for looper
Update the myteam changes for looper
9cbbeb3917a0cebea3017726e04c1cef664adcb8
--- __tests__/channels/components/__snapshots__/ChannelRow.test.tsx.snap @@ -91,7 +91,7 @@ exports[`ChannelRow should render ChannelRow Component 1`] = ` testID="channelRowContent" > <View - accessibilityLabel="one on one message, bob, swalton, hwalton, dmj00b5, alstamp, werober, fsduren, m0r08qm, elnevli, No unread messages, Latest message: No messages found, Now. Double tap to open direct message conversation" + accessibilityLabel="bob, swalton, hwalton, dmj00b5, alstamp, werober, fsduren, m0r08qm, elnevli, No unread messages, Latest message: No messages found, Now" accessibilityRole="button" accessible={true} style={ --- __tests__/components/__snapshots__/DNDHeader.test.tsx.snap @@ -89,8 +89,8 @@ exports[`DNDHeader Component should handle when user is online 1`] = ` Do not disturb </Text> <View - accessibilityLabel="Do not disturb is Off" - accessibilityRole="button" + accessibilityLabel="Do not disturb off" + accessibilityRole="switch" accessibilityState={ { "busy": undefined, @@ -207,8 +207,8 @@ exports[`DNDHeader Component should render correctly 1`] = ` Do not disturb </Text> <View - accessibilityLabel="Do not disturb is Off" - accessibilityRole="button" + accessibilityLabel="Do not disturb off" + accessibilityRole="switch" accessibilityState={ { "busy": undefined, --- __tests__/components/__snapshots__/NewMessageHeader.test.tsx.snap @@ -14,7 +14,7 @@ exports[`MessagesHeader should render message header 1`] = ` } > <View - accessibilityLabel="Close Messages Screen" + accessibilityLabel="Close" accessibilityRole="button" accessibilityState={ { --- __tests__/containers/ChatInput/__snapshots__/AudioRecording.test.tsx.snap @@ -13,6 +13,8 @@ exports[`AudioRecording should render as expected with required props and option } > <View + accessibilityLabel="stop recording audio message" + accessibilityRole="button" accessibilityState={ { "busy": undefined, @@ -151,6 +153,8 @@ exports[`AudioRecording should render as expected with required props and option } > <View + accessibilityLabel="stop recording audio message" + accessibilityRole="button" accessibilityState={ { "busy": undefined, --- __tests__/screens/ChannelsScreen/__snapshots__/ChannelsScreenTest.tsx.snap @@ -131,8 +131,8 @@ exports[`ChannelsScreen should render expected components 1`] = ` Do not disturb </Text> <View - accessibilityLabel="Do not disturb is Off" - accessibilityRole="button" + accessibilityLabel="Do not disturb off" + accessibilityRole="switch" accessibilityState={ { "busy": undefined, --- __tests__/screens/MessagesScreen/__snapshots__/OneToOneChatTests.tsx.snap @@ -174,7 +174,7 @@ exports[`Messages Screen One To One Chat should load list empty state when no me } > <View - accessibilityLabel="Close Messages Screen" + accessibilityLabel="Close" accessibilityRole="button" accessibilityState={ { @@ -1010,7 +1010,7 @@ exports[`Messages Screen One To One Chat should send a text message and push not } > <View - accessibilityLabel="Close Messages Screen" + accessibilityLabel="Close" accessibilityRole="button" accessibilityState={ { --- __tests__/screens/NewMessageScreen/__snapshots__/NewMessageScreenTest.tsx.snap @@ -28,7 +28,7 @@ exports[`NewMessageScreen should render with expected elements 1`] = ` } > <View - accessibilityLabel="chat" + accessibilityLabel="close" accessibilityRole="button" accessibilityState={ { @@ -431,7 +431,7 @@ exports[`NewMessageScreen should show spinner when loading 1`] = ` } > <View - accessibilityLabel="chat" + accessibilityLabel="close" accessibilityRole="button" accessibilityState={ { --- src/channels/components/ChannelRow.tsx @@ -189,21 +189,12 @@ export const ChannelRow = (props: ChannelRowProps) => { } } - const channelTypeLabel = group - ? `Group chat with ${recipients.length} members` - : 'one on one message'; - const unreadStatusLabel = unread ? `Unread ${unreadCount ? `${unreadCount} messages` : 'messages'}` : 'No unread messages'; - - const actionLabel = `Double tap to open ${ - group ? 'group conversation' : 'direct message conversation' - }`; - - return `${channelTypeLabel}, ${channelName}, ${ + return `${channelName}, ${ clockedInStatusLabel ? `${clockedInStatusLabel}, ` : '' - }${unreadStatusLabel}, Latest message: ${messagePreview}, ${timeStampLabel}. ${actionLabel}`; + }${unreadStatusLabel}, Latest message: ${messagePreview}, ${timeStampLabel}`; }; const unreadWeight = unread ? '700' : '400'; --- src/components/DND/DNDHeader.tsx @@ -77,9 +77,9 @@ export const DNDHeader = ({isLoading = false}: DNDHeaderProps) => { isOn={dndPreference === 'offline'} onValueChange={onStatusChange} testID='dndSwitch' - accessibilityRole='button' - accessibilityLabel={`${t('userHeader.dndPreference')} is ${ - dndPreference === 'offline' ? t('userHeader.on') : t('userHeader.off') + accessibilityRole='switch' + accessibilityLabel={`${t('userHeader.dndPreference')} ${ + dndPreference === 'offline' ? 'on' : 'off' }`} accessibilityState={{selected: dndPreference === 'offline'}} /> --- src/components/MessagesHeader.tsx @@ -70,7 +70,7 @@ export const NewMessageHeader = (props: { onPress={onClose} style={styles.closeButton} accessibilityRole='button' - accessibilityLabel='chat' + accessibilityLabel='close' testID='newMessageHeaderCloseButton' > <CloseIcon size={24} /> @@ -134,7 +134,7 @@ export const MessagesHeader = (props: { style={styles.closeButton} focusable={true} accessibilityRole='button' - accessibilityLabel='Close Messages Screen' + accessibilityLabel='Close' testID='messagesHeaderCloseButton' > <CloseIcon size={24} /> --- src/containers/ChatInput/AudioRecording.tsx @@ -137,6 +137,8 @@ export const AudioRecording = (props: { <View style={[styles.container, style]}> <ActionButton testID={'chatInputStopButton'} + accessibilityRole='button' + accessibilityLabel='stop recording audio message' onPressIn={completeRecording} icon='PauseIcon' />
fix: ADA bugs
fix: ADA bugs
ba94ea34312127db1871d5e7926c965391bda810
--- package.json @@ -148,11 +148,11 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.30.1", + "@walmart/allspark-foundation": "6.30.3", "@walmart/allspark-foundation-hub": "1.2.10", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", - "@walmart/allspark-utils": "~6.5.0", + "@walmart/allspark-utils": "~6.5.3", "@walmart/core-services": "~6.5.2", "@walmart/core-services-allspark": "workspace:^", "@walmart/core-utils": "~6.3.9", --- targets/US/package.json @@ -74,14 +74,14 @@ "@sharcoux/slider": "^6.1.1", "@shopify/flash-list": "~1.6.4", "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", - "@walmart/allspark-authentication": "~6.4.1", + "@walmart/allspark-authentication": "~6.4.7", "@walmart/allspark-cope-key-listener": "0.0.18", - "@walmart/allspark-foundation": "6.30.1", + "@walmart/allspark-foundation": "6.30.3", "@walmart/allspark-foundation-hub": "1.2.10", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", - "@walmart/allspark-utils": "6.5.0", + "@walmart/allspark-utils": "6.5.3", "@walmart/amp-mini-app": "1.1.98", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.28.12", --- yarn.lock @@ -6041,11 +6041,11 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-authentication@npm:~6.4.1": - version: 6.4.4 - resolution: "@walmart/allspark-authentication@npm:6.4.4" +"@walmart/allspark-authentication@npm:~6.4.7": + version: 6.4.7 + resolution: "@walmart/allspark-authentication@npm:6.4.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-authentication%2F-%2F%40walmart%2Fallspark-authentication-6.4.7.tgz" dependencies: - "@walmart/allspark-utils": "npm:^6.5.1" + "@walmart/allspark-utils": "npm:^6.5.3" lodash: "npm:~4.17.21" ts-retry-promise: "npm:~0.7.1" peerDependencies: @@ -6053,7 +6053,7 @@ __metadata: react: "*" react-native: "*" react-native-app-auth: ">=6" - checksum: 10c0/f15f4f1a037edabb9e773e164060373adf419e13fd778baea79d84f9f2cb589ee7709849b3d4ec62be8209ec1975cd5568257239f2e6643ace66874204318ee4 + checksum: 10c0/2689b823d85b6b7e1a6029d92a98aa1d3cf8c7b3ef7206128c052fe68af3957ab2d55ca0f7d012c8fce3e93733742ca409e1ee657fbd832415dc7126c9990b37 languageName: node linkType: hard @@ -6084,9 +6084,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.30.1": - version: 6.30.1 - resolution: "@walmart/allspark-foundation@npm:6.30.1" +"@walmart/allspark-foundation@npm:6.30.3": + version: 6.30.3 + resolution: "@walmart/allspark-foundation@npm:6.30.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-6.30.3.tgz" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -6096,7 +6096,7 @@ __metadata: "@graphql-codegen/typescript-react-apollo": "npm:^4.1.0" "@reduxjs/toolkit": "npm:^1.9.7" "@types/node-fetch": "npm:^2.6.9" - "@walmart/allspark-utils": "npm:^6.5.1" + "@walmart/allspark-utils": "npm:^6.5.3" axios: "npm:~1.6.0" axios-cache-interceptor: "npm:^1.3.2" crypto-js: "npm:~4.2.0" @@ -6174,8 +6174,8 @@ __metadata: react-native-flipper: optional: true bin: - allspark-generate-graphql: cli/generate.js - checksum: 10c0/33428797e01de2b8a74f2533cb18ddc5ab8aca5a618e8c021027981f1e7957fc7cf74c3b1c5247c76f4135512a517b800286543624f3b1109a8813733ca30828 + allspark-generate-graphql: ./cli/generate.js + checksum: 10c0/d368b3d90bc712af963e9291d14f2de06ed819bbc1e31b166376f89d9e9f8feeed2bb1617291f32a47a9ede4bfd0be238d9a9e4d7933112ecc85c4e662685547 languageName: node linkType: hard @@ -6246,9 +6246,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-utils@npm:~6.5.0": - version: 6.5.1 - resolution: "@walmart/allspark-utils@npm:6.5.1" +"@walmart/allspark-utils@npm:~6.5.3": + version: 6.5.3 + resolution: "@walmart/allspark-utils@npm:6.5.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-utils%2F-%2F%40walmart%2Fallspark-utils-6.5.3.tgz" dependencies: crypto-js: "npm:~4.2.0" lodash: "npm:~4.17.21" @@ -6258,7 +6258,7 @@ __metadata: peerDependencies: react: "*" react-native: "*" - checksum: 10c0/addcb1ba3257ff4af92fbe823e721e20f4b241c73f0d0745f2513ecbd2179a41278376d0031a2ec4b41f1c62bd6be1675f8144382141855bef30fa1cbee8c84f + checksum: 10c0/42ffeec4b698be53fe475a26e25866b43b46ad42bb36479733037f2b8aefea2ac2f8ec38f121bd2717e46341a8e038a821e087f0caf29826bcf062741426f936 languageName: node linkType: hard @@ -7371,14 +7371,14 @@ __metadata: "@types/seamless-immutable": "npm:^7.1.16" "@types/semver": "npm:^7.3.4" "@types/uuid": "npm:^8.3.0" - "@walmart/allspark-authentication": "npm:~6.4.1" + "@walmart/allspark-authentication": "npm:~6.4.7" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:6.30.1" + "@walmart/allspark-foundation": "npm:6.30.3" "@walmart/allspark-foundation-hub": "npm:1.2.10" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31" - "@walmart/allspark-utils": "npm:6.5.0" + "@walmart/allspark-utils": "npm:6.5.3" "@walmart/amp-mini-app": "npm:1.1.98" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.28.12"
version bump for allspark packages
version bump for allspark packages
e3707483b85e786912d9c62ffad9fa22076b0973
--- package-lock.json @@ -3112,9 +3112,9 @@ "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ==" }, "@walmart/react-native-logger": { - "version": "1.17.0", - "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.17.0.tgz", - "integrity": "sha512-w24FqjMlN7cygVlAbFI7avhkup54mfFur9sHH3rgCQ80Gv/6Es9+I2/n7qSauCMHeJcOpfoM4w/Dr/pK6pAQ6g==" + "version": "1.18.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.18.0.tgz", + "integrity": "sha512-4Gkw2/LGhnLqNOMZPrO1vBx1DnzfxnbyXzuxUY1LdUTrDWGY34u5V02XUsePQh+Y+x+DpRdEAuJkXPbnuFfQlw==" }, "@walmart/react-native-shared-navigation": { "version": "0.3.0", --- package.json @@ -59,7 +59,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.0.76", "@walmart/react-native-env": "^0.1.0", - "@walmart/react-native-logger": "^1.17.0", + "@walmart/react-native-logger": "^1.18.0", "@walmart/react-native-shared-navigation": "^0.3.0", "@walmart/redux-store": "^1.0.11", "@walmart/schedule-mini-app": "0.2.54",
logger version bump (#297)
logger version bump (#297)
3394d811d06a21f103f82343a57f5d568317e05c
--- packages/allspark-graphql-client/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.0.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.7...@walmart/allspark-graphql-client@0.0.8) (2023-01-13) + +**Note:** Version bump only for package @walmart/allspark-graphql-client + + + + + ## [0.0.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.6...@walmart/allspark-graphql-client@0.0.7) (2023-01-12) **Note:** Version bump only for package @walmart/allspark-graphql-client --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "0.0.7", + "version": "0.0.8", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js", --- packages/allspark-redux-store/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.6...@walmart/allspark-redux-store@1.0.7) (2023-01-13) + +**Note:** Version bump only for package @walmart/allspark-redux-store + + + + + ## [1.0.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.5...@walmart/allspark-redux-store@1.0.6) (2023-01-12) **Note:** Version bump only for package @walmart/allspark-redux-store --- packages/allspark-redux-store/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-redux-store", - "version": "1.0.6", + "version": "1.0.7", "description": "Common redux store for allspark platform", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-graphql-client@0.0.8 - @walmart/allspark-redux-store@1.0.7
3451e5763cf2e11399323c0f078bde98d8c05092
--- targets/US/package.json @@ -84,7 +84,7 @@ "@walmart/allspark-utils": "6.5.0", "@walmart/amp-mini-app": "1.1.89", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.24.7", + "@walmart/ask-sam-mini-app": "1.25.1", "@walmart/associate-listening-mini-app": "1.2.7", "@walmart/attendance-mini-app": "3.95.0", "@walmart/avp-feature-app": "0.10.7", --- yarn.lock @@ -5893,12 +5893,11 @@ __metadata: languageName: node linkType: hard -"@walmart/ask-sam-mini-app@npm:1.24.7": - version: 1.24.7 - resolution: "@walmart/ask-sam-mini-app@npm:1.24.7" +"@walmart/ask-sam-mini-app@npm:1.25.1": + version: 1.25.1 + resolution: "@walmart/ask-sam-mini-app@npm:1.25.1" dependencies: apisauce: "npm:^1.1.2" - axios-cache-adapter: "npm:>=2.7.3" numeral: "npm:^2.0.6" reduxsauce: "npm:^1.2.0" peerDependencies: @@ -5942,7 +5941,7 @@ __metadata: react-native-wm-voice-text: ">=0.3" reselect: ">=4" victory-native: ">=36.5" - checksum: 10c0/1c985416ec8b4414507dc3b4a29e3bf2c0ec2abe6845971fe5eee7a521160dba64731f14ff60059b0d2ae0c6d19c6109d100930d2c79caf725683a251ab52869 + checksum: 10c0/a6966e4bd0ea4a5b458c5ff8feacec2d9b684681bce66dc877f3346a40a239b87c4acf1035474b9abcfc3e6fd6c2cb3f94d834eb98efa9567ee6271042e8a3da languageName: node linkType: hard @@ -7000,7 +6999,7 @@ __metadata: "@walmart/allspark-utils": "npm:6.5.0" "@walmart/amp-mini-app": "npm:1.1.89" "@walmart/ask-sam-chat-components": "npm:^0.2.7" - "@walmart/ask-sam-mini-app": "npm:1.24.7" + "@walmart/ask-sam-mini-app": "npm:1.25.1" "@walmart/associate-listening-mini-app": "npm:1.2.7" "@walmart/attendance-mini-app": "npm:3.95.0" "@walmart/avp-feature-app": "npm:0.10.7"
ask sam version bump
ask sam version bump
104cc2497c9b17c69a612905a12b2990a493bcd4
--- package-lock.json @@ -4291,9 +4291,9 @@ "integrity": "sha512-6cO57SnVFT8MhLIajydD87lM7tLyNjS2N71It4x2ae8hCpyjHX+z8Bk7VrFqDAO/kGLyz8gA1C0xdm/MzpiMOw==" }, "@walmart/ims-print-services-ui": { - "version": "0.1.28", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.1.28.tgz", - "integrity": "sha512-4BfIUUhQ8cmG3+GPkbtEAdO0eAcgYPe2a6AcUSUh4+O6URLa1TpgYMzaA5vCIxRuv0SrEfwbmC06vMDtGkPsow==" + "version": "0.1.34", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.1.34.tgz", + "integrity": "sha512-kGPI7/o+3DiIAhMTyPco72J7ftlJLPO/Eh+W2aCnFEHlH6ngKIOUrX3xSK8Lm9rBVWL3q2ZGzqCqsJXjwJW5ww==" }, "@walmart/inbox-mini-app": { "version": "0.37.0", --- package.json @@ -83,7 +83,7 @@ "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", "@walmart/impersonation-mini-app": "1.0.28-beta.8", - "@walmart/ims-print-services-ui": "0.1.28", + "@walmart/ims-print-services-ui": "0.1.34", "@walmart/inbox-mini-app": "0.37.0", "@walmart/iteminfo-mini-app": "4.2.1", "@walmart/manager-approvals-miniapp": "0.0.59",
bumping up print version
bumping up print version
0443f3cac10b84b586a332bf4de9866e8f135094
--- package.json @@ -221,6 +221,7 @@ }, "overrides": { "@react-native-community/datetimepicker": "$@react-native-community/datetimepicker", + "@walmart/allspark-utils": "^1.5.0", "@walmart/allspark-graphql-client": "$@walmart/allspark-graphql-client", "@walmart/allspark-http-client": "^2.4.7", "@walmart/core-services": "$@walmart/core-services",
chore: adding utils to overrides
chore: adding utils to overrides
02dbd8702584e35beeb0d973ac0cea7cd8825e5a
--- src/hooks/useFilterCounts.ts @@ -1,5 +1,5 @@ import {useMemo} from 'react'; -import {useOfflineIds} from '../presence/hooks'; +// import {useOfflineIds} from '../presence/hooks'; import {Associate} from '../types'; import { associateIsAbsent, @@ -11,7 +11,7 @@ import {useSelector} from 'react-redux'; import {getEncryptedUserId} from '../redux/selectors'; export const useFilterCounts = (associates: Associate[]) => { - const offlineUserIds = useOfflineIds(); + // const offlineUserIds = useOfflineIds(); const viewerId = useSelector(getEncryptedUserId); /** @@ -49,12 +49,13 @@ export const useFilterCounts = (associates: Associate[]) => { * is monitored through a firestore snapshot. Merging its values seperately from rosterCounts * so that presence changes don't trigger recalculation of other statuses */ - return useMemo( - () => ({ - ...rosterCounts, - [FilterValue.online]: offlineUserIds.filter((id) => id === viewerId) - .length, - }), - [rosterCounts, offlineUserIds], - ); + //TODO: Revise integration with presence. Do not use consumer providers for this applicaton. Just attach a listener on the roster screen + // return useMemo( + // () => ({ + // ...rosterCounts, + // [FilterValue.online]: offlineUserIds.filter((id) => id === viewerId) + // .length, + // }), + // [rosterCounts, offlineUserIds], + // ); }; --- src/index.tsx @@ -8,7 +8,6 @@ import {HttpClientCloneProvider} from '@walmart/allspark-http-client'; import {getHttpConfig, HTTP_CLIENT_KEY} from './services/config'; import {TextingNavigation} from './navigation'; import {initi18n} from './translations'; -import {MeganavScreen} from './screens/MeganavScreen'; import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; import {SafeAreaProvider} from 'react-native-safe-area-context'; import {analytics} from './logger/Analytics'; @@ -63,8 +62,6 @@ firestore() }); }); -export const MeganavTextingScreen = MeganavScreen; - export const RosterMiniApp = () => { const envConfig = useEnvironment(); const httpConfig = useMemo(() => getHttpConfig(envConfig), [envConfig]); --- src/utils/blob.ts @@ -1,86 +0,0 @@ -import {Platform} from 'react-native'; -import * as FileSystem from 'expo-file-system'; -import {stat} from 'react-native-fs'; -import moment from 'moment-timezone'; - -// --- Local Blob Storage --- // -// Interaction with the local filesystem -export const LOCAL_STORAGE_DIR = 'TextingMiniApp'; - -// Where our blob files stored locally -export const blobLocalStoragePath = Platform.select({ - ios: `${FileSystem.documentDirectory}${LOCAL_STORAGE_DIR}`, - android: `${FileSystem.documentDirectory}${LOCAL_STORAGE_DIR}`, -}); - -// For a URI get the file name, ex: -// directedvoice/ptt/v1/azure/us-100/recording-123.m4a -> recording-123.m4a -export const getFileNameFromURI = (uri: string): string => { - const path = uri.split('/'); - return path.length > 1 ? (path.pop() as string) : path[0]; -}; - -// Construct local file URI from file name -export const getFileURIFromName = (fileName: string) => - `${blobLocalStoragePath}/${fileName}`; - -// Read contents of file by full URI -export const readFileByURI = (uri: any) => - FileSystem.readAsStringAsync(uri, {encoding: 'base64'}).catch( - () => undefined, - ); - -// Read contents of file by name (will assume we're looking for texting blob files) -export const readFileByName = (fileName: string) => - readFileByURI(getFileURIFromName(fileName)); - -// Checks if a file exists in texting directory -export const fileExists = async (uri: string) => { - try { - const file = await FileSystem.getInfoAsync(uri); - return file.exists; - } catch (e) { - return false; - } -}; - -export const writeFile = FileSystem.writeAsStringAsync; - -// Checks if texting directory exists, if so, checks to see what should be purged -// if not, the director will be created -export const initLocalBlobStorageDir: () => Promise<boolean> = async () => { - if (blobLocalStoragePath) { - const directory = await FileSystem.getInfoAsync(blobLocalStoragePath); - - if (directory.exists) { - purgeOldFiles(); - } else { - await FileSystem.makeDirectoryAsync(blobLocalStoragePath); - } - - return true; - } - return false; -}; - -/* - * This value needs to be matching with the purging policy on firestore - * otherwise it will download the files again that is supposed to be deleted - */ -const DAYS_THRESHOLD = 7; - -export const purgeOldFiles = async () => { - if (blobLocalStoragePath) { - const files = await FileSystem.readDirectoryAsync(blobLocalStoragePath); - const currentDate = moment(); - - for (const file of files) { - const info = await stat(`${blobLocalStoragePath}/${file}`); - const createdAt = moment(info.ctime); - const daysDiff = currentDate.diff(createdAt, 'days'); - if (daysDiff > DAYS_THRESHOLD) { - FileSystem.deleteAsync(`${blobLocalStoragePath}/${file}`); - } - } - } -}; --- src/utils/index.ts @@ -1,6 +1,3 @@ -export * from './messages'; -export * from './blob'; export * from './user'; -export * from './media'; export * from './assoicateList'; export * from './timestamps'; --- src/utils/media.ts @@ -1,14 +0,0 @@ -/** - * @description Conver ms for audio timestamp - * @param ms - * @returns timestamp mm:ss - */ -export const msToTimeStamp = (ms: number) => { - const allSeconds = Math.floor(ms / 1000); - const minutes = Math.floor(allSeconds / 60); - const seconds = allSeconds - 60 * minutes; - const timestamp = `${minutes.toString().padStart(2, '0')}:${seconds - .toString() - .padStart(2, '0')}`; - return timestamp; -};
remove unused code and plan setup for presence rearchitecture
remove unused code and plan setup for presence rearchitecture
5ac0ca993d4228a8ba04efa3c8375e96e4878271
--- package-lock.json @@ -4592,9 +4592,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.4.6", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.4.6.tgz", - "integrity": "sha512-WA7JUvkQ4KaPnYqYJnKjDWHr2rRKte9n9roGMHxBXLKjQb7tpYDMRB0CnsB1Z3E5gHa59nTXcnkghQLOC5yKsw==", + "version": "1.4.8", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.4.8.tgz", + "integrity": "sha512-5is3h7cqc82esSI/gJ+r8eUGAn95l5SywmhwYOfYPhxfNOQ+G+ecnSsmfeRpVLqZq0bTilkHlyCk6pbKk5Jhyw==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", --- 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.6", + "@walmart/core-services-allspark": "^1.4.8", "@walmart/core-utils": "^1.0.8", "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.41.1",
bump core services for logging fix
bump core services for logging fix
82168bd1e78fbe90986d07e2f65b23020e387e67
--- package-lock.json @@ -4243,9 +4243,9 @@ } }, "@walmart/impersonation-mini-app": { - "version": "1.0.24-beta.1", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.24-beta.1.tgz", - "integrity": "sha512-9V6N9SUWp/I2KE9yK9vW4Z6VKYe7tPUkIeUHXrEX2sqNEkdR0+KMG3M2R+ZYwYq1ZkPl5aghD8z/9F35xvSYsQ==" + "version": "1.0.25", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.25.tgz", + "integrity": "sha512-limoA+Nv9UjO+O6fqRcJr0NDAhtKd8wzDOTkU4tOFkj6TToYAYMotdrYKwZuiaMUpFLCbFPqOJMeHUjQR9RaHg==" }, "@walmart/ims-print-services-ui": { "version": "0.0.36", --- package.json @@ -81,7 +81,7 @@ "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", - "@walmart/impersonation-mini-app": "1.0.24-beta.1", + "@walmart/impersonation-mini-app": "1.0.25", "@walmart/ims-print-services-ui": "0.0.36", "@walmart/inbox-mini-app": "0.22.0", "@walmart/iteminfo-mini-app": "2.0.16",
added impersonation version bump
added impersonation version bump
4ac0088b5249d0c80f236891ddf847c8cb3c4e0c
--- src/ccmFallbacks.ts @@ -12,6 +12,7 @@ export const CCMFallbacks = { DNDOfflineTimeLimit: 43200, DNDAutoSwitchThreshold: 120, DNDAutoSwitchFeatureFlag: true, + showViewTimeClock: false, showJobDescription: true, showManagerSchedule: true, showHourlySchedule: true, --- src/redux/selectors.ts @@ -145,6 +145,13 @@ export const getSearchText = createSelector( (state) => state?.searchText, ); +export const showViewTimeClock = createSelector( + [getTextingAppConfigData], + (state) => + state?.showViewTimeClock?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.showViewTimeClock, +); + /**New fields added */ export const displayJobDescription = createSelector( [getTextingAppConfigData],
Update new fields for feature flag
Update new fields for feature flag
13cf754d170355cd79eeae2d53c45d27c3af0b75
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -67,13 +67,6 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` /> <Screen name="PttSearchScreen" - options={ - Object { - "cardStyleInterpolator": [MockFunction], - "gestureDirection": "vertical", - "gestureEnabled": true, - } - } /> <Screen component="TimeClockScreen" @@ -337,13 +330,6 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] /> <Screen name="PttSearchScreen" - options={ - Object { - "cardStyleInterpolator": [MockFunction], - "gestureDirection": "vertical", - "gestureEnabled": true, - } - } /> <Screen component="TimeClockScreen" --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -177,13 +177,7 @@ export const MainStackNav = () => { <MainStack.Screen name='PttSearchScreen' component={Components.SearchScreen} - options={{ - ...Properties.SearchNavProperties, - gestureEnabled: true, - gestureDirection: 'vertical', - cardStyleInterpolator: - modalTransitionOptions.cardStyleInterpolator, - }} + options={Properties.SearchNavProperties} /> <MainStack.Screen name='timeClock'
PTT fix for Search screen navigation (#902)
PTT fix for Search screen navigation (#902) * fixing Ptt navigation * Fixed the tests
6eb4cff4dc356a47a81adc809c9df8cc1e631019
--- src/codeOfConduct/service.ts @@ -15,7 +15,7 @@ export const getCodeOfConductData = async ( } catch (e) { const err = e as Error; logger.error('Error getting code of conduct: is acknowleged', { - message: `Error getting code of conduct: is acknowleged ${err}`, + message: `Error getting code of conduct: is acknowleged ${err.message}`, }); setIsAcknowledged(false); } --- src/codeOfConduct/service.ts @@ -15,7 +15,7 @@ export const getCodeOfConductData = async ( } catch (e) { const err = e as Error; logger.error('Error getting code of conduct: is acknowleged', { - message: `Error getting code of conduct: is acknowleged ${err}`, + message: `Error getting code of conduct: is acknowleged ${err.message}`, }); setIsAcknowledged(false); }
adding error message
adding error message
2cad619616ff3f1c3bfef21d2b44b6c0921758ab
--- package-lock.json @@ -36,7 +36,7 @@ "@walmart/amp-mini-app": "1.1.30", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.74", - "@walmart/attendance-mini-app": "0.190.0", + "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "3.16.17", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.19", @@ -4848,9 +4848,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "0.190.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.190.0.tgz", - "integrity": "sha512-+c4y+KgG7GzHgNwvv2wLQ6tXsRH7VafmR5aWVn2WmLY/kiPMmKoLQAVQoVNfHTOF7aL5T3lanCeR1udRwdljtw==", + "version": "0.190.2", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.190.2.tgz", + "integrity": "sha512-/Q+xnLF/VG/yQqDAeSch/k2N/J+Y6etnlHJsX5QN21WPqf1NBgc9e+PgL7EpelP+ZPlIcN4ZcU0FsHW70bb7eg==", "dependencies": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", @@ -25160,9 +25160,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "0.190.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.190.0.tgz", - "integrity": "sha512-+c4y+KgG7GzHgNwvv2wLQ6tXsRH7VafmR5aWVn2WmLY/kiPMmKoLQAVQoVNfHTOF7aL5T3lanCeR1udRwdljtw==", + "version": "0.190.2", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.190.2.tgz", + "integrity": "sha512-/Q+xnLF/VG/yQqDAeSch/k2N/J+Y6etnlHJsX5QN21WPqf1NBgc9e+PgL7EpelP+ZPlIcN4ZcU0FsHW70bb7eg==", "requires": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", --- package.json @@ -78,7 +78,7 @@ "@walmart/amp-mini-app": "1.1.30", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.74", - "@walmart/attendance-mini-app": "0.190.0", + "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "3.16.17", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.19",
attenance mini app version 0.190.2
attenance mini app version 0.190.2
d1e090fc49e8e1326f39aefc95e4ca2b1f292b46
--- src/auth/constants.ts @@ -25,35 +25,35 @@ export const defaultConfig = { issues: [ { 'en-US': 'Clock-in/clock-out issue', - 'es-MX': 'Clock-in/clock-out issue', + 'es-MX': 'Problema de registro de entrada/salida', }, { 'en-US': '2-step verification failure', - 'es-MX': '2-step verification failure', + 'es-MX': 'Fallo de verificación de 2 pasos', }, { 'en-US': 'Store transfer issue', - 'es-MX': 'Store transfer issue', + 'es-MX': 'Problema de transferencia de tienda', }, { 'en-US': 'New phone or new number', - 'es-MX': 'New phone or new number', + 'es-MX': 'Nuevo teléfono o nuevo número', }, { 'en-US': "Didn't receive text verification", - 'es-MX': "Didn't receive text verification", + 'es-MX': 'No recibí la verificación por mensaje de texto ', }, { 'en-US': "Can't receive push notifications", - 'es-MX': "Can't receive push notifications", + 'es-MX': 'No puedo recibir push notifications', }, { 'en-US': 'Store Wi-Fi issue', - 'es-MX': 'Store Wi-Fi issue', + 'es-MX': 'Problema con el Wi-Fi de la tienda', }, { 'en-US': 'Other', - 'es-MX': 'Other', + 'es-MX': 'Otro', }, ], otherIssues: [ @@ -61,26 +61,22 @@ export const defaultConfig = { componentType: 'checkbox', title: { 'en-US': 'Do any of these apply?', - 'es-MX': 'Do any of these apply?', + 'es-MX': '¿Se aplica alguno de estos?', }, options: [ { 'en-US': 'Sign in was not displayed', - 'es-MX': 'Sign in was not displayed', + 'es-MX': 'No se mostró el inicio de sesión', }, { 'en-US': 'I could not submit user id / password', - 'es-MX': 'I could not submit user id / password', - }, - { - 'en-US': 'Sign in was not displayed', - 'es-MX': 'Sign in was not displayed', + 'es-MX': 'No pude ingresar el ID de usuario/contraseña', }, { 'en-US': "I'm able to login to other Walmart apps on my phone (IE Workplace, One Walmart)", 'es-MX': - "I'm able to login to other Walmart apps on my phone (IE Workplace, One Walmart)", + 'Puedo acceder a otras aplicaciones de Walmart desde mi teléfono (IE Workplace, OneWalmart)', }, ], }, @@ -88,20 +84,20 @@ export const defaultConfig = { componentType: 'radio', title: { 'en-US': 'What type of device were you using?', - 'es-MX': 'What type of device were you using?', + 'es-MX': '¿Qué tipo de dispositivo estabas utilizando?', }, options: [ { 'en-US': 'Personal device', - 'es-MX': 'Personal device', + 'es-MX': 'Dispositivo personal', }, { 'en-US': 'Personal device (BYOD enrolled)', - 'es-MX': 'Personal device (BYOD enrolled)', + 'es-MX': 'Dispositivo personal (inscrito en BYOD)', }, { 'en-US': 'Work phone (Samsung x cover)', - 'es-MX': 'Work phone (Samsung x cover)', + 'es-MX': 'Teléfono de trabajo (Samsung XCover)', }, ], },
update locat default data
update locat default data
47f3719b96014eae177c4b9f77d7b62fef81e9d1
--- targets/US/ios/AllSpark.xcodeproj/project.pbxproj @@ -582,8 +582,8 @@ "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework/double-conversion", "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework/glog", "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/ScanditBarcodeCapture/ScanditBarcodeCapture.framework/ScanditBarcodeCapture", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/ScanditCaptureCore/ScanditCaptureCore.framework/ScanditCaptureCore", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-scanner-3.0/ScanditBarcodeCapture.framework/ScanditBarcodeCapture", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-scanner-3.0/ScanditCaptureCore.framework/ScanditCaptureCore", "${PODS_XCFRAMEWORKS_BUILD_DIR}/WebexSDK/Wxc/mediastores_ios.framework/mediastores_ios", "${PODS_XCFRAMEWORKS_BUILD_DIR}/WebexSDK/Wxc/UCFBridge.framework/UCFBridge", "${PODS_XCFRAMEWORKS_BUILD_DIR}/WebexSDK/Wxc/util_ios.framework/util_ios", --- targets/US/ios/Podfile.lock @@ -1929,11 +1929,9 @@ PODS: - React-Core - react-native-safe-area-context (4.10.8): - React-Core - - react-native-scanner-3.0 (0.8.4): + - react-native-scanner-3.0 (0.8.6): - Firebase/Analytics - React - - ScanditBarcodeCapture (= 6.25.3) - - ScanditCaptureCore (= 6.25.3) - SDWebImage (~> 5.0) - react-native-splash-screen (3.3.0): - React-Core @@ -2229,9 +2227,6 @@ PODS: - React-Core - RNVectorIcons (9.2.0): - React-Core - - ScanditBarcodeCapture (6.25.3): - - ScanditCaptureCore (= 6.25.3) - - ScanditCaptureCore (6.25.3) - SDWebImage (5.17.0): - SDWebImage/Core (= 5.17.0) - SDWebImage/Core (5.17.0) @@ -2483,8 +2478,6 @@ SPEC REPOS: - PromisesObjC - PromisesSwift - Realm - - ScanditBarcodeCapture - - ScanditCaptureCore - SDWebImage - SDWebImageAVIFCoder - SDWebImageSVGCoder @@ -2847,7 +2840,7 @@ SPEC CHECKSUMS: react-native-pdf: 103940c90d62adfd259f63cca99c7c0c306b514c react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe react-native-safe-area-context: b7daa1a8df36095a032dff095a1ea8963cb48371 - react-native-scanner-3.0: 31369e59b113375f64bac144525eaba83486c044 + react-native-scanner-3.0: d92bac511e87f9417a18ac8a567fbc75b0d48421 react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-view-shot: 6b7ed61d77d88580fed10954d45fad0eb2d47688 @@ -2906,8 +2899,6 @@ SPEC CHECKSUMS: RNSoundPlayer: 369105c565b8fe6ea0a43fc882dc81eba444e842 RNSVG: ba3e7232f45e34b7b47e74472386cf4e1a676d0a RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8 - ScanditBarcodeCapture: ac2eaba6c533803e4f72804ccedf3c251e1975a3 - ScanditCaptureCore: b60d45d10d4bd265cec79e321b7f371c219b2b3f SDWebImage: 750adf017a315a280c60fde706ab1e552a3ae4e9 SDWebImageAVIFCoder: 8348fef6d0ec69e129c66c9fe4d74fbfbf366112 SDWebImageSVGCoder: 15a300a97ec1c8ac958f009c02220ac0402e936c --- targets/US/package.json @@ -130,7 +130,7 @@ "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "~6.3.20", "@walmart/react-native-logger": "1.35.0", - "@walmart/react-native-scanner-3.0": "0.8.4", + "@walmart/react-native-scanner-3.0": "0.8.6", "@walmart/react-native-shared-navigation": "~6.3.20", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.7.0", --- yarn.lock @@ -7037,7 +7037,7 @@ __metadata: "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-env": "npm:~6.3.20" "@walmart/react-native-logger": "npm:1.35.0" - "@walmart/react-native-scanner-3.0": "npm:0.8.4" + "@walmart/react-native-scanner-3.0": "npm:0.8.6" "@walmart/react-native-shared-navigation": "npm:~6.3.20" "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.0" @@ -7605,12 +7605,12 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-scanner-3.0@npm:0.8.4": - version: 0.8.4 - resolution: "@walmart/react-native-scanner-3.0@npm:0.8.4" +"@walmart/react-native-scanner-3.0@npm:0.8.6": + version: 0.8.6 + resolution: "@walmart/react-native-scanner-3.0@npm:0.8.6" peerDependencies: react-native: ">=0.47.1" - checksum: 10c0/b5cdceb40f9d33f6980e111a6538b4f8ced8f4686c9e6143ea5bc0b4f890c8ba9b477300c350684efe1d557d23484d819691b362d7755a9411cb8929a1348f15 + checksum: 10c0/7114af9deef642c15dd0429ebaa85238ce46dade8a087f3ec1a2b51656dc80aca2b2f8146625798639d6276c191c5b2b2a2a2fd27501d3bd94aae07a0c812c1f languageName: node linkType: hard
upgraded scanner version to 0.8.6
upgraded scanner version to 0.8.6
79ac3ae36d4d799ef460f615646f83a63eed0b37
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -4,7 +4,7 @@ import {createStackNavigator, TransitionPresets} from '@react-navigation/stack'; import {useTranslation} from '@walmart/core-services/Translations'; import {Header} from '@walmart/ui-components'; import {AskSamMiniApp} from '@walmart/ask-sam-mini-app'; -import SettingsMiniApp from '@walmart/settings-mini-app'; +import SettingsMiniApp, {TermsOfUse} from '@walmart/settings-mini-app'; import {ScheduleMiniApp} from '@walmart/schedule-mini-app'; import {TaskItQuickActions, CreateTaskNav} from '@walmart/taskit-mini-app'; import ImpersonationMiniApp from '@walmart/impersonation-mini-app'; @@ -113,7 +113,13 @@ export const MainStackNav = () => { /> <MainStack.Screen name='ShareIdeas' component={ShareIdeasScreen} /> <MainStack.Screen name='Settings' component={SettingsMiniApp} /> - + <MainStack.Screen + name='TnC' + component={TermsOfUse} + options={{ + title: translate('navigation.terms_of_use'), + }} + /> <MainStack.Screen name='HealthSurveyNav' component={HealthSurveyMiniApp} --- src/translations/en-US.ts @@ -37,6 +37,7 @@ export const enUS = { featureRestrictions: 'Feature restrictions', whatsNew: "What's New", signInFailed: 'Sign in failed', + terms_of_use: 'Terms of Use', }, updates: { timeToUpdateApp: "It's time to update your Me@Walmart app!", --- src/translations/es-MX.ts @@ -37,6 +37,7 @@ export const esMX = { featureRestrictions: 'Restricciones', whatsNew: 'Novedades en la app', signInFailed: 'Error al iniciar sesión', + terms_of_use: 'Condiciones de uso', }, updates: { timeToUpdateApp: 'Actualiza Me@Walmart app!',
added tnc
added tnc
a8725f0e21ca59562376a9b2cc35d351db10841b
--- targets/US/package.json @@ -107,7 +107,7 @@ "@walmart/functional-components": "~6.3.28", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.4", - "@walmart/ims-print-services-ui": "2.15.3", + "@walmart/ims-print-services-ui": "2.16.4", "@walmart/inbox-mini-app": "0.96.8", "@walmart/iteminfo-mini-app": "7.16.2", "@walmart/learning-mini-app": "20.0.38", --- yarn.lock @@ -6781,9 +6781,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ims-print-services-ui@npm:2.15.3": - version: 2.15.3 - resolution: "@walmart/ims-print-services-ui@npm:2.15.3" +"@walmart/ims-print-services-ui@npm:2.16.4": + version: 2.16.4 + resolution: "@walmart/ims-print-services-ui@npm:2.16.4" peerDependencies: "@react-native-firebase/analytics": ">=10.5.1" "@react-native-firebase/app": ">=10.5.0" @@ -6804,7 +6804,7 @@ __metadata: react-native-segmented-control-tab: ">=4.0.0" react-native-wm-telemetry: ">=0.2.0" uuid: ">=3.3.2" - checksum: 10c0/8c99ea77ccb2f82d77fc168a39885f5f4c8b3b625d1db596254e60f9cf62ae9a4507b7d3dc01c4963286a8fa2e51f276cefd2365c80d1a87af913f7a434c580e + checksum: 10c0/b0ef161d32554ff70a56a0ca90bc2816386aabcb2602a4f0d1cdf6b63ecab710f0cf4d769cfc6fd5374981839bfa458bb34681a0ba7b9ae11c85d363224014d4 languageName: node linkType: hard @@ -7309,7 +7309,7 @@ __metadata: "@walmart/functional-components": "npm:~6.3.28" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.4" - "@walmart/ims-print-services-ui": "npm:2.15.3" + "@walmart/ims-print-services-ui": "npm:2.16.4" "@walmart/inbox-mini-app": "npm:0.96.8" "@walmart/iteminfo-mini-app": "npm:7.16.2" "@walmart/learning-mini-app": "npm:20.0.38"
Bump Print UI for Drop 27
Bump Print UI for Drop 27
4ff99f76f8c06838b4e789466dd30f5d3c2c0207
--- src/managerExperience/screens/RosterDetailScreen/ListEmptyComponent.tsx @@ -1,38 +1,38 @@ -import React from 'react'; -import {useTranslation} from 'react-i18next'; -import {AssociateListLoading} from '../../components/AssociateList/AssociateListLoading'; -import {ListEmptyComponentProps} from './types'; -import {ErrorScreen} from '@walmart/allspark-foundation-hub/HubFeature/TeamSelection/Component/ErrorScreen'; -import {ROSTER_I18N_NAMESPACE} from '../../../translations'; -import {logger} from '../../../common'; -import {analytics} from '../../../logger/Analytics'; +// import React from 'react'; +// import {useTranslation} from 'react-i18next'; +// import {AssociateListLoading} from '../../components/AssociateList/AssociateListLoading'; +// import {ListEmptyComponentProps} from './types'; +// import {ErrorScreen} from '@walmart/allspark-foundation-hub/HubFeature/TeamSelection/Component/ErrorScreen'; +// import {ROSTER_I18N_NAMESPACE} from '../../../translations'; +// import {logger} from '../../../common'; +// import {analytics} from '../../../logger/Analytics'; -export const ListEmptyComponent = ({ - isLoading, - hasError, - errorMessage, - refetch, -}: ListEmptyComponentProps) => { - const {t} = useTranslation([ROSTER_I18N_NAMESPACE]); +// export const ListEmptyComponent = ({ +// isLoading, +// hasError, +// errorMessage, +// refetch, +// }: ListEmptyComponentProps) => { +// const {t} = useTranslation([ROSTER_I18N_NAMESPACE]); - if (isLoading) { - return <AssociateListLoading />; - } - if (hasError) { - logger.error('error fetching daily roster', {message: errorMessage}); - return ( - <ErrorScreen - errorTitle={t('rosterScreen.allTeamsScreen.somethingWentWrong')} - errorMessage={t('rosterScreen.allTeamsScreen.refreshThisPage')} - primaryButtonText={t('rosterScreen.allTeamsScreen.refreshPage')} - handlePrimaryButtonPress={() => { - analytics('refresh_roster', { - message: 'Refresh roster detail screen', - }); - refetch(); - }} - /> - ); - } - return null; -}; +// if (isLoading) { +// return <AssociateListLoading />; +// } +// if (hasError) { +// logger.error('error fetching daily roster', {message: errorMessage}); +// return ( +// <ErrorScreen +// errorTitle={t('rosterScreen.allTeamsScreen.somethingWentWrong')} +// errorMessage={t('rosterScreen.allTeamsScreen.refreshThisPage')} +// primaryButtonText={t('rosterScreen.allTeamsScreen.refreshPage')} +// handlePrimaryButtonPress={() => { +// analytics('refresh_roster', { +// message: 'Refresh roster detail screen', +// }); +// refetch(); +// }} +// /> +// ); +// } +// return null; +// }; --- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -36,7 +36,7 @@ import {TextingNavParamsMap} from '../../../navigation'; import {FlashList} from '@shopify/flash-list'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; import {AssociateListItem} from '../../components/AssociateList/AssociateListItem'; -import {ListEmptyComponent} from './ListEmptyComponent'; +// import {ListEmptyComponent} from './ListEmptyComponent'; import {analytics} from '../../../logger/Analytics'; import {logger} from '../../../common/logger'; import moment from 'moment'; @@ -94,18 +94,18 @@ export const RosterDetailScreen = () => { const { loading: teamLoading, data: currentTeamData, - error: teamError, + // error: teamError, } = useGetTeamById(teamState.teamLabel); const { loading: rosterLoading, data: rosterData, - error: rosterError, + // error: rosterError, refetch: refetchRoster, } = useDailyRoster(); const {data: allTeamsData} = useGetTeamsByStore(); const dataLoading = teamLoading || rosterLoading; - const dataError = teamError || rosterError; + // const dataError = teamError || rosterError; const allTeams = useMemo( () => (allTeamsData?.getTeamsByStore || []) as Team[], @@ -318,14 +318,14 @@ export const RosterDetailScreen = () => { /> </> } - ListEmptyComponent={ - <ListEmptyComponent - isLoading={dataLoading} - hasError={Boolean(dataError)} - errorMessage={rosterError?.message ?? ''} - refetch={refetchRoster} - /> - } + // ListEmptyComponent={ + // <ListEmptyComponent + // isLoading={dataLoading} + // hasError={Boolean(dataError)} + // errorMessage={rosterError?.message ?? ''} + // refetch={refetchRoster} + // /> + // } renderItem={({item, index}) => ( <View style={styles.associateListContainer}> <AssociateListItem
feat: test error cause
feat: test error cause
b6968bcb7696f7458bcaec799873666f7aee49b8
--- .looper.codepush.yml @@ -37,13 +37,13 @@ flows: echo 'Branch names:' git branch -a echo 'git setup done, moving to node part now' - - npm install -g appcenter-cli +# - npm install -g appcenter-cli - echo 'doing listing' - - appcenter apps list --token $APPCENTER_API_TOKEN_ANDROID + - npx appcenter apps list --token $APPCENTER_API_TOKEN_ANDROID - npm run env:dev - - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d dev --description "update from looper for dev" --token $APPCENTER_API_TOKEN_ANDROID + - npx appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d dev --description "update from looper for dev with npx" --token $APPCENTER_API_TOKEN_ANDROID - npm run env:beta - - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d beta --description "update from looper for beta" --token $APPCENTER_API_TOKEN_ANDROID + - npx appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d beta --description "update from looper for beta npx" --token $APPCENTER_API_TOKEN_ANDROID pr: - npm install --- src/index.tsx @@ -71,7 +71,10 @@ export const BaseApp = () => ( // Customize this options based on final discussion. let codePushOptions = { checkFrequency: codePush.CheckFrequency.ON_APP_START, - updateDialog: {title: 'Update is available'}, //Remove this + updateDialog: { + title: 'Update is available', + appendReleaseDescription: true, + }, //Remove this installMode: codePush.InstallMode.IMMEDIATE, // Change this to ON_NEXT_RESTART }; export const App = codePush(codePushOptions)(BaseApp);
npx update
npx update
555febb0887ea184c7b3c53d87b87baffb851e76
--- packages/allspark-foundation/__tests__/User/sagas.test.ts @@ -3,6 +3,12 @@ import { UserActionTypes, UserActionCreators } from '../../src/User/redux'; import { UserSelectors } from '../../src/User/selectors'; import { onFetch, onImpersonate, waitForUserFetch } from '../../src/User/sagas'; +jest.mock('../../src/User/service', () => ({ + UserService: { + fetch: jest.fn(), + impersonate: jest.fn(), + }, +})); describe('User Sagas', () => { afterEach(() => {
added mock func in user sagas file
added mock func in user sagas file
5ba2cfe51ae5e842334a7935f0f9fbb93469f24b
--- targets/US/package.json @@ -123,12 +123,12 @@ "@walmart/metrics-mini-app": "1.27.3", "@walmart/mod-flex-mini-app": "1.23.2", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "2.1.4", + "@walmart/money-auth-shared-components": "2.3.1", "@walmart/myteam-mini-app": "1.12.0", "@walmart/native-rfid-scanner": "3.12.1", "@walmart/onewalmart-miniapp": "1.0.24", - "@walmart/pay-stub-miniapp": "0.20.6", - "@walmart/payrollsolution_miniapp": "0.145.20", + "@walmart/pay-stub-miniapp": "0.20.7", + "@walmart/payrollsolution_miniapp": "0.145.21", "@walmart/price-changes-mini-app": "1.10.25", "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch", "@walmart/react-native-cookies": "1.0.1", --- yarn.lock @@ -7360,12 +7360,12 @@ __metadata: "@walmart/metrics-mini-app": "npm:1.27.3" "@walmart/mod-flex-mini-app": "npm:1.23.2" "@walmart/moment-walmart": "npm:1.0.4" - "@walmart/money-auth-shared-components": "npm:2.1.4" + "@walmart/money-auth-shared-components": "npm:2.3.1" "@walmart/myteam-mini-app": "npm:1.12.0" "@walmart/native-rfid-scanner": "npm:3.12.1" "@walmart/onewalmart-miniapp": "npm:1.0.24" - "@walmart/pay-stub-miniapp": "npm:0.20.6" - "@walmart/payrollsolution_miniapp": "npm:0.145.20" + "@walmart/pay-stub-miniapp": "npm:0.20.7" + "@walmart/payrollsolution_miniapp": "npm:0.145.21" "@walmart/price-changes-mini-app": "npm:1.10.25" "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch" "@walmart/react-native-cookies": "npm:1.0.1" @@ -7689,9 +7689,9 @@ __metadata: languageName: node linkType: hard -"@walmart/money-auth-shared-components@npm:2.1.4": - version: 2.1.4 - resolution: "@walmart/money-auth-shared-components@npm:2.1.4" +"@walmart/money-auth-shared-components@npm:2.3.1": + version: 2.3.1 + resolution: "@walmart/money-auth-shared-components@npm:2.3.1" peerDependencies: "@react-navigation/drawer": ^6.6.4 "@react-navigation/native": ^6.0.0 @@ -7699,7 +7699,7 @@ __metadata: "@walmart/allspark-foundation": "*" "@walmart/core-services": ~2.0.11 "@walmart/gtp-shared-components": ^2.0.6 - checksum: 10c0/b88251c396c693410bed8becc5045045b17132fc500471bcc3fd00c1a3ee097c2105b53731a97ae2bf456edc0341b9dc486dcc12e9a4efabce38f4c7fda7f4ce + checksum: 10c0/ea63392276c844c688e01739a5d82e97b960c8d6de65d57abd11b4e57fbec78678039ea10b63d7c7d977ed0ca580b47eabee432c61844abe5195b83533bf1d99 languageName: node linkType: hard @@ -7781,27 +7781,27 @@ __metadata: languageName: node linkType: hard -"@walmart/pay-stub-miniapp@npm:0.20.6": - version: 0.20.6 - resolution: "@walmart/pay-stub-miniapp@npm:0.20.6" +"@walmart/pay-stub-miniapp@npm:0.20.7": + version: 0.20.7 + resolution: "@walmart/pay-stub-miniapp@npm:0.20.7" dependencies: expo: "npm:^50.0.0" expo-sharing: "npm:~11.7.0" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/df4d13144511784984508191e4d1c01f26a15818eb22f363ccd012ebdcf2d924b9473eb52265931d314a992daa842fc0e7fbc225206b010a8bbd2db652390d42 + checksum: 10c0/cd9f05894ce4bbaccdb7cf5911b1d75f60b36c97c93c901af6ca25b18f760c53d79f4ec9897e34cbe26e960ba8ba47e988d428353e84c1de26a75db949552963 languageName: node linkType: hard -"@walmart/payrollsolution_miniapp@npm:0.145.20": - version: 0.145.20 - resolution: "@walmart/payrollsolution_miniapp@npm:0.145.20" +"@walmart/payrollsolution_miniapp@npm:0.145.21": + version: 0.145.21 + resolution: "@walmart/payrollsolution_miniapp@npm:0.145.21" dependencies: crypto-js: "npm:^3.3.0" expo: "npm:^50.0.0" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/3f538b4c9ef9fb1a5972b466152829929949cc11d491a64a248b545b1f80cede24c6960e6f6597a3d21474c8a8d34ae4bab8b4e34205767f2d9c546f3f6eddea + checksum: 10c0/793eb40fdef24449c77a12524c85f0a1f1c82343a12cfe89cddf62e89e3d73cebca3d83fcfe7170bc6e0ac4de5132b08153c74fe6af68da5d82d55e7657c39cb languageName: node linkType: hard
bump version
bump version
5007ff76c9b49ae53575c504615d48f450a9a78d
--- targets/US/package.json @@ -148,7 +148,7 @@ "@walmart/store-feature-orders": "1.26.12", "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch", "@walmart/time-clock-mini-app": "2.400.0", - "@walmart/topstock-mini-app": "1.16.21", + "@walmart/topstock-mini-app": "1.16.21-299-f82ab41", "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch", "@walmart/welcomeme-mini-app": "0.95.1", "@walmart/wfm-ui": "1.6.0", --- yarn.lock @@ -7126,7 +7126,7 @@ __metadata: "@walmart/store-feature-orders": "npm:1.26.12" "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch" "@walmart/time-clock-mini-app": "npm:2.400.0" - "@walmart/topstock-mini-app": "npm:1.16.21" + "@walmart/topstock-mini-app": "npm:1.16.21-299-f82ab41" "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch" "@walmart/welcomeme-mini-app": "npm:0.95.1" "@walmart/wfm-ui": "npm:1.6.0" @@ -8113,9 +8113,9 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.16.21": - version: 1.16.21 - resolution: "@walmart/topstock-mini-app@npm:1.16.21" +"@walmart/topstock-mini-app@npm:1.16.21-299-f82ab41": + version: 1.16.21-299-f82ab41 + resolution: "@walmart/topstock-mini-app@npm:1.16.21-299-f82ab41" peerDependencies: "@react-native-firebase/app": ^15.1.1 "@react-native-firebase/crashlytics": ^15.1.1 @@ -8132,7 +8132,7 @@ __metadata: react-native-haptic-feedback: ^1.13.0 react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/9747126eed0e42b2c687b89cf278aef544b00a75fc46543800917095c154da372f21f17d4759cfc5096a54eb98979a22ef316dd6845af903f50b8af5a90b8429 + checksum: 10c0/684d68f8a972758c5fc94e0290cf6ad3ea772395679676b1f34ac196cd89f6d249d124087549c4ffc3aab7420b481bd153408321f8b9a9afdfaa41f1d06e1d8f languageName: node linkType: hard
fix(): testing topstock
fix(): testing topstock
b4ccc3ff71cff913b4a6423ce435bf637c1c400d
--- .looper.multibranch.yml @@ -62,12 +62,12 @@ envs: SIZE_REPO_GITHUB_URL: git@gecgithub01.walmart.com:allspark/allspark-core-size.git SIZE_REPO_GITHUB_BRANCH: main SIZE_JSON_PATH: SIZE_REPO/size.json - # temp variables declared here till EOV + # Default Values for Target based Paths ------ XCODE_PROJECT_PATH: targets/US/ios/AllSpark.xcodeproj ANDROID_GRADLE_PATH: targets/US/android/app/build.gradle IOS_BASE_PATH: targets/US/ios ANDROID_BASE_PATH: targets/US/android - # EOV + # ------ GITHUB_ACCESS_TOKEN: "%{credentials.secret('Github-SVCallspark')}" VERSION_REPO: allspark/allspark-core-version ANDROID_APP_ID: '' @@ -377,6 +377,12 @@ branches: skipAuthor: - jenkinspan - svc-looper + - manual: + name: Publish Packages (Pre-Release) + call: publishPrerelease + - manual: + name: Publish Packages (Graduate) + call: publishGraduate - manual: name: Build All call: push(main) @@ -399,6 +405,12 @@ branches: skipAuthor: - jenkinspan - svc-looper + - manual: + name: Publish Packages (Pre-Release) + call: publishPrerelease + - manual: + name: Publish Packages (Graduate) + call: publishGraduate - manual: name: Build All call: push(releasecandidate) @@ -446,6 +458,12 @@ branches: skipAuthor: - jenkinspan - svc-looper + - manual: + name: Publish Packages (Pre-Release) + call: publishPrerelease + - manual: + name: Publish Packages (Graduate) + call: publishGraduate - manual: name: Build All call: push(develop) @@ -539,6 +557,7 @@ branches: - manual: name: Build Android Prod call: android-prod(releasecandidate) +# ---------------------------------WIP--------------------------------------- - spec: feature/* triggers: - push: @@ -552,6 +571,10 @@ branches: - manual: name: Build All call: push(test) + parameters: + - market: + label: "Enter Market from the following - US, INTL " + type: STRING - manual: name: Build Both Dev call: dev(test) @@ -582,6 +605,7 @@ branches: - manual: name: Build Simulator call: push(simulator) +# ------------------------------------------------------------------------ flows: native-ios:
Update .looper.multibranch.yml
Update .looper.multibranch.yml
d8586af121597d145a9c2f0a4ad921a9c7d11def
--- env.teflon.js @@ -42,7 +42,8 @@ export default { url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', headers: { 'WM_SVC.NAME': 'ATHENA-GATEWAY', - 'WM_SVC.ENV': 'dev', + 'WM_SVC.ENV': 'stage', + REQUEST_SOURCE: 'API_PROXY', }, persistedQueries: true, }, --- package-lock.json @@ -57,7 +57,7 @@ "@walmart/inbox-mini-app": "0.84.1", "@walmart/iteminfo-mini-app": "7.3.4", "@walmart/manager-approvals-miniapp": "0.2.4", - "@walmart/me-field-mini-app": "12.0.27", + "@walmart/me-field-mini-app": "13.0.2", "@walmart/metrics-mini-app": "0.12.10", "@walmart/mod-flex-mini-app": "1.9.4", "@walmart/moment-walmart": "1.0.4", @@ -5421,9 +5421,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "12.0.27", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.27.tgz", - "integrity": "sha512-d8UQVhLCIFM6TUg2Jli7zzXXnvtCMev36jl3cVQFS8bTqtPaJ/otU83sZahyzqzyf6FZzql45GMOB8Symf2CkQ==", + "version": "13.0.2", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-13.0.2.tgz", + "integrity": "sha512-KJveK5175gsZkXkYr9BoKKs6Y/+Itc9C9W1C+m90eUbT+5g3sGe0D2ruzhJAhuNvSxIAh1hm0LL/lHsbsNovpA==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -25248,9 +25248,9 @@ } }, "@walmart/me-field-mini-app": { - "version": "12.0.27", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.27.tgz", - "integrity": "sha512-d8UQVhLCIFM6TUg2Jli7zzXXnvtCMev36jl3cVQFS8bTqtPaJ/otU83sZahyzqzyf6FZzql45GMOB8Symf2CkQ==" + "version": "13.0.2", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-13.0.2.tgz", + "integrity": "sha512-KJveK5175gsZkXkYr9BoKKs6Y/+Itc9C9W1C+m90eUbT+5g3sGe0D2ruzhJAhuNvSxIAh1hm0LL/lHsbsNovpA==" }, "@walmart/metrics-mini-app": { "version": "0.12.10",
feat: :arrow_up: update learning mini app version
feat: :arrow_up: update learning mini app version
1ce73f930a62d75338774fe4b542968f3e130c04
--- core/src/core/translations.ts @@ -116,11 +116,6 @@ export const enUS = { navigation: { askSam: 'Ask Sam', askSamTab: 'Ask Sam', - copilot: { - work: 'Work', - workNotificationsLabel: - '$t(navigation.copilot.work), {{total}} $t(navigation.notifications)', - }, emergency: 'Message Details', feedback: 'Feedback', home: 'Home', @@ -351,11 +346,6 @@ export const esMX = { navigation: { askSam: 'Ask Sam', askSamTab: 'Ask Sam', - copilot: { - work: 'Trabajo', - workNotificationsLabel: - '$t(navigation.copilot.work), {{total}} $t(navigation.notifications)', - }, emergency: 'Message Details', feedback: 'Comentarios', home: 'Inicio', --- core/src/features/taskIt.tsx @@ -39,8 +39,7 @@ export const createBadgeSelectors = ( const {highPriorityCount, signOffTaskCount} = taskBadge; const isSidekickEnabled = sidekickBottomNavConfig?.enabled; return Boolean( - (!isSidekickEnabled) && - (highPriorityCount || signOffTaskCount), + !isSidekickEnabled && (highPriorityCount || signOffTaskCount), ); }, ); @@ -54,8 +53,7 @@ export const createBadgeSelectors = ( const {highPriorityCount, signOffTaskCount} = taskBadge; const isSidekickEnabled = sidekickBottomNavConfig?.enabled; return Boolean( - isSidekickEnabled || - (!highPriorityCount && !signOffTaskCount), + isSidekickEnabled || (!highPriorityCount && !signOffTaskCount), ); }, ); --- core/src/home/components/TaskCard/index.tsx @@ -7,7 +7,6 @@ import {ClockSelectors} from '@walmart/allspark-foundation/Clock'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; -import {NavConfigSelectors} from '@walmart/allspark-foundation/Navigation'; import {Headline} from '@walmart/gtp-shared-components'; import {getSidekickBottomNavConfig} from '../../../features/taskIt';
fix: lint issue fix
fix: lint issue fix
868a77a258e4ab374abbada55c9f0fb7c2330cf4
--- package.json @@ -149,7 +149,7 @@ "@walmart/returns-mini-app": "4.17.8", "@walmart/rfid-scan-mini-app": "2.13.2", "@walmart/rn-mobile-sdk-pairing": "2.1.8", - "@walmart/rn-receiving-mini-app": "2.5.21", + "@walmart/rn-receiving-mini-app": "2.5.25", "@walmart/roster-mini-app": "3.5.0", "@walmart/schedule-mini-app": "2.6.1", "@walmart/shelfavailability-mini-app": "1.5.47", --- yarn.lock @@ -8692,7 +8692,7 @@ __metadata: "@walmart/returns-mini-app": "npm:4.17.8" "@walmart/rfid-scan-mini-app": "npm:2.13.2" "@walmart/rn-mobile-sdk-pairing": "npm:2.1.8" - "@walmart/rn-receiving-mini-app": "npm:2.5.21" + "@walmart/rn-receiving-mini-app": "npm:2.5.25" "@walmart/roster-mini-app": "npm:3.5.0" "@walmart/schedule-mini-app": "npm:2.6.1" "@walmart/shelfavailability-mini-app": "npm:1.5.47" @@ -9335,9 +9335,9 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.5.21": - version: 2.5.21 - resolution: "@walmart/rn-receiving-mini-app@npm:2.5.21" +"@walmart/rn-receiving-mini-app@npm:2.5.25": + version: 2.5.25 + resolution: "@walmart/rn-receiving-mini-app@npm:2.5.25::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Frn-receiving-mini-app%2F-%2F%40walmart%2Frn-receiving-mini-app-2.5.25.tgz" dependencies: "@walmart/atlas-rn-ui-components": "npm:1.3.22" "@walmart/loadquality-mini-app": "npm:2.0.30" @@ -9366,7 +9366,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: "*" - checksum: 10c0/1b02d2eca08204b202bb50c0e8e66f68a73b93bbef8095bde8d1a2025d04b29388f63a18c0e66190791231ca4dd7892be716117dbd7c7fe9c2df4d2508a81045 + checksum: 10c0/ca3ff42a50323557c63ddaaef0edbe0ec01bd41fb54f37ec69ad0f3d2dbc75639e58ba558190a813c272f92258f686032f44fec6b1d46e65db1483ae5ea8113f languageName: node linkType: hard
chore: bump receiving @ 2.5.25 (#4678)
chore: bump receiving @ 2.5.25 (#4678) Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com>
de6a56f66fa6583727e5c21ac7f8bded948447d7
--- src/logger/Analytics.tsx @@ -1,6 +1,5 @@ import WmTelemetry from 'react-native-wm-telemetry'; -const textingVersion = require('../../package.json').version; const APP_NAME = 'TextingMinimap'; /* @@ -18,7 +17,6 @@ export const analytics = ( if (isSendingLog) { WmTelemetry.logEvent(APP_NAME, eventName, { ...params, - textingVersion, }); } }; --- src/logger/Analytics.tsx @@ -1,6 +1,5 @@ import WmTelemetry from 'react-native-wm-telemetry'; -const textingVersion = require('../../package.json').version; const APP_NAME = 'TextingMinimap'; /* @@ -18,7 +17,6 @@ export const analytics = ( if (isSendingLog) { WmTelemetry.logEvent(APP_NAME, eventName, { ...params, - textingVersion, }); } };
Remove texting version for logging
Remove texting version for logging
32952050a0bc4f460488881aed896a88712bfebd
--- __tests__/navigation/AssociateHallwayNav/MainStackNavTest.tsx @@ -40,6 +40,14 @@ jest.mock('../../../src/navigation/NavigationConstants', () => ({ }, })); +jest.mock('@walmart/profile-feature-app', () => ({ + meMiniApp: 'Profile', +})); + +jest.mock('@walmart/payrollsolution_miniapp', () => ({ + directDepositMiniApp: 'PaymentSelection', +})); + jest.mock('../../../src/navigation/ClockOutGuard', () => ({ withClockOutGuard: (component: string) => `Guarded${component}`, })); --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MeStackNavTest.tsx.snap @@ -21,18 +21,6 @@ exports[`MeStackNav matches snapshot 1`] = ` } } /> - <Screen - name="contactInfoScreen" - /> - <Screen - name="jobHistoryScreen" - /> - <Screen - name="educationHistoryScreen" - /> - <Screen - name="certificationsScreen" - /> <Screen name="timeClockTabs" options={ @@ -41,19 +29,5 @@ exports[`MeStackNav matches snapshot 1`] = ` } } /> - <Group - screenOptions={ - Object { - "presentation": "transparentModal", - } - } - > - <Screen - name="editPreferredNameScreen" - /> - <Screen - name="preferredNameSnackbar" - /> - </Group> </Navigator> `; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -90,6 +90,21 @@ Array [ component="GuardedModFlexMiniApp" name="modFlex" /> + <Screen + name="contactInfoScreen" + /> + <Screen + name="jobHistoryScreen" + /> + <Screen + name="educationHistoryScreen" + /> + <Screen + name="certificationsScreen" + /> + <Screen + name="personalSettingsScreen" + /> </Group> <Screen component="TimeClockScreen" @@ -234,6 +249,17 @@ Array [ <Screen name="paymentselection" /> + <Screen + name="editPreferredNameScreen" + options={ + Object { + "cardStyleInterpolator": [MockFunction], + } + } + /> + <Screen + name="preferredNameSnackbar" + /> </Group> </Navigator>, <NotificationsContainer />, --- package-lock.json @@ -5324,9 +5324,9 @@ "integrity": "sha512-YE0jalslBrDzd7mpdsW4fs9GGdaoWK83fHACA8xNFg6+w5eX3Ej6QWIdgQlqMilsSMcdjmXPuO+ERadEG3eMRA==" }, "@walmart/profile-feature-app": { - "version": "0.0.43", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.43.tgz", - "integrity": "sha512-QeJG+zyLIYeiM7X2k0mtGhcQL/av02xMZfiI2a9Gp3uv9jb3yvKHqKjX8DEbwBQBbYf8rF/W72+iJArBnVvITQ==", + "version": "0.0.44", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.44.tgz", + "integrity": "sha512-GcgXjQWKLmxDDzMqXctRiE1yIqbccqGeXWvrpmbR/+Cl7DL/aXX8w9JLkljUsazWqkrXJ7uF2FrjiSOgtiWK2A==", "requires": { "@walmart/gtp-shared-icons": "^1.0.1" } --- package.json @@ -98,7 +98,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.125.8", "@walmart/price-changes-mini-app": "^1.4.6", - "@walmart/profile-feature-app": "0.0.43", + "@walmart/profile-feature-app": "0.0.44", "@walmart/push-to-talk-mini-app": "1.8.4", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.29.0",
New profile app version and updated tests.
New profile app version and updated tests.
0cb2402fd6fec17dd402b452151ef3a44f10875f
--- packages/celebration-mini-app-graphql/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.1](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.2.0...@walmart/celebration-mini-app-graphql@1.2.1) (2025-09-01) + +**Note:** Version bump only for package @walmart/celebration-mini-app-graphql + # [1.2.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.1.0...@walmart/celebration-mini-app-graphql@1.2.0) (2025-08-31) ### Features --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.2.0", + "version": "1.2.1", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- 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.3.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.2.0...@walmart/celebration-mini-app@1.3.0) (2025-09-01) + +### Features + +- **ui:** update celebration details screen ([ce2c0e7](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/ce2c0e765cace17dfe6c4f7b060e4c54a0ea9494)) + # [1.2.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.1.0...@walmart/celebration-mini-app@1.2.0) (2025-08-31) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.2.0", + "version": "1.3.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.3.0 - @walmart/celebration-mini-app-graphql@1.2.1
5911397d860e537c187160984b1f0e459678a9f7
--- package.json @@ -86,8 +86,8 @@ "@walmart/ask-sam-mini-app": "1.29.3", "@walmart/associate-listening-mini-app": "1.2.14", "@walmart/attendance-mini-app": "3.156.0", - "@walmart/avp-feature-app": "0.16.8", - "@walmart/avp-shared-library": "0.10.7", + "@walmart/avp-feature-app": "0.16.12", + "@walmart/avp-shared-library": "0.10.9", "@walmart/backroom-mini-app": "1.11.3", "@walmart/calling-mini-app": "0.7.52", "@walmart/checkout-mini-app": "4.8.12", --- yarn.lock @@ -7418,9 +7418,9 @@ __metadata: languageName: node linkType: hard -"@walmart/avp-feature-app@npm:0.16.8": - version: 0.16.8 - resolution: "@walmart/avp-feature-app@npm:0.16.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Favp-feature-app%2F-%2F%40walmart%2Favp-feature-app-0.16.8.tgz" +"@walmart/avp-feature-app@npm:0.16.12": + version: 0.16.12 + resolution: "@walmart/avp-feature-app@npm:0.16.12" peerDependencies: "@react-navigation/native": ">=6.0.8" "@react-navigation/stack": ">=6.1.1" @@ -7429,13 +7429,13 @@ __metadata: react-native: ">=0.72.10" react-redux: ">=8.0.4" redux: ">=4.2.1" - checksum: 10c0/a31f3da37d74868237138b9df3a6a093f25151aa8f1d39260b7ac6b82e5ba910539e41a86078b149de46e29d6f0973dfbfdbfe1ff6f0ce2df4e73f263c496cda + checksum: 10c0/85f395bd39f6bd6877b5e3997f36b2dd672f8ade65e6dbe36386bfbce9dbbd63cd386c57dbf786dde3be4cc112b1062064c55025d63096a047dfb0434f4c3442 languageName: node linkType: hard -"@walmart/avp-shared-library@npm:0.10.7": - version: 0.10.7 - resolution: "@walmart/avp-shared-library@npm:0.10.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Favp-shared-library%2F-%2Favp-shared-library-0.10.7.tgz" +"@walmart/avp-shared-library@npm:0.10.9": + version: 0.10.9 + resolution: "@walmart/avp-shared-library@npm:0.10.9" peerDependencies: axios: ^1.3.4 immer: ^9.0.16 @@ -7445,7 +7445,7 @@ __metadata: redux-saga: ^1.1.3 reduxsauce: ^1.2.0 reselect: ^4.1.7 - checksum: 10c0/c9d9fb94c43fd5398f92bcc17752a13d5ee30ba4035d0850332dfa6ffd26467f2660cb9ca67d6f3cb680994389d9df74b43f28cbf95ee874aa12d35de18db998 + checksum: 10c0/fd2390b2d8c2f82e7c66d4a0ae39660d1bad72aa6b3e4a02a5b3029a4e39cb2e52891cd3d7bdce0f7bcadc822ed86db221856150d29f2e0ffcbe0a3aaa8a3e56 languageName: node linkType: hard @@ -8260,8 +8260,8 @@ __metadata: "@walmart/ask-sam-mini-app": "npm:1.29.3" "@walmart/associate-listening-mini-app": "npm:1.2.14" "@walmart/attendance-mini-app": "npm:3.156.0" - "@walmart/avp-feature-app": "npm:0.16.8" - "@walmart/avp-shared-library": "npm:0.10.7" + "@walmart/avp-feature-app": "npm:0.16.12" + "@walmart/avp-shared-library": "npm:0.10.9" "@walmart/backroom-mini-app": "npm:1.11.3" "@walmart/calling-mini-app": "npm:0.7.52" "@walmart/checkout-mini-app": "npm:4.8.12"
feat(ui): BAUX-150 PR launch and issue fixes (#4192)
feat(ui): BAUX-150 PR launch and issue fixes (#4192) * bumped avp * fix(verbiage change): BAUX-150 verbiage change --------- Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
4430367460abec06b7a8d8dca6e3cfe60f5b510d
--- packages/celebration-mini-app-graphql/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.19.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.18.1...@walmart/celebration-mini-app-graphql@1.19.0) (2025-11-26) + +### Features + +- **ui:** update celebrations mini app queries ([5b753d4](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/5b753d4a55ba59ab61b8f75d24911bccdba93f2f)) +- **ui:** update celebrations mini app queries ([f92d0e5](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/f92d0e58f29662b865a9a97f7045baa68edea7f7)) +- **ui:** update celebrations mini app queries ([29aefca](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/29aefcac4be18d313103101e453feeb525b2dfbe)) + ## [1.18.1](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.18.0...@walmart/celebration-mini-app-graphql@1.18.1) (2025-11-26) **Note:** Version bump only for package @walmart/celebration-mini-app-graphql --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.18.1", + "version": "1.19.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app-graphql@1.19.0
e469d50faefd385b82861c5d11e232f2a96d8d00
--- packages/allspark-foundation/src/Components/Onboarding/TeamSelection/Component/TeamSelectionList.tsx @@ -3,7 +3,7 @@ import { View, Text, SectionList } from 'react-native'; import { RenderTeamSelectionListItems } from './RenderTeamSelectionListItem'; import { SelectionBanner } from './SelectionBanner'; import { teamSelectionListStyles as styles } from '../styles'; -import { Team, TeamSelectionListProps } from '../types'; +import { Team, TeamSelectionListProps, TeamPreference } from '../types'; import { areaTeamMap } from '../mockData'; import { Header } from '../../../Hub/Header'; import { colors } from '@walmart/gtp-shared-components'; @@ -64,6 +64,10 @@ export const TeamSelectionList = ({ }; const handleSaveButton = () => { + if (!win || !site) { + //TODO: Add error handling component + return; + } upsertManagerExperiencePreferenceMutation({ variables: { win: win as string, @@ -72,7 +76,7 @@ export const TeamSelectionList = ({ teamId: teamId, site: `${site}`, countryCode: countryCode, - })) as any, + })) as TeamPreference[], }, }); //TODO: Add confirmation screen navigation --- packages/allspark-foundation/src/Components/Onboarding/TeamSelection/types.ts @@ -101,3 +101,9 @@ export interface FooterButtons { onCancelButtonPress: () => void; onSaveButtonPress: () => void; } + +export type TeamPreference = { + teamId: string; + site: string; + countryCode: string; +};
Addressing PR comments
Addressing PR comments
26cf1399fa5461bbb6b895d16ad74b8cbf28b8f7
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.44.0", + "version": "1.45.0", "main": "dist/index.js", "files": [ "dist" @@ -81,7 +81,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.20.0", - "@walmart/allspark-foundation-hub": "1.3.11", + "@walmart/allspark-foundation-hub": "1.3.13", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.49.0", + "@walmart/roster-mini-app": "2.51.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -5992,9 +5992,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.3.11": - version: 1.3.11 - resolution: "@walmart/allspark-foundation-hub@npm:1.3.11" +"@walmart/allspark-foundation-hub@npm:1.3.13": + version: 1.3.13 + resolution: "@walmart/allspark-foundation-hub@npm:1.3.13" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6010,7 +6010,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/87a495903b451745e7ef8a8403580eeacccbec4edb52de26af011841c5e0c845e26eca15aefb0cd10b8838fb091f48c5581cf8ce73934e33b5fbc3f830c820c9 + checksum: 10c0/874219b1bdd0c8a6a8916b2992901b25755e69f5339c00087a03a3222f4623fb4bc3e9a2c086be2a2dad1fcf488f74efab7c23164a37720a5f7bb1a368fdd4e5 languageName: node linkType: hard @@ -6398,7 +6398,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.20.0" - "@walmart/allspark-foundation-hub": "npm:1.3.11" + "@walmart/allspark-foundation-hub": "npm:1.3.13" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.49.0" + "@walmart/roster-mini-app": "npm:2.51.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.49.0": - version: 2.49.0 - resolution: "@walmart/roster-mini-app@npm:2.49.0" +"@walmart/roster-mini-app@npm:2.51.0": + version: 2.51.0 + resolution: "@walmart/roster-mini-app@npm:2.51.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/597632f83c2c7381e89c54cac842fcd13068cfe1406bd22aabee4ef88c3cf3130509de8f2c508c11834e4e752fee4a16c656b1f0c8edc57e8811044fcd36eb07 + checksum: 10c0/a9d6c92c151286e66302e4d70de40c032cf4d319f751c7c17eeb04c8cea6b3480031a98a1dd309e3ed4d9c39c481ddac537968e0add3c0d308fef72204ee56d4 languageName: node linkType: hard
Update the my team
Update the my team
bdeeb5d66102e1295424c9c885eecd53aa1652ec
--- __tests__/screens/MessagesScreen/ClockOutInputDisabledSimpleTest.tsx @@ -33,6 +33,7 @@ import {ChatInput} from '../../../src/containers/ChatInput'; jest.mock('@walmart/allspark-foundation/User', () => ({ UserSelectors: { getUserId: jest.fn(() => 'test-user-123'), + getWin: jest.fn(() => 'test-user-123'), getFirstName: jest.fn(() => 'Test'), getSiteId: jest.fn(() => '100'), getCountryCode: jest.fn(() => 'US'), --- __tests__/screens/MessagesScreen/ClockOutModalForceCloseTest.tsx @@ -37,6 +37,7 @@ jest.mock('../../../src/common/logger', () => ({ jest.mock('@walmart/allspark-foundation/User', () => ({ UserSelectors: { getUserId: jest.fn(() => 'test-user-123'), + getWin: jest.fn(() => 'test-user-123'), getFirstName: jest.fn(() => 'Test'), getSiteId: jest.fn(() => '100'), getCountryCode: jest.fn(() => 'US'), --- src/redux/selectors.ts @@ -25,7 +25,7 @@ export const getCCMBooleanStr = ( }; export const getEncryptedUserId = createSelector( - [UserSelectors.getUserId] as any, + [UserSelectors.getWin] as any, encryptUserId, );
fix(ui): revert changes that were out-of-scope
fix(ui): revert changes that were out-of-scope
67f2213777f795ff4969fd270ecebaa54ebe69eb
--- __tests__/navigation/__snapshots__/RootStackTest.tsx.snap @@ -18,7 +18,6 @@ exports[`RootNav matches snapshot when app accessible 1`] = ` listeners={ { "focus": [Function], - "transitionEnd": [Function], } } name="Core.Login" --- src/navigation/index.tsx @@ -28,6 +28,13 @@ const styles = StyleSheet.create({ }, }); +const loginScreenListeners = { + focus: () => { + darkenStatusBar(); + hideSplashScreen(); + }, +}; + export const MissingHallwayScreen = () => { return ( <ErrorMessage title={'Missing Hallway'} UNSAFE_style={styles.error}> @@ -41,6 +48,7 @@ const RootStack = createStackNavigator<RootStackMap>(); export const CoreNavigation = () => { const isAppAccessible = useSelector(getIsAppAccessible); + return ( <FeatureModule.FeatureGuard getFeatures={getRootFeatures}> <RootStack.Navigator @@ -57,10 +65,7 @@ export const CoreNavigation = () => { options={{ animationTypeForReplace: 'pop', }} - listeners={{ - focus: darkenStatusBar, - transitionEnd: hideSplashScreen, - }} + listeners={loginScreenListeners} /> {LoginFeature.buildAllScreens({ Navigator: RootStack,
fix: update http instance for app and nav config (#5297)
fix: update http instance for app and nav config (#5297)
fe65e325a564198533a754334bccd2113eebf076
--- package-lock.json @@ -4229,9 +4229,9 @@ } }, "@walmart/allspark-home-mini-app": { - "version": "0.5.32", - "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.32.tgz", - "integrity": "sha512-04wEeZuTWfkIHV2la+2WhGyJwyt2Bgx0OYzOyBVeVpkH5TcdIihJ9AlB5RQHOnjBh9fkAZg8IEwh1LQhZnRwXA==", + "version": "0.5.33", + "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.33.tgz", + "integrity": "sha512-aMEfWDoXxnwCoGoyKxmuuGyQgq38hpFFXxeg7iPXbr/sw0lOHby3BzhMEVQkVF3/O6IH8Cu/IB+xB/dVcqHeCg==", "requires": { "moment": "^2.29.0", "uuid": "^8.3.1" @@ -4390,9 +4390,9 @@ "integrity": "sha512-/cEqGwnlQpRipCJpMhP+9ekHx+/vbfEYftcGkLvS0HVpRAA1adwsxf1mDpfmqQRrwMidRVfuJ+rJJr45KxnOTQ==" }, "@walmart/metrics-mini-app": { - "version": "0.7.67", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.7.67.tgz", - "integrity": "sha512-hNhgMtanTr2UWBG8WXy7Yo+CTMW1U5bPDcj5ENJ48we/jWk752Bfzjpd44XGYHv2Dk4srdRkDRDYb67xd/rlTw==", + "version": "0.7.68", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.7.68.tgz", + "integrity": "sha512-WZ5CqMikJmwu+gXkZYirQECfWfn8yQ7IQUFm4OwUSNYFYpWuYBEFfBO7AElfI5+Vd2o4y+mm41ntKaKkDOrx7g==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -71,7 +71,7 @@ "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@walmart/allspark-health-survey-mini-app": "0.0.44", - "@walmart/allspark-home-mini-app": "0.5.32", + "@walmart/allspark-home-mini-app": "0.5.33", "@walmart/allspark-me-mini-app": "0.31.9", "@walmart/allspark-neon-core": "0.1.26", "@walmart/ask-sam-mini-app": "0.41.6", @@ -87,7 +87,7 @@ "@walmart/inbox-mini-app": "0.37.0", "@walmart/iteminfo-mini-app": "4.2.1", "@walmart/manager-approvals-miniapp": "0.0.60", - "@walmart/metrics-mini-app": "0.7.67", + "@walmart/metrics-mini-app": "0.7.68", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.121.0", "@walmart/price-changes-mini-app": "1.2.3",
bumping home and metrics version
bumping home and metrics version
14649c328a3a8707d28727735f794c84d2188ef1
--- graphql.yml @@ -57,7 +57,7 @@ applications: tags: - 'v1' - name: 'upsertSupplyChainAssociatePreference' - hash: '571873ffcf9d8923e4951fa75addb46f876c949046518f0c302707deadab878a' + hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' tags: - 'v1' @@ -108,8 +108,8 @@ applications: # queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql" # tags: # - "v1" - # - name: "upsertSupplyChainAssociatePreference" - # hash: "39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql" - # tags: - # - "v1" + - name: 'upsertSupplyChainAssociatePreference' + hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' + tags: + - 'v1'
feat(ui): resolved conflicts
feat(ui): resolved conflicts
606419945d3a8242e69eec6cc593cdedc8c721ea
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.7", + "version": "1.0.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/myteam-mini-app", - "version": "1.0.7", + "version": "1.0.8", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", @@ -56,7 +56,7 @@ "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/config-components": "4.2.7", "@walmart/core-services": "~2.2.1", - "@walmart/core-services-allspark": "~2.13.7", + "@walmart/core-services-allspark": "~2.13.8", "@walmart/core-utils": "~2.0.5", "@walmart/functional-components": "~4.0.3", "@walmart/gtp-shared-components": "2.1.3", @@ -66,9 +66,9 @@ "@walmart/react-native-scanner-3.0": "0.4.2", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", - "@walmart/roster-mini-app": "1.0.9", + "@walmart/roster-mini-app": "1.0.10", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.8", + "@walmart/wmconnect-mini-app": "1.0.9", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11599,9 +11599,9 @@ } }, "node_modules/@walmart/core-services-allspark": { - "version": "2.13.7", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.13.7.tgz", - "integrity": "sha512-+XuvMbP6mavOxgSm0gXtZ19uGcVJf8XXGzce/W6aEAs7S7JHlI6ziszU2aHv5NMOUQmeD1lvF1E66NPJzlELdw==", + "version": "2.13.8", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.13.8.tgz", + "integrity": "sha512-e1CUA1wCE9W0GdPKw3ayS4ShDl1qgnBKOHiAJjqGNlKjYbDP7h/0tVyljAUiZHfT0YwkHHIB8JoGtKh8yrWp5Q==", "dev": true, "license": "ISC", "dependencies": { @@ -11834,9 +11834,9 @@ } }, "node_modules/@walmart/roster-mini-app": { - "version": "1.0.9", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.9.tgz", - "integrity": "sha512-/rbBlsNhu6MB22dWoVT5c8hqSLlV4yq3GqecUvpGqigKQ2xABJ//piNQi26Z7Vcq6VkPVBH+cnFYd8su/+zo2Q==", + "version": "1.0.10", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.10.tgz", + "integrity": "sha512-LxHc5bCkB0TRS73gMQojHYGZ5TvsxFLTbsiySJlS3SmUVnLeMOy/XS9nlV5ufcj+WOycMHg2l+nCXRfGE84yHQ==", "dev": true, "hasInstallScript": true }, @@ -11863,9 +11863,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.8", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.8.tgz", - "integrity": "sha512-HfwvyYHCTm2uJD7j1XF9Tn7ycEKqkxvoe0dBMW5zhX9/LWGYuiPw3O/BYgwXLDnUoASHtsN51hZi5bBQT8ldZw==", + "version": "1.0.9", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.9.tgz", + "integrity": "sha512-27TkCT13MjQATRNtkjH3WYFOWm9nJTtwcTqNpQxEIxmtxZDmtwDzP67D/nqcvuaQZi2LOFFe7JvwhV5YXiV7ng==", "dev": true, "hasInstallScript": true }, @@ -40946,9 +40946,9 @@ } }, "@walmart/core-services-allspark": { - "version": "2.13.7", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.13.7.tgz", - "integrity": "sha512-+XuvMbP6mavOxgSm0gXtZ19uGcVJf8XXGzce/W6aEAs7S7JHlI6ziszU2aHv5NMOUQmeD1lvF1E66NPJzlELdw==", + "version": "2.13.8", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.13.8.tgz", + "integrity": "sha512-e1CUA1wCE9W0GdPKw3ayS4ShDl1qgnBKOHiAJjqGNlKjYbDP7h/0tVyljAUiZHfT0YwkHHIB8JoGtKh8yrWp5Q==", "dev": true, "requires": { "@walmart/allspark-graphql-client": "^1.4.6", @@ -41072,9 +41072,9 @@ } }, "@walmart/roster-mini-app": { - "version": "1.0.9", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.9.tgz", - "integrity": "sha512-/rbBlsNhu6MB22dWoVT5c8hqSLlV4yq3GqecUvpGqigKQ2xABJ//piNQi26Z7Vcq6VkPVBH+cnFYd8su/+zo2Q==", + "version": "1.0.10", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.10.tgz", + "integrity": "sha512-LxHc5bCkB0TRS73gMQojHYGZ5TvsxFLTbsiySJlS3SmUVnLeMOy/XS9nlV5ufcj+WOycMHg2l+nCXRfGE84yHQ==", "dev": true }, "@walmart/ui-components": { @@ -41089,9 +41089,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.8", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.8.tgz", - "integrity": "sha512-HfwvyYHCTm2uJD7j1XF9Tn7ycEKqkxvoe0dBMW5zhX9/LWGYuiPw3O/BYgwXLDnUoASHtsN51hZi5bBQT8ldZw==", + "version": "1.0.9", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.9.tgz", + "integrity": "sha512-27TkCT13MjQATRNtkjH3WYFOWm9nJTtwcTqNpQxEIxmtxZDmtwDzP67D/nqcvuaQZi2LOFFe7JvwhV5YXiV7ng==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.7", + "version": "1.0.8", "private": false, "main": "dist/index.js", "files": [ @@ -78,7 +78,7 @@ "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/config-components": "4.2.7", "@walmart/core-services": "~2.2.1", - "@walmart/core-services-allspark": "~2.13.7", + "@walmart/core-services-allspark": "~2.13.8", "@walmart/core-utils": "~2.0.5", "@walmart/functional-components": "~4.0.3", "@walmart/gtp-shared-components": "2.1.3", @@ -89,8 +89,8 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.8", - "@walmart/roster-mini-app": "1.0.9", + "@walmart/wmconnect-mini-app": "1.0.9", + "@walmart/roster-mini-app": "1.0.10", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
Update version
Update version
a98e6a91f8792bcd328490f142e5ebf63e23b227
--- package.json @@ -135,7 +135,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.15.4", + "@walmart/allspark-foundation": "6.15.5", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-utils": "~6.5.0", --- targets/US/package.json @@ -77,7 +77,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "~6.4.1", "@walmart/allspark-cope-key-listener": "0.0.17", - "@walmart/allspark-foundation": "6.15.4", + "@walmart/allspark-foundation": "6.15.5", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -5679,9 +5679,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.15.4": - version: 6.15.4 - resolution: "@walmart/allspark-foundation@npm:6.15.4" +"@walmart/allspark-foundation@npm:6.15.5": + version: 6.15.5 + resolution: "@walmart/allspark-foundation@npm:6.15.5" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -5772,7 +5772,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/418dbc5f415a24c0b93937c6a60138314ab56c86cea6da1e9599e57bc67a7723af37dede3570e62e242035124f23f614934066699e52f190ccc6e85ca9214022 + checksum: 10c0/909d03f28c5c7691c1df165193511da0712995cb0ad2b113c2d8479d18a5783a5d377df72689ccb2275dd2096e8cb588d1505dd6e5841ec012d78283d3bd7eaf languageName: node linkType: hard @@ -7055,7 +7055,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.17" - "@walmart/allspark-foundation": "npm:6.15.4" + "@walmart/allspark-foundation": "npm:6.15.5" "@walmart/allspark-graphql-client": "npm:~6.3.20" "@walmart/allspark-http-client": "npm:~6.3.20" "@walmart/allspark-neon-core": "npm:0.1.31"
chore: bump foundation package for navigation header fix for texting
chore: bump foundation package for navigation header fix for texting
45c51dedd8da696cf632962bd58efa6fe9491e29
--- src/screens/RosterScreen.tsx @@ -6,6 +6,7 @@ import {ROSTER_I18N_NAMESPACE} from '../translations'; import {useTranslation} from 'react-i18next'; import {useSelector} from 'react-redux'; import {SiteSelectors} from '@walmart/redux-store'; +import {analytics} from '../logger/Analytics'; export const styles = StyleSheet.create({ container: {flex: 1}, @@ -21,6 +22,9 @@ export const RosterScreen: React.FC<any> = () => { { i18nLabel: t('rosterScreen.associateRosterItem.messageBtn'), action(data) { + analytics('associate_messagebtn', { + data: data, + }); navigateToMessageScreen(storeId, data); }, },
adding data param to message btn navigation
adding data param to message btn navigation
e5bb63b856e09ccc852ca1134a9146bdd614da91
--- package.json @@ -146,7 +146,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/react-native-webex-sdk": "0.9.12", - "@walmart/receipt-check-miniapp": "1.34.3", + "@walmart/receipt-check-miniapp": "1.34.4", "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.17.8", "@walmart/rfid-scan-mini-app": "2.13.2", --- yarn.lock @@ -8361,7 +8361,7 @@ __metadata: "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/react-native-webex-sdk": "npm:0.9.12" - "@walmart/receipt-check-miniapp": "npm:1.34.3" + "@walmart/receipt-check-miniapp": "npm:1.34.4" "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.17.8" "@walmart/rfid-scan-mini-app": "npm:2.13.2" @@ -8936,9 +8936,9 @@ __metadata: languageName: node linkType: hard -"@walmart/receipt-check-miniapp@npm:1.34.3": - version: 1.34.3 - resolution: "@walmart/receipt-check-miniapp@npm:1.34.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freceipt-check-miniapp%2F-%2F%40walmart%2Freceipt-check-miniapp-1.34.3.tgz" +"@walmart/receipt-check-miniapp@npm:1.34.4": + version: 1.34.4 + resolution: "@walmart/receipt-check-miniapp@npm:1.34.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freceipt-check-miniapp%2F-%2F%40walmart%2Freceipt-check-miniapp-1.34.4.tgz" dependencies: "@walmart/tcnumber": "npm:^2.3.3" "@xstate/react": "npm:^3.0.1" @@ -8947,7 +8947,7 @@ __metadata: xstate: "npm:^4.32.1" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/9178ebaa91ffdd8e3df562e0d00a31cbf6e9bd8e83ac7d3110e942700f9c572701a3ab91d4f30454dcc55b1c35d3bbcdddbacc2b914c1da73e94c5a1dfebe097 + checksum: 10c0/79c9aa2f4a7fe40380ba182020da108a583cc98bb0237ea0796751ed01363ecf472daf6aa399082da0c6320087faa0bfd99177117bfdd1b48be2743713523690 languageName: node linkType: hard
fix(receipt-check): FLB-3082 update placeholders (#4778)
fix(receipt-check): FLB-3082 update placeholders (#4778) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
23fdd155c637440a9691b50109490379b2d30e7d
--- package-lock.json @@ -4532,9 +4532,9 @@ } }, "@walmart/ui-components": { - "version": "1.3.0-rc.0", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.0.tgz", - "integrity": "sha512-PTD6udC8L89Gx//I8SyclZupuyNy2OLYrRNsn2PCLybkGVmcD2CZbFgPsQ479LB0VTAjm7+1a+z/QD9gjuzE8Q==", + "version": "1.3.0-beta.2", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-beta.2.tgz", + "integrity": "sha512-Au4Hoprm+Vw2n8b/lLlo52zVDa07wH7moy1alRBtO8OlfcO6I/p+oGhqzzpC1GtkVU4AgOVcG6Ubaubi8ouBrg==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -99,7 +99,7 @@ "@walmart/shelfavailability-mini-app": "0.5.0", "@walmart/taskit-mini-app": "0.0.77-rc.0", "@walmart/time-clock-mini-app": "0.4.24", - "@walmart/ui-components": "v1.3.0-rc.0", + "@walmart/ui-components": "1.3.0-beta.2", "@walmart/welcomeme-mini-app": "0.30.4", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
version bump up ui components
version bump up ui components (cherry picked from commit d9106ced974c4cf2a308c03e421a7d52a6f6d48c)
5cb594b201ee080276654fcd814739e6fd7ad94d
--- packages/allspark-foundation/src/LocalStorage/README.md @@ -15,6 +15,25 @@ This client is a scoped version of local storage in that: const MyFeatureLocalStorage = MyFeature.createLocalStorage(); ``` +## Setting expiry + +When performing actions like `set`, you can pass a config object that contains a ttl value. + +The ttl value is the time to live in milliseconds. + +Example: +```typescript +await LocalStorage.set('key', 'value', { + ttl: 1000 * 3600 * 48 // will live for 48 hours before expiring. +}); +``` + +Expiry is calculated and stored along with the actual value that is being set. + +The key-value pairs continue to live in local storage even after expiry, but are only evaluated when getting the value next time. If the value is expired when performing a get, the value will then be removed from the local storage and the library will return `null`. + +If a config object with ttl is not passed, then the key-value pair will live perpetually until manually removed. + ## Local Storage API ### `get` @@ -27,18 +46,36 @@ const value = await LocalStorage.get('key'); ### `set` -Sets a value in local storage. +Sets a value in local storage. + +You can also pass a config to set an expiry. The config should have a ttl in milliseconds. ```typescript await LocalStorage.set('key', 'value'); ``` +```typescript +await LocalStorage.set('key', 'value', { + ttl: 1000 * 3600 * 48 // will live for 48 hours before expiring. +}); +``` ### `merge` -Merges a value in local storage. +Merges a value in local storage. The value must be a stringified JSON. + +Internally performs an [`_.merge`](https://lodash.com/docs/#merge) that will deep merge on the JSON value. + +If you pass a config with ttl to this value, the previous ttl will be replaced with the newly calculated expiry. + +If you do not pass a config with a ttl, and you had previously set a ttl, that ttl will be lost. In essence, ttl should be reset with every update. ```typescript -await LocalStorage.merge('key', 'value'); +await LocalStorage.merge('key', JSON.stringify({a: 'b'})); +``` +```typescript +await LocalStorage.merge('key', JSON.stringify({a: 'b'}), { + ttl: 1000 * 3600 * 48 // will live for 48 hours before expiring. +}); ``` ### `remove` @@ -61,16 +98,36 @@ await LocalStorage.multiGet(['key1', 'key2']); Sets multiple values in local storage. +You can pass a *single* expiry for all keys. + +If you do need multiple ttls, you will have to make separate set calls. ```typescript await LocalStorage.multiSet([['key1', 'value1'], ['key2', 'value2']]); ``` +```typescript +await LocalStorage.multiSet([['key1', 'value1'], ['key2', 'value2']], { + ttl: 1000 * 3600 * 48 // both values will live for 48 hours before expiring. +}); +``` ### `multiMerge` -Merges multiple values in local storage. +Merges multiple values in local storage. The values need to be stringified JSONs. + +You can pass a *single* ttl that will overwrite existing expiry for all key-value pairs. ```typescript -await LocalStorage.multiMerge([['key1', 'value1'], ['key2', 'value2']]); +await LocalStorage.multiMerge([['key1', JSON.stringify({a: 'c'})], ['key2', JSON.stringify({d: 'c'})]]); +``` +```typescript +await LocalStorage.multiMerge([ + ['key1', JSON.stringify({a: 'c'})], + ['key2', JSON.stringify({d: 'c'})] + ], + { + ttl: 1000 * 3600 * 48 // both values will live for 48 hours before expiring. + } +); ``` ### `multiRemove`
feat: updating the docs for asyncstorage
feat: updating the docs for asyncstorage
0c76f3b70e6a6297dd683af94a47d0a6679567a3
--- __tests__/components/header/LocalHeader.test.tsx @@ -125,7 +125,8 @@ describe('LocalHeader', () => { backgroundColor: '#e6f3ff', minHeight: 70, width: '100%', - padding: 16, + paddingHorizontal: 8, + paddingVertical: 12, }); }); @@ -152,7 +153,8 @@ describe('LocalHeader', () => { expect(styles.minHeight).toBe(70); expect(styles.width).toBe('100%'); - expect(styles.padding).toBe(16); + expect(styles.paddingHorizontal).toBe(8); + expect(styles.paddingVertical).toBe(12); }); }); --- packages/associate-exp-hub-mini-app/src/components/header/LocalHeader.tsx @@ -44,7 +44,8 @@ export const LocalHeader: React.FC<LocalHeaderProps> = ({children}) => { backgroundColor: colors.blue['100'], minHeight: 70, width: '100%', - padding: 16, + paddingHorizontal: 8, + paddingVertical: 12, }} > {children} --- packages/associate-exp-hub-team-switcher/__tests__/components/header/LocalHeader.test.tsx @@ -120,7 +120,7 @@ describe('LocalHeader', () => { expect(header.props.style.width).toBe('100%'); }); - it('should have padding', () => { + it('should have correct padding', () => { const {getByTestId} = render( <LocalHeader> <Text>Content</Text> @@ -128,6 +128,7 @@ describe('LocalHeader', () => { ); const header = getByTestId('local-header'); - expect(header.props.style.padding).toBe(16); + expect(header.props.style.paddingHorizontal).toBe(8); + expect(header.props.style.paddingVertical).toBe(12); }); }); --- packages/associate-exp-hub-team-switcher/src/components/header/LocalHeader.tsx @@ -47,7 +47,8 @@ export const LocalHeader: React.FC<LocalHeaderProps> = ({children, testID = 'loc backgroundColor: colors.blue['100'], minHeight: 70, width: '100%', - padding: 16, + paddingHorizontal: 8, + paddingVertical: 12, }} > {children}
fix(ui): MyWalmart 2.0 VQA Bugs
fix(ui): MyWalmart 2.0 VQA Bugs
ac7522e1790658ed2ef881bbbfe8759d3c3cab24
--- __tests__/screens/ChannelsScreen/__snapshots__/ChannelsScreenTest.tsx.snap @@ -144,7 +144,7 @@ exports[`ChannelsScreen should render expected elements on initial render 1`] = "ListEmptyComponent": [Function], "ListHeaderComponent": <ErrorComponent />, "contentContainerStyle": { - "paddingBottom": 0, + "paddingBottom": 82, "paddingTop": 16, }, "data": [ --- __tests__/screens/MeganavScreen/__snapshots__/MeganavScreenTest.tsx.snap @@ -291,7 +291,7 @@ exports[`MeganavScreen renders meganav screen with expected elements 1`] = ` "ListEmptyComponent": [Function], "ListHeaderComponent": <ErrorComponent />, "contentContainerStyle": { - "paddingBottom": 0, + "paddingBottom": 82, "paddingTop": 0, }, "data": [ --- __tests__/screens/ChannelsScreen/__snapshots__/ChannelsScreenTest.tsx.snap @@ -144,7 +144,7 @@ exports[`ChannelsScreen should render expected elements on initial render 1`] = "ListEmptyComponent": [Function], "ListHeaderComponent": <ErrorComponent />, "contentContainerStyle": { - "paddingBottom": 0, + "paddingBottom": 82, "paddingTop": 16, }, "data": [ --- __tests__/screens/MeganavScreen/__snapshots__/MeganavScreenTest.tsx.snap @@ -291,7 +291,7 @@ exports[`MeganavScreen renders meganav screen with expected elements 1`] = ` "ListEmptyComponent": [Function], "ListHeaderComponent": <ErrorComponent />, "contentContainerStyle": { - "paddingBottom": 0, + "paddingBottom": 82, "paddingTop": 0, }, "data": [
fix snapshots
fix snapshots
bb4720f2a03aa8c6c5ae2082ff1cf28e0ffe2fff
--- package-lock.json @@ -4253,9 +4253,9 @@ "integrity": "sha512-0M7ySb3F2lKlIfwBosm+Slx3kJvdoEHm5haaZ05WKCJ1hctu0F0CzTGDSbZciXWX92HJBmxvsvr8yi2H435R8g==" }, "@walmart/ims-print-services-ui": { - "version": "0.1.12", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.1.12.tgz", - "integrity": "sha512-t4zqiT76U6HZ0JU272i+TfNvqnqXzwdRTtxfpYnXjJARdEmB1TDE7dFpfQSTKLIrm6yb2v2ZXZeQlBI0RS4i/A==" + "version": "0.1.13", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.1.13.tgz", + "integrity": "sha512-JxHvDDHlr99T3sIHX3ThGdU5UdlVkDGMQecK8drdlB824HcaUp0a47yvSoO8x7Xr/sWUQF45fLYawmvi7Pwl1g==" }, "@walmart/inbox-mini-app": { "version": "0.26.0", @@ -4263,9 +4263,9 @@ "integrity": "sha512-Kcf+R1iCgxHOLCwMoW+zrde/AgO41H65qWBwGxBnKfHzy0JRJcdpZBldAksoK6j2RlT6IvCZoju3WydXMElJyw==" }, "@walmart/iteminfo-mini-app": { - "version": "4.0.9", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.9.tgz", - "integrity": "sha512-/owYXDJQSLIgb+5B+QArKp7GbijcYCXSku/Boa/Wkeb/+Nx68wxQLlU8LUR3uqVoYGa3YvlutdhSeCtT3g9Hug==" + "version": "4.0.10", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.10.tgz", + "integrity": "sha512-soAN6fc3pG8z9uJxU8PhMoZ8nhbGwku8qZZYsNT/I2OEVxGQcFKCgVvIkyrskvH+mkMQqxwJO7g7VzNledoDhQ==" }, "@walmart/manager-approvals-miniapp": { "version": "0.0.59", --- package.json @@ -82,9 +82,9 @@ "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", - "@walmart/iteminfo-mini-app": "4.0.9", + "@walmart/iteminfo-mini-app": "4.0.10", "@walmart/impersonation-mini-app": "1.0.27", - "@walmart/ims-print-services-ui": "0.1.12", + "@walmart/ims-print-services-ui": "0.1.13", "@walmart/inbox-mini-app": "0.26.0", "@walmart/manager-approvals-miniapp": "0.0.59", "@walmart/metrics-mini-app": "0.5.21",
teflon env fix for drop 6
teflon env fix for drop 6
cb855e43dcb5ff7008368f62b762de879a72fb19
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.25.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.24.0...v2.25.0) (2025-04-04) + + +### Features + +* **ui:** update package js for roster ([b870b1c](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b870b1cce6621b3b68475283bf9f10b5d6b53d19)) + # [2.24.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.23.0...v2.24.0) (2025-04-04) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.24.0", + "version": "2.25.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.25.0 [skip ci]
chore(release): 2.25.0 [skip ci] # [2.25.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.24.0...v2.25.0) (2025-04-04) ### Features * **ui:** update package js for roster ([b870b1c](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b870b1cce6621b3b68475283bf9f10b5d6b53d19))
7bd081b09563fed64e7a1be1aff6749d6afa3349
--- src/components/TeamList.tsx @@ -239,7 +239,7 @@ const StoreTeamItem = () => { navigation.navigate('myTeam.pushToTalk', { // @ts-ignore details: { - channelName: 'Whole Store', + channelName: 'Total Store', }, }); }} --- src/containers/StoreChatCard.tsx @@ -78,7 +78,7 @@ export const StoreChatCard = (props: {style?: StyleProp<ViewStyle>}) => { navigation.navigate('myTeam.pushToTalk', { // @ts-ignore details: { - channelName: 'Whole Store', + channelName: 'Total Store', }, }); }} --- src/hooks/messages.ts @@ -86,7 +86,7 @@ export const useStartStoreText = (replace: boolean = false) => { channelPath, details: { group: true, - channelName: 'Whole store', + channelName: 'Total store', participants: [viewerId], }, }); @@ -201,7 +201,7 @@ export const useTeamTextingFeature = () => { details: { group: true, channelName: - teamName && teamName.length > 0 ? `${teamName}` : 'Whole store', + teamName && teamName.length > 0 ? `${teamName}` : 'Total store', participants: [senderId], }, }, --- src/components/TeamList.tsx @@ -239,7 +239,7 @@ const StoreTeamItem = () => { navigation.navigate('myTeam.pushToTalk', { // @ts-ignore details: { - channelName: 'Whole Store', + channelName: 'Total Store', }, }); }} --- src/containers/StoreChatCard.tsx @@ -78,7 +78,7 @@ export const StoreChatCard = (props: {style?: StyleProp<ViewStyle>}) => { navigation.navigate('myTeam.pushToTalk', { // @ts-ignore details: { - channelName: 'Whole Store', + channelName: 'Total Store', }, }); }} --- src/hooks/messages.ts @@ -86,7 +86,7 @@ export const useStartStoreText = (replace: boolean = false) => { channelPath, details: { group: true, - channelName: 'Whole store', + channelName: 'Total store', participants: [viewerId], }, }); @@ -201,7 +201,7 @@ export const useTeamTextingFeature = () => { details: { group: true, channelName: - teamName && teamName.length > 0 ? `${teamName}` : 'Whole store', + teamName && teamName.length > 0 ? `${teamName}` : 'Total store', participants: [senderId], }, },
update total store
update total store
738b7a3d8ba14beb2603bb8794ba9c83bc7e90da
--- package-lock.json @@ -4480,9 +4480,9 @@ "integrity": "sha512-OkLJQ/SffaYA//r2qu8gR6DdAbqLlw6rLE8UrZaYwDeHGPOs360R8XD7gZ3Qo39oWq53OdPTimtFO9LaQlqiIQ==" }, "@walmart/time-clock-mini-app": { - "version": "0.4.31", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.31.tgz", - "integrity": "sha512-QQxcfcp21dAD7qFLT9CmyzzdH1Mu3Vw8lGC92u23NaxFvchseo2GFTKzTW89uHmUGlRcf8x7au3fljfBVwTPXg==", + "version": "0.4.32", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.32.tgz", + "integrity": "sha512-A43hi4v7P3hZd+H6HyKM98sBCR8Abosxa67T/c/BT582s5XDcA+3fKAomD6Wuf+ommfRg5I+ZNpemLEjD7mW0w==", "requires": { "@react-native-community/datetimepicker": "3.0.9", "@react-native-picker/picker": "^1.16.1", --- package.json @@ -102,7 +102,7 @@ "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", "@walmart/taskit-mini-app": "0.238.0-rc.1", - "@walmart/time-clock-mini-app": "0.4.31", + "@walmart/time-clock-mini-app": "0.4.32", "@walmart/ui-components": "1.3.0-rc.14", "@walmart/welcomeme-mini-app": "0.46.0", "@walmart/wfm-ui": "0.2.11",
Bump time-clock-mini-app version
Bump time-clock-mini-app version
00ef92bab58a9f17e94b03bb738bd3b51e270a4f
--- src/hooks/useFilterCounts.ts @@ -53,7 +53,7 @@ export const useFilterCounts = (associates: Associate[]) => { return useMemo( () => ({ ...rosterCounts, - [FilterValue.available]: onlineUserIds.filter((id) => id !== viewerId) + [FilterValue.online]: onlineUserIds.filter((id) => id !== viewerId) .length, }), [rosterCounts, onlineUserIds], --- src/hooks/useFilterCounts.ts @@ -53,7 +53,7 @@ export const useFilterCounts = (associates: Associate[]) => { return useMemo( () => ({ ...rosterCounts, - [FilterValue.available]: onlineUserIds.filter((id) => id !== viewerId) + [FilterValue.online]: onlineUserIds.filter((id) => id !== viewerId) .length, }), [rosterCounts, onlineUserIds],
fix: filter value reference
fix: filter value reference
b10a9449bace2d539e4dc7684786e7bf9a7aee53
--- package.json @@ -1,7 +1,7 @@ { "name": "@walmart/wmconnect-mini-app", "version": "2.28.0", - "main": "index.ts", + "main": "index.js", "files": [ "dist/" ],
feat: SMDV-9999 update package index
feat: SMDV-9999 update package index
8464840c79fe518ec955d596c74109d388297b85
--- packages/core-services-allspark/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.13.9](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.13.8...@walmart/core-services-allspark@2.13.9) (2024-02-13) + + +### Bug Fixes + +* update associate cache policy to account for dynamic key field ([2f0e553](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/2f0e553817b675aecc2ca1868cee554a9aa07da0)) + + + + + ## [2.13.8](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.13.7...@walmart/core-services-allspark@2.13.8) (2024-02-12) --- packages/core-services-allspark/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "2.13.8", + "version": "2.13.9", "lockfileVersion": 1, "requires": true, "packages": { --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "2.13.8", + "version": "2.13.9", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/core-services-allspark@2.13.9
095501a5f0705c17c2d91da0d97f1aab15aa6d49
--- packages/allspark-foundation/__tests__/Components/ComponentContainers.test.tsx @@ -170,6 +170,7 @@ describe('AllsparkComponentContainers', () => { AllsparkComponentContainers.create('test'); expect(AllsparkComponentContainers.hasComponent('test', 'mockComponent')).toBe(true); }); + test('registers existing container', () => { const container = new ComponentContainer<{ greeting: string }>(); AllsparkComponentContainers.register('test', container);
code cleanup
code cleanup
1265c8b891169837c134a7bf74564694977f302b
--- jest.config.ts @@ -46,6 +46,8 @@ const config: Config = { }, }, moduleNameMapper: { + '^@/Translations$': '<rootDir>/src/Translations', + '^@/translations$': '<rootDir>/src/Translations', '@walmart/ui-components/(.*)': '<rootDir>/__mocks__/@walmart/ui-components.js', '@react-navigation/drawer/(.*)':
fix(translation): unit test
fix(translation): unit test
00bcd3c062f91b439fd1b5ecff9882b3f1fdfff8
--- package-lock.json @@ -179,7 +179,7 @@ "util": "^0.12.4", "uuid": "^3.3.2", "victory-native": "^36.5.0", - "wifi-store-locator": "1.2.0-35-9fb6e8f", + "wifi-store-locator": "1.3.0", "xdate": "^0.8.2" }, "devDependencies": { @@ -21898,9 +21898,9 @@ } }, "node_modules/wifi-store-locator": { - "version": "1.2.0-35-9fb6e8f", - "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.2.0-35-9fb6e8f.tgz", - "integrity": "sha512-y5ioFM617UaaL34sOAO1OgNpyRWxQ9WtLWXWnT9n2PQJkQUIHXcNnRO9filTqvXgGdSiU1Xk2w3qSOUGymbrig==", + "version": "1.3.0", + "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.3.0.tgz", + "integrity": "sha512-q1iq064saKzIP1d135eFtZbVpHe3rP8Qe2fSReEcaoIHcjlHOoG/NFOiJEq7tCYR85ZEI5zDmfB8DPKJWsyM4w==", "license": "MIT", "peerDependencies": { "react": "*", @@ -35636,9 +35636,9 @@ } }, "wifi-store-locator": { - "version": "1.2.0-35-9fb6e8f", - "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.2.0-35-9fb6e8f.tgz", - "integrity": "sha512-y5ioFM617UaaL34sOAO1OgNpyRWxQ9WtLWXWnT9n2PQJkQUIHXcNnRO9filTqvXgGdSiU1Xk2w3qSOUGymbrig==" + "version": "1.3.0", + "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.3.0.tgz", + "integrity": "sha512-q1iq064saKzIP1d135eFtZbVpHe3rP8Qe2fSReEcaoIHcjlHOoG/NFOiJEq7tCYR85ZEI5zDmfB8DPKJWsyM4w==" }, "wm-react-native-vector-icons": { "version": "1.0.33", --- package.json @@ -221,7 +221,7 @@ "util": "^0.12.4", "uuid": "^3.3.2", "victory-native": "^36.5.0", - "wifi-store-locator": "1.2.0-35-9fb6e8f", + "wifi-store-locator": "1.3.0", "xdate": "^0.8.2" }, "overrides": {
wifi store locator version bump
wifi store locator version bump
ec01bda45a2d77b3d0864ccb6932e83a6a8ae48e
--- README.md @@ -132,3 +132,4 @@ Using the FeatureRunner to run this feature app in the context of the Me@Walmart ## Other notes Once you clone this template to your organization, it is yours to modify to create a feature app. You may also use this to create a standalone app. If you foresee that your app may become a feature app that is part of a composite app in the future, you should maintain the `containers` and `src` folder distinctions with care to ease the transition later. +
feat(ui): updating readme file
feat(ui): updating readme file
b409fc796af90502b66ceb6ef87f983d8b65b89a
--- ReactotronConfig.js @@ -0,0 +1,83 @@ +import { AllsparkGraphQLClient, AllsparkReduxStore } from "@walmart/allspark-foundation"; +import Reactotron from "reactotron-react-native"; +import { reactotronRedux } from 'reactotron-redux' + +const reactotron = Reactotron.configure() // controls connection & communication settings + .useReactNative() // add all built-in react native plugins + .use(reactotronRedux()) // add redux plugin + .connect(); // let's connect! + + +// Add Reactotron enhancer for redux integration +AllsparkReduxStore.addEnhancers([reactotron.createEnhancer()]); + +// Custom Command to print Apollo Cache +Reactotron.onCustomCommand({ + title: "Extract Apollo Client Cache", + description: "Gets the updated InMemory cache from Apollo Client", + command: "extractApolloCache", + handler: () => { + Reactotron.display({ + name: "Apollo Cache", + preview: "Cache Snapshot", + value: AllsparkGraphQLClient.cache.extract(), + }); + }, +}); + +/** + * Retrieves a specific key from the Apollo Client cache + * @param {string} keyPath - The key path to retrieve + */ +function getNestedCacheValue(keyPath) { + // Extract the entire cache + const cache = AllsparkGraphQLClient.cache.extract(); + + // Define a regular expression to match keys and array accessors + const pathSegmentRegex = /[^.[\]]+|\[\d+\]/g; + + // Extract path segments, including array indices + const pathSegments = keyPath.match(pathSegmentRegex) || []; + + // Navigate through the path segments to get to the desired value + const value = pathSegments.reduce((acc, segment) => { + // Check if the segment is an array accessor, e.g., [1] + if (segment.startsWith("[") && segment.endsWith("]")) { + // Extract the index from the segment and convert it to a number + const index = parseInt(segment.slice(1, -1), 10); + return acc ? acc[index] : undefined; + } + // Handle normal object property access + return acc ? acc[segment] : undefined; + }, cache); + + return value ?? null; // Return null if the value is undefined at any point +} + +// Custom Command to print Apollo Cache by Key +Reactotron.onCustomCommand({ + title: "Extract Apollo Client Cache by Key", + description: "Retrieves a specific key from the Apollo Client cache", + command: "extractApolloCacheByKey", + args: [{ name: "key", type: 'string' }], + handler: (args) => { + const { key } = args ?? {}; + if (key) { + const findValue = getNestedCacheValue(key); + if (findValue) { + Reactotron.display({ + name: "Apollo Cache", + preview: `Cache Value for Key: ${key}`, + value: findValue, + }); + } else { + Reactotron.display({ + name: "Apollo Cache", + preview: `Value not available for key: ${key}`, + }); + } + } else { + Reactotron.log("Could not extract cache value. No key provided."); + } + }, +}); --- index.js @@ -7,6 +7,10 @@ import { registerRootComponent } from 'expo'; import {createApp} from './src'; +if (__DEV__) { + require("./ReactotronConfig"); +} + // registerRootComponent calls AppRegistry.registerComponent('main', () => App); // It also ensures that whether you load the app in Expo Go or in a native build, // the environment is set up appropriately
feat: integrate reactotron debugger
feat: integrate reactotron debugger
7f2cb634eb2a01f1bfb9552301e3c596d273c7c7
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap @@ -86,6 +86,7 @@ exports[`MainTabsNav renders sidekick with badges 1`] = ` /> SidekickMiniApp <Screen + component={[Function]} name="taskit" options={ { @@ -134,6 +135,7 @@ exports[`MainTabsNav renders taskit with badges 1`] = ` name="myTeam" /> <Screen + component={[Function]} name="taskit" options={ { --- core/src/navigation/USHallway/AssociateHallwayNav/Tabs/index.tsx @@ -31,6 +31,10 @@ import {MINI_APPS} from '../../../../oneClick/MiniApps'; const MainTabs = createBottomTabNavigator<MainTabsMap>(); // Add guards to mini app tabs +const GuardedTaskItMiniapp = withScreenGuards(TaskItMiniApp, { + featureId: 'taskit', + clockCheckEnabled: true, +}); const GuardedInboxMiniapp = withScreenGuards(InboxMiniApp, { featureId: MINI_APPS.INBOX, clockCheckEnabled: false, @@ -76,7 +80,7 @@ export const MainTabsNav = (_: MainStackScreenProps<'tabs'>) => { {taskit.enabled && ( <MainTabs.Screen name={'taskit'} - component={TaskItMiniApp} + component={GuardedTaskItMiniapp} options={{ tabBarBadge: taskitBadge, tabBarAccessibilityLabel: translate('navigation.notifications', {
fix: added clock in guard to taskit
fix: added clock in guard to taskit
14d536d467f6433dd96dbb08361eeafb9a65e113
--- __tests__/components/ChatWidgetComponent.a11y.test.tsx @@ -83,8 +83,10 @@ jest.mock('@walmart/me-at-walmart-common', () => ({ }, })); +import {useMessagesUnreadCount} from '../../src/channels/hooks'; + jest.mock('../../src/channels/hooks', () => ({ - useMessagesUnreadCount: jest.fn(() => 0), + useMessagesUnreadCount: jest.fn(() => null), useUnread: jest.fn(() => false), })); @@ -126,35 +128,81 @@ describe('ChatWidget Accessibility (SMDV-7774)', () => { expect(chatButton.props.accessibilityRole).toBe('button'); }); - it('has descriptive accessibilityLabel="View Messages"', () => { + it('has descriptive accessibilityLabel without unread count', () => { + (useMessagesUnreadCount as jest.Mock).mockReturnValue(null); + + const {getByTestId} = render(<ChatWidget />); + + const chatButton = getByTestId('wmConnectHeaderIcon'); + expect(chatButton.props.accessibilityLabel).toBe('View your messages'); + }); + + it('has descriptive accessibilityLabel with unread count', () => { + (useMessagesUnreadCount as jest.Mock).mockReturnValue(5); + + const {getByTestId} = render(<ChatWidget />); + + const chatButton = getByTestId('wmConnectHeaderIcon'); + expect(chatButton.props.accessibilityLabel).toBe( + 'View your messages, 5 new messages', + ); + }); + + it('has descriptive accessibilityLabel with threshold count (9+)', () => { + (useMessagesUnreadCount as jest.Mock).mockReturnValue('9+'); + const {getByTestId} = render(<ChatWidget />); const chatButton = getByTestId('wmConnectHeaderIcon'); - expect(chatButton.props.accessibilityLabel).toBe('View Messages'); + expect(chatButton.props.accessibilityLabel).toBe( + 'View your messages, 9+ new messages', + ); }); it('can be found by accessibility label for screen readers', () => { + (useMessagesUnreadCount as jest.Mock).mockReturnValue(null); + const {getByLabelText} = render(<ChatWidget />); - const chatButton = getByLabelText('View Messages'); + const chatButton = getByLabelText('View your messages'); expect(chatButton).toBeTruthy(); }); }); describe('VoiceOver Announcement', () => { - it('announces as "View Messages, button" to VoiceOver users', () => { + it('announces as "View your messages, button" to VoiceOver users (no unread)', () => { + (useMessagesUnreadCount as jest.Mock).mockReturnValue(null); + const {getByTestId} = render(<ChatWidget />); const chatButton = getByTestId('wmConnectHeaderIcon'); // VoiceOver will combine accessibilityLabel + accessibilityRole - expect(chatButton.props.accessibilityLabel).toBe('View Messages'); + expect(chatButton.props.accessibilityLabel).toBe('View your messages'); expect(chatButton.props.accessibilityRole).toBe('button'); - // This ensures VoiceOver announces: "View Messages, button" + // This ensures VoiceOver announces: "View your messages, button" + }); + + it('announces with count to VoiceOver users when unread messages exist', () => { + (useMessagesUnreadCount as jest.Mock).mockReturnValue(3); + + const {getByTestId} = render(<ChatWidget />); + + const chatButton = getByTestId('wmConnectHeaderIcon'); + + // VoiceOver will combine accessibilityLabel + accessibilityRole + expect(chatButton.props.accessibilityLabel).toBe( + 'View your messages, 3 new messages', + ); + expect(chatButton.props.accessibilityRole).toBe('button'); + + // This ensures VoiceOver announces: "View your messages, 3 new messages, button" }); it('does not announce redundant "button" in label (role provides context)', () => { + (useMessagesUnreadCount as jest.Mock).mockReturnValue(null); + const {getByTestId} = render(<ChatWidget />); const chatButton = getByTestId('wmConnectHeaderIcon'); @@ -252,12 +300,41 @@ describe('ChatWidget Accessibility (SMDV-7774)', () => { const badge = queryByTestId('unread-badge-count'); - // Badge should be present but not interfere with button announcement - if (badge) { - // Badge should not be accessible separately - // The parent button announcement includes all necessary info - expect(badge).toBeTruthy(); - } + // Badge should be present but hidden from accessibility tree + expect(badge).toBeTruthy(); + // importantForAccessibility='no-hide-descendants' hides badge from Android TalkBack + expect(badge?.props.importantForAccessibility).toBe('no-hide-descendants'); + }); + + it('announces unread count through parent button label, not badge', () => { + (useMessagesUnreadCount as jest.Mock).mockReturnValue(5); + (useSelector as jest.Mock).mockImplementation((selector: any) => { + switch (selector) { + case getChatWidgetEnabled: + return true; + case getChatWidgetBadgeCountEnabled: + return true; + case getChatWidgetQuickAction: + return 'chat'; + case ClockSelectors?.getClockStatus: + return '1'; + case SiteSelectors.getWorkingSiteIsDC: + return false; + case UserSelectors.getDomain: + return 'store'; + default: + return undefined; + } + }); + + const {getByTestId} = render(<ChatWidget />); + + const chatButton = getByTestId('wmConnectHeaderIcon'); + + // The unread count is communicated through the parent button's accessibilityLabel + expect(chatButton.props.accessibilityLabel).toBe( + 'View your messages, 5 new messages', + ); }); }); }); --- src/components/ChatWidget/ChatWidgetComponent.tsx @@ -5,6 +5,7 @@ import {TouchableOpacity, View} from 'react-native'; import {useSelector} from 'react-redux'; import {styles} from './styles'; import {UnreadBadge} from '../../channels/components/UnreadBadge'; +import {useMessagesUnreadCount} from '../../channels/hooks'; import {HeaderButtonProps} from '@react-navigation/elements'; import {TelemetryService} from '@walmart/allspark-foundation/Telemetry'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; @@ -42,6 +43,14 @@ export const ChatWidget = (props: HeaderButtonProps) => { const userDomain = useSelector(UserSelectors.getDomain); const isUserDC = userDomain === UserDomain.dc; const isDCUserOrSite = siteIsDC || isUserDC; + const unreadMessagesCount = useMessagesUnreadCount(); + + const getAccessibilityLabel = () => { + if (unreadMessagesCount) { + return `View your messages, ${unreadMessagesCount} new messages`; + } + return 'View your messages'; + }; if (isDCUserOrSite) { return null; @@ -53,13 +62,13 @@ export const ChatWidget = (props: HeaderButtonProps) => { onPress={onPress} activeOpacity={pressOpacity} accessibilityRole='button' - accessibilityLabel='View Messages'> - <Icons.ChatBubbleIcon - size='medium' - color={tintColor} - /> + accessibilityLabel={getAccessibilityLabel()}> + <Icons.ChatBubbleIcon size='medium' color={tintColor} /> {badgeCountEnabled && !isClockedOut && ( - <View testID='unread-badge-count' style={styles.headerBadge}> + <View + testID='unread-badge-count' + style={styles.headerBadge} + importantForAccessibility='no-hide-descendants'> <UnreadBadge /> </View> )}
fix: accessibility fixes
fix: accessibility fixes
e4bb0b4e474cc3e948112c666a763abee491f57c
--- packages/core-services-allspark/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.9.1](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.9.0...@walmart/core-services-allspark@2.9.1) (2023-03-14) + + +### Bug Fixes + +* add new env config for test url used for connection type ([cc06dab](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/cc06dab8efed55fca653392eb923b8d661c6634f)) + + + + + # [2.9.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@2.8.6...@walmart/core-services-allspark@2.9.0) (2023-03-13) --- packages/core-services-allspark/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "2.9.0", + "version": "2.9.1", "lockfileVersion": 1, "requires": true, "dependencies": { --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "2.9.0", + "version": "2.9.1", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/core-services-allspark@2.9.1
57780266012c7519bb631c859740e31ad52d1922
--- core/src/features/welcomeMe.ts @@ -1,29 +0,0 @@ -import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; -import {lightenStatusBar} from '../navigation/constants'; - -export const WelcomeMeFeature = new AllsparkFeatureModule('welcomeMe', { - name: 'WelcomeMe', - listeners: { - feature: { - onConnect: () => { - const { - addLanguageResources, - } = require('@walmart/welcomeme-mini-app/dist/Translations/index'); - addLanguageResources(); - }, - }, - }, - screens: { - WelcomeMeMiniApp: { - getComponent: () => require('@walmart/welcomeme-mini-app').default, - options: { - headerShown: false, - gestureEnabled: false, - animationTypeForReplace: 'push', - }, - listeners: { - focus: lightenStatusBar, - }, - }, - }, -}); --- core/src/manifest.ts @@ -32,13 +32,25 @@ export const getRootFeatures = (): AllsparkFeatureModule[] => { Features.push( require('./sideKey').default, require('./features/calling').CallingFeature, - require('./features/welcomeMe').WelcomeMeFeature, ); } return Features; }; +/** + * Lazy load candidate features + */ +export const getCandiateFeatures = (): AllsparkFeatureModule[] => { + const Features = [ + require('@walmart/welcomeme-mini-app').default, + // Add ask same once on foundation + // Add payment selection onc on foundation + ]; + + return Features; +}; + /** * Lazy load associate features */ @@ -79,7 +91,6 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('@walmart/payrollsolution_miniapp').default, require('@walmart/pay-stub-miniapp').default, require('@walmart/money-auth-shared-components').default, - require('@walmart/welcomeme-mini-app').default, ); } --- core/src/navigation/USHallway/PreHireHallwayNav/index.tsx @@ -1,15 +1,21 @@ -import {WelcomeMeFeature} from "../../../features/welcomeMe.ts"; - __DEV__ && console.log('loading pre-hire hallway'); import React, {useEffect} from 'react'; import {createStackNavigator} from '@react-navigation/stack'; import {AskSamMiniApp} from '@walmart/ask-sam-mini-app'; -import {ModalTransitionOptions} from '@walmart/allspark-foundation/Navigation'; +import { + Header, + ModalTransitionOptions, +} from '@walmart/allspark-foundation/Navigation'; import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; -import {ContainerActionCreators} from '@walmart/allspark-foundation/Container'; +import { + ActiveAllsparkContainer, + ContainerActionCreators, +} from '@walmart/allspark-foundation/Container'; import PaymentSelectionMiniApp from '@walmart/payrollsolution_miniapp'; +import WelcomeMeModule from '@walmart/welcomeme-mini-app'; +import {getCandiateFeatures} from '../../../manifest'; import {PrehireStackMap} from './types'; const PreHireStack = createStackNavigator<PrehireStackMap>(); @@ -22,29 +28,33 @@ export default () => { }, []); return ( - <PreHireStack.Navigator initialRouteName='welcomeMe.CandidateHome'> - {WelcomeMeFeature.buildAllScreens({ - Navigator: PreHireStack as any, - })} - - <PreHireStack.Screen - name='askSam' - component={AskSamMiniApp} - options={{ - gestureEnabled: true, - gestureDirection: 'vertical', - presentation: 'transparentModal', - ...ModalTransitionOptions, - }} - /> - - <PreHireStack.Screen - name='paymentselection' - component={PaymentSelectionMiniApp} - options={{ - headerShown: false, - }} - /> - </PreHireStack.Navigator> + <ActiveAllsparkContainer.FeatureGuard getFeatures={getCandiateFeatures}> + <PreHireStack.Navigator + initialRouteName='welcomeMe.CandidateHome' + screenOptions={{header: Header}}> + {WelcomeMeModule.buildAllScreens({ + Navigator: PreHireStack as any, + })} + + <PreHireStack.Screen + name='askSam' + component={AskSamMiniApp} + options={{ + gestureEnabled: true, + gestureDirection: 'vertical', + presentation: 'transparentModal', + ...ModalTransitionOptions, + }} + /> + + <PreHireStack.Screen + name='paymentselection' + component={PaymentSelectionMiniApp} + options={{ + headerShown: false, + }} + /> + </PreHireStack.Navigator> + </ActiveAllsparkContainer.FeatureGuard> ); }; --- core/src/navigation/index.tsx @@ -16,7 +16,6 @@ import {getIsAppAccessible} from '../appBlock/redux'; import {LoginFeature} from '../auth'; import {AuthenticatorView} from '../auth/AuthenticatorView'; import {CommonFeatures} from '../core'; -import {WelcomeMeFeature} from '../features/welcomeMe'; import {PermissionsFeature} from '../permissions'; import {PinScreenFeature} from '../PinAccess'; import SideKeyFeature from '../sideKey'; @@ -76,10 +75,6 @@ export const CoreNavigation = () => { Navigator: RootStack as any, })} - {WelcomeMeFeature.buildAllScreens({ - Navigator: RootStack as any, - })} - {PermissionsFeature.buildAllScreens({ Navigator: RootStack as any, })}
fix: welcome me foundation integration fixes
fix: welcome me foundation integration fixes
c411bccb93b3af5c05723562965b5f6482fc681c
--- __tests__/components/ErrorComponentTest.tsx @@ -13,7 +13,6 @@ describe('ErrorComponent tests', () => { const errorMessage = errorComponent.getByText('Connection lost'); const errorView = errorComponent.getByTestId('errorView'); expect(errorView).toBeDefined(); - expect(errorMessage).toBeDefined(); expect(errorMessage.props.children).toBe('Connection lost'); }); });
feat(ci): removed assertion
feat(ci): removed assertion
3eec3058d0c9b376d7fe04d1c4396eb05fa5f85e
--- src/screens/PushToTalkScreen.tsx @@ -161,6 +161,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { channelData?.participants.filter((participant) => { return viewerId !== participant; }) ?? [], + isPTT: true, sentToChannel: channelPathEntities[channelPathEntities.length - 1], createdAt, }); --- src/screens/PushToTalkScreen.tsx @@ -161,6 +161,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { channelData?.participants.filter((participant) => { return viewerId !== participant; }) ?? [], + isPTT: true, sentToChannel: channelPathEntities[channelPathEntities.length - 1], createdAt, });
add flag attempt one
add flag attempt one
fa0bdcba802586258b12e6970ce64f8cae975910
--- package-lock.json @@ -66,7 +66,7 @@ "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10", "@walmart/profile-feature-app": "0.76.0", - "@walmart/push-to-talk-mini-app": "1.9.11", + "@walmart/push-to-talk-mini-app": "1.9.12", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.31.0-rc.1", @@ -6174,9 +6174,9 @@ } }, "node_modules/@walmart/push-to-talk-mini-app": { - "version": "1.9.11", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.11.tgz", - "integrity": "sha512-HZNXug6tjeMPjKFncJazbt6EqVlDKf3wOvBdvdRrqRjby0LUcUoBMGGhItJKW2UQyxB6a12vWJon9PpSLYSWKw==", + "version": "1.9.12", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.12.tgz", + "integrity": "sha512-astX64kVIjsAGgjPTNjqpwwyC+yZ3mVewAC41X3Ga9Dtv/obGeQkiZWLbfRPaY89FlvURntgxtzZl2vTADDOJw==", "license": "UNLICENSED", "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", @@ -25996,9 +25996,9 @@ "version": "0.76.0" }, "@walmart/push-to-talk-mini-app": { - "version": "1.9.11", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.11.tgz", - "integrity": "sha512-HZNXug6tjeMPjKFncJazbt6EqVlDKf3wOvBdvdRrqRjby0LUcUoBMGGhItJKW2UQyxB6a12vWJon9PpSLYSWKw==" + "version": "1.9.12", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.9.12.tgz", + "integrity": "sha512-astX64kVIjsAGgjPTNjqpwwyC+yZ3mVewAC41X3Ga9Dtv/obGeQkiZWLbfRPaY89FlvURntgxtzZl2vTADDOJw==" }, "@walmart/react-native-encrypted-storage": { "version": "1.1.3" --- package.json @@ -108,7 +108,7 @@ "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10", "@walmart/profile-feature-app": "0.76.0", - "@walmart/push-to-talk-mini-app": "1.9.11", + "@walmart/push-to-talk-mini-app": "1.9.12", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.31.0-rc.1",
add alarm permission to improve performance branch
add alarm permission to improve performance branch
06d4bbf4b326781e3eb0ae4820dab2a78996abf3
--- src/managerExperience/components/AssociateList/AssociateListItem.tsx @@ -60,7 +60,7 @@ export const AssociateListItem = ({ const showJobDescription = useSelector(displayJobDescription); const isMessageButtonEnabled = useSelector(messageButtonEnabled); const shouldShowMessageButton = - associate?.win?.toString() !== currentUser?.win?.toString(); + associate?.associateId?.toString() !== currentUser?.associateId?.toString(); const showStatusChipAndViewSchedule: boolean | undefined = useRbacConfigWithJobCode(); const isWfmScheduleValid =
feat: updated to use associate id instead of win
feat: updated to use associate id instead of win
a30bc429020e68cfbe9e7c3cb553297af058845a
--- __tests__/communications/oneToOneChatTest.tsx @@ -58,9 +58,10 @@ describe('One to One Chat', () => { it('test collection mutation', async () => { const channelsContext = createMockChannelsContext(firestore, 100); - + const presenceContext = createMockPresenceContext(100); const testScreen = renderWithProviders(<TestScreen />, { channelsContext: channelsContext, + presenceContext: presenceContext, }); expect(mockCollection).toHaveBeenNthCalledWith(1, 'messages'); --- __tests__/harness/firestore/presenceProvider.ts @@ -1,24 +1,25 @@ -//TODO: give mockFirestore correct type -export const createMockPresenceContext = async ( - mockFirestore: any, - storeDocumentID: string, -) => { - const getStoreUsers = await (async () => { - return ( - await mockFirestore - .collection('text_channels') - .doc(storeDocumentID) - .collection('users') - .get() - ).docs; +import {storeCollections} from './data/stores'; + +export const createMockPresenceContext = (storeNumber: number) => { + const storeDocumentID = 'STORE_' + storeNumber; + const getStoreUsers = (() => { + return (storeCollections[storeDocumentID] as any)._collections.users.map( + (user: any) => { + return { + ...user, + data: () => user, + }; + }, + ); })(); + //TODO: Fix types const offlineUserIds = getStoreUsers .map((user: any) => { return {id: user.id, ...user.data()}; }) .filter((userData: any) => userData.state === 'offline') - .map((userData) => { + .map((userData: any) => { return userData.id; }); --- __tests__/communications/oneToOneChatTest.tsx @@ -58,9 +58,10 @@ describe('One to One Chat', () => { it('test collection mutation', async () => { const channelsContext = createMockChannelsContext(firestore, 100); - + const presenceContext = createMockPresenceContext(100); const testScreen = renderWithProviders(<TestScreen />, { channelsContext: channelsContext, + presenceContext: presenceContext, }); expect(mockCollection).toHaveBeenNthCalledWith(1, 'messages'); --- __tests__/harness/firestore/presenceProvider.ts @@ -1,24 +1,25 @@ -//TODO: give mockFirestore correct type -export const createMockPresenceContext = async ( - mockFirestore: any, - storeDocumentID: string, -) => { - const getStoreUsers = await (async () => { - return ( - await mockFirestore - .collection('text_channels') - .doc(storeDocumentID) - .collection('users') - .get() - ).docs; +import {storeCollections} from './data/stores'; + +export const createMockPresenceContext = (storeNumber: number) => { + const storeDocumentID = 'STORE_' + storeNumber; + const getStoreUsers = (() => { + return (storeCollections[storeDocumentID] as any)._collections.users.map( + (user: any) => { + return { + ...user, + data: () => user, + }; + }, + ); })(); + //TODO: Fix types const offlineUserIds = getStoreUsers .map((user: any) => { return {id: user.id, ...user.data()}; }) .filter((userData: any) => userData.state === 'offline') - .map((userData) => { + .map((userData: any) => { return userData.id; });
removing firestore from presence context mock
removing firestore from presence context mock
c435227b903fb50d08b13b99362ad8575f84ec5e
--- packages/me-at-walmart-container/__tests__/http/interceptors/addImpersonation.test.ts @@ -7,6 +7,10 @@ import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; import {HttpLogger} from '../../../src/http/logger'; describe('ImpersonationInterceptor', () => { + beforeEach(() => { + jest.clearAllMocks(); + }); + let mockRequest; beforeEach(() => { --- targets/US/package.json @@ -120,7 +120,7 @@ "@walmart/metrics-mini-app": "1.27.3", "@walmart/mod-flex-mini-app": "1.23.2", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "2.2.1", + "@walmart/money-auth-shared-components": "2.0.14", "@walmart/myteam-mini-app": "1.12.0", "@walmart/native-rfid-scanner": "3.12.1", "@walmart/onewalmart-miniapp": "1.0.24", --- yarn.lock @@ -7858,7 +7858,7 @@ __metadata: "@walmart/metrics-mini-app": "npm:1.27.3" "@walmart/mod-flex-mini-app": "npm:1.23.2" "@walmart/moment-walmart": "npm:1.0.4" - "@walmart/money-auth-shared-components": "npm:2.2.1" + "@walmart/money-auth-shared-components": "npm:2.0.14" "@walmart/myteam-mini-app": "npm:1.12.0" "@walmart/native-rfid-scanner": "npm:3.12.1" "@walmart/onewalmart-miniapp": "npm:1.0.24" @@ -8184,9 +8184,9 @@ __metadata: languageName: node linkType: hard -"@walmart/money-auth-shared-components@npm:2.2.1": - version: 2.2.1 - resolution: "@walmart/money-auth-shared-components@npm:2.2.1" +"@walmart/money-auth-shared-components@npm:2.0.14": + version: 2.0.14 + resolution: "@walmart/money-auth-shared-components@npm:2.0.14" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -8201,7 +8201,7 @@ __metadata: react-native-wm-telemetry: ^0.3.0 react-redux: ^7.2.1 redux: ^4.0.5 - checksum: 10c0/fb7196a12b99d85c22842d8d5885cca26586d9d27a193c301aed59bb03f3fb4dd4303b5afe615734c7034ff8fffaecea9d8888ec22ec43bbe826e5a8cb90a5b3 + checksum: 10c0/338bf8275f52fa37f49dc9bfb24f4cdfcafdb250c86a44faa2f61214540e84e41943a84455d8340f4e727fa3c14368bc06304ac03e3a44db8f1ce0d5831f508d languageName: node linkType: hard
Reset package.json
Reset package.json
af2d6029cca744e5824f05833fa75013e96d64e5
--- targets/US/ios/AllSpark.xcodeproj/project.pbxproj @@ -467,6 +467,10 @@ "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseInstallations/FirebaseInstallations_Privacy.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/GoogleDataTransport/GoogleDataTransport_Privacy.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/GoogleUtilities/GoogleUtilities_Privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/Osiris/OsirisFonts.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/Osiris/OsirisColors.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/Osiris/OsirisImages.bundle", + "${PODS_ROOT}/OsirisBarcode/Sources/OsirisBarcode/Decoder/Resources/OsirisBarcode.mlmodelc", "${PODS_CONFIGURATION_BUILD_DIR}/PromisesObjC/FBLPromises_Privacy.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/PromisesSwift/Promises_Privacy.bundle", "${PODS_CONFIGURATION_BUILD_DIR}/RNCAsyncStorage/RNCAsyncStorage_resources.bundle", @@ -517,6 +521,10 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseInstallations_Privacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleDataTransport_Privacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleUtilities_Privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/OsirisFonts.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/OsirisColors.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/OsirisImages.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/OsirisBarcode.mlmodelc", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FBLPromises_Privacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Promises_Privacy.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNCAsyncStorage_resources.bundle", --- targets/US/ios/Podfile @@ -59,6 +59,7 @@ $RNFirebaseAnalyticsWithoutAdIdSupport=true # @customization # Walmart specific sources +source 'git@gecgithub01.walmart.com:Project-Diamond/cocoapods-specs.git' source 'git@gecgithub01.walmart.com:store-systems-associate-tech-platform/cocoapods-specs.git' source 'git@gecgithub01.walmart.com:ssaeSCTP/CocoaPodSpecs.git' source 'https://github.com/CocoaPods/Specs.git' --- targets/US/ios/Podfile.lock @@ -2958,6 +2958,6 @@ SPEC CHECKSUMS: Yoga: c716aea2ee01df6258550c7505fa61b248145ced zxing-cpp: fcaae9c9427f24066af415055963582be8200d05 -PODFILE CHECKSUM: e45caceff59820fc357600d6b2277634c8242734 +PODFILE CHECKSUM: f89f8fd084718a8459bfad1ed1081b9af51bc555 COCOAPODS: 1.14.3
fix ios build
fix ios build