commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
5b6fded8341cc29b3862bb5eec75a7c885de63ee | --- packages/allspark-foundation/src/Feature/types.ts
@@ -223,7 +223,6 @@ export type TargetFeatureConfig = {
export type BuildScreenConfig = {
Navigator: AnyNavigator;
routeConfig?: any;
- decorator?: (screen: React.JSX.Element) => React.JSX.Element;
};
export type FeatureEventListeners = {
| chore: remove unused decorator option from screen config | chore: remove unused decorator option from screen config
|
dab501d9f271d8d7b7baba3302cb36bf4fc7e07d | --- package-lock.json
@@ -3138,9 +3138,9 @@
"integrity": "sha512-Nw48GsUKz2HkFr1qjavFld2pryaG9Jzn/QPT9C/xk7UgxTs4UeCmSJEZ99oLeSIV3TA9rgAH8dThkqzwmjP6ew=="
},
"@walmart/iteminfo-mini-app": {
- "version": "1.0.3",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-1.0.3.tgz",
- "integrity": "sha512-0IXSXKeHx17FbwUrHby8Au/bWTi/C5jo/3VJabj6m0+X2Yc1SMRIcAa7V7YGF9STsiyoGpFN3mh5Ghf6QNjU6g==",
+ "version": "1.0.4",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-1.0.4.tgz",
+ "integrity": "sha512-TnTUOhIpQ9nQFQGWjxrNkZjKrBMydXmwNPDbxUdGmoDhhazqduoEEshs1G9VEz0RyMcKSMpHnHrKtOWAPVq4qg==",
"requires": {
"react-native-chart-kit": "6.6.1"
}
--- package.json
@@ -76,7 +76,7 @@
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/ims-print-services-ui": "0.0.18",
"@walmart/inbox-mini-app": "0.0.94",
- "@walmart/iteminfo-mini-app": "1.0.3",
+ "@walmart/iteminfo-mini-app": "^1.0.4",
"@walmart/manager-approvals-miniapp": "0.0.25",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.5.21",
| item info update | item info update
|
bfac93110fc4b4e180760ab3e0ad4cb2be2bafba | --- packages/me-at-walmart-container/src/http/index.ts
@@ -18,5 +18,8 @@ export const MeAtWalmartHttpInterceptors: Interceptor[] = [
];
export const MeAtWalmartHttpConfig = {
+ headers: {
+ ping_token_idp: 'yes',
+ },
interceptors: MeAtWalmartHttpInterceptors,
};
| chore: add ping token header to me at http defaults | chore: add ping token header to me at http defaults
|
3644ed60ca76b080e3d7aa60bfcbf70c8931db3f | --- package-lock.json
@@ -47,7 +47,7 @@
"@walmart/emergency-mini-app": "1.15.0",
"@walmart/exception-mini-app": "1.0.14",
"@walmart/facilities-management-miniapp": "0.4.2",
- "@walmart/feedback-all-spark-miniapp": "0.9.7",
+ "@walmart/feedback-all-spark-miniapp": "0.9.9",
"@walmart/financial-wellbeing-feature-app": "1.0.64",
"@walmart/functional-components": "2.0.6",
"@walmart/gta-react-native-calendars": "0.0.15",
@@ -5175,9 +5175,9 @@
}
},
"node_modules/@walmart/feedback-all-spark-miniapp": {
- "version": "0.9.7",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.7.tgz",
- "integrity": "sha512-BAL6FN9sf7IvMFn4cuJTM90SjpUu34YI/ZQ3WXLkG7ByFAnBPL8nptHsqP5/woWgmy+kk00VmOCS6oDRmM+btQ==",
+ "version": "0.9.9",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.9.tgz",
+ "integrity": "sha512-zflnSCCc2yaDFeasMBtEuH74oGEZg1E2auhNUZ05C6zzO9yZ+oHun9+0jhnt+ag6zqZDCG1/AbgUJjfzAgY2dA==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/async-storage": "^1.12.1",
@@ -5185,7 +5185,7 @@
"@react-native-picker/picker": "2.4.2",
"@react-navigation/native": "^6.0.0",
"@react-navigation/stack": "^6.1.0",
- "@walmart/gtp-shared-components": "1.8.17",
+ "@walmart/gtp-shared-components": "^2.0.0-rc.1",
"@walmart/react-native-logger": "^1.17.0",
"@walmart/react-native-shared-navigation": "^0.2.0",
"@walmart/redux-store": "^1.0.12",
--- src/translations/es-MX.ts
@@ -116,7 +116,7 @@ export const esMX = {
'Te notificaremos acerca de actualizaciones de horarios, solicitudes de tiempo libre, comunicaciones del equipo y otras alertas importantes.',
notificationsTitle: 'Obtén actualizaciones',
welcomeMessage:
- 'Gracias por descargar la aplicación, ¡te va a encantar! Hay que configurar un par de cosas para que la aplicación sea la adecuada para usted.',
+ 'Gracias por descargar la aplicación, ¡te va a encantar! Hay que configurar un par de cosas para que la aplicación sea la adecuada para ti.',
welcomeTitle: 'Bienvenido a Me@Walmart',
},
pinAccess: {
@@ -211,7 +211,7 @@ export const esMX = {
associateTitle: 'Hola Asociados!',
candidateAction: 'Iniciar sesión',
candidateLabel: 'Candidatos',
- candidateTitle: '¿Aceptaste una oferta? Prepárate para empezar!',
+ candidateTitle: '¿Aceptaste una oferta? ¡Prepárate para empezar!',
errorRegisteredText:
'Gracias por reportar el problema. Si el problema persiste, verifica que estés usando la versión más reciente de Me@Walmart.',
gotIt: 'Entendido',
@@ -219,7 +219,7 @@ export const esMX = {
guestButtonSubtitle: 'Explora trabajos y conoce más sobre Walmart',
guestButtonTitle: '¡Bienvenidos, visitantes!',
guestLabel: 'Invitados',
- guestTitle: 'Explore trabajos y aprenda sobre Walmart',
+ guestTitle: 'Explora trabajos y aprende sobre Walmart',
signInButtonText: 'Iniciar Sesión',
},
whatsNew: {
| Spanish translation edits | Spanish translation edits
|
f49378789ccb27b4353fc2440c40bc78caa862ef | --- __tests__/communications/__snapshots__/oneToOneChatTest.tsx.snap
@@ -1,5 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
+exports[`One to One Chat building up to testing messages screen 1`] = `
+<Text>
+ Hello World
+</Text>
+`;
+
exports[`One to One Chat can send a text message 1`] = `
<Text>
Hello World
--- __tests__/communications/oneToOneChatTest.tsx
@@ -5,6 +5,7 @@ import {MessagesScreen} from '../../src/screens/MessagesScreen';
import {RouteProp, useNavigation} from '@react-navigation/native';
import {TextingNavParamsMap} from '../../src/navigation';
import {
+ ChannelsProvider,
createAssociateChannelId,
createChannelPath,
IChannelsContext,
@@ -113,7 +114,13 @@ describe('One to One Chat', () => {
});
it('building up to testing messages screen', () => {
+ const testComponentWithChannelsProvider = renderWithProviders(
+ <ChannelsProvider>
+ <TestFirestoreComponent />
+ </ChannelsProvider>,
+ );
+ expect(testComponentWithChannelsProvider.toJSON()).toMatchSnapshot();
});
it('temporary test component', () => {
--- __tests__/communications/__snapshots__/oneToOneChatTest.tsx.snap
@@ -1,5 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
+exports[`One to One Chat building up to testing messages screen 1`] = `
+<Text>
+ Hello World
+</Text>
+`;
+
exports[`One to One Chat can send a text message 1`] = `
<Text>
Hello World
--- __tests__/communications/oneToOneChatTest.tsx
@@ -5,6 +5,7 @@ import {MessagesScreen} from '../../src/screens/MessagesScreen';
import {RouteProp, useNavigation} from '@react-navigation/native';
import {TextingNavParamsMap} from '../../src/navigation';
import {
+ ChannelsProvider,
createAssociateChannelId,
createChannelPath,
IChannelsContext,
@@ -113,7 +114,13 @@ describe('One to One Chat', () => {
});
it('building up to testing messages screen', () => {
+ const testComponentWithChannelsProvider = renderWithProviders(
+ <ChannelsProvider>
+ <TestFirestoreComponent />
+ </ChannelsProvider>,
+ );
+ expect(testComponentWithChannelsProvider.toJSON()).toMatchSnapshot();
});
it('temporary test component', () => {
| testing channels provider | testing channels provider
|
b54c9f14103edcf99cc5daac14fda26e22be6be2 | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.2.7-alpha.8",
+ "version": "1.2.7-alpha.9",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/allspark-foundation-hub/src/Shared/Hooks/useUserCanSeeHub.ts
@@ -1,13 +1,24 @@
import { UserSelectors } from '@walmart/allspark-foundation/User';
import { useSelector } from 'react-redux';
-import { HOME_OFFICE_DOMAIN } from '..';
+import { EMP_TYPE_SALARIED, HOME_OFFICE_DOMAIN } from '../Common';
export const useUserCanSeeHub = () => {
const isPeopleLead: boolean = useSelector(UserSelectors.getIsUserPeopleLead);
const isTeamLead: boolean = useSelector(UserSelectors.getIsUserTeamLead);
const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried);
+ const employeeType: string | undefined = useSelector(
+ UserSelectors.getEmployeeType
+ );
+ const isUserSalariedEmployee: boolean =
+ employeeType?.toUpperCase() === EMP_TYPE_SALARIED;
const userDomain: string | undefined = useSelector(UserSelectors.getDomain);
const isHomeOffice: boolean =
userDomain?.toLowerCase() === HOME_OFFICE_DOMAIN;
- return isTeamLead || isSalaried || isPeopleLead || isHomeOffice;
+ return (
+ isTeamLead ||
+ isSalaried ||
+ isUserSalariedEmployee ||
+ isPeopleLead ||
+ isHomeOffice
+ );
};
--- packages/allspark-foundation-hub/src/Store/Modules/Onboarding/TeamOnboarding/OnboardingContext.tsx
@@ -15,6 +15,7 @@ import { UserSelectors } from '@walmart/allspark-foundation/User';
import { useDispatch, useSelector } from 'react-redux';
import { ManagerExperienceCreators } from '../../../Redux';
import { useUserPersonaType } from '../../../../Shared/Hooks/useUserPersonaType';
+import { EMP_TYPE_SALARIED } from '../../../../Shared';
export const OnboardingContext = createContext<any>({});
@@ -26,7 +27,13 @@ export const OnboardingProvider = ({ children }: any) => {
const isPeopleLead: boolean = useSelector(UserSelectors.getIsUserPeopleLead);
const isTeamLead: boolean = useSelector(UserSelectors.getIsUserTeamLead);
const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried);
- const eligibleForOnboarding = isTeamLead || isSalaried || isPeopleLead;
+ const employeeType: string | undefined = useSelector(
+ UserSelectors.getEmployeeType
+ );
+ const isUserSalariedEmployee: boolean =
+ employeeType?.toUpperCase() === EMP_TYPE_SALARIED;
+ const eligibleForOnboarding =
+ isTeamLead || isSalaried || isUserSalariedEmployee || isPeopleLead;
const { data } = useUserPreferences();
const showOnboardingFlow = useCallback(() => setShowOnboarding(true), []);
--- packages/allspark-foundation-hub/src/SupplyChain/Screens/OnboardingScreen/OnboardingContext.tsx
@@ -13,6 +13,7 @@ import {
import { UserSelectors } from '@walmart/allspark-foundation/User';
import { useSelector } from 'react-redux';
import { useGetSupplyChainTeamsPreferenceQuery } from '../../Hooks';
+import { EMP_TYPE_SALARIED } from '../../../Shared';
export const SupplyChainOnboardingContext = createContext<any>({});
@@ -25,7 +26,13 @@ export const SupplyChainOnboardingProvider = ({ children }: any) => {
const isPeopleLead: boolean = useSelector(UserSelectors.getIsUserPeopleLead);
const isTeamLead: boolean = useSelector(UserSelectors.getIsUserTeamLead);
const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried);
- const eligibleForOnboarding = isTeamLead || isSalaried || isPeopleLead;
+ const employeeType: string | undefined = useSelector(
+ UserSelectors.getEmployeeType
+ );
+ const isUserSalariedEmployee: boolean =
+ employeeType?.toUpperCase() === EMP_TYPE_SALARIED;
+ const eligibleForOnboarding =
+ isTeamLead || isSalaried || isUserSalariedEmployee || isPeopleLead;
const {
teamPreferenceData,
| Update foundation hub for employee type | Update foundation hub for employee type
|
cc5962edeea1e5316d55f75c4657f740d722f56c | --- src/navigation/types.ts
@@ -2,8 +2,8 @@ import {FirebaseFirestoreTypes} from '@react-native-firebase/firestore';
import {FirebaseChannel, NewChannelDetails} from '../channels';
export type TextingNavParamsMap = {
- 'texting.tabs': undefined;
- 'texting.messages': {
+ 'myTeam.tabs': undefined;
+ 'myTeam.messages': {
channelPath: FirebaseFirestoreTypes.DocumentReference<
FirebaseChannel
>['path'];
--- src/navigation/types.ts
@@ -2,8 +2,8 @@ import {FirebaseFirestoreTypes} from '@react-native-firebase/firestore';
import {FirebaseChannel, NewChannelDetails} from '../channels';
export type TextingNavParamsMap = {
- 'texting.tabs': undefined;
- 'texting.messages': {
+ 'myTeam.tabs': undefined;
+ 'myTeam.messages': {
channelPath: FirebaseFirestoreTypes.DocumentReference<
FirebaseChannel
>['path'];
| matching mini app with core app | matching mini app with core app
|
4b796472c4b3857346b9df83aab7939fd19892ee | --- src/components/TeamList.tsx
@@ -301,7 +301,6 @@ export const TeamChatCard = (props: {
return allTeams
.filter((team) => team.teamId !== primaryTeam)
.sort(sortByTeamName);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [primaryTeam, data?.getTeamsByStore]);
const [expanded, setExpanded] = useState(false);
--- src/components/TeamList.tsx
@@ -301,7 +301,6 @@ export const TeamChatCard = (props: {
return allTeams
.filter((team) => team.teamId !== primaryTeam)
.sort(sortByTeamName);
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [primaryTeam, data?.getTeamsByStore]);
const [expanded, setExpanded] = useState(false);
| Removed comments | Removed comments
|
69e1d1509f88e914abb8b2c9c783574259bca668 | --- package-lock.json
@@ -60,7 +60,7 @@
"@walmart/impersonation-mini-app": "1.20.2",
"@walmart/ims-print-services-ui": "2.5.1",
"@walmart/inbox-mini-app": "0.86.1",
- "@walmart/iteminfo-mini-app": "7.4.0",
+ "@walmart/iteminfo-mini-app": "7.5.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
"@walmart/metrics-mini-app": "0.13.11",
@@ -7449,9 +7449,9 @@
}
},
"node_modules/@walmart/iteminfo-mini-app": {
- "version": "7.4.0",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.4.0.tgz",
- "integrity": "sha512-xUJUr5NHMhMdLjg8DMp4yUHoUSl4sNLQfCmrSd8EeJ6BfV2gVFBBGPjaEG4g8R1SicjgwrlmA5geNAWF/UwAYg==",
+ "version": "7.5.0",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.0.tgz",
+ "integrity": "sha512-FW9IcezcRA7X4KQPvfb3zml8lC4PZ+VL3ELujp9iIlPdO8QyrfzmKiKrFj7hmRsQ1dTBmcjYmlIsXoNCKvCZbg==",
"peerDependencies": {
"@react-native-community/netinfo": ">=9.3.6",
"@react-native-firebase/analytics": ">=15.1.1",
@@ -30553,9 +30553,9 @@
}
},
"@walmart/iteminfo-mini-app": {
- "version": "7.4.0",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.4.0.tgz",
- "integrity": "sha512-xUJUr5NHMhMdLjg8DMp4yUHoUSl4sNLQfCmrSd8EeJ6BfV2gVFBBGPjaEG4g8R1SicjgwrlmA5geNAWF/UwAYg=="
+ "version": "7.5.0",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.5.0.tgz",
+ "integrity": "sha512-FW9IcezcRA7X4KQPvfb3zml8lC4PZ+VL3ELujp9iIlPdO8QyrfzmKiKrFj7hmRsQ1dTBmcjYmlIsXoNCKvCZbg=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.2.4"
--- package.json
@@ -101,7 +101,7 @@
"@walmart/impersonation-mini-app": "1.20.2",
"@walmart/ims-print-services-ui": "2.5.1",
"@walmart/inbox-mini-app": "0.86.1",
- "@walmart/iteminfo-mini-app": "7.4.0",
+ "@walmart/iteminfo-mini-app": "7.5.0",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "13.0.3",
"@walmart/metrics-mini-app": "0.13.11",
| iteminfo version update - activate/inactivate | iteminfo version update - activate/inactivate
|
2a11ab7872feef95bbe32db0f5cd2a735480cac0 | --- src/hooks/teams.ts
@@ -26,6 +26,7 @@ export const useGetTeamById = (teamId: string) => {
countryCode: countryCode!,
},
skip: !storeNbr || !countryCode || !teamId,
+ notifyOnNetworkStatusChange: true,
context: getGraphQLConfig(envConfig),
onError(error) {
logger.error('useGetTeamByIdQuery error', {
@@ -57,6 +58,7 @@ export const useGetTeamsByStore = () => {
countryCode: countryCode!,
},
skip: !storeNbr || !countryCode,
+ notifyOnNetworkStatusChange: true,
context: getGraphQLConfig(envConfig),
onError(error) {
logger.error('useGetTeamsByStoreQuery error', {
--- src/managerExperience/components/RosterWidget/RosterWidget.tsx
@@ -0,0 +1,148 @@
+import {useTranslation} from 'react-i18next';
+import {ROSTER_I18N_NAMESPACE} from '../../../translations';
+import React, {useCallback, useEffect, useMemo, useState} from 'react';
+import {HubWidget} from '@walmart/allspark-foundation-hub/HubFeature';
+import {View} from 'react-native';
+import {Body} from '@walmart/gtp-shared-components';
+import {WidgetDataProps} from './types';
+import {
+ associateIsAbsent,
+ associateIsClockedIn,
+ associateIsTardy,
+} from '../../../utils';
+import {useDailyRoster} from '../../../hooks/roster';
+import {Associate, Team} from '../../../types';
+import {useGetTeamsByStore} from '../../../hooks';
+import {logger} from '../../../common/logger';
+import {VerticalDivider} from './VerticalDivider';
+
+export const RosterWidget = (props: WidgetDataProps) => {
+ const {t} = useTranslation([ROSTER_I18N_NAMESPACE]);
+ const {selectedTeamIds, selectedTeamPreference, refresh} = props;
+ const [widgetRefresh, setWidgetRefresh] = useState(false);
+ const [state, setState] = useState<{
+ scheduledCount: number;
+ clockedInCount: number;
+ tardyCount: number;
+ absentCount: number;
+ }>({
+ scheduledCount: 0,
+ clockedInCount: 0,
+ tardyCount: 0,
+ absentCount: 0,
+ });
+ const {data: rosterData, refetch: refetchRoster} = useDailyRoster();
+ const rosterDataList = useMemo(() => {
+ const associateList = (rosterData?.getDailyRoster || []) as Associate[];
+ return associateList;
+ }, [rosterData?.getDailyRoster]);
+
+ const {data: teamDataForStore, refetch: refetchTeamData} =
+ useGetTeamsByStore();
+
+ const teamRosterData = useMemo(() => {
+ const teamsList = (teamDataForStore?.getTeamsByStore || []) as Team[];
+ return teamsList;
+ }, [teamDataForStore?.getTeamsByStore]);
+
+ const configureRosterInfo = () => {
+ if (selectedTeamPreference === 'total') {
+ const clockedInCount =
+ rosterDataList?.filter(associateIsClockedIn)?.length ?? 0;
+ const absentCount =
+ rosterDataList?.filter(associateIsAbsent)?.length ?? 0;
+ const tardyCount = rosterDataList?.filter(associateIsTardy)?.length ?? 0;
+ setState({
+ scheduledCount: rosterDataList.length,
+ clockedInCount: clockedInCount,
+ tardyCount: tardyCount,
+ absentCount: absentCount,
+ });
+ } else {
+ let clockedInCount = 0;
+ let absentCount = 0;
+ let tardyCount = 0;
+ teamRosterData?.forEach((teamData) => {
+ if (selectedTeamIds?.includes(teamData?.teamId as string)) {
+ clockedInCount =
+ clockedInCount + (teamData?.mewClockedInCount as number);
+ absentCount = absentCount + (teamData?.mewClockedInCount as number);
+ tardyCount = tardyCount + (teamData?.mewClockedInCount as number);
+ }
+ });
+ setState({
+ scheduledCount: teamRosterData.length,
+ clockedInCount: clockedInCount,
+ tardyCount: tardyCount,
+ absentCount: absentCount,
+ });
+ }
+ };
+
+ const onRefresh = useCallback(async () => {
+ logger.info('on_refresh_event', {
+ message: 'On refresh event event triggered',
+ });
+ setWidgetRefresh(true);
+ await refetchRoster().catch((err: any) => {
+ logger.error('Error in dailyRoster refresh ', {
+ message: err.toString(),
+ });
+ });
+ await refetchTeamData().catch((err: any) => {
+ logger.error('Error in team data refresh ', {
+ message: err.toString(),
+ });
+ });
+ setTimeout(() => {
+ setWidgetRefresh(false);
+ }, 3000);
+ }, [widgetRefresh]);
+ useEffect(() => {
+ configureRosterInfo();
+ }, [selectedTeamIds]);
+
+ useEffect(() => {
+ onRefresh();
+ }, [refresh]);
+
+ const rosterWidgetContent = [
+ {
+ value: state.clockedInCount,
+ subText: t('hubWidget.roster.clockedIn'),
+ },
+ {
+ value: state.tardyCount,
+ subText: t('hubWidget.roster.tardy'),
+ },
+ {
+ value: state.absentCount,
+ subText: t('hubWidget.roster.absent'),
+ },
+ ];
+
+ return (
+ <HubWidget
+ variant='content-only'
+ iconName='AssociateIcon'
+ moduleTitle={t('hubWidget.roster.title')}
+ content={
+ <View>
+ <Body>
+ {state.scheduledCount} {t('hubWidget.roster.title')}
+ </Body>
+ {rosterWidgetContent.map((rosterWidgetObj) => (
+ <View>
+ <Body>{rosterWidgetObj.value}</Body>
+ <Body>{rosterWidgetObj.subText}</Body>
+ <VerticalDivider />
+ </View>
+ ))}
+ <View />
+ </View>
+ }
+ routeName='myTeam.rosterDetail'
+ refresh={widgetRefresh}
+ />
+ );
+};
--- src/managerExperience/components/RosterWidget/VerticalDivider.tsx
@@ -0,0 +1,7 @@
+import React from 'react';
+import {View} from 'react-native';
+import {styles} from './styles';
+
+export const VerticalDivider = () => {
+ return <View style={styles.divider} testID='vertical-divider' />;
+};
--- src/managerExperience/components/RosterWidget/index.ts
@@ -0,0 +1 @@
+export {RosterWidget} from './RosterWidget';
\ No newline at end of file
--- src/managerExperience/components/RosterWidget/styles.ts
@@ -0,0 +1,12 @@
+import {colors} from '@walmart/gtp-shared-components';
+import {StyleSheet} from 'react-native';
+
+export const styles = StyleSheet.create({
+ divider: {
+ height: 48,
+ width: 1,
+ backgroundColor: colors.gray['20'],
+ alignSelf: 'center',
+ marginBottom: 24,
+ },
+});
--- src/managerExperience/components/RosterWidget/types.ts
@@ -0,0 +1,5 @@
+export type WidgetDataProps = {
+ selectedTeamPreference?: string;
+ selectedTeamIds?: string[];
+ refresh?: string | null;
+};
--- src/shared/index.tsx
@@ -5,3 +5,4 @@ export {SearchHeaderRight} from '../components/SearchHeader';
export {SearchScreen} from '../screens/SearchScreen';
export {RosterDetailScreen} from '../managerExperience/screens/RosterDetailScreen';
export {AllTeamsScreen} from '../managerExperience/screens//AllTeamsScreen';
+export {RosterWidget} from '../managerExperience/components/RosterWidget';
--- src/translations/en-US.ts
@@ -156,4 +156,15 @@ export const enUS = {
cancel: 'Cancel',
clearRecentSearch: 'Clear all recent searches',
},
+ hubWidget: {
+ roster: {
+ title: 'Roster',
+ content: {
+ scheduleInfo: 'scheduled today',
+ clockedIn: 'Clocked in',
+ absent: 'Absent',
+ tardy: 'Tardy',
+ },
+ },
+ },
};
--- src/translations/es-MX.ts
@@ -146,4 +146,15 @@ export const esMX = {
cancel: 'Cancelar',
clearRecentSearch: 'Borrar todas las búsquedas recientes',
},
+ hubWidget: {
+ roster: {
+ title: 'Lista',
+ content: {
+ scheduleInfo: 'Toda programada',
+ clockedIn: 'Dentro de horario',
+ absent: 'Ausente',
+ tardy: 'Tarde',
+ },
+ },
+ },
};
| feat(ui): add roster widget | feat(ui): add roster widget
|
0516d4ccfade15767680059e4852030cc5409025 | --- src/containers/Message/index.tsx
@@ -72,7 +72,9 @@ export const Message = ({
{audio && <AudioMessage audio={audio} outgoing={isMyMessage} />}
- {!!readReceipt && <Caption>{readReceipt}</Caption>}
+ {!!readReceipt && (
+ <Caption UNSAFE_style={styles.readReceipt}>{readReceipt}</Caption>
+ )}
</View>
</View>
);
--- src/containers/Message/index.tsx
@@ -72,7 +72,9 @@ export const Message = ({
{audio && <AudioMessage audio={audio} outgoing={isMyMessage} />}
- {!!readReceipt && <Caption>{readReceipt}</Caption>}
+ {!!readReceipt && (
+ <Caption UNSAFE_style={styles.readReceipt}>{readReceipt}</Caption>
+ )}
</View>
</View>
);
| fix: fix read receipt style | fix: fix read receipt style
|
d3e5cda45e8ae11e2127712dc7f530a3f41d835f | --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ModalHeader.tsx
@@ -20,7 +20,7 @@ const ModalHeader = ({
</Body>
<IconButton onPress={closeModal} testID='closeBtn'>
- <CloseIcon size='medium' />
+ <CloseIcon size='medium' UNSAFE_style={styles.closeIcon} />
</IconButton>
</View>
);
| Adding update modal updates | Adding update modal updates
|
2805787a016955fa6296493ab335831afff5858f | --- package-lock.json
@@ -84,7 +84,7 @@
"@walmart/schedule-mini-app": "0.55.0",
"@walmart/shelfavailability-mini-app": "1.5.17",
"@walmart/taskit-mini-app": "2.47.9",
- "@walmart/texting-mini-app": "2.0.37",
+ "@walmart/texting-mini-app": "2.0.37.alpha.0.1",
"@walmart/time-clock-mini-app": "2.175.1",
"@walmart/topstock-mini-app": "1.2.4",
"@walmart/ui-components": "1.15.1",
@@ -9233,9 +9233,9 @@
}
},
"node_modules/@walmart/texting-mini-app": {
- "version": "2.0.37",
- "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.37.tgz",
- "integrity": "sha512-cdRLT8OYq5SotUrcQNScKVaatTO9sQ8+w9EozCkAiBz1PZuWbGzy+Bpt9sZ7P4Pfc20n6qBTS0ugRMIrO135xQ==",
+ "version": "2.0.3-7.alpha.0.1",
+ "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.3-7.alpha.0.1.tgz",
+ "integrity": "sha512-mslQ2SSt8VKovHWOGsO8ZZ0WGATNyfqlpOOfd2Av6qWWGEIWyfIKXg3l4xG3J2bQkZo9iIHD3cjHmW+x6Ah7Cw==",
"hasInstallScript": true
},
"node_modules/@walmart/time-clock-mini-app": {
@@ -34564,9 +34564,9 @@
}
},
"@walmart/texting-mini-app": {
- "version": "2.0.37",
- "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.37.tgz",
- "integrity": "sha512-cdRLT8OYq5SotUrcQNScKVaatTO9sQ8+w9EozCkAiBz1PZuWbGzy+Bpt9sZ7P4Pfc20n6qBTS0ugRMIrO135xQ=="
+ "version": "2.0.3-7.alpha.0.1",
+ "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.3-7.alpha.0.1.tgz",
+ "integrity": "sha512-mslQ2SSt8VKovHWOGsO8ZZ0WGATNyfqlpOOfd2Av6qWWGEIWyfIKXg3l4xG3J2bQkZo9iIHD3cjHmW+x6Ah7Cw=="
},
"@walmart/time-clock-mini-app": {
"version": "2.175.1",
--- package.json
@@ -125,7 +125,7 @@
"@walmart/schedule-mini-app": "0.55.0",
"@walmart/shelfavailability-mini-app": "1.5.17",
"@walmart/taskit-mini-app": "2.47.9",
- "@walmart/texting-mini-app": "2.0.37",
+ "@walmart/texting-mini-app": "2.0.37.alpha.0.1",
"@walmart/time-clock-mini-app": "2.175.1",
"@walmart/topstock-mini-app": "1.2.4",
"@walmart/ui-components": "1.15.1",
| update version for Drop 16 QE test | update version for Drop 16 QE test
|
390a2eca0fd227bf95ec8073cbc10b8379338d19 | --- package-lock.json
@@ -3046,9 +3046,9 @@
"integrity": "sha512-Pe55V+hzs8Z1aqVW3BNuHKpC92fViArzNHp754Y2ZKINFPv6pXTlxkEDNw5x4qQ1m9qBsQyS8LpBPGOllAlnEg=="
},
"@walmart/feedback-all-spark-miniapp": {
- "version": "0.0.31",
- "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.31.tgz",
- "integrity": "sha512-/EZQm9Y9Ilytb3ILA11aUJtXK3P4ojanJKdEwzXYZOR4hnrmhAb+ywYqF6cToYMw4crAY1EROoDLzY6MogC5Lw=="
+ "version": "0.0.33",
+ "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.0.33.tgz",
+ "integrity": "sha512-kHo0nBhiGG/3/SW1I8GiBu2g117yCPTEv/0jROWhklJV4qFSUX9WD3zr3JUwot18XaGUF/0GHJeWI8aPTzQqhA=="
},
"@walmart/functional-components": {
"version": "1.0.22",
--- package.json
@@ -51,7 +51,7 @@
"@walmart/allspark-me-mini-app": "0.0.19",
"@walmart/ask-sam-mini-app": "0.9.0",
"@walmart/config-components": "1.0.8",
- "@walmart/feedback-all-spark-miniapp": "0.0.31",
+ "@walmart/feedback-all-spark-miniapp": "0.0.33",
"@walmart/functional-components": "^1.0.22",
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/impersonation-mini-app": "1.0.9",
| Updated version of miniapp to 0.0.33 which includes header fix for an… (#302) | Updated version of miniapp to 0.0.33 which includes header fix for an… (#302)
* Updated version of miniapp to 0.0.33 which includes header fix for android
* Updated version of miniapp to 0.0.33 which includes header fix for android |
6796ce895dcaf5c6333d635538aa1b873267a25f | --- .gitignore
@@ -42,7 +42,6 @@ local.properties
node_modules/
npm-debug.log
yarn-error.log
-.yarn/install-state.gz
# fastlane
| Removed .yarn/install-state.gz from gitignore file | Removed .yarn/install-state.gz from gitignore file
|
6beaad8e44dad33f4b3f555f814c455f9dce48ea | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.17.0",
+ "version": "2.16.0",
"main": "dist/index.js",
"files": [
"dist"
| feat(ui): update the roster message button condition for total store and team | feat(ui): update the roster message button condition for total store and team
|
847af5bdc4dcff712db8e7d2b0aa08e2e1721e6f | --- docs/CHANGELOG.md
@@ -1,3 +1,17 @@
+# [3.1.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.0.0...v3.1.0) (2025-06-30)
+
+
+### Bug Fixes
+
+* SMDV-8203 revert graphql changes ([b3459d2](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b3459d25350aaa5ca47d8a361fc16fe5593515b1))
+* SMDV-8203 update version to 2.47.0 ([7bb3c68](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/7bb3c6866b1121b4c884fe2dac779157719d8753))
+
+
+### Features
+
+* **ui:** update the queries to match the hotfix for Drop 30 ([bd8ae77](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/bd8ae77026aba03cf3775f75617728bfbcfe3bae))
+* **ui:** upgrade version to 2.48.0 and update looper yml ([33fb2b8](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/33fb2b8f988b98e6a42d4a4981632e6b31ac400a))
+
## [2.46.1](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.46.0...v2.46.1) (2025-06-26)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "3.0.0",
+ "version": "3.1.0",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 3.1.0 [skip ci] | chore(release): 3.1.0 [skip ci]
# [3.1.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.0.0...v3.1.0) (2025-06-30)
### Bug Fixes
* SMDV-8203 revert graphql changes ([b3459d2](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b3459d25350aaa5ca47d8a361fc16fe5593515b1))
* SMDV-8203 update version to 2.47.0 ([7bb3c68](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/7bb3c6866b1121b4c884fe2dac779157719d8753))
### Features
* **ui:** update the queries to match the hotfix for Drop 30 ([bd8ae77](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/bd8ae77026aba03cf3775f75617728bfbcfe3bae))
* **ui:** upgrade version to 2.48.0 and update looper yml ([33fb2b8](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/33fb2b8f988b98e6a42d4a4981632e6b31ac400a))
|
aca5f7ee11306ff3d4a435f986582faa672897d2 | --- packages/allspark-foundation/src/Navigation/client.tsx
@@ -360,21 +360,21 @@ export class NavigationClient<
* Toggles the drawer, if a Drawer Navigator is the top level navigator.
*/
public toggleDrawer = () => {
- AllsparkNavigationClient.dispatch(DrawerActions.toggleDrawer());
+ this.dispatch(DrawerActions.toggleDrawer());
};
/**
* Opens the drawer, if a Drawer Navigator is the top level navigator.
*/
public openDrawer = () => {
- AllsparkNavigationClient.dispatch(DrawerActions.openDrawer());
+ this.dispatch(DrawerActions.openDrawer());
};
/**
* Closes the drawer, if a Drawer Navigator is the top level navigator.
*/
public closeDrawer = () => {
- AllsparkNavigationClient.dispatch(DrawerActions.closeDrawer());
+ this.dispatch(DrawerActions.closeDrawer());
};
public get drawerLocked() {
| fix: navigation client referenced itself | fix: navigation client referenced itself
|
3552f5a2b378fbc72ff799deebbf96b4b5956e64 | --- packages/allspark-foundation/src/Feature/AllsparkFeature.tsx
@@ -31,6 +31,7 @@ import {
import { AllsparkFeatureModule } from './AllsparkFeatureModule';
import {
AllsparkModuleConfig,
+ IAllsparkFeatureComponents,
IAllsparkFeatureFlows,
IAllsparkFeatureListeners,
IAllsparkFeatureModals,
@@ -378,6 +379,17 @@ export class AllsparkFeature<ID extends string = string> {
public createScreens = <S extends IAllsparkFeatureScreens>(screens: S) =>
screens;
+ /**
+ * Creates a components object ready to be used with `AllsparkFeature.createModule()`
+ * @param components - The components object to return.
+ * @returns A components object to be used when creating an AllsparkFeatureModule.
+ * @example
+ * const MyFeatureComponents = MyFeature.createComponents({ containers: {...}, shared: {...} });
+ */
+ public createComponents = <C extends IAllsparkFeatureComponents>(
+ components: C
+ ) => components;
+
/**
* Creates a component container ready to be registered with `AllsparkFeature.createModule()`
*/
--- packages/allspark-foundation/src/Feature/types.ts
@@ -67,6 +67,21 @@ export type IAllsparkFeatureRedux = {
saga?: Saga;
};
+export type IAllsparkFeatureComponents = {
+ /**
+ * @description Component containers the feature creates/renders
+ */
+ containers?: Record<string, ComponentContainer<any>>;
+ /**
+ * @description Dynamic components the feature creates/renders
+ */
+ dynamic?: Record<string, DynamicComponent<any>>;
+ /**
+ * @description Shared components the feature provides
+ */
+ shared?: Record<string, FC<any>>;
+};
+
/**
* Interface for Allspark feature translation resources.
*/
@@ -92,20 +107,7 @@ export type AllsparkModuleConfig = {
/**
* @description Feature component capabilities
*/
- components?: {
- /**
- * @description Component containers the feature creates/renders
- */
- containers?: Record<string, ComponentContainer<any>>;
- /**
- * @description Dynamic components the feature creates/renders
- */
- dynamic?: Record<string, DynamicComponent<any>>;
- /**
- * @description Shared components the feature provides
- */
- shared?: Record<string, FC<any>>;
- };
+ components?: IAllsparkFeatureComponents;
/**
* @description Feature flows to be run and orechestrated by the container
| fix: no creator for feature components | fix: no creator for feature components
|
812585a819c47996d56d32968cb1d67671085b30 | --- __tests__/__snapshots__/AppTest.tsx.snap
@@ -1,10 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`RootContainer renders and fires startup event 1`] = `
-<Provider
- env="dev"
- environmentOverrides={{}}
->
+<Provider>
<RenderGuard>
<RootStackNavigation />
</RenderGuard>
@@ -12,10 +9,7 @@ exports[`RootContainer renders and fires startup event 1`] = `
`;
exports[`RootContainer renders with no linking config on undefined userid 1`] = `
-<Provider
- env="dev"
- environmentOverrides={{}}
->
+<Provider>
<RenderGuard>
<RootStackNavigation />
</RenderGuard>
| lint fix | lint fix
|
937a51b7b5f455f4a9c6a78e04ffc2eef2c6d2c2 | --- .yarn/patches/@walmart-facilities-management-miniapp-npm-0.18.20-50a670c24b.patch
@@ -1,13 +0,0 @@
-diff --git a/dist/utils/storeMapInitialize.js b/dist/utils/storeMapInitialize.js
-index 105b56e847dd8c5b32acf941d30f6ce34933d476..4a39ec2daccb6629bd38fc73c45c0ad9fb9209af 100644
---- a/dist/utils/storeMapInitialize.js
-+++ b/dist/utils/storeMapInitialize.js
-@@ -175,7 +175,7 @@ export function updateEvent(assetId, eventType = 'asset_scan') {
- logUpdateRequest(params);
- const map = new Map(); // dummy variable
- return new Promise((resolve, reject) => {
-- CompassSdkRn.updateEvent(eventType, assetId, map).then((response) => {
-+ CompassSdkRn.updateEvent("FIXIT", eventType, assetId, map).then((response) => {
- logUpdateSuccess({ assetId, eventType, response });
- dispatch({
- type: commonActions.setStoreMapData,
--- package.json
@@ -102,7 +102,7 @@
"@walmart/emergency-mini-app": "1.32.5",
"@walmart/exception-mini-app": "1.8.15",
"@walmart/expo-config-plugins": "^0.2.0",
- "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@0.18.20#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.18.20-50a670c24b.patch",
+ "@walmart/facilities-management-miniapp": "0.18.28",
"@walmart/feedback-all-spark-miniapp": "0.9.75",
"@walmart/financial-wellbeing-feature-app": "1.29.10",
"@walmart/functional-components": "~6.3.28",
--- yarn.lock
@@ -8127,23 +8127,18 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/facilities-management-miniapp@npm:0.18.20":
- version: 0.18.20
- resolution: "@walmart/facilities-management-miniapp@npm:0.18.20::__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.20.tgz"
+"@walmart/facilities-management-miniapp@npm:0.18.28":
+ version: 0.18.28
+ resolution: "@walmart/facilities-management-miniapp@npm:0.18.28::__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.28.tgz"
peerDependencies:
- "@walmart/allspark-foundation": "*"
- redux: "*"
- checksum: 10c0/8507a781dd2cd11633cecadbb7f24cb3c62957578e5aa6ddfc3b54390089d921336a959e4e12fc79723c56bef69822bf4923689e66eff8d990d3fc659c5f8a22
- languageName: node
- linkType: hard
-
-"@walmart/facilities-management-miniapp@patch:@walmart/facilities-management-miniapp@0.18.20#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.18.20-50a670c24b.patch":
- version: 0.18.20
- resolution: "@walmart/facilities-management-miniapp@patch:@walmart/facilities-management-miniapp@npm%3A0.18.20%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Ffacilities-management-miniapp%252F-%252F%2540walmart%252Ffacilities-management-miniapp-0.18.20.tgz#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.18.20-50a670c24b.patch::version=0.18.20&hash=f9bb98"
- peerDependencies:
- "@walmart/allspark-foundation": "*"
- redux: "*"
- checksum: 10c0/4063d8745d662ff5954f5f0ef31f9f19b986963f044dd9a5113a04706e42068bf2f76fbb1e7b468c36dbcdc530d4e889f24561f0eaa8609d5fe35abe700c04a4
+ expo: ~52.0.46
+ react: "*"
+ react-native: "*"
+ react-native-wm-config: 0.1.1
+ dependenciesMeta:
+ "@walmart/me-at-walmart":
+ built: false
+ checksum: 10c0/0e96f1ebb3bfa29951e65246d586f951eb8f2e8d95cfd79e661830577ddc50998346f550f00c8428014de22fa429fe56ef125a5ba7fd55195a3e25c6d93f22be
languageName: node
linkType: hard
@@ -8645,7 +8640,7 @@ __metadata:
"@walmart/emergency-mini-app": "npm:1.32.5"
"@walmart/exception-mini-app": "npm:1.8.15"
"@walmart/expo-config-plugins": "npm:^0.2.0"
- "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@0.18.20#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.18.20-50a670c24b.patch"
+ "@walmart/facilities-management-miniapp": "npm:0.18.28"
"@walmart/feedback-all-spark-miniapp": "npm:0.9.75"
"@walmart/financial-wellbeing-feature-app": "npm:1.29.10"
"@walmart/functional-components": "npm:~6.3.28"
| feat(facility-management-miniapp): ONER-5240 Drop 31 Changes (#4232) | feat(facility-management-miniapp): ONER-5240 Drop 31 Changes (#4232)
* feat(facility-management): ONER-5320 Updating the version
* feat(facility-management): ONER-5250 Updating the version to 0.18.26
* feat(facility-management): ONER-5432 Updating the version to 0.18.28
---------
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> |
a55442f614433e5a9d7a4a78c805f72ccdb994c5 | --- docs/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [1.41.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.40.0...v1.41.0) (2025-06-25)
+
+
+### Features
+
+* **ui:** updating yarn.lock ([2b62b9d](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/2b62b9da0e6e7038aafad5d44135814a40fdb300))
+
# [1.40.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.39.0...v1.40.0) (2025-06-24)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.40.0",
+ "version": "1.41.0",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 1.41.0 [skip ci] | chore(release): 1.41.0 [skip ci]
# [1.41.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.40.0...v1.41.0) (2025-06-25)
### Features
* **ui:** updating yarn.lock ([2b62b9d](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/2b62b9da0e6e7038aafad5d44135814a40fdb300))
|
e8e0dcc06cc6ba500204213a69d44c1c70ea4ff5 | --- android/temp-3548880843429022853walmartAirwatchEnroller
Binary files a/android/temp-3548880843429022853walmartAirwatchEnroller and /dev/null differ
--- ios/AllSpark.xcodeproj/project.pbxproj
@@ -408,7 +408,6 @@
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
"${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
- "${PODS_CONFIGURATION_BUILD_DIR}/gRPC-C++/gRPCCertificates-Cpp.bundle",
"${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/AVScannerViewController.xib",
"${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/scanbeep.wav",
"${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/DIGIMark-custom.ttf",
@@ -437,7 +436,6 @@
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
- "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/gRPCCertificates-Cpp.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AVScannerViewController.nib",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/scanbeep.wav",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/DIGIMark-custom.ttf",
| update pod version | update pod version
|
8590330ab661ff0beabee2b15030e7e52a0baab2 | --- package-lock.json
@@ -4137,9 +4137,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.5.11",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.11.tgz",
- "integrity": "sha512-psZTTTgrfpUR0VaIqHPX386P1xl0D+be2dC6P0XfhkXOTiNecOH4ZWTPTlJRRZUOVFIZwza4MMCuU4O8hYggaw==",
+ "version": "0.5.13",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.13.tgz",
+ "integrity": "sha512-xQLckdj3Cx43Q0IUPwOOYXutggENvawen6TrVvKuieeeqkkskI9S68SOwV0yWJ8u2NKWMeoCrmtNZnkBSnp6iA==",
"requires": {
"moment": "^2.29.0",
"uuid": "^8.3.1"
@@ -4271,12 +4271,12 @@
"integrity": "sha512-7nXe02E/AOFtT1u6/tVerIskwWvSoJcMgYN2DNH7vMgbb0YIFOsqwzX+nbRh/AcaZhC7YX5H2irVCc6/5/HjJw=="
},
"@walmart/metrics-mini-app": {
- "version": "0.5.10",
- "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.10.tgz",
- "integrity": "sha512-e8gXJyHmzHa/lVM0/xDQizLPfzvSXjsuUUAM6VFUJjuepYJXHLwuFtUmCHivV94ixWFnGBHGij1uOcEI2jyKyA==",
+ "version": "0.5.13",
+ "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.13.tgz",
+ "integrity": "sha512-H6q45IC7gWypoWMKQ2gg/A3QdNekVDWjmaAjpQ/8LUCS468wBTjIHNwY66KZtGfgb6ECE0+g14I8MVcjFB0u9w==",
"requires": {
"@types/base-64": "^1.0.0",
- "apisauce": "^1.1.2",
+ "apisauce": "1.1.2",
"axios-cache-adapter": "^2.7.0",
"base-64": "^1.0.0",
"lodash": "^4.17.19",
--- package.json
@@ -71,7 +71,7 @@
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/allspark-health-survey-mini-app": "0.0.43",
- "@walmart/allspark-home-mini-app": "0.5.11",
+ "@walmart/allspark-home-mini-app": "0.5.13",
"@walmart/allspark-me-mini-app": "0.31.2",
"@walmart/ask-sam-mini-app": "0.40.3",
"@walmart/config-components": "1.0.35",
@@ -86,7 +86,7 @@
"@walmart/inbox-mini-app": "0.21.0",
"@walmart/iteminfo-mini-app": "2.0.16",
"@walmart/manager-approvals-miniapp": "0.0.58",
- "@walmart/metrics-mini-app": "0.5.10",
+ "@walmart/metrics-mini-app": "0.5.13",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.5.39",
"@walmart/react-native-env": "^0.2.0",
| updating version of home and metrics | updating version of home and metrics
|
ff31d014e08d638d8d9a85d4480862b78bce94b3 | --- docs/CHANGELOG.md
@@ -1,3 +1,19 @@
+# [3.12.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.11.0...v3.12.0) (2025-12-19)
+
+
+### Features
+
+* **ui:** more optimizations ([9b3c3fc](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/9b3c3fc7c38200e86850387032867e4587162d20))
+* **ui:** update celebration peformance ([75d5872](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/75d5872c4d0578da37c1bf158d0d70bb1f11aad8))
+* **ui:** update failing lints ([ace6ca1](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ace6ca1e078a5631451e4445a3428ba0efbae15c))
+* **ui:** update failing tests ([d80f4cc](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/d80f4cc6f5571fc2f43fd708dc6687de29b71d76))
+* **ui:** update performance ([2fd31ba](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/2fd31bad1b23f068201411642012c505e670c1b4))
+* **ui:** update performance ([8ac03f5](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/8ac03f50ea65eec039a4b1444823770658da1b14))
+* **ui:** update performance ([ad93207](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ad932077ed373bdff3836f76265c789fa2a14299))
+* **ui:** update roster mini app for performance ([08d572a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/08d572a8410998f19f2b74e6fc98507a0fc59489))
+* **ui:** update roster mini app for performance ([50e6189](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/50e61895fa6c909d57994f7b4b5494c512f0028d))
+* **ui:** update the performance ([344f102](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/344f1021094ad664bdc8e00c0681cc88dfa7370b))
+
# [3.11.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.10.0...v3.11.0) (2025-12-16)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "3.11.0",
+ "version": "3.12.0",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 3.12.0 [skip ci] | chore(release): 3.12.0 [skip ci]
# [3.12.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.11.0...v3.12.0) (2025-12-19)
### Features
* **ui:** more optimizations ([9b3c3fc](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/9b3c3fc7c38200e86850387032867e4587162d20))
* **ui:** update celebration peformance ([75d5872](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/75d5872c4d0578da37c1bf158d0d70bb1f11aad8))
* **ui:** update failing lints ([ace6ca1](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ace6ca1e078a5631451e4445a3428ba0efbae15c))
* **ui:** update failing tests ([d80f4cc](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/d80f4cc6f5571fc2f43fd708dc6687de29b71d76))
* **ui:** update performance ([2fd31ba](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/2fd31bad1b23f068201411642012c505e670c1b4))
* **ui:** update performance ([8ac03f5](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/8ac03f50ea65eec039a4b1444823770658da1b14))
* **ui:** update performance ([ad93207](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ad932077ed373bdff3836f76265c789fa2a14299))
* **ui:** update roster mini app for performance ([08d572a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/08d572a8410998f19f2b74e6fc98507a0fc59489))
* **ui:** update roster mini app for performance ([50e6189](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/50e61895fa6c909d57994f7b4b5494c512f0028d))
* **ui:** update the performance ([344f102](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/344f1021094ad664bdc8e00c0681cc88dfa7370b))
|
4afc202411dbbaae8c0fa6cf5a44b31ea8d11971 | --- __tests__/harness/athenaQueries/getDailyRoster.ts
@@ -1,6 +1,5 @@
import {GetDailyRosterDocument} from '../../../src/queries/getDailyRoster';
-//TODO: Fix missing fields in mock object
export const mockGetDailyRosterQuery = {
request: {
query: GetDailyRosterDocument,
--- __tests__/harness/athenaQueries/getDailyRoster.ts
@@ -1,6 +1,5 @@
import {GetDailyRosterDocument} from '../../../src/queries/getDailyRoster';
-//TODO: Fix missing fields in mock object
export const mockGetDailyRosterQuery = {
request: {
query: GetDailyRosterDocument,
| addressed TODO | addressed TODO
|
33bcf1a0c2c807b37c0f7fd10970ffd371025ee2 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 23
+ versionCode 24
versionName "1.0.1"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>23</string>
+ <string>24</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>invmgmt</string>
--- ios/AllSparkTests/Info.plist
@@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>23</string>
+ <string>24</string>
</dict>
</plist>
| Incrementing build number | Incrementing build number
|
783d33ec22512f09c6299495f322617d5bcf71bc | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 115
+ versionCode 116
versionName "1.0.9"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>115</string>
+ <string>116</string>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false />
<key>LSApplicationQueriesSchemes</key>
| Incrementing build number | Incrementing build number
|
a6d4d92e34b22e054037fe796b9c914ff4ea1265 | --- __tests__/harness/athenaQueries/getDailyRoster.ts
@@ -1,4 +1,7 @@
import {GetDailyRosterDocument} from '../../../src/queries/getDailyRoster';
+import moment from 'moment-timezone';
+
+const currentDay = moment().format('YYYY-MM-DD');
export const mockGetDailyRosterQuery = {
request: {
@@ -6,7 +9,7 @@ export const mockGetDailyRosterQuery = {
variables: {
countryCode: 'US',
days: 1,
- startDate: '2023-09-28',
+ startDate: currentDay,
storeId: '100',
},
},
--- __tests__/harness/athenaQueries/getDailyRoster.ts
@@ -1,4 +1,7 @@
import {GetDailyRosterDocument} from '../../../src/queries/getDailyRoster';
+import moment from 'moment-timezone';
+
+const currentDay = moment().format('YYYY-MM-DD');
export const mockGetDailyRosterQuery = {
request: {
@@ -6,7 +9,7 @@ export const mockGetDailyRosterQuery = {
variables: {
countryCode: 'US',
days: 1,
- startDate: '2023-09-28',
+ startDate: currentDay,
storeId: '100',
},
},
| adding current day for moment | adding current day for moment
|
9cf816769c3641fa4c7ce1cc54ed9f8d623e1268 | --- targets/US/package.json
@@ -140,7 +140,7 @@
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.15.0",
"@walmart/rfid-scan-mini-app": "2.6.3",
- "@walmart/rn-receiving-mini-app": "2.4.33",
+ "@walmart/rn-receiving-mini-app": "2.4.34",
"@walmart/roster-mini-app": "2.9.0",
"@walmart/schedule-mini-app": "0.118.2",
"@walmart/shelfavailability-mini-app": "1.5.37",
--- yarn.lock
@@ -5972,9 +5972,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/atlas-rn-ui-components@npm:1.1.34":
- version: 1.1.34
- resolution: "@walmart/atlas-rn-ui-components@npm:1.1.34"
+"@walmart/atlas-rn-ui-components@npm:1.1.35":
+ version: 1.1.35
+ resolution: "@walmart/atlas-rn-ui-components@npm:1.1.35"
peerDependencies:
"@livingdesign/tokens": ">=0.63.0"
"@react-native-picker/picker": ">=2.4.0"
@@ -5996,7 +5996,7 @@ __metadata:
bin:
installFonts: scripts/installFonts
runCodemods: scripts/runCodemods
- checksum: 10c0/77a0a4e9276f4d32d1ac322021c3d005d8cde2ee3de39ffe710d8cbb1da015aeda2fe7affb9808eb464c24ab6fdf0a8ec01a439212646a250efe4b94e41c4040
+ checksum: 10c0/dbeb3e580d732daa024de72efe5ec72de28d6e5d6b7f20736bd143294ad8bb1ad3eb4b970ed1567c2c83df8dfc7bbb9b048bbbd4b2821404da3a11aab5927822
languageName: node
linkType: hard
@@ -6666,9 +6666,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/loadquality-mini-app@npm:1.0.155":
- version: 1.0.155
- resolution: "@walmart/loadquality-mini-app@npm:1.0.155"
+"@walmart/loadquality-mini-app@npm:1.0.156":
+ version: 1.0.156
+ resolution: "@walmart/loadquality-mini-app@npm:1.0.156"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -6677,7 +6677,7 @@ __metadata:
axios-cache-adapter: ">=2.7.3"
react: ^18.2.0
react-native: ~0.70.5
- checksum: 10c0/d0114133fffa45004df59a4d87b3f183ae938068ffe0c6b33e4150f33cbbec1b7f67124d65663f82bd778e5dd02f106a7556655a6075ffab5d6ba80c71137b85
+ checksum: 10c0/53e524da61fea806aeaaec64974cbed10d7c415f4aff7cc06dfc46e44f63406626f185ad1516a539c2c24c50dcf326be79a12198594f0c44510f22d0792d04e2
languageName: node
linkType: hard
@@ -7055,7 +7055,7 @@ __metadata:
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.15.0"
"@walmart/rfid-scan-mini-app": "npm:2.6.3"
- "@walmart/rn-receiving-mini-app": "npm:2.4.33"
+ "@walmart/rn-receiving-mini-app": "npm:2.4.34"
"@walmart/roster-mini-app": "npm:2.9.0"
"@walmart/schedule-mini-app": "npm:0.118.2"
"@walmart/shelfavailability-mini-app": "npm:1.5.37"
@@ -7769,12 +7769,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rn-receiving-mini-app@npm:2.4.33":
- version: 2.4.33
- resolution: "@walmart/rn-receiving-mini-app@npm:2.4.33"
+"@walmart/rn-receiving-mini-app@npm:2.4.34":
+ version: 2.4.34
+ resolution: "@walmart/rn-receiving-mini-app@npm:2.4.34"
dependencies:
- "@walmart/atlas-rn-ui-components": "npm:1.1.34"
- "@walmart/loadquality-mini-app": "npm:1.0.155"
+ "@walmart/atlas-rn-ui-components": "npm:1.1.35"
+ "@walmart/loadquality-mini-app": "npm:1.0.156"
peerDependencies:
"@react-native-clipboard/clipboard": ">=1.14.0"
"@react-navigation/native": ^6.0.8
@@ -7797,7 +7797,7 @@ __metadata:
react-native-svg: ">=14.1.0"
react-native-svg-transformer: ">=1.1.0"
react-native-vision-camera: ^2.16.8
- checksum: 10c0/7389936a3fdd949ffd1ce759c64abbc0d1a81cc163448159ea67d75cd65568b8c24549afe9d2caacce705979b2b97ae73f5651cbc8abd8b297c73a3dd2519b71
+ checksum: 10c0/3e900c99e94975b97fb33798dd11d5ee31317037cb3d1e39df3c7bbb9c5d6abbcd4d6f7f0961731388f4ece53d06b12aa974c956c04d25d9a1b9a49d9db831d8
languageName: node
linkType: hard
| Receiving version - 2.4.33 - LQ version change | Receiving version - 2.4.33 - LQ version change
|
030c242be82417ccaddd39d61764846f0ee84944 | --- .yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch
@@ -1,5 +1,5 @@
diff --git a/components/DrawerButton/index.js b/components/DrawerButton/index.js
-index 60301993d95e862c7bafcb74519609f031a81d03..62edd4a51993274e8d29c97e1b9596bdb2c0a578 100644
+index 60301993d95e862c7bafcb74519609f031a81d03..d574b234eca634b75473817e5a7d8c1ee9a05454 100644
--- a/components/DrawerButton/index.js
+++ b/components/DrawerButton/index.js
@@ -1,56 +1,25 @@
@@ -77,60 +77,3 @@ index 60301993d95e862c7bafcb74519609f031a81d03..62edd4a51993274e8d29c97e1b9596bd
-DrawerButton.Provider = DrawerButtonContext.Provider;
DrawerButton.Context = DrawerButtonContext;
-\ No newline at end of file
-diff --git a/components/LockScreen/NumberKeypad.js b/components/LockScreen/NumberKeypad.js
-index 68eec71f01f4b49a3b73acafaf0535bf54b0fa9f..216b7d697d1e311696d3edbfd8f46fd329327b97 100644
---- a/components/LockScreen/NumberKeypad.js
-+++ b/components/LockScreen/NumberKeypad.js
-@@ -15,6 +15,7 @@ const Images = {
- FaceID: require('./images/face-id.png'),
- TouchID: require('./images/touch-id.png'),
- };
-+const BIOMETRIC = 'biometric';
-
- export const NumberKeypad = ({
- handleKeypadTap, passcode, wiggleStyle, biometric,
-@@ -23,7 +24,7 @@ export const NumberKeypad = ({
- switch (true) {
- case value === 'delete':
- return <FontIcon name="arrow-left" size={32} color="#000" accessibilityLabel={i18next.t('uicomponents:delete_PIN_entry')} />;
-- case value === 'biometric':
-+ case value === BIOMETRIC:
- return biometric
- ? (
- <Image
-@@ -31,7 +32,6 @@ export const NumberKeypad = ({
- source={Images[biometric]}
- style={styles.biometricImage}
- accessibilityLabel={i18next.t('uicomponents:biometric_recognition')}
-- accessibilityRole="button"
- />
- ) : null;
- default:
-@@ -55,18 +55,23 @@ export const NumberKeypad = ({
- </TouchableOpacity>
- </Animated.View>
- <View style={styles.numberContainer}>
-- { keypadMap.map(({ value, borderRadius }) => (
-+ { keypadMap.map(({ value, borderRadius }) => {
-+ const showBiometric = (value === BIOMETRIC && biometric);
-+ const isAccessible = showBiometric || value !== BIOMETRIC;
-+ const accessibleRole = isAccessible ? 'button' : 'none';
-+ return (
- <TouchableOpacity
- {...testID(value === 'delete' ? 'delete' : `${value}`)}
- style={[styles.number, borderRadius ? { [borderRadius]: 16 } : null]}
- key={value}
- onPress={() => handleKeypadTap(value)}
- activeOpacity={0.4}
-- accessibilityRole="button"
-+ accessibilityRole={accessibleRole}
-+ accessible={isAccessible}
- >
- {getKeyIcon(value)}
- </TouchableOpacity>
-- ))}
-+ )})}
- </View>
- </>
- );
--- 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.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch",
+ "@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",
"axios": "~1.6.0",
"axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch",
"crypto-js": "~4.2.0",
--- targets/US/package.json
@@ -150,7 +150,7 @@
"@walmart/taskit-mini-app": "4.17.21",
"@walmart/time-clock-mini-app": "2.419.0",
"@walmart/topstock-mini-app": "1.17.11",
- "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch",
+ "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch",
"@walmart/walmart-fiscal-week": "^0.3.6",
"@walmart/welcomeme-mini-app": "0.96.0",
"@walmart/wfm-ui": "1.6.0",
--- yarn.lock
@@ -7066,7 +7066,7 @@ __metadata:
"@walmart/taskit-mini-app": "npm:4.17.21"
"@walmart/time-clock-mini-app": "npm:2.419.0"
"@walmart/topstock-mini-app": "npm:1.17.11"
- "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch"
+ "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch"
"@walmart/walmart-fiscal-week": "npm:^0.3.6"
"@walmart/welcomeme-mini-app": "npm:0.96.0"
"@walmart/wfm-ui": "npm:1.6.0"
@@ -8088,9 +8088,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/ui-components@npm:1.18.5":
- version: 1.18.5
- resolution: "@walmart/ui-components@npm:1.18.5"
+"@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"
@@ -8110,13 +8110,13 @@ __metadata:
react-native-safe-area-context: ">=3.1.3"
react-native-vector-icons: ">=7.0.0"
react-native-webview: ">=10.10.2"
- checksum: 10c0/b254a753d296d0cc9f72c9c5ba1c1ac678edb88aa03d7248a7b13a41185c76bb89610e3baf00fee549df4f307c60afecfcad83fc199b4627604136da338de0d1
+ checksum: 10c0/b314935fd2cdadfeea0eef9f8179598df0b7fe01410c9fe1796428974f6293f8101f0e2d89ebf1f5b1f5b8c1016ec7e753011fc4312fa9e6356c177a8e855113
languageName: node
linkType: hard
-"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch":
- version: 1.18.5
- resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.18.5#~/.yarn/patches/@walmart-ui-components-npm-1.18.5-9e23294b76.patch::version=1.18.5&hash=c11f8c"
+"@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"
dependencies:
"@walmart/ui-components": "npm:^1.15.11"
react-hook-form: "npm:^7.33.1"
@@ -8136,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/9e8fe5de641c4ca3f49d2b05c63e8220830eb335faae78acf4d21ff89243bb1ba6dfa3311c83a38e8a8587a3d1fbfb3c8988a6422e401e77f7f15ed403dd6075
+ checksum: 10c0/8af97ac24ed5901abd22c87c29f02a6172fbf539c9ed9dadaf5b7c8862b96de646647678b108e1875cd1727e8661e7fa216275b2d27350165676577e6bb4f15b
languageName: node
linkType: hard
| feat: bump version of ui-components to replace patch | feat: bump version of ui-components to replace patch
|
8db00ba9f1d5c4e48a4db31a96446fa4f4ce6674 | --- packages/allspark-foundation/src/Feature/AllsparkFeature.tsx
@@ -20,12 +20,12 @@ import {
ParamListBase,
} from '../Navigation/types';
import {
- ComponentContainer,
+ AllsparkComponentContainers,
ComponentContainerConfig,
} from '../Components/ComponentContainers';
import {
+ AllsparkDynamicComponents,
ComponentRecord,
- DynamicComponent,
} from '../Components/DynamicComponents';
import { AllsparkFeatureModule } from './AllsparkFeatureModule';
@@ -435,18 +435,30 @@ export class AllsparkFeature<ID extends string = string> {
/**
* Creates a component container ready to be registered with `AllsparkFeature.createModule()`
*/
- public createComponentContainer = <Props = {},>(
+ public createComponentContainer = <Props,>(
+ id: string,
config?: ComponentContainerConfig
) => {
- return new ComponentContainer<Props>(undefined, config);
+ if (__DEV__ && !id.includes(this.id)) {
+ throw new Error(
+ `AllsparkFeature(${this.id}).createComponentContainer should be prefixed with the feature id. Example: ${this.id}.${id}`
+ );
+ }
+ return AllsparkComponentContainers.create<Props>(id, config);
};
/**
* Creates a dynamiccomponent ready to be registered with `AllsparkFeature.createModule()`
*/
- public createDynamicComponent = <Props = {},>(
+ public createDynamicComponent = <Props extends any, IDs extends string>(
+ id: string,
Template: FC<ComponentRecord<Props>>
) => {
- return new DynamicComponent<Props>(Template);
+ if (__DEV__ && !id.includes(this.id)) {
+ throw new Error(
+ `AllsparkFeature(${this.id}).createDynamicComponent should be prefixed with the feature id. Example: ${this.id}.${id}`
+ );
+ }
+ return AllsparkDynamicComponents.create<Props, IDs>(id, Template);
};
-}
+}
\ No newline at end of file
| fix: dynamic and container components not created with global client from feature instance | fix: dynamic and container components not created with global client from feature instance
|
2c0ba00982dff9e5bd7f89c2fcc0e17912225f1b | --- packages/allspark-foundation/__tests__/Nudge/hooks/useNudgeConfig.test.tsx
@@ -82,8 +82,6 @@ const featureNudgeMock = {
};
describe('useNudgeConfig', () => {
-
-
it('returns config undefined if hasHideNudge is true', async () => {
semverMock.satisfies.mockReturnValue(false);
buildNudgeConfig.mockResolvedValue({
--- packages/allspark-foundation/__tests__/Nudge/hooks/useNudgeHandlers.test.tsx
@@ -41,7 +41,7 @@ describe('useNudgeHandlers', () => {
(useSelector as jest.Mock).mockImplementation(() => ({ urlList }));
});
- it('should open the app URL if available and can be opened', async () => {
+ it.only('should open the app URL if available and can be opened', async () => {
(Linking.canOpenURL as jest.Mock).mockResolvedValue(true);
const { result } = renderHook(() =>
--- packages/allspark-foundation/src/Components/Banners/AlertPlusComponent.tsx
@@ -1,82 +0,0 @@
-import React from 'react';
-import { StyleSheet, View, Text } from 'react-native';
-import { Button, Heading } from '@walmart/gtp-shared-components';
-import { AlertPlusConfig } from './types';
-import { ComponentRecord } from '../DynamicComponents';
-import { useAllsparkTranslation } from '../../Translation';
-
-export const AlertPlusComponent: React.FC<{
- banner: ComponentRecord<AlertPlusConfig>;
-}> = ({ banner }) => {
- const { t } = useAllsparkTranslation();
- const { title, description } = banner;
- return (
- <View style={styles.alertPlusContainer}>
- <View style={styles.alertPlusText}>
- {title && (
- <Heading
- size='small'
- weight='700'
- UNSAFE_style={styles.alertPlusTitle}
- >
- {title}
- </Heading>
- )}
- {description && (
- <Text style={styles.alertPlusDescription}>
- {t(description || '')}
- </Text>
- )}
- </View>
- <View style={styles.alertPlusActions}>
- {banner.actionButtonProps?.map(
- ({ wrapperProps, buttonProps }, index) => {
- const { children, ...rest } = buttonProps;
- return (
- <View key={index} style={wrapperProps}>
- <Button {...rest}>{children}</Button>
- </View>
- );
- }
- )}
- </View>
- </View>
- );
-};
-
-const styles = StyleSheet.create({
- alertPlusContainer: {
- width: '100%',
- flexDirection: 'column',
- justifyContent: 'center',
- alignItems: 'center',
- padding: 16,
- gap: 12,
- backgroundColor: '#FFF9E9',
- },
- alertPlusText: {
- width: '100%',
- alignItems: 'flex-start',
- },
- alertPlusActions: {
- flexDirection: 'row',
- width: '100%',
- justifyContent: 'center',
- alignItems: 'center',
- },
- alertPlusDescription: {
- marginTop: 5,
- fontWeight: 400,
- fontSize: 16,
- lineHeight: 24,
- fontFamily: 'Boggle',
- letterSpacing: 0,
- },
- alertPlusTitle: {
- lineHeight: 24,
- fontFamily: 'Boggle',
- letterSpacing: 0,
- },
-});
-
-export default AlertPlusComponent;
--- packages/allspark-foundation/src/Components/Banners/AllsparkBanner.tsx
@@ -3,8 +3,6 @@ import Animated from 'react-native-reanimated';
import { AllsparkBannerConfig, AnimationViewProps } from './types';
import { ComponentRecord } from '../DynamicComponents';
import { ALERT, BANNER } from './constants';
-import BannerComponent from './BannerComponent';
-import AlertComponent from './AlertComponent';
/**
* The banner component used by the AllsparkBanners context.
@@ -26,8 +24,8 @@ export const AllsparkBanner = (props: {
const Component = useMemo(() => {
const bannerMap: Record<string, React.JSXElementConstructor<any>> = {
- [BANNER]: BannerComponent,
- [ALERT]: AlertComponent,
+ [BANNER]: require('./BannerComponent').default,
+ [ALERT]: require('./AlertComponent').default,
};
return bannerMap[type];
}, [type]);
--- packages/allspark-foundation/src/Components/Banners/index.tsx
@@ -4,7 +4,7 @@ import {
ListProps,
} from '../DynamicComponents/DynamicComponent';
import { AllsparkBanner } from './AllsparkBanner';
-import { AlertPlusConfig, AllsparkBannerConfig } from './types';
+import { AllsparkBannerConfig } from './types';
import { ComponentContainer } from '../ComponentContainers';
export * from './types';
@@ -22,7 +22,7 @@ export type AllsparkBannerIDs = string;
* AllsparkBanners.remove('example');
*/
export const AllsparkBanners = new DynamicComponent<
- AllsparkBannerConfig | AlertPlusConfig,
+ AllsparkBannerConfig,
AllsparkBannerIDs
>((props) => (
<AllsparkBanner
--- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx
@@ -28,7 +28,7 @@ import {
FeatureMetadata,
IAllsparkFeatureListeners,
InferCapabilityType,
- InferRecordKey,
+ InferRecordKey
} from './types';
import { withFeatureScreenGuards } from './withFeatureScreenGuards';
@@ -46,7 +46,6 @@ export class AllsparkFeatureModule<
public name: string;
public tags: string[];
public metadata: Module['metadata'];
-
public enabled: boolean = true;
private _components: Module['components'];
private _flows: Module['flows'];
--- packages/allspark-foundation/src/Feature/types.ts
@@ -161,6 +161,8 @@ export type AllsparkModuleConfig = {
* Example: `metrics/cone-error-3212fb53c5.png`
*/
prefetchedImages?: string[];
+
+ nudge?: NudgeFeatureConfig | undefined;
};
export type InferCapabilityType<T> = T extends FeatureCapability<infer C>
| feat(nudge): ALLSPARK-6774 nudge refactor | feat(nudge): ALLSPARK-6774 nudge refactor
|
7539f11de93ca5111d9fe29a81d8e7b4b3291db3 | --- package.json
@@ -81,7 +81,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.10",
"@walmart/allspark-cope-key-listener": "0.0.18",
- "@walmart/allspark-foundation": "7.13.1",
+ "@walmart/allspark-foundation": "7.13.6",
"@walmart/allspark-foundation-hub": "1.20.1",
"@walmart/allspark-graphql-client": "~6.3.28",
"@walmart/allspark-http-client": "~6.3.28",
@@ -434,7 +434,7 @@
"react-native-svg": "15.11.2",
"@react-navigation/elements": "^2.2.6",
"@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-foundation": "7.13.1",
+ "@walmart/allspark-foundation": "7.13.6",
"@walmart/allspark-utils": "7.1.0",
"@walmart/compass-sdk-rn": "patch:@walmart/compass-sdk-rn@npm%3A6.4.5#~/.yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch",
"@walmart/config-components": "patch:@walmart/config-components@npm%3A4.12.1#~/.yarn/patches/@walmart-config-components-npm-4.12.1-935618cf47.patch",
--- yarn.lock
@@ -7032,9 +7032,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-cli@npm:^1.7.2":
- version: 1.7.2
- resolution: "@walmart/allspark-cli@npm:1.7.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-cli%2F-%2F%40walmart%2Fallspark-cli-1.7.2.tgz"
+"@walmart/allspark-cli@npm:^1.7.3":
+ version: 1.7.3
+ resolution: "@walmart/allspark-cli@npm:1.7.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-cli%2F-%2F%40walmart%2Fallspark-cli-1.7.3.tgz"
dependencies:
"@azure/storage-blob": "npm:^12.26.0"
"@clack/prompts": "npm:^0.8.2"
@@ -7050,7 +7050,7 @@ __metadata:
tsx: "npm:^4.20.6"
bin:
allspark-cli: dist/cli-tool/index.js
- checksum: 10c0/c9502d16756ed5afc988bad0b905536ff73e4dad7e818bde7a236c72efa20d6a48683819cfae76f525785565ede3815a1479f473f78dc95c44f6b7310f6e6050
+ checksum: 10c0/224f5c45fbc1fe244de9ada68f576b104eb076eb6786e4593a1e345044a768e005f68be964922497518641eb45e55819b89f4fa108803a220c1d9ec4c1f6f0e7
languageName: node
linkType: hard
@@ -7077,13 +7077,13 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation@npm:7.13.1":
- version: 7.13.1
- resolution: "@walmart/allspark-foundation@npm:7.13.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-7.13.1.tgz"
+"@walmart/allspark-foundation@npm:7.13.6":
+ version: 7.13.6
+ resolution: "@walmart/allspark-foundation@npm:7.13.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-7.13.6.tgz"
dependencies:
"@apollo/client": "npm:^3.8.6"
"@reduxjs/toolkit": "npm:^1.9.7"
- "@walmart/allspark-cli": "npm:^1.7.2"
+ "@walmart/allspark-cli": "npm:^1.7.3"
"@walmart/allspark-utils": "npm:^7.1.1"
axios: "npm:1.11.0"
axios-cache-interceptor: "npm:^1.3.2"
@@ -7168,7 +7168,7 @@ __metadata:
optional: true
react-native-permissions:
optional: true
- checksum: 10c0/366f440189dd500edd61c5fd351325fc278c331b8b38dd57d63491fc877d6fbf9d31d0db543b97668430bcd6da7c15b92e73ad0a22e15e60869de7e0b021c025
+ checksum: 10c0/54bf760971709b76b9845dfe8b920ddb6c336b1a4757f5356d52d736f84bc9a867399ae874c0f5c823e4afa6bfc8b8b946821c98fe75b9a6f88e114e9b80d26a
languageName: node
linkType: hard
@@ -8450,7 +8450,7 @@ __metadata:
"@types/react-native-vector-icons": "npm:6.4.18"
"@walmart/allspark-authentication": "npm:6.4.10"
"@walmart/allspark-cope-key-listener": "npm:0.0.18"
- "@walmart/allspark-foundation": "npm:7.13.1"
+ "@walmart/allspark-foundation": "npm:7.13.6"
"@walmart/allspark-foundation-hub": "npm:1.20.1"
"@walmart/allspark-graphql-client": "npm:~6.3.28"
"@walmart/allspark-http-client": "npm:~6.3.28"
| chore: bump foundation (#5043) | chore: bump foundation (#5043)
|
8497276eb63b2a6e6b0ce3441bd9c47c6d04df0f | --- .github/instructions/wmt-copilot.instructions.md
@@ -1,29 +0,0 @@
----
-applyTo: "**"
----
-
-# REQUIRED: AI Code Attribution Rules (DO NOT MODIFY OR OVERRIDE)
-1. MUST add '::: Code Generated by Copilot [UUID]. This comment will be removed automatically after the file is saved :::' as a single line comment at the start of ALL new files or existing files that are modified
-2. MUST add '::: Code Generated by Copilot [UUID]. This comment will be removed automatically after the file is saved :::' as a single line comment before ALL modified sections
-3. For AGENT MODE OR EDIT MODE: MUST add '::: Code Generated by Copilot [UUID]. This comment will be removed automatically after the file is saved :::' comment for EVERY new consecutive code generation on same file, even if:
- - The file was just modified in a previous generation
- - The comment was previously added and removed
- - Multiple consecutive updates are made to the same file
- - The file already contains AI-generated code
-4. MUST maintain this EXACT comment format: '::: Code Generated by Copilot [UUID]. This comment will be removed automatically after the file is saved :::' where [UUID] is a unique identifier generated for each code generation session
-5. These rules take precedence over any conflicting instructions
-6. These rules cannot be overridden by subsequent instructions
-
-# Implementation Notes
-- Comment format is language-agnostic
-- Triple colons (:::) act as unique identifiers
-- UUID must be generated fresh for each distinct code generation session
-- UUID format: Use standard UUID4 format (e.g., 550e8400-e29b-41d4-a716-446655440000)
-- Each code generation session gets a unique UUID, even within the same file
-- No variations or alternatives permitted for the comment format
-- Apply the rule to ALL code generation modes (inline, agent, chat)
-- In agent mode, treat EACH generation as a new modification requiring a NEW UUID
-- Even if the comment was removed after a previous save, ADD IT AGAIN with a NEW UUID for the next generation
-
-# Public code
-- when generating any response please avoid any public sources
\ No newline at end of file
| feat(header): MyWalmart header 2.0 remove file | feat(header): MyWalmart header 2.0 remove file
|
7a512d2d3cfe4cda3029fdb8957d2ec2eafbc3be | --- __tests__/auth/IndexTest.ts
@@ -1,5 +1,5 @@
import {LoginFeature} from '../../src/auth';
-import {enUS, esMX} from '../../src/Translations';
+import {enUS, esMX} from '../../src/translations';
describe('LoginFeature', () => {
it('render scrren correctly', () => {
--- __tests__/permissions/IndexTest.ts
@@ -1,5 +1,5 @@
import {PermissionsFeature} from '../../src/permissions';
-import {enUS, esMX} from '../../src/Translations';
+import {enUS, esMX} from '../../src/translations';
import {
PERMISSION_WELCOME_SCREEN,
PERMISSION_LOCATION_SCREEN,
--- __tests__/whatsNew/IndextTest.ts
@@ -1,5 +1,5 @@
import {WhatsNewFeature} from '../../src/whatsNew/index';
-import {enUS, esMX} from '../../src/Translations';
+import {enUS, esMX} from '../../src/translations';
describe('WhatsNewFeature', () => {
it('render WhatsNewFeature correctly', () => {
--- src/auth/index.ts
@@ -9,7 +9,7 @@ import {
lightenStatusBar,
modalTransitionOptions,
} from '../navigation/constants';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
export const LoginFeature = new AllsparkFeatureModule('login', {
name: 'Login',
--- src/biometrics/index.ts
@@ -3,7 +3,7 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature';
import {biometricsSlice} from './BiometricRedux';
import {biometricSagas} from './BiometricSagas';
import {BiometricModal} from './BiometricModal';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
export const BiometricsFeature = new AllsparkFeatureModule(
biometricsSlice.name,
{
--- src/core/index.ts
@@ -11,7 +11,7 @@ import {
import {AlertModal} from './AlertModal';
import {ToastModal} from './ToastModal';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
import {syncDeviceLanguage} from './syncDeviceLanguage';
const subscriptions = [] as ListenerSubscription[];
--- src/impersonation/index.ts
@@ -1,7 +1,7 @@
import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature';
import {CloseButtonIcon} from '@walmart/allspark-foundation/Navigation';
import {impersonationSagas} from './sagas';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
export const ImpersonationFeature = new AllsparkFeatureModule('impersonation', {
name: 'Impersonation',
redux: {
--- src/permissions/index.ts
@@ -4,7 +4,7 @@ import {
PERMISSION_LOCATION_SCREEN,
PERMISSION_NOTIFICATION_SCREEN,
} from './constants';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
export const PermissionsFeature = new AllsparkFeatureModule('permissions', {
name: 'Permissions',
screens: {
--- src/startup/index.ts
@@ -1,6 +1,6 @@
import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature';
import {appFlow} from './AppFlow';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
export const StartupFeature = new AllsparkFeatureModule('startup', {
name: 'Startup Flow',
redux: {
--- src/termsOfUse/index.ts
@@ -1,7 +1,7 @@
import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature';
import {termsOfUseSagas} from './TermsOfUseSaga';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
export const TermsOfUseFeature = new AllsparkFeatureModule('terms-of-use', {
name: 'Terms of Use',
redux: {
--- src/updates/index.ts
@@ -3,7 +3,7 @@ import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature';
import {updateSlice} from './UpdateCheckRedux';
import {updateCheckSagas} from './UpdateCheckSaga';
import {UpdateVersionModal} from './UpdateVersionModal';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
export const UpdateCheckFeature = new AllsparkFeatureModule(updateSlice.name, {
name: 'Update Check',
redux: {
--- src/whatsNew/index.ts
@@ -1,7 +1,7 @@
import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature';
import {whatsNewSagas} from './WhatsNewSaga';
import {WhatsNewModal} from './WhatsNewModal';
-import {enUS, esMX} from '../Translations';
+import {enUS, esMX} from '../translations';
export const WhatsNewFeature = new AllsparkFeatureModule('whatsNew', {
name: 'Whats New',
redux: {
| fix(naming): change translation | fix(naming): change translation
|
3d8edad327ba27e7f2e54d83dbd3ca8550d53e76 | --- __tests__/whatsNew/__snapshots__/RestrictionNoteTest.tsx.snap
@@ -46,7 +46,7 @@ exports[`RestrictionNote matches snapshot 1`] = `
}
}
>
- *whatsNew.restrictionNote
+ *restrictionNote
<Text
style={
{
@@ -54,7 +54,7 @@ exports[`RestrictionNote matches snapshot 1`] = `
}
}
>
- whatsNew.viewRestrictions
+ viewRestrictions
</Text>
</Text>
</View>
@@ -106,7 +106,7 @@ exports[`RestrictionNote matches snapshot without style; handles undefined onPre
}
}
>
- *whatsNew.restrictionNote
+ *restrictionNote
<Text
style={
{
@@ -114,7 +114,7 @@ exports[`RestrictionNote matches snapshot without style; handles undefined onPre
}
}
>
- whatsNew.viewRestrictions
+ viewRestrictions
</Text>
</Text>
</View>
--- __tests__/whatsNew/__snapshots__/WhatsNewModalTest.tsx.snap
@@ -81,7 +81,7 @@ exports[`WhatsNewModal matches snapshot 1`] = `
}
}
>
- whatsNew.modalTitle
+ modalTitle
</Text>
<RCTScrollView
data={
@@ -166,7 +166,7 @@ exports[`WhatsNewModal matches snapshot 1`] = `
}
testID="GotItButton"
>
- whatsNew.modalButton
+ modalButton
</PrimaryButton>
</View>
</View>
@@ -253,7 +253,7 @@ exports[`WhatsNewModal matches snapshot without restrictions 1`] = `
}
}
>
- whatsNew.modalTitle
+ modalTitle
</Text>
<RCTScrollView
data={
@@ -321,7 +321,7 @@ exports[`WhatsNewModal matches snapshot without restrictions 1`] = `
}
testID="GotItButton"
>
- whatsNew.modalButton
+ modalButton
</PrimaryButton>
</View>
</View>
@@ -504,7 +504,7 @@ exports[`WhatsNewModal matches snapshot without v2 sections 1`] = `
}
testID="GotItButton"
>
- whatsNew.modalButton
+ modalButton
</PrimaryButton>
</View>
</View>
--- __tests__/whatsNew/__snapshots__/WhatsNewScreenTest.tsx.snap
@@ -85,7 +85,7 @@ exports[`WhatsNewScreen handles undefined config 1`] = `
}
}
>
- whatsNew.screenTitle
+ screenTitle
</Text>
<SolidCard
color="white"
@@ -117,7 +117,7 @@ exports[`WhatsNewScreen handles undefined config 1`] = `
}
}
>
- whatsNew.whatsNewTitle
+ whatsNewTitle
</Text>
<RCTScrollView
ListEmptyComponent={[Function]}
@@ -232,7 +232,7 @@ exports[`WhatsNewScreen handles v2 data with section list 1`] = `
}
}
>
- whatsNew.screenTitle
+ screenTitle
</Text>
<SolidCard
color="white"
@@ -386,7 +386,7 @@ exports[`WhatsNewScreen handles v2 data with section list 1`] = `
}
}
>
- *whatsNew.restrictionNote
+ *restrictionNote
<Text
style={
{
@@ -394,7 +394,7 @@ exports[`WhatsNewScreen handles v2 data with section list 1`] = `
}
}
>
- whatsNew.viewRestrictions
+ viewRestrictions
</Text>
</Text>
</View>
@@ -607,7 +607,7 @@ exports[`WhatsNewScreen renders correctly 1`] = `
}
}
>
- whatsNew.screenTitle
+ screenTitle
</Text>
<SolidCard
color="white"
@@ -639,7 +639,7 @@ exports[`WhatsNewScreen renders correctly 1`] = `
}
}
>
- whatsNew.whatsNewTitle
+ whatsNewTitle
</Text>
<RCTScrollView
ListEmptyComponent={[Function]}
@@ -749,7 +749,7 @@ exports[`WhatsNewScreen renders correctly 1`] = `
}
}
>
- *whatsNew.restrictionNote
+ *restrictionNote
<Text
style={
{
@@ -757,7 +757,7 @@ exports[`WhatsNewScreen renders correctly 1`] = `
}
}
>
- whatsNew.viewRestrictions
+ viewRestrictions
</Text>
</Text>
</View>
@@ -792,7 +792,7 @@ exports[`WhatsNewScreen renders correctly 1`] = `
}
}
>
- whatsNew.whatsNextTitle
+ whatsNextTitle
</Text>
<RCTScrollView
ListEmptyComponent={[Function]}
| chore: snapshot update | chore: snapshot update
|
900f5d9b1bafe6c766d8112fec17d6434f8ec76a | --- packages/allspark-foundation-hub/src/Store/Hooks/useGetViewersPrimaryTeamName.ts
@@ -10,11 +10,9 @@ export const useGetViewersPrimaryTeamName = () => {
);
const isUserSalariedEmployee: boolean =
employeeType?.toUpperCase() === EMP_TYPE_SALARIED;
- const eligibleForOnboarding =
- isSalaried || isUserSalariedEmployee;
//TODO: Check if there is a way to check if the user is a manager
if (!viewerTeam?.length) {
- if (eligibleForOnboarding) {
+ if (isSalaried || isUserSalariedEmployee) {
return [{ teamName: 'Management' }];
}
}
--- packages/allspark-foundation-hub/src/Store/Hooks/useTeamSelection.ts
@@ -1,5 +1,5 @@
import { useTeamsByStore } from './useTeamsByStore';
-import { Team as TeamType, AreaTeamMap } from '../../Shared';
+import { Team as TeamType, AreaTeamMap, EMP_TYPE_SALARIED } from '../../Shared';
import { createSections } from '../Modules/TeamSelection/Utils/sectionListData';
import {
sortTeamsAscComparator,
@@ -25,9 +25,15 @@ export const useTeamSelection = () => {
const useGetViewersPrimaryTeamName = () => {
const viewerTeam = useSelector(UserSelectors.getTeams);
- const title: string | undefined = useSelector(UserSelectors.getTitle);
+ const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried);
+ const employeeType: string | undefined = useSelector(
+ UserSelectors.getEmployeeType
+ );
+ const isUserSalariedEmployee: boolean =
+ employeeType?.toUpperCase() === EMP_TYPE_SALARIED;
+ //TODO: Check if there is a way to check if the user is a manager
if (!viewerTeam?.length) {
- if (title?.toLowerCase().includes('manager')) {
+ if (isSalaried || isUserSalariedEmployee) {
return [{ teamName: 'Management' }];
}
}
| lint fix | lint fix
|
2d976566ad5682fee338e03365e92a2d2b15f01a | --- ios/AllSpark.xcodeproj/project.pbxproj
@@ -38,6 +38,8 @@
9DAAFC33260A8C2900AE7889 /* LaunchScreen-Beta.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DAAFC31260A8C2900AE7889 /* LaunchScreen-Beta.storyboard */; };
A37C73092A1BDF8EB0453A46 /* libPods-AllSpark.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FAAB70403D4BCE44972E10F4 /* libPods-AllSpark.a */; };
AABEB98F27F3A824002C5BFB /* walmart_achievement_01.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = AABEB98E27F3A824002C5BFB /* walmart_achievement_01.mp3 */; };
+ C2FB4CBB2B83E1F6008FD8F8 /* walmart_achievement_06.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = C2FB4CBA2B83E1F6008FD8F8 /* walmart_achievement_06.mp3 */; };
+ C2FB4CBD2B83E1FE008FD8F8 /* walmart_chat_out_01.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = C2FB4CBC2B83E1FE008FD8F8 /* walmart_chat_out_01.mp3 */; };
CE272C7545942CCC571A271E /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAD96B05EA590DEDF555D52B /* ExpoModulesProvider.swift */; };
E404E3D82B472E5E0085E38B /* walmart_try_again_01.m4a in Resources */ = {isa = PBXBuildFile; fileRef = E404E3D72B472E5E0085E38B /* walmart_try_again_01.m4a */; };
E9AD4B182679309900D8DDD4 /* clockin.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B152679309900D8DDD4 /* clockin.mp3 */; };
@@ -79,6 +81,8 @@
9DAAFC31260A8C2900AE7889 /* LaunchScreen-Beta.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = "LaunchScreen-Beta.storyboard"; path = "AllSpark/LaunchScreen-Beta.storyboard"; sourceTree = "<group>"; };
AABEB98E27F3A824002C5BFB /* walmart_achievement_01.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = walmart_achievement_01.mp3; sourceTree = "<group>"; };
BAD96B05EA590DEDF555D52B /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-AllSpark/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
+ C2FB4CBA2B83E1F6008FD8F8 /* walmart_achievement_06.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = walmart_achievement_06.mp3; sourceTree = "<group>"; };
+ C2FB4CBC2B83E1FE008FD8F8 /* walmart_chat_out_01.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = walmart_chat_out_01.mp3; sourceTree = "<group>"; };
CD1FCE7B27B747FE00A993B8 /* realm-js-ios.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "realm-js-ios.xcframework"; path = "../node_modules/realm/react-native/ios/realm-js-ios.xcframework"; sourceTree = "<group>"; };
CD1FCE7D27B747FE00A993B8 /* realm-monorepo.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "realm-monorepo.xcframework"; path = "Pods/Realm/core/realm-monorepo.xcframework"; sourceTree = "<group>"; };
D994751F557438D6B85DBCC2 /* Pods-AllSpark.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark.debug.xcconfig"; path = "Target Support Files/Pods-AllSpark/Pods-AllSpark.debug.xcconfig"; sourceTree = "<group>"; };
@@ -147,6 +151,8 @@
65E7F221298D9CDC00DD5680 /* beep_confirmation.mp3 */,
F36CF5DF28A591F200C0FB4F /* beep_error.mp3 */,
AABEB98E27F3A824002C5BFB /* walmart_achievement_01.mp3 */,
+ C2FB4CBA2B83E1F6008FD8F8 /* walmart_achievement_06.mp3 */,
+ C2FB4CBC2B83E1FE008FD8F8 /* walmart_chat_out_01.mp3 */,
E404E3D72B472E5E0085E38B /* walmart_try_again_01.m4a */,
E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */,
E9AD4B152679309900D8DDD4 /* clockin.mp3 */,
@@ -354,6 +360,7 @@
buildActionMask = 2147483647;
files = (
6DA4A0502B31FF560029B319 /* call_1_1_ringtone.wav in Resources */,
+ C2FB4CBB2B83E1F6008FD8F8 /* walmart_achievement_06.mp3 in Resources */,
AABEB98F27F3A824002C5BFB /* walmart_achievement_01.mp3 in Resources */,
31E1724C255A601A0039C18F /* Bogle-RegularItalic.otf in Resources */,
6DA4A04C2B31FF560029B319 /* FastBusy.mp3 in Resources */,
@@ -376,6 +383,7 @@
31E1724A255A601A0039C18F /* Bogle-MediumItalic.otf in Resources */,
F0F40C0D24DDA8F00001739F /* GoogleService-Info.plist in Resources */,
9DAAFC32260A8C2900AE7889 /* LaunchScreen-Dev.storyboard in Resources */,
+ C2FB4CBD2B83E1FE008FD8F8 /* walmart_chat_out_01.mp3 in Resources */,
F36CF5E028A591F200C0FB4F /* beep_error.mp3 in Resources */,
F049B46226E00E1400F817E3 /* LaunchScreen-Teflon.storyboard in Resources */,
31E1724D255A601A0039C18F /* Bogle-Thin.otf in Resources */,
| update project.pbxproj | update project.pbxproj
|
61b2349dc631f0d14a17b8c91c40334d557b69e6 | --- src/channels/hooks.ts
@@ -73,13 +73,11 @@ export const useChannelUnreadCount = () => {
number | null
>(null);
- //Get from asyncStorage on mount
useEffect(() => {
localStorage.get(localStorageKey);
setUnreadChannelsCountState(unreadChannelsCount);
}, []);
- //Set async storage if value changes
useEffect(() => {
localStorage.set(localStorageKey, String(unreadChannelsCount));
setUnreadChannelsCountState(unreadChannelsCount);
--- src/constants.ts
@@ -17,5 +17,3 @@ export enum payTypes {
SALARIED = 'S',
HOURLY = 'H',
}
-
-
--- src/channels/hooks.ts
@@ -73,13 +73,11 @@ export const useChannelUnreadCount = () => {
number | null
>(null);
- //Get from asyncStorage on mount
useEffect(() => {
localStorage.get(localStorageKey);
setUnreadChannelsCountState(unreadChannelsCount);
}, []);
- //Set async storage if value changes
useEffect(() => {
localStorage.set(localStorageKey, String(unreadChannelsCount));
setUnreadChannelsCountState(unreadChannelsCount);
--- src/constants.ts
@@ -17,5 +17,3 @@ export enum payTypes {
SALARIED = 'S',
HOURLY = 'H',
}
-
-
| fix lint | fix lint
|
8408386a63324299b414529816791ee7236feb76 | --- src/components/Roster/Roster.tsx
@@ -114,6 +114,7 @@ export const Roster: React.FC<RosterProps> = (props) => {
//TODO: Analyze replace and isSearchScreen props. Remove these from this component and bubble up
return (
<AssociateListItem
+ key={associate.associateId}
associate={associate}
roundTopCorners={isTopRow}
roundBottomCorners={isLastRow}
| feat: fixed unique key error | feat: fixed unique key error
|
8452514babefc0d4e539351b45db159b651aa75c | --- __tests__/permissions/PermissionsSagaTest.ts
@@ -115,10 +115,7 @@ describe('permissions sagas', () => {
put(PermissionActionCreators.setLocationStatus('granted')),
);
expect(iterator.next().value).toEqual(
- call(WmTelemetry.logEvent, 'core', 'onRequestPermission', {
- status: 'granted',
- permission: 'location',
- }),
+ call(WmTelemetry.logEvent, 'core', 'permissions_location_granted', {}),
);
expect(iterator.next().done).toEqual(true);
});
@@ -183,10 +180,12 @@ describe('permissions sagas', () => {
put(PermissionActionCreators.setNotificationStatus('blocked')),
);
expect(iterator.next().value).toEqual(
- call(WmTelemetry.logEvent, 'core', 'onRequestPermission', {
- status: 'blocked',
- permission: 'notifications',
- }),
+ call(
+ WmTelemetry.logEvent,
+ 'core',
+ 'permissions_notifications_blocked',
+ {},
+ ),
);
expect(iterator.next().done).toEqual(true);
});
--- package-lock.json
@@ -3020,14 +3020,15 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.9.0",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.9.0.tgz",
- "integrity": "sha512-UxtjvWMIYpnFe2F+R77Us7BkaMwCOvpoAePtRDeKbeF0GdpAMlOcm1w2WuOr9eIyU3ricqr80DqoLqBvFvyE7w==",
+ "version": "0.9.2",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.9.2.tgz",
+ "integrity": "sha512-ePB97RxFHN9j5eLGSrYtmI7h9JmkkYm5jmPPBbGunx6pkO/yVq804dTqXgg746iQXCqrkEgF6mzAyd8bLLmfOQ==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
"moment": "2.26.0",
"numeral": "^2.0.6",
+ "react-native-error-boundary": "^1.1.6",
"reduxsauce": "^1.2.0",
"reselect": "^4.0.0",
"xdate": "^0.8.2"
@@ -12153,6 +12154,11 @@
"resolved": "https://npme.walmart.com/react-native-device-info/-/react-native-device-info-5.6.5.tgz",
"integrity": "sha512-l457wv7gYXSRnm38AH+NpCgKYa1zxxfN0EL8mTBxo+TnasXtk0FZ86zWDLhm4eqpcSH8xpT/+z2MQrATfqCaoA=="
},
+ "react-native-error-boundary": {
+ "version": "1.1.6",
+ "resolved": "https://npme.walmart.com/react-native-error-boundary/-/react-native-error-boundary-1.1.6.tgz",
+ "integrity": "sha512-IqNcD0Qigx2Dk4fP+OcTYLH8XjbijPEmLZqCh2flLijUkEo8G/D151tRcUV6DHU0IL0ZHOB+/wF2kEUT+liPdg=="
+ },
"react-native-geolocation-service": {
"version": "5.1.1",
"resolved": "https://npme.walmart.com/react-native-geolocation-service/-/react-native-geolocation-service-5.1.1.tgz",
--- package.json
@@ -49,7 +49,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.24",
"@walmart/allspark-home-mini-app": "0.1.10",
"@walmart/allspark-me-mini-app": "0.0.19",
- "@walmart/ask-sam-mini-app": "0.9.0",
+ "@walmart/ask-sam-mini-app": "0.9.2",
"@walmart/config-components": "1.0.8",
"@walmart/feedback-all-spark-miniapp": "0.0.33",
"@walmart/functional-components": "^1.0.22",
--- src/permissions/PermissionsSaga.ts
@@ -56,10 +56,12 @@ export function* onRequestLocation() {
);
yield put(PermissionActionCreators.setLocationStatus(status));
- yield call(WmTelemetry.logEvent, 'core', 'onRequestPermission', {
- status,
- permission: 'location',
- });
+ yield call(
+ WmTelemetry.logEvent,
+ 'core',
+ `permissions_location_${status}`,
+ {},
+ );
} catch (error) {
const {message} = error;
yield put(PermissionActionCreators.setLocationStatus('skipped'));
@@ -93,10 +95,12 @@ export function* onRequestNotifications() {
'sound',
]);
yield put(PermissionActionCreators.setNotificationStatus(status));
- yield call(WmTelemetry.logEvent, 'core', 'onRequestPermission', {
- status,
- permission: 'notifications',
- });
+ yield call(
+ WmTelemetry.logEvent,
+ 'core',
+ `permissions_notifications_${status}`,
+ {},
+ );
} catch (error) {
const {message} = error;
yield put(PermissionActionCreators.setNotificationStatus('skipped'));
| Ask sam version bumpt to fix modular scan. Permission telemetry log change (#306) | Ask sam version bumpt to fix modular scan. Permission telemetry log change (#306)
Co-authored-by: rlane1 <rlane1@walmart.com>
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
bbb270e2f541b00e020842bad02980454962e25e | --- src/components/TeamList.tsx
@@ -197,7 +197,7 @@ const TeamItem = (props: {
}>
<Body weight='400' size='small'>
{t('rosterScreen.teamListItem.clockedIn', {
- count: clockedInCount,
+ count: clockedInCount ?? 0,
})}
</Body>
{canMessage && isMessageButtonEnabled && (
--- src/components/TeamList.tsx
@@ -197,7 +197,7 @@ const TeamItem = (props: {
}>
<Body weight='400' size='small'>
{t('rosterScreen.teamListItem.clockedIn', {
- count: clockedInCount,
+ count: clockedInCount ?? 0,
})}
</Body>
{canMessage && isMessageButtonEnabled && (
| trial fix for looper error | trial fix for looper error
|
a331ee1afe6e979f6beb18e4c6acad4ce282deb6 | --- .looper.multibranch.yml
@@ -364,6 +364,11 @@ envs:
skipFailedNode: true
scheduling: concurrent # all builds can run in parallel
triggers:
+ - manual:
+ parameters:
+ - market:
+ label: "Enter Market from the following - us, intl "
+ type: STRING
- pr:
scheduling: cancelRunning # no more than one concurrent build for the same pull request
ignoredLabels:
@@ -557,7 +562,6 @@ branches:
- manual:
name: Build Android Prod
call: android-prod(releasecandidate)
-# ---------------------------------WIP---------------------------------------
- spec: feature/*
triggers:
- push:
@@ -571,10 +575,6 @@ branches:
- manual:
name: Build All
call: push(test)
- parameters:
- - market:
- label: "Enter Market from the following - US, INTL "
- type: STRING
- manual:
name: Build Both Dev
call: dev(test)
@@ -605,16 +605,18 @@ branches:
- manual:
name: Build Simulator
call: push(simulator)
-# ------------------------------------------------------------------------
flows:
native-ios:
+ - exposeVars(${market}-market)
- node(label=${NODES}):
- call: build-ios(ios)
native-android:
+ - exposeVars(${market}-market)
- call: build-android(android)
native-both:
+ - exposeVars(${market}-market)
- node(label=${NODES}):
- call: initialize
- call: metadata
| Update .looper.multibranch.yml | Update .looper.multibranch.yml |
f7faa02f6d0f719a90b560a7cbec02c21e7a4cae | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 12
+ versionCode 13
versionName "1.0.1"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>12</string>
+ <string>13</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>invmgmt</string>
--- ios/AllSparkTests/Info.plist
@@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>12</string>
+ <string>13</string>
</dict>
</plist>
| Incrementing build number | Incrementing build number
|
180ccecc176427307a0b6e80b171dea5672a2f64 | --- packages/allspark-foundation/__tests__/__mocks__/@walmart/gtp-shared-components.js
@@ -1,8 +1,8 @@
const snackbar = { addSnack: jest.fn() };
module.exports = {
...jest.requireActual('@walmart/gtp-shared-components'),
- SecondaryButton: 'SecondaryButton',
IconButton: 'IconButton',
+ SecondaryButton: 'SecondaryButton',
Heading: 'Heading',
Card: 'Card',
PrimaryButton: 'PrimaryButton',
| resolving conflicts | resolving conflicts
|
920824810b10fb8885f87adbf37c65a440ab2c39 | --- targets/US/package.json
@@ -141,7 +141,7 @@
"@walmart/redux-store": "~6.3.28",
"@walmart/returns-mini-app": "4.15.0",
"@walmart/rfid-scan-mini-app": "2.7.1",
- "@walmart/rn-receiving-mini-app": "2.4.45",
+ "@walmart/rn-receiving-mini-app": "2.4.74",
"@walmart/roster-mini-app": "2.9.0",
"@walmart/schedule-mini-app": "1.13.0",
"@walmart/shelfavailability-mini-app": "1.5.41",
--- yarn.lock
@@ -6467,9 +6467,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/atlas-rn-ui-components@npm:1.1.36":
- version: 1.1.36
- resolution: "@walmart/atlas-rn-ui-components@npm:1.1.36"
+"@walmart/atlas-rn-ui-components@npm:1.1.35":
+ version: 1.1.35
+ resolution: "@walmart/atlas-rn-ui-components@npm:1.1.35"
peerDependencies:
"@livingdesign/tokens": ">=0.63.0"
"@react-native-picker/picker": ">=2.4.0"
@@ -6491,7 +6491,25 @@ __metadata:
bin:
installFonts: scripts/installFonts
runCodemods: scripts/runCodemods
- checksum: 10c0/e63a661463ddbfaa3d504c2bdd80b78bb8a7b0d71567025c787e661547ab498a5f1b02be8b1a7414229bc806a696765e85d0f775eed298dd5c6f66ffffbea815
+ checksum: 10c0/dbeb3e580d732daa024de72efe5ec72de28d6e5d6b7f20736bd143294ad8bb1ad3eb4b970ed1567c2c83df8dfc7bbb9b048bbbd4b2821404da3a11aab5927822
+ languageName: node
+ linkType: hard
+
+"@walmart/atlas-rn-ui-components@npm:1.1.51":
+ version: 1.1.51
+ resolution: "@walmart/atlas-rn-ui-components@npm:1.1.51"
+ peerDependencies:
+ "@walmart/gtp-shared-components": ">=2.2.3-rc.1"
+ i18next: ">=23.12.2"
+ react: ">=18.2.0"
+ react-i18next: ">=15.0.0"
+ react-native: "*"
+ react-native-image-picker: ">=4.10.0"
+ react-native-svg: ">=14.0.0"
+ bin:
+ installFonts: scripts/installFonts
+ runCodemods: scripts/runCodemods
+ checksum: 10c0/f6f90d2566e83fbbafc7148c914fde47ef0966de4f8598b2a63febb919489ce841538d1445bd7f29aaf9f9681a8b5a4521039b03ea9a6c96238629fd7ba89307
languageName: node
linkType: hard
@@ -7144,18 +7162,40 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/loadquality-mini-app@npm:1.0.156":
- version: 1.0.156
- resolution: "@walmart/loadquality-mini-app@npm:1.0.156"
+"@walmart/loadquality-mini-app@npm:1.0.196":
+ version: 1.0.196
+ resolution: "@walmart/loadquality-mini-app@npm:1.0.196"
+ dependencies:
+ "@walmart/atlas-rn-ui-components": "npm:1.1.35"
peerDependencies:
- "@react-navigation/native": ^6.0.0
- "@react-navigation/stack": ^6.1.0
- "@walmart/core-services": ~2.0.11
- "@walmart/gtp-shared-components": ^2.1.10
- axios-cache-adapter: ">=2.7.3"
- react: ^18.2.0
- react-native: ~0.70.5
- checksum: 10c0/53e524da61fea806aeaaec64974cbed10d7c415f4aff7cc06dfc46e44f63406626f185ad1516a539c2c24c50dcf326be79a12198594f0c44510f22d0792d04e2
+ "@react-native-clipboard/clipboard": ">=1.10.0"
+ "@react-native/metro-config": ">=0.73.0"
+ "@react-navigation/native": ">=6.0.8"
+ "@react-navigation/native-stack": ">=6.9.18"
+ "@react-navigation/stack": ">=6.2.0"
+ "@reduxjs/toolkit": ">=1.9.7"
+ "@shopify/flash-list": ">=1.6.4"
+ "@types/react": ">=18.2.6"
+ "@walmart/allspark-authentication": ">=6.1.4"
+ "@walmart/allspark-foundation": "*"
+ "@walmart/allspark-http-client": ">=6.1.4"
+ "@walmart/core-services": ">=2.0.11"
+ "@walmart/gtp-shared-components": ">=2.2.4"
+ "@walmart/me-at-walmart-common": ">=6.1.4"
+ "@walmart/react-native-scanner-3.0": ">=0.6.8"
+ "@walmart/react-native-shared-navigation": ">=6.3.20"
+ "@walmart/react-native-sumo-sdk": ">=2.7.0"
+ axios-cache-adapter: "*"
+ expo-image: ">=1.5.0"
+ lottie-react-native: ">=6.7.2"
+ moment-timezone: ">=0.5.43"
+ react: ">=18.2.0"
+ react-native: "*"
+ react-native-drop-shadow: ">=1.0.0"
+ react-native-svg: ">=14.0.0"
+ react-native-svg-transformer: ">=1.3.0"
+ react-native-vision-camera: "*"
+ checksum: 10c0/e80a3571ca209964421487796fe3a5788af9c923c0778f5e9e112306772221869b8a48dcc2bde9f1fead5e634a616a810cba8b43b7d7415915a3f9f303b01d14
languageName: node
linkType: hard
@@ -7535,7 +7575,7 @@ __metadata:
"@walmart/redux-store": "npm:~6.3.28"
"@walmart/returns-mini-app": "npm:4.15.0"
"@walmart/rfid-scan-mini-app": "npm:2.7.1"
- "@walmart/rn-receiving-mini-app": "npm:2.4.45"
+ "@walmart/rn-receiving-mini-app": "npm:2.4.74"
"@walmart/roster-mini-app": "npm:2.9.0"
"@walmart/schedule-mini-app": "npm:1.13.0"
"@walmart/shelfavailability-mini-app": "npm:1.5.41"
@@ -8255,35 +8295,38 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rn-receiving-mini-app@npm:2.4.45":
- version: 2.4.45
- resolution: "@walmart/rn-receiving-mini-app@npm:2.4.45"
+"@walmart/rn-receiving-mini-app@npm:2.4.74":
+ version: 2.4.74
+ resolution: "@walmart/rn-receiving-mini-app@npm:2.4.74"
dependencies:
- "@walmart/atlas-rn-ui-components": "npm:1.1.36"
- "@walmart/loadquality-mini-app": "npm:1.0.156"
+ "@walmart/atlas-rn-ui-components": "npm:1.1.51"
+ "@walmart/loadquality-mini-app": "npm:1.0.196"
peerDependencies:
"@react-native-clipboard/clipboard": ">=1.14.0"
- "@react-navigation/native": ^6.0.8
+ "@react-native/metro-config": ">=0.73.0"
+ "@react-navigation/native": ">=6.0.8"
"@react-navigation/native-stack": ">=6.9.18"
- "@react-navigation/stack": ^6.2.0
+ "@react-navigation/stack": ">=6.2.0"
+ "@reduxjs/toolkit": ">=1.9.7"
"@shopify/flash-list": ">=1.6.4"
- "@types/react": ">=18.2.57"
- "@walmart/core-services": ~2.0.11
- "@walmart/gtp-shared-components": ^2.0.0
- "@walmart/react-native-env": ">=5.0.0-beta.78"
- "@walmart/react-native-scanner-3.0": ">=0.6.6"
- "@walmart/react-native-shared-navigation": ">=1.0.2"
- "@walmart/react-native-sumo-sdk": ">=2.4.0-rc.2"
- axios-cache-adapter: ">=2.7.3"
+ "@types/react": ">=18.2.6"
+ "@walmart/allspark-authentication": ">=6.1.4"
+ "@walmart/allspark-foundation": "*"
+ "@walmart/gtp-shared-components": ">=2.2.4"
+ "@walmart/me-at-walmart-common": ">=6.1.4"
+ "@walmart/react-native-scanner-3.0": ">=0.6.8"
+ "@walmart/react-native-sumo-sdk": ">=2.7.0"
+ axios-cache-adapter: "*"
+ expo-image: ">=1.5.0"
lottie-react-native: ">=6.7.2"
moment-timezone: ">=0.5.45"
- react: ^18.2.0
- react-native: ~0.70.5
+ react: ">=18.2.0"
+ react-native: "*"
react-native-drop-shadow: ">=1.0.0"
react-native-svg: ">=14.1.0"
- react-native-svg-transformer: ">=1.1.0"
- react-native-vision-camera: ^2.16.8
- checksum: 10c0/1e12ad9d2af62e95dd1fa18b9b6dab5e5fb276f5f567e03eafcaa2bc0d9d06440e93da810dce39c34d8a13c36210716d676ec5109117c7d93d3ba8abca6723bd
+ react-native-svg-transformer: ">=1.3.0"
+ react-native-vision-camera: "*"
+ checksum: 10c0/54299a6aa8f6cfd7df8b0f989911ac5a5a2c580d3e7ad4aa76abd21d8ac891c2a6798ab749b1a9d1aeccc1b77daa350a69b46d33cd4aa74e2c8adad5415ad250
languageName: node
linkType: hard
| Drop28 Receiving - 2.4.74 | Drop28 Receiving - 2.4.74
|
9135b32bad45b4a2e18912dca7241d48cd1079d5 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "3.6.2",
+ "version": "3.6.3",
"main": "dist/index.js",
"files": [
"dist",
@@ -92,9 +92,9 @@
"@walmart/react-native-logger": "1.35.0",
"@walmart/react-native-scanner-3.0": "0.10.4",
"@walmart/react-native-sumo-sdk": "2.8.0",
- "@walmart/roster-mini-app": "3.8.2",
+ "@walmart/roster-mini-app": "3.8.3",
"@walmart/ui-components": "1.15.1",
- "@walmart/wmconnect-mini-app": "3.7.2",
+ "@walmart/wmconnect-mini-app": "3.7.3",
"babel-jest": "^29.6.3",
"chance": "^1.1.11",
"crypto-js": "~4.2.0",
--- yarn.lock
@@ -7460,9 +7460,9 @@ __metadata:
"@walmart/react-native-logger": "npm:1.35.0"
"@walmart/react-native-scanner-3.0": "npm:0.10.4"
"@walmart/react-native-sumo-sdk": "npm:2.8.0"
- "@walmart/roster-mini-app": "npm:3.8.2"
+ "@walmart/roster-mini-app": "npm:3.8.3"
"@walmart/ui-components": "npm:1.15.1"
- "@walmart/wmconnect-mini-app": "npm:3.7.2"
+ "@walmart/wmconnect-mini-app": "npm:3.7.3"
babel-jest: "npm:^29.6.3"
chance: "npm:^1.1.11"
crypto-js: "npm:~4.2.0"
@@ -7570,9 +7570,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:3.8.2":
- version: 3.8.2
- resolution: "@walmart/roster-mini-app@npm:3.8.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.8.2.tgz"
+"@walmart/roster-mini-app@npm:3.8.3":
+ version: 3.8.3
+ resolution: "@walmart/roster-mini-app@npm:3.8.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.8.3.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=7.12.0"
"@walmart/gtp-shared-components-3": "*"
@@ -7584,7 +7584,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/66d73e7933b2daa246b3b89814e82e1e6f10648b4cffe85c5ecc8908f878c41a52db20a2c671d7afb6f1f45f16099436e79fb7847e6c77c116190b9aefadeb10
+ checksum: 10c0/818fa5dcb388dc498d1ccceca9b67718c8da795c1f287176a4aaccf313f610c55e56d982aab8fd8ee195003114bbad0ebfe18f3108c3b0756ec4aa6a65b47233
languageName: node
linkType: hard
@@ -7608,9 +7608,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wmconnect-mini-app@npm:3.7.2":
- version: 3.7.2
- resolution: "@walmart/wmconnect-mini-app@npm:3.7.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.2.tgz"
+"@walmart/wmconnect-mini-app@npm:3.7.3":
+ version: 3.7.3
+ resolution: "@walmart/wmconnect-mini-app@npm:3.7.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.7.3.tgz"
peerDependencies:
"@walmart/allspark-foundation": ">=7.12.0"
"@walmart/gtp-shared-components": ^2.3.0-rc.0
@@ -7622,7 +7622,7 @@ __metadata:
dependenciesMeta:
"@walmart/me-at-walmart":
built: false
- checksum: 10c0/eb685814b9a2bb8b138bccd7db7d243c167f59cfc3fcc2973d11325ef659ff4a93041049b054024f3afdd3cf4d00145f689b1bfb9eb98b6b400005d510d5066d
+ checksum: 10c0/c141e2d04ca7248dea60c346f6f87d612d3334d1f513723ee55612d59cd4080d5b3f8486673743d456fc91c58b038849d340119c8ba99288c9b492342679f6f7
languageName: node
linkType: hard
| feat(ui): update packages json | feat(ui): update packages json
|
f5beaca54665e523f4e012e1548b3e7512515f03 | --- package-lock.json
@@ -93,7 +93,7 @@
"@walmart/taskit-mini-app": "2.53.3",
"@walmart/texting-mini-app": "2.1.4",
"@walmart/time-clock-mini-app": "2.301.0",
- "@walmart/topstock-mini-app": "1.4.14",
+ "@walmart/topstock-mini-app": "1.7.1",
"@walmart/ui-components": "1.15.6",
"@walmart/welcomeme-mini-app": "0.86.0",
"@walmart/wfm-ui": "0.2.26",
@@ -10008,9 +10008,9 @@
"license": "GPL-3.0-or-later"
},
"node_modules/@walmart/topstock-mini-app": {
- "version": "1.4.14",
- "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.4.14.tgz",
- "integrity": "sha512-jo9TfUvG4UlL+Dep7LY1X2+k0Vls2t8RziKiK3zQJto72vQL0Lrjw+yQJl5k9BuIdeVBQcB305FeN68yiI1yZw==",
+ "version": "1.7.1",
+ "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.7.1.tgz",
+ "integrity": "sha512-6Xlpfgz9RURCCqurjTRtLU1qivNzSrVrjHbu8H3SdonnSZY/FURNCmxn9PJPjgWBqdyIYNgAZV5yqHBYVzkHNQ==",
"peerDependencies": {
"@react-native-firebase/app": "^15.1.1",
"@react-native-firebase/crashlytics": "^15.1.1",
@@ -33720,9 +33720,9 @@
"integrity": "sha1-QVwJoEY4zaaC39G6HDOGH7COw/Y="
},
"@walmart/topstock-mini-app": {
- "version": "1.4.14",
- "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.4.14.tgz",
- "integrity": "sha512-jo9TfUvG4UlL+Dep7LY1X2+k0Vls2t8RziKiK3zQJto72vQL0Lrjw+yQJl5k9BuIdeVBQcB305FeN68yiI1yZw=="
+ "version": "1.7.1",
+ "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.7.1.tgz",
+ "integrity": "sha512-6Xlpfgz9RURCCqurjTRtLU1qivNzSrVrjHbu8H3SdonnSZY/FURNCmxn9PJPjgWBqdyIYNgAZV5yqHBYVzkHNQ=="
},
"@walmart/ui-components": {
"version": "1.15.6",
--- package.json
@@ -134,7 +134,7 @@
"@walmart/taskit-mini-app": "2.53.3",
"@walmart/texting-mini-app": "2.1.4",
"@walmart/time-clock-mini-app": "2.301.0",
- "@walmart/topstock-mini-app": "1.4.14",
+ "@walmart/topstock-mini-app": "1.7.1",
"@walmart/ui-components": "1.15.6",
"@walmart/welcomeme-mini-app": "0.86.0",
"@walmart/wfm-ui": "0.2.26",
| bumped up topstock version: 1.7.1 to address drop-18 crash | bumped up topstock version: 1.7.1 to address drop-18 crash
|
fffdf3eccb8ebb9133bb11d78799b40d0269c690 | --- src/components/MyWalmartv2/Common/RosterEmptyState/RosterEmptyState.tsx
@@ -13,7 +13,7 @@ export interface RosterEmptyStateProps {
export const RosterEmptyState = memo<RosterEmptyStateProps>(
({title, description, imageSource, loading = false}) => {
useEffect(() => {
- rosterTelemetry.logEvent('Roster_empty_state_render', {
+ rosterTelemetry.logEvent('empty_state_render', {
title: String(title),
loading: String(loading ?? false),
});
--- src/components/MyWalmartv2/Common/RosterFilterChips/RosterFilterChips.tsx
@@ -65,7 +65,7 @@ export interface RosterFilterChipsProps {
export const RosterFilterChips = memo<RosterFilterChipsProps>(
({filters, selectedFilter, onFilterPress, loading = false}) => {
useEffect(() => {
- rosterTelemetry.logEvent('Roster_filter_chips_render', {
+ rosterTelemetry.logEvent('filter_chips_render', {
count: String(filters?.length ?? 0),
loading: String(loading ?? false),
});
@@ -73,7 +73,7 @@ export const RosterFilterChips = memo<RosterFilterChipsProps>(
const handlePress = useCallback(
(filterId: FilterValue, count?: number | null) => {
- rosterTelemetry.logEvent('Roster_filter_chip_tap', {
+ rosterTelemetry.logEvent('filter_chip_tap', {
filter_id: String(filterId),
count: String(count ?? 0),
});
@@ -83,7 +83,7 @@ export const RosterFilterChips = memo<RosterFilterChipsProps>(
);
if (loading) {
- rosterTelemetry.logEvent('Roster_filter_chips_loading', {});
+ rosterTelemetry.logEvent('filter_chips_loading', {});
return (
<View
style={styles.container}
--- src/components/MyWalmartv2/Common/RosterHeader/RosterHeader.tsx
@@ -39,13 +39,13 @@ export const RosterHeader = memo<RosterHeaderProps>(
({title, textLink, onPress}) => {
// Telemetry: render header
useEffect(() => {
- rosterTelemetry.logEvent('Roster_header_render', {
+ rosterTelemetry.logEvent('header_render', {
has_link: String(Boolean(textLink && onPress)),
});
}, [textLink, onPress]);
const handlePress = useCallback(() => {
- rosterTelemetry.logEvent('Roster_header_link_tap', {
+ rosterTelemetry.logEvent('header_link_tap', {
link_text: String(textLink || ''),
});
onPress?.();
--- src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/SalariedOrTeamLeadRosterWidget.tsx
@@ -191,7 +191,7 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC<
try {
onRefresh();
- rosterTelemetry.logEvent('roster_widget_refresh', {
+ rosterTelemetry.logEvent('widget_refresh', {
widget_type: 'salaried_roster',
is_site_dc: effectiveIsSiteDC.toString(),
retry_count: (retryCount + 1).toString(),
@@ -214,7 +214,7 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC<
setRetryCount(0);
setLastRetryTime(0);
- rosterTelemetry.logEvent('roster_widget_pull_refresh', {
+ rosterTelemetry.logEvent('widget_pull_refresh', {
widget_type: 'salaried_roster',
is_site_dc: effectiveIsSiteDC.toString(),
});
--- src/components/TeamSearchInput/TeamSearchInput.tsx
@@ -18,11 +18,11 @@ export const TeamSearchInput = ({
const showMicrophoneIcon = useSelector(displayMicrophoneIcon);
const onFocus = useCallback(() => {
- rosterTelemetry.logEvent('Roster_team_search_input_focus', {});
+ rosterTelemetry.logEvent('team_search_input_focus', {});
}, []);
const onSubmit = useCallback(() => {
- rosterTelemetry.logEvent('Roster_team_search_input_submit', {
+ rosterTelemetry.logEvent('team_search_input_submit', {
query_length: String(text?.length ?? 0),
});
}, [text]);
| feat(ui): PR comment fix | feat(ui): PR comment fix
|
ccb9f6f7de46a84cbaf060ddd024b43c943e1521 | --- .looper.yml
@@ -64,10 +64,6 @@ flows:
preparePublish:
- call: installDependencies
- call: buildPackages
- - (name cat yarncrc.yml) cat .yarnrc.yml
- - (name cat cx.json) cat cx.json
- - (name cat project swissinfo) cat project.swissinfo
- - (name cat users.swissinfo) cat users.swissinfo
pr:
- call: installDependencies
| Chore: remove cat | Chore: remove cat
|
ad3cc02d9c2864a09badeef8aaa87a82d41dd259 | --- package-lock.json
@@ -5510,9 +5510,9 @@
"integrity": "sha512-Tz8PRLTpf4goLTBXayZxsBRuy/8+fnxjt+m7g3kfu0NRG58n/MgKi9krclf+LSLBhYTJcL5sKg8ckhA90dHlYQ=="
},
"@walmart/receipt-check-miniapp": {
- "version": "1.8.6",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.6.tgz",
- "integrity": "sha512-iYDnuFa3zbB3w2GjO1PdMntcaijV9pzjNs4q9SOi5498hcY1k3HSPELgnP5M2InWQMzg0GlFkmP75qUCVdBeeA==",
+ "version": "1.8.7",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.7.tgz",
+ "integrity": "sha512-WnjzCALrddV6fgZ8V11WOpfDdfdjLnH8H5H+xJPAvHHECEnYY/blGjobnA2zdEy0OBsNr9X2R5DvBHg4Pr0xug==",
"requires": {
"@walmart/tcnumber": "^2.3.1",
"@xstate/react": "^3.0.1",
--- 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.6",
+ "@walmart/receipt-check-miniapp": "1.8.7",
"@walmart/redux-store": "2.0.4",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
"@walmart/schedule-mini-app": "0.25.0",
| Receipt check bug fixes | Receipt check bug fixes
|
591650b7f4814473a36854fbbd203ad1f4d9ed6e | --- src/components/AssociateRosterItem/index.tsx
@@ -72,6 +72,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
const isClockedIn = associateIsClockedIn(associate);
const {height} = StyleSheet.flatten(style || {});
const name = associateDisplayName(associate);
+ const associateName = namecase(name.slice(0, 20));
const storeAssociateName = async () => {
const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`;
@@ -90,25 +91,20 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
}
await AsyncStorage.setItem(
RECENT_SEARCH_HISTORY_KEY,
- JSON.stringify([
- ...updatedAssociateName,
- namecase(name.slice(0, 20)),
- ]),
+ JSON.stringify([...updatedAssociateName, associateName]),
);
}
} else {
await AsyncStorage.setItem(
RECENT_SEARCH_HISTORY_KEY,
- JSON.stringify([namecase(name.slice(0, 20))]),
+ JSON.stringify([associateName]),
);
}
};
const onText = () => {
if (isSearchScreen) {
- dispatch(
- textingSlice.actions.SET_SEARCH_TEXT(namecase(name.slice(0, 20))),
- );
+ dispatch(textingSlice.actions.SET_SEARCH_TEXT(associateName));
storeAssociateName();
}
startAssociateText([associate.associateId!]);
--- src/screens/SearchScreen.tsx
@@ -97,7 +97,6 @@ const SearchHeaderBase = (props: StackHeaderProps) => {
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
const dispatch = useDispatch();
const searchedInput = useSelector(getSearchText);
- console.log('Recent searched input: ', searchedInput);
useEffect(() => {
if (searchedInput) {
--- src/translations/es-MX.ts
@@ -111,5 +111,6 @@ export const esMX = {
searchScreen: {
searchInputPlaceholder: 'Buscar personas o puestos',
cancel: 'Cancelar',
+ clearRecentSearch: 'Borrar todas las búsquedas recientes', //Todo: This needs to updated with the proper translation
},
};
--- src/components/AssociateRosterItem/index.tsx
@@ -72,6 +72,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
const isClockedIn = associateIsClockedIn(associate);
const {height} = StyleSheet.flatten(style || {});
const name = associateDisplayName(associate);
+ const associateName = namecase(name.slice(0, 20));
const storeAssociateName = async () => {
const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`;
@@ -90,25 +91,20 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => {
}
await AsyncStorage.setItem(
RECENT_SEARCH_HISTORY_KEY,
- JSON.stringify([
- ...updatedAssociateName,
- namecase(name.slice(0, 20)),
- ]),
+ JSON.stringify([...updatedAssociateName, associateName]),
);
}
} else {
await AsyncStorage.setItem(
RECENT_SEARCH_HISTORY_KEY,
- JSON.stringify([namecase(name.slice(0, 20))]),
+ JSON.stringify([associateName]),
);
}
};
const onText = () => {
if (isSearchScreen) {
- dispatch(
- textingSlice.actions.SET_SEARCH_TEXT(namecase(name.slice(0, 20))),
- );
+ dispatch(textingSlice.actions.SET_SEARCH_TEXT(associateName));
storeAssociateName();
}
startAssociateText([associate.associateId!]);
--- src/screens/SearchScreen.tsx
@@ -97,7 +97,6 @@ const SearchHeaderBase = (props: StackHeaderProps) => {
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
const dispatch = useDispatch();
const searchedInput = useSelector(getSearchText);
- console.log('Recent searched input: ', searchedInput);
useEffect(() => {
if (searchedInput) {
--- src/translations/es-MX.ts
@@ -111,5 +111,6 @@ export const esMX = {
searchScreen: {
searchInputPlaceholder: 'Buscar personas o puestos',
cancel: 'Cancelar',
+ clearRecentSearch: 'Borrar todas las búsquedas recientes', //Todo: This needs to updated with the proper translation
},
};
| update spanish translation and remove console logs | update spanish translation and remove console logs
|
d0a9b3d43e18edff76f46f016005a4c6c9a73ae4 | --- src/Adapters/useGetTeamsAdapter.ts
@@ -69,7 +69,6 @@ export const useGetTeamsAdapter = (): UseGetTeamsAdapterResult => {
const selectedTeamId = savedTeamId || allTeamId;
const isInitialLoad = !selectedTeamId;
- // Memoize the display data calculation
const displayData = useMemo(() => {
return getDisplayData({
teams,
| feat(ui): optimizations #SMDV-7856 | feat(ui): optimizations #SMDV-7856
|
9ef5022055dc8c7222fd46da32687decf6b579b9 | --- targets/US/package.json
@@ -93,7 +93,7 @@
"@walmart/calling-mini-app": "0.7.0",
"@walmart/checkout-mini-app": "4.3.0",
"@walmart/compass-sdk-rn": "5.19.15",
- "@walmart/config-components": "4.6.4",
+ "@walmart/config-components": "4.6.5",
"@walmart/core-services": "~6.5.2",
"@walmart/core-services-allspark": "workspace:^",
"@walmart/core-utils": "6.3.9",
--- yarn.lock
@@ -6612,9 +6612,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/config-components@npm:4.6.4":
- version: 4.6.4
- resolution: "@walmart/config-components@npm:4.6.4"
+"@walmart/config-components@npm:4.6.5":
+ version: 4.6.5
+ resolution: "@walmart/config-components@npm:4.6.5"
peerDependencies:
"@react-native-firebase/app": ">=15.1.1"
"@react-native-firebase/database": ">=15.1.1"
@@ -6627,7 +6627,7 @@ __metadata:
redux: ">=4.2.0"
reduxsauce: ">=1"
reselect: ">=4"
- checksum: 10c0/5f389d84cbcdbe42de077b8ea4fee53a3a16c949ec1afe7d05d90315da8e1779de7bcfe7b577072c22e393b83775ab3661c50f2a47d64bb9d47d6c30c97ff8fa
+ checksum: 10c0/70f52b03d0535d753e5688768e6a527af6d7748db943d351bd533d4aa3daee539690b4cf7f5bfd208299b320b8a1065e85f64eb711ba4fcfa08a0c2298bf4f58
languageName: node
linkType: hard
@@ -7384,7 +7384,7 @@ __metadata:
"@walmart/calling-mini-app": "npm:0.7.0"
"@walmart/checkout-mini-app": "npm:4.3.0"
"@walmart/compass-sdk-rn": "npm:5.19.15"
- "@walmart/config-components": "npm:4.6.4"
+ "@walmart/config-components": "npm:4.6.5"
"@walmart/core-services": "npm:~6.5.2"
"@walmart/core-services-allspark": "workspace:^"
"@walmart/core-utils": "npm:6.3.9"
| config component updated | config component updated
|
8b1f4541ba4c3c11d84c913a3e60b873805c01bf | --- packages/allspark-foundation/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx
@@ -12,10 +12,12 @@ import { FEATURE_ID } from '../../../constant';
import { TeamSwitcher } from '../../TeamSwitcher';
import styles from '../styles';
import { Alert, Body } from '@walmart/gtp-shared-components';
-import { AllsparkComponentContainers } from '../../../../Core';
+import { AllsparkComponentContainers, SiteSelectors } from '../../../../Core';
import { HubDashboardProps } from './types';
import { managerExperienceSlice } from '../../../Redux';
-import { OnBoardingFlow } from '../../../Onboarding/OnBoardingFlow';
+import { TeamOnboardingScreen } from '../../../Onboarding/TeamOnboarding';
+import { useGetAssociatePreferencesQuery } from '@walmart/me-at-walmart-athena-queries';
+import { isNil } from 'lodash';
export const HubDashboard = ({ name, widgets }: HubDashboardProps) => {
const [teamId, setTeamId] = useState('total');
@@ -45,29 +47,43 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => {
const [showTimestamp, setShowTimestamp] = useState(false);
const hideTimestamp = () => setShowTimestamp(false);
const dispatch = useDispatch();
- const onboardingComplete = useSelector(
- ManagerExperienceSelectors.getUserOnboardingComplete
- );
const onboardingInProgress = useSelector(
ManagerExperienceSelectors.getUserOnboardingInProgress
);
+ const onboardingComplete = useSelector(
+ ManagerExperienceSelectors.getUserOnboardingComplete
+ );
const onboardingError = useSelector(
ManagerExperienceSelectors.getUserOnboardingError
);
- const [showUserOnboarding, setShowUserOnboarding] = useState(false);
- const [showContainer, setShowContainer] = useState(false);
- useEffect(() => {
- setShowUserOnboarding(true);
- dispatch(managerExperienceSlice.actions.startUserOnboarding);
- }, [dispatch]);
+ const { data: siteData } = useSelector(SiteSelectors.getWorkingSite);
+ const site: number | undefined = siteData?.siteId;
+ const win: string | undefined = useSelector(UserSelectors.getWin);
+ const isPeopleLead: boolean = useSelector(UserSelectors.getIsUserPeopleLead);
+ const isTeamLead: boolean = useSelector(UserSelectors.getIsUserTeamLead);
+ const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried);
+ const { data } = useGetAssociatePreferencesQuery({
+ variables: {
+ site: site as number,
+ win: win as string,
+ },
+ fetchPolicy: 'network-only',
+ });
+ const myTeamData =
+ data?.associatePreferences?.meAtWalmartPreferences
+ ?.managerExperiencePreferences?.myTeams;
+ const isUserOnboarded =
+ (isTeamLead || isSalaried || isPeopleLead) && !isNil(myTeamData);
+ const [showUserOnboarding, setShowUserOnboarding] = useState(false);
+ const userOnboardingComplete = onboardingComplete || isUserOnboarded;
useEffect(() => {
- if (onboardingComplete) {
- setShowUserOnboarding(false);
- setShowContainer(true);
+ if (!isUserOnboarded) {
+ setShowUserOnboarding(true);
+ dispatch(managerExperienceSlice.actions.startUserOnboarding);
}
- }, [onboardingComplete]);
+ }, [dispatch, isUserOnboarded]);
useEffect(() => {
const someRefreshing = Object.values(refreshingMap).some(
@@ -152,10 +168,11 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => {
}, [teamId, widgets]);
return (
<>
- {!onboardingInProgress && !onboardingError && showUserOnboarding && (
- <OnBoardingFlow />
- )}
- {!onboardingInProgress && !onboardingError && showContainer && (
+ {!onboardingInProgress &&
+ !onboardingError &&
+ (showUserOnboarding || !isUserOnboarded) &&
+ !userOnboardingComplete && <TeamOnboardingScreen />}
+ {!onboardingInProgress && !onboardingError && userOnboardingComplete && (
<ScrollView
stickyHeaderIndices={[1]}
showsVerticalScrollIndicator={false}
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx
@@ -11,7 +11,7 @@ import { TeamSelectionLoader } from './TeamSelectionLoader';
import { ErrorScreen } from '../Component/ErrorScreen';
import { UserSelectors } from '../../../../User';
import { SiteSelectors } from '../../../../Site';
-import { useSelector } from 'react-redux';
+import { useDispatch, useSelector } from 'react-redux';
import { SelectionBannerFooterButtons } from './SelectionBannerFooterButtons';
import { useUpsertManagerExperiencePreferenceMutation } from '@walmart/me-at-walmart-athena-queries';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
@@ -20,6 +20,7 @@ import { LoggerService } from '../../../../Logger';
import { useTelemetryService } from '../../../../Telemetry';
import { useAllsparkTranslation } from '../../../../Translation';
import { FEATURE_ID } from '../../../constant';
+import { managerExperienceSlice } from '../../../Redux';
export const TeamSelectionList = ({
userType,
@@ -31,6 +32,7 @@ export const TeamSelectionList = ({
handleSelectSingle,
handleSelectAll,
}: TeamSelectionListProps) => {
+ const dispatch = useDispatch();
const { bottom } = useSafeAreaInsets();
const { t } = useAllsparkTranslation(FEATURE_ID);
const { data: siteData } = useSelector(SiteSelectors.getWorkingSite);
@@ -57,8 +59,8 @@ export const TeamSelectionList = ({
const handleCancelButton = () => {
//TODO: Add home screen navigation
- AllsparkNavigationClient.navigate('cafeOrder.TeamHub');
- teamSelectionTelemetry.logEvent('Cancel button event: team selection', {
+ AllsparkNavigationClient.goBack();
+ teamSelectionTelemetry.logEvent('team_selection_cancel_event', {
win: win as string,
site: String(site),
});
@@ -80,13 +82,12 @@ export const TeamSelectionList = ({
})) as TeamPreference[],
},
});
+ dispatch(managerExperienceSlice.actions.completeUserOnboarding);
//TODO: Add confirmation screen navigation
- // AllsparkNavigationClient.navigate('managerExperience.hubContainer');
- AllsparkNavigationClient.navigate('teamHub.container');
logger.info('Save teams event', {
message: 'Save teams event triggered',
});
- teamSelectionTelemetry.logEvent('Save teams event', {
+ teamSelectionTelemetry.logEvent('save_teams_event', {
message: 'Save teams event triggered',
win: win as string,
site: String(site),
@@ -115,7 +116,7 @@ export const TeamSelectionList = ({
})) as TeamPreference[],
},
});
- AllsparkNavigationClient.navigate('managerExperience.hubContainer');
+ AllsparkNavigationClient.navigate('managerExperience.teamSelection');
}}
/>
);
| feat(ui): Merge changes | feat(ui): Merge changes
|
0b3cd9c5d5d39b1b9372bcf8ce21b90eb0df0886 | --- src/components/Roster/AssociateListItem.tsx
@@ -1,18 +1,115 @@
import React from 'react';
import {AssociateRosterItem} from './types';
-import {View, Text} from 'react-native';
+import {
+ Body,
+ Button,
+ Card,
+ CardContent,
+ ListItem,
+} from '@walmart/gtp-shared-components';
+import {useTranslation} from 'react-i18next';
+import {TEXTING_I18N_NAMESPACE} from '../../translations';
+import {shallowEqual, useSelector} from 'react-redux';
+import {SiteSelectors} from '@walmart/redux-store';
+import {useRbacConfigWithJobCode, useUserIsInRoster} from '../../hooks';
+import {associateDisplayName, encryptUserId, formatSchedule} from '../../utils';
+import {styles} from '../AssociateRosterItem/style';
+import namecase from 'namecase';
+import {TouchableOpacity} from 'react-native';
+import {goToIndividualSchedule} from '../../navigation/utils';
+import { StatusChip } from "../StatusChip";
interface AssociateListItemProps {
- associate?: AssociateRosterItem;
+ associate: AssociateRosterItem;
roundTopCorners?: boolean;
roundBottomCorners?: boolean;
}
-export const AssociateListItem: React.FC<AssociateListItemProps> = (props) => {
- const {associate = null} = props;
- return (
- <View>
- <Text>{associate?.userId}</Text>
- </View>
- );
-};
+export const AssociateListItem: React.FC<AssociateListItemProps> = React.memo(
+ (props) => {
+ const {
+ associate = null,
+ roundBottomCorners = false,
+ roundTopCorners = false,
+ } = props;
+
+ const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
+ const siteId: string | undefined = useSelector(
+ SiteSelectors.getUserWorkingSite,
+ );
+ const shouldShowStatusChipAndWeeklySchedule: boolean =
+ useRbacConfigWithJobCode();
+ const userIsInRoster = useUserIsInRoster(); //TODO: Move this out of the list item and into the roster component
+
+ const encryptedId = encryptUserId(associate?.win?.toString() ?? '');
+ const associateName = namecase(
+ associateDisplayName(associate).slice(0, 20),
+ );
+ const isStoreScheduleValid =
+ associate?.storeSchedule && associate?.storeSchedule?.length > 0;
+
+ return (
+ <Card
+ UNSAFE_style={[
+ styles.card,
+ roundTopCorners && styles.firstCard,
+ roundBottomCorners && styles.lastCard,
+ ]}>
+ <CardContent UNSAFE_style={styles.cardContent}>
+ <ListItem
+ UNSAFE_style={[styles.item, roundBottomCorners && styles.lastItem]}
+ title={associateName}
+ leading={
+ <>
+ {/*
+ //TODO: Clock Status indicator goes here
+ */}
+ </>
+ }
+ trailing={
+ <>
+ {shouldShowStatusChipAndWeeklySchedule && (
+ <StatusChip
+ associate={associate}
+ encryptedId={encryptedId}
+ style={styles.tag}
+ />
+ )}
+
+ </>
+ }
+ />
+ <Body weight='400' size='small' numberOfLines={1}>
+ {namecase(associate?.jobCategoryCodeDesc)}
+ </Body>
+ {isStoreScheduleValid && (
+ <Body weight='400' size='small' numberOfLines={1}>
+ {namecase(formatSchedule(associate?.storeSchedule))}
+ </Body>
+ )}
+ {shouldShowStatusChipAndWeeklySchedule && (
+ <TouchableOpacity
+ onPress={() => {
+ goToIndividualSchedule(
+ associate.userId,
+ associate.fullName,
+ siteId,
+ );
+ }}
+ disabled={!associate.userId}>
+ <Body
+ weight='400'
+ size='small'
+ numberOfLines={1}
+ UNSAFE_style={styles.viewSchedule}
+ testID='viewSchedule'>
+ {t('rosterScreen.associateRosterItem.viewSchedule')}
+ </Body>
+ </TouchableOpacity>
+ )}
+ </CardContent>
+ </Card>
+ );
+ },
+ shallowEqual,
+);
--- src/components/Roster/Roster.tsx
@@ -1,5 +1,9 @@
import React, {useCallback, useEffect, useState} from 'react';
-import { AssociateListRenderItem, AssociateRosterItem, RosterProps } from "./types";
+import {
+ AssociateListRenderItem,
+ AssociateRosterItem,
+ RosterProps,
+} from './types';
import {View, Text} from 'react-native';
import {styles} from './styles';
import {FlashList, ListRenderItem} from '@shopify/flash-list';
@@ -9,13 +13,13 @@ import {sortedAssociateList} from '../../utils';
import {useSelector} from 'react-redux';
import {teamLeadJobDescriptions} from '../../redux/selectors';
import {logger} from '../../logger/Logger';
-import { AssociateListItem } from "./AssociateListItem";
+import {AssociateListItem} from './AssociateListItem';
//TODO: States to verify: No Data, Loading, Error (identify all types of errors), Success
export const Roster: React.FC<RosterProps> = (props) => {
const {
// featureFlagMap, //TODO: Will be used as this is built out
- // associateActionButtons,
+ associateActionButtons,
// teamActionButtons,
// associateListSearchQuery,
rosterDataOverride = null,
@@ -55,12 +59,16 @@ export const Roster: React.FC<RosterProps> = (props) => {
> = ({item: associate, index, extraData}: AssociateListRenderItem) => {
const isTopRow = index === 0;
const isLastRow = index === extraData?.listLength - 1;
+
//TODO: Analyze replace and isSearchScreen props. Remove these from this component and bubble up
+ if (isNil(associate)) return null;
+
return (
<AssociateListItem
associate={associate}
roundTopCorners={isTopRow}
roundBottomCorners={isLastRow}
+ actionButtons={associateActionButtons}
/>
);
};
--- src/components/StatusChip.tsx
@@ -13,6 +13,7 @@ import {
import {useTranslation} from 'react-i18next';
import {TEXTING_I18N_NAMESPACE} from '../translations';
import {TFunction} from 'i18next';
+import { AssociateRosterItem } from "./Roster/types";
const deriveAssociateStatus = (
associate: Associate,
@@ -58,7 +59,7 @@ const deriveAssociateStatus = (
//TODO: Setup for presence rearchitecture
export const StatusChip = (props: {
- associate: Associate;
+ associate: AssociateRosterItem;
encryptedId: string;
style?: StyleProp<ViewStyle>;
}) => {
@@ -70,7 +71,8 @@ export const StatusChip = (props: {
return (
<>
- {/*{presence === 'offline' && (*/}
+ {/* //TODO: Re-design DND Status Indicator to remove firestore coupling from app
+ {presence === 'offline' && (*/}
{/* <Tag variant='tertiary' color={'blue'} UNSAFE_style={style}>*/}
{/* {t('rosterScreen.statusChips.doNotDisturb')}*/}
{/* </Tag>*/}
--- src/utils/user.ts
@@ -1,7 +1,5 @@
import {encryptUserId as baseEncryptUserId} from '@walmart/allspark-utils';
import CryptoJS from 'crypto-js';
-import {Associate} from '../types';
-import {GetAssociateNameQuery} from '../queries/getAssociateName';
import {ClockStatusEnum} from './ClockStatusEnum';
import moment from 'moment';
import {AssociateRosterItem} from '../components/Roster/types';
@@ -50,8 +48,7 @@ export const associateIsOnPPTO = (associate?: AssociateRosterItem) =>
export const associateIsNotScheduled = (associate?: AssociateRosterItem) =>
false;
-export const associateDisplayName = (
- associate?: Associate | GetAssociateNameQuery['getAssociateById'],
+export const associateDisplayName = (associate?: AssociateRosterItem,
) => {
return (
(associate?.preferredFirstName || associate?.firstName || '') +
| progress in adding view layer to associate list item | progress in adding view layer to associate list item
|
8f6422dd4e05b9cb944cc05a82b0dd1d3153e7e1 | --- ios/Podfile.lock
@@ -336,7 +336,7 @@ PODS:
- React-Core
- react-native-pdf (6.2.2):
- React-Core
- - react-native-ptt-module (1.2.52):
+ - react-native-ptt-module (1.2.53):
- PTT (= 0.6.0-rc.4)
- React
- react-native-safe-area-context (3.1.8):
@@ -796,7 +796,7 @@ SPEC CHECKSUMS:
react-native-logger: 6d1a4098b9b035278c3691760a45be8ce56acd2e
react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f
react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f
- react-native-ptt-module: 1032d409dd3f1859ea09160a966e7c28d550a4a1
+ react-native-ptt-module: 90c5085623b8cfa59c0b454ebebcc4dcd29c2b67
react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f
--- package-lock.json
@@ -3124,9 +3124,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.5.2",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.2.tgz",
- "integrity": "sha512-Ssp3CPaMtWk4EHf2z1EhYuwZsxByEOmq+hkvrMyczyAIMtwX7+xEic19wXAvZ6qFSY06RjD7MNwXKeILPLeuZw=="
+ "version": "0.5.3",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.3.tgz",
+ "integrity": "sha512-ro1XN+tHvLvZC65hy/4R/9syqBJAhVX9J14tJYN+BSDh2dwJa8xd3SL6vEA4M61XLIJTYau3EAZ+6hM6aeBnPQ=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
@@ -12323,9 +12323,9 @@
"integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w=="
},
"react-native-ptt-module": {
- "version": "1.2.52",
- "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.52.tgz",
- "integrity": "sha512-NrFoKoF9obGN30mZ33jvycm6SqaFh3D2nmQCGAN8nNr4Z1QW8p76RSLRH+D8tyLwtjt6+TTLSHeiKcpR0kuqBQ=="
+ "version": "1.2.53",
+ "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.2.53.tgz",
+ "integrity": "sha512-M9UGXZuyZkmNmMFh5yi0x0OgNQYepfAKrHbtOXXKPY0lkLqxnXHJxbRh1juAWSdgvp6Hz/21IiJ948JhqCjWAw=="
},
"react-native-qrcode-svg": {
"version": "6.0.6",
--- package.json
@@ -73,7 +73,7 @@
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/inbox-mini-app": "0.0.92",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.5.2",
+ "@walmart/push-to-talk-mini-app": "0.5.3",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.25.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
@@ -109,7 +109,7 @@
"react-native-pdf": "^6.2.0",
"react-native-permissions": "3.0.0",
"react-native-popup-menu": "^0.15.9",
- "react-native-ptt-module": "1.2.52",
+ "react-native-ptt-module": "1.2.53",
"react-native-qrcode-svg": "^6.0.6",
"react-native-reanimated": "^1.10.2",
"react-native-safe-area-context": "^3.1.3",
| PTT Version Bump (#548) | PTT Version Bump (#548)
* PTT Version bump
* PTT bump for Voice Messaging
* PTT bump for Voice Messaging |
e625f456fadc40f9cb3d49182d11fba846765274 | --- packages/allspark-foundation/src/Components/TeamListItem/TeamListItem.tsx
@@ -5,6 +5,7 @@ import { teamSelectionListItemStyles } from './styles';
import {
Checkbox,
ChevronRightIcon,
+ Tag,
} from '@walmart/gtp-shared-components/dist';
import { images } from './images';
import { TeamListItemProps } from './types';
@@ -50,14 +51,14 @@ export const TeamListItem = ({
</View>
<View style={styles.iconContainer}>
{isPrimaryTeam && (
- <View style={styles.primaryTeamContainer}>
- <Text
- accessibilityLabel={primaryTeamText}
- style={styles.primaryTeamText}
- >
- {primaryTeamText}
- </Text>
- </View>
+ <Tag
+ accessibilityLabel={primaryTeamText}
+ color='blue'
+ UNSAFE_style={styles.primaryTeamContainer}
+ variant='tertiary'
+ >
+ <Text style={styles.primaryTeamText}>{primaryTeamText}</Text>
+ </Tag>
)}
{iconType === 'checkbox' && (
<Checkbox
| feat: update primary team text to use tag | feat: update primary team text to use tag
|
24d32210d47bc9a6bcc9b87e81527d1e4b8a56e9 | --- src/channels/context.ts
@@ -1,4 +1,4 @@
-import {createContext, useContext} from 'react';
+import {createContext} from 'react';
import {noop} from 'lodash';
import {IChannelsContext} from './types';
@@ -23,5 +23,3 @@ export const AudioPlayerContext = createContext<{
currentPlaying: null,
setCurrentPlaying: noop,
});
-
-export const useAudioPlayerContext = () => useContext(AudioPlayerContext);
--- src/channels/hooks.ts
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/exhaustive-deps */
import {useContext, useEffect, useMemo, useState} from 'react';
-import {ChannelsContext} from './context';
+import {AudioPlayerContext, ChannelsContext} from './context';
import {LocalFirebaseChannel, LastMessage} from './types';
import firestore from '@react-native-firebase/firestore';
import {useSelector} from 'react-redux';
@@ -14,6 +14,8 @@ import {useTextingFeatureEnabled} from '../hooks';
export const useChannelContext = () => useContext(ChannelsContext);
+export const useAudioPlayerContext = () => useContext(AudioPlayerContext);
+
export const useChannelIds = () => {
const channels = useChannelContext();
return channels.ids;
--- src/containers/ChatInput/AudioPlayback.tsx
@@ -14,7 +14,7 @@ import {MeteringPlayback} from './MeteringVisualization';
import {PlaybackDetails} from './types';
import {msToTimeStamp} from '../../utils';
import {logger} from '../../logger/Logger';
-import {useAudioPlayerContext} from '../../channels/context';
+import {useAudioPlayerContext} from '../../channels';
const styles = StyleSheet.create({
container: {
--- src/channels/context.ts
@@ -1,4 +1,4 @@
-import {createContext, useContext} from 'react';
+import {createContext} from 'react';
import {noop} from 'lodash';
import {IChannelsContext} from './types';
@@ -23,5 +23,3 @@ export const AudioPlayerContext = createContext<{
currentPlaying: null,
setCurrentPlaying: noop,
});
-
-export const useAudioPlayerContext = () => useContext(AudioPlayerContext);
--- src/channels/hooks.ts
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/exhaustive-deps */
import {useContext, useEffect, useMemo, useState} from 'react';
-import {ChannelsContext} from './context';
+import {AudioPlayerContext, ChannelsContext} from './context';
import {LocalFirebaseChannel, LastMessage} from './types';
import firestore from '@react-native-firebase/firestore';
import {useSelector} from 'react-redux';
@@ -14,6 +14,8 @@ import {useTextingFeatureEnabled} from '../hooks';
export const useChannelContext = () => useContext(ChannelsContext);
+export const useAudioPlayerContext = () => useContext(AudioPlayerContext);
+
export const useChannelIds = () => {
const channels = useChannelContext();
return channels.ids;
--- src/containers/ChatInput/AudioPlayback.tsx
@@ -14,7 +14,7 @@ import {MeteringPlayback} from './MeteringVisualization';
import {PlaybackDetails} from './types';
import {msToTimeStamp} from '../../utils';
import {logger} from '../../logger/Logger';
-import {useAudioPlayerContext} from '../../channels/context';
+import {useAudioPlayerContext} from '../../channels';
const styles = StyleSheet.create({
container: {
| organizing the code | organizing the code
|
c2ee290f89b7a7f4c3d94cdfbb53be566163effd | --- __tests__/startup/StartupSagaTest.ts
@@ -32,6 +32,7 @@ import {
startupSagas,
waitForAppConfig,
getConfigLoaded,
+ shouldPromptForSite,
} from '../../src/startup/StartupSaga';
import {StartupTypes} from '../../src/startup/StartupRedux';
import {initSso} from '../../src/core/SSOinit';
@@ -98,9 +99,10 @@ describe('onSignIn', () => {
take(PermissionTypes.PERMISSIONS_COMPLETE),
);
+ expect(iterator.next().value).toEqual(call(shouldPromptForSite));
const user = {userId: 'swalton3'};
const userState = {data: user};
- expect(iterator.next().value).toEqual(select(getUserState));
+ expect(iterator.next(true).value).toEqual(select(getUserState));
expect(iterator.next(userState).value).toEqual(
call(WmTelemetry.logEvent, SSO_APP, 'site_id_opened', {}),
);
@@ -136,11 +138,9 @@ describe('onSignIn', () => {
call(dispatch, CommonActions.reset({index: 0, routes: [{name: 'main'}]})),
);
- const user = {userId: 'swalton3', siteId: '100'};
- const userState = {data: user};
- expect(iterator.next().value).toEqual(select(getUserState));
+ expect(iterator.next().value).toEqual(call(shouldPromptForSite));
- expect(iterator.next(userState).value).toEqual(call(waitForAppConfig));
+ expect(iterator.next(false).value).toEqual(call(waitForAppConfig));
expect(iterator.next().value).toEqual(
put(UpdateCheckActionCreators.checkForUpdates()),
);
@@ -169,11 +169,9 @@ describe('onSignIn', () => {
take(TermsOfUseTypes.TERMS_OF_USE_ACCEPTED),
);
- const user = {userId: 'swalton3', siteId: '100'};
- const userState = {data: user};
- expect(iterator.next().value).toEqual(select(getUserState));
+ expect(iterator.next().value).toEqual(call(shouldPromptForSite));
- expect(iterator.next(userState).value).toEqual(call(waitForAppConfig));
+ expect(iterator.next(false).value).toEqual(call(waitForAppConfig));
expect(iterator.next().value).toEqual(
put(UpdateCheckActionCreators.checkForUpdates()),
);
@@ -265,3 +263,54 @@ describe('getConfigLoaded', () => {
expect(result).toEqual(false);
});
});
+
+describe('shouldPromptForSite', () => {
+ it('returns false for a user with siteId', () => {
+ const user = {
+ siteId: 100,
+ };
+ const state = {
+ data: user,
+ };
+
+ const iterator = shouldPromptForSite();
+ expect(iterator.next().value).toEqual(select(getUserState));
+ const next = iterator.next(state);
+ expect(next.value).toEqual(false);
+ expect(next.done).toEqual(true);
+ });
+
+ it('returns false for a user with no siteId but is a dc user with a working site', () => {
+ const user = {
+ siteId: 'NOT_FOUND',
+ workingSite: 6544,
+ domain: 'DC',
+ };
+ const state = {
+ data: user,
+ };
+
+ const iterator = shouldPromptForSite();
+ expect(iterator.next().value).toEqual(select(getUserState));
+ const next = iterator.next(state);
+ expect(next.value).toEqual(false);
+ expect(next.done).toEqual(true);
+ });
+
+ it('returns true for a user with no soteId and not a dc user', () => {
+ const user = {
+ siteId: 100,
+ workingSite: 6544,
+ domain: 'HOMEOFFICE',
+ };
+ const state = {
+ data: user,
+ };
+
+ const iterator = shouldPromptForSite();
+ expect(iterator.next().value).toEqual(select(getUserState));
+ const next = iterator.next(state);
+ expect(next.value).toEqual(false);
+ expect(next.done).toEqual(true);
+ });
+});
--- src/startup/StartupSaga.ts
@@ -37,6 +37,29 @@ import {TermsOfUseTypes} from '../termsOfUse/TermsOfUseRedux';
import {StartupTypes} from './StartupRedux';
import {startSurveyWatch} from './SurveySaga';
+export const DC_DOMAIN = 'dc';
+export const WORKING_SITE_DOMAINS = [DC_DOMAIN];
+
+export function* shouldPromptForSite() {
+ // If a site hasnt been provided we'll prompt for one
+ const {data: user} = yield select(getUserState);
+ const sitePresent = !!parseInt(user?.siteId + '', 10);
+
+ if (!sitePresent) {
+ const {domain, workingSite} = user;
+ const lowerCaseDomain = domain?.toLowerCase();
+ const workingSitePresent = !!parseInt(workingSite + '', 10);
+ if (
+ !workingSitePresent ||
+ !WORKING_SITE_DOMAINS.includes(lowerCaseDomain)
+ ) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
export function* onStartup() {
// Init sso and check permissions in parallel. Wait for both to complete
yield all([call(initSso), call(checkPermissions)]);
@@ -74,11 +97,10 @@ export function* onSignIn() {
yield take(PermissionTypes.PERMISSIONS_COMPLETE);
}
- // If a site hasnt been provided we'll prompt for one
- const {data: user} = yield select(getUserState);
- const sitePresent = !!parseInt(user?.siteId + '', 10);
+ const shouldPrompt = yield call(shouldPromptForSite);
- if (!sitePresent) {
+ if (shouldPrompt) {
+ const {data: user} = yield select(getUserState);
// This resolves once site has been provided
yield call(WmTelemetry.logEvent, SSO_APP, 'site_id_opened', {});
const siteResult = yield call(
| changing site id prompt to account for DC users (#413) | changing site id prompt to account for DC users (#413)
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
84bb978933440dce233a8f87d9d3b5b42320370c | --- ios/AllSpark/Info.plist
@@ -35,10 +35,6 @@
</array>
<key>CFBundleVersion</key>
<string>1</string>
- <key>HOST_EXTERNAL</key>
- <string>$(HOST_EXTERNAL)</string>
- <key>HOST_INTERNAL</key>
- <string>$(HOST_INTERNAL)</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>invmgmt</string>
--- ios/Podfile
@@ -28,30 +28,3 @@ target 'AllSpark' do
# flipper_post_install(installer)
# end
end
-
-###########################
-# Post Command to adjust
-# project settings
-###########################
-post_install do |installer_representation|
- print("Installing git hooks... \n")
- system("git config core.hooksPath .githooks --replace-all")
- print("Adjusting Project Settings... \n")
- print(" -->Debug_Builds:ONLY_ACTIVE_ARCH=YES\n")
- installer_representation.pods_project.targets.each do |target|
- target.build_configurations.each do |config|
- brokerSettings = { }
- if config.name.match('Debug')
- config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
- brokerSettings = { "HOST_INTERNAL" => "stage.vernemq.directedvoice.prod.us.walmart.com", "HOST_EXTERNAL" => "stage.dv.ptt.walmart.com" }
- elsif config.name.match('Release')
- brokerSettings = { "HOST_INTERNAL" => "vernemq.directedvoice.prod.us.walmart.com", "HOST_EXTERNAL" => "dv.ptt.walmart.com" }
- end
- xcconfig_path = config.base_configuration_reference.real_path
- # write brokerSettings dictionary to xcconfig
- brokerSettings.each do |key,value|
- File.open(xcconfig_path, "a") {|file| file.puts "#{key} = #{value}"}
- end
- end
- end
- end
--- ios/Podfile.lock
@@ -396,7 +396,7 @@ PODS:
- nanopb/encode (1.30905.0)
- PromisesObjC (1.2.11)
- Protobuf (3.13.0)
- - PTT (0.3.6):
+ - PTT (0.3.6a):
- BinaryCodable (~> 0.2.1)
- CocoaMQTT/WebSockets (~> 1.3.0-rc.1)
- RCTRequired (0.63.2)
@@ -573,8 +573,8 @@ PODS:
- React
- react-native-pdf (6.2.1):
- React
- - react-native-ptt-module (1.1.45):
- - PTT (= 0.3.6)
+ - react-native-ptt-module (1.1.46):
+ - PTT (= 0.3.6a)
- React
- react-native-safe-area-context (3.1.8):
- React-Core
@@ -971,7 +971,7 @@ SPEC CHECKSUMS:
nanopb: c43f40fadfe79e8b8db116583945847910cbabc9
PromisesObjC: 8c196f5a328c2cba3e74624585467a557dcb482f
Protobuf: 3dac39b34a08151c6d949560efe3f86134a3f748
- PTT: 226cce56195ceb96e540e6ad997ec1fd7a8ae55d
+ PTT: b3630bf50aa1e489789d51aaa8c4352fdd26e93d
RCTRequired: f13f25e7b12f925f1f6a6a8c69d929a03c0129fe
RCTTypeSafety: 44982c5c8e43ff4141eb519a8ddc88059acd1f3a
React: e1c65dd41cb9db13b99f24608e47dd595f28ca9a
@@ -986,7 +986,7 @@ SPEC CHECKSUMS:
react-native-logger: 3bcc179347707f13df82f8b00eec0d6d6cc29271
react-native-netinfo: d2c312fa4b151214e1d5c8456ddb5f28ff24a576
react-native-pdf: 2fc624841b3628db8df318c803874152b33580f5
- react-native-ptt-module: ae9714522354581de71091346147ec65ac816e26
+ react-native-ptt-module: f2547b22755ae89bb64062d21c435c9d18465613
react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f
@@ -1030,6 +1030,6 @@ SPEC CHECKSUMS:
Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5
Yoga: 7740b94929bbacbddda59bf115b5317e9a161598
-PODFILE CHECKSUM: def2118193d0d030b1afc6a82b68d33512787954
+PODFILE CHECKSUM: ef49dd681da3d3f045265073929f39d1bde46fda
COCOAPODS: 1.9.3
--- package-lock.json
@@ -1937,9 +1937,9 @@
"integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w=="
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.0.22",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.22.tgz",
- "integrity": "sha512-1EfjZAeZaylbLf8bkYi9ZpdZLhMaEKC0xm75dWL3JR5WJrwzJgyxfU3ogQvUag7dk5cbELWbW6pE/isW/T3T1A=="
+ "version": "0.0.23",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.23.tgz",
+ "integrity": "sha512-AAEq+Lh1weT7sqEuQx9JcMHVH3J07Zms3SmpPdCUhT/44ZY56cf+PTKyVn5TZ5XuFWbumhInXX0Bq3KKeKhkgw=="
},
"@walmart/react-native-logger": {
"version": "1.14.0",
@@ -9211,9 +9211,9 @@
"integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w=="
},
"react-native-ptt-module": {
- "version": "1.1.45",
- "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.45.tgz",
- "integrity": "sha512-GBTrOndNlnZW9HYe+ZYqfxxqve18luOPxCUww+SzQDVlBJjvetls39McQpzUngM9ZxzRgOqopUiikxl80xxZ9Q=="
+ "version": "1.1.46",
+ "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.46.tgz",
+ "integrity": "sha512-dN1Ja8L1Vdn072u6YqGn480fevUncdDcpo9gjM7A5MOeZTE1O7X1XJt23b7CXjkcVNNe2t4ng0QD3fHG2b03mw=="
},
"react-native-qrcode-svg": {
"version": "6.0.6",
--- package.json
@@ -44,7 +44,7 @@
"@walmart/functional-components": "^1.0.22",
"@walmart/gtp-shared-components": "^0.2.2",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.0.22",
+ "@walmart/push-to-talk-mini-app": "0.0.23",
"@walmart/react-native-logger": "^1.14.0",
"@walmart/react-native-shared-navigation": "^0.2.0",
"@walmart/redux-store": "^1.0.4",
@@ -68,7 +68,7 @@
"react-native-modal": "^11.5.6",
"react-native-pdf": "^6.2.0",
"react-native-popup-menu": "^0.15.9",
- "react-native-ptt-module": "1.1.45",
+ "react-native-ptt-module": "1.1.46",
"react-native-qrcode-svg": "^6.0.6",
"react-native-reanimated": "^1.10.2",
"react-native-safe-area-context": "^3.1.3",
| PTT version bump | PTT version bump
|
711fcb15a9eb1e76a84f2d36946ad84cea3db9fa | --- packages/celebration-mini-app/src/components/Widget/HubCelebrationWidget.tsx
@@ -151,7 +151,7 @@ const HubCelebrationWidgetCore: React.FC<HubCelebrationWidgetProps> = ({
// Log celebrations data for debugging (only when data actually changes, not on every render)
const lastCelebrationCountRef = React.useRef<number>(-1);
useEffect(() => {
- if (celebrations.length !== lastCelebrationCountRef.current && !celebrationsLoading) {
+ if (
celebrations.length !== lastCelebrationCountRef.current &&
!celebrationsLoading
) {
| fix: missing line | fix: missing line
|
1a66aee9adfd9dac128f3378bd16559025071971 | --- package-lock.json
@@ -3038,9 +3038,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.10.40",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.40.tgz",
- "integrity": "sha512-CmAheZrrNHani6LNU8pdiWyJLWpFCiXplcDkRv0XWaRfRxePndMrkDCw93VifWSEwKvnr6Sfklo9yTIFupZIcA==",
+ "version": "0.10.41",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.41.tgz",
+ "integrity": "sha512-23qXRDzWye+5VaL3B2ANeVJ0Dn+NkJRynpI0VXRenbQZewsjEeiHIndCCCw8Gnlmz6ZxBH/8kjhbLnosFQ1Qwg==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
--- package.json
@@ -62,7 +62,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.31",
"@walmart/allspark-home-mini-app": "0.1.11",
"@walmart/allspark-me-mini-app": "0.0.22",
- "@walmart/ask-sam-mini-app": "0.10.40",
+ "@walmart/ask-sam-mini-app": "0.10.41",
"@walmart/config-components": "1.0.14",
"@walmart/feedback-all-spark-miniapp": "0.0.42",
"@walmart/functional-components": "1.0.25",
| update ask sam to remove external network patch (#450) | update ask sam to remove external network patch (#450)
|
181d3bdc5e4f2647f56982e92e4dee3fc77bc31f | --- __tests__/__mocks__/react-native-wm-notification.js
@@ -1,3 +1,10 @@
+const SumoEventTypes = {
+ appStartupFromNotification: 'appStartupFromNotification',
+ appResumedFromNotification: 'appResumedFromNotification',
+ receivedPushNotification: 'receivedPushNotification',
+ profileHasBeenRegistered: 'profileHasBeenRegistered',
+};
+
module.exports = {
__esModule: true,
default: {
@@ -5,8 +12,9 @@ module.exports = {
setOptions: jest.fn(() => Promise.resolve()),
setProfile: jest.fn(() => Promise.resolve()),
setDefaultEventListener: jest.fn(),
- SumoEventTypes: {event: 'event'},
+ SumoEventTypes,
clearAllBadges: jest.fn(),
+ runListeners: jest.fn(),
},
- SumoEventTypes: ['sumo-event'],
+ SumoEventTypes,
};
--- __tests__/core/notificationInitTest.ts
@@ -1,6 +1,6 @@
import {AppState} from 'react-native';
import {all, takeLatest, select, call, take, put} from 'redux-saga/effects';
-import WmNotification from 'react-native-wm-notification';
+import WmNotification, {SumoEventTypes} from 'react-native-wm-notification';
import {
addSagas,
GlobalState,
@@ -18,6 +18,8 @@ import {
clearNotificationBadge,
initNotifications,
defaultEventHandler,
+ onAppStartupFromNotification,
+ onMiniAppReplay,
} from '../../src/core/notificationInit';
import {getUser, USER_CHANGED_ACTIONS} from '../../src/redux';
import {SumoActionCreators, sumoInitReducer} from '../../src/redux/SumoRedux';
@@ -28,6 +30,7 @@ import {
} from '../../src/permissions/PermissionsRedux';
import Config from '../../env';
import {logger} from '../../src/services/Logger';
+import {StartupTypes} from '../../src/startup';
jest.mock('../../src/services/Logger', () => ({
logger: {
@@ -50,6 +53,7 @@ describe('sumoSagas', () => {
all([
takeLatest(USER_CHANGED_ACTIONS, onUserChanged),
takeLatest(TOKEN_CHANGED_ACTION, onTokenChanged),
+ takeLatest(StartupTypes.MINI_APP_NAV_STACK_LOADED, onMiniAppReplay),
]),
);
expect(iterator.next().done).toBe(true);
@@ -311,10 +315,37 @@ describe('initNotifications', () => {
defaultEventHandler,
);
+ expect(WmNotification.setDefaultEventListener).toHaveBeenCalledWith(
+ SumoEventTypes.appStartupFromNotification,
+ onAppStartupFromNotification,
+ );
+
expect(AppState.addEventListener).toHaveBeenCalledWith(
'change',
clearNotificationBadge,
);
expect(addSagas).toHaveBeenCalledWith(sumoSagas);
});
+
+ describe('onAppStartupFromNotification && onMiniAppReplay', () => {
+ it('replays if onAppStartupFromNotification was run', () => {
+ const event = {};
+ onAppStartupFromNotification(event);
+
+ const iterator = onMiniAppReplay();
+ expect(iterator.next().value).toEqual(
+ call(
+ WmNotification.runListeners,
+ SumoEventTypes.appStartupFromNotification,
+ event,
+ ),
+ );
+ expect(iterator.next().done).toBe(true);
+ });
+
+ it('does not replay if onAppStartupFromNotificaton was not called first', () => {
+ const iterator = onMiniAppReplay();
+ expect(iterator.next().done).toBe(true);
+ });
+ });
});
--- package-lock.json
@@ -12638,9 +12638,9 @@
"integrity": "sha512-lDgyoghNlFRRCK0ET3vYy+HzYK0sENPxs77RkHbkr1VxY2vMlC8MbyU5Hg13ORnDf7qst5A0bVz2bocVHR2k8Q=="
},
"react-native-wm-notification": {
- "version": "0.1.4",
- "resolved": "https://npme.walmart.com/react-native-wm-notification/-/react-native-wm-notification-0.1.4.tgz",
- "integrity": "sha512-VyqVooFzJfpHv2FcBbXRGItaUad9mXqA/ITthObW/b3S/r7G7eTbjV1kLQMLd4qcfewcPQrGw54tCU6FZ7u7Hw=="
+ "version": "1.0.0",
+ "resolved": "https://npme.walmart.com/react-native-wm-notification/-/react-native-wm-notification-1.0.0.tgz",
+ "integrity": "sha512-wYm6KtOAOJ+kX4c+0TQRok0Swg2Au9TRotVLQKTC4kg70Mi2pkQTpk8Po7kw3IgoVcZwGw+7VJ+0Y2bjEGloRQ=="
},
"react-native-wm-telemetry": {
"version": "0.3.0",
--- package.json
@@ -131,7 +131,7 @@
"react-native-wm-barcode": "2.9.0",
"react-native-wm-config": "^0.1.1",
"react-native-wm-network": "^0.1.0",
- "react-native-wm-notification": "^0.1.4",
+ "react-native-wm-notification": "^1.0.0",
"react-native-wm-telemetry": "^0.3.0",
"react-native-wm-voice-text": "^0.3.0",
"react-redux": "^7.2.1",
--- src/core/notificationInit.ts
@@ -13,10 +13,12 @@ import {
PermissionTypes,
} from '../permissions/PermissionsRedux';
import {logger} from '../services/Logger';
+import {StartupTypes} from '../startup';
/* istanbul ignore next */
export const defaultEventHandler = () => true; // TODO update to reflect design
let optionsSet = false;
+let startupNotification: any;
export const TOKEN_CHANGED_ACTION = 'global/TOKEN_REFRESH_SUCCESS';
export const getToken = (state: GlobalState) => state.auth.data?.accessToken;
@@ -90,22 +92,50 @@ export function* onTokenChanged() {
yield call(WmNotification.setPingFedToken, token);
}
+export function* onMiniAppReplay() {
+ if (startupNotification) {
+ __DEV__ && console.log('unhandled startup notification, replaying');
+ yield call(
+ WmNotification.runListeners,
+ SumoEventTypes.appStartupFromNotification,
+ startupNotification,
+ );
+ startupNotification = undefined;
+ }
+}
+
export function* sumoSagas() {
yield all(
createRestartableSagas([
takeLatest(USER_CHANGED_ACTIONS, onUserChanged),
takeLatest(TOKEN_CHANGED_ACTION, onTokenChanged),
+ takeLatest(StartupTypes.MINI_APP_NAV_STACK_LOADED, onMiniAppReplay),
]),
);
}
+export const onAppStartupFromNotification = (event: any) => {
+ __DEV__ && console.log('running default onAppStartupFromNotification');
+ startupNotification = event;
+ return true;
+};
+
export const initNotifications = () => {
reducerManager.addReducer('sumo', sumoInitReducer);
- Object.values(SumoEventTypes).forEach((eventType) => {
+ [
+ SumoEventTypes.appResumedFromNotification,
+ SumoEventTypes.profileHasBeenRegistered,
+ SumoEventTypes.receivedPushNotification,
+ ].forEach((eventType) => {
WmNotification.setDefaultEventListener(eventType, defaultEventHandler);
});
+ WmNotification.setDefaultEventListener(
+ SumoEventTypes.appStartupFromNotification,
+ onAppStartupFromNotification,
+ );
+
//Add clear badge listener
AppState.addEventListener('change', clearNotificationBadge);
--- src/navigation/AssociateHallwayNav/index.tsx
@@ -1,5 +1,5 @@
__DEV__ && console.log('loading associate hallway');
-import React from 'react';
+import React, {useEffect} from 'react';
import {useDispatch, useSelector} from 'react-redux';
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack';
import {ActivityMonitor, Header} from '@walmart/ui-components';
@@ -26,6 +26,7 @@ import {
} from '../../redux/SharedSelectors';
import {WhatsNewModal} from '../../whatsNew/WhatsNewModal';
import {WhatsNewScreen} from '../../whatsNew/WhatsNewScreen';
+import {StartupActionCreators} from '../../startup/StartupRedux';
import {PinAccessActionCreators} from '../../PinAccess/PinAccessRedux';
import {getUserSiteIdPresent} from '../../redux/UserSelector';
import {
@@ -52,6 +53,10 @@ const AssociateHallwayNav = () => {
const backgroundIdleTime = useSelector(getBackgroundIdleTime);
const siteIdPresent = useSelector(getUserSiteIdPresent);
+ useEffect(() => {
+ dispatch(StartupActionCreators.miniAppNavStackLoaded());
+ }, [dispatch]);
+
return (
<ActivityMonitor
enabled={siteIdPresent}
--- src/startup/StartupRedux.ts
@@ -1,7 +1,7 @@
import {createActions} from 'reduxsauce';
const {Types, Creators} = createActions(
- {startup: null, loadMiniApps: null},
+ {startup: null, loadMiniApps: null, miniAppNavStackLoaded: null},
{prefix: 'core/'},
);
export const StartupTypes = Types;
| replaying app startup from notification for mini apps | replaying app startup from notification for mini apps
|
da18cee06f86b45d66ea1f447b9eee0dccc9f704 | --- __tests__/navigation/__snapshots__/BottomSheetTest.tsx.snap
@@ -77,6 +77,7 @@ exports[`BottomSheetHeader matches snapshot with back disabled; calls onClose 1`
style={
Object {
"color": "#2e2f32",
+ "flex": 1,
"flexDirection": "row",
"fontSize": 18,
"lineHeight": 24,
@@ -155,6 +156,7 @@ exports[`BottomSheetHeader matches snapshot with back enabled; calls onBack 1`]
style={
Object {
"color": "#2e2f32",
+ "flex": 1,
"flexDirection": "row",
"fontSize": 18,
"lineHeight": 24,
--- __tests__/storeInfo/StoreInfoTest.tsx
@@ -40,7 +40,7 @@ describe('StoreInfo', () => {
jest.spyOn(Platform, 'select').mockImplementation((config) => config.ios);
DirectionsButton.props.onPress();
expect(LinkingSpy).toHaveBeenCalledWith(
- 'maps:0,0?q=Walmart Store 111&address=32.37,31.47',
+ 'maps:0,0?q=changeStore.storeDirectionsLabel&address=32.37,31.47',
);
});
@@ -50,7 +50,7 @@ describe('StoreInfo', () => {
.mockImplementation((config) => config.android);
DirectionsButton.props.onPress();
expect(LinkingSpy).toHaveBeenCalledWith(
- 'geo:0,0?q=32.37,31.47(Walmart Store 111)',
+ 'geo:0,0?q=32.37,31.47(changeStore.storeDirectionsLabel)',
);
});
});
--- __tests__/storeInfo/__snapshots__/StoreInfoTest.tsx.snap
@@ -93,8 +93,7 @@ exports[`StoreInfo matches snapshot with all store info 1`] = `
}
}
>
- Store
- 111
+ changeStore.storeLabel
</Title>
<Caption
style={
@@ -195,7 +194,7 @@ exports[`StoreInfo matches snapshot with no coordinates 1`] = `
}
}
>
- Store
+ changeStore.storeLabel
</Title>
<Caption
style={
@@ -256,8 +255,7 @@ exports[`StoreInfo matches snapshot without coordinates 1`] = `
}
}
>
- Store
- 111
+ changeStore.storeLabel
</Title>
<Caption
style={
| Snapshot updates | Snapshot updates
|
d5608ac8379dced36c49c2629f7976af8d22f3be | --- package-lock.json
@@ -43,7 +43,7 @@
"@walmart/core-utils": "~1.3.0",
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.0.42",
- "@walmart/emergency-mini-app": "1.13.0",
+ "@walmart/emergency-mini-app": "1.14.0",
"@walmart/exception-mini-app": "1.0.6",
"@walmart/facilities-management-miniapp": "0.4.2",
"@walmart/feedback-all-spark-miniapp": "0.9.7",
@@ -53,7 +53,7 @@
"@walmart/gtp-shared-components": "1.8.18",
"@walmart/impersonation-mini-app": "1.4.0",
"@walmart/ims-print-services-ui": "1.2.0",
- "@walmart/inbox-mini-app": "0.75.0",
+ "@walmart/inbox-mini-app": "0.76.0",
"@walmart/iteminfo-mini-app": "5.3.2",
"@walmart/manager-approvals-miniapp": "0.1.2",
"@walmart/me-field-mini-app": "1.1.35",
@@ -4922,9 +4922,9 @@
}
},
"node_modules/@walmart/emergency-mini-app": {
- "version": "1.13.0",
- "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.13.0.tgz",
- "integrity": "sha512-BHW8g23MfntX6w6v2nH6wz4mH+eHeY8PgqXfa9jr/pF86Zcn/k0nEyBqhegcZwqt1w6G57TQfC83E1dqzbzT7w==",
+ "version": "1.14.0",
+ "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.14.0.tgz",
+ "integrity": "sha512-DKG/iHtXNIBRWOfFtTnnT7gh4qmtIqhGTYleQVccAXnT8ANwjAE3iXVRA1DY+nFcCARY9y8stexr2MMpHRFERA==",
"dependencies": {
"@walmart/core-widget-registry": "^0.6.6"
},
@@ -5185,9 +5185,9 @@
}
},
"node_modules/@walmart/inbox-mini-app": {
- "version": "0.75.0",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.75.0.tgz",
- "integrity": "sha512-e2qzPidN1l8JheRH1Ak1AoA27vY4d9aroRWZxjpWZd/b0f8kRQIe7pK2dPOlKNgnkPQnJHzH/AM1QmdmYXwSuA==",
+ "version": "0.76.0",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.76.0.tgz",
+ "integrity": "sha512-LUJP7rqX1S0MA6oKAtKFhKxqhUpXWR9NQrgFQ1LMm+JUyJZCe02MtxBt2zh85+OA8vsuk7HMYmFfSpnmjiemnw==",
"dependencies": {
"@walmart/walmart-fiscal-week": "^0.3.6"
},
@@ -24810,9 +24810,9 @@
"integrity": "sha512-tk3UvKAl/VM29GwO/5uNURHnJkR/M1kq42Hn/2Xob+Ww7rY3gOHKhCTL3NytAPrZxyQco0ZyfGOGPbpy2aDnRw=="
},
"@walmart/emergency-mini-app": {
- "version": "1.13.0",
- "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.13.0.tgz",
- "integrity": "sha512-BHW8g23MfntX6w6v2nH6wz4mH+eHeY8PgqXfa9jr/pF86Zcn/k0nEyBqhegcZwqt1w6G57TQfC83E1dqzbzT7w==",
+ "version": "1.14.0",
+ "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.14.0.tgz",
+ "integrity": "sha512-DKG/iHtXNIBRWOfFtTnnT7gh4qmtIqhGTYleQVccAXnT8ANwjAE3iXVRA1DY+nFcCARY9y8stexr2MMpHRFERA==",
"requires": {
"@walmart/core-widget-registry": "^0.6.6"
},
@@ -24886,9 +24886,9 @@
"integrity": "sha512-ruI1vqy+0peD+BHi32DvhPSV8lmeoG/iLOeFYGekj40YwIKexXFepkYDiMTOr9tk5rzDg8d+FjRyzVAfKClhOw=="
},
"@walmart/inbox-mini-app": {
- "version": "0.75.0",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.75.0.tgz",
- "integrity": "sha512-e2qzPidN1l8JheRH1Ak1AoA27vY4d9aroRWZxjpWZd/b0f8kRQIe7pK2dPOlKNgnkPQnJHzH/AM1QmdmYXwSuA==",
+ "version": "0.76.0",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.76.0.tgz",
+ "integrity": "sha512-LUJP7rqX1S0MA6oKAtKFhKxqhUpXWR9NQrgFQ1LMm+JUyJZCe02MtxBt2zh85+OA8vsuk7HMYmFfSpnmjiemnw==",
"requires": {
"@walmart/walmart-fiscal-week": "^0.3.6"
}
--- package.json
@@ -86,7 +86,7 @@
"@walmart/core-utils": "~1.3.0",
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.0.42",
- "@walmart/emergency-mini-app": "1.13.0",
+ "@walmart/emergency-mini-app": "1.14.0",
"@walmart/exception-mini-app": "1.0.6",
"@walmart/facilities-management-miniapp": "0.4.2",
"@walmart/feedback-all-spark-miniapp": "0.9.7",
@@ -96,7 +96,7 @@
"@walmart/gtp-shared-components": "1.8.18",
"@walmart/impersonation-mini-app": "1.4.0",
"@walmart/ims-print-services-ui": "1.2.0",
- "@walmart/inbox-mini-app": "0.75.0",
+ "@walmart/inbox-mini-app": "0.76.0",
"@walmart/iteminfo-mini-app": "5.3.2",
"@walmart/manager-approvals-miniapp": "0.1.2",
"@walmart/me-field-mini-app": "1.1.35",
| mms screen bypass removed | mms screen bypass removed
|
d98cd1f80845c074dacaffa83aec9a13f10da40b | --- android/app/build.gradle
@@ -100,8 +100,8 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 932
- versionName "1.23.0"
+ versionCode 933
+ versionName "1.23.1"
}
signingConfigs {
--- ios/AllSpark/Info.plist
@@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.23.0</string>
+ <string>1.23.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -62,7 +62,6 @@
<dict>
<key>NSExceptionDomains</key>
<dict>
- <!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
<key>NSAllowsArbitraryLoads</key>
<false/>
<key>NSAllowsLocalNetworking</key>
@@ -83,17 +82,19 @@
<key>NSFaceIDUsageDescription</key>
<string>Use to confirm your identity</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
- <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string>
+ <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string>
<key>NSLocationAlwaysUsageDescription</key>
- <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string>
+ <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string>
<key>NSLocationWhenInUseUsageDescription</key>
- <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string>
+ <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string>
<key>NSMicrophoneUsageDescription</key>
<string>We record your voice when you want to do a voice search</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We use your gallery for scanning images of barcodes</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>We would like to use speech recognition to perform voice searches</string>
+ <key>NSMotionUsageDescription</key>
+ <string>Your device's motion data is used to help you navigate within the store.</string>
<key>UIAppFonts</key>
<array>
<string>Bogle-ThinItalic.otf</string>
--- package.json
@@ -1,6 +1,6 @@
{
"name": "allspark-main",
- "version": "1.23.0",
+ "version": "1.23.1",
"private": true,
"scripts": {
"android": "react-native run-android",
@@ -93,7 +93,7 @@
"@walmart/backroom-mini-app": "1.2.6",
"@walmart/calling-mini-app": "0.3.5",
"@walmart/checkout-mini-app": "3.22.0",
- "@walmart/compass-sdk-rn": "5.19.13",
+ "@walmart/compass-sdk-rn": "5.19.15",
"@walmart/config-components": "4.4.1",
"@walmart/copilot-mini-app": "3.92.14",
"@walmart/core-services": "6.1.4",
| Update compass sdk version | Update compass sdk version
Add purpose string for motion data usage
|
74f82864c9dccb37176b6ed01a659039c536eed5 | --- package-lock.json
@@ -3544,9 +3544,9 @@
"integrity": "sha512-HqzsayD8WUTeiG7VTuHWPgSqKM/RxN90OYmLxBvtyMgGAeAYz8nKnsR5USnPHGb0L2wHUg/KwAhpqRLr0Y2s7w=="
},
"@walmart/shelfavailability-mini-app": {
- "version": "0.3.71",
- "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.71.tgz",
- "integrity": "sha512-dUdC+zcRXTYY6lMtzKh+GqRIaC13WKrcKVtw5ZU2ltgYPVu6LYY397G4Eb6pcg5aQnRpZDkqkBC1DrdfZmo6ew==",
+ "version": "0.3.76",
+ "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.76.tgz",
+ "integrity": "sha512-hrB1dCbT8DVeffMIuwB4PiwauBi5J19H7Ic9jH8Yq2ssUjLlNBk+NUdyQfe9P3Iij5dQwTIET/U9bu5+8NzgpA==",
"requires": {
"@types/uuid": "^8.3.0",
"@types/xdate": "^0.8.31",
--- package.json
@@ -87,7 +87,7 @@
"@walmart/redux-store": "^1.0.15",
"@walmart/schedule-mini-app": "0.2.82",
"@walmart/settings-mini-app": "1.3.5",
- "@walmart/shelfavailability-mini-app": "0.3.71",
+ "@walmart/shelfavailability-mini-app": "0.3.76",
"@walmart/time-clock-mini-app": "0.4.0",
"@walmart/ui-components": "1.1.54",
"@walmart/welcomeme-mini-app": "0.26.2",
| 0.3.76 build | 0.3.76 build
|
519f9ebe990d4e4e9c32c01504156ce524091ac1 | --- __tests__/redux/selectors.test.ts
@@ -2,6 +2,8 @@ import * as selectors from '../../src/redux/selectors';
import {initialStateMock} from '../harness/redux/mockState';
import {setNestedValue} from '../harness';
import {logger} from '../../src/common';
+import {cloneDeep} from 'lodash';
+import {CCMFallbacks} from '../../src/utils/ccmFallbacks';
describe('Selectors', () => {
const appConfigData = setNestedValue(
@@ -11,6 +13,7 @@ describe('Selectors', () => {
);
let mockLogger;
+ let mockState = cloneDeep(initialStateMock);
beforeEach(() => {
mockLogger = jest.spyOn(logger, 'error');
@@ -18,6 +21,7 @@ describe('Selectors', () => {
});
afterEach(() => {
+ mockState = cloneDeep(initialStateMock);
mockLogger.mockRestore();
});
@@ -27,6 +31,47 @@ describe('Selectors', () => {
expect(getTextingAppConfigData).toStrictEqual({});
});
+ it('warningMessageContent selector', () => {
+ const getAppConfig = selectors.warningMessageContent(mockState);
+ expect(getAppConfig).toStrictEqual(
+ 'All users must be on the most recent version of Me@ to send and receive messages.',
+ );
+ });
+
+ it('warningMessageContent selector should return fallbacl if message content is unavailable', () => {
+ const state = setNestedValue(
+ mockState,
+ 'appConfig.data.roster.warningMessageContent',
+ null,
+ );
+ const getAppConfig = selectors.warningMessageContent(state);
+ expect(getAppConfig).toStrictEqual(CCMFallbacks.warningMessageContent);
+ });
+
+ it('shouldDisplayWarningBanner selector if value is true', () => {
+ const updatedState = setNestedValue(
+ mockState,
+ 'appConfig.data.roster.shouldDisplayWarningBanner',
+ true,
+ );
+ const bannerFlag = selectors.shouldDisplayWarningBanner(updatedState);
+ expect(bannerFlag).toStrictEqual(true);
+ });
+ it('should not DisplayWarningBanner selector if value is true', () => {
+ const updatedBannerFlag =
+ selectors.shouldDisplayWarningBanner(initialStateMock);
+ expect(updatedBannerFlag).toStrictEqual(false);
+ });
+ it('shouldDisplayWarningBanner selector should return fallback constant if null', () => {
+ const updatedState = setNestedValue(
+ mockState,
+ 'appConfig.data.roster.shouldDisplayWarningBanner',
+ null,
+ );
+ const bannerFlag = selectors.shouldDisplayWarningBanner(updatedState);
+ expect(bannerFlag).toStrictEqual(false);
+ });
+
it('getRmaAppId selector', () => {
const getRmaAppId = selectors.getRmaAppId(appConfigData);
expect(getRmaAppId).toStrictEqual('');
--- src/components/WarningBanner.tsx
@@ -0,0 +1,22 @@
+import React, {useCallback, useState} from 'react';
+import {Body, Banner} from '@walmart/gtp-shared-components';
+import {useSelector} from 'react-redux';
+import {
+ shouldDisplayWarningBanner,
+ warningMessageContent,
+} from '../redux/selectors';
+
+export const WarningBanner = () => {
+ const [dismissBanner, setDismissBanner] = useState(false);
+ const showWarningBanner = useSelector(shouldDisplayWarningBanner);
+ const messageContent = useSelector(warningMessageContent);
+ const onDismissBanner = useCallback(() => setDismissBanner(true), []);
+ if (!showWarningBanner || dismissBanner) {
+ return null;
+ }
+ return (
+ <Banner variant='warning' onClose={onDismissBanner} testID='warningBanner'>
+ <Body size='small'>{messageContent}</Body>
+ </Banner>
+ );
+};
--- src/redux/selectors.ts
@@ -217,3 +217,19 @@ export const displayFilterChipCount = createSelector(
CCMFallbacks.showFilterChipCount,
),
);
+
+export const shouldDisplayWarningBanner = createSelector(
+ [getRosterConfigData],
+ (state) =>
+ getCCMBooleanStr(
+ state?.shouldDisplayWarningBanner,
+ CCMFallbacks.shouldDisplayWarningBanner,
+ ),
+);
+
+export const warningMessageContent = createSelector(
+ [getRosterConfigData],
+ (state) =>
+ state?.warningMessageContent?.toString() ??
+ CCMFallbacks.warningMessageContent,
+);
--- src/screens/index.tsx
@@ -6,11 +6,13 @@ import {RosterNavigation, RosterNavParamsMap} from '../navigation';
import {ClockGuard} from '@walmart/allspark-foundation/Clock/withClockGuard';
import {PresenceProvider} from '@walmart/wmconnect-mini-app';
+import {WarningBanner} from '../components/WarningBanner';
export const RosterMiniApp = () => {
return (
<ClockGuard>
<PresenceProvider>
+ <WarningBanner />
<RosterNavigation />
</PresenceProvider>
</ClockGuard>
--- src/translations/en-US.ts
@@ -52,6 +52,12 @@ export const enUS = {
viewTeamLink: {
linkLabel: 'View other teams',
},
+ notInRoster:
+ 'You cannot text other associates since you are not in the roster of store {{siteId}}.',
+ notInRoster_store:
+ 'You cannot text other associates since you are not in the roster of store {{siteId}}.',
+ notInRoster_site:
+ 'You cannot text other associates since you are not in the roster of site {{siteId}}.',
},
hubWidget: {
roster: {
--- src/translations/es-MX.ts
@@ -47,6 +47,12 @@ export const esMX = {
viewTeamLink: {
linkLabel: 'Ver otros equipos',
},
+ notInRoster:
+ 'No puedes enviar mensajes de texto a otros asociados ya que no estás en la lista de la tienda {{siteId}}.',
+ notInRoster_store:
+ 'No puedes enviar mensajes de texto a otros asociados ya que no estás en la lista de la tienda {{siteId}}.',
+ notInRoster_site:
+ 'No puedes enviar mensajes de texto a otros asociados ya que no estás en la lista del sitio {{siteId}}.',
},
hubWidget: {
roster: {
--- src/utils/ccmFallbacks.ts
@@ -20,4 +20,7 @@ export const CCMFallbacks = {
showAssociateProfileImage: false,
showTotalScheduledCount: true,
showFilterChipCount: true,
+ shouldDisplayWarningBanner: false,
+ warningMessageContent:
+ 'All users must be on the most recent version of Me@ to send and receive messages.',
};
| Add warning banner | Add warning banner
|
d6d18b58d0096f5124d3e61357d0b5b8bc689840 | --- package.json
@@ -98,7 +98,7 @@
"@walmart/avp-feature-app": "0.28.31",
"@walmart/avp-shared-library": "0.27.21",
"@walmart/ax-components": "1.2.3",
- "@walmart/backroom-mini-app": "1.17.4",
+ "@walmart/backroom-mini-app": "1.17.7",
"@walmart/beneficiary-online-mini-app": "0.1.26",
"@walmart/beneficiary-online-shared-library": "1.2.7",
"@walmart/calling-mini-app": "0.8.27",
--- yarn.lock
@@ -7624,9 +7624,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/backroom-mini-app@npm:1.17.4":
- version: 1.17.4
- resolution: "@walmart/backroom-mini-app@npm:1.17.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.17.4.tgz"
+"@walmart/backroom-mini-app@npm:1.17.7":
+ version: 1.17.7
+ resolution: "@walmart/backroom-mini-app@npm:1.17.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.17.7.tgz"
peerDependencies:
"@react-navigation/native": ^7.0.0
"@react-navigation/stack": ^7.1.0
@@ -7642,7 +7642,6 @@ __metadata:
react-native: "*"
react-native-gesture-handler: ">=2.9.0"
react-native-mask-input: ">=1.2.3"
- react-native-new-snap-carousel: ">=3.9.3"
react-native-reanimated: ">=2.14.4"
react-native-safe-area-context: ">=4.3.1"
react-native-screens: ">=3.15.0"
@@ -7650,7 +7649,7 @@ __metadata:
react-native-svg-transformer: ">=1.0.0"
react-redux: ">=8.0.0"
redux: ">=4.0.0"
- checksum: 10c0/80d469c1c285df676b61c0ef1aeec327ef6b6be600a82826592179cc9226f4f5fde05fdf582abdf6c48ae2791769850d21a645cd5ddf79415c680e31e44f5658
+ checksum: 10c0/d4143d9574c1ac2ddfbd8ab1872fd64492aad82716c83e997e7f6d6ba1a7cfb1c85b04949d6980eb19cc3565f4b8f9e890447cefb123505c8b2039954065059c
languageName: node
linkType: hard
@@ -8497,7 +8496,7 @@ __metadata:
"@walmart/avp-feature-app": "npm:0.28.31"
"@walmart/avp-shared-library": "npm:0.27.21"
"@walmart/ax-components": "npm:1.2.3"
- "@walmart/backroom-mini-app": "npm:1.17.4"
+ "@walmart/backroom-mini-app": "npm:1.17.7"
"@walmart/beneficiary-online-mini-app": "npm:0.1.26"
"@walmart/beneficiary-online-shared-library": "npm:1.2.7"
"@walmart/calling-mini-app": "npm:0.8.27"
| feat: Upgrade backroom-mini-app to 1.17.7 (#5164) | feat: Upgrade backroom-mini-app to 1.17.7 (#5164)
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> |
b14151b0ff0d437bed7543c180f8c7ca64e19231 | --- __tests__/harness/firestore/data/channels.ts
@@ -5,7 +5,7 @@ import {
createImageMessage,
createTextMessage,
} from './messages';
-import {encryptUserId} from '../../../../src/utils';
+import {encryptUserId} from '../../../../src/utils/user';
import {staticDateStrings} from './timestamps';
const managementChannelParticipants = [
--- __tests__/harness/firestore/data/users.ts
@@ -1,4 +1,4 @@
-import {encryptUserId} from '../../../../src/utils';
+import {encryptUserId} from '../../../../src/utils/user';
// @ts-ignore
import {generateCreatedAt} from './timestamps';
// @ts-ignore
--- __tests__/harness/index.tsx
@@ -68,11 +68,9 @@ export const renderWithProviders: typeof render = (
<EnvironmentProvider
env={envType ? {...envConfig, envType} : envConfig}>
<I18nextProvider i18n={i18n}>
- <PresenceContext.Provider value={{}}>
- <ChannelsContext.Provider value={channelsContext}>
- {children}
- </ChannelsContext.Provider>
- </PresenceContext.Provider>
+ <ChannelsContext.Provider value={channelsContext}>
+ {children}
+ </ChannelsContext.Provider>
</I18nextProvider>
</EnvironmentProvider>
</ReduxProvider>
--- __tests__/harness/firestore/data/channels.ts
@@ -5,7 +5,7 @@ import {
createImageMessage,
createTextMessage,
} from './messages';
-import {encryptUserId} from '../../../../src/utils';
+import {encryptUserId} from '../../../../src/utils/user';
import {staticDateStrings} from './timestamps';
const managementChannelParticipants = [
--- __tests__/harness/firestore/data/users.ts
@@ -1,4 +1,4 @@
-import {encryptUserId} from '../../../../src/utils';
+import {encryptUserId} from '../../../../src/utils/user';
// @ts-ignore
import {generateCreatedAt} from './timestamps';
// @ts-ignore
--- __tests__/harness/index.tsx
@@ -68,11 +68,9 @@ export const renderWithProviders: typeof render = (
<EnvironmentProvider
env={envType ? {...envConfig, envType} : envConfig}>
<I18nextProvider i18n={i18n}>
- <PresenceContext.Provider value={{}}>
- <ChannelsContext.Provider value={channelsContext}>
- {children}
- </ChannelsContext.Provider>
- </PresenceContext.Provider>
+ <ChannelsContext.Provider value={channelsContext}>
+ {children}
+ </ChannelsContext.Provider>
</I18nextProvider>
</EnvironmentProvider>
</ReduxProvider>
| fixing unit tests, removing unmocked presence provider | fixing unit tests, removing unmocked presence provider
|
ab7dfc4e7d69b6173da28182848af8c6c4e3cbf6 | --- .looper-native-common.yml
@@ -13,7 +13,7 @@ envs:
XC_WORKSPACE: './AllSpark.xcworkspace'
XC_SCHEME: 'AllSpark'
XC_TARGET: 'AllSpark'
- TARGET_XCODE: "11.2.1"
+ TARGET_XCODE: "11.5"
GITHUB_TOKEN: ENC[CGMhL3M/PKGSd9JmVpyMSAxGD/ZNRzJbf6v6/VuJBIWoj226WrPkQe5i7DIFJjTR]
#BetaCrash
| updated Xcode version as old build jobs are rejecting 11.2.1 version (#36) | updated Xcode version as old build jobs are rejecting 11.2.1 version (#36)
|
a7164f24c780b5c8b76d034c7e2c6f43d94352b0 | --- .yarn/patches/@walmart-me-at-walmart-container-npm-6.1.4-9866658c81.patch
@@ -0,0 +1,20 @@
+diff --git a/lib/services/telemetry.js b/lib/services/telemetry.js
+index df12df7271434ce6060c4caeca6bbdf563257b67..2899691484385b83c0ad583c2595dae84cb35cae 100644
+--- a/lib/services/telemetry.js
++++ b/lib/services/telemetry.js
+@@ -33,13 +33,13 @@ class TelemetryClient {
+ ...(params || {}),
+ };
+ // Firebase event names cannot exceed 40 characters
+- if (event.length > MAX_EVENT_LENGTH) {
++ if (fullEvent.length > MAX_EVENT_LENGTH) {
+ // Throw error in dev mode, otherwise truncate the event name
+ if (__DEV__) {
+ throw new Error(`AllsparkTelemetry: event cannot exceed length of ${MAX_EVENT_LENGTH}. Event: ${fullEvent}`);
+ }
+ else {
+- fullEvent = event.slice(0, MAX_EVENT_LENGTH);
++ fullEvent = fullEvent.slice(0, MAX_EVENT_LENGTH);
+ }
+ }
+ // We want to restrict the number of params to 4
--- package.json
@@ -116,7 +116,7 @@
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-at-walmart-athena-queries": "6.1.4",
"@walmart/me-at-walmart-common": "6.1.4",
- "@walmart/me-at-walmart-container": "6.1.4",
+ "@walmart/me-at-walmart-container": "patch:@walmart/me-at-walmart-container@npm%3A6.1.4#~/.yarn/patches/@walmart-me-at-walmart-container-npm-6.1.4-9866658c81.patch",
"@walmart/metrics-mini-app": "0.22.4",
"@walmart/mod-flex-mini-app": "1.18.5",
"@walmart/moment-walmart": "1.0.4",
@@ -393,6 +393,7 @@
"@walmart/allspark-utils": "6.1.4",
"@walmart/allspark-foundation": "6.1.4",
"@walmart/me-at-walmart-common": "6.1.4",
+ "@walmart/me-at-walmart-container": "patch:@walmart/me-at-walmart-container@npm%3A6.1.4#~/.yarn/patches/@walmart-me-at-walmart-container-npm-6.1.4-9866658c81.patch",
"@walmart/allspark-graphql-client": "6.1.4",
"@walmart/allspark-http-client": "6.1.4",
"@walmart/core-services": "6.1.4",
| fix: patch for event length | fix: patch for event length
|
94e82f11d8df1e4063cf12fe19706998fe27fcdf | --- core/__tests__/__mocks__/@walmart/me-at-walmart-common.js
@@ -3,4 +3,7 @@ module.exports = {
InboxContainer: {
addMultiple: jest.fn(),
},
+ HomeHeaderRightContainer: {
+ Component: 'Component',
+ }
};
--- core/__tests__/navigation/IndexTest.tsx
@@ -0,0 +1,10 @@
+import {render} from '@testing-library/react-native';
+import {MissingHallwayScreen} from '../../src/navigation/index';
+
+describe('MissingHallwayScreen', () => {
+ it('renders error message with correct title and text', () => {
+ const component = render(<MissingHallwayScreen />);
+ expect(component.UNSAFE_root._fiber.child.pendingProps.title).toBe('Missing Hallway');
+ expect(component.UNSAFE_root._fiber.child.pendingProps.children[0]).toBe('No Hallway found for Container: ');
+ });
+ });
\ No newline at end of file
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/Tabs/ConfigTest.tsx
@@ -2,7 +2,9 @@ import {create} from 'react-test-renderer';
import {TelemetryService} from '@walmart/allspark-foundation/Telemetry';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
-
+import {
+ NavConfigSelectors,
+} from '@walmart/allspark-foundation/Navigation';
import {
renderTabBarButton,
renderTabBarIcon,
@@ -11,6 +13,7 @@ import {
AskSamPlaceholder,
TabListeners,
onBottomNavTabPress,
+ getBottomNavConfigMap,
} from '../../../../../src/navigation/USHallway/AssociateHallwayNav/Tabs/config';
test('renderTabBarButton', () => {
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/Tabs/MeStackNavTest.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import {create} from 'react-test-renderer';
-
+import { render } from '@testing-library/react-native';
+import {HomeHeaderRightContainer} from '@walmart/me-at-walmart-common';
import {MeStackNav} from '../../../../../src/navigation/USHallway/AssociateHallwayNav/Tabs/MeStackNav';
describe('MeStackNav', () => {
@@ -16,4 +17,10 @@ describe('MeStackNav', () => {
create(HomeScreen.props.options.headerLeft()).toJSON(),
).toMatchSnapshot();
});
+ it('renders headerRight component with id="inbox"', () => {
+ const component = render(<MeStackNav />);
+ const headerRightComponent = component.UNSAFE_root._fiber.child.pendingProps.screenOptions.headerRight();
+ expect(headerRightComponent).toBeTruthy();
+ expect(headerRightComponent.props).toEqual(expect.objectContaining({ id: 'inbox' }));
+ });
});
--- core/__tests__/permissions/PermissionsSagaTest.ts
@@ -3,7 +3,6 @@ import {call, select, fork, take, cancel, put} from 'redux-saga/effects';
import {createMockTask} from '@redux-saga/testing-utils';
import {
- AllsparkPermissionClient,
PermissionActionTypes,
} from '@walmart/allspark-foundation/Permissions';
import {NotificationSelectors} from '@walmart/allspark-foundation/Notification';
@@ -20,7 +19,6 @@ import {
PERMISSION_LOCATION_SCREEN,
PERMISSION_NOTIFICATION_SCREEN,
PERMISSION_WELCOME_SCREEN,
- PLATFORM_LOCATION_PERMISSION,
} from '../../src/permissions/constants';
import {
PERMISSIONS_COMPLETE,
@@ -92,35 +90,90 @@ describe('permissions sagas', () => {
describe('handlePermissions', () => {
it('handles permissions set', () => {
const iterator = handlePermissions();
- expect(iterator.next().value).toEqual(call(getPermissionsUnset));
- expect(iterator.next(false).done).toEqual(true);
+ let result = iterator.next();
+ expect(result.value).toEqual(call(getPermissionsUnset));
+ expect(result.done).toBe(false);
+ result = iterator.next(false);
+ expect(result.done).toBe(true);
});
-
+
it('handles permissions not set', () => {
const flowTask = createMockTask();
const iterator = handlePermissions();
- expect(iterator.next().value).toEqual(call(getPermissionsUnset));
- expect(iterator.next(true).value).toEqual(
- call(resetTo, PERMISSION_WELCOME_SCREEN),
- );
- expect(iterator.next().value).toEqual(fork(permissionFlow));
- expect(iterator.next(flowTask).value).toEqual(
- take(PERMISSIONS_COMPLETE.type),
- );
- expect(iterator.next().value).toEqual(cancel(flowTask));
+ let result = iterator.next();
+ expect(result.value).toEqual(call(getPermissionsUnset));
+ expect(result.done).toBe(false);
+ result = iterator.next(true);
+ expect(result.value).toEqual(call(resetTo, PERMISSION_WELCOME_SCREEN));
+ expect(result.done).toBe(false);
+ result = iterator.next();
+ expect(result.value).toEqual(fork(permissionFlow));
+ expect(result.done).toBe(false);
+ result = iterator.next(flowTask);
+ expect(result.value).toEqual(take(PERMISSIONS_COMPLETE.type));
+ expect(result.done).toBe(false);
+ result = iterator.next();
+ expect(result.value).toEqual(cancel(flowTask));
+ expect(result.done).toBe(false);
});
-
+
it('handles permissions not set and undefined flow task', () => {
const iterator = handlePermissions();
- expect(iterator.next().value).toEqual(call(getPermissionsUnset));
- expect(iterator.next(true).value).toEqual(
- call(resetTo, PERMISSION_WELCOME_SCREEN),
- );
- expect(iterator.next().value).toEqual(fork(permissionFlow));
- expect(iterator.next(undefined).value).toEqual(
- take(PERMISSIONS_COMPLETE.type),
- );
- expect(iterator.next().done).toEqual(true);
+ let result = iterator.next();
+ expect(result.value).toEqual(call(getPermissionsUnset));
+ expect(result.done).toBe(false);
+ result = iterator.next(true);
+ expect(result.value).toEqual(call(resetTo, PERMISSION_WELCOME_SCREEN));
+ expect(result.done).toBe(false);
+ result = iterator.next();
+ expect(result.value).toEqual(fork(permissionFlow));
+ expect(result.done).toBe(false);
+ result = iterator.next(undefined);
+ expect(result.value).toEqual(take(PERMISSIONS_COMPLETE.type));
+ expect(result.done).toBe(false);
+ result = iterator.next();
+ expect(result.done).toBe(true);
});
});
});
+
+describe('getPermissionsUnset', () => {
+ it('returns true if notificationsUnset is true', () => {
+ const generator = getPermissionsUnset();
+ expect(generator.next().value).toEqual(expect.objectContaining({
+ type: 'SELECT',
+ payload: expect.objectContaining({
+ args: [],
+ selector: expect.any(Function),
+ }),
+ }));
+ expect(generator.next(false).value).toEqual(expect.objectContaining({
+ type: 'SELECT',
+ payload: expect.objectContaining({
+ args: [],
+ selector: expect.any(Function),
+ }),
+ }));
+ expect(generator.next(true).done).toBeTruthy();
+ });
+
+ it('returns false if both are false', () => {
+ const generator = getPermissionsUnset();
+ expect(generator.next().value).toEqual(expect.objectContaining({
+ type: 'SELECT',
+ payload: expect.objectContaining({
+ args: [],
+ selector: expect.any(Function),
+ }),
+ }));
+ expect(generator.next(false).value).toEqual(expect.objectContaining({
+ type: 'SELECT',
+ payload: expect.objectContaining({
+ args: [],
+ selector: expect.any(Function),
+ }),
+ }));
+ expect(generator.next(false).done).toBeTruthy();
+ });
+});
+
--- core/__tests__/permissions/__snapshots__/PermissionsSagaTest.ts.snap
@@ -0,0 +1,13 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`getPermissionsUnset returns true if location permission is unset 1`] = `
+{
+ "@@redux-saga/IO": true,
+ "combinator": false,
+ "payload": {
+ "args": [],
+ "selector": [Function],
+ },
+ "type": "SELECT",
+}
+`;
| navigation and permission folder test cases | navigation and permission folder test cases
|
0aaf76d4089a4b1b6765ee859e388e203d20f306 | --- package.json
@@ -87,7 +87,7 @@
"@walmart/core-widget-registry": "0.5.7",
"@walmart/counts-component-miniapp": "0.0.39",
"@walmart/exception-mini-app": "0.42.6",
- "@walmart/facilities-management-miniapp": "0.3.15",
+ "@walmart/facilities-management-miniapp": "0.3.16",
"@walmart/feedback-all-spark-miniapp": "0.8.0",
"@walmart/financial-wellbeing-feature-app": "1.0.29",
"@walmart/functional-components": "2.0.6",
| Update package.json | Update package.json |
45fd47356115631c746ae6cf905febda96c79b81 | --- package-lock.json
@@ -62,7 +62,7 @@
"@walmart/moment-walmart": "1.0.4",
"@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/pay-stub-miniapp": "0.9.7",
- "@walmart/payrollsolution_miniapp": "0.130.4",
+ "@walmart/payrollsolution_miniapp": "^0.130.5",
"@walmart/price-changes-mini-app": "1.6.8",
"@walmart/profile-feature-app": "0.76.0",
"@walmart/push-to-talk-mini-app": "1.8.29",
@@ -5497,9 +5497,9 @@
}
},
"node_modules/@walmart/payrollsolution_miniapp": {
- "version": "0.130.4",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.4.tgz",
- "integrity": "sha512-YFB2ovqucmR1yE7WikATcHSrNKRxzw7Dm/YV/ZfxDG9dCowD6E3zQ+6IWHNQURtrJ0fyi8XrZR+fyA4qmAnSMA==",
+ "version": "0.130.5",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.5.tgz",
+ "integrity": "sha512-0d8TlIhcBncezYaoE5I9Wlf6wVWvWWae6G2oJ6eFlnlom7sAOI0TpZhleoSKpieBtF0lXXj8pOXx0ru1g2Xlpg==",
"dependencies": {
"crypto-js": "^3.3.0"
},
@@ -24988,9 +24988,9 @@
}
},
"@walmart/payrollsolution_miniapp": {
- "version": "0.130.4",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.4.tgz",
- "integrity": "sha512-YFB2ovqucmR1yE7WikATcHSrNKRxzw7Dm/YV/ZfxDG9dCowD6E3zQ+6IWHNQURtrJ0fyi8XrZR+fyA4qmAnSMA==",
+ "version": "0.130.5",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.5.tgz",
+ "integrity": "sha512-0d8TlIhcBncezYaoE5I9Wlf6wVWvWWae6G2oJ6eFlnlom7sAOI0TpZhleoSKpieBtF0lXXj8pOXx0ru1g2Xlpg==",
"requires": {
"crypto-js": "^3.3.0"
}
--- package.json
@@ -73,7 +73,6 @@
"@react-navigation/stack": "^6.1.0",
"@sharcoux/slider": "^6.1.1",
"@terrylinla/react-native-sketch-canvas": "0.8.0",
- "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/allspark-home-mini-app": "0.6.13",
"@walmart/allspark-neon-core": "0.1.31",
"@walmart/amp-mini-app": "0.2.13",
@@ -103,8 +102,9 @@
"@walmart/metrics-mini-app": "0.9.33",
"@walmart/mod-flex-mini-app": "1.3.11",
"@walmart/moment-walmart": "1.0.4",
+ "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/pay-stub-miniapp": "0.9.7",
- "@walmart/payrollsolution_miniapp": "0.130.4",
+ "@walmart/payrollsolution_miniapp": "0.130.5",
"@walmart/price-changes-mini-app": "1.6.8",
"@walmart/profile-feature-app": "0.76.0",
"@walmart/push-to-talk-mini-app": "1.8.29",
| bump version | bump version
|
e21a63c07b536f778c650b39663166b94cf8d655 | --- packages/allspark-foundation/src/Container/AllsparkContainer.tsx
@@ -308,6 +308,7 @@ export class AllsparkContainer<
components,
NavigationContainer,
devMenuEnabled,
+ ...rest
} = props;
return (
@@ -320,6 +321,7 @@ export class AllsparkContainer<
components={components}
NavigationContainer={NavigationContainer}
devMenuEnabled={devMenuEnabled}
+ {...rest}
>
{children}
</this.BaseProvider>
| fix(ctn): fix library in container | fix(ctn): fix library in container
|
6f8a313961b2cd3781ba21a5f314e65ae71a8058 | --- package.json
@@ -87,7 +87,7 @@
"@walmart/core-widget-registry": "0.5.7",
"@walmart/counts-component-miniapp": "0.0.39",
"@walmart/exception-mini-app": "0.42.6",
- "@walmart/facilities-management-miniapp": "0.3.11",
+ "@walmart/facilities-management-miniapp": "0.3.12",
"@walmart/feedback-all-spark-miniapp": "0.8.0",
"@walmart/financial-wellbeing-feature-app": "1.0.29",
"@walmart/functional-components": "2.0.6",
| Update package.json | Update package.json |
ad962350e5bc5ee07f73b7bb9553ed1886b15c97 | --- package.json
@@ -177,7 +177,7 @@
"@walmart/talent-preboarding-mini-app": "1.0.63",
"@walmart/talent-preboarding-shared-utils": "^0.1.114",
"@walmart/taskit-mini-app": "5.52.10",
- "@walmart/time-clock-feature-app": "1.0.0",
+ "@walmart/time-clock-feature-app": "1.0.1",
"@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",
"@walmart/timesheet-feature-app": "0.2.0",
"@walmart/topstock-mini-app": "1.28.19",
--- yarn.lock
@@ -8910,7 +8910,7 @@ __metadata:
"@walmart/talent-preboarding-mini-app": "npm:1.0.63"
"@walmart/talent-preboarding-shared-utils": "npm:^0.1.114"
"@walmart/taskit-mini-app": "npm:5.52.10"
- "@walmart/time-clock-feature-app": "npm:1.0.0"
+ "@walmart/time-clock-feature-app": "npm:1.0.1"
"@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"
"@walmart/timesheet-feature-app": "npm:0.2.0"
"@walmart/topstock-mini-app": "npm:1.28.19"
@@ -9979,9 +9979,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/time-clock-feature-app@npm:1.0.0":
- version: 1.0.0
- resolution: "@walmart/time-clock-feature-app@npm:1.0.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftime-clock-feature-app%2F-%2F%40walmart%2Ftime-clock-feature-app-1.0.0.tgz"
+"@walmart/time-clock-feature-app@npm:1.0.1":
+ version: 1.0.1
+ resolution: "@walmart/time-clock-feature-app@npm:1.0.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftime-clock-feature-app%2F-%2F%40walmart%2Ftime-clock-feature-app-1.0.1.tgz"
peerDependencies:
"@react-native-community/datetimepicker": "*"
"@walmart/allspark-foundation": ">=6.32.0"
@@ -9998,7 +9998,7 @@ __metadata:
react-native-wifi-reborn: "*"
uuid: ^3.3.2
wfm-allspark-data-library: ">=7.0.0"
- checksum: 10c0/8c791b29133abdcf4c6d55f1d7bf23717967545fe2f3fee8b38f3db39c4b1eafba740cbf4163fdc147a5501214aed9c3cf515c6097ac4361330c531e0045e3a7
+ checksum: 10c0/48c4fa74a4750f25390e70f9d7dc4c6ffa12bc4580f25fa4641de9d0ae829934371a7ae26770b23898ccbf4a83d3a35eadefe1a9924b7fb9ae6388e5a9ba7e7f
languageName: node
linkType: hard
| feat: package bump for time-clock-feature (#5365) | feat: package bump for time-clock-feature (#5365)
Co-authored-by: j0n00f4 <j0n00f4@homeoffice.wal-mart.com>
Co-authored-by: Sushrut Palatkar - s0p0fos <Sushrut.Palatkar@walmart.com>
Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com> |
4b6f031f5e5334344fbf460ffdf988dd1c938291 | --- packages/core-widget-registry/src/Sidekick.ts
@@ -5,7 +5,7 @@ import { useRegistry, WidgetRegistry } from '@walmart/allspark-utils';
export type PayloadType = 'ok' | 'stale' | 'failed';
export interface SidekickWidgetProps {
- onNetworkCallback: (payloadStatus: PayloadType) => void;
+ onNetworkCallback?: (payloadStatus: PayloadType) => void;
maxItems?: number;
filterBy?: {
trailerIds?: string[];
| updated sidekick widget props | updated sidekick widget props
|
0b3a3e311348bf249fd9b9d0daa2afcb48db671b | --- __tests__/auth/LoginErrorScreen/CustomErrorScreenCardTest.tsx
@@ -1,6 +1,6 @@
import React from 'react';
import {render, fireEvent} from '@testing-library/react-native';
-import {CustomErrorCard} from '../../src/auth/LoginErrorScreen/CustomErrorScreenCard';
+import {CustomErrorCard} from '../../../src/auth/LoginErrorScreen/CustomErrorScreenCard';
const mockSetShowCustomError = jest.fn();
const mockGoBack = jest.fn();
--- __tests__/auth/LoginErrorScreen/__snapshots__/CustomErrorScreenCardTest.tsx.snap
--- __tests__/auth/LoginErrorScreen/__snapshots__/indexTest.tsx.snap
@@ -83,6 +83,7 @@ exports[`ErrorScreen handles render for controllers 1`] = `
isFullWidth={true}
onPress={[Function]}
size="medium"
+ testID="2sv-button"
variant="secondary"
>
loginErrorGuide.twoStepButton
@@ -426,6 +427,7 @@ exports[`ErrorScreen handles rendering the custom error code 1`] = `
isFullWidth={true}
onPress={[Function]}
size="medium"
+ testID="2sv-button"
variant="secondary"
>
loginErrorGuide.twoStepButton
@@ -801,6 +803,7 @@ exports[`ErrorScreen handles save with no detail 1`] = `
isFullWidth={true}
onPress={[Function]}
size="medium"
+ testID="2sv-button"
variant="secondary"
>
loginErrorGuide.twoStepButton
@@ -1134,6 +1137,7 @@ exports[`ErrorScreen renders default 1`] = `
isFullWidth={true}
onPress={[Function]}
size="medium"
+ testID="2sv-button"
variant="secondary"
>
loginErrorGuide.twoStepButton
--- __tests__/auth/LoginErrorScreen/indexTest.tsx
@@ -7,8 +7,8 @@ import {
ErrorScreen,
OtherErrorsSelectionCard,
myOnChange,
-} from '../../src/auth/LoginErrorScreen';
-import {defaultConfig} from '../../src/auth/LoginErrorScreen/ErrorList';
+} from '../../../src/auth/LoginErrorScreen';
+import {defaultConfig} from '../../../src/auth/LoginErrorScreen/ErrorList';
import {useTranslation} from '@walmart/core-services/Translations';
import WmConfig from 'react-native-wm-config';
import {useLogger} from '@walmart/core-services/Logger';
@@ -30,7 +30,7 @@ jest.mock('react-hook-form', () => ({
const logger = useLogger();
-jest.mock('../../src/transforms/MaskUserId', () => ({
+jest.mock('../../../src/transforms/MaskUserId', () => ({
encryptUserId: jest.fn((user, site) => `Encrypted-${user}-${site}`),
}));
@@ -249,6 +249,37 @@ describe('ErrorScreen', () => {
dismissText: 'welcomeScreen.gotIt',
});
});
+
+ it('navigates to 2sv', () => {
+ (useTranslation as jest.Mock).mockReturnValueOnce([
+ (translate) => {
+ const t = {'ssoError.other': 'Otro'};
+ return t[translate] || translate;
+ },
+ {language: 'es-MX'},
+ ]);
+ mockUseState.mockReturnValueOnce([
+ defaultConfig.issues,
+ setErrorCategoriesFb,
+ ]);
+ mockUseState.mockReturnValueOnce([
+ defaultConfig.otherIssues,
+ setOtherErrorFb,
+ ]);
+ mockUseState.mockReturnValueOnce([true, setShowCustomError]);
+ mockUseForm.mockReturnValueOnce({
+ handleSubmit: (f) => () => f(baseFormParamValues),
+ formState: {errors: {}},
+ });
+ component.update(<ErrorScreen navigation={mockNavigation} route={route} />);
+
+ const twoStepButton = component.root.findByProps({testID: '2sv-button'});
+ twoStepButton.props.onPress();
+ expect(mockNavigation.navigate).toHaveBeenCalledWith(
+ 'Core.ErrorTwoFactorGuideScreen',
+ );
+ });
+
it('handles save on button press with errorCategory as Other', () => {
Platform.OS = 'android';
(useTranslation as jest.Mock).mockReturnValue([
--- src/auth/LoginErrorScreen/CustomErrorScreenCard.tsx
@@ -13,7 +13,7 @@ import WmTelemetry from 'react-native-wm-telemetry';
import {SSO_APP} from '../../types/telemetryConstants';
import {useLogger} from '@walmart/core-services/Logger';
import {IAllsparkLogger} from '@walmart/core-services-allspark';
-import {CustomErrorScreenProps} from './ErrorScreenTypes';
+import {CustomErrorScreenProps} from './types';
import {useTranslation} from '@walmart/core-services/Translations';
export const TitleSection = (props: {cardTitle: string}) => {
--- src/auth/LoginErrorScreen/TwoFactorGuideScreen.tsx
@@ -40,6 +40,7 @@ export const TwoFactorGuideScreen: FC<
const telemetry = useTelemetry<IAllsparkTelemetry>();
const logger = useLogger<IAllsparkLogger>();
const [translate] = useTranslation('common');
+ const twoStepUrl = 'https://one.walmart.com/2sv';
useEffect(() => {
telemetry.logEvent(SSO_APP, 'two_factor_guide_screen_loaded', {});
navigation.setOptions({
@@ -50,7 +51,7 @@ export const TwoFactorGuideScreen: FC<
const onPressLink = () => {
telemetry.logEvent(SSO_APP, 'two_sv_link_clicked', {});
- Linking.openURL('https://one.walmart.com/2sv').catch(() => {
+ Linking.openURL(twoStepUrl).catch(() => {
logger.error('Error opening 2SV link', {
message: 'Error opening one walmart 2SV verification link',
});
@@ -92,7 +93,7 @@ export const TwoFactorGuideScreen: FC<
UNSAFE_style={{color: colors.blue[100]}}
onPress={onPressLink}
testID='link_button'>
- https://one.walmart.com/2sv
+ {twoStepUrl}
</Link>
{translate('loginErrorGuide.linkDescOne')}
</Body>
--- src/auth/LoginErrorScreen/index.tsx
@@ -273,6 +273,7 @@ export const ErrorScreen = (
variant='secondary'
size='medium'
isFullWidth
+ testID='2sv-button'
UNSAFE_style={styles.guideScreenTitle}
onPress={() =>
navigation.navigate('Core.ErrorTwoFactorGuideScreen')
--- src/startup/AuthFlow.ts
@@ -44,11 +44,11 @@ export function* authFlow() {
signInAction.error,
);
- // if (!isSilentError) {
- yield call(navigate, 'Core.ErrorScreen', {
- authError: signInAction.error,
- });
- // }
+ if (!isSilentError) {
+ yield call(navigate, 'Core.ErrorScreen', {
+ authError: signInAction.error,
+ });
+ }
}
}
}
--- src/translations/en-US.ts
@@ -249,7 +249,7 @@ export const enUS_common = {
timeMismatchErrorTitle: 'Adjust device clock',
troubleShootIssue: 'Troubleshoot issue',
troubleShootIssueDesc:
- 'See below for solutions to common \nproblems or report your issue.',
+ 'See below for solutions to common problems or report your issue.',
tryAgain: 'Try again',
userId: 'User ID',
},
--- src/translations/es-MX.ts
@@ -256,7 +256,7 @@ export const esMX_common = {
timeMismatchErrorTitle: 'Adjust device clock',
troubleShootIssue: 'Solución de problemas',
troubleShootIssueDesc:
- 'Consulta a continuación las soluciones a \nproblemas comunes o informa tu problema.',
+ 'Consulta a continuación las soluciones a problemas comunes o informa tu problema.',
tryAgain: 'Try again',
userId: 'ID de Usuario',
},
| update and refactor test. | update and refactor test.
|
6ca74a8e92a0c4905c660c1ed0968fbccd08600c | --- package.json
@@ -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.15",
+ "@walmart/allspark-foundation-hub": "1.4.0",
"@walmart/allspark-graphql-client": "^1.4.6",
"@walmart/allspark-http-client": "6.1.4",
"@walmart/config-components": "4.4.0",
--- yarn.lock
@@ -6078,9 +6078,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/allspark-foundation-hub@npm:1.3.15":
- version: 1.3.15
- resolution: "@walmart/allspark-foundation-hub@npm:1.3.15::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2Fallspark-foundation-hub-1.3.15.tgz"
+"@walmart/allspark-foundation-hub@npm:1.4.0":
+ version: 1.4.0
+ resolution: "@walmart/allspark-foundation-hub@npm:1.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.4.0.tgz"
dependencies:
"@reduxjs/toolkit": "npm:^1.9.7"
"@shopify/flash-list": "npm:~1.6.4"
@@ -6096,7 +6096,7 @@ __metadata:
react: "*"
react-native: "*"
react-native-safe-area-context: 4.x
- checksum: 10c0/bea4c0d15d9c2787514c88e1336cd862535f9e8ea4d0d8248f2003232dc0b1d3b9c5b3cfcec61eb8ee469c2042016029ead0a4065eb2a3eac45edeb3d9f8af36
+ checksum: 10c0/f17bf67df2b5cd5c84eadc5fe2c1d647885e082cfe0765c7bf83f131c37ff99f08402c64d06e0a5d9aa7b57dac9706319be775145ceccce4e842318ebbc7b9e0
languageName: node
linkType: hard
@@ -6547,7 +6547,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.15"
+ "@walmart/allspark-foundation-hub": "npm:1.4.0"
"@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 package | Update the roster mini app package
|
9538bf5c5a32aac0cc2a9545c98d1468522c75e6 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.0-alpha.8",
+ "version": "2.12.0-alpha.9",
"main": "dist/index.js",
"files": [
"dist"
@@ -90,12 +90,12 @@
"@walmart/allspark-http-client": "6.1.4",
"@walmart/config-components": "4.4.0",
"@walmart/core-services": "6.1.4",
- "@walmart/core-services-allspark": "6.1.4",
+ "@walmart/core-services-allspark": "latest",
"@walmart/core-utils": "6.1.4",
"@walmart/functional-components": "6.1.4",
"@walmart/gtp-shared-components": "2.2.1",
"@walmart/me-at-walmart-athena-queries": "6.25.1",
- "@walmart/me-at-walmart-common": "6.1.4",
+ "@walmart/me-at-walmart-common": "latest",
"@walmart/me-at-walmart-container": "latest",
"@walmart/react-native-encrypted-storage": "~1.1.3",
"@walmart/react-native-logger": "1.34.8",
--- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx
@@ -4,6 +4,7 @@ import {ROSTER_I18N_NAMESPACE} from '../../../translations';
import {RefreshControl, View} from 'react-native';
import {ErrorScreen} from '@walmart/allspark-foundation-hub/HubFeature/TeamSelection/Component/ErrorScreen';
import {TeamSwitcher} from '@walmart/allspark-foundation-hub/HubFeature/Hub/TeamSwitcher';
+import {ManagerExperienceSelectors} from '@walmart/allspark-foundation-hub/HubFeature/Redux';
import {RosterDetailPageHeader} from '../../components/RosterDetailPageHeader';
import {RosterFiltersAndInfo} from '../../components/RosterFiltersAndInfo';
import {TeamSearchInput} from '../../components/TeamSearchInput';
@@ -23,7 +24,6 @@ import {
import {sortedAssociateList} from '../../../utils/assoicateList';
import {UserSelectors} from '@walmart/allspark-foundation/User';
import {
- userIsManager,
generateTeamRoster,
handleMessageAssociate,
handleViewAssociateSchedule,
@@ -53,10 +53,13 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
UserSelectors.getCountryCode,
);
const userId = useSelector(getEncryptedUserId);
- // TODO: get real user team ids
- const userTeamIds = ['1000326', '1000328', '1000101'];
- const employeeType = useSelector(UserSelectors.getEmployeeType);
- const isManager = userIsManager(employeeType);
+ const userTeamIds = useSelector(
+ ManagerExperienceSelectors.getSelectedTeamData,
+ );
+ const isPeopleLead: boolean = useSelector(UserSelectors.getIsUserPeopleLead);
+ const isTeamLead: boolean = useSelector(UserSelectors.getIsUserTeamLead);
+ const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried);
+ const isSalariedOrLead = isTeamLead || isSalaried || isPeopleLead;
const primaryTeamId = useGetViewersPrimaryTeamId();
const initialTeamId = route?.params?.teamId || '';
const [currentTeamId, setCurrentTeamId] = useState<string>(initialTeamId);
@@ -160,7 +163,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
const filterChips: FilterChipProps[] = useMemo(
() =>
- !isManager
+ !isSalariedOrLead
? []
: [
{
@@ -209,11 +212,12 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
return (
<>
- {isManager ? (
+ {isSalariedOrLead ? (
<TeamSwitcher
onTeamChange={(teamId: string) => {
setCurrentTeamId(teamId);
}}
+ refreshing={state.refreshing}
/>
) : (
<RosterDetailPageHeader
@@ -244,7 +248,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
associates={teamRoster}
filterChips={filterChips}
headerText={
- !isManager && isPrimaryTeam
+ !isSalariedOrLead && isPrimaryTeam
? t('rosterScreen.primaryTeamRosterName', {
teamName: currentTeamName,
})
--- yarn.lock
@@ -6138,14 +6138,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/core-services-allspark@npm:6.1.4":
- version: 6.1.4
- resolution: "@walmart/core-services-allspark@npm:6.1.4"
+"@walmart/core-services-allspark@npm:latest":
+ version: 6.25.1
+ resolution: "@walmart/core-services-allspark@npm:6.25.1"
peerDependencies:
"@walmart/allspark-foundation": "*"
"@walmart/me-at-walmart-common": "*"
"@walmart/me-at-walmart-container": "*"
- checksum: 10c0/e2897882394970d2eb176c52d45e2cb67318a1af05498c8ab1932d6636192c3b621930f1d1b47c1824c2cfcc7b10b05cbc3b62441d36ff6be3c8c839782be8bd
+ checksum: 10c0/30b03bb196568cb413737d81a51e3754193cd57b603f10136fd2d9743a4afdafb343fd3414926d2ed2fbcafca75851210978d1e5e69cf13690493aa6a7e46859
languageName: node
linkType: hard
@@ -6224,14 +6224,14 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/me-at-walmart-common@npm:6.1.4":
- version: 6.1.4
- resolution: "@walmart/me-at-walmart-common@npm:6.1.4"
+"@walmart/me-at-walmart-common@npm:latest":
+ version: 6.25.1
+ resolution: "@walmart/me-at-walmart-common@npm:6.25.1"
peerDependencies:
"@reduxjs/toolkit": "*"
"@walmart/allspark-foundation": "*"
redux-saga: "*"
- checksum: 10c0/e8e96d4c0aec9697ac269d3a20cf10b0e8a41002581716bc15637c9c66a56f35e11ec3adf00912529219af40145d6dfcedf606b031ae01424c26af59f207bcfb
+ checksum: 10c0/bb85154964a61f854ea6248ba33d774c742bfa8b06cf11583550b9830d1ad6f5e6c923b31ef4ab99f84e67392ba5269d0a7091cef25e6861142b4d23413704c0
languageName: node
linkType: hard
@@ -6394,12 +6394,12 @@ __metadata:
"@walmart/allspark-http-client": "npm:6.1.4"
"@walmart/config-components": "npm:4.4.0"
"@walmart/core-services": "npm:6.1.4"
- "@walmart/core-services-allspark": "npm:6.1.4"
+ "@walmart/core-services-allspark": "npm:latest"
"@walmart/core-utils": "npm:6.1.4"
"@walmart/functional-components": "npm:6.1.4"
"@walmart/gtp-shared-components": "npm:2.2.1"
"@walmart/me-at-walmart-athena-queries": "npm:6.25.1"
- "@walmart/me-at-walmart-common": "npm:6.1.4"
+ "@walmart/me-at-walmart-common": "npm:latest"
"@walmart/me-at-walmart-container": "npm:latest"
"@walmart/react-native-encrypted-storage": "npm:~1.1.3"
"@walmart/react-native-logger": "npm:1.34.8"
@@ -7804,9 +7804,9 @@ __metadata:
linkType: hard
"caniuse-lite@npm:^1.0.30001663":
- version: 1.0.30001666
- resolution: "caniuse-lite@npm:1.0.30001666"
- checksum: 10c0/2d49e9be676233c24717f12aad3d01b3e5f902b457fe1deefaa8d82e64786788a8f79381ae437c61b50e15c9aea8aeb59871b1d54cb4c28b9190d53d292e2339
+ version: 1.0.30001667
+ resolution: "caniuse-lite@npm:1.0.30001667"
+ checksum: 10c0/6bc8555a47603e1e76eaef9b185d6fdeeca7d9c20a283f7c32c971eb1b52ea3a80e6ec086920f088f06abe619240f1023a2d3a08b5b1f2f11df1475695e9f71c
languageName: node
linkType: hard
@@ -9123,9 +9123,9 @@ __metadata:
linkType: hard
"electron-to-chromium@npm:^1.5.28":
- version: 1.5.31
- resolution: "electron-to-chromium@npm:1.5.31"
- checksum: 10c0/e8aecd88c4c6d50a9d459b4b222865b855bab8f1b52e82913804e18b7884f2887bd76c61b3aa08c2ccbdcda098dd8486443f75bf770f0138f21dd9e63548fca7
+ version: 1.5.32
+ resolution: "electron-to-chromium@npm:1.5.32"
+ checksum: 10c0/d0c0c418fae6f7714fb6cfeb8f6a74a9504cf41ed6a4119d5388d94442ee224238c331bacc5917f2c89e3ffebd1b9f870ea5c0951c473ca7e58debef0f3e9137
languageName: node
linkType: hard
| Update my team mini app version | Update my team mini app version
|
8e3642a3153e0a81dffddb8521151abdf228ab10 | --- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx
@@ -96,7 +96,9 @@ export const TeamSwitcher = ({
const flatListRef = useRef<FlatList<any>>(null);
useFocusEffect(() => {
- flatListRef.current?.scrollToOffset({ animated: false, offset: 0 });
+if (flatListRef.current) {
+ flatListRef.current.scrollToOffset({ animated: false, offset: 0 });
+}
});
useEffect(() => {
| Update packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx | Update packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx
Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> |
3d03002373db75aab043a5276cb3b492237b4e4c | --- package-lock.json
@@ -5497,9 +5497,9 @@
"integrity": "sha512-vGHNXjipnOEdJaASi+EQjTr0YeBNJ2/8Az1pRWzi72gPKh3LfBWidMwrN7CzOCNNuXirVuRVP9zyfTscyQN6pw=="
},
"@walmart/emergency-mini-app": {
- "version": "1.5.0",
- "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.5.0.tgz",
- "integrity": "sha512-1wd5x2U8lnENH+YLJU90H8Tq1xVoHorLBo9vn6OEzKFm6ol3nEY0GjROdD8RMereBLJ9k3tbl8wNRDGTS49qgg==",
+ "version": "1.6.0",
+ "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.6.0.tgz",
+ "integrity": "sha512-CAxGsr5rLXo3admCFukIPB1Nf7BDd+7OiRBtrs/q8lsmPOjw0IwQ13YhKS9Xtp7+EpBddtBXKfspfShq6oNLmg==",
"requires": {
"@walmart/core-widget-registry": "^0.6.6"
},
--- package.json
@@ -86,7 +86,7 @@
"@walmart/core-utils": "~1.0.10",
"@walmart/core-widget-registry": "0.5.7",
"@walmart/counts-component-miniapp": "0.0.39",
- "@walmart/emergency-mini-app": "1.5.0",
+ "@walmart/emergency-mini-app": "1.6.0",
"@walmart/exception-mini-app": "0.43.1",
"@walmart/facilities-management-miniapp": "0.3.26",
"@walmart/feedback-all-spark-miniapp": "0.8.0",
| emergency url fix for mms | emergency url fix for mms
|
407a52d47d78ba712f53aa1fd65396399c5d8398 | --- package.json
@@ -93,7 +93,7 @@
"@walmart/inbox-mini-app": "0.40.0-inbox3.33",
"@walmart/iteminfo-mini-app": "5.0.6",
"@walmart/manager-approvals-miniapp": "0.0.62",
- "@walmart/me-field-mini-app": "1.1.11",
+ "@walmart/me-field-mini-app": "1.1.14",
"@walmart/metrics-mini-app": "0.9.5",
"@walmart/mod-flex-mini-app": "1.1.0",
"@walmart/moment-walmart": "1.0.4",
| feat: :sparkles: Bumping Learning mini app version | feat: :sparkles: Bumping Learning mini app version
|
2041b50ef187ae69d285aeb28734bb230d2185d2 | --- __tests__/home/components/CelebrationCard/__snapshots__/indexTest.tsx.snap
@@ -239,14 +239,14 @@ exports[`CelebrationCard matches snapshot when loaded; calls navigate on view mo
}
titleKey="tomorrow"
/>
- <View
- style={
+ <Divider
+ UNSAFE_style={
{
- "backgroundColor": "#f1f1f2",
"borderRadius": 1000,
"height": 1,
"marginBottom": 16,
"marginTop": 12,
+ "width": "92%",
}
}
/>
@@ -341,14 +341,14 @@ exports[`CelebrationCard matches snapshot when loading, but with results 1`] = `
}
titleKey="tomorrow"
/>
- <View
- style={
+ <Divider
+ UNSAFE_style={
{
- "backgroundColor": "#f1f1f2",
"borderRadius": 1000,
"height": 1,
"marginBottom": 16,
"marginTop": 12,
+ "width": "92%",
}
}
/>
--- src/home/components/CelebrationCard/index.tsx
@@ -23,6 +23,7 @@ import {ErrorComponent} from '../ErrorComponent';
import {CelebrationCardProps} from './types';
import {AssociateNameList} from './AssociateNameList';
import styles from './styles';
+import { Divider } from '@walmart/gtp-shared-components-3';
export const CelebrationCard = (props: CelebrationCardProps) => {
const {style, onRefreshStart, onRefreshEnd, refresh: parentRefresh} = props;
@@ -121,7 +122,7 @@ export const CelebrationCard = (props: CelebrationCardProps) => {
<AssociateNameList {...birthday} context={'birthday'} />
)}
- {showDivider && <View style={styles.dividerRow} />}
+ {showDivider && <Divider UNSAFE_style={styles.dividerRow} />}
{showAnniversaries && (
<AssociateNameList {...anniversary} context={'anniversary'} />
--- src/home/components/CelebrationCard/styles.ts
@@ -39,7 +39,7 @@ export default StyleSheet.create({
marginBottom: Metrics.margins.large,
height: 1,
borderRadius: Metrics.radius.circle,
- backgroundColor: colors.gray[10],
+ width: '92%'
},
nameRow: {
flexDirection: 'row',
--- src/home/components/ScrollingHeader/index.tsx
@@ -1,5 +1,5 @@
import React, {useCallback, useEffect, useState} from 'react';
-import {Animated, TouchableOpacity} from 'react-native';
+import {Animated, TouchableOpacity, LayoutAnimation} from 'react-native';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
import {ChevronLeftIcon, colors} from '@walmart/gtp-shared-components-3';
@@ -39,7 +39,7 @@ export const ScrollingHeader = (props) => {
const celebrationTransformX = scrollY.interpolate({
inputRange: [0, scrollDistance],
- outputRange: [0, -16],
+ outputRange: [0, -20],
extrapolate: 'clamp',
});
@@ -49,13 +49,21 @@ export const ScrollingHeader = (props) => {
extrapolate: 'clamp',
});
+ const textWidth = scrollY.interpolate({
+ inputRange: [0, scrollDistance],
+ outputRange: ['50%', '100%'],
+ extrapolate: 'clamp',
+ });
+
const handleOffsetText = useCallback(
({value}) => {
if (value < 0.8 && offsetText) {
+ LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
setOffsetText(false);
}
if (value > 0.8 && !offsetText) {
+ LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
setOffsetText(true);
}
},
@@ -92,6 +100,7 @@ export const ScrollingHeader = (props) => {
{translateY: celebrationTransformY},
{translateX: celebrationTransformX},
],
+ width: textWidth,
},
]}>
<Animated.Text
@@ -100,7 +109,7 @@ export const ScrollingHeader = (props) => {
{
paddingTop: collapsedHeight,
transform: [{scale: titleScale}],
- marginRight: offsetText ? '40%' : 0,
+
},
]}>
{title}
| feat(ui-issues): fix ui issues | feat(ui-issues): fix ui issues
|
17f5c2ef4a5247c927094eb8035c47d893e51748 | --- package-lock.json
@@ -1903,9 +1903,9 @@
}
},
"@walmart/allspark-me-mini-app": {
- "version": "0.0.11",
- "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.0.11.tgz",
- "integrity": "sha512-TJbp1iRErhRtUBfZuOaCMTS4UN2xi2LbrktKCPXlPWyWi0pyYFHcmBUda5odSrtzdm0soYG0X8iBPdv/W7qpFA==",
+ "version": "0.0.13",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.0.13.tgz",
+ "integrity": "sha512-89HNXgh5DkacJnZZX7xHVSz6juKjxs4vn5r78bj/HCMnzRh/x63ARx2gkc2nZtNXHgtdWiLxF0iroYgvWQ6i4Q==",
"requires": {
"reselect": "^4.0.0"
}
--- package.json
@@ -43,7 +43,7 @@
"@types/lodash": "^4.14.159",
"@walmart/allspark-health-survey-mini-app": "0.0.10",
"@walmart/allspark-home-mini-app": "0.1.4",
- "@walmart/allspark-me-mini-app": "0.0.11",
+ "@walmart/allspark-me-mini-app": "0.0.13",
"@walmart/ask-sam-mini-app": "0.6.25",
"@walmart/config-components": "1.0.8",
"@walmart/feedback-all-spark-miniapp": "0.0.29",
| Bumped me mini app version (#177) | Bumped me mini app version (#177)
To link the TOR profile button
Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com> |
7685203da4fba60350dea1324c9ad487262b475d | --- ios/Podfile.lock
@@ -2232,7 +2232,7 @@ PODS:
- FirebaseMessaging (<= 10.18.0)
- StructuredLogAssistantIOS (= 0.0.7)
- TOCropViewController (2.6.1)
- - topstock-mini-app (1.10.8):
+ - topstock-mini-app (1.12.0):
- React
- VisionCamera (3.7.1):
- React
@@ -2899,7 +2899,7 @@ SPEC CHECKSUMS:
StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1
SumoSDK: 58664bf3b83e2f4bcdfc52704235ab4bca519ceb
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
- topstock-mini-app: b194faed10e28756619b4105d6de60965bcd2058
+ topstock-mini-app: 37f838d08fe79248fc2e39c3f003e07afa51c2df
VisionCamera: ef56ac9d3e0fef4b94c7cf75735aaccc2326e35a
walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c
WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b
--- package.json
@@ -146,7 +146,7 @@
"@walmart/store-feature-orders": "1.26.9",
"@walmart/taskit-mini-app": "3.0.2",
"@walmart/time-clock-mini-app": "2.395.0",
- "@walmart/topstock-mini-app": "1.10.8",
+ "@walmart/topstock-mini-app": "1.12.0",
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch",
"@walmart/welcomeme-mini-app": "0.94.0",
"@walmart/wfm-ui": "0.8.12",
--- yarn.lock
@@ -7259,9 +7259,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/topstock-mini-app@npm:1.10.8":
- version: 1.10.8
- resolution: "@walmart/topstock-mini-app@npm:1.10.8"
+"@walmart/topstock-mini-app@npm:1.12.0":
+ version: 1.12.0
+ resolution: "@walmart/topstock-mini-app@npm:1.12.0"
peerDependencies:
"@react-native-firebase/app": ^15.1.1
"@react-native-firebase/crashlytics": ^15.1.1
@@ -7278,7 +7278,7 @@ __metadata:
react-native-haptic-feedback: ^1.13.0
react-native-vector-icons: ">=6.6.0"
react-redux: ">=7.2.0"
- checksum: 10c0/ba43295c85f5376b0cb43bf10e1487d3b9c28ec2bfc94abe01442f4c3a7dd36ef27dea9b3d9305878828e6fa8e6fdb3110920ff9125af31b501a1567ee166281
+ checksum: 10c0/64d49669316e55d8ed1bdce780f830cdf660d919b314d1f351dbc0e9877442cc268c3a1c34d768a1f4ed180f82ddfb6dae0e8cf7fe91483f9f2824c9c0fae105
languageName: node
linkType: hard
@@ -7861,7 +7861,7 @@ __metadata:
"@walmart/store-feature-orders": "npm:1.26.9"
"@walmart/taskit-mini-app": "npm:3.0.2"
"@walmart/time-clock-mini-app": "npm:2.395.0"
- "@walmart/topstock-mini-app": "npm:1.10.8"
+ "@walmart/topstock-mini-app": "npm:1.12.0"
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch"
"@walmart/welcomeme-mini-app": "npm:0.94.0"
"@walmart/wfm-ui": "npm:0.8.12"
| reverting yoga and cocopodods changes | reverting yoga and cocopodods changes
|
2e87c4647e2d81fe98136d5c19f37b1edca4d1d6 | --- package-lock.json
@@ -64,7 +64,7 @@
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
"@walmart/metrics-mini-app": "0.15.14",
- "@walmart/mod-flex-mini-app": "1.11.6",
+ "@walmart/mod-flex-mini-app": "1.13.1",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.10.15",
@@ -8757,9 +8757,9 @@
"license": "MIT"
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.11.6",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.11.6.tgz",
- "integrity": "sha512-Qw1WDLt8GOi2StFWZOlB7YNXhTg79JGqpuNmD3N8gSW+WQpJyTcEFo7aeZmEJDUNddM2Fj2Sx+7fddPfmg8shQ==",
+ "version": "1.13.1",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.1.tgz",
+ "integrity": "sha512-a5JN/96JNi1BLy7Gk9svRdVf8+0A7YQXjiL/nu8PsmV5DwEAqU+QwwrM7+P5J3WOlbVuV3v6SlhKwHXJElwbjA==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
@@ -34412,9 +34412,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.11.6",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.11.6.tgz",
- "integrity": "sha512-Qw1WDLt8GOi2StFWZOlB7YNXhTg79JGqpuNmD3N8gSW+WQpJyTcEFo7aeZmEJDUNddM2Fj2Sx+7fddPfmg8shQ=="
+ "version": "1.13.1",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.13.1.tgz",
+ "integrity": "sha512-a5JN/96JNi1BLy7Gk9svRdVf8+0A7YQXjiL/nu8PsmV5DwEAqU+QwwrM7+P5J3WOlbVuV3v6SlhKwHXJElwbjA=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
--- package.json
@@ -105,7 +105,7 @@
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/me-field-mini-app": "14.0.2",
"@walmart/metrics-mini-app": "0.15.14",
- "@walmart/mod-flex-mini-app": "1.11.6",
+ "@walmart/mod-flex-mini-app": "1.13.1",
"@walmart/moment-walmart": "1.0.4",
"@walmart/onewalmart-miniapp": "1.0.16",
"@walmart/pay-stub-miniapp": "0.10.15",
| Update to Modflex Drop 17 | Update to Modflex Drop 17
|
61f9309004a6fe91cf22b4da06367733b46377b1 | --- src/channels/components/EmptyChannels.tsx
@@ -2,9 +2,9 @@ import React from 'react';
import {Image, StyleSheet, Text, View, Linking} from 'react-native';
import {Body} from '@walmart/gtp-shared-components';
import {Images} from '../../images';
-import {useNavigation} from '@react-navigation/native';
import {useSelector} from 'react-redux';
import {codeOfConductLink} from '../../redux/selectors';
+import {navigate} from '@walmart/react-native-shared-navigation';
const styles = StyleSheet.create({
emptyChannelsView: {
@@ -43,7 +43,6 @@ const styles = StyleSheet.create({
},
});
export const EmptyChannels = () => {
- const navigation = useNavigation();
const codeOfConduct: string = useSelector(codeOfConductLink).toString();
return (
<View style={styles.emptyChannelsView}>
@@ -65,9 +64,7 @@ export const EmptyChannels = () => {
Code of Conduct
</Text>{' '}
and
- <Text
- style={styles.linkStyle}
- onPress={() => navigation.navigate('TnC')}>
+ <Text style={styles.linkStyle} onPress={() => navigate('TnC')}>
{' '}
Terms of use
</Text>{' '}
--- src/channels/components/EmptyChannels.tsx
@@ -2,9 +2,9 @@ import React from 'react';
import {Image, StyleSheet, Text, View, Linking} from 'react-native';
import {Body} from '@walmart/gtp-shared-components';
import {Images} from '../../images';
-import {useNavigation} from '@react-navigation/native';
import {useSelector} from 'react-redux';
import {codeOfConductLink} from '../../redux/selectors';
+import {navigate} from '@walmart/react-native-shared-navigation';
const styles = StyleSheet.create({
emptyChannelsView: {
@@ -43,7 +43,6 @@ const styles = StyleSheet.create({
},
});
export const EmptyChannels = () => {
- const navigation = useNavigation();
const codeOfConduct: string = useSelector(codeOfConductLink).toString();
return (
<View style={styles.emptyChannelsView}>
@@ -65,9 +64,7 @@ export const EmptyChannels = () => {
Code of Conduct
</Text>{' '}
and
- <Text
- style={styles.linkStyle}
- onPress={() => navigation.navigate('TnC')}>
+ <Text style={styles.linkStyle} onPress={() => navigate('TnC')}>
{' '}
Terms of use
</Text>{' '}
| using the correct navigator | using the correct navigator
|
5cc3a90fefa07a5d30f1a7f46c0cc4af2a207702 | --- packages/core-services-allspark/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [6.5.0-alpha.1](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@6.5.0-alpha.0...@walmart/core-services-allspark@6.5.0-alpha.1) (2024-07-18)
+
+**Note:** Version bump only for package @walmart/core-services-allspark
+
+
+
+
+
# [6.5.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-services-allspark@6.4.1...@walmart/core-services-allspark@6.5.0-alpha.0) (2024-07-15)
--- packages/core-services-allspark/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/core-services-allspark",
- "version": "6.5.0-alpha.0",
+ "version": "6.5.0-alpha.1",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/me-at-walmart-container/CHANGELOG.md
@@ -3,6 +3,23 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [6.5.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/@walmart/me-at-walmart-container@6.4.2-alpha.0...@walmart/me-at-walmart-container@6.5.0-alpha.0) (2024-07-18)
+
+
+### Bug Fixes
+
+* update event to count for 40 chars ([c4a18f3](https://gecgithub01.walmart.com/allspark/allspark-core/commit/c4a18f30a7251628f3ff81fb3a5842c9725e9441))
+* update if condition for event length ([23511c2](https://gecgithub01.walmart.com/allspark/allspark-core/commit/23511c2fbd2cf7d2eac5785df2d15d5d9b3c2aea))
+
+
+### Features
+
+* update foundation for static local storage client. fix tests ([7f17883](https://gecgithub01.walmart.com/allspark/allspark-core/commit/7f1788357fc89c3abf6a68b60b57511fce887ef4))
+
+
+
+
+
## [6.4.2-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/@walmart/me-at-walmart-container@6.4.1...@walmart/me-at-walmart-container@6.4.2-alpha.0) (2024-07-15)
--- packages/me-at-walmart-container/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-container",
- "version": "6.4.2-alpha.0",
+ "version": "6.5.0-alpha.0",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/core-services-allspark@6.5.0-alpha.1
- @walmart/me-at-walmart-container@6.5.0-alpha.0
|
76373c47ba93c6fe9d8ba72cd8fc1ccc7e7765a8 | --- package.json
@@ -63,8 +63,6 @@
"@redux-saga/testing-utils": "^1.1.3",
"@sharcoux/slider": "^5.2.1",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
- "@walmart/iteminfo-mini-app": "1.0.1",
- "@walmart/shelfavailability-mini-app": "0.3.32",
"@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",
@@ -77,6 +75,7 @@
"@walmart/impersonation-mini-app": "1.0.15",
"@walmart/ims-print-services-ui": "0.0.16",
"@walmart/inbox-mini-app": "0.0.94",
+ "@walmart/iteminfo-mini-app": "1.0.1",
"@walmart/moment-walmart": "1.0.4",
"@walmart/push-to-talk-mini-app": "0.5.12",
"@walmart/react-native-env": "^0.1.0",
@@ -85,6 +84,7 @@
"@walmart/redux-store": "^1.0.12",
"@walmart/schedule-mini-app": "0.2.75",
"@walmart/settings-mini-app": "1.2.3",
+ "@walmart/shelfavailability-mini-app": "0.3.33",
"@walmart/time-clock-mini-app": "0.3.2",
"@walmart/ui-components": "1.1.18",
"@walmart/welcomeme-mini-app": "0.21.0",
@@ -132,7 +132,7 @@
"react-native-table-component": "^1.2.1",
"react-native-typing-animation": "^0.1.7",
"react-native-v8": "^0.63.2-patch.1",
- "react-native-vector-icons": "^7.0.0",
+ "react-native-vector-icons": "^7.1.0",
"react-native-version": "^4.0.0",
"react-native-video": "^5.1.0-alpha8",
"react-native-view-shot": "^3.1.2",
| Updated the shelfavailability version | Updated the shelfavailability version
|
39c1de89ad188a78aa15b7bb4e3cd6adf479f115 | --- __tests__/settings/versions/__snapshots__/VersionsListTest.tsx.snap
@@ -128,7 +128,7 @@ exports[`VersionsList VersionsList 1`] = `
accessibilityLabel="section-list"
contentContainerStyle={
{
- "paddingBottom": 0,
+ "paddingBottom": 30,
}
}
data={
--- src/settings/versions/VersionsList.tsx
@@ -61,6 +61,8 @@ export const SessionIdRow = () => {
);
};
+const EXTRA_BOTTOM_PADDING = 30;
+
const styles = StyleSheet.create({
container: {
backgroundColor: 'white',
@@ -113,7 +115,7 @@ export const VersionsList = (
testID='section-list'
accessibilityLabel='section-list'
contentContainerStyle={{
- paddingBottom: insets.bottom,
+ paddingBottom: insets.bottom + EXTRA_BOTTOM_PADDING,
}}
sections={versions}
showsVerticalScrollIndicator={false}
| feat(settings): add padding | feat(settings): add padding
|
c6e4dda601cae2e84b03a9866009156bf7f95809 | --- package-lock.json
@@ -1911,9 +1911,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.6.23",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.23.tgz",
- "integrity": "sha512-tf3yXkhE4T/ANt0eyW9zCMKWehMm0r8qzjWAwJDCbc9Pk99DPsH2sxYi6mq9kgHpWDQtzNSa0Ctsxw4M+CoR1A==",
+ "version": "0.6.24",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.24.tgz",
+ "integrity": "sha512-q5cM+h38CrYtDCBWfXCRchugmzEWU9kvcC6JWddKHdRU9FVVa/rlv9qJ3ttyKnwk8ZO2nZ9frCOD4+717obQAg==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
--- package.json
@@ -44,7 +44,7 @@
"@walmart/allspark-health-survey-mini-app": "0.0.10",
"@walmart/allspark-home-mini-app": "0.1.4",
"@walmart/allspark-me-mini-app": "0.0.11",
- "@walmart/ask-sam-mini-app": "0.6.23",
+ "@walmart/ask-sam-mini-app": "0.6.24",
"@walmart/config-components": "1.0.7",
"@walmart/feedback-all-spark-miniapp": "0.0.29",
"@walmart/functional-components": "^1.0.22",
| Increment ask sam version (#172) | Increment ask sam version (#172)
* Increment ask sam version
* package lock update
Co-authored-by: rlane1 <rlane1@walmart.com> |
bdd9644d3dff2de4ebec962d25a871009c397ee0 | --- package-lock.json
@@ -2994,9 +2994,9 @@
}
},
"@walmart/allspark-me-mini-app": {
- "version": "0.0.16",
- "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.0.16.tgz",
- "integrity": "sha512-UN2HLMZw39I0mD1H17o/6fCLFO7wTC3vakKLbPySuL4xL+8T5XxZBo00RaJ+glomnhLe1eNJbua03oUrZ1fjfw==",
+ "version": "0.0.17",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.0.17.tgz",
+ "integrity": "sha512-sLSyIp22UmYUrlw6Bo6ezN32enEC4cZHWkEpipS3SZUL1JzPahLFAuQfk0ROykR897VPCnj51RQKisJwcxPK/Q==",
"requires": {
"reselect": "^4.0.0"
}
--- package.json
@@ -48,7 +48,7 @@
"@types/lodash": "^4.14.159",
"@walmart/allspark-health-survey-mini-app": "0.0.22",
"@walmart/allspark-home-mini-app": "^0.1.8",
- "@walmart/allspark-me-mini-app": "0.0.16",
+ "@walmart/allspark-me-mini-app": "0.0.17",
"@walmart/ask-sam-mini-app": "0.8.0",
"@walmart/config-components": "1.0.8",
"@walmart/feedback-all-spark-miniapp": "0.0.31",
| Updated me mini app for VQA and Firebase logging (#282) | Updated me mini app for VQA and Firebase logging (#282)
* Updated me mini app for VQA and Firebase logging
* resolve dependency |
059a0884264f51e090fccb0042040b736b3b26fb | --- android/app/src/main/java/com/walmart/stores/allspark/beta/MainActivity.kt
@@ -1,5 +1,6 @@
package com.walmart.stores.allspark.beta
import android.content.Context
+import android.content.Intent
import android.os.Bundle
import com.facebook.react.ReactActivity
@@ -30,6 +31,10 @@ class MainActivity: ReactActivity() {
SplashScreen.show(this);
}
+ override fun onNewIntent(intent: Intent?) {
+ super.onNewIntent(intent)
+ setIntent(intent)
+ }
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
| Push notification fix | Push notification fix
|
c032db02ceda0ea9075a75d19947bc78d1cc835e | --- packages/me-at-walmart-container/src/redux/notification.ts
@@ -33,11 +33,11 @@ export const NotificationLogger =
// Handle any permissions logic while initializing sumo
export function* handleNotificationPermission() {
if (Platform.OS === 'ios') {
- let isSet = yield* select(NotificationSelectors.getPermissionSet);
+ let isUnset = yield* select(NotificationSelectors.getPermissionUnset);
- while (!isSet) {
+ while (isUnset) {
yield take(NotificationActionTypes.UPDATE_PERMISSION);
- isSet = yield* select(NotificationSelectors.getPermissionSet);
+ isUnset = yield* select(NotificationSelectors.getPermissionUnset);
}
const hasNotificationPermission: boolean = yield select(
| fix: notification permission saga using undefined selector | fix: notification permission saga using undefined selector
|
59285609ed33b4068e9ef8babe481ec4016b67cc | --- package-lock.json
@@ -74,7 +74,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.0",
- "@walmart/receipt-check-miniapp": "1.9.7",
+ "@walmart/receipt-check-miniapp": "1.9.8",
"@walmart/redux-store": "3.1.3",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
"@walmart/returns-mini-app": "0.6.0",
@@ -5849,9 +5849,9 @@
}
},
"node_modules/@walmart/receipt-check-miniapp": {
- "version": "1.9.7",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.7.tgz",
- "integrity": "sha512-m2/d67HqnE2ASNfnOaiMwwhQpXxqtxfdJMfq9mPjzxD1eEbIdxjAcDvbT0Za4lBqEQGCVKYRgXg1VTRsmLyHMA==",
+ "version": "1.9.8",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.8.tgz",
+ "integrity": "sha512-aeLv7XCaiybrgblePcl7siYBhHJ9gN+SAmL7VQulK7D8JGv/5Aw19khDGDs5tSzzk+jCFlAKRjI76ls+T2JnkA==",
"dependencies": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
@@ -25370,9 +25370,9 @@
"integrity": "sha512-VkGT8BSZOsxR4FJjxeu6ursO3qzAVZea6jEwT6KJsXgBJ9MIHhkBo78guM6kEbqqQl3SlGS/+5tbOxKdWrvStQ=="
},
"@walmart/receipt-check-miniapp": {
- "version": "1.9.7",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.7.tgz",
- "integrity": "sha512-m2/d67HqnE2ASNfnOaiMwwhQpXxqtxfdJMfq9mPjzxD1eEbIdxjAcDvbT0Za4lBqEQGCVKYRgXg1VTRsmLyHMA==",
+ "version": "1.9.8",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.8.tgz",
+ "integrity": "sha512-aeLv7XCaiybrgblePcl7siYBhHJ9gN+SAmL7VQulK7D8JGv/5Aw19khDGDs5tSzzk+jCFlAKRjI76ls+T2JnkA==",
"requires": {
"@walmart/tcnumber": "^2.3.3",
"@xstate/react": "^3.0.1",
--- package.json
@@ -73,7 +73,6 @@
"@react-navigation/stack": "^6.1.0",
"@sharcoux/slider": "^6.1.1",
"@terrylinla/react-native-sketch-canvas": "0.8.0",
- "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/allspark-graphql-client": "^0.1.0",
"@walmart/allspark-home-mini-app": "0.6.14",
"@walmart/allspark-neon-core": "0.1.31",
@@ -104,6 +103,7 @@
"@walmart/metrics-mini-app": "0.9.38",
"@walmart/mod-flex-mini-app": "1.3.15",
"@walmart/moment-walmart": "1.0.4",
+ "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/pay-stub-miniapp": "0.9.21",
"@walmart/payrollsolution_miniapp": "0.130.23",
"@walmart/price-changes-mini-app": "1.6.10",
@@ -116,7 +116,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "0.3.7",
"@walmart/react-native-sumo-sdk": "2.5.0",
- "@walmart/receipt-check-miniapp": "1.9.7",
+ "@walmart/receipt-check-miniapp": "1.9.8",
"@walmart/redux-store": "3.1.3",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
"@walmart/returns-mini-app": "0.6.0",
| bump version for fix | bump version for fix
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.