commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
2c983b07264079b2d8f058695ce3e646d5d901e9
--- packages/allspark-foundation/src/Core/docs/VersionCompatability.md @@ -21,6 +21,7 @@ ___ | 23 | 6.1.4 | 6.1.4 | 6.1.4 | 6.1.4 | 24 | 6.15.X | 6.24.X | 6.24.X | 6.24.0 | 25 | 6.18.X | 6.25.X | 6.25.X | 6.25.0 +| 26 | 6.20.X | 6.26.X | 6.26.X | 6.26.X ### Me@Walmart (Deprecated) @@ -29,3 +30,4 @@ ___ | 23 | 6.1.4 | 6.1.4 | 24 | 6.24.X | 6.24.X | 25 | 6.25.0 | 6.25.0 +| 26 | 6.26.X | 6.26.X
chore: update version compatability chart
chore: update version compatability chart
ce44376b7a9c42fdc9df10199aa5e2ce41233a21
--- package-lock.json @@ -40,10 +40,10 @@ "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", - "@walmart/attendance-mini-app": "0.190.4", + "@walmart/attendance-mini-app": "0.190.5", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", - "@walmart/copilot-mini-app": "^1.77.9", + "@walmart/copilot-mini-app": "1.77.9", "@walmart/core-services": "~2.1.1", "@walmart/core-services-allspark": "~2.11.1", "@walmart/core-utils": "~2.0.5", @@ -6938,9 +6938,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "0.190.4", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.190.4.tgz", - "integrity": "sha512-vo8Ouc7I0r402BWkfmPtSVz6KpEWjrzUrv0x7WK5yL1bFHu4XhVsidj23od77o1oJNXsbpyS8jOEG8G/z9bWEA==", + "version": "0.190.5", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.190.5.tgz", + "integrity": "sha512-F2B4OavhwScB1VdN82fnj19EchVOprJXZ8rADTTfmwZTmWayylqg6Pk4gZobq40oyZ9rd32m6Bg3NafhsCx09A==", "dependencies": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", @@ -30376,9 +30376,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "0.190.4", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.190.4.tgz", - "integrity": "sha512-vo8Ouc7I0r402BWkfmPtSVz6KpEWjrzUrv0x7WK5yL1bFHu4XhVsidj23od77o1oJNXsbpyS8jOEG8G/z9bWEA==", + "version": "0.190.5", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.190.5.tgz", + "integrity": "sha512-F2B4OavhwScB1VdN82fnj19EchVOprJXZ8rADTTfmwZTmWayylqg6Pk4gZobq40oyZ9rd32m6Bg3NafhsCx09A==", "requires": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", --- package.json @@ -81,7 +81,7 @@ "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", - "@walmart/attendance-mini-app": "0.190.4", + "@walmart/attendance-mini-app": "0.190.5", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9",
ama v0.190.5 patch fix for tor data load issue
ama v0.190.5 patch fix for tor data load issue
5abed6ca05e7221846c1ac97a2d342a922e7845f
--- src/screens/MyWalmartV2/Hoc/AssociateRosterDetailHoc.tsx @@ -4,7 +4,12 @@ import {useNavigation} from '@react-navigation/native'; import {useSelector} from 'react-redux'; import {useUserCanSeeHub} from '@walmart/allspark-foundation-hub'; -import {translationClient, rosterTelemetry, TOTAL_STORE_TEAM_ID_LEGACY, logger} from '../../../common'; +import { + translationClient, + rosterTelemetry, + TOTAL_STORE_TEAM_ID_LEGACY, + logger, +} from '../../../common'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {WorkSelectors} from '@walmart/allspark-foundation/Work'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; @@ -21,7 +26,10 @@ import {handleViewAssociateSchedule} from '../../../utils/rosterDetail'; import {goToWeeklySchedule} from '../../../navigation/utils'; import {associateIsScheduled} from '../../../utils/user'; import {useUserIsInRoster, useIsImpersonatedOnDev} from '../../../hooks/user'; -import {useRbacConfigWithJobCode, useSalariedOrTeamLeadOrHomeOffice} from '../../../hooks'; +import { + useRbacConfigWithJobCode, + useSalariedOrTeamLeadOrHomeOffice, +} from '../../../hooks'; // Extended type for our use case that includes the original FilterValue plus additional values type RosterFilterValue = FilterValue | 'all' | ''; @@ -52,16 +60,14 @@ export const AssociateRosterDetailHoc = () => { const [selectedFilter, setSelectedFilter] = useState<RosterFilterValue>(''); const [isRefreshing, setIsRefreshing] = useState(false); - const siteIsDC = useSelector(SiteSelectors.getWorkingSiteIsDC); - // Get team data from Work Context (updated by Team Switcher) const workContext = useSelector(WorkSelectors.getContext); // Extract team ID from the work context structure const selectedTeamIds = useMemo( - () => workContext?.teamId ? [String(workContext.teamId)] : [], + () => (workContext?.teamId ? [String(workContext.teamId)] : []), [workContext?.teamId] ); const selectedTeamName = workContext?.teamLabel || 'all'; @@ -98,14 +104,16 @@ export const AssociateRosterDetailHoc = () => { return shiftsRaw.map(String); } - const shifts = (workContext as any)?.shifts?.selected || + const shifts = + (workContext as any)?.shifts?.selected || (workContext as any)?.selectedShifts || []; return Array.isArray(shifts) ? shifts.map(String) : []; }, [workContext]); // Determine if we should use team-based or site-wide roster - const useTeamBasedData = selectedTeamIds.length > 0 && + const useTeamBasedData = + selectedTeamIds.length > 0 && !selectedTeamIds.includes(TOTAL_SITE_TEAM_ID) && !selectedTeamIds.includes(TOTAL_STORE_TEAM_ID_LEGACY); @@ -155,7 +163,7 @@ export const AssociateRosterDetailHoc = () => { filterCounts, loading: rosterLoading, error: rosterError, - refetch + refetch, } = useTeamBasedData ? teamRosterData : siteRosterData; // Create onRefresh handler that calls the appropriate refetch function @@ -172,13 +180,14 @@ export const AssociateRosterDetailHoc = () => { const navigation = useNavigation(); const isSalaried = useUserCanSeeHub(); const siteId: string | undefined = useSelector(UserSelectors.getWorkingSite); - const countryCode: string | undefined = useSelector(UserSelectors.getCountryCode); + const countryCode: string | undefined = useSelector( + UserSelectors.getCountryCode + ); const viewerTeamIds: (string | null)[] | undefined = useSelector( UserSelectors.getTeamIds ); const isSalariedOrLead = useSalariedOrTeamLeadOrHomeOffice(); - const showStatusChipAndViewSchedule: boolean | undefined = useRbacConfigWithJobCode(); @@ -186,7 +195,6 @@ export const AssociateRosterDetailHoc = () => { ? isSalariedOrLead : showStatusChipAndViewSchedule; - // User permissions for Group Message Button const userIsInRoster = useUserIsInRoster(); const userIsImpersonatedOnDev = useIsImpersonatedOnDev(); @@ -202,17 +210,13 @@ export const AssociateRosterDetailHoc = () => { .filter((associate) => !!associate.associateId) .map((associate) => associate.associateId), // eslint-disable-next-line react-hooks/exhaustive-deps - [associates.length], + [associates.length] ); const viewWeeklySchedule = useCallback(() => { - goToWeeklySchedule( - associateWINs, - JSON.stringify(selectedTeamName), - ); + goToWeeklySchedule(associateWINs, String(selectedTeamName)); }, [associateWINs, selectedTeamName]); - // Calculate scheduled count (only associates who are actually scheduled for today) const scheduledCount = useMemo(() => { return associates.filter(associateIsScheduled).length; @@ -292,7 +296,9 @@ export const AssociateRosterDetailHoc = () => { isWidget: false as const, headerConfig: { title: !isSalaried ? '' : `Today's roster (${scheduledCount})`, // Show scheduled count, not total associates - ...(isSalaried && isStatusChipVisible && associates.length > 0 && { + ...(isSalaried && + isStatusChipVisible && + associates.length > 0 && { textLink: 'Weekly schedule', onWeeklySchedulePress: () => { viewWeeklySchedule(); @@ -307,7 +313,10 @@ export const AssociateRosterDetailHoc = () => { }, filtersConfig: { filters: rosterFilters, - selectedFilter: (selectedFilter === 'all' || selectedFilter === '') ? '' as FilterValue : selectedFilter as FilterValue, + selectedFilter: + selectedFilter === 'all' || selectedFilter === '' + ? ('' as FilterValue) + : (selectedFilter as FilterValue), onFilterPress: handleFilterPress, }, // Group Message Button props @@ -316,10 +325,30 @@ export const AssociateRosterDetailHoc = () => { userIsImpersonatedOnDev, onRefresh, }), - [siteIsDC, isSalaried, filteredAssociates, rosterLoading, isRefreshing, rosterError, scheduledCount, isStatusChipVisible, associates.length, searchQuery, rosterFilters, selectedFilter, handleFilterPress, selectedTeamIds, userIsInRoster, userIsImpersonatedOnDev, onRefresh, siteId, countryCode, viewWeeklySchedule] + [ + siteIsDC, + isSalaried, + filteredAssociates, + rosterLoading, + isRefreshing, + rosterError, + scheduledCount, + isStatusChipVisible, + associates.length, + searchQuery, + rosterFilters, + selectedFilter, + handleFilterPress, + selectedTeamIds, + userIsInRoster, + userIsImpersonatedOnDev, + onRefresh, + siteId, + countryCode, + viewWeeklySchedule, + ] ); - useEffect(() => { rosterTelemetry.logEvent('associate_roster_filtered', { site_id: String(siteId || ''), @@ -327,7 +356,13 @@ export const AssociateRosterDetailHoc = () => { count: String(filteredAssociates.length ?? 0), filter: String(selectedFilter || 'all'), }); - }, [filteredAssociates.length, selectedFilter, searchQuery, siteId, primaryTeamId]); + }, [ + filteredAssociates.length, + selectedFilter, + searchQuery, + siteId, + primaryTeamId, + ]); // Debug log to check if component is rendering logger.info('Rendering AssociateRosterDetailScreen', {
feat(ui): using String constructer to validate string instead of json stringify
feat(ui): using String constructer to validate string instead of json stringify
c01dd23cb23d17fecdf05d96c9709e2db68fb432
--- src/navigation/AssociateHallwayNav/Tabs/index.tsx @@ -6,7 +6,9 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context'; import {TaskItMiniApp, getTaskTabBarBadge} from '@walmart/taskit-mini-app'; import CopilotMiniApp, {useWorkBadgeCount} from '@walmart/copilot-mini-app'; -import InboxMiniApp, {useBadgeCount} from '@walmart/inbox-mini-app'; +import InboxMiniApp, { + getIsAnyUnreadMessageInInbox, +} from '@walmart/inbox-mini-app'; import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; import {getBottomNavConfigMap} from '../../../navConfig/NavConfigRedux'; @@ -30,7 +32,7 @@ export const MainTabsNav = (_: MainStackScreenProps<'tabs'>) => { const config = useSelector(getBottomNavConfigMap); const {askSam, copilot, home, inbox, me, myTeam, taskit} = config; - const {showBadge} = useBadgeCount(); + const showBadge = useSelector(getIsAnyUnreadMessageInInbox); const taskitBadge = getTaskTabBarBadge(); const copilotBadge = useWorkBadgeCount();
fixed count api multiple calls
fixed count api multiple calls
01cd0408f2ace9aaaf64af69af28b0d07b0c185c
--- .looper-pr.yml @@ -29,4 +29,3 @@ envs: AUTHOR: temp SLACK_CHANNEL: 'smdv-miniapp' - --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.3.0", + "version": "1.4.0", "main": "main.js", "files": [ "dist",
chore(ui): dummy commit
chore(ui): dummy commit
19874295623ed05f654ee7863c544fa7e5f68bd6
--- android/app/build.gradle @@ -142,7 +142,7 @@ android { } defaultConfig { - applicationId "com.walmart.stores.allspark.beta" + applicationId "com.walmart.squiggly" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 875 --- android/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - package="com.walmart.stores.allspark.beta"> + package="com.walmart.squiggly"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.USE_BIOMETRIC" /> --- android/app/src/main/java/com/walmart/stores/allspark/beta/MainApplication.java @@ -12,7 +12,7 @@ import com.facebook.soloader.SoLoader; import java.lang.reflect.InvocationTargetException; import java.util.List; import com.walmart.ssmp.platform.core.PlatformCoreApplication; -import com.walmart.stores.allspark.beta.BuildConfig; +import com.walmart.squiggly.BuildConfig; import dagger.hilt.android.HiltAndroidApp; @HiltAndroidApp --- ios/AllSpark.xcodeproj/project.pbxproj @@ -264,7 +264,7 @@ LastUpgradeCheck = 1130; TargetAttributes = { 13B07F861A680F5B00A75B9A = { - DevelopmentTeam = F7HDEWM8SU; + DevelopmentTeam = 74G6H8XY8B; LastSwiftMigration = 1150; ProvisioningStyle = Manual; }; @@ -510,13 +510,13 @@ isa = XCBuildConfiguration; baseConfigurationReference = 212ACBF9F6EA1B3866D5D388 /* Pods-AllSpark.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Prod"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 71; - DEVELOPMENT_TEAM = F7HDEWM8SU; + DEVELOPMENT_TEAM = 74G6H8XY8B; ENABLE_BITCODE = NO; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; INFOPLIST_FILE = AllSpark/Info.plist; @@ -535,7 +535,7 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = com.walmart.stores.allspark.beta; + PRODUCT_BUNDLE_IDENTIFIER = com.walmart.squiggly; PRODUCT_NAME = "Me@Walmart"; PROVISIONING_PROFILE_SPECIFIER = "Allspark (MeAtWM Beta) Dev"; SWIFT_OBJC_BRIDGING_HEADER = "AllSpark-Bridging-Header.h"; @@ -550,13 +550,13 @@ isa = XCBuildConfiguration; baseConfigurationReference = 18C7AF990A657BA8B527E5F6 /* Pods-AllSpark.release.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Prod"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 71; - DEVELOPMENT_TEAM = F7HDEWM8SU; + DEVELOPMENT_TEAM = 74G6H8XY8B; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; INFOPLIST_FILE = AllSpark/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 12.0; @@ -574,9 +574,9 @@ "-ObjC", "-lc++", ); - PRODUCT_BUNDLE_IDENTIFIER = com.walmart.stores.allspark.beta; + PRODUCT_BUNDLE_IDENTIFIER = com.walmart.squiggly; PRODUCT_NAME = "Me@Walmart"; - PROVISIONING_PROFILE_SPECIFIER = MeAtWMBeta_InHouse_Provision; + PROVISIONING_PROFILE_SPECIFIER = Squiggly_AppStore_Provision; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; --- ios/AllSpark/AllSpark.entitlements @@ -6,7 +6,7 @@ <string>development</string> <key>com.apple.security.application-groups</key> <array> - <string>group.com.walmart</string> + <string>group.com.walmart.sumo.appstore</string> </array> <key>keychain-access-groups</key> <array> --- ios/AllSpark/Info.plist @@ -9,9 +9,9 @@ <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> - <string>com.walmart.stores.allspark.beta</string> + <string>com.walmart.squiggly</string> <key>SumoAppGroupId</key> - <string>group.com.walmart</string> + <string>group.com.walmart.sumo.appstore</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> @@ -31,7 +31,7 @@ <string>SSOLogin</string> <key>CFBundleURLSchemes</key> <array> - <string>com.walmart.stores.allspark.beta</string> + <string>com.walmart.squiggly</string> </array> </dict> </array> @@ -108,7 +108,7 @@ <string>remote-notification</string> </array> <key>UILaunchStoryboardName</key> - <string>LaunchScreen-Dev</string> + <string>LaunchScreen-Prod</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> @@ -126,7 +126,7 @@ <key>WMKits</key> <dict> <key>team-id</key> - <string>F7HDEWM8SU</string> + <string>74G6H8XY8B</string> </dict> </dict> </plist>
saving changes to run the app
saving changes to run the app
94537bf22e8a6bad42bafa5138dd5e04561d632e
--- package-lock.json @@ -84,7 +84,7 @@ "@walmart/schedule-mini-app": "0.55.0", "@walmart/shelfavailability-mini-app": "1.5.17", "@walmart/taskit-mini-app": "2.47.9", - "@walmart/texting-mini-app": "2.0.39", + "@walmart/texting-mini-app": "2.0.40", "@walmart/time-clock-mini-app": "2.175.2", "@walmart/topstock-mini-app": "1.3.1", "@walmart/ui-components": "1.15.1", @@ -9233,9 +9233,9 @@ } }, "node_modules/@walmart/texting-mini-app": { - "version": "2.0.39", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.39.tgz", - "integrity": "sha512-2QqWtVK7WNpSK2fLVBIulCvvo1w4zHgLmPdv7FKZhxt/Z1ifKb63bMpQZ3jEPxUjJSHWkDtNdQsvBmDIgaFjqg==", + "version": "2.0.40", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.40.tgz", + "integrity": "sha512-iBAIPNGJnGOWLONmsI7Az7x8RwnE7Mo8lbCAGwAyNUZba5WBIh0l7pELcl+Ruoxw7hxmr4fwdSVSSV7V0Y4j1w==", "hasInstallScript": true }, "node_modules/@walmart/time-clock-mini-app": { @@ -34566,9 +34566,9 @@ } }, "@walmart/texting-mini-app": { - "version": "2.0.39", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.39.tgz", - "integrity": "sha512-2QqWtVK7WNpSK2fLVBIulCvvo1w4zHgLmPdv7FKZhxt/Z1ifKb63bMpQZ3jEPxUjJSHWkDtNdQsvBmDIgaFjqg==" + "version": "2.0.40", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.40.tgz", + "integrity": "sha512-iBAIPNGJnGOWLONmsI7Az7x8RwnE7Mo8lbCAGwAyNUZba5WBIh0l7pELcl+Ruoxw7hxmr4fwdSVSSV7V0Y4j1w==" }, "@walmart/time-clock-mini-app": { "version": "2.175.2", --- package.json @@ -125,7 +125,7 @@ "@walmart/schedule-mini-app": "0.55.0", "@walmart/shelfavailability-mini-app": "1.5.17", "@walmart/taskit-mini-app": "2.47.9", - "@walmart/texting-mini-app": "2.0.39", + "@walmart/texting-mini-app": "2.0.40", "@walmart/time-clock-mini-app": "2.175.2", "@walmart/topstock-mini-app": "1.3.1", "@walmart/ui-components": "1.15.1",
texting app version change for Drop 16
texting app version change for Drop 16
1c41b29e67b85125bb7aa37b8c98d1c627e6372f
--- src/redux/selectors.ts @@ -75,9 +75,9 @@ export const getRbacState = createSelector([getGlobalState], (state) => { } }); -export const getTextingAppConfigData = (state: GlobalState) => { +export const getRosterConfigData = (state: GlobalState) => { try { - return state.appConfig.data?.texting || {}; + return state.appConfig.data?.roster || {}; } catch (error) { logger.error('getTextingAppConfigData error', { message: `error in fetching texting app config data: ${error}`, @@ -87,57 +87,57 @@ export const getTextingAppConfigData = (state: GlobalState) => { //TODO: Fix typing, make more specific export const getRmaAppId = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state: any) => (state?.rmaAppId as string) || '', ); export const getRmaPath = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state: any) => state?.rmaPath?.toString() ?? CCMFallbacks.rmaPath, ); export const getRmaTotalStorePermissionsPath = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state: any) => state?.rmaTotalStorePermissionsPath?.toString() ?? CCMFallbacks.rmaTotalStorePermissionsPath, ); export const getRmaTeamPermissionsPath = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state: any) => state?.rmaTeamPermissionsPath?.toString() ?? CCMFallbacks.rmaTeamPermissionsPath, ); export const codeOfConductLink = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.codeOfConductLink ?? CCMFallbacks.codeOfConductLink, ); export const pushToTalkEnabled = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.pushToTalkEnabled?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.pushToTalkEnabled, ); export const messageButtonEnabled = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.enableMessageButton?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.enableMessageButton, ); export const deleteMessageEnabled = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.enableDeleteMessage?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.enableDeleteMessage, ); export const teamLeadJobDescriptions = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => { const jobDescriptions = state?.teamLeadJobDescriptions; if (CCMFallbacks.teamLeadJobDescriptions) { @@ -154,34 +154,34 @@ export const teamLeadJobDescriptions = createSelector( ); export const DNDOfflineTimeLimit = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => (state?.DNDOfflineTimeLimit as number) ?? CCMFallbacks.DNDOfflineTimeLimit, ); export const DNDAutoSwitchThreshold = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => (state?.DNDAutoSwitchThreshold as number) ?? CCMFallbacks.DNDAutoSwitchThreshold, ); export const DNDAutoSwitchFeatureFlag = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.DNDAutoSwitchFeatureFlag?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.DNDAutoSwitchFeatureFlag, ); export const setFirestorePersistenceEnabled = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.setFirestorePersistenceEnabled?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.setFirestorePersistenceEnabled, ); export const showViewTimeClock = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showViewTimeClock?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showViewTimeClock, @@ -189,7 +189,7 @@ export const showViewTimeClock = createSelector( /**New fields added */ export const displayJobDescription = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showJobDescription?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showJobDescription, @@ -206,70 +206,70 @@ export const getSearchText = createSelector([getRosterState], (state) => { }); export const displayManagerSchedule = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showManagerSchedule?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showManagerSchedule, ); export const displayHourlySchedule = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showHourlySchedule?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showHourlySchedule, ); export const displayClockIndicator = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showClockIndicator?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showClockIndicator, ); export const displayRoster = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showRoster?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showRoster, ); export const displayTeamList = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showTeamsList?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showTeamsList, ); export const displayRecentSearchHistory = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showRecentSearchHistory?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showRecentSearchHistory, ); export const displayPrimaryTeam = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showPrimaryTeam?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showPrimaryTeam, ); export const displayTotalStore = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showTotalStore?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showTotalStore, ); export const displayViewTeam = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showViewTeam?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showViewTeam, ); export const displayClockInCount = createSelector( - [getTextingAppConfigData], + [getRosterConfigData], (state) => state?.showClockInCount?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showClockInCount,
Update version
Update version
d8d50a39f9c522e81eaa064a5ae3dae02a38a668
--- android/app/build.gradle @@ -158,8 +158,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 911 - versionName "1.13.1" + versionCode 913 + versionName "1.15.0" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.13.1</string> + <string>1.15.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -42,7 +42,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>911</string> + <string>913</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.13.1", + "version": "1.15.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.13.1", + "version": "1.15.0", "hasInstallScript": true, "dependencies": { "@firebase/firestore-types": "^2.5.1", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.13.1", + "version": "1.15.0", "private": true, "scripts": { "android": "react-native run-android",
version bump to 1.15.0
version bump to 1.15.0
29a407b2812c185257ed959d1544058d29bb1098
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/inbox-mini-app": "0.83.3", "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", - "@walmart/me-field-mini-app": "12.0.18", + "@walmart/me-field-mini-app": "12.0.19", "@walmart/metrics-mini-app": "0.11.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", @@ -5453,9 +5453,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "12.0.18", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.18.tgz", - "integrity": "sha512-EgZjkqUo58LBeMd8dT7lSseN00pNIAo4y8/MrC+mfHn3Dxl707FEIsRLVfdko/se2BMRziu3ye14k8QAdk9H3w==", + "version": "12.0.19", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.19.tgz", + "integrity": "sha512-0M27Y/VR3Uroh/wH1i6VwKoMpZR3xPzpWA7d1AouG9l3ShX38UgdkbXOovDfQM6MzNac4zLlyE7gru32ikCoCg==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -25346,9 +25346,9 @@ } }, "@walmart/me-field-mini-app": { - "version": "12.0.18", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.18.tgz", - "integrity": "sha512-EgZjkqUo58LBeMd8dT7lSseN00pNIAo4y8/MrC+mfHn3Dxl707FEIsRLVfdko/se2BMRziu3ye14k8QAdk9H3w==" + "version": "12.0.19", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.19.tgz", + "integrity": "sha512-0M27Y/VR3Uroh/wH1i6VwKoMpZR3xPzpWA7d1AouG9l3ShX38UgdkbXOovDfQM6MzNac4zLlyE7gru32ikCoCg==" }, "@walmart/metrics-mini-app": { "version": "0.11.5", --- package.json @@ -99,7 +99,7 @@ "@walmart/inbox-mini-app": "0.83.3", "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", - "@walmart/me-field-mini-app": "12.0.18", + "@walmart/me-field-mini-app": "12.0.19", "@walmart/metrics-mini-app": "0.11.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", --- patches/@apollo+client+3.7.9.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@apollo/client/react/types/types.d.ts b/node_modules/@apollo/client/react/types/types.d.ts +index f7f8a02..06c8fc4 100644 +--- a/node_modules/@apollo/client/react/types/types.d.ts ++++ b/node_modules/@apollo/client/react/types/types.d.ts +@@ -38,7 +38,7 @@ export interface QueryDataOptions<TData = any, TVariables extends OperationVaria + export interface QueryHookOptions<TData = any, TVariables extends OperationVariables = OperationVariables> extends QueryFunctionOptions<TData, TVariables> { + query?: DocumentNode | TypedDocumentNode<TData, TVariables>; + } +-export interface LazyQueryHookOptions<TData = any, TVariables extends OperationVariables = OperationVariables> extends Omit<QueryHookOptions<TData, TVariables>, 'skip'> { ++export interface LazyQueryHookOptions<TData = any, TVariables extends OperationVariables = OperationVariables> extends QueryHookOptions<TData, TVariables> { + } + export interface QueryLazyOptions<TVariables> { + variables?: TVariables;
feat: 📦 Bump learning mini app
feat: 📦 Bump learning mini app
8b45a0e89122a8041732870b493b6de4cc2fed3c
--- .looper-pr.yml @@ -31,4 +31,3 @@ envs: AUTHOR: temp SLACK_CHANNEL: "smdv-miniapp" -
feat(ui): removing extra space
feat(ui): removing extra space
226d0636d63fa88e1312c1dab48322eecc94401f
--- __tests__/rbacConfig/utility/updateMeganavDataTest.tsx @@ -141,6 +141,11 @@ const rbacData = { data: { '01d285d7-6ec4-45e1-96a5-74365d3b8a6d': { permissions: [ + { + rn: '', + a: '', + cnds: [], + }, { rn: 'QUICKACTION/scanitem', a: 'DENY', @@ -180,7 +185,7 @@ const rbacData = { rn: 'SIDENAV/setting-me/home', a: 'DENY', cnds: [], - }, + } ], groups: { Local: ['Language Group'], --- src/rbacConfig/utility/updateMeganavData.tsx @@ -55,7 +55,7 @@ export const compareData = ( if (level === 1 && menus[i].enabled === true) { /*-----------Only in the case of Sidenav in which mainMenu is enabled----------------*/ level++; - menus = meganavClonedData.data.data[navIndex].navs[i].subMenus; + menus = meganavClonedData?.data?.data[navIndex]?.navs[i]?.subMenus; compareData( splitRbacPolicy, meganavClonedData, @@ -103,7 +103,7 @@ const updateMeganavData = (rbacData: RbacConfigState, meganavData: any) => { rbacPermissions.forEach((policy) => { const action = policy.a; const RbacPolicy = policy.rn; - const splitRbacPolicy = sanitize(RbacPolicy)?.split('/') || []; + const splitRbacPolicy = sanitize(RbacPolicy)?.split('/'); const [navType] = splitRbacPolicy; /* Now we will iterate over the meganavData depending on wheather we @@ -113,7 +113,7 @@ const updateMeganavData = (rbacData: RbacConfigState, meganavData: any) => { if (action === 'DENY') { const navIndex = navTypeToIndex[navType]; if (navIndex) { - let menus = meganavClonedData.data.data[navIndex].navs; + let menus = meganavClonedData?.data?.data[navIndex]?.navs; meganavClonedData = compareData( splitRbacPolicy, meganavClonedData,
Changes done which were suggested
Changes done which were suggested
7807cf96b1998f9484244dfd3ac7f50784a2e33f
--- .looper.multibranch.yml @@ -147,10 +147,10 @@ envs: teamsWebhookUrl: "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/099adfcabf59455d8834fe92fe9c5f32/f02e8323-deff-42c4-85df-613f84ca35ff" - main: + master: variables: - releaseType: "main" - releaseTypeDesc: "build from main branch; will be deployed to production" + releaseType: "master" + releaseTypeDesc: "build from master branch; will be deployed to production" slackIcon: ":cool-doge:" slackChannel: "allspark-builds-prod" buildType: "RELEASE" @@ -203,8 +203,8 @@ triggers: scheduling: concurrent branches: - - spec: main - call: build(main) + - spec: master + call: build(master) triggers: - push: skipAuthor: jenkinspan @@ -398,7 +398,7 @@ flows: - call: msteams-failure(version = ${version}, flowErrorMessage = ${flowErrorMessage}) - fail('Failed to generate build with flowErrorMessage - $flowErrorMessage') - # this is for main branch + # this is for master branch # Checks if the build artifact is already published in the expected place. # if it is not, build it and publish it build-release:
update master to main
update master to main
98f117cafe01cc5e5a4156394bdc0dd4dddcef50
--- package.json @@ -84,7 +84,7 @@ "@walmart/expo-config-plugins": "0.1.4", "@walmart/gtp-shared-components": "2.2.4", "@walmart/me-at-walmart-athena-queries": "6.26.1", - "@walmart/me-at-walmart-common": "6.29.0-alpha.0", + "@walmart/me-at-walmart-common": "6.35.1-alpha.3", "@walmart/me-at-walmart-container": "6.29.0-alpha.0", "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-logger": "1.35.0", --- src/screens/MyWalmartV2/AssociateRosterDetailScreen/AssociateRosterDetailScreen.tsx @@ -1,6 +1,6 @@ /* eslint-disable object-curly-spacing */ /* eslint-disable quotes */ -import React, { memo, useCallback } from "react"; +import React, { memo, useCallback, useEffect } from "react"; import { View, Text, TouchableOpacity } from "react-native"; import { useTranslation } from "react-i18next"; import { RosterList } from "../../../components/MyWalmartv2/Common/RosterList/RosterList"; @@ -17,6 +17,8 @@ import { } from "./types"; import { styles } from "./style"; import { AllsparkSharedComponents } from "@walmart/allspark-foundation"; +import { Divider } from "@walmart/gtp-shared-components/dist"; +import { useSidekickAssistantFAB } from "@walmart/me-at-walmart-common"; export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( ({ config }) => { @@ -32,7 +34,7 @@ export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( } = config; const { t } = useTranslation(); - + const {update} = useSidekickAssistantFAB(); const handleSearchChange = useCallback( (text: string) => { searchConfig?.onSearchChange(text); @@ -40,6 +42,12 @@ export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( [searchConfig] ); + useEffect(() => { + update({ + insets: {bottom: 80}, + }) + }, []); + const handleFilterPress = useCallback( (filterId: RosterFilterValue) => { filtersConfig?.onFilterPress(filterId); @@ -163,6 +171,21 @@ export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( associatesConfig?.listStyle, ]} /> + <View> + <Divider /> + <View id="group-message-button" style={styles.buttonContainer}> + <AllsparkSharedComponents.Component + id="wmConnect.GroupMessageButton" + props={{ + teamIds: config.teamIds || [], + disabled: + !config.userIsInRoster || + !config.userIsImpersonatedOnDev, + }} + /> + </View> + </View> + </View> </> )} --- src/screens/MyWalmartV2/AssociateRosterDetailScreen/style.ts @@ -34,4 +34,11 @@ export const styles = StyleSheet.create({ color: colors.white, textAlign: 'center', }, + buttonContainer: { + width: '100%', + padding: 20, + color: colors.white, + elevation: 10, + backgroundColor: colors.white, + }, }); --- src/screens/MyWalmartV2/AssociateRosterDetailScreen/types.ts @@ -60,6 +60,11 @@ export interface RosterDetailConfig { filtersConfig?: FiltersConfig; onRefresh: () => void; containerStyle?: StyleProp<ViewStyle>; + + // Group Message Button + userIsInRoster?: boolean; + userIsImpersonatedOnDev?: boolean; + teamIds?: string[]; } export interface RosterDetailScreenProps { --- src/screens/MyWalmartV2/Hoc/AssociateRosterDetailHoc.tsx @@ -172,6 +172,10 @@ export const AssociateRosterDetailHoc = () => { onRefresh: () => { console.log("Refreshing..."); }, + // Group Message Button props + userIsInRoster: true, + userIsImpersonatedOnDev: true, + teamIds: [], }), [ handleFilterPress, --- yarn.lock @@ -7736,16 +7736,16 @@ __metadata: languageName: node linkType: hard -"@walmart/me-at-walmart-common@npm:6.29.0-alpha.0": - version: 6.29.0-alpha.0 - resolution: "@walmart/me-at-walmart-common@npm:6.29.0-alpha.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fme-at-walmart-common%2F-%2Fme-at-walmart-common-6.29.0-alpha.0.tgz" +"@walmart/me-at-walmart-common@npm:6.35.1-alpha.3": + version: 6.35.1-alpha.3 + resolution: "@walmart/me-at-walmart-common@npm:6.35.1-alpha.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fme-at-walmart-common%2F-%2F%40walmart%2Fme-at-walmart-common-6.35.1-alpha.3.tgz" peerDependencies: "@reduxjs/toolkit": "*" "@walmart/allspark-foundation": ">=6.26.0" react: "*" react-native: "*" redux-saga: "*" - checksum: 10c0/4403de38d803f01bbcfa2fbd55a4864932e5b74df5c7860d90a6c5db5b1536f96ed2a9b98bbccc47334c19dbbf5f7f699e8b8cafb35593798aa8ce1ea5a36041 + checksum: 10c0/8e2be49957e024e7c34cac04d57a9016c024bb9be340abe967ae80a83f0e5bf573e0328e706718b10ca25b182decacb48b7994f2c03bd0844a7012a7a6e00ea4 languageName: node linkType: hard @@ -7880,7 +7880,7 @@ __metadata: "@walmart/expo-config-plugins": "npm:0.1.4" "@walmart/gtp-shared-components": "npm:2.2.4" "@walmart/me-at-walmart-athena-queries": "npm:6.26.1" - "@walmart/me-at-walmart-common": "npm:6.29.0-alpha.0" + "@walmart/me-at-walmart-common": "npm:6.35.1-alpha.3" "@walmart/me-at-walmart-container": "npm:6.29.0-alpha.0" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-logger": "npm:1.35.0"
feat: SMDV-8700 Integrate FAB with Roster Screen
feat: SMDV-8700 Integrate FAB with Roster Screen
fc5cadb198e33fafd1b65bff5f4fadb126ae73f8
--- ios/Podfile.lock @@ -1096,7 +1096,7 @@ SPEC CHECKSUMS: boost: a7c83b31436843459a1961bfd74b96033dc77234 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 - DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 + DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 FBLazyVector: 8a28262f61fbe40c04ce8677b8d835d97c18f1b3 FBReactNativeSpec: b475991eb2d8da6a4ec32d09a8df31b0247fa87d Firebase: 4ba896cb8e5105d4b9e247e1c1b6222b548df55a @@ -1122,7 +1122,7 @@ SPEC CHECKSUMS: Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541 FlipperKit: 02fd59af13a1465d04268cbffe3f93505f0a1dc2 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 - glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85 + glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b GoogleAppMeasurement: 7a33224321f975d58c166657260526775d9c6b1a GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f GoogleUtilities: 1d20a6ad97ef46f67bbdec158ce00563a671ebb7 --- package-lock.json @@ -3570,9 +3570,9 @@ } }, "@walmart/core-services": { - "version": "1.3.5", - "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.3.5.tgz", - "integrity": "sha512-l5zVgB3jnzyJZdRaAhwrbBlswuOc+YFX+2YKpgZ3Xipbqd3ypYaM5k/ZTRhUA1PvzXwQFgH8O67gMG4cMGyOPw==", + "version": "1.3.6", + "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.3.6.tgz", + "integrity": "sha512-pmCKTj4z1EUDPfGCCFPT+nrOJxZcDDj7UkFj5h1kLVdBye3RP0DNvIR+iHurIob4ursA63sFPeDF5ri7gwTFgg==", "requires": { "@walmart/core-utils": "^1.1.2", "axios": "^0.26.0", @@ -3601,9 +3601,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.7.36", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.7.36.tgz", - "integrity": "sha512-WwUn846Rqrkht1WFLiFqNOYwbRl69pS1Hnnoabe3BpSQcH8cu6Exn+L2G/xqiDojeFDIikHe7saZAYty12ixqw==", + "version": "1.9.1", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.9.1.tgz", + "integrity": "sha512-tXdkw7jdU5rBRcUEdMMudROEGWGCqt53KuuFCO2bUSyqzmUutlLkf6f02XmTp4ymqMcuLG/Rqjg2rXsRof7cYA==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", @@ -3641,9 +3641,9 @@ } }, "@walmart/core-widget-registry": { - "version": "0.5.7", - "resolved": "https://npme.walmart.com/@walmart/core-widget-registry/-/core-widget-registry-0.5.7.tgz", - "integrity": "sha512-ORsYFoHXzn68IofzdP1SnHsbj2DfjoEB0rGKHdGLYMaDsLk3Pn/HQj9/cWBgMJ/wkaJUmmld0o50vSOaemo+KQ==" + "version": "0.6.0", + "resolved": "https://npme.walmart.com/@walmart/core-widget-registry/-/core-widget-registry-0.6.0.tgz", + "integrity": "sha512-JOl3NGKTq8WEeX++Z+772XEvoKSNVabtKNSZnZW+PEAwNCUuAnHMc8uc7DF/TYz/vr2nGtbZhCdKI9AQdwy20A==" }, "@walmart/counts-component-miniapp": { "version": "0.0.39", --- package.json @@ -78,10 +78,10 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "^1.2.93", "@walmart/config-components": "3.0.3", - "@walmart/core-services": "~1.3.5", - "@walmart/core-services-allspark": "~1.7.36", + "@walmart/core-services": "~1.3.6", + "@walmart/core-services-allspark": "~1.9.1", "@walmart/core-utils": "~1.0.10", - "@walmart/core-widget-registry": "0.5.7", + "@walmart/core-widget-registry": "0.6.0", "@walmart/counts-component-miniapp": "0.0.39", "@walmart/exception-mini-app": "0.43.1", "@walmart/facilities-management-miniapp": "0.3.26", --- src/auth/CustomErrorScreenCard.tsx @@ -14,7 +14,7 @@ import {SSO_APP} from '../types/telemetryConstants'; import {useLogger} from '@walmart/core-services/Logger'; import {IAllsparkLogger} from '@walmart/core-services-allspark'; import {CustomErrorScreenProps} from './ErrorScreenTypes'; -import {useTranslation} from '@walmart/core-services/Translations/index'; +import {useTranslation} from '@walmart/core-services/Translations'; export const TitleSection = (props: {cardTitle: string}) => { const {cardTitle} = props;
chore: increment core service versions
chore: increment core service versions
a4e54bf142cee94201d15b6862b67e70572c8248
--- 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.19.13](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.12...@walmart/allspark-foundation-hub@1.19.13) (2025-10-28) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.19.12](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.11...@walmart/allspark-foundation-hub@1.19.12) (2025-10-28) **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.19.12", + "version": "1.19.13", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.6.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.6.0...@walmart/allspark-foundation@7.6.1) (2025-10-28) + +### Bug Fixes + +- **ctn:** fix library in container ([e21a63c](https://gecgithub01.walmart.com/allspark/allspark/commit/e21a63c07b536f778c650b39663166b94cf8d655)) + # [7.6.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.5.2...@walmart/allspark-foundation@7.6.0) (2025-10-28) ### Features --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.6.0", + "version": "7.6.1", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- 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.3.12](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.11...@walmart/me-at-walmart-geolocation@1.3.12) (2025-10-28) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.3.11](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.10...@walmart/me-at-walmart-geolocation@1.3.11) (2025-10-28) **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.3.11", + "version": "1.3.12", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.6.1 - @walmart/allspark-foundation-hub@1.19.13 - @walmart/me-at-walmart-geolocation@1.3.12
efffc1900029d0f724c359d701ca582b3703539a
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.2.0", + "version": "1.2.1", "main": "dist/index.js", "files": [ "dist"
Update mini app versions
Update mini app versions
f7c8ad0e7fcba7b7336d1f6e49f675e51c3783d1
--- __tests__/redux/UserSelectorTest.ts @@ -375,7 +375,7 @@ describe('getUserEmailIdPresent', () => { describe('getIsWorkingSiteDomain', () => { it('handles working site domain', () => { - const data = {userId: 'swalton3', domain: 'DC'}; + const data = {userId: 'swalton3', domain: 'Distribution Center'}; const isWorkingSite = getIsWorkingSiteDomain({ user: {data}, } as State); @@ -463,7 +463,11 @@ describe('getUserSite', () => { }); it('handles dc domain', () => { - const data = {userId: 'swalton3', workingSite: '9050', domain: 'DC'}; + const data = { + userId: 'swalton3', + workingSite: '9050', + domain: 'Distribution Center', + }; const site = getUserSite({ user: {data}, } as State); @@ -533,7 +537,7 @@ describe('getUserWorkingSiteMissing', () => { const data = { userId: 'swalton3', siteId: '100', - domain: 'DC', + domain: 'Distribution Center', workingSite: 'NOT_FOUND', }; const workingSiteMissing = getUserWorkingSiteMissing({ @@ -594,7 +598,7 @@ describe('getShouldPromptForSite', () => { siteId: '100', workingSite: undefined, userType: 'ASSOCIATE', - domain: 'DC', + domain: 'Distribution Center', }; const shouldPrompt = getShouldPromptForSite(({ user: {data}, @@ -668,7 +672,7 @@ describe('getOriginalSite', () => { userId: 'swalton3', siteId: '100', workingSite: '9050', - domain: 'DC', + domain: 'Distribution Center', }; const siteId = getOriginalSite({ user: {data}, --- src/redux/UserSelector.ts @@ -6,7 +6,7 @@ export interface State extends GlobalState, ImpersonationState {} const HO_DOMAIN = 'homeoffice'; const NOT_FOUND = 'NOT_FOUND'; -export const DC_DOMAIN = 'dc'; +export const DC_DOMAIN = 'distribution center'; export const WORKING_SITE_DOMAINS = [DC_DOMAIN]; // Impersonation State Selectors
Update the domain to distribution center
Update the domain to distribution center
316b9d216f9c975a336377d15e209c9b1d0fdfc0
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.0-alpha.1", + "version": "2.12.0-alpha.2", "main": "dist/index.js", "files": [ "dist" --- src/shared/index.tsx @@ -3,3 +3,5 @@ export {SearchHeader} from '../components/SearchHeader'; export {ViewTeamScreen} from '../screens/ViewTeamScreen'; export {SearchHeaderRight} from '../components/SearchHeader'; export {SearchScreen} from '../screens/SearchScreen'; +export {RosterDetailScreen} from '../managerExperience/screens/RosterDetailScreen'; +export {AllTeamsScreen} from '../managerExperience/screens//AllTeamsScreen';
Update roster mini app
Update roster mini app
b7a50c1431d188f0c3b1f263cb726dcaf329a5e9
--- packages/me-at-walmart-common/src/queries/getDailyRosterHome.graphql @@ -1,8 +1,4 @@ -query getDailyRosterHome( - $countryCode: String! - $date: Date! - $storeId: String! -) { +query getDailyRosterHome($countryCode: String!, $date: Date!, $storeId: String!) { getDailyRoster( countryCode: $countryCode employmentStatus: "A" @@ -16,4 +12,4 @@ query getDailyRosterHome( clockStatus } } -} +} \ No newline at end of file --- packages/me-at-walmart-common/src/queries/getLoggedInUser.graphql @@ -71,4 +71,4 @@ query getLoggedInUser { wmRegionNumber wmSystemJobCodes } -} +} \ No newline at end of file --- packages/me-at-walmart-common/src/queries/getTeamByIdHome.graphql @@ -1,9 +1,4 @@ -query getTeamByIdHome( - $countryCode: String! - $date: Date! - $storeNbr: String! - $teamId: String! -) { +query getTeamByIdHome($countryCode: String!, $date: Date!, $storeNbr: String!, $teamId: String!) { getTeamById(countryCode: $countryCode, storeNbr: $storeNbr, teamId: $teamId) { __typename mewAbsentCount(date: $date) @@ -13,4 +8,4 @@ query getTeamByIdHome( teamId teamName } -} +} \ No newline at end of file --- packages/me-at-walmart-common/src/queries/updateAssociatePrivacyPreference.graphql @@ -1,9 +1,5 @@ -mutation upsertAssociatePreference( - $associatePreferencesInput: AssociatePreferencesInput! -) { - upsertAssociatePreference( - associatePreferencesInput: $associatePreferencesInput - ) { +mutation upsertAssociatePreference($associatePreferencesInput: AssociatePreferencesInput!) { + upsertAssociatePreference(associatePreferencesInput: $associatePreferencesInput) { __typename meAtWalmartPreferences { __typename @@ -15,4 +11,4 @@ mutation upsertAssociatePreference( } walmartIdentificationNumber } -} +} \ No newline at end of file
fix: queries did not match hash value
fix: queries did not match hash value
8124f79d8b8f39cbf5dfb7cf1102c567fc56052a
--- package-lock.json @@ -3328,9 +3328,9 @@ "integrity": "sha512-5cla0k4tS7an8zHF5Fn8udmss3AsWs1UXPV/QwC0W49L/BD6SK+I6TcuPnEnGugOS718JTgMSG32iPED/yOSIA==" }, "@walmart/exception-mini-app": { - "version": "0.31.0", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.31.0.tgz", - "integrity": "sha512-yUnQ6yg1MIrxsiSO/l42A91UvIIfR8MR01gsNkyUf5Fx0UTtzyeo51Wq2wMYas9RKPwI63p9ZOrxzustiG+wzw==" + "version": "0.32.0", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.32.0.tgz", + "integrity": "sha512-lzkbSrug1ZoL9NlsAZUaQxcJ5tLEV2ui/VScq4eGhYJYHATEKAJaLZaUS6kKwBdWQWcOK/F9YWiI5Q/E3TzWhw==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.0.58", @@ -3606,7 +3606,7 @@ "wfm-allspark-data-library": { "version": "0.0.19", "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.19.tgz", - "integrity": "sha1-m7vgBO4/FPNOk2I/by5gR9NGNd0=", + "integrity": "sha512-oSOCmyqrck/dJBNhry3TvzVgjBOhFTvW/hr46SGL5dV6EPSdlDPoAvMPfn2sk1bYGNC3T8KR/NQLS7vy1wh37w==", "requires": { "azure-storage": "2.10.3", "crypto-js": "^3.3.0", --- package.json @@ -69,7 +69,7 @@ "@walmart/ask-sam-mini-app": "0.30.12", "@walmart/config-components": "^1.0.28", "@walmart/counts-component-miniapp": "0.0.17", - "@walmart/exception-mini-app": "0.31.0", + "@walmart/exception-mini-app": "0.32.0", "@walmart/feedback-all-spark-miniapp": "0.0.58", "@walmart/functional-components": "1.0.31", "@walmart/gtp-shared-components": "^1.2.0",
pinpoint training video fix
pinpoint training video fix
2f62c3b9d04bb3727fce0b5c8b50dbab9b5564b4
--- package.json @@ -73,8 +73,7 @@ "@react-navigation/stack": "^6.1.0", "@sharcoux/slider": "^6.1.1", "@terrylinla/react-native-sketch-canvas": "0.8.0", - "@walmart/allspark-health-survey-mini-app": "0.0.44", - "@walmart/allspark-home-mini-app": "0.6.12", + "@walmart/allspark-home-mini-app": "0.6.13", "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -17,7 +17,6 @@ import { import {FeedbackDialogScreen} from '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/FeedbackDialogScreen'; import {SurveySaysDialogScreen} from '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/SurveySaysDialogScreen'; import {Components, Properties} from '@walmart/push-to-talk-mini-app'; -import {HealthSurveyMiniApp} from '@walmart/allspark-health-survey-mini-app'; import {ExceptionMiniApp as PinpointMiniApp} from '@walmart/exception-mini-app'; import {ApprovalsMiniApp} from '@walmart/manager-approvals-miniapp'; import {ItemInfoMiniApp} from '@walmart/iteminfo-mini-app'; @@ -164,10 +163,6 @@ export const MainStackNav = () => { headerBackImage: renderHeaderCloseImage, }} /> - <MainStack.Screen - name='HealthSurveyNav' - component={HealthSurveyMiniApp} - /> <MainStack.Screen name='amp' component={AmpNav} /> <MainStack.Screen name='Impersonation' --- src/startup/index.ts @@ -40,7 +40,6 @@ export function* captureMissedMiniAppEvents(): any { // These mini apps have an issue with translations listeners not being setup // by the time we emit the initialized event. - require('@walmart/allspark-health-survey-mini-app'); require('@walmart/allspark-home-mini-app'); yield call(addMiniAppI18nResources); --- src/translations/en-US.ts @@ -1,7 +1,6 @@ /*eslint sort-keys: "error"*/ export const enUS = { appNames: { - '@walmart/allspark-health-survey-mini-app': 'Health Survey', '@walmart/allspark-home-mini-app': 'Home', '@walmart/allspark-me-mini-app': 'Me', '@walmart/amp-mini-app': 'Amp', --- src/translations/es-MX.ts @@ -1,7 +1,6 @@ /*eslint sort-keys: "error"*/ export const esMX = { appNames: { - '@walmart/allspark-health-survey-mini-app': 'Health Survey', '@walmart/allspark-home-mini-app': 'Home', '@walmart/allspark-me-mini-app': 'Me', '@walmart/amp-mini-app': 'Amp', --- src/versions/constants.ts @@ -5,7 +5,6 @@ export const ALL_DEPENDENCIES: { } = packageJson.dependencies; export const LISTED_DEPENDENCIES = [ - '@walmart/allspark-health-survey-mini-app', '@walmart/allspark-home-mini-app', '@walmart/allspark-me-mini-app', '@walmart/amp-mini-app',
Remove health survey mini app
Remove health survey mini app
5bee8a069ee11b8cc9167555df36861ed8853aa2
--- package-lock.json @@ -5331,6 +5331,11 @@ "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.1.1.tgz", "integrity": "sha512-7d62eBeJoUnnl5KOoDe+aOxU7C6VpkCM7Bl5iRgg1TMMqmUDM8iI2YDPRppU7hBr134Zbl5aVEGyR/IBQrPRxA==" }, + "@walmart/me-at-homeoffice-ui-components": { + "version": "1.2.40", + "resolved": "https://npme.walmart.com/@walmart/me-at-homeoffice-ui-components/-/me-at-homeoffice-ui-components-1.2.40.tgz", + "integrity": "sha512-0nxnWprWbe0sEsHY/ptRyrGa0Att7AUkUFVhzrVUuBUFgHoVUmTMT2Kh46oF8fUnJHpzauCppvlkevwoCX9GUw==" + }, "@walmart/me-field-mini-app": { "version": "1.1.25", "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.25.tgz", @@ -5448,9 +5453,9 @@ "integrity": "sha512-JM5F79SxIgq0cE/oqeZg7jWAaByTcIClkOWOPqRJ8nHH361keqSng3e5GiqXUYrpRHjKs4g87D1EImYvYfF8jw==" }, "@walmart/profile-feature-app": { - "version": "0.0.63", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.63.tgz", - "integrity": "sha512-YkTwTuh1YNgm9nD/TPwHTvEuOKcZck6oUkBPiKyF9DxKLbpFHYvIszx/m74M5O2cECk8zJL7qi28Pdo7gMoNDg==" + "version": "0.0.70", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.70.tgz", + "integrity": "sha512-xNOngzQuwQm7zjd/tm4dlKnE3fLM2bDJdTSTW2azS6x+kghDBUmtbh7RQf13ZW/02bkgf7cuhA5e3CwmESPmiw==" }, "@walmart/push-to-talk-mini-app": { "version": "1.8.14", --- package.json @@ -98,6 +98,7 @@ "@walmart/inbox-mini-app": "0.57.0", "@walmart/iteminfo-mini-app": "5.1.4", "@walmart/manager-approvals-miniapp": "0.1.1", + "@walmart/me-at-homeoffice-ui-components": "^1.2.40", "@walmart/me-field-mini-app": "1.1.25", "@walmart/metrics-mini-app": "0.9.20", "@walmart/mod-flex-mini-app": "1.2.2", @@ -105,7 +106,7 @@ "@walmart/pay-stub-miniapp": "0.8.2", "@walmart/payrollsolution_miniapp": "0.127.0", "@walmart/price-changes-mini-app": "1.5.4", - "@walmart/profile-feature-app": "0.0.63", + "@walmart/profile-feature-app": "0.0.70", "@walmart/push-to-talk-mini-app": "1.8.14", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "^0.2.0", --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -165,20 +165,23 @@ export const MainStackNav = () => { /> {WorkMiniAppScreens} <MainStack.Screen - name='contactInfoScreen' + name='profile.contactInfoScreen' component={ContactInfoNav} /> - <MainStack.Screen name='jobHistoryScreen' component={JobHistoryNav} /> <MainStack.Screen - name='educationHistoryScreen' + name='profile.jobHistoryScreen' + component={JobHistoryNav} + /> + <MainStack.Screen + name='profile.educationHistoryScreen' component={EducationHistoryNav} /> <MainStack.Screen - name='certificationsScreen' + name='profile.certificationsScreen' component={CertificationsNav} /> <MainStack.Screen - name='personalSettingsScreen' + name='profile.personalSettingsScreen' component={PersonalSettingsNav} /> <MainStack.Screen @@ -346,7 +349,7 @@ export const MainStackNav = () => { /> <MainStack.Screen - name='editPreferredNameScreen' + name='profile.editPreferredNameScreen' component={EditPreferredNameCard} options={modalTransitionOptions} /> @@ -357,7 +360,7 @@ export const MainStackNav = () => { ...snackbarTransitionOptions, }}> <MainStack.Screen - name='preferredNameSnackbar' + name='profile.preferredNameSnackbar' component={SuccessSnackbar} /> </MainStack.Group>
Bumped profile app to 0.0.70
Bumped profile app to 0.0.70
c433b5b35581d22f8bcc9bf7be7d4b6b333ec88f
--- ios/Podfile.lock @@ -623,9 +623,9 @@ PODS: - JWT (~> 3.0.0-beta.12) - React-Core - SSZipArchive (~> 2.2.2) - - compass-sdk-ios (0.2.13) - - compass-sdk-rn (5.7.0): - - compass-sdk-ios (= 0.2.13) + - compass-sdk-ios (0.2.18) + - compass-sdk-rn (5.10.0): + - compass-sdk-ios (= 0.2.18) - React-Core - DoubleConversion (1.1.6) - EXAV (13.2.1): @@ -1909,13 +1909,14 @@ SPEC CHECKSUMS: abseil: ebe5b5529fb05d93a8bdb7951607be08b7fa71bc Apollo: 204819ea82022fbc59ad05056820df867f19bd02 AppAuth: 31bcec809a638d7bd2f86ea8a52bd45f6e81e7c7 + Base64: cecfb41a004124895a7bcee567a89bae5a89d49b boost: a7c83b31436843459a1961bfd74b96033dc77234 BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 CodePush: dce1b253fde81078249ea9cd4b948e4ac7b761a9 - compass-sdk-ios: a27a52cd34d588b5b0b253747899401b70cc75ee - compass-sdk-rn: 74e5d2dd3745a8985949ee2be33cba584af2732c + compass-sdk-ios: 8916c252253c1027bfbdfcf46f67a174e9f04263 + compass-sdk-rn: f3d236708f3298bb86b25cbc96673b26e2f548d6 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 EXAV: f1f69397ecdcf44cfacd4ff5d338cd1b96891e87 EXConstants: f348da07e21b23d2b085e270d7b74f282df1a7d9 @@ -1957,6 +1958,7 @@ SPEC CHECKSUMS: "gRPC-C++": 9675f953ace2b3de7c506039d77be1f2e77a8db2 gRPC-Core: 943e491cb0d45598b0b0eb9e910c88080369290b hermes-engine: 918ec5addfbc430c9f443376d739f088b6dc96c3 + JWT: ef71dfb03e1f842081e64dc42eef0e164f35d251 leveldb-library: f03246171cce0484482ec291f88b6d563699ee06 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 Libuv-gRPC: 55e51798e14ef436ad9bc45d12d43b77b49df378 @@ -2070,6 +2072,6 @@ SPEC CHECKSUMS: Yoga: dc109b79db907f0f589fc423e991b09ec42d2295 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 5e9af5bffc9ed6ee9db34b0f1573f68bd919bf97 +PODFILE CHECKSUM: aa974c743da6f2b8f34d7624b49e605b95240d31 -COCOAPODS: 1.12.0 \ No newline at end of file +COCOAPODS: 1.12.0 --- package-lock.json @@ -41,7 +41,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.15.4", "@walmart/attendance-mini-app": "1.62.5", - "@walmart/compass-sdk-rn": "5.7.0", + "@walmart/compass-sdk-rn": "5.10.0", "@walmart/config-components": "4.2.7", "@walmart/copilot-mini-app": "2.3.19", "@walmart/core-services": "~2.2.1", @@ -8084,9 +8084,9 @@ } }, "node_modules/@walmart/compass-sdk-rn": { - "version": "5.7.0", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.7.0.tgz", - "integrity": "sha512-m7XUOq3dJb57gzP4XgwnpTo73eGbitHzFdGcZor7qEe3iqpjZeRUvE34oFHb/lO1tbAhfN8jd/AEZSrSe56xaA==", + "version": "5.10.0", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.10.0.tgz", + "integrity": "sha512-G8QS5o3rhhH6Bf0uSd5Px9JKSXD8mJfNIddUjX+uJI4nQs9BBjB58/WceSivG2X6nV02sQyt5RH6EWJfhFGvow==", "license": "MIT", "peerDependencies": { "react": "*", @@ -34206,9 +34206,9 @@ } }, "@walmart/compass-sdk-rn": { - "version": "5.7.0", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.7.0.tgz", - "integrity": "sha512-m7XUOq3dJb57gzP4XgwnpTo73eGbitHzFdGcZor7qEe3iqpjZeRUvE34oFHb/lO1tbAhfN8jd/AEZSrSe56xaA==" + "version": "5.10.0", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.10.0.tgz", + "integrity": "sha512-G8QS5o3rhhH6Bf0uSd5Px9JKSXD8mJfNIddUjX+uJI4nQs9BBjB58/WceSivG2X6nV02sQyt5RH6EWJfhFGvow==" }, "@walmart/config-components": { "version": "4.2.7", --- package.json @@ -82,7 +82,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.15.4", "@walmart/attendance-mini-app": "1.62.5", - "@walmart/compass-sdk-rn": "5.7.0", + "@walmart/compass-sdk-rn": "5.10.0", "@walmart/config-components": "4.2.7", "@walmart/copilot-mini-app": "2.3.19", "@walmart/core-services": "~2.2.1",
Update compass sdk module with signing key
Update compass sdk module with signing key
edf95fefa1f850f04fc1f86e1485400a41df86d0
--- packages/allspark-build-cache-provider/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.1.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-build-cache-provider@1.1.0...@walmart/allspark-build-cache-provider@1.1.1) (2025-12-17) + +### Bug Fixes + +- cache provider dependencies not installed automatically ([d1f83dd](https://gecgithub01.walmart.com/allspark/allspark/commit/d1f83ddf0b43424b398000e6658dfb3de2845b9f)) + # 1.1.0 (2025-12-17) ### Features --- packages/allspark-build-cache-provider/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-build-cache-provider", - "version": "1.1.0", + "version": "1.1.1", "main": "provider.plugin.js", "scripts": { "build": "tsc",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-build-cache-provider@1.1.1
5433418746b418d8f90458bc19558a2a67944f65
--- example/src/Onboarding/http.ts @@ -1,3 +0,0 @@ -import {Onboarding} from './feature'; - -export const OnboardingHttpClient = Onboarding.createHttpClient({}); --- example/src/Onboarding/listeners.ts @@ -1,11 +0,0 @@ -import {Onboarding} from './feature'; - -export const onForegroundNotification = () => { - console.log('rlane1 - onboarding feature received foreground notification'); -}; - -export const OnboardingListeners = Onboarding.createListeners({ - notification: { - onForegroundNotification, - }, -}); --- example/src/Onboarding/screens/onboardingEntryScreen.tsx @@ -34,7 +34,12 @@ export const OnboardingEntryScreen = Onboarding.createScreen( }, []); return ( - <TeamOnboardingScreen teamOnboardingCardsInfo={teamOnboardingCards} /> + <TeamOnboardingScreen + heading="A new way to manage your Team and Work" + description="Get started by selecting your teams" + teamOnboardingCardsInfo={teamOnboardingCards} + buttonText="Choose teams" + /> ); }, { --- example/src/Onboarding/services.ts @@ -1,5 +1,4 @@ import {Onboarding} from './feature'; -export const OnboardingLocalStorage = Onboarding.createLocalStorage({}); export const OnboardingLogger = Onboarding.createLogger({}); export const OnboardingTelemetry = Onboarding.createTelemetry({}); --- packages/allspark-foundation/src/Components/TeamOnboarding/Screens/TeamOnboardingScreen.tsx @@ -4,16 +4,21 @@ import { Image, View } from 'react-native'; import { Body, Button, Heading } from '@walmart/gtp-shared-components'; import { TeamOnboardingCards } from '../Component/TeamOnboardingCards'; import { Images } from '../Images'; -import { ParamListBase } from '@react-navigation/native'; import { TeamOnboardingCardInfo } from '../Component/TeamOnboardingCard'; import { TeamOnboardingScreenStyles as styles } from './styles'; -export interface TeamOnboardingScreenProps extends ParamListBase { +export interface TeamOnboardingScreenProps { + heading: string; + description: string; teamOnboardingCardsInfo: TeamOnboardingCardInfo[]; + buttonText: string; } export const TeamOnboardingScreen = ({ + heading, + description, teamOnboardingCardsInfo, + buttonText, }: TeamOnboardingScreenProps) => ( <View style={styles.rootContainer}> <View @@ -28,16 +33,14 @@ export const TeamOnboardingScreen = ({ /> </View> <Heading size='medium' UNSAFE_style={styles.header}> - A new way to manage your Team and Work + {heading} </Heading> <View style={styles.cardsContainer}> <TeamOnboardingCards cards={teamOnboardingCardsInfo} /> </View> </View> <View style={styles.buttonContainer}> - <Body UNSAFE_style={styles.text}> - Get started by selecting your teams - </Body> + <Body UNSAFE_style={styles.text}>{description}</Body> <Button size='medium' variant='primary' @@ -46,7 +49,7 @@ export const TeamOnboardingScreen = ({ onPress={() => {}} testID='button' > - Choose teams + {buttonText} </Button> </View> </View>
feat: removed unnecessary files and added props
feat: removed unnecessary files and added props
af7dd232b39756dd531b8f2ac2bf5eaefd8638e2
--- android/app/build.gradle @@ -355,7 +355,9 @@ dependencies { } else { implementation jscFlavor } - + configurations { + all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp' + } implementation "com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava" } @@ -435,5 +437,5 @@ android { configurations.implementation.exclude(group: 'com.google.firebase', module: 'protolite-well-known-types') configurations.implementation.exclude(group: 'com.google.protobuf', module: 'protobuf-javalite') configurations.implementation.exclude(group: 'com.google.protobuf', module: 'protobuf-lite') -configurations.implementation.exclude(group: 'com.squareup.okhttp3', module: 'okhttp') -configurations.implementation.exclude(group: 'com.squareup.okio', module: 'okio') +// configurations.implementation.exclude(group: 'com.squareup.okhttp3', module: 'okhttp') +// configurations.implementation.exclude(group: 'com.squareup.okio', module: 'okio')
Added configuration in dependency to exclude group
Added configuration in dependency to exclude group
82db181fe19c42ee2e8ae29c6ba1198cdf29827a
--- packages/allspark-foundation/src/FeatureRunner/screens/types.ts @@ -3,7 +3,7 @@ import { AuthConfiguration } from '../../Auth'; import { ImpersonationFormProps } from '../../User'; export type FeatureRunnerScreenParams = ParamListBase & { - [key: string & {}]: object | undefined; + [key: string]: object | undefined; 'container.login': { authConfigs: AuthConfiguration[]; }; --- packages/allspark-foundation/src/Navigation/types.ts @@ -87,10 +87,10 @@ export type AllsparkNavigationConfig = { */ export type NavigationResolver = ( screen: string, - params?: object | undefined + params?: object ) => { screen: string; - params?: object | undefined; + params?: object; }; /**
fix(types): remove redundant type annotations in navigation types
fix(types): remove redundant type annotations in navigation types
4d1abb04c1069851615dffeea8545c898c696af1
--- packages/allspark-graphql-client/package.json @@ -44,7 +44,8 @@ "@graphql-codegen/typescript-operations": "^2.5.10", "@graphql-codegen/typescript-react-apollo": "^3.3.7", "@types/crypto-js": "^4.0.2", - "json-to-pretty-yaml": "^1.2.2" + "json-to-pretty-yaml": "^1.2.2", + "react-native-apollo-devtools-client": "^1.0.4" }, "peerDependencies": { "@graphql-codegen/cli": "^2.16.3", @@ -53,6 +54,7 @@ "@graphql-codegen/typescript-operations": "^2.5.10", "@graphql-codegen/typescript-react-apollo": "^3.3.7", "json-to-pretty-yaml": "^1.2.2", - "react": "^18.2.0" + "react": "^18.2.0", + "react-native-apollo-devtools-client": "^1.0.4" } }
fix: add apollo client devtools to dependencies
fix: add apollo client devtools to dependencies
d45fa310ffa2389e3bcfc85cc472fe655c63cd44
--- targets/US/package.json @@ -91,7 +91,7 @@ "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.5.20", "@walmart/calling-mini-app": "0.5.17", - "@walmart/checkout-mini-app": "3.25.16", + "@walmart/checkout-mini-app": "3.26.0", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.4.5", "@walmart/core-services": "~6.4.1", --- yarn.lock @@ -6153,9 +6153,9 @@ __metadata: languageName: node linkType: hard -"@walmart/checkout-mini-app@npm:3.25.16": - version: 3.25.16 - resolution: "@walmart/checkout-mini-app@npm:3.25.16" +"@walmart/checkout-mini-app@npm:3.26.0": + version: 3.26.0 + resolution: "@walmart/checkout-mini-app@npm:3.26.0" dependencies: "@stomp/stompjs": "npm:^7.0.0" cpc-input: "npm:^1.7.28" @@ -6197,7 +6197,7 @@ __metadata: react-native-wm-telemetry: ">=6" react-redux: ^8.1.3 redux: ^4.0.5 - checksum: 10c0/fd5b6084de0b6e63a3f97d1605badecba65a9a15fefaa231e992cf7ad50bef32f5462f45748f074a368cc46b57237c3734f6718aaddda6f477bcd77ee8cc30ba + checksum: 10c0/b62f2b5264e72447b1b8a5138eb496334e9584cc0df5bf3389b884df09a7aa1f7ccff61a48717b12e9a4a840c158dc2b41fa732e3c9305ab1d3bf4bc19246882 languageName: node linkType: hard @@ -6998,7 +6998,7 @@ __metadata: "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.5.20" "@walmart/calling-mini-app": "npm:0.5.17" - "@walmart/checkout-mini-app": "npm:3.25.16" + "@walmart/checkout-mini-app": "npm:3.26.0" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.4.5" "@walmart/core-services": "npm:~6.4.1"
update co version 3.26.0
update co version 3.26.0
7c2e37ba2a351a7708530a1c21b0ade548c83dcb
--- src/channels/transforms.ts @@ -17,7 +17,6 @@ export const normalizeChannelSnapshot = ( (accm, doc) => { const data = doc.data(); const id = doc.ref.path; - return { ids: [...accm.ids, id], dataById: { --- src/channels/transforms.ts @@ -17,7 +17,6 @@ export const normalizeChannelSnapshot = ( (accm, doc) => { const data = doc.data(); const id = doc.ref.path; - return { ids: [...accm.ids, id], dataById: {
revert whitespace
revert whitespace
be17af5ac694d30f730d932f017518080340b865
--- src/index.tsx @@ -8,7 +8,7 @@ import {SafeAreaProvider} from 'react-native-safe-area-context'; import {PresenceProvider} from '@walmart/wmconnect-mini-app'; import {useSelector} from 'react-redux'; import {UserSelectors} from '@walmart/allspark-foundation/User'; -import {AllsparkComponentContainers} from '@walmart/allspark-foundation'; +import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; import {RosterWidget} from './components/RosterWidget'; // TODO: This needs to be reconsidered when we go production
feat(ui): update widget on myTeam
feat(ui): update widget on myTeam
79ab7fd771fd3d3fbbb75867718fd4eb28da31d8
--- packages/me-at-walmart-common/__tests__/components/AskSamTest.ts @@ -10,8 +10,7 @@ describe('AskSamWidgetProps interface', () => { }; expect(props.entities).toBeDefined(); - expect(props.widgetId).toEqual('widget123'); - + expect(props.widgetId).toBeDefined(); expect(props.data).toBeUndefined(); expect(props.style).toBeUndefined(); expect(props.chatHistoryMessageData).toBeUndefined(); @@ -19,7 +18,9 @@ describe('AskSamWidgetProps interface', () => { // Check the type of setChatHistoryMessageData if (props.setChatHistoryMessageData) { + const mockData = {}; expect(typeof props.setChatHistoryMessageData).toBe('function'); + expect(props.setChatHistoryMessageData).toBeCalledWith(mockData); } }); }); @@ -28,7 +29,6 @@ describe('AskSamChatContainer', () => { it('should call AllsparkComponentContainers.create correctly', () => { // Mock AllsparkComponentContainers.create method const mockCreate = AllsparkComponentContainers.create as jest.Mock; - expect(mockCreate).toHaveBeenCalledWith(CHAT_CONTAINER_KEY); }); }); --- packages/me-at-walmart-common/__tests__/components/CoreTest.ts @@ -18,7 +18,6 @@ describe('RootComponentContainer', () => { it('should call AllsparkComponentContainers.create correctly', () => { // Mock AllsparkComponentContainers.create method const mockCreate = AllsparkComponentContainers.create as jest.Mock; - expect(mockCreate).toHaveBeenCalledWith(ROOT_CONTAINER_KEY); }); }); @@ -27,7 +26,6 @@ describe('ImpersonationFormContainer', () => { it('should call AllsparkComponentContainers.create correctly', () => { // Mock AllsparkComponentContainers.create method const mockCreate = AllsparkComponentContainers.create as jest.Mock; - expect(mockCreate).toHaveBeenCalledWith(IMPERSONATION_FORM_CONTAINER_KEY); }); }); --- packages/me-at-walmart-common/__tests__/components/HomeTest.tsx @@ -31,6 +31,11 @@ describe('HomeWidgetProps interface', () => { // Check the type of onRefreshStart and onRefreshEnd expect(typeof props.onRefreshStart).toBe('function'); expect(typeof props.onRefreshEnd).toBe('function'); + + // Checck if refreshKey is provided + if (props.refreshKey) { + expect(typeof props.refreshKey).toBe('string'); + } }); }); --- packages/me-at-walmart-common/__tests__/components/InboxTest.ts @@ -11,7 +11,6 @@ describe('InboxContainer', () => { it('should call AllsparkComponentContainers.create correctly', () => { // Mock AllsparkComponentContainers.create method const mockCreate = AllsparkComponentContainers.create as jest.Mock; - expect(mockCreate).toHaveBeenCalledWith(INBOX_WIDET_REGISTRY_KEY); }); }); --- packages/me-at-walmart-common/__tests__/components/MetricsTest.ts @@ -1,6 +1,5 @@ import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; import { - MetricsContainer, METRICS_WIDET_REGISTRY_KEY, PayloadStatusType, MetricsWidgetProps, @@ -43,7 +42,7 @@ describe('MetricsWidgetProps', () => { describe('MetricsWidgetProps function', () => { const mockOnNetworkCallback = jest.fn(); const mockOnRefresh = jest.fn(); - let status: PayloadStatusType; + let status: PayloadStatusType = 'failed' || 'ok' || 'stale'; const props: MetricsWidgetProps = { refresh: false, @@ -52,25 +51,13 @@ describe('MetricsWidgetProps function', () => { }; it('should call onNetworkCallback with required param', () => { // Assign valid values - status = 'ok'; - props.onNetworkCallback(status); - expect(mockOnNetworkCallback).toHaveBeenCalledWith(status); - - status = 'stale'; - props.onNetworkCallback(status); - expect(mockOnNetworkCallback).toHaveBeenCalledWith(status); - - status = 'failed'; props.onNetworkCallback(status); expect(mockOnNetworkCallback).toHaveBeenCalledWith(status); }); it('should call onRefresh with requied param', () => { // Mock async function - const mockRefreshPromise = async () => { - // Mock refresh logic - await new Promise((resolve) => setTimeout(resolve, 1000)); // Simulate async operation - }; + const mockRefreshPromise = jest.fn(() => Promise.resolve()); props.onRefresh(mockRefreshPromise); expect(props.onRefresh).toBeCalledWith(mockRefreshPromise); }); @@ -91,9 +78,6 @@ describe('MetricsContainer', () => { it('should call AllsparkComponentContainers.create correctly', () => { // Mock AllsparkComponentContainers.create method const mockCreate = AllsparkComponentContainers.create as jest.Mock; - expect(mockCreate).toHaveBeenCalledWith(METRICS_WIDET_REGISTRY_KEY); - - mockCreate.mockReturnValue(MetricsContainer); }); }); --- packages/me-at-walmart-common/__tests__/components/ScMetricsTest.ts @@ -3,6 +3,7 @@ import { PayloadType, ScMetricsWidgetProps, SC_METRICS_WIDET_REGISTRY_KEY, + PayloadStatusType, } from '../../src/components'; describe('ScMetricsWidgetProps', () => { @@ -40,11 +41,14 @@ describe('ScMetricsWidgetProps', () => { } }); + it('should call onNetworkCallback with requiired param', () => { + const payloadStatus: PayloadStatusType = 'ok' || 'failed' || 'stale'; + expect(props.onNetworkCallback).toBeCalledWith(payloadStatus); + }); + it('should handle case when refreshPromise is provided', async () => { // Call handleRefresh with mockRefreshPromise props.onRefresh(mockRefreshPromise); - - // Expect onRefresh to have been called once with mockRefreshPromise expect(mockOnRefresh).toHaveBeenCalledWith(mockRefreshPromise); }); }); --- packages/me-at-walmart-common/__tests__/components/SideKickTest.ts @@ -8,9 +8,6 @@ import { describe('SidekickWidgetProps', () => { // Mock function for onNetworkCallback const mockOnNetworkCallback = jest.fn(); - - let status: PayloadType; - // Create a mock props object const props: SidekickWidgetProps = { onNetworkCallback: mockOnNetworkCallback, @@ -33,6 +30,11 @@ describe('SidekickWidgetProps', () => { expect(typeof props.maxItems).toBe('number'); } }); + + it('should call onNetworkCallback with required param', () => { + const fetchResult: PayloadType = 'ok' || 'failed' || 'stale'; + expect(props.onNetworkCallback).toBeCalledWith(fetchResult); + }); }); describe('Constants', () => {
feat:update test coverage
feat:update test coverage
bf7d19981d229e3e5d5bb642266af7303bce008c
--- .looper-pr.yml @@ -39,4 +39,3 @@ envs: -
feat(ui): dummy commit
feat(ui): dummy commit
ec59a158eda872caf0990c05c6001817180e82d7
--- .looper-pr.yml @@ -32,3 +32,4 @@ envs: AUTHOR: temp SLACK_CHANNEL: 'smdv-miniapp' + --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.38.1", + "version": "2.39.0", "main": "dist/index.js", "files": [ "dist",
feat(ui): update package dependency
feat(ui): update package dependency
359f6d1f98bd3d8685f931feaff6ac6980d9ab5b
--- __mocks__/@walmart/shop-gnfr-mini-app.js
fix: ALLSPARK-5457 fix prebuild and bump sumo and add patch for webex
fix: ALLSPARK-5457 fix prebuild and bump sumo and add patch for webex
134f9db836c7b16db312a2aca2b5e9d8a7eac6bc
--- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/TeamSelection.tsx @@ -1,14 +1,7 @@ import React from 'react'; -import { ScrollView } from 'react-native'; import { TeamSelectionProps } from './types'; -import { Header } from '../../Hub/Header'; import { TeamSelectionList } from './TeamSelectionList'; -import { teamSelectionStyles as styles } from './styles'; -import { colors } from '@walmart/gtp-shared-components'; - export const TeamSelection = ({ - headerTitle, - headerSubText, areas, selectedTeams, myArea, @@ -18,22 +11,16 @@ export const TeamSelection = ({ handleSelectAll, }: TeamSelectionProps) => { return ( - <ScrollView style={styles.container}> - <Header - title={headerTitle} - subText={headerSubText} - backgroundColor={colors.white} - textColor={colors.gray['160']} - /> - <TeamSelectionList - areas={areas} - selectedTeams={selectedTeams} - myArea={myArea} - primaryTeam={primaryTeam} - userType={userType} - handleSelectSingle={handleSelectSingle} - handleSelectAll={handleSelectAll} - /> - </ScrollView> + // <ScrollView style={styles.container}> + <TeamSelectionList + areas={areas} + selectedTeams={selectedTeams} + myArea={myArea} + primaryTeam={primaryTeam} + userType={userType} + handleSelectSingle={handleSelectSingle} + handleSelectAll={handleSelectAll} + /> + // </ScrollView> ); };
Removing scrollview
Removing scrollview
1e7afbbc088e28131428a03908e752fb87b2ba72
--- __tests__/auth/ErrorScreenTest.tsx @@ -1,4 +1,4 @@ -import React, {Component, useState} from 'react'; +import React, {useState} from 'react'; import {InteractionManager, Platform} from 'react-native'; import {TextInput} from 'react-native'; import {useDispatch} from 'react-redux'; @@ -23,6 +23,8 @@ jest.mock('../../src/services/MaskUserId', () => ({ encryptUserId: jest.fn((user, site) => `Encrypted-${user}-${site}`), })); +jest.mock('@react-native-community/picker'); + const mockUseState = useState as jest.Mock; const mockNavigation = { goBack: jest.fn(), --- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap @@ -183,78 +183,7 @@ exports[`ErrorScreen matches snapshot when dirty and no userId/siteId 1`] = ` }, ] } - > - <View - style={ - Object { - "color": "#74767c", - "fontWeight": "300", - } - } - > - <RNCPicker - items={ - Array [ - Object { - "label": "ssoError.selectIssue", - "textColor": undefined, - "value": "ssoError.selectIssue", - }, - Object { - "label": "ssoError.issues.clockInOut", - "textColor": undefined, - "value": "ssoError.issues.clockInOut", - }, - Object { - "label": "ssoError.issues.verification2Step", - "textColor": undefined, - "value": "ssoError.issues.verification2Step", - }, - Object { - "label": "ssoError.issues.storeTrans", - "textColor": undefined, - "value": "ssoError.issues.storeTrans", - }, - Object { - "label": "ssoError.issues.newNo", - "textColor": undefined, - "value": "ssoError.issues.newNo", - }, - Object { - "label": "ssoError.issues.noTextReceived", - "textColor": undefined, - "value": "ssoError.issues.noTextReceived", - }, - Object { - "label": "ssoError.issues.noPushReceived", - "textColor": undefined, - "value": "ssoError.issues.noPushReceived", - }, - Object { - "label": "ssoError.issues.wiFi", - "textColor": undefined, - "value": "ssoError.issues.wiFi", - }, - Object { - "label": "ssoError.issues.other", - "textColor": undefined, - "value": "ssoError.issues.other", - }, - ] - } - onChange={[Function]} - selectedIndex={0} - style={ - Array [ - Object { - "height": 216, - }, - undefined, - ] - } - /> - </View> - </View> + /> <View style={ Object { @@ -550,78 +479,7 @@ exports[`ErrorScreen renders default 1`] = ` false, ] } - > - <View - style={ - Object { - "color": "#74767c", - "fontWeight": "300", - } - } - > - <RNCPicker - items={ - Array [ - Object { - "label": "ssoError.selectIssue", - "textColor": undefined, - "value": "ssoError.selectIssue", - }, - Object { - "label": "ssoError.issues.clockInOut", - "textColor": undefined, - "value": "ssoError.issues.clockInOut", - }, - Object { - "label": "ssoError.issues.verification2Step", - "textColor": undefined, - "value": "ssoError.issues.verification2Step", - }, - Object { - "label": "ssoError.issues.storeTrans", - "textColor": undefined, - "value": "ssoError.issues.storeTrans", - }, - Object { - "label": "ssoError.issues.newNo", - "textColor": undefined, - "value": "ssoError.issues.newNo", - }, - Object { - "label": "ssoError.issues.noTextReceived", - "textColor": undefined, - "value": "ssoError.issues.noTextReceived", - }, - Object { - "label": "ssoError.issues.noPushReceived", - "textColor": undefined, - "value": "ssoError.issues.noPushReceived", - }, - Object { - "label": "ssoError.issues.wiFi", - "textColor": undefined, - "value": "ssoError.issues.wiFi", - }, - Object { - "label": "ssoError.issues.other", - "textColor": undefined, - "value": "ssoError.issues.other", - }, - ] - } - onChange={[Function]} - selectedIndex={0} - style={ - Array [ - Object { - "height": 216, - }, - undefined, - ] - } - /> - </View> - </View> + /> </View> <Text style={
test case update
test case update
7124aede7b2c952909ebdc1e62577f183072af07
--- package.json @@ -93,7 +93,7 @@ "@walmart/ask-sam-mini-app": "1.35.21", "@walmart/associate-exp-hub-hub": "2.17.0", "@walmart/associate-exp-hub-team-switcher": "2.19.0", - "@walmart/associate-listening-mini-app": "1.2.59", + "@walmart/associate-listening-mini-app": "1.2.80", "@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch", "@walmart/avp-feature-app": "0.28.42", "@walmart/avp-shared-library": "0.27.24", --- yarn.lock @@ -7459,11 +7459,11 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-listening-mini-app@npm:1.2.59": - version: 1.2.59 - resolution: "@walmart/associate-listening-mini-app@npm:1.2.59::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-1.2.59.tgz" +"@walmart/associate-listening-mini-app@npm:1.2.80": + version: 1.2.80 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.80::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-1.2.80.tgz" dependencies: - "@walmart/associate-listening-utils": "npm:6.4.2" + "@walmart/associate-listening-utils": "npm:6.4.3" peerDependencies: "@react-navigation/native": ^7.0.0 "@react-navigation/stack": ^7.0.0 @@ -7472,17 +7472,17 @@ __metadata: "@walmart/gtp-shared-components": 3.0.0-beta.8 react: ^18.3.1 react-native: 0.79.5 - checksum: 10c0/a5bc224b8daf4eb432e1a674f87b10093903d114f1507037b07cc6d7642e8d12888c4c544430834e87dacbaf1c3eea87f23090eaf30fc60e61f23b6bc2a8d8c9 + checksum: 10c0/7bf1013f7ee3b60e5f2a8a44fbf41e9e8f53b5a3b786a51e83f854d26e5550df4a6e73f7a86f6e9b96d212d643fcd2967cc6888722fd8f2135113444ca5b59a2 languageName: node linkType: hard -"@walmart/associate-listening-utils@npm:6.4.2": - version: 6.4.2 - resolution: "@walmart/associate-listening-utils@npm:6.4.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-utils%2F-%2F%40walmart%2Fassociate-listening-utils-6.4.2.tgz" +"@walmart/associate-listening-utils@npm:6.4.3": + version: 6.4.3 + resolution: "@walmart/associate-listening-utils@npm:6.4.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-utils%2F-%2F%40walmart%2Fassociate-listening-utils-6.4.3.tgz" dependencies: "@types/semver": "npm:^7.3.4" semver: "npm:^7.3.4" - checksum: 10c0/e5c22bcd2acd118de515d5b8d4b630bda9d9001286797c6ebc603ef970f620a3485873c9c7bbc39b04ea8c3af8aad169a56c9d34230a69895aa5430ca5b1233e + checksum: 10c0/f5383d800442686722812ce8a49371d81adf82a6932130feab852cb5a5f49f615482a409f7fa072df12a951e93d2fc9e24a01f187960c8045ee2ec57b6da3744 languageName: node linkType: hard @@ -8491,7 +8491,7 @@ __metadata: "@walmart/ask-sam-mini-app": "npm:1.35.21" "@walmart/associate-exp-hub-hub": "npm:2.17.0" "@walmart/associate-exp-hub-team-switcher": "npm:2.19.0" - "@walmart/associate-listening-mini-app": "npm:1.2.59" + "@walmart/associate-listening-mini-app": "npm:1.2.80" "@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch" "@walmart/avp-feature-app": "npm:0.28.42" "@walmart/avp-shared-library": "npm:0.27.24"
Drop 35 - Associate Listening - ENGAGE-1788 - Bumping utils to fix driver items (#5186)
Drop 35 - Associate Listening - ENGAGE-1788 - Bumping utils to fix driver items (#5186)
3664f99f83f657201b80f9733153e924b5890ccd
--- package-lock.json @@ -3543,9 +3543,9 @@ } }, "@walmart/settings-mini-app": { - "version": "1.3.5", - "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.3.5.tgz", - "integrity": "sha512-HqzsayD8WUTeiG7VTuHWPgSqKM/RxN90OYmLxBvtyMgGAeAYz8nKnsR5USnPHGb0L2wHUg/KwAhpqRLr0Y2s7w==" + "version": "1.3.6", + "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.3.6.tgz", + "integrity": "sha512-/1BTlr15IX4PiLibhNRT//SlzkHLAustsqGH8/GncEwBmJ/aHl2Zl6WdV4TeMfP0q/wZQSemjIHncH7DKY12Fg==" }, "@walmart/shelfavailability-mini-app": { "version": "0.3.78", --- package.json @@ -87,7 +87,7 @@ "@walmart/react-native-sumo-sdk": "^2.0.0-beta-6", "@walmart/redux-store": "^1.0.15", "@walmart/schedule-mini-app": "0.2.82", - "@walmart/settings-mini-app": "1.3.5", + "@walmart/settings-mini-app": "1.3.6", "@walmart/shelfavailability-mini-app": "0.3.78", "@walmart/time-clock-mini-app": "0.4.6", "@walmart/ui-components": "1.1.56",
SSMP-1571
SSMP-1571
72dd49544c94ac71fdb01804d318dd562d91678b
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.3.0", "@walmart/metrics-mini-app": "0.9.61", - "@walmart/mod-flex-mini-app": "1.6.3", + "@walmart/mod-flex-mini-app": "1.6.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", "@walmart/pay-stub-miniapp": "0.9.31", @@ -5559,9 +5559,9 @@ "license": "MIT" }, "node_modules/@walmart/mod-flex-mini-app": { - "version": "1.6.3", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.6.3.tgz", - "integrity": "sha512-HrOYPc6mAEmYdMoxr81fS8gGrczCBD5Ha5mS6wOnBpcy1L9j0Pf2tgSfoDlnmCJmv1ozge2sYr4+o80kcy2htA==", + "version": "1.6.6", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.6.6.tgz", + "integrity": "sha512-LK6m7OauduWayU2ewcrYCygzMagm3PFSZN1s1nUu4LHEkas/5U3tE8bxGPAvv+lYeWHsDgDL6+Px3pw1dtBVEQ==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", @@ -25230,9 +25230,9 @@ } }, "@walmart/mod-flex-mini-app": { - "version": "1.6.3", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.6.3.tgz", - "integrity": "sha512-HrOYPc6mAEmYdMoxr81fS8gGrczCBD5Ha5mS6wOnBpcy1L9j0Pf2tgSfoDlnmCJmv1ozge2sYr4+o80kcy2htA==" + "version": "1.6.6", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.6.6.tgz", + "integrity": "sha512-LK6m7OauduWayU2ewcrYCygzMagm3PFSZN1s1nUu4LHEkas/5U3tE8bxGPAvv+lYeWHsDgDL6+Px3pw1dtBVEQ==" }, "@walmart/moment-walmart": { "version": "1.0.4" --- package.json @@ -100,7 +100,7 @@ "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.3.0", "@walmart/metrics-mini-app": "0.9.61", - "@walmart/mod-flex-mini-app": "1.6.3", + "@walmart/mod-flex-mini-app": "1.6.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", "@walmart/pay-stub-miniapp": "0.9.31",
updating modflex version 1.6.6
updating modflex version 1.6.6
6d823f7ff075bcc368993b77f537a9a6fa4c90af
--- packages/expo-config-plugins/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. +# [0.2.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.1.11...@walmart/expo-config-plugins@0.2.0) (2025-05-09) + +### Features + +- **expoconfig:** Add expo config plugin for jetifier ([#252](https://gecgithub01.walmart.com/allspark/allspark/issues/252)) ([a0aeba8](https://gecgithub01.walmart.com/allspark/allspark/commit/a0aeba8912eca3f9f9f0d649b8dfed536b374f5a)) + ## [0.1.11](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.1.10...@walmart/expo-config-plugins@0.1.11) (2025-04-28) ### Reverts --- packages/expo-config-plugins/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/expo-config-plugins", "packageManager": "yarn@4.1.1", - "version": "0.1.11", + "version": "0.2.0", "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.2.0
59451810badb5b6f6eaac2341729dadd241f56e5
--- .github/pull_request_template.md @@ -26,7 +26,7 @@ _Put an `x` in the boxes that apply_ - [ ] Please provide a **screenshot of code coverage** for the mini app node module. Minimum 90% coverage required. - [ ] Have you updated the [Firebase events list](https://confluence.walmart.com/display/ALLSPARK/All+Spark+Custom+Firebase+Events+by+Feature+App) with your mini-app's events? - [ ] Are all peer dependencies for your mini app included in allspark-core package.json? -- [ ] If this is a new mini-app, include the onboarding documentation for your mini-app. +- [ ] If this is a new mini-app, include the onboarding documentation link for your mini-app. ### Risk level: To help with review, estimate the risk level of the changes in this PR?
twicking changes
twicking changes
2052e3ad24dcde0cb89d1be7c604764416a1dd03
--- package.json @@ -91,5 +91,8 @@ "babel-jest": "29.2.1", "metro-react-native-babel-preset": "0.76.8" }, - "packageManager": "yarn@4.2.2" + "packageManager": "yarn@4.2.2", + "dependencies": { + "redux-saga-test-plan": "^4.0.6" + } } --- packages/allspark-foundation/__tests__/Auth/sagas.test.ts @@ -1,8 +1,10 @@ -import { onGetUser, onSignIn, onFetchToken, onSignOut } from '../../src/Auth/sagas'; - -import { IAuthActions } from '../../src/Auth/redux'; - - +import { onGetUser, onSignIn, onFetchToken, onSignOut, waitForSignIn, waitForToken } from '../../src/Auth/sagas'; +import { select, take, call } from 'redux-saga/effects'; +import { AuthActionTypes, IAuthActions } from '../../src/Auth/redux'; +import { AuthSelectors } from '../../src/Auth/selectors'; +import { AuthResult } from '../../src/Auth/types'; +import { expectSaga } from 'redux-saga-test-plan'; +import {AuthService} from '../../src/Auth/service' jest.mock('../../src/Auth/service', ()=>({ AuthService:{ @@ -13,14 +15,14 @@ jest.mock('../../src/Auth/service', ()=>({ } })) describe('Auth/sagas.ts', () => { - it('should call AuthService.getUser', ()=>{ - const action:IAuthActions['GET_USER'] = {type:'auth/GET_USER' as const, payload:undefined}; - const getUser = onGetUser(action); - const nextUser = getUser.next(); - expect(nextUser.value).toEqual(undefined); - expect(getUser.next().done).toBe(true) + it('should call onGetUser when GET_USER action is dispatched', ()=>{ + const mockGetUser = jest.spyOn(AuthService, 'getUser').mockImplementation(() => Promise.resolve(null)); + const action: IAuthActions['GET_USER'] = { type: AuthActionTypes.GET_USER, payload: undefined }; + const generator = onGetUser(action); + expect(generator.next().done).toBe(true); + expect(mockGetUser).toHaveBeenCalled(); }) - it('should call AuthService.onSignIn', ()=>{ + it('should call onSignIn when SIGN_IN action is dispatched', ()=>{ const payload = {clientId:'test', scopes:['test'], issuer:'test', redirectUrl:'test'} const action:IAuthActions['SIGN_IN'] = {type:'auth/SIGN_IN' as const, payload:payload}; const getSignIn = onSignIn(action); @@ -28,18 +30,145 @@ describe('Auth/sagas.ts', () => { expect(nextSignIn.value).toEqual(undefined); expect(getSignIn.next().done).toBe(true) }) - it('should call AuthService.onFetchToken', ()=>{ + it('should call onFetchToken when FETCH_TOKEN action is dispatched', ()=>{ const action:IAuthActions['FETCH_TOKEN'] = {type:'auth/FETCH_TOKEN' as const, payload:undefined}; const fetchToken = onFetchToken(action); const nextFetch = fetchToken.next(); expect(nextFetch.value).toEqual(undefined); expect(fetchToken.next().done).toBe(true) }) - it('should call AuthService.onSignOut', ()=>{ + + it('should call onSignOut when SIGN_OUT action is dispatched', ()=>{ const action:IAuthActions['SIGN_OUT'] = {type:'auth/SIGN_OUT' as const, payload:undefined}; const signOut = onSignOut(action); const nextSignOut = signOut.next(); expect(nextSignOut.value).toEqual(undefined); expect(signOut.next().done).toBe(true) }) + +const mockAuthResult: AuthResult = { + scopes: ['test'], + accessToken: 'test', + accessTokenExpirationDate: '', + idToken: 'string', + refreshToken: 'string', + tokenType: 'string', + authorizationCode: 'string' +}; + +it('should return auth result if already signed in', () => { + return expectSaga(waitForSignIn) + .provide([ + [select(AuthSelectors.getSigningIn), false], + [select(AuthSelectors.getData), mockAuthResult], + [select(AuthSelectors.getSignInError), false], + ]) + .returns(mockAuthResult) + .run(); +}); + +it('should wait for SIGN_IN_SUCCESS if no data and no error', () => { + return expectSaga(waitForSignIn) + .provide([ + [select(AuthSelectors.getSigningIn), false], + [select(AuthSelectors.getData), null], + [select(AuthSelectors.getSignInError), false], + [take([AuthActionTypes.SIGN_IN_SUCCESS, AuthActionTypes.SIGN_IN_ERROR]), { type: AuthActionTypes.SIGN_IN_SUCCESS }], + [select(AuthSelectors.getData), mockAuthResult], + ]) + .returns(null) + .run(); +}); + +it('should return null if there is an error', () => { + return expectSaga(waitForSignIn) + .provide([ + [select(AuthSelectors.getSigningIn), false], + [select(AuthSelectors.getData), null], + [select(AuthSelectors.getSignInError), true], + ]) + .returns(null) + .run(); +}); + +it('should return auth result if already signed in', () => { + return expectSaga(waitForSignIn) + .provide([ + [select(AuthSelectors.getSigningIn), false], + [select(AuthSelectors.getData), mockAuthResult], + [select(AuthSelectors.getSignInError), false], + ]) + .returns(mockAuthResult) + .run(); +}); + +it('should wait for SIGN_IN_SUCCESS if no data and no error', () => { + return expectSaga(waitForSignIn) + .provide([ + [select(AuthSelectors.getSigningIn), false], + [select(AuthSelectors.getData), null], + [select(AuthSelectors.getSignInError), false], + [take([AuthActionTypes.SIGN_IN_SUCCESS, AuthActionTypes.SIGN_IN_ERROR]), { type: AuthActionTypes.SIGN_IN_SUCCESS }], + [select(AuthSelectors.getData), mockAuthResult], + ]) + .returns(null) + .run(); +}); + +it('should return null if there is an error', () => { + return expectSaga(waitForSignIn) + .provide([ + [select(AuthSelectors.getSigningIn), false], + [select(AuthSelectors.getData), null], + [select(AuthSelectors.getSignInError), true], + ]) + .returns(null) + .run(); +}); + +const mockToken = 'test-token'; + +const mockState = { + auth: { + fetchingToken: false, + authToken: mockToken, + fetchTokenError: false, + }, +}; + +it('should return token if already available', () => { + return expectSaga(waitForToken) + .provide([ + [select(AuthSelectors.getFetchingToken), mockState.auth.fetchingToken], + [select(AuthSelectors.getAuthToken), mockState.auth.authToken], + [select(AuthSelectors.getFetchTokenError), mockState.auth.fetchTokenError], + ]) + .returns(mockToken) + .run(); }); + +it('should wait for FETCH_TOKEN_SUCCESS if token is not available', () => { + return expectSaga(waitForToken) + .provide([ + [select(AuthSelectors.getFetchingToken), false], + [select(AuthSelectors.getAuthToken), undefined], + [select(AuthSelectors.getFetchTokenError), false], + [take([AuthActionTypes.FETCH_TOKEN_SUCCESS, AuthActionTypes.FETCH_TOKEN_ERROR]), { type: AuthActionTypes.FETCH_TOKEN_SUCCESS }], + [select(AuthSelectors.getAuthToken), mockToken], + ]) + .returns(undefined) + .run(); +}); + +it('should return null if there is an error', () => { + return expectSaga(waitForToken) + .provide([ + [select(AuthSelectors.getFetchingToken), false], + [select(AuthSelectors.getAuthToken), undefined], + [select(AuthSelectors.getFetchTokenError), true], + ]) + .returns(undefined) + .run(); +}); +}); +
added method name description
added method name description
c98852039c6f3882def6c95e9ca108dc1e57b3e4
--- scripts/updateAndroidProjectConfig.sh @@ -1,3 +1,4 @@ +#!/bin/bash ############################################### # Script for swapping out Android package name
Update updateAndroidProjectConfig.sh
Update updateAndroidProjectConfig.sh
35852c9ee77ddf89b74b50d9133bb8196eb0d73c
--- core/src/startup/AppFlow.ts @@ -87,32 +87,36 @@ export function* appFlow(): any { const pinPromptTask: Task = yield spawn(pinPromptFlow); // Wait for sign out, which could happen in startup flow or anytime after - const data: ReturnType<typeof MeAtWalmartAuthActions.SIGN_OUT_REQUEST> = - yield take(MeAtWalmartAuthActions.SIGN_OUT_REQUEST); + const signOutRequestAction: ReturnType< + typeof MeAtWalmartAuthActions.SIGN_OUT_REQUEST + > = yield take(MeAtWalmartAuthActions.SIGN_OUT_REQUEST); + + // Sign out will cancel the startup flow, pin prompt, and capture event tasks and redirect back to login + yield cancel(startupTask); + yield cancel(pinPromptTask); + yield cancel(captureEventTask); //Navigate to login page first resetTo('Core.Login'); //Wait for login page to be loaded. yield take(SIGN_IN_PAGE_LOADED.type); - if (data?.payload && data.payload !== 'N/A') { - //Show signout prompt and followup instructions + + // If sign out request came with payload, this is the sign out reason. Show the sign out prompt to share this reason with the user. + if (signOutRequestAction?.payload) { + //Show signout prompt with signout reason AllsparkNavigationClient.openModal('Core.ConfirmSignoutPrompt', { - reason: data.payload, + reason: signOutRequestAction.payload, }); - //Wait for confirmation - yield take(SIGN_OUT_REQUEST_ACKNOWLEDGED.type); + // Wait for sign out confirmation. Also possible we get another sign out request action if app is in a + // bad state. In that case, go ahead and sign out. + yield take([ + SIGN_OUT_REQUEST_ACKNOWLEDGED.type, + MeAtWalmartAuthActions.SIGN_OUT_REQUEST, + ]); } - // Sign out will cancel the startup flow & pin prompt task and redirect back to login - yield cancel(startupTask); - yield cancel(pinPromptTask); - - // The capture event task should be complete, but we'll clean it up at this - // time to be safe. Then restart the flow - yield cancel(captureEventTask); - // Handle signout for both hallways. AuthService.signOut(); }
fix: app flow tasks not properly cancelled on sign out request.
fix: app flow tasks not properly cancelled on sign out request.
15152c9eebca6c7faddfd71a1e70672318346d30
--- packages/allspark-utils/src/index.ts @@ -18,3 +18,10 @@ export { retry } from './retry'; export { SessionState } from './sessionState'; export { SharedPromise } from './sharedPromise'; export * from './types'; +export { + WidgetRegistry, + useCreateRegistryComponent, + useCreateRegistryComponents, + createWidgetRegistryHooks, +} from './widgetRegistry'; +export type { WidgetRenderProps } from './widgetRegistry'; --- packages/allspark-utils/src/widgetRegistry.tsx @@ -0,0 +1,77 @@ +import React, { ComponentType } from 'react'; +import { useRegistry } from './hooks'; +import { Registry } from './registry'; + +// --- Widget Registry --- // +export type WidgetRenderProps = Record<string, any>; + +export class WidgetRegistry< + K extends string = string, + T extends WidgetRenderProps = WidgetRenderProps +> extends Registry<K, ComponentType<T>> {} + +// --- Utility Types --- // +// To extract widget render keys/props from generic registry typing +type ExtractWidgetRegistryKeys<Registry> = Registry extends WidgetRegistry< + infer K +> + ? K + : string; + +type ExtractWidgetRegistryProps<Registry> = Registry extends WidgetRegistry< + string, + infer T +> + ? T + : any; + +// --- Widget Registry Hooks --- // + +/** + * @description + * Creates component from widget registry for given id/props + */ +export const useCreateRegistryComponent = <R extends WidgetRegistry<any, any>>( + widgetRegistry: R, + id: ExtractWidgetRegistryKeys<R>, + props: ExtractWidgetRegistryProps<R> +) => { + const registry = useRegistry(widgetRegistry); + const Component = registry.get(id); + + return Component + ? ((<Component {...props} />) as unknown as ComponentType< + ExtractWidgetRegistryProps<R> + >) + : null; +}; + +/** + * @description + * Creates component list for all items in registry for given props + */ +export const useCreateRegistryComponents = <R extends WidgetRegistry<any, any>>( + widgetRegistry: R, + props: ExtractWidgetRegistryProps<R> +) => { + const registry = useRegistry(widgetRegistry); + + return registry.map((Component) => <Component {...props} />) as ComponentType< + ExtractWidgetRegistryProps<R> + >[]; +}; + +/** + * @description + * Creates common hooks for a given widget registry + */ +export const createWidgetRegistryHooks = <R extends WidgetRegistry<any, any>>( + registry: R +) => ({ + useCreateRegistryComponent: ( + id: ExtractWidgetRegistryKeys<R>, + props: ExtractWidgetRegistryProps<R> + ) => useCreateRegistryComponent<R>(registry, id, props), + useCreateRegistryComponents: (props: ExtractWidgetRegistryProps<R>) => + useCreateRegistryComponents<R>(registry, props), +});
chore: add widget registry
chore: add widget registry
12c1512b71589be85fea2b6666e0f6ccc6892a1f
--- package-lock.json @@ -39,7 +39,7 @@ "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", "@walmart/config-components": "4.1.0-rc.4", - "@walmart/copilot-mini-app": "^1.30.0", + "@walmart/copilot-mini-app": "^1.41.0", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.19", "@walmart/core-utils": "~2.0.5", @@ -4934,9 +4934,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "1.30.0", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.30.0.tgz", - "integrity": "sha512-XbfWxjekjAwR4W15HiN4zQnHRoQ4h1vftaaATLTvgi5eVogWFnKPOgUyjoeR6zCCZ711cZBnS2cUjrhGL1zb4A==", + "version": "1.41.0", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.41.0.tgz", + "integrity": "sha512-kC6feglVAF4NAOvjpN19NbycCZ8+hx1yiwQm2AlPEiAGAXipl0UPrPhFm/ONb4co/gh1tuqRsRvdx3402DsFyg==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -25119,9 +25119,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "1.30.0", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.30.0.tgz", - "integrity": "sha512-XbfWxjekjAwR4W15HiN4zQnHRoQ4h1vftaaATLTvgi5eVogWFnKPOgUyjoeR6zCCZ711cZBnS2cUjrhGL1zb4A==" + "version": "1.41.0", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.41.0.tgz", + "integrity": "sha512-kC6feglVAF4NAOvjpN19NbycCZ8+hx1yiwQm2AlPEiAGAXipl0UPrPhFm/ONb4co/gh1tuqRsRvdx3402DsFyg==" }, "@walmart/core-services": { "version": "2.0.19", --- package.json @@ -81,7 +81,7 @@ "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", "@walmart/config-components": "4.1.0-rc.4", - "@walmart/copilot-mini-app": "^1.30.0", + "@walmart/copilot-mini-app": "^1.41.0", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.19", "@walmart/core-utils": "~2.0.5",
chore: bump copilot app
chore: bump copilot app
d5e1d5ccfced456f466b167aadeb12028563456e
--- packages/allspark-foundation/__tests__/Site/saga.test.ts @@ -128,41 +128,75 @@ describe('waitForHomeSiteFetch Saga', () => { jest.clearAllMocks(); }); + const selectLoadingEffect = { + type: 'SELECT', + payload: { + args: [], + selector: SiteSelectors.getHomeSiteLoading, + }, + }; + + const selectLoadedEffect = { + type: 'SELECT', + payload: { + args: [], + selector: SiteSelectors.getHomeSiteLoaded, + }, + }; + + const selectErrorEffect = { + type: 'SELECT', + payload: { + args: [], + selector: SiteSelectors.getHomeSiteError, + }, + }; + + const expectedTakeEffect = { + type: 'TAKE', + payload: { + pattern: [ + SiteActionTypes.HOME_SITE_SUCCESS, + SiteActionTypes.HOME_SITE_ERROR, + ], + }, + }; + it('should handle errors from home site fetch service', () => { - const selectLoadingEffect = { - type: 'SELECT', - payload: { - args: [], - selector: SiteSelectors.getHomeSiteLoading, - }, - }; + const generator = waitForHomeSiteFetch(); - const selectLoadedEffect = { - type: 'SELECT', + expect(generator.next().value).toMatchObject({ + type: selectLoadingEffect.type, payload: { - args: [], - selector: SiteSelectors.getHomeSiteLoaded, + args: selectLoadingEffect.payload.args, + selector: expect.any(Function), }, - }; + }); - const selectErrorEffect = { - type: 'SELECT', + expect(generator.next(true).value).toMatchObject({ + type: selectLoadedEffect.type, payload: { - args: [], - selector: SiteSelectors.getHomeSiteError, + args: selectLoadedEffect.payload.args, + selector: expect.any(Function), }, - }; + }); - const expectedTakeEffect = { - type: 'TAKE', + expect(generator.next(false).value).toMatchObject({ + type: selectErrorEffect.type, payload: { - pattern: [ - SiteActionTypes.HOME_SITE_SUCCESS, - SiteActionTypes.HOME_SITE_ERROR, - ], + args: selectErrorEffect.payload.args, + selector: expect.any(Function), }, - }; + }); + expect(generator.next(false).value).toMatchObject(expectedTakeEffect); + expect( + generator.next({ type: SiteActionTypes.HOME_SITE_SUCCESS }).value + ).toEqual(select(SiteSelectors.getHomeSiteData)); + expect(generator.next(mockSite).done).toBe(true); + expect(generator.next().value).toEqual(undefined); + }); + it('should handle not loading, but not loaded with no errors', () => { const generator = waitForHomeSiteFetch(); expect(generator.next().value).toMatchObject({ @@ -173,7 +207,7 @@ describe('waitForHomeSiteFetch Saga', () => { }, }); - expect(generator.next(true).value).toMatchObject({ + expect(generator.next(false).value).toMatchObject({ type: selectLoadedEffect.type, payload: { args: selectLoadedEffect.payload.args, @@ -188,7 +222,7 @@ describe('waitForHomeSiteFetch Saga', () => { selector: expect.any(Function), }, }); - expect(generator.next().value).toMatchObject(expectedTakeEffect); + expect(generator.next(false).value).toMatchObject(expectedTakeEffect); expect( generator.next({ type: SiteActionTypes.HOME_SITE_SUCCESS }).value ).toEqual(select(SiteSelectors.getHomeSiteData)); @@ -202,41 +236,73 @@ describe('waitForWorkingSiteFetch Saga', () => { jest.clearAllMocks(); }); - it('should handle errors from working site fetch service', () => { - const selectLoadingEffect = { - type: 'SELECT', - payload: { - args: [], - selector: SiteSelectors.getWorkingSiteLoading, - }, - }; + const selectLoadingEffect = { + type: 'SELECT', + payload: { + args: [], + selector: SiteSelectors.getWorkingSiteLoading, + }, + }; + + const selectLoadedEffect = { + type: 'SELECT', + payload: { + args: [], + selector: SiteSelectors.getWorkingSiteLoaded, + }, + }; + + const selectErrorEffect = { + type: 'SELECT', + payload: { + args: [], + selector: SiteSelectors.getWorkingSiteError, + }, + }; - const selectLoadedEffect = { - type: 'SELECT', + const expectedTakeEffect = { + type: 'TAKE', + payload: { + pattern: [ + SiteActionTypes.WORKING_SITE_SUCCESS, + SiteActionTypes.WORKING_SITE_ERROR, + ], + }, + }; + + it('should handle errors from working site fetch service', () => { + const generator = waitForWorkingSiteFetch(); + expect(generator.next().value).toMatchObject({ + type: selectLoadingEffect.type, payload: { - args: [], - selector: SiteSelectors.getWorkingSiteLoaded, + args: selectLoadingEffect.payload.args, + selector: expect.any(Function), }, - }; + }); - const selectErrorEffect = { - type: 'SELECT', + expect(generator.next(true).value).toMatchObject({ + type: selectLoadedEffect.type, payload: { - args: [], - selector: SiteSelectors.getWorkingSiteError, + args: selectLoadedEffect.payload.args, + selector: expect.any(Function), }, - }; + }); - const expectedTakeEffect = { - type: 'TAKE', + expect(generator.next(false).value).toMatchObject({ + type: selectErrorEffect.type, payload: { - pattern: [ - SiteActionTypes.WORKING_SITE_SUCCESS, - SiteActionTypes.WORKING_SITE_ERROR, - ], + args: selectErrorEffect.payload.args, + selector: expect.any(Function), }, - }; - + }); + expect(generator.next().value).toMatchObject(expectedTakeEffect); + expect( + generator.next({ type: SiteActionTypes.WORKING_SITE_SUCCESS }).value + ).toEqual(select(SiteSelectors.getWorkingSiteData)); + expect(generator.next(mockSite).done).toBe(true); + expect(generator.next().value).toEqual(undefined); + }); + it('should handle not loading, but not loaded with no errors', () => { const generator = waitForWorkingSiteFetch(); expect(generator.next().value).toMatchObject({ type: selectLoadingEffect.type, @@ -246,7 +312,7 @@ describe('waitForWorkingSiteFetch Saga', () => { }, }); - expect(generator.next(true).value).toMatchObject({ + expect(generator.next(false).value).toMatchObject({ type: selectLoadedEffect.type, payload: { args: selectLoadedEffect.payload.args, --- packages/allspark-foundation/__tests__/Site/selectors.test.tsx @@ -1,4 +1,4 @@ -import { createAddressString, createCoordinates, divisionIsStore } from '../../src/Site/selectors'; +import { createAddressString, createCoordinates, divisionIsStore, divisionIsDC } from '../../src/Site/selectors'; describe('Address and Location Functions', () => { let address = { @@ -51,4 +51,12 @@ describe('Address and Location Functions', () => { const STORE_DIVISION_CODE = 'STORE_CODE'; expect(divisionIsStore(STORE_DIVISION_CODE)).toBe(false); }); + + //Tests for divisionIsDC + it('should return true if divisionCode matches DC_DIVISION_CODE', () => { + expect(divisionIsDC('7')).toBe(true); + }); + it('should return false if divisionCode does not match DC_DIVISION_CODE', () => { + expect(divisionIsDC('44')).toBe(false); + }); }); --- packages/allspark-foundation/src/Site/selectors.ts @@ -167,7 +167,7 @@ export const createCoordinates = (location?: Location) => { : undefined; }; const DC_DIVISION_CODE = '7'; -const divisionIsDC = (divisionCode?: string) => +export const divisionIsDC = (divisionCode?: string) => divisionCode === DC_DIVISION_CODE; const STORE_DIVISION_CODE = '1';
test: Site coverage for selectors and sagas
test: Site coverage for selectors and sagas
4e705ae741bc15fa1d1f56d1afd5901c02a4b308
--- packages/allspark-utils/src/index.ts @@ -11,6 +11,7 @@ export { getCorrelationId } from './getCorrelationId'; export { getScaledImageHeight } from './getScaledImageHeight'; export * from './hooks'; export { noop } from './noop'; +export { Queue } from './queue'; export { Registry } from './registry'; export { retry } from './retry'; export * from './types'; --- packages/allspark-utils/src/queue.ts @@ -0,0 +1,19 @@ +export const Queue = <T extends any>(initial: T[] = []) => { + const queue: T[] = initial; + + const length = () => { + return queue.length; + }; + + const enqueue = (item: T) => { + queue.push(item); + }; + + const flush = (callback: (item: T) => void) => { + while (queue.length > 0) { + callback(queue.shift()!); + } + }; + + return { length, enqueue, flush, forEach: queue.forEach.bind(queue) }; +};
feat: add queue to utils
feat: add queue to utils
b0e236b5f872f059aef7c6a32060a21ba6c3f7ea
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.35", "@walmart/metrics-mini-app": "0.9.33", - "@walmart/mod-flex-mini-app": "^1.3.8", + "@walmart/mod-flex-mini-app": "1.3.9", "@walmart/moment-walmart": "1.0.4", "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.7", @@ -5389,9 +5389,9 @@ "license": "MIT" }, "node_modules/@walmart/mod-flex-mini-app": { - "version": "1.3.8", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.8.tgz", - "integrity": "sha512-G7mLfDIKZgiM7Y+ld1hSw8J43uHJblFHzadAom5ZZLVtVKgU4COJWSQWtHrqxwvqza0JDzEjGOQyEpizHklX1w==", + "version": "1.3.9", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.9.tgz", + "integrity": "sha512-v2goguOpQNLSl7Jrx/+e5bN67OGN5e/DyTmK1SN6oTKkkt0/Uq6VFAnai7Zd6IdqTd6IEiu3Ond4JXHLyoukvg==", "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", "@react-native-picker/picker": "^2.4.2", @@ -5428,7 +5428,6 @@ "react-native-tab-view": "^3.1.1", "react-native-vector-icons": "^7.0.0", "react-native-webview": "^11.18.2", - "react-native-wm-barcode": "^2.36.3", "react-native-wm-telemetry": "^0.3.0", "react-redux": "^7.2.1", "redux": "^4.0.5", @@ -24920,9 +24919,9 @@ } }, "@walmart/mod-flex-mini-app": { - "version": "1.3.8", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.8.tgz", - "integrity": "sha512-G7mLfDIKZgiM7Y+ld1hSw8J43uHJblFHzadAom5ZZLVtVKgU4COJWSQWtHrqxwvqza0JDzEjGOQyEpizHklX1w==" + "version": "1.3.9", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.3.9.tgz", + "integrity": "sha512-v2goguOpQNLSl7Jrx/+e5bN67OGN5e/DyTmK1SN6oTKkkt0/Uq6VFAnai7Zd6IdqTd6IEiu3Ond4JXHLyoukvg==" }, "@walmart/moment-walmart": { "version": "1.0.4" --- package.json @@ -101,7 +101,7 @@ "@walmart/manager-approvals-miniapp": "0.1.2", "@walmart/me-field-mini-app": "1.1.35", "@walmart/metrics-mini-app": "0.9.33", - "@walmart/mod-flex-mini-app": "^1.3.8", + "@walmart/mod-flex-mini-app": "1.3.9", "@walmart/moment-walmart": "1.0.4", "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.4",
Bumping modflex to 1.3.9
Bumping modflex to 1.3.9
051bf25070c7a02032a1bd93d89b7421506eef19
--- src/home/components/GreetingRowV2/ClockComponent.tsx @@ -19,7 +19,7 @@ const styles = StyleSheet.create({ backgroundColor: '#004F9A', borderWidth: 1, borderColor: '#2E2F32', - height: 48, + height: 44, }, clockIconContainer: { justifyContent: 'center',
fix(header): clock component
fix(header): clock component
d335f3dd524e024e62310872623f7f5f371d4239
--- package-lock.json @@ -38,7 +38,7 @@ "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", - "@walmart/config-components": "4.1.0-rc.4", + "@walmart/config-components": "4.2.0-98-71740ca", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.11.0", "@walmart/core-utils": "~2.0.5", @@ -52,7 +52,7 @@ "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.6", - "@walmart/impersonation-mini-app": "1.19.1", + "@walmart/impersonation-mini-app": "1.20.0-145-f14b734", "@walmart/ims-print-services-ui": "2.4.1", "@walmart/inbox-mini-app": "0.84.1", "@walmart/iteminfo-mini-app": "7.3.4", @@ -4917,7 +4917,9 @@ } }, "node_modules/@walmart/config-components": { - "version": "4.1.0-rc.4", + "version": "4.2.0-98-71740ca", + "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-71740ca.tgz", + "integrity": "sha512-WzE7Mb3ZzDc8kAib8Fcstt2TIWOPYhRzWB+ZzE03iI0LXyN/DL/c9BbRII4dBDLNOlTkLI+FSms7uoLNelpKNw==", "dependencies": { "reduxsauce": "^1.2.1", "reselect": "^4.1.5" @@ -4925,7 +4927,8 @@ "peerDependencies": { "@react-native-firebase/app": ">=15.1.1", "@react-native-firebase/database": ">=15.1.1", - "@walmart/core-services": "^1.3.6", + "@walmart/core-services": "~2.0.15", + "@walmart/core-services-allspark": "~2.10.3", "@walmart/core-utils": "^1.1.2", "react": "^18.2.0", "react-native": "~0.70.4", @@ -5272,7 +5275,9 @@ "license": "UNLICENSED" }, "node_modules/@walmart/impersonation-mini-app": { - "version": "1.19.1", + "version": "1.20.0-145-f14b734", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.20.0-145-f14b734.tgz", + "integrity": "sha512-tTXlSz+L9ZgHfBBKcnkzV1uzRsaNWpMFmbIffViF+uUeqcPW2L3h8ya9Gf6JCgwsiXwbcVJwMn7M9XfhXcbo2Q==", "peerDependencies": { "@react-native-community/masked-view": ">=0.1.10", "@react-native-community/picker": ">=1.8.1", @@ -25111,7 +25116,9 @@ "version": "4.0.0" }, "@walmart/config-components": { - "version": "4.1.0-rc.4", + "version": "4.2.0-98-71740ca", + "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-71740ca.tgz", + "integrity": "sha512-WzE7Mb3ZzDc8kAib8Fcstt2TIWOPYhRzWB+ZzE03iI0LXyN/DL/c9BbRII4dBDLNOlTkLI+FSms7uoLNelpKNw==", "requires": { "reduxsauce": "^1.2.1", "reselect": "^4.1.5" @@ -25223,7 +25230,9 @@ } }, "@walmart/impersonation-mini-app": { - "version": "1.19.1" + "version": "1.20.0-145-f14b734", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.20.0-145-f14b734.tgz", + "integrity": "sha512-tTXlSz+L9ZgHfBBKcnkzV1uzRsaNWpMFmbIffViF+uUeqcPW2L3h8ya9Gf6JCgwsiXwbcVJwMn7M9XfhXcbo2Q==" }, "@walmart/ims-print-services-ui": { "version": "2.4.1" --- package.json @@ -80,7 +80,7 @@ "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", - "@walmart/config-components": "4.1.0-rc.4", + "@walmart/config-components": "4.2.0-98-71740ca", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.11.0", "@walmart/core-utils": "~2.0.5", @@ -94,7 +94,7 @@ "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.6", - "@walmart/impersonation-mini-app": "1.19.1", + "@walmart/impersonation-mini-app": "1.20.0-145-f14b734", "@walmart/ims-print-services-ui": "2.4.1", "@walmart/inbox-mini-app": "0.84.1", "@walmart/iteminfo-mini-app": "7.3.4",
platform components upgrade
platform components upgrade
3667c8fe7f10810cc519b948a10d398bcd708d9a
--- __tests__/containers/WarningBannerTest.tsx @@ -0,0 +1,30 @@ +import React, {useState} from 'react'; +import {renderWithProviders} from '../harness'; +import {WarningBanner} from '../../src/containers/WarningBanner'; +import {useSelector} from 'react-redux'; + +jest.mock('react', () => ({ + ...jest.requireActual('react'), + useState: jest.fn(), +})); + +jest.mock('react-redux', () => ({ + ...jest.requireActual('react-redux'), + useSelector: jest.fn(), +})); + +describe('WarningBanner component', () => { + it('should render when dismissBanner is false', () => { + (useSelector as jest.Mock).mockReturnValue(true); + (useState as jest.Mock).mockReturnValue([false, jest.fn()]); + const warningBanner = renderWithProviders(<WarningBanner />); + expect(warningBanner.getByTestId('warningBanner')).toBeDefined(); + }); + + it('should not render when dismissBanner is true', () => { + (useSelector as jest.Mock).mockReturnValue(true); + (useState as jest.Mock).mockReturnValue([true, jest.fn()]); + const warningBanner = renderWithProviders(<WarningBanner />); + expect(warningBanner.queryByTestId('warningBanner')).toBeNull(); + }); +}); --- src/containers/WarningBanner.tsx @@ -13,7 +13,7 @@ export const WarningBanner = () => { const messageContent = useSelector(warningMessageContent); const onDismissBanner = () => setDismissBanner(true); return showWarningBanner && !dismissBanner ? ( - <Banner variant='warning' onClose={onDismissBanner}> + <Banner variant='warning' onClose={onDismissBanner} testID='warningBanner'> <Text>{messageContent}</Text> </Banner> ) : (
Adding Warning banner test coverage
Adding Warning banner test coverage
beeab3cf0b36a067fbbb1cf8f2e6c06af15d5600
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts @@ -71,6 +71,13 @@ export const enUS = { cancel: 'Cancel', }, }, + updateTeamsModal: { + title: 'Update teams', + button: { + apply: 'Apply', + cancel: 'Cancel', + }, + }, }; export const esMX: typeof enUS = { @@ -147,4 +154,11 @@ export const esMX: typeof enUS = { cancel: 'Cancel', }, }, + updateTeamsModal: { + title: 'Update teams', + button: { + apply: 'Apply', + cancel: 'Cancel', + }, + }, };
feat(ui): cleanup and other enhancements
feat(ui): cleanup and other enhancements
8420f222f6fd815166671c5ddf4345cac5c0a7c1
--- __tests__/hooks/hooks.test.ts @@ -6,11 +6,19 @@ jest.mock('react-redux', () => ({ useSelector: jest.fn(() => false) })); +jest.mock('@walmart/allspark-foundation', () => ({ + useAllsparkSelector: jest.fn(() => false) +})); + jest.mock('@walmart/allspark-foundation-hub', () => ({ useUserCanSeeHub: jest.fn(() => true) })); describe('hooks tests', () => { + afterEach(() => { + jest.clearAllMocks(); + }); + it('tests the useUserCanSeeTeamHub hook', () => { let result = useUserCanSeeTeamHub(); expect(result).toBeFalsy(); --- src/index.tsx @@ -10,12 +10,6 @@ import {MyTeamHubWithBanner} from './myteam-hub'; export * from './shared'; - -// Export screens for external use -export * from './screens'; -// Export MyTeam Hub components -export * from './myteam-hub'; - export default MyTeamFeature.createModule({ name: FEATURE_ID, tags: [FeatureTags.associate], --- src/myteam-hub/components/MyTeamAssociateExpHub.tsx @@ -3,11 +3,12 @@ * @description MyTeam-specific Associate Experience Hub integration * * This component integrates the Associate Experience Hub into the MyTeam mini app, - * providing user type-aware hub rendering based on hourly vs salaried associates. - * It automatically detects user type and renders the appropriate hub configuration. + * providing enhanced user type-aware hub rendering based on multiple user types + * (salaried, team leads, people leads). It automatically detects user authorization + * and renders the appropriate hub configuration. * * Features: - * - Automatic user type detection (hourly vs salaried) + * - Enhanced user type detection (salaried, team leads, people leads) * - Site type awareness (DC vs Store) * - MyTeam-specific container ID for widget management * - Error handling and fallback states @@ -16,9 +17,10 @@ import React from 'react'; import {View, StyleSheet} from 'react-native'; -import {UserSelectors} from '@walmart/allspark-foundation/User'; -import {AllsparkSharedComponents, SiteSelectors, useAllsparkSelector} from '@walmart/allspark-foundation'; +import {SiteSelectors, useAllsparkSelector} from '@walmart/allspark-foundation'; +import {AllsparkSharedComponents} from '@walmart/allspark-foundation'; import {myTeamTelemetry} from '../../common/telemetry'; +import {useUserCanSeeHubV2} from '@walmart/allspark-foundation-hub'; export interface MyTeamAssociateExpHubProps { /** Container ID for widget management (optional) */ @@ -39,7 +41,7 @@ export interface MyTeamAssociateExpHubProps { * It provides a seamless integration of hub functionality into the MyTeam experience. * * @key_features - * - **User Type Detection**: Automatically detects and adapts to hourly/salaried users + * - **Enhanced User Type Detection**: Automatically detects and adapts to multiple user types * - **Site Awareness**: Handles both Distribution Center and Store site types * - **Widget Management**: Provides drag-drop widget management capabilities * - **Telemetry**: Tracks user interactions and hub usage patterns @@ -57,9 +59,9 @@ export const MyTeamAssociateExpHub: React.FC<MyTeamAssociateExpHubProps> = ({ hubProps: hubProps = {}, }) => { // Get user and site information - const isUserSalaried = useAllsparkSelector(UserSelectors.getIsUserSalaried); + const userCanSeeHub = useUserCanSeeHubV2(); const isSiteDC = useAllsparkSelector(SiteSelectors.getWorkingSiteIsDC); - const userType = isUserSalaried ? 'salaried' : 'hourly'; + const userType = userCanSeeHub ? 'authorized' : 'unauthorized'; // Log hub rendering for analytics React.useEffect(() => { --- src/myteam-hub/components/MyTeamUserTypeHub.tsx @@ -2,9 +2,10 @@ * @file MyTeamUserTypeHub.tsx * @description User type-aware hub component for MyTeam tab screen * - * This component provides the exact user type-based rendering logic requested, - * automatically detecting if the user is hourly or salaried and rendering - * the appropriate Associate Experience Hub with different container IDs. + * This component provides enhanced user type-based rendering logic, + * automatically detecting if the user has hub access based on multiple criteria + * (salaried, team lead, people lead) and rendering the appropriate Associate + * Experience Hub with different container IDs. * * Usage: * ```tsx @@ -16,22 +17,22 @@ */ import React from 'react'; -import {UserSelectors, useAllsparkSelector} from '@walmart/allspark-foundation'; import {MyTeamAssociateExpHub} from './MyTeamAssociateExpHub'; +import {useUserCanSeeHubV2} from '@walmart/allspark-foundation-hub'; /** * MyTeam User Type Hub Component * - * This component implements the exact logic requested: - * - Detects user type (hourly vs salaried) using UserSelectors - * - Renders Associate Experience Hub with different container IDs based on user type + * This component implements enhanced user type detection: + * - Uses useUserCanSeeHubV2 to check multiple user types (salaried, team leads, people leads) + * - Renders Associate Experience Hub with different container IDs based on user authorization * - Provides a clean export for use in tab screens */ export const MyTeamUserTypeHub: React.FC = () => { - // MyTeam renders based on user type - const isUserSalaried = useAllsparkSelector(UserSelectors.getIsUserSalaried); + // MyTeam renders based on user type using enhanced hook + const userCanSeeHub = useUserCanSeeHubV2(); - return isUserSalaried ? ( + return userCanSeeHub ? ( <MyTeamAssociateExpHub containerId="MyTeam.SalariedHub" />
feat(ui): update user can see hub option
feat(ui): update user can see hub option
876c12d79bc6c230db9ce5cd1e96330b6f4637df
--- package.json @@ -79,7 +79,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.74", "@walmart/attendance-mini-app": "0.86.0", - "@walmart/compass-sdk-rn": "3.23.0", + "@walmart/compass-sdk-rn": "3.24.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.15",
Update package.json
Update package.json
853e100a28f4488926c6e724fb9a238d75cd4e90
--- package.json @@ -164,6 +164,7 @@ "expo-av": "~13.10.6", "expo-image": "~1.10.6", "expo-sharing": "~11.10.0", + "expo-store-review": "~6.8.3", "i18n-iso-countries": "^7.5.0", "i18next": "^23.6.0", "intl": "^1.2.5", --- targets/US/package.json @@ -166,7 +166,7 @@ "expo-image": "~1.10.6", "expo-linear-gradient": "~12.7.2", "expo-sharing": "~11.10.0", - "expo-store-review": "^7.0.2", + "expo-store-review": "~6.8.3", "i18n-iso-countries": "^7.5.0", "i18next": "^23.6.0", "intl": "^1.2.5", --- yarn.lock @@ -7078,7 +7078,7 @@ __metadata: expo-image: "npm:~1.10.6" expo-linear-gradient: "npm:~12.7.2" expo-sharing: "npm:~11.10.0" - expo-store-review: "npm:^7.0.2" + expo-store-review: "npm:~6.8.3" i18n-iso-countries: "npm:^7.5.0" i18next: "npm:^23.6.0" intl: "npm:^1.2.5" @@ -12169,12 +12169,12 @@ __metadata: languageName: node linkType: hard -"expo-store-review@npm:^7.0.2": - version: 7.0.2 - resolution: "expo-store-review@npm:7.0.2" +"expo-store-review@npm:~6.8.3": + version: 6.8.3 + resolution: "expo-store-review@npm:6.8.3" peerDependencies: expo: "*" - checksum: 10c0/8a2e0622a0876bcdfdedcfda8a518cfa04c568007ff02d89e2409de00df00c8783fdf668aafada67bb1788b88e87113885355c2a0d5d07499d39bec357ca71f3 + checksum: 10c0/c20ec02084aa44f3277097b464756a319ed08048e4b83c4cc3f9ced719ff666dbf422c038e88ba52fba87589f98f5ae1ff82aff256b3dde721c340244788a445 languageName: node linkType: hard
chore: downgrade expo-store-review to be compatible for android
chore: downgrade expo-store-review to be compatible for android
1f681f7ce9949b5632def8a9c0399d6e49ee8abb
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +## [2.8.2](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.8.1...v2.8.2) (2024-07-16) + + +### Bug Fixes + +* **ui:** added whitespace to yml ([370e516](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/370e5168a2e3e68104b206ede891d1f662faf608)) + ## [2.8.1](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.8.0...v2.8.1) (2024-07-12) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.8.1", + "version": "2.8.2", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.8.2 [skip ci]
chore(release): 2.8.2 [skip ci] ## [2.8.2](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.8.1...v2.8.2) (2024-07-16) ### Bug Fixes * **ui:** added whitespace to yml ([370e516](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/370e5168a2e3e68104b206ede891d1f662faf608))
a13f8e235907bcacf96466a591e3f8cbd7032fd0
--- packages/associate-exp-hub-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. +## [2.18.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.18.0...@walmart/associate-exp-hub-hub@2.18.1) (2025-12-12) + +**Note:** Version bump only for package @walmart/associate-exp-hub-hub + # [2.18.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.17.0...@walmart/associate-exp-hub-hub@2.18.0) (2025-12-12) ### Features --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.18.0", + "version": "2.18.1", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.11.1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.11.0...@walmart/associate-exp-hub-mini-app@1.11.1) (2025-12-12) + +**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app + # [1.11.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.10.1...@walmart/associate-exp-hub-mini-app@1.11.0) (2025-12-12) ### Features --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.11.0", + "version": "1.11.1", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.20.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.20.0...@walmart/associate-exp-hub-team-switcher@2.20.1) (2025-12-12) + +**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher + # [2.20.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.19.1...@walmart/associate-exp-hub-team-switcher@2.20.0) (2025-12-12) ### Features --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.20.0", + "version": "2.20.1", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.18.1 - @walmart/associate-exp-hub-mini-app@1.11.1 - @walmart/associate-exp-hub-team-switcher@2.20.1
35ca8fb803d20d18f851d0538b3e225d81400c9b
--- __tests__/components/hoc/index.test.ts @@ -12,7 +12,7 @@ describe('components/hoc/index.ts', () => { it('should have no undefined exports', () => { const exportKeys = Object.keys(IndexExports); exportKeys.forEach(key => { - expect(IndexExports[key]).toBeDefined(); + expect((IndexExports as any)[key]).toBeDefined(); }); }); -}); \ No newline at end of file +}); --- package.json @@ -38,6 +38,7 @@ "@testing-library/jest-native": "5.4.3", "@testing-library/react-hooks": "^8.0.1", "@testing-library/react-native": "12.3.2", + "eslint": "^8.19.0", "husky": "^9.1.7", "jest": "^29.6.3", "lerna": "^7.0.0", --- yarn.lock @@ -6816,6 +6816,7 @@ __metadata: "@testing-library/jest-native": "npm:5.4.3" "@testing-library/react-hooks": "npm:^8.0.1" "@testing-library/react-native": "npm:12.3.2" + eslint: "npm:^8.19.0" husky: "npm:^9.1.7" jest: "npm:^29.6.3" lerna: "npm:^7.0.0"
chore(ui): update tests, graphql and versions
chore(ui): update tests, graphql and versions
8257de355daea36adba9b85afeeff83fff57c434
--- package-lock.json @@ -5332,9 +5332,9 @@ "integrity": "sha512-7d62eBeJoUnnl5KOoDe+aOxU7C6VpkCM7Bl5iRgg1TMMqmUDM8iI2YDPRppU7hBr134Zbl5aVEGyR/IBQrPRxA==" }, "@walmart/me-field-mini-app": { - "version": "1.1.26", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.26.tgz", - "integrity": "sha512-SmSBNNtoMqkKFkxHoSF3wvYBP52/KmSiP7rtZZKFQAxBi05wefqk4kMW4jl6Z+Y9TU9+7/70T/aL0CE9tbK8lw==" + "version": "1.1.27", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.27.tgz", + "integrity": "sha512-JYs3oqJzTkPw78OumctpLx9Unsd1GXAeeYkuIdj97kP2sY9Uno4xpsBSubS4M+65wYKkHaPIhKVLaNFmTPDrHg==" }, "@walmart/metrics-mini-app": { "version": "0.9.20", --- package.json @@ -98,7 +98,7 @@ "@walmart/inbox-mini-app": "0.57.0", "@walmart/iteminfo-mini-app": "5.1.4", "@walmart/manager-approvals-miniapp": "0.1.1", - "@walmart/me-field-mini-app": "1.1.26", + "@walmart/me-field-mini-app": "1.1.27", "@walmart/metrics-mini-app": "0.9.20", "@walmart/mod-flex-mini-app": "1.2.2", "@walmart/moment-walmart": "1.0.4",
feat: :package: Bump learning mini app version to 1.1.27
feat: :package: Bump learning mini app version to 1.1.27
dcf53e719e397b20a31ab4884cbfd9bb32bf0e5e
--- example/src/teamHub/screens/index.ts @@ -3,12 +3,14 @@ import {TestModal} from './modal'; import {OnboardingScreen} from './onboarding'; import {HomeScreen} from './screen'; import {FeatureStack} from './stack'; +import {TeamSelectionScreen} from './teamSelection'; export const TeamHubScreens = { 'teamHub.home': HomeScreen, 'teamHub.onboarding': OnboardingScreen, 'teamHub.container': ContainerScreen, 'teamHub.stack': FeatureStack, + 'teamHub.teamSelection': TeamSelectionScreen, }; export const TeamHubModals = { --- example/src/teamHub/screens/screen.tsx @@ -30,6 +30,14 @@ export const HomeScreen = TeamHub.createScreen( }> Team Onboarding </Button> + <Button + variant="primary" + UNSAFE_style={{marginBottom: 10}} + onPress={() => + AllsparkNavigationClient.navigate('teamHub.teamSelection') + }> + Team Selection + </Button> <Button variant="primary" UNSAFE_style={{marginBottom: 10}} --- example/src/teamHub/screens/teamSelection.tsx @@ -0,0 +1,30 @@ +import {useNavigation} from '@react-navigation/native'; +import {useEffect} from 'react'; +import {TeamHub} from '../feature'; +import {TeamHubLogger, TeamHubTelemetry} from '../services'; +import {TeamSelection} from '../tempComponentForTesting/TeamSelection'; + +export const TeamSelectionScreen = TeamHub.createScreen( + () => { + const navigation = useNavigation(); + + useEffect(() => { + TeamHubLogger.info('test feature log - team selection screen loaded'); + TeamHubTelemetry.logEvent('test_event', { + param1: 'true', + }); + navigation.setOptions({title: 'Team Selection'}); + }, []); + + return <></>; + }, + { + options: { + title: 'Team Selection', + animationEnabled: false, + }, + linking: { + path: 'teamSelection/:userType', + }, + }, +); --- example/src/teamHub/tempComponentForTesting/TeamSelection.tsx
feat: added team selection tab in onboarding feature screen
feat: added team selection tab in onboarding feature screen
0973a278418a05cfaa4a27e193b395ec01fecadb
--- src/rbacConfig/utility/updateMeganavData.tsx @@ -2,20 +2,20 @@ import Config from '../../../env'; import {RbacConfigState} from '../types'; import _ from 'lodash'; -const navTypeToIndex:any = { +const navTypeToIndex: any = { QUICKACTION: 1, BOTTOMNAV: 2, SIDENAV: 3, }; -const RbacPolicyLength:any = { - QUICKACTION:2, //Ex: if splitRbacPolicy is : | QuickAction| AskSam|->Here the length of array is 2 - BOTTOMNAV:2, //Ex: if splitRbacPolicy is : | Bottomnav| Tasks| - SIDENAV:3 //Ex: if splitRbacPolicy is : | Sidenav| Availability| ManagerApproval| -} +const RbacPolicyLength: any = { + QUICKACTION: 2, //Ex: if splitRbacPolicy is : | QuickAction| AskSam|->Here the length of array is 2 + BOTTOMNAV: 2, //Ex: if splitRbacPolicy is : | Bottomnav| Tasks| + SIDENAV: 3, //Ex: if splitRbacPolicy is : | Sidenav| Availability| ManagerApproval| +}; -export const sanitize = (value:string) => { +export const sanitize = (value: string) => { return value?.replace(/[-_' ']/g, '')?.toUpperCase(); -} +}; /* In this function we iterate over our MegaNavData and try to find out the particular meganNavData index matching with the @@ -38,21 +38,16 @@ export const compareData = ( level: number, menus: any, ) => { - for (let i = 0; i < menus.length; i++) { if ( - !( - navIndex === 3 && - level === 2 && - menus[i].menuType === 'SEPARATOR' - ) && - sanitize(menus[i].id) === splitRbacPolicy[level] + !(navIndex === 3 && level === 2 && menus[i].menuType === 'SEPARATOR') && + sanitize(menus[i].id) === splitRbacPolicy[level] ) { /*-----------We have got a matching data here. Refer the above comments----------------*/ if ( - splitRbacPolicy.length === RbacPolicyLength['QUICKACTION'] || - splitRbacPolicy.length === RbacPolicyLength['BOTTOMNAV'] || - (splitRbacPolicy.length === RbacPolicyLength['SIDENAV'] && level === 2) + splitRbacPolicy.length === RbacPolicyLength.QUICKACTION || + splitRbacPolicy.length === RbacPolicyLength.BOTTOMNAV || + (splitRbacPolicy.length === RbacPolicyLength.SIDENAV && level === 2) ) { menus[i].enabled = false; return meganavClonedData; @@ -61,7 +56,13 @@ export const compareData = ( /*-----------Only in the case of Sidenav in which mainMenu is enabled----------------*/ level++; menus = meganavClonedData.data.data[navIndex].navs[i].subMenus; - compareData(splitRbacPolicy, meganavClonedData, navIndex, level, menus); + compareData( + splitRbacPolicy, + meganavClonedData, + navIndex, + level, + menus, + ); } else { return meganavClonedData; } @@ -71,9 +72,6 @@ export const compareData = ( return meganavClonedData; }; - - - /* We are updating the meganavData on he bassis of job code. there can be 4 cases possible and we are taking logical AND(&&) of the conditions ------------------------------------------------------------------------------ @@ -102,11 +100,10 @@ const updateMeganavData = (rbacData: RbacConfigState, meganavData: any) => { const rbacPermissions = rbacClonedData?.data[Config.RMA_MEGA_NAV_ID]?.permissions || []; - rbacPermissions.forEach( (policy) => { - + rbacPermissions.forEach((policy) => { const action = policy.a; const RbacPolicy = policy.rn; - const splitRbacPolicy= sanitize(RbacPolicy)?.split('/')||[]; + const splitRbacPolicy = sanitize(RbacPolicy)?.split('/') || []; const [navType] = splitRbacPolicy; /* Now we will iterate over the meganavData depending on wheather we @@ -117,11 +114,16 @@ const updateMeganavData = (rbacData: RbacConfigState, meganavData: any) => { const navIndex = navTypeToIndex[navType]; if (navIndex) { let menus = meganavClonedData.data.data[navIndex].navs; - meganavClonedData = compareData(splitRbacPolicy, meganavClonedData, navIndex, 1, menus ); + meganavClonedData = compareData( + splitRbacPolicy, + meganavClonedData, + navIndex, + 1, + menus, + ); } } - }) - + }); return meganavClonedData; };
Changes done which were suggested
Changes done which were suggested
924a4a518689575978abbcaeece1c4782c0bc98c
--- __tests__/components/ErrorComponentTest.tsx @@ -0,0 +1,18 @@ +import React from 'react'; +import {renderWithProviders} from '../harness'; +import {ErrorComponent} from '../../src/components/ErrorComponent'; + +describe('ErrorComponent tests', () => { + it('ErrorComponent snapshot test', () => { + const errorComponent = renderWithProviders(<ErrorComponent />); + expect(errorComponent).toMatchSnapshot(); + }); + + it('should render ErrorComponent', () => { + const errorComponent = renderWithProviders(<ErrorComponent />); + const errorMessage = errorComponent.getByText('Connection lost'); + const errorView = errorComponent.getByTestId('errorView'); + expect(errorView).toBeDefined(); + expect(errorMessage).toBeDefined(); + }); +}); --- __tests__/components/__snapshots__/ErrorComponentTest.tsx.snap @@ -0,0 +1,102 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ErrorComponent tests ErrorComponent snapshot test 1`] = ` +<View + style={ + { + "padding": 15, + } + } + testID="errorView" +> + <View + style={ + [ + { + "alignItems": "flex-start", + "borderBottomWidth": 1, + "borderLeftWidth": 4, + "borderRadius": 4, + "borderRightWidth": 1, + "borderTopWidth": 1, + "flexDirection": "row", + "paddingLeft": 12, + "paddingRight": 15, + "paddingVertical": 6, + }, + { + "backgroundColor": "#fce8e9", + "borderBottomColor": "#ef8e92", + "borderLeftColor": "#de1c24", + "borderRightColor": "#ef8e92", + "borderTopColor": "#ef8e92", + }, + undefined, + ] + } + testID="Alert" + > + <View + style={ + { + "marginRight": 8, + "marginTop": 2, + } + } + > + <Image + accessibilityRole="image" + source={ + { + "testUri": "../../@walmart/gtp-shared-icons/assets/images/icons/ExclamationCircle-16.png", + } + } + style={ + [ + { + "height": 16, + "tintColor": "#9b1419", + "width": 16, + }, + {}, + ] + } + testID="ExclamationCircleIcon" + /> + </View> + <View + style={ + { + "alignItems": "flex-start", + "flex": 1, + "flexDirection": "row", + "flexWrap": "wrap", + "justifyContent": "flex-start", + } + } + > + <Text + accessibilityRole="alert" + style={ + [ + { + "fontFamily": "Bogle", + "fontSize": 14, + "fontStyle": "normal", + "fontWeight": "400", + "lineHeight": 20, + "marginRight": 16, + "maxWidth": "95%", + }, + { + "color": "#9b1419", + }, + ] + } + > + Connection lost + </Text> + </View> + </View> +</View> +`; --- src/components/ErrorComponent.tsx @@ -9,7 +9,7 @@ const styles = StyleSheet.create({ }); export const ErrorComponent = () => { return ( - <View style={styles.errorView}> + <View style={styles.errorView} testID='errorView'> <Alert variant='error' children={'Connection lost'} /> </View> );
Adding ErrorComponent Test Coverage
Adding ErrorComponent Test Coverage
9f4f2ceadbd9f84bbde7d2fa9cf5967d4109477f
--- .looper.yml @@ -98,11 +98,11 @@ flows: publishFromPackage: - call: preparePublish - - (name Publish from Package) HUSKY=0 npx lerna publish from-package --yes + - (name Publish from Package) HUSKY=0 npx lerna publish from-package -registry ${REPOSOLNS_NPM_REPO} --yes publishPrerelease: - call: preparePublish - - (name Publish From Changes) HUSKY_SKIP_HOOKS=1 npx lerna publish --yes --conventional-prerelease + - (name Publish From Changes) HUSKY_SKIP_HOOKS=1 npx lerna publish --registry ${REPOSOLNS_NPM_REPO} --yes --conventional-prerelease publishGraduate: - call: preparePublish --- lerna.json @@ -6,8 +6,7 @@ "publish": { "conventionalCommits": true, "conventionalPrerelease": false, - "message": "chore(publish): publish package", - "registry": "https://npme.walmart.com" + "message": "chore(publish): publish package" }, "version": { "message": "chore(version): updating package version",
chore: update publish URL
chore: update publish URL
f9434bc6b8c87ce15ed3a11eba86057e69d537ac
--- 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.1.33-rc.3", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1", @@ -5803,9 +5803,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.1.33-rc.3", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.3.tgz", + "integrity": "sha512-3Obl7vxzMvJLhXFFJxcHrHZZR6lseS0KibPYEjd2QOrv9eOXoOAcQedUOMknWzVw/6eH7SeY/pasuLbk8aqjNg==", "license": "ISC", "peerDependencies": { "react-native": ">=0.47.1" @@ -25378,9 +25378,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.1.33-rc.3", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.3.tgz", + "integrity": "sha512-3Obl7vxzMvJLhXFFJxcHrHZZR6lseS0KibPYEjd2QOrv9eOXoOAcQedUOMknWzVw/6eH7SeY/pasuLbk8aqjNg==" }, "@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.1.33-rc.3", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1",
Bumping scanner version from 0.1.32 to 0.1.33-rc.3
Bumping scanner version from 0.1.32 to 0.1.33-rc.3
f6957aaef007a64a72f86b63f842cf5241e001de
--- 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
adding the icon file to android
adding the icon file to android
346f023df2d986a30296caedc529ee4c82e7b584
--- package-lock.json @@ -12300,9 +12300,9 @@ "integrity": "sha512-Ls9qiNZzW/OLFoI25wfjjAcrf2DZ975hn2vr6U9gyuxi2nooVbzQeFoQS5vQcbCt9QX5NY8ASEEAtlLdIa6KVg==" }, "react-native-ssmp-sso-allspark": { - "version": "1.0.0", - "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.0.0.tgz", - "integrity": "sha512-gTerWGBbLZYlIj1QS1FXDk3n7AKwg/DgEaFyAV2lbFzvzndamIwGppEd1D5KqTjCru0RVw0hOjIwTA60Fu0YFg==" + "version": "1.0.2", + "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.0.2.tgz", + "integrity": "sha512-pFLFOALEOoeDbiqZH8A79AgpvOMUxW9bi6EKV2mURZMt0VA08E3KKcz0DJTVQJElPhmpb8FhcOFn7hIOA/9JFg==" }, "react-native-sumo-sdk": { "version": "2.7.3-rc.4", --- package.json @@ -95,7 +95,7 @@ "react-native-screens": "^2.10.1", "react-native-sha256": "^1.3.6", "react-native-splash-screen": "^3.2.0", - "react-native-ssmp-sso-allspark": "1.0.0", + "react-native-ssmp-sso-allspark": "1.0.2", "react-native-sumo-sdk": "2.7.3-rc.4", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.15.2",
sso version bump up (#363)
sso version bump up (#363) Co-authored-by: Anukalp Katyal - a0k04qv <Anukalp.Katyal@walmartlabs.com> Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
97aa5806b070c1281a51f7c53999ec3f88562190
--- package-lock.json @@ -5530,9 +5530,9 @@ } }, "@walmart/ui-components": { - "version": "1.4.0-beta.8", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.4.0-beta.8.tgz", - "integrity": "sha512-k9DDQvkMMxEfbh5tl82APXWDWCSQCfecdMTzLEv0j5LApqEuxdxN1plezGmLlOyNXzsv2yRh1odb8AzJ/fM+lA==", + "version": "1.4.0-beta.10", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.4.0-beta.10.tgz", + "integrity": "sha512-jzbUjWg/FTsW7Zpvym4Dk8JbYXfkxrcKfjr81S3sNQO44/j0QkFNSXIH4L4NLcnro+vqdC9PfWSN+DGj4qyP8w==", "requires": { "react-hook-form": "^7.33.1", "react-native-calendars": "1.299.0", --- package.json @@ -116,7 +116,7 @@ "@walmart/shelfavailability-mini-app": "1.2.3", "@walmart/taskit-mini-app": "0.32.0-beta.7", "@walmart/time-clock-mini-app": "0.13.0", - "@walmart/ui-components": "1.4.0-beta.8", + "@walmart/ui-components": "1.4.0-beta.10", "@walmart/welcomeme-mini-app": "0.70.0", "@walmart/wfm-ui": "0.2.19", "axios": "^0.26.1",
update version for ui-component
update version for ui-component
9d2070a86f4bb687367829e2eb0253577c57139e
--- __tests__/components/StatusChipTest.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import {render} from '@testing-library/react-native'; import {StatusChip} from '../../src/components/StatusChip'; import {Associate} from '../../src/types'; +import {renderWithProviders} from '../harness/redux'; describe('StatusChip', () => { it('renders correctly for absent associate', () => { @@ -10,7 +10,7 @@ describe('StatusChip', () => { absenceTypeCode: 1, }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -20,7 +20,7 @@ describe('StatusChip', () => { absenceTypeCode: 2, }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -31,7 +31,7 @@ describe('StatusChip', () => { lastPunchType: '5', }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -41,7 +41,7 @@ describe('StatusChip', () => { clockStatus: '4', }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -51,7 +51,7 @@ describe('StatusChip', () => { clockStatus: '1', }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); }); --- __tests__/components/__snapshots__/StatusChipTest.tsx.snap @@ -26,10 +26,10 @@ Array [ Do not disturb </Tag>, <Tag - color="gray" + color="blue" variant="tertiary" > - On Meal + Meal </Tag>, ] `; --- __tests__/components/StatusChipTest.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import {render} from '@testing-library/react-native'; import {StatusChip} from '../../src/components/StatusChip'; import {Associate} from '../../src/types'; +import {renderWithProviders} from '../harness/redux'; describe('StatusChip', () => { it('renders correctly for absent associate', () => { @@ -10,7 +10,7 @@ describe('StatusChip', () => { absenceTypeCode: 1, }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -20,7 +20,7 @@ describe('StatusChip', () => { absenceTypeCode: 2, }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -31,7 +31,7 @@ describe('StatusChip', () => { lastPunchType: '5', }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -41,7 +41,7 @@ describe('StatusChip', () => { clockStatus: '4', }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); @@ -51,7 +51,7 @@ describe('StatusChip', () => { clockStatus: '1', }, } as Associate; - const component = render(<StatusChip associate={associate} />); + const component = renderWithProviders(<StatusChip associate={associate} />); expect(component.toJSON()).toMatchSnapshot(); }); }); --- __tests__/components/__snapshots__/StatusChipTest.tsx.snap @@ -26,10 +26,10 @@ Array [ Do not disturb </Tag>, <Tag - color="gray" + color="blue" variant="tertiary" > - On Meal + Meal </Tag>, ] `;
fix unit tests
fix unit tests
f6237980836c85de930538a3d70267767883cb06
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.146.0-rc.2", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.146.0-rc.2.tgz", - "integrity": "sha512-Yl6jOP8cHqbCM0+zjup/pq5v1Xq8vK0MO3SgCGpQC0m8jtFcbqznYHoqmyBKSypmsGJEw8QuDMg/O4KBzl4VHA==" + "version": "0.150.0-rc.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.150.0-rc.0.tgz", + "integrity": "sha512-372RXILEa5RJMG76+n/ouWCzcYShiOFJIvf/zDKc4D44Fw6WqbuubQwu7rMhO1uQSGjlh3T3rvgVZOCXS+dr4g==" }, "@walmart/time-clock-mini-app": { "version": "0.4.26", --- package.json @@ -100,7 +100,7 @@ "@walmart/settings-mini-app": "1.5.0", "@walmart/refrigeration-alarms-mini-app": "1.24.0", "@walmart/schedule-mini-app": "0.10.0", - "@walmart/taskit-mini-app": "0.146.0-rc.2", + "@walmart/taskit-mini-app": "0.150.0-rc.0", "@walmart/shelfavailability-mini-app": "0.8.0", "@walmart/ui-components": "v1.3.0-rc.8", "@walmart/time-clock-mini-app": "0.4.26",
Updating taskIt version to fix issues
Updating taskIt version to fix issues
63f20727a8d06f5abf0c34700fbd57559ea3603f
--- yarn.lock @@ -7064,7 +7064,9 @@ __metadata: "@reduxjs/toolkit": "npm:^1.9.7" redux-saga: "npm:^1.2.3" peerDependencies: + "@reduxjs/toolkit": "*" "@walmart/allspark-foundation": "*" + redux-saga: "*" languageName: unknown linkType: soft @@ -7072,67 +7074,40 @@ __metadata: version: 0.0.0-use.local resolution: "@walmart/me-at-walmart-container@workspace:packages/me-at-walmart-container" dependencies: - "@walmart/allspark-utils": "npm:^6.0.14" + "@walmart/allspark-utils": "npm:^6.3.0" "@walmart/me-at-walmart-common": "workspace:^" jwt-decode: "npm:^3.1.2" - lodash: "npm:~4.17.21" nanoid: "npm:4.0.2" - redux: "npm:^4.2.1" redux-flipper: "npm:^2.0.2" peerDependencies: "@react-native-async-storage/async-storage": 1.x - "@react-native-community/netinfo": 9.x "@react-native-firebase/analytics": 17.x - "@react-native-firebase/app": 17.x "@react-native-firebase/crashlytics": 17.x "@react-native-firebase/database": 17.x "@react-native-firebase/perf": 17.x - "@react-navigation/drawer": 6.x - "@react-navigation/native": 6.x - "@react-navigation/stack": 6.x "@walmart/allspark-authentication": "*" "@walmart/allspark-foundation": "*" "@walmart/config-components": 4.x "@walmart/core-services": ">=6" "@walmart/core-services-allspark": ">=6" - "@walmart/core-utils": ">=6" "@walmart/core-widget-registry": ">=6" - "@walmart/gtp-shared-components": ">=2" "@walmart/me-at-walmart-athena-queries": ">=6" "@walmart/me-at-walmart-common": "*" "@walmart/react-native-encrypted-storage": 1.x "@walmart/react-native-logger": 1.x - "@walmart/react-native-scanner-3.0": ^0.3.0 - "@walmart/react-native-sumo-sdk": ^2.6.0 - moment-timezone: "*" react: "*" react-native: "*" - react-native-apollo-devtools-client: "*" - react-native-app-auth: ">=6" - react-native-check-app-install: "*" react-native-device-info: 10.x - react-native-flipper: "*" - react-native-gesture-handler: 2.x - react-native-get-random-values: 1.x - react-native-permissions: 3.x - react-native-reanimated: 3.x - react-native-safe-area-context: 4.x - react-native-screens: 3.x - rn-flipper-async-storage-advanced: "*" wifi-store-locator: 1.x peerDependenciesMeta: "@walmart/core-services": optional: true "@walmart/core-services-allspark": optional: true - "@walmart/core-utils": - optional: true "@walmart/core-widget-registry": optional: true "@walmart/me-at-walmart-athena-queries": optional: true - rn-flipper-async-storage-advanced: - optional: true languageName: unknown linkType: soft
yarn.lock updated
yarn.lock updated
a7e09cbcb27d0b0aa87a4fe82088d302745b6f7c
--- 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.40", + "@walmart/facilities-management-miniapp": "0.5.41", "@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.40", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.40.tgz", - "integrity": "sha512-8E1Ob3VRNrgCklZko8fFoE2l5rQnZnwzKZT1FnUtEDE37VjGEKIDtNYJUYFw4sWfuGEcRBoDdwQo1/5Vmh9Wuw==", + "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==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25325,9 +25325,9 @@ "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.40", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.40.tgz", - "integrity": "sha512-8E1Ob3VRNrgCklZko8fFoE2l5rQnZnwzKZT1FnUtEDE37VjGEKIDtNYJUYFw4sWfuGEcRBoDdwQo1/5Vmh9Wuw==" + "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==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.10", --- package.json @@ -88,7 +88,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.40", + "@walmart/facilities-management-miniapp": "0.5.41", "@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
eda24ff8c324fda8d53aacf200126959973ea014
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.17.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.5.18", + "@walmart/facilities-management-miniapp": "0.5.19", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", @@ -5082,9 +5082,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.5.18", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.18.tgz", - "integrity": "sha512-aIaN85qEtjZn/jv1Q3VzM+gFWAGTywmKPGo7ResuMH5tQOJ0g3zddZp4/uld+9n1WvT1HygtBy3TEAnmUJ7VOg==", + "version": "0.5.19", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.19.tgz", + "integrity": "sha512-IdXD+H5OBTStYaaY3MWJkTIyOyOdemkiBV2h/91syzsX+Lt59iWLxmdIOeVijSqCgnR8+17fdjN0rCWkS5e6lg==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25164,9 +25164,9 @@ "integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.18", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.18.tgz", - "integrity": "sha512-aIaN85qEtjZn/jv1Q3VzM+gFWAGTywmKPGo7ResuMH5tQOJ0g3zddZp4/uld+9n1WvT1HygtBy3TEAnmUJ7VOg==" + "version": "0.5.19", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.19.tgz", + "integrity": "sha512-IdXD+H5OBTStYaaY3MWJkTIyOyOdemkiBV2h/91syzsX+Lt59iWLxmdIOeVijSqCgnR8+17fdjN0rCWkS5e6lg==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.9", --- package.json @@ -89,7 +89,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.17.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.5.18", + "@walmart/facilities-management-miniapp": "0.5.19", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", --- patches/@walmart+facilities-management-miniapp+0.5.19.patch
Updated FCM version
Updated FCM version
7cbb4199ffc9ac9dbe21f5c3420acfb345007364
--- __tests__/startup/StartupSagaTest.ts @@ -1,4 +1,12 @@ -import {select, take, call, put, takeLatest, all} from 'redux-saga/effects'; +import { + select, + take, + call, + put, + takeLatest, + all, + race, +} from 'redux-saga/effects'; import {dispatch} from '@walmart/react-native-shared-navigation'; import {CommonActions} from '@react-navigation/native'; import WmTelemetry from 'react-native-wm-telemetry'; @@ -19,6 +27,8 @@ import { onSignInStart, onSignIn, startupSagas, + waitForAppConfig, + getConfigLoaded, } from '../../src/startup/StartupSaga'; import {StartupTypes} from '../../src/startup/StartupRedux'; import {initSso} from '../../src/core/SSOinit'; @@ -105,6 +115,7 @@ describe('onSignIn', () => { take(WmConfigInitTypes.WM_CONFIG_ACTIVATED), ); + expect(iterator.next().value).toEqual(call(waitForAppConfig)); expect(iterator.next().value).toEqual( put(UpdateCheckActionCreators.checkForUpdates()), ); @@ -133,7 +144,8 @@ describe('onSignIn', () => { expect(iterator.next(userState).value).toEqual( select(getIsConfigActivated), ); - expect(iterator.next(true).value).toEqual( + expect(iterator.next(true).value).toEqual(call(waitForAppConfig)); + expect(iterator.next().value).toEqual( put(UpdateCheckActionCreators.checkForUpdates()), ); expect(iterator.next().value).toEqual( @@ -168,7 +180,8 @@ describe('onSignIn', () => { expect(iterator.next(userState).value).toEqual( select(getIsConfigActivated), ); - expect(iterator.next(true).value).toEqual( + expect(iterator.next(true).value).toEqual(call(waitForAppConfig)); + expect(iterator.next().value).toEqual( put(UpdateCheckActionCreators.checkForUpdates()), ); expect(iterator.next().value).toEqual( @@ -220,3 +233,33 @@ test('startupSagas', () => { ); expect(iterator.next().done).toEqual(true); }); + +describe('waitForAppConfig', () => { + it('handles app config set', () => { + const iterator = waitForAppConfig(); + expect(iterator.next().value).toEqual(select(getConfigLoaded)); + expect(iterator.next(true).done).toEqual(true); + }); + it('handles app config not set', () => { + const iterator = waitForAppConfig(); + expect(iterator.next().value).toEqual(select(getConfigLoaded)); + expect(iterator.next(false).value).toEqual( + race({ + loaded: take('global/CONFIG_FETCH_SUCCESS'), + failed: take('global/CONFIG_FETCH_ERROR'), + }), + ); + expect(iterator.next(true).done).toEqual(true); + }); +}); + +describe('getConfigLoaded', () => { + it('get default value', () => { + const result = getConfigLoaded({state: 'blah'} as any); + expect(result).toEqual(false); + }); + it('gets correct value', () => { + const result = getConfigLoaded({state: {appConfig: {loaded: true}}} as any); + expect(result).toEqual(false); + }); +}); --- src/startup/StartupSaga.ts @@ -1,4 +1,12 @@ -import {select, takeLatest, call, take, put, all} from 'redux-saga/effects'; +import { + select, + takeLatest, + call, + take, + put, + all, + race, +} from 'redux-saga/effects'; import {dispatch} from '@walmart/react-native-shared-navigation'; import {SSOUser} from 'react-native-ssmp-sso-allspark'; import {CommonActions} from '@react-navigation/native'; @@ -27,6 +35,7 @@ import {SSO_APP} from '../types/telemetryConstants'; import {StartupTypes} from './StartupRedux'; import {TermsOfUseTypes} from '../termsOfUse/TermsOfUseRedux'; +import {GlobalState} from '@walmart/redux-store'; export function* onStartup() { // Init sso and check permissions in parallel. Wait for both to complete @@ -87,6 +96,8 @@ export function* onSignIn() { yield take(WmConfigInitTypes.WM_CONFIG_ACTIVATED); } + yield call(waitForAppConfig); + // Initiate and wait for update check yield put(UpdateCheckActionCreators.checkForUpdates()); yield take(UpdateCheckTypes.CHECK_FOR_UPDATES_COMPLETE); @@ -108,3 +119,16 @@ export function* startupSagas() { ]), ); } + +export const getConfigLoaded = (state: GlobalState) => + state.appConfig?.loaded || false; + +export function* waitForAppConfig() { + const loaded = yield select(getConfigLoaded); + if (!loaded) { + yield race({ + loaded: take('global/CONFIG_FETCH_SUCCESS'), + failed: take('global/CONFIG_FETCH_ERROR'), + }); + } +}
Fix/ccm update (#371)
Fix/ccm update (#371) * check for CCM loading and ask sam version bump * updated tests * revert ask sam
1a09da998469fa6ae1b8da33e86ef7147f5846b5
--- targets/US/src/versions.ts @@ -66,12 +66,6 @@ export const createPackageDetails = (name: string) => { version = patch ? `${patch}-patch` : 'N/A'; } - // If it's a patch version, extract the version number from it - if (version?.includes('patch:')) { - const patch = version.match(/npm-(\d+\.\d+\.\d+)/)?.[1]; - version = patch ? `${patch}-patch` : 'N/A'; - } - return { name, version,
increased code coverage in target/US/version.ts
increased code coverage in target/US/version.ts
ff59ebc9c57c0f519da9e781ab082046eea6f57b
--- packages/celebration-mini-app-graphql/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.18.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.17.2...@walmart/celebration-mini-app-graphql@1.18.0) (2025-11-20) + +### Features + +- **ui:** updatedCCMIntegration ([6c748d8](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/6c748d84ec7013f9106cfc688ab50a86f386a5de)) + ## [1.17.2](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.17.1...@walmart/celebration-mini-app-graphql@1.17.2) (2025-11-12) ### Bug Fixes --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.17.2", + "version": "1.18.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/celebration-mini-app/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.28.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.27.0...@walmart/celebration-mini-app@1.28.0) (2025-11-20) + +### Bug Fixes + +- lint issue ([c51abfc](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/c51abfc546a377e42ea51c07a7f0b6f64c3d370f)) + +### Features + +- **ui:** updatedCCMIntegration ([6c748d8](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/6c748d84ec7013f9106cfc688ab50a86f386a5de)) + # [1.27.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.26.0...@walmart/celebration-mini-app@1.27.0) (2025-11-18) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.27.0", + "version": "1.28.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.28.0 - @walmart/celebration-mini-app-graphql@1.18.0
595143c0dc361683dcd4d4cf961649c7afc870b0
--- src/containers/UserHeader.tsx @@ -48,11 +48,8 @@ export const UserHeader = () => { const renderDoNotDisturbToggle = () => { return ( <> - <Switch - isOn={presence === 'offline'} - onValueChange={onStatusChange} - /> - <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text> + <Switch isOn={presence === 'offline'} onValueChange={onStatusChange} /> + <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text> </> ); }; --- src/containers/UserHeader.tsx @@ -48,11 +48,8 @@ export const UserHeader = () => { const renderDoNotDisturbToggle = () => { return ( <> - <Switch - isOn={presence === 'offline'} - onValueChange={onStatusChange} - /> - <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text> + <Switch isOn={presence === 'offline'} onValueChange={onStatusChange} /> + <Text style={styles.switchText}>{t('userHeader.dndPresence')}</Text> </> ); };
Added lint changes
Added lint changes
c83ead04e70f1a4bc1fe0e9815ea48b675e5ec38
--- docs/docs/components/allspark foundation/foundation-intro.md @@ -60,11 +60,11 @@ npx pod-install ios ### Creating a Feature -To create a new feature app, start with the [AllsparkFeature](./foundation-feature.md#allspark-feature) documentation. +To create a new feature app, start with the [AllsparkFeature](./foundation-feature.md) documentation. ### Create a Container -To create a new container app, start with the [AllsparkContainer](./foundation-container.md#allspark-container) documentation. +To create a new container app, start with the [AllsparkContainer](./foundation-container.md) documentation. ### Create a Feature Runner
Fixing links in introduction doc.
Fixing links in introduction doc.
f7f7bd0b2d4a26ebd792a1b35261ca81b7cb3ee1
--- src/screens/MessagesScreen.tsx @@ -76,8 +76,8 @@ const renderItem: ListRenderItem<LocalMessage | string> = ({item}) => { }; export type MessagesScreenProps = { - navigation: StackNavigationProp<TextingNavParamsMap, 'texting.messages'>; - route: RouteProp<TextingNavParamsMap, 'texting.messages'>; + navigation: StackNavigationProp<TextingNavParamsMap, 'myTeam.messages'>; + route: RouteProp<TextingNavParamsMap, 'myTeam.messages'>; }; export const MessagesScreen: FC<MessagesScreenProps> = (props) => { --- src/screens/MessagesScreen.tsx @@ -76,8 +76,8 @@ const renderItem: ListRenderItem<LocalMessage | string> = ({item}) => { }; export type MessagesScreenProps = { - navigation: StackNavigationProp<TextingNavParamsMap, 'texting.messages'>; - route: RouteProp<TextingNavParamsMap, 'texting.messages'>; + navigation: StackNavigationProp<TextingNavParamsMap, 'myTeam.messages'>; + route: RouteProp<TextingNavParamsMap, 'myTeam.messages'>; }; export const MessagesScreen: FC<MessagesScreenProps> = (props) => {
fixing name of route
fixing name of route
e0079f9dac3e6c43ffcbe76ee545c30ac9369dff
--- .looper.multibranch.yml @@ -273,7 +273,7 @@ flows: - call: increment-version-code - node(label=$LOOPER_NODES, ws="exclusive"): - parallel(failsafe): - - call: build-native(ios) + # - call: build-native(ios) - call: build-native(android) - call: run-sonar-analysis - call: publish-to-hygieia @@ -340,7 +340,7 @@ flows: - node(label=$LOOPER_NODES, ws="exclusive"): - parallel(failsafe): - group("$os dev"): - - call: build-snapshot(dev) + # - call: build-snapshot(dev) - group("$os beta"): - call: build-snapshot(beta) - if: $buildGABuilds
commenting out iOS flow and android dev flow
commenting out iOS flow and android dev flow
f46dd3114090a91bffc56bb072f1d66b3688e414
--- src/screens/MyWalmartV2/AssociateRosterDetailScreen/AssociateRosterDetailScreen.tsx @@ -186,7 +186,7 @@ export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( accessibilityLabel={t("rosterScreen.headerSection")} > <ComponentsModule.SharedComponents.Component - id="TeamSwitcher.MyWalmartTeamSwitcherWithHeader" + id="TeamSwitcher.MyWalmartTeamSwitcher" props={{ onTeamChange: handleTeamChange }} /> <RosterHeader
feat(ui): update allspark component containers
feat(ui): update allspark component containers
2a1ece1f0678e425ce05227994ecc4124d0e6b38
--- src/home/components/GreetingRowV2/BaseImageV2.tsx @@ -57,11 +57,11 @@ const renderPharmacyOrSupplyChainImage = (isPharmacyOrVision: boolean, isSupplyc if (isPharmacyOrVision) { return <PeopleHeaderIconPharmacy style={styles.baseImage} testID="BaseImageV2-Pharmacy" />; } - + if (isSupplychain) { return <PeopleHeaderIconSupplyChain style={styles.baseImage} testID="BaseImageV2-SupplyChain" />; } - + return <PeopleHeaderIcon style={styles.baseImage} testID="BaseImageV2-Image" />; };
feat(header): lint fix
feat(header): lint fix
e49c6b102872ade069907c4fe74e3a356423ef2e
--- .yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch @@ -1,5 +1,5 @@ diff --git a/package.json b/package.json -index 97089018b297b0e4d592cb6f5ff64a4a3787c566..7c112cd9320d0525c3aa47767ada124ea7af4a72 100644 +index 1354ab1cd34b5c26564a8833cecbd3ef1ea460c0..739cb4f6a6b43426b5422c8fa67a0eeddbc2d8f0 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ --- package.json @@ -155,7 +155,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/moment-walmart": "1.0.4", "@walmart/redux-store": "~6.3.28", - "@walmart/ui-components@npm:^1.15.11": "patch:@walmart/ui-components@npm%3A1.18.4#~/.yarn/patches/@walmart-ui-components-npm-1.18.4-06e7f523c2.patch", + "@walmart/ui-components@npm:^1.15.11": "patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch", "axios": "~1.6.0", "axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch", "crypto-js": "~4.2.0", --- targets/US/package.json @@ -150,7 +150,7 @@ "@walmart/taskit-mini-app": "4.17.21", "@walmart/time-clock-mini-app": "2.419.0", "@walmart/topstock-mini-app": "1.17.11", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.4#~/.yarn/patches/@walmart-ui-components-npm-1.18.4-06e7f523c2.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.96.0", "@walmart/wfm-ui": "1.6.0", --- yarn.lock @@ -7066,7 +7066,7 @@ __metadata: "@walmart/taskit-mini-app": "npm:4.17.21" "@walmart/time-clock-mini-app": "npm:2.419.0" "@walmart/topstock-mini-app": "npm:1.17.11" - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.4#~/.yarn/patches/@walmart-ui-components-npm-1.18.4-06e7f523c2.patch" + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.96.0" "@walmart/wfm-ui": "npm:1.6.0" @@ -8091,9 +8091,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.18.4": - version: 1.18.4 - resolution: "@walmart/ui-components@npm:1.18.4" +"@walmart/ui-components@npm:1.18.5": + version: 1.18.5 + resolution: "@walmart/ui-components@npm:1.18.5" dependencies: "@walmart/ui-components": "npm:^1.15.11" react-hook-form: "npm:^7.33.1" @@ -8113,13 +8113,13 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/9f06e29d0492bf80f4ea1bfe1ab433d24f689cafa9376de4b65df1f142dcad2ba7e672c67cde97ea876f4654154d69f656498feb2bab4d84ecbea14757516a87 + checksum: 10c0/b254a753d296d0cc9f72c9c5ba1c1ac678edb88aa03d7248a7b13a41185c76bb89610e3baf00fee549df4f307c60afecfcad83fc199b4627604136da338de0d1 languageName: node linkType: hard -"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.18.4#~/.yarn/patches/@walmart-ui-components-npm-1.18.4-06e7f523c2.patch": - version: 1.18.4 - resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.18.4#~/.yarn/patches/@walmart-ui-components-npm-1.18.4-06e7f523c2.patch::version=1.18.4&hash=50f8f0" +"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch": + version: 1.18.5 + resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch::version=1.18.5&hash=3c4b49" dependencies: "@walmart/ui-components": "npm:^1.15.11" react-hook-form: "npm:^7.33.1" @@ -8139,7 +8139,7 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/c8faa46f470f191fb7c0593a13d40a0cae520340a68c325b229d50e089a9db5d352b3c4af954e04ff283d65d2f9c7c622e8b0cfaeb818a8af3e22208ffc60172 + checksum: 10c0/bb377f38a8c4ee0aa7105c6311451859095939eda69147effc59637c66cca726567991e37f58f00359e57300463780f4d947859f8d57187e87f768578ee41f2b languageName: node linkType: hard
fix: bumping version of ui-components for additional ADA fixes
fix: bumping version of ui-components for additional ADA fixes
95d358269e0d2bc5758d2f4015771fef83ec286d
--- packages/allspark-foundation/__tests__/HTTP/utils.test.ts @@ -0,0 +1,95 @@ +import { createFetchHeaders, createAxiosHeaders, getUrl, HeadersLike } from '../../src/HTTP/utils'; + +describe('Utility Functions', () => { + describe('createFetchHeaders', () => { + it('should convert an axiosHeaders object to an array of headers', () => { + const axiosHeaders = { 'Content-Type': 'application/json', Authorization: 'Bearer token' }; + const result = createFetchHeaders(axiosHeaders); + expect(result).toEqual([ + ['Content-Type', 'application/json'], + ['Authorization', 'Bearer token'], + ]); + }); + + it('should return an empty array if no headers are provided', () => { + const result = createFetchHeaders(); + expect(result).toEqual([]); + }); + it('should convert a Headers instance to an object', () => { + const headers = new Headers({ + 'Content-Type': 'application/json', + Authorization: 'Bearer token', + }) as HeadersLike; + const result = createAxiosHeaders(headers); + expect(result).toEqual({ + 'content-type': 'application/json', + 'authorization': 'Bearer token', + }); + }); + + it('should convert an array of headers to an object', () => { + const headers: HeadersLike = [ + ['Content-Type', 'application/json'], + ['Authorization', 'Bearer token'], + ]; + const result = createAxiosHeaders(headers); + expect(result).toEqual({ + 'Content-Type': 'application/json', + Authorization: 'Bearer token', + }); + }); + + it('should convert a plain object of headers to an object', () => { + const headers: HeadersLike = { + 'Content-Type': 'application/json', + Authorization: 'Bearer token', + }; + const result = createAxiosHeaders(headers); + expect(result).toEqual({ + 'Content-Type': 'application/json', + Authorization: 'Bearer token', + }); + }); + it('should ignore headers with undefined values', () => { + const headers: HeadersLike = { + 'Content-Type': 'application/json', + Authorization: undefined, + }; + const result = createAxiosHeaders(headers); + expect(result).toEqual({ + 'Content-Type': 'application/json', + }); + }); + + it('should return an empty object if no headers are provided', () => { + const result = createAxiosHeaders(); + expect(result).toEqual({}); + }); + it('should return the input if it is a string', () => { + const input = 'http://example.com'; + const result = getUrl(input); + expect(result).toBe(input); + }); + + it('should return the href if provided', () => { + const input = { href: 'http://example.com' }; + const result = getUrl(input); + expect(result).toBe(input.href); + }); + + it('should return the url if href is not provided but url is', () => { + const input = { url: 'http://example.com' }; + const result = getUrl(input); + expect(result).toBe(input.url); + }); + it('should return undefined if input is undefined', () => { + const result = getUrl(); + expect(result).toBeUndefined(); + }); + it('should return undefined if neither href nor url is provided', () => { + const input = {}; + const result = getUrl(input); + expect(result).toBeUndefined(); + }); + }); +});
added utils http unit test
added utils http unit test
2409452f74ff1c6d08ff9c97c58cccfb1fa91d80
--- package-lock.json @@ -4333,9 +4333,9 @@ } }, "@walmart/payrollsolution_miniapp": { - "version": "0.90.0", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.90.0.tgz", - "integrity": "sha512-9QAA6r1yVgcGk9xzg3cxhfAqcB6kSjUTos83aKC7f95VFV9L2GViaNGwv2kzwT7+8gCHA6lMM9+GQU4pZJUTeA==" + "version": "0.91.0", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.91.0.tgz", + "integrity": "sha512-+MVnRit5z9v4e0hZoU9wzIFw7qoh7ipbyJcGDO+shz5Rsfj020PFaAoX9Mf0EAtxX3TlpOeRvy3TQSuAEb8UHQ==" }, "@walmart/price-changes-mini-app": { "version": "1.0.6", @@ -4538,9 +4538,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.43.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.43.0.tgz", - "integrity": "sha512-Wzqr6Ai+c9q3DlXdT7+JRUqcmKWpWJEPwUD+hAcQzVO2FkWlDkT4AEruxHMmgej4Mr1u1+4xhj13re94og9kxw==" + "version": "0.44.0", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.44.0.tgz", + "integrity": "sha512-RdRRsNjOrs4u2+X/YDZ7sdtQcnZ2Bv/IfcZlnQGDSDTqDCnAmaSgnfdvPWD6SqJlaG78Mvni6n3otH2TXSwlfw==" }, "@walmart/wfm-ui": { "version": "0.2.10", --- package.json @@ -89,7 +89,7 @@ "@walmart/manager-approvals-miniapp": "0.0.59", "@walmart/metrics-mini-app": "0.5.21", "@walmart/moment-walmart": "1.0.4", - "@walmart/payrollsolution_miniapp": "0.90.0", + "@walmart/payrollsolution_miniapp": "0.91.0", "@walmart/price-changes-mini-app": "1.0.6", "@walmart/push-to-talk-mini-app": "0.5.84", "@walmart/react-native-env": "^0.2.0", @@ -104,7 +104,7 @@ "@walmart/shelfavailability-mini-app": "0.8.0", "@walmart/ui-components": "v1.3.0-rc.9", "@walmart/time-clock-mini-app": "0.4.27", - "@walmart/welcomeme-mini-app": "0.43.0", + "@walmart/welcomeme-mini-app": "0.44.0", "@walmart/wfm-ui": "0.2.10", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
chore(WelcomeMe): WelcomeMeMiniApp v0.44.0 | PayrollMiniApp v0.91.0
chore(WelcomeMe): WelcomeMeMiniApp v0.44.0 | PayrollMiniApp v0.91.0
e62ddd9ab3073e1c027aecc011ad58dd8847b0b1
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -29,6 +29,7 @@ export const OnboardingScreen = () => { const { allSiteTeamsSections } = useGetSupplyChainAllTeamsBySite(); const [input, setInput] = useState(''); const dispatch = useDispatch(); + // const showHubHeader = useSelector(hubHeaderEnabled); const [selectedTeams, setSelectedTeams] = useState<string[]>([]); const [selectedShifts, setSelectedShifts] = useState<string[]>([]);
feat(ui): integration for getTeamsBy site
feat(ui): integration for getTeamsBy site
0fa9c86d81c3e7fdb207acbae7320cbdfce9e43b
--- __tests__/settings/sideButton/__snapshots__/SideButtonPermissionBottomSheetTest.tsx.snap @@ -69,7 +69,7 @@ exports[`Side button permission bottom sheet tests matches snapshot 1`] = ` "bottom": 0, "height": 1334, "left": 0, - "opacity": 0.00011425836668732536, + "opacity": 0, "position": "absolute", "right": 0, "top": 0,
Updating a snapshot
Updating a snapshot
474f878c3077e600e0491fc73560b36daab4caec
--- packages/allspark-foundation/__tests__/Auth/sagas.test.tsx @@ -66,85 +66,81 @@ describe('Auth/sagas.ts', () => { expect(generator.next().done).toBe(true); expect(mockSignOut).toHaveBeenCalled(); }); - function expectSelectEffect(actual, expectedSelector) { - expect(actual['@@redux-saga/IO']).toBe(true); - expect(actual.combinator).toBe(false); - expect(actual.type).toBe('SELECT'); - expect(actual.payload.args).toEqual([]); - if (expectedSelector) { - expect(actual.payload.selector.toString()).toEqual(expectedSelector.toString()); - } else { - expect(typeof actual.payload.selector).toBe('function'); - } - } +}); - it('should wait for SIGN_IN_SUCCESS or SIGN_IN_ERROR if signing in or data is null and no error', () => { - const iterator = waitForToken(); - expectSelectEffect(iterator.next().value, AuthSelectors.getSigningIn); - expectSelectEffect(iterator.next(true).value, AuthSelectors.getData); - const received = iterator.next().value; - const expected = { - "@@redux-saga/IO": true, - "combinator": false, - "payload": { - "args": [], - "selector": () => {}, - }, - "type": "SELECT", - }; - expect(received['@@redux-saga/IO']).toEqual(expected['@@redux-saga/IO']); - expect(received.combinator).toEqual(expected.combinator); - expect(received.type).toEqual(expected.type); - expect(received.payload.args).toEqual(expected.payload.args); - expect(typeof received.payload.selector).toEqual('function'); - expect(typeof expected.payload.selector).toEqual('function'); - }); - - it('should return data immediately if not signing in, data is available, and no error', () => { - const iterator = waitForToken(); - expectSelectEffect(iterator.next().value, AuthSelectors.getSigningIn); - expectSelectEffect(iterator.next(false).value, AuthSelectors.getData); - expectSelectEffect(iterator.next(mockAuthResult).value, AuthSelectors.getSignInError); - expect(iterator.next(false).done).toBe(false); - expect(iterator.next().value).toEqual(undefined); - }); - it('should wait for fetching if data is null and no error', () => { - const iterator = waitForToken(); - expect(iterator.next().value).toEqual(select(AuthSelectors.getFetchingToken)); - expect(iterator.next(true).value).toEqual(select(AuthSelectors.getAuthToken)); - expect(iterator.next(null).value).toEqual(select(AuthSelectors.getFetchTokenError)); - expect(iterator.next(false).value).toEqual( - take([AuthActionTypes.FETCH_TOKEN_SUCCESS, AuthActionTypes.FETCH_TOKEN_ERROR]) - ); - expect(iterator.next({ type: AuthActionTypes.FETCH_TOKEN_SUCCESS }).value).toEqual(select(AuthSelectors.getAuthToken)); - expect(iterator.next('test-token').value).toEqual('test-token'); +describe('waitForSignIn and waitForToken tests', () => { + beforeEach(() => { + jest.clearAllMocks(); }); - it('should return data immediately if not fetching, data is available, and no error', () => { - const iterator = waitForToken(); + describe('waitForSignIn Saga', () => { + it('should wait for SIGN_IN_SUCCESS or SIGN_IN_ERROR if signing in or data is null and no error', () => { + const iterator = waitForSignIn(); + let effect = iterator.next().value; + expect(effect).toEqual(select(AuthSelectors.getSigningIn)); + effect = iterator.next(true).value; + expect(effect).toEqual(select(AuthSelectors.getData)); + effect = iterator.next(null).value; + expect(effect).toEqual(select(AuthSelectors.getSignInError)); + const expectedTakeEffect = take([AuthActionTypes.SIGN_IN_SUCCESS, AuthActionTypes.SIGN_IN_ERROR]); + effect = iterator.next(false).value; + expect(effect).toEqual(expectedTakeEffect); + effect = iterator.next().value; + expect(effect).toEqual(select(AuthSelectors.getData)); + const result = iterator.next({ token: 'abc123' }).value; + expect(result).toEqual({ token: 'abc123' }); + expect(iterator.next().done).toBe(true); + }); - expect(iterator.next().value).toEqual(select(AuthSelectors.getFetchingToken)); - expect(iterator.next(false).value).toEqual(select(AuthSelectors.getAuthToken)); - expect(iterator.next('test-token').value).toEqual(select(AuthSelectors.getFetchTokenError)); - expect(iterator.next(false).done).toBe(false); - expect(iterator.next().value).toEqual(undefined); + it('should return data immediately if not signing in, data is available, and no error', () => { + const mockAuthResult = { token: 'abc123' }; + const iterator = waitForSignIn(); + let effect = iterator.next().value; + expect(effect).toEqual(select(AuthSelectors.getSigningIn)); + effect = iterator.next(false).value; + expect(effect).toEqual(select(AuthSelectors.getData)); + effect = iterator.next(mockAuthResult).value; + expect(effect).toEqual(select(AuthSelectors.getSignInError)); + effect = iterator.next(false).value; + const result = iterator.next(mockAuthResult).value; + expect(result).toEqual(mockAuthResult); + expect(iterator.next().done).toBe(true); + }); }); - it('should handle errors from fetching token', () => { - const iterator = waitForToken(); + describe('waitForToken Saga', () => { + it('should wait for FETCH_TOKEN_SUCCESS or FETCH_TOKEN_ERROR if fetching token or data is undefined and no error', () => { + const iterator = waitForToken(); + let effect = iterator.next().value; + expect(effect).toEqual(select(AuthSelectors.getFetchingToken)); + effect = iterator.next(true).value; + expect(effect).toEqual(select(AuthSelectors.getAuthToken)); + effect = iterator.next(undefined).value; + expect(effect).toEqual(select(AuthSelectors.getFetchTokenError)); + const expectedTakeEffect = take([AuthActionTypes.FETCH_TOKEN_SUCCESS, AuthActionTypes.FETCH_TOKEN_ERROR]); + effect = iterator.next(false).value; + expect(effect).toEqual(expectedTakeEffect); + effect = iterator.next().value; + expect(effect).toEqual(select(AuthSelectors.getAuthToken)); + const result = iterator.next('token').value; + expect(result).toEqual('token'); + expect(iterator.next().done).toBe(true); + }); - expect(iterator.next().value).toEqual(select(AuthSelectors.getFetchingToken)); - expect(iterator.next(false).value).toEqual(select(AuthSelectors.getAuthToken)); - expect(iterator.next(null).value).toEqual(select(AuthSelectors.getFetchTokenError)); - expect(iterator.next(false).value).toEqual( - take([AuthActionTypes.FETCH_TOKEN_SUCCESS, AuthActionTypes.FETCH_TOKEN_ERROR]) - ); - expect(iterator.next({ type: AuthActionTypes.FETCH_TOKEN_ERROR }).value).toEqual(select(AuthSelectors.getAuthToken)); - expect(iterator.next(null).done).toBe(true); - expect(iterator.next().value).toEqual(undefined); + it('should return token immediately if not fetching, token is available, and no error', () => { + const mockToken = 'abc123'; + const iterator = waitForToken(); + let effect = iterator.next().value; + expect(effect).toEqual(select(AuthSelectors.getFetchingToken)); + effect = iterator.next(false).value; + expect(effect).toEqual(select(AuthSelectors.getAuthToken)); + effect = iterator.next(mockToken).value; + expect(effect).toEqual(select(AuthSelectors.getFetchTokenError)); + effect = iterator.next(false).value; + const result = iterator.next(mockToken).value; + expect(result).toEqual(mockToken); + expect(iterator.next().done).toBe(true); + }); }); }); - - - --- packages/allspark-foundation/__tests__/Clock/saga.test.ts @@ -29,7 +29,7 @@ describe('onInit and onFetch tests', () => { }); -describe('waitForClockInit Saga', () => { +describe('waitForClockInit and waitForClockFetch Saga', () => { beforeEach(() => { jest.clearAllMocks(); });
code cleanup
code cleanup
4157dcbc961cb1ed44ba6b3b813d3512b066b7f9
--- __tests__/screens/ImagePreviewScreen/__snapshots__/ImagePreviewScreenTest.tsx.snap @@ -4,7 +4,7 @@ exports[`ImagePreviewScreenTest should render image preview with expected elemen <View style={ Object { - "backgroundColor": "#FFFFFF", + "backgroundColor": "#fff", "flex": 1, "padding": 8, } --- __tests__/screens/NewMessageScreen/__snapshots__/NewMessageScreenTest.tsx.snap @@ -12,7 +12,7 @@ exports[`NewMessageScreen should render with expected elements 1`] = ` <View style={ Object { - "backgroundColor": "#FFFFFF", + "backgroundColor": "#fff", "borderBottomColor": "#f1f1f2", "borderBottomWidth": 1, "flexDirection": "row", @@ -131,7 +131,7 @@ exports[`NewMessageScreen should render with expected elements 1`] = ` placeholder="Type a name" style={ Object { - "color": "#000000", + "color": "#000", "flexDirection": "row", "flexGrow": 1, "fontFamily": "Bogle-Regular", --- __tests__/screens/PushToTalkScreen/__snapshots__/PushToTalkScreenTest.tsx.snap @@ -121,7 +121,7 @@ exports[`PushToTalkScreen should render push to talk screen with expected elemen <View style={ Object { - "backgroundColor": "#FFFFFF", + "backgroundColor": "#fff", "borderBottomColor": "#f1f1f2", "borderBottomWidth": 1, "flexDirection": "row", --- __tests__/screens/RosterScreen/__snapshots__/AssociateListTest.tsx.snap @@ -469,7 +469,7 @@ exports[`AssociateList RosterFilters should filter for all associates 1`] = ` "borderRadius": 8, "flex": 1, "justifyContent": "center", - "shadowColor": "#000000", + "shadowColor": "#000", "shadowOffset": Object { "height": 1, "width": 0, --- __tests__/screens/TabsScreen/__snapshots__/TabsScreenTest.tsx.snap @@ -49,7 +49,7 @@ exports[`TabScreenTest should render tabs screen with expected elements 1`] = ` "lineHeight": 24, }, Object { - "color": "#FFFFFF", + "color": "#fff", "fontFamily": "Bogle-Regular", "fontSize": 16, }, @@ -161,8 +161,8 @@ exports[`TabScreenTest should render tabs screen with expected elements 1`] = ` accessibilityRole="switch" accessibilityState={ Object { + "checked": false, "disabled": false, - "selected": false, } } accessible={true} --- jest.config.js @@ -25,5 +25,5 @@ module.exports = { '<rootDir>/__tests__/__mocks__/', '<rootDir>/__tests__/harness/', ], - // silent: true, //Uncomment to suppress error and warnings in test output + silent: true, //Uncomment to suppress error and warnings in test output }; --- __tests__/screens/ImagePreviewScreen/__snapshots__/ImagePreviewScreenTest.tsx.snap @@ -4,7 +4,7 @@ exports[`ImagePreviewScreenTest should render image preview with expected elemen <View style={ Object { - "backgroundColor": "#FFFFFF", + "backgroundColor": "#fff", "flex": 1, "padding": 8, } --- __tests__/screens/NewMessageScreen/__snapshots__/NewMessageScreenTest.tsx.snap @@ -12,7 +12,7 @@ exports[`NewMessageScreen should render with expected elements 1`] = ` <View style={ Object { - "backgroundColor": "#FFFFFF", + "backgroundColor": "#fff", "borderBottomColor": "#f1f1f2", "borderBottomWidth": 1, "flexDirection": "row", @@ -131,7 +131,7 @@ exports[`NewMessageScreen should render with expected elements 1`] = ` placeholder="Type a name" style={ Object { - "color": "#000000", + "color": "#000", "flexDirection": "row", "flexGrow": 1, "fontFamily": "Bogle-Regular", --- __tests__/screens/PushToTalkScreen/__snapshots__/PushToTalkScreenTest.tsx.snap @@ -121,7 +121,7 @@ exports[`PushToTalkScreen should render push to talk screen with expected elemen <View style={ Object { - "backgroundColor": "#FFFFFF", + "backgroundColor": "#fff", "borderBottomColor": "#f1f1f2", "borderBottomWidth": 1, "flexDirection": "row", --- __tests__/screens/RosterScreen/__snapshots__/AssociateListTest.tsx.snap @@ -469,7 +469,7 @@ exports[`AssociateList RosterFilters should filter for all associates 1`] = ` "borderRadius": 8, "flex": 1, "justifyContent": "center", - "shadowColor": "#000000", + "shadowColor": "#000", "shadowOffset": Object { "height": 1, "width": 0, --- __tests__/screens/TabsScreen/__snapshots__/TabsScreenTest.tsx.snap @@ -49,7 +49,7 @@ exports[`TabScreenTest should render tabs screen with expected elements 1`] = ` "lineHeight": 24, }, Object { - "color": "#FFFFFF", + "color": "#fff", "fontFamily": "Bogle-Regular", "fontSize": 16, }, @@ -161,8 +161,8 @@ exports[`TabScreenTest should render tabs screen with expected elements 1`] = ` accessibilityRole="switch" accessibilityState={ Object { + "checked": false, "disabled": false, - "selected": false, } } accessible={true} --- jest.config.js @@ -25,5 +25,5 @@ module.exports = { '<rootDir>/__tests__/__mocks__/', '<rootDir>/__tests__/harness/', ], - // silent: true, //Uncomment to suppress error and warnings in test output + silent: true, //Uncomment to suppress error and warnings in test output };
updating test snapshots
updating test snapshots
318efc38fb1c37c4303707c6edc65df0c0402402
--- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.15.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.6...@walmart/associate-exp-hub-mini-app@1.15.0) (2026-01-19) + +### Features + +- **GraphQL:** updated queries with team icon for mini app package ([15bab62](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/15bab62661a7548776fd2f7ef2b3eaec542df20d)) + ## [1.14.6](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.5...@walmart/associate-exp-hub-mini-app@1.14.6) (2026-01-16) ### Bug Fixes --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.14.6", + "version": "1.15.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.26.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.25.4...@walmart/associate-exp-hub-team-switcher@2.26.0) (2026-01-19) + +### Features + +- **GraphQL:** updated queries with team icon ([a50edc7](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/a50edc7c7391e634eaeab6e7bbea508e8a1333a1)) + ## [2.25.4](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.25.3...@walmart/associate-exp-hub-team-switcher@2.25.4) (2026-01-16) ### Bug Fixes --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.25.4", + "version": "2.26.0", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-mini-app@1.15.0 - @walmart/associate-exp-hub-team-switcher@2.26.0
f9472e1126b30ef342340745864243a6fa297a1f
--- package-lock.json @@ -2958,11 +2958,12 @@ } }, "@walmart/allspark-health-survey-mini-app": { - "version": "0.0.20", - "resolved": "https://npme.walmart.com/@walmart/allspark-health-survey-mini-app/-/allspark-health-survey-mini-app-0.0.20.tgz", - "integrity": "sha512-WhQjWqCUM6gwG53rykoWpfbbQqyvHHxlqHQ6gIr5pUt19ld0G2+oCmBPeO6xKc5y0QXyIX984pmoRNiBqOQi2g==", + "version": "0.0.22", + "resolved": "https://npme.walmart.com/@walmart/allspark-health-survey-mini-app/-/allspark-health-survey-mini-app-0.0.22.tgz", + "integrity": "sha512-uYHb6Ys9Bl2sBBQqBV3neOrxZ/J58QrYDEgYqoLJwcdxlq3dhl3bmTTrjkxmDAlPrv4ymbjJ2c8ZIz3juECvJw==", "requires": { - "@walmart/patient-portal-mobile": "^2.0.4", + "@walmart/patient-portal-mobile": "^2.1.1", + "crypto-js": "^3.3.0", "moment": "^2.29.1", "react-native-qrcode-svg": "^6.0.6", "react-native-svg": "^12.1.0", @@ -3051,9 +3052,9 @@ "integrity": "sha512-V85jGOfE+5JauAKvH8gSGvp9vauVj6Pu8Gemj1vm511mlnnct4m5rezB67qGOyIiIdWxAvf4qjSj9662MOsLFQ==" }, "@walmart/inbox-mini-app": { - "version": "0.0.36", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.36.tgz", - "integrity": "sha512-L/KGq4L1nKhhxdApAYTumwBhYptM2lNpswCxlyM2u5l/Td5WZCA2av30RT6x9N6hcFR9G5AqcYV6iP/23YGn7A==" + "version": "0.0.42", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.42.tgz", + "integrity": "sha512-xG6d5ciWs2f+5UmO2eQyBQda8Yf9kdgpvuanokU0B58Ex6WlGdWEd4C4nM4P0tzXlM13R9pSx2K+zU9Pw0FkZg==" }, "@walmart/moment-walmart": { "version": "1.0.4", @@ -3061,9 +3062,9 @@ "integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w==" }, "@walmart/patient-portal-mobile": { - "version": "2.1.0", - "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.0.tgz", - "integrity": "sha512-awo3UG0eKWq4D/XvVFt31POMFkF2KnpfrkIby4ff11IpNsHRqvaj4AsrTUtp9vOMcebKSHO7Xp/cRyT5t4X29A==", + "version": "2.1.1", + "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.1.tgz", + "integrity": "sha512-qkfy/IOGWyq0wSfyWFSo+7V8YgtgGI318QrpNdcqeFk7Vsoc/irxnJ8Aa5iMPeTlSb8qsa+CJUJBixYTPwikxQ==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "@walmart/react-native-collapsible": "1.5.3", @@ -3121,12 +3122,13 @@ "integrity": "sha512-/2QStrLatWqZuSGvGhosemz4kt3dg95Zo5TAvE2AV+GOod1Qyuqzbz70/5CAifuAOPTtK/ihXMCj5xwlMA5SVw==" }, "@walmart/schedule-mini-app": { - "version": "0.2.42", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.42.tgz", - "integrity": "sha512-cl/RTHGzJyRSe12sBda3uuEIJG4rryBpiI9q2U5aPI+4cDQ2qLkq84Cz6bwc6us/KKPstHcKCkg1h8W/Bb3r5Q==", + "version": "0.2.50", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.50.tgz", + "integrity": "sha512-ciQdSDH1CO1s6kf+s1V7APLBxIr4YLzcidzidQx8ZKqFKsXoeJitoM1SxAUTYY2/+glF+Pg+nzzDv4Jj2BFh6w==", "requires": { "@walmart/moment-walmart": "^1.0.4", - "@walmart/wfm-ui": "^0.1.29", + "@walmart/wfm-ui": "0.1.38", + "crypto-js": "^3.3.0", "react-native-tab-view": "^2.15.2", "reselect": "^4.0.0", "wfm-allspark-data-library": "0.0.13" @@ -3189,9 +3191,9 @@ "integrity": "sha512-JjSEMAqaqWW6y58wC3xtu1b8ZGJynsymXH6aMKrDUUi+HTCMOLbA8CWvFlxy/zlGMet8tzCiG5AFWh+A9BVkJQ==" }, "@walmart/wfm-ui": { - "version": "0.1.34", - "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.34.tgz", - "integrity": "sha512-/ys9R1s3hCv81D2Vvz6Ej+kaAGMTHmXGi6NeSgis21ASzpx2JEt3rmhgQUBTWVj+E8RUpXZe7UO1aVpHozBG+Q==", + "version": "0.1.38", + "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.38.tgz", + "integrity": "sha512-Y1sH3ayyDdBEwhXKVcCR+1OdTFgGhm0YwkoLK6cxTbsWw1XBE3Hl4iZGjz7EjO86M6cmm4ztFXj08fbUbgZt5A==", "requires": { "@walmart/gtp-shared-components": "^0.2.2", "@walmart/moment-walmart": "1.0.3", --- package.json @@ -45,7 +45,7 @@ "@react-navigation/stack": "^5.9.0", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": "^4.14.159", - "@walmart/allspark-health-survey-mini-app": "0.0.20", + "@walmart/allspark-health-survey-mini-app": "0.0.22", "@walmart/allspark-home-mini-app": "^0.1.8", "@walmart/allspark-me-mini-app": "0.0.16", "@walmart/ask-sam-mini-app": "0.8.0", @@ -54,14 +54,14 @@ "@walmart/functional-components": "^1.0.22", "@walmart/gtp-shared-components": "^0.2.2", "@walmart/impersonation-mini-app": "1.0.7", - "@walmart/inbox-mini-app": "0.0.36", + "@walmart/inbox-mini-app": "0.0.42", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.0.74", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.17.0", "@walmart/react-native-shared-navigation": "^0.3.0", "@walmart/redux-store": "^1.0.11", - "@walmart/schedule-mini-app": "0.2.42", + "@walmart/schedule-mini-app": "0.2.51", "@walmart/settings-mini-app": "1.1.12", "@walmart/time-clock-mini-app": "0.1.14", "@walmart/ui-components": "1.0.91",
Bumping inbox, health & schedule (#274)
Bumping inbox, health & schedule (#274) * Bumping inbox, health & schedule * Bump schedule-mini-app
367a4513015463a8af938ad254a233a0d0b7bf63
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.8.9", + "version": "3.8.10", "main": "dist/index.js", "files": [ "dist",
feat(ui): update roster mini app version
feat(ui): update roster mini app version
ffd39bc178f2d09c42df70caea4037369ecbd1af
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 85 + versionCode 86 versionName "1.0.6" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>85</string> + <string>86</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
e58b95afb6d8252cc272bf5c9810f5a7a8925bee
--- package-lock.json @@ -65,7 +65,7 @@ "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.14", "@walmart/price-changes-mini-app": "1.6.10", - "@walmart/profile-feature-app": "0.114.0", + "@walmart/profile-feature-app": "0.115.0", "@walmart/push-to-talk-mini-app": "1.8.59", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", @@ -5705,9 +5705,9 @@ } }, "node_modules/@walmart/profile-feature-app": { - "version": "0.114.0", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.114.0.tgz", - "integrity": "sha512-nzsg4BupVI21Qj5jXVVvbOrU+tz7LjzlNPRDnwW5rKpvxUMO+dbVRLMuSeHxMqzwlw8BxFpoN3GdmSYjU06BrA==", + "version": "0.115.0", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.115.0.tgz", + "integrity": "sha512-jHwUYcy+EB+lYBXd1okvWTlvfp6cYHW2NyHPxXoiZNeDFFN3vfDrPNNGm6atMj5YDXvyeD4MVOXixvlcgVz0EQ==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/bottom-tabs": "^6.0.0", @@ -25377,9 +25377,9 @@ "integrity": "sha512-TIzjXjT8jlsb/OrY7WPr4xUv5RsCsnNN0wwjawIwOHurrZtrFn8f/WjwkY8e6zUC3AlZ4QsHdaKqCD/pfkgGPg==" }, "@walmart/profile-feature-app": { - "version": "0.114.0", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.114.0.tgz", - "integrity": "sha512-nzsg4BupVI21Qj5jXVVvbOrU+tz7LjzlNPRDnwW5rKpvxUMO+dbVRLMuSeHxMqzwlw8BxFpoN3GdmSYjU06BrA==" + "version": "0.115.0", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.115.0.tgz", + "integrity": "sha512-jHwUYcy+EB+lYBXd1okvWTlvfp6cYHW2NyHPxXoiZNeDFFN3vfDrPNNGm6atMj5YDXvyeD4MVOXixvlcgVz0EQ==" }, "@walmart/push-to-talk-mini-app": { "version": "1.8.59", --- package.json @@ -107,7 +107,7 @@ "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.14", "@walmart/price-changes-mini-app": "1.6.10", - "@walmart/profile-feature-app": "0.114.0", + "@walmart/profile-feature-app": "0.115.0", "@walmart/push-to-talk-mini-app": "1.8.59", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0",
Bumped profile-featuer-app to 0.115.0
Bumped profile-featuer-app to 0.115.0
4263ffaeb72a18864002090296f9522bbfc01ef4
--- __tests__/AppTest.tsx @@ -32,10 +32,6 @@ jest.mock('../src/navigation/index', () => ({ RootNav: 'RootNav', })); -jest.mock('@walmart/avp-feature-app/dist/components/AVPSharedProvider', () => ({ - AVPSharedProvider: 'AVPSharedProvider', -})); - const mockUseSelector = useSelector as jest.Mock; describe('RootContainer', () => { --- package-lock.json @@ -41,7 +41,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.17.10", "@walmart/attendance-mini-app": "1.62.13", - "@walmart/avp-feature-app": "0.0.28", + "@walmart/avp-feature-app": "0.0.30", "@walmart/avp-shared-library": "0.0.50", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", @@ -8552,9 +8552,9 @@ } }, "node_modules/@walmart/avp-feature-app": { - "version": "0.0.28", - "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.0.28.tgz", - "integrity": "sha512-7Ia3vAXjIf/4md7ZwWGvP9RYcG5r62UpSxC1hsRNNVIWCzqn5pjOESGKrWLRAn9UM3SQcIdIzx38CtlRVrdavA==", + "version": "0.0.30", + "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.0.30.tgz", + "integrity": "sha512-oD7jYo1Ywz4QEHx88L1E8UzG30F3iyOPyMlPq9/Zv/s0mD0rCFOz/5UYiGWwskYrZuDJ4XVO6YJRQ4OR6ZGrLQ==", "hasInstallScript": true, "dependencies": { "react-native-gesture-handler": "^2.13.1" @@ -33239,9 +33239,9 @@ } }, "@walmart/avp-feature-app": { - "version": "0.0.28", - "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.0.28.tgz", - "integrity": "sha512-7Ia3vAXjIf/4md7ZwWGvP9RYcG5r62UpSxC1hsRNNVIWCzqn5pjOESGKrWLRAn9UM3SQcIdIzx38CtlRVrdavA==", + "version": "0.0.30", + "resolved": "https://npme.walmart.com/@walmart/avp-feature-app/-/avp-feature-app-0.0.30.tgz", + "integrity": "sha512-oD7jYo1Ywz4QEHx88L1E8UzG30F3iyOPyMlPq9/Zv/s0mD0rCFOz/5UYiGWwskYrZuDJ4XVO6YJRQ4OR6ZGrLQ==", "requires": { "react-native-gesture-handler": "^2.13.1" } --- package.json @@ -82,7 +82,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.17.10", "@walmart/attendance-mini-app": "1.62.13", - "@walmart/avp-feature-app": "0.0.28", + "@walmart/avp-feature-app": "0.0.30", "@walmart/avp-shared-library": "0.0.50", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", --- src/index.tsx @@ -30,8 +30,6 @@ import {useSelector} from 'react-redux'; import {LINK_CONFIG} from './core/DeeplinkConfig'; import codePush from 'react-native-code-push'; -import {AVPSharedProvider} from '@walmart/avp-feature-app/dist/components/AVPSharedProvider'; - const AllsparkRecipe = {env} as AllsparkInputRecipe; const AllsparkNav = () => { @@ -73,17 +71,15 @@ export class BaseApp extends Component { <SafeAreaProvider> <LivingDesignProvider> <AllsparkCoreServices recipe={AllsparkRecipe}> - <AVPSharedProvider> - <TelemetryConsumer ref={TelemetryRef} /> - <TranslationConsumer ref={TranslationRef} /> - <LocalStorageConsumer ref={LocalStorageRef} /> - <AuthConsumer ref={AuthRef} /> - <CoreLoggerProvider> - <PushToTalkProvider> - <AllsparkNav /> - </PushToTalkProvider> - </CoreLoggerProvider> - </AVPSharedProvider> + <TelemetryConsumer ref={TelemetryRef} /> + <TranslationConsumer ref={TranslationRef} /> + <LocalStorageConsumer ref={LocalStorageRef} /> + <AuthConsumer ref={AuthRef} /> + <CoreLoggerProvider> + <PushToTalkProvider> + <AllsparkNav /> + </PushToTalkProvider> + </CoreLoggerProvider> </AllsparkCoreServices> </LivingDesignProvider> </SafeAreaProvider>
bumped avp version and removed the AVP shared provider from the core
bumped avp version and removed the AVP shared provider from the core
177b831d7fdccca81860ebb1b8920d63609901dc
--- package.json @@ -108,9 +108,9 @@ "@walmart/functional-components": "~6.3.28", "@walmart/global-vpi-mini-app": "1.1.20", "@walmart/gta-react-native-calendars": "0.7.0", - "@walmart/gtp-shared-components": "2.2.7-rc.2", + "@walmart/gtp-shared-components": "2.2.7", "@walmart/ims-print-services-ui": "2.20.0", - "@walmart/inbox-mini-app": "0.100.4", + "@walmart/inbox-mini-app": "0.101.1", "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", "@walmart/iteminfo-mini-app": "8.4.2", "@walmart/learning-mini-app": "20.0.71", --- yarn.lock @@ -7019,9 +7019,9 @@ __metadata: languageName: node linkType: hard -"@walmart/gtp-shared-components@npm:2.2.7-rc.2": - version: 2.2.7-rc.2 - resolution: "@walmart/gtp-shared-components@npm:2.2.7-rc.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fgtp-shared-components%2F-%2F%40walmart%2Fgtp-shared-components-2.2.7-rc.2.tgz" +"@walmart/gtp-shared-components@npm:2.2.7": + version: 2.2.7 + resolution: "@walmart/gtp-shared-components@npm:2.2.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fgtp-shared-components%2F-%2F%40walmart%2Fgtp-shared-components-2.2.7.tgz" dependencies: "@livingdesign/tokens": "npm:0.74.0" "@walmart/gtp-shared-icons": "npm:1.0.10" @@ -7039,7 +7039,7 @@ __metadata: bin: installFonts: ./scripts/installFonts runCodemods: ./scripts/runCodemods - checksum: 10c0/cbd875451901b107f1d7b3acad5b84553378866c804ba5e0aef22c016e9492bfc82f806162e0433da4dc7abb002030465d671e9aa0ba0576950b491b93ea4ba1 + checksum: 10c0/3f2e30df24a2e7cfc82c52ebf06bd4f322dc30a724832e04cca067a7d289eeeadddf0a0dc32d6a6209b6d9b0a9f7eb610351a06eee6da0a258bbcda307bd49b0 languageName: node linkType: hard @@ -7083,9 +7083,9 @@ __metadata: languageName: node linkType: hard -"@walmart/inbox-mini-app@npm:0.100.4": - version: 0.100.4 - resolution: "@walmart/inbox-mini-app@npm:0.100.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.100.4.tgz" +"@walmart/inbox-mini-app@npm:0.101.1": + version: 0.101.1 + resolution: "@walmart/inbox-mini-app@npm:0.101.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.101.1.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ">=1.6.4" @@ -7096,7 +7096,7 @@ __metadata: "@walmart/onewalmart-miniapp": "*" "@walmart/schedule-mini-app": "*" "@walmart/walmart-fiscal-week": "*" - checksum: 10c0/ce8c9f8d634b21a854d2cae685bad47ef7135304595d14862ea8698303e5b96f73d5913ac6012d9e5d273022eb192b5e5a9ffe6f52ba419a41d4a0708e3805a6 + checksum: 10c0/a583a98a00518cbeee0f9139ea91575321f807f4d3bf0a8f134a85db5bc54d74dbe02a7c2ac767cbb3e2e1ca8ff2d3299b860ee07004ef1a9ef3215d4e615144 languageName: node linkType: hard @@ -7449,9 +7449,9 @@ __metadata: "@walmart/functional-components": "npm:~6.3.28" "@walmart/global-vpi-mini-app": "npm:1.1.20" "@walmart/gta-react-native-calendars": "npm:0.7.0" - "@walmart/gtp-shared-components": "npm:2.2.7-rc.2" + "@walmart/gtp-shared-components": "npm:2.2.7" "@walmart/ims-print-services-ui": "npm:2.20.0" - "@walmart/inbox-mini-app": "npm:0.100.4" + "@walmart/inbox-mini-app": "npm:0.101.1" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" "@walmart/iteminfo-mini-app": "npm:8.4.2" "@walmart/learning-mini-app": "npm:20.0.71"
chore(sync): drop32 sync with latest develop (#4360)
chore(sync): drop32 sync with latest develop (#4360) * fix(navigation): updated inbox version ALLSPARK-6372 (#4348) * fix(navigation): updated inbox version ALLSPARK-6372 * fix(commit): dummy commit ALLSPARK-6372 * chore: fix yarn lock * build: SSMP-10831 clean yarn file * chore: SSMP-10831 clean yarn files --------- Co-authored-by: rlane1 <russell.lane@walmart.com> Co-authored-by: Rajeev Kumar - r0k0600 <Rajeev.Kumar0@walmart.com> * chore(gtp-version): Updated GTP version (#4359) Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com> --------- Co-authored-by: Sameeksha Rathi - s0r0nqd <SAMEEKSHA.RATHI@walmart.com> Co-authored-by: rlane1 <russell.lane@walmart.com> Co-authored-by: Rajeev Kumar - r0k0600 <Rajeev.Kumar0@walmart.com> Co-authored-by: h0s0em0 <121838+h0s0em0@users.noreply.gecgithub01.walmart.com> Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com> Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com>
2a11053efc33e8a974e57bc2a6abb5cdf4b946aa
--- src/managerExperience/screens/AllTeamsScreen/AllTeamsScreen.tsx @@ -30,7 +30,8 @@ import { displayTotalStore, } from '../../../redux/selectors'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; -import supplyChainTeamsData from '../../../../__tests__/__mocks__/data/mockSupplyTeamsData.json'; +import { UserSelectors } from '@walmart/allspark-foundation/User'; +import supplyChainTeamsData from './mockData/mockSupplyTeamsData.json'; export const AllTeamsScreen = () => { const {t} = translationClient.useTranslation(); @@ -49,6 +50,8 @@ export const AllTeamsScreen = () => { (!allTeams || !allTeams.every((team) => team !== null)) && error; const siteIsDC = useSelector(SiteSelectors.getWorkingSiteIsDC); + const userDomain = useSelector(UserSelectors.getDomain) + const userIsDC = userDomain === 'distribution center'; if (loading) { return <AllTeamsLoadingScreen />; @@ -120,7 +123,7 @@ export const AllTeamsScreen = () => { primaryTeamArea, ); - if (siteIsDC) { + if (siteIsDC && userIsDC) { return renderDCSectionList(); } --- src/managerExperience/screens/AllTeamsScreen/mockData/mockSupplyTeamsData.json
PR comments changes
PR comments changes
7c9962d52084a19f60737ae2fc163690ec2f2a41
--- package-lock.json @@ -3269,9 +3269,9 @@ } }, "@walmart/ui-components": { - "version": "1.1.27", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.27.tgz", - "integrity": "sha512-Vk1/NtSX2j+SbZX1rnwGkx66MuVmTVHtwwgfJMbX0gNfgFMs3dBYpb2ig6ZvEMBIPcTxbyZishcYf7NMPzjvwg==", + "version": "1.1.30", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.30.tgz", + "integrity": "sha512-d9zAGkG9Qh0GwvLMP5d+DNyUa3st6dmhqFCldEFiUlIWfVgAHqgxH1T4g9y+hGr88myBaziqxBEY1Gv6yuWI9w==", "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.27", + "@walmart/ui-components": "1.1.30", "@walmart/welcomeme-mini-app": "0.24.2", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
updated ui components version
updated ui components version