commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
686133f82dc640f747cc0838f954766c83b740c2
--- android/app/src/main/AndroidManifest.xml @@ -15,6 +15,7 @@ <!-- SUMO --> <queries> + <package android:name="com.walmart.sso.app" /> <intent> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> --- android/build.gradle @@ -4,7 +4,7 @@ buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 23 - compileSdkVersion = 29 + compileSdkVersion = 30 targetSdkVersion = 30 googlePlayServicesVersion = "17.0.0" } @@ -16,7 +16,7 @@ buildscript { } } dependencies { - classpath("com.android.tools.build:gradle:4.0.1") + classpath 'com.android.tools.build:gradle:4.1.0' classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0' classpath 'com.walmart.ssmp:android-signing:1.0.9' --- android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://repository.walmart.com/repository/gradle_distros/gradle-6.2-all.zip +distributionUrl=https\://repository.walmart.com/repository/gradle_distros/gradle-6.5-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
upgrading gradle and adding entry to manifest for legacy sso detection
upgrading gradle and adding entry to manifest for legacy sso detection
0a5538592b35a909d78026cd593e1895ec917092
--- package-lock.json @@ -3184,9 +3184,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.5.18", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.18.tgz", - "integrity": "sha512-lYh4gj+ie2/KP1LzWUWW5hyS6DTUZez1Q4MIx9YUJaXCKU6knb9u746g9D3Q8yj/6u8+XiEL32kDJh/kKcCxBA==" + "version": "0.5.19", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.19.tgz", + "integrity": "sha512-HE/TNh3HrevJh96fQWwSfN13xH3g+O94PKk2eFQFPIkb5wh/JT2D5br3gHwwWIsdOgYeInWIXuetMmG4xEMm5g==" }, "@walmart/wfm-ui": { "version": "0.1.34", --- package.json @@ -64,7 +64,7 @@ "@walmart/schedule-mini-app": "0.2.42", "@walmart/settings-mini-app": "1.1.10", "@walmart/time-clock-mini-app": "0.1.14", - "@walmart/welcomeme-mini-app": "0.5.18", + "@walmart/welcomeme-mini-app": "0.5.19", "@walmart/ui-components": "1.0.91", "i18next": "^19.7.0", "intl": "^1.2.5", --- src/core/versionsInit.ts @@ -17,6 +17,7 @@ const miniApps = [ '@walmart/feedback-all-spark-miniapp', '@walmart/settings-mini-app', '@walmart/inbox-mini-app', + '@walmart/welcomeme-mini-app', 'react-native-ssmp-sso-allspark', ];
WelcomeMe v0.5.19 (#264)
WelcomeMe v0.5.19 (#264) * WelcomeMe v0.5.19 UAT bug fixes * WelcomeMe added to version file
828c9e2082b4a6e2a84bf04b2c7badfc2ee76fe0
--- src/channels/provider.tsx @@ -64,12 +64,11 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const subscriptionOn = useCallback(() => { if (viewerId && siteId) { const channelsPath = createChannelsCollectionPath(siteId); - const teamChannelPath = createTeamChannelPath(viewerTeamId, siteId); - const storeChannelPath = createStoreChannelPath(siteId); + const teamDocumentPath = createTeamChannelPath(viewerTeamId, siteId); + const storeDocumentPath = createStoreChannelPath(siteId); firestore() - .collection(storeChannelPath) - .doc() + .doc(storeDocumentPath) .get() .then((storeChannelDoc) => { //TODO: Set the channelsState for store if not exists @@ -78,8 +77,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { }); firestore() - .collection(teamChannelPath) - .doc() + .doc(teamDocumentPath) .get() .then((teamChannelDoc) => { //TODO: Set the channelsState for team if not exists --- src/channels/provider.tsx @@ -64,12 +64,11 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const subscriptionOn = useCallback(() => { if (viewerId && siteId) { const channelsPath = createChannelsCollectionPath(siteId); - const teamChannelPath = createTeamChannelPath(viewerTeamId, siteId); - const storeChannelPath = createStoreChannelPath(siteId); + const teamDocumentPath = createTeamChannelPath(viewerTeamId, siteId); + const storeDocumentPath = createStoreChannelPath(siteId); firestore() - .collection(storeChannelPath) - .doc() + .doc(storeDocumentPath) .get() .then((storeChannelDoc) => { //TODO: Set the channelsState for store if not exists @@ -78,8 +77,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { }); firestore() - .collection(teamChannelPath) - .doc() + .doc(teamDocumentPath) .get() .then((teamChannelDoc) => { //TODO: Set the channelsState for team if not exists
create working initial query
create working initial query
621c36001c21809041c2227c8d13eccd6ce1d9d3
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx @@ -7,7 +7,6 @@ import { HubHeader } from '../../../Store'; import { useAllsparkTranslation } from '@walmart/allspark-foundation'; import { FEATURE_ID } from '../../../Store/constant'; import { colors } from '@walmart/gtp-shared-components/dist'; -// import { Alert } from '@walmart/gtp-shared-components/dist'; import { AlertBanner } from '../../../Shared/Components/AlertBanner'; export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({ @@ -24,17 +23,11 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({ textColor={colors.black} noPadding /> - {/* {!filterListData && ( */} - <View style={styles.alert}> - <AlertBanner label={t('shiftFilter.mandatoryShiftError')} /> - </View> - {/* <Alert - variant='error' - children={t('shiftFilter.mandatoryShiftError')} - testID='mandatory-shift-error' - UNSAFE_style={styles.alert} - /> */} - {/* )} */} + {!filterListData && ( + <View style={styles.alert}> + <AlertBanner label={t('shiftFilter.mandatoryShiftError')} /> + </View> + )} <View style={styles.container}> {filterListData?.map( (item) =>
Adding conditional render
Adding conditional render
630d77670476dfb0a6c3accc4da8c61519ff5dde
--- .looper.multibranch.yml @@ -24,7 +24,7 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/notes-drop24 + - spec: feature/drop24 triggers: - manual: name: Publish Packages (Pre-Release)
Update .looper.multibranch.yml
Update .looper.multibranch.yml
b403ceef916071111bd61b0ea361518c61a3a733
--- src/notification.ts @@ -4,15 +4,18 @@ import WmNotification, { } from 'react-native-wm-notification'; import {navigate} from '@walmart/react-native-shared-navigation'; -export const onBackgroundNotification = (event?: SumoPushEvent) => { +export const onTextMessageNotification = (event?: SumoPushEvent) => { let handled = false; - if (event?.customData?.category) { - console.log( - '***** Texting mini app is handling this notification! The custom data: ' - ); - console.log(event?.customData); - // @ts-ignore - navigate('texting', {screen: 'texting.messages', params: { channelPath: 'text_channels/STORE_100/channels/j0w0558-rlane1'} }); + if (event?.customData?.category === 'pushtotalkv2') { + const {storeNumber, encodedChannelId} = event?.customData; + const channelPath = `text_channels/STORE_${storeNumber}/channels/${encodedChannelId}`; + const containerScreenName = 'texting'; + const childScreenName = 'texting.messages'; + navigate(containerScreenName, { + // @ts-ignore + screen: childScreenName, + params: {channelPath: channelPath}, + }); handled = true; } @@ -22,39 +25,21 @@ export const onBackgroundNotification = (event?: SumoPushEvent) => { export const initNotificationListeners = async () => { WmNotification.addListener( SumoPushEventTypes.ON_BACKGROUND_NOTIFICATION, - onBackgroundNotification, + onTextMessageNotification, ); WmNotification.addListener( SumoPushEventTypes.ON_FOREGROUND_NOTIFICATION, - onBackgroundNotification, + onTextMessageNotification, ); WmNotification.addListener( SumoPushEventTypes.ON_CONTENT_AVAILABLE_NOTIFICATION, - onBackgroundNotification, + onTextMessageNotification, ); WmNotification.addListener( SumoPushEventTypes.ON_TAPPED_NOTIFICATION_ACTION, - onBackgroundNotification, + onTextMessageNotification, ); - - // const staticEvent: SumoPushEvent = { - // sumoMessageId: 'fakeMessageId', - // correlationId: 'fakeId', - // title: 'A Static Test Notification', - // body: 'Some Body For The Push', - // sound: 'NotAvailable', - // contentAvailable: 0, - // mutableContent: 0, - // customData: { - // category: 'pushtotalkv2', - // }, - // }; - // - // WmNotification.runListeners( - // SumoPushEventTypes.ON_BACKGROUND_NOTIFICATION, - // staticEvent, - // ); }; --- src/notification.ts @@ -4,15 +4,18 @@ import WmNotification, { } from 'react-native-wm-notification'; import {navigate} from '@walmart/react-native-shared-navigation'; -export const onBackgroundNotification = (event?: SumoPushEvent) => { +export const onTextMessageNotification = (event?: SumoPushEvent) => { let handled = false; - if (event?.customData?.category) { - console.log( - '***** Texting mini app is handling this notification! The custom data: ' - ); - console.log(event?.customData); - // @ts-ignore - navigate('texting', {screen: 'texting.messages', params: { channelPath: 'text_channels/STORE_100/channels/j0w0558-rlane1'} }); + if (event?.customData?.category === 'pushtotalkv2') { + const {storeNumber, encodedChannelId} = event?.customData; + const channelPath = `text_channels/STORE_${storeNumber}/channels/${encodedChannelId}`; + const containerScreenName = 'texting'; + const childScreenName = 'texting.messages'; + navigate(containerScreenName, { + // @ts-ignore + screen: childScreenName, + params: {channelPath: channelPath}, + }); handled = true; } @@ -22,39 +25,21 @@ export const onBackgroundNotification = (event?: SumoPushEvent) => { export const initNotificationListeners = async () => { WmNotification.addListener( SumoPushEventTypes.ON_BACKGROUND_NOTIFICATION, - onBackgroundNotification, + onTextMessageNotification, ); WmNotification.addListener( SumoPushEventTypes.ON_FOREGROUND_NOTIFICATION, - onBackgroundNotification, + onTextMessageNotification, ); WmNotification.addListener( SumoPushEventTypes.ON_CONTENT_AVAILABLE_NOTIFICATION, - onBackgroundNotification, + onTextMessageNotification, ); WmNotification.addListener( SumoPushEventTypes.ON_TAPPED_NOTIFICATION_ACTION, - onBackgroundNotification, + onTextMessageNotification, ); - - // const staticEvent: SumoPushEvent = { - // sumoMessageId: 'fakeMessageId', - // correlationId: 'fakeId', - // title: 'A Static Test Notification', - // body: 'Some Body For The Push', - // sound: 'NotAvailable', - // contentAvailable: 0, - // mutableContent: 0, - // customData: { - // category: 'pushtotalkv2', - // }, - // }; - // - // WmNotification.runListeners( - // SumoPushEventTypes.ON_BACKGROUND_NOTIFICATION, - // staticEvent, - // ); };
adding params for notiication
adding params for notiication
d7386cfa45ab98e906da83262bafbccd806c247e
--- packages/allspark-foundation-hub/src/Store/Hooks/useUserCanSeeHub.ts @@ -2,7 +2,7 @@ import { UserSelectors } from '@walmart/allspark-foundation/User'; import { useSelector } from 'react-redux'; import { HOME_OFFICE_DOMAIN } from '../Common'; -export const useUserCanSeeTeamHub = () => { +export const useUserCanSeeHub = () => { const isPeopleLead: boolean = useSelector(UserSelectors.getIsUserPeopleLead); const isTeamLead: boolean = useSelector(UserSelectors.getIsUserTeamLead); const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried);
Update the hook
Update the hook
efaf08cab99084177677f790eb2944adcd9a6a4b
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx @@ -4,19 +4,23 @@ import { ShiftFilter } from './ShiftFilter'; import { ShiftFilterListStyles as styles } from './style'; import { ShiftFilterListProps } from './types'; import { HubHeader } from '../../../Store'; +import { useAllsparkTranslation } from '@walmart/allspark-foundation'; +import { FEATURE_ID } from '../../../Store/constant'; +import { colors } from '@walmart/gtp-shared-components/dist'; -//TODO: Change hubhead styles or add hubheader styles to it export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({ filterListData, handleSelectShift, }) => { + const { t } = useAllsparkTranslation(FEATURE_ID); return ( <> <HubHeader - title='Pick your shift' - subText='Select where the associate typically works.Shift A1 is selected by default, but you can change it at any time.' - backgroundColor='white' - textColor='black' + title={t('shiftFilter.title')} + subText={t('shiftFilter.subText')} + backgroundColor={colors.white} + textColor={colors.black} + noPadding /> <View style={styles.container}> {filterListData?.map(
Updating HubHeader props
Updating HubHeader props
e56a06d64245ca48867c9c3822951410ef7c10ca
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Hub/SiteHubDashboard.tsx @@ -34,7 +34,11 @@ import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation import { createDefaultWidgetPlaceholder } from '../../../HubFeature/utils'; import { OnboardingScreen } from '../Screens/OnboardingScreen/OnboardingScreen'; import { Popover } from '../../Shared/Components/Popover'; -import { AllsparkNavigationClient } from '@walmart/allspark-foundation'; +import { + AllsparkNavigationClient, + AllsparkLocalStorage, +} from '@walmart/allspark-foundation'; +import { POPOVER_KEY } from '../constant'; export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { const { showOnboarding, hideOnboardingFlow } = useOnboardingContext(); @@ -82,6 +86,13 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { const hubScreeName = useSelector(ManagerExperienceSelectors.getHubScreenName); const { t } = useAllsparkTranslation(); + const checkPopoverStatus = useCallback(async () => { + const isFirstTime = await AllsparkLocalStorage.get(POPOVER_KEY); + if (!isFirstTime) { + setShow(true); + } + }, []); + const getTeamNameById = (teamIds: string[]): string[] => { const matchingTeamNames: string[] = []; @@ -100,13 +111,14 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { const allTeamData = getTeamNameById(selectedTeamIds); // After changing store, reload all the hub widgets with new store data. useEffect(() => { + checkPopoverStatus(); if (currentSiteId !== parentSiteID.current) { hideOnboardingFlow(); parentSiteID.current = currentSiteId; onRefresh(); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [currentSiteId]); + }, [currentSiteId, checkPopoverStatus]); const stopRefreshing = () => setState((prev) => ({ @@ -200,6 +212,11 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { ]) ); + const handlePopoverClose = useCallback(async () => { + await AllsparkLocalStorage.set(POPOVER_KEY, 'true'); + setShow(false); + }, []); + return ( <> {showOnboarding ? ( @@ -227,10 +244,10 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { }); }} /> - {show && ( // we only show this once + {show && ( <Popover content={"Tap here to change the team you're viewing."} - handleClose={() => setShow(!show)} + handleClose={handlePopoverClose} showPopover={show} UNSAFE_style={{ width: '60%' }} /> --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingContext.tsx @@ -9,10 +9,12 @@ import React, { import { LoggerService, useTelemetryService, + AllsparkLocalStorage, } from '@walmart/allspark-foundation'; import { UserSelectors } from '@walmart/allspark-foundation/User'; import { useDispatch, useSelector } from 'react-redux'; import { ManagerExperienceCreators } from '../../Redux'; +import { ONBOARDING_KEY } from '../../constant'; export const OnboardingContext = createContext<any>({}); @@ -36,6 +38,19 @@ export const SupplyChainOnboardingProvider = ({ children }: any) => { const onboardingTelemetryRef = useRef(onboardingTelemetry); const dispatch = useDispatch(); + const checkOnboarding = async () => { + const hasAlreadyOnboarded = await AllsparkLocalStorage.get(ONBOARDING_KEY); + if (hasAlreadyOnboarded) { + setShowOnboarding(false); + } + }; + + useEffect(() => { + if (showOnboarding) { + checkOnboarding(); + } + }, [showOnboarding, checkOnboarding]); + const getMyTeamData = useCallback( async () => { try { --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -11,10 +11,11 @@ import { } from '../EditSavedTeamModal/mockTeamsData'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; import { styles } from './styles'; -import { FEATURE_ID } from '../../constant'; +import { FEATURE_ID, ONBOARDING_KEY } from '../../constant'; import { LoggerService, useTelemetryService, + AllsparkLocalStorage, } from '@walmart/allspark-foundation'; import { useOnboardingContext } from './OnboardingContext'; import { ManagerExperienceCreators } from '../../../Store/Redux/actions'; @@ -75,18 +76,23 @@ export const OnboardingScreen = () => { [selectedShifts, setSelectedShifts] ); - const handleSaveButton = useCallback(() => { + const handleSkip = useCallback(async () => { + dispatch(ManagerExperienceCreators.updateSelectedTeamIDs(['Total store'])); + dispatch(ManagerExperienceCreators.updateSelectedShifts(['A1'])); + await AllsparkLocalStorage.set(ONBOARDING_KEY, 'true'); + disableOnboarding(); + }, []); + + const handleSaveButton = useCallback(async () => { logger.info('Onboarding', { message: 'Onboarding started', }); teamSelectionTelemetry.logEvent('supplychain_onboarding_event', { message: 'Supplychain onboarding event started', }); - // AllsparkNavigationClient.navigate( - // 'managerExperience.supplyChain.editBottomSheet' - // ); dispatch(ManagerExperienceCreators.updateSelectedTeamIDs(selectedTeams)); dispatch(ManagerExperienceCreators.updateSelectedShifts(selectedShifts)); + await AllsparkLocalStorage.set(ONBOARDING_KEY, 'true'); disableOnboarding(); }, [ disableOnboarding, @@ -111,7 +117,7 @@ export const OnboardingScreen = () => { links={[ { label: t('dashboard.skipLink'), - onPress: handleSaveButton, + onPress: handleSkip, }, ]} /> @@ -137,6 +143,7 @@ export const OnboardingScreen = () => { /> </View> <Button + disabled={selectedShifts.length === 0 && selectedTeams.length === 0} onPress={handleSaveButton} variant='primary' accessibilityRole='button' --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/constant.ts @@ -11,3 +11,5 @@ export const TOTAL_STORE_TEAM_LABEL = 'Total store'; export const MY_TEAMS_TEAM_ID = 'myTeams'; export const MY_TEAMS_TEAM_LABEL = 'My teams'; export const PLATFORM_NAME = 'manager-experience'; +export const ONBOARDING_KEY = 'SUPPLY_CHAIN_ONBOARDING'; +export const POPOVER_KEY = 'SUPPLY_CHAIN_POPOVER';
feat(ui): added logic for onboarding skip and popover
feat(ui): added logic for onboarding skip and popover
927e91da12f7f8f816c64bf377e2097514e8c965
--- android/app/build.gradle @@ -158,8 +158,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 918 - versionName "1.16.0" + versionCode 919 + versionName "1.17.0" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.16.0</string> + <string>1.17.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -42,7 +42,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>918</string> + <string>919</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.16.0", + "version": "1.17.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.16.0", + "version": "1.17.0", "hasInstallScript": true, "dependencies": { "@firebase/firestore-types": "^2.5.1", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.16.0", + "version": "1.17.0", "private": true, "scripts": { "android": "react-native run-android",
version bump to 1.17.0
version bump to 1.17.0
ec8bac9299091d557b88de4dd813dab47f09da76
--- 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.24.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.7...@walmart/allspark-foundation-hub@1.24.8) (2025-11-19) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.24.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.6...@walmart/allspark-foundation-hub@1.24.7) (2025-11-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.24.7", + "version": "1.24.8", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/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. +## [7.13.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.13.7...@walmart/allspark-foundation@7.13.8) (2025-11-19) + +**Note:** Version bump only for package @walmart/allspark-foundation + ## [7.13.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.13.6...@walmart/allspark-foundation@7.13.7) (2025-11-19) ### Bug Fixes --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.13.7", + "version": "7.13.8", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/components-library/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.2.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/ax-components@1.1.1...@walmart/ax-components@1.2.0) (2025-11-19) + +### Features + +- ALLSPARK-7242 added clockedout component and bottomsheet ([#496](https://gecgithub01.walmart.com/allspark/allspark/issues/496)) ([f6d55f5](https://gecgithub01.walmart.com/allspark/allspark/commit/f6d55f51ad2f27880466c6f216207cefcd1ee530)) + ## [1.1.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/ax-components@1.1.0...@walmart/ax-components@1.1.1) (2025-11-12) **Note:** Version bump only for package @walmart/ax-components --- packages/components-library/package.json @@ -57,7 +57,7 @@ "test:coverage": "jest --coverage", "expo:check": "expo install --check" }, - "version": "1.1.1", + "version": "1.2.0", "main": "lib/index.js", "types": "lib/index.d.ts", "name": "@walmart/ax-components", --- packages/me-at-walmart-geolocation/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.4.11](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.10...@walmart/me-at-walmart-geolocation@1.4.11) (2025-11-19) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.4.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.9...@walmart/me-at-walmart-geolocation@1.4.10) (2025-11-19) **Note:** Version bump only for package @walmart/me-at-walmart-geolocation --- packages/me-at-walmart-geolocation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-geolocation", - "version": "1.4.10", + "version": "1.4.11", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js", --- packages/me-at-walmart-location/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.11](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.10...@walmart/me-at-walmart-location@1.2.11) (2025-11-19) + +**Note:** Version bump only for package @walmart/me-at-walmart-location + ## [1.2.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.9...@walmart/me-at-walmart-location@1.2.10) (2025-11-19) **Note:** Version bump only for package @walmart/me-at-walmart-location --- packages/me-at-walmart-location/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-location", - "version": "1.2.10", + "version": "1.2.11", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js", --- 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.4.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.7...@walmart/my-walmart-hub@1.4.8) (2025-11-19) + +**Note:** Version bump only for package @walmart/my-walmart-hub + ## [1.4.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.6...@walmart/my-walmart-hub@1.4.7) (2025-11-19) **Note:** Version bump only for package @walmart/my-walmart-hub --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.4.7", + "version": "1.4.8", "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.13.8 - @walmart/allspark-foundation-hub@1.24.8 - @walmart/ax-components@1.2.0 - @walmart/me-at-walmart-geolocation@1.4.11 - @walmart/me-at-walmart-location@1.2.11 - @walmart/my-walmart-hub@1.4.8
afe5332048993e919512d65ebd1eed116e4897be
--- __tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -467,7 +467,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects PaymentSelectionScreen PaystubScreen AuthScreen - TopstockScreen ExceptionMiniApp FacilitiesFeature GlobalVpiScreens @@ -941,7 +940,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects PaymentSelectionScreen PaystubScreen AuthScreen - TopstockScreen ExceptionMiniApp FacilitiesFeature GlobalVpiScreens
chore: update snapshots
chore: update snapshots
d22ded0370054872a1ac9747f0fa1eb83c721304
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.20.2", + "version": "1.19.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.20.2", + "version": "1.19.0", "hasInstallScript": true, "dependencies": { "@react-native-async-storage/async-storage": "~1.21.0", @@ -47,8 +47,8 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.20.5", "@walmart/attendance-mini-app": "3.24.0", - "@walmart/avp-feature-app": "0.2.10", - "@walmart/avp-shared-library": "0.2.12", + "@walmart/avp-feature-app": "0.3.4", + "@walmart/avp-shared-library": "0.3.7", "@walmart/backroom-mini-app": "1.0.6", "@walmart/calling-mini-app": "0.1.24", "@walmart/checkout-mini-app": "3.9.310", @@ -10990,9 +10990,9 @@ } }, "node_modules/@walmart/avp-feature-app": { - "version": "0.2.10", - "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.2.10.tgz", - "integrity": "sha512-XhOnb/AhxZjV06BhW8WUBN/20ho2jtJXVfuB8APGTZxWCe20jod+lUD0NTurqxy+io8/Cvj3IG/TmD1kxT7pow==", + "version": "0.3.4", + "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.3.4.tgz", + "integrity": "sha512-7RX95CdbNOLssEAJmxaNlmsA81jHytmzz3KB6Q0yI1Ic3dnJ43KMwKAQVyUfmL32bKtuNfvAPdTByGVkOk3Rmw==", "hasInstallScript": true, "engines": { "node": ">=16" @@ -11008,9 +11008,9 @@ } }, "node_modules/@walmart/avp-shared-library": { - "version": "0.2.12", - "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.2.12.tgz", - "integrity": "sha512-VTQalu3EwlAlY5T4+rxSSXCP7CifgkeBQ3PzV28G/aHpe29kS+iZtO143AUR4G9sMjiz8y6nsKhAnvPn7ReWQg==", + "version": "0.3.7", + "resolved": "https://npme.walmart.com/@walmart/avp-shared-library/-/avp-shared-library-0.3.7.tgz", + "integrity": "sha512-Pa4CcvCOgt5cj4Ec/HQi8SPj0TIp4UNpFdsU3dEfgwxsMq/1n+nWurXRGxCD4rjJfPOmKUZFzItauqK+0Q0n7g==", "peerDependencies": { "axios": "^1.3.4", "immer": "^9.0.16", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.20.2", + "version": "1.19.0", "private": true, "scripts": { "android": "react-native run-android", @@ -88,8 +88,8 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.20.5", "@walmart/attendance-mini-app": "3.24.0", - "@walmart/avp-feature-app": "0.2.10", - "@walmart/avp-shared-library": "0.2.12", + "@walmart/avp-feature-app": "0.3.4", + "@walmart/avp-shared-library": "0.3.7", "@walmart/backroom-mini-app": "1.0.6", "@walmart/calling-mini-app": "0.1.24", "@walmart/checkout-mini-app": "3.9.310", @@ -354,8 +354,8 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.20.5", "@walmart/attendance-mini-app": "3.24.0", - "@walmart/avp-feature-app": "0.2.10", - "@walmart/avp-shared-library": "0.2.12", + "@walmart/avp-feature-app": "0.3.4", + "@walmart/avp-shared-library": "0.3.7", "@walmart/backroom-mini-app": "1.0.6", "@walmart/calling-mini-app": "0.1.24", "@walmart/compass-sdk-rn": "5.19.3",
bumped avp version
bumped avp version
cf643f8ac13a6f4b3c410c3866452031fcde2d2f
--- package-lock.json @@ -4341,9 +4341,9 @@ "integrity": "sha512-KuJZ9iZmpMq6BxWoSB0VePjLjdQEgGbJgXs0mwWqjpryfnfhk9tUHaEvwgps53CEcS67hsGK0XbENH4SSD+L0Q==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.76", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.76.tgz", - "integrity": "sha512-ErNnYgcZE2BlctKh2LeJsq3ZSZYPUo1yyuoI3STehezQhKwBViIg/qBVY7jVpf5S1ETAmZaKY+45LJ9g5Li8rA==" + "version": "0.5.77", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.77.tgz", + "integrity": "sha512-eFhkPRv1hS6839bWQWtu2w4Uy8gYIym9gW2gND6Kv4kUFPs7vEqd438rD2evSRM9kLL6Fqt9939XyYvgqyDceQ==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -90,7 +90,7 @@ "@walmart/metrics-mini-app": "0.4.14", "@walmart/moment-walmart": "1.0.4", "@walmart/price-changes-mini-app": "1.0.5", - "@walmart/push-to-talk-mini-app": "0.5.76", + "@walmart/push-to-talk-mini-app": "0.5.77", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0",
updating ptt version to latest
updating ptt version to latest
0d1305f7ed19932d43dcf8b3052e51afd6a4ef2a
--- packages/allspark-foundation/__tests__/GraphQL/links.test.ts @@ -60,7 +60,6 @@ describe('DynamicLink', () => { test('should forward operation by default', done => { const operation = createMockOperation(); const forward = jest.fn((op: Operation) => Observable.of({ data: 'result' })); - link.request(operation, forward)?.subscribe({ next: (result) => { expect(result).toEqual({ data: 'result' }); @@ -92,7 +91,7 @@ describe('DynamicLink', () => { })); }); - const link = dynamicLink; + link.addLink(dynamicLink); link.request(operation, forward)?.subscribe({ next: (result) => { expect(result).toEqual({ @@ -112,14 +111,12 @@ describe('DynamicLink', () => { const operation = { getContext: () => ({}), }; - const forward = jest.fn((op) => { return new Observable(observer => { observer.next({ data: { result: 'result' } }); observer.complete(); }); }); - const dynamicLink1 = new ApolloLink((operation, forward) => { return forward(operation).map((data) => ({ ...data, @@ -129,7 +126,6 @@ describe('DynamicLink', () => { } })); }); - const dynamicLink2 = new ApolloLink((operation, forward) => { return forward(operation).map((data) => ({ ...data, @@ -139,9 +135,9 @@ describe('DynamicLink', () => { } })); }); - - const link = ApolloLink.from([dynamicLink1, dynamicLink2]); - link.request(operation, forward)?.subscribe({ + link.addLinks([dynamicLink1, dynamicLink2]); + const link2 = ApolloLink.from([dynamicLink1, dynamicLink2]); + link2.request(operation, forward)?.subscribe({ next: (result) => { expect(result).toEqual({ data: {
add links unit test
add links unit test
b0e27980b2e46bae7c0137499d920cb898d0b467
--- package.json @@ -112,7 +112,7 @@ "@walmart/ims-print-services-ui": "2.11.3", "@walmart/inbox-mini-app": "0.94.6", "@walmart/iteminfo-mini-app": "7.13.2", - "@walmart/learning-mini-app": "20.0.26", + "@walmart/learning-mini-app": "20.0.27", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.1.4", "@walmart/me-at-walmart-common": "6.1.4", --- yarn.lock @@ -6341,9 +6341,9 @@ __metadata: languageName: node linkType: hard -"@walmart/learning-mini-app@npm:20.0.26": - version: 20.0.26 - resolution: "@walmart/learning-mini-app@npm:20.0.26" +"@walmart/learning-mini-app@npm:20.0.27": + version: 20.0.27 + resolution: "@walmart/learning-mini-app@npm:20.0.27" peerDependencies: "@atmt/feedback-component-native": ^8.0.0 "@react-native-firebase/analytics": 17.4.2 @@ -6417,7 +6417,7 @@ __metadata: reduxsauce: ^1.2.0 reselect: ^4.0.0 wifi-store-locator: ^1.0.0-alpha2 - checksum: 10c0/34f943db382194953081c738b448bd2f9e126e2ab56f55ae26ef4ba2c9e39d793c05f6b03bb80772836c12d38f86cf449acb75dffed32544d2e2c10bede2f4ad + checksum: 10c0/c4407b11db63c956b8f85596d250b9fd08d0002b7857777d38437f9041bf26aaa3c53086eed0bc6cdb482ad517c7b96b03b1f228427fc3255fbfa223b211344b languageName: node linkType: hard @@ -7729,7 +7729,7 @@ __metadata: "@walmart/ims-print-services-ui": "npm:2.11.3" "@walmart/inbox-mini-app": "npm:0.94.6" "@walmart/iteminfo-mini-app": "npm:7.13.2" - "@walmart/learning-mini-app": "npm:20.0.26" + "@walmart/learning-mini-app": "npm:20.0.27" "@walmart/manager-approvals-miniapp": "npm:0.2.4" "@walmart/me-at-walmart-athena-queries": "npm:6.1.4" "@walmart/me-at-walmart-common": "npm:6.1.4"
feat: :sparkles: Bump learning mini app version to 20.0.27
feat: :sparkles: Bump learning mini app version to 20.0.27
9b632df715c7e3d0fa486d40cc05cf56f32c88b2
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/EditSavedTeams/EditSavedTeams.tsx @@ -22,6 +22,7 @@ const renderSavedTeamItem: ListRenderItem<SavedTeam> = ({ }) => { return ( <PillTeamListItem + isSubItem isSelected={false} teamId={savedTeam.teamId} teamName={savedTeam.teamName}
feat(ui): subitem
feat(ui): subitem
b4d36f2fa00a8525c6855a03ec586a6291ad811d
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.21", + "version": "2.0.23", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.21", + "version": "2.0.23", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
2721ca4595bfe1a6898ffb9f9503b8742aee4d16
--- graphql.yml @@ -21,18 +21,18 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' queryTemplate: 'src/queries/getTeamById.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' - name: 'stage' persistedQueries: - name: 'GetAssociateClockStatus' @@ -49,18 +49,18 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' queryTemplate: 'src/queries/getTeamById.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' # - name: 'prod' # persistedQueries: # - name: 'GetAssociateClockStatus' @@ -77,15 +77,15 @@ applications: # hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' # queryTemplate: 'src/queries/getDailyRoster.graphql' # tags: -# - 'v2' -# - 'Drop13' +# - 'v3' +# - 'Drop14' # - name: 'GetTeamById' -# hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' # queryTemplate: 'src/queries/getTeamById.graphql' # tags: -# - 'v1' +# - 'v2' +# - 'Drop16' # - name: 'GetTeamsByStore' -# hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' # queryTemplate: 'src/queries/getTeamsbyStore.graphql' # tags: -# - 'v1' +# - 'v2' +# - 'Drop16' --- graphql.yml @@ -21,18 +21,18 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' queryTemplate: 'src/queries/getTeamById.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' - name: 'stage' persistedQueries: - name: 'GetAssociateClockStatus' @@ -49,18 +49,18 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' queryTemplate: 'src/queries/getTeamById.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' # - name: 'prod' # persistedQueries: # - name: 'GetAssociateClockStatus' @@ -77,15 +77,15 @@ applications: # hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' # queryTemplate: 'src/queries/getDailyRoster.graphql' # tags: -# - 'v2' -# - 'Drop13' +# - 'v3' +# - 'Drop14' # - name: 'GetTeamById' -# hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' # queryTemplate: 'src/queries/getTeamById.graphql' # tags: -# - 'v1' +# - 'v2' +# - 'Drop16' # - name: 'GetTeamsByStore' -# hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' # queryTemplate: 'src/queries/getTeamsbyStore.graphql' # tags: -# - 'v1' +# - 'v2' +# - 'Drop16'
updating graphQL file
updating graphQL file
4c11bdc0b9438f416d7e62d6988a4286734d2b0b
--- src/screens/SearchScreen.tsx @@ -178,7 +178,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = (props) => { ); }; - //TODO: Unable to re-use the roster component on this screen so duplicating flashList. Investigate this render bug and fix + //TODO: Unable to re-use the roster component on this screen so duplicating flashList. https://jira.walmart.com/browse/SMDV-5211 return ( <View style={styles.searchScreenContainer}> {recentSearchHistory.length > 0 && !searchInput ? (
adding jira ticket link to the todo
adding jira ticket link to the todo
36d95e5f6a2eaef7665854e4d1c4d46830d6f3df
--- ios/Podfile.lock @@ -350,7 +350,7 @@ PODS: - React - react-native-get-random-values (1.5.1): - React-Core - - react-native-logger (1.26.0): + - react-native-logger (1.27.0): - React - react-native-netinfo (5.9.7): - React-Core @@ -818,7 +818,7 @@ SPEC CHECKSUMS: react-native-encrypted-storage: 837c733334debf626204f03d867c7e01d8741e2f react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e - react-native-logger: 6822d3bbc4e89f0f0f24fb0737a75eb80af89856 + react-native-logger: 95fe964398913088bd1add74ff671916c4ddfd76 react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f react-native-ptt-module: 65c70129b84f1a1d8a9e12bfb6b4ff74f27361a4 --- package-lock.json @@ -3201,9 +3201,9 @@ "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ==" }, "@walmart/react-native-logger": { - "version": "1.26.0", - "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.26.0.tgz", - "integrity": "sha512-+3oS/C6w3EqIJwWwhqnnwQz06sDBXxhW0oPmybzAmpCqbBAvzWKdOy41oizfjXrPqkFzPldGT3V8C0HbCdZrHg==" + "version": "1.27.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.27.0.tgz", + "integrity": "sha512-h5rf67lF/YyeETUNWpIXEGHCDsBo7qPwGyNlriVkFUOQfAIM99fWeftQZorgI1b4oqBx8CPuAyx8yaNjEM9kOg==" }, "@walmart/react-native-shared-navigation": { "version": "0.4.0", --- package.json @@ -81,7 +81,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.21", "@walmart/react-native-env": "^0.1.0", - "@walmart/react-native-logger": "^1.26.0", + "@walmart/react-native-logger": "^1.27.0", "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/redux-store": "^1.0.14", "@walmart/schedule-mini-app": "0.2.76",
Updated react native logger to 1.27.0
Updated react native logger to 1.27.0
f351402f0df80715ce72817f3c0480deb5cc9f72
--- package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "allspark-main", - "version": "1.20.0", + "version": "1.21.0", "hasInstallScript": true, "dependencies": { "@react-native-async-storage/async-storage": "^1.21.0",
chore package lock update
chore package lock update
99122606c5b95bfa14dbeb24cfdc39c0e2246d09
--- package.json @@ -175,7 +175,7 @@ "@walmart/time-clock-feature-app": "1.0.0-beta.7", "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.11#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.11-d3039974f6.patch", "@walmart/timesheet-feature-app": "0.2.0-beta.16", - "@walmart/topstock-mini-app": "1.28.12", + "@walmart/topstock-mini-app": "1.28.15", "@walmart/translator-mini-app": "1.8.12", "@walmart/ui-components": "1.27.2", "@walmart/walmart-fiscal-week": "^0.3.6", --- yarn.lock @@ -8516,7 +8516,7 @@ __metadata: "@walmart/time-clock-feature-app": "npm:1.0.0-beta.7" "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.11#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.11-d3039974f6.patch" "@walmart/timesheet-feature-app": "npm:0.2.0-beta.16" - "@walmart/topstock-mini-app": "npm:1.28.12" + "@walmart/topstock-mini-app": "npm:1.28.15" "@walmart/translator-mini-app": "npm:1.8.12" "@walmart/ui-components": "npm:1.27.2" "@walmart/walmart-fiscal-week": "npm:^0.3.6" @@ -9603,19 +9603,20 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.28.12": - version: 1.28.12 - resolution: "@walmart/topstock-mini-app@npm:1.28.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftopstock-mini-app%2F-%2F%40walmart%2Ftopstock-mini-app-1.28.12.tgz" +"@walmart/topstock-mini-app@npm:1.28.15": + version: 1.28.15 + resolution: "@walmart/topstock-mini-app@npm:1.28.15::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftopstock-mini-app%2F-%2F%40walmart%2Ftopstock-mini-app-1.28.15.tgz" peerDependencies: "@react-navigation/native": ">=5.8.10" "@react-navigation/stack": ">=5.12.8" "@walmart/allspark-foundation": "*" + "@walmart/gtp-shared-components-3": "*" "@walmart/ui-components": ">=1.0.79" i18next: ">=19.5.1" react-i18next: ">=11.7.3" react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/979c987ff564a4dfa520f0239fe7d7216c91b9a0aea90543a1f5991dbafe5891d095d969f20a8163c9e5a25700b9cb1588b3e7c0473e808924fad55e9334ddea + checksum: 10c0/5260d24ddad59a6acdf43e6ca0444c2afbb1bdd19585954b87b34b59aff80a57fae0de6b57fef8d5ef6caefd0488719bef4f9afe4c827e5a1ed405a246b3e160 languageName: node linkType: hard
fix(topstock): gtp 3 support and bug fixes (#5144)
fix(topstock): gtp 3 support and bug fixes (#5144) Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com> Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com>
bd2d0d2ce85f293c4032957ab26c7e847a75b1a9
--- package-lock.json @@ -5228,9 +5228,9 @@ "integrity": "sha512-IuzyUOujBWrNrrs+I0CHc/f3UioBdKPOxjzB/XANkd3NP1JbFA82kC9GqJ6UJhCoEX/gtI+FxUPSaxbq8fahDw==" }, "@walmart/counts-component-miniapp": { - "version": "0.0.36", - "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.36.tgz", - "integrity": "sha512-NgPbPbjEtNysLBgd6dcQ6pT9vowhbRlLYanizdO64x5PFnGijn4ZZkb1/ysOj+EpnXtfAYDpB5y9YENfjaY2FQ==" + "version": "0.0.39", + "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.39.tgz", + "integrity": "sha512-vGHNXjipnOEdJaASi+EQjTr0YeBNJ2/8Az1pRWzi72gPKh3LfBWidMwrN7CzOCNNuXirVuRVP9zyfTscyQN6pw==" }, "@walmart/exception-mini-app": { "version": "0.42.1", --- package.json @@ -82,7 +82,7 @@ "@walmart/core-services-allspark": "~1.7.12", "@walmart/core-utils": "~1.0.10", "@walmart/core-widget-registry": "0.3.2", - "@walmart/counts-component-miniapp": "0.0.36", + "@walmart/counts-component-miniapp": "0.0.39", "@walmart/exception-mini-app": "0.42.1", "@walmart/facilities-management-miniapp": "0.1.0", "@walmart/feedback-all-spark-miniapp": "0.6.0",
bump counts version
bump counts version
ebddefa1e1d203b267414f32398c4a11957af5d0
--- package.json @@ -117,7 +117,7 @@ "@walmart/ims-print-services-ui": "2.23.0", "@walmart/inbox-mini-app": "0.103.1", "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", - "@walmart/iteminfo-mini-app": "8.7.0", + "@walmart/iteminfo-mini-app": "8.7.2", "@walmart/learning-mini-app": "20.0.79", "@walmart/manager-approvals-miniapp": "0.3.7", "@walmart/me-at-walmart-athena-queries": "6.31.0", --- yarn.lock @@ -8348,9 +8348,9 @@ __metadata: languageName: node linkType: hard -"@walmart/iteminfo-mini-app@npm:8.7.0": - version: 8.7.0 - resolution: "@walmart/iteminfo-mini-app@npm:8.7.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fiteminfo-mini-app%2F-%2F%40walmart%2Fiteminfo-mini-app-8.7.0.tgz" +"@walmart/iteminfo-mini-app@npm:8.7.2": + version: 8.7.2 + resolution: "@walmart/iteminfo-mini-app@npm:8.7.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fiteminfo-mini-app%2F-%2F%40walmart%2Fiteminfo-mini-app-8.7.2.tgz" peerDependencies: "@apollo/client": ">=3.7.3" "@react-navigation/drawer": ">=6.3.0" @@ -8360,17 +8360,13 @@ __metadata: "@walmart/allspark-utils": 6.1.4 "@walmart/ask-sam-mini-app": ">=1.24.7" "@walmart/config-components": ">=4.4.2" - "@walmart/core-services": ^6.2.0 "@walmart/counts-component-miniapp": ">=0.1.15" - "@walmart/functional-components": ">=4.0.3" "@walmart/gtp-shared-components": ">=2.1.3" "@walmart/ims-print-services-ui": ">=2.7.1" "@walmart/price-changes-mini-app": ">=1.10.18" - "@walmart/react-native-env": ">=0.2.0" "@walmart/react-native-logger": ">=1.34.8" "@walmart/react-native-scanner-3.0": ">=0.6.3" "@walmart/react-native-store-map": ">=0.3.7" - "@walmart/redux-store": ">=3.5.0" "@walmart/ui-components": ">=1.15.1" dayjs: ">=1.11.5" expo: ^50.0.0 @@ -8392,7 +8388,7 @@ __metadata: reselect: ">=4.1.0" uuid: ">=3.3.2" victory-native: ">=36.5.0" - checksum: 10c0/7b199f45329891489ec4e6c19460bb5aef14cb8eb35d02d3b042306e960b4fbd0f3e76ef147d2d246d115c7cf99ed8fa626efd8dd1a9a3bf15930264234829ef + checksum: 10c0/d064fe29c19d224d5c8bc92e8c52e9990ebb1a591f3d72a78196036e890fe4fc0f7ee333507ea16d48a04ac17c0b8ec09366d0850f8240319b95ce5c13dd7bc9 languageName: node linkType: hard @@ -8710,7 +8706,7 @@ __metadata: "@walmart/ims-print-services-ui": "npm:2.23.0" "@walmart/inbox-mini-app": "npm:0.103.1" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" - "@walmart/iteminfo-mini-app": "npm:8.7.0" + "@walmart/iteminfo-mini-app": "npm:8.7.2" "@walmart/learning-mini-app": "npm:20.0.79" "@walmart/manager-approvals-miniapp": "npm:0.3.7" "@walmart/me-at-walmart-athena-queries": "npm:6.31.0"
feat(item-info): Update iteminfoini app version for drop34
feat(item-info): Update iteminfoini app version for drop34
b87c5968533f43517a763c09491c20784ac1bd16
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -82,7 +82,6 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( route: string, params?: Record<string, any> | undefined, ) => { - console.log('Navigation called for', route, params); onDrawerClose(); setImmediate(() => navigation.navigate(route, params)); };
Removing log
Removing log
9ca92395edc550108f448199e61f56621563dfb0
--- packages/me-at-walmart-container/src/graphql/policies.ts @@ -52,6 +52,9 @@ export const TypePolicies: StrictTypedTypePolicies = { AssociateJobDetail: { merge: true, }, + AssociatePreferences: { + merge: true, + }, // TODO: Added by Learning. Add at mini app level. Badge: { merge: true, @@ -72,6 +75,9 @@ export const TypePolicies: StrictTypedTypePolicies = { CourseProgress: { merge: true, }, + DisplayPreferences: { + merge: true, + }, // TODO: Added by Learning. Add at mini app level. EmploymentDetails: { merge: true, @@ -84,6 +90,9 @@ export const TypePolicies: StrictTypedTypePolicies = { Library: { merge: true, }, + MeAtWalmartPreferences: { + merge: true, + }, // TODO: How long does this need to be maintained? MewAssociate: { keyFields: ['associateId'], @@ -111,10 +120,16 @@ export const TypePolicies: StrictTypedTypePolicies = { }, }, }, + NotificationPreferences: { + merge: true, + }, // TODO: Added by Learning. Add at mini app level. Profile: { merge: true, }, + Punch: { + merge: true, + }, // TODO: Added by Learning. Add at mini app level. SearchCourses: { merge: true,
fix: missing cache policies lead to cache misses
fix: missing cache policies lead to cache misses
5392457432e85040dbe3a2d35dffefed8922e0cb
--- __tests__/__mocks__/@walmart/financial-wellbeing-feature-app.js @@ -1,4 +1,5 @@ -jest.mock('@walmart/financial-wellbeing-feature-app', () => ({ +module.exports = { + __esModule: true, FWBNav: 'FWB', FWB_NAV_SCREEN_NAME: 'FWB', -})); +}; --- __tests__/__mocks__/@walmart/pay-stub-miniapp.js @@ -1,3 +1,4 @@ -jest.mock('@walmart/pay-stub-miniapp', () => ({ +module.exports = { + __esModule: true, PayStubMiniApp: 'PayStubMiniApp', -})); +}; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -114,9 +114,13 @@ Array [ name="paymentselection" /> <Screen + component="PayStubMiniApp" name="paystub" /> - <Screen /> + <Screen + component="FWB" + name="FWB" + /> </Group> <Screen component="TimeClockScreen"
updated mocks for financial-wellbeing-feature-app and pay-stub-miniapp
updated mocks for financial-wellbeing-feature-app and pay-stub-miniapp
9c91edb08fce0bcb155586cf67262cee0735f0bb
--- package-lock.json @@ -69,7 +69,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.33.0", - "@walmart/react-native-scanner-3.0": "0.1.32", + "@walmart/react-native-scanner-3.0": "0.2.0", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1", @@ -5806,9 +5806,9 @@ } }, "node_modules/@walmart/react-native-scanner-3.0": { - "version": "0.1.32", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.32.tgz", - "integrity": "sha512-eTnQ4DX9rb8YNbj7tfn4iqRuiQotY3YNEJXDOm17/F4IbQ3/raWQgRArVvFAXswMz/pnSfIN7cqJEgUKlYX66Q==", + "version": "0.2.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.2.0.tgz", + "integrity": "sha512-GkIMsrIJeZNHgfIzbq+dK7MDcKRIzs1Z9L8GEuTytP38hxlUGQPHPzKVKfkveYvihynKtAPJ8wAyuyTQEhYepg==", "license": "ISC", "peerDependencies": { "react-native": ">=0.47.1" @@ -25383,9 +25383,9 @@ "version": "1.33.0" }, "@walmart/react-native-scanner-3.0": { - "version": "0.1.32", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.32.tgz", - "integrity": "sha512-eTnQ4DX9rb8YNbj7tfn4iqRuiQotY3YNEJXDOm17/F4IbQ3/raWQgRArVvFAXswMz/pnSfIN7cqJEgUKlYX66Q==" + "version": "0.2.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.2.0.tgz", + "integrity": "sha512-GkIMsrIJeZNHgfIzbq+dK7MDcKRIzs1Z9L8GEuTytP38hxlUGQPHPzKVKfkveYvihynKtAPJ8wAyuyTQEhYepg==" }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", --- package.json @@ -111,7 +111,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.33.0", - "@walmart/react-native-scanner-3.0": "0.1.32", + "@walmart/react-native-scanner-3.0": "0.2.0", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1",
VS-1053 : Support Multiscanner functionality into Scanner3.0 (ScandIt) library for Vizpick Salesfloor
VS-1053 : Support Multiscanner functionality into Scanner3.0 (ScandIt) library for Vizpick Salesfloor
985713b263e683b6f061a3697f33c14b32a74f5f
--- __tests__/managerExperience/components/__snapshots__/FilterChipHeader.test.tsx.snap @@ -10,7 +10,7 @@ exports[`FilterChipHeader Component renders correctly with different props 1`] = } > <Text - accessibilityLabel="rosterScreen.filterChipHeader" + accessibilityLabel="rosterScreen.rosterName" style={ { "color": "#2e2f32", @@ -22,7 +22,7 @@ exports[`FilterChipHeader Component renders correctly with different props 1`] = } testID="filter-chip-header" > - rosterScreen.filterChipHeader + rosterScreen.rosterName </Text> <Text accessibilityLabel="100" @@ -53,7 +53,7 @@ exports[`FilterChipHeader Component renders correctly with given label and sched } > <Text - accessibilityLabel="rosterScreen.filterChipHeader" + accessibilityLabel="rosterScreen.rosterName" style={ { "color": "#2e2f32", @@ -65,7 +65,7 @@ exports[`FilterChipHeader Component renders correctly with given label and sched } testID="filter-chip-header" > - rosterScreen.filterChipHeader + rosterScreen.rosterName </Text> <Text accessibilityLabel="42"
feat: updated snapshot
feat: updated snapshot
212782c43226107eba242a42d5137a9aed450c5d
--- __tests__/__mocks__/@walmart/taskit-mini-app.js @@ -4,4 +4,5 @@ module.exports = { TaskItQuickActions: 'TaskItQuickActions', getTaskBadge: jest.fn(), TaskCards: 'TaskCards', + registerAskSamWidgetsForNotes: jest.fn(), };
Updated unit tests
Updated unit tests
bc1d511b1bf4272e71a7224fd4e10d5f9313dc09
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.1-alpha.5", + "version": "1.15.1-alpha.6", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.1-alpha.4", + "@walmart/roster-mini-app": "2.12.1-alpha.5", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "2.8.0-alpha.7", "babel-jest": "^29.2.1", --- yarn.lock @@ -6400,7 +6400,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.1-alpha.4" + "@walmart/roster-mini-app": "npm:2.12.1-alpha.5" "@walmart/ui-components": "npm:1.15.1" "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.7" babel-jest: "npm:^29.2.1" @@ -6582,9 +6582,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.1-alpha.4": - version: 2.12.1-alpha.4 - resolution: "@walmart/roster-mini-app@npm:2.12.1-alpha.4" +"@walmart/roster-mini-app@npm:2.12.1-alpha.5": + version: 2.12.1-alpha.5 + resolution: "@walmart/roster-mini-app@npm:2.12.1-alpha.5" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6626,7 +6626,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/e5fce425cec7f71b8525c344fddc3d4ed63331fd31ca3ece06e73786df6b9e1fe5d347d9a72f53ae5e763e614257ea65d2020c7f6333e94f9bd4b2d61ad813a0 + checksum: 10c0/0c6d1c8e938cafd015ff74e8f119cae12ec919422c8305c2267072272724922bc2fa8d5b420e14b5fe78279ce5801046e16b6ab6f766592c2b641e7fe77d8dbd languageName: node linkType: hard
Update my team mini app version
Update my team mini app version
bc73aca790b34e3f00688be0f08ee8194d469a82
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -27,7 +27,11 @@ import HubOnboardingImage from '../../../BottomSheet/HubOnboardingImage/Onboardi import { createDefaultWidgetPlaceholder } from '../utils'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; -import { useFocusEffect, useRoute } from '@react-navigation/native'; +import { + useFocusEffect, + useNavigation, + useRoute, +} from '@react-navigation/native'; import { useBottomSheetContext } from '../../../BottomSheet/BottomSheetContext'; export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { @@ -87,6 +91,7 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const errorBottomSheetRef = useRef<{ open: () => void; close: () => void }>( null ); + const hubScreeName = useSelector(ManagerExperienceSelectors.getHubScreenName); const closeBottomSheet = React.useCallback(() => { if (isMutationError) { @@ -236,7 +241,15 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { }, [defaultWidgets, teamState, widgets]); /** Bottom sheet update */ + const resetTo = (screen: string) => { + navigation.reset({ + index: 0, + routes: [{ name: screen }], + }); + }; + const routeParams: any = useRoute()?.params; + const navigation = useNavigation(); const { isOnbaordingBottomSheetVisible, isTeamUpdatedBottomSheetVisible, @@ -265,11 +278,14 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { hideOnboardingBottomSheet(); hideTeamUpdatedBottomSheet(); hideErrorBottomSheet(); + resetTo(hubScreeName); }; + // eslint-disable-next-line react-hooks/exhaustive-deps }, [ hideErrorBottomSheet, hideOnboardingBottomSheet, hideTeamUpdatedBottomSheet, + hubScreeName, routeParams?.teamOnboardingComplete, routeParams?.teamOnboardingError, routeParams?.teamSelectionComplete,
Update the reset to navigation
Update the reset to navigation
8d7f51cb27f310bcd0d435aa096e779bb6fec711
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.23", + "@walmart/facilities-management-miniapp": "0.5.26", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6", @@ -5070,9 +5070,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.5.23", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.23.tgz", - "integrity": "sha512-UHZE5SiYILGYy5hbcM9udRdK0043U7wO+0vgOF9qfDlJnVM+ISXSuH84cR8RP0vd/Oe5PMgUr0DL16eFVGSQXA==", + "version": "0.5.26", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.26.tgz", + "integrity": "sha512-0JMTSSuNBAS9CtUd+ydc2Z5X++w6jlW3GEIwLqxHBwn35mPy4SA9eMx1CfdaYC49RNX/BQ4gVWJGNGfnnx6Mfw==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25324,9 +25324,9 @@ "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.23", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.23.tgz", - "integrity": "sha512-UHZE5SiYILGYy5hbcM9udRdK0043U7wO+0vgOF9qfDlJnVM+ISXSuH84cR8RP0vd/Oe5PMgUr0DL16eFVGSQXA==" + "version": "0.5.26", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.26.tgz", + "integrity": "sha512-0JMTSSuNBAS9CtUd+ydc2Z5X++w6jlW3GEIwLqxHBwn35mPy4SA9eMx1CfdaYC49RNX/BQ4gVWJGNGfnnx6Mfw==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.10",
Updating the package-lock
Updating the package-lock
c2560c7fe8b2b8cc95f844caae819e1e443b9499
--- packages/me-at-walmart-container/__tests__/http/interceptors/work.test.ts @@ -1,16 +1,30 @@ -import {WorkInterceptor} from '../../../src/http/interceptors/workInterceptor' -import { AllsparkReduxStore, InternalHttpClientRequestConfig } from '@walmart/allspark-foundation'; - +const {WorkInterceptor} = require('../../../src/http/interceptors/work'); +const { AllsparkReduxStore } = require('@walmart/allspark-foundation'); +const { WorkActions } = require('@walmart/allspark-foundation/Work'); +describe('WorkInterceptor', () => { + const request = { + headers: { + 'x-http-client-feature-key': 'topstock' + }, + }; -const actionId = '12345'; -const mockSet = jest.fn(); -const request = { - headers: { - set: mockSet, - }, -} as unknown as InternalHttpClientRequestConfig; + it('adds work-action-id header when app is a work app and actionID is present', () => { + AllsparkReduxStore.dispatch(WorkActions.WORK_FLOW_START({ workFlow: 'topstock', actionId: 'foo' })); + const { headers } = WorkInterceptor?.request?.fulfilled?.(request); + expect(headers['work-action-id']).toBe('foo'); + }) + /* + it('does NOT add work-action-id header if app is a work app but actionID is NOT present', () => { + +}) +it('does NOT add work-action-id header if app is NOT a work app', () => { + +}) +*/ +}) +/* describe('WorkInterceptor', () => { it('sets work action ID as a header, if action is defined', () => { jest @@ -25,4 +39,6 @@ describe('WorkInterceptor', () => { WorkInterceptor?.request?.fulfilled?.(request); expect(mockSet).not.toHaveBeenCalled(); }); -}); \ No newline at end of file +}); + +*/ \ No newline at end of file
fix: modify work interceptor test DWORK-7538
fix: modify work interceptor test DWORK-7538
8a86091e660e9e1451bee030de8e5e318fc51f0b
--- docs/docs/components/allspark foundation/services/foundation-auth.md @@ -115,3 +115,32 @@ import { useContainerService } from '@walmart/allspark-foundation/Container'; const AuthService = useContainerService('auth'); ``` + +## Auth Service API +### `signIn()` +Signs in the user with the provided authentication configuration. + +```ts +AuthService.signIn(AuthConfiguration); +``` + +### `signOut()` +Signs out the currently authenticated user. + +```ts +AuthService.signOut(); +``` + +### `getUser()` +Gets the currently authenticated user. + +```ts +const authData = await AuthService.getUser(); +``` + +### `refreshToken()` +Refreshes the authentication token for the currently authenticated user. + +```ts +const authData = await AuthService.refreshToken(); +``` \ No newline at end of file --- docs/docs/components/allspark foundation/services/foundation-clock.md @@ -115,3 +115,15 @@ import { useContainerService } from '@walmart/allspark-foundation/Container'; const ClockService = useContainerService('clock'); ``` + +## Clock Service API +> Note: Currently clock status in Me@Walmart is managed by the time clock mini app. They dispatch actions from the legacy '@walmart/redux-store' library that now maps to the foundation redux store. Eventually, a service independent of the mini app will be created and implemented. For now, a placeholder service is implemented in allspark-core. + +### `initialize()` +Initializes the clock service with the given configuration. + +### `fetch()` +Fetches the current clock data with the given configuration. + +### `addChangeListener()` +Adds a change listener to the clock service. \ No newline at end of file
Authentication and clock updates.
Authentication and clock updates.
fac5109a38610296de5adfcd5575e52c3868808e
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.34.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.33.0...v2.34.0) (2025-05-01) + + +### Features + +* **ui:** update asset update ([5f9ec0e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/5f9ec0e6c77ebcf5c442d580ddb30fbb70e7f970)) + # [2.33.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.32.0...v2.33.0) (2025-05-01) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "2.33.0", + "version": "2.34.0", "main": "dist/index.js", "files": [ "dist/"
chore(release): 2.34.0 [skip ci]
chore(release): 2.34.0 [skip ci] # [2.34.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.33.0...v2.34.0) (2025-05-01) ### Features * **ui:** update asset update ([5f9ec0e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/5f9ec0e6c77ebcf5c442d580ddb30fbb70e7f970))
88e0cae46461c1c1c56d5092745ceb251a7bd707
--- src/images/assets/ask-sam-search.png Binary files a/src/images/assets/ask-sam-search.png and b/src/images/assets/ask-sam-search.png differ --- src/images/assets/ask-sam-search@2x.png Binary files a/src/images/assets/ask-sam-search@2x.png and b/src/images/assets/ask-sam-search@2x.png differ --- src/images/assets/ask-sam-search@3x.png Binary files a/src/images/assets/ask-sam-search@3x.png and b/src/images/assets/ask-sam-search@3x.png differ --- src/images/assets/home-tab-active.png Binary files a/src/images/assets/home-tab-active.png and b/src/images/assets/home-tab-active.png differ --- src/images/assets/home-tab-active@2x.png Binary files a/src/images/assets/home-tab-active@2x.png and b/src/images/assets/home-tab-active@2x.png differ --- src/images/assets/home-tab-active@3x.png Binary files a/src/images/assets/home-tab-active@3x.png and b/src/images/assets/home-tab-active@3x.png differ --- src/images/assets/home-tab.png Binary files a/src/images/assets/home-tab.png and b/src/images/assets/home-tab.png differ --- src/images/assets/home-tab@2x.png Binary files a/src/images/assets/home-tab@2x.png and b/src/images/assets/home-tab@2x.png differ --- src/images/assets/home-tab@3x.png Binary files a/src/images/assets/home-tab@3x.png and b/src/images/assets/home-tab@3x.png differ --- src/images/assets/inbox-tab-active.png Binary files a/src/images/assets/inbox-tab-active.png and b/src/images/assets/inbox-tab-active.png differ --- src/images/assets/inbox-tab-active@2x.png Binary files a/src/images/assets/inbox-tab-active@2x.png and b/src/images/assets/inbox-tab-active@2x.png differ --- src/images/assets/inbox-tab-active@3x.png Binary files a/src/images/assets/inbox-tab-active@3x.png and b/src/images/assets/inbox-tab-active@3x.png differ --- src/images/assets/inbox-tab.png Binary files a/src/images/assets/inbox-tab.png and b/src/images/assets/inbox-tab.png differ --- src/images/assets/inbox-tab@2x.png Binary files a/src/images/assets/inbox-tab@2x.png and b/src/images/assets/inbox-tab@2x.png differ --- src/images/assets/inbox-tab@3x.png Binary files a/src/images/assets/inbox-tab@3x.png and b/src/images/assets/inbox-tab@3x.png differ --- src/images/assets/me-tab-active.png Binary files a/src/images/assets/me-tab-active.png and b/src/images/assets/me-tab-active.png differ --- src/images/assets/me-tab-active@2x.png Binary files a/src/images/assets/me-tab-active@2x.png and b/src/images/assets/me-tab-active@2x.png differ --- src/images/assets/me-tab-active@3x.png Binary files a/src/images/assets/me-tab-active@3x.png and b/src/images/assets/me-tab-active@3x.png differ --- src/images/assets/me-tab.png Binary files a/src/images/assets/me-tab.png and b/src/images/assets/me-tab.png differ --- src/images/assets/me-tab@2x.png Binary files a/src/images/assets/me-tab@2x.png and b/src/images/assets/me-tab@2x.png differ --- src/images/assets/me-tab@3x.png Binary files a/src/images/assets/me-tab@3x.png and b/src/images/assets/me-tab@3x.png differ --- src/images/assets/team-tab-active.png Binary files a/src/images/assets/team-tab-active.png and b/src/images/assets/team-tab-active.png differ --- src/images/assets/team-tab-active@2x.png Binary files a/src/images/assets/team-tab-active@2x.png and b/src/images/assets/team-tab-active@2x.png differ --- src/images/assets/team-tab-active@3x.png Binary files a/src/images/assets/team-tab-active@3x.png and b/src/images/assets/team-tab-active@3x.png differ --- src/images/assets/team-tab.png Binary files a/src/images/assets/team-tab.png and b/src/images/assets/team-tab.png differ --- src/images/assets/team-tab@2x.png Binary files a/src/images/assets/team-tab@2x.png and b/src/images/assets/team-tab@2x.png differ --- src/images/assets/team-tab@3x.png Binary files a/src/images/assets/team-tab@3x.png and b/src/images/assets/team-tab@3x.png differ --- src/navigation/Navigation.tsx @@ -57,11 +57,7 @@ const MainTabsNav = () => { tabBarAccessibilityLabel: 'home', tabBarTestID: 'home', tabBarIcon: ({focused}) => ( - <Icon - name={focused ? 'HomeTabActive' : 'HomeTab'} - size={16} - style={styles.homeTabIcon} - /> + <Icon name={focused ? 'HomeTabActive' : 'HomeTab'} /> ), }} /> @@ -73,7 +69,7 @@ const MainTabsNav = () => { tabBarAccessibilityLabel: 'me', tabBarTestID: 'me', tabBarIcon: ({focused}) => ( - <Icon name={focused ? 'MeTabActive' : 'MeTab'} size={21} /> + <Icon name={focused ? 'MeTabActive' : 'MeTab'} /> ), }} /> @@ -85,10 +81,7 @@ const MainTabsNav = () => { tabBarAccessibilityLabel: 'my team', tabBarTestID: 'myTeam', tabBarIcon: ({focused}) => ( - <Icon - name={focused ? 'TeamTabActive' : 'TeamTab'} - style={styles.teamTabIcon} - /> + <Icon name={focused ? 'TeamTabActive' : 'TeamTab'} /> ), }} /> @@ -100,10 +93,7 @@ const MainTabsNav = () => { tabBarAccessibilityLabel: 'inbox', tabBarTestID: 'inbox', tabBarIcon: ({focused}) => ( - <Icon - name={focused ? 'InboxTabActive' : 'InboxTab'} - style={styles.inboxTabIcon} - /> + <Icon name={focused ? 'InboxTabActive' : 'InboxTab'} /> ), }} /> --- src/navigation/NavigationStyle.ts @@ -20,21 +20,6 @@ export default StyleSheet.create({ paddingVertical: 8, paddingStart: 16, }, - homeTabIcon: { - marginTop: 2, - marginBottom: 3, - }, - teamTabIcon: { - height: 18, - width: 26, - marginBottom: 3, - }, - inboxTabIcon: { - height: 15, - width: 18, - marginTop: 4, - marginBottom: 2, - }, drawer: { width: '89%', },
Chore/tabbar icons (#127)
Chore/tabbar icons (#127) * updated icons of tabbar based on new designs * removing styles which aren't required. * remove unused styles and size properties on tab bar icons (#128) Co-authored-by: Hitesh Arora <> Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
291e421250e35067785a6a8801d70278bd7510c8
--- .looper.multibranch.yml @@ -1,3 +1,49 @@ inherit: job:///allspark/allspark-core/allspark-template:allspark-template.yml updateTaskStatusOnGit: true # added as per discussion on SREDP-11895 + +cache: + - name: yarn-cache + configs: + - type: yarn + excludes: + - ".yarn" + checksum: + - "yarn.lock" + - name: cocoapods-cache + configs: + - type: generic + checksum: + - "./ios/Podfile.lock" + includes: + - "./ios/Pods" + +envs: + ## Global Variables + global: + variables: + market: .. + XCODE_PROJECT_PATH: ./ios/AllSpark.xcodeproj + ANDROID_GRADLE_PATH: ./android/app/build.gradle + IOS_BASE_PATH: ./ios + ANDROID_BASE_PATH: ./android + + us-market: + variables: + XCODE_PROJECT_PATH: ./ios/AllSpark.xcodeproj + ANDROID_GRADLE_PATH: ./android/app/build.gradle + IOS_BASE_PATH: ./ios + ANDROID_BASE_PATH: ./android + + intl-market: + variables: + XCODE_PROJECT_PATH: ./ios/AllSpark.xcodeproj + ANDROID_GRADLE_PATH: ./android/app/build.gradle + IOS_BASE_PATH: ./ios + ANDROID_BASE_PATH: ./android + +flows: + mini-pr: + # - (name Branch Check, silent) echo "TBD" + - call: build-npm + - (name Build JS Bundle for ${market}) cd targets/${market} && ../../node_modules/.bin/react-native bundle --entry-file ./index.js --bundle-output ./bundle.js --reset-cache
chore: override looper values for new structure
chore: override looper values for new structure
ecc408f10f2aecc840e367ad5b9d9eeadb66ece9
--- jest.config.js @@ -1,5 +1,5 @@ module.exports = { - projects: ['<rootDir>/targets/US'], + projects: ['<rootDir>/core'], // projects: ['<rootDir>/targets/US', '<rootDir>/core', '<rootDir>/packages/*'], setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'], testResultsProcessor: 'jest-sonar-reporter', --- packages/me-at-walmart-container/src/redux/navConfig.ts @@ -135,8 +135,9 @@ export function* fetchNavConfig(forceRefresh: boolean = false) { if (!preHire) { try { yield call(NavConfigSagas.waitForNavConfigInit); - const scope: MeAtWalmartNavConfigFetchParams = - yield call(getNavConfigScope); + const scope: MeAtWalmartNavConfigFetchParams = yield call( + getNavConfigScope, + ); yield call(MeAtWalmartNavConfigService.fetch, { forceRefresh, ...scope, --- targets/US/src/features/associate/metrics.ts @@ -1,17 +1,13 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation'; -import {ModalTransitionOptions} from '@walmart/allspark-foundation/Navigation'; import { FeatureTags, HomeDashboardContainer, - ScreenTags, withRefreshKey, } from '@walmart/me-at-walmart-common'; // Temporary Metrics Feature // TODO: Metrics, once moved to the foundation should export a similar module // Cannot use dynamic require because of metrics export requiring intial transformation -import {metricsNavigationScreens} from '@walmart/metrics-mini-app'; - export const MetricsFeature = new AllsparkFeatureModule('metrics', { name: 'Metrics', tags: [FeatureTags.associate], --- targets/US/src/features/associate/rbac/RbacSagas.tsx @@ -2,7 +2,6 @@ import {select, put, takeLatest} from 'redux-saga/effects'; import { NavConfigActionCreators, - NavConfigActionTypes, NavConfigData, NavConfigSelectors, } from '@walmart/allspark-foundation/Navigation'; --- targets/US/src/features/root/sideKey/SideButtonSagas.ts @@ -1,5 +1,5 @@ import {Platform} from 'react-native'; -import {call, take, cancel, select, takeLatest} from 'redux-saga/effects'; +import {call, take, select, takeLatest} from 'redux-saga/effects'; import DeviceInfo from 'react-native-device-info'; import { @@ -25,8 +25,9 @@ export function* handleSideButtonSetting() { const deviceName: string = yield call(DeviceInfo.getDeviceName); const isAndroid = Platform.OS === 'android'; const isXcover = deviceName.toLowerCase().indexOf('xcover') >= 0; - const settingsConfig: FeatureConfig | undefined = - yield select(getSettingsAppConfig); + const settingsConfig: FeatureConfig | undefined = yield select( + getSettingsAppConfig, + ); const isEnabled = settingsConfig?.enableSideKey ?? true; if (isAndroid && isXcover && isEnabled) {
chore: lint fixes
chore: lint fixes
9b4ce9009e1f6135e9275a5b795baf9509b9e69d
--- __tests__/managerExperience/components/FilterChip.test.tsx @@ -0,0 +1,38 @@ +import React from 'react'; +import {FilterChip} from '../../../src/managerExperience/components/FilterChip'; +import {fireEvent} from '@testing-library/react-native'; +import {renderWithProviders} from '../../harness'; + +const defaultProps = { + label: '9 Clocked in', + isApplied: false, + handlePress: jest.fn(), +}; + +describe('FilterChip', () => { + it('renders inactive filter chip correctly', () => { + const {toJSON} = renderWithProviders(<FilterChip {...defaultProps} />); + expect(toJSON()).toMatchSnapshot(); + }); + + it('renders active filter chip correctly', () => { + const {toJSON} = renderWithProviders( + <FilterChip {...defaultProps} isApplied />, + ); + expect(toJSON()).toMatchSnapshot(); + }); + + it('calls handlePress when filter chip is pressed', () => { + const {getByTestId} = renderWithProviders(<FilterChip {...defaultProps} />); + const chip = getByTestId('filter-chip'); + fireEvent.press(chip); + expect(defaultProps.handlePress).toHaveBeenCalled(); + }); + + it('renders when label is empty', () => { + const {toJSON} = renderWithProviders( + <FilterChip {...defaultProps} label={''} />, + ); + expect(toJSON()).not.toBeNull(); + }); +}); --- __tests__/managerExperience/components/__snapshots__/FilterChip.test.tsx.snap @@ -0,0 +1,206 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`FilterChip renders active filter chip correctly 1`] = ` +<View + accessibilityRole="togglebutton" + accessibilityState={ + { + "busy": undefined, + "checked": undefined, + "disabled": false, + "expanded": undefined, + "selected": true, + } + } + accessibilityValue={ + { + "max": undefined, + "min": undefined, + "now": undefined, + "text": undefined, + } + } + accessible={true} + collapsable={false} + focusable={true} + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + [ + { + "alignItems": "center", + "backgroundColor": "#fff", + "borderColor": "#909196", + "borderRadius": 4, + "borderWidth": 1, + "flexDirection": "row", + "justifyContent": "space-around", + "marginHorizontal": 4, + "paddingHorizontal": 15, + "paddingVertical": -1, + }, + { + "backgroundColor": "#fff", + "borderColor": "#000", + "borderWidth": 2, + "paddingHorizontal": 14, + "paddingVertical": -2, + }, + {}, + { + "alignSelf": "center", + "backgroundColor": "#2e2f32", + "borderRadius": 1000, + "borderWidth": 0, + "justifyContent": "center", + "minWidth": 10, + }, + ] + } + testID="filter-chip" +> + <Text + style={ + [ + { + "color": "#000", + "fontFamily": "Bogle", + "fontSize": 14, + "fontStyle": "normal", + "fontWeight": "400", + }, + { + "color": "#000", + }, + { + "lineHeight": 32, + }, + ] + } + > + <Text + style={ + { + "color": "#fff", + } + } + > + 9 Clocked in + </Text> + </Text> +</View> +`; + +exports[`FilterChip renders inactive filter chip correctly 1`] = ` +<View + accessibilityRole="togglebutton" + accessibilityState={ + { + "busy": undefined, + "checked": undefined, + "disabled": false, + "expanded": undefined, + "selected": false, + } + } + accessibilityValue={ + { + "max": undefined, + "min": undefined, + "now": undefined, + "text": undefined, + } + } + accessible={true} + collapsable={false} + focusable={true} + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + [ + { + "alignItems": "center", + "backgroundColor": "#fff", + "borderColor": "#909196", + "borderRadius": 4, + "borderWidth": 1, + "flexDirection": "row", + "justifyContent": "space-around", + "marginHorizontal": 4, + "paddingHorizontal": 15, + "paddingVertical": -1, + }, + { + "alignItems": "center", + "backgroundColor": "#fff", + "borderColor": "#909196", + "borderRadius": 4, + "borderWidth": 1, + "flexDirection": "row", + "justifyContent": "space-around", + "marginHorizontal": 4, + "paddingHorizontal": 15, + "paddingVertical": -1, + }, + {}, + { + "alignSelf": "center", + "backgroundColor": "#f1f1f2", + "borderRadius": 1000, + "borderWidth": 0, + "justifyContent": "center", + "minWidth": 10, + }, + ] + } + testID="filter-chip" +> + <Text + style={ + [ + { + "color": "#000", + "fontFamily": "Bogle", + "fontSize": 14, + "fontStyle": "normal", + "fontWeight": "400", + }, + { + "color": "#000", + "fontFamily": "Bogle", + "fontSize": 14, + "fontStyle": "normal", + "fontWeight": "400", + }, + { + "lineHeight": 32, + }, + ] + } + > + <Text + style={ + { + "color": "#2e2f32", + } + } + > + 9 Clocked in + </Text> + </Text> +</View> +`; --- src/managerExperience/components/FilterChip/FilterChip.tsx @@ -5,7 +5,6 @@ import {FilterChipProps} from './types'; import {Text} from 'react-native'; export const FilterChip = ({ - disabled = false, handlePress, label, isApplied, @@ -15,10 +14,10 @@ export const FilterChip = ({ UNSAFE_style={ isApplied ? styles.chipContainerActive : styles.chipContainerInactive } - disabled={disabled} onPress={handlePress} selected={isApplied} - id={label}> + id={label} + testID='filter-chip'> <Text style={isApplied ? styles.chipTextActive : styles.chipTextInactive}> {label} </Text> --- src/managerExperience/components/FilterChip/types.ts @@ -1,5 +1,4 @@ export interface FilterChipProps { - disabled?: boolean; handlePress: () => void; label: string; isApplied: boolean;
feat: added unit tests to filter chip
feat: added unit tests to filter chip
9f2adbe2d498eaec5e4ddaf8ad9901b7dbe5d31e
--- docs/CHANGELOG.md @@ -1,3 +1,12 @@ +# [3.3.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.2.0...v3.3.0) (2025-08-28) + + +### Features + +* **ui:** fixing conflicts ([e0f3c26](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e0f3c2656f5e88178b3307d932bb7fa01084484a)) +* **ui:** updating looper-pr file ([cad923a](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/cad923a332ab119a5edfe9510fb0a6c3c99efa8a)) +* **ui:** updating versions ([6602c68](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/6602c68899b40380dc042bebc54a28bf6f6cc821)) + # [3.2.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.1.0...v3.2.0) (2025-08-25) --- package.json @@ -1,7 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.2.0", - "version": "3.2.0", + "version": "3.3.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.3.0 [skip ci]
chore(release): 3.3.0 [skip ci] # [3.3.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.2.0...v3.3.0) (2025-08-28) ### Features * **ui:** fixing conflicts ([e0f3c26](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e0f3c2656f5e88178b3307d932bb7fa01084484a)) * **ui:** updating looper-pr file ([cad923a](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/cad923a332ab119a5edfe9510fb0a6c3c99efa8a)) * **ui:** updating versions ([6602c68](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/6602c68899b40380dc042bebc54a28bf6f6cc821))
a8d822060ccb9615683c2ddb97c8c1973afa5942
--- src/screens/MessagesScreen.tsx @@ -34,6 +34,7 @@ import {usePresenceContext} from '../presence/hooks'; import {messageTypes} from '../constants'; import {getNetworkState} from '@walmart/core-services/Network/selectors'; import {ErrorComponent} from '../components/ErrorComponent'; +import {HttpClientError} from "@walmart/allspark-http-client"; const styles = StyleSheet.create({ container: { @@ -282,7 +283,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { if (recipients && recipients.length > 0) { try { - await notifyRecipientsWithPush( + const request = await notifyRecipientsWithPush( capitalize(viewerFirstName), getMessageTextForPush(), recipients, @@ -295,13 +296,15 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { message: `Push notification sent`, messageObjId: messageId || '', channelPath: channelPath || '', + correlationId: request.config.headers['WM_QOS.CORRELATION_ID'], }); } catch (e) { - const err = e as Error; + const err = e as HttpClientError; logger.error('PushNotifErr', { message: `PushNotifErr: ${err.message}`, messageObjId: messageId || '', channelPath: channelPath || '', + correlationId: err.config.headers['WM_QOS.CORRELATION_ID'], }); } } --- src/screens/MessagesScreen.tsx @@ -34,6 +34,7 @@ import {usePresenceContext} from '../presence/hooks'; import {messageTypes} from '../constants'; import {getNetworkState} from '@walmart/core-services/Network/selectors'; import {ErrorComponent} from '../components/ErrorComponent'; +import {HttpClientError} from "@walmart/allspark-http-client"; const styles = StyleSheet.create({ container: { @@ -282,7 +283,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { if (recipients && recipients.length > 0) { try { - await notifyRecipientsWithPush( + const request = await notifyRecipientsWithPush( capitalize(viewerFirstName), getMessageTextForPush(), recipients, @@ -295,13 +296,15 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { message: `Push notification sent`, messageObjId: messageId || '', channelPath: channelPath || '', + correlationId: request.config.headers['WM_QOS.CORRELATION_ID'], }); } catch (e) { - const err = e as Error; + const err = e as HttpClientError; logger.error('PushNotifErr', { message: `PushNotifErr: ${err.message}`, messageObjId: messageId || '', channelPath: channelPath || '', + correlationId: err.config.headers['WM_QOS.CORRELATION_ID'], }); } }
adding correlationId to splunk log
adding correlationId to splunk log
3f22ff9ce8cc1cfbd5a836f207b94bf4f6960f7f
--- docs/CHANGELOG.md @@ -1,3 +1,30 @@ +# [3.3.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v3.2.0...v3.3.0) (2025-08-25) + + +### Bug Fixes + +* provider error log update ([f69243e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/f69243e0f154171881baa68028e910dda6d0e3c0)) +* **ui:** adding code of conduct error fix ([5b1e11a](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/5b1e11a71b16b0e44d440c4c883071dd80fbc240)) +* **ui:** adding fix for 9+ badge count ([cd9b377](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/cd9b3775c528699096e4b60ae91b1ff83b6245d3)) +* **ui:** fixing audio recording on first time bug ([3a3f369](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/3a3f3693ec544c666d09e58e78400684d447b79e)) +* **ui:** optimize avatar loading by passing associate data directly instead of fetching make it branch name ([bc4bdd3](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/bc4bdd3ecd9f1453ca4930926eccc6ea388dffa2)) +* **ui:** updating error fields to check actual error ([13e976b](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/13e976bbc9f8dca69f98def4e559bf46c31985ee)) +* **ui:** updating gtp library ([ea0569c](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ea0569c67a5bdb163ac9f21b3f6b638aff4a5b4c)) + + +### Features + +* **ui:** fixing lint erros ([c1a961d](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c1a961d538dcbe7e95782e84d9d6262d8224dc5e)) +* **ui:** new version for drop 33 ([dc463df](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/dc463df48021f8f2bf79a21fd729cedd026442f6)) +* **ui:** new version for drop 33 build ([0d85868](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/0d85868ea6b4cb911b462fb43c7440c10bc71581)) +* **ui:** removing comments ([14120f6](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/14120f6f5e29cef4ba614327354db0189b12e843)) +* **ui:** temporarily updating coverage ([3a44956](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/3a44956e51cef8b992b5bd6d881b752d659ed96b)) +* **ui:** update docs ([4fa240c](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/4fa240c54f061ff9b4570c2d6fc4b649639d3e48)) +* **ui:** updating new version for drop 33 ([541a624](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/541a624594ca7690fb5c2e86f1a80cfdb4356842)) +* **ui:** updating version ([d03bd2d](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d03bd2d54971144645393a74067f8ab9d39c3918)) +* **ui:** updating wmconnect version ([20b8f1e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/20b8f1ebdf9dcac006fcc17fb0231231b9340b83)) +* updating skeleton ([e8d73cb](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/e8d73cbadc3f0533c4f33fdd901a06433223c400)) + # [3.2.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v3.1.1...v3.2.0) (2025-07-22) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.2.0", + "version": "3.3.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.3.0 [skip ci]
chore(release): 3.3.0 [skip ci] # [3.3.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v3.2.0...v3.3.0) (2025-08-25) ### Bug Fixes * provider error log update ([f69243e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/f69243e0f154171881baa68028e910dda6d0e3c0)) * **ui:** adding code of conduct error fix ([5b1e11a](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/5b1e11a71b16b0e44d440c4c883071dd80fbc240)) * **ui:** adding fix for 9+ badge count ([cd9b377](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/cd9b3775c528699096e4b60ae91b1ff83b6245d3)) * **ui:** fixing audio recording on first time bug ([3a3f369](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/3a3f3693ec544c666d09e58e78400684d447b79e)) * **ui:** optimize avatar loading by passing associate data directly instead of fetching make it branch name ([bc4bdd3](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/bc4bdd3ecd9f1453ca4930926eccc6ea388dffa2)) * **ui:** updating error fields to check actual error ([13e976b](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/13e976bbc9f8dca69f98def4e559bf46c31985ee)) * **ui:** updating gtp library ([ea0569c](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ea0569c67a5bdb163ac9f21b3f6b638aff4a5b4c)) ### Features * **ui:** fixing lint erros ([c1a961d](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c1a961d538dcbe7e95782e84d9d6262d8224dc5e)) * **ui:** new version for drop 33 ([dc463df](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/dc463df48021f8f2bf79a21fd729cedd026442f6)) * **ui:** new version for drop 33 build ([0d85868](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/0d85868ea6b4cb911b462fb43c7440c10bc71581)) * **ui:** removing comments ([14120f6](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/14120f6f5e29cef4ba614327354db0189b12e843)) * **ui:** temporarily updating coverage ([3a44956](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/3a44956e51cef8b992b5bd6d881b752d659ed96b)) * **ui:** update docs ([4fa240c](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/4fa240c54f061ff9b4570c2d6fc4b649639d3e48)) * **ui:** updating new version for drop 33 ([541a624](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/541a624594ca7690fb5c2e86f1a80cfdb4356842)) * **ui:** updating version ([d03bd2d](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d03bd2d54971144645393a74067f8ab9d39c3918)) * **ui:** updating wmconnect version ([20b8f1e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/20b8f1ebdf9dcac006fcc17fb0231231b9340b83)) * updating skeleton ([e8d73cb](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/e8d73cbadc3f0533c4f33fdd901a06433223c400))
91d55946922cdfc226688d8efc9d17cde40e9c3b
--- packages/celebration-mini-app/src/config/appConfig.ts @@ -28,7 +28,6 @@ const getAppVariant = () => { export const DefaultCelebrationConfig = (() => { const variant = getAppVariant(); - console.log('Current app variant: ', variant); switch (variant) { case 'dev': case 'teflon': --- packages/celebration-mini-app/src/screens/CelebrationDetailsScreen.tsx @@ -132,7 +132,6 @@ const CelebrationDetailsScreen = CelebrationFeature.createScreen( acc[years].push(item); return acc; }, {} as Record<number, any[]>); - console.log('Grouped by years: ', groupedByYears); return ( <SolidCard key={title} style={styles.sectionCard} elevation={1} color="white">
feat(ui): update celebration details screen
feat(ui): update celebration details screen
72437d467f5853940039ec06368d312284978da5
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.16", + "version": "2.0.17", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.16", + "version": "2.0.17", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
32744032161fc44799febc018ee8b089f6b793d2
--- package.json @@ -135,7 +135,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-geolocation": "1.3.19", "@walmart/metrics-mini-app": "1.34.4", - "@walmart/mod-flex-mini-app": "1.31.2", + "@walmart/mod-flex-mini-app": "1.31.3", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.4.3", "@walmart/my-walmart-hub": "1.6.0", --- yarn.lock @@ -8475,7 +8475,7 @@ __metadata: "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-geolocation": "npm:1.3.19" "@walmart/metrics-mini-app": "npm:1.34.4" - "@walmart/mod-flex-mini-app": "npm:1.31.2" + "@walmart/mod-flex-mini-app": "npm:1.31.3" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.4.3" "@walmart/my-walmart-hub": "npm:1.6.0" @@ -8756,9 +8756,9 @@ __metadata: languageName: node linkType: hard -"@walmart/mod-flex-mini-app@npm:1.31.2": - version: 1.31.2 - resolution: "@walmart/mod-flex-mini-app@npm:1.31.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.31.2.tgz" +"@walmart/mod-flex-mini-app@npm:1.31.3": + version: 1.31.3 + resolution: "@walmart/mod-flex-mini-app@npm:1.31.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.31.3.tgz" peerDependencies: "@react-native-segmented-control/segmented-control": ^2.5.7 "@react-navigation/drawer": ">=7" @@ -8790,7 +8790,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 uuid: ^3.3.2 - checksum: 10c0/3d8ab251d5ec601763c05d161afea12dc0e67543df2f2b5203db93d8f803be319cb7eb6928b11bce133169e924d369e1015bdc52957f222da7becb2d86327ed4 + checksum: 10c0/0cce197bbd6496ce7bbb0f85bed391d6a251c64cda1e1f978bfd5b535d938bcd3e4561dbe350b744ef8ee354e416295365bf2e41423919dae8494dae9977af87 languageName: node linkType: hard
feat(mod-flex-mini-app): INNODELOC-16475 ModFlex drop 35 version bump (#5143)
feat(mod-flex-mini-app): INNODELOC-16475 ModFlex drop 35 version bump (#5143) Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com>
02655e49de167cc047ec08501dcbf60be3864c9d
--- yarn.lock @@ -42,7 +42,7 @@ __metadata: rehackt: "npm:^0.1.0" response-iterator: "npm:^0.2.6" symbol-observable: "npm:^4.0.0" - ts-invariant: "npm:^0.10.3" + ts-invariant: "npm:^0.10.31.11.2 tslib: "npm:^2.3.0" zen-observable-ts: "npm:^1.2.5" peerDependencies: @@ -7452,7 +7452,7 @@ __metadata: "@walmart/onewalmart-miniapp": "npm:1.0.27" "@walmart/pay-stub-miniapp": "npm:0.20.11" "@walmart/payrollsolution_miniapp": "npm:0.145.31" - "@walmart/price-changes-mini-app": "npm:1.10.25" + "@walmart/price-changes-mini-app": "npm:1.11.2" "@walmart/profile-feature-app": "npm:1.138.5" "@walmart/react-native-cookies": "npm:1.0.1" "@walmart/react-native-encrypted-storage": "npm:~1.1.3"
Update yarn.lock
Update yarn.lock
618096255fba9a6b063123bb903cfb48b031cb21
--- src/channels/components/ChannelRow.tsx @@ -116,7 +116,8 @@ export const ChannelRow = (props: ChannelRowProps) => { ); const shouldDisplayLastMessage = - lastMessage?.createdAt && lastMessage.createdAt < SEVEN_DAYS_AGO_TIMESTAMP; + lastMessage?.createdAt && + lastMessage.createdAt.nanoseconds < SEVEN_DAYS_AGO_TIMESTAMP.nanoseconds; const updatedLastMessageTime = shouldDisplayLastMessage ? lastMessageTime --- src/channels/provider.tsx @@ -102,7 +102,9 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const lastMessageTimeInFirestore = doc.data()?.lastMessageTime; if ( !isNil(lastMessageTimeInFirestore) && - lastMessageTimeInFirestore > SEVEN_DAYS_AGO_TIMESTAMP + lastMessageTimeInFirestore && + lastMessageTimeInFirestore.nanoseconds > + SEVEN_DAYS_AGO_TIMESTAMP.nanoseconds ) { teamChannelDoc.update({ participants: firestore.FieldValue.arrayUnion(viewerId), @@ -144,7 +146,9 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const lastMessageTimeInFirestore = doc.data()?.lastMessageTime; if ( !isNil(lastMessageTimeInFirestore) && - lastMessageTimeInFirestore > SEVEN_DAYS_AGO_TIMESTAMP + lastMessageTimeInFirestore && + lastMessageTimeInFirestore.nanoseconds > + SEVEN_DAYS_AGO_TIMESTAMP.nanoseconds ) { storeChannelDoc.update({ participants: firestore.FieldValue.arrayUnion(viewerId), --- src/channels/components/ChannelRow.tsx @@ -116,7 +116,8 @@ export const ChannelRow = (props: ChannelRowProps) => { ); const shouldDisplayLastMessage = - lastMessage?.createdAt && lastMessage.createdAt < SEVEN_DAYS_AGO_TIMESTAMP; + lastMessage?.createdAt && + lastMessage.createdAt.nanoseconds < SEVEN_DAYS_AGO_TIMESTAMP.nanoseconds; const updatedLastMessageTime = shouldDisplayLastMessage ? lastMessageTime --- src/channels/provider.tsx @@ -102,7 +102,9 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const lastMessageTimeInFirestore = doc.data()?.lastMessageTime; if ( !isNil(lastMessageTimeInFirestore) && - lastMessageTimeInFirestore > SEVEN_DAYS_AGO_TIMESTAMP + lastMessageTimeInFirestore && + lastMessageTimeInFirestore.nanoseconds > + SEVEN_DAYS_AGO_TIMESTAMP.nanoseconds ) { teamChannelDoc.update({ participants: firestore.FieldValue.arrayUnion(viewerId), @@ -144,7 +146,9 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const lastMessageTimeInFirestore = doc.data()?.lastMessageTime; if ( !isNil(lastMessageTimeInFirestore) && - lastMessageTimeInFirestore > SEVEN_DAYS_AGO_TIMESTAMP + lastMessageTimeInFirestore && + lastMessageTimeInFirestore.nanoseconds > + SEVEN_DAYS_AGO_TIMESTAMP.nanoseconds ) { storeChannelDoc.update({ participants: firestore.FieldValue.arrayUnion(viewerId),
address review comments
address review comments
5d491b1abefcda8c10afc58c84f764b111b9097c
--- package-lock.json @@ -45,7 +45,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.41", + "@walmart/facilities-management-miniapp": "0.5.42", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6", @@ -4948,9 +4948,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.5.41", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.41.tgz", - "integrity": "sha512-DxTSoOQXL7WMDyeabbSqBWIpRz2dDZV06T2ElQA4MroKhA+la4HJJCo2wnLHAP+enJs9CoiaqHEAEikqjX+GZA==", + "version": "0.5.42", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.42.tgz", + "integrity": "sha512-BKSIoVEH9SlQSmP7v0fpD1VtARe3ktCyr+iecUJFBDGeK3mrXOTSFi+9WdPwVJiNXMe1qvDdO0qaGKFpXgNpHg==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25014,9 +25014,9 @@ "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.41", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.41.tgz", - "integrity": "sha512-DxTSoOQXL7WMDyeabbSqBWIpRz2dDZV06T2ElQA4MroKhA+la4HJJCo2wnLHAP+enJs9CoiaqHEAEikqjX+GZA==" + "version": "0.5.42", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.42.tgz", + "integrity": "sha512-BKSIoVEH9SlQSmP7v0fpD1VtARe3ktCyr+iecUJFBDGeK3mrXOTSFi+9WdPwVJiNXMe1qvDdO0qaGKFpXgNpHg==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.10", --- package.json @@ -87,7 +87,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.41", + "@walmart/facilities-management-miniapp": "0.5.42", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6",
bug fix version update
bug fix version update
3306630832409c9ce73d9b99f00a692948eacc47
--- package.json @@ -90,7 +90,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.33.40", "@walmart/associate-listening-mini-app": "1.2.39", - "@walmart/attendance-mini-app": "3.174.3", + "@walmart/attendance-mini-app": "3.174.5", "@walmart/avp-feature-app": "0.25.32", "@walmart/avp-shared-library": "0.25.28", "@walmart/backroom-mini-app": "1.15.10", --- yarn.lock @@ -7757,9 +7757,9 @@ __metadata: languageName: node linkType: hard -"@walmart/attendance-mini-app@npm:3.174.3": - version: 3.174.3 - resolution: "@walmart/attendance-mini-app@npm:3.174.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.174.3.tgz" +"@walmart/attendance-mini-app@npm:3.174.5": + version: 3.174.5 + resolution: "@walmart/attendance-mini-app@npm:3.174.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.174.5.tgz" peerDependencies: "@react-native-community/datetimepicker": ">=5.1.0" "@react-navigation/native": ">=6.0.8" @@ -7789,7 +7789,7 @@ __metadata: redux-saga: ">=1.2.3" reselect: ">=4.1.0" wfm-allspark-data-library: ">=3.3.0" - checksum: 10c0/9f92bcfcbe0a3091f9bf65ad0d61d3dcf2a97438f06956f5f15210538c5ff26562ace21b556e6c282aafac68b7e2b7fddad498a84d9f2f0f837fe45f0af705a1 + checksum: 10c0/9398ae272b330e097c48366d72bdc0710ee33bc8a65825b9179568532ade2214ce97897230e1523ae1b578c2a5f111369b96efab3c1b3eb5ca131eb61d1e0475 languageName: node linkType: hard @@ -8683,7 +8683,7 @@ __metadata: "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.33.40" "@walmart/associate-listening-mini-app": "npm:1.2.39" - "@walmart/attendance-mini-app": "npm:3.174.3" + "@walmart/attendance-mini-app": "npm:3.174.5" "@walmart/avp-feature-app": "npm:0.25.32" "@walmart/avp-shared-library": "npm:0.25.28" "@walmart/backroom-mini-app": "npm:1.15.10"
fix(ama): GTA-164117 Shift swap issue fix ama for release (#4746)
fix(ama): GTA-164117 Shift swap issue fix ama for release (#4746) * fix(ama): GTA-164117 Shift swap issue fix ama for release * fix(ui): GTA-164117 shift swap issue fix attendance mini app --------- Co-authored-by: a0s08du <abinash.sahoo@walmart.com> Co-authored-by: shivam <SHIVAM.AGARWAL@walmart.com>
8b5c24c2c8059810ff3cfed5dac7edfc185d265a
--- src/core/appConfigInit.ts @@ -94,7 +94,7 @@ export function* getAppConfigScope(): any { scope: `${env.deployment}/${country}/${divisionNbr}`, params: { state, - payType, + payType: `${payType}`, appVersion, appBuildNumber, os: Platform.OS, --- src/navConfig/NavConfigSagas.ts @@ -87,7 +87,7 @@ export function* getNavConfigScope(): any { deviceType, bundleId, env: env.deployment, - employeeType, + employeeType: `${employeeType}`, domain, }; }
added appconfig type check
added appconfig type check
fcbaf27c18f4ad222abe805548a46a958e442fc8
--- packages/allspark-graphql-client/src/apollo/hooks.ts @@ -1,14 +1,36 @@ +import { useMemo } from 'react'; import { useApolloClient, useQuery as useQueryBase, useLazyQuery as useLazyQueryBase, useMutation as useMutationBase, + QueryHookOptions, + MutationHookOptions, } from '@apollo/client'; -import { useHttpClientOptions } from './utils'; +import { useHttpClient } from '@walmart/allspark-http-client'; + +import { mergeOptionHeaders } from './utils'; // Re-exposing common hooks. Renaming to match format of other services. export const useGraphQLClient = useApolloClient; +// Merging closest http client headers with apollo options so correct headers +// are on each request. +export const useHttpClientOptions = <O>(options: O): NonNullable<O> => { + const httpClient = useHttpClient(); + + const queryOptions = useMemo(() => { + return mergeOptionHeaders( + options as QueryHookOptions | MutationHookOptions, + httpClient.getHeaders() + ); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [options]); + + // @ts-ignore + return queryOptions as O; +}; + // Re-exposing base hooks with http client integration export const useQuery: typeof useQueryBase = (document, options) => { const modifiedOptions = useHttpClientOptions(options); --- packages/allspark-graphql-client/src/apollo/utils.ts @@ -1,43 +1,8 @@ import { MutationHookOptions, QueryHookOptions } from '@apollo/client'; -import { IHttpClient, useHttpClient } from '@walmart/allspark-http-client'; -import { useMemo } from 'react'; export { gql } from '@apollo/client'; // Below is to integrate http client context into apollo query options -// Can simplify at some point when get headers is added to http client -const NON_HEADER_KEYS = [ - 'delete', - 'get', - 'head', - 'post', - 'put', - 'patch', - 'common', - 'link', - 'unlink', - 'options', - 'purge', -] as const; - -export const getHttpClientHeaders = ( - httpClient: IHttpClient, - method: string -) => { - const clientHeaders = { - ...httpClient.defaults.headers, - ...httpClient.defaults.headers.common, - // @ts-ignore - ...(httpClient.defaults.headers[method] || {}), - }; - - NON_HEADER_KEYS.forEach((key) => { - delete clientHeaders[key]; - }); - - return clientHeaders as Record<string, string>; -}; - export const mergeOptionHeaders = ( options: QueryHookOptions | MutationHookOptions, headers: Record<string, string> @@ -53,19 +18,3 @@ export const mergeOptionHeaders = ( }, }; }; - -export const useHttpClientOptions = <O>(options: O): NonNullable<O> => { - const httpClient = useHttpClient(); - - const queryOptions = useMemo(() => { - const headers = getHttpClientHeaders(httpClient, 'post'); - return mergeOptionHeaders( - options as QueryHookOptions | QueryHookOptions, - headers - ); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [options]); - - // @ts-ignore - return queryOptions as O; -};
refactor: move hook to hooks folder. replace local get headers method with one from instance
refactor: move hook to hooks folder. replace local get headers method with one from instance
533b5bd138a4ea5750a8ca3a30958fabe3bcb433
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.188.0-rc.1", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.188.0-rc.1.tgz", - "integrity": "sha512-/E4AJKnokXALJksg1AId2589Y/SoOKwqpQxRiOVJ4+DpXnFiVEzp0rz48ldNud1Zd49B5Nf4qiax9CmTBYQ15g==" + "version": "0.197.0-rc.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.197.0-rc.0.tgz", + "integrity": "sha512-W9OpS79mqVndX5bgw6zat6TLyf9TCt8bf0RZy7aJ25r0ZzryxhExkgw3Akq1vRmEKTaf0CNC/OO97kyY0Yfing==" }, "@walmart/time-clock-mini-app": { "version": "0.4.27", --- 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.188.0-rc.1", + "@walmart/taskit-mini-app": "0.197.0-rc.0", "@walmart/time-clock-mini-app": "0.4.27", "@walmart/ui-components": "1.3.0-rc.10", "@walmart/welcomeme-mini-app": "0.44.0",
Updating taskIt version
Updating taskIt version
fd9e2d8591c03643a44110ca55a8aac9c24aaf0d
--- package-lock.json @@ -65,7 +65,7 @@ "@walmart/financial-wellbeing-feature-app": "1.23.2", "@walmart/functional-components": "6.0.12", "@walmart/gta-react-native-calendars": "0.6.0", - "@walmart/gtp-shared-components": "2.1.10", + "@walmart/gtp-shared-components": "2.2.1-rc.0", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", @@ -11612,13 +11612,13 @@ "license": "MIT" }, "node_modules/@walmart/gtp-shared-components": { - "version": "2.1.10", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.10.tgz", - "integrity": "sha512-Yy3R29eLNjWW4i2YdVtPdNEkvbuYzq5Hnecgg/7JXq7jVqF8eTAGXBdUXJKe/MIJPS/O6FjyQuKLptHm/O/SFQ==", + "version": "2.2.1-rc.0", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.2.1-rc.0.tgz", + "integrity": "sha512-9sZ3/aiJWX33g6ffUGhl3yx3F91CuPuVqNQCX+sp01t+JPVgTJPz6Vmo8bzeRdD/O6DUQkVIHBs6t4Xaq8AnrQ==", "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "0.63.0", - "@walmart/gtp-shared-icons": "1.0.7", + "@walmart/gtp-shared-icons": "^1.0.8", "lodash": "^4.17.15", "moment": "^2.29.4", "react-keyed-flatten-children": "^1.3.0", @@ -11644,15 +11644,18 @@ "license": "UNLICENSED" }, "node_modules/@walmart/gtp-shared-icons": { - "version": "1.0.7", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.7.tgz", - "integrity": "sha512-6wNEUDQ45oKz2z4jb3M0b6aVHmnQARNqUpnvnUJ2ZJL6cEP/HJuBNrIocCPp0S5jz2HJOfmdhNKzZ5xHULvU2A==", + "version": "1.0.8", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.8.tgz", + "integrity": "sha512-kaqbrFz4abqU1fWU9Jletv/tS3dNY1csQ8qR2tzDUn/WGi5aywQoAd/evWcFo7g6Dopne/GLJTkML+hbnQWe0Q==", "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "0.63.0", "lodash": "^4.17.15", "moment": "^2.27.0" }, + "engines": { + "node": ">=18" + }, "peerDependencies": { "react": "*", "react-native": "*" --- package.json @@ -372,7 +372,7 @@ "@walmart/financial-wellbeing-feature-app": "1.23.2", "@walmart/functional-components": "6.0.12", "@walmart/gta-react-native-calendars": "0.6.0", - "@walmart/gtp-shared-components": "2.1.10", + "@walmart/gtp-shared-components": "2.2.1-rc.0", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10",
Upgraded GTP to 2.2.1-rc.0
Upgraded GTP to 2.2.1-rc.0
584540e3ed77acaff0471977c33b48d93f86658c
--- graphql.yml @@ -294,4 +294,4 @@ applications: hash: "39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0" queryTemplate: "packages/associate-exp-hub-team-switcher/src/utils/queries/upsertSupplyChainAssociatePreference.graphql" tags: - - "v1" + - "v1" \ No newline at end of file
fix: dummy commit
fix: dummy commit
154d46ae22e45d7caf703a11ae20b8da4c959609
--- graphql.yml @@ -21,13 +21,14 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v2' + - 'Drop16' - name: 'GetTeamsByStore' hash: '873fc65ca1ee7ff9f729ef6efc5c674ab9a9037b1838693e0fcbe9a00031a513' queryTemplate: 'src/queries/getTeamsbyStore.graphql' @@ -49,13 +50,14 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' - name: 'GetTeamsByStore' hash: '873fc65ca1ee7ff9f729ef6efc5c674ab9a9037b1838693e0fcbe9a00031a513' queryTemplate: 'src/queries/getTeamsbyStore.graphql' @@ -77,8 +79,8 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' --- graphql.yml @@ -21,13 +21,14 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v2' + - 'Drop16' - name: 'GetTeamsByStore' hash: '873fc65ca1ee7ff9f729ef6efc5c674ab9a9037b1838693e0fcbe9a00031a513' queryTemplate: 'src/queries/getTeamsbyStore.graphql' @@ -49,13 +50,14 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - - 'v1' + - 'v2' + - 'Drop16' - name: 'GetTeamsByStore' hash: '873fc65ca1ee7ff9f729ef6efc5c674ab9a9037b1838693e0fcbe9a00031a513' queryTemplate: 'src/queries/getTeamsbyStore.graphql' @@ -77,8 +79,8 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql'
Added requested PR changes
Added requested PR changes
3b4758b93b226a6555a1ff1790fbfaa628c09e32
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/core-utils": "~1.3.0", "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", - "@walmart/emergency-mini-app": "1.14.0", + "@walmart/emergency-mini-app": "1.15.0", "@walmart/exception-mini-app": "1.0.6", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7", @@ -4922,9 +4922,9 @@ } }, "node_modules/@walmart/emergency-mini-app": { - "version": "1.14.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.14.0.tgz", - "integrity": "sha512-DKG/iHtXNIBRWOfFtTnnT7gh4qmtIqhGTYleQVccAXnT8ANwjAE3iXVRA1DY+nFcCARY9y8stexr2MMpHRFERA==", + "version": "1.15.0", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.15.0.tgz", + "integrity": "sha512-QU1FlQRezbifB0woIL6/IoN1KRapKZsWvpSAJzabjoTZiDaBXa0mkDnLOmcmOC6NUHUbOrL6hJ1CMH2lxhPQRQ==", "dependencies": { "@walmart/core-widget-registry": "^0.6.6" }, @@ -24810,9 +24810,9 @@ "integrity": "sha512-tk3UvKAl/VM29GwO/5uNURHnJkR/M1kq42Hn/2Xob+Ww7rY3gOHKhCTL3NytAPrZxyQco0ZyfGOGPbpy2aDnRw==" }, "@walmart/emergency-mini-app": { - "version": "1.14.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.14.0.tgz", - "integrity": "sha512-DKG/iHtXNIBRWOfFtTnnT7gh4qmtIqhGTYleQVccAXnT8ANwjAE3iXVRA1DY+nFcCARY9y8stexr2MMpHRFERA==", + "version": "1.15.0", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.15.0.tgz", + "integrity": "sha512-QU1FlQRezbifB0woIL6/IoN1KRapKZsWvpSAJzabjoTZiDaBXa0mkDnLOmcmOC6NUHUbOrL6hJ1CMH2lxhPQRQ==", "requires": { "@walmart/core-widget-registry": "^0.6.6" }, --- package.json @@ -86,7 +86,7 @@ "@walmart/core-utils": "~1.3.0", "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", - "@walmart/emergency-mini-app": "1.14.0", + "@walmart/emergency-mini-app": "1.15.0", "@walmart/exception-mini-app": "1.0.6", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7",
Updating emergency version
Updating emergency version
6cb756f95ceca35999e052046652912b0e521320
--- package-lock.json @@ -4198,9 +4198,9 @@ "integrity": "sha512-EcUV5UbnNZBvacqLesY18XKO/o3G6/k61ocI/ydIIPOhLXRgkiztQqMBE75bYxU7lQkRYtqgxcK3SzvAKP0RoQ==" }, "@walmart/counts-component-miniapp": { - "version": "0.0.28", - "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.28.tgz", - "integrity": "sha512-/k7ygyZcfutpFvQQC4JWQZrDxox69oDEk4nvDu1xxZ77a9ayAnOe7PJpovF3iSK2dYY3SEDTF78nzJnD+iQIsQ==" + "version": "0.0.31", + "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.31.tgz", + "integrity": "sha512-dd+wB2QeVEPqdTW3CaoJwDpefCPuGo6y8gzj60d9Ksj1vpfQVsRAo5WigZ5l5r6d0lZTofEipUyTZinaExZJhA==" }, "@walmart/exception-mini-app": { "version": "0.38.1", --- package.json @@ -76,7 +76,7 @@ "@walmart/ask-sam-mini-app": "0.40.4", "@walmart/allspark-neon-core": "0.1.25", "@walmart/config-components": "1.0.35", - "@walmart/counts-component-miniapp": "0.0.28", + "@walmart/counts-component-miniapp": "0.0.31", "@walmart/exception-mini-app": "0.38.1", "@walmart/feedback-all-spark-miniapp": "0.1.18", "@walmart/functional-components": "1.0.34",
Bump counts version
Bump counts version
b6bdf060a98c736b40db97244c7a82d98cccc2fe
--- .yarn/patches/@walmart-allspark-foundation-npm-7.17.11-b3a4db0437.patch @@ -1,8 +1,16 @@ diff --git a/Clock/redux.js b/Clock/redux.js -index 04ca2fbb464177168be3ca8f7a477e9ab36a7b42..45fee18d00cfce919d5909e82be18130fb84cc05 100644 +index 04ca2fbb464177168be3ca8f7a477e9ab36a7b42..6bdbe4761416ff4421340dcc8aa847386b0ece67 100644 --- a/Clock/redux.js +++ b/Clock/redux.js -@@ -37,6 +37,13 @@ exports.clockSlice = (0, toolkit_1.createSlice)({ +@@ -5,6 +5,7 @@ exports.ClockActionCreators = exports.ClockActionTypes = exports.ActionCreators + const toolkit_1 = require("@reduxjs/toolkit"); + const utils_1 = require("../Redux/utils"); + const redux_1 = require("../Auth/redux"); ++const types_1 = require("./types"); + const INITIAL_STATE = { + loading: false, + loaded: false, +@@ -37,6 +38,13 @@ exports.clockSlice = (0, toolkit_1.createSlice)({ state.loaded = true; state.error = false; state.data = action.payload; @@ -11,12 +19,12 @@ index 04ca2fbb464177168be3ca8f7a477e9ab36a7b42..45fee18d00cfce919d5909e82be18130 + if (state.data && action.payload) { + state.data.clockedIn = + action.payload.clockedIn ?? -+ action.payload.clockStatus !== ClockStatus.clockedOut; ++ action.payload.clockStatus !== types_1.ClockStatus.clockedOut; + } }, FETCH_ERROR: (state) => { state.error = true; -@@ -48,6 +55,13 @@ exports.clockSlice = (0, toolkit_1.createSlice)({ +@@ -48,6 +56,13 @@ exports.clockSlice = (0, toolkit_1.createSlice)({ state.loaded = true; state.error = false; state.data = action.payload; @@ -25,24 +33,25 @@ index 04ca2fbb464177168be3ca8f7a477e9ab36a7b42..45fee18d00cfce919d5909e82be18130 + if (state.data && action.payload) { + state.data.clockedIn = + action.payload.clockedIn ?? -+ action.payload.clockStatus !== ClockStatus.clockedOut; ++ action.payload.clockStatus !== types_1.ClockStatus.clockedOut; + } }, }, extraReducers: (builder) => { diff --git a/Container/types.d.ts b/Container/types.d.ts -index e661ffe7fe48d7107eee982bc942539c7dbb6082..9b806dcba8c7236060963c2ca5066faa7bd68dba 100644 +index e661ffe7fe48d7107eee982bc942539c7dbb6082..b7a780cb2031d11f71272c559d7ca37c6931d244 100644 --- a/Container/types.d.ts +++ b/Container/types.d.ts -@@ -25,6 +25,7 @@ import { ITelemetryService } from '../Telemetry'; +@@ -25,6 +25,8 @@ import { ITelemetryService } from '../Telemetry'; import { TranslationClientConfig } from '../Translation'; import { IUserService } from '../User'; import { DeveloperMenuClientConfig } from '../DeveloperMenu'; +import { DeveloperMenuProviderProps } from '../DeveloperMenu/DeveloperMenuManager'; ++ /** * Dynamic services defined by the container. */ -@@ -57,7 +58,7 @@ export type BaseContainerProviderProps<E extends BaseAllsparkEnvironment> = { +@@ -57,7 +59,7 @@ export type BaseContainerProviderProps<E extends BaseAllsparkEnvironment> = { components?: IAllsparkComponentContext; NavigationContainer?: NavigationContainerComponent; features?: AllsparkFeatureModule[]; --- yarn.lock @@ -7571,7 +7571,7 @@ __metadata: "@walmart/allspark-foundation@patch:@walmart/allspark-foundation@npm%3A7.17.11#~/.yarn/patches/@walmart-allspark-foundation-npm-7.17.11-b3a4db0437.patch": version: 7.17.11 - resolution: "@walmart/allspark-foundation@patch:@walmart/allspark-foundation@npm%3A7.17.11%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fallspark-foundation%252F-%252F%2540walmart%252Fallspark-foundation-7.17.11.tgz#~/.yarn/patches/@walmart-allspark-foundation-npm-7.17.11-b3a4db0437.patch::version=7.17.11&hash=b0c305" + resolution: "@walmart/allspark-foundation@patch:@walmart/allspark-foundation@npm%3A7.17.11%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fallspark-foundation%252F-%252F%2540walmart%252Fallspark-foundation-7.17.11.tgz#~/.yarn/patches/@walmart-allspark-foundation-npm-7.17.11-b3a4db0437.patch::version=7.17.11&hash=8496e3" dependencies: "@apollo/client": "npm:^3.8.6" "@reduxjs/toolkit": "npm:^1.9.7" @@ -7656,7 +7656,7 @@ __metadata: optional: true react-native-permissions: optional: true - checksum: 10c0/cd3b397cd3697bf0bcfa662e79fc44ad105b03108296daf37962b8a8c88dc25aca99e9088c440a685aeee0be2eef4f5d63561ac8a40ac598d8e648678d4bf82e + checksum: 10c0/6ba544645e57681fb80a04cd88982777d24c52400acc99403c8987fe6bdca33b1b75990281c28f77ba724a1ed6f409afe4a5ba562c50e3a2a55e5dc4c01b7e4e languageName: node linkType: hard
fix: fix allspark patch
fix: fix allspark patch
c78edf84e2e8d6e2b1362d809c89da37bf8562cc
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.8.0", + "version": "3.8.1", "main": "dist/index.js", "files": [ "dist",
feat(ui): version bump
feat(ui): version bump
833948c8cf54a618f137247795e07cc10fd8734b
--- graphql.yml @@ -11,54 +11,54 @@ applications: - name: 'stg' persistedQueries: - name: 'getAssociateById' - hash: '598954e5a3eb1a1c6d11916aaf87bc407d0d06cc84865678afb1b174f527fcff' - queryTemplate: './packages/me-at-walmart-container/src/queries/getAssociateById.graphql' + hash: '1bf0ea2f4d34274e578989be9f4248e9c4710577fda9705f944edc6e4732a799' + queryTemplate: 'packages/me-at-walmart-common/src/queries/getAssociateById.graphql' tags: - 'v1' - name: 'getDailyRosterHome' hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21' - queryTemplate: './packages/me-at-walmart-container/src/queries/getDailyRosterHome.graphql' + queryTemplate: 'packages/me-at-walmart-common/src/queries/getDailyRosterHome.graphql' tags: - 'v1' - name: 'getLoggedInUser' hash: '0beb54411dbf4e0c72d8d94982d755e0559023bc5e2c174e356b42f1e07b22fd' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' + queryTemplate: 'packages/me-at-walmart-common/src/queries/getLoggedInUser.graphql' tags: - 'v1' - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' - queryTemplate: './packages/me-at-walmart-container/src/queries/getTeamByIdHome.graphql' + queryTemplate: 'packages/me-at-walmart-common/src/queries/getTeamByIdHome.graphql' tags: - 'v1' - name: 'upsertAssociatePreference' hash: '972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql' + queryTemplate: 'packages/me-at-walmart-common/src/queries/updateAssociatePrivacyPreference.graphql' tags: - 'v1' - name: 'prod' persistedQueries: - name: 'getAssociateById' - hash: '598954e5a3eb1a1c6d11916aaf87bc407d0d06cc84865678afb1b174f527fcff' - queryTemplate: './packages/me-at-walmart-container/src/queries/getAssociateById.graphql' + hash: '1bf0ea2f4d34274e578989be9f4248e9c4710577fda9705f944edc6e4732a799' + queryTemplate: 'packages/me-at-walmart-common/src/queries/getAssociateById.graphql' tags: - 'v1' - name: 'getDailyRosterHome' hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21' - queryTemplate: './packages/me-at-walmart-container/src/queries/getDailyRosterHome.graphql' + queryTemplate: 'packages/me-at-walmart-common/src/queries/getDailyRosterHome.graphql' tags: - 'v1' - name: 'getLoggedInUser' hash: '0beb54411dbf4e0c72d8d94982d755e0559023bc5e2c174e356b42f1e07b22fd' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' + queryTemplate: 'packages/me-at-walmart-common/src/queries/getLoggedInUser.graphql' tags: - 'v1' - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' - queryTemplate: './packages/me-at-walmart-container/src/queries/getTeamByIdHome.graphql' + queryTemplate: 'packages/me-at-walmart-common/src/queries/getTeamByIdHome.graphql' tags: - 'v1' - name: 'upsertAssociatePreference' hash: '972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql' + queryTemplate: 'packages/me-at-walmart-common/src/queries/updateAssociatePrivacyPreference.graphql' tags: - 'v1' --- packages/me-at-walmart-common/src/queries/getAssociateById.graphql @@ -71,4 +71,4 @@ query getAssociateById($idType: idType = USERID, $userId: String!) { win workEmail } -} \ No newline at end of file +} --- packages/me-at-walmart-common/src/queries/getAssociateById.ts @@ -1,7 +1,7 @@ import * as Types from './schema.types'; import { gql } from '@apollo/client'; -import * as ApolloReactCommon from '@apollo/client'; +import * as Apollo from '@apollo/client'; import * as ApolloReactHooks from '@apollo/client'; const defaultOptions = {} as const; export type GetAssociateByIdQueryVariables = Types.Exact<{ @@ -42,6 +42,16 @@ export type GetAssociateByIdQuery = { userId?: string | null; win?: number | null; workEmail?: string | null; + associatePreferences?: { + __typename: 'AssociatePreferences'; + meAtWalmartPreferences?: { + __typename: 'MeAtWalmartPreferences'; + displayPreferences?: { + __typename: 'DisplayPreferences'; + birthday?: boolean | null; + } | null; + } | null; + } | null; birthDate?: { __typename: 'Birthday'; raw?: string | null } | null; punch?: { __typename: 'Punch'; @@ -77,6 +87,16 @@ export const GetAssociateByIdDocument = gql` getAssociateById(id: $userId, idType: $idType) { __typename associateId + associatePreferences { + __typename + meAtWalmartPreferences { + __typename + displayPreferences { + __typename + birthday + } + } + } associateTypeCode birthDate { __typename @@ -186,7 +206,7 @@ export type GetAssociateByIdQueryHookResult = ReturnType< export type GetAssociateByIdLazyQueryHookResult = ReturnType< typeof useGetAssociateByIdLazyQuery >; -export type GetAssociateByIdQueryResult = ApolloReactCommon.QueryResult< +export type GetAssociateByIdQueryResult = Apollo.QueryResult< GetAssociateByIdQuery, GetAssociateByIdQueryVariables >; --- packages/me-at-walmart-common/src/queries/schema.graphql @@ -4101,11 +4101,16 @@ type LearningSearchCourseMetadata { modifiedBy: String modifiedDate: String owner: [String!] + publishedBy: String + publishedDate: String + publishedStatus: String skills: [String!] source: String sourceUrl: String stateSpecific: [String!] status: String + statusModifiedBy: String + statusModifiedDate: String summary: String title: String vendorName: String --- packages/me-at-walmart-common/src/queries/schema.types.ts @@ -2828,11 +2828,16 @@ export type LearningSearchCourseMetadata = { modifiedBy?: Maybe<Scalars['String']>; modifiedDate?: Maybe<Scalars['String']>; owner?: Maybe<Array<Scalars['String']>>; + publishedBy?: Maybe<Scalars['String']>; + publishedDate?: Maybe<Scalars['String']>; + publishedStatus?: Maybe<Scalars['String']>; skills?: Maybe<Array<Scalars['String']>>; source?: Maybe<Scalars['String']>; sourceUrl?: Maybe<Scalars['String']>; stateSpecific?: Maybe<Array<Scalars['String']>>; status?: Maybe<Scalars['String']>; + statusModifiedBy?: Maybe<Scalars['String']>; + statusModifiedDate?: Maybe<Scalars['String']>; summary?: Maybe<Scalars['String']>; title?: Maybe<Scalars['String']>; vendorName?: Maybe<Scalars['String']>;
chore: updates from graphql codegen
chore: updates from graphql codegen
15f3557421050fdd426edffd23b5933131cdc3d4
--- __tests__/__mocks__/@walmart/metrics-mini-app.js @@ -16,5 +16,5 @@ module.exports = { InvVsSalesDrilldown: 'InvVsSalesDrilldown', ViewMoreMetrics: 'ViewMoreMetrics', WoshAssociatesScreen: 'WoshAssociatesScreen', - registerAskSamWidgets : jest.fn(), + registerAskSamWidgets: jest.fn(), }; --- __tests__/startup/AssociateStartupTest.ts @@ -17,7 +17,6 @@ import {surveySagas} from '../../src/survey/SurveySaga'; import {initNavConfig} from '../../src/navConfig'; import {watchForRbacRequest} from '../../src/rbacConfig/RbacSagas'; - jest.mock('../../src/versions', () => ({ setupAppVersions: jest.fn(), }));
lint fix
lint fix
05d7e5681e5216d980efad0e1c727ab26c7c72d4
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/inbox-mini-app": "0.81.3", "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", - "@walmart/me-field-mini-app": "1.1.38", + "@walmart/me-field-mini-app": "1.1.39", "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", @@ -5435,9 +5435,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "1.1.38", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.38.tgz", - "integrity": "sha512-5UxyLM8RR3U63WE8Q9+J3uwMlzLrnccnogyscedEFy1Y0RW9hlEGNlL5R7S/O2NuGC2tal+dx5/iUrWiLnmMtw==", + "version": "1.1.39", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.39.tgz", + "integrity": "sha512-Z0hU7q9UVd1RoBbxUj1jhYvFnCg/O0/4tB0PcC34TRQEkL+16qg4diJpy8zM9GVJgQG0a9loeSnGcmmza0RYQg==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -25251,9 +25251,9 @@ "integrity": "sha512-zOmvEEul9aMoJhNbE2Hz1FxxeXGovIwPojGjvjyhHBDcHTQGWHJVX5d2WpxgRk7M81jBnEzluDU5dJHK9bf3oQ==" }, "@walmart/me-field-mini-app": { - "version": "1.1.38", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.38.tgz", - "integrity": "sha512-5UxyLM8RR3U63WE8Q9+J3uwMlzLrnccnogyscedEFy1Y0RW9hlEGNlL5R7S/O2NuGC2tal+dx5/iUrWiLnmMtw==" + "version": "1.1.39", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.39.tgz", + "integrity": "sha512-Z0hU7q9UVd1RoBbxUj1jhYvFnCg/O0/4tB0PcC34TRQEkL+16qg4diJpy8zM9GVJgQG0a9loeSnGcmmza0RYQg==" }, "@walmart/metrics-mini-app": { "version": "0.9.38", --- package.json @@ -100,7 +100,7 @@ "@walmart/inbox-mini-app": "0.81.3", "@walmart/iteminfo-mini-app": "5.3.2", "@walmart/manager-approvals-miniapp": "0.1.2", - "@walmart/me-field-mini-app": "1.1.38", + "@walmart/me-field-mini-app": "1.1.39", "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4",
feat: :package: Bump learning mini app version to 1.1.39
feat: :package: Bump learning mini app version to 1.1.39
01bc54f7347b5ad44a60f45f3215fcb817a34d76
--- src/components/MyWalmartv2/Widgets/Hourly/HourlyRosterWidget.tsx @@ -422,7 +422,6 @@ const HourlyRosterWidgetCore = ({ <HubWidgetV2 id="hourly-roster-widget" title={widgetTitle} - description={`Team: ${teamData?.currentTeam?.teamLabel || 'All Teams'}`} state={widgetState} showDivider={false} showChevron={false} --- src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/SalariedOrTeamLeadRosterWidget.tsx @@ -308,7 +308,6 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC< : 'Salaried & Team Lead Roster', fallbackLng: 'en-US', })} - description={`Team: ${teamData?.currentTeam?.teamLabel || 'All Teams'}`} state={widgetState} showDivider={true} showChevron={true}
feat(ui): update roster widget changes
feat(ui): update roster widget changes
1b10c5cd183c5d40582629fff61b45e249ed3dd3
--- src/screens/RosterDetailScreen/StoreRosterDetailScreen.tsx @@ -229,7 +229,10 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { // Filter count for non-DC sites const filterCount = useMemo(() => { - if (teamState.teamIds?.[0] === TOTAL_STORE_TEAM_ID) { + if ( + teamState.teamIds?.[0] === TOTAL_STORE_TEAM_ID || + teamState.teamIds?.[0] === '' + ) { return { scheduledCount: teamRoster?.filter(associateIsScheduled).length, clockedInCount: teamRoster?.filter(associateIsClockedIn)?.length, @@ -260,7 +263,7 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { tardyCount, }; } - }, [teamState, allTeamsData?.getTeamsByStore]); + }, [teamState, allTeamsData?.getTeamsByStore, filteredAssociates]); const filterChips: FilterChipProps[] = useMemo(() => { return isSalariedOrLead @@ -333,8 +336,8 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { return ( <ListEmptyComponent testID='search-empty-component' - title={t('rosterListEmptyComponent.search.title')} - description={t('rosterListEmptyComponent.search.description', { + title={t('rosterListEmptyComponent.title')} + description={t('rosterListEmptyComponent.description', { searchInput, })} mediaComponent={ --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -240,12 +240,16 @@ export const SupplyChainRosterDetailScreen = ({ // Filter count for non-DC sites const filterCount = useMemo(() => { - if (teamState.teamIds?.[0] === TOTAL_STORE_TEAM_ID) { + if ( + teamState.teamIds?.[0] === TOTAL_STORE_TEAM_ID || + teamState.teamIds?.[0] === '' + ) { return { - scheduledCount: teamRoster?.filter(associateIsScheduled).length, - clockedInCount: teamRoster?.filter(associateIsClockedIn)?.length, - absentCount: teamRoster?.filter(associateIsAbsent)?.length, - tardyCount: teamRoster?.filter(associateIsTardy)?.length, + scheduledCount: filteredAssociates?.filter(associateIsScheduled).length, + clockedInCount: + filteredAssociates?.filter(associateIsClockedIn)?.length, + absentCount: filteredAssociates?.filter(associateIsAbsent)?.length, + tardyCount: filteredAssociates?.filter(associateIsTardy)?.length, }; } else { let clockedInCount = 0; @@ -271,7 +275,11 @@ export const SupplyChainRosterDetailScreen = ({ tardyCount, }; } - }, [teamState, allTeamsData?.supplyChainTeamsByBusinessUnit?.teams]); + }, [ + teamState, + allTeamsData?.supplyChainTeamsByBusinessUnit?.teams, + filteredAssociates, + ]); // Filter chips based on site type const filterChips: FilterChipProps[] = useMemo(() => { @@ -338,8 +346,8 @@ export const SupplyChainRosterDetailScreen = ({ return ( <ListEmptyComponent testID='search-empty-component' - title={t('rosterListEmptyComponent.search.title')} - description={t('rosterListEmptyComponent.search.description', { + title={t('rosterListEmptyComponent.title')} + description={t('rosterListEmptyComponent.description', { searchInput, })} mediaComponent={ --- src/utils/rosterDetail.tsx @@ -56,7 +56,10 @@ export const generateTeamRoster = ( }); } - if (currentTeamIds.includes(TOTAL_STORE_TEAM_ID)) { + if ( + currentTeamIds.includes(TOTAL_STORE_TEAM_ID) || + currentTeamIds.includes('') + ) { return dailyRoster; }
fixes
fixes
1ef99b106193bb34ab7f856073e3751c62d5358a
--- 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.5.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.5.3...@walmart/expo-config-plugins@0.5.4) (2025-09-03) + +**Note:** Version bump only for package @walmart/expo-config-plugins + ## [0.5.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.5.2...@walmart/expo-config-plugins@0.5.3) (2025-08-25) **Note:** Version bump only for package @walmart/expo-config-plugins --- packages/expo-config-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/expo-config-plugins", - "version": "0.5.3", + "version": "0.5.4", "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.5.4
622473f77c3fbee83df84b66b9d3b9ea80f50e14
--- package-lock.json @@ -62,7 +62,7 @@ "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", "@walmart/OneWalmart-MiniApp": "1.0.12", - "@walmart/pay-stub-miniapp": "0.9.24", + "@walmart/pay-stub-miniapp": "0.9.26", "@walmart/payrollsolution_miniapp": "0.130.25", "@walmart/price-changes-mini-app": "1.6.10", "@walmart/profile-feature-app": "0.76.0", @@ -5626,9 +5626,9 @@ } }, "node_modules/@walmart/pay-stub-miniapp": { - "version": "0.9.24", - "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.24.tgz", - "integrity": "sha512-E1EajBc5SjIdNn3236bg7PA9FZ4ANf92JV5979ORvO73Qu48gyrDu52sZ4LccRHFNJlwKk7qKdMqU8fnQO9Kig==", + "version": "0.9.26", + "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.26.tgz", + "integrity": "sha512-Z5L6pnHt1Sh0LoO3ouuxkZW5LscosozKJJ1GjQwLyA3WCHzLEDHvofiEsDR3x/s4hKrFxJixNZxmxOeNsiBYZA==", "dependencies": { "crypto-js": "^3.3.0" } @@ -25301,9 +25301,9 @@ } }, "@walmart/pay-stub-miniapp": { - "version": "0.9.24", - "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.24.tgz", - "integrity": "sha512-E1EajBc5SjIdNn3236bg7PA9FZ4ANf92JV5979ORvO73Qu48gyrDu52sZ4LccRHFNJlwKk7qKdMqU8fnQO9Kig==", + "version": "0.9.26", + "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.26.tgz", + "integrity": "sha512-Z5L6pnHt1Sh0LoO3ouuxkZW5LscosozKJJ1GjQwLyA3WCHzLEDHvofiEsDR3x/s4hKrFxJixNZxmxOeNsiBYZA==", "requires": { "crypto-js": "^3.3.0" } --- package.json @@ -104,7 +104,7 @@ "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", "@walmart/OneWalmart-MiniApp": "1.0.12", - "@walmart/pay-stub-miniapp": "0.9.24", + "@walmart/pay-stub-miniapp": "0.9.26", "@walmart/payrollsolution_miniapp": "0.130.25", "@walmart/price-changes-mini-app": "1.6.10", "@walmart/profile-feature-app": "0.76.0",
bump version
bump version
59235b1dfa7069d5aa8a0066b9869df582b0607b
--- targets/US/android/app/build.gradle @@ -234,16 +234,16 @@ repositories { url "https://repo.wal-mart.com/content/repositories/walmart" } maven { - url "https://repository.walmart.com/content/repositories/pangaea_snapshots/" + url "https://mvn.ci.artifacts.walmart.com/artifactory/proximity-pangaea-snapshots-mvn-release-remote/" } maven { - url "https://repository.walmart.com/content/repositories/pangaea_releases/" + url "https://mvn.ci.artifacts.walmart.com/artifactory/proximity-pangaea-releases-mvn-release-remote/" } maven { - url "https://repository.walmart.com/content/repositories/labs_snapshots/" + url "https://mvn.ci.artifacts.walmart.com/artifactory/proximity-labs-snapshots-mvn-release-remote/" } maven { - url "https://repository.walmart.com/content/repositories/labs_releases/" + url "https://mvn.ci.artifacts.walmart.com/artifactory/proximity-labs-releases-mvn-release-remote/" } }
Updated Proximity URLs with Artifactory URLs
Updated Proximity URLs with Artifactory URLs
3caefabf852149763a785e2b9cfdea187efe6a23
--- package-lock.json @@ -17246,9 +17246,9 @@ } }, "react-native-wm-barcode": { - "version": "2.34.0", - "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.34.0.tgz", - "integrity": "sha512-+8mCfBbs4W3ERblNptY2CZS/nRhHGajXcLYhO2Z6GGz3ot4fSY3ktTjGxBft1SwrlCXo+RvTYe14XrDAyqRAbA==" + "version": "2.35.0", + "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.35.0.tgz", + "integrity": "sha512-ygfQS3AzwK/j131QW8XbTsstWdA5mFNYbM8mv16LqOhsJHfeAo7w0kkufqpX6VnNESxr+aUP4BupqQVoSW+63w==" }, "react-native-wm-config": { "version": "0.1.1", --- package.json @@ -166,7 +166,7 @@ "react-native-view-shot": "^3.1.2", "react-native-vision-camera": "1.0.10", "react-native-webview": "^10.7.0", - "react-native-wm-barcode": "2.34.0", + "react-native-wm-barcode": "2.35.0", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.2.0", "react-native-wm-notification": "2.0.0",
bumping up wm-barcode version
bumping up wm-barcode version
e59bc3ffcb87fd1bc11e3e7e037547a679cd6430
--- package.json @@ -151,7 +151,7 @@ "@walmart/returns-mini-app": "4.17.8", "@walmart/rfid-scan-mini-app": "2.13.2", "@walmart/rn-mobile-sdk-pairing": "2.1.8", - "@walmart/rn-receiving-mini-app": "2.5.31", + "@walmart/rn-receiving-mini-app": "2.6.11", "@walmart/roster-mini-app": "3.7.0", "@walmart/schedule-mini-app": "2.6.1", "@walmart/shelfavailability-mini-app": "1.5.47", --- yarn.lock @@ -7366,9 +7366,9 @@ __metadata: languageName: node linkType: hard -"@walmart/atlas-rn-ui-components@npm:1.3.22": - version: 1.3.22 - resolution: "@walmart/atlas-rn-ui-components@npm:1.3.22" +"@walmart/atlas-rn-ui-components@npm:1.4.2": + version: 1.4.2 + resolution: "@walmart/atlas-rn-ui-components@npm:1.4.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fatlas-rn-ui-components%2F-%2F%40walmart%2Fatlas-rn-ui-components-1.4.2.tgz" peerDependencies: "@walmart/gtp-shared-components": ">=2.2.3-rc.1" i18next: ">=23.12.2" @@ -7379,7 +7379,7 @@ __metadata: bin: installFonts: ./scripts/installFonts runCodemods: ./scripts/runCodemods - checksum: 10c0/d27e47a6aede71c66b1daedea837fc2e5e77cfaf54f0e1e4777071b6262b6581e14b5a9933a20d830a46b3b7e300d94307cc0f45ee4cb34d0c9500c3bcb4aa95 + checksum: 10c0/993bed36c2089729989c3ba29fe1aef5a3ef089b8980c88a1e56478ba33252d27e7096f58e3ccbba60f273d7ae3f6efeb684a01c19df8303cf3f8718789f0662 languageName: node linkType: hard @@ -8366,7 +8366,7 @@ __metadata: "@walmart/returns-mini-app": "npm:4.17.8" "@walmart/rfid-scan-mini-app": "npm:2.13.2" "@walmart/rn-mobile-sdk-pairing": "npm:2.1.8" - "@walmart/rn-receiving-mini-app": "npm:2.5.31" + "@walmart/rn-receiving-mini-app": "npm:2.6.11" "@walmart/roster-mini-app": "npm:3.7.0" "@walmart/schedule-mini-app": "npm:2.6.1" "@walmart/shelfavailability-mini-app": "npm:1.5.47" @@ -9035,11 +9035,11 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.5.31": - version: 2.5.31 - resolution: "@walmart/rn-receiving-mini-app@npm:2.5.31" +"@walmart/rn-receiving-mini-app@npm:2.6.11": + version: 2.6.11 + resolution: "@walmart/rn-receiving-mini-app@npm:2.6.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Frn-receiving-mini-app%2F-%2F%40walmart%2Frn-receiving-mini-app-2.6.11.tgz" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.3.22" + "@walmart/atlas-rn-ui-components": "npm:1.4.2" "@walmart/loadquality-mini-app": "npm:2.0.30" peerDependencies: "@react-native-clipboard/clipboard": ">=1.14.0" @@ -9066,7 +9066,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: "*" - checksum: 10c0/f0a23dc7a85e49b38b5b5a86aa14c59df3285b50169c2f21bfd10c639f0ff254bf714a7e64a26227f35afc7034f70dbe5bf724ef3a20a70dcdfaccd0576881fc + checksum: 10c0/e2a2395bbc6e5136e4bde461a902a32e606260f5e6b24f1bb93212378344c24e9490f0400b38e62509ea60f6ce4df775eb94a39c808d31fb06666c5ae37a0cc6 languageName: node linkType: hard
feat(receiving): Drop 34 version bump (#4724)
feat(receiving): Drop 34 version bump (#4724) Co-authored-by: Abhishek Dourbi <abhishek.dourbi@walmart.com> Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com> Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com>
f40ef1e5262720fa652a349dffe0f9eaf6ce427e
--- package.json @@ -173,7 +173,7 @@ "@walmart/shop-gnfr-mini-app": "1.0.454", "@walmart/sidekick-mini-app": "4.276.5", "@walmart/store-feature-orders": "1.35.6", - "@walmart/talent-performance-mini-app": "2.0.0", + "@walmart/talent-performance-mini-app": "2.0.5", "@walmart/talent-preboarding-mini-app": "1.0.63", "@walmart/talent-preboarding-shared-utils": "^0.1.114", "@walmart/taskit-mini-app": "5.52.12", --- yarn.lock @@ -8907,7 +8907,7 @@ __metadata: "@walmart/shop-gnfr-mini-app": "npm:1.0.454" "@walmart/sidekick-mini-app": "npm:4.276.5" "@walmart/store-feature-orders": "npm:1.35.6" - "@walmart/talent-performance-mini-app": "npm:2.0.0" + "@walmart/talent-performance-mini-app": "npm:2.0.5" "@walmart/talent-preboarding-mini-app": "npm:1.0.63" "@walmart/talent-preboarding-shared-utils": "npm:^0.1.114" "@walmart/taskit-mini-app": "npm:5.52.12" @@ -9919,9 +9919,9 @@ __metadata: languageName: node linkType: hard -"@walmart/talent-performance-mini-app@npm:2.0.0": - version: 2.0.0 - resolution: "@walmart/talent-performance-mini-app@npm:2.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftalent-performance-mini-app%2F-%2F%40walmart%2Ftalent-performance-mini-app-2.0.0.tgz" +"@walmart/talent-performance-mini-app@npm:2.0.5": + version: 2.0.5 + resolution: "@walmart/talent-performance-mini-app@npm:2.0.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftalent-performance-mini-app%2F-%2F%40walmart%2Ftalent-performance-mini-app-2.0.5.tgz" dependencies: "@walmart/apq-client-wrapper": "npm:0.2.4" peerDependencies: @@ -9943,7 +9943,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/6443b91c653dc3e6dc695fcd718a18d93ba399baf551d30a4e914c9bdcc1ecbf877f4207b5f57bdede9e079dd0c067c2a374589e3bbda2ee11210c5405a3b075 + checksum: 10c0/ddb4bf023440779fb7c390c2f5e1867bf9088ebf6c59beb2205a10eec29faabca9bd1f96e207326c5c13495b8e2bdd008658ef90b33d3051de2bfa0f512762b3 languageName: node linkType: hard
chore: version bump (#5464)
chore: version bump (#5464)
adc7729229c1e7eaf0d38bab5a8b3d9f41953056
--- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -185,7 +185,10 @@ export const SupplyChainRosterDetailScreen = ({ const currentTeam = currentTeamData?.supplyChainTeamById?.teams; const getHeaderAndSubtext = useCallback(() => { - if (teamState.teamLabel === TOTAL_STORE_TEAM_LABEL) { + if ( + teamState.teamLabel === TOTAL_STORE_TEAM_LABEL || + teamState.teamLabel === 'Total site' + ) { return { header: siteTranslationContext, subText: '',
Total site changes
Total site changes
12a048d7157d2d0e3926dc9de254c851b0122196
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -187,18 +187,6 @@ export const HubDashboard = ({ /** Bottom sheet update */ const navigation = useNavigation(); - const resetNavigation = () => { - hideOnboardingBottomSheet(); - hideTeamUpdatedBottomSheet(); - hideErrorBottomSheet(); - hideOnboardingFlow(); - navigation.setParams({ - teamSelectionComplete: false, - teamOnboardingComplete: false, - teamSelectionError: false, - teamOnboardingError: false, - }); - }; const routeParams: any = useRoute()?.params; const { @@ -215,6 +203,19 @@ export const HubDashboard = ({ const { showOnboarding, hideOnboardingFlow } = useOnboardingContext(); + const resetNavigation = () => { + hideOnboardingBottomSheet(); + hideTeamUpdatedBottomSheet(); + hideErrorBottomSheet(); + hideOnboardingFlow(); + navigation.setParams({ + teamSelectionComplete: false, + teamOnboardingComplete: false, + teamSelectionError: false, + teamOnboardingError: false, + }); + }; + useFocusEffect( useCallback(() => { if (routeParams?.teamSelectionComplete) {
update the navigation for onboarding
update the navigation for onboarding
03c39dd514d1f3e5bf3a8e78982b24095af23a9a
--- 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.26", + "@walmart/taskit-mini-app": "5.42.29", "@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 @@ -8413,7 +8413,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.26" + "@walmart/taskit-mini-app": "npm:5.42.29" "@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" @@ -9317,12 +9317,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.42.26": - version: 5.42.26 - resolution: "@walmart/taskit-mini-app@npm:5.42.26::__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.26.tgz" +"@walmart/taskit-mini-app@npm:5.42.29": + version: 5.42.29 + resolution: "@walmart/taskit-mini-app@npm:5.42.29::__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.29.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/e87ead91a59612d6af392b1ff5f09fb1758350a72a0caf743d128682837b1208eeb487be0bd16086a6fb1cc7ae0744f9773e319a0d60325eed4b05a48b79e701 + checksum: 10c0/ae0b66270ad82aadbf34998ba2683d8bf9277c201553b4363d482a9703fd8728bc95039a1a0fbd58af907d3c920c28f91c32ac94b30b1957607b62c3f6c4bbea languageName: node linkType: hard
feat: taskit version updated
feat: taskit version updated
6d6ac2f4999d18b19cb34e1903d75cf7352b3b2d
--- package.json @@ -117,7 +117,7 @@ "@walmart/react-native-sumo-sdk": "2.5.1", "@walmart/receipt-check-miniapp": "1.9.15", "@walmart/redux-store": "3.1.3", - "@walmart/returns-mini-app": "0.13.2", + "@walmart/returns-mini-app": "0.13.3", "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", @@ -210,6 +210,7 @@ "redux-thunk": "^2.4.0", "reduxsauce": "^1.2.0", "reselect": "^4.1.0", + "promise.allsettled": "^1.0.6", "seamless-immutable": "^7.1.4", "semver": "^7.3.4", "uuid": "^3.3.2",
bump version and add promise allsettled back in
bump version and add promise allsettled back in
64117e5175371426fe1a6ebda3a40676d7d9e9c9
--- src/Components/EmptyListComponent/EmptyListComponent.tsx @@ -35,7 +35,7 @@ export const EmptySavedTeams: React.FC<EmptySavedTeamsProps> = ({ source={{ uri: 'https://i5-me.stage.walmartimages.com/images/associateexperience/empty-list-item-cf20246d7c.png', }} - style={{ height: 120, width: 120 }} + style={{height: 120, width: 120}} placeholder={'KoPPlis9%%#5RQR:?^Rkn4'} resizeMode="contain" onError={error => { --- src/Modals/HOC/EditTeamsModal.tsx @@ -3,7 +3,7 @@ import React, {useCallback, useEffect, useRef} from 'react'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; import {AssociateExpHubFeature} from '../../common/feature'; import {AssociateExpHubTranslationClient} from '../../common/translation'; -import ModalContent from '../../Components/SmartModal/ModalContent'; +import {ModalContent} from '../../Components/SmartModal/ModalContent'; import {EditTeamSelectionListItem} from '../../Components/EditTeamListItem'; import {useGetTeamsAdapter} from '../../Adapters'; import {MODALS} from '../../common/constants';
feat(ui): update associate hub exp changes: merge changes
feat(ui): update associate hub exp changes: merge changes
8522f49bc40fc7055c8d32cb54c2d3ebd338e032
--- __tests__/screens/TabsScreenTest.tsx @@ -1,6 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/no-unused-vars -import React from 'react'; - -describe('TabsScreen', () => { - it('Should display clocked out screen guard if user clocked out', () => {}); -}); --- src/index.tsx @@ -22,6 +22,7 @@ import {ChannelsProvider} from './channels/provider'; import {initNotificationListeners} from './notification'; import {initi18n} from './translations'; import {MeganavScreen} from './screens/MeganavScreen'; +import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; export const LOGGER_FIELDS = {id: 'texting-mini-app'}; @@ -81,11 +82,13 @@ export const TextingMiniApp = () => { return ( <LoggerCloneProvider fields={LOGGER_FIELDS}> <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={httpConfig}> - <PresenceProvider> - <ChannelsProvider> - <TextingNavigation /> - </ChannelsProvider> - </PresenceProvider> + <ClockedOutScreenGuard> + <PresenceProvider> + <ChannelsProvider> + <TextingNavigation /> + </ChannelsProvider> + </PresenceProvider> + </ClockedOutScreenGuard> </HttpClientCloneProvider> </LoggerCloneProvider> ); --- __tests__/screens/TabsScreenTest.tsx @@ -1,6 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/no-unused-vars -import React from 'react'; - -describe('TabsScreen', () => { - it('Should display clocked out screen guard if user clocked out', () => {}); -}); --- src/index.tsx @@ -22,6 +22,7 @@ import {ChannelsProvider} from './channels/provider'; import {initNotificationListeners} from './notification'; import {initi18n} from './translations'; import {MeganavScreen} from './screens/MeganavScreen'; +import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; export const LOGGER_FIELDS = {id: 'texting-mini-app'}; @@ -81,11 +82,13 @@ export const TextingMiniApp = () => { return ( <LoggerCloneProvider fields={LOGGER_FIELDS}> <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={httpConfig}> - <PresenceProvider> - <ChannelsProvider> - <TextingNavigation /> - </ChannelsProvider> - </PresenceProvider> + <ClockedOutScreenGuard> + <PresenceProvider> + <ChannelsProvider> + <TextingNavigation /> + </ChannelsProvider> + </PresenceProvider> + </ClockedOutScreenGuard> </HttpClientCloneProvider> </LoggerCloneProvider> );
adding guard to app level
adding guard to app level
4eb802429c339f376097045239d6f0b0e1e2c639
--- packages/core-services/Permissions/index.tsx @@ -4,9 +4,11 @@ import { AllsparkPermissionClient, PERMISSIONS as ALLSPARK_PERMISSIONS, PermissionSelectors, + PermissionActionTypes, + PermissionActionCreators as AllsparkPermissionActionCreators, } from '@walmart/allspark-foundation/Permissions'; import { ConsumerChild } from '@walmart/allspark-utils'; -import { IAllsparkReduxState } from '@walmart/allspark-foundation/Redux'; +import { getPermissionState } from './selectors'; /** * @deprecated Permissions is no longer a dynamic service. It's static implementation, `AllsparkPermissionClient`, is defined by the Allspark Foundation. @@ -233,10 +235,7 @@ export const PermissionGlobalSelectors = { * @deprecated use `AllsparkPermissionClient` directly from '@walmart/allspark-foundation/Permissions' instead. * Permission status is no longer maintained in redux state. */ - getPermissionState: (state: IAllsparkReduxState) => ({ - fetchingPermissions: false, - statuses: PermissionSelectors.getState(state), - }), + getPermissionState, /** * @deprecated use `AllsparkPermissionClient` directly from '@walmart/allspark-foundation/Permissions' instead. * Permission status is no longer maintained in redux state. @@ -285,7 +284,11 @@ export const PermissionGlobalSelectors = { * const locationStatus = useSelector(LocationSelectors.getPermissionStatus); * const notificationStatus = useSelector(NotificationSelectors.getPermissionStatus); */ -export const PermissionTypes = {}; +export const PermissionTypes = { + ...PermissionActionTypes, + PERMISSIONS_START: 'permissions/START', + PERMISSIONS_COMPLETE: 'permissions/COMPLETE', +}; /** * @deprecated Permission State has been deprecated with the allspark-foundation in favor @@ -307,14 +310,7 @@ export const PermissionTypes = {}; * const locationStatus = useSelector(LocationSelectors.getPermissionStatus); * const notificationStatus = useSelector(NotificationSelectors.getPermissionStatus); */ -export const PermissionActionCreators = new Proxy( - {}, - { - get: function () { - return () => ({ type: 'DEPRECATED_ACTION' }); - }, - } -); +export const PermissionActionCreators = AllsparkPermissionActionCreators; /** * @deprecated Permission State has been deprecated with the allspark-foundation in favor --- packages/core-services/Permissions/selectors.ts @@ -0,0 +1,13 @@ +import { IAllsparkReduxState } from '@walmart/allspark-foundation/Redux'; +import { PermissionSelectors } from '@walmart/allspark-foundation/Permissions'; + +// Some feature apps are referencing this file and method directly for some reason so keeping it for backwards compatability. + +/** + * @deprecated use `AllsparkPermissionClient` directly from '@walmart/allspark-foundation/Permissions' instead. + * Permission status is no longer maintained in redux state. + */ +export const getPermissionState = (state: IAllsparkReduxState) => ({ + fetchingPermissions: false, + statuses: PermissionSelectors.getState(state), +}); --- packages/core-services/User/hooks.ts @@ -0,0 +1,14 @@ +import { UserSelectors } from '@walmart/allspark-foundation/User'; +import { useSelector } from 'react-redux'; + +// Some feature apps are referencing this file and method directly for some reason so keeping it for backwards compatability. + +/** + * @deprecated use `UserSelectors` from '@walmart/allspark-foundation/User' instead + * @example + * import { useSelector } from 'react-redux'; + * import {UserSelectors} from '@walmart/allspark-foundation/User'; + * + * const user = useSelector(UserSelectors.getState); + */ +export const useUserState = () => useSelector(UserSelectors.getState); --- packages/core-services/User/index.tsx @@ -1,12 +1,11 @@ import React, { forwardRef, useImperativeHandle } from 'react'; -import { useSelector } from 'react-redux'; import { AllsparkUserService, UserService, - UserSelectors, } from '@walmart/allspark-foundation/User'; import { useContainerService } from '@walmart/allspark-foundation/Container'; import { ConsumerChild } from '@walmart/allspark-utils'; +export { useUserState } from './hooks'; /** * @deprecated The User Service should **ONLY** be set and used by an `AllsparkContainer`. @@ -170,16 +169,6 @@ export const getDeferredUserContext = async () => UserService; */ export const useUser = () => useContainerService('user'); -/** - * @deprecated use `UserSelectors` from '@walmart/allspark-foundation/User' instead - * @example - * import { useSelector } from 'react-redux'; - * import {UserSelectors} from '@walmart/allspark-foundation/User'; - * - * const user = useSelector(UserSelectors.getState); - */ -export const useUserState = () => useSelector(UserSelectors.getState); - /** * @deprecated use `AllsparkUserService` from '@walmart/allspark-foundation/User' instead * @example
fix: changes for backwards compatability
fix: changes for backwards compatability
7be9d272abc129f120c6c585bcdbef97bde156b0
--- android/app/src/main/assets/fonts/icomoon.ttf Binary files a/android/app/src/main/assets/fonts/icomoon.ttf and b/android/app/src/main/assets/fonts/icomoon.ttf differ --- ios/icomoon.ttf Binary files a/ios/icomoon.ttf and b/ios/icomoon.ttf differ --- package-lock.json @@ -3270,9 +3270,9 @@ } }, "@walmart/ui-components": { - "version": "1.1.33", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.33.tgz", - "integrity": "sha512-kK4GRLoqhplOFBp3KOctQyrmjdFFom7zwj+rotZv+L19cq8p0lZN+ZsBmSAQlYCaBngn8Y2/pcaxnvluyIICQg==", + "version": "1.1.34", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.34.tgz", + "integrity": "sha512-hwz6jkUzX1OUWXbM6A9WqqJomsOybtB0Pp4njEPu+8vSyfopZQp06gFWb3x2gjO6rL6XX35P1kammndt9Rk3Yg==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -87,7 +87,7 @@ "@walmart/schedule-mini-app": "0.2.76", "@walmart/settings-mini-app": "1.2.3", "@walmart/time-clock-mini-app": "0.3.4", - "@walmart/ui-components": "1.1.33", + "@walmart/ui-components": "1.1.34", "@walmart/welcomeme-mini-app": "0.24.2", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
updated fonts and gif icon in global nav
updated fonts and gif icon in global nav
01efde5b61bf24a618f7352739db7cf893de6e4a
--- src/managerExperience/components/FilterChipGroup/FilterChipGroup.tsx @@ -14,17 +14,19 @@ export const FilterChipGroup = ({ handleFilter, }: FilterChipGroupProps) => { const {t} = useTranslation([ROSTER_I18N_NAMESPACE]); - const [selectedFilter, setSelectedFilter] = useState< - FilterValue | undefined - >(); + // When selectedFilter is null, all associates are shown + const [selectedFilter, setSelectedFilter] = useState<FilterValue | null>( + null, + ); const handleFilterPress = (filterValue: FilterValue) => { if (selectedFilter === filterValue) { - setSelectedFilter(undefined); + setSelectedFilter(null); + handleFilter(FilterValue.all); } else { setSelectedFilter(filterValue); + handleFilter(filterValue); } - handleFilter(filterValue); }; return (
feat: updated selected filter type
feat: updated selected filter type
d6c08bb14645818522333605a6f009694b6f3fbe
--- example/src/teamHub/screens/screen.tsx @@ -6,7 +6,7 @@ import {useNavigation} from '@react-navigation/core'; import {TeamHubLogger, TeamHubTelemetry} from '../services'; import {TeamHub} from '../feature'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; -import {TeamSelectionListItem} from '../tempComponentForTesting/TeamSelectionListItem'; +import {TeamSelectionList} from '../tempComponentForTesting/TeamSelectionList'; export const HomeScreen = TeamHub.createScreen( () => { @@ -38,12 +38,22 @@ export const HomeScreen = TeamHub.createScreen( }> Team Container </Button> - <TeamSelectionListItem - teamName="Admin & Support" - isLastListItem={false} - isSelected={false} - checkboxDisabled={false} - toggleSelection={() => {}} + <TeamSelectionList + areas={[ + 'Admin & Support', + 'Digital', + 'Food & Consumables', + 'Front End', + 'Fuel', + 'General Merchandise', + 'Management', + 'Pharmacy', + 'Stocking', + 'Vision Center', + ]} + selectedTeams={[]} + primaryArea="Management" + handleChange={() => {}} /> </View> ); --- example/src/teamHub/tempComponentForTesting/TeamSelectionList.tsx @@ -0,0 +1,109 @@ +import React from 'react'; +import {View, Text, ScrollView} from 'react-native'; +import {TeamSelectionListItem, TeamName} from './TeamSelectionListItem'; +import {Checkbox} from '@walmart/gtp-shared-components/dist'; +import {teamSelectionListStyles as styles} from './styles'; + +enum Areas { + 'Admin & Support' = 'Admin & Support', + Digital = 'Digital', + 'Food & Consumables' = 'Food & Consumables', + 'Front End' = 'Front End', + Fuel = 'Fuel', + 'General Merchandise' = 'General Merchandise', + Management = 'Management', + Pharmacy = 'Pharmacy', + Stocking = 'Stocking', + 'Vision Center' = 'Vision Center', +} + +export type Area = keyof typeof Areas; + +const areaTeamMap: Record<Area, TeamName[]> = { + 'Admin & Support': ['Admin & Support'], + Digital: ['Digital', 'Digital Overnight'], + 'Food & Consumables': [ + 'Deli & Bakery', + 'Food & Consumables', + 'Health & Beauty', + 'Meat & Produce', + ], + 'Front End': ['Asset Protection', 'Front End'], + Fuel: ['Fuel'], + 'General Merchandise': [ + 'Apparel', + 'Auto Care Center', + 'Entertainment', + 'Hardlines', + 'Home', + 'Seasonal', + ], + Management: ['Management'], + Pharmacy: ['Pharmacy'], + Stocking: ['Stocking Day 1', 'Stocking Day 2', 'Stocking Overnight'], + 'Vision Center': ['Vision Center'], +}; + +interface TeamSelectionListProps { + areas: Area[]; + selectedTeams: TeamName[]; + primaryArea: Area; + handleChange: (teamName: string) => void; +} + +export const TeamSelectionList = ({ + areas, + selectedTeams, + primaryArea, + handleChange, +}: TeamSelectionListProps) => { + return ( + <ScrollView style={styles.container}> + <View style={styles.headerContainer}> + <Text style={styles.header}>Teams</Text> + </View> + <View style={styles.selectAllContainer}> + <Text style={styles.selectTeamsText}>Select all teams</Text> + <Checkbox /> + </View> + <View style={styles.myAreaContainaer}> + <Text style={styles.myArea}>My area</Text> + + <Text style={styles.areaHeader}>{primaryArea}</Text> + {areaTeamMap[primaryArea].map((team, index) => ( + <TeamSelectionListItem + key={`team-${team}`} + teamName={team} + isLastListItem={index === areaTeamMap[primaryArea].length - 1} + isSelected={true} + isPrimaryTeam={true} + checkboxDisabled + toggleSelection={() => handleChange(team)} + /> + ))} + </View> + + {areas.map(area => { + const isPrimary = area === primaryArea; + const areaTeams = areaTeamMap[area]; + return !isPrimary ? ( + <View style={styles.teamListContainer}> + <Text style={styles.areaHeader}>{area}</Text> + {areaTeams.map((team, index) => ( + <TeamSelectionListItem + key={`team-${team}`} + teamName={team} + isLastListItem={index === areaTeams.length - 1} + isSelected={selectedTeams.includes(team)} + checkboxDisabled + toggleSelection={() => handleChange(team)} + /> + ))} + </View> + ) : ( + '' + ); + })} + </ScrollView> + ); +}; --- example/src/teamHub/tempComponentForTesting/TeamSelectionListItem.tsx @@ -37,7 +37,7 @@ interface TeamSelectionListItemProps { isLastListItem: boolean; isPrimaryTeam?: boolean; isSelected: boolean; - checkboxDisabled: boolean; + checkboxDisabled?: boolean; toggleSelection: () => void; } @@ -47,7 +47,7 @@ export const TeamSelectionListItem = ({ isSelected, isPrimaryTeam = false, toggleSelection, - checkboxDisabled, + checkboxDisabled = false, }: TeamSelectionListItemProps) => { const styles = useMemo( () => teamSelectionListItemStyles(!isLastListItem), --- example/src/teamHub/tempComponentForTesting/styles.ts @@ -5,7 +5,8 @@ export const teamSelectionListItemStyles = (hasBorder: boolean) => StyleSheet.create({ container: { display: 'flex', - padding: 16, + paddingTop: 16, + paddingBottom: 16, justifyContent: 'space-between', alignItems: 'center', width: '100%', @@ -29,6 +30,7 @@ export const teamSelectionListItemStyles = (hasBorder: boolean) => fontSize: 16, fontWeight: '400', lineHeight: 24, + color: colors.gray['160'], }, checkboxContainer: { display: 'flex', @@ -51,3 +53,61 @@ export const teamSelectionListItemStyles = (hasBorder: boolean) => lineHeight: 16, }, }); + +export const teamSelectionListStyles = StyleSheet.create({ + container: { + backgroundColor: colors.white, + padding: 16, + display: 'flex', + flexDirection: 'column', + }, + headerContainer: { + paddingTop: 16, + paddingBottom: 16, + borderBottomColor: colors.gray['20'], + borderBottomWidth: 1, + }, + header: { + fontFamily: 'Bogle-Bold', + fontSize: 18, + fontWeight: '700', + lineHeight: 24, + }, + selectAllContainer: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + paddingTop: 16, + paddingBottom: 16, + borderBottomColor: colors.gray['20'], + borderBottomWidth: 1, + marginBottom: 24, + }, + selectTeamsText: { + fontFamily: 'Bogle-Regular', + fontSize: 14, + lineHeight: 20, + fontWeight: '400', + color: colors.gray['160'], + }, + myArea: { + fontFamily: 'Bogle-Regular', + fontWeight: '400', + fontSize: 12, + lineHeight: 16, + color: colors.gray['160'], + }, + areaHeader: { + fontFamily: 'Bogle-Bold', + fontSize: 16, + fontWeight: '700', + lineHeight: 24, + color: colors.gray['160'], + }, + myAreaContainaer: { + marginBottom: 24, + }, + teamListContainer: { + marginBottom: 24, + }, +});
feat: added team selection list using list item component
feat: added team selection list using list item component
3506a9efa0732573c27535592320d14fd1c12745
--- packages/me-at-walmart-common/__tests__/components/SidekickAssistantFAB.test.tsx @@ -127,7 +127,7 @@ describe('SidekickAssistantFAB', () => { expect(pressable.props.accessibilityLabel).toBe('Sidekick Assistant'); expect(pressable.props.accessibilityRole).toBe('button'); - expect(pressable.props.accessibilityHint).toBe('Tap to open Sidekick Assistant'); + expect(pressable.props.accessibilityHint).toBe('Double Tap to open Sidekick Assistant'); expect(pressable.props.style.pointerEvents).toBe('auto'); }); --- packages/me-at-walmart-common/__tests__/components/__snapshots__/SidekickAssistantFAB.test.tsx.snap @@ -2,7 +2,7 @@ exports[`SidekickAssistantFAB Component Rendering should render correctly 1`] = ` <View - accessibilityHint="Tap to open Sidekick Assistant" + accessibilityHint="Double Tap to open Sidekick Assistant" accessibilityLabel="Sidekick Assistant" accessibilityRole="button" accessibilityState={ --- packages/me-at-walmart-common/src/components/SidekickAssistantFAB/index.tsx @@ -186,7 +186,7 @@ const SidekickAssistantFABComponent = () => { testID="sidekickAssistantFABPressable" accessibilityLabel={accessibilityLabel} accessibilityRole="button" - accessibilityHint="Tap to open Sidekick Assistant" + accessibilityHint="Double Tap to open Sidekick Assistant" > {({pressed}) => ( <Image
feat(ada): fix fab (#5145)
feat(ada): fix fab (#5145) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
b8f9995da70d090b37b08fccca3d5f7d960f0548
--- jest.config.js @@ -17,10 +17,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 0, - branches: 0, - functions: 0, - lines: 0, + statements: 87.22, + branches: 75.18, + functions: 85.22, + lines: 87.31, }, }, transformIgnorePatterns: [
adding thresh to enforce coverage numbers
adding thresh to enforce coverage numbers
a0a0b21ac61c68e34709e4ae747213812d8be615
--- packages/me-at-walmart-container/__tests__/network/getNetworkAttributes.test.ts @@ -0,0 +1,37 @@ +import { getNetworkAttributes } from '../../src/network/getNetworkAttributes'; +import { NetworkDetails } from '@walmart/allspark-foundation/Network'; + +describe('network/getNetworkAtrributes.ts', () => { + test('should return null if state is null', () => { + const result = getNetworkAttributes(null as unknown as NetworkDetails); + expect(result).toBeNull(); + }); + + test('should return null if state type is not defined', () => { + const state = { + type: undefined, + } as unknown as NetworkDetails; + const result = getNetworkAttributes(state); + expect(result).toBeNull(); + }); + + test('should return network attributes for wifi state', () => { + const state = { + type: 'wifi', + details: { + strength: 80, + }, + isConnected: true, + isInternetReachable: true, + } as unknown as NetworkDetails; + + const result = getNetworkAttributes(state); + expect(result).toEqual({ + wifiStrength: '80', + networkType: 'wifi', + connectionType: '', + isConnected: 'true', + isInternetReachable: 'true', + }); + }); +}); --- packages/me-at-walmart-container/__tests__/network/getWifiSiteId.test.ts @@ -0,0 +1,44 @@ +import { getWifiSiteId } from '../../src/network/getWifiSiteId'; +import WifiStoreLocator from 'wifi-store-locator'; + +jest.mock('wifi-store-locator', () => ({ + getStoreIDList: jest.fn(), +})); + +describe('network/getWifiSiteId.ts', () => { + afterEach(() => { + jest.clearAllMocks(); + }); + + test('should return the first store ID as wifiSiteId if storeIds list is not empty', async () => { + const mockStoreIds = ['123', '456', '789']; + (WifiStoreLocator.getStoreIDList as jest.Mock).mockResolvedValueOnce( + mockStoreIds + ); + + const wifiSiteId = await getWifiSiteId(); + expect(wifiSiteId).toBe('123'); + expect(WifiStoreLocator.getStoreIDList).toHaveBeenCalledTimes(1); + }); + + test('should return undefined as wifiSiteId if storeIds list is empty', async () => { + const mockStoreIds: string[] = []; + (WifiStoreLocator.getStoreIDList as jest.Mock).mockResolvedValueOnce( + mockStoreIds + ); + + const wifiSiteId = await getWifiSiteId(); + expect(wifiSiteId).toBeUndefined(); + expect(WifiStoreLocator.getStoreIDList).toHaveBeenCalledTimes(1); + }); + + test('should return undefined as wifiSiteId if an error occurs', async () => { + (WifiStoreLocator.getStoreIDList as jest.Mock).mockRejectedValueOnce( + new Error('Network error') + ); + + const wifiSiteId = await getWifiSiteId(); + expect(wifiSiteId).toBeUndefined(); + expect(WifiStoreLocator.getStoreIDList).toHaveBeenCalledTimes(1); + }); +});
network/getWifiId
network/getWifiId
fb890b0553dbef6d0f74086da6e80bfb8313e550
--- android/app/build.gradle @@ -135,7 +135,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 33 - versionName "1.0.1" + versionName "1.0.2" } splits { abi { --- ios/AllSpark/Info.plist @@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.0.1</string> + <string>1.0.2</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> --- ios/AllSparkTests/Info.plist @@ -15,7 +15,7 @@ <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleShortVersionString</key> - <string>1.0.1</string> + <string>1.0.2</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.0.1", + "version": "1.0.2", "private": true, "scripts": { "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
version bump to 102 (#352)
version bump to 102 (#352) Co-authored-by: Andrew Fulton <a0f00ev@m-c02zf8bjlvdq.homeoffice.wal-mart.com> Co-authored-by: Hitesh Arora <>
dead4dee56fc3c488daa71c208f8f14424f5d4c2
--- package.json @@ -102,7 +102,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.5.2", + "@walmart/wmconnect-mini-app": "2.5.3", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- yarn.lock @@ -6256,7 +6256,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.5.2" + "@walmart/wmconnect-mini-app": "npm:2.5.3" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6389,9 +6389,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.5.2": - version: 2.5.2 - resolution: "@walmart/wmconnect-mini-app@npm:2.5.2" +"@walmart/wmconnect-mini-app@npm:2.5.3": + version: 2.5.3 + resolution: "@walmart/wmconnect-mini-app@npm:2.5.3" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6431,7 +6431,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/6512ab0b59c3c2ff3ecadcbd103cafb6cae1ec7ff52966e41102f65ddb834544fbe188eaa9ec240471bb1c4b94b6f2d538b646c27c40dc052c208008a1ce0578 + checksum: 10c0/aa7976887414452342e144eac5d9351eef06ad5c801294c972a5d103a51ef00f7607ac7ead0f1eaa5839804a3e4c9962d17b340a923563a72b70cabbb54866db languageName: node linkType: hard
chore(ui): bumped wmconnect version
chore(ui): bumped wmconnect version
55ee28582df92df1710553bc00d7519b0d806604
--- ios/Podfile.lock @@ -916,7 +916,7 @@ CHECKOUT OPTIONS: SPEC CHECKSUMS: Apollo: c3f1cc3bfb36e1c4bbb642f44184ad759ad42a87 - AppAuth: 80317d99ac7ff2801a2f18ff86b48cd315ed465d + AppAuth: 31bcec809a638d7bd2f86ea8a52bd45f6e81e7c7 BinaryCodable: 92908a9338a428dd3bbb6ae9c97ec907e5f6e4a7 boost: a7c83b31436843459a1961bfd74b96033dc77234 BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872
Update ios/Podfile.lock
Update ios/Podfile.lock
74769e0aefac819a878ebdc08a64cf08b0c3a327
--- package-lock.json @@ -4440,9 +4440,9 @@ "integrity": "sha512-wS09P2+WMawKcQb5GkrB4i9iAN25TVSaLGjLvpc6Iy92V5eLNGN2PVIBB3Blgfi4f7js6Mzppf9yQKe3qtzlpA==" }, "@walmart/shelfavailability-mini-app": { - "version": "0.7.0", - "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.7.0.tgz", - "integrity": "sha512-wPuHZTwG9zZ/wgyZPqmWLOOc8OmNkM93BaXWUNY2s89MWLJa16w5vbsJAIpbvCzU2W2jgGQO7tYA+iDTz+ZgKg==", + "version": "0.8.0", + "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.8.0.tgz", + "integrity": "sha512-/85KtF+MIjb5hL3doJDJ8NkNfFEANrzJnUxEJNUzPifdri2hFOTcdMCboV9xcWcx1Djnd+K+AaBT0uBPEdxxdA==", "requires": { "@types/uuid": "^8.3.0", "@types/xdate": "^0.8.31", @@ -4530,9 +4530,9 @@ } }, "@walmart/ui-components": { - "version": "1.3.0-rc.8", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.8.tgz", - "integrity": "sha512-u5FNQtfpGMcYSTFL7l/zdBCemXiRDcyVMXcYLpQ1S1rdPO5sucUfR4T+eXUJNKoWYkKcgaExP0sSVByGgVoHAw==", + "version": "1.3.0-rc.6", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.6.tgz", + "integrity": "sha512-2vjE5AgFr4jFXr6mu6AVIkJiHpze2/chByCye3AGZbFiy23MYbDARDJ45WRUgjU9sL+Q7eQCrMhcNA9RHn9ydA==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -101,10 +101,9 @@ "@walmart/refrigeration-alarms-mini-app": "1.23.0", "@walmart/schedule-mini-app": "0.10.0", "@walmart/taskit-mini-app": "0.143.0-rc.0", - "@walmart/shelfavailability-mini-app": "0.7.0", - "@walmart/ui-components": "v1.3.0-rc.8", - "@walmart/time-clock-mini-app": "0.4.26", + "@walmart/shelfavailability-mini-app": "0.8.0", "@walmart/ui-components": "v1.3.0-rc.6", + "@walmart/time-clock-mini-app": "0.4.26", "@walmart/welcomeme-mini-app": "0.42.0", "@walmart/wfm-ui": "0.2.8", "axios-cache-adapter": "2.7.3",
SA-171 SA mini app version inc to prevent nav menu during scan
SA-171 SA mini app version inc to prevent nav menu during scan
bb53431a27b125714ed19febac3c5a91b58a3cad
--- targets/US/package.json @@ -117,7 +117,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-core": "workspace:^", "@walmart/metrics-mini-app": "1.24.3", - "@walmart/mod-flex-mini-app": "1.20.2", + "@walmart/mod-flex-mini-app": "1.21.6", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.1.22", "@walmart/myteam-mini-app": "1.12.0", --- yarn.lock @@ -7024,7 +7024,7 @@ __metadata: "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-core": "workspace:^" "@walmart/metrics-mini-app": "npm:1.24.3" - "@walmart/mod-flex-mini-app": "npm:1.20.2" + "@walmart/mod-flex-mini-app": "npm:1.21.6" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:0.1.22" "@walmart/myteam-mini-app": "npm:1.12.0" @@ -7285,9 +7285,9 @@ __metadata: languageName: node linkType: hard -"@walmart/mod-flex-mini-app@npm:1.20.2": - version: 1.20.2 - resolution: "@walmart/mod-flex-mini-app@npm:1.20.2" +"@walmart/mod-flex-mini-app@npm:1.21.6": + version: 1.21.6 + resolution: "@walmart/mod-flex-mini-app@npm:1.21.6" peerDependencies: "@react-native-async-storage/async-storage": ^1.19.0 "@react-native-picker/picker": ^2.4.8 @@ -7338,7 +7338,7 @@ __metadata: redux-thunk: ^2.4.0 uuid: ^3.3.2 wifi-store-locator: ^1.4.1 - checksum: 10c0/073a7dcaec3d23f88fbce0fb863baeffb3188c2313256a5298f6b38f2dfb79c0d930de9433677ffba8912386941d5e1478abc5b591e2a9ef0fbf44ef5f400236 + checksum: 10c0/72a24625b89b5a56e0990d7f9c059bae433158c0b19010028836ec84499ff2a1a575b1ba79e0be0cc5567efa495073d88b5b020d9bdf70d8c001746c33f8561a languageName: node linkType: hard
Update modflex drop 25
Update modflex drop 25
44a929d191d6e865b9f2149d291a5cfd5d8f6870
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.27.0", + "version": "2.28.0", "main": "dist/index.js", "files": [ "dist" --- src/screens/index.tsx @@ -1,46 +1,46 @@ -// import React from 'react'; +import React from 'react'; import {ScreenTags} from '@walmart/me-at-walmart-common'; import {RosterFeature} from '../common/feature'; -// import {RosterNavParamsMap, RosterNavigation} from '../navigation'; -import {AllTeamsScreen} from './AllTeamsScreen'; -import {RosterDetailScreen} from './RosterDetailScreen'; +import {RosterNavParamsMap, RosterNavigation} from '../navigation'; +// import {AllTeamsScreen} from './AllTeamsScreen'; +// import {RosterDetailScreen} from './RosterDetailScreen'; -// export const RosterMiniApp = () => { -// return ( -// <> -// <RosterNavigation /> -// </> -// ); -// }; +export const RosterMiniApp = () => { + return ( + <> + <RosterNavigation /> + </> + ); +}; -// const rosterScreens = RosterFeature.createScreen<RosterNavParamsMap, 'myTeam'>( -// RosterMiniApp, -// { -// tags: [ScreenTags.MyTeamTab], -// clockCheckRequired: true, -// options: { -// title: 'Roster', -// headerShown: false, -// }, -// }, -// ); - -export default RosterFeature.createScreens({ - // ['myTeam.roster']: rosterScreens, - ['myTeam.rosterDetail']: RosterFeature.createScreen(RosterDetailScreen, { +const rosterScreens = RosterFeature.createScreen<RosterNavParamsMap, 'myTeam'>( + RosterMiniApp, + { tags: [ScreenTags.MyTeamTab], clockCheckRequired: true, options: { title: 'Roster', headerShown: false, }, - }), - ['myTeam.allTeams']: RosterFeature.createScreen(AllTeamsScreen, { - tags: [ScreenTags.MyTeamTab], - clockCheckRequired: true, - options: { - title: 'All teams', - headerShown: false, - }, - }), + }, +); + +export default RosterFeature.createScreens({ + ['myTeam.roster']: rosterScreens, + // ['myTeam.rosterDetail']: RosterFeature.createScreen(RosterDetailScreen, { + // tags: [ScreenTags.MyTeamTab], + // clockCheckRequired: true, + // options: { + // title: 'Roster', + // headerShown: false, + // }, + // }), + // ['myTeam.allTeams']: RosterFeature.createScreen(AllTeamsScreen, { + // tags: [ScreenTags.MyTeamTab], + // clockCheckRequired: true, + // options: { + // title: 'All teams', + // headerShown: false, + // }, + // }), }); --- src/shared/index.tsx @@ -1,5 +1,5 @@ export {RosterDetailScreen} from '../screens/RosterDetailScreen'; export {AllTeamsScreen} from '../screens/AllTeamsScreen'; export {RosterWidget} from '../components/RosterWidget'; -// export {RosterMiniApp} from '../screens'; +export {RosterMiniApp} from '../screens'; export * from '../navigation'; --- src/utils/allTeams.ts @@ -44,7 +44,7 @@ export const createAllTeamsSections = ( return acc; }, {} as Record<string, Section>); - const unsortedAreas = Object.keys(sections); + const unsortedAreas = Object.keys(sections || {}); const sortedAreas = sortWorkgroupKeysForTeamList( unsortedAreas,
Update navigation changes
Update navigation changes
d653fd02a18a3e8913a3d3548106606b8e6038bd
--- __tests__/__snapshots__/AppTest.tsx.snap --- __tests__/whatsNew/WhatsNewItemTest.tsx @@ -40,7 +40,28 @@ describe('WhatsNewItem', () => { const LinkButton = component.root.findByProps({testID: 'itemLink'}); LinkButton.props.onPress(); - expect(navigation.navigate).toHaveBeenCalledWith(newProps.link.data); + expect(navigation.navigate).toHaveBeenCalledWith( + newProps.link.data.screen, + {}, + ); + }); + + it('handles navigation link without screen', () => { + const newProps = { + ...baseProps, + link: { + title: 'Go Somewhere!', + type: 'NAVIGATE', + data: {}, + }, + }; + + component.update(<WhatsNewItem {...newProps} />); + expect(component.toJSON()).toMatchSnapshot(); + + const LinkButton = component.root.findByProps({testID: 'itemLink'}); + LinkButton.props.onPress(); + expect(navigation.navigate).not.toHaveBeenCalled(); }); it('handles unexpected link type', () => { --- __tests__/whatsNew/__snapshots__/WhatsNewItemTest.tsx.snap @@ -89,6 +89,95 @@ exports[`WhatsNewItem handles navigation link 1`] = ` </View> `; +exports[`WhatsNewItem handles navigation link without screen 1`] = ` +<View + style={ + Object { + "flexDirection": "row", + "paddingBottom": 24, + } + } +> + <Image + source={ + Object { + "testUri": "../../../src/images/assets/ask-sam-illustration.png", + } + } + style={ + Object { + "height": 64, + "marginRight": 25, + "width": 64, + } + } + /> + <View + style={ + Object { + "alignItems": "flex-start", + "flex": 1, + "flexDirection": "column", + } + } + > + <Text + style={ + Object { + "color": "#2e2f32", + "fontFamily": "Bogle-Bold", + "fontSize": 16, + "lineHeight": 24, + } + } + /> + <Text + style={ + Object { + "color": "#2e2f32", + "fontFamily": "Bogle-Regular", + "fontSize": 14, + "lineHeight": 20, + "marginTop": 8, + } + } + > + + <View + accessible={true} + collapsable={false} + focusable={true} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} + style={ + Object { + "opacity": 1, + } + } + testID="itemLink" + > + <Text + style={ + Object { + "color": "#2e2f32", + "fontFamily": "Bogle-Regular", + "fontSize": 14, + "lineHeight": 20, + "textDecorationLine": "underline", + } + } + /> + </View> + </Text> + </View> +</View> +`; + exports[`WhatsNewItem matches snapshot 1`] = ` <View style={ --- src/whatsNew/WhatsNewItem.tsx @@ -9,12 +9,15 @@ import {WhatsNewItemStyles as styles} from './styles'; export const WhatsNewItem = (props: WhatsNewConfig) => { const {title, text, image, link} = props; - const navigation = useNavigation(); + const navigation = useNavigation<any>(); const ImageSource = Images[image] || Images.AskSamIllustration; const onLinkPress = () => { if (link!.type === 'NAVIGATE') { - navigation.navigate(link!.data); + const {screen, ...params} = link!.data; + if (screen) { + navigation.navigate(screen, params); + } } }; --- src/whatsNew/types.ts @@ -10,7 +10,10 @@ export type RecordText = string | TranslationConfig; export type RecordLink = { title: RecordText; type: string; - data: any; + data: { + screen?: string; + [key: string]: any; + }; }; export interface FeatureRestriction {
updating whats new item and snapshots
updating whats new item and snapshots
6f0df609d620b345ba6c60a9be77c524ef447a7c
--- ios/.xcode.env @@ -0,0 +1,3 @@ +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +export NODE_BINARY=$(command -v node) \ No newline at end of file --- ios/.xcode.env.local @@ -1 +0,0 @@ -export NODE_BINARY=$(command -v node) --- ios/.xcode.env @@ -0,0 +1,3 @@ +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +export NODE_BINARY=$(command -v node) \ No newline at end of file --- ios/.xcode.env.local @@ -1 +0,0 @@ -export NODE_BINARY=$(command -v node)
fix: add support for nvm node binary on xcode
fix: add support for nvm node binary on xcode
d43eb6b6ad879c0870afda6c6b3dbb5de922edc4
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -325,18 +325,11 @@ export const MainStackNav = () => { /> {metricsNavigationScreens - .filter((screen) => screen.useInMainStack) - .map((screen, index) => ( - <MainStack.Screen - key={index} - component={screen.component} - name={screen.name} - options={screen.options} - /> - ))} - - {metricsNavigationScreens - .filter((screen) => screen.name === 'metrics.viewAllFreights') + .filter( + (screen) => + screen.useInMainStack || + screen.name === 'metrics.viewAllFreights', + ) .map((screen, index) => ( <MainStack.Screen key={index}
feat: updated mainStackNav metrics nav condt
feat: updated mainStackNav metrics nav condt
51daa95e9d15998ef52ab6dcde0009d0c7669fcc
--- .looper.multibranch.yml @@ -4,7 +4,7 @@ inherit: "job:///metropolis/metroloop/metroloop-parent" ## Whenever you update the nodes, please update it at the two-place, below line & the global variable LOOPER_NODES ## -node: ((osx||stable_osx)&&!!dualcore) +node: ((osx||stable_osx)&&!dualcore) tools: android: @@ -47,7 +47,7 @@ envs: global: variables: CI: true - LOOPER_NODES: "((osx||stable_osx)&&!!dualcore)" + LOOPER_NODES: "((osx||stable_osx)&&!dualcore)" GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}" TMPDIR: /tmp
Looper fix
Looper fix
8ae581ba2ee61e2e441de32cd58d1b65a1298d5b
--- .inisights.yml @@ -1,9 +0,0 @@ -team: - - id: 3799 -product: - - {} -languages: - - JavaScript - - Android - - iOS -ignoreNotify: true
chore: remove misspelled file
chore: remove misspelled file
7cf23a60c9aca66266fcc6b14cd13130ca374044
--- __tests__/__mocks__/@walmart/gtp-shared-components.js @@ -29,10 +29,14 @@ module.exports = { ExternalLinkIcon: 'ExternalLinkIcon', MessageWarning: 'MessageWarning', MessageError: 'MessageError', + Nudge: 'Nudge', ExclamationCircleIcon: 'ExclamationCircleIcon', Spinner: 'Spinner', Dropdown: 'Dropdown', LivingDesignProvider: 'LivingDesignProvider', ThemeProvider: 'ThemeProvider', StoreIcon: 'StoreIcon', + Icons:{ + PhoneIcon: 'PhoneIcon' + } }; --- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap @@ -42,11 +42,22 @@ exports[`ErrorScreen handles render for controllers 1`] = ` > ssoError.errorMsg </Subheader> + <Nudge + leading={ + <PhoneIcon + size={24} + /> + } + title="ssoError.immediateSupport" + > + ssoError.supportDesc + </Nudge> <Subheader2 style={ Object { "fontSize": 16, "lineHeight": 24, + "marginTop": 16, } } > @@ -348,11 +359,22 @@ exports[`ErrorScreen handles save with no detail 1`] = ` > ssoError.errorMsg </Subheader> + <Nudge + leading={ + <PhoneIcon + size={24} + /> + } + title="ssoError.immediateSupport" + > + ssoError.supportDesc + </Nudge> <Subheader2 style={ Object { "fontSize": 16, "lineHeight": 24, + "marginTop": 16, } } > @@ -584,11 +606,22 @@ exports[`ErrorScreen renders default 1`] = ` > ssoError.errorMsg </Subheader> + <Nudge + leading={ + <PhoneIcon + size={24} + /> + } + title="ssoError.immediateSupport" + > + ssoError.supportDesc + </Nudge> <Subheader2 style={ Object { "fontSize": 16, "lineHeight": 24, + "marginTop": 16, } } >
updated tests
updated tests
faa5c963643bdefce7c351c44791ec2a33401e77
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.11", + "version": "1.15.12", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.14", + "@walmart/roster-mini-app": "2.12.15", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -6473,7 +6473,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.14" + "@walmart/roster-mini-app": "npm:2.12.15" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6654,9 +6654,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.14": - version: 2.12.14 - resolution: "@walmart/roster-mini-app@npm:2.12.14" +"@walmart/roster-mini-app@npm:2.12.15": + version: 2.12.15 + resolution: "@walmart/roster-mini-app@npm:2.12.15" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6698,7 +6698,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/994b793474b8ad0331998ed6b3bf1b032ad77ce4b31ad4db6c1f3a06b2e80ae6f4a72864522213895d747f29bb4f1332af530a451fc738321142df881cdb3fa1 + checksum: 10c0/368b26ffe769b5fbfab14fdb07fa951cad56b4decaaa979486421554b1ab284da1be99c0b3e4ad6a408fbe7119afba67baa05babd685d96950dd5f6b47bc4ed0 languageName: node linkType: hard
Update the version for roster
Update the version for roster
c26d8d9642412f8d8b34dd5cbb7b0b196376f425
--- packages/allspark-foundation/__tests__/Translation/TranslationClient.test.ts @@ -217,18 +217,13 @@ describe('TranslationClient', () => { await client.changeLanguage('en-US'); }); - it('should return undefined when config is undefined', () => { - const result = client.select(undefined); - expect(result).toBeUndefined(); - }); - it('should return string when config is a string', () => { const config = 'test string'; const result = client.select(config); expect(result).toBe(config); }); - it('should return value for current language', () => { + it('should return value for current language when using config with default property', () => { const config = { 'en-US': 'English value', 'es-MX': 'Spanish value', @@ -238,7 +233,16 @@ describe('TranslationClient', () => { expect(result).toBe('English value'); }); - it('should fallback to default when current language not found', async () => { + it('should return value for current language when using config with separate default parameter', () => { + const config = { + 'en-US': 'English value', + 'es-MX': 'Spanish value', + }; + const result = client.select(config, 'Default value'); + expect(result).toBe('English value'); + }); + + it('should fallback to default property when current language not found', async () => { await client.changeLanguage('fr-FR'); const config = { 'en-US': 'English value', @@ -248,6 +252,37 @@ describe('TranslationClient', () => { const result = client.select(config); expect(result).toBe('Default value'); }); + + it('should fallback to default parameter when current language not found', async () => { + await client.changeLanguage('fr-FR'); + const config = { + 'en-US': 'English value', + 'es-MX': 'Spanish value', + }; + const result = client.select(config, 'Default value'); + expect(result).toBe('Default value'); + }); + + it('should prefer default parameter over default property', async () => { + await client.changeLanguage('fr-FR'); + const config = { + 'en-US': 'English value', + 'es-MX': 'Spanish value', + 'default': 'Property default', + }; + const result = client.select(config, 'Parameter default'); + expect(result).toBe('Parameter default'); + }); + + it('should return empty string when no default is provided and language not found', async () => { + await client.changeLanguage('fr-FR'); + const config = { + 'en-US': 'English value', + 'es-MX': 'Spanish value', + }; + const result = client.select(config); + expect(result).toBe(''); + }); }); describe('global i18n interaction', () => { --- packages/allspark-foundation/__tests__/Translation/TranslationFeatureClient.test.ts @@ -81,8 +81,8 @@ describe('TranslationFeatureClient', () => { expect(client.select({ en: 'Hello', es: 'Hola', default: 'Hi' })).toBe( 'Hello' ); + expect(client.select({ en: 'Hello', es: 'Hola' }, 'Hi')).toBe('Hello'); expect(client.select('Direct')).toBe('Direct'); - expect(client.select()).toBeUndefined(); }); it('useTranslation returns the translation hook result', () => { --- packages/allspark-foundation/src/Translation/TranslationClient.ts @@ -187,15 +187,37 @@ export class TranslationClient { return []; }; - public select = ( - cfg?: { [key: string]: string; default: string } | string - ): string | undefined => { - if (!cfg || typeof cfg === 'string') { + /** + * Selects a language string from a configuration object or string. + * @param cfg - The configuration object or string to select from. + * @example + * select({ en: 'Hello', es: 'Hola', default: 'Hi' }) // returns 'Hello' if current language is 'en' + * select({ en: 'Hello', es: 'Hola' }, 'Hi') // returns 'Hello' if current language is 'en' + * select('Direct') // returns 'Direct' + * select(stringOrObject, 'Fallback') // works with union types + * @returns The selected language string. + */ + public select(cfg: string): string; + public select(cfg: { [key: string]: string; default: string }): string; + public select( + cfg: { [key: string]: string }, + defaultValue: string + ): string; + public select( + cfg: { [key: string]: string } | string, + defaultValue: string + ): string; + public select( + cfg: { [key: string]: string } | string, + defaultValue?: string + ): string { + if (typeof cfg === 'string') { return cfg; } - return cfg[this.i18n.language] || cfg.default; - }; + const fallback = defaultValue ?? cfg.default ?? ''; + return cfg[this.i18n.language] || fallback; + } } /** --- packages/allspark-foundation/src/Translation/TranslationFeatureClient.ts @@ -74,13 +74,25 @@ export class TranslationFeatureClient implements ITranslationFeatureClient { * or falls back to the default language if not found. * If the configuration is a string, it returns that string. * @param cfg - The configuration object or string to select from. - * @returns The selected language string or undefined if not found. + * @param defaultValue - Optional default value to use when language is not found. + * @returns The selected language string. */ - public select = ( - cfg?: { [key: string]: string; default: string } | string - ): string | undefined => { - return this._client.select(cfg); - }; + public select(cfg: string): string; + public select(cfg: { [key: string]: string; default: string }): string; + public select( + cfg: { [key: string]: string }, + defaultValue: string + ): string; + public select( + cfg: { [key: string]: string } | string, + defaultValue: string + ): string; + public select( + cfg: { [key: string]: string } | string, + defaultValue?: string + ): string { + return this._client.select(cfg as any, defaultValue as any); + } /** * Hook to access the translate function for the scoped feature. --- packages/allspark-foundation/src/Translation/types.ts @@ -60,9 +60,16 @@ export interface ITranslationFeatureClient { /** * Selects a language string from a configuration object or string. * @param cfg - The configuration object or string. - * @returns The selected language string or undefined. + * @param defaultValue - Optional default value when language is not found. + * @returns The selected language string. */ - select(cfg?: { [key: string]: string } | string): string | undefined; + select(cfg: string): string; + select(cfg: { [key: string]: string; default: string }): string; + select(cfg: { [key: string]: string }, defaultValue: string): string; + select( + cfg: { [key: string]: string } | string, + defaultValue: string + ): string; /** * Hook to access the translate function for the scoped feature.
fix(translation): select method did not support all valid use cases
fix(translation): select method did not support all valid use cases
c369b7c6de8a06fa19fee48e36380f66b61dc571
--- __tests__/navigation/AssociateHallwayNav/ComponentsTest.tsx @@ -83,13 +83,13 @@ describe('Banners', () => { }); }); describe('Badge', () => { - mockUseSelector.mockReturnValueOnce(0); + mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); const component = create(<Badge />); it('matches default snapshot', () => { expect(component.toJSON()).toMatchSnapshot(); }); it('matches snapshot when refrigeration alarm is there', () => { - mockUseSelector.mockReturnValueOnce(1); + mockUseSelector.mockReturnValueOnce({highPriorityCount: 1}); component.update(<Badge />); expect(component.toJSON()).toMatchSnapshot(); });
test case update
test case update