commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
0abc4bc02ed2bd2573269de8f419331307c65b4f
--- ReactotronConfig.d.ts @@ -0,0 +1,8 @@ +export default reactotron; +declare const reactotron: import("reactotron-react-native").ReactotronReactNative & { + createEnhancer: (skipSettingStore?: boolean | undefined) => (createStore: any) => (reducer: any, ...args: any[]) => any; + setReduxStore: (store: any) => void; + reportReduxAction: (action: { + type: any; + }, ms: number, important?: boolean | undefined) => void; +}; --- tsconfig.json @@ -65,6 +65,7 @@ "graphql.config.js", "allspark.config.js", "react-native.config.js", + "ReactotronConfig.js", "index.js", "container", "__tests__",
fix(ui): update the tsconfig to exclude reactotron
fix(ui): update the tsconfig to exclude reactotron
def9cf86bfb283b2ff922e991f960d2ec76f6414
--- src/redux/reducer.tsx @@ -17,6 +17,7 @@ export const textingSlice = createSlice({ isReceivingPTT: false, unreadChannelsCount: 0, unreadMessagesCount: 0, + searchText: '', }, reducers: { UPDATE_SAS_TOKEN: (state, action: PayloadAction<string>) => { @@ -37,6 +38,9 @@ export const textingSlice = createSlice({ UPDATE_UNREAD_MESSAGES_COUNT: (state, action: PayloadAction<number>) => { state.unreadMessagesCount = action.payload; }, + SET_SEARCH_TEXT: (state, action: PayloadAction<string>) => { + state.searchText = action.payload; + }, }, extraReducers: (builder) => { builder.addCase(setBlobContainer.fulfilled, (state, action) => { --- src/redux/selectors.ts @@ -44,6 +44,11 @@ export const getUploadingBlob = createSelector( (state) => state?.uploadingBlob, ); +export const getSearchText = createSelector( + [getTextingState], + (state) => state.searchText, +); + export type Permissions = { rn: string; a: string; --- src/screens/SearchScreen.tsx @@ -39,6 +39,8 @@ import {associateDisplayName} from '../utils'; import {LOCAL_STORAGE_KEY_PREFIX} from '../constants'; import {logger} from '../logger/Logger'; import {renderAssociateRosterItem} from '../components'; +import {useDispatch} from 'react-redux'; +import {textingSlice} from '../redux/reducer'; const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`; @@ -118,6 +120,7 @@ const SearchHeaderBase = (props: StackHeaderProps) => { const [searchInput, setSearchInput] = useState(''); const {top} = useSafeAreaInsets(); const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const dispatch = useDispatch(); useEffect(() => { navigation.setParams({ @@ -127,6 +130,7 @@ const SearchHeaderBase = (props: StackHeaderProps) => { const updateSearchInput = (value: string) => { setSearchInput(value); + dispatch(textingSlice.actions.SET_SEARCH_TEXT(value)); }; return ( @@ -192,6 +196,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => { const {route} = props; const {searchInput} = route?.params; const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const dispatch = useDispatch(); const {data} = useDailyRoster(); const allAssociates = (data?.getDailyRoster || []) as Associate[]; @@ -252,6 +257,10 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => { AsyncStorage.removeItem(RECENT_SEARCH_HISTORY_KEY); }; + const associateLinkHandler = (title: string) => { + dispatch(textingSlice.actions.SET_SEARCH_TEXT(title)); + }; + const Item = ({title}: any) => ( <View style={styles.item}> <IconButton @@ -261,8 +270,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => { /> <TouchableOpacity testID='pressTextLink' - style={styles.clearSearch} - onPress={() => console.log('Recent search pressed!')}> + onPress={() => associateLinkHandler(title)}> <Text style={styles.itemText}>{title}</Text> </TouchableOpacity> </View> --- src/redux/reducer.tsx @@ -17,6 +17,7 @@ export const textingSlice = createSlice({ isReceivingPTT: false, unreadChannelsCount: 0, unreadMessagesCount: 0, + searchText: '', }, reducers: { UPDATE_SAS_TOKEN: (state, action: PayloadAction<string>) => { @@ -37,6 +38,9 @@ export const textingSlice = createSlice({ UPDATE_UNREAD_MESSAGES_COUNT: (state, action: PayloadAction<number>) => { state.unreadMessagesCount = action.payload; }, + SET_SEARCH_TEXT: (state, action: PayloadAction<string>) => { + state.searchText = action.payload; + }, }, extraReducers: (builder) => { builder.addCase(setBlobContainer.fulfilled, (state, action) => { --- src/redux/selectors.ts @@ -44,6 +44,11 @@ export const getUploadingBlob = createSelector( (state) => state?.uploadingBlob, ); +export const getSearchText = createSelector( + [getTextingState], + (state) => state.searchText, +); + export type Permissions = { rn: string; a: string; --- src/screens/SearchScreen.tsx @@ -39,6 +39,8 @@ import {associateDisplayName} from '../utils'; import {LOCAL_STORAGE_KEY_PREFIX} from '../constants'; import {logger} from '../logger/Logger'; import {renderAssociateRosterItem} from '../components'; +import {useDispatch} from 'react-redux'; +import {textingSlice} from '../redux/reducer'; const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`; @@ -118,6 +120,7 @@ const SearchHeaderBase = (props: StackHeaderProps) => { const [searchInput, setSearchInput] = useState(''); const {top} = useSafeAreaInsets(); const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const dispatch = useDispatch(); useEffect(() => { navigation.setParams({ @@ -127,6 +130,7 @@ const SearchHeaderBase = (props: StackHeaderProps) => { const updateSearchInput = (value: string) => { setSearchInput(value); + dispatch(textingSlice.actions.SET_SEARCH_TEXT(value)); }; return ( @@ -192,6 +196,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => { const {route} = props; const {searchInput} = route?.params; const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const dispatch = useDispatch(); const {data} = useDailyRoster(); const allAssociates = (data?.getDailyRoster || []) as Associate[]; @@ -252,6 +257,10 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => { AsyncStorage.removeItem(RECENT_SEARCH_HISTORY_KEY); }; + const associateLinkHandler = (title: string) => { + dispatch(textingSlice.actions.SET_SEARCH_TEXT(title)); + }; + const Item = ({title}: any) => ( <View style={styles.item}> <IconButton @@ -261,8 +270,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => { /> <TouchableOpacity testID='pressTextLink' - style={styles.clearSearch} - onPress={() => console.log('Recent search pressed!')}> + onPress={() => associateLinkHandler(title)}> <Text style={styles.itemText}>{title}</Text> </TouchableOpacity> </View>
addition of selectors for search text
addition of selectors for search text
6b8efc49c49c889b3d8ad18c3945725af9c24da9
--- src/notification.ts @@ -11,7 +11,7 @@ export const backgroundPushNotificationHandler = (event?: SumoPushEvent) => { //TODO: Remove these two lines when API is ready to pass audio field const mockRemoteURL = '/directedvoice/ptt/v1/azure/us-100/recording-dbdc6908-9af0-453c-b8ac-1309f7e1a314.m4a'; - // event.customData.audio = mockRemoteURL; + event.customData.audio = mockRemoteURL; if (isValidFileURI(event.customData.audio)) { console.log('fetching resource in order to play sound for background...'); PushNotificationApi.playAudioMessageOrCatch(event.customData.audio); @@ -32,7 +32,7 @@ export const foregroundPushNotificationHandler = (event?: SumoPushEvent) => { if (event?.customData?.category === 'pushtotalkv2') { const mockRemoteURL = '/directedvoice/ptt/v1/azure/us-100/recording-dbdc6908-9af0-453c-b8ac-1309f7e1a314.m4a'; - // event.customData.audio = mockRemoteURL; + event.customData.audio = mockRemoteURL; } console.log( --- src/notification.ts @@ -11,7 +11,7 @@ export const backgroundPushNotificationHandler = (event?: SumoPushEvent) => { //TODO: Remove these two lines when API is ready to pass audio field const mockRemoteURL = '/directedvoice/ptt/v1/azure/us-100/recording-dbdc6908-9af0-453c-b8ac-1309f7e1a314.m4a'; - // event.customData.audio = mockRemoteURL; + event.customData.audio = mockRemoteURL; if (isValidFileURI(event.customData.audio)) { console.log('fetching resource in order to play sound for background...'); PushNotificationApi.playAudioMessageOrCatch(event.customData.audio); @@ -32,7 +32,7 @@ export const foregroundPushNotificationHandler = (event?: SumoPushEvent) => { if (event?.customData?.category === 'pushtotalkv2') { const mockRemoteURL = '/directedvoice/ptt/v1/azure/us-100/recording-dbdc6908-9af0-453c-b8ac-1309f7e1a314.m4a'; - // event.customData.audio = mockRemoteURL; + event.customData.audio = mockRemoteURL; } console.log(
working audio and text message push notifications
working audio and text message push notifications
60ed1ed1897bb9a8d03e4cc59f7a5b2e4cd6cf30
--- package-lock.json @@ -82,7 +82,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.10.0", + "@walmart/time-clock-mini-app": "2.11.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26", @@ -6120,9 +6120,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.10.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.10.0.tgz", - "integrity": "sha512-YiF9GwKZBR+Yw2OSEYlPqJlylJ0Bk+WEqg6PvTtYRenhOeXXa7tGpRb5IDquwaCd1DkEYcINXfT3sKxTN7Z7Eg==", + "version": "2.11.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.11.0.tgz", + "integrity": "sha512-rUEAXNo8viLXJyclnn/2uk7d/S4rozAFb8k6Wkt4r23xVACx5olHsX+TCLys5LBx792s0f57//8D7GihZ9QM9A==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -25663,9 +25663,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.10.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.10.0.tgz", - "integrity": "sha512-YiF9GwKZBR+Yw2OSEYlPqJlylJ0Bk+WEqg6PvTtYRenhOeXXa7tGpRb5IDquwaCd1DkEYcINXfT3sKxTN7Z7Eg==", + "version": "2.11.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.11.0.tgz", + "integrity": "sha512-rUEAXNo8viLXJyclnn/2uk7d/S4rozAFb8k6Wkt4r23xVACx5olHsX+TCLys5LBx792s0f57//8D7GihZ9QM9A==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -124,7 +124,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.2", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.10.0", + "@walmart/time-clock-mini-app": "2.11.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26",
Updated time clock to 2.11.0
Updated time clock to 2.11.0
96c43d477526324051f11eb472b518706e8f4a28
--- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.2.1", + "version": "1.2.0", "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",
Update package.json to 1.2.0
Update package.json to 1.2.0
4ca6ba1b9861af9b82bcf71a26dc39fbeb0fd05e
--- graphql.yml @@ -12,7 +12,7 @@ applications: - name: "stg" persistedQueries: - name: "businessUnitByCountryAndNumber" - hash: "bfdbc7593742ef521e903505a26748f8f08b3f5ce28f65698946de494b6c7918" + hash: "dc5adc0197a2bfd29b0ecc4ec5a255f44f8e0700a8a6916a834ec745574ab54d" queryTemplate: "packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.graphql" tags: - "v1" @@ -59,7 +59,7 @@ applications: - name: "prod" persistedQueries: - name: "businessUnitByCountryAndNumber" - hash: "bfdbc7593742ef521e903505a26748f8f08b3f5ce28f65698946de494b6c7918" + hash: "dc5adc0197a2bfd29b0ecc4ec5a255f44f8e0700a8a6916a834ec745574ab54d" queryTemplate: "packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.graphql" tags: - "v1" --- packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.graphql @@ -242,8 +242,10 @@ query businessUnitByCountryAndNumber($businessUnitNbr: String!, $countryCode: St rawOffset timeZoneCode timeZoneCode + timeZoneId } isDaylightSavingTimeObservable + standard } longitude timeZone { --- packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.ts @@ -228,12 +228,14 @@ export type BusinessUnitByCountryAndNumberQuery = { locationTimeZone?: { __typename: 'LocationTimeZone'; isDaylightSavingTimeObservable?: boolean | null; + standard?: string | null; daylightSavingTimeZone?: { __typename: 'DaylightSavingTimeZone'; daylightSavingTimeOffset?: any | null; name?: string | null; rawOffset?: number | null; timeZoneCode?: string | null; + timeZoneId?: string | null; } | null; } | null; timeZone?: { @@ -494,8 +496,10 @@ export const BusinessUnitByCountryAndNumberDocument = gql` rawOffset timeZoneCode timeZoneCode + timeZoneId } isDaylightSavingTimeObservable + standard } longitude timeZone {
feat(query): adding timezone id and standard to businessunitbycountryandnumber query
feat(query): adding timezone id and standard to businessunitbycountryandnumber query
63c2a4cd0dbe9c67e38cc587152776d242f8d9c0
--- package-lock.json @@ -84,7 +84,7 @@ "@walmart/returns-mini-app": "3.13.0", "@walmart/schedule-mini-app": "0.63.0", "@walmart/shelfavailability-mini-app": "1.5.18", - "@walmart/store-feature-orders": "1.23.0", + "@walmart/store-feature-orders": "1.24.0", "@walmart/taskit-mini-app": "2.49.7", "@walmart/texting-mini-app": "2.1.3", "@walmart/time-clock-mini-app": "2.175.2", --- package.json @@ -125,7 +125,7 @@ "@walmart/returns-mini-app": "3.13.0", "@walmart/schedule-mini-app": "0.63.0", "@walmart/shelfavailability-mini-app": "1.5.18", - "@walmart/store-feature-orders": "1.23.0", + "@walmart/store-feature-orders": "1.24.0", "@walmart/taskit-mini-app": "2.49.7", "@walmart/texting-mini-app": "2.1.3", "@walmart/time-clock-mini-app": "2.175.2",
calander issue fix
calander issue fix
d02b7e7e3a551a27f151fdad0e60f7ab9ab89c04
--- android/app/build.gradle @@ -96,8 +96,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 924 - versionName "1.18.11" + versionCode 925 + versionName "1.18.12" } signingConfigs { --- ios/AllSpark/Info.plist @@ -21,7 +21,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.18.11</string> + <string>1.18.12</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -44,7 +44,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>924</string> + <string>925</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.18.11", + "version": "1.18.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.18.11", + "version": "1.18.12", "hasInstallScript": true, "dependencies": { "@firebase/firestore-types": "^2.5.1", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.18.11", + "version": "1.18.12", "private": true, "scripts": { "android": "react-native run-android",
v1.18.12
v1.18.12
c0c240936e0ec8fc28c9913320cafadd7fdee4b7
--- package.json @@ -92,7 +92,7 @@ "@walmart/inbox-mini-app": "0.40.0-inbox3.33", "@walmart/iteminfo-mini-app": "5.0.3", "@walmart/manager-approvals-miniapp": "0.0.62", - "@walmart/me-field-mini-app": "^1.1.11", + "@walmart/me-field-mini-app": "1.1.11", "@walmart/metrics-mini-app": "0.9.5", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "^0.123.2",
removed ^
removed ^
6133afae76969579a13fb9bad1b0722a1ae7b134
--- .looper.multibranch.yml @@ -587,8 +587,6 @@ flows: text: "*Looper job* ${env} #:<${BUILD_URL}|${BUILD_NUMBER}>" - type: mrkdwn text: "*Github Repo:* <${GITHUB_BRANCH_URL}|URL>" - - type: mrkdwn - text: "*Download binary:* <${fastlane-session.download_link}|Link :build:>" - type: divider # send failure message to slack
remove download binary link
remove download binary link
af889c89d1061e2aa5313279fa2772cf43733ca5
--- packages/allspark-foundation-hub/src/HubFeature/BottomSheet/BottomSheetContext.tsx @@ -0,0 +1,20 @@ +import React, { createContext, useCallback, useContext, useState } from 'react'; + +const BottomSheetContext = createContext<any>({}); + +export const useBottomSheetContext = () => useContext(BottomSheetContext); + +export const BottomSheetProvider = ({ children }: any) => { + const [isBottomSheetVisible, setIsBottomSheetVisible] = useState(false); + + const showBottomSheet = useCallback(() => setIsBottomSheetVisible(true), []); + const hideBottomSheet = useCallback(() => setIsBottomSheetVisible(false), []); + + return ( + <BottomSheetContext.Provider + value={{ isBottomSheetVisible, showBottomSheet, hideBottomSheet }} + > + {children} + </BottomSheetContext.Provider> + ); +}; --- packages/allspark-foundation-hub/src/HubFeature/BottomSheet/index.ts @@ -1,3 +1,4 @@ export * from './BottomSheet'; export * from './HubOnboardingImage/OnboardingImage'; export * from './types'; +export * from './BottomSheetContext'; --- packages/allspark-foundation-hub/src/HubFeature/BottomSheet/types.ts @@ -1,3 +1,5 @@ +import { ComponentType } from 'react'; + export type BottomSheetProps = { content: React.ReactNode; onPrimaryButtonPress: () => void; @@ -9,3 +11,7 @@ export type BottomSheetRef = { close: () => void; open: () => void; }; + +export type BottomHubContext = { + BottomSheetComponent: ComponentType<BottomSheetProps>; +}; --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -16,6 +16,7 @@ import { ManagerExperienceCreators } from '../../Redux'; import { defaultLayout } from './defaultLayout'; import { useHubConfig } from '../../Hooks/useHubConfig'; import { ClockOutGuard } from '../../ClockOut'; +import { BottomSheetProvider } from '../../BottomSheet/BottomSheetContext'; export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { name: FEATURE_NAME, @@ -88,7 +89,9 @@ export class AllsparkHubContainer { public render = (): JSX.Element => { return ( <ClockOutGuard> - <HubDashboard name={this.containerName} widgets={this.validWidgets} /> + <BottomSheetProvider> + <HubDashboard name={this.containerName} widgets={this.validWidgets} /> + </BottomSheetProvider> </ClockOutGuard> ); }; --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -27,6 +27,8 @@ import HubOnboardingImage from '../../../BottomSheet/HubOnboardingImage/Onboardi import { createDefaultWidgetPlaceholder } from '../utils'; import { isNil } from 'lodash'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; +import { useRoute } from '@react-navigation/native'; +import { useBottomSheetContext } from '../../../BottomSheet/BottomSheetContext'; export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const [teamState, setTeamState] = useState<{ @@ -84,18 +86,8 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const isUserAlreadyOnboarded = useSelector( ManagerExperienceSelectors.getUserIsAlreadyOnboarded ); - const userTeamSelectionTimeUpdated = useSelector( - ManagerExperienceSelectors.getUserTeamSelectionUpdatedTime - ); const isMutationError = userTeamOnboardingError || userTeamSelectionError; const [userOnboarded, setUserOnboarded] = useState(false); - const [teamUpdatedState, setTeamUpdatedState] = useState<{ - updatedTime: string | null; - updated: boolean; - }>({ - updatedTime: null, - updated: false, - }); const [ userOnboardingOrTeamSelectionError, setUserOnboardingOrTeamSelectionError, @@ -208,22 +200,6 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [userOnboardingComplete, userTeamOnboardingError, userTeamSelectionError]); - useEffect(() => { - setTeamUpdatedState(() => ({ - updatedTime: null, - updated: false, - })); - if ( - userTeamSelectionTimeUpdated && - userTeamSelectionTimeUpdated.length > 0 - ) { - setTeamUpdatedState((prev) => ({ - updatedTime: userTeamSelectionTimeUpdated, - updated: prev.updatedTime !== userTeamSelectionTimeUpdated, //true - })); - } - }, [userTeamSelectionTimeUpdated]); - useEffect(() => { const allowedWidgets = Object.keys(widgets).includes(teamState.teamLabel) ? widgets[teamState.teamLabel].widgets.map((widgetData: string) => { @@ -235,6 +211,17 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { : createDefaultWidgetPlaceholder(teamState.teamLabel, widgets); setAllowedWidgetsList(allowedWidgets); }, [teamState, widgets]); + + /** Bottom sheet update */ + const routeParams: any = useRoute()?.params; + const { isBottomSheetVisible, showBottomSheet } = useBottomSheetContext(); + + useEffect(() => { + if (routeParams?.teamSelectionComplete) { + showBottomSheet(); + } + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [routeParams]); const renderContent = useCallback(() => { return ( <HubOnboardingImage @@ -338,10 +325,10 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { /> )} - {(userOnboarded || teamUpdatedState.updated) && ( + {(userOnboarded || isBottomSheetVisible) && ( <BottomSheet ref={bottomSheetRef} - isVisible={true} + isVisible={isBottomSheetVisible} content={renderContent()} onPrimaryButtonPress={closeBottomSheet} primaryButtonText={t('onboardingBottomSheet.buttonText')} --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx @@ -117,7 +117,9 @@ export const TeamSelectionList = ({ Date.now().toString() ) ); - AllsparkNavigationClient.goBack(); + AllsparkNavigationClient.navigate(hubScreeName, { + teamSelectionComplete: true, + }); } else { dispatch(ManagerExperienceCreators.completeUserOnboarding()); if (hubScreeName) { --- packages/allspark-foundation-hub/src/HubFeature/translation.ts @@ -42,7 +42,13 @@ export const enUS = { teamSelected: 'team selected', teamsSelected: 'teams selected', }, - bottomSheet: { + onboardingBottomSheet: { + title: 'Start managing your teams', + description: + 'Your personalized Team and Work hubs are ready. Add or edit teams at any time.', + buttonText: 'Got it', + }, + teamsUpdatedBottomSheet: { title: 'Teams updated', description: 'You have successfully updated your teams', buttonText: 'Got it', @@ -111,7 +117,13 @@ export const esMX = { teamSelected: 'Equipo seleccionado', teamsSelected: 'Equipos seleccionados', }, - bottomSheet: { + onboardingBottomSheet: { + title: 'Empieza a gestionar tus equipos', + description: + 'Sus centros de trabajo y equipo personalizados están listos. Agregue o edite equipos en cualquier momento.', + buttonText: 'Entiendo', + }, + teamsUpdatedBottomSheet: { title: 'Equipos actualizados', description: 'Ha actualizado con éxito sus equipos', buttonText: 'Entiendo',
Update the navigation
Update the navigation
a53bb4dfd0abfd8d44aa511ee7d1b3762fbed388
--- android/app/src/main/res/values/styles.xml @@ -13,4 +13,4 @@ <item name="android:windowBackground">@drawable/background_splash</item> <item name="android:statusBarColor">@color/blue</item> </style> -</resources> +</resources> \ No newline at end of file
chore: remove blank line from android strings xml
chore: remove blank line from android strings xml
9c1754ec6a9d45faf8c1b855d50441236c526db4
--- package.json @@ -94,7 +94,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.7.4", "@walmart/redux-store": "6.3.29", - "@walmart/roster-mini-app": "2.35.0", + "@walmart/roster-mini-app": "2.36.0", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "2.35.1", "babel-jest": "^29.6.3", --- yarn.lock @@ -6591,7 +6591,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.7.4" "@walmart/redux-store": "npm:6.3.29" - "@walmart/roster-mini-app": "npm:2.35.0" + "@walmart/roster-mini-app": "npm:2.36.0" "@walmart/ui-components": "npm:1.15.1" "@walmart/wmconnect-mini-app": "npm:2.35.1" babel-jest: "npm:^29.6.3" @@ -6717,9 +6717,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.35.0": - version: 2.35.0 - resolution: "@walmart/roster-mini-app@npm:2.35.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2Froster-mini-app-2.35.0.tgz" +"@walmart/roster-mini-app@npm:2.36.0": + version: 2.36.0 + resolution: "@walmart/roster-mini-app@npm:2.36.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2Froster-mini-app-2.36.0.tgz" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6761,7 +6761,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/3b28a2fd51234f6f5ecbc51ad9e79657e1e6ef68b9f2bc56206f1638cf45758a6bfa3b7d67aba4e6779e1cdbbcda5bf2b49fa753cf248c7353f6b0ff209d2833 + checksum: 10c0/071ef4b3d4d1c054a08d0fe9c76f34c8c517dbe37bb02f9fafbf707144d7db0e593aece4886c4c5562bd16270b55fe2a15444fe08bf5ae4a4521b7613b58aaa4 languageName: node linkType: hard
updating roster and wmconnect version
updating roster and wmconnect version
c5f42be31d8c9d454680975c8b2f401a704a3e75
--- package.json @@ -156,7 +156,7 @@ "@walmart/time-clock-mini-app": "3.19.2", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.25.4", - "@walmart/translator-mini-app": "1.6.4", + "@walmart/translator-mini-app": "1.6.9", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.4#~/.yarn/patches/@walmart-ui-components-npm-1.24.4-247996ccb0.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "1.0.13", --- yarn.lock @@ -7663,7 +7663,7 @@ __metadata: "@walmart/time-clock-mini-app": "npm:3.19.2" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.25.4" - "@walmart/translator-mini-app": "npm:1.6.4" + "@walmart/translator-mini-app": "npm:1.6.9" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.4#~/.yarn/patches/@walmart-ui-components-npm-1.24.4-247996ccb0.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:1.0.13" @@ -8620,9 +8620,9 @@ __metadata: languageName: node linkType: hard -"@walmart/translator-mini-app@npm:1.6.4": - version: 1.6.4 - resolution: "@walmart/translator-mini-app@npm:1.6.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftranslator-mini-app%2F-%2F%40walmart%2Ftranslator-mini-app-1.6.4.tgz" +"@walmart/translator-mini-app@npm:1.6.9": + version: 1.6.9 + resolution: "@walmart/translator-mini-app@npm:1.6.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftranslator-mini-app%2F-%2F%40walmart%2Ftranslator-mini-app-1.6.9.tgz" peerDependencies: "@react-native-async-storage/async-storage": ^2.0.0 "@react-native-clipboard/clipboard": ^1.14.2 @@ -8637,7 +8637,7 @@ __metadata: react-native-svg: ">=14.0.0" react-native-wm-voice-text: ">=1.1.2" uuid: ">=3.0.0" - checksum: 10c0/e0c357315176ba35275d936cf83e4a94a3a7b71e9e781215b2ebedc3ff8b1782004631f5af65eefc3d3b2c639e22ff57519de665c9de54c048e011294d389e43 + checksum: 10c0/3bd3ea24b3e9b01019e52f246304980ca21cda0c53885153387811047f17771ddb26677399e238360cb68f8277c99bb1676acd48f89b8fb94f6b42c591609836 languageName: node linkType: hard
fix(ui): ADEDS-19791 - Rendering API endpoints from CCM (#4428)
fix(ui): ADEDS-19791 - Rendering API endpoints from CCM (#4428) * fix: rendering api endpoints from ccm * fix(impersonation): add env to impersonation cache key and update tests (#4467) * fix(impersonation): add env to impersonation cache key and update tests * chore(impersonation): reduce duplication * Release | Global VPI | Drop32 (#4335) * feat: upgrade version global vpi 1.1.27 * chore: add app name and package name for global vpi * feat: upgrade version global vpi and add version global vpi app --------- Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com> Co-authored-by: Omar Flores - i0f01eu <Irving.Omar.Flores@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
0571a917149819d8de467a2ec776220001540d4d
--- __tests__/settings/sideButton/__snapshots__/SideButtonPermissionBottomSheetTest.tsx.snap @@ -69,7 +69,7 @@ exports[`Side button permission bottom sheet tests matches snapshot 1`] = ` "bottom": 0, "height": 1334, "left": 0, - "opacity": 0.00011425836668732536, + "opacity": 0, "position": "absolute", "right": 0, "top": 0,
fixing failed snapshot
fixing failed snapshot
0078c4b51731d0d75988e1bd6f3a7b54f2e8e38a
--- packages/expo-config-plugins/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.1.5...@walmart/expo-config-plugins@0.1.6) (2025-04-01) + +**Note:** Version bump only for package @walmart/expo-config-plugins + ## [0.1.5](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.1.4...@walmart/expo-config-plugins@0.1.5) (2025-04-01) **Note:** Version bump only for package @walmart/expo-config-plugins --- packages/expo-config-plugins/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/expo-config-plugins", "packageManager": "yarn@4.1.1", - "version": "0.1.5", + "version": "0.1.6", "description": "Expo config plugins for me@apps", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/expo-config-plugins@0.1.6
de921745f0d0568aacd208b4d1e1528656b3d189
--- .husky/pre-commit @@ -92,17 +92,17 @@ if [ -n "$STAGED_SRC_FILES" ] || [ -n "$STAGED_TEST_FILES" ]; then if [ -n "$ALL_TEST_FILES" ]; then echo "Running tests: $ALL_TEST_FILES" - # Run specific test files with coverage only for changed source files - yarn jest $ALL_TEST_FILES --config=jest.precommit.config.js --collectCoverageFrom="$COVERAGE_PATTERNS" --coverage --coverageReporters=text-summary --passWithNoTests + # Run specific test files using Jest config coverage thresholds for changed source files only + yarn jest $ALL_TEST_FILES --collectCoverageFrom="$COVERAGE_PATTERNS" --coverage --coverageReporters=text-summary --passWithNoTests else echo "No test files found for changed source files. Running all tests to ensure nothing is broken..." - # If no specific tests found, run all tests but only collect coverage for changed files - yarn jest --config=jest.precommit.config.js --collectCoverageFrom="$COVERAGE_PATTERNS" --coverage --coverageReporters=text-summary --passWithNoTests + # If no specific tests found, run all tests using Jest config coverage thresholds for changed files only + yarn jest --collectCoverageFrom="$COVERAGE_PATTERNS" --coverage --coverageReporters=text-summary --passWithNoTests fi if [ $? -ne 0 ]; then echo "❌ Tests failed or coverage threshold (90%) not met for new/changed files." - echo "💡 Only new or modified code needs to meet the 90% coverage threshold." + echo "💡 New/modified code must meet 90% coverage threshold." echo "💡 Run 'yarn test --coverage' to see detailed coverage report." exit 1 fi --- jest.precommit.config.js @@ -1,20 +0,0 @@ -const baseConfig = require('./jest.config.js'); - -module.exports = { - ...baseConfig, - // Override coverage threshold for precommit - only apply to new files - coverageThreshold: { - global: { - statements: 90, - branches: 90, - functions: 90, - lines: 90, - }, - }, - // Only report coverage for changed files - collectCoverageFrom: [], // Will be dynamically set by precommit hook - // Ensure we only report coverage failures for new code - coverageReporters: ['text', 'text-summary'], - // Don't fail if no coverage data collected (empty commits) - coveragePathIgnorePatterns: ['/node_modules/', '/__tests__/', '/coverage/'], -};
feat(ui): ensure global coverage is still respected #SMDV-8174
feat(ui): ensure global coverage is still respected #SMDV-8174
63958f1e986e020055b78e9de126de06bbb5bf8e
--- src/channels/provider.tsx @@ -26,6 +26,7 @@ import {normalizeChannelSnapshot} from './transforms'; import {fetchChannelName, fetchChannelLastMessage} from './services'; import {logger} from '../logger/Logger'; import {textingSlice} from '../redux/reducer'; +import {SEVEN_DAYS_AGO_TIMESTAMP} from '../constants'; /** * @description Maintains list of channels current user is participant in for the @@ -63,6 +64,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const unsubscribeChannels = firestore() .collection(channelsPath) .where('participants', 'array-contains', viewerId) + .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') .onSnapshot((snapshot) => { setChannelState((previous) => ({ --- src/constants.ts @@ -1,3 +1,5 @@ +import firestore from '@react-native-firebase/firestore'; + export const RNFBConfigAndroid = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const RNFBConfigiOS = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const ROOT_CONTAINER_SCREEN_NAME = 'myTeam'; @@ -8,6 +10,9 @@ export const IMAGE_PREVIEW_SCREEN = 'myTeam.imagePreviewScreen'; export const WHOLE_STORE = 'WHOLESTORE'; export const PUSHTOTALK_SCREEN_NAME = 'myTeam.pushToTalk'; export const LOCAL_STORAGE_KEY_PREFIX = 'texting-'; +export const SEVEN_DAYS_AGO_TIMESTAMP = firestore.Timestamp.fromDate( + new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), +); // eslint-disable-next-line no-shadow export enum messageTypes { AUDIO = 'AUDIO', --- src/screens/MessagesScreen.tsx @@ -35,7 +35,7 @@ import { useUserIsInRoster, } from '../hooks'; import {usePresenceContext} from '../presence/hooks'; -import {messageTypes} from '../constants'; +import {messageTypes, SEVEN_DAYS_AGO_TIMESTAMP} from '../constants'; import {getNetworkState} from '@walmart/core-services/Network/selectors'; import {ErrorComponent} from '../components/ErrorComponent'; import {HttpClientError} from '@walmart/allspark-http-client'; @@ -181,6 +181,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { const startMessageSubscription = () => { unsubscribeMessages.current = channelDocument .collection('messages') + .where('createdAt', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('createdAt', 'desc') .limit(PAGE_SIZE) .onSnapshot( @@ -236,6 +237,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { const firstMessage = firstMessageDoc.current?.data(); const snapshot = await channelDocument! .collection('messages') + .where('createdAt', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('createdAt', 'desc') .limit(PAGE_SIZE) .startAfter(firstMessageDoc.current) --- src/channels/provider.tsx @@ -26,6 +26,7 @@ import {normalizeChannelSnapshot} from './transforms'; import {fetchChannelName, fetchChannelLastMessage} from './services'; import {logger} from '../logger/Logger'; import {textingSlice} from '../redux/reducer'; +import {SEVEN_DAYS_AGO_TIMESTAMP} from '../constants'; /** * @description Maintains list of channels current user is participant in for the @@ -63,6 +64,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const unsubscribeChannels = firestore() .collection(channelsPath) .where('participants', 'array-contains', viewerId) + .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') .onSnapshot((snapshot) => { setChannelState((previous) => ({ --- src/constants.ts @@ -1,3 +1,5 @@ +import firestore from '@react-native-firebase/firestore'; + export const RNFBConfigAndroid = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const RNFBConfigiOS = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const ROOT_CONTAINER_SCREEN_NAME = 'myTeam'; @@ -8,6 +10,9 @@ export const IMAGE_PREVIEW_SCREEN = 'myTeam.imagePreviewScreen'; export const WHOLE_STORE = 'WHOLESTORE'; export const PUSHTOTALK_SCREEN_NAME = 'myTeam.pushToTalk'; export const LOCAL_STORAGE_KEY_PREFIX = 'texting-'; +export const SEVEN_DAYS_AGO_TIMESTAMP = firestore.Timestamp.fromDate( + new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), +); // eslint-disable-next-line no-shadow export enum messageTypes { AUDIO = 'AUDIO', --- src/screens/MessagesScreen.tsx @@ -35,7 +35,7 @@ import { useUserIsInRoster, } from '../hooks'; import {usePresenceContext} from '../presence/hooks'; -import {messageTypes} from '../constants'; +import {messageTypes, SEVEN_DAYS_AGO_TIMESTAMP} from '../constants'; import {getNetworkState} from '@walmart/core-services/Network/selectors'; import {ErrorComponent} from '../components/ErrorComponent'; import {HttpClientError} from '@walmart/allspark-http-client'; @@ -181,6 +181,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { const startMessageSubscription = () => { unsubscribeMessages.current = channelDocument .collection('messages') + .where('createdAt', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('createdAt', 'desc') .limit(PAGE_SIZE) .onSnapshot( @@ -236,6 +237,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { const firstMessage = firstMessageDoc.current?.data(); const snapshot = await channelDocument! .collection('messages') + .where('createdAt', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('createdAt', 'desc') .limit(PAGE_SIZE) .startAfter(firstMessageDoc.current)
fix: fixing query for message and channels to only query last 7 days worth of data
fix: fixing query for message and channels to only query last 7 days worth of data
34bf841fd05b59d5ce19e0b4e3cd92a1661445e6
--- 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.24.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.23.0...@walmart/celebration-mini-app-graphql@1.24.0) (2025-12-02) + +### Features + +- **ui:** update celebration graphql ([008dac9](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/008dac978591df3af66e3bc2baf18ccab5ddfbab)) + # [1.23.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.22.0...@walmart/celebration-mini-app-graphql@1.23.0) (2025-12-01) ### Features --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.23.0", + "version": "1.24.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.33.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.32.0...@walmart/celebration-mini-app@1.33.0) (2025-12-02) + +### Features + +- **ui:** update celebration graphql ([008dac9](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/008dac978591df3af66e3bc2baf18ccab5ddfbab)) + # [1.32.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.31.1...@walmart/celebration-mini-app@1.32.0) (2025-12-01) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.32.0", + "version": "1.33.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.33.0 - @walmart/celebration-mini-app-graphql@1.24.0
cf69e23ac042b6047be5c85336a1b190c106b0a6
--- packages/me-at-walmart-container/src/services/telemetry.ts @@ -90,7 +90,10 @@ export class TelemetryClient { return this._analytics.logEvent(fullEvent, fullParams); }; - public logScreenView = (screen: string) => { + public logScreenView = ( + screen: string, + params?: Record<string, string | undefined>, + ) => { if (!SCREEN_NAME_REGEX.test(screen)) { if (__DEV__) { console.warn( @@ -104,7 +107,8 @@ export class TelemetryClient { return this._analytics.logScreenView({ screen_class: screen, screen_name: screen, - feature_id: this._id, + ...params, + feature_id: params?.feature_id || this._id, }); }; @@ -144,12 +148,14 @@ export class TelemetryClient { }; } +const ContainerTelemetryClient = new TelemetryClient('container'); + // Telemetry Service to manage client instances export class TelemetryClientManager { private _instances = new Map<string, TelemetryClient>(); constructor() { - this._instances.set('container', new TelemetryClient('container')); + this._instances.set('container', ContainerTelemetryClient); } public createFeatureInstance = (id: string, config?: TelemetryConfig) => { @@ -164,7 +170,7 @@ export class TelemetryClientManager { }; public getFeatureInstance = (id: string) => { - return this._instances.get(id)!; + return this._instances.get(id); }; public getContainerInstance = () => { @@ -178,11 +184,8 @@ export const MeAtWalmartTelemetryService = TelemetryServiceCreator( export type IMeAtWalmartTelemetryService = typeof MeAtWalmartTelemetryService; -const ContainerTelemetry = - MeAtWalmartTelemetryService.createFeatureInstance('container'); - // Container specific telemetry instance with added methods -export const MeAtWalmartTelemetry = Object.assign(ContainerTelemetry, { +export const MeAtWalmartTelemetry = Object.assign(ContainerTelemetryClient, { setUserId(id: string) { Promise.allSettled([ANALYTICS.setUserId(id), CRASHLYTICS.setUserId(id)]); }, --- packages/me-at-walmart-container/src/setup.ts @@ -94,7 +94,14 @@ export const setupMeAtWalmartRoot = async () => { // Add screen change listener for screen view logging const screenChangeSub = AllsparkNavigationClient.addScreenChangeListener( (payload) => { - MeAtWalmartTelemetry.logScreenView(payload.currentRoute); + // Try to determine feature screen belongs to for proper tagging + const featureId = AllsparkNavigationClient.getFeatureIdForScreenName( + payload.currentRoute, + ); + + MeAtWalmartTelemetry.logScreenView(payload.currentRoute, { + feature_id: featureId, + }); }, ); subscriptions.push(screenChangeSub);
fix: add correct feature id tagging to screen view telemetry
fix: add correct feature id tagging to screen view telemetry
954706f1c2caaad46484562373719b0ff6ba5ee3
--- package-lock.json @@ -4253,9 +4253,9 @@ "integrity": "sha512-0M7ySb3F2lKlIfwBosm+Slx3kJvdoEHm5haaZ05WKCJ1hctu0F0CzTGDSbZciXWX92HJBmxvsvr8yi2H435R8g==" }, "@walmart/ims-print-services-ui": { - "version": "0.1.18", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.1.18.tgz", - "integrity": "sha512-WPkO+e4v4RcFIuO08q7ak9cfMhrkllOh3oUt7+KTTHdlWo5f3BrVLO0DXkFknIFNzBQOetmD7U1eggxKMLFlkg==" + "version": "0.1.19", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-0.1.19.tgz", + "integrity": "sha512-C3HNm372mNtvwuHcDL+4nK75Idsk54+1s0CdPJDKewzBbxFkQMNIuoN3Kk3y46cMkf8bkXidf7oV9gJVArsKwQ==" }, "@walmart/inbox-mini-app": { "version": "0.28.0", @@ -4263,9 +4263,9 @@ "integrity": "sha512-dDQLOze2s/xkp/NYsUsZAMo7pu9zQ6prENJoPc90/zV8wqbA7LjTGe2JfGTHLo71QGG1at6YGNZv5YZzgWSq1g==" }, "@walmart/iteminfo-mini-app": { - "version": "4.0.20", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.20.tgz", - "integrity": "sha512-Jbc0cyknfPBB4+QGL7+E7oNZmhP9sjBLbibvaroR5DKnzBA4B7KkGAiSVuoWqyYI/TKM7rsOaq/hyO/7WzVd6A==" + "version": "4.0.26", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.26.tgz", + "integrity": "sha512-v6rzXctXLBN6aPlVEXofnfpQ1TV/mB3QfXAUY+0tOgaZ6p8WSP0WYD5XCzSNfdCpWJEo2kTW3XISa8Bd8fLjjA==" }, "@walmart/manager-approvals-miniapp": { "version": "0.0.59", --- package.json @@ -83,9 +83,9 @@ "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", "@walmart/impersonation-mini-app": "1.0.27", - "@walmart/ims-print-services-ui": "0.1.18", + "@walmart/ims-print-services-ui": "0.1.19", "@walmart/inbox-mini-app": "0.28.0", - "@walmart/iteminfo-mini-app": "4.0.20", + "@walmart/iteminfo-mini-app": "4.0.26", "@walmart/manager-approvals-miniapp": "0.0.59", "@walmart/metrics-mini-app": "0.6.1", "@walmart/moment-walmart": "1.0.4",
Item Info multiple fixes found in beta testing
Item Info multiple fixes found in beta testing
ba15472edda90c6ce154d7104766a7e45c50a694
--- package.json @@ -162,7 +162,7 @@ "@walmart/sidekick-mini-app": "4.231.0", "@walmart/store-feature-orders": "1.34.7", "@walmart/talent-preboarding-mini-app": "1.0.48", - "@walmart/taskit-mini-app": "5.42.33", + "@walmart/taskit-mini-app": "5.42.35", "@walmart/time-clock-mini-app": "3.19.6", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.27.1", --- yarn.lock @@ -8339,7 +8339,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.231.0" "@walmart/store-feature-orders": "npm:1.34.7" "@walmart/talent-preboarding-mini-app": "npm:1.0.48" - "@walmart/taskit-mini-app": "npm:5.42.33" + "@walmart/taskit-mini-app": "npm:5.42.35" "@walmart/time-clock-mini-app": "npm:3.19.6" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.27.1" @@ -9243,12 +9243,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.42.33": - version: 5.42.33 - resolution: "@walmart/taskit-mini-app@npm:5.42.33::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.33.tgz" +"@walmart/taskit-mini-app@npm:5.42.35": + version: 5.42.35 + resolution: "@walmart/taskit-mini-app@npm:5.42.35::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.35.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/d6936a1decb42917e5e1b7a25fd8668ffb6b08924b51defa591fde53345018a6af0f1a61a5cb0c87b1fd9862361cc24dc0cca16c5ea8767a30cc6cacf6b86906 + checksum: 10c0/69cb58ec5777748df4bbfffdac746507fa7f41b7eddf3cfbdedb68b41cb1080f73b3c06137554404722a06b7cca2442c590fa9942812557c20d1ec5d7668cd55 languageName: node linkType: hard
feat(fixing few issues'): fixing few issues'
feat(fixing few issues'): fixing few issues'
55c96359413002f14f235c2c72fbbd7392a41f56
--- scripts/mini-app-scan/scan-walmart-packages.sh @@ -30,6 +30,7 @@ else done fi +violation_found=0 for package_name in "${packages_to_scan[@]}"; do package_dir="./node_modules/@walmart/$package_name" if [ ! -d "$package_dir" ]; then @@ -68,6 +69,7 @@ for package_name in "${packages_to_scan[@]}"; do echo " ❌ VIOLATIONS FOUND:" echo "$clean_output" | head -20 # Show first 20 lines echo "" + violation_found=1 elif echo "$eslint_output" | grep -q "Definition for rule.*was not found"; then echo " ⚠️ Rule definition errors only (ignored)" else @@ -82,4 +84,10 @@ for package_name in "${packages_to_scan[@]}"; do echo "" done -echo "Scan complete!" +if [ "$violation_found" -eq 1 ]; then + echo "Scan complete! Violations found." + exit 1 +else + echo "Scan complete! No violations found." + exit 0 +fi
fix: scan script did not error out after finding violations
fix: scan script did not error out after finding violations
5947fa7edf4d6fe851537cd64513ff24183c10fb
--- yarn.lock @@ -6749,7 +6749,7 @@ __metadata: "@walmart/roster-mini-app": "npm:2.4.0" "@walmart/schedule-mini-app": "npm:0.114.2" "@walmart/shelfavailability-mini-app": "npm:1.5.26" - "@walmart/shop-gnfr-mini-app": "npm:1.0.47" + "@walmart/shop-gnfr-mini-app": "npm:1.0.52" "@walmart/store-feature-orders": "npm:1.26.9" "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.0.2#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.0.2-4cbd5b8e6d.patch" "@walmart/time-clock-mini-app": "npm:2.395.0" @@ -7590,9 +7590,9 @@ __metadata: languageName: node linkType: hard -"@walmart/shop-gnfr-mini-app@npm:1.0.47": - version: 1.0.47 - resolution: "@walmart/shop-gnfr-mini-app@npm:1.0.47" +"@walmart/shop-gnfr-mini-app@npm:1.0.52": + version: 1.0.52 + resolution: "@walmart/shop-gnfr-mini-app@npm:1.0.52" dependencies: "@testing-library/react-native": "npm:^12.5.1" react-native-drop-shadow: "npm:^1.0.0" @@ -7606,7 +7606,7 @@ __metadata: "@walmart/gtp-shared-components": ^2.0.0 react: ^18.2.0 react-native: ~0.70.5 - checksum: 10c0/6adff0f6206420c8818596febc2279cbb67ea5dcf2be49ff43cc844bf478d87d81bf3636862b77d33fd88cc2a342c58d4283f8bb1f26d30c2fb69f702595efe2 + checksum: 10c0/3d56cff9fcd3723001a22425c2be77edb78f91eef577a16ca939347205f3a3fe0093ccf48c5da38c65ca6d55b733445d269594d7fe115ec67598e3ae75f24cbd languageName: node linkType: hard
Added yarn lock file to fix build
Added yarn lock file to fix build
11504e237035a500bb7c47948ad6af2f4ab9cc6c
--- ios/Podfile.lock @@ -404,8 +404,6 @@ PODS: - React-Core - react-native-image-picker (4.7.3): - React-Core - - react-native-in-app-review (4.1.1): - - React - react-native-logger (1.29.0): - React - react-native-loudness (2.0.0): @@ -434,6 +432,8 @@ PODS: - React - react-native-webview (10.10.0): - React-Core + - react-native-wm-app-review (0.2.0-rc.3): + - React-Core - react-native-wm-barcode (2.36.2): - Firebase/Analytics - React @@ -637,7 +637,6 @@ DEPENDENCIES: - react-native-geolocation-service (from `../node_modules/react-native-geolocation-service`) - react-native-get-random-values (from `../node_modules/react-native-get-random-values`) - react-native-image-picker (from `../node_modules/react-native-image-picker`) - - react-native-in-app-review (from `../node_modules/react-native-in-app-review`) - "react-native-logger (from `../node_modules/@walmart/react-native-logger`)" - react-native-loudness (from `../node_modules/react-native-loudness`) - react-native-maps (from `../node_modules/react-native-maps`) @@ -650,6 +649,7 @@ DEPENDENCIES: - react-native-video (from `../node_modules/react-native-video`) - react-native-view-shot (from `../node_modules/react-native-view-shot`) - react-native-webview (from `../node_modules/react-native-webview`) + - react-native-wm-app-review (from `../node_modules/react-native-wm-app-review`) - react-native-wm-barcode (from `../node_modules/react-native-wm-barcode`) - react-native-wm-voice-text (from `../node_modules/react-native-wm-voice-text`) - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) @@ -792,8 +792,6 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-get-random-values" react-native-image-picker: :path: "../node_modules/react-native-image-picker" - react-native-in-app-review: - :path: "../node_modules/react-native-in-app-review" react-native-logger: :path: "../node_modules/@walmart/react-native-logger" react-native-loudness: @@ -818,6 +816,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-view-shot" react-native-webview: :path: "../node_modules/react-native-webview" + react-native-wm-app-review: + :path: "../node_modules/react-native-wm-app-review" react-native-wm-barcode: :path: "../node_modules/react-native-wm-barcode" react-native-wm-voice-text: @@ -971,7 +971,6 @@ SPEC CHECKSUMS: react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e react-native-image-picker: ae1202414bd5c37c00b2a701daa5b6194a06b7d9 - react-native-in-app-review: c5ba75cc2c91238f42bd2de44fa0e65e93b7c9ea react-native-logger: 4a1fee65d89df68d4790907efbe8742cdbde4d41 react-native-loudness: f8a66974ad39f0668af387302c47b50a07e8cf7e react-native-maps: d752b0dd0e1951d815b1336332835aab6b4a836f @@ -984,6 +983,7 @@ SPEC CHECKSUMS: react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 + react-native-wm-app-review: 339a06c8ba391e1855e90cb4046568f925e9c4b0 react-native-wm-barcode: 96ae7848a0c21c54d24047b309f941c989704ba7 react-native-wm-voice-text: e41ea4227df3f52f3e2cab2f08fd89fbdcd02cfd React-perflogger: 0afaf2f01a47fd0fc368a93bfbb5bd3b26db6e7f --- package-lock.json @@ -16625,7 +16625,7 @@ "nano-time": { "version": "1.0.0", "resolved": "https://npme.walmart.com/nano-time/-/nano-time-1.0.0.tgz", - "integrity": "sha1-sFVPaa2J4i0JB/ehKwmTpdlhN+8=", + "integrity": "sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==", "requires": { "big-integer": "^1.6.16" } @@ -18527,11 +18527,6 @@ "resolved": "https://npme.walmart.com/react-native-image-picker/-/react-native-image-picker-4.7.3.tgz", "integrity": "sha512-eRKm4wlsmZHmsWFyv77kYc2F+ZyEVqe0m7mqhsMzWk6TQT4FBDtEDxmRDDFq+ivCu/1QD+EPhmYcAIpeGr7Ekg==" }, - "react-native-in-app-review": { - "version": "4.1.1", - "resolved": "https://npme.walmart.com/react-native-in-app-review/-/react-native-in-app-review-4.1.1.tgz", - "integrity": "sha512-kuZNKvawD9rICR8SEKSMRB1Ws5RjjyQScxVg/57dK8Yrx/CeVqSL5jJUJ1Nhl/MMxwP5XJ/keFcjTb2YRMglQw==" - }, "react-native-linear-gradient": { "version": "2.5.6", "resolved": "https://npme.walmart.com/react-native-linear-gradient/-/react-native-linear-gradient-2.5.6.tgz", @@ -18910,6 +18905,15 @@ } } }, + "react-native-wm-app-review": { + "version": "0.2.0-rc.3", + "resolved": "https://npme.walmart.com/react-native-wm-app-review/-/react-native-wm-app-review-0.2.0-rc.3.tgz", + "integrity": "sha512-y2R/yI3p7rVcyHzwBqvyu4hJiFNq3+LMrRT/Bx2O1pwR1/Hs3DQZ3odmlPrZ02GY/Es6FiFUbd1IqlTgEf+LOQ==", + "requires": { + "@react-native-community/async-storage": "^1.11.0", + "@walmart/react-native-logger": "^1.29.0" + } + }, "react-native-wm-barcode": { "version": "2.36.2", "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.36.2.tgz", @@ -19371,7 +19375,7 @@ "remove-accents": { "version": "0.4.2", "resolved": "https://npme.walmart.com/remove-accents/-/remove-accents-0.4.2.tgz", - "integrity": "sha1-CkPTqq4egNuRngeuJUsoXZ4ce7U=" + "integrity": "sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA==" }, "remove-trailing-separator": { "version": "1.1.0", --- package.json @@ -142,7 +142,6 @@ "react-native-haptic-feedback": "^1.10.0", "react-native-hyperlink": "0.0.19", "react-native-image-picker": "^4.0.6", - "react-native-in-app-review": "^4.1.1", "react-native-linear-gradient": "^2.5.6", "react-native-loudness": "^2.0.0", "react-native-maps": "^0.30.1", @@ -171,6 +170,7 @@ "react-native-view-shot": "^3.1.2", "react-native-vision-camera": "1.0.10", "react-native-webview": "^10.7.0", + "react-native-wm-app-review": "^0.2.0-rc.3", "react-native-wm-barcode": "2.36.2", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.2.0", --- src/appReview/sagas.ts @@ -1,38 +1,13 @@ -/* eslint-disable curly */ import {select, call} from 'redux-saga/effects'; -import AppReview from 'react-native-in-app-review'; -import AsyncStorage from '@react-native-community/async-storage'; +import onReview from 'react-native-wm-app-review'; import {FeatureAppConfig} from '@walmart/redux-store'; import {getCoreAppConfig} from '../redux/SharedSelectors'; -const ONE_DAY_MS = 1000 * 60 * 60 * 24; -const LOCAL_STORAGE_KEY = 'review_prompt_time'; - export function* handleAppReviewPrompt() { - // Configurations const config: FeatureAppConfig = yield select(getCoreAppConfig); - const enable = config.enableReviewPrompt || true; - const displayInterval = config.reviewPromptInterval || 15; - - if (!enable) return; - - // Calculate time since last seen - const now = new Date().getTime(); - const lastTimePrompted: string = yield call( - AsyncStorage.getItem, - LOCAL_STORAGE_KEY, - ); - - if (lastTimePrompted !== null) { - const msSincePrompt = Math.abs(now - +lastTimePrompted); - const daysSincePrompt = Math.ceil(msSincePrompt / ONE_DAY_MS); - - if (daysSincePrompt < displayInterval) return; - } - - // Show the prompt - const prompted: boolean = yield call(AppReview.RequestInAppReview); - if (prompted) { - yield call(AsyncStorage.setItem, LOCAL_STORAGE_KEY, String(now)); - } + const appReviewConfig = config['app-review'] || { + enable: true, + displayInterval: 90, + }; + yield call(onReview, appReviewConfig); }
add wm module
add wm module
9ebb3c708b722b82ec332aa558383c2b15e3838e
--- __tests__/navConfig/NavConfigSagasTest.ts @@ -188,6 +188,9 @@ describe('nav config sagas', () => { expect(iterator.next(data).value).toEqual( put(NavConfigActionCreators.navConfigSuccess(data)), ); + expect(iterator.next().value).toEqual( + call(GlobalNavConfig.addListener, onConfigChanged), + ); expect(iterator.next().done).toEqual(true); }); @@ -221,7 +224,6 @@ describe('nav config sagas', () => { initializeNavConfig, ), takeLatest(USER_CHANGED_ACTIONS, fetchGlobalNavConfig), - call(GlobalNavConfig.addListener, onConfigChanged), ]), ), ); --- src/navConfig/NavConfigSagas.ts @@ -86,6 +86,8 @@ export function* fetchGlobalNavConfig() { const scope = yield call(getGlobalNavScope); const data = yield call(GlobalNavConfig.fetchConfig, scope); yield put(NavConfigActionCreators.navConfigSuccess(data)); + + yield call(GlobalNavConfig.addListener, onConfigChanged); } catch (error) { yield put(NavConfigActionCreators.navConfigError()); yield call(DefaultLogger.error, 'Error fetching GlobalNavConfig', { @@ -102,7 +104,6 @@ export function* navConfigSagas() { initializeNavConfig, ), takeLatest(USER_CHANGED_ACTIONS, fetchGlobalNavConfig), - call(GlobalNavConfig.addListener, onConfigChanged), ]), ); }
Fixing nav config adding listener
Fixing nav config adding listener
f131759c6a6c5a8911f83b4539283a0500343865
--- ios/Podfile.lock @@ -1467,7 +1467,7 @@ PODS: - FirebaseMessaging (<= 10.1.0) - StructuredLogAssistantIOS (= 0.0.7) - TOCropViewController (2.6.1) - - topstock-mini-app (1.3.0): + - topstock-mini-app (1.3.1): - React - VisionCamera (2.16.2): - React @@ -2065,7 +2065,7 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: fef064694cb7fd0f4d8c633f03d2d9e11876fdda TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 - topstock-mini-app: 2fb8fd426e844ec04ff08eecbe2b03ea73bee81a + topstock-mini-app: 8d66b9738787e17770a39c1943984825d4448c68 VisionCamera: e665d4459abe1f243e95707f651cd1d10346b382 walmart-react-native-sumo-sdk: 02719d035c1a52e951e15097fae5ea17b459f71c wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 --- package-lock.json @@ -86,7 +86,7 @@ "@walmart/taskit-mini-app": "2.47.9", "@walmart/texting-mini-app": "2.0.39", "@walmart/time-clock-mini-app": "2.175.2", - "@walmart/topstock-mini-app": "1.3.0", + "@walmart/topstock-mini-app": "1.3.1", "@walmart/ui-components": "1.15.1", "@walmart/welcomeme-mini-app": "0.84.4", "@walmart/wfm-ui": "0.2.26", @@ -9323,9 +9323,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/topstock-mini-app": { - "version": "1.3.0", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.3.0.tgz", - "integrity": "sha512-VQHqzMY1muxR++RP0WBDGA/F1wWcd0KdB2ePhNg4fDOUX0dnQHdJ1QaAv2T/q01ikoMGJOh1QhOuU8Ow+7HE6w==", + "version": "1.3.1", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.3.1.tgz", + "integrity": "sha512-yQTFi/QVFLkJ/0vmpl4OyB4118DbcazbChvKKim60VFIzbJUJHmmTIGinjTf254oQGJcdfZNP4BRKHZRCR+Mnw==", "dependencies": { "javascript-time-ago": "^2.5.7" }, @@ -34603,9 +34603,9 @@ "integrity": "sha1-QVwJoEY4zaaC39G6HDOGH7COw/Y=" }, "@walmart/topstock-mini-app": { - "version": "1.3.0", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.3.0.tgz", - "integrity": "sha512-VQHqzMY1muxR++RP0WBDGA/F1wWcd0KdB2ePhNg4fDOUX0dnQHdJ1QaAv2T/q01ikoMGJOh1QhOuU8Ow+7HE6w==", + "version": "1.3.1", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.3.1.tgz", + "integrity": "sha512-yQTFi/QVFLkJ/0vmpl4OyB4118DbcazbChvKKim60VFIzbJUJHmmTIGinjTf254oQGJcdfZNP4BRKHZRCR+Mnw==", "requires": { "javascript-time-ago": "^2.5.7" } --- package.json @@ -127,7 +127,7 @@ "@walmart/taskit-mini-app": "2.47.9", "@walmart/texting-mini-app": "2.0.39", "@walmart/time-clock-mini-app": "2.175.2", - "@walmart/topstock-mini-app": "1.3.0", + "@walmart/topstock-mini-app": "1.3.1", "@walmart/ui-components": "1.15.1", "@walmart/welcomeme-mini-app": "0.84.4", "@walmart/wfm-ui": "0.2.26",
fix(crash): fix android crash VS-2655
fix(crash): fix android crash VS-2655
11a2820b7177f61f6578e4f1e84f705de977021f
--- ios/Podfile.lock @@ -582,7 +582,7 @@ PODS: - AppAuth - Starscream (3.0.6) - StructuredLogAssistantIOS (0.0.6) - - SumoSDK (2.1.0): + - SumoSDK (2.2.0): - Apollo (= 0.42.0) - Apollo/SQLite (= 0.42.0) - Firebase/Messaging (~> 8.4) @@ -592,9 +592,9 @@ PODS: - SwiftProtobuf - VisionCamera (1.0.10): - React-Core - - walmart-react-native-sumo-sdk (2.1.0): + - walmart-react-native-sumo-sdk (2.2.0): - React - - SumoSDK (= 2.1.0) + - SumoSDK (= 2.2.0) - wifi-store-locator (1.0.0-alpha2): - React-Core - Yoga (1.14.0) @@ -935,7 +935,7 @@ SPEC CHECKSUMS: GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4 glog: 5337263514dd6f09803962437687240c5dc39aa4 GoogleAppMeasurement: 6b6a08fd9c71f4dbc89e0e812acca81d797aa342 - GoogleDataTransport: 629c20a4d363167143f30ea78320d5a7eb8bd940 + GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1 leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729 libwebp: 98a37e597e40bfdb4c911fc98f2c53d0b12d05fc @@ -944,7 +944,7 @@ SPEC CHECKSUMS: Permission-LocationWhenInUse: e09ae67e8db2b1eeefb35f18ca59848d0785de5b Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72 - Protobuf: 66e2f3b26a35e4cc379831f4ced538274ee4b923 + Protobuf: b60ec2f51ad74765f44d0c09d2e0579d7de21745 PTT: dcd0a88856e88369871ca235c31639afecedd32b RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 RCTRequired: 4bf86c70714490bca4bf2696148638284622644b @@ -1026,11 +1026,11 @@ SPEC CHECKSUMS: SSO: dde199615662c7a7f9d62828f898441074950864 Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 StructuredLogAssistantIOS: 68c6fc083b10202a570f4a737359dcc7f81ec6e4 - SumoSDK: ebdf2ee2dccf6a09c913622fc4cb1c22d704ae92 + SumoSDK: fdaac9d36fa26540c84f80a454f495b1eb2b3b28 SwiftProtobuf: 6ef3f0e422ef90d6605ca20b21a94f6c1324d6b3 TextServiceProto: 07782a63b28a91b30d9a008ffd925768f6da6a2d VisionCamera: 60b74823ece943da919e2eb6dde62a676c486382 - walmart-react-native-sumo-sdk: e9909165197e83876aac64a051a80c66205b01fd + walmart-react-native-sumo-sdk: a452de9879a2420f2cd522795be989596574d728 wifi-store-locator: 0f4d1e14ff9b98c559275105c655a5a6103ef427 Yoga: e7dc4e71caba6472ff48ad7d234389b91dadc280
pod updates.
pod updates.
6d5053bca18037b97439ec44ec490796e2df39b7
--- package-lock.json @@ -39,7 +39,7 @@ "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", "@walmart/config-components": "4.1.0-rc.4", - "@walmart/copilot-mini-app": "^1.62.2", + "@walmart/copilot-mini-app": "^1.63.0", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.11.0", "@walmart/core-utils": "~2.0.5", @@ -4935,9 +4935,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "1.62.2", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.62.2.tgz", - "integrity": "sha512-BUgpIgqh++6m2UbsdaxWd0rt3JCdX2M2DSMADZnVWLSXhdnwSgW7SPGOJ8IhWk4+XRhfjfqwXoNIAzUm1CYuQA==", + "version": "1.63.0", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.63.0.tgz", + "integrity": "sha512-6SNiM+hIWJE1DzckbjsmveDFZQCDjPSEZbld2GH/cAFU1HX7tvlflpn8vg5ieem7TqwI0X+mUadZ7pMzRbHO3w==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -25130,9 +25130,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "1.62.2", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.62.2.tgz", - "integrity": "sha512-BUgpIgqh++6m2UbsdaxWd0rt3JCdX2M2DSMADZnVWLSXhdnwSgW7SPGOJ8IhWk4+XRhfjfqwXoNIAzUm1CYuQA==" + "version": "1.63.0", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.63.0.tgz", + "integrity": "sha512-6SNiM+hIWJE1DzckbjsmveDFZQCDjPSEZbld2GH/cAFU1HX7tvlflpn8vg5ieem7TqwI0X+mUadZ7pMzRbHO3w==" }, "@walmart/core-services": { "version": "2.0.19", --- package.json @@ -81,7 +81,7 @@ "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", "@walmart/config-components": "4.1.0-rc.4", - "@walmart/copilot-mini-app": "^1.62.2", + "@walmart/copilot-mini-app": "^1.63.0", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.11.0", "@walmart/core-utils": "~2.0.5",
chore: bump copilot app
chore: bump copilot app
85cebf474629e8f21dcbf6ab939f87b91767ca97
--- packages/allspark-foundation/src/User/selectors.ts @@ -299,6 +299,15 @@ const OriginalUserPreferenceSelectors = { ), }; +/** + * A collection of utilities for working with user data. + */ +export const UserUtils = { + getNameFromUser, + getFirstNameFromUser, + getInitialsFromUser, +}; + /** * A collection of selectors for retrieving user data from the Redux store. * @example
feat: expose common user utilities
feat: expose common user utilities
f45e56c2bd1fd63cbe160fe147a6305cf75f1de2
--- jest.config.js @@ -12,7 +12,7 @@ module.exports = { }, }, transformIgnorePatterns: [ - '<rootDir>/node_modules/(?!(react-native|@react-native|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/core-utils))', + '<rootDir>/node_modules/(?!(react-native|@react-native|axios|@lifeomic/axios-fetch|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/core-utils|@walmart/allspark-graphql-client|@walmart/allspark-http-client|@walmart/allspark-utils))', ], testPathIgnorePatterns: [ '<rootDir>/__tests__/setup.ts', --- jest.config.js @@ -12,7 +12,7 @@ module.exports = { }, }, transformIgnorePatterns: [ - '<rootDir>/node_modules/(?!(react-native|@react-native|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/core-utils))', + '<rootDir>/node_modules/(?!(react-native|@react-native|axios|@lifeomic/axios-fetch|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/core-utils|@walmart/allspark-graphql-client|@walmart/allspark-http-client|@walmart/allspark-utils))', ], testPathIgnorePatterns: [ '<rootDir>/__tests__/setup.ts',
adding missing transformIgnore patterns to support walmart apollo library
adding missing transformIgnore patterns to support walmart apollo library
8356b0384045f8ae8c84cc058d63212b337b17c8
--- .looper.multibranch.yml @@ -514,7 +514,6 @@ flows: then: - echo "Skipping uploading AppStore/PlayStore builds to MS App Center and publishing to Slack." else: - - echo "Uploading builds to App Center" - call: setup-fastlane - call: appcenter-upload @@ -524,7 +523,7 @@ flows: # @param APPCENTER_APP_NAME - AllSpark-Me-Walmart or AllSpark-Android # appcenter-upload: - - (name Upload to App Center iOS) bundle exec fastlane submit_to_appcenter BUILD_OUTPUT:${buildOutput} + - (name Uploading build to App Center) bundle exec fastlane submit_to_appcenter BUILD_OUTPUT:${buildOutput} # sends success message to slack channel #
code cleanup
code cleanup
47a0b980327a23b6686b9d29ac8df3b89c279157
--- package-lock.json @@ -13735,9 +13735,9 @@ } }, "node_modules/fbjs": { - "version": "3.0.4", - "resolved": "https://npme.walmart.com/fbjs/-/fbjs-3.0.4.tgz", - "integrity": "sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==", + "version": "3.0.5", + "resolved": "https://npme.walmart.com/fbjs/-/fbjs-3.0.5.tgz", + "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", "license": "MIT", "dependencies": { "cross-fetch": "^3.1.5", @@ -13746,7 +13746,7 @@ "object-assign": "^4.1.0", "promise": "^7.1.1", "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.30" + "ua-parser-js": "^1.0.35" } }, "node_modules/fbjs-css-vars": { @@ -27238,9 +27238,9 @@ } }, "node_modules/ua-parser-js": { - "version": "0.7.35", - "resolved": "https://npme.walmart.com/ua-parser-js/-/ua-parser-js-0.7.35.tgz", - "integrity": "sha512-veRf7dawaj9xaWEu9HoTVn5Pggtc/qj+kqTOFvNiN1l0YdxwC1kvel57UCjThjGa3BHBihE8/UJAHI+uQHmd/g==", + "version": "1.0.35", + "resolved": "https://npme.walmart.com/ua-parser-js/-/ua-parser-js-1.0.35.tgz", + "integrity": "sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==", "funding": [ { "type": "opencollective", @@ -37134,9 +37134,9 @@ } }, "fbjs": { - "version": "3.0.4", - "resolved": "https://npme.walmart.com/fbjs/-/fbjs-3.0.4.tgz", - "integrity": "sha512-ucV0tDODnGV3JCnnkmoszb5lf4bNpzjv80K41wd4k798Etq+UYD0y0TIfalLjZoKgjive6/adkRnszwapiDgBQ==", + "version": "3.0.5", + "resolved": "https://npme.walmart.com/fbjs/-/fbjs-3.0.5.tgz", + "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", "requires": { "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", @@ -37144,7 +37144,7 @@ "object-assign": "^4.1.0", "promise": "^7.1.1", "setimmediate": "^1.0.5", - "ua-parser-js": "^0.7.30" + "ua-parser-js": "^1.0.35" }, "dependencies": { "promise": { @@ -45982,9 +45982,9 @@ } }, "ua-parser-js": { - "version": "0.7.35", - "resolved": "https://npme.walmart.com/ua-parser-js/-/ua-parser-js-0.7.35.tgz", - "integrity": "sha512-veRf7dawaj9xaWEu9HoTVn5Pggtc/qj+kqTOFvNiN1l0YdxwC1kvel57UCjThjGa3BHBihE8/UJAHI+uQHmd/g==" + "version": "1.0.35", + "resolved": "https://npme.walmart.com/ua-parser-js/-/ua-parser-js-1.0.35.tgz", + "integrity": "sha512-fKnGuqmTBnIE+/KXSzCn4db8RTigUzw1AN0DmdU6hJovUTbYJKyqj+8Mt1c4VfRDnOVJnENmfYkIPZ946UrSAA==" }, "uglify-es": { "version": "3.3.9", --- packages/me-at-walmart-container/cli/link.js
chore: update after bootstrap
chore: update after bootstrap
15fea12d9905e557755286d8ed69424c3ae73728
--- src/navigation/index.tsx @@ -18,9 +18,6 @@ export * from './types'; export const MyTeamMiniApp = () => { const navigation = useNavigation(); - // SMDV-8921: Ensure header title is set to "Team" when screen gains focus - // This fixes the bug where header shows "Work" instead of "Team" after - // navigating from Work tab following team onboarding useFocusEffect( useCallback(() => { navigation.setOptions({
chore: remove unnecessary inline comment
chore: remove unnecessary inline comment
5d69dc202b48816c7ce016aa81126ef0da0a4636
--- targets/US/ios/BuildSupport/AppStore.keychain-db Binary files /dev/null and b/targets/US/ios/BuildSupport/AppStore.keychain-db differ
keychain update
keychain update
0205930270cfdab9f0d5b4ddc4806dc251801ba1
--- .looper-pr.yml @@ -15,6 +15,13 @@ flows: - npm run env:dev - npm run lint - npm run coverage + - call: notify-pr-via-slack + + notify-pr-via-slack: + - try: + - (name Slack PR notify) sh scripts/slackWorkflow.sh 2>&1 + catch: + - warn('Failed to notify GitHub PR to Slack') run-sonar-analysis: - sonar("Sonar"): --- scripts/slackWorkflow.sh @@ -0,0 +1,147 @@ +#!/usr/bin/env bash +################################## +# slackWorkflow.sh - sending GitHub PR to slack +################################## + +#GIT COMMIT INFORMATION +GIT_COMMIT_AUTHOR=$(git log -1 --format="%aN") +GIT_COMMIT_MESSAGE=$(git log --oneline --format=%B -n 1 HEAD | head -n 1) +GIT_COMMIT_DATE=$(git log -1 --date=format:"%a %d-%B, %Y - %r" --format="%ad") + +if [ -z ${SLACK_PR_WEBHOOK} ];then + SLACK_PR_WEBHOOK="https://hooks.slack.com/services/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" +fi + +echo "*********************************" +echo "* Composing Slack message." +echo "*********************************" +echo "* Params:" + +echo "GITHUB_PR_URL.................[${GITHUB_PR_URL}]" +echo "GITHUB_PR_SOURCE_BRANCH.......[${GITHUB_PR_SOURCE_BRANCH}]" +echo "GITHUB_PR_TRIGGER_SENDER_AUTHOR..[${GITHUB_PR_TRIGGER_SENDER_AUTHOR}]" +echo "GITHUB_PR_TITLE...............[${GITHUB_PR_TITLE}]" +echo "GITHUB_PR_SOURCE_BRANCH.......[${GITHUB_PR_SOURCE_BRANCH}]" +echo "GITHUB_BRANCH_NAME............[${GITHUB_BRANCH_NAME}]" +echo "GITHUB_COMMIT.................[${GIT_COMMIT}]" +echo "GITHUB_PR_NUMBER..............[${GITHUB_PR_NUMBER}]" +echo "GIT_COMMIT_AUTHOR.............[${GIT_COMMIT_AUTHOR}]" +echo "GIT_COMMIT_MESSAGE............[${GIT_COMMIT_MESSAGE}]" +echo "GIT_COMMIT_DATE...............[${GIT_COMMIT_DATE}]" +echo "SLACK_PR_WEBHOOK..............[${SLACK_PR_WEBHOOK}]" +echo "JOB_ID........................[${JOB_ID}]" +echo "*********************************" + + +#GIT COMMIT URL +if [ -z "${GIT_COMMIT}" ]; then + GIT_COMMIT_URL="N/A" +else + GIT_COMMIT_URL="https://gecgithub01.walmart.com/allspark/allspark-core/commit/${GIT_COMMIT}" +fi + +#checking for Required ENV Variables +if [ -z "$SLACK_PR_WEBHOOK" ]; then + echo "ERROR: Must provide SLACK_PR_WEBHOOK" + exit 1 +fi + +#Pulling information +#Branch +if [ -z "$branch" ]; +then + branch=$GITHUB_PR_SOURCE_BRANCH +fi + +############################## +#Setting message values (using mrdwn syntax) + +#Branch Name +if [ -z "${GITHUB_PR_SOURCE_BRANCH}" ]; then + messageGitHubBranchName="ADHOC - COMMAND LINE" +else + messageGitHubBranchName="_[PR] : ${GITHUB_PR_SOURCE_BRANCH}->${GITHUB_PR_TARGET_BRANCH} (${GITHUB_PR_TRIGGER_SENDER_AUTHOR})_" +fi + +messageTitle="• GITHUB PR WORKFLOW •" + +echo "*********************************" +echo "* Slack Message Values " +echo "*********************************" +echo "messageTitle.............[${messageTitle}]" +echo "messageGitHubBranchName..[${messageGitHubBranchName}]" + +############################## + +#####Developer ######################################### +MESSAGEBLOCKSFORDEV=$(cat <<-EOT + { + "type": "divider" + }, + { + "type": "section", + "text": { + "text": "*GITHUB PR WORKFLOW*", + "type": "mrkdwn" + }, + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*PR Review Request submission from:* ${GITHUB_PR_TRIGGER_SENDER_AUTHOR}" + }, + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Pull Request Title:* ${GITHUB_PR_TITLE}" + }, + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Pull Request Link:* ${GITHUB_PR_URL}" + }, + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Who needs to review?:* @allspark-core-eng" + }, + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Commit Date:* ${GIT_COMMIT_DATE}" + }, + } +EOT +) + +#####Developer ##############################END######## + +#finalizing Developer message +SLACKMESSAGE=$(cat <<-EOT +{ + "text": "${messageTitle}", + "blocks": [${MESSAGEBLOCKSFORDEV}] +} +EOT +) + +echo "********************************" +echo "* Posting Slack Message " +echo "********************************" +#Creating JSON and Sending +echo ${SLACKMESSAGE} > slackMessage.json +CMD="curl -X POST -H 'Content-type: application/json' --data @slackMessage.json ${SLACK_PR_WEBHOOK}" +echo "Developer Notification CMD:[${CMD}]" +eval $CMD + + +exit 0
Chore/slack GitHub PR workflow (#87)
Chore/slack GitHub PR workflow (#87) * PR workflow added to publish message PR on Slack
887bcc5cc2b2bbc2c7ba79b20014af8f7c1be942
--- yarn.lock @@ -22604,16 +22604,6 @@ __metadata: languageName: node linkType: hard -"react-native-flipper@npm:^0.212.0": - version: 0.212.0 - resolution: "react-native-flipper@npm:0.212.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-flipper%2F-%2Freact-native-flipper-0.212.0.tgz" - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-native: ">0.62.0" - checksum: 10c0/15b7cdecba9cf38f903bbe769944c9b1389b21b1a86161bdac47dad9028b756c3c0eb432c741b42699ebd6573cb78c88b8d2ef674e34aa8e73641397822f50cc - languageName: node - linkType: hard - "react-native-gesture-handler@npm:^2.13.3": version: 2.25.0 resolution: "react-native-gesture-handler@npm:2.25.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-gesture-handler%2F-%2Freact-native-gesture-handler-2.25.0.tgz"
chore: update lock file broken by another PR
chore: update lock file broken by another PR
4ee3b44a71b83c143f1dc6d3040213dc0c1214b7
--- packages/allspark-foundation/src/Components/TeamOnboarding/Constants/TeamSelectionConstants.ts @@ -0,0 +1,7 @@ +export const HeaderTitle = 'Personalize your hubs'; +export const HeaderSubText = + 'Your primary team is automatically selected. Choose additional teams to view on your Team and Work hubs.'; +export const MyArea = 'My area'; +export const PrimaryTeam = 'Primary Team'; +export const Teams = 'Teams'; +export const SelectAllTeams = 'Select all teams';
Adding Constants for all local strings
Adding Constants for all local strings
322a02c554ccc34df8efbc1831f4135affecde88
--- src/containers/ChatInput/index.tsx @@ -122,7 +122,9 @@ export const ChatInput = (props: { const [text, setText] = useState(''); const [collapsed, setCollpased] = useState(false); const [capturingAudio, setCapturingAudio] = useState(false); - const [audioDetails, setAudioDetails] = useState<RecordingDetails>(); + const [audioDetails, setAudioDetails] = useState< + RecordingDetails | undefined + >(); const [imageAssets, setImageAssets] = useState<Asset[]>([]); const uploadingResource = useSelector(getUploadingBlob); @@ -187,6 +189,7 @@ export const ChatInput = (props: { lengthMS: audioDetails.secs * 1000, }, }); + setAudioDetails(undefined); } } }; --- src/containers/ChatInput/index.tsx @@ -122,7 +122,9 @@ export const ChatInput = (props: { const [text, setText] = useState(''); const [collapsed, setCollpased] = useState(false); const [capturingAudio, setCapturingAudio] = useState(false); - const [audioDetails, setAudioDetails] = useState<RecordingDetails>(); + const [audioDetails, setAudioDetails] = useState< + RecordingDetails | undefined + >(); const [imageAssets, setImageAssets] = useState<Asset[]>([]); const uploadingResource = useSelector(getUploadingBlob); @@ -187,6 +189,7 @@ export const ChatInput = (props: { lengthMS: audioDetails.secs * 1000, }, }); + setAudioDetails(undefined); } } };
SMBLV-3995: Audio recording to disable send button until it's recorded
SMBLV-3995: Audio recording to disable send button until it's recorded
7e64df32bca267b3b2397ce49cee1c8629e7c0d3
--- package-lock.json @@ -76,7 +76,7 @@ "@walmart/me-at-walmart-athena-queries": "6.0.7", "@walmart/me-at-walmart-common": "6.0.7", "@walmart/me-at-walmart-container": "6.0.7", - "@walmart/metrics-mini-app": "0.20.8", + "@walmart/metrics-mini-app": "0.21.1", "@walmart/mod-flex-mini-app": "1.16.4", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.1.4", @@ -11887,9 +11887,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.20.8", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.20.8.tgz", - "integrity": "sha512-o8vYOtyCsHBa3AZfrqK5OazSuTT3wKsRBEzNs+G80yCjeaSAPTC0UQhkOm8JDE5btpY0vuCsTcFPCQPt5zBwjw==", + "version": "0.21.1", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.21.1.tgz", + "integrity": "sha512-ucaiCeuubA5Bxh2WBBKJh/vXVqeDCS80kZPAL9/I0sBSPhkwMq9I3nr2QX3JALByqzzd9WxPx8cZEcYKsNA1lg==", "hasInstallScript": true, "dependencies": { "base-64": "^1.0.0" --- package.json @@ -117,7 +117,7 @@ "@walmart/me-at-walmart-athena-queries": "6.0.7", "@walmart/me-at-walmart-common": "6.0.7", "@walmart/me-at-walmart-container": "6.0.7", - "@walmart/metrics-mini-app": "0.20.8", + "@walmart/metrics-mini-app": "0.21.1", "@walmart/mod-flex-mini-app": "1.16.4", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.1.4", @@ -377,7 +377,7 @@ "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.7", "@walmart/me-at-walmart-common": "6.0.7", - "@walmart/metrics-mini-app": "0.20.8", + "@walmart/metrics-mini-app": "0.21.1", "@walmart/mod-flex-mini-app": "1.16.4", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.1.4",
Bumping metrics version for Drop 21
Bumping metrics version for Drop 21
245876362edaca7d784fda3ca29f088adc84dd5c
--- __tests__/core/httpClientInitTest.ts @@ -275,7 +275,7 @@ describe('getCorrelationId', () => { }); const id = getCorrelationId(); - expect(id).toEqual(mockSessionId); + expect(id).toEqual(`US-${mockSessionId}`); expect(mockGetStore).toHaveBeenCalled(); expect(mockGetState).toHaveBeenCalled(); });
Test fix
Test fix
6d978d8b8b72672c474f09201dc659b40a53abad
--- packages/allspark-foundation/src/Config/selectors.ts @@ -9,6 +9,9 @@ const getContainerConfig = createSelector( (data) => data?.container || data?.core ); +const createFeatureConfigSelector = (featureId: string) => + createSelector([GeneratedSelectors.getData], (data) => data?.[featureId]); + /** * A collection of selectors for retrieving configuration data from the Redux store. * @@ -26,12 +29,27 @@ const getContainerConfig = createSelector( */ export const ConfigSelectors = { ...GeneratedSelectors, - createFeatureConfigSelector: (featureId: string) => - createSelector([GeneratedSelectors.getData], (data) => data?.[featureId]), getContainerConfig, createContainerConfigSelector: (key: string, defaultValue?: any) => createSelector( [getContainerConfig], (config) => config?.[key] || defaultValue ), + createContainerConfigValueSelector: (key: string, defaultValue?: any) => + createSelector( + [getContainerConfig], + (config) => config?.[key] || defaultValue + ), + createFeatureConfigSelector, + createFeatureConfigValueSelector: ( + featureId: string, + key: string, + defaultValue?: any + ) => { + const featureConfigSelector = createFeatureConfigSelector(featureId); + return createSelector( + [featureConfigSelector], + (config) => config?.[key] || defaultValue + ); + }, };
feat(config): add utilities for easier config selector creation
feat(config): add utilities for easier config selector creation
88e49593c460227550a10fbcc46a5eca40999350
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 75 + versionCode 76 versionName "1.0.5" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>75</string> + <string>76</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>75</string> + <string>76</string> </dict> </plist>
Incrementing build number
Incrementing build number
3ac81bdddf157589722f04563c0a359a57940415
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/styles.ts @@ -22,5 +22,5 @@ export default StyleSheet.create({ marginBottom: 8, width: 'auto', }, - floatingButtonStyle: { position: 'absolute', bottom: 20, right: 10 }, + floatingButtonStyle: { position: 'absolute', bottom: 16, right: 4 }, });
Remove the cancel button from the Team selection screen
Remove the cancel button from the Team selection screen
a30565fe1ace0720f77e00365f1e5ebb51300917
--- src/index.tsx @@ -2,7 +2,7 @@ import React from 'react'; import {firebase} from '@react-native-firebase/app-check'; import {TeamHub, TextingNavigation} from './navigation'; -import {initi18n} from './translations'; +import {initi18n, MY_TEAM_I18N_NAMESPACE} from './translations'; import {SafeAreaProvider} from 'react-native-safe-area-context'; import {PresenceProvider} from '@walmart/wmconnect-mini-app'; import {useSelector} from 'react-redux'; @@ -10,6 +10,10 @@ import {UserSelectors} from '@walmart/allspark-foundation/User'; import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; import {RosterWidget} from './components/RosterWidget'; import {ClockGuard} from '@walmart/allspark-foundation/Clock/withClockGuard'; //Todo: Remove this once the Phase 4 migration is completed +import {HubHeader} from '@walmart/allspark-foundation-hub/HubFeature'; +import {useTranslation} from 'react-i18next'; +import {Text} from 'react-native'; +import {Button} from '@walmart/gtp-shared-components'; // TODO: This needs to be reconsidered when we go production export const initialize = async (debugToken: string) => { @@ -42,6 +46,51 @@ AllsparkComponentContainers.add( RosterWidget, ); +const Header = (props: any) => { + const {t} = useTranslation([MY_TEAM_I18N_NAMESPACE]); + return ( + <HubHeader title={t('hubheader.title')} subText={t('hubheader.subText')} /> + ); +}; + +AllsparkComponentContainers.add( + 'Me@Walmart.ManagerExperience.MyTeam', + 'roster.header', + Header, +); + +const Btn = (props: any) => ( + <Button + variant='secondary' + size='medium' + UNSAFE_style={{ + justifyContent: 'center', + paddingHorizontal: 16, + height: 48, + shadowOffset: {width: 0, height: 3}, + shadowOpacity: 0.15, + shadowRadius: 5, + elevation: 200, + }} + onPress={() => console.log('use this callback for navigation')}> + <Text + style={{ + fontSize: 16, + lineHeight: 24, + textAlign: 'center', + paddingLeft: 8, + fontFamily: 'Bogle-Bold', + }}> + {'Notes'} + </Text> + </Button> +); +AllsparkComponentContainers.add( + 'Me@Walmart.ManagerExperience.MyTeam', + 'floating.button', + Btn, +); + export const MyTeamMiniApp = () => { return ( <SafeAreaProvider> --- src/navigation/index.tsx @@ -114,10 +114,8 @@ export const TeamHub = () => { 'manager-experience', 'myTeam.root', ['roster'], - { - title: t('hubHeader.title'), - subText: t('hubHeader.subText'), - }, + 'roster.header', + 'floating.button', ) .validate() .render();
added floating button and header to create
added floating button and header to create
cc43d909af6ec5de78165c746de724343c10421c
--- core/__tests__/core/__snapshots__/ClockOutGuardTest.tsx.snap @@ -10,6 +10,7 @@ exports[`ClockOutGuard matches snapshot when clocked out; navigates home on butt <ClockOutOverlay buttonTitle="clockOutGuard.action" content="clockOutGuard.content" + onButtonPress={[MockFunction]} title="clockOutGuard.title" /> `;
updated broken snapshot
updated broken snapshot
245769012674b27a99acec092655654469b217d6
--- package.json @@ -302,7 +302,7 @@ } }, "transformIgnorePatterns": [ - "<rootDir>/node_modules/(?!(react-native|@walmart/core-utils|@walmart/core-services|@walmart/core-services-allspark|@walmart/gtp-shared-components|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-gesture-handler|@react-native|@living-design|@react-native-community/datetimepicker|@testing-library|jest-diff)/)" + "<rootDir>/node_modules/(?!(react-native|@walmart/core-utils|@walmart/core-services|@walmart/core-services-allspark|@walmart/gtp-shared-components|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-gesture-handler|@react-native|@living-design|@react-native-community/datetimepicker|@testing-library|jest-diff|jest-matcher-utils)/)" ], "moduleNameMapper": { "@walmart/react-native-logger/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/react-native-logger.js",
chore: looper fix
chore: looper fix
9b8c02bd9ac9d6d347594ec91f1cee0facceb034
--- packages/allspark-foundation/__tests__/Clock/saga.test.ts @@ -95,12 +95,6 @@ describe('waitForClockInit and waitForClockFetch Saga', () => { }); it('should handle errors from fetch service', () => { - const selectorGetLoading = jest.fn(() => false); - const selectorGetLoaded = jest.fn(() => false); - const selectorGetError = jest.fn(() => true); - ClockSelectors.getLoading = selectorGetLoading; - ClockSelectors.getLoaded = selectorGetLoaded; - ClockSelectors.getError = selectorGetError; const generator = waitForClockFetch(); expect(generator.next().value).toEqual(select(ClockSelectors.getLoading)); expect(generator.next(false).value).toEqual(select(ClockSelectors.getLoaded));
pr fix clock saga
pr fix clock saga
0a7f912025cf0dd3b0adb3e10e9cc4bff46f285d
--- ios/Podfile.lock @@ -508,14 +508,14 @@ PODS: - RNWMSSOLibrary (1.1.0): - AppAuth - React - - SSO (= 1.3.6) + - SSO (= 1.3.9) - SDWebImage (5.11.0): - SDWebImage/Core (= 5.11.0) - SDWebImage/Core (5.11.0) - SDWebImageWebPCoder (0.6.1): - libwebp (~> 1.0) - SDWebImage/Core (~> 5.7) - - SSO (1.3.6): + - SSO (1.3.9): - AppAuth - Starscream (3.0.6) - Yoga (1.14.0) @@ -872,10 +872,10 @@ SPEC CHECKSUMS: RNSoundPlayer: e7f72cf262c8de4f1427b5f29cc47aebadd1d872 RNSVG: ce9d996113475209013317e48b05c21ee988d42e RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59 - RNWMSSOLibrary: 3cfea6819cdc39dd81a099265b0b1ca647b4a7b7 + RNWMSSOLibrary: fb222d54c1f035d59342b89c7b621dd40f3bb7bf SDWebImage: 7acbb57630ac7db4a495547fb73916ff3e432f6b SDWebImageWebPCoder: d0dac55073088d24b2ac1b191a71a8f8d0adac21 - SSO: 0544388c456f4758ada3f9e2fa124b8e277da8ac + SSO: f94c86ec89040a8372f83e44005d193d0b97eeac Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 --- package-lock.json @@ -12782,9 +12782,9 @@ "integrity": "sha512-Ls9qiNZzW/OLFoI25wfjjAcrf2DZ975hn2vr6U9gyuxi2nooVbzQeFoQS5vQcbCt9QX5NY8ASEEAtlLdIa6KVg==" }, "react-native-ssmp-sso-allspark": { - "version": "1.1.8", - "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.1.8.tgz", - "integrity": "sha512-oGufwIZsk94ikUOiUkkKvu3MYR21k6sLdI1tqAc70EQD9RVEytFLGDLNluaX62JdkLOGyKoBwZWpwG/TntRazA==" + "version": "1.2.2", + "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.2.2.tgz", + "integrity": "sha512-u4UdlRN4pWnxX5MrhiRldbylKkO2G1vsymDlPOMIKO5TevamlcTG9TgPYqwAjOjLUY0TaEB9hdYxMJ9iiLaxrg==" }, "react-native-sumo-sdk": { "version": "2.7.4-rc.9",
package lock and podfile lock
package lock and podfile lock
b249e83a60b53d1579fbd0c976db7947fa4c6237
--- packages/me-at-walmart-container/__tests__/services/navConfig.test.ts @@ -14,7 +14,7 @@ import { fetch, addChangeListener } from '../../src/services/navConfig'; -import { navConfig, transformedNavConfig } from '../utils/navConfig'; +import { navConfig, transformedNavConfig } from '../utils/mockNavConfigData'; describe('NavConfigLogger Module', () => { it('should export NavConfigLogger as an instance of MeAtWalmartLoggerService', () => { --- packages/me-at-walmart-container/__tests__/utils/mockNavConfigData.js
renamed packages/me-at-walmart-container/tests/utils/navConfig.js to packages/me-at-walmart-container/tests/utils/mockNavConfigData.js
renamed packages/me-at-walmart-container/tests/utils/navConfig.js to packages/me-at-walmart-container/tests/utils/mockNavConfigData.js
c6b23436ad2c4ea6054f40c40012c8e4b53b4ce1
--- package-lock.json @@ -3319,9 +3319,9 @@ } }, "@walmart/config-components": { - "version": "1.0.33", - "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-1.0.33.tgz", - "integrity": "sha512-hvSeIypkkOswVscxg7izoW1UVUXvEcGICCUY6VIH3COjKvv1WnJRhrqFC7Bs88YmVjg5guDctbYAD8QsOXsu9Q==" + "version": "1.0.34", + "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-1.0.34.tgz", + "integrity": "sha512-P5zBfZMsEFSdYz7mrJsRtKoMEuoZ4ND3HEQ1dxC/MLDEo/DnEFWXicdIHVVhWgKYZYIIBv/sfjQiOHLX8S4c2A==" }, "@walmart/counts-component-miniapp": { "version": "0.0.22", @@ -12712,7 +12712,7 @@ "react-native-connect-sso-redux": { "version": "1.0.1", "resolved": "https://npme.walmart.com/react-native-connect-sso-redux/-/react-native-connect-sso-redux-1.0.1.tgz", - "integrity": "sha512-RJADBxeUB3qlJ6D0qyljw6ePrCWobUObZ/j7cxK1M4NTYCn/OGVm6TuVO80WzHyi3/1wVscTSNdoF/m/+10ipQ==" + "integrity": "sha1-qd4UZjKEiXDiPtd13qB/sjL988Y=" }, "react-native-device-info": { "version": "5.6.5", @@ -13163,27 +13163,27 @@ "react-native-wm-config": { "version": "0.1.1", "resolved": "https://npme.walmart.com/react-native-wm-config/-/react-native-wm-config-0.1.1.tgz", - "integrity": "sha512-s3S3bciDoyVqUyfzVKsXJp+aQxPriU62yL+cvbBJB6d7sGnCFHDQHF7/2y8YfK4Qc756VQ2o3SgCzlcQEYoTEw==" + "integrity": "sha1-Nn+tRZascRxL031AMLmpsn4nbB4=" }, "react-native-wm-network": { "version": "0.1.0", "resolved": "https://npme.walmart.com/react-native-wm-network/-/react-native-wm-network-0.1.0.tgz", - "integrity": "sha512-lDgyoghNlFRRCK0ET3vYy+HzYK0sENPxs77RkHbkr1VxY2vMlC8MbyU5Hg13ORnDf7qst5A0bVz2bocVHR2k8Q==" + "integrity": "sha1-FagRyJUW+/eIfL/NqCnPfrY632I=" }, "react-native-wm-notification": { "version": "2.0.0", "resolved": "https://npme.walmart.com/react-native-wm-notification/-/react-native-wm-notification-2.0.0.tgz", - "integrity": "sha512-TqMxfERxOKomh3P9hGh0lGUTTLv5X6zCZMF2xXJp3hggtbT0l1o0LN5/S+ptR3QdEO48TxHLtWC0LgstkJ/UYQ==" + "integrity": "sha1-48bg0mzjuQpCaLOjUbwd+z20aj8=" }, "react-native-wm-telemetry": { "version": "0.3.0", "resolved": "https://npme.walmart.com/react-native-wm-telemetry/-/react-native-wm-telemetry-0.3.0.tgz", - "integrity": "sha512-zTOSJ7BMbGHaqAF8+LDQI/s5winKcxsHSe4hv49gUbfDz19v71apgNchz31W1D2UQP+kNgrglrmCdmr5RdI8mw==" + "integrity": "sha1-8QwZvpngLi+J6pHSOcu+5HqQcLs=" }, "react-native-wm-voice-text": { "version": "0.5.0", "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.5.0.tgz", - "integrity": "sha512-PKaL0MFy+VjTT4wcx/v90BlvlRXgdWGUU8Sz/760A2Esj175A8w/vFQCtZhUer5FVxmpYVKk7nHzoewii4ygRw==" + "integrity": "sha1-BCBLE9teUsdgAcNTXImFU/p4Niw=" }, "react-query": { "version": "3.34.8", @@ -14186,7 +14186,7 @@ "squiggly-localization": { "version": "0.0.2", "resolved": "https://npme.walmart.com/squiggly-localization/-/squiggly-localization-0.0.2.tgz", - "integrity": "sha512-9j/XUl0XvLk5wksN/nhOcRHmHesVHopX7v3Z1Hv398/656CLarKW0FAqL28zjKO68YH566s8PM1gflrAayBuMA==" + "integrity": "sha1-3ksz5Io53VPnUBiRSVDpxDaSGHU=" }, "sshpk": { "version": "1.16.1", @@ -15446,7 +15446,7 @@ "wfm-allspark-data-library": { "version": "0.0.11", "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz", - "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==", + "integrity": "sha1-E27LsiPO+Sbj5h3p0FQpcH9VU8g=", "requires": { "@walmart/functional-components": "^1.0.22", "@walmart/react-native-env": "^0.1.0", @@ -15460,7 +15460,7 @@ "@walmart/react-native-env": { "version": "0.1.0", "resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.1.0.tgz", - "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ==" + "integrity": "sha1-ojNwDE5pPTzF1RuQXDc//Fnlpz0=" }, "moment": { "version": "2.24.0", @@ -15470,7 +15470,7 @@ "react-native-ssmp-sso-allspark": { "version": "0.0.1-rc8", "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz", - "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg==" + "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s=" } } }, @@ -15527,12 +15527,12 @@ "wifi-store-locator": { "version": "1.0.0-alpha2", "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.0-alpha2.tgz", - "integrity": "sha512-Gj0fP/NwQAguJrxEuRuHQjlUHDDH2qnFZAGgh1R0l1CUAPKFROL8L8gHZ1GDKnfoYMev7AOXKcEbZVcXpNomOg==" + "integrity": "sha1-W1OXsVMHI8dYMcI0QKg6pJO/R3Q=" }, "wm-react-native-vector-icons": { "version": "1.0.33", "resolved": "https://npme.walmart.com/wm-react-native-vector-icons/-/wm-react-native-vector-icons-1.0.33.tgz", - "integrity": "sha512-pAcEq6iOVxzKM55qucKOkh2ML3kii4yGJ5YdmMEOcRAGH4fQ1lHa7BETIl+jzX5n1ZVKgWkzmAiH3vw0nkuklQ==", + "integrity": "sha1-vIAL0WOWBBaAsIuacYHnzsxTQxk=", "requires": { "lodash": "^4.0.0", "prop-types": "^15.6.2", --- package.json @@ -74,7 +74,7 @@ "@walmart/allspark-home-mini-app": "0.5.2", "@walmart/allspark-me-mini-app": "0.2.4", "@walmart/ask-sam-mini-app": "0.30.29", - "@walmart/config-components": "^1.0.33", + "@walmart/config-components": "^1.0.34", "@walmart/counts-component-miniapp": "0.0.22", "@walmart/exception-mini-app": "0.37.1", "@walmart/feedback-all-spark-miniapp": "0.0.59",
SSMP-2486
SSMP-2486
44214b9eed3a8500565224ae9ded3932475b7b0b
--- packages/celebration-mini-app-graphql/src/components/Widget/HubCelebrationWidget.tsx @@ -44,7 +44,7 @@ import React, {useEffect, useMemo, useState, useCallback} from 'react'; import {View, AccessibilityInfo} from 'react-native'; import {Body, Divider} from '@walmart/gtp-shared-components'; -import {HubWidgetV2} from '@walmart/allspark-foundation-hub'; +import {HubWidget} from '@walmart/my-walmart-hub'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation'; // Import from our GraphQL mock implementation @@ -589,7 +589,7 @@ const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = ({ // Render widget based on configuration return widgetEnabled ? ( - <HubWidgetV2 + <HubWidget id='hub-celebration-widget' title={title} description={description} @@ -602,7 +602,7 @@ const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = ({ {...additionalProps} > {state === 'default' && content} - </HubWidgetV2> + </HubWidget> ) : null; };
feat(ui): resolve merge conflicts
feat(ui): resolve merge conflicts
013398702c8fb18da3cc2d59103c2cca36fcbda5
--- fastlane/Fastfile @@ -51,14 +51,6 @@ lane :set_build do ) end -before_all do |lane, options| - # ... -end - -before_each do |lane, options| - # ... -end - desc "Upload IPA and APK to App Center" lane :submit_to_appcenter do |options| @@ -67,6 +59,7 @@ lane :submit_to_appcenter do |options| if options[:BUILD_OUTPUT] appcenter_upload( file: options[:BUILD_OUTPUT], + release_notes: release_notes.join("\n\n"), # renders each line in a <p/> in App Center upload_build_only: true) end session[:download_link] = Actions.lane_context[SharedValues::APPCENTER_DOWNLOAD_LINK] @@ -76,6 +69,20 @@ lane :submit_to_appcenter do |options| save_session end +def release_notes() + + result = [] + result << %{#{ENV['version']} (#{ENV['env']})} + + result << %{Branch: `#{ENV['GITHUB_BRANCH_NAME']}` (#{ENV['GITHUB_BRANCH_HEAD_SHA'][0...8]})} + result << %{Title: #{ENV['GIT_COMMIT_MESSAGE']} by #{ENV['GIT_COMMIT_AUTHOR']}} + result << %{Branch URL: <#{ENV['GITHUB_BRANCH_URL']}>} + + result << %Q{Looper: <#{ENV['BUILD_URL']}>} + result + +end + # Use the `session` hash and the `save_session` method to store values # you want to use across Fastlast lanes.
added release notes to AppCenter build
added release notes to AppCenter build
110e48f955c09885e5fce6e09fcd186993e1d7e0
--- package.json @@ -99,9 +99,9 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.25.0", + "@walmart/roster-mini-app": "2.25.2", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.23.0", + "@walmart/wmconnect-mini-app": "2.23.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- yarn.lock @@ -6561,9 +6561,9 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.25.0" + "@walmart/roster-mini-app": "npm:2.25.2" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.23.0" + "@walmart/wmconnect-mini-app": "npm:2.23.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6745,9 +6745,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.25.0": - version: 2.25.0 - resolution: "@walmart/roster-mini-app@npm:2.25.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2Froster-mini-app-2.25.0.tgz" +"@walmart/roster-mini-app@npm:2.25.2": + version: 2.25.2 + resolution: "@walmart/roster-mini-app@npm:2.25.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-2.25.2.tgz" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6789,7 +6789,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/a92a7d87138b90f0affcb987780b3da5347a5dde9bcf8a6d512a1668f02c57eab2774749b4eb79546cb349fb1a0a52c78102335dfa937944ac98c080488a6e39 + checksum: 10c0/60fe6a3b2bdea1b9e9ceb9ceb5279503b0b072232e2740c956184438933352eb150644d99bc187f2a0cfd14e861f0ae9f8e107aced509304bc1fd15a0cdc41c5 languageName: node linkType: hard @@ -6813,9 +6813,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.23.0": - version: 2.23.0 - resolution: "@walmart/wmconnect-mini-app@npm:2.23.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.23.0.tgz" +"@walmart/wmconnect-mini-app@npm:2.23.1": + version: 2.23.1 + resolution: "@walmart/wmconnect-mini-app@npm:2.23.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-2.23.1.tgz" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6855,7 +6855,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/3fb21cc559b7cfcf47f6a55a3659bb6dc2087c0f6599170bca13892b7013280e6c61d9c981e0eec4f248bac17ac5fbd994f3fa70092d7c0600295b9a00d50dc5 + checksum: 10c0/a06e03971565433bf73c257e0a515217638dc58229722b918ed44beb0556a9b1fd2937a9e72e5ba4fea60046d9bf4dfd2b49e55f158b86df7dbe682865a52f68 languageName: node linkType: hard
fix(ui): update modal for roster and womconnect screens
fix(ui): update modal for roster and womconnect screens
03774234c7da01d87348006af8af170de5ecb65b
--- package-lock.json @@ -67,7 +67,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.1.6", + "@walmart/wmconnect-mini-app": "1.2.0", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -12029,9 +12029,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.1.6", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.1.6.tgz", - "integrity": "sha512-sBIJdwgroQvgXxFfeZDWPj/RBc72Ps5As/w14/s3oqH8K1ZV7WaeI4WtKBWoTpWATTKI/y5l3a2KAISRoJUGFA==", + "version": "1.2.0", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.2.0.tgz", + "integrity": "sha512-Hpd+8p25mbt0KiICCllq6c2QmiDvfni4IXNRyJYB3Vf9Hl82iYK2uqOZGhQg/QrhpMQ26b59By6Lc8AVHHI7NA==", "dev": true, "hasInstallScript": true }, @@ -42038,9 +42038,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.1.6", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.1.6.tgz", - "integrity": "sha512-sBIJdwgroQvgXxFfeZDWPj/RBc72Ps5As/w14/s3oqH8K1ZV7WaeI4WtKBWoTpWATTKI/y5l3a2KAISRoJUGFA==", + "version": "1.2.0", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.2.0.tgz", + "integrity": "sha512-Hpd+8p25mbt0KiICCllq6c2QmiDvfni4IXNRyJYB3Vf9Hl82iYK2uqOZGhQg/QrhpMQ26b59By6Lc8AVHHI7NA==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -90,7 +90,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.1.6", + "@walmart/wmconnect-mini-app": "1.2.0", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
feat(ui): updating package version smdv-5695
feat(ui): updating package version smdv-5695
bff74242dee2508c110a92c75aed23710b853813
--- package-lock.json @@ -3159,9 +3159,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.3.29-rc.3", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.3.29-rc.3.tgz", - "integrity": "sha512-2fHNeC6VS78QH07OIpF+r6SDIqZm72jSUNf6bKFvdMtTV8LDtnuOe9ya9OpbpPIuxXQhM6gZesUh4jxVVcUkDQ==" + "version": "0.3.31", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.3.31.tgz", + "integrity": "sha512-KGBD663lwdOsbwTsgbSvPhHb3g1Ettr3rBVE0S1Mhs6tQSQlQL9ARp/i8liqgw35PKDkfFT5WgjmSrcFliflwA==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -70,7 +70,7 @@ "@walmart/impersonation-mini-app": "1.0.14", "@walmart/inbox-mini-app": "0.0.91", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.3.29-rc.3", + "@walmart/push-to-talk-mini-app": "0.3.31", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.25.0", "@walmart/react-native-shared-navigation": "^0.4.0",
PTT Mini app version update to v0.3.31 (#461)
PTT Mini app version update to v0.3.31 (#461) * PTT Mini app version update to v0.3.30 * PTT Version bump Co-authored-by: Ernesto Ruano Mamud <ernesto.ruanomamud@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
d9cd7219655ee833597444b2a9e277483687ce81
--- __tests__/__mocks__/@walmart/associate-listening-mini-app.js @@ -0,0 +1,4 @@ +module.exports = { + AesSurveyCard: 'AesSurveyCard', + AvailableSurveysNav: 'AvailableSurveysNav', +}; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -150,6 +150,10 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects component="PayStubMiniApp" name="paystub" /> + <Screen + component="AvailableSurveysNav" + name="associateListening.survey" + /> <Screen component="AuthScreen" name="money.auth" @@ -513,6 +517,10 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects component="PayStubMiniApp" name="paystub" /> + <Screen + component="AvailableSurveysNav" + name="associateListening.survey" + /> <Screen component="AuthScreen" name="money.auth" --- package.json @@ -86,6 +86,7 @@ "@walmart/amp-mini-app": "1.1.80", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.22.3", + "@walmart/associate-listening-mini-app": "1.2.1-feat-529b8e6", "@walmart/attendance-mini-app": "3.44.0", "@walmart/avp-feature-app": "0.5.1", "@walmart/avp-shared-library": "0.5.2", --- src/home/containers/HomeScreen/defaultLayout.ts @@ -39,6 +39,11 @@ export default [ component: 'CellularDataSaver', }, ], + [ + { + component: 'AesSurveyCard', + }, + ], [ { component: 'TaskCard', --- src/home/containers/HomeScreen/index.tsx @@ -7,6 +7,7 @@ import {ParamListBase} from '@react-navigation/native'; import {LinearGradient} from 'expo-linear-gradient'; import moment from 'moment-timezone'; +import {AesSurveyCard} from '@walmart/associate-listening-mini-app'; import {Body, colors} from '@walmart/gtp-shared-components'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {DashboardCard} from '@walmart/schedule-mini-app'; @@ -43,6 +44,7 @@ export const StaticLayout = { LinkCard: (props: any) => <LinkCard style={styles.cardStyle} {...props} />, SurveySaysCard: () => <SurveySaysCard />, CellularDataSaver: () => <DataSaverWidget style={styles.cardStyle} />, + AesSurveyCard: () => <AesSurveyCard />, }; export const HomeScreen: React.FC<Props> = (props) => { --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -10,6 +10,7 @@ import {ConnectedCallingMiniApp} from '@walmart/calling-mini-app'; import {CheckoutMiniApp} from '@walmart/checkout-mini-app'; import {EmergencyBannerScreen} from '@walmart/emergency-mini-app'; import {ExceptionMiniApp as PinpointMiniApp} from '@walmart/exception-mini-app'; +import {AvailableSurveysNav} from '@walmart/associate-listening-mini-app'; import {FacilitiesMaintainanceStack} from '@walmart/facilities-management-miniapp'; import { FeedbackMiniApp, @@ -229,6 +230,10 @@ export const MainStackNav = () => { /> <MainStack.Screen name='WmPlus' component={WmPlusMiniApp} /> <MainStack.Screen name='paystub' component={PayStubMiniApp} /> + <MainStack.Screen + component={AvailableSurveysNav} + name={'associateListening.survey'} + /> <MainStack.Screen name='money.auth' component={MoneyAuthScreen} --- yarn.lock @@ -5664,6 +5664,33 @@ __metadata: languageName: node linkType: hard +"@walmart/associate-listening-mini-app@npm:1.2.1-feat-529b8e6": + version: 1.2.1-feat-529b8e6 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.1-feat-529b8e6" + dependencies: + "@walmart/associate-listening-utils": "npm:5.0.45" + peerDependencies: + "@react-navigation/native": ^6.0.0 + "@react-navigation/stack": ^6.1.0 + "@reduxjs/toolkit": ^1.9.5 + "@walmart/core-services": ~2.0.11 + "@walmart/gtp-shared-components": 2.0.5 + react: ^18.2.0 + react-native: 0.70.9 + checksum: 10c0/5bb11d800de9c4a3d1d50d2a4d60d3688c220fc187d4b29d3757ab8b53dbcc83616a625ca433c4c9d47366244701c8536c7a25e0a79a54386179a7a51a542794 + languageName: node + linkType: hard + +"@walmart/associate-listening-utils@npm:5.0.45": + version: 5.0.45 + resolution: "@walmart/associate-listening-utils@npm:5.0.45" + dependencies: + "@types/semver": "npm:^7.3.4" + semver: "npm:^7.3.4" + checksum: 10c0/613679715183350e2dbedf587474b68f21a1c4edb1747d5ba7bf2c90d0db917e505ecf3e81a588554ccc4a1f0bc281a740b8775ba2daa0615b1df59fb1bf009b + languageName: node + linkType: hard + "@walmart/attendance-mini-app@npm:3.44.0": version: 3.44.0 resolution: "@walmart/attendance-mini-app@npm:3.44.0" @@ -7746,6 +7773,7 @@ __metadata: "@walmart/amp-mini-app": "npm:1.1.80" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.22.3" + "@walmart/associate-listening-mini-app": "npm:1.2.1-feat-529b8e6" "@walmart/attendance-mini-app": "npm:3.44.0" "@walmart/avp-feature-app": "npm:0.5.1" "@walmart/avp-shared-library": "npm:0.5.2"
feat: aes survey integration
feat: aes survey integration
47ac28744e0a3d48bf78da27cecf7a72fc20c474
--- package.json @@ -72,7 +72,7 @@ "@walmart/gtp-shared-components": "^0.2.2", "@walmart/impersonation-mini-app": "1.0.15", "@walmart/inbox-mini-app": "0.0.92", - "@walmart/ItemInfo": "0.1.123", + "@walmart/ItemInfo": "0.1.124", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.4", "@walmart/react-native-env": "^0.1.0",
iteminfo 124
iteminfo 124
abcbb825a7a408aef997d6239c6f1dbd249436d8
--- package.json @@ -89,7 +89,7 @@ "@walmart/exception-mini-app": "0.42.1", "@walmart/facilities-management-miniapp": "0.2.2", "@walmart/feedback-all-spark-miniapp": "0.6.0", - "@walmart/financial-wellbeing-feature-app": "1.0.22", + "@walmart/financial-wellbeing-feature-app": "1.0.23", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.8.9", --- scannedError.log @@ -0,0 +1,4 @@ +Build failed as we were not able to launch simulator for ( +Please relaunch the build process +Build failed as we were not able to launch simulator for ( +Please relaunch the build process
financial-wellbeing-feature-app - v1.0.23
financial-wellbeing-feature-app - v1.0.23
9a024a91c45cab9dbcbf128ded4fb23ecdb72b28
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.254.0-rc.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.254.0-rc.0.tgz", - "integrity": "sha512-Eznjvw57SWVzjaQAqYdouEeXKmQbQdRMtTS2azj2hxKIsRhmE4BH5KIbUuL7PtmIOkUTc8bSdo7ZGlmuwBb3RQ==" + "version": "0.255.0-rc.1", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.255.0-rc.1.tgz", + "integrity": "sha512-+b39WK4nOtoUwmFgjBX3NPh1dnXIj/IiJdd1alvEZ5o3/mHjz1MJpDbPlD2/ayHMdKOsvdFb3+P0z9fT0kM77A==" }, "@walmart/time-clock-mini-app": { "version": "0.4.32", --- 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.254.0-rc.0", + "@walmart/taskit-mini-app": "0.255.0-rc.1", "@walmart/time-clock-mini-app": "0.4.32", "@walmart/ui-components": "1.3.0-rc.14", "@walmart/welcomeme-mini-app": "0.47.0",
upgrading taskit version
upgrading taskit version
86cfbab16964bb396ea9e6ac3c1cd1059723270f
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.12", + "version": "1.0.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/myteam-mini-app", - "version": "1.0.12", + "version": "1.0.13", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", @@ -65,9 +65,9 @@ "@walmart/react-native-scanner-3.0": "0.4.2", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", - "@walmart/roster-mini-app": "1.0.14", + "@walmart/roster-mini-app": "1.0.15", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.12", + "@walmart/wmconnect-mini-app": "1.0.13", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11815,9 +11815,9 @@ } }, "node_modules/@walmart/roster-mini-app": { - "version": "1.0.14", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.14.tgz", - "integrity": "sha512-mouijH1CRXGSH5oOrer5zYs261ISIgTCN5iqPm6Ok0QZBbrNZqyyPRCZyx+BSCyVgCjyDt0XK6fD9wRsVPDM8Q==", + "version": "1.0.15", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.15.tgz", + "integrity": "sha512-v6ZE61LfyB/BWjZhrRlzZbX8KutT/YvSsZy61d8a9bBzk5JHSkBvNGkcCXoxQK/32ja0DqqL5kBOkENv4uPA3A==", "dev": true, "hasInstallScript": true }, @@ -11844,9 +11844,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.12", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.12.tgz", - "integrity": "sha512-0vaDvQB55hCZ0hRtAj1Dg4QOwAd+7H0WOeRmM8SlP/ZqEJ9DV6vy1mvKqtO0O+P/SpiQFwY/80EubJuKddNAfA==", + "version": "1.0.13", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.13.tgz", + "integrity": "sha512-8rrTfCmARDX3Y4wTfGG+o3bT4YXlZF4GysAJgn0KSjCq3Cr79r+6E3Zzbdlnqc883bamfAMrnqPe/cwTZSNiLw==", "dev": true, "hasInstallScript": true }, @@ -41047,9 +41047,9 @@ } }, "@walmart/roster-mini-app": { - "version": "1.0.14", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.14.tgz", - "integrity": "sha512-mouijH1CRXGSH5oOrer5zYs261ISIgTCN5iqPm6Ok0QZBbrNZqyyPRCZyx+BSCyVgCjyDt0XK6fD9wRsVPDM8Q==", + "version": "1.0.15", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.15.tgz", + "integrity": "sha512-v6ZE61LfyB/BWjZhrRlzZbX8KutT/YvSsZy61d8a9bBzk5JHSkBvNGkcCXoxQK/32ja0DqqL5kBOkENv4uPA3A==", "dev": true }, "@walmart/ui-components": { @@ -41064,9 +41064,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.12", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.12.tgz", - "integrity": "sha512-0vaDvQB55hCZ0hRtAj1Dg4QOwAd+7H0WOeRmM8SlP/ZqEJ9DV6vy1mvKqtO0O+P/SpiQFwY/80EubJuKddNAfA==", + "version": "1.0.13", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.13.tgz", + "integrity": "sha512-8rrTfCmARDX3Y4wTfGG+o3bT4YXlZF4GysAJgn0KSjCq3Cr79r+6E3Zzbdlnqc883bamfAMrnqPe/cwTZSNiLw==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.12", + "version": "1.0.13", "private": false, "main": "dist/index.js", "files": [ @@ -88,8 +88,8 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.12", - "@walmart/roster-mini-app": "1.0.14", + "@walmart/wmconnect-mini-app": "1.0.13", + "@walmart/roster-mini-app": "1.0.15", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
Update version
Update version
380e147f7ad4ef114a9add134b26978a9f9e47f4
--- package-lock.json @@ -79,7 +79,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", - "@walmart/taskit-mini-app": "2.24.2", + "@walmart/taskit-mini-app": "2.24.4", "@walmart/time-clock-mini-app": "2.49.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", @@ -6038,9 +6038,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "2.24.2", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.2.tgz", - "integrity": "sha512-uhLLL6QUFD89irhLLN23W5AtM+AejCsH/6r4zYzi9Oq6y8E2uarVjV5OZ4EQW6O1uCp3KnT26tmG2Epvq8mpuA==", + "version": "2.24.4", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.4.tgz", + "integrity": "sha512-Jy9FkmUWwmZ5W5FaciZLVbS36S2hfq1/1zBiH0jIybeikxDdCGHrz7Aa4bgs1R+1bD1lRO4AolOneU3rwGQs4Q==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -25346,9 +25346,9 @@ "integrity": "sha512-6P9nNTvcS59vzeWoi2JKT4ldRTQgMShlzThbbagd6PzbPkOS+M2Tx009eR8GGL5YNwxUP1n3PKmCudppwE0J+w==" }, "@walmart/taskit-mini-app": { - "version": "2.24.2", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.2.tgz", - "integrity": "sha512-uhLLL6QUFD89irhLLN23W5AtM+AejCsH/6r4zYzi9Oq6y8E2uarVjV5OZ4EQW6O1uCp3KnT26tmG2Epvq8mpuA==" + "version": "2.24.4", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.4.tgz", + "integrity": "sha512-Jy9FkmUWwmZ5W5FaciZLVbS36S2hfq1/1zBiH0jIybeikxDdCGHrz7Aa4bgs1R+1bD1lRO4AolOneU3rwGQs4Q==" }, "@walmart/tcnumber": { "version": "2.3.3", --- package.json @@ -121,7 +121,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", - "@walmart/taskit-mini-app": "2.24.2", + "@walmart/taskit-mini-app": "2.24.4", "@walmart/time-clock-mini-app": "2.49.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0",
Updating taskIt version
Updating taskIt version
83a3abc046d4f0b13c289006d43f021094d4aaac
--- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.24.1-alpha.0", + "version": "6.25.0", "npmClient": "yarn", "changelogPreset": "angular", "command": { --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "6.24.1-alpha.0", + "version": "6.25.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "6.24.1-alpha.0", + "version": "6.25.0", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", --- packages/me-at-walmart-common/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-common", - "version": "6.24.1-alpha.0", + "version": "6.25.0", "description": "Common utilities and components for Me@Walmat mini apps", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "6.24.1-alpha.0", + "version": "6.25.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore: revert package version for publish
chore: revert package version for publish
bcaaaf115dd02e551dd71476ca5add725d8cbed5
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.10", + "version": "1.0.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/myteam-mini-app", - "version": "1.0.10", + "version": "1.0.11", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", @@ -60,15 +60,14 @@ "@walmart/core-utils": "~2.0.5", "@walmart/functional-components": "~4.0.3", "@walmart/gtp-shared-components": "2.1.3", - "@walmart/impersonation-mini-app": "1.20.7", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-logger": "1.34.8", "@walmart/react-native-scanner-3.0": "0.4.2", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", - "@walmart/roster-mini-app": "1.0.12", + "@walmart/roster-mini-app": "1.0.13", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.10", + "@walmart/wmconnect-mini-app": "1.0.11", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11720,24 +11719,6 @@ "react-native": "*" } }, - "node_modules/@walmart/impersonation-mini-app": { - "version": "1.20.7", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.20.7.tgz", - "integrity": "sha512-nQdm2UHmllwsY5jYGxdebgT2oXBvrhIVWutDvz1xtYHcD1ZkcSZpa8CQpnltTdeSRy0bJ8K8hfqtPSGTybum5g==", - "dev": true, - "peerDependencies": { - "@react-native-community/masked-view": ">=0.1.10", - "@react-native-community/picker": ">=1.8.1", - "@react-navigation/native": ">=5.7.3", - "@react-navigation/stack": ">=5.9.0", - "@walmart/react-native-shared-navigation": ">=0.2.0", - "@walmart/redux-store": ">=1.0.7", - "@walmart/ui-components": ">=1.0.91", - "react-i18next": ">=11.7.3", - "react-native-restart": ">=0.0.20", - "react-redux": ">=7.2.0" - } - }, "node_modules/@walmart/me-at-walmart-athena-queries": { "version": "1.7.5", "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.5.tgz", @@ -11834,9 +11815,9 @@ } }, "node_modules/@walmart/roster-mini-app": { - "version": "1.0.12", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.12.tgz", - "integrity": "sha512-N+9coWFD03E3RaFOw8Z1LK2xgjmhCrryUxOsdx8FofXyZqIfIGLx1r/9oxt68LpqQGi41tbV292qIBUYaA7tkQ==", + "version": "1.0.13", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.13.tgz", + "integrity": "sha512-7g6IH1rUU8r9OssXaVUBNZ3spN2vvLdg/nWlNyIVN9470D/ugLKzRsYaxHm/clV385GrbNexwfCmnF/X/Pd44A==", "dev": true, "hasInstallScript": true }, @@ -11863,9 +11844,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.10", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.10.tgz", - "integrity": "sha512-tY3OvVJN79ik2jMGS3nW37+EUQrJmA9f/hiH5+f98yVrd+IDVryxBRgPb8zY7mNhuHqO41yh+i97ASWphT5xsw==", + "version": "1.0.11", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.11.tgz", + "integrity": "sha512-cRZ9Q9dJ4MRUKYTq9a7W2/rrJ715ZE5McTXIvYZmJPbsabxjStsQa+vEPGEiyhzRV/Bbbj6pO4YHKOfh92BgJg==", "dev": true, "hasInstallScript": true }, @@ -41005,12 +40986,6 @@ "moment": "^2.27.0" } }, - "@walmart/impersonation-mini-app": { - "version": "1.20.7", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.20.7.tgz", - "integrity": "sha512-nQdm2UHmllwsY5jYGxdebgT2oXBvrhIVWutDvz1xtYHcD1ZkcSZpa8CQpnltTdeSRy0bJ8K8hfqtPSGTybum5g==", - "dev": true - }, "@walmart/me-at-walmart-athena-queries": { "version": "1.7.5", "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.7.5.tgz", @@ -41072,9 +41047,9 @@ } }, "@walmart/roster-mini-app": { - "version": "1.0.12", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.12.tgz", - "integrity": "sha512-N+9coWFD03E3RaFOw8Z1LK2xgjmhCrryUxOsdx8FofXyZqIfIGLx1r/9oxt68LpqQGi41tbV292qIBUYaA7tkQ==", + "version": "1.0.13", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.13.tgz", + "integrity": "sha512-7g6IH1rUU8r9OssXaVUBNZ3spN2vvLdg/nWlNyIVN9470D/ugLKzRsYaxHm/clV385GrbNexwfCmnF/X/Pd44A==", "dev": true }, "@walmart/ui-components": { @@ -41089,9 +41064,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.10", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.10.tgz", - "integrity": "sha512-tY3OvVJN79ik2jMGS3nW37+EUQrJmA9f/hiH5+f98yVrd+IDVryxBRgPb8zY7mNhuHqO41yh+i97ASWphT5xsw==", + "version": "1.0.11", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.11.tgz", + "integrity": "sha512-cRZ9Q9dJ4MRUKYTq9a7W2/rrJ715ZE5McTXIvYZmJPbsabxjStsQa+vEPGEiyhzRV/Bbbj6pO4YHKOfh92BgJg==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.10", + "version": "1.0.11", "private": false, "main": "dist/index.js", "files": [ @@ -82,15 +82,14 @@ "@walmart/core-utils": "~2.0.5", "@walmart/functional-components": "~4.0.3", "@walmart/gtp-shared-components": "2.1.3", - "@walmart/impersonation-mini-app": "1.20.7", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-logger": "1.34.8", "@walmart/react-native-scanner-3.0": "0.4.2", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.10", - "@walmart/roster-mini-app": "1.0.12", + "@walmart/wmconnect-mini-app": "1.0.11", + "@walmart/roster-mini-app": "1.0.13", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
Update version
Update version
4e28cb7111f20a53674fd4cd7f2528bcf3526ec7
--- packages/me-at-walmart-container/__tests__/redux/user.test.ts @@ -24,7 +24,7 @@ import {fetchNavConfig} from '../../src/redux/navConfig'; import {registerNotification} from '../../src/redux/notification'; import {initializeClockService} from '../../src/redux/clock'; import {isNewCandidateMode} from '../../src/http/candidateAuth'; -import {signInWithFirebaseSaga} from '../../src/redux/firebaseAuth'; +import {checkAndBeginSignInWithFirebaseSaga} from '../../src/redux/firebaseAuth'; jest.mock('../../src/services/user', () => ({ MeAtWalmartUserService: { @@ -54,7 +54,7 @@ describe('user tests', () => { expect(iterator.next().value).toEqual(fork(fetchNavConfig, false)); expect(iterator.next().value).toEqual(fork(registerNotification)); expect(iterator.next().value).toEqual(fork(initializeClockService)); - expect(iterator.next().value).toEqual(call(signInWithFirebaseSaga)); + expect(iterator.next().value).toEqual(fork(checkAndBeginSignInWithFirebaseSaga)); expect(iterator.next().done).toBe(true); }); --- packages/me-at-walmart-container/src/redux/firebaseAuth.ts @@ -1,7 +1,17 @@ -import {call, put, takeLeading} from 'redux-saga/effects'; +import {call, put, select, takeLeading} from 'redux-saga/effects'; import {signInWithFirebase, FirebaseAuthActionTypes, signOutFromFirebase} from '@walmart/mywalmart-firebase-config'; import {FirebaseAuthTypes} from '@react-native-firebase/auth'; import {MeAtWalmartAuthActions} from '@walmart/me-at-walmart-common'; +import {ConfigSagas, ConfigSelectors} from '@walmart/allspark-foundation'; + +/** + * Selector for retrieving isFirebaseAuthEnabled configuration from the Redux store. + * Provides default values if configuration is not available. + */ +const getIsFirebaseAuthEnabled = ConfigSelectors.createContainerConfigSelector( + 'isFirebaseAuthEnabled', + false +); // Action creators export const firebaseSignInSuccess = () => ({ @@ -12,6 +22,15 @@ export const firebaseSignInFailure = () => ({ type: FirebaseAuthActionTypes.FIREBASE_SIGN_IN_FAILURE, }); +export function* checkAndBeginSignInWithFirebaseSaga() { + // Wait for app configuration to be fetched + yield call(ConfigSagas.waitForConfigFetch); + const isFirebaseAuthEnabled: boolean = yield select(getIsFirebaseAuthEnabled); + if (isFirebaseAuthEnabled) { + yield call(signInWithFirebaseSaga); + } +} + /** * Saga to handle Firebase sign-in */ --- packages/me-at-walmart-container/src/redux/user.ts @@ -29,7 +29,7 @@ import {updateLoggerUser} from './logger'; import {updateTelemetryForUser} from './telemetry'; import {isNewCandidateMode} from '../http/candidateAuth'; import {initializeClockService} from './clock'; -import {signInWithFirebaseSaga} from './firebaseAuth'; +import {checkAndBeginSignInWithFirebaseSaga} from './firebaseAuth'; export function* handleUserChange() { yield call(updateSiteInfo); @@ -42,10 +42,11 @@ export function* handleUserChange() { yield fork(registerNotification); yield fork(initializeClockService); // TODO :- This saga should be called on SIGN_IN_SUCCESS dispatch once discussed. - yield call(signInWithFirebaseSaga); + yield fork(checkAndBeginSignInWithFirebaseSaga); } } + export function* onSignInSuccess({payload}: IAuthActions['SIGN_IN_SUCCESS']) { const currentAuthToken: string | undefined = yield select( AuthSelectors.getAuthToken,
fix(firebase): added ccm checks for firebase auth services
fix(firebase): added ccm checks for firebase auth services
98f195cb37e1f8c310805bfdd7ddb11775b5b26f
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ModalHeader.tsx @@ -38,5 +38,6 @@ const styles = StyleSheet.create({ alignItems: 'center', backgroundColor: colors.white, }, - title: { flex: 1, textAlign: 'center', fontSize: 20 }, + title: { flex: 1, textAlign: 'center', fontSize: 18, marginBottom: 10 }, + closeIcon: { marginLeft: 32, marginBottom: 10 }, });
Adding update modal updates
Adding update modal updates
f94af76ee37d189d44e112b3e28544b47a34f2fc
--- package.json @@ -90,7 +90,7 @@ "@walmart/exception-mini-app": "0.43.1", "@walmart/facilities-management-miniapp": "0.3.26", "@walmart/feedback-all-spark-miniapp": "0.9.0", - "@walmart/financial-wellbeing-feature-app": "1.0.29", + "@walmart/financial-wellbeing-feature-app": "1.0.56", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.8.17",
bumped financial-wellbeing-feature-app to 1.0.56
bumped financial-wellbeing-feature-app to 1.0.56
a02acee1c48ab82ac9f23c35eb883634f157cf4a
--- package-lock.json @@ -3162,9 +3162,9 @@ "integrity": "sha512-BAt1o+HxymOArDQgOizPt7B2itxi3LOwWFVS2+HH5Izat3wwqIsAZIOVEiOUkJtYALMlzm5uvAlteQLcUWhr+Q==" }, "@walmart/time-clock-mini-app": { - "version": "0.1.16", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.16.tgz", - "integrity": "sha512-zRCXid2yOP4yJp0C5XdqG+7hxDAyqf6hbl/FVpIb7gI3GlcIZj5EnUT9oIOahwADXZiiE7XMDoJyb8gtg9L9fw==", + "version": "0.1.18", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.18.tgz", + "integrity": "sha512-ZKPwRIm/lPLLbdrtYmjuYsk3xgoK0KPYnNRkd7ET5gOTblBYqrePqeq/2OgcXqV2o6aa01wHLeu5TqC3giAyJg==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "javascript-time-ago": "^2.3.4", @@ -10983,9 +10983,9 @@ "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" }, "moment-timezone": { - "version": "0.5.32", - "resolved": "https://npme.walmart.com/moment-timezone/-/moment-timezone-0.5.32.tgz", - "integrity": "sha512-Z8QNyuQHQAmWucp8Knmgei8YNo28aLjJq6Ma+jy1ZSpSk5nyfRT8xgUbSQvD2+2UajISfenndwvFuH3NGS+nvA==", + "version": "0.5.33", + "resolved": "https://npme.walmart.com/moment-timezone/-/moment-timezone-0.5.33.tgz", + "integrity": "sha512-PTc2vcT8K9J5/9rDEPe5czSIKgLoGsH8UNpA4qZTVw0Vd/Uz19geE9abbIOQKaAQFcnQ3v5YEXrbSc5BpshH+w==", "requires": { "moment": ">= 2.9.0" } --- package.json @@ -64,7 +64,7 @@ "@walmart/redux-store": "^1.0.11", "@walmart/schedule-mini-app": "0.2.54", "@walmart/settings-mini-app": "1.1.12", - "@walmart/time-clock-mini-app": "0.1.16", + "@walmart/time-clock-mini-app": "0.1.18", "@walmart/ui-components": "1.0.91", "@walmart/welcomeme-mini-app": "0.5.27", "i18next": "^19.7.0",
Splunk events and fixes (#296)
Splunk events and fixes (#296) * Bump time clock mini app * Updated package-lock.json
7387c748f9007d57101db33cf881480805827c4f
--- .looper.multibranch.yml @@ -5,6 +5,11 @@ tools: flavor: azul version: 17 +triggers: + - manual: + name: Publish Changed + call: publishFromChanges + flows: prepare-npm-project: - (name Yarn Install) corepack enable @@ -22,3 +27,7 @@ flows: - call: set-build-number else: - call: incremental-build-number + + publishFromChanges: + - call: preparePublish + - (name Publish From Changes) HUSKY_SKIP_HOOKS=1 npx lerna publish --yes \ No newline at end of file
feat: add publish flow to looper yml
feat: add publish flow to looper yml
502d0fac2ea732e44b8838f11ccd455e3bbb3769
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 59 + versionCode 60 versionName "1.0.4" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>59</string> + <string>60</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>59</string> + <string>60</string> </dict> </plist>
Incrementing build number
Incrementing build number
1f27db8cdd1942753eb77a50a0ae358fe832f6ef
--- .looper-pr.yml @@ -5,10 +5,10 @@ envs: variables: APP_NAME: roster-miniapp STAGES_TO_RUN: - LINT: false - UNITTEST: false + LINT: true + UNITTEST: true BUILD: true - SONAR_SCAN: false + SONAR_SCAN: true ARTIFACT_PUBLISH: true AUTO_PR_MONO: false JIRAPREFIX: SSMP
fix(ui): sonar property update SMDV-5648
fix(ui): sonar property update SMDV-5648
5e75ac684ffc7baeb10d67dd7e5b3d0d1cc9502b
--- sonar-project.properties @@ -4,7 +4,7 @@ sonar.projectVersion=1.0.0 sonar.host.url=http://sonar.looper.prod.walmartlabs.com sonar.sources=targets/US/src,core/src, packages/me-at-walmart-container/src, packages/me-at-walmart-common/src, scripts/dependencies-map -sonar.tests=targets/US/__tests__,core/__tests__, packages/me-at-walmart-container/__tests__, packages/me-at-walmart-common/__tests__, scripts/dependencies-map/**/__tests__ +sonar.tests=targets/US/__tests__,core/__tests__, packages/me-at-walmart-container/__tests__, packages/me-at-walmart-common/__tests__, scripts/dependencies-map/deps-crawler/__tests__, scripts/dependencies-map/upload-to-azure/__tests__ sonar.exclusions=targets/US/src/images,targets/US/src/navigation/Navigation.tsx,targets/US/src/navigation/NavigationStyle.ts sonar.sourceEncoding=UTF-8 sonar.typescript.lcov.reportPaths=coverage/lcov.info
fix: wildcards not supported by sonar
fix: wildcards not supported by sonar
1997328d8381bf3ea54be58e78b3a65c4a731192
--- src/components/HorizontalLine.tsx @@ -1,6 +1,9 @@ import React from 'react'; -import {StyleSheet, View} from 'react-native'; +import {StyleSheet, View, ViewStyle} from 'react-native'; +type Props = { + style: ViewStyle; +}; const styles = StyleSheet.create({ lineStyle: { width: '100%', @@ -9,4 +12,6 @@ const styles = StyleSheet.create({ borderColor: '#CDCDCD', }, }); -export const Hl = (props) => <View style={[styles.lineStyle, props.style]} />; +export const Hl = (props: Props) => ( + <View style={[styles.lineStyle, props.style]} /> +); --- src/components/HorizontalLine.tsx @@ -1,6 +1,9 @@ import React from 'react'; -import {StyleSheet, View} from 'react-native'; +import {StyleSheet, View, ViewStyle} from 'react-native'; +type Props = { + style: ViewStyle; +}; const styles = StyleSheet.create({ lineStyle: { width: '100%', @@ -9,4 +12,6 @@ const styles = StyleSheet.create({ borderColor: '#CDCDCD', }, }); -export const Hl = (props) => <View style={[styles.lineStyle, props.style]} />; +export const Hl = (props: Props) => ( + <View style={[styles.lineStyle, props.style]} /> +);
more lint fixes
more lint fixes
bbde4662428222a2696cee72cdcc020067372b5c
--- package-lock.json @@ -4208,9 +4208,9 @@ "integrity": "sha512-uhePNwmz7vU5/Os9WS8w2BBZvrCzRGgk+AtLcxkQcQdq/5eC48iWL6tuHXRVTUF2eVTggaPqIxEA9ZOBsmwK1Q==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.1.29", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.1.29.tgz", - "integrity": "sha512-zDRKneGFnM59urAlvKskIHxwpL5NlapmqeL3EL+2HOEZ+B38ZaRl4nmH5cRV813JD7nzytPO9qHtHHjiyeYpUw==" + "version": "0.1.30", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.1.30.tgz", + "integrity": "sha512-KyQue4Ig/EOZDWtsJue6+q2UGnTnk85kX2RjPQIURYbZ0zYyT6OuBGl4g5DGERvmPm5MOj2QsM3M94zpv6ILAg==" }, "@walmart/functional-components": { "version": "1.0.34", --- package.json @@ -78,7 +78,7 @@ "@walmart/config-components": "1.0.35", "@walmart/counts-component-miniapp": "0.0.34", "@walmart/exception-mini-app": "0.40.1", - "@walmart/feedback-all-spark-miniapp": "0.1.29", + "@walmart/feedback-all-spark-miniapp": "0.1.30", "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0",
feedback miniapp version update
feedback miniapp version update
2879592ea9ffc4fb918f610e1f5f584067abba4b
--- packages/allspark-foundation-hub/__tests__/TeamOnboarding/TeamSelection.test.tsx @@ -116,7 +116,7 @@ describe('Team selection render tests', () => { }); it('Renders the screen when loading', () => { - (useTeamsByStore as jest.fn).mockImplementation(() => ({ + (useTeamsByStore as jest.Mock).mockImplementation(() => ({ data: null, loading: true, error: null, @@ -129,7 +129,7 @@ describe('Team selection render tests', () => { }); it('Renders the screen upon error', () => { - (useTeamsByStore as jest.fn).mockImplementation(() => ({ + (useTeamsByStore as jest.Mock).mockImplementation(() => ({ data: null, loading: false, error: {
fixed mock cast
fixed mock cast
151e1e8988412515858550fc7c044c101c8e374a
--- packages/allspark-foundation/__tests__/cli/linkUtils.test.ts @@ -0,0 +1,29 @@ +import { mergeDeep } from '@apollo/client/utilities'; +import { isObject } from '@walmart/gtp-shared-components/dist/next/utils'; + +describe('isObject', () => { + it('should return true if the passed argument is an object', () => { + expect(isObject({ a: 1, b: [], c: false })).toBeTruthy(); + }); + it('should return false if the passed arg is some other data type', () => { + expect(isObject(false)).toBeFalsy(); + expect(isObject(NaN)).toBeFalsy(); + expect(isObject(undefined as any)).toBeFalsy(); + expect(isObject(null as any)).toBeFalsy(); + }); +}); + +describe('mergDeep', () => { + const target = { a: 1, b: 2, c: 3 }; + it('should return the target if no sources are passed', () => { + expect(mergeDeep(target, [])).toStrictEqual(target); + }); + it('should merge the objects if both arguments are objects, using the value of the source', () => { + expect(mergeDeep(target, { c: 4 })).toStrictEqual({ a: 1, b: 2, c: 4 }); + }); + it('should handle nested objects', () => { + expect( + mergeDeep({ a: 1, b: { f: 1, g: 2, h: 2 } }, { b: { h: 1 } }) + ).toStrictEqual({ a: 1, b: { f: 1, g: 2, h: 1 } }); + }); +});
test(foundation): unit tests for link utils
test(foundation): unit tests for link utils
3ae73f647729f7c9317035be919b185bc960942e
--- packages/core-services-allspark/src/graphql/provider.tsx @@ -45,7 +45,8 @@ export const AllsparkGraphqlProvider = (props: PropsWithChildren<{}>) => { const defaultLinks = [contentTypeHeaderLink, typeRemappingLink, loggerLink]; if (!useShadowGateway) { - return defaultLinks.unshift(athenaUriLink); + defaultLinks.unshift(athenaUriLink); + return defaultLinks; } return defaultLinks;
chore: type fix
chore: type fix
29fbed2a5d207ca88b724b001f27087bb12f55d2
--- package-lock.json @@ -3629,9 +3629,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.29.1", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.29.1.tgz", - "integrity": "sha512-/+97dklmc3PIfSoBgmrbBn/EvpOY85b1o3kOZpUU74c3oafchPSpcw+ywL49ICiRU7OKo9/QOhn/g4ZPO6nGJg==" + "version": "0.30.1", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.30.1.tgz", + "integrity": "sha512-N2x3XniFP9PgiS9ibpeUJ8JtHJlrWG+kTXaGLj7DHqvPS0Wz7c3mcjidruiGCGafQR5QskowDd85CHFiWutW5Q==" }, "@walmart/wfm-ui": { "version": "0.1.50", --- package.json @@ -98,7 +98,7 @@ "@walmart/shelfavailability-mini-app": "0.3.78", "@walmart/time-clock-mini-app": "0.4.6", "@walmart/ui-components": "1.1.56", - "@walmart/welcomeme-mini-app": "0.29.1", + "@walmart/welcomeme-mini-app": "0.30.1", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
version bump
version bump
dbde2d7934ad49fd997a5d4da17c835151492037
--- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx @@ -182,6 +182,27 @@ export class AllsparkFeatureModule< return screens?.[screen]; }; + public buildScreenComponent = < + K extends InferRecordKey<InferCapabilityType<Module['screens']>>, + >( + screen: K + ) => { + const config = this.getScreenConfig<K>(screen); + + if (config) { + const { getComponent, clockCheckRequired } = config; + + // Wrap feature screen with foundation guards + return withFeatureScreenGuards({ + getComponent, + featureId: this.id, + clockCheckEnabled: Boolean(clockCheckRequired), + }); + } + + return undefined; + }; + /** * Build screen by id with given Navigator. * @param screen - The ID of the screen. @@ -200,24 +221,19 @@ export class AllsparkFeatureModule< ) => { const { Navigator, routeConfig = {} } = build; const config = this.getScreenConfig<K>(screen); + const ScreenComponent = this.buildScreenComponent(screen); - if (config) { + if (config && ScreenComponent) { + // eslint-disable-next-line @typescript-eslint/no-unused-vars const { getComponent, clockCheckRequired, ...restConfig } = config; - // Wrap feature screen with foundation guards - const FeatureScreen = withFeatureScreenGuards({ - getComponent, - featureId: this.id, - clockCheckEnabled: Boolean(clockCheckRequired), - }); - return ( <Navigator.Screen key={screen} name={screen} - {...routeConfig} {...restConfig} - component={FeatureScreen} + {...routeConfig} + component={ScreenComponent} /> ); }
feat(feature): add build screen component method to feature module
feat(feature): add build screen component method to feature module
dc21c8b76397f57a80bca8b4692e80666119eb5e
--- package-lock.json @@ -74,7 +74,7 @@ "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.15.2", "@walmart/payrollsolution_miniapp": "0.135.3", - "@walmart/price-changes-mini-app": "1.10.3", + "@walmart/price-changes-mini-app": "1.10.4", "@walmart/profile-feature-app": "1.138.2", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", @@ -9526,9 +9526,9 @@ } }, "node_modules/@walmart/price-changes-mini-app": { - "version": "1.10.3", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.10.3.tgz", - "integrity": "sha512-icw+8yws7zCWR+St8JRPZUaREaHvATlNIiS41LueeNa+3mmSdmblRc/lWX6PA1DPe3A0oAYLypkxnNsRL5CSuA==", + "version": "1.10.4", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.10.4.tgz", + "integrity": "sha512-FG3uf3QnDa/TbpWzouhbqXqVieAd3yMkwFmU2QjKnEO0AE5fhdrVKHymL29uaHbPcnb1G3UHPlUePheADvY1dw==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -9541,13 +9541,14 @@ "@walmart/redux-store": "3.1.3", "@walmart/ui-components": "^1.6.0", "axios": "^0.26.1", + "expo": "49.0.0", + "expo-image": "1.3.5", "i18next": "^20.2.2", "lodash": "^4.17.21", "moment": "^2.29.4", "react": "^17.0.2", "react-i18next": "^11.7.3", "react-native": "0.72.5", - "react-native-fast-image": "^8.6.1", "react-native-permissions": "^3.6.1", "react-native-webview": "^10.7.0", "react-redux": "^7.2.1", @@ -33552,9 +33553,9 @@ } }, "@walmart/price-changes-mini-app": { - "version": "1.10.3", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.10.3.tgz", - "integrity": "sha512-icw+8yws7zCWR+St8JRPZUaREaHvATlNIiS41LueeNa+3mmSdmblRc/lWX6PA1DPe3A0oAYLypkxnNsRL5CSuA==" + "version": "1.10.4", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.10.4.tgz", + "integrity": "sha512-FG3uf3QnDa/TbpWzouhbqXqVieAd3yMkwFmU2QjKnEO0AE5fhdrVKHymL29uaHbPcnb1G3UHPlUePheADvY1dw==" }, "@walmart/profile-feature-app": { "version": "1.138.2", --- package.json @@ -115,7 +115,7 @@ "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.15.2", "@walmart/payrollsolution_miniapp": "0.135.3", - "@walmart/price-changes-mini-app": "1.10.3", + "@walmart/price-changes-mini-app": "1.10.4", "@walmart/profile-feature-app": "1.138.2", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0",
Bump price changes mini app
Bump price changes mini app
ad08311597f392666b722c4d1b6c87cfcffc06eb
--- package.json @@ -141,7 +141,7 @@ "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.3.10", "@walmart/roster-mini-app": "1.1.7", - "@walmart/schedule-mini-app": "0.108.0", + "@walmart/schedule-mini-app": "^0.114.2", "@walmart/shelfavailability-mini-app": "1.5.23", "@walmart/store-feature-orders": "1.26.9", "@walmart/taskit-mini-app": "2.81.15", @@ -149,7 +149,7 @@ "@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch", "@walmart/welcomeme-mini-app": "0.94.0", - "@walmart/wfm-ui": "0.8.7", + "@walmart/wfm-ui": "0.8.12", "@walmart/wm-plus-mini-app": "0.12.20", "@walmart/wmconnect-mini-app": "1.1.6", "axios": "~1.6.0", --- yarn.lock @@ -6982,14 +6982,15 @@ __metadata: languageName: node linkType: hard -"@walmart/schedule-mini-app@npm:0.108.0": - version: 0.108.0 - resolution: "@walmart/schedule-mini-app@npm:0.108.0" +"@walmart/schedule-mini-app@npm:^0.114.2": + version: 0.114.2 + resolution: "@walmart/schedule-mini-app@npm:0.114.2" dependencies: "@walmart/moment-walmart": "npm:^1.0.4" - "@walmart/wfm-ui": "npm:^0.8.7" + "@walmart/wfm-ui": "npm:0.8.12" wfm-allspark-data-library: "npm:3.3.0" peerDependencies: + "@react-native-community/datetimepicker": ^7.6.2 "@react-native-firebase/remote-config": ">=10.1.1" "@react-navigation/elements": ">=1.3.1" "@react-navigation/native": ">=6.0.0" @@ -7012,7 +7013,7 @@ __metadata: react-redux: ">=7.2.1" redux: ">=4.0.5" reselect: ">=4.0.0" - checksum: 10c0/62654dc7f781c529d56bf7534257349fc56466f02a5e5f4000ba1a785c40704ecd8bd6def86cd0da1128233eab332f4036fd0c458b9b590b5070e2ae61caf236 + checksum: 10c0/88b6df5f372b51b7477ff036c08819d2060a156e6adf1e8286c4ed3cc7f172ab22764867f76a0abe5c9fba7206045d750a4461075d5c383681eb4c1d314bfb91 languageName: node linkType: hard @@ -7306,9 +7307,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wfm-ui@npm:0.8.7, @walmart/wfm-ui@npm:^0.8.7": - version: 0.8.7 - resolution: "@walmart/wfm-ui@npm:0.8.7" +"@walmart/wfm-ui@npm:0.8.12": + version: 0.8.12 + resolution: "@walmart/wfm-ui@npm:0.8.12" dependencies: "@walmart/moment-walmart": "npm:1.0.3" lodash: "npm:^4.17.20" @@ -7326,7 +7327,7 @@ __metadata: react-native: ">=0.70.5" react-native-modal: ^11.5.6 xdate: ^0.8.0 - checksum: 10c0/0d41094b9e69747463ca87ffb7690e6d85ebd3db208859b368a8844f241df1db7f41f014bfbdb10dc56f38cd2bdac359b47e5a9ba851b0358a69bc41401cc619 + checksum: 10c0/06b8f38a4d5b2fbc1e2adc2d2bf2c0c1c5bcf27697652a2080d62974b4f8c7f6754a6fa4c9bc72dd60c2735d2e4cd08e83829a47de78a606d8798eb137160cf4 languageName: node linkType: hard @@ -7763,7 +7764,7 @@ __metadata: "@walmart/returns-mini-app": "npm:4.6.0" "@walmart/rfid-scan-mini-app": "npm:2.3.10" "@walmart/roster-mini-app": "npm:1.1.7" - "@walmart/schedule-mini-app": "npm:0.108.0" + "@walmart/schedule-mini-app": "npm:^0.114.2" "@walmart/shelfavailability-mini-app": "npm:1.5.23" "@walmart/store-feature-orders": "npm:1.26.9" "@walmart/taskit-mini-app": "npm:2.81.15" @@ -7771,7 +7772,7 @@ __metadata: "@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch" "@walmart/welcomeme-mini-app": "npm:0.94.0" - "@walmart/wfm-ui": "npm:0.8.7" + "@walmart/wfm-ui": "npm:0.8.12" "@walmart/wm-plus-mini-app": "npm:0.12.20" "@walmart/wmconnect-mini-app": "npm:1.1.6" adaptive-expressions: "npm:^4.13.5"
Adding Schedule-mini-app for Drop22
Adding Schedule-mini-app for Drop22
7a2a652b62f353a96d14dfd17a8968d0de4a3f0a
--- package.json @@ -107,7 +107,7 @@ "@walmart/global-vpi-mini-app": "1.1.14", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.7-rc.0", - "@walmart/ims-print-services-ui": "2.18.0", + "@walmart/ims-print-services-ui": "2.18.1", "@walmart/inbox-mini-app": "0.98.4", "@walmart/invue-react-native-sdk": "0.1.26-alpha.8-wt2", "@walmart/iteminfo-mini-app": "8.1.2", --- yarn.lock @@ -6735,9 +6735,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ims-print-services-ui@npm:2.18.0": - version: 2.18.0 - resolution: "@walmart/ims-print-services-ui@npm:2.18.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.18.0.tgz" +"@walmart/ims-print-services-ui@npm:2.18.1": + version: 2.18.1 + resolution: "@walmart/ims-print-services-ui@npm:2.18.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.18.1.tgz" peerDependencies: "@react-native-firebase/analytics": ">=10.5.1" "@react-native-firebase/app": ">=10.5.0" @@ -6758,7 +6758,7 @@ __metadata: react-native-segmented-control-tab: ">=4.0.0" react-native-wm-telemetry: ">=0.2.0" uuid: ">=3.3.2" - checksum: 10c0/7eefb17cec1c033ce70647c55e5864a7ba87a890473c30880de892445de88c8bbf7ebd0135c96963111e3011a119e6b58d0d016b18e93159abe3d083598605c8 + checksum: 10c0/24e538d3b384aacc3d54b751e3aace31bd690ed73565596331ce9ad6e646394907709d93d8bfeca7b9406a7eb812beafffada3ea744b2e6e4ca1218ad7a50370 languageName: node linkType: hard @@ -7134,7 +7134,7 @@ __metadata: "@walmart/global-vpi-mini-app": "npm:1.1.14" "@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.18.0" + "@walmart/ims-print-services-ui": "npm:2.18.1" "@walmart/inbox-mini-app": "npm:0.98.4" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.8-wt2" "@walmart/iteminfo-mini-app": "npm:8.1.2"
Bump Print UI to v2.18.1
Bump Print UI to v2.18.1
400ee72ae533a9a080bb9ef3aa1135f8f9b17e26
--- package.json @@ -111,7 +111,7 @@ "@walmart/feedback-all-spark-miniapp": "patch:@walmart/feedback-all-spark-miniapp@npm%3A0.9.75#~/.yarn/patches/@walmart-feedback-all-spark-miniapp-npm-0.9.75-733d2d347a.patch", "@walmart/financial-wellbeing-feature-app": "1.29.10", "@walmart/functional-components": "~6.3.28", - "@walmart/global-vpi-mini-app": "1.1.30", + "@walmart/global-vpi-mini-app": "1.1.40", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.7", "@walmart/ims-print-services-ui": "2.23.0", --- src/translations/locales/en-US.ts @@ -19,6 +19,7 @@ export const enUS = { 'appNames.@walmart/facilities-management-miniapp': 'Facility management', 'appNames.@walmart/feedback-all-spark-miniapp': 'Feedback', 'appNames.@walmart/financial-wellbeing-feature-app': 'Financial Wellbeing', + 'appNames.@walmart/global-vpi-mini-app': 'Global VPI', 'appNames.@walmart/gtp-shared-components': 'GTP components', 'appNames.@walmart/ims-print-services-ui': 'Print', 'appNames.@walmart/inbox-mini-app': 'Inbox', --- src/translations/locales/es-MX.ts @@ -19,6 +19,7 @@ export const esMX = { 'appNames.@walmart/facilities-management-miniapp': 'Gestión de instalaciones', 'appNames.@walmart/feedback-all-spark-miniapp': 'Feedback', 'appNames.@walmart/financial-wellbeing-feature-app': 'Financial Wellbeing', + 'appNames.@walmart/global-vpi-mini-app': 'Global VPI', 'appNames.@walmart/gtp-shared-components': 'GTP componentes', 'appNames.@walmart/ims-print-services-ui': 'Imprimir', 'appNames.@walmart/inbox-mini-app': 'Inbox', --- yarn.lock @@ -8204,10 +8204,10 @@ __metadata: languageName: node linkType: hard -"@walmart/global-vpi-mini-app@npm:1.1.30": - version: 1.1.30 - resolution: "@walmart/global-vpi-mini-app@npm:1.1.30::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fglobal-vpi-mini-app%2F-%2F%40walmart%2Fglobal-vpi-mini-app-1.1.30.tgz" - checksum: 10c0/7d7479895ec9f1cae256af551ede8fe6a968d521744ca344c90ce7844661fc34bcd37d56af9f505d288bf25687cfe7504eb0d0ac090f3ca54e34ee7784f66631 +"@walmart/global-vpi-mini-app@npm:1.1.40": + version: 1.1.40 + resolution: "@walmart/global-vpi-mini-app@npm:1.1.40::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fglobal-vpi-mini-app%2F-%2F%40walmart%2Fglobal-vpi-mini-app-1.1.40.tgz" + checksum: 10c0/0b4d2d472ddd2743f2dfd3f82293bfb44b40833ef0076665db469f873edbc90f96b66ec793198063672ae21b8be7faf29c6cdbcf46c4645fadc8174ea8e45e35 languageName: node linkType: hard @@ -8702,7 +8702,7 @@ __metadata: "@walmart/feedback-all-spark-miniapp": "patch:@walmart/feedback-all-spark-miniapp@npm%3A0.9.75#~/.yarn/patches/@walmart-feedback-all-spark-miniapp-npm-0.9.75-733d2d347a.patch" "@walmart/financial-wellbeing-feature-app": "npm:1.29.10" "@walmart/functional-components": "npm:~6.3.28" - "@walmart/global-vpi-mini-app": "npm:1.1.30" + "@walmart/global-vpi-mini-app": "npm:1.1.40" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.7" "@walmart/ims-print-services-ui": "npm:2.23.0"
feat: global VPI v1.1.36 Drop34 INTMOBL-99043 (#4618)
feat: global VPI v1.1.36 Drop34 INTMOBL-99043 (#4618) * feat: global vpi v1.1.36 * feat: upgrade version global vpi 1.1.40 * chore: update app name in setting section --------- Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
20e45f4aebc340ebb0602234ba2b935bf54fa66a
--- packages/allspark-foundation-hub/src/HubFeature/Hub/TeamSwitcher/index.tsx @@ -209,6 +209,14 @@ export const TeamSwitcher = ({ placeholder={Images[item.teamId ?? item.teamLabel]?.blurhash} testID={`team-image-${item.teamLabel}`} resizeMode='contain' + onError={(err) => { + logger.error('ImageFailure', { + message: `Image failure ${err}`, + }); + teamSwitcherTelemetry.logEvent('image_uri_failure', { + message: 'Image failure', + }); + }} /> <Text style={[styles.teamLabel, isSelected && styles.selectedTeamLabel]} --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamOnboarding/Component/TeamOnboarding.tsx @@ -8,7 +8,8 @@ import { TeamOnboardingCardInfo } from './TeamOnboardingCard'; import { TeamOnboardingScreenStyles as styles } from '../Screens/styles'; import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; - +import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; +import { LoggerService } from '@walmart/allspark-foundation/Logger'; export interface TeamOnboardingScreenProps { heading: string; description: string; @@ -27,6 +28,8 @@ export const TeamOnboarding = ({ handlePressButton, }: TeamOnboardingScreenProps) => { const TeamImage = useAllsparkImage(); + const logger = LoggerService.getContainerInstance(); + const telemetryService = useTelemetryService(); const scrollPosition = useRef(new Animated.Value(0)).current; const { bottom } = useSafeAreaInsets(); const onScroll = Animated.event( @@ -59,6 +62,14 @@ export const TeamOnboarding = ({ placeholder={Images.teamOnboarding.placeholder} style={styles.imageSize} resizeMode='contain' + onError={(err) => { + logger.error('ImageFailure', { + message: `Image failure ${err}`, + }); + telemetryService.logEvent('image_uri_failure', { + message: 'Image failure', + }); + }} /> </View> <Text style={styles.header}>{heading}</Text>
Adding logs for TeamOnboarding image
Adding logs for TeamOnboarding image
780bf4a7b54f819c7b4b9c5043ef413ba629112a
--- package.json @@ -95,7 +95,7 @@ "@walmart/react-native-sumo-sdk": "2.7.4", "@walmart/redux-store": "6.3.29", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.35.0", + "@walmart/wmconnect-mini-app": "2.35.1", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6653,7 +6653,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.7.4" "@walmart/redux-store": "npm:6.3.29" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.35.0" + "@walmart/wmconnect-mini-app": "npm:2.35.1" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6736,9 +6736,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.35.0": - version: 2.35.0 - resolution: "@walmart/wmconnect-mini-app@npm:2.35.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.35.0.tgz" +"@walmart/wmconnect-mini-app@npm:2.35.1": + version: 2.35.1 + resolution: "@walmart/wmconnect-mini-app@npm:2.35.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-2.35.1.tgz" dependencies: expo: "npm:^51.0.0" react: "npm:18.2.0" @@ -6753,7 +6753,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/f420d2a74c8f9e32a66fef1a02a848d17d735a537f6d1e0657c3f1bd7246c8dbaf6a9daf74e3dafc0d9bcf1534a363faf4e65e4a258b63c282484ec6720c843f + checksum: 10c0/34cb5b3048bcf49c47a2adbcd9ea5f4f776c2cf882f3a69cfe10ebbb63515efb49582f5452e2c15d79d3e3e5b9d9012f271d354055134855cda3ed9cd76aee8c languageName: node linkType: hard
Updating wmconnect version
Updating wmconnect version
092bc034260820d6362f1ed992726ee162da5e9b
--- __tests__/__mocks__/@react-native-firebase/firestore.js @@ -1,4 +1,4 @@ -import {store100Collection} from '../../harness/firestore/data/store100'; +import {store100Collection} from '../../harness/firestore/data/stores'; import {generateCreatedAt as mockGenerateCreatedAt} from '../../harness/firestore/data/timestamps'; const {mockReactNativeFirestore} = require('firestore-jest-mock'); export const mockFirestoreDatabase = { --- __tests__/communications/oneToOneChatTest.tsx @@ -1,20 +1,7 @@ import React from 'react'; -import firestore from '@react-native-firebase/firestore'; import {renderWithProviders} from '../harness'; -import {MessagesScreen} from '../../src/screens/MessagesScreen'; -import {RouteProp, useNavigation} from '@react-navigation/native'; -import {TextingNavParamsMap} from '../../src/navigation'; -import { - ChannelsProvider, - createAssociateChannelId, - createChannelPath, - IChannelsContext, -} from '../../src/channels'; -import {rawUserList} from '../harness/firestore/data/users'; +import {ChannelsProvider} from '../../src/channels'; -import {noop} from 'lodash'; -import {ChannelsContext} from '../../src/channels/context'; -import {encryptUserId} from '../../src/utils/user'; import {TestFirestoreComponent} from '../../src/components/TestFirestoreComponent'; describe('One to One Chat', () => { --- __tests__/setup.ts @@ -12,6 +12,14 @@ jest.mock('@walmart/functional-components', () => { }; }); +jest.mock('../src/utils/timestamps.ts', () => { + 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', () => { @@ -20,5 +28,3 @@ jest.mock('react-native-reanimated', () => { return Reanimated; }); jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper'); - - --- src/constants.ts @@ -1,4 +1,5 @@ import firestore from '@react-native-firebase/firestore'; +import {daysAgoTimestamp} from "./utils/timestamps"; export const RNFBConfigAndroid = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const RNFBConfigiOS = '75AC25EB-432A-47D1-855A-84728D2AB60C'; @@ -10,9 +11,7 @@ export const IMAGE_PREVIEW_SCREEN = 'myTeam.imagePreviewScreen'; export const WHOLE_STORE = 'WHOLESTORE'; export const PUSHTOTALK_SCREEN_NAME = 'myTeam.pushToTalk'; export const LOCAL_STORAGE_KEY_PREFIX = 'texting-'; -export const SEVEN_DAYS_AGO_TIMESTAMP = firestore.Timestamp.fromDate( - new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), -); +export const SEVEN_DAYS_AGO_TIMESTAMP = daysAgoTimestamp(7); // eslint-disable-next-line no-shadow export enum messageTypes { AUDIO = 'AUDIO', --- src/utils/timestamps.ts @@ -0,0 +1,7 @@ +import firestore from '@react-native-firebase/firestore'; + +export const daysAgoTimestamp = (numDays: number) => { + return firestore.Timestamp.fromDate( + new Date(Date.now() - numDays * 24 * 60 * 60 * 1000), + ); +}; --- __tests__/__mocks__/@react-native-firebase/firestore.js @@ -1,4 +1,4 @@ -import {store100Collection} from '../../harness/firestore/data/store100'; +import {store100Collection} from '../../harness/firestore/data/stores'; import {generateCreatedAt as mockGenerateCreatedAt} from '../../harness/firestore/data/timestamps'; const {mockReactNativeFirestore} = require('firestore-jest-mock'); export const mockFirestoreDatabase = { --- __tests__/communications/oneToOneChatTest.tsx @@ -1,20 +1,7 @@ import React from 'react'; -import firestore from '@react-native-firebase/firestore'; import {renderWithProviders} from '../harness'; -import {MessagesScreen} from '../../src/screens/MessagesScreen'; -import {RouteProp, useNavigation} from '@react-navigation/native'; -import {TextingNavParamsMap} from '../../src/navigation'; -import { - ChannelsProvider, - createAssociateChannelId, - createChannelPath, - IChannelsContext, -} from '../../src/channels'; -import {rawUserList} from '../harness/firestore/data/users'; +import {ChannelsProvider} from '../../src/channels'; -import {noop} from 'lodash'; -import {ChannelsContext} from '../../src/channels/context'; -import {encryptUserId} from '../../src/utils/user'; import {TestFirestoreComponent} from '../../src/components/TestFirestoreComponent'; describe('One to One Chat', () => { --- __tests__/setup.ts @@ -12,6 +12,14 @@ jest.mock('@walmart/functional-components', () => { }; }); +jest.mock('../src/utils/timestamps.ts', () => { + 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', () => { @@ -20,5 +28,3 @@ jest.mock('react-native-reanimated', () => { return Reanimated; }); jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper'); - - --- src/constants.ts @@ -1,4 +1,5 @@ import firestore from '@react-native-firebase/firestore'; +import {daysAgoTimestamp} from "./utils/timestamps"; export const RNFBConfigAndroid = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const RNFBConfigiOS = '75AC25EB-432A-47D1-855A-84728D2AB60C'; @@ -10,9 +11,7 @@ export const IMAGE_PREVIEW_SCREEN = 'myTeam.imagePreviewScreen'; export const WHOLE_STORE = 'WHOLESTORE'; export const PUSHTOTALK_SCREEN_NAME = 'myTeam.pushToTalk'; export const LOCAL_STORAGE_KEY_PREFIX = 'texting-'; -export const SEVEN_DAYS_AGO_TIMESTAMP = firestore.Timestamp.fromDate( - new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), -); +export const SEVEN_DAYS_AGO_TIMESTAMP = daysAgoTimestamp(7); // eslint-disable-next-line no-shadow export enum messageTypes { AUDIO = 'AUDIO', --- src/utils/timestamps.ts @@ -0,0 +1,7 @@ +import firestore from '@react-native-firebase/firestore'; + +export const daysAgoTimestamp = (numDays: number) => { + return firestore.Timestamp.fromDate( + new Date(Date.now() - numDays * 24 * 60 * 60 * 1000), + ); +};
resolve mock method
resolve mock method
39e4b19ca07d4ecb1af44af1385c72ab4e49cdf6
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.1-alpha.10", + "version": "2.12.1-alpha.11", "main": "dist/index.js", "files": [ "dist" @@ -104,7 +104,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "6.1.4", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.8.0-alpha.9", + "@walmart/wmconnect-mini-app": "2.8.0-alpha.10", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- src/config/foundationConfig.ts @@ -1,11 +1,11 @@ import {FeatureTags} from '@walmart/me-at-walmart-common'; -import {FEATURE_NAME} from '../common/constants'; +import {FEATURE_ID} from '../common/constants'; import rosterRedux from '../redux'; import rosterScreens from '../screens'; import rosterTranslations from '../translations'; export const foundationModuleConfig = { - name: FEATURE_NAME, + name: FEATURE_ID, tags: [FeatureTags.associate], screens: rosterScreens, redux: rosterRedux, --- src/screens/index.tsx @@ -10,6 +10,7 @@ import { import {ClockGuard} from '@walmart/allspark-foundation/Clock/withClockGuard'; import {PresenceProvider} from '@walmart/wmconnect-mini-app'; +import {translationClient} from '../common'; export const RosterMiniApp = () => { return ( @@ -36,6 +37,10 @@ const rosterExperienceScreen = RosterFeature.createScreen< 'myTeam' >(RosterMiniAppForManagerExperience, { tags: [ScreenTags.MyTeamTab], + clockCheckRequired: true, + options: { + title: translationClient.translate('roster.title'), + }, }); export default RosterFeature.createScreens({ --- src/translations/en-US.ts @@ -1,4 +1,7 @@ export const enUS = { + roster: { + title: 'Roster', + }, container: { languageName: 'English', }, --- src/translations/es-MX.ts @@ -1,4 +1,7 @@ export const esMX = { + roster: { + title: 'Lista', + }, container: { languageName: 'Español', }, --- yarn.lock @@ -6397,7 +6397,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:6.1.4" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.9" + "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.10" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6530,9 +6530,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.9": - version: 2.8.0-alpha.9 - resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.9" +"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.10": + version: 2.8.0-alpha.10 + resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.10" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6572,7 +6572,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/6ffb77db4c966618eb8b74be01feec86cbb5aa50b17bbeb0fca67f169b7a108ab3614ad703bebbdfe038e2984e6529a07e04476d1130df80f3e6de68ffa87769 + checksum: 10c0/aca612d702acbbcf6b9640c6a6159e46650c28373aa8edb4708bc987801c571e350ed0b17f9f8d7612f58bad7ff274741e8194bb18ccddbe552be6696010617b languageName: node linkType: hard
Update roster mini app version
Update roster mini app version
407ca7d14b67ef8b7edf0f7f877280edc78df12c
--- targets/US/ios/Podfile.lock @@ -2177,7 +2177,7 @@ PODS: - React-Core - RNFS (2.20.0): - React-Core - - RNGestureHandler (2.18.1): + - RNGestureHandler (2.16.0): - glog - RCT-Folly (= 2022.05.16.00) - React-Core --- targets/US/package.json @@ -90,7 +90,7 @@ "@walmart/avp-feature-app": "0.8.7", "@walmart/avp-shared-library": "0.8.9", "@walmart/backroom-mini-app": "1.2.6", - "@walmart/calling-mini-app": "0.5.6", + "@walmart/calling-mini-app": "0.3.5", "@walmart/checkout-mini-app": "3.22.0", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.4.2", --- yarn.lock @@ -6276,9 +6276,9 @@ __metadata: languageName: node linkType: hard -"@walmart/calling-mini-app@npm:0.5.6": - version: 0.5.6 - resolution: "@walmart/calling-mini-app@npm:0.5.6" +"@walmart/calling-mini-app@npm:0.3.5": + version: 0.3.5 + resolution: "@walmart/calling-mini-app@npm:0.3.5" peerDependencies: "@react-native-community/datetimepicker": ">=5" "@react-navigation/native": ">=6" @@ -6328,7 +6328,7 @@ __metadata: dependenciesMeta: "@walmart/wmconnect-mini-app": built: false - checksum: 10c0/8ce9566d1ea4d6d6139d0b3d7ad823181c1ccf3138f14fc72c373c564ab2bf7b1c8757610ff4e40023da6cac1b89b0d11a274178bca740cdffcc329f9e1c2bb8 + checksum: 10c0/248a84e7736701d95e26687731afcfa910622803bd12577032dd8e48cdd3c015e1c5d800af5716e974f7f8c1b91ac5b5a9af2b5d36c1289d7c5bfc7d4229bac2 languageName: node linkType: hard @@ -7176,7 +7176,7 @@ __metadata: "@walmart/avp-feature-app": "npm:0.8.7" "@walmart/avp-shared-library": "npm:0.8.9" "@walmart/backroom-mini-app": "npm:1.2.6" - "@walmart/calling-mini-app": "npm:0.5.6" + "@walmart/calling-mini-app": "npm:0.3.5" "@walmart/checkout-mini-app": "npm:3.22.0" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.4.2"
reverted some changes
reverted some changes
f610a5cda053949e19ed9f6f8c453fe61705f817
--- packages/allspark-foundation/src/Redux/client.ts @@ -5,6 +5,8 @@ import { ReducersMapObject, EnhancedStore, DevToolsEnhancerOptions, + createListenerMiddleware, + ListenerMiddlewareInstance, } from '@reduxjs/toolkit'; import createSagaMiddleware, { Saga, SagaMiddleware } from 'redux-saga'; @@ -28,7 +30,7 @@ export class ReduxStoreClient { private _middleware: Middleware<{}, IAllsparkReduxState>[]; private _sagaMiddleware: SagaMiddleware; private _dynamicMiddleware: DynamicMiddleware<IAllsparkReduxState>; - + private _listenerMiddleware: ListenerMiddlewareInstance<IAllsparkReduxState>; private _keysToRemove: string[] = []; private _store: EnhancedStore; @@ -42,7 +44,12 @@ export class ReduxStoreClient { // Middleware this._sagaMiddleware = createSagaMiddleware(); this._dynamicMiddleware = createDynamicMiddleware(); - this._middleware = [this._sagaMiddleware, this._dynamicMiddleware.enhancer]; + this._listenerMiddleware = createListenerMiddleware(); + this._middleware = [ + this._sagaMiddleware, + this._listenerMiddleware.middleware, + this._dynamicMiddleware.enhancer, + ]; // Store this._store = configureStore({ @@ -277,4 +284,42 @@ export class ReduxStoreClient { public select = <T extends Selector<IAllsparkReduxState>>(selector: T) => { return selector(this.getState()) as ReturnType<T>; }; + + /** + * Adds a listener to the store using the `startListening` method on the listener middleware. + * Refer to the documentation for more information and better examples. + * https://redux-toolkit.js.org/api/createListenerMiddleware#startlistening + * + * @example + * const unsubscribe = store.startListening({...}); + */ + public startListening = ( + ...params: Parameters< + ListenerMiddlewareInstance<IAllsparkReduxState>['startListening'] + > + ) => this._listenerMiddleware.startListening(...params); + + /** + * Stops a listener on the store using the `stopListening` method on the listener middleware. + * Refer to the documentation for more information and better examples. + * https://redux-toolkit.js.org/api/createListenerMiddleware#stoplistening + * + * @example + * const unsubscribe = store.startListening({...}); + */ + public stopListening = ( + ...params: Parameters< + ListenerMiddlewareInstance<IAllsparkReduxState>['stopListening'] + > + ) => this._listenerMiddleware.stopListening(...params); + + /** + * Clears all listeners on the store using the `clearListeners` method on the listener middleware. + * Refer to the documentation for more information and better examples. + * https://redux-toolkit.js.org/api/createListenerMiddleware#clearlisteners + * + * @example + * const unsubscribe = store.startListening({...}); + */ + public clearListeners = () => this._listenerMiddleware.clearListeners(); }
feat: add listener middleware from redux toolkit. added methods to redux client to interface
feat: add listener middleware from redux toolkit. added methods to redux client to interface
9a2255dd99437fe447e709e3dcc58051b28c6436
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.16-alpha-6", + "version": "1.0.16-alpha-7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/myteam-mini-app", - "version": "1.0.16-alpha-6", + "version": "1.0.16-alpha-7", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.16-alpha-6", + "version": "1.0.16-alpha-7", "private": false, "main": "dist/index.js", "files": [
Update version
Update version
2281be1920fb3bd4d854114acee6f2ca360ccb82
--- packages/associate-exp-hub-mini-app/src/components/team-switcher/MyWalmartTeamSwitcherFilter.tsx @@ -75,7 +75,7 @@ export interface TeamSwitcherProps { /** * Hook to detect if this component instance should be active - * + * * @returns boolean - true if component is focused and app is in foreground */ const useComponentActivity = () => {
feat(ui): fix the loader issue
feat(ui): fix the loader issue
084b3f545b19ad22d1e798c49fa00b0ecfa5c530
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.25.27](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.26...@walmart/allspark-foundation-hub@1.25.27) (2025-12-19) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.25.26](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.25...@walmart/allspark-foundation-hub@1.25.26) (2025-12-19) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.25.26", + "version": "1.25.27", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.17.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.17.6...@walmart/allspark-foundation@7.17.7) (2025-12-19) + +### Bug Fixes + +- remove visible when keyboard is hidden ([#547](https://gecgithub01.walmart.com/allspark/allspark/issues/547)) ([77c71d4](https://gecgithub01.walmart.com/allspark/allspark/commit/77c71d42acc374ae71eb6df8887651e3a93850bc)) + ## [7.17.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.17.5...@walmart/allspark-foundation@7.17.6) (2025-12-19) **Note:** Version bump only for package @walmart/allspark-foundation --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.17.6", + "version": "7.17.7", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.9.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.9.2...@walmart/my-walmart-hub@1.9.3) (2025-12-19) + +**Note:** Version bump only for package @walmart/my-walmart-hub + ## [1.9.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.9.1...@walmart/my-walmart-hub@1.9.2) (2025-12-19) ### Bug Fixes --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.9.2", + "version": "1.9.3", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.17.7 - @walmart/allspark-foundation-hub@1.25.27 - @walmart/my-walmart-hub@1.9.3
4095717225293e949a4c776df78d987cf3072cfc
--- ios/BuildSupport/AppStore.keychain-db Binary files a/ios/BuildSupport/AppStore.keychain-db and b/ios/BuildSupport/AppStore.keychain-db differ
BUILD: AppStore cert regen
BUILD: AppStore cert regen
fb1355341322a784be21ebfd2fcbcb80b6e61308
--- package-lock.json @@ -54,7 +54,7 @@ "@walmart/gtp-shared-components": "^2.0.1", "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "1.2.0", - "@walmart/inbox-mini-app": "0.81.7-395-de7e577", + "@walmart/inbox-mini-app": "0.81.9", "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", @@ -84,7 +84,6 @@ "@walmart/taskit-mini-app": "0.49.6", "@walmart/time-clock-mini-app": "0.30.0", "@walmart/ui-components": "1.9.0", - "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.25", "axios": "^1.2.6", @@ -5284,11 +5283,12 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.81.7-395-de7e577", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.7-395-de7e577.tgz", - "integrity": "sha512-oEBw2QjChGXLsv5V/EpoFNPErioRFiCPdxlFEE9bi094CR+N6P0FeUbyiEQSnI6hCn2TV1q2gke2aUvN2u3S8w==", + "version": "0.81.9", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.9.tgz", + "integrity": "sha512-blTbDTM9WKwCxRdcopJjDgkWo9NRmwP4/VggFVYdjWSMGU/psGG5bCrUILQ7n9wGTk3dhgo/tgqe1yTa2t7mJA==", "dependencies": { - "@walmart/moment-walmart": "^1.0.4" + "@walmart/moment-walmart": "^1.0.4", + "@walmart/walmart-fiscal-week": "^0.3.6" }, "peerDependencies": { "@walmart/attendance-mini-app": "^0.46.0", @@ -25033,11 +25033,12 @@ "version": "1.2.0" }, "@walmart/inbox-mini-app": { - "version": "0.81.7-395-de7e577", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.7-395-de7e577.tgz", - "integrity": "sha512-oEBw2QjChGXLsv5V/EpoFNPErioRFiCPdxlFEE9bi094CR+N6P0FeUbyiEQSnI6hCn2TV1q2gke2aUvN2u3S8w==", + "version": "0.81.9", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.9.tgz", + "integrity": "sha512-blTbDTM9WKwCxRdcopJjDgkWo9NRmwP4/VggFVYdjWSMGU/psGG5bCrUILQ7n9wGTk3dhgo/tgqe1yTa2t7mJA==", "requires": { - "@walmart/moment-walmart": "1.0.4" + "@walmart/moment-walmart": "1.0.4", + "@walmart/walmart-fiscal-week": "^0.3.6" } }, "@walmart/iteminfo-mini-app": { --- package.json @@ -96,7 +96,7 @@ "@walmart/gtp-shared-components": "^2.0.1", "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "1.2.0", - "@walmart/inbox-mini-app": "0.81.7-395-de7e577", + "@walmart/inbox-mini-app": "0.81.9", "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.36", @@ -126,7 +126,6 @@ "@walmart/taskit-mini-app": "0.49.6", "@walmart/time-clock-mini-app": "0.30.0", "@walmart/ui-components": "1.9.0", - "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.25", "axios": "^1.2.6",
wmWeekFix in inbox
wmWeekFix in inbox
1b04be1a58e65a40e5531703d38b109ceab784bf
--- packages/allspark-foundation-hub/__tests__/supplyChain/Screens/__snapshots__/OnboardingScreen.test.tsx.snap @@ -8,6 +8,7 @@ exports[`OnboardingScreen renders OnboardingScreen screen component 1`] = ` "backgroundColor": "#fff", } } + testID="onboarding-screen" > <View> <View
Updating snapshot
Updating snapshot
42802b9e2dd3cf53dd76470c7d1fed0cb1ff2bee
--- .gitignore @@ -50,9 +50,4 @@ ios/ #Yarn install-state.gz -build.context.json - -# AI and development tools -.context-registry/ -CLAUDE.md -.ai-team-workspace/ \ No newline at end of file +build.context.json \ No newline at end of file --- package.json @@ -1,10 +1,11 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.2.0-alpha.4", + "version": "3.2.0-alpha.2", "main": "dist/index.js", "files": [ "dist", - "main.js" + "main.js", + "ReactotronConfig.js" ], "packageManager": "yarn@4.6.0", "engines": { @@ -82,7 +83,7 @@ "@walmart/allspark-utils": "6.5.1", "@walmart/config-components": "4.6.5", "@walmart/expo-config-plugins": "0.1.4", - "@walmart/gtp-shared-components": "2.2.9-rc.1", + "@walmart/gtp-shared-components": "2.2.4", "@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", --- src/notification/notification.ts @@ -66,45 +66,6 @@ export const shouldNotify = () => { export const backgroundPushNotificationHandler = ( event?: NotificationEvent, ) => { - // DIAGNOSTIC: Log ALL background notifications for debugging - console.log('%c[DIAGNOSTIC] Background notification received', 'color: #00CED1; font-weight: bold; background: #1a1a1a; padding: 2px 5px; border-radius: 3px', { - category: event?.customData?.category, - title: event?.title, - body: event?.body, - customData: JSON.stringify(event?.customData || {}), - timestamp: new Date().toISOString(), - }); - logger.info('[DIAGNOSTIC] Background notification received', { - category: event?.customData?.category, - title: event?.title, - body: event?.body, - customData: JSON.stringify(event?.customData || {}), - timestamp: new Date().toISOString(), - }); - - // Handle clock-out notifications (GTA-ClockStatus category from TimeClockMiniApp) - if (event?.customData?.category === 'GTA-ClockStatus' || - event?.customData?.category === 'clock-out' || - event?.customData?.type === 'CLOCK_OUT' || - event?.title?.toLowerCase().includes('clock') || - event?.body?.toLowerCase().includes('clock')) { - console.warn('%c[🔔 CLOCK-OUT DETECTED] Clock status notification in background', 'color: #FF6347; font-weight: bold; background: #2a0a0a; padding: 4px 8px; border: 2px solid #FF6347; border-radius: 4px', { - category: event?.customData?.category, - type: event?.customData?.type, - isGTAClockStatus: event?.customData?.category === 'GTA-ClockStatus', - fullPayload: JSON.stringify(event), - }); - logger.warn('[DIAGNOSTIC] Clock status notification detected in background', { - category: event?.customData?.category, - type: event?.customData?.type, - isGTAClockStatus: event?.customData?.category === 'GTA-ClockStatus', - fullPayload: JSON.stringify(event), - }); - // Note: TimeClockMiniApp handles the actual state update via Redux - // We just need to ensure we're listening for the state change - return true; - } - if (event?.customData?.category === 'pushtotalkv2') { if (!shouldNotify()) { return true; @@ -124,54 +85,6 @@ export const backgroundPushNotificationHandler = ( export const foregroundPushNotificationHandler = ( event?: NotificationEvent, ) => { - // DIAGNOSTIC: Log ALL foreground notifications for debugging - console.log('%c[DIAGNOSTIC] Foreground notification received', 'color: #32CD32; font-weight: bold; background: #1a1a1a; padding: 2px 5px; border-radius: 3px', { - category: event?.customData?.category, - title: event?.title, - body: event?.body, - customData: JSON.stringify(event?.customData || {}), - timestamp: new Date().toISOString(), - }); - logger.info('[DIAGNOSTIC] Foreground notification received', { - category: event?.customData?.category, - title: event?.title, - body: event?.body, - customData: JSON.stringify(event?.customData || {}), - timestamp: new Date().toISOString(), - }); - - // Handle clock-out notifications (GTA-ClockStatus category from TimeClockMiniApp) - if (event?.customData?.category === 'GTA-ClockStatus' || - event?.customData?.category === 'clock-out' || - event?.customData?.type === 'CLOCK_OUT' || - event?.title?.toLowerCase().includes('clock') || - event?.body?.toLowerCase().includes('clock')) { - console.warn('%c[🔔 CLOCK-OUT DETECTED] Clock status notification in foreground', 'color: #FFD700; font-weight: bold; background: #2a2a0a; padding: 4px 8px; border: 2px solid #FFD700; border-radius: 4px', { - category: event?.customData?.category, - type: event?.customData?.type, - isGTAClockStatus: event?.customData?.category === 'GTA-ClockStatus', - fullPayload: JSON.stringify(event), - }); - logger.warn('[DIAGNOSTIC] Clock status notification detected in foreground', { - category: event?.customData?.category, - type: event?.customData?.type, - isGTAClockStatus: event?.customData?.category === 'GTA-ClockStatus', - fullPayload: JSON.stringify(event), - }); - - // Show toast notification for clock-out - AllsparkNavigationClient.navigate('Core.Toast', { - //@ts-ignore - duration: 5000, - //@ts-ignore - message: `Clock Status Changed: ${event?.title || 'Clock status update received'}`, - //@ts-ignore - dismissText: 'OK', - }); - // Note: TimeClockMiniApp handles the actual state update via Redux - return true; - } - if (event?.customData?.category === 'pushtotalkv2') { if (!shouldNotify()) { return true; --- src/queries/schema.types.ts @@ -532,7 +532,7 @@ export type AllsupervisoryOrganizationManagedGroup = { referenceID?: Maybe<Scalars['String']['output']>; /** Staffing Model */ staffingModel?: Maybe<Scalars['String']['output']>; - /** Name of state� */ + /** Name of state */ state?: Maybe<Scalars['String']['output']>; /** A unique code for state */ stateCode?: Maybe<Scalars['String']['output']>; @@ -6485,7 +6485,7 @@ export type OrgRoleAssigmentsGroup = { organization?: Maybe<Scalars['String']['output']>; /** Reference Identifier */ referenceID?: Maybe<Scalars['String']['output']>; - /** An identifier for Workday� */ + /** An identifier for Workday */ workdayID?: Maybe<Scalars['String']['output']>; }; @@ -6578,7 +6578,7 @@ export type OrganizationRoleDetails = { export type OrganizationRoles = { __typename?: 'OrganizationRoles'; - /** Contains the organization role and the organizations that the worker supports that role for.� */ + /** Contains the organization role and the organizations that the worker supports that role for. */ organizationRoleDetails?: Maybe<OrganizationRoleDetails>; /** Name of Organization Role */ organizationRoleName?: Maybe<Scalars['String']['output']>; @@ -10621,9 +10621,9 @@ export type WorkerBusinessProcessGroup = { export type WorkerMarket = { __typename?: 'WorkerMarket'; - /** Identifier for custom organization� */ + /** Identifier for custom organization */ customOrganizationReferenceID?: Maybe<Scalars['String']['output']>; - /** Identifier for Organization� */ + /** Identifier for Organization */ organizationReferenceID?: Maybe<Scalars['String']['output']>; };
feat(compensable): SMDV-8430 code cleanup
feat(compensable): SMDV-8430 code cleanup
ea5f3092697ee3353a9946b63dff2bd0a9fc1444
--- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx @@ -296,7 +296,8 @@ export const TeamSwitcher = ({ }; const renderTeamItem = ({ item }: { item: TeamSwitcherTypes }) => { - const isSelected = item?.teamLabel === selectedTeam; + const isSelected = + item?.teamLabel === (selectedTeamPreference || selectedTeam); const teamLabel = item.teamLabel === 'myTeams' ? 'My teams' : item.teamLabel; if (!item.teamLabel) {
resolved conflicts
resolved conflicts
15327612a63680aaae9c03f7106f2e3ff6807e10
--- package-lock.json @@ -83,7 +83,7 @@ "@walmart/redux-store": "3.7.0", "@walmart/returns-mini-app": "3.13.0", "@walmart/schedule-mini-app": "0.63.0", - "@walmart/shelfavailability-mini-app": "1.5.18", + "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.24.0", "@walmart/taskit-mini-app": "2.49.7", "@walmart/texting-mini-app": "2.1.4", @@ -9702,9 +9702,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/shelfavailability-mini-app": { - "version": "1.5.18", - "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-1.5.18.tgz", - "integrity": "sha512-XCQBKME/ee2yJDYX+XVtNin3Fvz8zIJTXy3qSGit3ufUcRvaZv2aRN/fR4oK0gyvOTb7p548SS47DZydK/EYlg==", + "version": "1.5.19", + "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-1.5.19.tgz", + "integrity": "sha512-N4zuxdQT3DJGAYVAwPDAYizTQ4MwRClFvcoH63L+uHy4gBBjKzX8EcN5a357Nvf9xq1P6fq2Ai7CtcvI5kl/5Q==", "peerDependencies": { "@react-native-community/eslint-config": "^2.0.0", "@react-native-community/masked-view": "^0.1.10", @@ -9716,6 +9716,7 @@ "@react-native-firebase/perf": "15.1.1", "@react-navigation/native": "^6.0.0", "@react-navigation/stack": "^6.1.0", + "@walmart/allspark-utils": ">=1.6.5", "@walmart/gtp-shared-components": ">=2.0.10", "@walmart/impersonation-mini-app": "1.4.0", "@walmart/react-native-scanner-3.0": ">=0.3.0", @@ -33427,9 +33428,9 @@ "version": "1.0.4" }, "@walmart/shelfavailability-mini-app": { - "version": "1.5.18", - "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-1.5.18.tgz", - "integrity": "sha512-XCQBKME/ee2yJDYX+XVtNin3Fvz8zIJTXy3qSGit3ufUcRvaZv2aRN/fR4oK0gyvOTb7p548SS47DZydK/EYlg==" + "version": "1.5.19", + "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-1.5.19.tgz", + "integrity": "sha512-N4zuxdQT3DJGAYVAwPDAYizTQ4MwRClFvcoH63L+uHy4gBBjKzX8EcN5a357Nvf9xq1P6fq2Ai7CtcvI5kl/5Q==" }, "@walmart/store-feature-orders": { "version": "1.24.0", --- package.json @@ -124,7 +124,7 @@ "@walmart/redux-store": "3.7.0", "@walmart/returns-mini-app": "3.13.0", "@walmart/schedule-mini-app": "0.63.0", - "@walmart/shelfavailability-mini-app": "1.5.18", + "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.24.0", "@walmart/taskit-mini-app": "2.49.7", "@walmart/texting-mini-app": "2.1.4",
Upgrade Shelf Availability mini-app to v1.5.19
Upgrade Shelf Availability mini-app to v1.5.19
99a205bd9caf071ea2ddeb410d401b7d7a7f671d
--- .gitignore @@ -18,7 +18,7 @@ yarn-error.log # generated by bob lib/ -packages/allspark-foundation/cli/ +packages/allspark-foundation/cli/* # jest coverage
chore: update git ignore for foundation cli
chore: update git ignore for foundation cli
9f722ead46c967a15a117824091fa202d05ed224
--- __tests__/__mocks__/@walmart/me-at-walmart-athena-queries.js @@ -1,3 +1,4 @@ module.exports = { + useGetTeamByIdHomeQuery: jest.fn(), useGetTeamByIdHomeLazyQuery: jest.fn(), }; --- __tests__/home/components/TaskCard/TaskClockStatusTeamCard2Test.tsx @@ -4,7 +4,7 @@ import {act, create, ReactTestRenderer} from 'react-test-renderer'; import {useNavigation} from '@react-navigation/native'; import {LinkButton} from '@walmart/gtp-shared-components'; import {useEnvironment} from '@walmart/core-services/Environment'; -import {useGetTeamByIdHomeLazyQuery} from '@walmart/me-at-walmart-athena-queries'; +import {useGetTeamByIdHomeQuery} from '@walmart/me-at-walmart-athena-queries'; import {logWMTelemetryTouchComponentEvent} from '../../../../src/home/logger/Logger'; import {TaskClockStatusTeamCard2} from '../../../../src/home/components/TaskCard/TaskClockStatusTeamCard2'; @@ -24,7 +24,7 @@ jest.mock('../../../../src/home/logger/Logger', () => ({ // eslint-disable-next-line react-hooks/rules-of-hooks const mockNavigation = useNavigation(); const mockUseSelector = useSelector as jest.Mock; -const mockQuery = useGetTeamByIdHomeLazyQuery as jest.Mock; +const mockQuery = useGetTeamByIdHomeQuery as jest.Mock; const mockLoadQuery = jest.fn(); (useEnvironment as jest.Mock).mockReturnValue({consumerId: '1234'}); @@ -51,7 +51,7 @@ describe('TaskClockStatusTeamCard2', () => { mockUseSelector.mockReturnValueOnce('100'); // siteId mockUseSelector.mockReturnValueOnce(['0000041243']); // teamId mockUseSelector.mockReturnValueOnce('US'); // country code - mockQuery.mockReturnValueOnce([mockLoadQuery, {loading: true}]); + mockQuery.mockReturnValueOnce({loading: true, refetch: mockLoadQuery}); act(() => { component = create(<TaskClockStatusTeamCard2 {...baseProps} />); @@ -60,30 +60,30 @@ describe('TaskClockStatusTeamCard2', () => { afterEach(jest.clearAllMocks); - it('calls query on mount and shows spinner', async () => { + it('sets query on mount and shows spinner', async () => { expect(component!.toJSON()).toMatchSnapshot(); - expect(mockLoadQuery).toHaveBeenCalledWith({ - variables: { - countryCode: 'US', - date: '2022-02-21', - storeNbr: '100', - teamId: '0000041243', - }, - }); + expect(mockQuery).toHaveBeenCalledWith( + expect.objectContaining({ + variables: { + countryCode: 'US', + date: '2022-02-21', + storeNbr: '100', + teamId: '0000041243', + }, + }), + ); }); it('shows data on load and navigates on tap', () => { mockUseSelector.mockReturnValueOnce('100'); // siteId mockUseSelector.mockReturnValueOnce(['0000041243']); // teamId mockUseSelector.mockReturnValueOnce('US'); // country code - mockQuery.mockReturnValueOnce([ - mockLoadQuery, - { - loading: false, - error: false, - data: queryResponse, - }, - ]); + mockQuery.mockReturnValueOnce({ + loading: false, + error: false, + data: queryResponse, + refetch: mockLoadQuery, + }); component.update(<TaskClockStatusTeamCard2 {...baseProps} />); expect(component.toJSON()).toMatchSnapshot(); @@ -100,14 +100,12 @@ describe('TaskClockStatusTeamCard2', () => { mockUseSelector.mockReturnValueOnce('100'); // siteId mockUseSelector.mockReturnValueOnce(['0000041243']); // teamId mockUseSelector.mockReturnValueOnce('US'); // country code - mockQuery.mockReturnValueOnce([ - mockLoadQuery, - { - loading: true, - error: false, - data: queryResponse, - }, - ]); + mockQuery.mockReturnValueOnce({ + loading: true, + error: false, + data: queryResponse, + refetch: mockLoadQuery, + }); component.update(<TaskClockStatusTeamCard2 {...baseProps} />); expect(component.toJSON()).toMatchSnapshot(); @@ -117,14 +115,12 @@ describe('TaskClockStatusTeamCard2', () => { mockUseSelector.mockReturnValueOnce('100'); // siteId mockUseSelector.mockReturnValueOnce(['0000041243']); // teamId mockUseSelector.mockReturnValueOnce('US'); // country code - mockQuery.mockReturnValueOnce([ - mockLoadQuery, - { - loading: false, - error: false, - data: {getTeamById: undefined}, - }, - ]); + mockQuery.mockReturnValueOnce({ + loading: false, + error: false, + data: {getTeamById: undefined}, + refetch: mockLoadQuery, + }); component.update(<TaskClockStatusTeamCard2 {...baseProps} />); expect(component.toJSON()).toMatchSnapshot(); @@ -134,14 +130,12 @@ describe('TaskClockStatusTeamCard2', () => { mockUseSelector.mockReturnValueOnce('100'); // siteId mockUseSelector.mockReturnValueOnce(['0000041243']); // teamId mockUseSelector.mockReturnValueOnce('US'); // country code - mockQuery.mockReturnValueOnce([ - mockLoadQuery, - { - loading: false, - error: true, - data: undefined, - }, - ]); + mockQuery.mockReturnValueOnce({ + loading: false, + error: true, + data: undefined, + refetch: mockLoadQuery, + }); component.update(<TaskClockStatusTeamCard2 {...baseProps} />); expect(component.toJSON()).toMatchSnapshot(); @@ -152,14 +146,12 @@ describe('TaskClockStatusTeamCard2', () => { mockUseSelector.mockReturnValueOnce(['0000041243']); // teamId mockUseSelector.mockReturnValueOnce('US'); // country code mockLoadQuery.mockResolvedValueOnce(queryResponse); - mockQuery.mockReturnValueOnce([ - mockLoadQuery, - { - loading: false, - error: false, - data: queryResponse, - }, - ]); + mockQuery.mockReturnValueOnce({ + loading: false, + error: false, + data: queryResponse, + refetch: mockLoadQuery, + }); await act(async () => component.update( @@ -167,14 +159,7 @@ describe('TaskClockStatusTeamCard2', () => { ), ); expect(baseProps.onRefreshStart).toHaveBeenCalledWith(baseProps.refreshKey); - expect(mockLoadQuery).toHaveBeenCalledWith({ - variables: { - countryCode: 'US', - date: '2022-02-21', - storeNbr: '100', - teamId: '0000041243', - }, - }); + expect(mockLoadQuery).toHaveBeenCalledWith(); expect(baseProps.onRefreshEnd).toHaveBeenCalledWith(baseProps.refreshKey); }); }); --- __tests__/home/components/TaskCard/__snapshots__/TaskClockStatusTeamCard2Test.tsx.snap @@ -1,27 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`TaskClockStatusTeamCard2 calls query on mount and shows spinner 1`] = ` -<SolidCard - color="white" - elevation={1} - style={ - Object { - "borderRadius": 8, - } - } -> - <Spinner - color="gray" - small={false} - style={ - Object { - "marginVertical": 16, - } - } - /> -</SolidCard> -`; - exports[`TaskClockStatusTeamCard2 displays error if present 1`] = ` <SolidCard color="white" @@ -33,7 +11,7 @@ exports[`TaskClockStatusTeamCard2 displays error if present 1`] = ` } > <ErrorComponent - retryCallback={[Function]} + retryCallback={[MockFunction]} /> </SolidCard> `; @@ -216,6 +194,28 @@ exports[`TaskClockStatusTeamCard2 handles loading while data is present 1`] = ` </SolidCard> `; +exports[`TaskClockStatusTeamCard2 sets query on mount and shows spinner 1`] = ` +<SolidCard + color="white" + elevation={1} + style={ + Object { + "borderRadius": 8, + } + } +> + <Spinner + color="gray" + small={false} + style={ + Object { + "marginVertical": 16, + } + } + /> +</SolidCard> +`; + exports[`TaskClockStatusTeamCard2 shows data on load and navigates on tap 1`] = ` <SolidCard color="white"
chore: fix tests for task team card changes
chore: fix tests for task team card changes