commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
f875763fe237861a4a32dad0b67f8364190259b3
--- src/utils/assoicateList.ts @@ -15,10 +15,15 @@ const ASC_ORDER = 1; const DESC_ORDER = -1; const NO_SORT = 0; -const checkUserIsTeamLead = (associate: Associate, teamLeads: string[]) => +const checkUserIsSalariedOrTeamLead = ( + associate: Associate, + teamLeads: string[], +) => teamLeads ?.map((CCMJobDescription) => CCMJobDescription.toLowerCase()) - .includes(associate?.jobCategoryCodeDesc?.toLowerCase() as string) + .includes(associate?.jobCategoryCodeDesc?.toLowerCase() as string) || + (associate?.payType && + toUpper(associate?.payType?.toString()) === payTypes.SALARIED) ? ASC_ORDER : DESC_ORDER; @@ -54,12 +59,6 @@ const checkUserOnPTO = (associate: Associate) => const checkUserOnPPTO = (associate: Associate) => associateIsOnPPTO(associate) ? ASC_ORDER : DESC_ORDER; -const checkUserIsSalaried = (associate: Associate) => - associate?.payType && - toUpper(associate?.payType?.toString()) === payTypes.SALARIED - ? ASC_ORDER - : DESC_ORDER; - const sortByAssociateName = (associateA: Associate, associateB: Associate) => associateA?.preferredFirstName?.localeCompare( associateB.preferredFirstName || '', @@ -74,9 +73,8 @@ export const sortedAssociateList = ( ) => [...associatesList].sort( (associateA: Associate, associateB: Associate) => - checkUserIsTeamLead(associateB, teamLeads) - - checkUserIsTeamLead(associateA, teamLeads) || - checkUserIsSalaried(associateB) - checkUserIsSalaried(associateA) || + checkUserIsSalariedOrTeamLead(associateB, teamLeads) - + checkUserIsSalariedOrTeamLead(associateA, teamLeads) || checkUserClockedIn(associateB) - checkUserClockedIn(associateA) || checkUserAtMeal(associateB) - checkUserAtMeal(associateA) || checkUserClockedOut(associateB) - checkUserClockedOut(associateA) ||
Update salaried sorting list
Update salaried sorting list
7bb19cb098d14f2d5cb7c7679c6d4f76b61dab66
--- core/__tests__/__mocks__/@walmart/topstock-mini-app.js @@ -1,3 +1,6 @@ module.exports = { - Topstock: 'Topstock', + __esModule: true, + default: { + buildAllScreens: () => 'TopstockScreen', + }, }; --- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -47,15 +47,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> - <Screen - component={[Function]} - name="Topstock" - options={ - { - "headerShown": false, - } - } - /> <Screen component={[Function]} name="priceChanges" @@ -627,6 +618,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects name="managerExperience.teamOnboarding" /> RfidScanScreens + TopstockScreen </Navigator> `; @@ -677,15 +669,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> - <Screen - component={[Function]} - name="Topstock" - options={ - { - "headerShown": false, - } - } - /> <Screen component={[Function]} name="priceChanges" @@ -1257,5 +1240,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects name="managerExperience.teamOnboarding" /> RfidScanScreens + TopstockScreen </Navigator> `; --- core/src/manifest.ts @@ -78,6 +78,8 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('@walmart/mod-flex-mini-app').default, require('@walmart/shelfavailability-mini-app').default, require('@walmart/rfid-scan-mini-app').default, + require('@walmart/topstock-mini-app').default, + require('@walmart/counts-component-miniapp').default, //REMOVE AFTER ALL TESTS, AS COUNTS MINIAPP WILL DO THIS CHANGE ); } --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -60,7 +60,7 @@ import { StoreFeatureOrderHistoryMiniApp, } from '@walmart/store-feature-orders'; import {TaskItQuickActions, AlarmDetailNav} from '@walmart/taskit-mini-app'; -import {TopstockMiniApp} from '@walmart/topstock-mini-app'; +import TopstockFeature from '@walmart/topstock-mini-app'; import {WmPlusMiniApp} from '@walmart/wm-plus-mini-app'; import {MeganavTextingScreen} from '@walmart/wmconnect-mini-app'; import TranslatorFeature from '@walmart/translator-mini-app'; @@ -117,15 +117,6 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [ }, clockCheckEnabled: true, }, - { - featureId: MINI_APPS.TOPSTOCK, - name: 'Topstock', - component: TopstockMiniApp, - options: { - headerShown: false, - }, - clockCheckEnabled: true, - }, { featureId: MINI_APPS.PRICE_CHANGES, name: 'priceChanges', @@ -602,6 +593,10 @@ export const MainStackNav = () => { {RfidScanFeature.buildAllScreens({ Navigator: MainStack as any, })} + + {TopstockFeature.buildAllScreens({ + Navigator: MainStack as any, + })} </MainStack.Navigator> </> ); --- targets/US/package.json @@ -98,7 +98,7 @@ "@walmart/core-services-allspark": "workspace:^", "@walmart/core-utils": "6.3.9", "@walmart/core-widget-registry": "workspace:^", - "@walmart/counts-component-miniapp": "0.1.14", + "@walmart/counts-component-miniapp": "0.2.1", "@walmart/emergency-mini-app": "1.30.5", "@walmart/exception-mini-app": "1.8.11", "@walmart/facilities-management-miniapp": "0.17.0", @@ -150,7 +150,7 @@ "@walmart/store-feature-orders": "1.27.9", "@walmart/taskit-mini-app": "5.8.17", "@walmart/time-clock-mini-app": "2.448.1", - "@walmart/topstock-mini-app": "1.20.4", + "@walmart/topstock-mini-app": "1.21.6", "@walmart/translator-mini-app": "1.4.2", "@walmart/ui-components": "1.21.2", "@walmart/walmart-fiscal-week": "^0.3.6", --- yarn.lock @@ -6680,31 +6680,21 @@ __metadata: languageName: unknown linkType: soft -"@walmart/counts-component-miniapp@npm:0.1.14": - version: 0.1.14 - resolution: "@walmart/counts-component-miniapp@npm:0.1.14" +"@walmart/counts-component-miniapp@npm:0.2.1": + version: 0.2.1 + resolution: "@walmart/counts-component-miniapp@npm:0.2.1" peerDependencies: - "@react-navigation/native": ^6.0.8 - "@react-navigation/stack": ^6.2.0 - "@walmart/core-services-allspark": ~1.10.11 - "@walmart/core-utils": ~1.3.0 - "@walmart/gtp-shared-components": 2.1.3 - "@walmart/react-native-logger": 1.34.8 - "@walmart/react-native-shared-navigation": 1.0.2 - "@walmart/redux-store": ^3.1.3 - i18next: ^22.0.1 - jwt-decode: ^3.1.2 - react: ^18.2.0 - react-i18next: ^12.0.0 + "@react-navigation/native": ">=6.0.0" + "@react-navigation/stack": ">=6.2.0" + "@walmart/allspark-foundation": "*" + "@walmart/allspark-utils": "*" + react: ">=18.2.0" react-native: 0.73.7 - react-native-app-auth: ^6.4.3 - react-native-device-info: ^10.3.0 - react-native-permissions: ^3.10.1 + react-native-device-info: ">=10.3.0" + react-native-permissions: ">=3.10.1" react-native-webview: ^13.6.3 - react-native-wm-telemetry: 0.3.0 - react-redux: ^8.0.4 - reselect: ^4.1.0 - checksum: 10c0/bac38dc2d1e42cf66d583b8ff6ef6bf60d32a5e16eb8f456600412e60824fe2d969a40e00921478c0805134f60344585fb6463443e36b7f9b1dc194c75b93d27 + reselect: ">=4.1.0" + checksum: 10c0/a7a0dd0df97af0a7f60e9b5dfcd885d69510faf8a20264bb741f2cd80ad1091fb24ffaec3abeb501097c9d62c05eade5b0b5546d092f5a10b6ff4100e21d36df languageName: node linkType: hard @@ -7395,7 +7385,7 @@ __metadata: "@walmart/core-services-allspark": "workspace:^" "@walmart/core-utils": "npm:6.3.9" "@walmart/core-widget-registry": "workspace:^" - "@walmart/counts-component-miniapp": "npm:0.1.14" + "@walmart/counts-component-miniapp": "npm:0.2.1" "@walmart/emergency-mini-app": "npm:1.30.5" "@walmart/exception-mini-app": "npm:1.8.11" "@walmart/facilities-management-miniapp": "npm:0.17.0" @@ -7447,7 +7437,7 @@ __metadata: "@walmart/store-feature-orders": "npm:1.27.9" "@walmart/taskit-mini-app": "npm:5.8.17" "@walmart/time-clock-mini-app": "npm:2.448.1" - "@walmart/topstock-mini-app": "npm:1.20.4" + "@walmart/topstock-mini-app": "npm:1.21.6" "@walmart/translator-mini-app": "npm:1.4.2" "@walmart/ui-components": "npm:1.21.2" "@walmart/walmart-fiscal-week": "npm:^0.3.6" @@ -8449,23 +8439,22 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.20.4": - version: 1.20.4 - resolution: "@walmart/topstock-mini-app@npm:1.20.4" +"@walmart/topstock-mini-app@npm:1.21.6": + version: 1.21.6 + resolution: "@walmart/topstock-mini-app@npm:1.21.6" peerDependencies: "@react-navigation/native": ">=5.8.10" "@react-navigation/stack": ">=5.12.8" "@walmart/allspark-foundation": "*" "@walmart/core-services": "*" "@walmart/core-services-allspark": "*" - "@walmart/react-native-env": ">=0.1.0" "@walmart/ui-components": ">=1.0.79" i18next: ">=19.5.1" react-i18next: ">=11.7.3" react-native-haptic-feedback: ">=1.13.0" react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/59af6a7869f964b6e940e17763f171ac68d7f6755e0c39b7e48ca6ee4c3f82a9f417e6ccf35f17495a7f6841b99fb2f386b386bd10dec4a0d12e2fe6160a9e88 + checksum: 10c0/14bd081f3bfe60e5b1e1130910a9bf4ec73fcd429775403542d8be1c4078741e4dd532899ace317d381546924f28480ca155fc2322f5bcea50b50df2b66f2fb4 languageName: node linkType: hard
topstock version update
topstock version update
cf5909bfcf3857fcda3be900112f01a182597a89
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -82,10 +82,7 @@ import { } from '../NavigationConstants'; import {withClockOutGuard} from '../ClockOutGuard'; import {MainTabsNav} from './Tabs'; -import { - MetricsOutScansTabNavigation, - MetricsOutScansItemTabNavigation, -} from '@walmart/metrics-mini-app'; +import {metricsNavigationScreens} from '@walmart/metrics-mini-app'; //--- Main Stack --- // const MainStack = createStackNavigator(); @@ -321,15 +318,16 @@ export const MainStackNav = () => { }} /> - <MainStack.Screen - name='metrics.outScansDrilldown' - component={MetricsOutScansTabNavigation} - /> - - <MainStack.Screen - name='metrics.outScansItemDrilldown' - component={MetricsOutScansItemTabNavigation} - /> + {metricsNavigationScreens + .filter((screen) => screen.useInMainStack) + .map((screen, index) => ( + <MainStack.Screen + key={index} + component={screen.component} + name={screen.name} + options={screen.options} + /> + ))} {/* Transparent Modal Screens - Renderd on top of current screen*/} <MainStack.Group --- src/navigation/AssociateHallwayNav/Tabs/HomeStackNav.tsx @@ -4,30 +4,7 @@ import {View, StyleSheet, TouchableOpacity, Linking} from 'react-native'; import {createStackNavigator} from '@react-navigation/stack'; import {useLogger} from '@walmart/core-services/Logger'; import {NavigationProp, useNavigation} from '@react-navigation/native'; - -import { - SalesItemizedScreen, - PresubItemizedScreen, - MetricsFtprTabNavigation, - ViewAllFreights, - TotalShrinkDrilldown, - SkuVsBookDrilldown, - InvVsSalesDrilldown, - ViewMoreMetrics, - WoshAssociatesScreen, - SafetyItemizedScreen, - FtprDepartmentScreen, - FtprItemScreen, - FtprMarketItemizedScreen, - SalesItemizedComparisonScreen, - SalesItemizedMarketScreen, - ActualToDemandItemizedScreen, - ActualToDemandMarketItemizedScreen, - ExpensesTabNav, - MetricsOutScansTabNavigation, - MetricsOutScansItemTabNavigation, - WagesMarketScreen, -} from '@walmart/metrics-mini-app'; +import {metricsNavigationScreens} from '@walmart/metrics-mini-app'; import {useTelemetry} from '@walmart/core-services/Telemetry'; import {useTranslation} from '@walmart/core-services/Translations'; import { @@ -167,93 +144,14 @@ export const HomeStackNav = () => { component={CelebrationListScreen} /> - <HomeStack.Screen - component={SalesItemizedScreen} - name='metrics.salesDrilldown' - /> - <HomeStack.Screen - name='metrics.salesComparisonDrilldown' - component={SalesItemizedComparisonScreen} - /> - <HomeStack.Screen - name='metrics.salesMarketDrilldown' - component={SalesItemizedMarketScreen} - /> - <HomeStack.Screen - name='metrics.expensesDrilldown' - component={ExpensesTabNav} - /> - <HomeStack.Screen - name='metrics.outScansDrilldown' - component={MetricsOutScansTabNavigation} - /> - <HomeStack.Screen - name='metrics.outScansItemDrilldown' - component={MetricsOutScansItemTabNavigation} - /> - <HomeStack.Screen - component={PresubItemizedScreen} - name='metrics.preSubDrilldown' - /> - <HomeStack.Screen - component={MetricsFtprTabNavigation} - name='metrics.ftprDrilldown' - /> - <HomeStack.Screen - component={ViewAllFreights} - name='metrics.viewAllFreights' - /> - <HomeStack.Screen - component={TotalShrinkDrilldown} - name='metrics.shrinkDrilldown' - options={{title: 'Shrink'}} - /> - <HomeStack.Screen - component={SafetyItemizedScreen} - name='metrics.safetyDrilldown' - /> - <HomeStack.Screen - name='metrics.shrinkSkuVsBookDrilldown' - component={SkuVsBookDrilldown} - options={{title: 'SKU vs Book'}} - /> - <HomeStack.Screen - name='metrics.shrinkInvVsSalesDrilldown' - component={InvVsSalesDrilldown} - options={{title: 'Inventory vs Sales'}} - /> - <HomeStack.Screen - component={ViewMoreMetrics} - name='metrics.viewMoreMetrics' - /> - <HomeStack.Screen - component={WoshAssociatesScreen} - name='metrics.woshDrilldown' - /> - <HomeStack.Screen - component={WagesMarketScreen} - name='metrics.wagesMarketDrilldown' - /> - <HomeStack.Screen - component={FtprDepartmentScreen} - name='metrics.ftprDepartmentScreen' - /> - <HomeStack.Screen - component={FtprItemScreen} - name='metrics.ftprItemScreen' - /> - <HomeStack.Screen - component={FtprMarketItemizedScreen} - name='metrics.ftprMarketDrilldown' - /> - <HomeStack.Screen - component={ActualToDemandItemizedScreen} - name='metrics.actualToDemandDrilldown' - /> - <HomeStack.Screen - component={ActualToDemandMarketItemizedScreen} - name='metrics.actualToDemandMarketDrilldown' - /> + {metricsNavigationScreens.map((screen, index) => ( + <HomeStack.Screen + key={index} + component={screen.component} + name={screen.name} + options={screen.options} + /> + ))} </HomeStack.Navigator> ); };
Changes for removing the redundant code for adding metrics screens in core
Changes for removing the redundant code for adding metrics screens in core
50823c0ddd09932333c3a6eb82fd5252463c45f1
--- packages/allspark-foundation/__tests__/LocalStorage/client.test.tsx @@ -14,7 +14,7 @@ describe('LocalStorageClient', () => { }); test('should get an item', async () => { - (AsyncStorage.getItem as jest.Mock).mockResolvedValue('testValue'); + (AsyncStorage.getItem as jest.Mock).mockResolvedValue(JSON.stringify({value: 'testValue'})); const result = await client.get('testKey'); expect(AsyncStorage.getItem).toHaveBeenCalledWith('testId_testKey'); expect(result).toBe('testValue'); @@ -81,4 +81,29 @@ describe('LocalStorageClient', () => { const fetchedClient = client.getFeatureInstance('featureId'); expect(fetchedClient).toBe(featureClient); }); + + test('should return null for expired and delete the value', async () => { + (AsyncStorage.getItem as jest.Mock).mockResolvedValue(JSON.stringify({value: 'testValue', expiry: 10000})); + global.Date.now = () => 15000; + const result = await client.get('testKey'); + expect(result).toBe(null); + expect(AsyncStorage.removeItem).toHaveBeenCalledWith('testId_testKey'); + }); + + test('should return value for unexpired', async () => { + (AsyncStorage.getItem as jest.Mock).mockResolvedValue(JSON.stringify({value: 'testValue', expiry: 10000})); + global.Date.now = () => 5000; + const result = await client.get('testKey'); + expect(result).toBe('testValue'); + }); + + test('should set expiry correctly using ttl', async () => { + (AsyncStorage.getItem as jest.Mock).mockResolvedValue(JSON.stringify({value: 'testValue', expiry: 10000})); + global.Date.now = () => 5000; + await client.set('testKey', 'testValue', { + ttl: 3000 + }); + expect(AsyncStorage.setItem).toHaveBeenCalledWith('testId_testKey', JSON.stringify({value: 'testValue', expiry: 8000})); + }); + }); \ No newline at end of file --- packages/allspark-foundation/src/LocalStorage/client.ts @@ -2,6 +2,9 @@ import AsyncStorage from '@react-native-async-storage/async-storage'; import { noop } from '@walmart/allspark-utils'; import { KeyValuePair, LocalStorageConfig } from './types'; +type SetConfig = { + ttl: number; +}; export class LocalStorageClient { private _id: string; private _config: LocalStorageConfig; @@ -36,6 +39,16 @@ export class LocalStorageClient { return `${this._config.prefix || this._id}_${key}`; }; + private _buildValue = (value: string, config?: SetConfig) => { + if (config?.ttl) { + return JSON.stringify({ + value, + expiry: Date.now() + config.ttl, + }); + } + return value; + }; + private _buildKeys = (keys: string[]) => { return keys.map((key) => this._buildKey(key)); }; @@ -47,11 +60,28 @@ export class LocalStorageClient { }; public get = (key: string) => { - return AsyncStorage.getItem(this._buildKey(key)); - }; - - public set = (key: string, value: string) => { - return AsyncStorage.setItem(this._buildKey(key), value); + return new Promise(async (resolve) => { + const storedData = await AsyncStorage.getItem(this._buildKey(key)); + if (!storedData) { + resolve(null); + } + + const parsedStoredData = JSON.parse(storedData as string); + if (parsedStoredData && parsedStoredData.expiry) { + if (Date.now() >= parsedStoredData.expiry) { + resolve(null); + this.remove(this._buildKey(key)); + } + } + resolve(parsedStoredData.value); + }); + }; + + public set = (key: string, value: string, config?: SetConfig) => { + return AsyncStorage.setItem( + this._buildKey(key), + this._buildValue(value, config) + ); }; public remove = (key: string) => {
feat(storage): adding expiry to async storage
feat(storage): adding expiry to async storage
4f9d49ac5a07648f489fa8f0270d78de7f76d72f
--- src/components/TeamSearchInput/TeamSearchInput.tsx @@ -10,6 +10,7 @@ import {useSelector} from 'react-redux'; export const TeamSearchInput = ({ loading = false, + text, handleChange, }: TeamSearchInputProps) => { const {t} = translationClient.useTranslation(); @@ -28,6 +29,7 @@ export const TeamSearchInput = ({ </View> <TextInput style={styles.inputStyle} + value={text} placeholder={t('rosterScreen.searchInput.placeholderText')} placeholderTextColor={colors.gray['100']} onChangeText={handleChange} --- src/components/TeamSearchInput/types.ts @@ -1,4 +1,5 @@ export interface TeamSearchInputProps { loading?: boolean; + text: string; handleChange: (text: string) => void; } --- src/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -246,6 +246,14 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { FilterValue.all, ); + useEffect(() => { + const unsubscribe = navigation.addListener('focus', () => { + //Reset text when the screen is focused + setSearchInput(''); + }); + return unsubscribe; + }, [navigation]); + const stopRefreshing = () => setState((prev) => ({ ...prev, @@ -464,6 +472,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { {showSearchInput && ( <TeamSearchInput loading={dataLoading} + text={searchInput} handleChange={(text: string) => { setSearchInput(text); }}
fix: fix persistence issue with search input and last opened tab
fix: fix persistence issue with search input and last opened tab
60b044d9bbaadd5456a3f2b92eaa4afef6c6472c
--- src/containers/ChatInput/AudioPlayback.tsx @@ -171,7 +171,7 @@ export const AudioPlayback = (props: { return onPlay(); }; - const timeCaption = + const recordingAudioTimeCaption = playbackDetails.isPlaying || playbackDetails.didJustFinish || playbackDetails.isPaused @@ -187,7 +187,7 @@ export const AudioPlayback = (props: { <MeteringPlayback metering={audio.metering} style={styles.metering} /> - <Caption UNSAFE_style={styles.time}>{timeCaption}</Caption> + <Caption UNSAFE_style={styles.time}>{recordingAudioTimeCaption}</Caption> </View> ); }; --- src/containers/ChatInput/AudioPlayback.tsx @@ -171,7 +171,7 @@ export const AudioPlayback = (props: { return onPlay(); }; - const timeCaption = + const recordingAudioTimeCaption = playbackDetails.isPlaying || playbackDetails.didJustFinish || playbackDetails.isPaused @@ -187,7 +187,7 @@ export const AudioPlayback = (props: { <MeteringPlayback metering={audio.metering} style={styles.metering} /> - <Caption UNSAFE_style={styles.time}>{timeCaption}</Caption> + <Caption UNSAFE_style={styles.time}>{recordingAudioTimeCaption}</Caption> </View> ); };
changing variable name to be more accurate
changing variable name to be more accurate
c8e9f496c76cd221d57f0cd8ca8376433cc8150e
--- package-lock.json @@ -3372,9 +3372,9 @@ "integrity": "sha512-cKvZIhfn+NPDhdwFONeRyOmj81FOh7Qmne00KJ4gah40L3T2cWvNR1lXRmC0ORLQ/cK0orrDvXfVpVTIa06CKQ==" }, "@walmart/iteminfo-mini-app": { - "version": "2.0.3", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.3.tgz", - "integrity": "sha512-73lhU+Ofyozf3Mrfp7sL+KEOX+iJvIZAuunfVPG6YLyMtcdr2bRbFxWSNF0orCRuN2mIe+WPPLYBymCNcvGgLw==", + "version": "2.0.4", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.4.tgz", + "integrity": "sha512-JzL5YCHz6r/WtPD3/NtW3CtCWpbWO5+AYaoP4B2uGetZDotpMI7LUg5etHuW560pL5adRs/HDK5VxezVwebjZw==", "requires": { "react-native-chart-kit": "6.6.1" } --- package.json @@ -83,7 +83,7 @@ "@walmart/impersonation-mini-app": "1.0.18", "@walmart/ims-print-services-ui": "0.0.32", "@walmart/inbox-mini-app": "0.0.105", - "@walmart/iteminfo-mini-app": "2.0.3", + "@walmart/iteminfo-mini-app": "2.0.4", "@walmart/manager-approvals-miniapp": "0.0.46", "@walmart/metrics-mini-app": "0.4.11", "@walmart/moment-walmart": "1.0.4",
ItemInfo 2.0.4
ItemInfo 2.0.4
82bff3708a1f7bfdf2304a81a8d2cee4f47dcf4d
--- src/components/TeamList.tsx @@ -113,7 +113,7 @@ const TeamItem = (props: { } }; - const clockedInCount = teamRoster.filter(associateIsClockedIn).length; + const clockedInCount = teamRoster?.filter(associateIsClockedIn).length; return ( <ListItem --- src/components/TeamList.tsx @@ -113,7 +113,7 @@ const TeamItem = (props: { } }; - const clockedInCount = teamRoster.filter(associateIsClockedIn).length; + const clockedInCount = teamRoster?.filter(associateIsClockedIn).length; return ( <ListItem
fix null ptr error
fix null ptr error
231f12ea8640d67455361b653223c0c332b695f5
--- sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectName=AllSpark-Core sonar.projectVersion=1.0.0 sonar.host.url=http://sonar.looper.prod.walmartlabs.com -sonar.sources=targets/US/src,core/src, packages/me-at-walmart-container/src, packages/me-at-walmart-common/src, scripts/dependencies-map +sonar.sources=targets/US/src,core/src, packages/me-at-walmart-container/src, packages/me-at-walmart-common/src, scripts/dependencies-map/deps-crawler, scripts/dependencies-map/upload-to-azure sonar.tests=targets/US/__tests__,core/__tests__, packages/me-at-walmart-container/__tests__, packages/me-at-walmart-common/__tests__, scripts/dependencies-map/deps-crawler/__tests__, scripts/dependencies-map/upload-to-azure/__tests__ sonar.exclusions=targets/US/src/images,targets/US/src/navigation/Navigation.tsx,targets/US/src/navigation/NavigationStyle.ts sonar.sourceEncoding=UTF-8
fix: trying to resolve issue with sonar indexing dependencies-map tests and code
fix: trying to resolve issue with sonar indexing dependencies-map tests and code
3c86d0d33bcd642c46ea82e0ba8be738bcbd04a2
--- .looper.multibranch.yml @@ -28,11 +28,11 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/* + - spec: feature/drop23 triggers: - manual: - name: Publish Changed Packages - call: publishFromChanges + name: Publish Changed Packages + call: publishFromChanges flows: prepare-npm-project:
chore: testing looper changes
chore: testing looper changes
996218ae8d01a6eaa400a54662778359619dd19b
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.25.0", + "version": "2.26.0", "main": "dist/index.js", "files": [ "dist" @@ -85,7 +85,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.27.4", - "@walmart/allspark-foundation-hub": "1.3.0", + "@walmart/allspark-foundation-hub": "1.3.1", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", --- yarn.lock @@ -5914,9 +5914,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.3.0": - version: 1.3.0 - resolution: "@walmart/allspark-foundation-hub@npm:1.3.0" +"@walmart/allspark-foundation-hub@npm:1.3.1": + version: 1.3.1 + resolution: "@walmart/allspark-foundation-hub@npm:1.3.1" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -5932,7 +5932,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/065f2d5758c4af6f1087eb539de5f43e8373058fe44008a2405f23d67c2e8c28cc97437e94266ba794895e395d4b365bb5f2627740f7aac867f0907f6ba72d00 + checksum: 10c0/da1c95dbefcb81d63544c2272798d621b7867a302517e695b8b4a05d10f6813fc899c0d8fc6edb97890aed715ed749cc0467ce0d3c4546a05544c37d6bc125c7 languageName: node linkType: hard @@ -6383,7 +6383,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.27.4" - "@walmart/allspark-foundation-hub": "npm:1.3.0" + "@walmart/allspark-foundation-hub": "npm:1.3.1" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0"
Update the roster mini app version
Update the roster mini app version
7b838ee5f16587f05716abf0ffaad39617ed59a8
--- react-native.config.js @@ -1,7 +1,7 @@ module.exports = { project: { - ios: { }, - android: { }, + ios: {}, + android: {}, }, dependencies: { ...(process.env.CI @@ -9,4 +9,4 @@ module.exports = { : {}), }, assets: ['node_modules/@walmart/ui-components/assets'], -}; \ No newline at end of file +}; --- scripts/updateAndroidProjectConfig.sh @@ -63,3 +63,5 @@ sed -Ei '' "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/$ echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}" sed -Ei '' "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS} + +
Revert react-native-config.js
Revert react-native-config.js
6b0d0733efed0f90ee60ffb0309865b82d94f495
--- package.json @@ -132,7 +132,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.17.0-alpha.5", + "@walmart/allspark-foundation": "6.17.0", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-utils": "~6.5.0", @@ -141,7 +141,7 @@ "@walmart/core-utils": "~6.3.9", "@walmart/core-widget-registry": "workspace:^", "@walmart/functional-components": "~6.3.20", - "@walmart/me-at-walmart-athena-queries": "6.24.0-alpha.0", + "@walmart/me-at-walmart-athena-queries": "6.24.0", "@walmart/me-at-walmart-common": "workspace:^", "@walmart/me-at-walmart-container": "workspace:^", "@walmart/moment-walmart": "1.0.4", --- yarn.lock @@ -5403,9 +5403,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.17.0-alpha.5": - version: 6.17.0-alpha.5 - resolution: "@walmart/allspark-foundation@npm:6.17.0-alpha.5" +"@walmart/allspark-foundation@npm:6.17.0": + version: 6.17.0 + resolution: "@walmart/allspark-foundation@npm:6.17.0" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -5498,7 +5498,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/6ec62f9d06ac42f14ad53628ee657fc8e1f7038dc8be2b10ab1acfd54707dc10c7889dad132b526c0b8a5ff75d365e06d824ca9b98472c41ec0f7236e0ab04db + checksum: 10c0/719e3e4110b71a5d5293d938cac04b20e45ef8d3029d06c26df93b5efd2d636feeefe6dc7a754748e3e869a16f0c9b12785bcad127a77724d7ac5e8a6e9ef3cd languageName: node linkType: hard @@ -6512,12 +6512,12 @@ __metadata: languageName: node linkType: hard -"@walmart/me-at-walmart-athena-queries@npm:6.24.0-alpha.0": - version: 6.24.0-alpha.0 - resolution: "@walmart/me-at-walmart-athena-queries@npm:6.24.0-alpha.0" +"@walmart/me-at-walmart-athena-queries@npm:6.24.0": + version: 6.24.0 + resolution: "@walmart/me-at-walmart-athena-queries@npm:6.24.0" peerDependencies: "@apollo/client": "*" - checksum: 10c0/ea215ba2478b36d64dbab3dafc16b776fbf5a40a8277534a937f37702e59640cf2bc0b71c0d3e7634ce9dc442ce2e2c4c2ea6245b8d5167e28861ae7a2b324cb + checksum: 10c0/48dd40c509916833264ae284291526a5cc41bcc58cbe3a22177daa8bdfba3cd8965f1da6cfc568c39a6903b7387389fe6257b0be1c6ff7de6415140c96332005 languageName: node linkType: hard
chore: bump foundation for release version
chore: bump foundation for release version
ff66efa8708667f149e6128498470ccbf7297cf4
--- packages/allspark-foundation/__mocks__/react-native-gesture-handler.js @@ -0,0 +1,5 @@ +module.exports = { + GestureHandlerRootView: ({ children }: { children: React.ReactNode }) => children, + PanGestureHandler: jest.fn(), + }; + \ No newline at end of file --- packages/allspark-foundation/__mocks__/react-native-safe-area-context.js @@ -1,14 +1,5 @@ -const inset = { - top: 0, - right: 0, - bottom: 0, - left: 0, -}; - module.exports = { - ...jest.requireActual('react-native-safe-area-context'), SafeAreaView: 'SafeAreaView', - useSafeAreaInsets: jest.fn(() => inset), - SafeAreaProvider: ({ children }) => children, - useSafeAreaFrame: jest.fn(() => ({ x: 0, y: 0, width: 0, height: 0 })), + useSafeAreaInsets: jest.fn(() => ({top: 0, bottom: 0, right: 0, left: 0})), + SafeAreaProvider: ({ children }: { children: React.ReactNode }) => children, }; --- packages/allspark-foundation/__tests__/Container/__snapshots__/AllsparkContainer.test.tsx.snap @@ -1,13 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AllsparkContainer renders the Provider component and triggers the root setup 1`] = ` -<View - style={ - { - "flex": 1, - } - } -> - <LivingDesignProvider /> -</View> -`; +exports[`AllsparkContainer renders the Provider component and triggers the root setup 1`] = `<LivingDesignProvider />`; --- packages/allspark-foundation/__tests__/FeatureRunner/navigation.test.ts @@ -0,0 +1,37 @@ +import { createFeatureRunnerNavigation } from '../../src/FeatureRunner/navigation'; +import { AllsparkFeatureModule } from '../../src/Feature'; + +jest.mock('../../src/Permissions', () => { + const initVal = jest.requireActual('../../src/Permissions'); + return { + ...initVal, + PERMISSIONS: { + ANDROID: {}, + IOS: {}, + WINDOWS: {}, + }, + }; +}); + +jest.mock('../../src/Feature', () => ({ + AllsparkFeatureModule: jest.fn().mockImplementation(() => ({ + buildAllScreens: jest.fn().mockReturnValue([]), + })), +})); + +describe('createFeatureRunnerNavigation', () => { + const mockFeature = new AllsparkFeatureModule(); + afterEach(() => { + jest.clearAllMocks(); + }); + it('should be defined', () => { + const result = createFeatureRunnerNavigation(mockFeature); + expect(result).toBeDefined(); + }); + it('should call buildAllScreens with correct arguments', () => { + createFeatureRunnerNavigation(mockFeature); + expect(mockFeature.buildAllScreens).toHaveBeenCalledWith({ + Navigator: undefined, + }); + }); +}); \ No newline at end of file --- packages/allspark-foundation/__tests__/FeatureRunner/navigation.test.tsx @@ -1,116 +0,0 @@ -import { AllsparkNavigationClient } from '../../src/Navigation'; -import { - createFeatureRunnerNavigation, - PluginComponentContainer, -} from '../../src/FeatureRunner/navigation'; -import { AllsparkFeatureModule } from '../../src/Feature'; - -jest.mock('../../src/Permissions', () => { - const initVal = jest.requireActual('../../src/Permissions'); - return { - ...initVal, - PERMISSIONS: { - ANDROID: {}, - IOS: {}, - WINDOWS: {}, - }, - }; -}); - -jest.mock('../../src/Feature', () => ({ - ...jest.requireActual('../../src/Feature'), - AllsparkFeatureModule: jest.fn().mockImplementation(() => ({ - buildAllScreens: jest.fn().mockReturnValue([]), - })), -})); - -jest.mock('@react-navigation/native', () => { - return { - ...jest.requireActual('@react-navigation/native'), - }; -}); - -jest.mock('@react-navigation/drawer', () => { - return { - ...jest.requireActual('@react-navigation/drawer'), - }; -}); - -jest.mock('@react-navigation/stack', () => { - return { - ...jest.requireActual('@react-navigation/stack'), - }; -}); - -// jest.mock('react-redux', () => ({ -// useSelector: jest.fn(), -// })); -jest.mock('../../src/Environment', () => ({ - AllsparkEnvironment: { - resolveDerivedValue: jest.fn(), - }, -})); -jest.mock('../../src/Navigation', () => ({ - AllsparkNavigationClient: { - addModal: jest.fn(), - openModal: jest.fn(), - }, -})); -jest.mock('../../src/Components', () => ({ - ...jest.requireActual('../../src/Components'), - PluginComponentContainer: { - add: jest.fn(), - }, -})); -jest.mock('../../src/FeatureRunner/screens/Home', () => ({ - Home: () => 'HomeScreen', -})); -jest.mock('../../src/FeatureRunner/screens/Login', () => ({ - Login: () => 'LoginScreen', -})); - -const spyAdd = jest.spyOn(PluginComponentContainer, 'add'); -const mockFeature = new AllsparkFeatureModule('TestFeature', { - name: 'TestFeature', -}); -describe('createFeatureRunnerNavigation', () => { - afterEach(() => { - jest.clearAllMocks(); - }); - it('should be defined', () => { - const result = createFeatureRunnerNavigation(mockFeature); - expect(result).toBeDefined(); - }); - it('should call buildAllScreens with correct arguments', () => { - createFeatureRunnerNavigation(mockFeature); - expect(mockFeature.buildAllScreens).toHaveBeenCalledWith( - expect.objectContaining({ - Navigator: expect.objectContaining({ - Group: expect.any(Function), - Screen: expect.any(Function), - Navigator: expect.any(Function), - }), - }) - ); - }); - const mockPlugins = [ - { name: 'Plugin1', component: () => 'PluginComponent', menuOption: {} }, - ]; - - beforeEach(() => { - jest.clearAllMocks(); - }); - - it('registers plugins to PluginComponentContainer and DynamicSideMenu', () => { - createFeatureRunnerNavigation(mockFeature, [], mockPlugins); - expect(spyAdd).toHaveBeenCalledWith('Plugin1', expect.any(Function)); - }); - - it('adds ClockModal to AllsparkNavigationClient', () => { - createFeatureRunnerNavigation(mockFeature); - expect(AllsparkNavigationClient.addModal).toHaveBeenCalledWith( - 'container.clock', - expect.objectContaining({ modal: expect.any(Function) }) - ); - }); -}); --- packages/allspark-foundation/__tests__/utils/setup.js @@ -1,17 +1,6 @@ -// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing -import { jest } from '@jest/globals'; - jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter'); const { NativeModules } = require('react-native'); -// Include this line for mocking react-native-gesture-handler -import 'react-native-gesture-handler/jestSetup'; - -// Include this section for mocking react-native-reanimated -import { setUpTests } from 'react-native-reanimated'; - -setUpTests(); - // Stub out NativeModules NativeModules.RNCNetInfo = {}; NativeModules.RNGestureHandlerModule = {}; --- packages/allspark-foundation/jest.config.js @@ -9,9 +9,6 @@ module.exports = { globals: { __DEV__: true, }, - setupFiles: [ - '<rootDir>/__tests__/utils/setup.js', - '<rootDir>/../../node_modules/react-native-gesture-handler/jestSetup.js', - ], + setupFiles: ['<rootDir>/__tests__/utils/setup.js'], testPathIgnorePatterns: ['__mocks__/', '__tests__/utils/'], };
Revert "test: createFeatureRunnerNavigation"
Revert "test: createFeatureRunnerNavigation" This reverts commit 0b91a868ece77120b026679b32a744f2446dc1e1.
8e0991b7d0453515f9a0207d6cfe5a914e28217a
--- __tests__/home/components/GreetingRowV2/useUserInfoTest.ts @@ -109,7 +109,6 @@ describe('useUserInfo', () => { }); it('exposes refetch passthrough', () => { - const refetch = jest.fn(); mockUseQuery.mockReturnValue({ data: {getAssociateById: {wfmSchedule: 'ShiftR'}},
feat(header): API with caching
feat(header): API with caching
e4d4219ff32efe77116c8fb892113a56e9c7f05e
--- .looper-pr.yml @@ -5,6 +5,7 @@ tools: flavor: azul version: 17 + flows: npm-install: - (name Enable Corepack) corepack enable --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.8.1", + "version": "1.9.0", "main": "dist/index.js", "files": [ "dist"
feat(ui): update version for drop 23 SMDV-5985
feat(ui): update version for drop 23 SMDV-5985
e37b850a66e8b6fd5406664925c09b8e73486749
--- .looper.multibranch.yml @@ -515,6 +515,7 @@ flows: exit 0 - (name cocoapods setup) ./BuildSupport/install-cocoapods.sh - (name prepare xcode) bundle exec fastlane set_xcodeversion version:$TARGET_XCODE +# - (name prepare xcode) bundle exec fastlane run xcversion version:"13.0" # performs the ios build for the given env # --- fastlane/Fastfile @@ -35,7 +35,7 @@ end desc 'Set xcode version' lane :set_xcodeversion do |values| - xcversion(version: "13.0") + xcversion(version:"13.0") end desc 'Evaluate and Set Build Number and Version Code'
update hallway
update hallway
265770af0bb0467c4537e665d54e2d9b5a38d719
--- targets/US/package.json @@ -126,7 +126,7 @@ "@walmart/onewalmart-miniapp": "1.0.27", "@walmart/pay-stub-miniapp": "0.20.11", "@walmart/payrollsolution_miniapp": "0.145.31", - "@walmart/price-changes-mini-app": "1.10.25", + "@walmart/price-changes-mini-app": "1.11.2", "@walmart/profile-feature-app": "1.138.5", "@walmart/react-native-cookies": "1.0.1", "@walmart/react-native-encrypted-storage": "~1.1.3",
Update package.json
Update package.json
dad0379ad6caea98c32a1359b550eda3937cc409
--- __tests__/navigation/DeeplinkConfigTest.ts @@ -9,10 +9,10 @@ describe('link config test', () => { expect(LINK_CONFIG.prefixes.length).toEqual(1); }); - xit('checks the link config', () => { + it('checks the link config', () => { const { // @ts-ignore - screens: {main}, + screens: {'Core.Main': main}, } = LINK_CONFIG.config; expect(main).toEqual({ screens: {
fix deep link test
fix deep link test
c8be9ff76ac742f360ad3f79964320257a5ed733
--- src/hooks/teams.ts @@ -49,7 +49,6 @@ export const useSupplyChainTeamById = (teamId: string) => { variables: { siteNbr: Number(storeNbr)!, countryCode: countryCode!, - date: moment().format('YYYY-MM-DD'), teamId, includeProxyMembers: true, },
feat(ui): update grphql queries
feat(ui): update grphql queries
2d3f1b8c907cbd2d543897961d93624b2f7f8079
--- package.json @@ -126,7 +126,7 @@ "@walmart/onewalmart-miniapp": "1.0.24", "@walmart/pay-stub-miniapp": "0.15.2", "@walmart/payrollsolution_miniapp": "0.140.4", - "@walmart/price-changes-mini-app": "1.10.11", + "@walmart/price-changes-mini-app": "1.10.12", "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch", "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "6.1.4", --- yarn.lock @@ -6696,12 +6696,12 @@ __metadata: languageName: node linkType: hard -"@walmart/price-changes-mini-app@npm:1.10.11": - version: 1.10.11 - resolution: "@walmart/price-changes-mini-app@npm:1.10.11" +"@walmart/price-changes-mini-app@npm:1.10.12": + version: 1.10.12 + resolution: "@walmart/price-changes-mini-app@npm:1.10.12" peerDependencies: - "@react-navigation/native": ^6.0.0 - "@react-navigation/stack": ^6.1.0 + "@react-navigation/native": ^6.0.8 + "@react-navigation/stack": ^6.2.0 "@walmart/allspark-utils": ^1.5.2 "@walmart/counts-component-miniapp": 0.1.10 "@walmart/gtp-shared-components": 2.2.1-rc.0 @@ -6710,22 +6710,22 @@ __metadata: "@walmart/redux-store": 3.1.3 "@walmart/ui-components": ^1.6.0 axios: ^0.26.1 - expo: 49.0.0 - expo-image: 1.3.5 + expo: 50.0.17 + expo-image: 1.5.0 i18next: ^20.2.2 lodash: ^4.17.21 moment: ^2.29.4 react: ^17.0.2 react-i18next: ^11.7.3 - react-native: 0.72.5 - react-native-permissions: ^3.6.1 - react-native-webview: ^10.7.0 + react-native: 0.73.7 + react-native-permissions: ^3.10.1 + react-native-webview: ^13.6.1 react-redux: ^7.2.1 redux: ^4.0.5 redux-saga: ^1.1.3 reduxsauce: ^1.2.0 uuid: ^3.3.2 - checksum: 10c0/32d2ca523dfaf314c610bae4087bbf419d9ef8138fa41b11094378610a622dcf650df5d713a5e507826ce5a1522533ba073dfddf2cd76b00abf7245c4eed7385 + checksum: 10c0/7118a9dba169f63bfe6a1e10f5b8285a243bbdca250a41a3e4d9cf4eee6117ac88fe741fbcb30d4cdcc8daa5f8d10f13ebbd6b912b303999d83fd46b8ab9c262 languageName: node linkType: hard @@ -7766,7 +7766,7 @@ __metadata: "@walmart/onewalmart-miniapp": "npm:1.0.24" "@walmart/pay-stub-miniapp": "npm:0.15.2" "@walmart/payrollsolution_miniapp": "npm:0.140.4" - "@walmart/price-changes-mini-app": "npm:1.10.11" + "@walmart/price-changes-mini-app": "npm:1.10.12" "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-env": "npm:6.1.4"
chore: updating pc version
chore: updating pc version
18eba864009dd79c5e9a38c0ee0f7768f9a1b03c
--- android/app/src/main/java/com/walmart/stores/allspark/beta/FCMPushReceiver.java @@ -13,7 +13,7 @@ public class FCMPushReceiver extends SumoModuleFCMPushReceiver { Context context = getApplicationContext(); SumoNotification sumoNotification = SumoNotificationFCM.parseFCMNotification(remoteMessage); - SumoNotificationProfiles.shared().applyProfileForNotification(sumoNotification); + SumoNotificationProfiles.shared().applyProfileForNotification(context, sumoNotification); setTappedIntent(sumoNotification,context); sumoNotification.setLargeIcon("ic_notification_icon"); sumoNotification.setPriority(2);
adding fix for notification icon (#368)
adding fix for notification icon (#368) Co-authored-by: Hitesh Arora <>
15df8558f09d61a9db52fa00f04990354692721f
--- jest.config.js @@ -14,6 +14,13 @@ module.exports = { '<rootDir>/src/**/*.{js,jsx,ts,tsx}', '!<rootDir>/src/queries/*', '!<rootDir>/src/mocks/*', + '!<rootDir>/src/**/*.types.ts', + '!<rootDir>/src/**/types.ts', + '!<rootDir>/src/**/index.ts', + '!<rootDir>/src/**/constants.ts', + '!<rootDir>/src/**/styles.ts', + '!<rootDir>/src/**/style.ts', + '!<rootDir>/src/**/*.d.ts', ], coverageReporters: ['lcov', 'text'], coverageThreshold: { --- src/Components/ShiftFilter/index.ts
feat(ui): update jest.config.js #SMDV-8074
feat(ui): update jest.config.js #SMDV-8074
52840951029023fa08f1e7be16b66240f2886b6d
--- package.json @@ -104,7 +104,7 @@ "@walmart/iteminfo-mini-app": "7.4.0", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", - "@walmart/metrics-mini-app": "0.15.8", + "@walmart/metrics-mini-app": "0.15.9", "@walmart/mod-flex-mini-app": "1.10.4", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16",
metrics version bump
metrics version bump
74ebb7f1a5802c4221a88cd2f7256a172184ae43
--- packages/allspark-foundation/__tests__/Auth/sagas.test.tsx @@ -25,8 +25,7 @@ describe('Auth/sagas.ts', () => { }); it('should call onGetUser when GET_USER action is dispatched', () => { - const action: IAuthActions['GET_USER'] = { type: AuthActionTypes.GET_USER, payload: undefined }; - const generator = onGetUser(action); + const generator = onGetUser(AuthActionCreators.GET_USER()); const received = generator.next().value; expect(received).toEqual(undefined); expect(generator.next().done).toBe(true); @@ -35,8 +34,7 @@ describe('Auth/sagas.ts', () => { 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: AuthActionTypes.SIGN_IN, payload: payload }; - const generator = onSignIn(action); + const generator = onSignIn(AuthActionCreators.SIGN_IN(payload)); const received = generator.next().value; expect(received).toEqual(undefined); expect(generator.next().done).toBe(true); @@ -44,8 +42,7 @@ describe('Auth/sagas.ts', () => { }); it('should call onFetchToken when FETCH_TOKEN action is dispatched', () => { - const action: IAuthActions['FETCH_TOKEN'] = { type: AuthActionTypes.FETCH_TOKEN, payload: undefined }; - const generator = onFetchToken(action); + const generator = onFetchToken(AuthActionCreators.FETCH_TOKEN()); const received = generator.next().value; expect(received).toEqual(undefined); expect(generator.next().done).toBe(true); @@ -54,7 +51,7 @@ describe('Auth/sagas.ts', () => { it('should call onSignOut when SIGN_OUT action is dispatched', () => { const action: IAuthActions['SIGN_OUT'] = { type: AuthActionTypes.SIGN_OUT, payload: undefined }; - const generator = onSignOut(action); + const generator = onSignOut(AuthActionCreators.SIGN_OUT()); const received = generator.next().value; expect(received).toEqual(undefined); expect(generator.next().done).toBe(true);
code cleanup
code cleanup
c57f6d766e9ab28ca30aad6e7ebd41f381a5f388
--- package-lock.json @@ -3585,9 +3585,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "0.4.4", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.4.tgz", - "integrity": "sha512-6+/1v1xTK2SiIyTLjtbBlIOJCuEnRuiIjsfISbX3E+b0DFMwGVBc9zLJjqfWxvHmg+uvkfdphV4v6zCtF99vrA==", + "version": "0.4.6", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.6.tgz", + "integrity": "sha512-wSuirnM3cQhKP/nw6C6YRFcaHdLDyB2hAGbZ1nBl+C/n7b+gUGJFCDs/kSN14D2ARsHOkz3G5/P0wQJJsZ66/w==", "requires": { "@react-native-community/datetimepicker": "3.0.9", "moment-timezone": "0.5.33", @@ -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": "sha512-oSOCmyqrck/dJBNhry3TvzVgjBOhFTvW/hr46SGL5dV6EPSdlDPoAvMPfn2sk1bYGNC3T8KR/NQLS7vy1wh37w==", + "integrity": "sha1-m7vgBO4/FPNOk2I/by5gR9NGNd0=", "requires": { "azure-storage": "2.10.3", "crypto-js": "^3.3.0", --- package.json @@ -89,7 +89,7 @@ "@walmart/schedule-mini-app": "0.2.82", "@walmart/settings-mini-app": "1.3.5", "@walmart/shelfavailability-mini-app": "0.3.78", - "@walmart/time-clock-mini-app": "0.4.4", + "@walmart/time-clock-mini-app": "0.4.6", "@walmart/ui-components": "1.1.56", "@walmart/welcomeme-mini-app": "0.28.1", "@walmart/wfm-ui": "^0.1.50",
Bumping time clock mini app version
Bumping time clock mini app version Since 0.4.4 got deleted in npme
fd82a573b5303004afdf19c91321b1f3707163de
--- package.json @@ -117,7 +117,7 @@ "@walmart/emergency-mini-app": "1.32.7", "@walmart/exception-mini-app": "1.10.3", "@walmart/expo-config-plugins": "0.10.0", - "@walmart/facilities-management-miniapp": "0.18.40", + "@walmart/facilities-management-miniapp": "0.18.41", "@walmart/feedback-all-spark-miniapp": "0.9.82", "@walmart/financial-wellbeing-feature-app": "1.31.6", "@walmart/functional-components": "~6.3.28", --- yarn.lock @@ -8362,9 +8362,9 @@ __metadata: languageName: node linkType: hard -"@walmart/facilities-management-miniapp@npm:0.18.40": - version: 0.18.40 - resolution: "@walmart/facilities-management-miniapp@npm:0.18.40::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffacilities-management-miniapp%2F-%2F%40walmart%2Ffacilities-management-miniapp-0.18.40.tgz" +"@walmart/facilities-management-miniapp@npm:0.18.41": + version: 0.18.41 + resolution: "@walmart/facilities-management-miniapp@npm:0.18.41::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffacilities-management-miniapp%2F-%2F%40walmart%2Ffacilities-management-miniapp-0.18.41.tgz" peerDependencies: "@walmart/gtp-shared-components-3": "*" expo: ~52.0.46 @@ -8374,7 +8374,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/7e7fbf56689879d96cff829b72f703c16019126c02126c37b78bf17962a252171bc29487a247c480604803025a4fea087695014e265f150c01c16ca8f198aa60 + checksum: 10c0/b4ed0b0b24cc761c3a4efa1addfe552d2ba4a45542997fa80deb4f484e9aa3b14f9e14c8d60d2d5db99ac7fae88f252ea67075a4528678496267c08876c261d6 languageName: node linkType: hard @@ -8879,7 +8879,7 @@ __metadata: "@walmart/emergency-mini-app": "npm:1.32.7" "@walmart/exception-mini-app": "npm:1.10.3" "@walmart/expo-config-plugins": "npm:0.10.0" - "@walmart/facilities-management-miniapp": "npm:0.18.40" + "@walmart/facilities-management-miniapp": "npm:0.18.41" "@walmart/feedback-all-spark-miniapp": "npm:0.9.82" "@walmart/financial-wellbeing-feature-app": "npm:1.31.6" "@walmart/functional-components": "npm:~6.3.28"
fix(facility-management): update facilities-management-miniapp to version 0.18.41 (#5263)
fix(facility-management): update facilities-management-miniapp to version 0.18.41 (#5263) Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com>
c4c7b540e03350c25ec28bb07795cc1f6bc888f6
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/styles.ts @@ -42,7 +42,7 @@ export const modalStyles = StyleSheet.create({ }, subTitle: { marginVertical: 10 }, inputContainer: { marginBottom: 10 }, - sectionTitle: { fontWeight: 'bold', marginStart: 10 }, + sectionTitle: { fontWeight: 'bold', marginTop: 20 }, sectionHeader: { flex: 1, textAlign: 'center',
fix: fixes to Edit Modal UI
fix: fixes to Edit Modal UI
c3147f61c772dbdc045901f648849b2fb640f905
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.46.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.45.0...v2.46.0) (2025-06-26) + + +### Features + +* **ui:** updating readme file ([ec01bda](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ec01bda45a2d77b3d0864ccb6932e83a6a8ae48e)) + # [2.45.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.44.0...v2.45.0) (2025-06-25) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.45.0", + "version": "2.46.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 2.46.0 [skip ci]
chore(release): 2.46.0 [skip ci] # [2.46.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.45.0...v2.46.0) (2025-06-26) ### Features * **ui:** updating readme file ([ec01bda](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ec01bda45a2d77b3d0864ccb6932e83a6a8ae48e))
5f8182dbb1161cfcb7ce798a9f846be266a22908
--- src/screens/MessagesScreen.tsx @@ -170,7 +170,7 @@ export const MessagesScreen = () => { return () => { unsubscribeMessages.current?.(); }; - }, []); + }, [channelPath]); // When scrolling to the top of the list, fetch the next set of messages const onEndReached = async () => { --- src/screens/MessagesScreen.tsx @@ -170,7 +170,7 @@ export const MessagesScreen = () => { return () => { unsubscribeMessages.current?.(); }; - }, []); + }, [channelPath]); // When scrolling to the top of the list, fetch the next set of messages const onEndReached = async () => {
adding channelpath to dependency of useEffect
adding channelpath to dependency of useEffect
10bc8a303e440b0bc56762c7dbf017d4e11dbc83
--- targets/US/package.json @@ -84,7 +84,7 @@ "@walmart/allspark-utils": "6.5.0", "@walmart/amp-mini-app": "1.1.98", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.29.2", + "@walmart/ask-sam-mini-app": "1.28.7", "@walmart/associate-listening-mini-app": "1.2.10", "@walmart/attendance-mini-app": "3.96.0", "@walmart/avp-feature-app": "0.10.19", --- yarn.lock @@ -6376,9 +6376,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ask-sam-mini-app@npm:1.29.2": - version: 1.29.2 - resolution: "@walmart/ask-sam-mini-app@npm:1.29.2" +"@walmart/ask-sam-mini-app@npm:1.28.7": + version: 1.28.7 + resolution: "@walmart/ask-sam-mini-app@npm:1.28.7" dependencies: "@react-native-voice/voice": "npm:^3.2.4" apisauce: "npm:^1.1.2" @@ -6426,7 +6426,7 @@ __metadata: react-native-wm-voice-text: ">=0.3" reselect: ">=4" victory-native: ">=36.5" - checksum: 10c0/d68fed3c7b1acea6067ccf44536b0c105bae4816d00e476888c83693314b1f66d8033e48fcb6d60ffb454684d971969956348fbc23f84829e478838a8becc2f1 + checksum: 10c0/23b3a72e1ea48fb4d2ecb88d52cf4a843587503e305a3e138820b499a1ce1e3fe155ac4f1895856f5c1079bbe4784f5a5a49bd2148cf069aa31ff0e75a0bb47d languageName: node linkType: hard @@ -7469,7 +7469,7 @@ __metadata: "@walmart/allspark-utils": "npm:6.5.0" "@walmart/amp-mini-app": "npm:1.1.98" "@walmart/ask-sam-chat-components": "npm:^0.2.7" - "@walmart/ask-sam-mini-app": "npm:1.29.2" + "@walmart/ask-sam-mini-app": "npm:1.28.7" "@walmart/associate-listening-mini-app": "npm:1.2.10" "@walmart/attendance-mini-app": "npm:3.96.0" "@walmart/avp-feature-app": "npm:0.10.19"
latest drop 28 version bump
latest drop 28 version bump
b73d442ecc4cc60b951f5615899dc553ee27d050
--- .gitignore @@ -8,6 +8,9 @@ node_modules/ dist/ web-build/ +coverage/ +test-report.xml + # Native *.orig.* *.jks --- concord.yml @@ -1,74 +0,0 @@ -configuration: - runtime: "concord-v2" - processTimeout: "PT5H" - dependencies: - - mvn://com.walmartlabs.concord.plugins:looper-task:latest -flows: - onPush: - - checkpoint: " CI build for Push Trigger " - - log: " branch ::: ${event.branch}" - - task: looper - in: - username: SVCAssociateExp # AD service account - baseUrl: https://looperpro-cigateway.prod.walmart.com - apiToken: ${crypto.decryptString("3JEXZXdxlaC5PLPagwbboN3mFN5MYb9TSwv/aSrmXt7FUyh3GeH2yIutQlsZ+GRB")} # create PAT on github by going to Github Settings->Personal access tokens->Generate token - jobName: SMDV/associate-exp-hub-mini-app # DX onboarding details page will give you your job name [Note : ACL is mandatory on dx ui for the user to trigger jobs ] - processId: ${txId} - processType: "concord" - call: default - suspend: true - branch: ${event.branch} # Event branch name - out: looperJob - - log: "looperJob Details :: ${looperJob.status}, url: ${looperJob.url} log: ${looperJob.log} ${looperJob.message} ${looperJob.scmEventsLog}" - - - onPr: - - checkpoint: " CI build for PR Trigger " - - set: - prBranch: ${event.payload.pull_request.head.ref} - sha: ${event.payload.pull_request.head.sha} - baseBranch: ${event.payload.pull_request.base.ref} - prNumber: ${event.payload.pull_request.number} - - log: "Pr branch: ${prBranch}, base branch: ${baseBranch}, Concord process: ${txId}" - - - task: looper - in: - username: SVCAssociateExp # AD service account - baseUrl: https://looperpro-cigateway.prod.walmart.com # Do not change this - apiToken: ${crypto.decryptString("3JEXZXdxlaC5PLPagwbboN3mFN5MYb9TSwv/aSrmXt7FUyh3GeH2yIutQlsZ+GRB")} # create PAT on github by going to Github Settings->Personal access tokens->Generate token - jobName: SMDV/associate-exp-hub-mini-app # DX onboarding details page will give you your job name [Note : ACL is mandatory on dx ui for the user to trigger jobs] - commitHash: ${sha} - processId: ${txId} - processType: "concord" - prNumber: ${prNumber} - suspend: true - call: pr - out: looperJob - - log: "looperJob Details :: ${looperJob.status}, url: ${looperJob.url} log: ${looperJob.log} ${looperJob.message} ${looperJob.scmEventsLog}" - - -triggers: - - github: - version: 2 - entryPoint: "onPr" - conditions: - type: "pull_request" - status: "(opened|synchronize)" - - github: - version: 2 - useInitiator: true - entryPoint: onPush - conditions: - type: push - branch: ".*" - -#IMP: Add this if the automatic build is disabled for a branch and builds are manually triggers from UI. Make sure to add ref filter to listen to interested branch creation events only - - github: - version: 2 - useInitiator: true - entryPoint: onPush # call looper task which triggers build. In this example its onPush which calls default flow - conditions: - type: create - payload: - ref_type: branch - ref: "^release-.*$" # Triggers when branch is created with a name starting with release-, ex: release-12 \ No newline at end of file
feat(ui): remove concord yml #SMDV-9999
feat(ui): remove concord yml #SMDV-9999
7e0a0d835a27bccdbfae38bc5d684f51364df8a3
--- .yarn/patches/@walmart-ui-components-npm-1.19.0-8c7e633082.patch Binary files /dev/null and b/.yarn/patches/@walmart-ui-components-npm-1.19.0-8c7e633082.patch differ --- 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.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch", + "@walmart/ui-components@npm:^1.15.11": "patch:@walmart/ui-components@npm%3A1.19.0#~/.yarn/patches/@walmart-ui-components-npm-1.19.0-8c7e633082.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 @@ -151,7 +151,7 @@ "@walmart/time-clock-mini-app": "2.448.1", "@walmart/topstock-mini-app": "1.19.4", "@walmart/translator-mini-app": "1.3.7", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.19.0#~/.yarn/patches/@walmart-ui-components-npm-1.19.0-8c7e633082.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/time-clock-mini-app": "npm:2.448.1" "@walmart/topstock-mini-app": "npm:1.19.4" "@walmart/translator-mini-app": "npm:1.3.7" - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch" + "@walmart/ui-components": "npm:1.19.0" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.96.0" "@walmart/wfm-ui": "npm:1.6.0" @@ -8114,35 +8114,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.18.7": - version: 1.18.7 - resolution: "@walmart/ui-components@npm:1.18.7" - dependencies: - "@walmart/ui-components": "npm:^1.15.11" - react-hook-form: "npm:^7.33.1" - react-native-calendars: "npm:1.299.0" - react-native-elements: "npm:^3.4.2" - peerDependencies: - "@react-navigation/stack": ">=6.1.0" - "@walmart/allspark-utils": ">=1.6.5" - "@walmart/gtp-shared-components": ">=2.0.0" - javascript-time-ago: ">=2.3.4" - react: "*" - react-native: "*" - react-native-background-timer: ">=2.4.1" - react-native-hyperlink: ">=0.0.19" - react-native-modal: ">=11.6.1" - react-native-reanimated: ">=1.13.2" - react-native-safe-area-context: ">=3.1.3" - react-native-vector-icons: ">=7.0.0" - react-native-webview: ">=10.10.2" - checksum: 10c0/b314935fd2cdadfeea0eef9f8179598df0b7fe01410c9fe1796428974f6293f8101f0e2d89ebf1f5b1f5b8c1016ec7e753011fc4312fa9e6356c177a8e855113 - languageName: node - linkType: hard - -"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch": - version: 1.18.7 - resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch::version=1.18.7&hash=3127de" +"@walmart/ui-components@npm:1.19.0": + version: 1.19.0 + resolution: "@walmart/ui-components@npm:1.19.0" dependencies: "@walmart/ui-components": "npm:^1.15.11" react-hook-form: "npm:^7.33.1" @@ -8162,7 +8136,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/8af97ac24ed5901abd22c87c29f02a6172fbf539c9ed9dadaf5b7c8862b96de646647678b108e1875cd1727e8661e7fa216275b2d27350165676577e6bb4f15b + checksum: 10c0/b8115b91e4930b28ead8e4fed3f94c251f0be3dd370928858e6d1584aba05bb0382f10cc40d21ed0170b7eb33e6ccf370d805eadbd3a0e1c2e67e22baa8d33e2 languageName: node linkType: hard
feat: update ui-components version
feat: update ui-components version
fbf0d131bdeea7a58f6c0bfd652e8fa9e6063463
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.23", + "version": "2.0.24", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.23", + "version": "2.0.24", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
06f0985a18a1742892e3f4714225b235814787d7
--- package.json @@ -114,7 +114,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "^0.3.7", "@walmart/react-native-sumo-sdk": "2.2.2-beta.2", - "@walmart/receipt-check-miniapp": "1.8.2", + "@walmart/receipt-check-miniapp": "1.8.3", "@walmart/redux-store": "2.0.4", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/schedule-mini-app": "0.25.0",
update version to 1.8.3 for receipt audit mini app
update version to 1.8.3 for receipt audit mini app
a4d19e05a043373b4f6af183d5b4cc7d9b961503
--- docs/CHANGELOG.md @@ -1,3 +1,15 @@ +# [3.2.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.1.0...v3.2.0) (2025-08-25) + + +### Features + +* **ui:** adding changes to looper-pr.yml ([e1650af](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e1650af900e53867595aaa83d9b7d9b420927cf8)) +* **ui:** updating new version for drop 33 ([f1a308b](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/f1a308bddc010c715bb8c1fd99548b3bf8dc5783)) +* **ui:** updating roster wmconnect version for drop 33 ([21274e5](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/21274e590fb2ae3dce721376e734637f4e0632d8)) +* **ui:** updating versions for drop 33 ([85c4265](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/85c426590086be9d3567344f8b97db526e87a167)) +* **ui:** updating versions for drop 33 ([172064f](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/172064f4a006ccf9414a47a4d3bde57f0793b231)) +* **ui:** updating versions for drop 33 ([0a922dd](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/0a922dd223b545985c146517dfbe6b991e9b46d4)) + # [3.1.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.0.2...v3.1.0) (2025-07-22) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.1.0", + "version": "3.2.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.2.0 [skip ci]
chore(release): 3.2.0 [skip ci] # [3.2.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.1.0...v3.2.0) (2025-08-25) ### Features * **ui:** adding changes to looper-pr.yml ([e1650af](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e1650af900e53867595aaa83d9b7d9b420927cf8)) * **ui:** updating new version for drop 33 ([f1a308b](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/f1a308bddc010c715bb8c1fd99548b3bf8dc5783)) * **ui:** updating roster wmconnect version for drop 33 ([21274e5](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/21274e590fb2ae3dce721376e734637f4e0632d8)) * **ui:** updating versions for drop 33 ([85c4265](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/85c426590086be9d3567344f8b97db526e87a167)) * **ui:** updating versions for drop 33 ([172064f](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/172064f4a006ccf9414a47a4d3bde57f0793b231)) * **ui:** updating versions for drop 33 ([0a922dd](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/0a922dd223b545985c146517dfbe6b991e9b46d4))
9c4975e073c46c7259d183e25eddc0da57effc1e
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.1.4", "@walmart/emergency-mini-app": "1.24.1", "@walmart/exception-mini-app": "1.3.3", - "@walmart/facilities-management-miniapp": "0.6.30", + "@walmart/facilities-management-miniapp": "0.6.32", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.6.3", "@walmart/functional-components": "~4.0.3", @@ -5098,9 +5098,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.6.30", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.30.tgz", - "integrity": "sha512-b1EhbGSqRzP/RHE/IoRpbg8io7CWrPIKrjyiuSjhHJsl2qd54wlGcm+zoK/19ohGSjPCnXTKjfbc5qI0MZZk6A==", + "version": "0.6.32", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.32.tgz", + "integrity": "sha512-TQLh0JiDTeSqnq2uPTez6VyuraLlxvRHWEfE9T4k/9MVbWj3NZjjhRHu0erOvb9YksmAYdCNHZr7FTszS2dTLg==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25250,9 +25250,9 @@ "integrity": "sha512-PrClw+qFgF1XmMlg+PHZT+seQP4ydMPQkmZ+ZzGInSdBLYXJWt8Y5KT+4j3C2SjK191elDYAlqFlBDVDnModjw==" }, "@walmart/facilities-management-miniapp": { - "version": "0.6.30", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.30.tgz", - "integrity": "sha512-b1EhbGSqRzP/RHE/IoRpbg8io7CWrPIKrjyiuSjhHJsl2qd54wlGcm+zoK/19ohGSjPCnXTKjfbc5qI0MZZk6A==" + "version": "0.6.32", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.32.tgz", + "integrity": "sha512-TQLh0JiDTeSqnq2uPTez6VyuraLlxvRHWEfE9T4k/9MVbWj3NZjjhRHu0erOvb9YksmAYdCNHZr7FTszS2dTLg==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.33", --- package.json @@ -88,7 +88,7 @@ "@walmart/counts-component-miniapp": "0.1.4", "@walmart/emergency-mini-app": "1.24.1", "@walmart/exception-mini-app": "1.3.3", - "@walmart/facilities-management-miniapp": "0.6.30", + "@walmart/facilities-management-miniapp": "0.6.32", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.6.3", "@walmart/functional-components": "~4.0.3",
Updating facilities-management-miniapp version to 0.6.32
Updating facilities-management-miniapp version to 0.6.32
428a4533d38dd06f78d911195b6007eee209c8ab
--- android/app/src/main/res/values/styles.xml @@ -8,6 +8,7 @@ </style> <style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar"> + <item name="android:textColor">#000000</item> <item name="android:windowBackground">@drawable/background_splash</item> <item name="android:statusBarColor">@color/blue</item> </style> --- ios/AllSpark/Info.plist @@ -98,7 +98,6 @@ <array> <string>audio</string> <string>fetch</string> - <string>processing</string> <string>remote-notification</string> </array> <key>UILaunchStoryboardName</key>
removed background processing check (#410)
removed background processing check (#410) * removed background processing check * adding default text color in android style (#411) Co-authored-by: Hitesh Arora <> Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
842ff7fb4eea17aad00f48abdb6f25988243769f
--- package-lock.json @@ -3113,9 +3113,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.0.82", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.82.tgz", - "integrity": "sha512-0jJy1uuJko2t6OP0VjCIFJzeCk+W5ETp9+Fi78MD46/zLHzQpBylD9S0zfBaT98qpZTS812TGhgWY45S0RYzfw==" + "version": "0.0.83", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.83.tgz", + "integrity": "sha512-pF4FERi3CMwZ4vAsggWkTdkFEKvVd9e69MHmAecVIBWhsjhYUdijtJwp2xcyeYs1uA1H6iMkFWK1LYJ4Nrq2vQ==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -57,7 +57,7 @@ "@walmart/impersonation-mini-app": "1.0.9", "@walmart/inbox-mini-app": "0.0.44", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.0.82", + "@walmart/push-to-talk-mini-app": "0.0.83", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.18.0", "@walmart/react-native-shared-navigation": "^0.3.0",
Ptt version bump (#312)
Ptt version bump (#312) * Updated PTT version * PTT version update * PTT version bump
a980b140ad8c73f3137e7c041e20774b4f7373f2
--- .looper-pr.yml @@ -30,4 +30,3 @@ envs: MONO_REPO_BASE_BRANCH: develop AUTHOR: temp SLACK_CHANNEL: "smdv-miniapp" -
chore(ui): update looper yml
chore(ui): update looper yml
dda1e1628a32925cbe3e08e35963f7adfeb3fd3f
--- src/channels/provider.tsx @@ -67,8 +67,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') .onSnapshot((snapshot) => { - console.log('the snapshot'); - console.log(snapshot); setChannelState((previous) => ({ ...previous, ...normalizeChannelSnapshot( @@ -79,8 +77,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { })); }); - - // Hold latest unsubscribe method in reference channelSubscription.current = {remove: unsubscribeChannels}; } --- src/channels/provider.tsx @@ -67,8 +67,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') .onSnapshot((snapshot) => { - console.log('the snapshot'); - console.log(snapshot); setChannelState((previous) => ({ ...previous, ...normalizeChannelSnapshot( @@ -79,8 +77,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { })); }); - - // Hold latest unsubscribe method in reference channelSubscription.current = {remove: unsubscribeChannels}; }
remove drift from develop
remove drift from develop
84830a45c65ca4f79a18c0c30649cfcd56957d14
--- package.json @@ -141,7 +141,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.20.0", + "@walmart/allspark-foundation": "6.20.1", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-utils": "~6.5.0", --- targets/US/package.json @@ -77,7 +77,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "~6.4.1", "@walmart/allspark-cope-key-listener": "0.0.18", - "@walmart/allspark-foundation": "6.20.0", + "@walmart/allspark-foundation": "6.20.1", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -5679,9 +5679,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.20.0": - version: 6.20.0 - resolution: "@walmart/allspark-foundation@npm:6.20.0" +"@walmart/allspark-foundation@npm:6.20.1": + version: 6.20.1 + resolution: "@walmart/allspark-foundation@npm:6.20.1" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -5774,7 +5774,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/ca36b0592d5d97675161419536a39f758bd2e00f25c013aeaad4f7e6ce0cb2b3050b766233d5bbb3f4a93aa91fca2271572a78d4a14a4c63c3b957b9c36c3704 + checksum: 10c0/c9598d919db44eaa7bba5c1b479e5b53f91f9777a1b0f58ea84edd59ce0400c3e0155c60fda6334c6312979ff474d8c7618a9b2daec2d165784dba1382974de5 languageName: node linkType: hard @@ -6993,7 +6993,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:6.20.0" + "@walmart/allspark-foundation": "npm:6.20.1" "@walmart/allspark-graphql-client": "npm:~6.3.20" "@walmart/allspark-http-client": "npm:~6.3.20" "@walmart/allspark-neon-core": "npm:0.1.31"
chore: bump foundation package for flipper fix
chore: bump foundation package for flipper fix
c39c4c5758778b79fdb9679cf6d936310a389af1
--- ios/Podfile.lock @@ -538,7 +538,7 @@ PODS: - RCTTypeSafety - React - ReactCommon/turbomodule/core - - react-native-scanner-3.0 (0.1.32): + - react-native-scanner-3.0 (0.2.0): - Firebase/Analytics - React - ScanditBarcodeCapture (= 6.14.0) @@ -1220,7 +1220,7 @@ SPEC CHECKSUMS: react-native-ptt-module: 47e1b73551afa3830155cc92f4809d06c38e5eca react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe react-native-safe-area-context: 6c12e3859b6f27b25de4fee8201cfb858432d8de - react-native-scanner-3.0: a0549e6f451262c91e545d3b69a6b9d8cf2ac1eb + react-native-scanner-3.0: e2827283accaa51fa2e1f55bde21607ae0a695df react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-view-shot: 792829857bbb23a9c8acdad9a640554bdee397a3
run pod install command
run pod install command
7afd27745807ee2f6d4be7dedd6afc0402aa8295
--- packages/core-services-allspark/src/auth/effects.tsx @@ -52,11 +52,9 @@ export const AuthEffects = () => { }; const onRefreshTokenError = () => { - if (authData) { - logger.error(`AUTH: SIGN_OUT_INITIATED`); - telemetry.logEvent(LOGGER_ID, 'sign_out_init_on_token_rfrsh_err', {}); - authActions.signOutRequest(); - } + logger.error(`AUTH: SIGN_OUT_INITIATED`); + telemetry.logEvent(LOGGER_ID, 'sign_out_init_on_token_rfrsh_err', {}); + authActions.signOutRequest(); }; useEffect(() => {
chore(auth): remove auth data check on token refresh error
chore(auth): remove auth data check on token refresh error
3f8d929a6006dd7c6e257f291acc3a9a841302a6
--- packages/allspark-foundation/src/Navigation/components/Header.tsx @@ -5,7 +5,11 @@ import { Header as RNStackHeader, StackHeaderProps, } from '@react-navigation/stack'; -import { ChevronLeftIcon, colors } from '@walmart/gtp-shared-components'; +import { + ChevronLeftIcon, + CloseIcon, + colors, +} from '@walmart/gtp-shared-components'; import { AllsparkBannersContainer } from '../../Components'; @@ -31,10 +35,14 @@ export const styles = StyleSheet.create({ }, }); -const BackButtonIcon = (p: { tintColor: string }) => ( +export const BackButtonIcon = (p: { tintColor: string }) => ( <ChevronLeftIcon size={24} color={p.tintColor} /> ); +export const CloseButtonIcon = (p: { tintColor: string }) => ( + <CloseIcon size={24} color={p.tintColor} /> +); + /** * Default Header for use in navigation. * Automatically connected to AllsparkBanners to display global banners
feat: export default back and close button icons for navigation
feat: export default back and close button icons for navigation
9106eaf08767791671da1bb92702e70804354b65
--- package-lock.json @@ -3380,9 +3380,9 @@ } }, "@walmart/manager-approvals-miniapp": { - "version": "0.0.45", - "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.45.tgz", - "integrity": "sha512-xEgNpfReOZm+KAapAnqpW1+cdI0UL3LlILohFWZUFUO+U+1BFL3zAic5JSZttF8HiOfdiQ4v1Pre3rb5EIJ1+A==" + "version": "0.0.46", + "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.46.tgz", + "integrity": "sha512-0goiZraTTCPBdL6YsHoM7GmU8SCyM1gjHrq9vw0liwWLWG+LDwQFFuGZf4pfItcBoI7ofKACURZEipr4GNG0Yw==" }, "@walmart/metrics-mini-app": { "version": "0.4.11", --- package.json @@ -77,7 +77,7 @@ "@walmart/ims-print-services-ui": "0.0.30", "@walmart/inbox-mini-app": "0.0.101", "@walmart/iteminfo-mini-app": "2.0.1", - "@walmart/manager-approvals-miniapp": "0.0.45", + "@walmart/manager-approvals-miniapp": "0.0.46", "@walmart/metrics-mini-app": "0.4.11", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.21",
Manager approval version bump
Manager approval version bump
fd38e9ef7f7e531e01ce4bb6c2d414fb06fbf4d0
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Hooks/useGetSupplyChainTeamPreference.ts @@ -32,12 +32,12 @@ export const useGetSupplyChainTeamsPreferenceQuery = () => { onCompleted: (response: any) => { setShiftPreferenceData( response?.associatePreferences?.meAtWalmartPreferences - ?.managerExperiencePreferences?.mySupplyChainTeams[0] - ?.shiftCodePreference || [] + ?.managerExperiencePreferences?.mySupplyChainTeams + ?.shiftCodePreference[0] || [] ); setTeamPreferenceData( response?.associatePreferences?.meAtWalmartPreferences - ?.managerExperiencePreferences?.mySupplyChainTeams[0] + ?.managerExperiencePreferences?.mySupplyChainTeams ?.supplyChainTeamPreference[0] ); }, @@ -47,12 +47,12 @@ export const useGetSupplyChainTeamsPreferenceQuery = () => { }); setShiftPreferenceData( err?.data?.associatePreferences?.meAtWalmartPreferences - ?.managerExperiencePreferences?.mySupplyChainTeams[0] - ?.shiftCodePreference || [] + ?.managerExperiencePreferences?.mySupplyChainTeams + ?.shiftCodePreference[0] || [] ); setTeamPreferenceData( err?.data?.associatePreferences?.meAtWalmartPreferences - ?.managerExperiencePreferences?.mySupplyChainTeams[0] + ?.managerExperiencePreferences?.mySupplyChainTeams ?.supplyChainTeamPreference[0] ); },
Adding query updates
Adding query updates
a3eb34b9cfa96d0e07cf2dd171a6d5e30e996bc4
--- packages/allspark-foundation/src/Core/docs/MigrationPhase4.md @@ -186,13 +186,16 @@ import {MeAtWalmartContainer} from '@walmart/me-at-walmart-container'; // Initialize container for environment MeAtWalmartContainer.initialize({ - environment: env, + environment: { + env: 'dev', + // ... any environment overrides + }, }); -// Lazy load feature +// Lazy load your feature module, will simulate behavior in core app const getFeatures = () => { return [ - require('../src').default + require('../src').default // <-- This should be an AllsparkFeatureModule ] } @@ -205,7 +208,7 @@ export const App = () => { <AuthenticatorView> <MeAtWalmartContainer.FeatureGuard getFeatures={getFeatures}> <RootNav.Navigator> - {MyFeature.buildAllScreens(RootNav)} + {MyFeature.buildAllScreens(RootNav)} {/* <-- Will build all feature screens */} </RootNav.Navigator> <MeAtWalmartContainer.FeatureGuard> </AuthenticatorView>
docs: add context to phase 4 migration doc container setup
docs: add context to phase 4 migration doc container setup
71e2159de9d127c7d347a045be1b353631db73dc
--- src/core/DeeplinkConfig.ts @@ -1,6 +1,6 @@ import {LinkingOptions} from '@react-navigation/native'; -// https://reactnavigation.org/docs/configuring-links/ +// https://reactnavigation.org/docs/configuring-links/ export type AppRootParamList = { main: undefined;
retrigger build
retrigger build
1f3db9eb699ceb168fff071d1f234dcad6261859
--- src/components/MessageTimeSectionHeader.tsx @@ -18,18 +18,19 @@ const styles = StyleSheet.create({ export interface MessageTimeStatusProps { time: string; + isFirstMessage: boolean; } export const MessageTimeSectionHeader = (props: MessageTimeStatusProps) => { - const {time} = props; + const {time, isFirstMessage} = props; return ( <> {!!time && ( - <View style={styles.row}> - <Divider /> + <View style={[styles.row, isFirstMessage && {paddingTop: 16}]}> + {!isFirstMessage && <Divider />} <Caption UNSAFE_style={styles.title}>{time}</Caption> - <Divider /> + {!isFirstMessage && <Divider />} </View> )} </> --- src/screens/MessagesScreen.tsx @@ -1,5 +1,5 @@ /* eslint-disable react-hooks/exhaustive-deps */ -import React, {FC, useEffect, useRef, useState} from 'react'; +import React, {FC, useEffect, useMemo, useRef, useState} from 'react'; import {useSelector} from 'react-redux'; import {KeyboardAvoidingView, Platform, StyleSheet, View} from 'react-native'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; @@ -73,9 +73,19 @@ const ListEmptyComponent = () => ( const getItemType = (item: LocalMessage | string) => typeof item === 'string' ? 'sectionHeader' : 'row'; -const renderItem: ListRenderItem<LocalMessage | string> = ({item}) => { +const renderItem: ListRenderItem<LocalMessage | string> = ({ + item, + index, + extraData, +}) => { + const {listLength} = extraData; if (typeof item === 'string') { - return <MessageTimeSectionHeader time={item} />; + return ( + <MessageTimeSectionHeader + time={item} + isFirstMessage={index === listLength - 1} + /> + ); } return <Message {...item} />; @@ -196,6 +206,10 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { }, ); }; + const extraData = useMemo( + () => ({listLength: messages.length}), + [messages.length], + ); // Fetch the initial messages to show useEffect(() => { @@ -353,6 +367,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { <FlashList inverted={true} data={messages} + extraData={extraData} renderItem={renderItem} getItemType={getItemType} estimatedItemSize={70} --- src/utils/messages.ts @@ -123,8 +123,8 @@ export const createMessageList = (config: { } // For the first message time stamp - if (lastMoment && docs.length - 1 === index) { - const firstMessageDate = lastMoment.format('ddd, MMM D [at] h:mm A'); + if (docs.length - 1 === index) { + const firstMessageDate = createdAt.format('ddd, MMM D [at] h:mm A'); messages.push(firstMessageDate); } --- src/components/MessageTimeSectionHeader.tsx @@ -18,18 +18,19 @@ const styles = StyleSheet.create({ export interface MessageTimeStatusProps { time: string; + isFirstMessage: boolean; } export const MessageTimeSectionHeader = (props: MessageTimeStatusProps) => { - const {time} = props; + const {time, isFirstMessage} = props; return ( <> {!!time && ( - <View style={styles.row}> - <Divider /> + <View style={[styles.row, isFirstMessage && {paddingTop: 16}]}> + {!isFirstMessage && <Divider />} <Caption UNSAFE_style={styles.title}>{time}</Caption> - <Divider /> + {!isFirstMessage && <Divider />} </View> )} </> --- src/screens/MessagesScreen.tsx @@ -1,5 +1,5 @@ /* eslint-disable react-hooks/exhaustive-deps */ -import React, {FC, useEffect, useRef, useState} from 'react'; +import React, {FC, useEffect, useMemo, useRef, useState} from 'react'; import {useSelector} from 'react-redux'; import {KeyboardAvoidingView, Platform, StyleSheet, View} from 'react-native'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; @@ -73,9 +73,19 @@ const ListEmptyComponent = () => ( const getItemType = (item: LocalMessage | string) => typeof item === 'string' ? 'sectionHeader' : 'row'; -const renderItem: ListRenderItem<LocalMessage | string> = ({item}) => { +const renderItem: ListRenderItem<LocalMessage | string> = ({ + item, + index, + extraData, +}) => { + const {listLength} = extraData; if (typeof item === 'string') { - return <MessageTimeSectionHeader time={item} />; + return ( + <MessageTimeSectionHeader + time={item} + isFirstMessage={index === listLength - 1} + /> + ); } return <Message {...item} />; @@ -196,6 +206,10 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { }, ); }; + const extraData = useMemo( + () => ({listLength: messages.length}), + [messages.length], + ); // Fetch the initial messages to show useEffect(() => { @@ -353,6 +367,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { <FlashList inverted={true} data={messages} + extraData={extraData} renderItem={renderItem} getItemType={getItemType} estimatedItemSize={70} --- src/utils/messages.ts @@ -123,8 +123,8 @@ export const createMessageList = (config: { } // For the first message time stamp - if (lastMoment && docs.length - 1 === index) { - const firstMessageDate = lastMoment.format('ddd, MMM D [at] h:mm A'); + if (docs.length - 1 === index) { + const firstMessageDate = createdAt.format('ddd, MMM D [at] h:mm A'); messages.push(firstMessageDate); }
Added the changes for first message timestamp and removed divider from first message
Added the changes for first message timestamp and removed divider from first message
1f0272d7f8d3f241b7cbb63005aaa2abbe9c9f95
--- package.json @@ -15,7 +15,8 @@ "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:fix": "eslint ./src ./__tests__ --ext .js,.jsx,.ts,.tsx --fix", "copy:images": "cp -r ./src/images ./bundle/dist/", - "build": "npm config fix && rm -rf ./bundle/dist && tsc && npm run copy:images", + "copy:media": "cp -r ./src/media ./bundle/dist/", + "build": "npm config fix && rm -rf ./bundle/dist && tsc && npm run copy:images && npm run copy:media", "env:dev": "cp ./container/env.dev.ts ./container/env.ts", "env:teflon": "cp ./container/env.teflon.ts ./container/env.ts", "env:beta": "cp ./container/env.beta.ts ./container/env.ts", --- package.json @@ -15,7 +15,8 @@ "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:fix": "eslint ./src ./__tests__ --ext .js,.jsx,.ts,.tsx --fix", "copy:images": "cp -r ./src/images ./bundle/dist/", - "build": "npm config fix && rm -rf ./bundle/dist && tsc && npm run copy:images", + "copy:media": "cp -r ./src/media ./bundle/dist/", + "build": "npm config fix && rm -rf ./bundle/dist && tsc && npm run copy:images && npm run copy:media", "env:dev": "cp ./container/env.dev.ts ./container/env.ts", "env:teflon": "cp ./container/env.teflon.ts ./container/env.ts", "env:beta": "cp ./container/env.beta.ts ./container/env.ts",
update package for media sounds for PTT
update package for media sounds for PTT
ff8165663fc1b0379bc1d15fec9ea660291cf68d
--- graphql.yml @@ -12,7 +12,7 @@ applications: - name: 'stg' persistedQueries: - name: 'businessUnitByCountryAndNumber' - hash: 'f47967b84a2c8ea52dceb45d4650a9cd62ad19a6b545cb63288b3acd085a4194' + hash: 'dc5adc0197a2bfd29b0ecc4ec5a255f44f8e0700a8a6916a834ec745574ab54d' queryTemplate: 'packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.graphql' tags: - 'v1' @@ -32,15 +32,10 @@ applications: tags: - 'v1' - name: 'getLoggedInUser' - hash: 'f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c' + hash: '0beb54411dbf4e0c72d8d94982d755e0559023bc5e2c174e356b42f1e07b22fd' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' - - name: 'GetSupplyChainTeamsByStore' - hash: '628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql' - tags: - - 'v1' - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' @@ -61,10 +56,15 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql' tags: - 'v1' + - name: 'upsertSupplyChainAssociatePreference' + hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' + tags: + - 'v1' - name: 'prod' persistedQueries: - name: 'businessUnitByCountryAndNumber' - hash: 'f47967b84a2c8ea52dceb45d4650a9cd62ad19a6b545cb63288b3acd085a4194' + hash: 'dc5adc0197a2bfd29b0ecc4ec5a255f44f8e0700a8a6916a834ec745574ab54d' queryTemplate: 'packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.graphql' tags: - 'v1' @@ -84,15 +84,10 @@ applications: tags: - 'v1' - name: 'getLoggedInUser' - hash: 'f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c' + hash: '0beb54411dbf4e0c72d8d94982d755e0559023bc5e2c174e356b42f1e07b22fd' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' - # - name: "GetSupplyChainTeamsByStore" - # hash: "628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql" - # tags: - # - "v1" - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' @@ -113,3 +108,8 @@ applications: # queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql" # tags: # - "v1" + # - name: "upsertSupplyChainAssociatePreference" + # hash: "39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql" + # tags: + # - "v1" --- packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.ts @@ -13,20 +13,20 @@ export type UpsertSupplyChainAssociatePreferenceMutationVariables = export type UpsertSupplyChainAssociatePreferenceMutation = { __typename?: 'Mutation'; upsertAssociatePreference?: { - __typename?: 'AssociatePreferences'; + __typename: 'AssociatePreferences'; walmartIdentificationNumber: string; meAtWalmartPreferences?: { - __typename?: 'MeAtWalmartPreferences'; + __typename: 'MeAtWalmartPreferences'; managerExperiencePreferences?: { - __typename?: 'ManagerExperiencePreferences'; + __typename: 'ManagerExperiencePreferences'; mySupplyChainTeams?: Array<{ - __typename?: 'ManagerExperienceSupplyChain'; + __typename: 'ManagerExperienceSupplyChain'; shiftCodePreference?: Array<string | null> | null; supplyChainTeamPreference?: Array<{ - __typename?: 'SupplyChainTeam'; - teamId?: string | null; - countryCode?: string | null; + __typename: 'SupplyChainTeam'; businessUnitNumber?: number | null; + countryCode?: string | null; + teamId?: string | null; } | null> | null; } | null> | null; } | null; @@ -42,19 +42,24 @@ export const UpsertSupplyChainAssociatePreferenceDocument = gql` upsertAssociatePreference( associatePreferencesInput: $associatePreferencesInput ) { - walmartIdentificationNumber + __typename meAtWalmartPreferences { + __typename managerExperiencePreferences { + __typename mySupplyChainTeams(businessUnitNumber: $businessUnitNumber) { + __typename shiftCodePreference supplyChainTeamPreference { - teamId - countryCode + __typename businessUnitNumber + countryCode + teamId } } } } + walmartIdentificationNumber } } `;
Adding upsertSupplyChainAssociatePreference query
Adding upsertSupplyChainAssociatePreference query
0f6f86c4038ec2872590cf6442a51cafd66cf396
--- src/auth/AuthenticatorView.tsx @@ -33,7 +33,7 @@ export const AuthenticatorView = () => { SplashScreen.hide(); } - if (!sitePresent) { + if (!sitePresent && userPresent) { connectedSSO.promptUserForSite(user as SSOUser); }
adding check if user is set when prormpting for site (#247)
adding check if user is set when prormpting for site (#247)
9c8573640cd94346c60b777c4c087e0be563e0cc
--- package-lock.json @@ -3062,9 +3062,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.29.2", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.2.tgz", - "integrity": "sha512-FA9OPmlChJY7O4XeC91KLVzh9l48j85Mf7agekTeWD3TVUp76NjhaV4gHBL96bLm6+7bz0AKEkvJtU1h0qvrUw==", + "version": "0.29.3", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.3.tgz", + "integrity": "sha512-o7bb0TkVF926zc062zoJVD57eZmPHYBiVBUFxCk+IbCFrErvkajSHX4B7vYNylnWt6EWM9wZxki8R6JS7s5+1g==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -66,7 +66,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.38", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0", - "@walmart/ask-sam-mini-app": "0.29.2", + "@walmart/ask-sam-mini-app": "0.29.3", "@walmart/config-components": "1.0.21", "@walmart/counts-component-miniapp": "0.0.9", "@walmart/exception-mini-app": "0.8.0", --- src/auth/AuthenticatorView.tsx @@ -69,10 +69,7 @@ export const AuthenticatorView = () => { }; return ( - <ScrollView - style={styles.screen} - showsVerticalScrollIndicator={true} - contentContainerStyle={{}}> + <ScrollView style={styles.screen} showsVerticalScrollIndicator={true}> <StatusBar translucent barStyle='dark-content' @@ -98,7 +95,6 @@ export const AuthenticatorView = () => { </PrimaryButton> </View> </View> - <Image resizeMode='cover' style={[ --- src/navigation/AssociateHallwayNav/index.tsx @@ -61,6 +61,7 @@ const AssociateHallwayNav = () => { useEffect(() => { dispatch(StartupActionCreators.miniAppNavStackLoaded()); + AskSamMiniApp.init(); }, [dispatch]); return (
Incrementing version. Adding ask sam init.
Incrementing version. Adding ask sam init.
7af86a8bd4c5282417adcbcfa3e6db7a82d06d2d
--- __tests__/harness/redux/mockState/appConfigState.ts @@ -7,7 +7,7 @@ export const appConfigState: AppConfigState = { appConfigInitProgress: false, appConfigInitSuccess: true, data: { - texting: { + myTeam: { warningMessageContent: 'All users must be on the most recent version of Me@ to send and receive messages.', rmaPath: '/texting/weekly_schedule_link', --- package-lock.json @@ -126,6 +126,7 @@ "react-redux": "^8.0.5", "react-test-renderer": "18.2.0", "redux": "^4.2.1", + "redux-dynamic-middlewares": "^2.2.0", "redux-flipper": "^2.0.2", "redux-saga": "^1.2.0", "redux-thunk": "^2.4.0", @@ -29614,6 +29615,13 @@ "@babel/runtime": "^7.9.2" } }, + "node_modules/redux-dynamic-middlewares": { + "version": "2.2.0", + "resolved": "https://npme.walmart.com/redux-dynamic-middlewares/-/redux-dynamic-middlewares-2.2.0.tgz", + "integrity": "sha512-GHESQC+Y0PV98ZBoaC6br6cDOsNiM1Cu4UleGMqMWCXX03jIr3BoozYVrRkLVVAl4sC216chakMnZOu6SwNdGA==", + "dev": true, + "license": "MIT" + }, "node_modules/redux-flipper": { "version": "2.0.2", "resolved": "https://npme.walmart.com/redux-flipper/-/redux-flipper-2.0.2.tgz", @@ -53180,6 +53188,12 @@ "@babel/runtime": "^7.9.2" } }, + "redux-dynamic-middlewares": { + "version": "2.2.0", + "resolved": "https://npme.walmart.com/redux-dynamic-middlewares/-/redux-dynamic-middlewares-2.2.0.tgz", + "integrity": "sha512-GHESQC+Y0PV98ZBoaC6br6cDOsNiM1Cu4UleGMqMWCXX03jIr3BoozYVrRkLVVAl4sC216chakMnZOu6SwNdGA==", + "dev": true + }, "redux-flipper": { "version": "2.0.2", "resolved": "https://npme.walmart.com/redux-flipper/-/redux-flipper-2.0.2.tgz", --- package.json @@ -148,6 +148,7 @@ "react-redux": "^8.0.5", "react-test-renderer": "18.2.0", "redux": "^4.2.1", + "redux-dynamic-middlewares": "^2.2.0", "redux-flipper": "^2.0.2", "redux-saga": "^1.2.0", "redux-thunk": "^2.4.0",
Update tests
Update tests
ba39249330917994cde881572129c2ca69e22619
--- package-lock.json @@ -3553,9 +3553,9 @@ "integrity": "sha512-PhbwXZYIduJImUrywvm+tqhFgV2qwNk2xhXjbaoBBOF8d0vHDjNElNEUvayM+9Nj25hFciAg/kYvFxXYpoelNQ==" }, "@walmart/shelfavailability-mini-app": { - "version": "0.3.78", - "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.78.tgz", - "integrity": "sha512-w63k0TLpXy3PLRrJlMryLB2Zb2EWuDpEUEFwXVOqyDbdL4m040bnsMOAfsP8q/FKovmkKfJAEmhFiNCR8rYVCA==", + "version": "0.3.88", + "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.88.tgz", + "integrity": "sha512-lHEGvIgrY72RMHsHUt4nuHlmC7H4uYqwGovWvMFAa3XXgNUvfPJWV0xO+8e7mc1wT77EhuOCOWeePUD/UTIwug==", "requires": { "@types/uuid": "^8.3.0", "@types/xdate": "^0.8.31", @@ -3566,11 +3566,11 @@ }, "dependencies": { "apisauce": { - "version": "2.1.1", - "resolved": "https://npme.walmart.com/apisauce/-/apisauce-2.1.1.tgz", - "integrity": "sha512-P4SsLvmsH8BLLruBn/nsO+65j+ChZlGQ2zC5avCIjbWstYS4PgjxeVWtbeVwFGEWX7dEkLp85OvdapGXy1zS8g==", + "version": "2.1.2", + "resolved": "https://npme.walmart.com/apisauce/-/apisauce-2.1.2.tgz", + "integrity": "sha512-2/9tz9uR/56UfZpzeMkGyX33tNjYpBNjhwvT/yyYIItulboxzTqZTD3F3Q7WJVXl8fvX6PZDMaxoFH4r/sXkEA==", "requires": { - "axios": "^0.21.1", + "axios": "^0.21.4", "ramda": "^0.25.0" } }, --- package.json @@ -95,7 +95,7 @@ "@walmart/redux-store": "^1.0.15", "@walmart/schedule-mini-app": "0.3.0", "@walmart/settings-mini-app": "1.3.7", - "@walmart/shelfavailability-mini-app": "0.3.78", + "@walmart/shelfavailability-mini-app": "0.3.88", "@walmart/time-clock-mini-app": "0.4.6", "@walmart/ui-components": "1.1.56", "@walmart/welcomeme-mini-app": "0.28.1",
0.3.88 Shelf availability mini app
0.3.88 Shelf availability mini app
86c88e0cacbf2d12123a00bb0a9768edc6937dcb
--- ios/Podfile.lock @@ -1310,4 +1310,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 428e0e59976a5af07a4bda2ef6a2bae4353919ea -COCOAPODS: 1.11.3 +COCOAPODS: 1.12.0
Update Podfile.lock
Update Podfile.lock
6689eceb9aad1ea6cd14763a188a10fe60518165
--- __tests__/components/RecentSearchHistory.test.tsx @@ -105,7 +105,7 @@ describe('RecentSearchHistory', () => { renderItem.props.associateLinkHandler('Test Item'); expect(mockDispatch).toHaveBeenCalledWith({ payload: 'Test Item', - type: 'roster/SET_SEARCH_TEXT', + type: 'Roster/SET_SEARCH_TEXT', }); }); }); --- __tests__/components/SearchHeaderTest.tsx @@ -112,7 +112,7 @@ describe('SearchHeader tests', () => { await waitFor(() => { expect(mockDispatch).toHaveBeenCalledWith({ payload: '', - type: 'roster/SET_SEARCH_TEXT', + type: 'Roster/SET_SEARCH_TEXT', }); }); }); --- __tests__/harness/redux/mockState/appConfigState.ts @@ -67,6 +67,14 @@ export const appConfigState: ConfigState = { pushToTalkEnabled: false, shouldDisplayWarningBanner: false, showViewTimeClock: false, + showFilterChips: true, + showSearchInput: true, + showMicrophoneIcon: false, + showViewOtherTeams: true, + showAssociateAvatar: true, + showAssociateProfileImage: false, + showTotalScheduledCount: true, + showFilterChipCount: true, }, }, }; --- __tests__/managerExperience/components/AssociateListItem.test.tsx @@ -7,15 +7,8 @@ import {generateMockAssociate} from '../../harness/mockData/associate'; import * as utils from '../../../src/utils/user'; import * as hooks from '../../../src/hooks/roster'; import {colors} from '@walmart/gtp-shared-components'; -import {useSelector} from 'react-redux'; -import {Site} from '@walmart/redux-store'; import {AssociateAvatar} from '../../../src/managerExperience/components/AssociateList/AssociateAvatar'; -jest.mock('react-redux', () => ({ - ...jest.requireActual('react-redux'), - useSelector: jest.fn(), -})); - const mockObject = { firstName: 'Alex', preferredFirstName: 'Lexi', @@ -65,10 +58,6 @@ describe('AssociateListItem', () => { .spyOn(utils, 'encryptUserId') .mockReturnValue(mockObject.win.toString()); - (useSelector as jest.Mock).mockReturnValue({ - data: {siteId: '100'}, - } as unknown as Site); - const clockedInSpy = jest.spyOn(utils, 'associateIsClockedIn'); it('should render AssociateListItem with props', () => { @@ -92,14 +81,6 @@ describe('AssociateListItem', () => { expect(initials.children[0]).toEqual('LC'); }); - it('should render profile image if provided', () => { - const {getByTestId} = renderWithProviders( - <AssociateAvatar {...avatarProps} />, - ); - const profileImage = getByTestId('associate-profile-picture'); - expect(profileImage).toBeDefined(); - }); - it('should render correct avatar clock dot if clocked in', () => { const {getByTestId} = renderWithProviders( <AssociateAvatar {...avatarProps} />, @@ -196,7 +177,6 @@ describe('AssociateListItem', () => { }); it('should render associate shift info if manager', () => { - (useSelector as jest.Mock).mockReturnValue(true); const {getByTestId} = renderWithProviders( <AssociateListItem {...associateListItemProps} --- __tests__/managerExperience/components/__snapshots__/AssociateListItem.test.tsx.snap @@ -127,7 +127,6 @@ exports[`AssociateListItem should render AssociateListItem with props 1`] = ` "display": "flex", "flexDirection": "column", "justifyContent": "space-between", - "marginBottom": 6, "marginLeft": "auto", } } --- __tests__/redux/selectors.test.ts @@ -297,4 +297,50 @@ describe('Selectors', () => { const showViewTimeClock = selectors.showViewTimeClock(appConfigData); expect(showViewTimeClock).toStrictEqual(false); }); + + it('showFilterChips selector', () => { + const displayFilterChips = selectors.displayFilterChipCount(appConfigData); + expect(displayFilterChips).toStrictEqual(true); + }); + + it('displaySearchInput selector', () => { + const displaySearchInput = selectors.displaySearchInput(appConfigData); + expect(displaySearchInput).toStrictEqual(true); + }); + + it('displayMicrophoneIcon selector', () => { + const displayMicrophoneIcon = + selectors.displayMicrophoneIcon(appConfigData); + expect(displayMicrophoneIcon).toStrictEqual(false); + }); + + it('displayViewOtherTeams selector', () => { + const displayViewOtherTeams = + selectors.displayViewOtherTeams(appConfigData); + expect(displayViewOtherTeams).toStrictEqual(true); + }); + + it('displayAssociateAvatar selector', () => { + const displayAssociateAvatar = + selectors.displayAssociateAvatar(appConfigData); + expect(displayAssociateAvatar).toStrictEqual(true); + }); + + it('displayAssociateProfileImage selector', () => { + const displayAssociateProfileImage = + selectors.displayAssociateProfileImage(appConfigData); + expect(displayAssociateProfileImage).toStrictEqual(false); + }); + + it('displayTotalScheduledCount selector', () => { + const displayTotalScheduledCount = + selectors.displayTotalScheduledCount(appConfigData); + expect(displayTotalScheduledCount).toStrictEqual(true); + }); + + it('displayFilterChipCount selector', () => { + const displayFilterChipCount = + selectors.displayFilterChipCount(appConfigData); + expect(displayFilterChipCount).toStrictEqual(true); + }); }); --- src/managerExperience/components/AssociateList/AssociateListItem.tsx @@ -29,7 +29,6 @@ import {useRbacConfigWithJobCode} from '../../../hooks'; import {translationClient} from '../../../common/translation'; import {AssociateAvatar} from './AssociateAvatar'; import {AllsparkSharedComponents} from '@walmart/allspark-foundation/Components'; -import {User, UserSelectors} from '@walmart/allspark-foundation'; export const AssociateListItem = ({ associate, @@ -37,9 +36,7 @@ export const AssociateListItem = ({ handleViewSchedule, }: AssociateListItemProps) => { const {t} = translationClient.useTranslation(); - const {data} = useSelector(SiteSelectors.getWorkingSite); - const currentUser = useSelector(UserSelectors.getData) as User; - const siteId = data?.siteId; + const siteId = useSelector(SiteSelectors.getWorkingSiteSiteId); const encryptedId = encryptUserId(associate?.win?.toString() ?? ''); const isClockedIn = associateIsClockedIn(associate); const associateName = namecase(associateDisplayName(associate).slice(0, 20)); @@ -61,8 +58,6 @@ export const AssociateListItem = ({ const showJobDescription = useSelector(displayJobDescription); const isMessageButtonEnabled = useSelector(messageButtonEnabled); const showAssociateAvatar = useSelector(displayAssociateAvatar); - const shouldShowMessageButton = - associate?.associateId?.toString() !== currentUser?.associateId?.toString(); const showStatusChipAndViewSchedule: boolean | undefined = useRbacConfigWithJobCode(); const isWfmScheduleValid = @@ -164,7 +159,7 @@ export const AssociateListItem = ({ ) : ( <View /> )} - {isMessageButtonEnabled && shouldShowMessageButton && ( + {isMessageButtonEnabled && ( <AllsparkSharedComponents.Component id='wmConnect.RosterMessageButton' props={{associate: associate}}
feat: updated tests for feature flags
feat: updated tests for feature flags
61b9f9a3b6c6d93abea9b989eb44a8e07ee38362
--- __tests__/screens/RosterScreen.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +describe('RosterScreen', () => { + it('should render the teams list', () => {}); + it('should render the associate list', () => {}); + it('should render the weekly schedule header', () => {}); +}); + +describe('TeamsList', () => { + it('list expands / collapses when pressing show/hide teams button', () => {}); + describe('when collapsed', () => { + it('shows current team as only list item when associate has a team', () => {}); + it('shows total store as only list item when associate not in a team', () => {}); + }); + describe('TeamItem' + ) +}); --- __tests__/screens/RosterScreen.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +describe('RosterScreen', () => { + it('should render the teams list', () => {}); + it('should render the associate list', () => {}); + it('should render the weekly schedule header', () => {}); +}); + +describe('TeamsList', () => { + it('list expands / collapses when pressing show/hide teams button', () => {}); + describe('when collapsed', () => { + it('shows current team as only list item when associate has a team', () => {}); + it('shows total store as only list item when associate not in a team', () => {}); + }); + describe('TeamItem' + ) +});
adding roster screen
adding roster screen
56a58183f99e49d55051eb2b0e8b51e1bfbf4396
--- docs/docs/components/icons/icons-gtp-owned.md @@ -6,7 +6,7 @@ custom_edit_url: null ## gtp-shared-icons -Refer to [this documentation](https://gecgithub01.walmart.com/pages/electrode-mobile-platform/gtp-shared-components/introduction/icons) to see which icons are included in this library. This [repository](https://gecgithub01.walmart.com/pages/electrode-mobile-platform/gtp-shared-components/introduction/icons) contains shared Living Design icons for WM React Native apps. The [gtp-shared-components library](https://gecgithub01.walmart.com/electrode-mobile-platform/gtp-shared-components), which is in Allspark, pulls its icons from this library. Some of these icons are also available through i5; these are listed below: +Refer to [this documentation](https://gecgithub01.walmart.com/pages/electrode-mobile-platform/gtp-shared-components/introduction/icons) to see which icons are included in this library. The [gtp-shared-icons library](https://gecgithub01.walmart.com/electrode-mobile-platform/gtp-shared-icons) contains shared Living Design icons for WM React Native apps. The [gtp-shared-components library](https://gecgithub01.walmart.com/electrode-mobile-platform/gtp-shared-components), which is in Allspark, pulls its icons from this library. Some of these icons are also available through i5; these are listed below: #### ArticleIcon | [welcomeme/icon-first-day](https://i5-me.walmartimages.com/images/welcomeme/icon-first-day-0c62d9067a.png) (i5) ![ArticleIcon](./images/icon-first-day-0c62d9067a.webp)
docs: editing for clarity
docs: editing for clarity
f508a7a38b6f72476a2674178d5dbc15515b5b22
--- __tests__/redux/utilsTest.ts @@ -61,7 +61,7 @@ describe('utils', () => { it('adds sagas if task is cancelled', () => { TaskMap[mySliceName] = mockTask; - (mockTask.isCancelled as jest.Mock).mockReturnValueOnce(true); + (mockTask.isRunning as jest.Mock).mockReturnValueOnce(true); const cleanup = initSagas.call({ slice: mySliceName, sagas: mySagas, @@ -73,7 +73,7 @@ describe('utils', () => { it('does not add sagas if task already exists and is not cancelled', () => { TaskMap[mySliceName] = mockTask; - (mockTask.isCancelled as jest.Mock).mockReturnValueOnce(false); + (mockTask.isRunning as jest.Mock).mockReturnValueOnce(false); initSagas.call({ slice: mySliceName, sagas: mySagas, --- package-lock.json @@ -4603,9 +4603,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.0.0-beta.12", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.0.0-beta.12.tgz", - "integrity": "sha512-XWy0LcA2223VfhD7YdHDwO7gxDRgDYyPYt96ukfGj/FuKI93GHUY6/i4/G8mQCjHuRczHDavEvNTBKB19a3wNw==", + "version": "1.0.0-beta.13", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.0.0-beta.13.tgz", + "integrity": "sha512-kuJLps0zkwBhmMczaIr45zWKU48Oc+4llzOsfAKMzrJqkL2XmHSZwpohIl98jHuOgTzKjKLMMveEQ8+8D//3lA==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", --- package.json @@ -77,7 +77,7 @@ "@walmart/ask-sam-mini-app": "0.41.5", "@walmart/config-components": "3.0.2", "@walmart/core-services": "^1.0.0-beta.6", - "@walmart/core-services-allspark": "^1.0.0-beta.12", + "@walmart/core-services-allspark": "^1.0.0-beta.13", "@walmart/counts-component-miniapp": "0.0.34", "@walmart/exception-mini-app": "0.40.4", "@walmart/feedback-all-spark-miniapp": "0.3.8", --- src/redux/utils.ts @@ -19,7 +19,7 @@ export function initReducer(this: {slice: string; reducer: Reducer<any, any>}) { export function initSagas(this: {slice: string; sagas: any}) { const task = TaskMap[this.slice]; - if (!task || task.isCancelled()) { + if (!task || !task.isRunning()) { TaskMap[this.slice] = addSagas(this.sagas); }
bump core services for user clear fix. fix saga cleanup logic
bump core services for user clear fix. fix saga cleanup logic
8b2820a862cca5fa74ebb559a6de7c2d7bdf0c1a
--- .looper-pr.yml @@ -31,3 +31,4 @@ envs: +
fix(ui): update looper yml #SMDV-9990
fix(ui): update looper yml #SMDV-9990
862a006bee9317262648e75ac7eb3b046702ec1d
--- .yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch @@ -24,6 +24,15 @@ index 6c6be95bb86462a460602410051df524b9782096..f7f56a68ecc5b68985d5c73c0d1db986 diff --git a/dist/containers/ClockOutScreen/index.js b/dist/containers/ClockOutScreen/index.js --- a/dist/containers/ClockOutScreen/index.js +++ b/dist/containers/ClockOutScreen/index.js +@@ -64,7 +64,7 @@ export const ClockOutScreen = ({ navigation, route, }) => { + const [reason, setReason] = useState(''); + const [isConfirmButtonDisabled, setIsConfirmButtonDisabled] = useState(false); + const restBreakPremApi = getRestBreakPremiumApi(); +- const today = moment().utc().format('YYYY-MM-DDTHH:mm:ss.SSS'); ++ const today = moment().format('YYYY-MM-DDTHH:mm:ss.SSS'); + const shiftPunchesToDisplay = clockOutShiftEditTimes + ? clockOutShiftEditTimes + : currentDayPunches; @@ -89,8 +89,8 @@ export const ClockOutScreen = ({ navigation, route, }) => { dispatch(AttestationActions.resetAttestationConfirmStatus()); dispatch(AttestationActions.resetAttestationRemoveStatus()); --- yarn.lock @@ -10055,7 +10055,7 @@ __metadata: "@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.13#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch": version: 3.19.13 - resolution: "@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.13%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Ftime-clock-mini-app%252F-%252F%2540walmart%252Ftime-clock-mini-app-3.19.13.tgz#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch::version=3.19.13&hash=fcd624" + resolution: "@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.13%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Ftime-clock-mini-app%252F-%252F%2540walmart%252Ftime-clock-mini-app-3.19.13.tgz#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch::version=3.19.13&hash=5c9260" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -10101,7 +10101,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/c7c7a7697dca360d9153e978d429b510c58bbac67ab7ebe01885d93f0422e240d0814494b3f09947e56a884ec9658ce93b598fa16f2a94428bdd4ad8c5b05373 + checksum: 10c0/25f21f2e5b8983e64c801c22bf94c785c47019726b48423d0d2e666aefae1e859f187606423436170db9fbc210baeafb8bfbab0eed67023208fd0033e2b8673e languageName: node linkType: hard
fix(GTA-168096): Patch to stop sending UTC time for rest break (#5326)
fix(GTA-168096): Patch to stop sending UTC time for rest break (#5326) Co-authored-by: Sai Krishna Reddy Cheruku - s0c0nrc <Saikrishnareddy.Cher@walmart.com>
312691f4e7fb754cfd6ced906396b70a3b72ab58
--- packages/allspark-foundation/src/Navigation/client.tsx @@ -84,14 +84,18 @@ export class NavigationClient< DefaultModalOptions ); private _modalSubscription: ModalStateSubscription<M>; - private _modalInitialized = false; + private _modalState = { + initialized: false, + enabled: true, + disableReason: '', + }; constructor() { // Subscribe to modalfy state changes to capture initialization of modal state // from modalfy provider. Only then we can update the modal state or else it could be overwritten. this._modalSubscription = ModalState.subscribe(() => { this._modalSubscription.unsubscribe(); - this._modalInitialized = true; + this._modalState.initialized = true; this._queueManager.flush('updateModalState', this._updateModalState); }); } @@ -139,7 +143,7 @@ export class NavigationClient< * addModal or configure */ private _updateModalState = () => { - if (!this._modalInitialized) { + if (!this._modalState.initialized) { this._queueManager.enqueue('updateModalState', undefined); } else { ModalState.setState<M>(() => ({ @@ -304,6 +308,25 @@ export class NavigationClient< return this.getCurrentRoute()?.name || ''; }; + /** + * Get feature id for currently focused screen. + */ + public getCurrentRouteFeatureId = () => { + const name = this.getCurrentRouteName(); + return this._screenToFeatureMapping.get.call( + this._screenToFeatureMapping, + name + ); + }; + + /** + * Check if the currently focused screen is assigned to a given feature id. + * @param featureId - The ID of the feature to check. + */ + public isFeatureScreen = (featureId: string) => { + return this.getCurrentRouteFeatureId() === featureId; + }; + // --- Screen Navigation --- // /** @@ -533,7 +556,13 @@ export class NavigationClient< params?: M[K], callback?: () => void ) => { - this._modalfy.openModal(modalName, params, callback); + if (this._modalState.enabled) { + this._modalfy.openModal(modalName, params, callback); + } else { + console.warn( + `Allspark Modals are currently disabled. Reason: ${this._modalState.disableReason}` + ); + } }; /** @@ -568,6 +597,15 @@ export class NavigationClient< this._modalfy.closeAllModals(callback); }; + public enableModals = () => { + this._modalState.enabled = true; + }; + + public disableModals = (reason: string = '') => { + this._modalState.enabled = false; + this._modalState.disableReason = reason; + }; + /** * Creates StackNavigator connected to AllsparkNavigationClient. */
feat: add disable modal and get feature id for screen capabilities to navigation client
feat: add disable modal and get feature id for screen capabilities to navigation client
7102b561b23570bba31db80fb9988ed97b344d0b
--- patches/@walmart+profile-feature-app+0.0.71.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@walmart/profile-feature-app/dist/config/appConfigDefault.js b/node_modules/@walmart/profile-feature-app/dist/config/appConfigDefault.js +index 137f36e..ee8e749 100644 +--- a/node_modules/@walmart/profile-feature-app/dist/config/appConfigDefault.js ++++ b/node_modules/@walmart/profile-feature-app/dist/config/appConfigDefault.js +@@ -119,7 +119,7 @@ defaultAppConfig[ME_AT_WALMART] = { + personalSettingsPhoneEnabled: false, + personalSettingsAddressEnabled: false, + // FWB Components +- moneyHintsCarouselEnabled: false, ++ moneyHintsCarouselEnabled: true, + directDepositTileCardEnabled: true, + myMoneyScreenVisible: false, + };
added patch for profile-feature-app
added patch for profile-feature-app
1960f6b46d0d46f7c4e5c89edb6de180504bc1ee
--- package-lock.json @@ -4203,9 +4203,9 @@ "integrity": "sha512-D1I8i9IA/LlfKInPduKHARhcJ2KuUVKQ8GMoHlLBLmnl6Zo55xuzKdU8DCyiIJfPsAv/KQVRD63/FVKbyyO1LA==" }, "@walmart/exception-mini-app": { - "version": "0.40.1", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.40.1.tgz", - "integrity": "sha512-uhePNwmz7vU5/Os9WS8w2BBZvrCzRGgk+AtLcxkQcQdq/5eC48iWL6tuHXRVTUF2eVTggaPqIxEA9ZOBsmwK1Q==" + "version": "0.40.2", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.40.2.tgz", + "integrity": "sha512-GJ/6zuVgXn+8rocbeOisIbHxBbGk8ZmKr3fqofSgLYe7x9YuiXPi2kfSjz0G7p/HcAS/FqHllNsqPCdoLbeVpg==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.1.30", --- package.json @@ -77,7 +77,7 @@ "@walmart/ask-sam-mini-app": "0.40.10", "@walmart/config-components": "1.0.35", "@walmart/counts-component-miniapp": "0.0.34", - "@walmart/exception-mini-app": "0.40.1", + "@walmart/exception-mini-app": "0.40.2", "@walmart/feedback-all-spark-miniapp": "0.1.30", "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15",
Pinpoint: bump version 0.40.1 > 0.40.2
Pinpoint: bump version 0.40.1 > 0.40.2
c366051b33326d111be44288426be510d2205c8a
--- package-lock.json @@ -51,7 +51,7 @@ "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.5", - "@walmart/impersonation-mini-app": "1.17.2", + "@walmart/impersonation-mini-app": "1.18.0-138-0d617e4", "@walmart/ims-print-services-ui": "2.1.2", "@walmart/inbox-mini-app": "0.82.3", "@walmart/iteminfo-mini-app": "7.1.4", @@ -5285,22 +5285,19 @@ "license": "UNLICENSED" }, "node_modules/@walmart/impersonation-mini-app": { - "version": "1.17.2", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.17.2.tgz", - "integrity": "sha512-IDynuXjrS0zBA66Fq8ZAHj6xx4Hllx1cS8xLpDFvon/29MB84aO/pY2QKTXmldOP5/GbW+buGk89mtsQ6jYUJQ==", + "version": "1.18.0-138-0d617e4", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.18.0-138-0d617e4.tgz", + "integrity": "sha512-micw/zgYZsFyucizZAkvwO0p6ySRJ6+ZUUgnoOc10xsEZwp7iKuzqxKZeW7kh82iEWgA2xQkwcdmvdIiFdIzMw==", "peerDependencies": { "@react-native-community/masked-view": ">=0.1.10", "@react-native-community/picker": ">=1.8.1", "@react-navigation/native": ">=5.7.3", "@react-navigation/stack": ">=5.9.0", - "@walmart/functional-components": ">=1.0.22", - "@walmart/react-native-logger": ">=1.16.0", "@walmart/react-native-shared-navigation": ">=0.2.0", "@walmart/redux-store": ">=1.0.7", "@walmart/ui-components": ">=1.0.91", "react-i18next": ">=11.7.3", "react-native-restart": ">=0.0.20", - "react-native-wm-telemetry": ">=0.2.0", "react-redux": ">=7.2.0" } }, @@ -25269,9 +25266,9 @@ } }, "@walmart/impersonation-mini-app": { - "version": "1.17.2", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.17.2.tgz", - "integrity": "sha512-IDynuXjrS0zBA66Fq8ZAHj6xx4Hllx1cS8xLpDFvon/29MB84aO/pY2QKTXmldOP5/GbW+buGk89mtsQ6jYUJQ==" + "version": "1.18.0-138-0d617e4", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.18.0-138-0d617e4.tgz", + "integrity": "sha512-micw/zgYZsFyucizZAkvwO0p6ySRJ6+ZUUgnoOc10xsEZwp7iKuzqxKZeW7kh82iEWgA2xQkwcdmvdIiFdIzMw==" }, "@walmart/ims-print-services-ui": { "version": "2.1.2", --- package.json @@ -93,7 +93,7 @@ "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.5", - "@walmart/impersonation-mini-app": "1.17.2", + "@walmart/impersonation-mini-app": "1.18.0-138-0d617e4", "@walmart/ims-print-services-ui": "2.1.2", "@walmart/inbox-mini-app": "0.82.3", "@walmart/iteminfo-mini-app": "7.1.4",
bumping impersonation mini-app version for testing
bumping impersonation mini-app version for testing
08ab795e5edf631ca168cbcaceac9123b18eaeef
--- package.json @@ -62,17 +62,18 @@ "@redux-saga/testing-utils": "^1.1.3", "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", + "@walmart/ItemInfo": "0.1.126", "@walmart/allspark-health-survey-mini-app": "0.0.35", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0", "@walmart/ask-sam-mini-app": "0.17.0", "@walmart/config-components": "1.0.21", + "@walmart/counts-component-miniapp": "0.0.4", "@walmart/feedback-all-spark-miniapp": "0.0.49", "@walmart/functional-components": "1.0.27", - "@walmart/gtp-shared-components": "^0.2.2", + "@walmart/gtp-shared-components": "^1.1.3", "@walmart/impersonation-mini-app": "1.0.15", "@walmart/inbox-mini-app": "0.0.93", - "@walmart/ItemInfo": "0.1.124", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.4", "@walmart/react-native-env": "^0.1.0",
integrate counts
integrate counts
675d3c752b5e643c56656a5bb3c3c5bc30efbd19
--- package-lock.json @@ -81,7 +81,7 @@ "@walmart/schedule-mini-app": "0.37.0", "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", - "@walmart/taskit-mini-app": "2.40.6", + "@walmart/taskit-mini-app": "2.40.8", "@walmart/time-clock-mini-app": "2.98.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0", @@ -6004,9 +6004,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "2.40.6", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.40.6.tgz", - "integrity": "sha512-hC1OhbCpJYe5BNvAd4/BSWIaE8ViiRvLGcWdJU4bvOmY4EKka0gDMZlGvdXOr9T+gdIoA2g1znhmboUpTpcYBA==", + "version": "2.40.8", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.40.8.tgz", + "integrity": "sha512-NEdZiakzJiNiXn/lzT+EWt+yn8BMJp6lXQJrDf8tvm0PUtVNWcyHpxWeq/KAFWsocZDmP3Xe895xk9qM1XQFPA==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -25399,9 +25399,9 @@ "version": "1.5.16" }, "@walmart/taskit-mini-app": { - "version": "2.40.6", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.40.6.tgz", - "integrity": "sha512-hC1OhbCpJYe5BNvAd4/BSWIaE8ViiRvLGcWdJU4bvOmY4EKka0gDMZlGvdXOr9T+gdIoA2g1znhmboUpTpcYBA==" + "version": "2.40.8", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.40.8.tgz", + "integrity": "sha512-NEdZiakzJiNiXn/lzT+EWt+yn8BMJp6lXQJrDf8tvm0PUtVNWcyHpxWeq/KAFWsocZDmP3Xe895xk9qM1XQFPA==" }, "@walmart/tcnumber": { "version": "2.3.3", --- package.json @@ -123,7 +123,7 @@ "@walmart/schedule-mini-app": "0.37.0", "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", - "@walmart/taskit-mini-app": "2.40.6", + "@walmart/taskit-mini-app": "2.40.8", "@walmart/time-clock-mini-app": "2.98.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0",
chore: bump taskit to 2.40.8
chore: bump taskit to 2.40.8
d7498a45a43d9a094c28da47fbad67c2bca7f40e
--- main.js @@ -7,12 +7,14 @@ const isRunningInExpo = process.env.EXPO_APP_VARIANT || process.env.NODE_ENV === 'dev'; +const isRunningInLooper = process.env.LOOPER === 'true'; + try { - // When running directly with Expo or in dev mode - if (isRunningInExpo) { + // When running directly with Expo or in dev mode, and not in looper + if (isRunningInExpo && !isRunningInLooper) { module.exports = require('./index'); } else { - // When being used as a package dependency + // When being used as a package dependency or running in looper module.exports = require('./dist/index.js'); } } catch (error) { --- package.json @@ -93,7 +93,7 @@ "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-shared-navigation": "6.1.4", - "@walmart/react-native-sumo-sdk": "2.7.4", + "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/redux-store": "6.3.29", "@walmart/roster-mini-app": "2.37.1", "@walmart/ui-components": "1.15.1", @@ -162,7 +162,7 @@ } }, "resolutions": { - "@walmart/core-services-allspark": "6.26.0-alpha.1", + "@walmart/core-services-allspark": "6.29.0-alpha.0", "@walmart/core-services": "6.5.3", "@walmart/core-utils": "6.3.10", "@walmart/redux-store": "6.3.29", @@ -173,9 +173,15 @@ "react-native-reanimated": "3.10.1", "react-native-gesture-handler": "2.16.1", "@react-native-community/datetimepicker": "8.0.1", - "@walmart/react-native-sumo-sdk": "2.7.4", + "@walmart/react-native-sumo-sdk": "2.8.0", "expo-modules-autolinking@npm:1.10.3": "patch:expo-modules-autolinking@npm%3A1.10.3#~/.yarn/patches/expo-modules-autolinking-npm-1.10.3-1fb95411c1.patch", - "@types/react": "18.2.45" + "@types/react": "18.2.45", + "@react-native-firebase/analytics": "~21.0.0", + "@react-native-firebase/app": "~21.0.0", + "@react-native-firebase/crashlytics": "~21.0.0", + "@react-native-firebase/database": "~21.0.0", + "@react-native-firebase/perf": "~21.0.0", + "@react-native-firebase/remote-config": "~21.0.0" }, "expo": { "doctor": { --- yarn.lock @@ -6384,14 +6384,14 @@ __metadata: languageName: node linkType: hard -"@walmart/core-services-allspark@npm:6.26.0-alpha.1": - version: 6.26.0-alpha.1 - resolution: "@walmart/core-services-allspark@npm:6.26.0-alpha.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcore-services-allspark%2F-%2Fcore-services-allspark-6.26.0-alpha.1.tgz" +"@walmart/core-services-allspark@npm:6.29.0-alpha.0": + version: 6.29.0-alpha.0 + resolution: "@walmart/core-services-allspark@npm:6.29.0-alpha.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcore-services-allspark%2F-%2Fcore-services-allspark-6.29.0-alpha.0.tgz" peerDependencies: - "@walmart/allspark-foundation": "*" - "@walmart/me-at-walmart-common": "*" - "@walmart/me-at-walmart-container": "*" - checksum: 10c0/ff3f46987033f18a77b393820b69dcf97c34e748ba493d8ec3164f5e24d6c53c7622873bf0093032a091ab2ea143eb7ee960b40044c872d20b18717714d6a9c2 + "@walmart/allspark-foundation": ">=6.26.0" + "@walmart/me-at-walmart-common": "workspace:^" + "@walmart/me-at-walmart-container": "workspace:^" + checksum: 10c0/b9753a6376722422734a92b2f6e146e81e2dc798a43f82574112ed928e96ac52b15c2212438c3b66db1e40e3d7b6b0c0253e33f22252be6a6162ec840c1cfe9d languageName: node linkType: hard @@ -6582,7 +6582,7 @@ __metadata: "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-shared-navigation": "npm:6.1.4" - "@walmart/react-native-sumo-sdk": "npm:2.7.4" + "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/redux-store": "npm:6.3.29" "@walmart/roster-mini-app": "npm:2.37.1" "@walmart/ui-components": "npm:1.15.1" @@ -6690,13 +6690,13 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-sumo-sdk@npm:2.7.4": - version: 2.7.4 - resolution: "@walmart/react-native-sumo-sdk@npm:2.7.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-sumo-sdk%2F-%2Freact-native-sumo-sdk-2.7.4.tgz" +"@walmart/react-native-sumo-sdk@npm:2.8.0": + version: 2.8.0 + resolution: "@walmart/react-native-sumo-sdk@npm:2.8.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-sumo-sdk%2F-%2F%40walmart%2Freact-native-sumo-sdk-2.8.0.tgz" peerDependencies: react: "*" react-native: "*" - checksum: 10c0/c94d7ca2a7e6a9c7181685b1aa8e4cf0a82472bcc3bc1f6be28283477ddc33db4b1820dd9594b29d868dc508dcc19e04b78719f2e4973b2a583fadef95480a5f + checksum: 10c0/f5d0be19f86e3b7e5d40be3e691ddc65003eb0efb8ac89c85b990a8dbf766290ec9467154f5d1206c8e464b29ed5484d4202c51c156e2d9cd77787ad796bb2f1 languageName: node linkType: hard
fix(ui): update package
fix(ui): update package
d17fc6ee1fc831d6bb63f61c457b7e32f45ebb08
--- package-lock.json @@ -3393,9 +3393,9 @@ "integrity": "sha512-DMXzHrlFBvd5qOHxju7irJ+4UkclgpwJVlEKzPqmL4oQPYXkjCydvbJR0O5FmZtDDyBrKxKtofD2vD4nyBeHPA==" }, "@walmart/inbox-mini-app": { - "version": "0.6.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.6.0.tgz", - "integrity": "sha512-qc2ZS9IuYsN7/+vjkak3j4Ii7WqiDLc+3jtGTfmQAI9+JLzPlBL+0X7nHZe9x7fz/FHrtkU0hgy3ZKWOIMoefg==" + "version": "0.7.0", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.7.0.tgz", + "integrity": "sha512-3Rte7SOwEqoPl5aCRzbL4ORPH8ewjhB1TYWSbpjzZGysWjCZcwF7xbLVVcBjcTxcfuEH/6VZAbKOBaYGQnOqpg==" }, "@walmart/iteminfo-mini-app": { "version": "2.0.7", --- package.json @@ -83,7 +83,7 @@ "@walmart/gtp-shared-components": "^1.2.0", "@walmart/impersonation-mini-app": "1.0.18", "@walmart/ims-print-services-ui": "0.0.36", - "@walmart/inbox-mini-app": "0.6.0", + "@walmart/inbox-mini-app": "0.7.0", "@walmart/iteminfo-mini-app": "2.0.7", "@walmart/manager-approvals-miniapp": "0.0.49", "@walmart/metrics-mini-app": "0.4.11",
SSMP-2002
SSMP-2002
abecfd0f0eb8e40dd46060562ad476e2113c7ae4
--- graphql.yml @@ -23,12 +23,10 @@ applications: tags: - 'v3' - name: 'GetTeamById' - hash: '5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v3' - name: 'GetTeamsByStore' - hash: '0d9bcce8cdce8831861e22bd66c43d0891aef2304b2bab61e449c5570aa564d2' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v3' @@ -50,12 +48,10 @@ applications: tags: - 'v3' - name: 'GetTeamById' - hash: '5a1baf2e68d6b2c9ddec825296731ccd2137a9e7f12d1f7210ca797814bb3e3f' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v3' - name: 'GetTeamsByStore' - hash: '0d9bcce8cdce8831861e22bd66c43d0891aef2304b2bab61e449c5570aa564d2' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v3'
removed hash values
removed hash values
bb7441dc20368b140f24ff0bc981455441eef8ed
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Component/TeamSelectionList.tsx @@ -131,6 +131,7 @@ export const TeamSelectionList = ({ teamSelectionTelemetry.logEvent('team_selection_cancel_event', { win: win as string, site: String(site), + message: 'Team selection cancel event triggered', }); };
Adding firebase telemetry
Adding firebase telemetry
e617252ad4eb17329d19cd90637e1dcffee753e4
--- packages/allspark-foundation/__tests__/Components/ComponentContainers.test.tsx @@ -347,8 +347,8 @@ describe('ErrorBoundary in ComponentContainer', () => { it('can add an error boundary', () => { const mockErrorBoundary = () => <View testID='error-boundary' />; - container.addErrorBoundary(mockErrorBoundary); - expect(container['_errorBoundary']).toBe(mockErrorBoundary); + container.addComponentWrapper(mockErrorBoundary); + expect(container['_componentWrapper']).toBe(mockErrorBoundary); }); it('uses error boundary when rendering List', () => { @@ -358,7 +358,7 @@ describe('ErrorBoundary in ComponentContainer', () => { }) => <View testID='error-boundary'>{children}</View>; // Add error boundary and components - container.addErrorBoundary(MockErrorBoundary); + container.addComponentWrapper(MockErrorBoundary); container.add('workingComponent', MockComponent); // Render and verify error boundary is used @@ -374,7 +374,7 @@ describe('ErrorBoundary in ComponentContainer', () => { it('passes error boundary to Layout component', () => { const MockErrorBoundary = jest.fn(() => null); - container.addErrorBoundary(MockErrorBoundary); + container.addComponentWrapper(MockErrorBoundary); container.add('mockComponent1', MockComponent); const layout = [[{ componentId: 'mockComponent1', width: 1 }]]; @@ -382,7 +382,7 @@ describe('ErrorBoundary in ComponentContainer', () => { render(<container.Layout layout={layout} />); // Verify that errorBoundary was passed to Layout - expect(container['_errorBoundary']).toBe(MockErrorBoundary); + expect(container['_componentWrapper']).toBe(MockErrorBoundary); }); it('safely renders other components when one component throws', () => { @@ -404,7 +404,7 @@ describe('ErrorBoundary in ComponentContainer', () => { } } - container.addErrorBoundary(TestErrorBoundary); + container.addComponentWrapper(TestErrorBoundary); container.add('workingComponent', MockComponent); container.add('brokenComponent', BrokenComponent); --- packages/allspark-foundation/src/Components/ComponentContainers.tsx @@ -50,7 +50,7 @@ export class ComponentContainer<Props = {}> { private _eventManager = new EventManager<{ change: string; }>(['change']); - private _errorBoundary: ComponentType | undefined = undefined; + private _componentWrapper: ComponentType | undefined = undefined; constructor(_?: string, config?: ComponentContainerConfig) { this._config = config || {}; @@ -89,8 +89,8 @@ export class ComponentContainer<Props = {}> { } }; - public addErrorBoundary = (errorBoundary: ComponentType) => { - this._errorBoundary = errorBoundary; + public addComponentWrapper = (componentWrapper: ComponentType) => { + this._componentWrapper = componentWrapper; }; /** @@ -207,7 +207,7 @@ export class ComponentContainer<Props = {}> { addChangeListener: (cb) => this._eventManager.addListener('change', cb), }); - props.errorBoundary = this._errorBoundary; + props.componentWrapper = this._componentWrapper; return <Layout {...props} config={config} />; }; @@ -235,14 +235,14 @@ export class ComponentContainer<Props = {}> { ) : Array.from(this._components.entries()); - const ErrorBoundary = this._errorBoundary ?? PassThrough; + const ComponentWrapper = this._componentWrapper ?? PassThrough; return ( <> {components.map(([id, Component]) => ( - <ErrorBoundary> + <ComponentWrapper> <Component {...(restProps as Props)} key={id} /> - </ErrorBoundary> + </ComponentWrapper> ))} </> ); --- packages/allspark-utils/__tests__/LayoutTest.tsx @@ -58,7 +58,7 @@ describe('Layout tests', () => { layout={layout} config={config} props={{}} - errorBoundary={BoundaryWrapper} + componentWrapper={BoundaryWrapper} /> ); @@ -133,7 +133,7 @@ describe('Layout tests', () => { layout={layoutWithError} config={configWithError} props={{}} - errorBoundary={ErrorCatchingBoundary} + componentWrapper={ErrorCatchingBoundary} /> ); --- packages/allspark-utils/src/Layout.tsx @@ -23,7 +23,7 @@ export type LayoutProps<P extends any> = { props: P; scrollable?: boolean; style?: StyleProp<ViewStyle>; - errorBoundary?: ComponentType; + componentWrapper?: ComponentType; }; const styles = StyleSheet.create({ @@ -63,11 +63,11 @@ export const Layout = <P = {},>(props: LayoutProps<P>) => { return null; } - const ErrorBoundary = props?.errorBoundary ?? PassThrough; + const ComponentWrapper = props?.componentWrapper ?? PassThrough; return ( - <ErrorBoundary - key={`error-${componentId}-${rowIndex}-${colIndex}`} + <ComponentWrapper + key={`wrapper-${componentId}-${rowIndex}-${colIndex}`} > <View key={`${componentId}-${rowIndex}-${colIndex}`} @@ -78,7 +78,7 @@ export const Layout = <P = {},>(props: LayoutProps<P>) => { {...(metaData as any)} /> </View> - </ErrorBoundary> + </ComponentWrapper> ); })} </View>
feat(layout): changed error boundary name to component wrapper
feat(layout): changed error boundary name to component wrapper
def89de4f8b4437b873e87530cb7e9bb72360b07
--- packages/allspark-foundation/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -11,7 +11,7 @@ import { ValidatedTeamWidgetMapping } from './types'; import { AllsparkFeatureModule } from '../../../Core'; import { enUS, esMX } from '../../translation'; import { FEATURE_ID, FEATURE_NAME } from '../../constant'; -import { TeamSelection } from '../../Onboarding/TeamSelection'; +import { TeamSelection, TeamOnboardingScreen } from '../../Onboarding'; import { managerExperienceSlice } from '../../Redux/reducer'; import { HubDashboard } from './Screens'; import { managerExperienceSaga } from '../../Redux/sagas'; @@ -30,6 +30,12 @@ export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { options: { title: 'Choose Teams', }, + 'managerExperience.teamOnboarding': { + getComponent: () => TeamOnboardingScreen, + options: { + title: 'Team Onboarding', + }, + } }, }, redux: { --- packages/allspark-foundation/src/HubFeature/Onboarding/index.tsx @@ -0,0 +1,2 @@ +export * from './TeamOnboarding'; +export * from './TeamSelection';
Initial work for onboarding sagas
Initial work for onboarding sagas
871040af3396b21132125606cd1eab03d3ed3c10
--- graphql.yml @@ -1,4 +1,5 @@ schemaVersion: '1.0.0' + teamRostersProductId: 2071 notify: slack:
Adding commit for dummy pr
Adding commit for dummy pr
9c073737882efb98e24edd3cfe55d3fcf48d7d1a
--- package-lock.json @@ -3504,9 +3504,9 @@ } }, "@walmart/settings-mini-app": { - "version": "1.3.2", - "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.3.2.tgz", - "integrity": "sha512-/23k7tm8e4A3ByUXsWhLg48+v+YqxE7czwQC7EjiqkClxcR6tguD2Y1ilCZ/oa5ycWwXSqYL/BA5QZcASaap+Q==" + "version": "1.3.3", + "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.3.3.tgz", + "integrity": "sha512-tJgg+LWVMy+F9pLZ3FIVm1ujQvsKfLzGmupKj+kurJwRxVFm9Quz2U0kMbysRhjdwZr/J53mNeObTfQg68RSXQ==" }, "@walmart/shelfavailability-mini-app": { "version": "0.3.64", --- package.json @@ -87,7 +87,7 @@ "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/redux-store": "^1.0.14", "@walmart/schedule-mini-app": "0.2.76", - "@walmart/settings-mini-app": "1.3.2", + "@walmart/settings-mini-app": "1.3.3", "@walmart/time-clock-mini-app": "0.3.8", "@walmart/ui-components": "1.1.50", "@walmart/welcomeme-mini-app": "0.26.2",
settings version increment
settings version increment
62b63483bf46fe6bf27cd495191155d73fcb27c4
--- package-lock.json @@ -9468,9 +9468,9 @@ "integrity": "sha512-Ls9qiNZzW/OLFoI25wfjjAcrf2DZ975hn2vr6U9gyuxi2nooVbzQeFoQS5vQcbCt9QX5NY8ASEEAtlLdIa6KVg==" }, "react-native-ssmp-sso-allspark": { - "version": "0.0.3", - "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.3.tgz", - "integrity": "sha512-3QPr9Z+nkrcV7X/ncNOVHBg1mt3GD0tVovnotH7qbZMmHwkEV4s/4RlwF+k5Ia4r2XA1ARKwhqFPCd5gD7rbSQ==" + "version": "0.0.4", + "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.4.tgz", + "integrity": "sha512-+3NWR4md2763c61JGxdDUDtuqv40Cbo0Z208I9yFrLNfd3R9QjMWNG7QCfG7wTfqfTsQXofZyLGtwV/n1t68Vw==" }, "react-native-sumo-sdk": { "version": "2.7.1", --- package.json @@ -88,7 +88,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": "0.0.3", + "react-native-ssmp-sso-allspark": "0.0.4", "react-native-sumo-sdk": "^2.7.1", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.15.2",
sso-allspark library version bump to 0.0.4 (#210)
sso-allspark library version bump to 0.0.4 (#210) * sso-allspark library version bump to 0.0.4 * Update package-lock.json Co-authored-by: Anukalp Katyal - a0k04qv <Anukalp.Katyal@walmartlabs.com>
04dc6222ed408f5a5deb706b778b6fe3223d0f96
--- graphql.yml @@ -36,11 +36,6 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' - - name: 'getSupplyChainTeamPreference' - hash: '61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql' - tags: - - 'v1' - name: 'GetSupplyChainTeamsByStore' hash: '628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql' @@ -66,11 +61,6 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql' tags: - 'v1' - - name: 'upsertSupplyChainAssociatePreference' - hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' - tags: - - 'v1' - name: 'prod' persistedQueries: - name: 'businessUnitByCountryAndNumber' @@ -98,6 +88,11 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' + # - name: "GetSupplyChainTeamsByStore" + # hash: "628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql" + # tags: + # - "v1" - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' --- packages/me-at-walmart-athena-queries/src/schema.graphql @@ -1052,6 +1052,7 @@ input AssociatePublicSearchInput { } type AssociateRetailBusinessUnitAssignment { + baseAlignment: BaseAlignment baseDivision: BaseDivision businessUnitNumber: Int countryCode: String @@ -1229,6 +1230,7 @@ type AssociateSearchTalentResponse { } type AssociateSupplyChainBusinessUnitAssignment { + baseAlignment: BaseAlignment baseDivision: BaseDivision businessUnitNumber: Int countryCode: String @@ -9318,6 +9320,7 @@ type ReportsTo { } type RetailBusinessUnit { + baseAlignment: BaseAlignment baseDivision: BaseDivision businessUnitNumber: Int countryCode: String @@ -10561,6 +10564,7 @@ type SupplierReference { } type SupplyChainBusinessUnit { + baseAlignment: BaseAlignment baseDivision: BaseDivision businessUnitNumber: Int countryCode: String --- packages/me-at-walmart-athena-queries/src/schema.types.ts @@ -762,6 +762,7 @@ export type AssociatePublicSearchInput = { export type AssociateRetailBusinessUnitAssignment = { __typename?: 'AssociateRetailBusinessUnitAssignment'; + baseAlignment?: Maybe<BaseAlignment>; baseDivision?: Maybe<BaseDivision>; businessUnitNumber?: Maybe<Scalars['Int']>; countryCode?: Maybe<Scalars['String']>; @@ -855,6 +856,7 @@ export type AssociateSearchTalentResponse = { export type AssociateSupplyChainBusinessUnitAssignment = { __typename?: 'AssociateSupplyChainBusinessUnitAssignment'; + baseAlignment?: Maybe<BaseAlignment>; baseDivision?: Maybe<BaseDivision>; businessUnitNumber?: Maybe<Scalars['Int']>; countryCode?: Maybe<Scalars['String']>; @@ -6407,6 +6409,7 @@ export type ReportsTo = { export type RetailBusinessUnit = { __typename?: 'RetailBusinessUnit'; + baseAlignment?: Maybe<BaseAlignment>; baseDivision?: Maybe<BaseDivision>; businessUnitNumber?: Maybe<Scalars['Int']>; countryCode?: Maybe<Scalars['String']>; @@ -7157,6 +7160,7 @@ export type SupplierReference = { export type SupplyChainBusinessUnit = { __typename?: 'SupplyChainBusinessUnit'; + baseAlignment?: Maybe<BaseAlignment>; baseDivision?: Maybe<BaseDivision>; businessUnitNumber?: Maybe<Scalars['Int']>; countryCode?: Maybe<Scalars['String']>;
feat(ui) reran codegen
feat(ui) reran codegen
a25490a8414f2421669393ed9fcdfc79c9e06644
--- src/channels/components/ChannelRow.tsx @@ -29,6 +29,7 @@ import {useDailyRoster} from '../../hooks'; import {Associate} from '../../types'; import { ROOT_CONTAINER_SCREEN_NAME, + APP_CONTAINER_SCREEN_NAME, MESSAGES_SCREEN_NAME, } from '../../constants'; import {styles as channelRowStyles} from '../../components/AssociateRosterItem/style'; @@ -113,13 +114,15 @@ export const ChannelRow = (props: ChannelRowProps) => { ); const onChannelPress = () => { navigation.navigate(ROOT_CONTAINER_SCREEN_NAME, { - initial: false, // @ts-ignore - screen: MESSAGES_SCREEN_NAME, + screen: APP_CONTAINER_SCREEN_NAME, params: { - channelPath, - details: { - channelName: channelName, + screen: MESSAGES_SCREEN_NAME, + params: { + channelPath, + details: { + channelName: channelName, + }, }, }, }); --- src/navigation/utils.ts @@ -12,6 +12,7 @@ import { } from '@walmart/react-native-shared-navigation'; import { ROOT_CONTAINER_SCREEN_NAME, + APP_CONTAINER_SCREEN_NAME, NEW_MESSAGES_SCREEN_NAME, } from '../constants'; import {analytics} from '../logger/Analytics'; @@ -121,9 +122,10 @@ export const onNewMessage = () => { ); navigate(ROOT_CONTAINER_SCREEN_NAME, { - //@ts-ignore - initial: false, // @ts-ignore - screen: NEW_MESSAGES_SCREEN_NAME, + screen: APP_CONTAINER_SCREEN_NAME, + params: { + screen: NEW_MESSAGES_SCREEN_NAME, + }, }); }; --- src/notification.ts @@ -2,7 +2,11 @@ import WmNotification, { SumoPushEvent, SumoPushEventTypes, } from 'react-native-wm-notification'; -import {MESSAGES_SCREEN_NAME, ROOT_CONTAINER_SCREEN_NAME} from './constants'; +import { + MESSAGES_SCREEN_NAME, + APP_CONTAINER_SCREEN_NAME, + ROOT_CONTAINER_SCREEN_NAME, +} from './constants'; import {createChannelPath} from './channels'; import {navigate} from '@walmart/react-native-shared-navigation'; import {Platform, Vibration} from 'react-native'; @@ -19,14 +23,19 @@ const goToMessageScreenForChannel = ( ) => { const channelPath = createChannelPath(storeNumber, channelId); navigate(ROOT_CONTAINER_SCREEN_NAME, { - //@ts-ignore - initial: false, // @ts-ignore - screen: MESSAGES_SCREEN_NAME, + screen: 'myTeam.tabs', + }); + navigate(ROOT_CONTAINER_SCREEN_NAME, { + // @ts-ignore + screen: APP_CONTAINER_SCREEN_NAME, params: { - channelPath, - details: { - channelName: channelPath, + screen: MESSAGES_SCREEN_NAME, + params: { + channelPath, + details: { + channelName: channelPath, + }, }, }, }); --- src/screens/ChannelsScreen.tsx @@ -20,6 +20,7 @@ import {messageButtonEnabled} from '../redux/selectors'; import {TextingDisabledScreen} from '../channels/components/TextingDisabled'; import { ROOT_CONTAINER_SCREEN_NAME, + APP_CONTAINER_SCREEN_NAME, NEW_MESSAGES_SCREEN_NAME, } from '../constants'; import {FlashList, ListRenderItem} from '@shopify/flash-list'; @@ -82,7 +83,10 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( const onNewMessage = () => { navigation.navigate(ROOT_CONTAINER_SCREEN_NAME, { // @ts-ignore - screen: NEW_MESSAGES_SCREEN_NAME, + screen: APP_CONTAINER_SCREEN_NAME, + params: { + screen: NEW_MESSAGES_SCREEN_NAME, + }, }); }; --- src/channels/components/ChannelRow.tsx @@ -29,6 +29,7 @@ import {useDailyRoster} from '../../hooks'; import {Associate} from '../../types'; import { ROOT_CONTAINER_SCREEN_NAME, + APP_CONTAINER_SCREEN_NAME, MESSAGES_SCREEN_NAME, } from '../../constants'; import {styles as channelRowStyles} from '../../components/AssociateRosterItem/style'; @@ -113,13 +114,15 @@ export const ChannelRow = (props: ChannelRowProps) => { ); const onChannelPress = () => { navigation.navigate(ROOT_CONTAINER_SCREEN_NAME, { - initial: false, // @ts-ignore - screen: MESSAGES_SCREEN_NAME, + screen: APP_CONTAINER_SCREEN_NAME, params: { - channelPath, - details: { - channelName: channelName, + screen: MESSAGES_SCREEN_NAME, + params: { + channelPath, + details: { + channelName: channelName, + }, }, }, }); --- src/navigation/utils.ts @@ -12,6 +12,7 @@ import { } from '@walmart/react-native-shared-navigation'; import { ROOT_CONTAINER_SCREEN_NAME, + APP_CONTAINER_SCREEN_NAME, NEW_MESSAGES_SCREEN_NAME, } from '../constants'; import {analytics} from '../logger/Analytics'; @@ -121,9 +122,10 @@ export const onNewMessage = () => { ); navigate(ROOT_CONTAINER_SCREEN_NAME, { - //@ts-ignore - initial: false, // @ts-ignore - screen: NEW_MESSAGES_SCREEN_NAME, + screen: APP_CONTAINER_SCREEN_NAME, + params: { + screen: NEW_MESSAGES_SCREEN_NAME, + }, }); }; --- src/notification.ts @@ -2,7 +2,11 @@ import WmNotification, { SumoPushEvent, SumoPushEventTypes, } from 'react-native-wm-notification'; -import {MESSAGES_SCREEN_NAME, ROOT_CONTAINER_SCREEN_NAME} from './constants'; +import { + MESSAGES_SCREEN_NAME, + APP_CONTAINER_SCREEN_NAME, + ROOT_CONTAINER_SCREEN_NAME, +} from './constants'; import {createChannelPath} from './channels'; import {navigate} from '@walmart/react-native-shared-navigation'; import {Platform, Vibration} from 'react-native'; @@ -19,14 +23,19 @@ const goToMessageScreenForChannel = ( ) => { const channelPath = createChannelPath(storeNumber, channelId); navigate(ROOT_CONTAINER_SCREEN_NAME, { - //@ts-ignore - initial: false, // @ts-ignore - screen: MESSAGES_SCREEN_NAME, + screen: 'myTeam.tabs', + }); + navigate(ROOT_CONTAINER_SCREEN_NAME, { + // @ts-ignore + screen: APP_CONTAINER_SCREEN_NAME, params: { - channelPath, - details: { - channelName: channelPath, + screen: MESSAGES_SCREEN_NAME, + params: { + channelPath, + details: { + channelName: channelPath, + }, }, }, }); --- src/screens/ChannelsScreen.tsx @@ -20,6 +20,7 @@ import {messageButtonEnabled} from '../redux/selectors'; import {TextingDisabledScreen} from '../channels/components/TextingDisabled'; import { ROOT_CONTAINER_SCREEN_NAME, + APP_CONTAINER_SCREEN_NAME, NEW_MESSAGES_SCREEN_NAME, } from '../constants'; import {FlashList, ListRenderItem} from '@shopify/flash-list'; @@ -82,7 +83,10 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( const onNewMessage = () => { navigation.navigate(ROOT_CONTAINER_SCREEN_NAME, { // @ts-ignore - screen: NEW_MESSAGES_SCREEN_NAME, + screen: APP_CONTAINER_SCREEN_NAME, + params: { + screen: NEW_MESSAGES_SCREEN_NAME, + }, }); };
reverting changes on navigation
reverting changes on navigation
6eed0c4901f9295a56f0ea57798fc3f38d9294c1
--- src/Adapters/useGetStoreAssociateAdapter.ts @@ -121,7 +121,7 @@ function addTeamImages( ): EnrichedTeam[] { if (!teams?.length) return []; - const defaultImage = StoreImages.default; + const defaultImage = StoreImages.Default; return teams.map((team) => ({ ...team, --- src/Adapters/useGetSupplyChainAdapter.ts @@ -137,7 +137,7 @@ function setPreferences( function addTeamImages(teams: SupplyChainTeam[] | undefined): EnrichedTeam[] { if (!teams?.length) return []; - const defaultImage = SupplyChainImages.default; + const defaultImage = SupplyChainImages.Default; return teams.map((team) => ({ ...team, --- src/Adapters/useGetTeamsAdapter.ts @@ -16,6 +16,15 @@ import { TeamImage, } from "src/common/types"; import { Team } from "@walmart/me-at-walmart-athena-queries/lib/schema.types"; +import { useMemo } from "react"; + +const DEFAULT_TEAM_NAMES = { + STORE: "Total store", + DISTRIBUTION_CENTER: "Total site", +} as const; + +const SHIFT_CODE_SEPARATOR = " | "; +const SHIFT_CODE_DELIMITER = ", "; interface UseGetTeamsAdapterResult { loading: boolean; @@ -56,10 +65,22 @@ export const useGetTeamsAdapter = (): UseGetTeamsAdapterResult => { const allTeamId = useAllsparkSelector( AssociateExpHubSelectors.getAllTeamSelection ); + const selectedTeamId = savedTeamId || allTeamId; const isInitialLoad = !selectedTeamId; - const { teamName, teamImage } = getDisplayData({ + // Memoize the display data calculation + const displayData = useMemo(() => { + return getDisplayData({ + teams, + teamLookup, + selectedTeamId, + isSiteDC, + shiftCodePreferences, + primaryTeam, + isInitialLoad, + }); + }, [ teams, teamLookup, selectedTeamId, @@ -67,7 +88,7 @@ export const useGetTeamsAdapter = (): UseGetTeamsAdapterResult => { shiftCodePreferences, primaryTeam, isInitialLoad, - }); + ]); return { loading, @@ -77,87 +98,115 @@ export const useGetTeamsAdapter = (): UseGetTeamsAdapterResult => { teamSections, preferences, shiftCodePreferences, - teamName, - teamImage, + teamName: displayData.teamName, + teamImage: displayData.teamImage, }; }; -/** - * Helper function to determine the team name to display - */ -function getDisplayData({ - teams = [], - teamLookup = new Map(), - selectedTeamId = "", - isSiteDC = false, - shiftCodePreferences = [], - primaryTeam = [], - isInitialLoad = false, -}: { +interface GetDisplayDataParams { teams: EnrichedTeam[]; teamLookup: Map<string, EnrichedTeam>; - selectedTeamId: string | undefined; + selectedTeamId?: string; isSiteDC: boolean; shiftCodePreferences: ShiftCode[]; primaryTeam: PrimaryTeam; isInitialLoad: boolean; -}): { +} + +interface GetDisplayDataResult { teamName: string; teamImage: TeamImage; -} { - // Default name based on site type - const defaultTeamName = isSiteDC ? "Total site" : "Total store"; +} - const defaultImage = isSiteDC - ? SupplyChainImages.Default - : StoreImages.Default; +/** + * Helper function to determine the team name and image to display + * + * @param params - Configuration object containing all necessary data + * @returns Object with teamName and teamImage + */ +function getDisplayData(params: GetDisplayDataParams): GetDisplayDataResult { + const { + teams = [], + teamLookup = new Map(), + selectedTeamId, + isSiteDC = false, + shiftCodePreferences = [], + primaryTeam = [], + isInitialLoad = false, + } = params; - // Validate inputs to prevent runtime errors - if (!teams || teams.length === 0) { - return { - teamName: defaultTeamName, - teamImage: defaultImage, - }; + // Early return for invalid input + if (!teams?.length) { + return getDefaultDisplayData(isSiteDC); } - // Find selected team - const selectedTeam = teamLookup.get(selectedTeamId ?? ""); - - // Create shift code suffix if applicable + const selectedTeam = selectedTeamId + ? teamLookup.get(selectedTeamId) + : undefined; const shiftCodeSuffix = getShiftCodeSuffix(isSiteDC, shiftCodePreferences); - // Selected team name with shift code - const selectedTeamFullName = selectedTeam?.teamName - ? `${selectedTeam.teamName}${shiftCodeSuffix}` - : ""; + // Handle initial load with primary team + if (isInitialLoad && primaryTeam?.length > 0) { + const primaryTeamName = primaryTeam[0]?.teamName; + if (primaryTeamName) { + return { + teamName: primaryTeamName, + teamImage: selectedTeam?.teamImage ?? getDefaultImage(isSiteDC), + }; + } + } - // Safe access of primary team - const primaryTeamName = primaryTeam?.[0]?.teamName; - if (isInitialLoad && primaryTeamName) { + // Handle selected team + if (selectedTeam?.teamName) { return { - teamName: primaryTeamName, - teamImage: selectedTeam?.teamImage ?? defaultImage, + teamName: `${selectedTeam.teamName}${shiftCodeSuffix}`, + teamImage: selectedTeam.teamImage, }; } + // Fallback to default + return getDefaultDisplayData(isSiteDC); +} + +/** + * Helper function to get default display data based on site type + */ +function getDefaultDisplayData(isSiteDC: boolean): GetDisplayDataResult { return { - teamName: selectedTeamFullName || defaultTeamName, - teamImage: selectedTeam?.teamImage ?? defaultImage, + teamName: isSiteDC + ? DEFAULT_TEAM_NAMES.DISTRIBUTION_CENTER + : DEFAULT_TEAM_NAMES.STORE, + teamImage: getDefaultImage(isSiteDC), }; } /** - * Helper function to format shift code suffix + * Helper function to get default image based on site type + */ +function getDefaultImage(isSiteDC: boolean): TeamImage { + return isSiteDC ? SupplyChainImages.Default : StoreImages.Default; +} + +/** + * Helper function to format shift code suffix for display + * + * @param isSiteDC - Whether the current site is a distribution center + * @param shiftCodes - Array of shift codes + * @returns Formatted shift code suffix string */ function getShiftCodeSuffix( isSiteDC: boolean, - shiftCodes: ShiftCode[] + shiftCodes: ShiftCode[] = [] ): string { - if (isSiteDC && shiftCodes.length > 0) { - const validShiftCodes = shiftCodes.filter( - (code): code is string => code != null - ); - return ` | ${validShiftCodes.sort().join(", ")}`; + if (!isSiteDC || !shiftCodes?.length) { + return ""; } - return ""; + + const validShiftCodes = shiftCodes + .filter((code): code is string => Boolean(code?.trim())) + .sort(); + + return validShiftCodes.length > 0 + ? ` ${SHIFT_CODE_SEPARATOR} ${validShiftCodes.join(SHIFT_CODE_DELIMITER)}` + : ""; }
feat(ui): optimizations #SMDV-7856
feat(ui): optimizations #SMDV-7856
b5c3a7a35c213d8b42907a9f63c4e39a6cce2d33
--- packages/allspark-foundation/__tests__/Feature/AllsparkFeatureManager.test.tsx @@ -0,0 +1,138 @@ +import { FeatureModuleManager } from '../../src/Feature/AllsparkFeatureManager'; +import { BuildScreenConfig } from '../../src/Feature/types'; + +describe('FeatureModuleManager', () => { + let manager: FeatureModuleManager; + const mockFeature1 = { id: 'feature1', tags: [], dependencies: [], connect: jest.fn(), disconnect: jest.fn(), buildAllScreens: jest.fn(), buildScreensByTag: jest.fn() } as unknown as AllsparkFeatureModule; + const mockFeature2 = { id: 'feature2', tags: [], dependencies: ['feature1'], connect: jest.fn(), disconnect: jest.fn(), buildAllScreens: jest.fn(), buildScreensByTag: jest.fn() } as unknown as AllsparkFeatureModule; + + beforeEach(() => { + manager = new FeatureModuleManager('test'); + }); + + test('should initialize with given id and features', () => { + const newManager = new FeatureModuleManager('test2', [mockFeature1]); + expect(newManager.has('feature1')).toBe(true); + }); + + test('should check if feature exists', () => { + manager.add([mockFeature1]); + expect(manager.has('feature1')).toBe(true); + expect(manager.has('feature2')).toBe(false); + }); + + test('should get feature by key', () => { + manager.add([mockFeature1]); + expect(manager.getFeature('feature1')).toBe(mockFeature1); + expect(manager.getFeature('feature2')).toBeUndefined(); + }); + + test('should get features by tag', () => { + mockFeature1.tags = ['tag1']; + manager.add([mockFeature1]); + expect(manager.getFeaturesByTag('tag1')).toEqual([mockFeature1]); + }); + + test('should get all features', () => { + manager.add([mockFeature1, mockFeature2]); + expect(manager.getAllFeatures()).toEqual([mockFeature1, mockFeature2]); + }); + + test('should add features', () => { + manager.add([mockFeature1]); + expect(manager.getAllFeatures()).toContain(mockFeature1); + }); + + test('should handle adding features after connection', () => { + manager.connected = true; + manager.add([mockFeature1]); + expect(mockFeature1.connect).toHaveBeenCalled(); + }); + + test('should add change listener', () => { + const listener = jest.fn(); + manager.addChangeListener(listener); + manager.add([mockFeature1]); + expect(listener).toHaveBeenCalled(); + }); + + test('should connect feature by id', () => { + manager.add([mockFeature1]); + manager.connectById('feature1'); + expect(mockFeature1.connect).toHaveBeenCalled(); + }); + + test('should connect feature by tag', () => { + mockFeature1.tags = ['tag1']; + manager.add([mockFeature1]); + manager.connectByTag('tag1'); + expect(mockFeature1.connect).toHaveBeenCalled(); + }); + + test('should connect all features', () => { + manager.add([mockFeature1, mockFeature2]); + manager.connectAll(); + expect(mockFeature1.connect).toHaveBeenCalled(); + expect(mockFeature2.connect).toHaveBeenCalled(); + }); + + test('should disconnect feature by id', () => { + manager.add([mockFeature1]); + manager.disconnectById('feature1'); + expect(mockFeature1.disconnect).toHaveBeenCalled(); + }); + + test('should disconnect feature by tag', () => { + mockFeature1.tags = ['tag1']; + manager.add([mockFeature1]); + manager.disconnectByTag('tag1'); + expect(mockFeature1.disconnect).toHaveBeenCalled(); + }); + + test('should disconnect all features', () => { + manager.add([mockFeature1, mockFeature2]); + manager.disconnectAll(); + expect(mockFeature1.disconnect).toHaveBeenCalled(); + expect(mockFeature2.disconnect).toHaveBeenCalled(); + }); + + test('should add and connect features', () => { + manager.addAndConnect([mockFeature1]); + expect(mockFeature1.connect).toHaveBeenCalled(); + }); + + test('should build screens by feature id', () => { + manager.add([mockFeature1]); + manager.buildScreensById('feature1', { Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig); + expect(mockFeature1.buildAllScreens).toHaveBeenCalled(); + }); + + test('should build screens by feature tag', () => { + mockFeature1.tags = ['tag1']; + manager.add([mockFeature1]); + manager.buildScreensByFeatureTag('tag1', { Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig); + expect(mockFeature1.buildAllScreens).toHaveBeenCalled(); + }); + + test('should build screens by screen tag', () => { + manager.add([mockFeature1]); + manager.buildScreensByScreenTag('screenTag', { Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig); + expect(mockFeature1.buildScreensByTag).toHaveBeenCalled(); + }); + + test('should build all screens', () => { + manager.add([mockFeature1]); + manager.buildAllScreens({ Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig); + expect(mockFeature1.buildAllScreens).toHaveBeenCalled(); + }); + +// test('should memoize screen building', () => { +// const screens = manager.Screens({ featureId: 'feature1', builder: { Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig }); +// expect(manager.Screens).toHaveBeenCalled(); +// }); + +// test('should memoize screen building for specific screen', () => { +// const screen = manager.Screen('feature1', 'screen1', { Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig ); +// expect(manager.Screen).toHaveBeenCalled(); +// }); +});
added unit test feature file
added unit test feature file
ef050074e1dec6cac5d5a19148ccd9e55e0e9dc8
--- package-lock.json @@ -64,7 +64,7 @@ "@walmart/pay-stub-miniapp": "0.9.31", "@walmart/payrollsolution_miniapp": "0.130.34", "@walmart/price-changes-mini-app": "1.8.7", - "@walmart/profile-feature-app": "0.196.0", + "@walmart/profile-feature-app": "0.200.0", "@walmart/push-to-talk-mini-app": "1.9.22", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", @@ -5701,9 +5701,9 @@ } }, "node_modules/@walmart/profile-feature-app": { - "version": "0.196.0", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.196.0.tgz", - "integrity": "sha512-LX+MWshRg15iP5HPzy7+NBef9uoi9ir9nMXGhKMysBiAwMKiQYjCKjsna9MI3uMeiJS5vmFIfc9PGdtjkbIc4w==", + "version": "0.200.0", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.200.0.tgz", + "integrity": "sha512-GznIRxyhZrUK0RsmkP3ftVzUcEgsIrYFdR/pQehtpByBnosUbxUgvj7hqgDt3GLcAKRbKyitkZnJfMpXu/lwJg==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/bottom-tabs": "^6.0.0", @@ -25267,9 +25267,9 @@ "integrity": "sha512-M+CKb5lcsa+whMCVUh+D50N0JSLRLyBdmWAMEZn8DI0ks9+MtWQ6XIEyiPKD9q4c8UQGm2AZ+tgiGIT7hcg+IA==" }, "@walmart/profile-feature-app": { - "version": "0.196.0", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.196.0.tgz", - "integrity": "sha512-LX+MWshRg15iP5HPzy7+NBef9uoi9ir9nMXGhKMysBiAwMKiQYjCKjsna9MI3uMeiJS5vmFIfc9PGdtjkbIc4w==" + "version": "0.200.0", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.200.0.tgz", + "integrity": "sha512-GznIRxyhZrUK0RsmkP3ftVzUcEgsIrYFdR/pQehtpByBnosUbxUgvj7hqgDt3GLcAKRbKyitkZnJfMpXu/lwJg==" }, "@walmart/push-to-talk-mini-app": { "version": "1.9.22" --- package.json @@ -106,7 +106,7 @@ "@walmart/pay-stub-miniapp": "0.9.31", "@walmart/payrollsolution_miniapp": "0.130.34", "@walmart/price-changes-mini-app": "1.8.7", - "@walmart/profile-feature-app": "0.196.0", + "@walmart/profile-feature-app": "0.200.0", "@walmart/push-to-talk-mini-app": "1.9.22", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0",
feat: bump profile-feature-app to 0.200.0
feat: bump profile-feature-app to 0.200.0
ff454059492d83c7d1df6114a0482b3f4ab800d6
--- container/metro.config.js @@ -10,7 +10,8 @@ config.watchFolders = [workspaceRoot]; config.resolver.nodeModulesPaths = [ path.resolve(projectRoot, 'node_modules'), path.resolve(workspaceRoot, 'node_modules'), - path.resolve(workspaceRoot, 'packages/associate-exp-hub/dist'), ]; +config.resolver.disableHierarchicalLookup = true; + module.exports = config;
feat(ui): update metro config
feat(ui): update metro config
bc586d4b977374782bb8e2ef802a7132b7a2b156
--- package-lock.json @@ -3281,9 +3281,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.5.1", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.5.1.tgz", - "integrity": "sha512-7BcvWr2HhHJzbeh3ZyaRObLz79yay9iJdnRvp3prPj6jthtqLp+LVw6y8XZhY/zRCriPoH2X7gwBzpTlxLr2YQ==", + "version": "0.5.2", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.5.2.tgz", + "integrity": "sha512-n8ETcFz6oNTW9ah+bGjvB+jSWQcNJFUshCGfYffCWRhIj5uVhtXd+Cvik7mV6L1F0x+yHKBY22ctFcQ+xgWIDQ==", "requires": { "@babel/preset-typescript": "^7.10.4", "apisauce": "^1.1.2", --- package.json @@ -37,7 +37,7 @@ "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": "^4.14.159", "@walmart/allspark-home-mini-app": "0.0.7", - "@walmart/ask-sam-mini-app": "^0.5.1", + "@walmart/ask-sam-mini-app": "^0.5.2", "@walmart/config-components": "^1.0.3", "@walmart/functional-components": "^1.0.21", "@walmart/gtp-shared-components": "^0.2.1",
Mini app version updates
Mini app version updates
65bacc7facc2a26c4d3f394ae8892eea8eac6e2a
--- __tests__/harness/firestore/data/index.ts @@ -1,4 +1,4 @@ // @ts-ignore -import {store100Collection} from './store100'; +import {store100Collection} from './stores'; export const store100CollectionMock = store100Collection; --- __tests__/harness/firestore/data/store1513.ts --- __tests__/harness/firestore/data/stores.ts --- __tests__/harness/firestore/data/index.ts @@ -1,4 +1,4 @@ // @ts-ignore -import {store100Collection} from './store100'; +import {store100Collection} from './stores'; export const store100CollectionMock = store100Collection; --- __tests__/harness/firestore/data/store1513.ts --- __tests__/harness/firestore/data/stores.ts
refactor stores
refactor stores
3d0ca34dcb86ecce22a5f56953b074d082887a5e
--- packages/allspark-foundation/src/Translation/client.ts @@ -27,7 +27,6 @@ export const TranslationClient = (config?: TranslationClientOptions) => { // Default global instance i18next.init(config || DefaultConfig); const _instance = i18next.cloneInstance(); - let initialized = false; let _config = config; // --- i18n Default Instance Management --- // @@ -67,11 +66,6 @@ export const TranslationClient = (config?: TranslationClientOptions) => { }); // ------------ // - /** - * Returns true if the translation client has been initialized - */ - const isInitialized = () => initialized; - /** * Initializes the translation client with the provided options. */ @@ -81,7 +75,6 @@ export const TranslationClient = (config?: TranslationClientOptions) => { _config = _instance.options as TranslationClientOptions; await _instance.init(_config || DefaultConfig); - initialized = true; if (resources) { const { defaultNS } = options; @@ -208,7 +201,6 @@ export const TranslationClient = (config?: TranslationClientOptions) => { return Object.assign(_instance, { initialize, - isInitialized, createFeatureClient, getFeatureClient, setDefaultNamespace,
fix: translation client incorrectly changed initialized boolean on i18n instance to function
fix: translation client incorrectly changed initialized boolean on i18n instance to function
3a0d4a7ff0a10612c7b01f847cebd542e18b181f
--- targets/US/package.json @@ -123,7 +123,7 @@ "@walmart/myteam-mini-app": "1.12.0", "@walmart/native-rfid-scanner": "3.10.10", "@walmart/onewalmart-miniapp": "1.0.24", - "@walmart/pay-stub-miniapp": "0.15.4", + "@walmart/pay-stub-miniapp": "0.15.5", "@walmart/payrollsolution_miniapp": "0.141.17", "@walmart/price-changes-mini-app": "1.10.18", "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch", --- yarn.lock @@ -7030,7 +7030,7 @@ __metadata: "@walmart/myteam-mini-app": "npm:1.12.0" "@walmart/native-rfid-scanner": "npm:3.10.10" "@walmart/onewalmart-miniapp": "npm:1.0.24" - "@walmart/pay-stub-miniapp": "npm:0.15.4" + "@walmart/pay-stub-miniapp": "npm:0.15.5" "@walmart/payrollsolution_miniapp": "npm:0.141.17" "@walmart/price-changes-mini-app": "npm:1.10.18" "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch" @@ -7436,13 +7436,13 @@ __metadata: languageName: node linkType: hard -"@walmart/pay-stub-miniapp@npm:0.15.4": - version: 0.15.4 - resolution: "@walmart/pay-stub-miniapp@npm:0.15.4" +"@walmart/pay-stub-miniapp@npm:0.15.5": + version: 0.15.5 + resolution: "@walmart/pay-stub-miniapp@npm:0.15.5" dependencies: crypto-js: "npm:^3.3.0" expo-sharing: "npm:~11.5.0" - checksum: 10c0/045fe867f02244c72bd4863a07e89e52195e7d8202fc573903901c2bf0c1d58c8985ae5f757ec3983f65762717cad333a1b4a8bd371db2ba66bf35e3fd5f9736 + checksum: 10c0/e511b2e73c490101c10e6368c428a0839d31df392c7f2ddeb6a13b549930b94c49b228931d0c08978de2e9f82856949e0efe65e768f7db66402e451d1fb2309d languageName: node linkType: hard
bump version
bump version
d4c85f0375179083300fcd04b00b089da80d457e
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.6", + "version": "2.0.7", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.6", + "version": "2.0.7", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
660f890ed0994a4dfcb926b2bdfdaae87f01e206
--- package-lock.json @@ -4244,14 +4244,6 @@ } } }, - "@walmart/allspark-me-mini-app": { - "version": "0.31.9", - "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.31.9.tgz", - "integrity": "sha512-6Lrgp0hnngJbckzvrkxEgOo9l91SuP9TV3u1pzY74/RAkA6iAB6KrEwaBRwIseisBEM9NSks99ffjtBnu3fObQ==", - "requires": { - "reselect": "^4.0.0" - } - }, "@walmart/allspark-neon-core": { "version": "0.1.26", "resolved": "https://npme.walmart.com/@walmart/allspark-neon-core/-/allspark-neon-core-0.1.26.tgz", @@ -4457,6 +4449,11 @@ "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.2.3.tgz", "integrity": "sha512-5VXiKOX6nl2OPte+FFWxAZbWi+aCW0o7rbzJldiMN7XewyTIxsyBMwWlUW5Y29WYa4ZaaVstjincL76EW5v2dA==" }, + "@walmart/profile-feature-app": { + "version": "0.0.19", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.19.tgz", + "integrity": "sha512-uY/mgeuZ4c3I7mGH+S6ai1U5SgVwGKUjsEKykBnaPbZFWSjDxkAQTOmE2CudGm1lGewfmasoH8uUceOvQ9It9A==" + }, "@walmart/push-to-talk-mini-app": { "version": "1.7.5", "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.7.5.tgz", --- package.json @@ -72,7 +72,6 @@ "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@walmart/allspark-health-survey-mini-app": "0.0.44", "@walmart/allspark-home-mini-app": "0.5.30", - "@walmart/allspark-me-mini-app": "0.31.9", "@walmart/allspark-neon-core": "0.1.26", "@walmart/ask-sam-mini-app": "0.41.6", "@walmart/config-components": "3.0.2", @@ -91,6 +90,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.121.0", "@walmart/price-changes-mini-app": "1.2.3", + "@walmart/profile-feature-app": "0.0.19", "@walmart/push-to-talk-mini-app": "1.7.5", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.29.0", --- src/navigation/AssociateHallwayNav/Tabs/MeStackNav.tsx @@ -1,11 +1,17 @@ import React from 'react'; import {useTranslation} from 'react-i18next'; import {createStackNavigator} from '@react-navigation/stack'; - -import {MeScreen} from '@walmart/allspark-me-mini-app'; -import {ScheduleMiniApp} from '@walmart/schedule-mini-app'; +import { + MeMiniApp, + ContactInfoNav, + JobHistoryNav, + EducationHistoryNav, + CertificationsNav, +} from '@walmart/profile-feature-app'; +// import {ScheduleMiniApp} from '@walmart/schedule-mini-app'; import {DrawerButton, Header} from '@walmart/ui-components'; -import {TimeClockTabs} from '@walmart/time-clock-mini-app'; +// import {TimeClockTabs} from '@walmart/time-clock-mini-app'; +import {PaymentSelectionMiniApp} from '@walmart/payrollsolution_miniapp'; const MeStack = createStackNavigator(); @@ -17,21 +23,33 @@ export const MeStackNav = () => { screenOptions={{headerMode: 'float', headerShown: true, header: Header}}> <MeStack.Screen name='me.root' - component={MeScreen} + component={MeMiniApp} options={{ title: t('navigation.me'), headerLeft: () => <DrawerButton />, }} /> - + <MeStack.Screen name='contactInfoScreen' component={ContactInfoNav} /> + <MeStack.Screen name='jobHistoryScreen' component={JobHistoryNav} /> + <MeStack.Screen + name='educationHistoryScreen' + component={EducationHistoryNav} + /> <MeStack.Screen + name='certificationsScreen' + component={CertificationsNav} + /> + <MeStack.Screen + name='paymentselection' + component={PaymentSelectionMiniApp} + /> + {/* <MeStack.Screen name='scheduleScreen' component={ScheduleMiniApp} options={{headerShown: false}} /> - - {/* Only accessible from TimeClockWidget (Home) and TimeClockIconWidget (Me) */} - <MeStack.Screen name='timeClockTabs' component={TimeClockTabs} /> + {/* Only accessible from TimeClockWidget (Home) and TimeClockIconWidget (Me) + <MeStack.Screen name='timeClockTabs' component={TimeClockTabs} /> */} </MeStack.Navigator> ); };
Move to profile-feature-app.
Move to profile-feature-app.
c83e2d2b7a96591e4c2fbf9aff3267eb264a01fb
--- ios/Podfile.lock @@ -582,19 +582,19 @@ PODS: - AppAuth - Starscream (3.0.6) - StructuredLogAssistantIOS (0.0.6) - - SumoSDK (2.1.0-alpha.2): + - SumoSDK (2.1.0): - Apollo (= 0.42.0) - Apollo/SQLite (= 0.42.0) - - Firebase/Messaging (= 8.4.0) + - Firebase/Messaging (~> 8.4) - StructuredLogAssistantIOS (= 0.0.6) - SwiftProtobuf (1.19.0) - TextServiceProto (0.0.12): - SwiftProtobuf - VisionCamera (1.0.10): - React-Core - - walmart-react-native-sumo-sdk (2.1.0-alpha.3): + - walmart-react-native-sumo-sdk (2.1.0): - React - - SumoSDK (= 2.1.0-alpha.2) + - SumoSDK (= 2.1.0) - wifi-store-locator (1.0.0-alpha2): - React-Core - Yoga (1.14.0) @@ -1026,11 +1026,11 @@ SPEC CHECKSUMS: SSO: dde199615662c7a7f9d62828f898441074950864 Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 StructuredLogAssistantIOS: 68c6fc083b10202a570f4a737359dcc7f81ec6e4 - SumoSDK: f8d7cf055c573e45367b993ebb0a435f8202b6df + SumoSDK: ebdf2ee2dccf6a09c913622fc4cb1c22d704ae92 SwiftProtobuf: 6ef3f0e422ef90d6605ca20b21a94f6c1324d6b3 TextServiceProto: 07782a63b28a91b30d9a008ffd925768f6da6a2d VisionCamera: 60b74823ece943da919e2eb6dde62a676c486382 - walmart-react-native-sumo-sdk: 700ee1f22c04bcf4af934c321558659d820d06ae + walmart-react-native-sumo-sdk: e9909165197e83876aac64a051a80c66205b01fd wifi-store-locator: 0f4d1e14ff9b98c559275105c655a5a6103ef427 Yoga: e7dc4e71caba6472ff48ad7d234389b91dadc280 --- package-lock.json @@ -4371,9 +4371,9 @@ "integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg==" }, "@walmart/react-native-sumo-sdk": { - "version": "2.1.0-alpha.3", - "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.1.0-alpha.3.tgz", - "integrity": "sha512-NSK68YKfA95rH9x90qwCNYORlTShIyVoJ2iysN6/OPWKiy59gK6P1yTrg6hAaysWSm/r90fWTkIuukzdSu99+A==" + "version": "2.1.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.1.0.tgz", + "integrity": "sha512-soMMFPbISucCuTfmQK2K7HPqrJxtS+5XLniaNxj9LXtNzZuf62Sp7qRRtub9LNzDNkK79UHF6uRLmbG0Oq0vqA==" }, "@walmart/redux-store": { "version": "1.1.26", --- package.json @@ -95,7 +95,7 @@ "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0", - "@walmart/react-native-sumo-sdk": "2.1.0-alpha.3", + "@walmart/react-native-sumo-sdk": "2.1.0", "@walmart/redux-store": "1.1.26", "@walmart/refrigeration-alarms-mini-app": "1.34.0", "@walmart/schedule-mini-app": "0.12.0",
sumo to 2.1.0
sumo to 2.1.0
31eff6f1b0d5626c763082571ca6a85eea32d64d
--- packages/allspark-foundation-hub/src/Shared/Components/EditTeamListItem/EditTeamListItem.tsx @@ -48,7 +48,7 @@ export const EditTeamSelectionListItem = ({ > {showTeamImage && ( <TeamImage - source={{ uri: Images[teamId]?.uri || Images.Default.uri }} + source={{ uri: Images[teamId]?.uri || Images.Default?.uri }} placeholder={Images.Default?.blurhash} style={styles.teamImage} resizeMode='contain' --- packages/allspark-foundation-hub/src/Shared/Components/PillTeamListItem/PillTeamListItem.tsx @@ -40,7 +40,7 @@ export const PillTeamListItem = ({ source={{ uri: teamImage?.uri, }} - placeholder={Images['0000000']?.blurhash} + placeholder={Images.Default?.blurhash} style={styles.teamImage} onError={(error) => { logger.error('ImageFailure', { --- packages/allspark-foundation-hub/src/Shared/Components/TeamListItem/TeamListItem.tsx @@ -61,14 +61,16 @@ export const TeamListItem = ({ uri: domain === 'store' ? StoreImages[teamId ?? teamName]?.uri || - StoreImages['0000000'].uri + StoreImages.Default?.uri : SupplyChainImages[teamId ?? teamName]?.uri || - SupplyChainImages['0000000'].uri, + SupplyChainImages.Default?.uri, }} placeholder={ domain === 'store' - ? StoreImages[teamId ?? teamName]?.blurhash - : SupplyChainImages[teamId ?? teamName]?.blurhash + ? StoreImages[teamId ?? teamName]?.blurhash || + StoreImages.Default?.blurhash + : SupplyChainImages[teamId ?? teamName]?.blurhash || + SupplyChainImages.Default?.blurhash } style={styles.teamImage} onError={(error) => { --- packages/allspark-foundation-hub/src/Shared/Images/images.tsx @@ -137,7 +137,7 @@ export const StoreImages: Record< uri: 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png', blurhash: 'KyL}88t7-oact7xv_4ofbI', }, - '0000000': { + 'Default': { teamName: 'Default', uri: 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png', blurhash: 'KXR:A^%h.AbIj?j??aM|M{', @@ -148,16 +148,11 @@ export const SupplyChainImages: Record< any, { teamName: string; uri: string; blurhash: string } > = { - '0000000': { + 'Default': { teamName: 'Default', uri: 'https://i5-me.walmartimages.com/images/supplychain/manage-your-team-e26c6daeea.png', blurhash: 'KlI~Jq.9.TEfNbOZx]oGoI', }, - 'Default': { - teamName: 'Default', - uri: 'https://i5-me.walmartimages.com/images/teams/stocking-mgr-exp-95bbbe539a.png', - blurhash: 'KcSYpupIpKogofae*0VsVr', - }, 'Saved': { teamName: 'All saved teams', uri: 'https://i5-me.walmartimages.com/images/teams/my-teams-mgr-exp-1edac1ba4a.png', --- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx @@ -274,7 +274,7 @@ export const TeamSwitcher = ({ source={{ uri: Images[item.teamId ?? item.teamLabel]?.uri || - Images['0000000'].uri, + Images.Default?.uri, }} placeholder={Images[item.teamId ?? item.teamLabel]?.blurhash} testID={`team-image-${item.teamLabel}`}
Update default images
Update default images
12e04a449358f9132b5d8a2d1f86a3cb25aa399b
--- src/auth/styles.ts @@ -210,6 +210,7 @@ export default StyleSheet.create({ marginTop: 10, fontFamily: 'Bogle', paddingHorizontal: 16, + color: colors.black, }, errorBottom: { bottom: 0,
color black added
color black added
85a97a93ded9dbfe41fa2d7e89eaf4a1eeb37fa5
--- src/managerExperience/screens/AllTeamsScreen/AllTeamsScreen.tsx @@ -20,7 +20,7 @@ import { TOTAL_STORE_TEAM_LABEL, } from '@walmart/allspark-foundation-hub/HubFeature/constant'; import {useSelector} from 'react-redux'; -import {SiteSelectors} from '@walmart/allspark-foundation'; +import {SiteSelectors} from '@walmart/allspark-foundation/Site'; export const AllTeamsScreen = () => { const {t} = translationClient.useTranslation();
feat: Roster | Update Page Header Text - [SMDV-6515]
feat: Roster | Update Page Header Text - [SMDV-6515]
e69886608db52377d10d4237795868ead3a2b7dc
--- package-lock.json @@ -5176,9 +5176,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.7.18", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.7.18.tgz", - "integrity": "sha512-HGD13wYDApYvJQfmXGOyd2TJVKVnA/Y0FfjkH3tJqkkX+t2X91vwrBKcRA/vz95l5xBBhXHtajcbaAspwzZBwA==", + "version": "1.7.26", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.7.26.tgz", + "integrity": "sha512-uFAduRGlqv9ReRmj+ZIQU5adckeDVtufPuYHymiRjkJvZwsnJJerfJgWbNVxuIIWMzzFBpnDafPTi6LBZ23Vnw==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", --- package.json @@ -82,7 +82,7 @@ "@walmart/ask-sam-mini-app": "1.1.4", "@walmart/config-components": "3.0.2", "@walmart/core-services": "~1.2.11", - "@walmart/core-services-allspark": "~1.7.18", + "@walmart/core-services-allspark": "~1.7.26", "@walmart/core-utils": "~1.0.10", "@walmart/core-widget-registry": "0.3.2", "@walmart/counts-component-miniapp": "0.0.39",
bumping core services for user fix
bumping core services for user fix
e23f7a00ef4b34ebd418aeaf8b0f6c3db7bf882f
--- packages/allspark-foundation/__tests__/cli/linkUtils.test.ts @@ -1,105 +0,0 @@ -import fs from 'fs'; -import fsPromises from 'fs/promises'; -import { linkReactNativeConfig, linkIos, linkPackage } from '../../src/cli/linkUtils'; - -jest.mock('fs'); -jest.mock('fs/promises'); - -describe('Configuration linking functions', () => { - const mockPodfile = ` - # Pods for Project - pod 'SomePod' - post_install do |installer| - installer.pods_project.targets.each do |target| - # some pod-specific logic - end - end - `; - const mockSources = ['https://github.com/CocoaPods/Specs.git']; - const mockPackageJson = { - dependencies: { - 'react-native': '^0.64.0', - }, - devDependencies: { - jest: '^27.0.0', - }, - }; - const mockReactNativeConfig = { - dependencies: { - 'react-native-config': '1.0.0', - }, - }; - - const processPath = process.cwd(); - const basePackagePath = `${processPath}/package.json`; - const baseConfigPath = `${processPath}/react-native.config.js`; - beforeEach(() => { - jest.clearAllMocks(); - (fs.existsSync as jest.Mock).mockReturnValue(true); - jest.mock(basePackagePath, () => mockPackageJson, { virtual: true }); - jest.mock(baseConfigPath, () => mockReactNativeConfig, { virtual: true }); - }); - - it('should link React Native config and write to react-native.config.js', async () => { - const writeConfigSpy = jest.spyOn(fsPromises, 'writeFile'); - const inputConfig = { dependencies: { 'new-package': '1.0.0' } }; - - await linkReactNativeConfig(inputConfig); - - expect(writeConfigSpy).toHaveBeenCalledWith( - expect.stringContaining('react-native.config.js'), - expect.any(String) - ); - }); - - it('should merge Pods, sources, and permissions into Podfile', async () => { - (fs.readFileSync as jest.Mock).mockReturnValue(mockPodfile); - const writeFileSpy = jest.spyOn(fsPromises, 'writeFile'); - - await linkIos({ - pods: ['NewPod'], - sources: mockSources, - permissions: ['CAMERA'], - }); - - expect(writeFileSpy).toHaveBeenCalledWith( - expect.stringContaining('/ios/Podfile'), - expect.any(String), - expect.any(Object) - ); - }); - - it('should merge package.json correctly', async () => { - const writeFileSpy = jest.spyOn(fsPromises, 'writeFile'); - const packageConfig = { dependencies: { 'new-package': '1.0.0' } }; - - await linkPackage(packageConfig); - - expect(writeFileSpy).toHaveBeenCalledWith( - expect.stringContaining('package.json'), - expect.stringContaining('"new-package": "1.0.0"') - ); - }); - it('should merge permissions and update the Podfile when permissions already exist', async () => { - const mockBasePodfile = ` - target 'Project' do - prepare_react_native_project! - setup_permissions([ - 'NSCameraUsageDescription', - 'NSLocationWhenInUseUsageDescription', - ]) - end - `; - fs.readFileSync.mockReturnValue(mockBasePodfile); - const mockWriteFile = jest.spyOn(fsPromises, 'writeFile').mockResolvedValue(undefined); - const iosConfig = { - pods: [], - sources: [], - permissions: ['NSPhotoLibraryUsageDescription', 'NSCameraUsageDescription'], // Contains duplicate - }; - await linkIos(iosConfig); - const podfileCall = mockWriteFile.mock.calls.find(call => call[0].includes('Podfile')); - expect(podfileCall[0]).toEqual(`${process.cwd()}/ios/Podfile`); // The expected file path - expect(podfileCall[2]).toEqual({ encoding: 'utf-8' }); // The correct encoding - }); -});
remove link utils test
remove link utils test
d49fc5f72e4b750ae1f6c81df3229a1a4d8a2bb5
--- package.json @@ -90,7 +90,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.33.40", "@walmart/associate-listening-mini-app": "1.2.39", - "@walmart/attendance-mini-app": "3.174.3", + "@walmart/attendance-mini-app": "3.174.5", "@walmart/avp-feature-app": "0.25.32", "@walmart/avp-shared-library": "0.25.28", "@walmart/backroom-mini-app": "1.15.10", --- yarn.lock @@ -7757,9 +7757,9 @@ __metadata: languageName: node linkType: hard -"@walmart/attendance-mini-app@npm:3.174.3": - version: 3.174.3 - resolution: "@walmart/attendance-mini-app@npm:3.174.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.174.3.tgz" +"@walmart/attendance-mini-app@npm:3.174.5": + version: 3.174.5 + resolution: "@walmart/attendance-mini-app@npm:3.174.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.174.5.tgz" peerDependencies: "@react-native-community/datetimepicker": ">=5.1.0" "@react-navigation/native": ">=6.0.8" @@ -7789,7 +7789,7 @@ __metadata: redux-saga: ">=1.2.3" reselect: ">=4.1.0" wfm-allspark-data-library: ">=3.3.0" - checksum: 10c0/9f92bcfcbe0a3091f9bf65ad0d61d3dcf2a97438f06956f5f15210538c5ff26562ace21b556e6c282aafac68b7e2b7fddad498a84d9f2f0f837fe45f0af705a1 + checksum: 10c0/9398ae272b330e097c48366d72bdc0710ee33bc8a65825b9179568532ade2214ce97897230e1523ae1b578c2a5f111369b96efab3c1b3eb5ca131eb61d1e0475 languageName: node linkType: hard @@ -8683,7 +8683,7 @@ __metadata: "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.33.40" "@walmart/associate-listening-mini-app": "npm:1.2.39" - "@walmart/attendance-mini-app": "npm:3.174.3" + "@walmart/attendance-mini-app": "npm:3.174.5" "@walmart/avp-feature-app": "npm:0.25.32" "@walmart/avp-shared-library": "npm:0.25.28" "@walmart/backroom-mini-app": "npm:1.15.10"
fix(ama): GTA-164117 Shift swap issue fix ama for develop (#4742)
fix(ama): GTA-164117 Shift swap issue fix ama for develop (#4742) * fix(ama): GTA-164117 Shift swap issue fix ama * fix(ui): GTA-164117 shift swap issue fix attendance mini app --------- Co-authored-by: a0s08du <abinash.sahoo@walmart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> Co-authored-by: shivam <SHIVAM.AGARWAL@walmart.com>
17940e8d67c576b6d62d62fd429e8c9aaee2bc93
--- packages/allspark-foundation/cli/link.js --- packages/allspark-foundation/cli/mergeConfig.js
chore: bootstrap update
chore: bootstrap update
8480014c33c3f8d7ab811a627d2d1f6b2c8515b1
--- patches/@walmart+avp-shared-library+0.0.50.patch @@ -0,0 +1,40 @@ +diff --git a/node_modules/@walmart/avp-shared-library/dist/redux/TotalPayBenefits/sagas/index.js b/node_modules/@walmart/avp-shared-library/dist/redux/TotalPayBenefits/sagas/index.js +index e40f777..d947318 100644 +--- a/node_modules/@walmart/avp-shared-library/dist/redux/TotalPayBenefits/sagas/index.js ++++ b/node_modules/@walmart/avp-shared-library/dist/redux/TotalPayBenefits/sagas/index.js +@@ -342,27 +342,27 @@ export function* handleSuccess(associateFwbInfo, is401kSuccess, isAsppSuccess, i + } + export function* handleSuccessRetry(associateFwbInfo, is401kError, isAsppError, isBonusEligibilityError, isHealthBenefitsError) { + const details = {}; +- if (!is401kError) { ++ if (is401kError) { + details["_401kFetchStatus"] = Status.succeeded; + details["_401k"] = associateFwbInfo.associate401kDetails; + } +- if (!isAsppError) { ++ if (isAsppError) { + details["asppFetchStatus"] = Status.succeeded; + details["aspp"] = associateFwbInfo.associateAsppDetails; + } +- if (!isBonusEligibilityError) { ++ if (isBonusEligibilityError) { + details["fetchBonusEligibilityStatus"] = Status.succeeded; + details["bonusEligibility"] = + associateFwbInfo.associateBonusEligibilityDetails; + } +- if (!isHealthBenefitsError) { ++ if (isHealthBenefitsError) { + details["healthBenefitsFetchStatus"] = Status.succeeded; + details["healthBenefits"] = associateFwbInfo.associateHealthBenefitsDetails; + } +- if (!is401kError && +- !isAsppError && +- !isBonusEligibilityError && +- !isHealthBenefitsError) { ++ if (is401kError && ++ isAsppError && ++ isBonusEligibilityError && ++ isHealthBenefitsError) { + details["fetchBenefitsCountStatus"] = Status.succeeded; + } + yield put({
updated the shared library patch
updated the shared library patch
1e758bd126248524b903841b28ba8ef494a0bd7c
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.45.0", + "version": "1.46.0", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.51.0", + "@walmart/roster-mini-app": "2.52.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.51.0" + "@walmart/roster-mini-app": "npm:2.52.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.51.0": - version: 2.51.0 - resolution: "@walmart/roster-mini-app@npm:2.51.0" +"@walmart/roster-mini-app@npm:2.52.0": + version: 2.52.0 + resolution: "@walmart/roster-mini-app@npm:2.52.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/a9d6c92c151286e66302e4d70de40c032cf4d319f751c7c17eeb04c8cea6b3480031a98a1dd309e3ed4d9c39c481ddac537968e0add3c0d308fef72204ee56d4 + checksum: 10c0/41252a568e87400af946291cafed3980e26a72ad7b3f50207e1aa0e1b8ebb4c533b8d319bd8718e3d383b9142df199d7497ba434ce17b4f88bbcec0e884c90d2 languageName: node linkType: hard
Update the my team
Update the my team