commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
d0b9a4620507b195ef38ec0889a8c966b975d66e
--- src/auth/LoginErrorScreen/index.tsx @@ -251,12 +251,12 @@ export const ErrorScreen = ( <Heading weight='700' size='medium' UNSAFE_style={styles.errorMsg}> {translate('ssoError.troubleShootIssue')} </Heading> - <Body UNSAFE_style={{marginBottom: 16}}> + <Body UNSAFE_style={styles.marginBottomMedium}> {translate('ssoError.troubleShootIssueDesc')} </Body> {isBrowserNotFoundError && ( - <Alert UNSAFE_style={styles.noBrowserWarning} variant='error'> + <Alert UNSAFE_style={styles.marginBottomMedium} variant='error'> {translate('ssoError.noBrowser')} </Alert> )} @@ -266,14 +266,14 @@ export const ErrorScreen = ( </Heading> <View> - <Body UNSAFE_style={{marginTop: 8}}> + <Body UNSAFE_style={styles.marginTopSmall}> {translate('loginErrorGuide.howIsTwoStepProcess')} </Body> <Button variant='secondary' size='medium' isFullWidth - UNSAFE_style={{marginTop: 16, marginBottom: 20}} + UNSAFE_style={styles.guideScreenTitle} onPress={() => navigation.navigate('Core.ErrorTwoFactorGuideScreen') }> @@ -284,7 +284,7 @@ export const ErrorScreen = ( <Heading weight='700' size='small' UNSAFE_style={styles.errorTitle}> {translate('ssoError.immediateSupport')} </Heading> - <View style={{marginBottom: 16}}> + <View style={styles.marginBottomMedium}> <Body>{translate('ssoError.supportDesc')}</Body> <Trans defaults={`${translate('ssoError.supportWalmartNumber')}`} --- src/auth/LoginErrorScreen/styles.ts @@ -146,9 +146,16 @@ export default StyleSheet.create({ reportIssueButton: { paddingTop: 16, }, - noBrowserWarning: { + marginBottomMedium: { marginBottom: 16, }, + marginTopSmall: { + marginTop: 8, + }, + guideScreenTitle: { + marginTop: 16, + marginBottom: 20, + }, }); export const dropDownForm = {
style update
style update
589ebf9b965c7464de171759d265df86e2e93fca
--- scripts/updateAndroidProjectConfig.sh @@ -11,6 +11,7 @@ env=$1 APP_GRADLE="android/app/build.gradle" APP_MANIFEST="android/app/src/main/AndroidManifest.xml" MAIN_APPLICATION="android/app/src/main/java/com/walmart/stores/allspark/beta/MainApplication.java" +MAIN_APPLICATION_RN_HOST="android/app/src/main/java/com/walmart/stores/allspark/beta/newarchitecture/MainApplicationReactNativeHost.java" BETA_PACKAGE="com.walmart.stores.allspark.beta" PROD_PACKAGE="com.walmart.squiggly" @@ -38,3 +39,10 @@ sed -Ei '' "s/scheme=\"${BETA_PACKAGE}\"|scheme=\"${PROD_PACKAGE}\"/scheme=\"${P BUILD_CONFIG="${PACKAGE}.BuildConfig" echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_APPLICATION}" sed -Ei '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_APPLICATION} + +BUILD_CONFIG="${PACKAGE}.BuildConfig" +echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_APPLICATION_RN_HOST}" +sed -Ei '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_APPLICATION_RN_HOST} + + +
update confic for new arch
update confic for new arch
2f2114e73f14ec3f7acdef499a7633d220c5b967
--- .yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch @@ -134,25 +134,3 @@ index 68eec71f01f4b49a3b73acafaf0535bf54b0fa9f..216b7d697d1e311696d3edbfd8f46fd3 </View> </> ); -diff --git a/package.json b/package.json -index 1354ab1cd34b5c26564a8833cecbd3ef1ea460c0..739cb4f6a6b43426b5422c8fa67a0eeddbc2d8f0 100644 ---- a/package.json -+++ b/package.json -@@ -81,7 +81,7 @@ - "react-native-background-timer": "^2.4.1", - "react-native-gesture-handler": "^1.9.0", - "react-native-hyperlink": "0.0.19", -- "react-native-modal": "^11.6.1", -+ "react-native-modal@npm:^13.0.1": "patch:react-native-modal@npm%3A13.0.1#~/.yarn/patches/react-native-modal-npm-13.0.1-f1a75332f0.patch", - "react-native-reanimated": "^1.13.2", - "react-native-safe-area-context": "^3.1.9", - "react-native-screens": "^2.15.0", -@@ -98,7 +98,7 @@ - "react-native": "*", - "react-native-background-timer": ">=2.4.1", - "react-native-hyperlink": ">=0.0.19", -- "react-native-modal": ">=11.6.1", -+ "react-native-modal@npm:^13.0.1": "patch:react-native-modal@npm%3A13.0.1#~/.yarn/patches/react-native-modal-npm-13.0.1-f1a75332f0.patch", - "react-native-reanimated": ">=1.13.2", - "react-native-safe-area-context": ">=3.1.3", - "react-native-vector-icons": ">=7.0.0",
chore: removing unncessary imports for ui components patch
chore: removing unncessary imports for ui components patch
6adb10745f740a4668b57d0053872f23af20356b
--- src/screens/RosterScreen.tsx @@ -27,7 +27,6 @@ export const RosterScreen: React.FC<any> = () => { action(data) { analytics('associate_messagebtn', { message: 'Navigate to messaging screen for an associate', - participants: data, }); navigateToMessageScreen(storeId, data); },
Update analytics
Update analytics
541a624594ca7690fb5c2e86f1a80cfdb4356842
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.2.0-alpha.1", + "version": "3.2.0-alpha.2", "main": "dist/index.js", "files": [ "dist",
feat(ui): updating new version for drop 33
feat(ui): updating new version for drop 33
762a5f4a29a08e6d7cd740d7c3afd4d5c7a90597
--- core/__tests__/home/components/CelebrationCard/indexTest.tsx @@ -63,7 +63,7 @@ describe('CelebrationCard', () => { mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone mockUseSelector.mockReturnValueOnce(true); // isStore mockUseAsync.mockReturnValueOnce({loading: true}); - mockUseSelector.mockReturnValueOnce(true) // clocked in + mockUseSelector.mockReturnValueOnce(true) // compensable const component = create(<CelebrationCard {...baseProps} />); it('matches snapshot while fetching', () => { @@ -174,7 +174,7 @@ describe('CelebrationCard', () => { mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone mockUseSelector.mockReturnValueOnce(true); // isStore mockUseAsync.mockReturnValueOnce({loading: true}); - mockUseSelector.mockReturnValueOnce(false) // clocked out + mockUseSelector.mockReturnValueOnce(false) // compensable component.update(<CelebrationCard {...baseProps} />); expect(component.toJSON()).toBe(null); }); @@ -186,7 +186,7 @@ describe('CelebrationCard', () => { mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone mockUseSelector.mockReturnValueOnce(true); // isStore mockUseAsync.mockReturnValueOnce({loading: true}); - mockUseSelector.mockReturnValueOnce(true) // clocked in + mockUseSelector.mockReturnValueOnce(true) // compensable component.update(<CelebrationCard {...baseProps} />); expect(component.toJSON()).toMatchSnapshot(); }); --- core/src/home/components/CelebrationCard/index.tsx @@ -11,8 +11,8 @@ import { colors, } from '@walmart/gtp-shared-components'; import {UserSelectors} from '@walmart/allspark-foundation/User'; -import {ClockSelectors} from '@walmart/allspark-foundation/Clock'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; +import {MeAtWalmartUserSelectors} from '@walmart/me-at-walmart-common'; import {useAsync} from '@walmart/allspark-utils'; import {Images} from '../../../images'; @@ -35,7 +35,9 @@ export const CelebrationCard = (props: CelebrationCardProps) => { const userId = useSelector(UserSelectors.getFullyQualifiedUserID) || ''; const timeZone = useSelector(SiteSelectors.getWorkingSiteTimeZone); const isStore = useSelector(SiteSelectors.getWorkingSiteIsStore); - const isUserClockedIn = useSelector(ClockSelectors.getIsClockedIn); + const isUserCompensable = useSelector( + MeAtWalmartUserSelectors.getIsCompensable, + ); const context = isStore ? 'store' : 'site'; const {loading, data, error, reload} = useAsync(fetchCelebrationData, { @@ -89,7 +91,7 @@ export const CelebrationCard = (props: CelebrationCardProps) => { }; // Compensable feature, do not show if user is not clocked in - if (!isUserClockedIn) { + if (!isUserCompensable) { return null; } --- packages/me-at-walmart-common/src/redux/selectors.ts @@ -3,6 +3,9 @@ import {UserSelectors} from '@walmart/allspark-foundation/User'; import {ConfigSelectors} from '@walmart/allspark-foundation/Config'; import {getEncryptionKeyForUser} from '../utils'; import {UserType} from '../types'; +import {ClockSelectors} from '@walmart/allspark-foundation/Clock'; +import {DeviceSelectors} from '@walmart/allspark-foundation/Device'; +import {SiteSelectors} from '@walmart/allspark-foundation/Site'; export const getUserEncryptionKey = createSelector( [UserSelectors.getData], @@ -34,11 +37,27 @@ export const getMeAtWalmartOriginalUserDomain = createSelector( getDomain, ); +export const nonByodStates = ['CA', 'IL', 'MT', 'NH', 'ND', 'SD', 'DC']; +export const getIsCompensable = createSelector( + [ + SiteSelectors.getHomeSiteState, + DeviceSelectors.getType, + ClockSelectors.getIsClockedIn, + ], + (siteState, deviceType, isClockedIn) => { + if (siteState && nonByodStates.includes(siteState)) { + return deviceType === 'COPE' && isClockedIn; + } + return isClockedIn; + }, +); + export const MeAtWalmartUserSelectors = { getMeAtWalmartUserIsPreHire, getMeAtWalmartOriginalUserIsPreHire, getMeAtWalmartUserDomain, getMeAtWalmartOriginalUserDomain, + getIsCompensable, }; const getImpersonatorGroups = ConfigSelectors.createContainerConfigSelector(
updated the logic for compensable
updated the logic for compensable
f92d9e5073be4a74df69e0b83c26697b795dbf9f
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Hub/SiteHubDashboard.tsx @@ -193,9 +193,10 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { <View style={{ backgroundColor: '#0071dc', minHeight: 70 }}> <TeamShiftSwitcher isLoading={false} - numTotalShifts={2} + numTotalShifts={selectedShifts?.length || 0} teamName='Fuel' - teamId='1000000' + teamId={selectedTeamIds?.[0] || '1000000'} + selectedShifts={selectedShifts} onPress={() => { AllsparkNavigationClient.openModal( 'managerExperience.supplyChain.updateModal' as any --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -17,6 +17,8 @@ import { useTelemetryService, } from '@walmart/allspark-foundation'; import { useOnboardingContext } from './OnboardingContext'; +import { ManagerExperienceCreators } from '../../../Store/Redux/actions'; +import { useDispatch } from 'react-redux'; export const OnboardingScreen = () => { const { t } = useAllsparkTranslation(FEATURE_ID); @@ -24,8 +26,10 @@ export const OnboardingScreen = () => { const logger = LoggerService.getContainerInstance(); const { disableOnboarding } = useOnboardingContext(); const [input, setInput] = useState(''); + const dispatch = useDispatch(); const [selectedTeams, setSelectedTeams] = useState<string[]>([]); + const [selectedShifts, setSelectedShifts] = useState<string[]>([]); const [sections, setSearchedsections] = useState<typeof sortedSections>(sortedSections); @@ -55,6 +59,19 @@ export const OnboardingScreen = () => { }, [selectedTeams, setSelectedTeams] ); + const handleSelectShift = useCallback( + (item: string) => { + const shiftIsSelected = Boolean( + selectedShifts.find((team) => team === item) + ); + if (shiftIsSelected) { + setSelectedShifts(selectedShifts.filter((shift) => shift !== item)); + } else { + setSelectedShifts([...selectedShifts, item]); + } + }, + [selectedShifts, setSelectedShifts] + ); const handleSaveButton = useCallback(() => { logger.info('Onboarding', { @@ -66,8 +83,17 @@ export const OnboardingScreen = () => { // AllsparkNavigationClient.navigate( // 'managerExperience.supplyChain.editBottomSheet' // ); + dispatch(ManagerExperienceCreators.updateSelectedTeamIDs(selectedTeams)); + dispatch(ManagerExperienceCreators.updateSelectedShifts(selectedShifts)); disableOnboarding(); - }, []); + }, [ + disableOnboarding, + dispatch, + logger, + selectedTeams, + selectedShifts, + teamSelectionTelemetry, + ]); const Divider = () => <View style={styles.divider} />; @@ -85,7 +111,7 @@ export const OnboardingScreen = () => { <View style={styles.filterList}> <ShiftFilterList filterListData={mockFilterListData} - handleSelectShift={() => {}} + handleSelectShift={handleSelectShift} isModal={false} isLoading={false} />
Adding state data to teamswitcher
Adding state data to teamswitcher
bad744e2e24406cb80cd6390e58f3072e09e5995
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.26", + "version": "1.16.0", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.27", + "@walmart/roster-mini-app": "2.13.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -28,8 +28,8 @@ __metadata: linkType: hard "@apollo/client@npm:^3.7.3, @apollo/client@npm:^3.8.6": - version: 3.12.7 - resolution: "@apollo/client@npm:3.12.7" + version: 3.12.8 + resolution: "@apollo/client@npm:3.12.8" dependencies: "@graphql-typed-document-node/core": "npm:^3.1.1" "@wry/caches": "npm:^1.0.0" @@ -40,7 +40,6 @@ __metadata: optimism: "npm:^0.18.0" prop-types: "npm:^15.7.2" rehackt: "npm:^0.1.0" - response-iterator: "npm:^0.2.6" symbol-observable: "npm:^4.0.0" ts-invariant: "npm:^0.10.3" tslib: "npm:^2.3.0" @@ -60,7 +59,7 @@ __metadata: optional: true subscriptions-transport-ws: optional: true - checksum: 10c0/396147eafe9099217da534305be7667a44f89fbb7ef7bb342662fd842fffc6de870744546137a8a7065c1bc458f1201070a74fb7ece0f9f63b6c03907de27cc8 + checksum: 10c0/3af203769fa82892dd5d4870eea2d8d2845b4197118a274779f483df154410601c45bd008afb017f03ef446902ce4ea9c32454e3525abe782286a65979a1f7d0 languageName: node linkType: hard @@ -5980,22 +5979,22 @@ __metadata: linkType: hard "@walmart/allspark-foundation-hub@npm:latest": - version: 1.2.4 - resolution: "@walmart/allspark-foundation-hub@npm:1.2.4" + version: 1.2.6 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.6" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" lodash: "npm:~4.17.21" react-redux: "npm:^8.1.3" peerDependencies: "@react-navigation/native": 6.x - "@walmart/allspark-foundation": "workspace:^" - "@walmart/allspark-utils": "workspace:^" + "@walmart/allspark-foundation": ">=6.27" + "@walmart/allspark-utils": ">=6.5" "@walmart/gtp-shared-components": ">=2" - "@walmart/me-at-walmart-athena-queries": "workspace:^" + "@walmart/me-at-walmart-athena-queries": ">=6.30" react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/9156e6dc42de2b534b45f61e68a9cd54e0b14c0a441f260b31846f276238ac842c239d737e3fc9795c54a33d4e319c348b1415e3019826c15751f2d419fdf3ef + checksum: 10c0/1130ff399616b4def3e2758c4d43487dce0efb389252c46817f0c5d831c5fa46213cfb8fffec7768898f567f9e0f6c9305a79f3bc2b48362f6403a0a93f05c89 languageName: node linkType: hard @@ -6401,7 +6400,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.27" + "@walmart/roster-mini-app": "npm:2.13.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6582,9 +6581,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.27": - version: 2.12.27 - resolution: "@walmart/roster-mini-app@npm:2.12.27" +"@walmart/roster-mini-app@npm:2.13.0": + version: 2.13.0 + resolution: "@walmart/roster-mini-app@npm:2.13.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6626,7 +6625,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/13f98044ef82f3678bd663a99dcd6bf9a27f87f3e884b3396cc6b795f6e8401b06b03615cefa1215afa4a259a81bd8650e8e62d47241a148b26f5994f8348f63 + checksum: 10c0/45946f5261c300c8be26c3269c2be32494f4a7b402ed74e0633c4464d42e7a467d9aef0ada76860c8a445281b8531accfaca429fe4b2011969e66e18c18b38aa languageName: node linkType: hard @@ -15042,11 +15041,11 @@ __metadata: linkType: hard "moment-timezone@npm:~0.5.43": - version: 0.5.46 - resolution: "moment-timezone@npm:0.5.46" + version: 0.5.47 + resolution: "moment-timezone@npm:0.5.47" dependencies: moment: "npm:^2.29.4" - checksum: 10c0/003fd278d1aa3e63afff340a318735db80157b7a343e3f807cac10e026def214f0e71b52d582b89a11ee0a19f5d9f0da2752b7959d855429f2b715d4859d3722 + checksum: 10c0/6f7cdbebe712dcbb767a6380e097d352776b83dd7d1d797546d6ff21d813e8380633373da93aea1d24f2c3c031044fd4a18726cacad14eda3f1f428192ad955c languageName: node linkType: hard @@ -17441,7 +17440,18 @@ __metadata: languageName: node linkType: hard -"readable-stream@npm:^2.3.8, readable-stream@npm:~2.3.6": +"readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0": + version: 3.6.2 + resolution: "readable-stream@npm:3.6.2" + dependencies: + inherits: "npm:^2.0.3" + string_decoder: "npm:^1.1.1" + util-deprecate: "npm:^1.0.1" + checksum: 10c0/e37be5c79c376fdd088a45fa31ea2e423e5d48854be7a22a58869b4e84d25047b193f6acb54f1012331e1bcd667ffb569c01b99d36b0bd59658fb33f513511b7 + languageName: node + linkType: hard + +"readable-stream@npm:~2.3.6": version: 2.3.8 resolution: "readable-stream@npm:2.3.8" dependencies: @@ -17456,17 +17466,6 @@ __metadata: languageName: node linkType: hard -"readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0": - version: 3.6.2 - resolution: "readable-stream@npm:3.6.2" - dependencies: - inherits: "npm:^2.0.3" - string_decoder: "npm:^1.1.1" - util-deprecate: "npm:^1.0.1" - checksum: 10c0/e37be5c79c376fdd088a45fa31ea2e423e5d48854be7a22a58869b4e84d25047b193f6acb54f1012331e1bcd667ffb569c01b99d36b0bd59658fb33f513511b7 - languageName: node - linkType: hard - "readdirp@npm:~3.6.0": version: 3.6.0 resolution: "readdirp@npm:3.6.0" @@ -17910,15 +17909,6 @@ __metadata: languageName: node linkType: hard -"response-iterator@npm:^0.2.6": - version: 0.2.19 - resolution: "response-iterator@npm:0.2.19" - dependencies: - readable-stream: "npm:^2.3.8" - checksum: 10c0/fee5d23958060f87f74ba11d7d291d4a0e88ea964abed0d3375ac174993666131446c84c20236460cec9fae8173fbed78caa5a6534c717a98ce67255e38fe85e - languageName: node - linkType: hard - "restore-cursor@npm:^2.0.0": version: 2.0.0 resolution: "restore-cursor@npm:2.0.0"
Update the my team mini app version
Update the my team mini app version
4bc80b0128b49f2b0e50fc11dadda3980c332065
--- packages/allspark-foundation-hub/src/HubFeature/Hub/TeamSwitcher/index.tsx @@ -167,6 +167,9 @@ export const TeamSwitcher = ({ const renderTeamItem = ({ item }: { item: TeamSwitcherTypes }) => { const isSelected = item?.teamLabel === selectedTeam; + if (!item.teamLabel) { + return null; + } return isLoading || refreshing ? ( renderLoadingSkeleton() ) : ( --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx @@ -8,7 +8,6 @@ import { HubHeader } from '../../../HubHeader'; import { colors } from '@walmart/gtp-shared-components'; import { ListHeader } from './ListHeader'; import { TeamSelectionLoader } from './TeamSelectionLoader'; -import { ErrorScreen } from './ErrorScreen'; import { UserSelectors } from '@walmart/allspark-foundation/User'; import { SiteSelectors } from '@walmart/allspark-foundation/Site'; import { useDispatch, useSelector } from 'react-redux'; @@ -64,7 +63,7 @@ export const TeamSelectionList = ({ } }, [dispatch, userOnboardingInProgress]); - const [upsertManagerExperiencePreferenceMutation, { error, loading }] = + const [upsertManagerExperiencePreferenceMutation, { loading }] = useUpsertManagerExperiencePreferenceMutation({ context: { headers: { @@ -77,11 +76,29 @@ export const TeamSelectionList = ({ logger.info('managerExperienceMutation success', { message: 'Manager experience mutation completed', }); + if (isUserAlreadyOnboarded) { + dispatch(ManagerExperienceCreators.completeTeamSelection()); + AllsparkNavigationClient.goBack(); + } else { + dispatch(ManagerExperienceCreators.completeUserOnboarding()); + if (hubScreeName) { + AllsparkNavigationClient.navigate(hubScreeName); + } else { + AllsparkNavigationClient.dispatch(StackActions.pop(2)); + } + } }, onError: (err: any) => { logger.error('managerExperienceMutation error', { message: `${err}`, }); + if (isUserAlreadyOnboarded) { + dispatch( + ManagerExperienceCreators.userTeamSelectionFailed(err.message) + ); + } else { + dispatch(ManagerExperienceCreators.userOnboardingFailed(err.message)); + } }, }); @@ -109,29 +126,7 @@ export const TeamSelectionList = ({ countryCode: countryCode, })) as TeamPreference[], }, - }) - .then(() => { - if (isUserAlreadyOnboarded) { - dispatch(ManagerExperienceCreators.completeTeamSelection()); - AllsparkNavigationClient.goBack(); - } else { - dispatch(ManagerExperienceCreators.completeUserOnboarding()); - if (hubScreeName) { - AllsparkNavigationClient.navigate(hubScreeName); - } else { - AllsparkNavigationClient.dispatch(StackActions.pop(2)); - } - } - }) - .catch((err: Error) => { - if (isUserAlreadyOnboarded) { - dispatch( - ManagerExperienceCreators.userTeamSelectionFailed(err.message) - ); - } else { - dispatch(ManagerExperienceCreators.userOnboardingFailed(err.message)); - } - }); + }); //TODO: Add confirmation screen navigation logger.info('Save teams event', { message: 'Save teams event triggered', @@ -147,30 +142,6 @@ export const TeamSelectionList = ({ return <TeamSelectionLoader />; } - if (error) { - return ( - <ErrorScreen - errorTitle={'Something went wrong'} - errorMessage={'Refresh this page to try again.'} - buttonText={'Refresh page'} - handleButtonPress={() => { - upsertManagerExperiencePreferenceMutation({ - variables: { - win: win as string, - site: Number(site), - teams: selectedTeamIds.map((teamId) => ({ - teamId: teamId, - site: `${site}`, - countryCode: countryCode, - })) as TeamPreference[], - }, - }); - AllsparkNavigationClient.navigate('managerExperience.teamSelection'); - }} - /> - ); - } - return ( //TODO: Add translations to all constants <View testID='selectionList'> @@ -246,7 +217,7 @@ export const TeamSelectionList = ({ stickySectionHeadersEnabled={false} /> <View testID='team-selection-footer' style={styles.footer}> - <SelectionBanner selectedTeams={selectedTeams?.length} /> + <SelectionBanner selectedTeams={selectedTeamIds?.length} /> <SelectionBannerFooterButtons onCancelButtonPress={handleCancelButton} onSaveButtonPress={handleSaveButton} --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Screens/TeamSelection.tsx @@ -38,28 +38,24 @@ export const TeamSelection = () => { const { data, loading, error, refetch, networkStatus } = useTeamsByStore(); - const { - data: preferenceData, - loading: preferenceDataLoading, - error: preferenceDataError, - refetch: refetchPreferences, - } = useGetAssociatePreferencesQuery({ - variables: { - site: Number(site), - win: win as string, - }, - fetchPolicy: 'cache-and-network', - onCompleted: () => { - logger.info('useGetAssociatePreferencesQuery', { - message: 'GetAssociatePreferencesQuery completed', - }); - }, - onError: (err: any) => { - logger.error('useGetAssociatePreferencesQuery error', { - message: `${err}`, - }); - }, - }); + const { data: preferenceData, loading: preferenceDataLoading } = + useGetAssociatePreferencesQuery({ + variables: { + site: Number(site), + win: win as string, + }, + fetchPolicy: 'cache-and-network', + onCompleted: () => { + logger.info('useGetAssociatePreferencesQuery', { + message: 'GetAssociatePreferencesQuery completed', + }); + }, + onError: (err: any) => { + logger.error('useGetAssociatePreferencesQuery error', { + message: `${err}`, + }); + }, + }); useEffect(() => { const myTeamsData = @@ -83,7 +79,7 @@ export const TeamSelection = () => { return <TeamSelectionLoader />; } - if (error || preferenceDataError || !data?.length) { + if (error) { return ( <ErrorScreen errorTitle={'Something went wrong'} @@ -92,7 +88,7 @@ export const TeamSelection = () => { handleButtonPress={() => { if (!data.length) { refetch(); - } else refetchPreferences(); + } }} /> );
updating api data and error render logic
updating api data and error render logic
d4e181dcc9ec921fde052520b45ddf35caf6951f
--- core/__tests__/appReview/sagasTest.ts @@ -1,4 +1,4 @@ -import {call, select} from 'redux-saga/effects'; +import { call, select } from 'redux-saga/effects'; import { ConfigSelectors, FeatureConfig, @@ -11,7 +11,7 @@ import { STORAGE_KEY, SCENE_DOES_NOT_EXIST_CODE, } from '../../src/appReview/sagas'; -import {AllsparkLocalStorage} from '@walmart/allspark-foundation'; +import { AllsparkLocalStorage } from '@walmart/allspark-foundation'; describe('handleAppReviewPrompt', () => { const config: FeatureConfig = { @@ -71,11 +71,12 @@ describe('handleAppReviewPrompt', () => { }); it('works as expected when app review has recently been prompted', () => { const iterator = checkAppReviewRequest(appReviewConfig); - const currentDate = new Date().toString(); expect(iterator.next().value).toEqual( call(AllsparkLocalStorage.get, STORAGE_KEY), ); - expect(iterator.next({currentDate}).done).toEqual(true); + const result = iterator.next(); + expect(result.value).toBe(true); + expect(result.done).toBe(true); }); //onAppReviewRequest tests @@ -94,6 +95,15 @@ describe('handleAppReviewPrompt', () => { expect(iterator.next().value["type"]).toEqual( "CALL" ); - expect(iterator.throw({code: SCENE_DOES_NOT_EXIST_CODE, message: ""}).done).toEqual(true); + expect(iterator.throw({ code: SCENE_DOES_NOT_EXIST_CODE, message: "" }).done).toEqual(true); }) -}); + it('handles non-scene-does-not-exist errors', () => { + const iterator = onAppReviewRequest(); + const error = { code: 'OTHER_ERROR', message: 'Test error' }; + + expect(iterator.next().value["type"]).toEqual("CALL"); + const result = iterator.throw(error); + expect(result.value).toEqual(error); + expect(iterator.next().done).toEqual(true); + }); +}); \ No newline at end of file
Added code coverage for sagas in appReview
Added code coverage for sagas in appReview
ce11215e12513f9756d7221602a783512da34a5f
--- docs/docs/allspark foundation/core/foundation-native-setup.md @@ -28,7 +28,7 @@ pod 'GoogleUtilities', :modular_headers => true ## Android General -Make these changes to your `buid.gradle`: +Make these changes to your `build.gradle`: Update repositories to include Walmart links: --- packages/allspark-foundation/src/Core/docs/NativeSetup.md @@ -22,7 +22,7 @@ pod 'GoogleUtilities', :modular_headers => true ## Android General -Make these changes to your `buid.gradle`: +Make these changes to your `build.gradle`: Update repositories to include Walmart links:
fix: Corrects spelling for build.gradle in a few places.
fix: Corrects spelling for build.gradle in a few places.
c1a0f1c08c6edd8a4922927e7be2c3b0c441edac
--- package-lock.json @@ -90,7 +90,7 @@ "@walmart/schedule-mini-app": "0.63.2", "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.25.0", - "@walmart/taskit-mini-app": "v2.57.0", + "@walmart/taskit-mini-app": "2.57.0", "@walmart/texting-mini-app": "2.1.4", "@walmart/time-clock-mini-app": "2.301.0", "@walmart/topstock-mini-app": "1.4.14", --- package.json @@ -131,7 +131,7 @@ "@walmart/schedule-mini-app": "0.63.2", "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.25.0", - "@walmart/taskit-mini-app": "v2.57.0", + "@walmart/taskit-mini-app": "2.57.0", "@walmart/texting-mini-app": "2.1.4", "@walmart/time-clock-mini-app": "2.301.0", "@walmart/topstock-mini-app": "1.4.14",
Updated taskit version for expo-image
Updated taskit version for expo-image
0af6047612711341bc6de18ba4fe5b838d5afcc3
--- package-lock.json @@ -4166,9 +4166,9 @@ "integrity": "sha512-t1d3ohYMyfrKWEogykstetXWuIeHcGrnClVJu+m1CrTlL0o4ZrcyNpHwZLo1olJbwX3ujgmpRRcygMmWpowDCA==" }, "@walmart/ask-sam-mini-app": { - "version": "0.40.4", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.40.4.tgz", - "integrity": "sha512-cdX/if1sexnMUTgwNxBcSMjR8TzRzwmEeaVDcOm4j5NoDIYdO+Btvqwc5prwmxezs1wj+XkxKN4a60GAMHq76w==", + "version": "0.40.5", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.40.5.tgz", + "integrity": "sha512-5BT2mEviVFvsadL7xTftSmo+BSiNxRpC+DgzFJ4A97Lq6jkAiFxr5u3dRijhuvWt4EyQkhl4nxZylNtUZ6vfKA==", "requires": { "apisauce": "^1.1.2", "axios-cache-adapter": "^2.7.3", @@ -5679,6 +5679,7 @@ "version": "1.0.2", "resolved": "https://npme.walmart.com/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, "requires": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" @@ -7796,6 +7797,7 @@ "version": "1.1.1", "resolved": "https://npme.walmart.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz", "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", + "dev": true, "requires": { "function-bind": "^1.1.1", "has": "^1.0.3", @@ -7826,6 +7828,7 @@ "version": "1.0.0", "resolved": "https://npme.walmart.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz", "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, "requires": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.1" @@ -7908,7 +7911,8 @@ "has-bigints": { "version": "1.0.1", "resolved": "https://npme.walmart.com/has-bigints/-/has-bigints-1.0.1.tgz", - "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==" + "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==", + "dev": true }, "has-flag": { "version": "4.0.0", @@ -7924,6 +7928,7 @@ "version": "1.0.0", "resolved": "https://npme.walmart.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz", "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, "requires": { "has-symbols": "^1.0.2" }, @@ -7931,7 +7936,8 @@ "has-symbols": { "version": "1.0.2", "resolved": "https://npme.walmart.com/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==" + "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "dev": true } } }, @@ -8450,6 +8456,7 @@ "version": "1.0.4", "resolved": "https://npme.walmart.com/is-bigint/-/is-bigint-1.0.4.tgz", "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, "requires": { "has-bigints": "^1.0.1" } @@ -8458,6 +8465,7 @@ "version": "1.1.2", "resolved": "https://npme.walmart.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz", "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, "requires": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -8599,6 +8607,7 @@ "version": "1.0.6", "resolved": "https://npme.walmart.com/is-number-object/-/is-number-object-1.0.6.tgz", "integrity": "sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g==", + "dev": true, "requires": { "has-tostringtag": "^1.0.0" } @@ -8633,7 +8642,8 @@ "is-shared-array-buffer": { "version": "1.0.1", "resolved": "https://npme.walmart.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", - "integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==" + "integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==", + "dev": true }, "is-stream": { "version": "1.1.0", @@ -8644,6 +8654,7 @@ "version": "1.0.7", "resolved": "https://npme.walmart.com/is-string/-/is-string-1.0.7.tgz", "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, "requires": { "has-tostringtag": "^1.0.0" } @@ -8665,6 +8676,7 @@ "version": "1.0.2", "resolved": "https://npme.walmart.com/is-weakref/-/is-weakref-1.0.2.tgz", "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, "requires": { "call-bind": "^1.0.2" } @@ -18413,6 +18425,7 @@ "version": "1.0.1", "resolved": "https://npme.walmart.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz", "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, "requires": { "function-bind": "^1.1.1", "has-bigints": "^1.0.1", @@ -18423,7 +18436,8 @@ "has-symbols": { "version": "1.0.2", "resolved": "https://npme.walmart.com/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==" + "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "dev": true } } }, @@ -19149,6 +19163,7 @@ "version": "1.0.2", "resolved": "https://npme.walmart.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dev": true, "requires": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", --- package.json @@ -74,7 +74,7 @@ "@walmart/allspark-home-mini-app": "0.5.23", "@walmart/allspark-me-mini-app": "0.31.2", "@walmart/allspark-neon-core": "0.1.25", - "@walmart/ask-sam-mini-app": "0.40.4", + "@walmart/ask-sam-mini-app": "0.40.5", "@walmart/config-components": "1.0.35", "@walmart/counts-component-miniapp": "0.0.32", "@walmart/exception-mini-app": "0.38.1",
Ask Sam update
Ask Sam update
0c8fc24751e0aa002d17702c709b40ef4ab288be
--- ios/AllSpark/Info.plist @@ -75,7 +75,7 @@ </dict> </dict> <key>CodePushDeploymentKey</key> - <string>LCVCkTeZVt9h-JYHlQ4NFkOQfYJkTL3RKk4nt</string> + <string>LCVCkTeZVt9h-JYHlQ4NFkOQfYJkTL3RKk4nt</string> <key>NSCameraUsageDescription</key> <string>We use your camera for scanning images of barcodes</string> <key>NSFaceIDUsageDescription</key>
indentfix
indentfix
a4816d48b3f6a10d2e5a37c1395b9e12cd2f6cf4
--- package-lock.json @@ -3088,9 +3088,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.0.73", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.73.tgz", - "integrity": "sha512-AJzYhoHbQouwTmgVrGYkq1nw7uBhi9u4huoyICqIJPR4EAVMLUD2+CNyOdUn6B6sA4iUO9VMr6feGwjfLX00Rw==" + "version": "0.0.74", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.74.tgz", + "integrity": "sha512-kOO1Suouvj5tDR2UIwCBWNMwF6ez+7jSoSrskwJRZul5psZfQ70Cidpcz9wyUavurcBxq1CoqOotCBN6sKpbCw==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -56,7 +56,7 @@ "@walmart/impersonation-mini-app": "1.0.7", "@walmart/inbox-mini-app": "0.0.36", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.0.73", + "@walmart/push-to-talk-mini-app": "0.0.74", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.17.0", "@walmart/react-native-shared-navigation": "^0.3.0",
PTT version bump (#270)
PTT version bump (#270) Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
84154c824d26d42c835e2c328f5ed5644738b318
--- src/core/httpClientInit.ts @@ -22,7 +22,7 @@ const waitingForSignOnQueue: QueueItem[] = []; export const isUserAvailable = async (): Promise<boolean> => { try { const user = await WMSingleSignOn.getUser(); - return !!(user && user.userId); + return !!(user && (user.userId || user.emailId)); } catch (err) { console.warn('error while checking for user', err); }
added candidate emailId check
added candidate emailId check
7ef4fa8739ac734392afb00c552ab55986b1b01b
--- package-lock.json @@ -12920,9 +12920,9 @@ } }, "react-native-wm-barcode": { - "version": "2.28.0", - "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.28.0.tgz", - "integrity": "sha512-vtYsT6w93kjbBfQgFsP32M2WvMjalwLZnv7x7qpu8weOxaZ+cwsJruPV+sbJbwCBDMJVmQSq/KDqNb9DAjgITQ==" + "version": "2.29.0", + "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.29.0.tgz", + "integrity": "sha512-xXs/c6oyhcDIqTxwVt+H9FegeYYNZ1fF5WfatNA/k9oSfUsbEGEALIxJNc/wJDnra51SeEAm+XAO9SI+mmjOCw==" }, "react-native-wm-config": { "version": "0.1.1", --- package.json @@ -142,7 +142,7 @@ "react-native-video": "^5.1.0-alpha8", "react-native-view-shot": "^3.1.2", "react-native-webview": "^10.7.0", - "react-native-wm-barcode": "2.28.0", + "react-native-wm-barcode": "2.29.0", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.1.0", "react-native-wm-notification": "^1.0.0",
updated scanner version
updated scanner version
a3e2039ac5bce3f2f39ed900160397740fe988e3
--- src/navigation/AssociateHallwayNav/Tabs/index.tsx @@ -40,7 +40,7 @@ import {HomeStackNav} from './HomeStackNav'; import {MeStackNav} from './MeStackNav'; import {MyTeamStackNav} from './MyTeamStackNav'; import styles from './styles'; -import {myTeamHooks} from '@walmart/texting-mini-app'; +import {MyTeamHooks} from '@walmart/texting-mini-app'; // --- Ask Sam "Fake" tab handling --- // export const AskSamPlaceholder = () => <View />; @@ -175,7 +175,7 @@ export const MainTabsNav = () => { const badgesCount = useSelector(getInboxBadgeCount); const taskTabBadge = getTaskTabBarBadge(); - const myTeamTabBadge = myTeamHooks.useChannelUnread(); + const myTeamTabBadge = MyTeamHooks.useChannelUnreadCount(); const {total} = useWorkBadgeCount(); const configMap = useSelector(getBottomNavConfigMap); const {home, me, askSam, myTeam, taskit, copilot} = configMap;
adding badge count integration for my team
adding badge count integration for my team
f62f1968523b1e030ecaa46a3a76e90dc0819bd2
--- package.json @@ -80,7 +80,7 @@ "@types/redux-mock-store": "^1.0.2", "@walmart/allspark-authentication": "6.4.1", "@walmart/allspark-foundation": "^6.32.0", - "@walmart/allspark-foundation-hub": "1.10.0-beta.4772+77077cc3", + "@walmart/allspark-foundation-hub": "1.10.0-beta.4777+338560dd", "@walmart/allspark-graphql-client": "6.3.29", "@walmart/allspark-http-client": "6.3.29", "@walmart/allspark-utils": "6.5.1", --- yarn.lock @@ -6009,9 +6009,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4772+77077cc3": - version: 1.10.0-beta.4772 - resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4772::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4772.tgz" +"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4777+338560dd": + version: 1.10.0-beta.4777 + resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4777::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4777.tgz" peerDependencies: "@react-navigation/native": 6.x "@walmart/allspark-foundation": ">=6.27" @@ -6021,7 +6021,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/1d187d5951abafbb885bae67c3682801e00df87b21a26aaaded20739a3508ec3767d59366e06803ee3ff68b65a939d9f3f823c1832cc671c2b230c52c5f06edf + checksum: 10c0/6a735e5a8edb5fd91f1ff32b87c91f0ef5a38e5bccfe9fcd7f191544d0a3cb00eddbf36dd7b667ea370076a238ac757a42da1c930aa926fe7b2292d20e2b484e languageName: node linkType: hard @@ -6200,7 +6200,7 @@ __metadata: "@types/redux-mock-store": "npm:^1.0.2" "@walmart/allspark-authentication": "npm:6.4.1" "@walmart/allspark-foundation": "npm:^6.32.0" - "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4772+77077cc3" + "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4777+338560dd" "@walmart/allspark-graphql-client": "npm:6.3.29" "@walmart/allspark-http-client": "npm:6.3.29" "@walmart/allspark-utils": "npm:6.5.1"
feat(ui): update allspark-foundation-hub version
feat(ui): update allspark-foundation-hub version
03a305b212ce30377122943e882e132b32fe1d9f
--- packages/allspark-foundation/src/Redux/reducers/container.ts @@ -0,0 +1,42 @@ +import { createSlice } from '@reduxjs/toolkit'; +import { createSliceActionUtils } from '../utils'; +import { InferActionTypes } from '../types'; + +export type ContainerState = { + isStartingUp: boolean; + isSafeForFeatures: boolean; +}; + +const INITIAL_STATE: ContainerState = { + isStartingUp: true, + isSafeForFeatures: false, +}; + +export const containerSlice = createSlice({ + name: 'container', + initialState: INITIAL_STATE, + reducers: { + STARTUP_BEGIN: (state) => { + state.isStartingUp = true; + state.isSafeForFeatures = false; + }, + STARTUP_COMPLETE: (state) => { + state.isStartingUp = false; + state.isSafeForFeatures = true; + }, + SAFE_FOR_FEATURES: (state) => { + state.isSafeForFeatures = true; + }, + UNSAFE_FOR_FEATURES: (state) => { + state.isSafeForFeatures = false; + }, + }, +}); + +export const { + ActionTypes: ContainerActionTypes, + ActionCreators: ContainerActionCreators, +} = createSliceActionUtils(containerSlice); + +export type IContainerActionCreators = typeof containerSlice.actions; +export type IContainerActions = InferActionTypes<IContainerActionCreators>; --- packages/allspark-foundation/src/Redux/reducers/index.ts @@ -12,10 +12,12 @@ import { notificationSlice } from './notification'; import { siteSlice } from './site'; import { userSlice } from './user'; import { versionsSlice } from './versions'; +import { containerSlice } from './container'; export * from './auth'; export * from './clock'; export * from './config'; +export * from './container'; export * from './device'; export * from './environment'; export * from './locale'; @@ -32,6 +34,7 @@ export const BaseAllsparkReducers = { auth: authSlice.reducer, clock: clockSlice.reducer, config: configSlice.reducer, + container: containerSlice.reducer, device: deviceSlice.reducer, environment: environmentSlice.reducer, locale: localeSlice.reducer, --- packages/allspark-foundation/src/Redux/selectors/container.ts @@ -0,0 +1,4 @@ +import { containerSlice } from '../reducers/container'; +import { generateSelectorsForSlice } from '../utils'; + +export const ContainerSelectors = generateSelectorsForSlice(containerSlice); --- packages/allspark-foundation/src/Redux/selectors/index.ts @@ -1,6 +1,7 @@ export * from './auth'; export * from './clock'; export * from './config'; +export * from './container'; export * from './device'; export * from './environment'; export * from './locale';
feat: add container redux slice
feat: add container redux slice
1bc38d77cf81cd014258a227201b45ca2ef2fd0c
--- .gitignore @@ -60,3 +60,8 @@ test-report.xml .giga .github/prompts .github/copilot-instructions.md + + +cx.json +project.swissinfo +users.swissinfo
feat(ui): update associate exp hub version
feat(ui): update associate exp hub version
f9820d8879c0f5fa3f6da5b6559f38d36dfbd379
--- package-lock.json @@ -4483,9 +4483,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.16.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.16.0.tgz", - "integrity": "sha512-uXzli8fYkLFuAJ9FOM3dTvFEJ+a/eb/0KRHyfaotTHz1Px4X3Kp4QF7UaDI+gzj37wX9937zjfzuJ4CN2e6OVA==" + "version": "0.17.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.17.0.tgz", + "integrity": "sha512-RdFIxYZNPtyEKhZ5e3pxbfoTX/wW2BsQb0HqpfTt2U7CVN1TVC3psF9R3Bl8nj82QMPTq595NoLixyGkFFlN0Q==" }, "@walmart/time-clock-mini-app": { "version": "0.5.1", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.12.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", - "@walmart/taskit-mini-app": "0.16.0", + "@walmart/taskit-mini-app": "0.17.0", "@walmart/time-clock-mini-app": "0.5.1", "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.52.0",
Updating taskIt version
Updating taskIt version
920f998078222e145c91236498d76acfc134eb34
--- __tests__/transforms/languageTest.ts @@ -21,12 +21,12 @@ describe('getValueForLanguage', () => { it('returns N/A if no language given and no default language defined', () => { const value = getValueForLanguage({'es-MX': 'english_testing'}); - expect(value).toEqual('N/A'); + expect(value).toEqual(undefined); }); it('returns default if no matching or english language', () => { const value = getValueForLanguage({}, 'en-US'); - expect(value).toEqual('N/A'); + expect(value).toEqual(undefined); }); it('returns undefined if value not given', () => { --- src/transforms/language.ts @@ -10,10 +10,10 @@ export const getValueForLanguage = ( } if (!language) { - return config[DEFAULT_LANGUAGE] || 'N/A'; + return config[DEFAULT_LANGUAGE]; } - return config[language] || config[DEFAULT_LANGUAGE] || 'N/A'; + return config[language] || config[DEFAULT_LANGUAGE]; }; export const getValueForCurrentLanguage = (
Updating language transform logic
Updating language transform logic
c211dcfe9367d0ea23a0b82a7d29489f9814c7d2
--- docs/CHANGELOG.md @@ -0,0 +1,6 @@ +# [1.28.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.27.0...v1.28.0) (2025-04-30) + + +### Features + +* SMDV-9999 update package ([816de7c](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/816de7cf6421e4e5210183643615939cfc3d1e9b)) --- package.json @@ -1,11 +1,11 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.27.0", + "version": "1.28.0", "main": "dist/index.js", "files": [ "dist/" ], - "packageManager": "yarn@4.6.0", + "packageManager": "yarn@4.4.0", "engines": { "node": ">=18" },
chore(release): 1.28.0 [skip ci]
chore(release): 1.28.0 [skip ci] # [1.28.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.27.0...v1.28.0) (2025-04-30) ### Features * SMDV-9999 update package ([816de7c](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/816de7cf6421e4e5210183643615939cfc3d1e9b))
73068af34f162c5edd624a0187f8551d97bf005d
--- package.json @@ -9,9 +9,9 @@ "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", - "coverage": "jest --coverage", + "coverage": "TZ=UTC jest --coverage", "start": "react-native start", - "test": "jest", + "test": "TZ=UTC jest", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:fix": "eslint ./src ./__tests__ --ext .js,.jsx,.ts,.tsx --fix", "copy:images": "cp -r ./src/images ./dist/", --- package.json @@ -9,9 +9,9 @@ "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", - "coverage": "jest --coverage", + "coverage": "TZ=UTC jest --coverage", "start": "react-native start", - "test": "jest", + "test": "TZ=UTC jest", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:fix": "eslint ./src ./__tests__ --ext .js,.jsx,.ts,.tsx --fix", "copy:images": "cp -r ./src/images ./dist/",
normalizing the timezone to UTC for jest tests
normalizing the timezone to UTC for jest tests
7b9b0c97e5caff31258edf6680c683e0ff935b28
--- __tests__/screens/RosterScreen/TeamsListTest.tsx @@ -1,7 +1,7 @@ import React from 'react'; const {renderWithProviders} = require('../../harness'); import {RosterScreen} from '../../../src/screens/RosterScreen'; -import { useSelector } from 'react-redux'; +import {useSelector} from 'react-redux'; const {initialStateMock} = require('../../harness/redux/mockState'); const { mockRosterScreenNavigation, --- __tests__/screens/SearchScreen/SearchScreenTest.tsx @@ -16,7 +16,6 @@ import {logger} from '../../../src/logger/Logger'; import {finishPendingRequests} from '../../harness/utils'; import {hourlyUserData} from '../../harness/redux/mockState/mockUsers/hourlyUser'; import {createMockDailyRosterResponse} from '../../harness/athenaQueries/getDailyRoster'; -import { initialStateMock } from '../../harness/redux/mockState'; const LOGGER_APP_KEY = 'roster';
fix lint
fix lint
2c62c87b2794524d55be7a2791e57eab1cedd307
--- __tests__/managerExperience/screens/AllTeamsScreen.test.tsx @@ -8,7 +8,7 @@ import {GetTeamByIdQueryResult} from '../../../src/queries/getTeamById'; import {mockGetTeamsByStoreQuery} from '../../harness/athenaQueries/getTeamsByStore'; import {useSelector} from 'react-redux'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; -import { UserSelectors } from '@walmart/allspark-foundation/User'; +import {UserSelectors} from '@walmart/allspark-foundation/User'; jest.mock('../../../src/hooks'); @@ -33,7 +33,6 @@ describe('AllTeamsScreen', () => { expect(toJSON()).toMatchSnapshot(); }); - it('renders DC teams list when siteIsDC or userIsDC and siteIsDC are true', () => { // Mock the useSelector to return true for siteIsDC and set userDomain to 'distribution center' (useSelector as jest.Mock).mockImplementation((selector) => {
update test prettier
update test prettier
5aa5a758c8c522264e76b6b157c83c1dccfc6380
--- __tests__/home/components/LayoutTest.tsx @@ -0,0 +1,52 @@ +import React from 'react'; +import {create} from 'react-test-renderer'; +import {Layout} from '../../../src/home/components/Layout'; + +describe('Layout', () => { + const layoutList = [ + [ + { + component: 'LinkCard', + width: 2, + metaData: { + title: { + 'en-US': 'Share an idea or concern', + 'es-MX': 'Comparte una idea o preocupacion', + }, + clockCheck: 'true', + restrictedStates: ['CA', 'IL', 'MT', 'NH', 'ND', 'SD', 'DC'], + url: 'https://one.walmart.com/content/uswire/en_us/me/opendoor_ethics_entry/opendoor_ethics_portal/ideation_block.html', + }, + }, + ], + [ + { + component: 'CelebrationCard', + width: 2, + }, + ], + [{}], + ]; + const restProps = { + CelebrationCard: () => 'CelebrationCard', + LinkCard: () => 'LinkCard', + }; + const card = create(<Layout />); + + it('renders for empty layout', () => { + expect(card.toJSON()).toMatchSnapshot(); + }); + it('renders for child components', () => { + card.update( + <Layout + layout={layoutList} + {...restProps} + style={{ + flex: 4, + }} + />, + ); + + expect(card.toJSON()).toMatchSnapshot(); + }); +}); --- __tests__/home/components/__snapshots__/LayoutTest.tsx.snap @@ -0,0 +1,74 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Layout renders for child components 1`] = ` +<RCTScrollView + style={ + Object { + "flex": 4, + } + } +> + <View> + <View + style={ + Object { + "alignItems": "center", + "flexDirection": "row", + } + } + > + <View + style={ + Array [ + Object { + "flex": 1, + }, + Object { + "flex": 2, + }, + ] + } + > + LinkCard + </View> + </View> + <View + style={ + Object { + "alignItems": "center", + "flexDirection": "row", + } + } + > + <View + style={ + Array [ + Object { + "flex": 1, + }, + Object { + "flex": 2, + }, + ] + } + > + CelebrationCard + </View> + </View> + <View + style={ + Object { + "alignItems": "center", + "flexDirection": "row", + } + } + /> + </View> +</RCTScrollView> +`; + +exports[`Layout renders for empty layout 1`] = ` +<RCTScrollView> + <View /> +</RCTScrollView> +`; --- __tests__/home/theme/ThemeTest.ts @@ -0,0 +1,27 @@ +import {Platform} from 'react-native'; +import {Fonts, Metrics} from '../../../src/home/theme/'; + +jest.mock('react-native/Libraries/Utilities/Platform', () => ({ + OS: 'android', // or 'ios' + select: () => null, +})); +jest.mock('react-native/Libraries/Utilities/Dimensions', () => ({ + get: jest.fn().mockReturnValueOnce({width: 914, height: 818}), +})); + +describe('ThemeTest', () => { + afterAll(jest.resetAllMocks); + it('matches style for different OS', () => { + Platform.OS = 'android'; + expect(Fonts.weight).toEqual({ + mediumBold: '700', + mediumXBold: '600', + normal: '400', + }); + }); + + it('displays height based on dimensions', () => { + expect(Metrics.screenWidth).toEqual(818); + expect(Metrics.screenHeight).toEqual(914); + }); +}); --- package.json @@ -310,7 +310,7 @@ "coverageThreshold": { "global": { "statements": 100, - "branches": 99, + "branches": 100, "functions": 100, "lines": 100 }
update package file
update package file
baaf2d0372efec388a1a51050b2e3b283df9229b
--- src/redux/selectors.ts @@ -1,7 +1,13 @@ import {createSelector} from 'reselect'; -import {GlobalState} from '@walmart/redux-store'; +import {UserSelectors, GlobalState} from '@walmart/redux-store'; +import {encryptUserId} from '../utils'; import {CCMFallbacks} from '../ccmFallbacks'; +export const getEncryptedUserId = createSelector( + [UserSelectors.getUserWIN], + encryptUserId, +); + export const getTextingAppConfigData = (state: GlobalState) => state.appConfig.data?.texting || {}; --- src/utils/user.ts @@ -1,7 +1,24 @@ +import {encryptUserId as baseEncryptUserId} from '@walmart/allspark-utils'; +import CryptoJS from 'crypto-js'; import {Associate} from '../types'; import {GetAssociateNameQuery} from '../queries/getAssociateName'; import {isNil} from 'lodash'; +const OBFUSCATION_KEY = 'texting-mini-app'; +const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0'); + +export const encryptUserId = (userId: string) => + baseEncryptUserId(userId, OBFUSCATION_KEY).replace(/\//g, '\\'); + +export const decryptUserId = (userId: string) => { + const id = userId.replace(/\\/g, '/'); + const encodedKey = CryptoJS.enc.Hex.parse(OBFUSCATION_PARSE_KEY); + const decrypted = CryptoJS.AES.decrypt(id, encodedKey, { + mode: CryptoJS.mode.ECB, + }); + return decrypted.toString(CryptoJS.enc.Utf8); +}; + export const associateDisplayName = ( associate?: Associate | GetAssociateNameQuery['getAssociateById'], ) => {
Remove code which is not required in myteam mini app
Remove code which is not required in myteam mini app
c3a2172e9c40248df2718385f5ff1c88c51ce278
--- packages/core-services-allspark/src/graphql/constants.ts @@ -1,2 +0,0 @@ -export const ATHENA_SVC_NAME = 'ATHENA-GATEWAY'; -export const ATHENA_HTTP_CLIENT_NAME = 'athena'; --- packages/core-services-allspark/src/graphql/provider.tsx @@ -10,7 +10,6 @@ import { // IAllsparkLocalStorage, IAllsparkLogger, } from '../types'; -import { ATHENA_SVC_NAME, ATHENA_HTTP_CLIENT_NAME } from './constants'; import { headersLink, typeRemappingLink, @@ -20,6 +19,8 @@ import { import { AllsparkCache } from './cache'; // import { useLocalStorage } from '@walmart/core-services/LocalStorage'; +export const ATHENA_HTTP_CLIENT_NAME = 'athena'; + export const AllsparkGraphqlProvider = (props: PropsWithChildren<{}>) => { const { children } = props; @@ -27,15 +28,19 @@ export const AllsparkGraphqlProvider = (props: PropsWithChildren<{}>) => { const logger = useLoggerClone<IAllsparkLogger>({}, { id: 'graphql' }); // const localStorage = useLocalStorage<IAllsparkLocalStorage>(); const athenaConfig = env.athena; - const useShadowGateway = env.env !== 'prod' && athenaConfig.useShadowGateway; + const usePersistedQueries = + env.env === 'prod' || (athenaConfig.persistedQueries ?? true); + + const persistedQueryConfig = useMemo( + () => ({ enabled: usePersistedQueries }), + // eslint-disable-next-line react-hooks/exhaustive-deps + [] + ); const httpClient = useHttpClientClone( { - baseURL: useShadowGateway ? athenaConfig.shadowGateway : athenaConfig.url, - headers: { - 'WM_SVC.NAME': ATHENA_SVC_NAME, - 'WM_SVC.ENV': env.env, - }, + baseURL: athenaConfig.url, + headers: athenaConfig.headers, }, ATHENA_HTTP_CLIENT_NAME ); @@ -44,7 +49,7 @@ export const AllsparkGraphqlProvider = (props: PropsWithChildren<{}>) => { const loggerLink = createErrorLoggerLink(logger); const defaultLinks = [headersLink, typeRemappingLink, loggerLink]; - if (!useShadowGateway) { + if (usePersistedQueries) { defaultLinks.unshift(athenaUriLink); } @@ -115,6 +120,7 @@ export const AllsparkGraphqlProvider = (props: PropsWithChildren<{}>) => { httpClient={httpClient} cache={AllsparkCache} links={links} + persistedQueryConfig={persistedQueryConfig} > {children} </AllsparkGraphQLProvider> --- packages/core-services-allspark/src/types/index.ts @@ -37,13 +37,13 @@ export type IAllsparkEnvConfig = EnvConfig & { athena: | { url: string; - useShadowGateway?: false; - shadowGateway?: string; + headers: { [key: string]: string }; + persistedQueries?: boolean; } | { url: string; - useShadowGateway: true; - shadowGateway: string; + headers: { [key: string]: string }; + persistedQueries?: boolean; }; splunk: { url: string;
feat: change athena env config for more options. update logic to enable persisted queries
feat: change athena env config for more options. update logic to enable persisted queries
c63d28591029cba7d6d94281f9a9d8876185984d
--- packages/allspark-foundation/src/Work/Context.tsx @@ -0,0 +1,42 @@ +import React, { Dispatch, PropsWithChildren, SetStateAction } from 'react'; +import { noop } from 'lodash'; +import { AllsparkContextCreator } from '../utils'; + +/** + * Context for Work + */ +export type IWorkContext = { + actionId: string | null; + setActionId: Dispatch<SetStateAction<string | null>>; +}; + +export const { + Context: WorkContext, + Provider: WorkContextProvider, + /** + * @example + * const { actionId, setActionId } = useWorkContext(); + **/ + useContextValue: useWorkContext, + getContextValue: getWorkContext, +} = AllsparkContextCreator<IWorkContext>('Work', { + actionId: null, + setActionId: noop, +}); + +export const WorkProvider = (props: PropsWithChildren<{}>) => { + const { children } = props; + + const [actionId, setActionId] = React.useState<string | null>('abcd'); + + const value: IWorkContext = { + actionId, + setActionId, + }; + + return ( + <WorkContextProvider value={value}> + {children} + </WorkContextProvider> + ) +}; \ No newline at end of file --- packages/allspark-foundation/src/Work/index.ts @@ -0,0 +1 @@ +export * from './Context' \ No newline at end of file
feat: add work folder and context DWORK-6097
feat: add work folder and context DWORK-6097
8c066ce26eac7146f969af96eb2cc2c52fcf803a
--- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen/useSupplyChainRosterDetails.ts @@ -126,8 +126,8 @@ export const useSupplyChainRosterDetails = ({ shift: shift.length ? shift : selectedShift?.length - ? selectedShift - : [loggedInUserShift], + ? selectedShift + : [loggedInUserShift], getSavedSiteTeams, selectedFilter, setSelectedFilter,
fix(ui): update lint fix
fix(ui): update lint fix
532fd7c45c0c8b56f246cc7894d36f2e9ba4d925
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", "@walmart/me-field-mini-app": "1.3.0", - "@walmart/metrics-mini-app": "0.12.3", + "@walmart/metrics-mini-app": "0.12.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -5524,9 +5524,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.12.3", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.12.3.tgz", - "integrity": "sha512-30tCF+DB/KVzmw95IWt3ExZEG+1+gd7MooHO6UBP7B3JQsTCRR1h7m5CglE9PAm1AquamXm+lOWci5g8KN4lag==", + "version": "0.12.5", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.12.5.tgz", + "integrity": "sha512-KNhI7lZOg1YkpjJ0VOAmqjFz8kpLoaafob/R90ot8/bE4RbouRosJQAbQDO8q7qbvI+/tNuO7g3cgx2rav9xyA==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25347,9 +25347,9 @@ "version": "1.3.0" }, "@walmart/metrics-mini-app": { - "version": "0.12.3", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.12.3.tgz", - "integrity": "sha512-30tCF+DB/KVzmw95IWt3ExZEG+1+gd7MooHO6UBP7B3JQsTCRR1h7m5CglE9PAm1AquamXm+lOWci5g8KN4lag==", + "version": "0.12.5", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.12.5.tgz", + "integrity": "sha512-KNhI7lZOg1YkpjJ0VOAmqjFz8kpLoaafob/R90ot8/bE4RbouRosJQAbQDO8q7qbvI+/tNuO7g3cgx2rav9xyA==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -100,7 +100,7 @@ "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", "@walmart/me-field-mini-app": "1.3.0", - "@walmart/metrics-mini-app": "0.12.3", + "@walmart/metrics-mini-app": "0.12.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14",
Bumping metrics-mini-app version
Bumping metrics-mini-app version
5c955b25eac37ac25dbf158a9cee8488460415f8
--- package-lock.json @@ -4263,9 +4263,9 @@ "integrity": "sha512-kKf1sJONCS1HVrdQKKRJGSw9GFKHy+SsznaS2vSOJ50MrFL8+tIjOOcdVzETlw1KdlZxlRlD4xxeFMVAgFJwhA==" }, "@walmart/iteminfo-mini-app": { - "version": "4.0.16", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.16.tgz", - "integrity": "sha512-HA0VHb41pyVFra4PG2hSzUfP9EqRuiWYgbqzlEUXJHswaJGhOl9gkwPCoGIA8P1psZUvIKaeCtIjoadUePmI7Q==" + "version": "4.0.17", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.17.tgz", + "integrity": "sha512-9T0xjpMvwmXIBFKXUjV7n68ebTtgajkiecVMrCEGXaoD8+cY4z/4506cCwumwx3Kkgl937C/42Qa2qN2re9AyQ==" }, "@walmart/manager-approvals-miniapp": { "version": "0.0.59", --- package.json @@ -85,7 +85,7 @@ "@walmart/impersonation-mini-app": "1.0.27", "@walmart/ims-print-services-ui": "0.1.16", "@walmart/inbox-mini-app": "0.27.0", - "@walmart/iteminfo-mini-app": "4.0.16", + "@walmart/iteminfo-mini-app": "4.0.17", "@walmart/manager-approvals-miniapp": "0.0.59", "@walmart/metrics-mini-app": "0.5.21", "@walmart/moment-walmart": "1.0.4",
item info camera fix attempt
item info camera fix attempt
7ce540d164f65d73610852661acd5eff7a582390
--- targets/US/package.json @@ -108,7 +108,7 @@ "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.4", "@walmart/ims-print-services-ui": "2.16.4", - "@walmart/inbox-mini-app": "0.96.8", + "@walmart/inbox-mini-app": "0.97.13", "@walmart/iteminfo-mini-app": "7.16.2", "@walmart/learning-mini-app": "20.0.38", "@walmart/manager-approvals-miniapp": "0.3.0", --- yarn.lock @@ -6807,9 +6807,9 @@ __metadata: languageName: node linkType: hard -"@walmart/inbox-mini-app@npm:0.96.8": - version: 0.96.8 - resolution: "@walmart/inbox-mini-app@npm:0.96.8" +"@walmart/inbox-mini-app@npm:0.97.13": + version: 0.97.13 + resolution: "@walmart/inbox-mini-app@npm:0.97.13" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ">=1.6.4" @@ -6817,7 +6817,7 @@ __metadata: "@walmart/moment-walmart": ">=1.0.4" "@walmart/schedule-mini-app": ">=0.2.66" "@walmart/walmart-fiscal-week": ">=0.3.6" - checksum: 10c0/b8364e10d495741089f59409968e4d5f5ca94e8775934b8328f004a4c2c3fe4f9b19abd46340ceb6b5abd68cc5ba63bed2dab4f8a0928c328d01e21f77dcdfb2 + checksum: 10c0/6f174d64391a39993e113ea410404f82855b95cb25b5dbc3bd8282d43b8c326760240efb5563dca8d1b8ef2aa0bd4bda8d78a6f72023300e520daaa8d9cade20 languageName: node linkType: hard @@ -7309,7 +7309,7 @@ __metadata: "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.4" "@walmart/ims-print-services-ui": "npm:2.16.4" - "@walmart/inbox-mini-app": "npm:0.96.8" + "@walmart/inbox-mini-app": "npm:0.97.13" "@walmart/iteminfo-mini-app": "npm:7.16.2" "@walmart/learning-mini-app": "npm:20.0.38" "@walmart/manager-approvals-miniapp": "npm:0.3.0"
fixing inbox version to previous one
fixing inbox version to previous one
1912e978b0d00006ef86ae130f8849d2f7006664
--- ios/BuildSupport/install-cocoapods.sh @@ -13,7 +13,7 @@ export PATH=$GEM_HOME/bin:$PATH export https_proxy=http://sysproxy.wal-mart.com:8080 export http_proxy=http://sysproxy.wal-mart.com:8080 -export no_proxy=repository.walmart.com,repo.wal-mart.com,localhost,chromium.googlesource.com +export no_proxy=repository.walmart.com,repo.wal-mart.com,localhost,chromium.googlesource.com,ssl.scandit.com echo "local pod version: ${POD_VERSION}" echo
update proxy
update proxy
96ec052baf284e6dc24bc90efd7b04a989839fb7
--- packages/allspark-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-authentication", - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "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.9", - "@walmart/allspark-utils": "^5.0.0-alpha.9", + "@walmart/allspark-foundation": "^5.0.0-alpha.10", + "@walmart/allspark-utils": "^5.0.0-alpha.10", "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.9", + "version": "5.0.0-alpha.10", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,7 +40,7 @@ "@apollo/client": "^3.7.14", "@lifeomic/axios-fetch": "3.0.1", "@reduxjs/toolkit": "^1.9.5", - "@walmart/allspark-utils": "^5.0.0-alpha.9", + "@walmart/allspark-utils": "^5.0.0-alpha.10", "@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.9", + "version": "5.0.0-alpha.10", "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.9" + "@walmart/allspark-foundation": "^5.0.0-alpha.10" } } --- packages/allspark-http-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-http-client", - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "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.9" + "@walmart/allspark-foundation": "^5.0.0-alpha.10" } } --- packages/allspark-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-utils", - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "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.9", + "version": "5.0.0-alpha.10", "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.9", - "@walmart/me-at-walmart-container": "^5.0.0-alpha.9" + "@walmart/allspark-foundation": "^5.0.0-alpha.10", + "@walmart/me-at-walmart-container": "^5.0.0-alpha.10" } } --- packages/core-services/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services", - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "description": "", "main": "index.js", "types": "index.d.ts", @@ -15,7 +15,7 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.9", - "@walmart/allspark-utils": "^5.0.0-alpha.9" + "@walmart/allspark-foundation": "^5.0.0-alpha.10", + "@walmart/allspark-utils": "^5.0.0-alpha.10" } } --- packages/core-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-utils", - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "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.9" + "@walmart/allspark-utils": "^5.0.0-alpha.10" } } --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "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.9" + "@walmart/me-at-walmart-container": "^5.0.0-alpha.10" } } --- packages/functional-components/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/functional-components", "private": false, - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "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.9" + "@walmart/allspark-foundation": "^5.0.0-alpha.10" } } --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "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.9" + "@walmart/me-at-walmart-container": "^5.0.0-alpha.10" } } --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "5.0.0-alpha.9", + "version": "5.0.0-alpha.10", "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.9", - "@walmart/allspark-utils": "^5.0.0-alpha.9", + "@walmart/allspark-foundation": "^5.0.0-alpha.10", + "@walmart/allspark-utils": "^5.0.0-alpha.10", "@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.9", - "@walmart/core-services": "^5.0.0-alpha.9", - "@walmart/core-utils": "^5.0.0-alpha.9", + "@walmart/allspark-authentication": "^5.0.0-alpha.10", + "@walmart/core-services": "^5.0.0-alpha.10", + "@walmart/core-utils": "^5.0.0-alpha.10", "@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", @@ -56,7 +56,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.9", + "@walmart/allspark-authentication": ">=5.0.0-alpha.10", "@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.9", + "version": "5.0.0-alpha.10", "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.9" + "@walmart/allspark-foundation": "^5.0.0-alpha.10" } }
chore: bump alpha version
chore: bump alpha version
15b5ee3c6c89229ee20eae840216c3c78579213a
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.22.0", + "version": "1.23.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.2.20", + "@walmart/allspark-foundation-hub": "1.2.21", "@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.20.0", + "@walmart/roster-mini-app": "2.21.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.2.20": - version: 1.2.20 - resolution: "@walmart/allspark-foundation-hub@npm:1.2.20" +"@walmart/allspark-foundation-hub@npm:1.2.21": + version: 1.2.21 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.21" 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/4939a9fdccde36fa3f96736dec128f6e17ec759ffb920b4b6c7fa1190d05970073f5045846e69fdbcb85d2b46cccea4c0a64eca5385c48fe9c37aae712469a4a + checksum: 10c0/e7d5f42b230e2cd4dd4b971d11af8d0ddd8c1b285c7a368da814c0a0ca258c1a9d71f2c55f58df50cabc23bb5e598aab0d979ac072e1b65b3636b2552f71146c 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.2.20" + "@walmart/allspark-foundation-hub": "npm:1.2.21" "@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.20.0" + "@walmart/roster-mini-app": "npm:2.21.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.20.0": - version: 2.20.0 - resolution: "@walmart/roster-mini-app@npm:2.20.0" +"@walmart/roster-mini-app@npm:2.21.0": + version: 2.21.0 + resolution: "@walmart/roster-mini-app@npm:2.21.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/c9c071bf6b63ac97ceee337c88f55206b8738a6eca255549da59c1165421928d8479594503070d439ee5106b241ee8039484560d023c7e44568212e713e132f5 + checksum: 10c0/b2ccb33660fe6a4e26f7a3dd24ae9bb70a8a8bd607a50d38be4ec2b50ddd68555c7f0b34f6bb66b4a7fd5280538a8ee611d2303fcd8ab66fa54f64d7759ef290 languageName: node linkType: hard
Update my team version
Update my team version
09fe4aa8c4cc6d9c291976128c1457825106c8dc
--- packages/allspark-foundation/__tests__/Components/context.test.tsx @@ -1,42 +1,22 @@ import React from 'react'; import { render } from '@testing-library/react-native'; -import { AllsparkComponentProvider, useAllsparkImage, useAllsparkComponent } from '../../src/Components/context'; -import { Image, Text } from 'react-native'; +import { AllsparkComponentProvider, useAllsparkImage } from '../../src/Components/context'; +import { Image , Text} from 'react-native'; +import { useAllsparkComponent } from '../../src/Components/context'; describe('AllsparkComponentContext', () => { - it('custom Image component when overridden', () => { - const CustomImage = (props: any) => <Image {...props} testID="CustomImage" />; + it('uses default Image component when not overridden', () => { const TestComponent = () => { const AllsparkImage = useAllsparkImage(); - return <AllsparkImage source={{ uri: 'custom-image-uri' }} />; + return <AllsparkImage source={{ uri: 'default-image-uri' }} testID="DefaultImage" />; }; - - const { getByTestId } = render( - <AllsparkComponentProvider components={{ Image: CustomImage }}> - <TestComponent /> - </AllsparkComponentProvider> - ); - - const customImage = getByTestId('CustomImage'); - expect(customImage.props.source.uri).toBe('custom-image-uri'); - }); - - it('provide the custom ErrorMessage component', () => { - const CustomErrorMessage = ({ message }: { message: string }) => ( - <Text testID="CustomErrorMessage">{message}</Text> - ); - - const TestComponent = () => { - const AllsparkErrorMessage = useAllsparkComponent('ErrorMessage'); - return <AllsparkErrorMessage message="Custom error" />; - }; - const { getByTestId } = render( - <AllsparkComponentProvider components={{ ErrorMessage: CustomErrorMessage }}> + <AllsparkComponentProvider> <TestComponent /> </AllsparkComponentProvider> ); - const customErrorMessage = getByTestId('CustomErrorMessage'); - expect(customErrorMessage.children[0]).toBe('Custom error'); + const defaultImage = getByTestId('DefaultImage'); + expect(defaultImage.props.source.uri).toBe('default-image-uri'); }); }); +
code cleanup
code cleanup
e5a3769dcc943a0389cb0ee58914eba5596216cf
--- package-lock.json @@ -15,7 +15,6 @@ "@react-native-community/art": "^1.2.0", "@react-native-community/clipboard": "^1.5.1", "@react-native-community/datetimepicker": "6.7.5", - "@react-native-community/geolocation": "3.1.0", "@react-native-community/hooks": "^2.8.0", "@react-native-community/netinfo": "9.3.6", "@react-native-firebase/analytics": "17.4.2", @@ -93,7 +92,7 @@ "@walmart/store-feature-orders": "1.25.0", "@walmart/taskit-mini-app": "2.53.3", "@walmart/texting-mini-app": "2.1.4", - "@walmart/time-clock-mini-app": "2.338.0", + "@walmart/time-clock-mini-app": "2.338.1", "@walmart/topstock-mini-app": "1.4.14", "@walmart/ui-components": "1.15.6", "@walmart/welcomeme-mini-app": "0.86.0", @@ -6318,19 +6317,6 @@ "invariant": "^2.2.4" } }, - "node_modules/@react-native-community/geolocation": { - "version": "3.1.0", - "resolved": "https://npme.walmart.com/@react-native-community/geolocation/-/geolocation-3.1.0.tgz", - "integrity": "sha512-Aj76wMeCLz9kczpe7W2IXxSRNj+hRR7sqyfXq9ZaJIWNH23jeJfzMpovclg+e1uM8Vr8jCYEcZyD4rKub6Vc/Q==", - "license": "MIT", - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "react": "*", - "react-native": "*" - } - }, "node_modules/@react-native-community/hooks": { "version": "2.8.1", "license": "ISC", @@ -9935,9 +9921,9 @@ "hasInstallScript": true }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.338.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.338.0.tgz", - "integrity": "sha512-LMWhNrAlIh5c4zW90UR6jRsbA59QOUcmqdl/FKjJfD5mSW2I1KWzKXh2IUY8jBY5OPradNF3mr63jlCXJ/GC3g==", + "version": "2.338.1", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.338.1.tgz", + "integrity": "sha512-Y5XuIu0GUuxs0BslYdtq15scBnba+iLCYfAfW10BdGapwLx5etxPPlKd4p18StD2k1Xj0tmbibvMG7eDPOC+3Q==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -9949,7 +9935,6 @@ "peerDependencies": { "@livingdesign/tokens": "^0.65.0", "@react-native-community/datetimepicker": "^5.1.0", - "@react-native-community/geolocation": "^3.1.0", "@react-native-community/hooks": "^2.8.0", "@react-navigation/native": "^6.0.8", "@react-navigation/stack": "^6.1.1", @@ -31940,11 +31925,6 @@ "invariant": "^2.2.4" } }, - "@react-native-community/geolocation": { - "version": "3.1.0", - "resolved": "https://npme.walmart.com/@react-native-community/geolocation/-/geolocation-3.1.0.tgz", - "integrity": "sha512-Aj76wMeCLz9kczpe7W2IXxSRNj+hRR7sqyfXq9ZaJIWNH23jeJfzMpovclg+e1uM8Vr8jCYEcZyD4rKub6Vc/Q==" - }, "@react-native-community/hooks": { "version": "2.8.1" }, @@ -33706,9 +33686,9 @@ "integrity": "sha512-u4QRgXYEKWLvnfhlfAcLibXYKcoG1J+wjK2MWh4LbqAFIJs+9GV/51KItrS4zNYXXMvPDNF0VwkzlVfQSkdvXA==" }, "@walmart/time-clock-mini-app": { - "version": "2.338.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.338.0.tgz", - "integrity": "sha512-LMWhNrAlIh5c4zW90UR6jRsbA59QOUcmqdl/FKjJfD5mSW2I1KWzKXh2IUY8jBY5OPradNF3mr63jlCXJ/GC3g==", + "version": "2.338.1", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.338.1.tgz", + "integrity": "sha512-Y5XuIu0GUuxs0BslYdtq15scBnba+iLCYfAfW10BdGapwLx5etxPPlKd4p18StD2k1Xj0tmbibvMG7eDPOC+3Q==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -56,7 +56,6 @@ "@react-native-community/art": "^1.2.0", "@react-native-community/clipboard": "^1.5.1", "@react-native-community/datetimepicker": "6.7.5", - "@react-native-community/geolocation": "3.1.0", "@react-native-community/hooks": "^2.8.0", "@react-native-community/netinfo": "9.3.6", "@react-native-firebase/analytics": "17.4.2", @@ -134,7 +133,7 @@ "@walmart/store-feature-orders": "1.25.0", "@walmart/taskit-mini-app": "2.53.3", "@walmart/texting-mini-app": "2.1.4", - "@walmart/time-clock-mini-app": "2.338.0", + "@walmart/time-clock-mini-app": "2.338.1", "@walmart/topstock-mini-app": "1.4.14", "@walmart/ui-components": "1.15.6", "@walmart/welcomeme-mini-app": "0.86.0",
Update TCMA to 2.338.1
Update TCMA to 2.338.1
91b4654f9207e6be807aab5cddc4b72c33dfb6b5
--- graphql.yml @@ -36,6 +36,11 @@ applications: queryTemplate: "packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql" tags: - "v1" + - name: "getSupplyChainTeamPreference" + hash: "61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839" + queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql" + tags: + - "v1" - name: "GetSupplyChainTeamsByStore" hash: "628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1" queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql" @@ -88,6 +93,11 @@ applications: queryTemplate: "packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql" tags: - "v1" + # - name: "getSupplyChainTeamPreference" + # hash: "61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql" + # tags: + # - "v1" # - name: "GetSupplyChainTeamsByStore" # hash: "628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1" # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql" --- packages/me-at-walmart-athena-queries/src/schema.graphql @@ -3584,7 +3584,8 @@ type LearningCourseAdditionalInfo { """ This is for ulearn source, Used by SCOUT Client as of now. Blocked is a status utilized by the Ulearn team to block assignment or the assignment of - content to an associate. It was utilized during COVID to stop the assignment of training to an + content to an associate. It was utilized during COVID + to stop the assignment of training to an associate without removing the planned assignment audience. """ blocked: Boolean --- packages/me-at-walmart-athena-queries/src/schema.types.ts @@ -3166,7 +3166,8 @@ export type LearningCourseAdditionalInfo = { /** * This is for ulearn source, Used by SCOUT Client as of now. * Blocked is a status utilized by the Ulearn team to block assignment or the assignment of - * content to an associate. It was utilized during COVID to stop the assignment of training to an + * content to an associate. It was utilized during COVID + * to stop the assignment of training to an * associate without removing the planned assignment audience. */ blocked?: Maybe<Scalars['Boolean']>;
feat(ui): resolved conflicts
feat(ui): resolved conflicts
b619a10cad49ea68825a3c0db3ab4bbe65874f12
--- __tests__/harness/redux/mockState/clockStatusState.ts @@ -1,5 +1,5 @@ const clockCheckState = { - clockStatus: '2', + clockStatus: '1', }; export const clockStatusState = { --- __tests__/harness/redux/mockState/clockStatusState.ts @@ -1,5 +1,5 @@ const clockCheckState = { - clockStatus: '2', + clockStatus: '1', }; export const clockStatusState = {
changing default clockedIn state to 1
changing default clockedIn state to 1
7b741e5493cd1e2afcfb271404e69b7742ff8698
--- scripts/teamsFailureTemplate.json @@ -5,7 +5,7 @@ "type": "TextBlock", "size": "Medium", "weight": "Bolder", - "text": "Build Success - ios beta SNAPSHOT" + "text": "${title}" }, { "type": "ColumnSet", --- scripts/teamsSuccessTemplate.json @@ -5,7 +5,7 @@ "type": "TextBlock", "size": "Medium", "weight": "Bolder", - "text": "Build Success - ios beta SNAPSHOT" + "text": "${title}" }, { "type": "ColumnSet",
fix title in template
fix title in template
1e60d6f7f49529e63702f3b85fe67703b4870e16
--- __tests__/__mocks__/@walmart/time-clock-mini-app.js @@ -4,4 +4,5 @@ module.exports = { TorInboxScreen: 'TorInboxScreen', TorReviewScreen: 'TorReviewScreen', TorSubmissionScreen: 'TorSubmissionScreen', + ClockAppSelectors: 'ClockAppSelectors', }; --- __tests__/navigation/AssociateHallwayNav/SideMenuContentTest.tsx @@ -5,7 +5,6 @@ import {useDrawerStatus} from '@react-navigation/drawer'; import {User} from '@walmart/redux-store'; import {create} from 'react-test-renderer'; import WmTelemetry from 'react-native-wm-telemetry'; - import appJson from '../../../app.json'; import {connectedSSO} from '../../../src/auth'; import {useCanImpersonate} from '../../../src/hooks'; @@ -86,6 +85,7 @@ describe('SideMenuContent', () => { mockUseSelector.mockReturnValueOnce('SW'); // nameInitials mockUseSelector.mockReturnValueOnce('Sam Walton'); // displayName mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge + mockUseSelector.mockReturnValueOnce(true); mockUseState.mockReturnValueOnce([false, setShowDialog]); const component = create(<SideMenuContent {...baseProps} />); @@ -112,6 +112,7 @@ describe('SideMenuContent', () => { mockUseSelector.mockReturnValueOnce('SW'); // nameInitials mockUseSelector.mockReturnValueOnce('Sam Walton'); // displayName mockUseSelector.mockReturnValueOnce({highPriorityCount: 1}); // taskBadge + mockUseSelector.mockReturnValueOnce(true); mockUseState.mockReturnValueOnce([false, setShowDialog]); component.update(<SideMenuContent {...baseProps} />); @@ -222,6 +223,7 @@ describe('SideMenuContent', () => { mockUseSelector.mockReturnValueOnce('SW'); // nameInitials mockUseSelector.mockReturnValueOnce('Sam Walton'); // displayName mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge + mockUseSelector.mockReturnValueOnce(true); mockUseState.mockReturnValueOnce([false, setShowDialog]); component.update(<SideMenuContent {...baseProps} />); --- package-lock.json @@ -4498,13 +4498,13 @@ "integrity": "sha512-r8w+lA3mmGe0qLJ1u5bRO+l+18bCF70VO9E/zA7bgiG/l7+e9hRnwaCsRebJ49BImAvIGYii87YgB268OtR0uQ==" }, "@walmart/time-clock-mini-app": { - "version": "0.4.24", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.24.tgz", - "integrity": "sha512-2Pbm4dHUMjBz+TeS2k/zHHeTX7YNLoaMQdPDz5Axu3Kgx9UGe9UscZoNnZjaSqSyLdg0rbp6gN1B/EkvM1hU7w==", + "version": "0.4.25", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.25.tgz", + "integrity": "sha512-4CFQzkn+xVimhKzo7T1+pZPp+16bgKI8QLhutXKhGoPCQBDNf5+cQW1gsYfIqCxeET71k5Eiuhb2MkGEMvshdQ==", "requires": { "@react-native-community/datetimepicker": "3.0.9", "@react-native-picker/picker": "^1.16.1", - "@walmart/gta-react-native-calendars": "0.0.15", + "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.33", "react-native-geolocation-service": "5.2.0", "react-native-hyperlink": "0.0.19", @@ -4514,6 +4514,22 @@ "wfm-allspark-data-library": "^0.0.19" }, "dependencies": { + "@walmart/gta-react-native-calendars": { + "version": "0.0.16", + "resolved": "https://npme.walmart.com/@walmart/gta-react-native-calendars/-/gta-react-native-calendars-0.0.16.tgz", + "integrity": "sha512-lDAQdMuhbHd2XkEizNu2BBXcLcmrwp0WLiVogIPWsWRBj9HjWc0/6lkhFT5RWBRyLZhroKKdqriNtYWgTs1qaA==", + "requires": { + "@walmart/moment-walmart": "1.0.4", + "hoist-non-react-statics": "^3.3.1", + "immutable": "^4.0.0-rc.12", + "lodash": "^4.17.15", + "memoize-one": "^5.2.1", + "moment": "^2.24.0", + "prop-types": "^15.5.10", + "react-native-swipe-gestures": "^1.0.5", + "xdate": "^0.8.0" + } + }, "react-native-geolocation-service": { "version": "5.2.0", "resolved": "https://npme.walmart.com/react-native-geolocation-service/-/react-native-geolocation-service-5.2.0.tgz", @@ -16835,9 +16851,9 @@ "integrity": "sha512-PKaL0MFy+VjTT4wcx/v90BlvlRXgdWGUU8Sz/760A2Esj175A8w/vFQCtZhUer5FVxmpYVKk7nHzoewii4ygRw==" }, "react-query": { - "version": "3.34.8", - "resolved": "https://npme.walmart.com/react-query/-/react-query-3.34.8.tgz", - "integrity": "sha512-pl9e2VmVbgKf29Qn/WpmFVtB2g17JPqLLyOQg3GfSs/S2WABvip5xlT464vfXtilLPcJVg9bEHHlqmC38/nvDw==", + "version": "3.34.16", + "resolved": "https://npme.walmart.com/react-query/-/react-query-3.34.16.tgz", + "integrity": "sha512-7FvBvjgEM4YQ8nPfmAr+lJfbW95uyW/TVjFoi2GwCkF33/S8ajx45tuPHPFGWs4qYwPy1mzwxD4IQfpUDrefNQ==", "requires": { "@babel/runtime": "^7.5.5", "broadcast-channel": "^3.4.1", --- package.json @@ -98,7 +98,7 @@ "@walmart/settings-mini-app": "1.5.0", "@walmart/shelfavailability-mini-app": "0.6.8", "@walmart/taskit-mini-app": "0.0.77-rc.0", - "@walmart/time-clock-mini-app": "0.4.24", + "@walmart/time-clock-mini-app": "0.4.25", "@walmart/ui-components": "1.3.0-beta.5", "@walmart/welcomeme-mini-app": "0.30.4", "@walmart/wfm-ui": "^0.1.50", --- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -16,7 +16,7 @@ import { UserSelectors, DeviceInfoSelectors, } from '@walmart/redux-store'; - +import {ClockAppSelectors} from '@walmart/time-clock-mini-app'; import appJson from '../../../app.json'; import {connectedSSO} from '../../auth'; import {useCanImpersonate} from '../../hooks'; @@ -59,7 +59,9 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( const nameInitials = useSelector(UserSelectors.getUserInitials); const displayName = useSelector(UserSelectors.getUserName); const {highPriorityCount} = useSelector(getTaskBadge); - + const getIsClockingEnabled = useSelector( + ClockAppSelectors.getIsTimeClockFetureEnabled, + ); const [showDialog, setShowDialog] = useState(false); useEffect(() => { @@ -155,7 +157,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( enableTaskItAlert={!!highPriorityCount} showInboxBadge={!!badgesCount} enablePttAlert={0} - enableTimeClock={true} + enableTimeClock={getIsClockingEnabled} /> <Dialog testID='signoutDialog'
adding GTA selector
adding GTA selector
0c795cc5f10bf051ea2fb0c6da1d213e4903a51e
--- package.json @@ -109,7 +109,7 @@ "@walmart/global-vpi-mini-app": "1.1.20", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.7-rc.0", - "@walmart/ims-print-services-ui": "2.19.0", + "@walmart/ims-print-services-ui": "2.19.1", "@walmart/inbox-mini-app": "0.99.5", "@walmart/invue-react-native-sdk": "0.1.26-alpha.10-wt1", "@walmart/iteminfo-mini-app": "8.2.9", --- yarn.lock @@ -7919,9 +7919,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ims-print-services-ui@npm:2.19.0": - version: 2.19.0 - resolution: "@walmart/ims-print-services-ui@npm:2.19.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2F%40walmart%2Fims-print-services-ui-2.19.0.tgz" +"@walmart/ims-print-services-ui@npm:2.19.1": + version: 2.19.1 + resolution: "@walmart/ims-print-services-ui@npm:2.19.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2F%40walmart%2Fims-print-services-ui-2.19.1.tgz" peerDependencies: "@react-native-firebase/analytics": ">=10.5.1" "@react-native-firebase/app": ">=10.5.0" @@ -7941,7 +7941,7 @@ __metadata: react-native: "*" react-native-wm-telemetry: ">=0.2.0" uuid: ">=3.3.2" - checksum: 10c0/1eebd1da4ad12701ac240af8d8d3e4d5c86c8de8f7fc7335266e997183ee8c1ee3634d835a30181a0acc3c8ea96d3d3463a14e0819480a8927f4cd667c070025 + checksum: 10c0/35fd84e7365518305df804c547b06f8356ef08ee58a4790c2f4774f3f8ea27e5df49df81a508d257c76e61acb863f48e89c93419bb74b5908437cf31dcbcb2d6 languageName: node linkType: hard @@ -8342,7 +8342,7 @@ __metadata: "@walmart/global-vpi-mini-app": "npm:1.1.20" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.7-rc.0" - "@walmart/ims-print-services-ui": "npm:2.19.0" + "@walmart/ims-print-services-ui": "npm:2.19.1" "@walmart/inbox-mini-app": "npm:0.99.5" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.10-wt1" "@walmart/iteminfo-mini-app": "npm:8.2.9"
fix(printwidget.tsx): SSLS-11041 Reset child component on print close (#4155)
fix(printwidget.tsx): SSLS-11041 Reset child component on print close (#4155) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
9e84f3371b046172978c97a92cf8294ccba410f3
--- packages/allspark-foundation/package.json @@ -18,6 +18,7 @@ "FeatureRunner/", "GraphQL/", "HTTP/", + "HubFeature", "LocalStorage", "Location", "Logger",
feat(ui): Merge changes from parent branch
feat(ui): Merge changes from parent branch
4c0006fbd20f84d48419e902635af4186c7221b6
--- src/redux/UserSelector.ts @@ -92,7 +92,7 @@ export const getOriginalUserCountryCode = createSelector( getCountryCode, ); export const getOriginalUserEmployeeType = createSelector( - [getOriginalUserData], + [getUser], (user) => user?.employeeType, );
employee type selector fix in impersonation mode
employee type selector fix in impersonation mode
931bcaaca5310a3746ed6bb3153cb04101787a7f
--- ios/GoogleService-Info.plist @@ -3,21 +3,21 @@ <plist version="1.0"> <dict> <key>CLIENT_ID</key> - <string>1043158274640-ts53hs2ubhhodh8p1qc1iejj68kl5h2t.apps.googleusercontent.com</string> + <string>572613464107-dkimevc1u99somli7g5903p85vk6jrva.apps.googleusercontent.com</string> <key>REVERSED_CLIENT_ID</key> - <string>com.googleusercontent.apps.1043158274640-ts53hs2ubhhodh8p1qc1iejj68kl5h2t</string> + <string>com.googleusercontent.apps.572613464107-dkimevc1u99somli7g5903p85vk6jrva</string> <key>API_KEY</key> - <string>AIzaSyDmPP0Sl65j-QwHbD8io33PkVA_-csnWKk</string> + <string>AIzaSyBoqcqstftvHN5mrGVUlwWB2c53NIMneig</string> <key>GCM_SENDER_ID</key> - <string>1043158274640</string> + <string>572613464107</string> <key>PLIST_VERSION</key> <string>1</string> <key>BUNDLE_ID</key> - <string>com.walmart.stores.allspark</string> + <string>com.walmart.stores.allspark.beta</string> <key>PROJECT_ID</key> - <string>wmt-allspark-dev</string> + <string>wmt-allspark-poc</string> <key>STORAGE_BUCKET</key> - <string>wmt-allspark-dev.appspot.com</string> + <string>wmt-allspark-poc.appspot.com</string> <key>IS_ADS_ENABLED</key> <false></false> <key>IS_ANALYTICS_ENABLED</key> @@ -29,8 +29,8 @@ <key>IS_SIGNIN_ENABLED</key> <true></true> <key>GOOGLE_APP_ID</key> - <string>1:1043158274640:ios:be3529e545c037df737755</string> + <string>1:572613464107:ios:02b7544754fd54c5091a6e</string> <key>DATABASE_URL</key> - <string>https://wmt-allspark-dev.firebaseio.com</string> + <string>https://wmt-allspark-poc.firebaseio.com</string> </dict> </plist> \ No newline at end of file
update iOS firebase config
update iOS firebase config
9cf5b81295de2718498b5cc1eeebdddb8eb3bf6e
--- package.json @@ -91,5 +91,5 @@ "babel-jest": "29.2.1", "metro-react-native-babel-preset": "0.76.8" }, - "packageManager": "yarn@4.6.0" + "packageManager": "yarn@4.4.0" } --- yarn.lock @@ -24645,11 +24645,11 @@ __metadata: "typescript@patch:typescript@npm%3A^5.0.4#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.4.4#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.7.3#optional!builtin<compat/typescript>": version: 5.7.3 - resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5786d5" + resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=74658d" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/6fd7e0ed3bf23a81246878c613423730c40e8bdbfec4c6e4d7bf1b847cbb39076e56ad5f50aa9d7ebd89877999abaee216002d3f2818885e41c907caaa192cc4 + checksum: 10c0/3b56d6afa03d9f6172d0b9cdb10e6b1efc9abc1608efd7a3d2f38773d5d8cfb9bbc68dfb72f0a7de5e8db04fc847f4e4baeddcd5ad9c9feda072234f0d788896 languageName: node linkType: hard
fix(ui): revert yarn version to 4.4.0
fix(ui): revert yarn version to 4.4.0
50e229ff6f17ac9daa9101134601dd4c3933cd9a
--- package.json @@ -112,7 +112,7 @@ "@walmart/global-vpi-mini-app": "1.1.30", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.7", - "@walmart/ims-print-services-ui": "2.21.1", + "@walmart/ims-print-services-ui": "2.22.0", "@walmart/inbox-mini-app": "0.102.2", "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", "@walmart/iteminfo-mini-app": "8.5.2", --- yarn.lock @@ -8254,15 +8254,15 @@ __metadata: languageName: node linkType: hard -"@walmart/ims-print-services-ui@npm:2.21.1": - version: 2.21.1 - resolution: "@walmart/ims-print-services-ui@npm:2.21.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2F%40walmart%2Fims-print-services-ui-2.21.1.tgz" - peerDependencies: - "@react-native-firebase/analytics": ">=10.5.1" - "@react-native-firebase/app": ">=10.5.0" - "@react-native-firebase/crashlytics": ">=10.5.1" - "@react-native-firebase/firestore": ">=10.5.1" - "@react-native-firebase/perf": ">=10.5.1" +"@walmart/ims-print-services-ui@npm:2.22.0": + version: 2.22.0 + resolution: "@walmart/ims-print-services-ui@npm:2.22.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2F%40walmart%2Fims-print-services-ui-2.22.0.tgz" + peerDependencies: + "@react-native-firebase/analytics": ">=21.5.0" + "@react-native-firebase/app": ">=21.5.0" + "@react-native-firebase/crashlytics": ">=21.5.0" + "@react-native-firebase/firestore": ">=21.5.0" + "@react-native-firebase/perf": ">=21.5.0" "@react-navigation/native": ">=6.0.0" "@walmart/allspark-foundation": "*" "@walmart/gtp-shared-components": ">=2.0.6" @@ -8276,7 +8276,7 @@ __metadata: react-native: "*" react-native-wm-telemetry: ">=0.2.0" uuid: ">=3.3.2" - checksum: 10c0/9b92acfacddc203b617e21d6cde85ee2276c22b802cbee662461474c67150f32185fa210ef7ae76432d20b92a2e09b337701b0250f8e694f80f19d74f4b83898 + checksum: 10c0/af3443eedc6af81f03ba9294febc3101b7ba9af0d5e985a59aa8e11ee69765376976b8db7dce793bb106123cc9f35bcca852f358a006085eaa7263c4addb1cf6 languageName: node linkType: hard @@ -8666,7 +8666,7 @@ __metadata: "@walmart/global-vpi-mini-app": "npm:1.1.30" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.7" - "@walmart/ims-print-services-ui": "npm:2.21.1" + "@walmart/ims-print-services-ui": "npm:2.22.0" "@walmart/inbox-mini-app": "npm:0.102.2" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" "@walmart/iteminfo-mini-app": "npm:8.5.2"
fix(version): Bump Print to v2.22.0 for RN76 upgrade, ADA, and UI bugfix (#4490)
fix(version): Bump Print to v2.22.0 for RN76 upgrade, ADA, and UI bugfix (#4490) fix(version): Bump Print to v2.22.0 for RN76 upgrade, ADA, and UI bugfix Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
7e2e96fc5d01ed5d41a0d84e8a3277e3e03a71b7
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "0.190.4", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", - "@walmart/copilot-mini-app": "1.77.2", + "@walmart/copilot-mini-app": "1.77.4", "@walmart/core-services": "~2.1.1", "@walmart/core-services-allspark": "~2.11.1", "@walmart/core-utils": "~2.0.5", @@ -7030,9 +7030,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "1.77.2", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.2.tgz", - "integrity": "sha512-AxJxo+T+CsotKikzKe7a9q4YQJq1J9M/UqDilB3nJpOdNMJvZN5VdgaCnjYueYWD2RF8q3FSp6HmSMhh96vtdg==", + "version": "1.77.4", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.4.tgz", + "integrity": "sha512-VSVRefRDFhqrVd+AfDhE4EkGVxE9NQi1mOAdMb6frj57IuAtqc37zynonYCzBa9lroJCd3YR0P7vYfQJfrDG1A==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -30415,9 +30415,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "1.77.2", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.2.tgz", - "integrity": "sha512-AxJxo+T+CsotKikzKe7a9q4YQJq1J9M/UqDilB3nJpOdNMJvZN5VdgaCnjYueYWD2RF8q3FSp6HmSMhh96vtdg==" + "version": "1.77.4", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.4.tgz", + "integrity": "sha512-VSVRefRDFhqrVd+AfDhE4EkGVxE9NQi1mOAdMb6frj57IuAtqc37zynonYCzBa9lroJCd3YR0P7vYfQJfrDG1A==" }, "@walmart/core-services": { "version": "2.1.1", --- package.json @@ -84,7 +84,7 @@ "@walmart/attendance-mini-app": "0.190.4", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", - "@walmart/copilot-mini-app": "1.77.2", + "@walmart/copilot-mini-app": "1.77.4", "@walmart/core-services": "~2.1.1", "@walmart/core-services-allspark": "~2.11.1", "@walmart/core-utils": "~2.0.5",
chore: copilot 1.77.4
chore: copilot 1.77.4
4dabbfcb802ed04e7cd6be960b61ed9c365e9711
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 102 + versionCode 103 versionName "1.0.8" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>102</string> + <string>103</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
811f0660d0f0e1b84fc3bd7ec4ad5758ffcc69af
--- __tests__/setup.ts @@ -13,14 +13,6 @@ jest.mock('@walmart/functional-components', () => { }; }); -jest.mock('../src/utils/timestamps', () => { - return { - daysAgoTimestamp: jest.fn( - (numDays) => new Date(Date.now() - numDays * 24 * 60 * 60 * 1000), - ), - }; -}); - // ------ React Navigator Related Mocks: https://reactnavigation.org/docs/testing/ ----- // import 'react-native-gesture-handler/jestSetup'; jest.mock('react-native-reanimated', () => { --- __tests__/setup.ts @@ -13,14 +13,6 @@ jest.mock('@walmart/functional-components', () => { }; }); -jest.mock('../src/utils/timestamps', () => { - return { - daysAgoTimestamp: jest.fn( - (numDays) => new Date(Date.now() - numDays * 24 * 60 * 60 * 1000), - ), - }; -}); - // ------ React Navigator Related Mocks: https://reactnavigation.org/docs/testing/ ----- // import 'react-native-gesture-handler/jestSetup'; jest.mock('react-native-reanimated', () => {
remove outdated mock
remove outdated mock
0c74d342ee4121adf5dc2f203e0b26ad9bd67345
--- packages/me-at-walmart-container/__tests__/services/navConfig.test.ts @@ -1,3 +1,4 @@ +import { GlobalNavConfig } from '@walmart/config-components'; import { NavConfigLogger, NavConfigStorage, @@ -8,7 +9,8 @@ import { transformGlobalData, GlobaNavConfigData, actualListener, - ChangeEventManager + ChangeEventManager, + initialize } from '../../src/services/navConfig'; describe('NavConfigLogger Module', () => { @@ -175,3 +177,25 @@ describe('actualListener', () => { }); }); +describe('initialize', () => { + afterEach(() => { + jest.clearAllMocks(); // Clear mocks between tests + }); + + it('should call GlobalNavConfig.initialize with the provided config and return true', async () => { + const mockConfig = { key: 'value' }; // Example config object + + // Spy on GlobalNavConfig.initialize + const initializeSpy = jest.spyOn(GlobalNavConfig, 'initialize').mockResolvedValueOnce(null); + + // Call the initialize function + const result = await initialize(mockConfig); + + // Assertions + expect(initializeSpy).toHaveBeenCalledTimes(1); + expect(initializeSpy).toHaveBeenCalledWith(mockConfig); + expect(result).toBe(true); // Ensure the function returns true + }); +}); + + --- packages/me-at-walmart-container/src/services/navConfig.ts @@ -98,15 +98,13 @@ export const ChangeEventManager = new EventManager<{ // Actual change listener we'll add to GlobalNavConfig to manage our change listener export const actualListener = (data: GlobaNavConfigData | undefined) => { - console.log(data); if (data) { - console.log(data); ChangeEventManager.runEvent('config_change', transformGlobalData(data)); } }; // Create initialize method that matches the Allspark NavConfig service API -const initialize = async (config: GlobalNavConfigInitParams) => { +export const initialize = async (config: GlobalNavConfigInitParams) => { await GlobalNavConfig.initialize(config); return true; };
added test form initialize function in packages/me-at-walmart-container/src/services/navConfig.ts
added test form initialize function in packages/me-at-walmart-container/src/services/navConfig.ts
70944aa1dd2959cd616946a5b9700045c2738bfb
--- packages/allspark-foundation/__tests__/Config/connect.test.ts @@ -0,0 +1,91 @@ +import { + initialize, + fetch, + connectConfigService, +} from '../../src/Config/connect'; + +import { AllsparkReduxStore } from '../../src/Redux'; + +import { + AllsparkConfigService, + ConfigActionCreators, + ConfigSelectors, +} from '../../src/Config'; + +describe('Config connect.ts', () => { + let mockConfigService: AllsparkConfigService; + + beforeEach(() => { + mockConfigService = { + initialize: jest.fn(), + fetch: jest.fn(), + addChangeListener: jest.fn(), + }; + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('initialize', () => { + test('should dispatch INIT_PROGRESS, INIT_SUCCESS on successful initialization', async () => { + AllsparkReduxStore.dispatch(ConfigActionCreators.INIT_PROGRESS()); + + (mockConfigService.initialize as jest.Mock).mockResolvedValue(true); + + expect( + AllsparkReduxStore.select(ConfigSelectors.getInitializing) + ).toEqual(true); + + await initialize.call(mockConfigService); + expect(AllsparkReduxStore.select(ConfigSelectors.getInitialized)).toEqual( + true + ); + expect( + AllsparkReduxStore.select(ConfigSelectors.getInitializing) + ).toEqual(false); + }); + + test('should dispatch INIT_PROGRESS, INIT_ERROR on initialization failure', async () => { + const error = new Error('Initialization error'); + (mockConfigService.initialize as jest.Mock).mockRejectedValue(error); + await expect(initialize.call(mockConfigService)).rejects.toThrow(error); + + expect(AllsparkReduxStore.select(ConfigSelectors.getInitialized)).toEqual( + false + ); + }); + }); + + describe('fetch', () => { + test('should dispatch FETCH_PROGRESS, FETCH_SUCCESS on successful fetch', async () => { + const mockData = {}; + (mockConfigService.fetch as jest.Mock).mockResolvedValue(mockData); + await fetch.call(mockConfigService, {}); + + expect(mockConfigService.fetch).toHaveBeenCalled(); + expect(AllsparkReduxStore.select(ConfigSelectors.getLoaded)).toEqual( + true + ); + }); + + test('should dispatch FETCH_PROGRESS, FETCH_ERROR on failed fetch', async () => { + const error = new Error('Fetch error'); + (mockConfigService.fetch as jest.Mock).mockRejectedValue(error); + await expect(fetch.call(mockConfigService, {})).rejects.toThrow(error); + + expect(mockConfigService.fetch).toHaveBeenCalled(); + expect(AllsparkReduxStore.select(ConfigSelectors.getError)).toEqual(true); + }); + }); + + describe('connectConfigService', () => { + test('should connect state changes to Redux actions', () => { + connectConfigService(mockConfigService).addChangeListener(() => {}); + + expect( + connectConfigService(mockConfigService).addChangeListener + ).toHaveBeenCalled(); + }); + }); +}); --- packages/allspark-foundation/__tests__/Device/connect.test.ts @@ -0,0 +1,43 @@ +import { fetch } from '../../src/Device/connect'; + +import { AllsparkReduxStore } from '../../src/Redux'; + +import { AllsparkDeviceService, DeviceSelectors } from '../../src/Device'; + +describe('Device connect.ts', () => { + let mockDeviceService: AllsparkDeviceService; + + beforeEach(() => { + mockDeviceService = { + fetch: jest.fn(), + }; + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('fetch', () => { + test('should dispatch FETCH_PROGRESS, FETCH_SUCCESS on successful fetch', async () => { + const mockData = {}; + (mockDeviceService.fetch as jest.Mock).mockResolvedValue(mockData); + await fetch.call(mockDeviceService, {}); + + expect(mockDeviceService.fetch).toHaveBeenCalled(); + expect(AllsparkReduxStore.select(DeviceSelectors.getLoaded)).toEqual( + true + ); + }); + + test('should dispatch FETCH_PROGRESS, FETCH_ERROR on failed fetch', async () => { + const error = new Error('Fetch error'); + (mockDeviceService.fetch as jest.Mock).mockRejectedValue(error); + await expect(fetch.call(mockDeviceService, {})).rejects.toThrow(error); + + expect(mockDeviceService.fetch).toHaveBeenCalled(); + expect(AllsparkReduxStore.select(DeviceSelectors.getError)).toEqual( + error?.message + ); + }); + }); +});
device connect test,fixes to some existing tests
device connect test,fixes to some existing tests
ef396c5f259ce730a50c525227b1b6146cedeef2
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart", - "version": "1.32.0", + "version": "1.33.0", "main": "index.js", "private": true, "workspaces": [
feat(core): ALLSPARK-0000 version bump
feat(core): ALLSPARK-0000 version bump
8f337a5d3b5a3023e7ff5583181fb370bbd85da3
--- __tests__/components/ActionButton.test.tsx @@ -21,4 +21,10 @@ describe('ActionButton', () => { const {toJSON} = render(<ActionButton {...props} />); expect(toJSON()).toMatchSnapshot(); }); + + it('Action button is diabled and disabled style applied', () => { + const props = {disabled: true} as ActionButtonProps; + const {toJSON} = render(<ActionButton {...props} />); + expect(toJSON()).toMatchSnapshot(); + }); }); --- __tests__/components/__snapshots__/ActionButton.test.tsx.snap @@ -1,5 +1,60 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`ActionButton Action button is diabled and disabled style applied 1`] = ` +<View + accessibilityState={ + { + "busy": undefined, + "checked": undefined, + "disabled": true, + "expanded": undefined, + "selected": undefined, + } + } + accessibilityValue={ + { + "max": undefined, + "min": undefined, + "now": undefined, + "text": undefined, + } + } + accessible={true} + collapsable={false} + focusable={false} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + { + "opacity": 1, + } + } +> + <View + style={ + [ + { + "alignItems": "center", + "backgroundColor": "#0071dc", + "borderRadius": 40, + "height": 30, + "justifyContent": "center", + "width": 30, + }, + { + "backgroundColor": undefined, + }, + ] + } + /> +</View> +`; + exports[`ActionButton renders ActionButton 1`] = ` <View accessibilityState={
updated branch coverage
updated branch coverage
856bde700195a6ebfe12574f24fca304095b5e33
--- src/index.tsx @@ -77,7 +77,6 @@ firestore() persistence: false, }) .then(() => { - console.log('Firestore update successful '); analytics( 'firestorePersistenceEnabled', {message: 'Setting firestore persistence value!'}, @@ -85,7 +84,6 @@ firestore() ); }) .catch((error: any) => { - console.log('Firestore update unsuccessful '); logger.error('Error setting firestore persistence value', { message: error.toString(), }); --- src/index.tsx @@ -77,7 +77,6 @@ firestore() persistence: false, }) .then(() => { - console.log('Firestore update successful '); analytics( 'firestorePersistenceEnabled', {message: 'Setting firestore persistence value!'}, @@ -85,7 +84,6 @@ firestore() ); }) .catch((error: any) => { - console.log('Firestore update unsuccessful '); logger.error('Error setting firestore persistence value', { message: error.toString(), });
remove console logs
remove console logs
97c6fdc081e82a5c8a42929d2f99ab8054f119ef
--- src/screens/MeganavScreen.tsx @@ -103,6 +103,7 @@ export const MeganavScreen: React.FC<MeganavScreenProps> = (props) => { Todo: https://jira.walmart.com/browse/SMDV-4657 Current Behavior: Navigates to My Team tab when clicked on Meganav text messages button Expected Behavior: + On launching the app, and directly navigating to Meganav Texting Screen Show list of channels/conversations, New message button and View Roster Tapping on each channels should navigate to each Channels with message history Tapping on New message button should navigate to New Message Screen --- src/screens/MeganavScreen.tsx @@ -103,6 +103,7 @@ export const MeganavScreen: React.FC<MeganavScreenProps> = (props) => { Todo: https://jira.walmart.com/browse/SMDV-4657 Current Behavior: Navigates to My Team tab when clicked on Meganav text messages button Expected Behavior: + On launching the app, and directly navigating to Meganav Texting Screen Show list of channels/conversations, New message button and View Roster Tapping on each channels should navigate to each Channels with message history Tapping on New message button should navigate to New Message Screen
navigate to my team on clicking meganav button
navigate to my team on clicking meganav button
ede838343b57623aef42a69caa79ef7e9817753c
--- src/queries/getTeamById.graphql @@ -6,6 +6,7 @@ query GetTeamById($businessUnitNumber: Int!, $countryCode: String!, $date: Date! __typename associate { __typename + associateId wfmSchedule( businessUnitNumber: $businessUnitNumber country: $countryCode --- src/queries/getTeamById.ts @@ -29,6 +29,7 @@ export type GetTeamByIdQuery = { __typename: 'TeamAssociateMembership'; associate?: { __typename: 'Associate'; + associateId: string; wfmSchedule?: { __typename: 'WFMSchedule'; scheduleWeeks?: Array<{ @@ -65,6 +66,7 @@ export const GetTeamByIdDocument = gql` __typename associate { __typename + associateId wfmSchedule( businessUnitNumber: $businessUnitNumber country: $countryCode --- src/queries/getTeamsbyStore.graphql @@ -10,6 +10,7 @@ query GetTeamsByStore($businessUnitNumber: Int!, $countryCode: String!, $date: D __typename associate { __typename + associateId wfmSchedule( businessUnitNumber: $businessUnitNumber country: $countryCode --- src/queries/getTeamsbyStore.ts @@ -29,6 +29,7 @@ export type GetTeamsByStoreQuery = { __typename: 'TeamAssociateMembership'; associate?: { __typename: 'Associate'; + associateId: string; wfmSchedule?: { __typename: 'WFMSchedule'; scheduleWeeks?: Array<{ @@ -65,6 +66,7 @@ export const GetTeamsByStoreDocument = gql` __typename associate { __typename + associateId wfmSchedule( businessUnitNumber: $businessUnitNumber country: $countryCode --- src/queries/schema.graphql @@ -5574,7 +5574,7 @@ type Mutation { version: Float """Win - Win of requester""" - win: Float + win: String ): MutationResponse! updateLegalName(updateLegalNameDetails: UpdateLegalNameInput!): LegalNameResponse updateMilitaryServiceDetails(militaryServiceDetails: UpdateMilitaryServiceDetails!): ManageMilitaryServiceResponse --- src/queries/schema.types.ts @@ -4828,7 +4828,7 @@ export type MutationUpdateIltEnrollmentStatusArgs = { storeNbr?: InputMaybe<Scalars['Float']>; updatedManagerTimestamp?: InputMaybe<Scalars['String']>; version?: InputMaybe<Scalars['Float']>; - win?: InputMaybe<Scalars['Float']>; + win?: InputMaybe<Scalars['String']>; }; export type MutationUpdateLegalNameArgs = {
Update the teams query
Update the teams query
579a35b7fcbeb6f81e25f38a666cfdcdb2ae855a
--- android/app/build.gradle @@ -159,7 +159,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 911 - versionName "1.13.1" + versionName "1.15.0" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.13.1</string> + <string>1.15.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.13.1", + "version": "1.15.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.13.1", + "version": "1.15.0", "hasInstallScript": true, "dependencies": { "@firebase/firestore-types": "^2.5.1", @@ -84,7 +84,7 @@ "@walmart/schedule-mini-app": "0.37.0", "@walmart/settings-mini-app": "1.19.1", "@walmart/shelfavailability-mini-app": "1.5.16", - "@walmart/taskit-mini-app": "2.40.8", + "@walmart/taskit-mini-app": "2.44.0", "@walmart/texting-mini-app": "2.0.29", "@walmart/time-clock-mini-app": "2.111.3", "@walmart/topstock-mini-app": "1.0.13", @@ -8089,9 +8089,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "2.40.8", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.40.8.tgz", - "integrity": "sha512-NEdZiakzJiNiXn/lzT+EWt+yn8BMJp6lXQJrDf8tvm0PUtVNWcyHpxWeq/KAFWsocZDmP3Xe895xk9qM1XQFPA==", + "version": "2.44.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.44.0.tgz", + "integrity": "sha512-p1xkZ9Et2w/28x+oYkRJiAVBPmceJnCUXuAB47WNF2rEgun1wYdtYJzUPrI1kW5jtPeJ35q06zrPmpvPJ7YJ/A==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -30717,9 +30717,9 @@ "version": "1.5.16" }, "@walmart/taskit-mini-app": { - "version": "2.40.8", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.40.8.tgz", - "integrity": "sha512-NEdZiakzJiNiXn/lzT+EWt+yn8BMJp6lXQJrDf8tvm0PUtVNWcyHpxWeq/KAFWsocZDmP3Xe895xk9qM1XQFPA==" + "version": "2.44.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.44.0.tgz", + "integrity": "sha512-p1xkZ9Et2w/28x+oYkRJiAVBPmceJnCUXuAB47WNF2rEgun1wYdtYJzUPrI1kW5jtPeJ35q06zrPmpvPJ7YJ/A==" }, "@walmart/tcnumber": { "version": "2.3.3", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.13.1", + "version": "1.15.0", "private": true, "scripts": { "android": "react-native run-android", @@ -125,7 +125,7 @@ "@walmart/schedule-mini-app": "0.37.0", "@walmart/settings-mini-app": "1.19.1", "@walmart/shelfavailability-mini-app": "1.5.16", - "@walmart/taskit-mini-app": "2.40.8", + "@walmart/taskit-mini-app": "2.44.0", "@walmart/texting-mini-app": "2.0.29", "@walmart/time-clock-mini-app": "2.111.3", "@walmart/topstock-mini-app": "1.0.13",
chore: bump notes @2.44.0
chore: bump notes @2.44.0
d291ed078b80d1d67bd6d607c2f17b4ba6233437
--- graphql.yml @@ -55,13 +55,13 @@ applications: hash: 'bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca' 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' + - "v1" + - name: "upsertSupplyChainAssociatePreference" + hash: "571873ffcf9d8923e4951fa75addb46f876c949046518f0c302707deadab878a" + queryTemplate: "packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql" tags: - - 'v1' - - name: 'prod' + - "v1" + - name: "prod" persistedQueries: - name: 'businessUnitByCountryAndNumber' hash: 'dc5adc0197a2bfd29b0ecc4ec5a255f44f8e0700a8a6916a834ec745574ab54d'
Update graphql.yml
Update graphql.yml
ce749eb365547659f8893201cdf796cc429a924f
--- package-lock.json @@ -4258,9 +4258,9 @@ "integrity": "sha512-gOjtmh7vtX1XSS1JA8xJWCwoW8vsiED0NxtKNWsXLpRuZfRJ06gESSqLyQUjRXSc40S+kN6dYJYO3EOv3VEPig==" }, "@walmart/inbox-mini-app": { - "version": "0.25.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.25.0.tgz", - "integrity": "sha512-d+/hvv9+N+Rv36OZZrsN6pLwkeZPDNq52rUfETNmJe8QdCPQvowEGgOG2sbAS5NK7ODGrKFXodGCmrq+UzXHpQ==" + "version": "0.26.0", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.26.0.tgz", + "integrity": "sha512-Kcf+R1iCgxHOLCwMoW+zrde/AgO41H65qWBwGxBnKfHzy0JRJcdpZBldAksoK6j2RlT6IvCZoju3WydXMElJyw==" }, "@walmart/iteminfo-mini-app": { "version": "4.0.2", --- package.json @@ -85,7 +85,7 @@ "@walmart/iteminfo-mini-app": "4.0.2", "@walmart/impersonation-mini-app": "1.0.27", "@walmart/ims-print-services-ui": "0.1.11", - "@walmart/inbox-mini-app": "0.25.0", + "@walmart/inbox-mini-app": "0.26.0", "@walmart/manager-approvals-miniapp": "0.0.58", "@walmart/metrics-mini-app": "0.5.21", "@walmart/moment-walmart": "1.0.4",
inbox version bump
inbox version bump
63a1938b662e5330a5a106c133380358f116c151
--- .gitignore @@ -25,3 +25,67 @@ packages/allspark-foundation/cli/* coverage *.log test-report.xml + +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +ios/.xcode.env.local + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof +.cxx/ +*.keystore +!debug.keystore + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +**/fastlane/report.xml +**/fastlane/Preview.html +**/fastlane/screenshots +**/fastlane/test_output + +# Bundle artifact +*.jsbundle + +# Ruby / CocoaPods +/ios/Pods/ +/vendor/bundle/ + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check*
chore: update root gitignore
chore: update root gitignore
284b720524cc6e8b1f40812d2c8ead802822617c
--- package-lock.json @@ -74,7 +74,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.0", - "@walmart/receipt-check-miniapp": "1.9.5", + "@walmart/receipt-check-miniapp": "1.9.6", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0", @@ -5849,9 +5849,9 @@ } }, "node_modules/@walmart/receipt-check-miniapp": { - "version": "1.9.5", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.5.tgz", - "integrity": "sha512-OWDDgeb32aSjOzXL6w7vAQOoT+LXXcINZB2GPrA7IUPvN0LXRwtOJPB0BM6jVxejvWeHEw7CTcLG729ti4jzwg==", + "version": "1.9.6", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.6.tgz", + "integrity": "sha512-W8eCAHMW0leWfWf+mty2yNvSq9joNXVurGKWrf97ZWSJpYY28J2mYGuCB1QM07dFi2QSlw6Mx8YKF6RxDlen8w==", "dependencies": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", @@ -25370,9 +25370,9 @@ "integrity": "sha512-VkGT8BSZOsxR4FJjxeu6ursO3qzAVZea6jEwT6KJsXgBJ9MIHhkBo78guM6kEbqqQl3SlGS/+5tbOxKdWrvStQ==" }, "@walmart/receipt-check-miniapp": { - "version": "1.9.5", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.5.tgz", - "integrity": "sha512-OWDDgeb32aSjOzXL6w7vAQOoT+LXXcINZB2GPrA7IUPvN0LXRwtOJPB0BM6jVxejvWeHEw7CTcLG729ti4jzwg==", + "version": "1.9.6", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.6.tgz", + "integrity": "sha512-W8eCAHMW0leWfWf+mty2yNvSq9joNXVurGKWrf97ZWSJpYY28J2mYGuCB1QM07dFi2QSlw6Mx8YKF6RxDlen8w==", "requires": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", --- package.json @@ -116,7 +116,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.0", - "@walmart/receipt-check-miniapp": "1.9.5", + "@walmart/receipt-check-miniapp": "1.9.6", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0",
bump version for receipt audit hotfix
bump version for receipt audit hotfix
327a3034d00a91a3bddafaca08c3f1992c300845
--- package-lock.json @@ -3094,9 +3094,9 @@ "integrity": "sha512-EwX26lsKullYJpRk69A8ci8zpQtOYVqDks9JDqthaVAzPeST4TJnnQd7bm7zMX897gOhc6JxWBQH4V1KlFJEGw==" }, "@walmart/exception-mini-app": { - "version": "0.8.0", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.8.0.tgz", - "integrity": "sha512-OQq9/kcjcKxLI0y8b5k07tOcaAxpyETSHsslJefU/HvrRuwo/gDfc/LQj62zp32qmWNtXPD1Om8HoapP6h0jhg==" + "version": "0.12.0", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.12.0.tgz", + "integrity": "sha512-+CkjjAwAJbJKLgi6lgUs+/TkhZ7dvyUodjplbCJtUkXv090j+/UtrI8hugd9XPtJp/fwh24sd3RyovajNp72zA==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.0.50", @@ -12910,9 +12910,9 @@ } }, "react-native-wm-barcode": { - "version": "2.25.0", - "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.25.0.tgz", - "integrity": "sha512-xmSBA8p4Zol8ANcEytrb3cGukmnVCbVqRzRFXKOcKH1LPMVn/wnWEQ0itu8x24k4/guMa/Mf8vagstrCjAnMGg==" + "version": "2.27.0-patch5", + "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.27.0-patch5.tgz", + "integrity": "sha512-xaOkKoIqMkMYGo7tV3QQGiSldDD6E3iaC0k/2EDD553+jUia4lk4+K+oiiAI8q8Kg/JOiGYWk8ifDKKJBsmXPA==" }, "react-native-wm-config": { "version": "0.1.1", --- package.json @@ -69,7 +69,7 @@ "@walmart/ask-sam-mini-app": "0.28.0", "@walmart/config-components": "1.0.21", "@walmart/counts-component-miniapp": "0.0.9", - "@walmart/exception-mini-app": "0.8.0", + "@walmart/exception-mini-app": "0.12.0", "@walmart/feedback-all-spark-miniapp": "0.0.50", "@walmart/functional-components": "1.0.27", "@walmart/gtp-shared-components": "^1.1.5", @@ -140,7 +140,7 @@ "react-native-video": "^5.1.0-alpha8", "react-native-view-shot": "^3.1.2", "react-native-webview": "^10.7.0", - "react-native-wm-barcode": "2.25.0", + "react-native-wm-barcode": "2.27.0-patch5", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.1.0", "react-native-wm-notification": "^1.0.0",
pinpoint version bump
pinpoint version bump
2f56bbac96138f5e7de1de7681412804f04b6b1f
--- __tests__/PinAccess/PinCodeSagasTest.ts @@ -52,7 +52,7 @@ describe('pinCreationFlow', () => { const iterator = pinCreationFlow(); expect(iterator.next().value).toEqual(take(PinAccessTypes.CREATE_PIN)); expect(iterator.next().value).toEqual( - call(navigate, 'Core.PinAccessScreen', {flow: CREATE}), + call(navigate, 'PinAccessScreen', {flow: CREATE}), ); expect(iterator.next().value).toEqual(take(PinAccessTypes.CREATE_PIN)); }); @@ -121,7 +121,7 @@ describe('handlePinPrompt', () => { }), ); expect(iterator.next().value).toEqual( - call(resetTo, 'Core.PinAccessScreen', {flow: ENTRY}), + call(resetTo, 'PinAccessScreen', {flow: ENTRY}), ); expect(iterator.next().value).toEqual(fork(handleBiometricSetup)); expect(iterator.next(biometricTask).value).toEqual( --- __tests__/navigation/__snapshots__/indexTest.tsx.snap @@ -72,7 +72,7 @@ exports[`RootNav matches snapshot 1`] = ` <Screen component="PinAccess" listeners={[MockFunction]} - name="Core.PinAccessScreen" + name="PinAccessScreen" options={ Object { "animationTypeForReplace": "push", --- src/PinAccess/PinCodeSagas.ts @@ -27,7 +27,7 @@ export const PIN_REQUIRED_KEY = 'pin_required'; export function* pinCreationFlow() { while (true) { yield take(PinAccessTypes.CREATE_PIN); - yield call(navigate, 'Core.PinAccessScreen', {flow: CREATE}); + yield call(navigate, 'PinAccessScreen', {flow: CREATE}); } } @@ -70,7 +70,7 @@ export function* handlePinPrompt(reason: string, resetNav: boolean): any { }); const navMethod = resetNav ? resetTo : navigate; - const pinScreen = resetNav ? 'Core.PinAccessScreen' : 'Core.PinAccessModal'; + const pinScreen = resetNav ? 'PinAccessScreen' : 'Core.PinAccessModal'; yield call(navMethod, pinScreen, {flow: ENTRY}); --- src/navigation/index.tsx @@ -74,7 +74,7 @@ export const RootNav = () => ( listeners={hideSplashScreenListeners} /> <RootStack.Screen - name='Core.PinAccessScreen' + name='PinAccessScreen' component={PinAccess} options={{headerShown: false, animationTypeForReplace: 'push'}} listeners={hideSplashScreenListeners}
Reverting pin screen name change back to match settings reference
Reverting pin screen name change back to match settings reference
cf1194c6750596d8aa6de48841827cf1a886a920
--- package-lock.json @@ -67,12 +67,12 @@ "@walmart/financial-wellbeing-feature-app": "1.23.2", "@walmart/functional-components": "6.0.16", "@walmart/gta-react-native-calendars": "0.6.0", - "@walmart/gtp-shared-components": "2.1.10", + "@walmart/gtp-shared-components": "2.2.1-rc.0", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.13", - "@walmart/learning-mini-app": "20.0.16", + "@walmart/learning-mini-app": "20.0.18", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.16", "@walmart/me-at-walmart-common": "6.0.16", @@ -11547,13 +11547,13 @@ "license": "MIT" }, "node_modules/@walmart/gtp-shared-components": { - "version": "2.1.10", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.10.tgz", - "integrity": "sha512-Yy3R29eLNjWW4i2YdVtPdNEkvbuYzq5Hnecgg/7JXq7jVqF8eTAGXBdUXJKe/MIJPS/O6FjyQuKLptHm/O/SFQ==", + "version": "2.2.1-rc.0", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.2.1-rc.0.tgz", + "integrity": "sha512-9sZ3/aiJWX33g6ffUGhl3yx3F91CuPuVqNQCX+sp01t+JPVgTJPz6Vmo8bzeRdD/O6DUQkVIHBs6t4Xaq8AnrQ==", "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "0.63.0", - "@walmart/gtp-shared-icons": "1.0.7", + "@walmart/gtp-shared-icons": "^1.0.8", "lodash": "^4.17.15", "moment": "^2.29.4", "react-keyed-flatten-children": "^1.3.0", @@ -11579,15 +11579,18 @@ "license": "UNLICENSED" }, "node_modules/@walmart/gtp-shared-icons": { - "version": "1.0.7", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.7.tgz", - "integrity": "sha512-6wNEUDQ45oKz2z4jb3M0b6aVHmnQARNqUpnvnUJ2ZJL6cEP/HJuBNrIocCPp0S5jz2HJOfmdhNKzZ5xHULvU2A==", + "version": "1.0.8", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.8.tgz", + "integrity": "sha512-kaqbrFz4abqU1fWU9Jletv/tS3dNY1csQ8qR2tzDUn/WGi5aywQoAd/evWcFo7g6Dopne/GLJTkML+hbnQWe0Q==", "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "0.63.0", "lodash": "^4.17.15", "moment": "^2.27.0" }, + "engines": { + "node": ">=18" + }, "peerDependencies": { "react": "*", "react-native": "*" @@ -11731,9 +11734,9 @@ } }, "node_modules/@walmart/learning-mini-app": { - "version": "20.0.16", - "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-20.0.16.tgz", - "integrity": "sha512-iVqkvXngm+Oi2Yoh/sfnb12y2GHgJnlCKNBErHpKpd/gxW55GOIYXacUZ+rc7y3abxfKB/vadfVLfgLfdTOUgA==", + "version": "20.0.18", + "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-20.0.18.tgz", + "integrity": "sha512-Kizrki3GbkxTOSTt0TNcQTqIlGFcwW2OeMtQ+Hapyl5q337Ap4y5JaatJgiwgf85z2o6ZSF6S3FTPtLVcJOMIQ==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", --- package.json @@ -108,12 +108,12 @@ "@walmart/financial-wellbeing-feature-app": "1.23.2", "@walmart/functional-components": "6.0.16", "@walmart/gta-react-native-calendars": "0.6.0", - "@walmart/gtp-shared-components": "2.1.10", + "@walmart/gtp-shared-components": "2.2.1-rc.0", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.13", - "@walmart/learning-mini-app": "20.0.16", + "@walmart/learning-mini-app": "20.0.18", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.16", "@walmart/me-at-walmart-common": "6.0.16", @@ -373,12 +373,12 @@ "@walmart/financial-wellbeing-feature-app": "1.23.2", "@walmart/functional-components": "6.0.16", "@walmart/gta-react-native-calendars": "0.6.0", - "@walmart/gtp-shared-components": "2.1.10", + "@walmart/gtp-shared-components": "2.2.1-rc.0", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.13", - "@walmart/learning-mini-app": "20.0.16", + "@walmart/learning-mini-app": "20.0.18", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.16", "@walmart/me-at-walmart-common": "6.0.16",
feat: :sparkles: Bump learning mini app version to 20.0.18
feat: :sparkles: Bump learning mini app version to 20.0.18
0d50ddd9859ed7890e481f6d6a03cf932c61a86d
--- packages/celebration-mini-app-graphql/src/store/index.ts @@ -16,6 +16,12 @@ import {CelebrationFeature} from '../utils/feature'; +/** + * Minimal placeholder reducer to satisfy Redux store requirements + * This prevents "Store does not have a valid reducer" errors + */ +const placeholderReducer = (state = {}, _action: any) => state; + /** * Redux configuration for Celebration Mini App * @@ -27,6 +33,10 @@ import {CelebrationFeature} from '../utils/feature'; * This export ensures proper Allspark module integration. */ export const CelebrationRedux = CelebrationFeature.createRedux({ - reducer: {}, + // Placeholder reducer to prevent Redux validation errors + // Replace with actual slices when needed + reducer: { + placeholder: placeholderReducer, + }, sagas: [], }); --- packages/celebration-mini-app/src/store/index.ts @@ -32,15 +32,24 @@ import {CelebrationFeature} from '../utils/feature'; +/** + * Minimal placeholder reducer to satisfy Redux store requirements + * This prevents "Store does not have a valid reducer" errors + */ +const placeholderReducer = (state = {}, _action: any) => state; + /** * Celebration Mini App Redux Configuration * * This object contains the Redux store configuration for the Celebration Mini App. - * Provides basic store setup with empty reducer and sagas for future implementation. + * Provides basic store setup with placeholder reducer to prevent validation errors. */ export const CelebrationRedux = CelebrationFeature.createRedux({ - // Basic reducer setup - can be expanded with actual slices - reducer: {}, + // Placeholder reducer to prevent Redux validation errors + // Replace with actual slices when needed + reducer: { + placeholder: placeholderReducer, + }, // Basic sagas setup - can be expanded with actual sagas sagas: [], });
feat(ui): fix the redux errors
feat(ui): fix the redux errors
c9c76d273b53a3194e8de6106ee255824d371e4a
--- __tests__/navigation/AssociateHallwayNav/SideMenuContentTest.tsx @@ -6,7 +6,7 @@ import {DrawerActions} from '@react-navigation/native'; import {useDrawerStatus} from '@react-navigation/drawer'; import {authActions, User} from '@walmart/redux-store'; -// import {Hooks} from '@walmart/push-to-talk-mini-app'; +import {MyTeamHooks} from '@walmart/texting-mini-app'; import {useTelemetry} from '@walmart/core-services/Telemetry'; import appJson from '../../../app.json'; @@ -25,12 +25,13 @@ jest.mock('../../../src/hooks', () => ({ useCanImpersonate: jest.fn(), })); -// jest.mock('@walmart/push-to-talk-mini-app', () => ({ -// PushToTalkMiniApp: 'PushToTalkMiniApp', -// Hooks: { -// useUnreadMessageCount: jest.fn((_) => [1]), -// }, -// })); +jest.mock('@walmart/texting-mini-app', () => ({ + TextingMiniApp: 'TextingMiniApp', + MyTeamHooks: { + useChannelUnreadCount: jest.fn(), + useMessagesUnreadCount: jest.fn(), + }, +})); const mockUseDrawerStatus = (useDrawerStatus as jest.Mock).mockReturnValue( 'open', --- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx @@ -2,7 +2,7 @@ import React from 'react'; import {useSelector} from 'react-redux'; import {create} from 'react-test-renderer'; import {navigate} from '@walmart/react-native-shared-navigation'; -// import {Hooks} from '@walmart/push-to-talk-mini-app'; +import {MyTeamHooks} from '@walmart/texting-mini-app'; import { renderTabBarButton, renderTabBarIcon, @@ -15,13 +15,13 @@ import { } from '../../../../src/navigation/AssociateHallwayNav/Tabs'; import {Telemetry} from '../../../../src/core/Telemetry'; -// jest.mock('@walmart/push-to-talk-mini-app', () => ({ -// PushToTalkMiniApp: 'PushToTalkMiniApp', -// Hooks: { -// useVMBadgesCount: jest.fn((_) => [1]), -// useTextBadgesCount: jest.fn((_) => [1]), -// }, -// })); +jest.mock('@walmart/texting-mini-app', () => ({ + TextingMiniApp: 'TextingMiniApp', + MyTeamHooks: { + useChannelUnreadCount: jest.fn(), + useMessagesUnreadCount: jest.fn(), + }, +})); jest.mock('../../../../src/transforms/language', () => ({ getValueForCurrentLanguage: jest.fn((t) => t), --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap @@ -63,6 +63,8 @@ exports[`MainTabsNav matches snapshot with badges 1`] = ` name="myTeam" options={ Object { + "tabBarBadge": undefined, + "tabBarBadgeStyle": undefined, "tabBarIcon": [Function], } } @@ -117,6 +119,8 @@ exports[`MainTabsNav matches snapshot with inbox shown and badges 1`] = ` name="myTeam" options={ Object { + "tabBarBadge": undefined, + "tabBarBadgeStyle": undefined, "tabBarIcon": [Function], } } @@ -169,6 +173,8 @@ exports[`MainTabsNav matches snapshot with no badges 1`] = ` name="myTeam" options={ Object { + "tabBarBadge": undefined, + "tabBarBadgeStyle": undefined, "tabBarIcon": [Function], } }
fix test cases
fix test cases
bc97269c2ac5f4198b5e09f2369ed4d1832c9e4f
--- targets/US/package.json @@ -147,7 +147,7 @@ "@walmart/shop-gnfr-mini-app": "1.0.131", "@walmart/sidekick-mini-app": "4.84.7", "@walmart/store-feature-orders": "1.27.1", - "@walmart/taskit-mini-app": "4.17.20", + "@walmart/taskit-mini-app": "4.17.21", "@walmart/time-clock-mini-app": "2.419.0", "@walmart/topstock-mini-app": "1.17.11", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch", --- yarn.lock @@ -7054,7 +7054,7 @@ __metadata: "@walmart/shop-gnfr-mini-app": "npm:1.0.131" "@walmart/sidekick-mini-app": "npm:4.84.7" "@walmart/store-feature-orders": "npm:1.27.1" - "@walmart/taskit-mini-app": "npm:4.17.20" + "@walmart/taskit-mini-app": "npm:4.17.21" "@walmart/time-clock-mini-app": "npm:2.419.0" "@walmart/topstock-mini-app": "npm:1.17.11" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" @@ -7973,12 +7973,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:4.17.20": - version: 4.17.20 - resolution: "@walmart/taskit-mini-app@npm:4.17.20" +"@walmart/taskit-mini-app@npm:4.17.21": + version: 4.17.21 + resolution: "@walmart/taskit-mini-app@npm:4.17.21" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/4783e007cd0d4aa602e397be164463b063e73cf54b5cfe27f4a4ab55d08ecb66ebadaf9bcd432828c62a534fb3d869bd817b801fa837894032964ad184586e98 + checksum: 10c0/58a740e7178f549c8692b511fb947f46ef3935c0d8c28df56922d557f3d9619835f0891b98c988c8f96cf9644e22b784945425420a6b90fbb3a8e6d7367695ca languageName: node linkType: hard
chore: bump taskit version
chore: bump taskit version
4edc298ba35e50f936d997a57e976a33bcaf0188
--- package-lock.json @@ -4659,9 +4659,9 @@ "integrity": "sha512-x0n2tEbTwVe6Xn7KxnslCa8y2I+f6KG6hkhQiNAcZu17Bitwf/Kddoz/9h8Pn5guehnqYVB2oXHoMwMvmr0u0A==" }, "@walmart/functional-components": { - "version": "2.0.2", - "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-2.0.2.tgz", - "integrity": "sha512-2Laq3TPDYvthSaKjKhi8h7o1ihVvvpDoFvt88F9Vgtx7QsUJf8hbc4PN0tPf9jkuLAHAOBv+VrOG80b4FrLrnQ==" + "version": "2.0.3", + "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-2.0.3.tgz", + "integrity": "sha512-t+LERNcgMb4Eyfpz+6WxurN1rY4eI/4ZItFD5oR2U3+/kd6miMk3zTUb+ZCwAZJpDcuSk8EutR092h4BXMJ4yQ==" }, "@walmart/gta-react-native-calendars": { "version": "0.0.15", --- package.json @@ -81,7 +81,7 @@ "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.41.1", "@walmart/feedback-all-spark-miniapp": "0.3.8", - "@walmart/functional-components": "2.0.2", + "@walmart/functional-components": "2.0.3", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.6.0", "@walmart/impersonation-mini-app": "1.1.0",
bumping functional components for http client fix
bumping functional components for http client fix
1dbfced874b1686fde73dd6739082a7c73497506
--- package-lock.json @@ -4437,9 +4437,9 @@ } }, "@walmart/payrollsolution_miniapp": { - "version": "0.122.3", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.122.3.tgz", - "integrity": "sha512-Z34sGK9BMKalh02my10zua/flOvkSxwrUp6WtKUeES1STpwkkp0hJ6jzGcglzSh4mA4mMVoNGJ1kF3S1m5YcpQ==" + "version": "0.122.5", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.122.5.tgz", + "integrity": "sha512-x2XK1RPnpamiplT7OsNHx1JJ7eiJRFiUaEnUye92S+ZGnfOED4BTqKD+BdUfNgYOL0ysXwDl8yHgaMqsUzJU3w==" }, "@walmart/price-changes-mini-app": { "version": "1.2.3", --- package.json @@ -88,7 +88,7 @@ "@walmart/manager-approvals-miniapp": "0.0.60", "@walmart/metrics-mini-app": "0.7.68", "@walmart/moment-walmart": "1.0.4", - "@walmart/payrollsolution_miniapp": "^0.122.3", + "@walmart/payrollsolution_miniapp": "^0.122.5", "@walmart/price-changes-mini-app": "1.2.3", "@walmart/profile-feature-app": "0.0.32", "@walmart/push-to-talk-mini-app": "1.7.10",
bump version
bump version
43c0ce52d2afeddb5900bf3f8166ec4912800d58
--- __tests__/__mocks__/@walmart/ui-components.js @@ -0,0 +1,18 @@ +const Header = () => 'Header'; +Header.Provider = 'Provider'; + +module.exports = { + Header, + ActivityMonitor: 'ActivityMonitor', + BottomTabs: 'BottomTabs', + BottomTabsConfig: {}, + Dialog: 'Dialog', + GlobalNavigation: 'GlobalNavigation', + CreatePinError: 'CreatePinError', + LockScreen: 'LockScreen', + DrawerButton: 'DrawerButton', + Modal: 'Modal', + ClockOutOverlay: 'ClockOutOverlay', + IndicatorBar: 'IndicatorBar', + ConnectivityBanner: 'ConnectivityBanner', +}; --- __tests__/navigation/index-test.tsx @@ -1,7 +1,8 @@ import React from 'react'; import {TextingNavigation} from '../../src/navigation'; -import {cleanup, render} from '@testing-library/react-native'; +import {cleanup} from '@testing-library/react-native'; import {goOfflineForUser, goOnlineForUser} from '../../src/presence/transforms'; +import {renderWithProviders} from '../harness/redux'; jest.mock('../../src/presence/transforms', () => ({ goOfflineForUser: jest.fn(), @@ -18,13 +19,13 @@ describe('Texting MiniApp Navigation', () => { it('should change user status to online upon entering miniapp', () => { const component = <TextingNavigation />; - render(component); + renderWithProviders(component); expect(goOnlineForUser).toBeCalled(); }); it('should change user status to offline upon leaving miniapp', () => { const component = <TextingNavigation />; - const {unmount} = render(component); + const {unmount} = renderWithProviders(component); unmount(); expect(goOfflineForUser).toBeCalled(); }); --- __tests__/__mocks__/@walmart/ui-components.js @@ -0,0 +1,18 @@ +const Header = () => 'Header'; +Header.Provider = 'Provider'; + +module.exports = { + Header, + ActivityMonitor: 'ActivityMonitor', + BottomTabs: 'BottomTabs', + BottomTabsConfig: {}, + Dialog: 'Dialog', + GlobalNavigation: 'GlobalNavigation', + CreatePinError: 'CreatePinError', + LockScreen: 'LockScreen', + DrawerButton: 'DrawerButton', + Modal: 'Modal', + ClockOutOverlay: 'ClockOutOverlay', + IndicatorBar: 'IndicatorBar', + ConnectivityBanner: 'ConnectivityBanner', +}; --- __tests__/navigation/index-test.tsx @@ -1,7 +1,8 @@ import React from 'react'; import {TextingNavigation} from '../../src/navigation'; -import {cleanup, render} from '@testing-library/react-native'; +import {cleanup} from '@testing-library/react-native'; import {goOfflineForUser, goOnlineForUser} from '../../src/presence/transforms'; +import {renderWithProviders} from '../harness/redux'; jest.mock('../../src/presence/transforms', () => ({ goOfflineForUser: jest.fn(), @@ -18,13 +19,13 @@ describe('Texting MiniApp Navigation', () => { it('should change user status to online upon entering miniapp', () => { const component = <TextingNavigation />; - render(component); + renderWithProviders(component); expect(goOnlineForUser).toBeCalled(); }); it('should change user status to offline upon leaving miniapp', () => { const component = <TextingNavigation />; - const {unmount} = render(component); + const {unmount} = renderWithProviders(component); unmount(); expect(goOfflineForUser).toBeCalled(); });
fixing test failure
fixing test failure
cc0a11849ec4aa91e6e45093ae27f608ebb8df69
--- package-lock.json @@ -65,7 +65,7 @@ "@walmart/pay-stub-miniapp": "0.9.35", "@walmart/payrollsolution_miniapp": "0.130.46", "@walmart/price-changes-mini-app": "1.9.3", - "@walmart/profile-feature-app": "0.246.0", + "@walmart/profile-feature-app": "0.251.0", "@walmart/push-to-talk-mini-app": "1.11.2", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", @@ -5702,9 +5702,9 @@ } }, "node_modules/@walmart/profile-feature-app": { - "version": "0.246.0", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.246.0.tgz", - "integrity": "sha512-Ziv3ZgLZLb9ex6uhUYcngJbcSvLE7RPfQF/Qp8K+XRRsPpv5ftdZqQU75qIm/z24HHHEOopkO4HTsiHvjI2PXQ==", + "version": "0.251.0", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.251.0.tgz", + "integrity": "sha512-nL+YryFj7N1XV3xzvH8PLwdhzScaki/nsazcfVL6sxRIPmxMX8NwyVWYQdBvhPVGUoec0L62fKEOASP8Yb/AeA==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/bottom-tabs": "^6.0.0", @@ -25404,9 +25404,9 @@ "version": "1.9.3" }, "@walmart/profile-feature-app": { - "version": "0.246.0", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.246.0.tgz", - "integrity": "sha512-Ziv3ZgLZLb9ex6uhUYcngJbcSvLE7RPfQF/Qp8K+XRRsPpv5ftdZqQU75qIm/z24HHHEOopkO4HTsiHvjI2PXQ==" + "version": "0.251.0", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.251.0.tgz", + "integrity": "sha512-nL+YryFj7N1XV3xzvH8PLwdhzScaki/nsazcfVL6sxRIPmxMX8NwyVWYQdBvhPVGUoec0L62fKEOASP8Yb/AeA==" }, "@walmart/push-to-talk-mini-app": { "version": "1.11.2", --- package.json @@ -107,7 +107,7 @@ "@walmart/pay-stub-miniapp": "0.9.35", "@walmart/payrollsolution_miniapp": "0.130.46", "@walmart/price-changes-mini-app": "1.9.3", - "@walmart/profile-feature-app": "0.246.0", + "@walmart/profile-feature-app": "0.251.0", "@walmart/push-to-talk-mini-app": "1.11.2", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0",
bump profile-feature-app to 0.251.0
bump profile-feature-app to 0.251.0
cd4a63dd62d9eed5c319169e0681b7ae10c80984
--- core/__tests__/__mocks__/@walmart/time-clock-mini-app.js @@ -9,19 +9,6 @@ module.exports = { AttendanceModalScreen: 'AttendanceModalScreen', TimeClockWidget: 'TimeClockWidget', Toast: 'Toast', - PunchActions: { - setLastPunchType: jest.fn((lastPunchType, api) => ({ - type: 'SET_LAST_PUNCH_TYPE', - payload: { lastPunchType, api }, - })), - setLastPunchTime: jest.fn((lastPunchTime, api) => ({ - type: 'SET_LAST_PUNCH_TIME', - payload: { lastPunchTime, api }, - })), - }, - ClockAppActions: { - setDisableGeoValidation: jest.fn(() => (true)), - }, ClockAppSelectors: { getGeoValidationDisabled: jest.fn(), }
fix timeclockminiapp mock
fix timeclockminiapp mock
3855f56b2394f1f3553710d182359743c491c734
--- src/components/MessageList.tsx @@ -17,6 +17,7 @@ type MessageListProps = { onEndReachedHandler?: () => void; isLoading: boolean; allRosterAssociates: Associate[]; + viewerId: string; }; export const MessageList = ({ @@ -25,13 +26,43 @@ export const MessageList = ({ onEndReachedHandler, isLoading, allRosterAssociates, + viewerId, }: MessageListProps) => { const channelData = useChannelData(channelPath); const flatListRef = useRef<FlatList>(null); + const previousMessageCountRef = useRef(messages.length); + + const getFirstMessageId = (messageList: (LocalMessage | string)[]) => { + const firstMessage = messageList.find( + (msg): msg is LocalMessage => typeof msg !== 'string' + ); + return firstMessage?.id; + }; + + const firstMessageIdRef = useRef<string | undefined>( + getFirstMessageId(messages) + ); useEffect(() => { - flatListRef.current?.scrollToEnd({animated: false}); - }, [messages.length]); + // Auto-scroll to latest message only when current user sends (not on pagination or others' messages) + const currentFirstMessageId = getFirstMessageId(messages); + const firstActualMessage = messages.find( + (msg): msg is LocalMessage => typeof msg !== 'string' + ); + + const isNewMessage = + messages.length > previousMessageCountRef.current && + currentFirstMessageId !== firstMessageIdRef.current; + + const isMyMessage = firstActualMessage?.sentFrom === viewerId; + + if (isNewMessage && isMyMessage) { + flatListRef.current?.scrollToOffset({offset: 0, animated: false}); + } + + previousMessageCountRef.current = messages.length; + firstMessageIdRef.current = currentFirstMessageId; + }, [messages, viewerId]); const renderItem: ListRenderItem<LocalMessage | string> = ({ item, index, @@ -41,10 +72,7 @@ export const MessageList = ({ }) => { if (typeof item === 'string') { return ( - <MessageTimeSectionHeader - time={item} - isFirstMessage={index === 0} - /> + <MessageTimeSectionHeader time={item} isFirstMessage={index === 0} /> ); } return ( @@ -69,7 +97,7 @@ export const MessageList = ({ onEndReached={onEndReachedHandler} showsVerticalScrollIndicator={false} contentContainerStyle={styles.messageList} - testID='messageItemListForConversationHistory' + testID="messageItemListForConversationHistory" /> ); }; --- src/modals/MessagesScreen.tsx @@ -637,6 +637,7 @@ export const MessagesScreen = ({ isLoading={isLoading} allRosterAssociates={allAssociates} onEndReachedHandler={onMessageListEndReached} + viewerId={viewerId} /> {showTextingInput && ( <ChatInput
fix(messages): SMDV-8912 automatic scroll of messages
fix(messages): SMDV-8912 automatic scroll of messages
6140eaa3064a076afd0ee50761fcdbaf3f8e5b3f
--- package.json @@ -87,7 +87,7 @@ "@walmart/core-widget-registry": "0.5.7", "@walmart/counts-component-miniapp": "0.0.39", "@walmart/exception-mini-app": "0.42.6", - "@walmart/facilities-management-miniapp": "0.3.25", + "@walmart/facilities-management-miniapp": "0.3.25-beta1", "@walmart/feedback-all-spark-miniapp": "0.8.0", "@walmart/financial-wellbeing-feature-app": "1.0.29", "@walmart/functional-components": "2.0.6",
Update package.json
Update package.json
5127faca3d3250c88629841da52c2064587ea812
--- ios/Podfile.lock @@ -1868,8 +1868,6 @@ PODS: - React-Core - react-native-background-timer (2.4.1): - React-Core - - react-native-drop-shadow (1.0.3): - - React - react-native-encrypted-storage (1.1.18): - React-Core - react-native-flipper (0.182.0): @@ -1910,7 +1908,7 @@ PODS: - React - ScanditBarcodeCapture (= 6.14.0) - ScanditCaptureCore (= 6.14.0) - - react-native-webview (13.13.4): + - react-native-webview (13.13.1): - DoubleConversion - glog - hermes-engine @@ -2197,7 +2195,7 @@ PODS: - Firebase/Performance (= 10.7.0) - React-Core - RNFBApp - - RNFlashList (1.7.6): + - RNFlashList (1.7.2): - DoubleConversion - glog - hermes-engine @@ -2220,7 +2218,7 @@ PODS: - Yoga - RNFS (2.20.0): - React-Core - - RNGestureHandler (2.24.0): + - RNGestureHandler (2.22.0): - DoubleConversion - glog - hermes-engine @@ -2245,7 +2243,7 @@ PODS: - React-Core - RNReactNativeHapticFeedback (1.14.0): - React-Core - - RNReanimated (3.17.1): + - RNReanimated (3.16.7): - DoubleConversion - glog - hermes-engine @@ -2258,19 +2256,17 @@ PODS: - React-Fabric - React-featureflags - React-graphics - - React-hermes - React-ImageManager - - React-jsi - React-NativeModulesApple - React-RCTFabric - React-rendererdebug - React-utils - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - RNReanimated/reanimated (= 3.17.1) - - RNReanimated/worklets (= 3.17.1) + - RNReanimated/reanimated (= 3.16.7) + - RNReanimated/worklets (= 3.16.7) - Yoga - - RNReanimated/reanimated (3.17.1): + - RNReanimated/reanimated (3.16.7): - DoubleConversion - glog - hermes-engine @@ -2283,18 +2279,16 @@ PODS: - React-Fabric - React-featureflags - React-graphics - - React-hermes - React-ImageManager - - React-jsi - React-NativeModulesApple - React-RCTFabric - React-rendererdebug - React-utils - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - RNReanimated/reanimated/apple (= 3.17.1) + - RNReanimated/reanimated/apple (= 3.16.7) - Yoga - - RNReanimated/reanimated/apple (3.17.1): + - RNReanimated/reanimated/apple (3.16.7): - DoubleConversion - glog - hermes-engine @@ -2307,9 +2301,7 @@ PODS: - React-Fabric - React-featureflags - React-graphics - - React-hermes - React-ImageManager - - React-jsi - React-NativeModulesApple - React-RCTFabric - React-rendererdebug @@ -2317,7 +2309,7 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - RNReanimated/worklets (3.17.1): + - RNReanimated/worklets (3.16.7): - DoubleConversion - glog - hermes-engine @@ -2330,33 +2322,7 @@ PODS: - React-Fabric - React-featureflags - React-graphics - - React-hermes - React-ImageManager - - React-jsi - - React-NativeModulesApple - - React-RCTFabric - - React-rendererdebug - - React-utils - - ReactCommon/turbomodule/bridging - - ReactCommon/turbomodule/core - - RNReanimated/worklets/apple (= 3.17.1) - - Yoga - - RNReanimated/worklets/apple (3.17.1): - - DoubleConversion - - glog - - hermes-engine - - RCT-Folly (= 2024.01.01.00) - - RCTRequired - - RCTTypeSafety - - React-Codegen - - React-Core - - React-debug - - React-Fabric - - React-featureflags - - React-graphics - - React-hermes - - React-ImageManager - - React-jsi - React-NativeModulesApple - React-RCTFabric - React-rendererdebug @@ -2364,7 +2330,7 @@ PODS: - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - Yoga - - RNScreens (3.37.0): + - RNScreens (3.35.0): - DoubleConversion - glog - hermes-engine @@ -2473,7 +2439,6 @@ DEPENDENCIES: - React-Mapbuffer (from `../node_modules/react-native/ReactCommon`) - react-native-app-auth (from `../node_modules/react-native-app-auth`) - react-native-background-timer (from `../node_modules/react-native-background-timer`) - - react-native-drop-shadow (from `../node_modules/react-native-drop-shadow`) - "react-native-encrypted-storage (from `../node_modules/@walmart/react-native-encrypted-storage`)" - react-native-flipper (from `../node_modules/react-native-flipper`) - react-native-get-random-values (from `../node_modules/react-native-get-random-values`) @@ -2660,8 +2625,6 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-app-auth" react-native-background-timer: :path: "../node_modules/react-native-background-timer" - react-native-drop-shadow: - :path: "../node_modules/react-native-drop-shadow" react-native-encrypted-storage: :path: "../node_modules/@walmart/react-native-encrypted-storage" react-native-flipper: @@ -2850,7 +2813,6 @@ SPEC CHECKSUMS: React-Mapbuffer: f544f00b98dbdd8cbae96dd2bdb8b47f719976e0 react-native-app-auth: 057c1413338ac809623e76004a8716c6b005238e react-native-background-timer: 4638ae3bee00320753647900b21260b10587b6f7 - react-native-drop-shadow: aeb76e4b46c09924b4a8ee3d454dd00fdb5c62d9 react-native-encrypted-storage: dc9a20a7722cf567c26a444ac50d510010e71b9f react-native-flipper: 7a387fcbd97e05587ffbaad995551b3c6f3d461e react-native-get-random-values: ce0b8796c99e2b85e3202bd500b1ef286a17a02e @@ -2860,7 +2822,7 @@ SPEC CHECKSUMS: react-native-pager-view: 176db81d66a35119ec1b512a59bc94a47f73a68f react-native-safe-area-context: 758e894ca5a9bd1868d2a9cfbca7326a2b6bf9dc react-native-scanner-3.0: 9466b34f7a03649b9a32a601b093d6616bba7237 - react-native-webview: 82af27edac723b44ac135d5ff54234f2e52bb005 + react-native-webview: 05dd5bd08d456d4db8b7e3a1fdb9684ca792ee75 React-nativeconfig: ba9a2e54e2f0882cf7882698825052793ed4c851 React-NativeModulesApple: 84aaad2b0e546d7b839837ca537f6e72804a4cad React-perflogger: ed4e0c65781521e0424f2e5e40b40cc7879d737e @@ -2895,13 +2857,13 @@ SPEC CHECKSUMS: RNFBDatabase: 503473d991ec97449a29716367d0acae800319e8 RNFBFirestore: e0b7c48951c0fe57640fbc7836b1a66f9e6b9b2b RNFBPerf: c9d2870e2e9e2436895e66a918a6d199864c44f4 - RNFlashList: 2930f9eb697ab12e581e72a8ad62ca0c73eb132c + RNFlashList: 916adaa9dc946dbafed435175982e31e767b07b0 RNFS: 89de7d7f4c0f6bafa05343c578f61118c8282ed8 - RNGestureHandler: 4c50b5e4ca199cf497511d44e3fe45d54d62e279 + RNGestureHandler: de4610ef1a46da0490967dd3c67e355569190251 RNPermissions: 5c9b5ffdde65e7b3ca5a631491da3fd4f38feb7b RNReactNativeHapticFeedback: 8364333ca888b1b7ec9d2daf04b010ee5436366e - RNReanimated: ba105488ad6de44be91a1b4fa11f984512acd54b - RNScreens: ef68e50aea531dd00c592ba4683bbcb89d4d2e1a + RNReanimated: 54c8f1cc0be7504cc3eaf213655ad13c4ba53fc2 + RNScreens: 8a3ba045e7e8b5dd1b9a7764496430e17d00dfed RNSVG: 043f603fc70d48d289bc3f2ceedbb05ce2636f5c RNVectorIcons: 5784330be9dddb5474e8b378d5f6947996c84e55 ScanditBarcodeCapture: 26e343653b28a92c1bf34a5d571c8a03c2e6e5a2
feat(ui): merge changes from main
feat(ui): merge changes from main
7cba179c0dfad897bdceccb5a7fb7826f5209691
--- package.json @@ -93,14 +93,14 @@ "@walmart/me-at-walmart-athena-queries": "6.26.1", "@walmart/me-at-walmart-common": "6.29.0-alpha.0", "@walmart/me-at-walmart-container": "6.29.0-alpha.0", - "@walmart/myteam-mini-app": "3.0.2-alpha.2", + "@walmart/myteam-mini-app": "3.0.2-alpha.3", "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.10.7", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/redux-store": "6.3.29", - "@walmart/roster-mini-app": "3.2.0-alpha.3", - "@walmart/wmconnect-mini-app": "3.1.1", + "@walmart/roster-mini-app": "3.2.0-alpha.4", + "@walmart/wmconnect-mini-app": "3.1.1-alpha.0", "babel-jest": "^29.6.3", "eslint": "8.56.0", "eslint-config-expo": "~8.0.1", --- yarn.lock @@ -6213,14 +6213,14 @@ __metadata: "@walmart/me-at-walmart-athena-queries": "npm:6.26.1" "@walmart/me-at-walmart-common": "npm:6.29.0-alpha.0" "@walmart/me-at-walmart-container": "npm:6.29.0-alpha.0" - "@walmart/myteam-mini-app": "npm:3.0.2-alpha.2" + "@walmart/myteam-mini-app": "npm:3.0.2-alpha.3" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.10.7" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/redux-store": "npm:6.3.29" - "@walmart/roster-mini-app": "npm:3.2.0-alpha.3" - "@walmart/wmconnect-mini-app": "npm:3.1.1" + "@walmart/roster-mini-app": "npm:3.2.0-alpha.4" + "@walmart/wmconnect-mini-app": "npm:3.1.1-alpha.0" babel-jest: "npm:^29.6.3" eslint: "npm:8.56.0" eslint-config-expo: "npm:~8.0.1" @@ -6438,9 +6438,9 @@ __metadata: languageName: node linkType: hard -"@walmart/myteam-mini-app@npm:3.0.2-alpha.2": - version: 3.0.2-alpha.2 - resolution: "@walmart/myteam-mini-app@npm:3.0.2-alpha.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmyteam-mini-app%2F-%2F%40walmart%2Fmyteam-mini-app-3.0.2-alpha.2.tgz" +"@walmart/myteam-mini-app@npm:3.0.2-alpha.3": + version: 3.0.2-alpha.3 + resolution: "@walmart/myteam-mini-app@npm:3.0.2-alpha.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmyteam-mini-app%2F-%2F%40walmart%2Fmyteam-mini-app-3.0.2-alpha.3.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6451,7 +6451,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/8ea333eaa939eff19dd717884878f40fa5ef715860287266c9f42c7cc80e3cf2e078f134cacd11b93d10ac715a45cc803e4c6414b63e019a280856505a47a647 + checksum: 10c0/df3a409d4fb6bc970f4bd1ce7ff84c5072b5dbadac0e67583e651d865419bfc159ae5561da94c77351c44940f8149cae6c399fe4408eb60856bd2b2ab02760a5 languageName: node linkType: hard @@ -6507,9 +6507,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:3.2.0-alpha.3": - version: 3.2.0-alpha.3 - resolution: "@walmart/roster-mini-app@npm:3.2.0-alpha.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.2.0-alpha.3.tgz" +"@walmart/roster-mini-app@npm:3.2.0-alpha.4": + version: 3.2.0-alpha.4 + resolution: "@walmart/roster-mini-app@npm:3.2.0-alpha.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.2.0-alpha.4.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6520,13 +6520,13 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/179cceb7117fc38f310b50bf483c2ea53c001f9f11a9f371fb7cfe3a1a8244610158920de65c9b54455be83985834a7b1128da9b0aa038deceed4a8ccd48d7dd + checksum: 10c0/3b520b565615ad8e235aa6aefb09dc38039fa96744a732268ffc980177b0cd9a71658fc115b1d12aa9afda9d751395831bd47a1abdf2778141ab54f46095c2af languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.1.1": - version: 3.1.1 - resolution: "@walmart/wmconnect-mini-app@npm:3.1.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.1.1.tgz" +"@walmart/wmconnect-mini-app@npm:3.1.1-alpha.0": + version: 3.1.1-alpha.0 + resolution: "@walmart/wmconnect-mini-app@npm:3.1.1-alpha.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.1.1-alpha.0.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6537,7 +6537,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/02d52dbec11b2444054acfc6cda5fc26fcbeb4bc33948216abb071e43786cc4fb53314b2c654835a7d5fd22cb432159b9dd624f563e63e9ae4a243d77c539108 + checksum: 10c0/6bcdbe8031f2b1b43262741ad10d138faa20bc3a666ead35d3474b9aa166703b2bd03bb7526ac9b8352f920592d0121507a8dfd4ceb66b43ef3f0ab935e559f5 languageName: node linkType: hard
chore(ui): update roster and myteam mini app
chore(ui): update roster and myteam mini app
1ea7b1efc4f62180fc49e0dc9fd9afda0291b0b3
--- .inisights.yml @@ -0,0 +1,9 @@ +team: + - id: 3799 +product: + - {} +languages: + - JavaScript + - Android + - iOS +ignoreNotify: true
chore: add insights yml file
chore: add insights yml file
a43c40f5a88f2cd454bde154f426647e8f28f55c
--- __tests__/storeInfo/StoreInfoTest.tsx @@ -40,7 +40,7 @@ describe('StoreInfo', () => { jest.spyOn(Platform, 'select').mockImplementation((config) => config.ios); DirectionsButton.props.onPress(); expect(LinkingSpy).toHaveBeenCalledWith( - 'maps:0,0?q=changeStore.storeDirectionsLabel&address=32.37,31.47', + 'http://maps.apple.com/?q=changeStore.storeDirectionsLabel&ll=32.37,31.47', ); }); @@ -48,6 +48,11 @@ describe('StoreInfo', () => { jest .spyOn(Platform, 'select') .mockImplementation((config) => config.android); + + jest + .spyOn(Linking, 'canOpenURL') + .mockImplementation((url: string) => Promise.resolve(true)); + DirectionsButton.props.onPress(); expect(LinkingSpy).toHaveBeenCalledWith( 'geo:0,0?q=32.37,31.47(changeStore.storeDirectionsLabel)', --- src/storeInfo/StoreInfo.tsx @@ -16,6 +16,7 @@ import {useTranslation} from '@walmart/core-services/Translations'; import {Images} from '../images'; import {StoreMap} from './StoreMap'; import {TextLoader} from './TextLoader'; +import { useLogger } from '@walmart/core-services/Logger'; const styles = StyleSheet.create({ storeMap: { @@ -60,19 +61,24 @@ interface StoreInfoProps { export const StoreInfo = (props: StoreInfoProps) => { const {loading, store, address, coordinates, style, context} = props; const [t] = useTranslation('common'); + const logger = useLogger(); const openDirections = () => { const {latitude, longitude} = coordinates!; const coordinateString = `${latitude},${longitude}`; const storeLabel = t('changeStore.storeDirectionsLabel', {store, context}); - - Linking.openURL( - Platform.select({ - ios: `maps:0,0?q=${storeLabel}&address=${coordinateString}`, - android: `geo:0,0?q=${coordinateString}(${storeLabel})`, - default: `geo:0,0?q=${coordinateString}(${storeLabel})`, - }), - ); + const mapsurl = Platform.select({ + ios: `http://maps.apple.com/?q=${storeLabel}&ll=${coordinateString}`, + android: `geo:0,0?q=${coordinateString}(${storeLabel})`, + default: `geo:0,0?q=${coordinateString}(${storeLabel})`, + }) + Linking.canOpenURL(mapsurl).catch(() => { + logger.error("Cannot open maps url", { + mapsurl, + message: 'Invalid url for store directions' + }); + }) + Linking.openURL(mapsurl); }; return (
fixing map directions on ios
fixing map directions on ios
38524c0fead3289d388b0df8826d9be02d88e84f
--- package-lock.json @@ -78,7 +78,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1", - "@walmart/receipt-check-miniapp": "1.14.6", + "@walmart/receipt-check-miniapp": "1.15.6", "@walmart/redux-store": "3.5.0", "@walmart/returns-mini-app": "1.9.0", "@walmart/schedule-mini-app": "0.37.0", @@ -8958,9 +8958,10 @@ } }, "node_modules/@walmart/receipt-check-miniapp": { - "version": "1.14.6", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.6.tgz", - "integrity": "sha512-0q87aDQ8W0KDHY+UWQDAS+5L7iYj0xaNkZ8fn8mlKHrILDTZZ7dK1R0si/vjQDKg9N7wqPkOLr5bvPXD9MkrVw==", + "version": "1.15.6", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.15.6.tgz", + "integrity": "sha512-+J4dsgicHrurcXC72uqM0RmAel7EZGGMrvT3ZyVABX/YNpcqutNpaAz3nAr5u0JomeYHIikhs+lSrIcpjCCOJg==", + "hasInstallScript": true, "dependencies": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", @@ -33751,9 +33752,9 @@ "version": "2.5.1" }, "@walmart/receipt-check-miniapp": { - "version": "1.14.6", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.14.6.tgz", - "integrity": "sha512-0q87aDQ8W0KDHY+UWQDAS+5L7iYj0xaNkZ8fn8mlKHrILDTZZ7dK1R0si/vjQDKg9N7wqPkOLr5bvPXD9MkrVw==", + "version": "1.15.6", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.15.6.tgz", + "integrity": "sha512-+J4dsgicHrurcXC72uqM0RmAel7EZGGMrvT3ZyVABX/YNpcqutNpaAz3nAr5u0JomeYHIikhs+lSrIcpjCCOJg==", "requires": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", --- package.json @@ -119,7 +119,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1", - "@walmart/receipt-check-miniapp": "1.14.6", + "@walmart/receipt-check-miniapp": "1.15.6", "@walmart/redux-store": "3.5.0", "@walmart/returns-mini-app": "1.9.0", "@walmart/schedule-mini-app": "0.37.0",
update version
update version
67d89d6804e839cdc24f712f91d23c7b76d9c54e
--- docs/CHANGELOG.md @@ -1,3 +1,11 @@ +# [3.15.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.14.0...v3.15.0) (2026-01-20) + + +### Features + +* **ui:** update wmconnect and roster version ([ab5c38a](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/ab5c38af19576dc88cb66bc778f40dee80c56ddb)) +* **ui:** update wmconnect, roster and myteam verion ([3861bb6](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/3861bb624b2e4d2a38c0009b5139eae447ff8192)) + # [3.14.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.13.0...v3.14.0) (2026-01-16) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.14.0", + "version": "3.15.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.15.0 [skip ci]
chore(release): 3.15.0 [skip ci] # [3.15.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.14.0...v3.15.0) (2026-01-20) ### Features * **ui:** update wmconnect and roster version ([ab5c38a](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/ab5c38af19576dc88cb66bc778f40dee80c56ddb)) * **ui:** update wmconnect, roster and myteam verion ([3861bb6](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/3861bb624b2e4d2a38c0009b5139eae447ff8192))
e762cfd334887228af17a7624eb5fa52878b55eb
--- __tests__/setup.ts @@ -565,6 +565,7 @@ jest.mock('@walmart/allspark-foundation/Network', () => ({ jest.mock('@walmart/allspark-foundation/Config', () => ({ ConfigSelectors: { createFeatureConfigValueSelector: jest.fn(() => jest.fn()), + createContainerConfigValueSelector: jest.fn(() => jest.fn()), }, ConfigModule: { instance: jest.fn(() => ({
feat(ui): yarn install issue fix
feat(ui): yarn install issue fix
3885b6f00c87c19450f2a15630d74949c75ed66f
--- ios/Podfile.lock @@ -178,7 +178,7 @@ PODS: - RNPermissions - PromisesObjC (2.1.0) - Protobuf (3.20.0) - - PTT (0.7.14-rc.4): + - PTT (0.7.14-rc.8): - BinaryCodable (~> 0.2.1) - CocoaAsyncSocket (~> 7.6.3) - RealmSwift (= 10.15.0) @@ -406,8 +406,8 @@ PODS: - React-Core - react-native-pdf (6.2.2): - React-Core - - react-native-ptt-module (1.5.69): - - PTT (= 0.7.14-rc.4) + - react-native-ptt-module (1.5.75): + - PTT (= 0.7.14-rc.8) - React - react-native-safe-area-context (3.3.2): - React-Core @@ -945,7 +945,7 @@ SPEC CHECKSUMS: Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72 Protobuf: 66e2f3b26a35e4cc379831f4ced538274ee4b923 - PTT: 0e268a4069ddae75da3ac1884b862649ed5e4904 + PTT: 4cfd173bf548ff438a8107a980787ca9e5696802 RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 RCTRequired: 4bf86c70714490bca4bf2696148638284622644b RCTTypeSafety: c475a7059eb77935fa53d2c17db299893f057d5d @@ -970,7 +970,7 @@ SPEC CHECKSUMS: react-native-netinfo: 77d133105df525d4a11f10fcaa8d0b8883ea6429 react-native-pager-view: 311c10a4eead1be627cad59062aa059d8108b943 react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f - react-native-ptt-module: b5388075b95e6253b0a4630d5dafd1aaba555808 + react-native-ptt-module: 8e90bc3f6f66650ce2164c43f6c40e1cd8416e10 react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 --- package-lock.json @@ -4343,9 +4343,9 @@ "integrity": "sha512-qJaaKPSs5rNbukmidrZoqqWylzPX1nos0NwavGpgMjfCIvRuAE83yxNgNMV2KNP8y42YfNhEQlMJ5dCnsg/vWw==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.101", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.101.tgz", - "integrity": "sha512-URLWiM4ZdvSQCMc7KBEIF8qApLeitpUkeksrGGsV+UzqcyL+VgXKo08nDvmvyWwmgyS0C0Dg5En3W+fRuM9x2A==" + "version": "0.5.103", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.103.tgz", + "integrity": "sha512-Dnn7Halv7Oms4OOfMbkoZja+RAIQJXw5sivhETM7pwkVtZAcFbxcKmfTl55BboURLcqoz5hHuybVdw0FQ8CKVw==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", @@ -16978,9 +16978,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.5.69", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.69.tgz", - "integrity": "sha512-i3uoMMVOAQd6ouD+EvMynnYwXpOWHcgZz/oB09IuHZXYVVkcrSTzNMUVjN7gkAqTeXD49EtRsqwyz/SwFiDUQw==" + "version": "1.5.75", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.75.tgz", + "integrity": "sha512-L19t51u3cLyWuX8IXGu9eAf8wazzd6oB3tX0dRycrpB+jjX3zQ7U2u0Ph3lMZbDsx8EMfSqSX6+vWarzwva1NA==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- package.json @@ -91,7 +91,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.101.0", "@walmart/price-changes-mini-app": "1.0.6", - "@walmart/push-to-talk-mini-app": "0.5.101", + "@walmart/push-to-talk-mini-app": "0.5.103", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0", @@ -145,7 +145,7 @@ "react-native-pdf": "^6.2.0", "react-native-permissions": "3.0.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.5.69", + "react-native-ptt-module": "1.5.75", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.3.0",
updating to latest version
updating to latest version
7e1a673dc1b7d4215bdee4c88c015895b2e58c17
--- package.json @@ -254,8 +254,5 @@ "packageManager": "yarn@4.1.1", "engines": { "node": ">=18" - }, - "dependencies": { - "jest": "^29.7.0" } } --- packages/me-at-walmart-common/__tests__/navigationTest.ts @@ -1,6 +1,6 @@ import {ScreenTags, FeatureTags} from '../src/navigation' -describe('Navigation screen tag', () => { +describe('Navigation screen tags', () => { test('it should have the correct value for each screen tag', () => { expect(ScreenTags.RootStack).toBe('RootStack') expect(ScreenTags.AssociateStack).toBe('AssociateStack') --- yarn.lock @@ -6867,8 +6867,6 @@ __metadata: "@walmart/me-at-walmart@workspace:.": version: 0.0.0-use.local resolution: "@walmart/me-at-walmart@workspace:." - dependencies: - jest: "npm:^29.7.0" dependenciesMeta: "@walmart/amp-mini-app": built: false @@ -14558,7 +14556,7 @@ __metadata: languageName: node linkType: hard -"jest@npm:^29.2.1, jest@npm:^29.7.0": +"jest@npm:^29.2.1": version: 29.7.0 resolution: "jest@npm:29.7.0" dependencies:
modify navigationTest
modify navigationTest
b55e37a83baf1f553881d4bd0619c992c4180eb8
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.2.1-alpha.1", + "version": "3.2.1-alpha.2", "main": "dist/index.js", "files": [ "dist", @@ -89,7 +89,7 @@ "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.1.1-alpha.0", + "@walmart/wmconnect-mini-app": "3.1.1-alpha.1", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6346,7 +6346,7 @@ __metadata: "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.1.1-alpha.0" + "@walmart/wmconnect-mini-app": "npm:3.1.1-alpha.1" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6429,9 +6429,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.1.1-alpha.0": - version: 3.1.1-alpha.0 - resolution: "@walmart/wmconnect-mini-app@npm:3.1.1-alpha.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.1.1-alpha.0.tgz" +"@walmart/wmconnect-mini-app@npm:3.1.1-alpha.1": + version: 3.1.1-alpha.1 + resolution: "@walmart/wmconnect-mini-app@npm:3.1.1-alpha.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.1.1-alpha.1.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6442,7 +6442,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/6bcdbe8031f2b1b43262741ad10d138faa20bc3a666ead35d3474b9aa166703b2bd03bb7526ac9b8352f920592d0121507a8dfd4ceb66b43ef3f0ab935e559f5 + checksum: 10c0/5619f33707641ef190a21e2de81c7a958cdac075e1fd66445ec7055be8f9750078fbd4992858537316444756c00bdfaf677b38a93c7c3e8fbc58ac13867de338 languageName: node linkType: hard
chore(ui): update roster and wmconnect version
chore(ui): update roster and wmconnect version
0d20d8182ded6ce04e2a9fa7fce99ac6afa6dd3c
--- package.json @@ -90,8 +90,8 @@ "@walmart/ask-sam-mini-app": "1.32.21", "@walmart/associate-listening-mini-app": "1.2.37", "@walmart/attendance-mini-app": "3.174.2", - "@walmart/avp-feature-app": "0.16.25", - "@walmart/avp-shared-library": "0.10.14", + "@walmart/avp-feature-app": "0.25.32", + "@walmart/avp-shared-library": "0.25.28", "@walmart/backroom-mini-app": "1.13.3", "@walmart/calling-mini-app": "0.7.64", "@walmart/checkout-mini-app": "4.15.0", @@ -131,7 +131,7 @@ "@walmart/onewalmart-miniapp": "1.0.27", "@walmart/online-w4-mini-app": "0.8.1", "@walmart/pay-stub-miniapp": "0.24.11", - "@walmart/payrollsolution_miniapp": "0.150.2", + "@walmart/payrollsolution_miniapp": "0.151.9", "@walmart/persona-hub": "0.3.3", "@walmart/price-changes-mini-app": "1.13.5", "@walmart/profile-feature-app": "2.8.1-UPV2MyWalmart.6", --- yarn.lock @@ -7775,9 +7775,9 @@ __metadata: languageName: node linkType: hard -"@walmart/avp-feature-app@npm:0.16.25": - version: 0.16.25 - resolution: "@walmart/avp-feature-app@npm:0.16.25::__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.25.tgz" +"@walmart/avp-feature-app@npm:0.25.32": + version: 0.25.32 + resolution: "@walmart/avp-feature-app@npm:0.25.32" peerDependencies: "@react-navigation/native": ">=6.0.8" "@react-navigation/stack": ">=6.1.1" @@ -7786,13 +7786,13 @@ __metadata: react-native: ">=0.72.10" react-redux: ">=8.0.4" redux: ">=4.2.1" - checksum: 10c0/c18d75500d32e4b4ebe37637f376dd7584bb8da7f04cef081599f8607f7b387e783e5fe73e2dcdae819116883e5ec55ba3db75248339226d47a7fe3e0adb9112 + checksum: 10c0/a645838292aa7291811fcf59df35478a7a4de184689e0fbd67780fe93f423ce13a7c3355ad6561fda72e23cff7b22edb6e88f8c83c42e5514fbe57a7b37d9b01 languageName: node linkType: hard -"@walmart/avp-shared-library@npm:0.10.14": - version: 0.10.14 - resolution: "@walmart/avp-shared-library@npm:0.10.14" +"@walmart/avp-shared-library@npm:0.25.28": + version: 0.25.28 + resolution: "@walmart/avp-shared-library@npm:0.25.28" peerDependencies: axios: ^1.3.4 immer: ^9.0.16 @@ -7802,7 +7802,7 @@ __metadata: redux-saga: ^1.1.3 reduxsauce: ^1.2.0 reselect: ^4.1.7 - checksum: 10c0/04e06b7c31b1e91428e65e8df8f4bf28e76c2d25423913a6ccf12cc904394291a97712e722733216d9ce7613797b1e6c97f773c32a3ed60d642388d09debf994 + checksum: 10c0/9f607eb01410909c3795c7116fdb2a093d98db650b18f0b7942041f1a238f91229e82a912620703ee2b9ae5f8dd088a8ac4032bf354d1e0a841ef73a504f95f3 languageName: node linkType: hard @@ -8642,8 +8642,8 @@ __metadata: "@walmart/ask-sam-mini-app": "npm:1.32.21" "@walmart/associate-listening-mini-app": "npm:1.2.37" "@walmart/attendance-mini-app": "npm:3.174.2" - "@walmart/avp-feature-app": "npm:0.16.25" - "@walmart/avp-shared-library": "npm:0.10.14" + "@walmart/avp-feature-app": "npm:0.25.32" + "@walmart/avp-shared-library": "npm:0.25.28" "@walmart/backroom-mini-app": "npm:1.13.3" "@walmart/calling-mini-app": "npm:0.7.64" "@walmart/checkout-mini-app": "npm:4.15.0" @@ -8683,7 +8683,7 @@ __metadata: "@walmart/onewalmart-miniapp": "npm:1.0.27" "@walmart/online-w4-mini-app": "npm:0.8.1" "@walmart/pay-stub-miniapp": "npm:0.24.11" - "@walmart/payrollsolution_miniapp": "npm:0.150.2" + "@walmart/payrollsolution_miniapp": "npm:0.151.9" "@walmart/persona-hub": "npm:0.3.3" "@walmart/price-changes-mini-app": "npm:1.13.5" "@walmart/profile-feature-app": "npm:2.8.1-UPV2MyWalmart.6" @@ -9072,12 +9072,12 @@ __metadata: languageName: node linkType: hard -"@walmart/payrollsolution_miniapp@npm:0.150.2": - version: 0.150.2 - resolution: "@walmart/payrollsolution_miniapp@npm:0.150.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.150.2.tgz" +"@walmart/payrollsolution_miniapp@npm:0.151.9": + version: 0.151.9 + resolution: "@walmart/payrollsolution_miniapp@npm:0.151.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.151.9.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/9375f1a40bb9569c84588bdcd83ac21aea441646fe311044edd18fcdc1ad80f966d80ceb687afeaade634d3b19588e2eabb0709934094a21e00cf91833435573 + checksum: 10c0/8f6b477044adf4c6c65282e8f247dec6ac9081c58df994cc5354677bba805d42884c85984b84d1cfd75736c2445dc71a563913ec4aba1c000411921055a00f0a languageName: node linkType: hard
feat(direct deposit): One splash screen & Ny pay card (#4621)
feat(direct deposit): One splash screen & Ny pay card (#4621) * bump version for payroll app * feat: bump version * feat: bump version * feat(onesplash): Enabled OneSplash * feat: bump version * feat: bump version --------- Co-authored-by: Mounish kumar Venkateskumar - m0v067c <Mounish.Kumar.Venkateskumar@walmart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
9a48dec7bbd9a1b6269da1ea40fd6de71da7655d
--- android/app/build.gradle @@ -153,8 +153,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 882 - versionName "1.6.5" + versionCode 883 + versionName "1.6.6" } splits { abi { --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.6.5</string> + <string>1.6.6</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -36,7 +36,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>882</string> + <string>883</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.6.5", + "version": "1.6.6", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.6.5", + "version": "1.6.6", "private": true, "scripts": { "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
version bump
version bump
22906acfc1da9f4c97af3f9cbdf3d91d313cb7a7
--- package-lock.json @@ -45,7 +45,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.26", + "@walmart/facilities-management-miniapp": "0.5.36", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6", @@ -4948,9 +4948,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.5.26", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.26.tgz", - "integrity": "sha512-0JMTSSuNBAS9CtUd+ydc2Z5X++w6jlW3GEIwLqxHBwn35mPy4SA9eMx1CfdaYC49RNX/BQ4gVWJGNGfnnx6Mfw==", + "version": "0.5.36", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.36.tgz", + "integrity": "sha512-p5m5YmsrIZn116EQH+LCicHndhru5mmx0T435XnOsaaCD77Fc3U7/K8jgP/KQkbtmG/EmjhBHFkr0dCIh18V0w==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25014,9 +25014,9 @@ "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.26", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.26.tgz", - "integrity": "sha512-0JMTSSuNBAS9CtUd+ydc2Z5X++w6jlW3GEIwLqxHBwn35mPy4SA9eMx1CfdaYC49RNX/BQ4gVWJGNGfnnx6Mfw==" + "version": "0.5.36", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.36.tgz", + "integrity": "sha512-p5m5YmsrIZn116EQH+LCicHndhru5mmx0T435XnOsaaCD77Fc3U7/K8jgP/KQkbtmG/EmjhBHFkr0dCIh18V0w==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.10", --- package.json @@ -87,7 +87,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.26", + "@walmart/facilities-management-miniapp": "0.5.36", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6", @@ -121,7 +121,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", - "@walmart/taskit-mini-app": "0.49.12", + "@walmart/taskit-mini-app": "0.49.12", "@walmart/time-clock-mini-app": "2.25.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.76.0",
feature/FixIT-Drop9-bugfix
feature/FixIT-Drop9-bugfix
786e8b6d44f41b4eb38efb2bb2d3ce40c76c09b4
--- core/src/navigation/USHallway/AssociateHallwayNav/SideMenuContent.tsx @@ -120,7 +120,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( return; } } - console.log('$$$$$$ Route Name ', route, params); + setImmediate(() => // Look to rename mapping for new route name, if none found, use route name navigation.navigate(SCREEN_RENAME_MAP[route] || route, {
"rebasing" Checkout phase 5 changes
"rebasing" Checkout phase 5 changes
87d1e774116a2dab6b7dfcf8f5887fe8e7c4f560
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/gta-react-native-calendars": "0.1.0", "@walmart/gtp-shared-components": "2.0.10", "@walmart/impersonation-mini-app": "1.20.6", - "@walmart/ims-print-services-ui": "2.7.4", + "@walmart/ims-print-services-ui": "2.7.3", "@walmart/inbox-mini-app": "0.88.9", "@walmart/iteminfo-mini-app": "7.6.3", "@walmart/manager-approvals-miniapp": "0.2.4", @@ -8501,9 +8501,9 @@ } }, "node_modules/@walmart/ims-print-services-ui": { - "version": "2.7.4", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.4.tgz", - "integrity": "sha512-OygtObnpPMgwPpn37CFEYfaIoGkL6oCcr20Ye2g6CuJPICG/OeF+F+KjJApPnwr8JwmoyP8EhrbWrGE502aU3w==", + "version": "2.7.3", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.3.tgz", + "integrity": "sha512-wZIf4S2Vh4IHOXocsDZFeGJbPSyhyN2SpdbTzRjFNsWj94us4TnOXAM04oy/nrX3lUcrKR2CN3WupwhfqZ42PQ==", "peerDependencies": { "@react-native-firebase/analytics": ">=10.5.1", "@react-native-firebase/app": ">=10.5.0", @@ -34353,9 +34353,9 @@ "integrity": "sha512-5qaxHHlwLNsI2QOghCAlp1FS3sE0bdJ9DOswgEClQgRdZwFTZTY1F1qWkLmWVdnZm3/k7BTE3RT/Ltfy0rbfxg==" }, "@walmart/ims-print-services-ui": { - "version": "2.7.4", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.4.tgz", - "integrity": "sha512-OygtObnpPMgwPpn37CFEYfaIoGkL6oCcr20Ye2g6CuJPICG/OeF+F+KjJApPnwr8JwmoyP8EhrbWrGE502aU3w==" + "version": "2.7.3", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.7.3.tgz", + "integrity": "sha512-wZIf4S2Vh4IHOXocsDZFeGJbPSyhyN2SpdbTzRjFNsWj94us4TnOXAM04oy/nrX3lUcrKR2CN3WupwhfqZ42PQ==" }, "@walmart/inbox-mini-app": { "version": "0.88.9", --- package.json @@ -99,7 +99,7 @@ "@walmart/gta-react-native-calendars": "0.1.0", "@walmart/gtp-shared-components": "2.0.10", "@walmart/impersonation-mini-app": "1.20.6", - "@walmart/ims-print-services-ui": "2.7.4", + "@walmart/ims-print-services-ui": "2.7.3", "@walmart/inbox-mini-app": "0.88.9", "@walmart/iteminfo-mini-app": "7.6.3", "@walmart/manager-approvals-miniapp": "0.2.4",
Revert "Bump print UI version to 2.7.4"
Revert "Bump print UI version to 2.7.4" This reverts commit 0d7cea443cff0731ff788cf291a28fbba874517c.
61460ba1da53eb49366a3f55f3397b8ac294253f
--- core/__tests__/__mocks__/@walmart/store-feature-orders.js @@ -1,4 +1,6 @@ module.exports = { - StoreFeatureOrdersMiniApp: 'StoreFeatureOrdersMiniApp', - StoreFeatureOrderHistoryMiniApp: 'StoreFeatureOrderHistoryMiniApp', + buildAllScreens: () => { + StoreFeatureOrdersMiniApp: 'StoreFeatureOrdersMiniApp' + StoreFeatureOrderHistoryMiniApp: 'StoreFeatureOrderHistoryMiniApp' + } }; --- core/src/manifest.ts @@ -76,6 +76,7 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('@walmart/mod-flex-mini-app').default, require('@walmart/shelfavailability-mini-app').default, require('@walmart/rfid-scan-mini-app').default, + require('@walmart/store-feature-orders').default, ); } --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -55,10 +55,7 @@ import RfidScanFeature from '@walmart/rfid-scan-mini-app'; import ReceivingRootApp from '@walmart/rn-receiving-mini-app'; import ShelfAvailabilityFeature from '@walmart/shelfavailability-mini-app'; import {GNFRApp} from '@walmart/shop-gnfr-mini-app'; -import { - StoreFeatureOrdersMiniApp, - StoreFeatureOrderHistoryMiniApp, -} from '@walmart/store-feature-orders'; +import StoreFeatureOrder from '@walmart/store-feature-orders'; import {TaskItQuickActions, AlarmDetailNav} from '@walmart/taskit-mini-app'; import {TopstockMiniApp} from '@walmart/topstock-mini-app'; import {WmPlusMiniApp} from '@walmart/wm-plus-mini-app'; @@ -99,24 +96,6 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [ }, clockCheckEnabled: true, }, - { - featureId: MINI_APPS.FEATURES_LANDING, - name: 'StoreFeatureOrders', - component: StoreFeatureOrdersMiniApp, - options: { - headerShown: false, - }, - clockCheckEnabled: true, - }, - { - featureId: MINI_APPS.FEATURES_LANDING, - name: 'StoreFeatureOrderHistory', - component: StoreFeatureOrderHistoryMiniApp, - options: { - headerShown: false, - }, - clockCheckEnabled: true, - }, { featureId: MINI_APPS.TOPSTOCK, name: 'Topstock', @@ -610,6 +589,9 @@ export const MainStackNav = () => { {RfidScanFeature.buildAllScreens({ Navigator: MainStack as any, })} + {StoreFeatureOrder.buildAllScreens({ + Navigator: MainStack as any, + })} </MainStack.Navigator> </> ); --- targets/US/package.json @@ -148,7 +148,7 @@ "@walmart/shelfavailability-mini-app": "1.5.41", "@walmart/shop-gnfr-mini-app": "1.0.137", "@walmart/sidekick-mini-app": "4.168.19", - "@walmart/store-feature-orders": "1.27.9", + "@walmart/store-feature-orders": "1.28.3", "@walmart/taskit-mini-app": "5.8.17", "@walmart/time-clock-mini-app": "2.448.1", "@walmart/topstock-mini-app": "1.20.4", --- yarn.lock @@ -7351,7 +7351,7 @@ __metadata: "@walmart/shelfavailability-mini-app": "npm:1.5.41" "@walmart/shop-gnfr-mini-app": "npm:1.0.137" "@walmart/sidekick-mini-app": "npm:4.168.19" - "@walmart/store-feature-orders": "npm:1.27.9" + "@walmart/store-feature-orders": "npm:1.28.3" "@walmart/taskit-mini-app": "npm:5.8.17" "@walmart/time-clock-mini-app": "npm:2.448.1" "@walmart/topstock-mini-app": "npm:1.20.4" @@ -8270,9 +8270,9 @@ __metadata: languageName: node linkType: hard -"@walmart/store-feature-orders@npm:1.27.9": - version: 1.27.9 - resolution: "@walmart/store-feature-orders@npm:1.27.9" +"@walmart/store-feature-orders@npm:1.28.3": + version: 1.28.3 + resolution: "@walmart/store-feature-orders@npm:1.28.3" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.1.0" @@ -8286,7 +8286,7 @@ __metadata: react-native: ">=0.73.7" redux: ^4.2.1 reduxsauce: 1.2.0 - checksum: 10c0/68d77198f0984b39fff4795e95a36eb53f5e47392c8315c62dea52daa085e9711a36857e9a24e3963c1818d31008d2fe9d4688a5fa811e4324c3f325e961edf4 + checksum: 10c0/bc1c94cdda902b26a3d426d13a75970d2689e7cc26ec6661fad8832d14abb84e99a5e8e239647762af66ac977f0e87ee797345242143792a5d64f761f8da7a9b languageName: node linkType: hard
DROP28 release request to develop
DROP28 release request to develop
712457ced66c4669b3f35d8b161a862d5d9bf9b8
--- core/src/core/translations.ts @@ -36,6 +36,7 @@ export const enUS = { '@walmart/roster-mini-app': 'Roster', '@walmart/schedule-mini-app': 'Schedules', '@walmart/shelfavailability-mini-app': 'Shelf Availability', + '@walmart/shop-gnfr-mini-app': 'Shop GNFR', '@walmart/sidekick-mini-app': 'Sidekick', '@walmart/store-feature-orders': 'Store Feature Orders', '@walmart/taskit-mini-app': 'Notes', @@ -44,7 +45,6 @@ export const enUS = { '@walmart/welcomeme-mini-app': 'Welcome Me', '@walmart/wm-plus-mini-app': 'Walmart Plus', '@walmart/wmconnect-mini-app': 'WM Connect', - '@walmart/shop-gnfr-mini-app': 'Shop GNFR', core: 'Me@Walmart', 'react-native-ssmp-sso-allspark': 'Single Sign On', }, @@ -269,6 +269,7 @@ export const esMX = { '@walmart/roster-mini-app': 'Roster', '@walmart/schedule-mini-app': 'Schedules', '@walmart/shelfavailability-mini-app': 'Shelf Availability', + '@walmart/shop-gnfr-mini-app': 'Comprar GNFR', '@walmart/sidekick-mini-app': 'Sidekick', '@walmart/store-feature-orders': 'Store Feature Orders', '@walmart/taskit-mini-app': 'Notas', @@ -277,7 +278,6 @@ export const esMX = { '@walmart/welcomeme-mini-app': 'Welcome Me', '@walmart/wm-plus-mini-app': 'Walmart Plus', '@walmart/wmconnect-mini-app': 'WM Connect', - '@walmart/shop-gnfr-mini-app': 'Shop GNFR', core: 'Me@Walmart', 'react-native-ssmp-sso-allspark': 'Single Sign On', }, --- targets/US/src/versions.ts @@ -51,7 +51,7 @@ export const LISTED_DEPENDENCIES = [ '@walmart/welcomeme-mini-app', '@walmart/wm-plus-mini-app', '@walmart/wmconnect-mini-app', - '@walmart/shop-gnfr-mini-app' + '@walmart/shop-gnfr-mini-app', ]; export const shouldBeListed = (name: string) =>
lint issue fix
lint issue fix
f03f0ab8cec2c9024ba9c540de2fbeb44ed9a5f5
--- .looper.yml @@ -11,10 +11,10 @@ flows: - call: pr - yarn run build - npm publish - - sonar("Sonar"): - - (name Sonar Scanner) sonar-scanner -Dproject.settings=sonar-project.properties - - (name Publish Hygieia to Sonar) hygieia.publishSonar() - - (name Hygieia Publish Build) hygieia.publishBuild() + # - sonar("Sonar"): + # - (name Sonar Scanner) sonar-scanner -Dproject.settings=sonar-project.properties + # - (name Publish Hygieia to Sonar) hygieia.publishSonar() + # - (name Hygieia Publish Build) hygieia.publishBuild() pr: - (name Corepack enable) corepack enable @@ -22,4 +22,4 @@ flows: - (name Yarn Version) yarn --version - yarn install - yarn run lint - - yarn run coverage \ No newline at end of file + - yarn run coverage --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.8.3", + "version": "2.8.3-alpha.1", "main": "dist/index.js", "files": [ "dist"
feat(ci): update version to publish
feat(ci): update version to publish
b3c72d8d8d78a33d2446482f2dc5eafb0c9fd9dc
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -224,14 +224,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects component="FeatureRestrictionsScreen" name="Core.FeatureRestrictions" /> - <Screen - name="Settings.SideButton" - options={ - { - "title": "navigation.settings.sideKey", - } - } - /> <Screen component="MetricsOutScansTabNavigation" name="metrics.outScansDrilldown" @@ -592,14 +584,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects component="FeatureRestrictionsScreen" name="Core.FeatureRestrictions" /> - <Screen - name="Settings.SideButton" - options={ - { - "title": "navigation.settings.sideKey", - } - } - /> <Screen component="MetricsOutScansTabNavigation" name="metrics.outScansDrilldown" --- __tests__/settings/sideButton/SideButtonSettingsTest.tsx @@ -11,7 +11,7 @@ jest.spyOn(AllsparkUtils, 'useAppStateEffect').mockImplementation(jest.fn()); (KeyEvent.isAppOnTopPermissionGranted as jest.Mock).mockResolvedValue(false); (AsyncStorage.getItem as jest.Mock).mockReturnValue(Promise.resolve(null)); -describe('SideButtonSettings tests', () => { +xdescribe('SideButtonSettings tests', () => { beforeEach(jest.clearAllMocks); it('matches snapshot', () => {
skipping failing tests for now
skipping failing tests for now
033792ae354aa732f136d68dafffaf7727a1c9ea
--- packages/celebration-mini-app-graphql/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.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 + +- **ui:** update loggers for celebration mini app ([4d7b3eb](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/4d7b3eb17fdab11c261e53df7b858306d0c8b304)) + # 1.1.0 (2025-08-30) ### Features --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.1.0", + "version": "1.2.0", "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.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 + +- **ui:** update loggers for celebration mini app ([4d7b3eb](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/4d7b3eb17fdab11c261e53df7b858306d0c8b304)) + # 1.1.0 (2025-08-30) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.1.0", + "version": "1.2.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.2.0 - @walmart/celebration-mini-app-graphql@1.2.0
4a1b2b8ce295529c5cf2c98be7c72e244980b6c2
--- packages/allspark-foundation/package.json @@ -124,9 +124,6 @@ "@walmart/react-native-scanner-3.0": ">=0.6.3", "@walmart/react-native-shared-navigation": ">=6.3", "@walmart/react-native-sumo-sdk": "^2.7.0", - "@walmart/react-native-wm-network": ">=6.3", - "@walmart/react-native-wm-notification": ">=6.3", - "@walmart/react-native-wm-telemetry": ">=6.3", "@walmart/redux-store": ">=6.3", "react": "*", "react-native": "*", @@ -157,15 +154,6 @@ "@walmart/react-native-shared-navigation": { "optional": true }, - "@walmart/react-native-wm-network": { - "optional": true - }, - "@walmart/react-native-wm-notification": { - "optional": true - }, - "@walmart/react-native-wm-telemetry": { - "optional": true - }, "@walmart/redux-store": { "optional": true } --- yarn.lock @@ -8396,9 +8396,6 @@ __metadata: "@walmart/react-native-scanner-3.0": ">=0.6.3" "@walmart/react-native-shared-navigation": ">=6.3" "@walmart/react-native-sumo-sdk": ^2.7.0 - "@walmart/react-native-wm-network": ">=6.3" - "@walmart/react-native-wm-notification": ">=6.3" - "@walmart/react-native-wm-telemetry": ">=6.3" "@walmart/redux-store": ">=6.3" react: "*" react-native: "*" @@ -8421,12 +8418,6 @@ __metadata: optional: true "@walmart/react-native-shared-navigation": optional: true - "@walmart/react-native-wm-network": - optional: true - "@walmart/react-native-wm-notification": - optional: true - "@walmart/react-native-wm-telemetry": - optional: true "@walmart/redux-store": optional: true bin:
chore(ui): ALLSPARK-6252 deprecate libraries (#295)
chore(ui): ALLSPARK-6252 deprecate libraries (#295) * chore(ui): ALLSPARK-6252 deprecate libraries * chore: trigger build
dd477ba924ba4c9313c79f433134d87d331b3455
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Hub/SiteHubDashboard.tsx @@ -39,7 +39,6 @@ import { AllsparkLocalStorage, } from '@walmart/allspark-foundation'; import { POPOVER_KEY } from '../constant'; -// import { teamSwitcherEnabled } from '../Redux'; export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { const { showOnboarding, hideOnboardingFlow } = useOnboardingContext(); --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -22,11 +22,6 @@ import { ManagerExperienceCreators } from '../../../Store/Redux/actions'; import { useDispatch } from 'react-redux'; import { useSelector } from 'react-redux'; import { hubHeaderEnabled } from '../../Redux'; -import { - LoggerService, - useTelemetryService, -} from '@walmart/allspark-foundation'; -import { useOnboardingContext } from './OnboardingContext'; export const OnboardingScreen = () => { const { t } = useAllsparkTranslation(FEATURE_ID);
feat(ui): added logic for onboarding skip and popover
feat(ui): added logic for onboarding skip and popover