commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
03f5e5d684f4366b4a984584938e3896cf137be8
--- __tests__/screens/RosterScreen.tsx @@ -12,6 +12,34 @@ describe('TeamsList', () => { it('shows current team as only list item when associate has a team', () => {}); it('shows total store as only list item when associate not in a team', () => {}); }); - describe('TeamItem' - ) + describe('TeamItem', () => { + it('should show icon for team', () => {}); + it('should show name of team', () => {}); + it('should show clocked in count of team', () => {}); + it('should open team chat screen when pressing message button', () => {}); + }); +}); + +describe('AssociateList', () => { + describe('RosterFilters', () => { + it('should filter for all associates', () => {}); + it('should filter for absent associates', () => {}); + it('should filter for tardy associates', () => {}); + it('should filter for clocked in associates', () => {}); + it('should filter for online associates', () => {}); + it('should display active status on active filter', () => {}); + }); + + describe('AssociateRosterItem', () => { + it('should show presence status', () => {}); + it('should show associate job title', () => {}); + it('show show associate schedule if it exists', () => {}); + it('should show message button as disabled when associate clocked out', () => {}); + it('should open chat screen when message button is pressed', () => {}); + }); +}); + +describe('RosterHeader', () => { + it('should show correct header text', () => {}); + it('pressing weekly schedule link navigates to scheduling mini app', () => {}); }); --- __tests__/screens/RosterScreen.tsx @@ -12,6 +12,34 @@ describe('TeamsList', () => { it('shows current team as only list item when associate has a team', () => {}); it('shows total store as only list item when associate not in a team', () => {}); }); - describe('TeamItem' - ) + describe('TeamItem', () => { + it('should show icon for team', () => {}); + it('should show name of team', () => {}); + it('should show clocked in count of team', () => {}); + it('should open team chat screen when pressing message button', () => {}); + }); +}); + +describe('AssociateList', () => { + describe('RosterFilters', () => { + it('should filter for all associates', () => {}); + it('should filter for absent associates', () => {}); + it('should filter for tardy associates', () => {}); + it('should filter for clocked in associates', () => {}); + it('should filter for online associates', () => {}); + it('should display active status on active filter', () => {}); + }); + + describe('AssociateRosterItem', () => { + it('should show presence status', () => {}); + it('should show associate job title', () => {}); + it('show show associate schedule if it exists', () => {}); + it('should show message button as disabled when associate clocked out', () => {}); + it('should open chat screen when message button is pressed', () => {}); + }); +}); + +describe('RosterHeader', () => { + it('should show correct header text', () => {}); + it('pressing weekly schedule link navigates to scheduling mini app', () => {}); });
adding skeleton tests for roster screen
adding skeleton tests for roster screen
d09840a1a1f6b2439a33826b006faa820bd88fbe
--- __tests__/components/ListEmptyComponentTest.tsx @@ -1,3 +1,4 @@ +jest.useFakeTimers(); import React from 'react'; import { ListEmptyComponent, --- __tests__/components/__snapshots__/StoreChatCardTest.tsx.snap @@ -95,7 +95,7 @@ exports[`StoreChatCard component should have Total store title 1`] = ` } testID="clockedInCount" > - Clocked in + 0 Clocked in </Text> <Text accessibilityRole="text" @@ -289,7 +289,7 @@ exports[`StoreChatCard component should have call button 1`] = ` } testID="clockedInCount" > - Clocked in + 0 Clocked in </Text> <Text accessibilityRole="text" @@ -712,7 +712,7 @@ exports[`StoreChatCard component should have message button 1`] = ` } testID="clockedInCount" > - Clocked in + 0 Clocked in </Text> <Text accessibilityRole="text" @@ -1135,7 +1135,7 @@ exports[`StoreChatCard component should render StoreChatCard 1`] = ` } testID="clockedInCount" > - Clocked in + 0 Clocked in </Text> <Text accessibilityRole="text"
feat(ui): fixed tests
feat(ui): fixed tests
85e38ec0b8a8feb79ae4c90dc154338825323778
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.18.0", + "version": "1.19.0", "main": "dist/index.js", "files": [ "dist" @@ -81,7 +81,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.20.0", - "@walmart/allspark-foundation-hub": "1.2.14", + "@walmart/allspark-foundation-hub": "1.2.16", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.14.0", + "@walmart/roster-mini-app": "2.15.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -5992,9 +5992,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.2.14": - version: 1.2.14 - resolution: "@walmart/allspark-foundation-hub@npm:1.2.14" +"@walmart/allspark-foundation-hub@npm:1.2.16": + version: 1.2.16 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.16" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6010,7 +6010,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/08ade7acdeaab5a1fc406db8a03b4ff3f636ba4ce5b9a7d8d641bf1e9ae1091b4b4a9026fc0d6ba14a5952d92cf473ec2d59dcf6524123117bc74144d3afc968 + checksum: 10c0/7a7cdf90628b381f3321cc8a918ee24b15a0cc55f0ce8b90a3955067f0cb57e75c19ec7e859b2f951b1be8925528c3911ef26d1c2bb90c02716adece0e80d72e languageName: node linkType: hard @@ -6398,7 +6398,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.20.0" - "@walmart/allspark-foundation-hub": "npm:1.2.14" + "@walmart/allspark-foundation-hub": "npm:1.2.16" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.14.0" + "@walmart/roster-mini-app": "npm:2.15.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.14.0": - version: 2.14.0 - resolution: "@walmart/roster-mini-app@npm:2.14.0" +"@walmart/roster-mini-app@npm:2.15.0": + version: 2.15.0 + resolution: "@walmart/roster-mini-app@npm:2.15.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/79c46714400f85e41f455f897395f241a96ca49d6fc5a3ebd63b7dfa15e8eba4c9a92ae9c2c22c24b37c1140724e00862dd0e92d3dfe233da407ad55bf72dde3 + checksum: 10c0/10739658d4d8141a6f22c54993b69e400b2cdf0377027c4ac4bdb1d914e0f596a845782783fa02fac35e53a6334672003e47148a14079d6144197f02cffc3776 languageName: node linkType: hard
Update my team mini app version
Update my team mini app version
9b69c5d31a1e866a1ec8db7468f16925572c80f8
--- src/components/AssociateRosterItem/index.tsx @@ -128,6 +128,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { <Button variant='tertiary' size='small' + testID={'associaterosteritem-viewschedule-btn'} onPress={() => { goToIndividualSchedule( associate.userId, --- src/components/AssociateRosterItem/index.tsx @@ -128,6 +128,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { <Button variant='tertiary' size='small' + testID={'associaterosteritem-viewschedule-btn'} onPress={() => { goToIndividualSchedule( associate.userId,
adding a testID for view schedule btn
adding a testID for view schedule btn
324eb55896dd2d1b27c70825c105dfd527f4642f
--- src/channels/provider.tsx @@ -31,7 +31,7 @@ import {fetchChannelName, fetchChannelLastMessage} from './services'; import {logger} from '../logger/Logger'; import {textingSlice} from '../redux/reducer'; import {SEVEN_DAYS_AGO_TIMESTAMP} from '../constants'; -import {getChannelIdFromChannelPath} from '../../dist/channels/transforms'; +import {getChannelIdFromChannelPath} from './transforms'; import {useGetViewersPrimaryTeamId} from '../hooks'; /** @@ -49,6 +49,8 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { SiteSelectors.getUserWorkingSite, ); const viewerTeamId = useGetViewersPrimaryTeamId(); + const teamChannelPath = siteId && createTeamChannelPath(viewerTeamId, siteId); + const storeChannelPath = createStoreChannelPath(viewerId); // Normalized state of channel data for current user/site const [channelState, setChannelState] = useState<ChannelsState>( @@ -74,29 +76,28 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') .onSnapshot(async (snapshot) => { - const channelShortIds = snapshot?.docs.map((channelDoc) => { - const channelPath = channelDoc.ref.path; - return getChannelIdFromChannelPath(channelPath); + const channelPaths = snapshot?.docs.map((channelDoc) => { + return channelDoc.ref.path; }); //TODO: Break this out into its own method for more readability - if (!channelShortIds.includes(STORE_CHANNEL_ID)) { - const storeChannelPath = createStoreChannelPath(viewerId); + if (!channelPaths.includes(storeChannelPath)) { // eslint-disable-next-line @typescript-eslint/no-unused-vars - const storeChannelDoc = await firestore() - .collection(storeChannelPath) - .doc() - .get(); + // const storeChannelDoc = await firestore() + // .collection(storeChannelPath) + // .doc() + // .get(); //TODO: Normalize the teamChannelDoc and setChannelState } //TODO: Break this out into its own method for more readability - if (!channelShortIds.includes(viewerTeamId)) { - const teamChannelPath = createTeamChannelPath(viewerTeamId); - const teamChannelDoc = await firestore() - .collection(teamChannelPath) - .doc() - .get(); + if (teamChannelPath && !channelPaths.includes(teamChannelPath)) { + + // eslint-disable-next-line @typescript-eslint/no-unused-vars + // const teamChannelDoc = await firestore() + // .collection(teamChannelPath) + // .doc() + // .get(); //TODO: Normalize the teamChannelDoc and setChannelState } --- src/channels/provider.tsx @@ -31,7 +31,7 @@ import {fetchChannelName, fetchChannelLastMessage} from './services'; import {logger} from '../logger/Logger'; import {textingSlice} from '../redux/reducer'; import {SEVEN_DAYS_AGO_TIMESTAMP} from '../constants'; -import {getChannelIdFromChannelPath} from '../../dist/channels/transforms'; +import {getChannelIdFromChannelPath} from './transforms'; import {useGetViewersPrimaryTeamId} from '../hooks'; /** @@ -49,6 +49,8 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { SiteSelectors.getUserWorkingSite, ); const viewerTeamId = useGetViewersPrimaryTeamId(); + const teamChannelPath = siteId && createTeamChannelPath(viewerTeamId, siteId); + const storeChannelPath = createStoreChannelPath(viewerId); // Normalized state of channel data for current user/site const [channelState, setChannelState] = useState<ChannelsState>( @@ -74,29 +76,28 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') .onSnapshot(async (snapshot) => { - const channelShortIds = snapshot?.docs.map((channelDoc) => { - const channelPath = channelDoc.ref.path; - return getChannelIdFromChannelPath(channelPath); + const channelPaths = snapshot?.docs.map((channelDoc) => { + return channelDoc.ref.path; }); //TODO: Break this out into its own method for more readability - if (!channelShortIds.includes(STORE_CHANNEL_ID)) { - const storeChannelPath = createStoreChannelPath(viewerId); + if (!channelPaths.includes(storeChannelPath)) { // eslint-disable-next-line @typescript-eslint/no-unused-vars - const storeChannelDoc = await firestore() - .collection(storeChannelPath) - .doc() - .get(); + // const storeChannelDoc = await firestore() + // .collection(storeChannelPath) + // .doc() + // .get(); //TODO: Normalize the teamChannelDoc and setChannelState } //TODO: Break this out into its own method for more readability - if (!channelShortIds.includes(viewerTeamId)) { - const teamChannelPath = createTeamChannelPath(viewerTeamId); - const teamChannelDoc = await firestore() - .collection(teamChannelPath) - .doc() - .get(); + if (teamChannelPath && !channelPaths.includes(teamChannelPath)) { + + // eslint-disable-next-line @typescript-eslint/no-unused-vars + // const teamChannelDoc = await firestore() + // .collection(teamChannelPath) + // .doc() + // .get(); //TODO: Normalize the teamChannelDoc and setChannelState }
cleaning up channel path comparison logic
cleaning up channel path comparison logic
d3d255eb77e83e0937e59522b308d42fe0136e40
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "1.62.13", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", - "@walmart/copilot-mini-app": "^3.39.1", + "@walmart/copilot-mini-app": "^3.41.4", "@walmart/core-services": "~2.3.0", "@walmart/core-services-allspark": "~2.13.4", "@walmart/core-utils": "~2.0.5", @@ -8592,9 +8592,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "3.39.1", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.39.1.tgz", - "integrity": "sha512-lK2gdydTpmnfWMj9/2DLk8leGPSsmV4IFpqRvV5kaIzouRagMxxBqlgCymUsRc5EueI3WcqWISXMH3UWMLbwhQ==", + "version": "3.41.4", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.41.4.tgz", + "integrity": "sha512-0sHBgidtgXifmqvRrtycAGPidtdXcMPnX/5IOwlYzdpiQNEve81b3dVE2T2nY+2r308iGy+WQcwo2Z1f3eWqxw==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -29418,7 +29418,7 @@ "requires": { "mv": "~2", "safe-json-stringify": "~1", - "uuid": "^8.0.0" + "uuid": "^3.3.2" } }, "@expo/cli": { @@ -30108,7 +30108,7 @@ "md5": "^2.2.1", "node-fetch": "^2.6.1", "remove-trailing-slash": "^0.1.0", - "uuid": "^8.3.2" + "uuid": "^3.3.2" } }, "@expo/sdk-runtime-versions": { @@ -33223,9 +33223,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "3.39.1", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.39.1.tgz", - "integrity": "sha512-lK2gdydTpmnfWMj9/2DLk8leGPSsmV4IFpqRvV5kaIzouRagMxxBqlgCymUsRc5EueI3WcqWISXMH3UWMLbwhQ==" + "version": "3.41.4", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.41.4.tgz", + "integrity": "sha512-0sHBgidtgXifmqvRrtycAGPidtdXcMPnX/5IOwlYzdpiQNEve81b3dVE2T2nY+2r308iGy+WQcwo2Z1f3eWqxw==" }, "@walmart/core-services": { "version": "2.3.2", --- package.json @@ -84,7 +84,7 @@ "@walmart/attendance-mini-app": "1.62.13", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", - "@walmart/copilot-mini-app": "3.39.1", + "@walmart/copilot-mini-app": "3.41.4", "@walmart/core-services": "~2.3.0", "@walmart/core-services-allspark": "~2.13.4", "@walmart/core-utils": "~2.0.5",
chore: bump copilot@3.41.4
chore: bump copilot@3.41.4
4a9a616080630a819588a05b2dbbb51960c1d0c0
--- packages/allspark-foundation-hub/src/SupplyChain/Components/AllSupplyTeamsList/AllSupplyTeamsList.tsx @@ -8,12 +8,17 @@ import { PageHeader, PillTeamListItem, TeamSearchInput, + TOTAL_SITE_TEAM_ID, } from '../../../Shared'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; import style from './style'; import EditSavedTeams from '../EditSavedTeams/EditSavedTeams'; import { useSelector } from 'react-redux'; -import { allTeamsListEnabled, teamSearchInputEnabled } from '../.././Redux'; +import { + allTeamsListEnabled, + SC_ManagerExperienceSelectors, + teamSearchInputEnabled, +} from '../.././Redux'; import { SiteSelectors } from '@walmart/allspark-foundation/Site'; import { trimToFortyCharacters } from '../../../SupplyChain/Utils/utils'; import { useTelemetryService } from '@walmart/allspark-foundation'; @@ -42,6 +47,9 @@ export const AllSupplyTeamList: React.FC<AllSupplyTeamListProps> = ({ const division = useSelector(SiteSelectors.getWorkingSiteDivision); const siteNumber = useSelector(SiteSelectors.getWorkingSiteSiteId); const teamSelectionTelemetry = useTelemetryService(); + const savedTeams = useSelector( + SC_ManagerExperienceSelectors.getSavedSiteTeams + ); const divider = () => <View testID='divider' style={style.divider} />; const renderHeaderComponent = useCallback(() => { @@ -115,12 +123,17 @@ export const AllSupplyTeamList: React.FC<AllSupplyTeamListProps> = ({ ); }} renderItem={({ item, index }) => { + const selection = selectedItems?.includes(item.teamId); + const selectedListItem = + !savedTeams?.length && !selectedItems.length + ? item.teamId === TOTAL_SITE_TEAM_ID + : selection; if (!showAllTeamsList) { return null; } return ( <PillTeamListItem - isSelected={selectedItems?.includes(item.teamId)} + isSelected={selectedListItem} key={`team-${item.teamName}-${index}`} teamName={item.teamName} teamId={item.teamId} --- packages/allspark-foundation-hub/src/SupplyChain/Components/EditSavedTeams/EditSavedTeams.tsx @@ -180,7 +180,11 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => { <LoadingListItem /> ) : ( <PillTeamListItem - isSelected={!isSingleSelect && !selectedTeamIds?.length} + isSelected={ + !isSingleSelect && + !selectedTeamIds?.length && + !!savedData?.data.supplyChainTeamsByAssociate.teams.length + } teamId={Images.Saved.teamName} teamImage={Images.Saved} teamName={Images.Saved.teamName}
feat(ui): handling select logic
feat(ui): handling select logic
fd5a038f126de278e836ee6c2d38d2ced16d7374
--- package.json @@ -101,7 +101,7 @@ "@walmart/digital-locks-mini-app": "1.1.9-rc.3", "@walmart/emergency-mini-app": "1.31.4", "@walmart/exception-mini-app": "1.8.13", - "@walmart/expo-config-plugins": "^0.1.4", + "@walmart/expo-config-plugins": "^0.1.7", "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@0.18.17#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.18.17-3170cabccd.patch", "@walmart/feedback-all-spark-miniapp": "0.9.75", "@walmart/financial-wellbeing-feature-app": "1.29.10", --- yarn.lock @@ -6786,12 +6786,12 @@ __metadata: languageName: node linkType: hard -"@walmart/expo-config-plugins@npm:^0.1.4": - version: 0.1.4 - resolution: "@walmart/expo-config-plugins@npm:0.1.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fexpo-config-plugins%2F-%2F%40walmart%2Fexpo-config-plugins-0.1.4.tgz" +"@walmart/expo-config-plugins@npm:^0.1.7": + version: 0.1.7 + resolution: "@walmart/expo-config-plugins@npm:0.1.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fexpo-config-plugins%2F-%2F%40walmart%2Fexpo-config-plugins-0.1.7.tgz" dependencies: fs-extra: "npm:^11.2.0" - checksum: 10c0/d9d2840c19d61e6ecb8a6193f79e849f056e8a1d64f1780f0697137599bf9058358f0278d3195094f162e57392cb2bb17930415bf1d4f16b63217c5afda05a9c + checksum: 10c0/b95f2eeac2d97b0a55f70d95337ba86f95dcf4314f1b94184741cf0464a920622ced4525f9b96205547c1f986f3f4a32f02864bcd35c8298c0c292f11227f7a8 languageName: node linkType: hard @@ -7322,7 +7322,7 @@ __metadata: "@walmart/digital-locks-mini-app": "npm:1.1.9-rc.3" "@walmart/emergency-mini-app": "npm:1.31.4" "@walmart/exception-mini-app": "npm:1.8.13" - "@walmart/expo-config-plugins": "npm:^0.1.4" + "@walmart/expo-config-plugins": "npm:^0.1.7" "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@0.18.17#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.18.17-3170cabccd.patch" "@walmart/feedback-all-spark-miniapp": "npm:0.9.75" "@walmart/financial-wellbeing-feature-app": "npm:1.29.10"
fix(config): ALLSPARK-5877 bump expo-config-plugins (#4073)
fix(config): ALLSPARK-5877 bump expo-config-plugins (#4073)
c23e3c5b18c807a192fe88b04d101e51dd105260
--- package-lock.json @@ -29422,7 +29422,7 @@ "requires": { "mv": "~2", "safe-json-stringify": "~1", - "uuid": "^3.3.2" + "uuid": "^8.0.0" } }, "@expo/cli": { @@ -30112,7 +30112,7 @@ "md5": "^2.2.1", "node-fetch": "^2.6.1", "remove-trailing-slash": "^0.1.0", - "uuid": "^3.3.2" + "uuid": "^8.3.2" } }, "@expo/sdk-runtime-versions": {
fix package lock update
fix package lock update
589b3d2eef1f005e09feb4ea6fbff9aa20b61c13
--- .looper.yml @@ -8,20 +8,57 @@ tools: version: 17 envs: - global: - variables: - ALLOW_NPM_PUSH_TO_AF: true + global: + variables: + ALLOW_NPM_PUSH_TO_AF: true + +# Define branch-specific triggers +branches: + # Main branch - production releases + - spec: main + triggers: + - push: + call: publish-release + ignoreAuthor: + - jenkinspan + - svc-looper + + # fix/a11y branch - accessibility fix releases + - spec: fix/a11y + triggers: + - push: + call: publish-a11y-fix + ignoreAuthor: + - jenkinspan + - svc-looper flows: - default: - - call: pr - - yarn run build - - npm publish + # Production release flow (for main branch) + publish-release: + - (name Corepack enable) corepack enable + - (name Yarn Set Version) yarn set version 4.4.0 + - (name Yarn Install) yarn install + - (name Lint) yarn run lint + - (name Coverage) yarn run coverage + - (name Build) yarn run build + - (name Publish to NPM) npm publish + + # Accessibility fix flow (for fix/a11y branch) + publish-a11y-fix: + - (name Corepack enable) corepack enable + - (name Yarn Set Version) yarn set version 4.4.0 + - (name Yarn Install) yarn install + - (name Lint) yarn run lint + - (name Coverage) yarn run coverage + - (name Build) yarn run build + - (name Tag A11y Version) npm version prerelease --preid=a11y --no-git-tag-version + - (name Publish A11y Fix to NPM) npm publish --tag a11y + # PR validation flow (no publish) pr: - (name Corepack enable) corepack enable - (name Yarn Set Version) yarn set version 4.4.0 - (name Yarn Version) yarn --version - - yarn install - - yarn run lint - - yarn run coverage \ No newline at end of file + - (name Yarn Install) yarn install + - (name Lint) yarn run lint + - (name Coverage) yarn run coverage
chore(release): enable npm publish
chore(release): enable npm publish
e84dc6a34a987326b59a64dca341e7289830b30b
--- __tests__/redux/UserSelectorTest.ts @@ -290,7 +290,7 @@ describe('getEncryptionKey', () => { }); it('handles undefined domain', () => { - const data = {userId: 'swalton3', siteId: '100', domain: 'STORE'}; + const data = {userId: 'swalton3', homeSite: '100', domain: 'STORE'}; const userId = getEncryptionKey({ user: {data}, } as State); --- __tests__/transforms/userTest.ts @@ -77,8 +77,8 @@ describe('inferSiteId', () => { }); it('handles 2 or more regex matches', () => { - const siteId = inferSiteId('swalton.s03702.us@wal-mart.com'); - expect(siteId).toEqual('03702'); + const siteId = inferSiteId('swalton.s03702@us.wal-mart.com'); + expect(siteId).toEqual('3702'); }); }); --- src/redux/UserSelector.ts @@ -87,7 +87,7 @@ export const getShouldHideSplashOnAuth = createSelector( export const getEncryptionKey = createSelector( [ UserSelectors.getOriginalUserDomain, - UserSelectors.getOriginalUserSite, + UserSelectors.getOriginalUserHomeSite, UserSelectors.getOriginalUserIsPreHire, ], (domain, site, userIsPreHire) => --- src/transforms/user.ts @@ -21,7 +21,7 @@ export enum BU_TYPE_DOMAIN { HO = DOMAIN.homeoffice, } -const SITE_ID_REGEX = /\.s(\d+)\./; +const SITE_ID_REGEX = /\.s(\d+)/; export const stringMatchCreator = (regExp: RegExp) => (email: string) => regExp.test(email); @@ -60,7 +60,7 @@ export const inferSiteId = (emailId: string | null | undefined): string => { const matches = emailId.match(SITE_ID_REGEX); if (!matches || matches.length < 2) return NOT_FOUND; - return matches[1]; + return `${parseInt(matches[1], 10)}`; }; export const determineSiteProps = ( @@ -93,15 +93,17 @@ export const kGraphUserToRedux = ( ): User => { const associate = kgUser?.associate; - const siteId = inferSiteId(kgUser?.sub); - const workingSite = kgUser?.wmBusinessUnitNumber || NOT_FOUND; - const domainFallback = + const emailId = returnIfValid(kgUser?.sub) || returnIfValid(kgUser?.userPrincipalName) || returnIfValid(kgUser?.mail); + + const siteId = inferSiteId(emailId); + const workingSite = kgUser?.wmBusinessUnitNumber || NOT_FOUND; + const domain = inferDomain( returnIfValid(kgUser?.wmBusinessUnitType), - domainFallback, + emailId, ); const user: User = {
home site regex change along with user encryption
home site regex change along with user encryption
a1ff37e01d254699e1d583f100bdeeeb0279e4be
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/DrawerNavTest.tsx.snap @@ -26,27 +26,25 @@ exports[`DrawerNav matches default snapshot for initial render 1`] = ` } } > - <ConversationProvider> - <Navigator - drawerContent={[Function]} - screenOptions={ - Object { - "drawerStyle": Object { - "width": undefined, - }, - "drawerType": "front", - "headerShown": false, - "overlayColor": "rgba(0, 0, 0, 0.6)", - "swipeEnabled": true, - } + <Navigator + drawerContent={[Function]} + screenOptions={ + Object { + "drawerStyle": Object { + "width": undefined, + }, + "drawerType": "front", + "headerShown": false, + "overlayColor": "rgba(0, 0, 0, 0.6)", + "swipeEnabled": true, } - > - <Screen - component="MainStackNav" - name="mainStack" - /> - </Navigator> - </ConversationProvider> + } + > + <Screen + component="MainStackNav" + name="mainStack" + /> + </Navigator> </DrawerButton.Provider> </Header.Provider> </ActivityMonitor> @@ -78,27 +76,25 @@ exports[`DrawerNav matches snapshot after initial render 1`] = ` } } > - <ConversationProvider> - <Navigator - drawerContent={[Function]} - screenOptions={ - Object { - "drawerStyle": Object { - "width": "89%", - }, - "drawerType": "front", - "headerShown": false, - "overlayColor": "rgba(0, 0, 0, 0.6)", - "swipeEnabled": true, - } + <Navigator + drawerContent={[Function]} + screenOptions={ + Object { + "drawerStyle": Object { + "width": "89%", + }, + "drawerType": "front", + "headerShown": false, + "overlayColor": "rgba(0, 0, 0, 0.6)", + "swipeEnabled": true, } - > - <Screen - component="MainStackNav" - name="mainStack" - /> - </Navigator> - </ConversationProvider> + } + > + <Screen + component="MainStackNav" + name="mainStack" + /> + </Navigator> </DrawerButton.Provider> </Header.Provider> </ActivityMonitor> --- ios/AllSpark/Info.plist @@ -53,6 +53,31 @@ <dict> <key>NSExceptionDomains</key> <dict> + <key>mqtt.ss.glb.us.walmart.net</key> + <dict> + <key>NSExceptionAllowsInsecureHTTPLoads</key> + <true/> + </dict> + <key>ptt-vernemq-teflon_lb.cloud.wal-mart.com</key> + <dict> + <key>NSExceptionAllowsInsecureHTTPLoads</key> + <true/> + </dict> + <key>teflon.ptt.walmart.com</key> + <dict> + <key>NSExceptionAllowsInsecureHTTPLoads</key> + <true/> + </dict> + <key>dv.ptt.walmart.com</key> + <dict> + <key>NSExceptionAllowsInsecureHTTPLoads</key> + <true/> + </dict> + <key>vmq.ss.glb-qa.torbit.walmart.net</key> + <dict> + <key>NSExceptionAllowsInsecureHTTPLoads</key> + <true/> + </dict> <key>i5.walmartimages.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> --- src/navigation/AssociateHallwayNav/DrawerNav.tsx @@ -76,20 +76,18 @@ export const DrawerNav = () => { onIdleTimeLapsed={onIdleTimeLapsed}> <Header.Provider value={HeaderContextValue}> <DrawerButton.Provider value={DrawerContext}> - <PTTProviders.ConversationProvider> - <Drawer.Navigator - screenOptions={{ - swipeEnabled: !drawerLocked, - headerShown: false, - // Undefined width on mount to avoid drawer flashing open - drawerStyle: initRender ? styles.initialDrawer : styles.drawer, - overlayColor: 'rgba(0, 0, 0, 0.6)', - drawerType: 'front', - }} - drawerContent={renderSideMenuContent}> - <Drawer.Screen name='mainStack' component={MainStackNav} /> - </Drawer.Navigator> - </PTTProviders.ConversationProvider> + <Drawer.Navigator + screenOptions={{ + swipeEnabled: !drawerLocked, + headerShown: false, + // Undefined width on mount to avoid drawer flashing open + drawerStyle: initRender ? styles.initialDrawer : styles.drawer, + overlayColor: 'rgba(0, 0, 0, 0.6)', + drawerType: 'front', + }} + drawerContent={renderSideMenuContent}> + <Drawer.Screen name='mainStack' component={MainStackNav} /> + </Drawer.Navigator> </DrawerButton.Provider> </Header.Provider> </ActivityMonitor>
update info plist for exceptions
update info plist for exceptions
880e4338036cd6bed987164a245da14d3d2283c4
--- package-lock.json @@ -5442,9 +5442,9 @@ } }, "@walmart/price-changes-mini-app": { - "version": "1.5.4", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.5.4.tgz", - "integrity": "sha512-JM5F79SxIgq0cE/oqeZg7jWAaByTcIClkOWOPqRJ8nHH361keqSng3e5GiqXUYrpRHjKs4g87D1EImYvYfF8jw==" + "version": "1.5.4-alpha", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.5.4-alpha.tgz", + "integrity": "sha512-Qvxqr8VYrG4Hcad76gzu86ngkD6C0d3/Iu538r/mcxBDHCt0GS2kisV0mXF+rTlTpKEnW5mYLBqe44bmXFpswA==" }, "@walmart/profile-feature-app": { "version": "0.0.71",
Bump price changes to 1.5.4-alpha
Bump price changes to 1.5.4-alpha
e19f1a3e36c7fdd7f32480001b6cf627e16476c7
--- __tests__/components/HomeSkeleton.test.tsx @@ -21,7 +21,7 @@ jest.mock('@/components/BottomNav', () => ({ })); jest.mock('@/components/AppHeader', () => ({ - useMyWalmartHeaderConfig: jest.fn(() => ({ + useMyWalmartHeaderOptions: jest.fn(() => ({ headerStyle: [ {backgroundColor: '#0071DC'}, {height: 104} --- src/components/HomeSkeleton.tsx @@ -1,16 +1,17 @@ import {View, StyleSheet, ViewProps} from 'react-native'; -import {SafeAreaView} from 'react-native-safe-area-context'; +import {SafeAreaView, useSafeAreaInsets} from 'react-native-safe-area-context'; import {colors} from '@walmart/gtp-shared-components'; import {SkeltonList} from './SkeltonList'; import {useMyWalmartTabConfig} from './BottomNav'; -import {useMyWalmartHeaderConfig} from './AppHeader'; +import {useMyWalmartHeaderOptions} from './AppHeader'; /** * @description - A loading state skeleton component to emulate the home screen. * It includes a header, a content area with a skeleton list, and a footer. */ export const HomeSkeleton = (props: ViewProps) => { - const headerConfig = useMyWalmartHeaderConfig(); + const insets = useSafeAreaInsets(); + const headerConfig = useMyWalmartHeaderOptions({}, insets); const {options: tabBarConfig} = useMyWalmartTabConfig(); return (
fix: home skeleton uses old hook name
fix: home skeleton uses old hook name
56ecd4d2b2403186aea7ab75da418880887b6540
--- package.json @@ -88,7 +88,7 @@ "@walmart/attendance-mini-app": "3.156.0", "@walmart/avp-feature-app": "0.16.12", "@walmart/avp-shared-library": "0.10.9", - "@walmart/backroom-mini-app": "1.11.3", + "@walmart/backroom-mini-app": "1.11.5", "@walmart/calling-mini-app": "0.7.52", "@walmart/checkout-mini-app": "4.12.0", "@walmart/compass-sdk-rn": "6.2.17", --- yarn.lock @@ -7449,9 +7449,9 @@ __metadata: languageName: node linkType: hard -"@walmart/backroom-mini-app@npm:1.11.3": - version: 1.11.3 - resolution: "@walmart/backroom-mini-app@npm:1.11.3" +"@walmart/backroom-mini-app@npm:1.11.5": + version: 1.11.5 + resolution: "@walmart/backroom-mini-app@npm:1.11.5::__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.11.5.tgz" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -7474,7 +7474,7 @@ __metadata: react-native-svg-transformer: ">=1.0.0" react-redux: ">=8.0.0" redux: ">=4.0.0" - checksum: 10c0/9faad445d9ac4fea21153a153538310b3bf08ad79b7d5a560f132b47c98ab29bd435441daf8ea3e21283993f4d9413ef6e9098cd4b01699129ce5e1535761105 + checksum: 10c0/25282ded6d8761c7176cad46f1245c4fd85c2da4003494bc8225ca3ddfda3f725181667160fc35a6f840fd38fa14bd18a59cb7543e6c1f2bb9851e496fb6ed56 languageName: node linkType: hard @@ -8261,7 +8261,7 @@ __metadata: "@walmart/attendance-mini-app": "npm:3.156.0" "@walmart/avp-feature-app": "npm:0.16.12" "@walmart/avp-shared-library": "npm:0.10.9" - "@walmart/backroom-mini-app": "npm:1.11.3" + "@walmart/backroom-mini-app": "npm:1.11.5" "@walmart/calling-mini-app": "npm:0.7.52" "@walmart/checkout-mini-app": "npm:4.12.0" "@walmart/compass-sdk-rn": "npm:6.2.17"
fix(print fix): SVZPK-4546 Upgrade @walmart/backroom-mini-app to 1.11.5 (#4259)
fix(print fix): SVZPK-4546 Upgrade @walmart/backroom-mini-app to 1.11.5 (#4259) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
9d38344b95fe6ef39b9b63c00038daf39397dd24
--- __tests__/components/ClockStatusIndicatorTest.tsx @@ -30,4 +30,19 @@ describe('ClockStatusIndicator tests', () => { const clockedInText = clockStatusIndicatorComponent.getByText('Clocked in'); expect(clockedInText).toBeDefined(); }); + + it('should render Clocked out', () => { + const props = { + isClockedIn: false, + showText: true, + showIndicator: false, + } as PresenceIndicatorProps; + (useSelector as jest.Mock).mockReturnValue(true); + const clockStatusIndicatorComponent = renderWithProviders( + <ClockStatusIndicator {...props} />, + ); + const clockedOutText = + clockStatusIndicatorComponent.getByText('Clocked out'); + expect(clockedOutText).toBeDefined(); + }); });
Adding tests for ClockStatusIndicator
Adding tests for ClockStatusIndicator
94b1872bec180c0efeb98d59afb476b54b2d4ead
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/iteminfo-mini-app": "7.0.8", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.57", + "@walmart/metrics-mini-app": "0.9.58", "@walmart/mod-flex-mini-app": "1.5.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -5505,9 +5505,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.9.57", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.57.tgz", - "integrity": "sha512-Eg+S/oZWzd5F2UHsKz9jNQgTVhmHO8g6UnchJLqA//QB1kIokaBidaO/QL+bCAD13+j7bX3o8bsQ1wsOWjCgOA==", + "version": "0.9.58", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.58.tgz", + "integrity": "sha512-2SAuclddByoOxn6Cponlg0zVKe2uaheRToQrLZXHPt0MK4Z2kL0yxE9yQuYZA+sMDlGvTWkxSfaXy6tiI7SVFA==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25158,9 +25158,9 @@ "version": "1.1.45" }, "@walmart/metrics-mini-app": { - "version": "0.9.57", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.57.tgz", - "integrity": "sha512-Eg+S/oZWzd5F2UHsKz9jNQgTVhmHO8g6UnchJLqA//QB1kIokaBidaO/QL+bCAD13+j7bX3o8bsQ1wsOWjCgOA==", + "version": "0.9.58", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.58.tgz", + "integrity": "sha512-2SAuclddByoOxn6Cponlg0zVKe2uaheRToQrLZXHPt0MK4Z2kL0yxE9yQuYZA+sMDlGvTWkxSfaXy6tiI7SVFA==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -99,7 +99,7 @@ "@walmart/iteminfo-mini-app": "7.0.8", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.57", + "@walmart/metrics-mini-app": "0.9.58", "@walmart/mod-flex-mini-app": "1.5.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14",
metrics version bump (fix SMBLV 3614)
metrics version bump (fix SMBLV 3614)
1a63c4dd5643e82149de3c9c145f2d63f51d227b
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.9", + "version": "2.0.10", "private": false, "main": "bundle/dist/index.js", "files": [ --- src/containers/ChatInput/index.tsx @@ -248,7 +248,6 @@ export const ChatInput = (props: { const onRecordingComplete = (details: RecordingDetails) => { setAudioDetails(details); - setAudioDetails(undefined); }; return ( --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.9", + "version": "2.0.10", "private": false, "main": "bundle/dist/index.js", "files": [ --- src/containers/ChatInput/index.tsx @@ -248,7 +248,6 @@ export const ChatInput = (props: { const onRecordingComplete = (details: RecordingDetails) => { setAudioDetails(details); - setAudioDetails(undefined); }; return (
Quick fix
Quick fix
94ac6d01c975488a12b131b2122cbadd7ae08ce1
--- packages/allspark-foundation-hub/__tests__/supplyChain/Modals/EditSavedTeamsModal.test.tsx @@ -53,10 +53,10 @@ jest.mock('@walmart/allspark-foundation', () => ({ })); jest.mock( - '../../../src/Shared/Components/EditTeamListItem/EditTeamListItem', - () => 'EditTeamSelectionListItem' - ); - + '../../../src/Shared/Components/EditTeamListItem/EditTeamListItem', + () => 'EditTeamSelectionListItem' +); + jest.mock('@walmart/allspark-foundation/Translation', () => ({ useAllsparkTranslation: () => ({ t: (key: string) => key }), })); @@ -71,7 +71,7 @@ jest.doMock('react-redux', () => { case teamSearchInputEnabled: return true; case SC_ManagerExperienceSelectors.getIsShiftUpsertError: - return true; + return true; case SiteSelectors.getWorkingSiteDivision: return ''; case SiteSelectors.getWorkingSiteSiteId: @@ -126,5 +126,4 @@ describe('Edit Teams Modal Error screen when network fails', () => { expect(handleCloseModal).toBeCalledTimes(0); expect(screen.toJSON()).toMatchSnapshot(); }); - });
feat(SMDV-7634): adding test coverage for EditSavedTeamsModal
feat(SMDV-7634): adding test coverage for EditSavedTeamsModal
5b753d4a55ba59ab61b8f75d24911bccdba93f2f
--- packages/celebration-mini-app-graphql/src/services/celebrationGraphQLApi.ts @@ -18,13 +18,21 @@ import { // IMPORTANT: Using .graphql.dev extension to prevent these files from being included in production builds. // TODO: Remove the .dev extension once this implementation is fully tested and ready to be used. +// eslint-disable-next-line import/no-unresolved import GET_BIRTHDAY_CELEBRATIONS from '../utils/queries/getBirthdayCelebrations.graphql.dev'; +// eslint-disable-next-line import/no-unresolved import GET_ANNIVERSARY_CELEBRATIONS from '../utils/queries/getAnniversaryCelebrations.graphql.dev'; +// eslint-disable-next-line import/no-unresolved import GET_SUPPLY_CHAIN_CELEBRATIONS from '../utils/queries/getSupplyChainCelebrations.graphql.dev'; +// eslint-disable-next-line import/no-unresolved import GET_SUPPLY_CHAIN_BIRTHDAY_CELEBRATIONS from '../utils/queries/getSupplyChainBirthdayCelebrations.graphql.dev'; +// eslint-disable-next-line import/no-unresolved import GET_SUPPLY_CHAIN_ANNIVERSARY_CELEBRATIONS from '../utils/queries/getSupplyChainAnniversaryCelebrations.graphql.dev'; +// eslint-disable-next-line import/no-unresolved import GET_CELEBRATION_DETAILS from '../utils/queries/getCelebrationDetails.graphql.dev'; +// eslint-disable-next-line import/no-unresolved import GET_SUPPLY_CHAIN_CELEBRATION_DETAILS from '../utils/queries/getSupplyChainCelebrationDetails.graphql.dev'; +// eslint-disable-next-line import/no-unresolved import GET_ALL_CELEBRATIONS from '../utils/queries/getAllCelebrations.graphql.dev'; // GraphQL response interfaces
feat(ui): update celebrations mini app queries
feat(ui): update celebrations mini app queries
9aa9b1ad6271a149ecea31f20cbf9eda3712801e
--- src/auth/ErrorScreen.tsx @@ -114,7 +114,7 @@ export const ErrorScreen: FC<any> = (props) => { value={userId} maxLength={16} autoCapitalize='none' - placeholder={translate('ssoError.userId')} + placeholder={translate('ssoError.enterUserId')} /> </View> @@ -139,7 +139,7 @@ export const ErrorScreen: FC<any> = (props) => { onChangeText={onSiteIdInput} value={siteId} maxLength={5} - placeholder={translate('ssoError.siteId')} + placeholder={translate('ssoError.enterSiteId')} /> </View> @@ -161,6 +161,7 @@ export const ErrorScreen: FC<any> = (props) => { style={styles.input} value={selectedValue} values={getIssueList()} // todo + placeholder={translate('ssoError.selectIssue')} // onValueChange={(itemValue: React.SetStateAction<string>) => // setSelectedValue(itemValue) // }
update field placeholder
update field placeholder
be10fc4383b2f1b16524b3c6e75f6574da9ce857
--- packages/expo-config-plugins/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [0.8.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.7.0...@walmart/expo-config-plugins@0.8.0) (2025-11-11) + +### Features + +- **plugin:** add withBuildProperties pluging ([#476](https://gecgithub01.walmart.com/allspark/allspark/issues/476)) ([a49de83](https://gecgithub01.walmart.com/allspark/allspark/commit/a49de83aed34dabc47983c477ccc3de28cfe78fe)) + # [0.7.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.6.0...@walmart/expo-config-plugins@0.7.0) (2025-10-20) ### Features --- packages/expo-config-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/expo-config-plugins", - "version": "0.7.0", + "version": "0.8.0", "description": "Expo config plugins for me@apps", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/expo-config-plugins@0.8.0
31cc169b94d3e5d14cc3b1bfe888487fad879171
--- .looper.yml @@ -22,9 +22,6 @@ triggers: - manual: name: Publish from Git call: publishFromGit - - manual: - name: Publish Major - call: publishMajor flows: default: --- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.0.0", + "version": "independent", "npmClient": "npm", "changelogPreset": "angular", "command": {
feat: switch to independent versioning
feat: switch to independent versioning
6dd460d0ed88a0191bc1c041941c72e365e7d07e
--- src/components/AssociateRosterItem/style.ts @@ -30,7 +30,7 @@ export const styles = StyleSheet.create({ }, badge: { marginRight: 8, - marginTop: 8, + marginTop: 18, alignSelf: 'flex-start', }, tag: { --- src/components/AssociateRosterItem/style.ts @@ -30,7 +30,7 @@ export const styles = StyleSheet.create({ }, badge: { marginRight: 8, - marginTop: 8, + marginTop: 18, alignSelf: 'flex-start', }, tag: {
resolve alignment issue of presence indicator
resolve alignment issue of presence indicator
c8866cad16f70d8db34056a949c4b2ae8f887f58
--- README.md @@ -47,3 +47,8 @@ When running on the iOS simulator while connected to VPN (or otherwise on an int You will also need to add your SSH key to Walmart github using [these](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account) steps. +## Running on Android + +For faster local consecutive builds, add below line in your `.zshrc` or `.bash_profile` + +`export REACT_NATIVE_DOWNLOADS_DIR=$HOME/.react-native-downloads` --- android/app/build.gradle @@ -228,9 +228,6 @@ repositories { maven { url "https://repository.walmart.com/content/repositories/labs_releases/" } - maven { - url "https://oss.sonatype.org/content/repositories/snapshots/" - } } android {
updated readme
updated readme
14ac3a2914fe6e31197158d3b28311c94dfccddb
--- .looper-native-common.yml @@ -17,6 +17,7 @@ envs: PRODUCT_NAME: 'Me@Walmart' GITHUB_TOKEN: ENC[CGMhL3M/PKGSd9JmVpyMSAxGD/ZNRzJbf6v6/VuJBIWoj226WrPkQe5i7DIFJjTR] NO_PROXY: "*.walmart.com,chromium.googlesource.com,apps.betacrash.com" + ALLSPARK_CORE_GITHUB_URL: "https://gecgithub01.walmart.com/allspark/allspark-core" #BetaCrash BETACRASH_TOKEN: ENC[iHTVp1f+Zsd1SDXzxbQNqv82W/567khXD0AuBEt5dfrbR1EdM15ThlelIUrJkH6V] --- scripts/slack.sh @@ -21,8 +21,8 @@ GIT_COMMIT_AUTHOR=$(git log -1 --format="%aN") GIT_COMMIT_MESSAGE=$(git log --oneline --format=%B -n 1 HEAD | head -n 1) GIT_COMMIT_DATE=$(git log -1 --date=format:"%a %d-%B, %Y - %r" --format="%ad") -#To keep main Slack channel clean, posting test builds to different slack channel -if [[ "$GITHUB_BRANCH_NAME" != "master" ]]; then +#To keep main Slack channel clean, posting test builds or builds from Forked repo to a different slack channel +if [[ "$GITHUB_BRANCH_URL" != "${ALLSPARK_CORE_GITHUB_URL}" ]] || [[ "$GITHUB_BRANCH_NAME" != "master" ]]; then SLACK_WEBHOOK="https://hooks.slack.com/services/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" elif [[ "${env}" == "dev" ]]; then #Separating slack channels for dev and prod builds. (flow will go for master and dev builds) SLACK_WEBHOOK="https://hooks.slack.com/services/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" @@ -44,6 +44,8 @@ echo "GITHUB_PR_NUMBER..............[${GITHUB_PR_NUMBER}]" echo "GIT_COMMIT_AUTHOR.............[${GIT_COMMIT_AUTHOR}]" echo "GIT_COMMIT_MESSAGE............[${GIT_COMMIT_MESSAGE}]" echo "GIT_COMMIT_DATE...............[${GIT_COMMIT_DATE}]" +echo "GITHUB_BRANCH_URL.............[${GITHUB_BRANCH_URL}]" +echo "ALLSPARK_CORE_GITHUB_URL......[${ALLSPARK_CORE_GITHUB_URL}]" echo "APP_TITLE.....................[${APP_TITLE}]" echo "BUILD_VERSION.................[${BUILD_VERSION}]" @@ -209,6 +211,10 @@ GIT_PROPERTIES=$(cat <<-EOT { "type": "mrkdwn", "text": "*Looper job* ${env} #:<${BUILD_URL}|${messageBuildNumber}>" + }, + { + "type": "mrkdwn", + "text": "*GitHub Repo* :<${GITHUB_BRANCH_URL}| URL>" } ] EOT
Added a check to make sure we aren't building release builds from Forked repo (#249)
Added a check to make sure we aren't building release builds from Forked repo (#249) * Added a check to make sure we aren't building release builds from Forked repo and also the Slack notifications should get posted on the test channel if it's from Forked repo * updated slack script to show GitHub Repo URL * test * fixed the Slack script error * reverting changed Co-authored-by: Hitesh Arora <>
4e0ef6262c7019f4d6902189e4c2bfd30d3085e3
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.15.2", + "version": "3.15.3", "main": "dist/index.js", "files": [ "dist", @@ -91,7 +91,7 @@ "@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.15.8#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.15.8-6fb92a01bb.patch", "@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch", "@walmart/ui-components": "1.26.3-423-05e66f8", - "@walmart/wmconnect-mini-app": "3.8.2", + "@walmart/wmconnect-mini-app": "3.8.3", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -8583,7 +8583,7 @@ __metadata: "@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.15.8#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.15.8-6fb92a01bb.patch" "@walmart/react-native-sumo-sdk": "patch:@walmart/react-native-sumo-sdk@npm%3A2.8.0#~/.yarn/patches/@walmart-react-native-sumo-sdk-npm-2.8.0-31dfe1d845.patch" "@walmart/ui-components": "npm:1.26.3-423-05e66f8" - "@walmart/wmconnect-mini-app": "npm:3.8.2" + "@walmart/wmconnect-mini-app": "npm:3.8.3" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -8674,9 +8674,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.8.2": - version: 3.8.2 - resolution: "@walmart/wmconnect-mini-app@npm:3.8.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.8.2.tgz" +"@walmart/wmconnect-mini-app@npm:3.8.3": + version: 3.8.3 + resolution: "@walmart/wmconnect-mini-app@npm:3.8.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.8.3.tgz" peerDependencies: "@walmart/allspark-foundation": ">=7.12.0" expo: ~53.0.20 @@ -8687,7 +8687,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/7f04a221ab488662f02c506e1453b900cc5a401ee3f5c5c66c01564f7e33e544411c26be196c32dee2bf6c2209fc9a1ebcb733df2673ed74f98d6a175f1343b9 + checksum: 10c0/e2b1e4bc578d69cedfe618147bb9bf4499e08eb851b12e0199d0d363ff8bc0cd768d890254f65641fdb50847c522db8cad755a582712a0db3810b57e752f2400 languageName: node linkType: hard
feat(ui): update roster and wmconnect version
feat(ui): update roster and wmconnect version
dbe7ac91789ad85491fb6b62bcfdff69115d9a01
--- android/app/src/main/AndroidManifest.xml @@ -31,7 +31,6 @@ <application android:name="com.walmart.stores.allspark.beta.MainApplication" - android:requestLegacyExternalStorage="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round"
Update AndroidManifest.xml
Update AndroidManifest.xml
90ffa543e575d29e5bb7e2e42555d878ae4d4081
--- package.json @@ -97,9 +97,9 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.8.3-alpha.1", + "@walmart/roster-mini-app": "2.10.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.5.4-alpha.1", + "@walmart/wmconnect-mini-app": "2.7.0", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- yarn.lock @@ -6276,9 +6276,9 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.8.3-alpha.1" + "@walmart/roster-mini-app": "npm:2.10.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.5.4-alpha.1" + "@walmart/wmconnect-mini-app": "npm:2.7.0" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6458,9 +6458,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.8.3-alpha.1": - version: 2.8.3-alpha.1 - resolution: "@walmart/roster-mini-app@npm:2.8.3-alpha.1" +"@walmart/roster-mini-app@npm:2.10.0": + version: 2.10.0 + resolution: "@walmart/roster-mini-app@npm:2.10.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6502,7 +6502,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/38202cd1811370dab7a63a4088f3eba61d811917d72ce585bf23508d45b8792c782d0d19407fd2864527d6270a108b82409940629885846f774fec005a6e183d + checksum: 10c0/33520e203c9df8d5606f47472838ba0f0135b415eab361b5b3f21db933067f109fcff029592d67c58f86a5491d6a4f75a3cc684627a4ffce945990d344333f29 languageName: node linkType: hard @@ -6526,9 +6526,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.5.4-alpha.1": - version: 2.5.4-alpha.1 - resolution: "@walmart/wmconnect-mini-app@npm:2.5.4-alpha.1" +"@walmart/wmconnect-mini-app@npm:2.7.0": + version: 2.7.0 + resolution: "@walmart/wmconnect-mini-app@npm:2.7.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6568,7 +6568,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/553b7fa558c761c6498e42517aee029ae427d82e6b317c0289e856f1bddf61193d9569bca456cc1a0ff7e15cd4178fc61325764d8b7d6d405aab46eb43ae2199 + checksum: 10c0/ce28cf7664920e6c76161a7537363d4018fff03ba73095dc215984bb74121d6db890ec95a25dc466be9036d91982e149ce94342953e7707c17aa04c38bd86248 languageName: node linkType: hard
feat(ui): updated wmconnect and roster versions
feat(ui): updated wmconnect and roster versions
d9e5b631a57f12204187a287456f9bd7d7658277
--- 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.4.4", - "@walmart/rn-receiving-mini-app": "2.3.340", + "@walmart/rn-receiving-mini-app": "2.3.356", "@walmart/roster-mini-app": "2.9.0", "@walmart/schedule-mini-app": "0.118.2", "@walmart/shelfavailability-mini-app": "1.5.37", --- yarn.lock @@ -5973,9 +5973,9 @@ __metadata: languageName: node linkType: hard -"@walmart/atlas-rn-ui-components@npm:1.1.11": - version: 1.1.11 - resolution: "@walmart/atlas-rn-ui-components@npm:1.1.11" +"@walmart/atlas-rn-ui-components@npm:1.1.17": + version: 1.1.17 + resolution: "@walmart/atlas-rn-ui-components@npm:1.1.17" peerDependencies: "@livingdesign/tokens": ">=0.63.0" "@react-native-picker/picker": ">=2.4.0" @@ -5997,7 +5997,7 @@ __metadata: bin: installFonts: scripts/installFonts runCodemods: scripts/runCodemods - checksum: 10c0/6ad2d67767f1dbbb324ab3e261d2e4a725d88fdd24cf4386af11efa2904bd930253a9af0495b9c8d1b0e7203cc1cbdea3b1c8f167f0db5c6bfdbbbf30dbe76b1 + checksum: 10c0/27143ad3a5c8f5a7f73a7383c249b4b092262962c083d67ce3316535096cf906d164d5f0df370327b2340c394b92d670e94bc97529f806077cc43a7ae989f4b1 languageName: node linkType: hard @@ -7056,7 +7056,7 @@ __metadata: "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.15.0" "@walmart/rfid-scan-mini-app": "npm:2.4.4" - "@walmart/rn-receiving-mini-app": "npm:2.3.340" + "@walmart/rn-receiving-mini-app": "npm:2.3.356" "@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,11 +7769,11 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.3.340": - version: 2.3.340 - resolution: "@walmart/rn-receiving-mini-app@npm:2.3.340" +"@walmart/rn-receiving-mini-app@npm:2.3.356": + version: 2.3.356 + resolution: "@walmart/rn-receiving-mini-app@npm:2.3.356" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.1.11" + "@walmart/atlas-rn-ui-components": "npm:1.1.17" "@walmart/loadquality-mini-app": "npm:1.0.139" peerDependencies: "@react-native-clipboard/clipboard": ">=1.14.0" @@ -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/84b33d021324c4cf14cab3a31198c85b6765f5a8d4fb579796daf6284c56040945679a25dadf6ac7c76ee9e5e412bc74b2f3a22be9a284f42d51fe8e3d719636 + checksum: 10c0/0daff4ea5115c932d0754e249c59f6a05fff19f7ab10c9037fb13791936dcc21cc66f832189e89543feb8c2d8ff481c11fbf042daec5deaf914b12f16df43696 languageName: node linkType: hard
Receiving version 2.3.356 - bug fixes
Receiving version 2.3.356 - bug fixes
3710d338b6f08f5125d9ae4b573abef51a5a34de
--- ios/BuildSupport/install-cocoapods.sh @@ -14,8 +14,8 @@ export https_proxy=http://sysproxy.wal-mart.com:8080 export http_proxy=http://sysproxy.wal-mart.com:8080 export no_proxy=repository.walmart.com,repo.wal-mart.com,localhost,chromium.googlesource.com -gem uninstall cocoapods -a -x --user-install --verbose -gem install cocoapods -v ${CCP_VER} --user-install --verbose +sudo gem uninstall cocoapods -a -x --user-install --verbose +sudo gem install cocoapods -v ${CCP_VER} --user-install --verbose pod_path=$(ruby -r rubygems -e 'puts Gem.user_dir')/bin echo "pod_path ${pod_path}"
adding sudo to gem install
adding sudo to gem install
e569abd776cde1845d83fecfe9c978a164070d77
--- index.js
feat: SMDV-9999 update index
feat: SMDV-9999 update index
62684227b6ab0d3e14a710aca750707439331a05
--- packages/allspark-foundation/__tests__/Clock/saga.test.ts @@ -0,0 +1,25 @@ +import { onInit, onFetch } from '../../src/Clock/sagas'; +import { IClockActions } from '../../src/Clock/redux'; +jest.mock('../../src/Clock/service', ()=>({ + ClockService:{ + initialize:jest.fn(), + fetch:jest.fn(), + } +})) +describe('Auth/sagas.ts', () => { + it('should call AuthService.getUser', ()=>{ + const action:IClockActions['INIT'] = {type:'clockStatus/INIT' as const, payload:undefined}; + const getInit = onInit(action); + const nextInit = getInit.next(); + expect(nextInit.value).toEqual(undefined); + expect(getInit.next().done).toBe(true) + }) + it('should call AuthService.onSignIn', ()=>{ + const payload = {clientId:'test', scopes:['test'], issuer:'test', redirectUrl:'test'} + const action:IClockActions['FETCH'] = {type:'clockStatus/FETCH' as const, payload:payload}; + const getFetch = onFetch(action); + const nextFetch = getFetch.next(); + expect(nextFetch.value).toEqual(undefined); + expect(getFetch.next().done).toBe(true) + }) +});
unit test for clock saga added
unit test for clock saga added
39c246f42c82a3266c99202fdde6be33fe6e5803
--- package.json @@ -63,7 +63,7 @@ "@redux-saga/testing-utils": "^1.1.3", "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", - "@walmart/shelfavailability-mini-app": "0.3.61", + "@walmart/shelfavailability-mini-app": "0.3.63", "@walmart/allspark-health-survey-mini-app": "0.0.41", "@walmart/allspark-home-mini-app": "0.4.24", "@walmart/allspark-me-mini-app": "0.1.0", @@ -89,7 +89,7 @@ "@walmart/schedule-mini-app": "0.2.76", "@walmart/settings-mini-app": "1.2.3", "@walmart/time-clock-mini-app": "0.3.8", - "@walmart/ui-components": "1.1.44", + "@walmart/ui-components": "^1.1.44", "@walmart/welcomeme-mini-app": "0.26.2", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
SA 0.3.63, ui-components latest version
SA 0.3.63, ui-components latest version
cd96958b9d2582f509562849b942ce66af6d3ef3
--- __tests__/channels/components/ChannelRow.test.tsx @@ -7,6 +7,7 @@ import { import {renderWithProviders} from '../../harness'; import {mockCollection, mockDoc} from 'firestore-jest-mock/mocks/firestore'; import moment from 'moment'; +import 'moment-timezone'; import {fireEvent} from '@testing-library/react-native'; import {createMockChannelsContext} from '../../harness/firestore/channelsProvider'; import {generateFirestoreTimestamp as mockGenerateCreatedAt} from '../../harness/firestore/data/timestamps'; @@ -17,6 +18,13 @@ import {useDailyRoster} from '../../../src/hooks'; import {mockGetDailyRosterQuery} from '../../harness/athenaQueries/getDailyRoster'; const {finishPendingRequests} = require('../../harness/utils'); +// Mock moment-timezone to ensure consistent behavior +jest.mock('moment-timezone', () => { + const actualMoment = jest.requireActual('moment-timezone'); + actualMoment.tz.setDefault('UTC'); + return actualMoment; +}); + jest.mock('react-redux', () => ({ ...jest.requireActual('react-redux'), useSelector: jest.fn().mockImplementation((selector) => { @@ -51,6 +59,9 @@ jest.mock('@walmart/allspark-foundation/Navigation', () => ({ describe('ChannelRow', () => { beforeEach(() => { + // Set a fixed timezone for all tests + moment.tz.setDefault('UTC'); + mockCollection.mockReturnValue({ doc: mockDoc, }); @@ -59,6 +70,11 @@ describe('ChannelRow', () => { loading: false, }); }); + + afterEach(() => { + // Reset timezone setting after each test + moment.tz.setDefault(); + }); it('should render ChannelRow Component', async () => { jest .spyOn(moment, 'now') --- __tests__/channels/components/__snapshots__/ChannelRow.test.tsx.snap @@ -281,7 +281,7 @@ exports[`ChannelRow should render ChannelRow Component 1`] = ` } testID="captionText" > - 06:00 pm + 12:00 am </Text> </View> </View>
chore: fix test failures
chore: fix test failures
1b51dc0010c3bd126722038498b017bb82c01e94
--- package.json @@ -45,6 +45,7 @@ "@testing-library/react-native": "^12.4.3", "@types/babel__core": "^7", "eslint": "^8.19.0", + "expo": "^53.0.20", "husky": "^9.1.7", "jest": "~29.7.0", "lerna": "^7.0.0", --- yarn.lock @@ -8743,6 +8743,7 @@ __metadata: "@testing-library/react-native": "npm:^12.4.3" "@types/babel__core": "npm:^7" eslint: "npm:^8.19.0" + expo: "npm:^53.0.20" husky: "npm:^9.1.7" jest: "npm:~29.7.0" lerna: "npm:^7.0.0"
feat: update the container
feat: update the container
df890bc5e644d50fe8722e41e0ed410e965c95aa
--- ios/Podfile.lock @@ -358,7 +358,7 @@ PODS: - React-Core - react-native-wm-barcode (2.9.0): - React - - react-native-wm-voice-text (0.3.1): + - react-native-wm-voice-text (0.4.1): - React - React-RCTActionSheet (0.63.2): - React-Core/RCTActionSheetHeaders (= 0.63.2) @@ -810,7 +810,7 @@ SPEC CHECKSUMS: react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 react-native-wm-barcode: 1f16edb27dac807563ed08edc9d0ba042e9a182d - react-native-wm-voice-text: 498a87b567be0074720a30386a22b1e7cde873f5 + react-native-wm-voice-text: 80c0b59ff0fab4daf179ee430e4ea285181e3891 React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5 React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6 React-RCTBlob: 39cf0ece1927996c4466510e25d2105f67010e13 --- package-lock.json @@ -3124,9 +3124,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.9", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.9.tgz", - "integrity": "sha512-05b/el96GlX889Co0W57ScWiwlIJJNwAMSQAchu0LUCQW0+1BaarohXwu78QE/7pYD4GaQmcxhXWYkCK2JQBLw==" + "version": "0.5.10", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.10.tgz", + "integrity": "sha512-ENKfPWuEgfER1n71tZeuCH4CXXL7YdEKqiu7L4nL+70BRz/x+LcUSnbokeG1oT47XVzmOgrddfQNKYDQ+Sx9cA==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -74,7 +74,7 @@ "@walmart/impersonation-mini-app": "1.0.15", "@walmart/inbox-mini-app": "0.0.94", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.5.9", + "@walmart/push-to-talk-mini-app": "0.5.10", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.25.0", "@walmart/react-native-shared-navigation": "^0.4.0",
fix: bumping ptt version (#608)
fix: bumping ptt version (#608)
aaea57d2f352a255562fd81ce4bbbb3ef0be4998
--- __tests__/__mocks__/@walmart/ItemInfo.js @@ -1,3 +1,3 @@ module.exports = { ItemInfoMiniApp: 'ItemInfoMiniApp', -}; \ No newline at end of file +};
linter
linter
9f258937e756b619a94b247df30a85cba1f3bb3e
--- package.json @@ -1,74 +1,74 @@ { - "name": "allspark", - "workspaces": [ - "./packages/allspark-utils", - "./packages/allspark-foundation", - "./packages/allspark-authentication", - "./packages/me-at-walmart-common", - "./packages/me-at-walmart-container", - "./packages/*" - ], - "version": "1.16.0", - "description": "", - "private": true, - "scripts": { - "test": "npm run test --workspaces --if-present", - "lint": "npm run lint --workspaces --if-present", - "clean": "npm run clean --workspaces", - "commit": "commit", - "build": "npm run build --workspaces", - "prepare": "husky" - }, - "repository": { - "type": "git", - "url": "https://gecgithub01.walmart.com/allspark/allspark.git" - }, - "author": "", - "license": "ISC", - "publishConfig": { - "registry": "https://npme.walmart.com" - }, - "devDependencies": { - "@babel/core": "^7.20.0", - "@commitlint/config-conventional": "^16.2.1", - "@graphql-codegen/cli": "^2.16.3", - "@graphql-codegen/near-operation-file-preset": "^2.5.0", - "@graphql-codegen/typescript": "^2.8.7", - "@graphql-codegen/typescript-operations": "^2.5.10", - "@graphql-codegen/typescript-react-apollo": "^3.3.7", - "@react-native-community/eslint-config": "^2.0.0", - "@redux-saga/testing-utils": "^1.1.3", - "@testing-library/react-hooks": "^5.0.3", - "@testing-library/react-native": "^9.1.0", - "@types/jest": "^26.0.23", - "@types/react": "^18.0.27", - "@types/react-test-renderer": "^18.0.0", - "@typescript-eslint/eslint-plugin": "^5.7.0", - "@typescript-eslint/parser": "^5.7.0", - "babel-jest": "^26.6.3", - "commitlint": "^16.2.3", - "eslint": "^7.14.0", - "eslint-plugin-prettier": "^4.2.1", - "husky": "^9.0.11", - "jest": "^26.6.3", - "jest-sonar-reporter": "^2.0.0", - "lerna": "~7.4.2", - "prettier": "^2.0.4", - "react-test-renderer": "~18.1.0", - "typescript": "^4.7.4" - }, - "overrides": { - "@walmart/config-components": { - "@walmart/core-services": "5.0.0-beta.32", - "@walmart/core-services-allspark": "5.0.0-beta.32", - "@walmart/core-utils": "5.0.0-beta.32", - "@walmart/redux-store": "5.0.0-beta.32", - "@react-native-firebase/analytics": "~17.4.2", - "@react-native-firebase/app": "~17.4.2", - "@react-native-firebase/crashlytics": "~17.4.2", - "@react-native-firebase/database": "~17.4.2" - }, - "react": "^18.2.0", - "react-native": "~0.72.5" - } + "name": "allspark", + "workspaces": [ + "./packages/allspark-utils", + "./packages/allspark-foundation", + "./packages/allspark-authentication", + "./packages/me-at-walmart-common", + "./packages/me-at-walmart-container", + "./packages/*" + ], + "version": "1.16.0", + "description": "", + "private": true, + "scripts": { + "test": "npm run test --workspaces --if-present", + "lint": "npm run lint --workspaces --if-present", + "clean": "npm run clean --workspaces", + "commit": "commit", + "build": "npm run build --workspaces", + "prepare": "husky" + }, + "repository": { + "type": "git", + "url": "https://gecgithub01.walmart.com/allspark/allspark.git" + }, + "author": "", + "license": "ISC", + "publishConfig": { + "registry": "https://npme.walmart.com" + }, + "devDependencies": { + "@babel/core": "^7.20.0", + "@commitlint/config-conventional": "^16.2.1", + "@graphql-codegen/cli": "^2.16.3", + "@graphql-codegen/near-operation-file-preset": "^2.5.0", + "@graphql-codegen/typescript": "^2.8.7", + "@graphql-codegen/typescript-operations": "^2.5.10", + "@graphql-codegen/typescript-react-apollo": "^3.3.7", + "@react-native-community/eslint-config": "^2.0.0", + "@redux-saga/testing-utils": "^1.1.3", + "@testing-library/react-hooks": "^5.0.3", + "@testing-library/react-native": "^9.1.0", + "@types/jest": "^26.0.23", + "@types/react": "^18.0.27", + "@types/react-test-renderer": "^18.0.0", + "@typescript-eslint/eslint-plugin": "^5.7.0", + "@typescript-eslint/parser": "^5.7.0", + "babel-jest": "^26.6.3", + "commitlint": "^16.2.3", + "eslint": "^7.14.0", + "eslint-plugin-prettier": "^4.2.1", + "husky": "^9.0.11", + "jest": "^26.6.3", + "jest-sonar-reporter": "^2.0.0", + "lerna": "~7.4.2", + "prettier": "^2.0.4", + "react-test-renderer": "~18.1.0", + "typescript": "^4.7.4" + }, + "overrides": { + "@walmart/config-components": { + "@walmart/core-services": "5.0.0-beta.32", + "@walmart/core-services-allspark": "5.0.0-beta.32", + "@walmart/core-utils": "5.0.0-beta.32", + "@walmart/redux-store": "5.0.0-beta.32", + "@react-native-firebase/analytics": "~17.4.2", + "@react-native-firebase/app": "~17.4.2", + "@react-native-firebase/crashlytics": "~17.4.2", + "@react-native-firebase/database": "~17.4.2" + }, + "react": "^18.2.0", + "react-native": "~0.72.5" + } }
Re-indent package.json with spaces
Re-indent package.json with spaces
cefb84b143eb341f760fd4ac609b04df4fde383b
--- ios/Podfile.lock @@ -1454,7 +1454,7 @@ PODS: - Realm (10.44.0): - Realm/Headers (= 10.44.0) - Realm/Headers (10.44.0) - - RealmJS (12.3.0): + - RealmJS (12.3.1): - React - RNAudioRecorderPlayer (3.5.3): - React-Core @@ -1589,7 +1589,7 @@ PODS: - FirebaseMessaging (<= 10.1.0) - StructuredLogAssistantIOS (= 0.0.7) - TOCropViewController (2.6.1) - - topstock-mini-app (1.3.3): + - topstock-mini-app (1.4.8): - React - VisionCamera (3.0.0): - React @@ -2046,7 +2046,7 @@ SPEC CHECKSUMS: Apollo: 204819ea82022fbc59ad05056820df867f19bd02 AppAuth: 31bcec809a638d7bd2f86ea8a52bd45f6e81e7c7 Base64: cecfb41a004124895a7bcee567a89bae5a89d49b - boost: a7c83b31436843459a1961bfd74b96033dc77234 + boost: 57d2868c099736d80fcd648bf211b4431e51a558 BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 @@ -2105,7 +2105,7 @@ SPEC CHECKSUMS: Permission-Notifications: 150484ae586eb9be4e32217582a78350a9bb31c3 PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265 - RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda + RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: 28469809442eb4eb5528462705f7d852948c8a74 RCTTypeSafety: e9c6c409fca2cc584e5b086862d562540cb38d29 React: 769f469909b18edfe934f0539fffb319c4c61043 @@ -2165,7 +2165,7 @@ SPEC CHECKSUMS: ReactCommon: dd03c17275c200496f346af93a7b94c53f3093a4 ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab Realm: 0419a32457873acb720df25bf1d658df36967cf2 - RealmJS: 4c52a15602e70b64cd9230b0a17a9c12741371f4 + RealmJS: 578e16cf7c0b32c13a23b2df667b021bb3c36f1c RNAudioRecorderPlayer: 6638283925b46808310c9fdf803ebabc3abdbadc RNCAsyncStorage: 4b98ac3c64efa4e35c1197cb0c5ca5e9f5d4c666 RNCClipboard: 41d8d918092ae8e676f18adada19104fa3e68495 @@ -2205,7 +2205,7 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: fef064694cb7fd0f4d8c633f03d2d9e11876fdda TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 - topstock-mini-app: b77d71ab047e36a75bb5cd120f344d86c9f255f4 + topstock-mini-app: 087f72475c79e70547919002f5e8a7cd1e0a149c VisionCamera: c4f239ef0ce8fb13937966b814f57925560f5596 walmart-react-native-sumo-sdk: 02719d035c1a52e951e15097fae5ea17b459f71c wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 --- package-lock.json @@ -86,7 +86,7 @@ "@walmart/taskit-mini-app": "2.47.9", "@walmart/texting-mini-app": "2.0.40", "@walmart/time-clock-mini-app": "2.175.2", - "@walmart/topstock-mini-app": "1.3.3", + "@walmart/topstock-mini-app": "1.4.8", "@walmart/ui-components": "1.15.1", "@walmart/welcomeme-mini-app": "0.84.4", "@walmart/wfm-ui": "0.2.26", @@ -9782,12 +9782,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/topstock-mini-app": { - "version": "1.3.3", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.3.3.tgz", - "integrity": "sha512-mAbVPVO8zkMS6moWJ3geM+4oFq83b/8c4p77mMWAUEJ1RTsJyMnS1C8Ls4El3SKljkwmBhT8UoZQHssvQYQgnw==", - "dependencies": { - "javascript-time-ago": "^2.5.7" - }, + "version": "1.4.8", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.4.8.tgz", + "integrity": "sha512-ktdpX7I3qLvpfisz32AC5IAhK5l6PPUT2De4qQnJYg63Oy8gUbk6RwUyBCBGDfXZl4jCYiN6ek7K22uIRtYp4w==", "peerDependencies": { "@react-native-firebase/app": "^15.1.1", "@react-native-firebase/crashlytics": "^15.1.1", @@ -33575,12 +33572,9 @@ "integrity": "sha1-QVwJoEY4zaaC39G6HDOGH7COw/Y=" }, "@walmart/topstock-mini-app": { - "version": "1.3.3", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.3.3.tgz", - "integrity": "sha512-mAbVPVO8zkMS6moWJ3geM+4oFq83b/8c4p77mMWAUEJ1RTsJyMnS1C8Ls4El3SKljkwmBhT8UoZQHssvQYQgnw==", - "requires": { - "javascript-time-ago": "^2.5.7" - } + "version": "1.4.8", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.4.8.tgz", + "integrity": "sha512-ktdpX7I3qLvpfisz32AC5IAhK5l6PPUT2De4qQnJYg63Oy8gUbk6RwUyBCBGDfXZl4jCYiN6ek7K22uIRtYp4w==" }, "@walmart/ui-components": { "version": "1.15.1", --- package.json @@ -127,7 +127,7 @@ "@walmart/taskit-mini-app": "2.47.9", "@walmart/texting-mini-app": "2.0.40", "@walmart/time-clock-mini-app": "2.175.2", - "@walmart/topstock-mini-app": "1.3.3", + "@walmart/topstock-mini-app": "1.4.8", "@walmart/ui-components": "1.15.1", "@walmart/welcomeme-mini-app": "0.84.4", "@walmart/wfm-ui": "0.2.26",
fix(build): update build version 1.4.8
fix(build): update build version 1.4.8
f2049cdb509723e0472da1e5e4692616648a9ead
--- package-lock.json @@ -39,7 +39,7 @@ "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", "@walmart/config-components": "4.1.0-rc.4", - "@walmart/copilot-mini-app": "1.71.0", + "@walmart/copilot-mini-app": "^1.74.0", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.11.0", "@walmart/core-utils": "~2.0.5", @@ -4935,9 +4935,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "1.71.0", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.71.0.tgz", - "integrity": "sha512-2BphcAzWZFZ33br8uff9JQH9Q14qgG8v7OrUmyl2N5q5Y3QdviUHUhwQQlgcP2trtvwIzBonu47A9TH9WT4sWQ==", + "version": "1.74.0", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.74.0.tgz", + "integrity": "sha512-GQUerPssmEBwBAM3rkBm9Lcx0w+1NQ75ZasDBDnsjg9fcPOh/3yzbSzgvYetjbvj77Psfs/J5ODoxwkjNvmLHw==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -25130,9 +25130,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "1.71.0", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.71.0.tgz", - "integrity": "sha512-2BphcAzWZFZ33br8uff9JQH9Q14qgG8v7OrUmyl2N5q5Y3QdviUHUhwQQlgcP2trtvwIzBonu47A9TH9WT4sWQ==" + "version": "1.74.0", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.74.0.tgz", + "integrity": "sha512-GQUerPssmEBwBAM3rkBm9Lcx0w+1NQ75ZasDBDnsjg9fcPOh/3yzbSzgvYetjbvj77Psfs/J5ODoxwkjNvmLHw==" }, "@walmart/core-services": { "version": "2.0.19", --- package.json @@ -81,7 +81,7 @@ "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", "@walmart/config-components": "4.1.0-rc.4", - "@walmart/copilot-mini-app": "1.71.0", + "@walmart/copilot-mini-app": "1.74.0", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.11.0", "@walmart/core-utils": "~2.0.5",
chore: bump copilot @1.74.0
chore: bump copilot @1.74.0
bfbc338b636e9dbe93df35306702825f054eabab
--- 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.4.4", - "@walmart/rn-receiving-mini-app": "2.3.380", + "@walmart/rn-receiving-mini-app": "2.3.387", "@walmart/roster-mini-app": "2.9.0", "@walmart/schedule-mini-app": "0.118.2", "@walmart/shelfavailability-mini-app": "1.5.37", --- yarn.lock @@ -5973,9 +5973,9 @@ __metadata: languageName: node linkType: hard -"@walmart/atlas-rn-ui-components@npm:1.1.17": - version: 1.1.17 - resolution: "@walmart/atlas-rn-ui-components@npm:1.1.17" +"@walmart/atlas-rn-ui-components@npm:1.1.23": + version: 1.1.23 + resolution: "@walmart/atlas-rn-ui-components@npm:1.1.23" peerDependencies: "@livingdesign/tokens": ">=0.63.0" "@react-native-picker/picker": ">=2.4.0" @@ -5997,7 +5997,7 @@ __metadata: bin: installFonts: scripts/installFonts runCodemods: scripts/runCodemods - checksum: 10c0/27143ad3a5c8f5a7f73a7383c249b4b092262962c083d67ce3316535096cf906d164d5f0df370327b2340c394b92d670e94bc97529f806077cc43a7ae989f4b1 + checksum: 10c0/9580ed85d9ef330e8c02ad2a8028d0d1b38e690821c1659ffa4039d1eed0c57d10231ac81706534f0c5ac684023171598c1977ed28c2013fb253528a909e5345 languageName: node linkType: hard @@ -7056,7 +7056,7 @@ __metadata: "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.15.0" "@walmart/rfid-scan-mini-app": "npm:2.4.4" - "@walmart/rn-receiving-mini-app": "npm:2.3.380" + "@walmart/rn-receiving-mini-app": "npm:2.3.387" "@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,11 +7769,11 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.3.380": - version: 2.3.380 - resolution: "@walmart/rn-receiving-mini-app@npm:2.3.380" +"@walmart/rn-receiving-mini-app@npm:2.3.387": + version: 2.3.387 + resolution: "@walmart/rn-receiving-mini-app@npm:2.3.387" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.1.17" + "@walmart/atlas-rn-ui-components": "npm:1.1.23" "@walmart/loadquality-mini-app": "npm:1.0.144" peerDependencies: "@react-native-clipboard/clipboard": ">=1.14.0" @@ -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/1bf8d90aa99e0a95ebb4206dc80fe96bd5c16d73f3ed04973cf482cc6aad0cde24a80c1e426b891e0ad2c84d086887f9f27fc0b77c3bc58ecad9f7866cb2fe8d + checksum: 10c0/8eab84b569a097e43e37960b768f37fbaec72f7d8fcca5290d951f2d1c4d6092b0ba5705656e76d074003d4edde9157c72a79ceda78aa690df06b04fb1c19307 languageName: node linkType: hard
Receiving version 2.3.387 - Bug fixes
Receiving version 2.3.387 - Bug fixes
6372eee385fa8fdee34922cff99b9977ef193e64
--- targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo.png Binary files a/targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo.png and b/targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo.png differ --- targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo@2x.png Binary files a/targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo@2x.png and b/targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo@2x.png differ --- targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo@3x.png Binary files a/targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo@3x.png and b/targets/US/ios/AllSpark/Images.xcassets/AppLogo.imageset/AppLogo@3x.png differ
update app logo
update app logo
0a922dd223b545985c146517dfbe6b991e9b46d4
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.1.0-alpha.2", + "version": "3.1.0-alpha.3", "main": "dist/index.js", "files": [ "dist", @@ -88,9 +88,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.3.0-alpha.2", + "@walmart/roster-mini-app": "3.3.0-alpha.3", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.2.0-alpha.2", + "@walmart/wmconnect-mini-app": "3.2.0-alpha.3", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6318,9 +6318,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.3.0-alpha.2" + "@walmart/roster-mini-app": "npm:3.3.0-alpha.3" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.2" + "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.3" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6425,9 +6425,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:3.3.0-alpha.2": - version: 3.3.0-alpha.2 - resolution: "@walmart/roster-mini-app@npm:3.3.0-alpha.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.3.0-alpha.2.tgz" +"@walmart/roster-mini-app@npm:3.3.0-alpha.3": + version: 3.3.0-alpha.3 + resolution: "@walmart/roster-mini-app@npm:3.3.0-alpha.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.3.0-alpha.3.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6438,7 +6438,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/e02e972bc3a81058d9eb030e7772ba3b6780b55be92c090864d29a17eed2cfe274b32058f087aab3d256f817de0321fbb21f69af824f1fa9b81737928442dcff + checksum: 10c0/6bc19834fdc6dac5e8ce1d2dfab8bdb18afa589e3aa67b385868266b5deb22bcde9f7b9b42889c7b3a29c32fcf20bc13cf3679165d8325aa359138fbe618b73d languageName: node linkType: hard @@ -6462,9 +6462,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.2": - version: 3.2.0-alpha.2 - resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.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.2.0-alpha.2.tgz" +"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.3": + version: 3.2.0-alpha.3 + resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.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.2.0-alpha.3.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6475,7 +6475,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/ee6450ecd9c7885fa315a00ba45f7a69a449c1f3c9effcbed906d176a1d8cffae14d70c264851599fd4f4bba3d38f0139b085c8d06523355d14a5d86aa2ab997 + checksum: 10c0/0fd5dd299abe3b0a05996c5ce71d8e092969a5243abc9d57f22e78ff8d84021c536d38cbce4db2d5e57471f20f598268aec9749e8f52674254c6bdf5132218fc languageName: node linkType: hard
feat(ui): updating versions for drop 33
feat(ui): updating versions for drop 33
4ee90ccfc8648334baf1daf4d1cf1bdae3e10d6f
--- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap @@ -61,6 +61,7 @@ exports[`MainTabsNav matches snapshot with badges 1`] = ` name="myTeam" options={ Object { + "tabBarBadge": undefined, "tabBarIcon": [Function], } } @@ -136,6 +137,7 @@ exports[`MainTabsNav matches snapshot with inbox shown and badges 1`] = ` name="myTeam" options={ Object { + "tabBarBadge": undefined, "tabBarIcon": [Function], } } @@ -188,6 +190,7 @@ exports[`MainTabsNav matches snapshot with no badges 1`] = ` name="myTeam" options={ Object { + "tabBarBadge": undefined, "tabBarIcon": [Function], } }
chore: update snapshot
chore: update snapshot
5acd5127f0e440e3b053dcfa8f9c9b0beec088dd
--- src/screens/RosterScreen.tsx @@ -78,7 +78,7 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { * Return early with warning if clocked out */ if (!clockedIn) { - analytics('clockedout roster access', {}, 10); + analytics('roster', {message: 'clocked out roster access'}, 10); return ( <Alert variant='warning' --- src/screens/RosterScreen.tsx @@ -78,7 +78,7 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { * Return early with warning if clocked out */ if (!clockedIn) { - analytics('clockedout roster access', {}, 10); + analytics('roster', {message: 'clocked out roster access'}, 10); return ( <Alert variant='warning'
Update src/screens/RosterScreen.tsx
Update src/screens/RosterScreen.tsx Co-authored-by: Jae Yoo - j0y0231 <jae.yoo@walmart.com>
1d3d1c9811378255c365a5385c4be44d23069130
--- core/__tests__/__mocks__/@walmart/time-clock-mini-app.js @@ -1,5 +1,4 @@ module.exports = { - ...jest.requireActual('@walmart/time-clock-mini-app'), TimeClockScreen: 'TimeClockScreen', NewTorScreen: 'NewTorScreen', TorInboxScreen: 'TorInboxScreen', @@ -9,6 +8,8 @@ module.exports = { AttendanceModalScreen: 'AttendanceModalScreen', TimeClockWidget: 'TimeClockWidget', Toast: 'Toast', + PunchActions: require('@walmart/time-clock-mini-app').PunchActions, + ClockAppActions: require('@walmart/time-clock-mini-app').ClockAppActions, ClockAppSelectors: { getGeoValidationDisabled: jest.fn(), }
use punch and clock actions from timeclockminapp
use punch and clock actions from timeclockminapp
1587e2a683fb30a9f7a000bfc2a39ec20c6f929f
--- android/app/src/main/java/com/walmart/stores/allspark/beta/MainActivity.kt @@ -26,7 +26,7 @@ class MainActivity: ReactActivity() { * Handles showing the splash screen on creation of MainActivity */ override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) + super.onCreate(null) SplashScreen.show(this); } --- android/app/src/main/java/com/walmart/stores/allspark/beta/MainApplication.kt @@ -47,7 +47,7 @@ class MainApplication : PlatformCoreApplication(), ReactApplication { get() = getDefaultReactHost(this.applicationContext, reactNativeHost) override fun onCreate() { - super.onCreate(null) + super.onCreate() SoLoader.init(this, false) if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { // If you opted-in for the New Architecture, we load the native entry point for this app.
add null for bundleinstance on MainActivity and remove MainApplication
add null for bundleinstance on MainActivity and remove MainApplication
0ee2fc2b38ec26f5a71189f068bada6ba594d1da
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "1.62.13", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", - "@walmart/copilot-mini-app": "^3.26.4", + "@walmart/copilot-mini-app": "3.26.4", "@walmart/core-services": "~2.3.0", "@walmart/core-services-allspark": "~2.13.1", "@walmart/core-utils": "~2.0.5", @@ -69,7 +69,7 @@ "@walmart/money-auth-shared-components": "0.0.14", "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.13.5", - "@walmart/payrollsolution_miniapp": "0.134.3", + "@walmart/payrollsolution_miniapp": "0.135.3", "@walmart/price-changes-mini-app": "1.10.2", "@walmart/profile-feature-app": "0.334.3", "@walmart/react-native-encrypted-storage": "1.1.3", @@ -9406,9 +9406,9 @@ } }, "node_modules/@walmart/payrollsolution_miniapp": { - "version": "0.134.3", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.134.3.tgz", - "integrity": "sha512-cLJ3UG8dEUZ3aK3HK/UxW3OPNctajdujSDOJ/7N25ektG9fScwPWJwFkkZ+2jfrF0atP2AW8PFGKfIrBtijPYw==", + "version": "0.135.3", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.135.3.tgz", + "integrity": "sha512-++ZWDdNgJJYh16H5q4Cyb/G6CwD+2uqeNctj7yyWlg1gHCvjy6ah0dDzhryXmxHrKTvDSRD6mlvIJaPd6xqSLA==", "hasInstallScript": true, "dependencies": { "crypto-js": "^3.3.0", @@ -33443,9 +33443,9 @@ } }, "@walmart/payrollsolution_miniapp": { - "version": "0.134.3", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.134.3.tgz", - "integrity": "sha512-cLJ3UG8dEUZ3aK3HK/UxW3OPNctajdujSDOJ/7N25ektG9fScwPWJwFkkZ+2jfrF0atP2AW8PFGKfIrBtijPYw==", + "version": "0.135.3", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.135.3.tgz", + "integrity": "sha512-++ZWDdNgJJYh16H5q4Cyb/G6CwD+2uqeNctj7yyWlg1gHCvjy6ah0dDzhryXmxHrKTvDSRD6mlvIJaPd6xqSLA==", "requires": { "crypto-js": "^3.3.0", "expo-sharing": "~11.5.0" --- package.json @@ -110,7 +110,7 @@ "@walmart/money-auth-shared-components": "0.0.14", "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.13.5", - "@walmart/payrollsolution_miniapp": "0.134.3", + "@walmart/payrollsolution_miniapp": "0.135.3", "@walmart/price-changes-mini-app": "1.10.2", "@walmart/profile-feature-app": "0.334.3", "@walmart/react-native-encrypted-storage": "1.1.3",
bump version
bump version
4cc060dfe7c4dfb3e939de87a297ced902ce3bde
--- package-lock.json @@ -16285,9 +16285,9 @@ "dev": true }, "shell-quote": { - "version": "1.7.3", - "resolved": "https://npme.walmart.com/shell-quote/-/shell-quote-1.7.3.tgz", - "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==" + "version": "1.7.4", + "resolved": "https://npme.walmart.com/shell-quote/-/shell-quote-1.7.4.tgz", + "integrity": "sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw==" }, "shellwords": { "version": "0.1.1", --- packages/allspark-app-auth/package.json @@ -21,15 +21,14 @@ }, "author": "", "license": "ISC", - "dependencies": { + "dependencies": {}, + "peerDependencies": { "@react-native-community/async-storage": "~1.12.1", "@walmart/react-native-encrypted-storage": "1.1.12", - "react-native-app-auth": "~6.4.3" - }, - "peerDependencies": { "@walmart/allspark-foundation": "2.0.0", "react": "~17.0.2", - "react-native": ">=0.66.0 <0.68.0" + "react-native": ">=0.66.0 <0.68.0", + "react-native-app-auth": "~6.4.3" }, "devDependencies": { "@types/react": "~17.0.37", @@ -37,7 +36,8 @@ "@types/react-native": "~0.67.4", "@walmart/allspark-foundation": "2.0.0", "react": "~17.0.2", - "react-native": "~0.67.4" + "react-native": "~0.67.4", + "react-native-app-auth": "~6.4.3" }, "resolutions": { "@types/react": "^17" --- packages/allspark-foundation/package.json @@ -22,7 +22,6 @@ "i18next": "~21.9.2", "lodash": "~4.17.21", "react-i18next": "~11.18.6", - "react-native-safe-area-context": "^4.4.1", "react-redux": "~7.2.9", "redux": "~4.2.0", "redux-flipper": "~2.0.2", @@ -39,7 +38,8 @@ "@walmart/gtp-shared-components": "1.8.9", "moment-timezone": "~0.5.37", "react": "~17.0.2", - "react-native": ">=0.66.0 <0.69.0" + "react-native": ">=0.66.0 <0.69.0", + "react-native-safe-area-context": "^4.4.1" }, "devDependencies": { "@react-navigation/stack": "~6.3.1", --- packages/me-at-walmart-container/package.json @@ -22,6 +22,21 @@ "author": "", "license": "ISC", "dependencies": { + "axios": "~0.27.2", + "i18next": "~21.9.2", + "lodash": "~4.17.21", + "jwt-decode": "~3.1.2", + "namecase": "~1.1.2", + "react-hook-form": "~7.36.1", + "react-i18next": "~11.18.6", + "react-redux": "~7.2.9", + "redux": "~4.2.0", + "redux-saga": "~1.2.1", + "redux-thunk": "~2.4.1", + "reselect": "~4.1.6", + "uuid": "~9.0.0" + }, + "peerDependencies": { "@react-native-community/async-storage": "~1.12.1", "@react-native-community/netinfo": "~7.1.12", "@react-native-firebase/analytics": "~15.6.0", @@ -31,52 +46,46 @@ "@react-native-firebase/firestore": "~15.6.0", "@react-native-firebase/perf": "~15.6.0", "@react-native-firebase/remote-config": "~15.6.0", + "@react-navigation/bottom-tabs": "~6.4.0", + "@react-navigation/drawer": "~6.5.0", + "@react-navigation/material-top-tabs": "~6.2.4", + "@react-navigation/native": "~6.0.13", + "@react-navigation/stack": "~6.3.1", "@walmart/allspark-app-auth": "1.8.0", "@walmart/config-components": "3.0.3", "@walmart/functional-components": "2.0.6", + "@walmart/gtp-shared-components": "1.8.9", "@walmart/impersonation-mini-app": "1.2.0", + "@walmart/me-at-walmart-foundation": "~1.8.0", "@walmart/react-native-encrypted-storage": "1.1.12", "@walmart/react-native-logger": "1.29.0", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.2.2-beta.2", - "axios": "~0.27.2", - "i18next": "~21.9.2", - "lodash": "~4.17.21", - "jwt-decode": "~3.1.2", - "namecase": "~1.1.2", - "react-hook-form": "~7.36.1", - "react-i18next": "~11.18.6", + "@walmart/ui-components": "1.5.0", + "moment-timezone": "~0.5.37", + "react": "~17.0.2", + "react-native": ">=0.66.0 <0.68.0", "react-native-biometrics": "~3.0.1", "react-native-device-info": "~10.2.0", + "react-native-maps": "~0.30.1", "react-native-safe-area-context": "~3.3.0", "react-native-splash-screen": "~3.3.0", "react-native-permissions": "~3.6.1", "react-native-wm-barcode": "2.36.6", "react-native-wm-config": "0.1.1", "react-native-wm-notification": "2.0.1", - "react-redux": "~7.2.9", - "redux": "~4.2.0", - "redux-saga": "~1.2.1", - "redux-thunk": "~2.4.1", - "reselect": "~4.1.6", - "uuid": "~9.0.0", "wifi-store-locator": "1.0.0-alpha2" }, - "peerDependencies": { - "@react-navigation/bottom-tabs": "~6.4.0", - "@react-navigation/drawer": "~6.5.0", - "@react-navigation/material-top-tabs": "~6.2.4", - "@react-navigation/native": "~6.0.13", - "@react-navigation/stack": "~6.3.1", - "@walmart/me-at-walmart-foundation": "~1.8.0", - "@walmart/gtp-shared-components": "1.8.9", - "@walmart/ui-components": "1.5.0", - "moment-timezone": "~0.5.37", - "react": "~17.0.2", - "react-native": ">=0.66.0 <0.68.0", - "react-native-maps": "~0.30.1" - }, "devDependencies": { + "@react-native-community/async-storage": "~1.12.1", + "@react-native-community/netinfo": "~7.1.12", + "@react-native-firebase/analytics": "~15.6.0", + "@react-native-firebase/app": "~15.6.0", + "@react-native-firebase/crashlytics": "~15.6.0", + "@react-native-firebase/database": "~15.6.0", + "@react-native-firebase/firestore": "~15.6.0", + "@react-native-firebase/perf": "~15.6.0", + "@react-native-firebase/remote-config": "~15.6.0", "@react-navigation/bottom-tabs": "~6.4.0", "@react-navigation/drawer": "~6.5.0", "@react-navigation/material-top-tabs": "~6.2.4", @@ -87,14 +96,31 @@ "@types/react-redux": "~7.1.9", "@types/react-native": "~0.67.4", "@types/uuid": "~8.3.4", - "@walmart/me-at-walmart-foundation": "1.8.0", + "@walmart/allspark-app-auth": "1.8.0", "@walmart/allspark-foundation": "2.0.0", + "@walmart/config-components": "3.0.3", + "@walmart/functional-components": "2.0.6", "@walmart/gtp-shared-components": "1.8.9", + "@walmart/impersonation-mini-app": "1.2.0", + "@walmart/me-at-walmart-foundation": "~1.8.0", + "@walmart/react-native-encrypted-storage": "1.1.12", + "@walmart/react-native-logger": "1.29.0", + "@walmart/react-native-shared-navigation": "1.0.2", + "@walmart/react-native-sumo-sdk": "2.2.2-beta.2", "@walmart/ui-components": "1.5.0", "moment-timezone": "~0.5.37", "react": "~17.0.2", "react-native": "~0.67.4", - "react-native-maps": "^0.30.1" + "react-native-biometrics": "~3.0.1", + "react-native-device-info": "~10.2.0", + "react-native-maps": "~0.30.1", + "react-native-safe-area-context": "~3.3.0", + "react-native-splash-screen": "~3.3.0", + "react-native-permissions": "~3.6.1", + "react-native-wm-barcode": "2.36.6", + "react-native-wm-config": "0.1.1", + "react-native-wm-notification": "2.0.1", + "wifi-store-locator": "1.0.0-alpha2" }, "resolutions": { "@types/react": "^17" --- packages/me-at-walmart-container/src/navigation/AssociateHallway/Tabs/HomeStackNav.tsx @@ -103,6 +103,7 @@ export const HomeStackNav = () => { headerLeft: DrawerButton, }} > + {/* @todo - add fallback screen here if there are none */} {screens} </HomeStack.Navigator> ); --- packages/me-at-walmart-foundation/package.json @@ -28,7 +28,7 @@ "devDependencies": { "@walmart/allspark-foundation": "2.0.0" }, - "dependencies": { + "peerDependencies": { "@walmart/allspark-foundation": "2.0.0" } }
chore: package updates
chore: package updates
8fa9bd5c3e3c4cd7211ecae26074a8b7eb87b452
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.7.0-beta.1", + "version": "3.7.0-beta.2", "main": "dist/index.js", "files": [ "dist",
fix: update packages and expo audio
fix: update packages and expo audio
1ffa40cb37d78cdb084287725a45e7694f681272
--- __tests__/__mocks__/react-native-device-info.js @@ -7,6 +7,7 @@ const mockDeviceInfo = { getModel: jest.fn(), isEmulator: jest.fn(), getDeviceId: jest.fn(() => 'iPhone12'), + getUniqueId: jest.fn(), }; module.exports = { --- __tests__/core/loggerInitTest.ts @@ -1,6 +1,11 @@ import {Platform} from 'react-native'; import {takeLatest, all, call, select} from 'redux-saga/effects'; -import {getVersion, getSystemVersion, getModel} from 'react-native-device-info'; +import { + getVersion, + getSystemVersion, + getModel, + getUniqueId, +} from 'react-native-device-info'; import {DefaultLogger} from '@walmart/react-native-logger'; import {TUserInfo} from '@walmart/react-native-logger/dist/types'; import {addSagas, UserSelectors} from '@walmart/redux-store'; @@ -356,6 +361,7 @@ test('onDeviceInfoSuccess', () => { (getVersion as jest.Mock).mockReturnValueOnce('1.0.0'); (getSystemVersion as jest.Mock).mockReturnValueOnce('12'); (getModel as jest.Mock).mockReturnValueOnce('iPhone12'); + (getUniqueId as jest.Mock).mockReturnValueOnce('12345'); const iterator = onDeviceInfoSuccess({payload} as any); expect(iterator.next().value).toEqual( @@ -371,6 +377,7 @@ test('onDeviceInfoSuccess', () => { model: 'iPhone12', appVersion: '1.0.0', osVersion: '12', + deviceId: '12345', } as TUserInfo), ); expect(iterator.next().done).toEqual(true); --- src/core/loggerInit.ts @@ -3,7 +3,12 @@ import {WMNetworkReducerTypes} from 'react-native-wm-network'; import {NetInfoStateType, NetInfoState} from '@react-native-community/netinfo'; import {DefaultLogger} from '@walmart/react-native-logger'; import {ELevel, TUserInfo} from '@walmart/react-native-logger/dist/types'; -import {getVersion, getSystemVersion, getModel} from 'react-native-device-info'; +import { + getVersion, + getSystemVersion, + getModel, + getUniqueId, +} from 'react-native-device-info'; import {addSagas, DeviceInfo, User, UserSelectors} from '@walmart/redux-store'; import {Platform} from 'react-native'; import { @@ -81,11 +86,13 @@ export const getNetworkAttributes = (state: NetInfoState) => { case NetInfoStateType.wifi: return { ...attributes, + cellularGeneration: undefined, wifiStrength: String(state.details.strength), }; case NetInfoStateType.cellular: return { ...attributes, + wifiStrength: undefined, cellularGeneration: String(state.details.cellularGeneration), }; } @@ -132,6 +139,7 @@ export function* onDeviceInfoSuccess({ model: getModel(), appVersion: getVersion(), osVersion: getSystemVersion(), + deviceId: getUniqueId(), } as TUserInfo); }
Adding unique device id. Clearing network strength variable on connection change
Adding unique device id. Clearing network strength variable on connection change
f1df0c4228e2f14680daf4336e1daee11b1ca287
--- package-lock.json @@ -3269,9 +3269,9 @@ } }, "@walmart/ui-components": { - "version": "1.1.30", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.30.tgz", - "integrity": "sha512-d9zAGkG9Qh0GwvLMP5d+DNyUa3st6dmhqFCldEFiUlIWfVgAHqgxH1T4g9y+hGr88myBaziqxBEY1Gv6yuWI9w==", + "version": "1.1.33", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.33.tgz", + "integrity": "sha512-kK4GRLoqhplOFBp3KOctQyrmjdFFom7zwj+rotZv+L19cq8p0lZN+ZsBmSAQlYCaBngn8Y2/pcaxnvluyIICQg==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -87,7 +87,7 @@ "@walmart/schedule-mini-app": "0.2.76", "@walmart/settings-mini-app": "1.2.3", "@walmart/time-clock-mini-app": "0.3.4", - "@walmart/ui-components": "1.1.30", + "@walmart/ui-components": "1.1.33", "@walmart/welcomeme-mini-app": "0.24.2", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
ui-components version bump
ui-components version bump
d36cf41e786c78f13f2a86ecff937b2806c5e434
--- core/jest.config.js @@ -3,10 +3,6 @@ module.exports = { transform: { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', {rootMode: 'upward'}], }, - // globals: { - // __DEV__: true, - // }, - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], moduleNameMapper: { '@walmart/react-native-logger/(.*)': '<rootDir>/__tests__/__mocks__/@walmart/react-native-logger.js', @@ -30,6 +26,7 @@ module.exports = { '<rootDir>/__tests__/setup.js', '<rootDir>/__tests__/utils.ts', '<rootDir>/__tests__/__mocks__/', + './__tests__/__mocks__/', '<rootDir>/__tests__/home/mockData/', '<rootDir>/__tests__/whatsNew/data.mock.ts', '<rootDir>/src/impersonation/', --- jest.config.js @@ -1,27 +1,26 @@ module.exports = { - projects: ['<rootDir>/targets/*', '<rootDir>/core', '<rootDir>/packages/*'], + projects: ['<rootDir>/targets/US', '<rootDir>/core', '<rootDir>/packages/*'], setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'], testResultsProcessor: 'jest-sonar-reporter', coverageReporters: ['lcov', 'text'], - collectCoverageFrom: ['**/*.{ts,tsx}', '!**/*.d.ts'], coverageThreshold: { global: { - statements: 95, - branches: 95, - functions: 95, - lines: 95, - }, - './packages/allspark-foundation': { statements: 90, - branches: 90, - functions: 90, + branches: 85, + functions: 80, lines: 90, }, + './packages/me-at-walmart-common': { + statements: 5, + branches: 5, + functions: 5, + lines: 5, + }, './packages/me-at-walmart-container': { - statements: 90, - branches: 90, - functions: 90, - lines: 90, + statements: 5, + branches: 5, + functions: 5, + lines: 5, }, }, }; --- targets/US/jest.config.js @@ -4,14 +4,12 @@ module.exports = { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', {rootMode: 'upward'}], }, setupFiles: ['<rootDir>/__tests__/setup.js'], + setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'], testPathIgnorePatterns: [ '<rootDir>/__tests__/setup.js', '<rootDir>/__tests__/__mocks__/', ], - // globals: { - // __DEV__: true, - // }, transformIgnorePatterns: [ - '<rootDir>/node_modules/(?!(react-native|@walmart/core-utils|@walmart/allspark-foundation|@walmart/allspark-utils|@walmart/allspark-http-client|@walmart/core-services|@walmart/core-services-allspark|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|axios|react-native-gesture-handler|@react-native|@living-design|@react-native-community/datetimepicker|@testing-library|jest-diff|jest-matcher-utils|@walmart/learning-mini-app|@walmart/wmconnect-mini-app|nanoid|react-native-reanimated|react-native-flipper|react-native-modal|react-native-animatable)/)', + '<rootDir>/node_modules/(?!(react-native|@walmart/core-utils|@walmart/allspark-foundation|@walmart/allspark-utils|@walmart/allspark-http-client|@walmart/core-services|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|axios|react-native-gesture-handler|@react-native|@living-design|@react-native-community/datetimepicker|@testing-library|jest-diff|jest-matcher-utils|@walmart/learning-mini-app|@walmart/wmconnect-mini-app|nanoid|react-native-reanimated|react-native-flipper|react-native-modal|react-native-animatable)/)', ], };
chore: update test config
chore: update test config
3d566a98b876a479a190ae6f311efc03121414e4
--- graphql.yml @@ -61,31 +61,31 @@ applications: queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v1' - - name: 'prod' - persistedQueries: - - name: 'GetAssociateClockStatus' - hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' - queryTemplate: 'src/queries/getAssociateClockStatus.graphql' - tags: - - 'v1' - - name: 'GetAssociateName' - hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' - queryTemplate: 'src/queries/getAssociateName.graphql' - tags: - - 'v1' - - name: 'GetDailyRoster' - hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' - queryTemplate: 'src/queries/getDailyRoster.graphql' - tags: - - 'v2' - - 'Drop13' - - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' - queryTemplate: 'src/queries/getTeamById.graphql' - tags: - - 'v1' - - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' - queryTemplate: 'src/queries/getTeamsbyStore.graphql' - tags: - - 'v1' +# - name: 'prod' +# persistedQueries: +# - name: 'GetAssociateClockStatus' +# hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' +# queryTemplate: 'src/queries/getAssociateClockStatus.graphql' +# tags: +# - 'v1' +# - name: 'GetAssociateName' +# hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' +# queryTemplate: 'src/queries/getAssociateName.graphql' +# tags: +# - 'v1' +# - name: 'GetDailyRoster' +# hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' +# queryTemplate: 'src/queries/getDailyRoster.graphql' +# tags: +# - 'v2' +# - 'Drop13' +# - name: 'GetTeamById' +# hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' +# queryTemplate: 'src/queries/getTeamById.graphql' +# tags: +# - 'v1' +# - name: 'GetTeamsByStore' +# hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' +# queryTemplate: 'src/queries/getTeamsbyStore.graphql' +# tags: +# - 'v1' --- graphql.yml @@ -61,31 +61,31 @@ applications: queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v1' - - name: 'prod' - persistedQueries: - - name: 'GetAssociateClockStatus' - hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' - queryTemplate: 'src/queries/getAssociateClockStatus.graphql' - tags: - - 'v1' - - name: 'GetAssociateName' - hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' - queryTemplate: 'src/queries/getAssociateName.graphql' - tags: - - 'v1' - - name: 'GetDailyRoster' - hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' - queryTemplate: 'src/queries/getDailyRoster.graphql' - tags: - - 'v2' - - 'Drop13' - - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' - queryTemplate: 'src/queries/getTeamById.graphql' - tags: - - 'v1' - - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' - queryTemplate: 'src/queries/getTeamsbyStore.graphql' - tags: - - 'v1' +# - name: 'prod' +# persistedQueries: +# - name: 'GetAssociateClockStatus' +# hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' +# queryTemplate: 'src/queries/getAssociateClockStatus.graphql' +# tags: +# - 'v1' +# - name: 'GetAssociateName' +# hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' +# queryTemplate: 'src/queries/getAssociateName.graphql' +# tags: +# - 'v1' +# - name: 'GetDailyRoster' +# hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' +# queryTemplate: 'src/queries/getDailyRoster.graphql' +# tags: +# - 'v2' +# - 'Drop13' +# - name: 'GetTeamById' +# hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' +# queryTemplate: 'src/queries/getTeamById.graphql' +# tags: +# - 'v1' +# - name: 'GetTeamsByStore' +# hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' +# queryTemplate: 'src/queries/getTeamsbyStore.graphql' +# tags: +# - 'v1'
hiding prod so query updates do not impact prod
hiding prod so query updates do not impact prod
b3a8012ce0e0c98e1808e08763bdc5042a93003d
--- app.config.US.ts @@ -111,7 +111,10 @@ const CONFIG: ExpoConfig = { // Abstract to specific plugin as needed infoPlist: { FirebaseAutomaticScreenReportingEnabled: false, - GroupIdentifier: 'group.com.walmart', + GroupIdentifier: AppVariant.select({ + prod: 'group.com.walmart.sumo.appstore', + default: 'group.com.walmart', + }), NSMicrophoneUsageDescription: 'Allow $(PRODUCT_NAME) to record you voice when doing a voice search', NSPhotoLibraryUsageDescription: --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart", - "version": "1.29.2", + "version": "1.29.5", "main": "index.js", "private": true, "workspaces": [
fix: CONAS-1900 MyWalmart fix for keychain access for prod builds
fix: CONAS-1900 MyWalmart fix for keychain access for prod builds
aec4594babd6123f0b6b109a31aa0ddb609f6f57
--- docs/CHANGELOG.md @@ -1,3 +1,39 @@ +# [2.36.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.35.1...v2.36.0) (2025-05-21) + + +### Bug Fixes + +* **ui:** update looper yml ([ea68ca2](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ea68ca216c1888f55576100a8881594a97cd4f19)) + + +### Features + +* **ui:** generating tag ([24cb4f8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/24cb4f8e050b133aae757f7f1f3b22d97ebdf1f4)) +* **ui:** generating tag ([2dcf2bd](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/2dcf2bdc0bac947b0884dd3a885f6fdbcfa575ff)) +* **ui:** lint fix ([541dba8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/541dba8b72fa15cb7ca89596ad99a5b15aac9c2e)) +* **ui:** notify channel ([e3fd992](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/e3fd992aa80721a0e780a7794f71e82321b7ddc9)) +* **ui:** removed hash values ([c0db6c7](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c0db6c72af144822123793e9a6558155cb3749aa)) +* **ui:** testing new pr template ([44819dc](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/44819dc73a4bf811f6bcc02df096476e3436c062)) +* **ui:** update associate query ([905fddf](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/905fddf37aa7a800b58d4ef1108f49e44d43561e)) +* **ui:** update channel ([b4ca020](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/b4ca020ef9a67e7d2d3bd3974e0a0daa5e58c76d)) +* **ui:** update looper ([ea4879f](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ea4879f06bbb019b19d10215c6dad4cfd95bac7a)) +* **ui:** update looper ([43d7f76](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/43d7f76d8e34801f02c9b9e567970b9e0a2be498)) +* **ui:** update looper ([31d0432](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/31d0432aae1ea23bdd279ee3e678b50d761b84c3)) +* **ui:** update looper ([62cf28e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/62cf28e56fd73ec683045e55fec4f16cf6076434)) +* **ui:** update query ([f8df818](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/f8df8184af4fed7c2b179e5c19f51a281d614688)) +* **ui:** update scripts ([6d49ed0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/6d49ed04af4c24fa130e0948b3567b72f6469ae5)) +* **ui:** update scripts ([e4c6610](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/e4c6610e341876565f11d9f1482b036200408507)) +* **ui:** update scripts ([6eb328a](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/6eb328a781d37dc747eb0985370ccf9a9886ac65)) +* **ui:** update scripts ([74e5fbb](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/74e5fbb6b556dca53cc9fdc3426bf7b21a35bdce)) +* **ui:** update scripts ([d68b077](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d68b0771f0e91e970bf4bab86bcc64a7d8a1da69)) +* **ui:** update scripts ([2593e08](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/2593e08b8cdc2ef3ae6c1b401e715fbca2ad1ff6)) +* **ui:** update scripts ([ed70f93](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ed70f932c6da99c87c539895f61afb8a236ed5ef)) +* **ui:** update text pref query ([0d474ff](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/0d474ff62c8aa834815a6b4cea27fcd309e8ca0c)) +* **ui:** updated with prettier format ([d246c6f](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d246c6f7a8d817b37e5f3e40d2f3f158a6d264e3)) +* **ui:** updating pr template ([547c23a](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/547c23a78b9423b270a126e29f4782a7d56afcd0)) +* **ui:** updating pr template ([f4f8cd8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/f4f8cd88291a392a2b1cb4341b2e5cf38a9ad27f)) +* **ui:** updating pr template ([ddbc10d](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ddbc10daf940a9f8529087b4b858e3029c02a188)) + ## [2.35.1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.35.0...v2.35.1) (2025-05-05) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "2.35.1", + "version": "2.36.0", "main": "main.js", "files": [ "dist", @@ -194,5 +194,10 @@ "skipScope": false, "jiraPrefix": "JIRA_PROJECT" } + }, + "dependencies": { + "expo": "~51.0.28", + "react": "18.2.0", + "react-native": "0.74.5" } }
chore(release): 2.36.0 [skip ci]
chore(release): 2.36.0 [skip ci] # [2.36.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.35.1...v2.36.0) (2025-05-21) ### Bug Fixes * **ui:** update looper yml ([ea68ca2](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ea68ca216c1888f55576100a8881594a97cd4f19)) ### Features * **ui:** generating tag ([24cb4f8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/24cb4f8e050b133aae757f7f1f3b22d97ebdf1f4)) * **ui:** generating tag ([2dcf2bd](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/2dcf2bdc0bac947b0884dd3a885f6fdbcfa575ff)) * **ui:** lint fix ([541dba8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/541dba8b72fa15cb7ca89596ad99a5b15aac9c2e)) * **ui:** notify channel ([e3fd992](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/e3fd992aa80721a0e780a7794f71e82321b7ddc9)) * **ui:** removed hash values ([c0db6c7](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c0db6c72af144822123793e9a6558155cb3749aa)) * **ui:** testing new pr template ([44819dc](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/44819dc73a4bf811f6bcc02df096476e3436c062)) * **ui:** update associate query ([905fddf](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/905fddf37aa7a800b58d4ef1108f49e44d43561e)) * **ui:** update channel ([b4ca020](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/b4ca020ef9a67e7d2d3bd3974e0a0daa5e58c76d)) * **ui:** update looper ([ea4879f](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ea4879f06bbb019b19d10215c6dad4cfd95bac7a)) * **ui:** update looper ([43d7f76](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/43d7f76d8e34801f02c9b9e567970b9e0a2be498)) * **ui:** update looper ([31d0432](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/31d0432aae1ea23bdd279ee3e678b50d761b84c3)) * **ui:** update looper ([62cf28e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/62cf28e56fd73ec683045e55fec4f16cf6076434)) * **ui:** update query ([f8df818](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/f8df8184af4fed7c2b179e5c19f51a281d614688)) * **ui:** update scripts ([6d49ed0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/6d49ed04af4c24fa130e0948b3567b72f6469ae5)) * **ui:** update scripts ([e4c6610](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/e4c6610e341876565f11d9f1482b036200408507)) * **ui:** update scripts ([6eb328a](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/6eb328a781d37dc747eb0985370ccf9a9886ac65)) * **ui:** update scripts ([74e5fbb](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/74e5fbb6b556dca53cc9fdc3426bf7b21a35bdce)) * **ui:** update scripts ([d68b077](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d68b0771f0e91e970bf4bab86bcc64a7d8a1da69)) * **ui:** update scripts ([2593e08](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/2593e08b8cdc2ef3ae6c1b401e715fbca2ad1ff6)) * **ui:** update scripts ([ed70f93](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ed70f932c6da99c87c539895f61afb8a236ed5ef)) * **ui:** update text pref query ([0d474ff](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/0d474ff62c8aa834815a6b4cea27fcd309e8ca0c)) * **ui:** updated with prettier format ([d246c6f](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d246c6f7a8d817b37e5f3e40d2f3f158a6d264e3)) * **ui:** updating pr template ([547c23a](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/547c23a78b9423b270a126e29f4782a7d56afcd0)) * **ui:** updating pr template ([f4f8cd8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/f4f8cd88291a392a2b1cb4341b2e5cf38a9ad27f)) * **ui:** updating pr template ([ddbc10d](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ddbc10daf940a9f8529087b4b858e3029c02a188))
6b1ad68d47f3f894ede3fed014f8303b675db463
--- packages/allspark-graphql-client/package.json @@ -11,9 +11,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/allspark-utils/package.json @@ -13,9 +13,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/functional-components/package.json @@ -10,9 +10,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/me-at-walmart-athena-queries/package.json @@ -13,9 +13,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/react-native-env/package.json @@ -10,9 +10,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/react-native-shared-navigation/package.json @@ -10,9 +10,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/react-native-wm-network/package.json @@ -10,9 +10,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/react-native-wm-notification/package.json @@ -10,9 +10,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/react-native-wm-telemetry/package.json @@ -10,9 +10,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git" --- packages/redux-store/package.json @@ -10,9 +10,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git"
chore: remove npme.walmart from package.json
chore: remove npme.walmart from package.json
3e66a94b4f3b7142e9af988ea8bc6e8be5fee631
--- package-lock.json @@ -5541,9 +5541,9 @@ } }, "@walmart/settings-mini-app": { - "version": "1.8.0-beta.2", - "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.8.0-beta.2.tgz", - "integrity": "sha512-U5mJbTh3k8AinkmiKjZdzfres7XeHi9mjsvBhRFqK4U1N1LCwgI0KMpnn8jVXJIJawm0vTDUC18sVAXNTEvbfg==" + "version": "1.9.0", + "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.9.0.tgz", + "integrity": "sha512-uRvhhMoU+DL7LAkb0xgrnyNOFAnIaPZjZa5IOL7xKil158B405ygeTmhCSFTR7g+ssDCmZDD8Ub/YXIIr7HMiQ==" }, "@walmart/shelfavailability-mini-app": { "version": "1.2.4", --- package.json @@ -115,7 +115,7 @@ "@walmart/redux-store": "2.0.4", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/schedule-mini-app": "0.25.0", - "@walmart/settings-mini-app": "1.8.0-beta.2", + "@walmart/settings-mini-app": "1.9.0", "@walmart/shelfavailability-mini-app": "1.2.4", "@walmart/taskit-mini-app": "0.34.5-beta.1", "@walmart/time-clock-mini-app": "0.13.4",
update stiing v to 1.9.0
update stiing v to 1.9.0
dba1b0f23c5fde2a1db1635a185e0d4fc57bab29
--- packages/me-at-walmart-container/__tests__/services/logger.test.ts @@ -8,7 +8,6 @@ import { SESSION_ID } from '../../src/session'; let mockLogger; beforeEach(() => { - mockLogger = { setSessionInfo: jest.fn(), setLogLevel: jest.fn(), @@ -68,14 +67,27 @@ import { SESSION_ID } from '../../src/session'; expect(mockLogger.error).toHaveBeenCalledWith("Error message", { message: "Error occurred", key: "value" }); }); - test("should log error messages and default missing message param to 'N/A'", () => { + /* test("should log error messages and default missing message param to 'N/A'", () => { const warnSpy = jest.spyOn(console, 'warn').mockImplementation(()=> {}) - loggerClient.error("Error message", { key: "value" }); + loggerClient.error("Error message", { }); expect(warnSpy).toHaveBeenCalledWith( `Logger.error called without message param for Logger: test-logger. This is required for error logging.` ); - expect(mockLogger.error).toHaveBeenCalledWith("Error message", { message: "N/A", key: "value" }); + expect(mockLogger.error).toHaveBeenCalledWith("Error message", { message: "N/A" }); + }); */ + + test("should log error messages and default missing message param to 'N/A'", () => { + const warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {}); + + loggerClient.error("Error message", {}); // `message` key is absent + + expect(warnSpy).toHaveBeenCalledWith( + `Logger.error called without message param for Logger: test-logger. This is required for error logging.` + ); + expect(mockLogger.error).toHaveBeenCalledWith("Error message", { message: "N/A" }); + + warnSpy.mockRestore(); // Restore console.warn after test }); test("should log error messages and handle undefined params gracefully", () => { --- packages/me-at-walmart-container/src/services/logger.ts @@ -107,7 +107,9 @@ export class LoggerClient { message: string, params: {message: string; [key: string]: any} = {message: 'N/A'}, ) => { + console.log(params, message); if (!params.message) { + console.log(params); console.warn( `Logger.error called without message param for Logger: ${this._id}. This is required for error logging.`, );
fixed test case
fixed test case
86da39298be72585e6167f167be9da6a1cf7e0db
--- package-lock.json @@ -5411,9 +5411,9 @@ "integrity": "sha512-466yXYa3/LAgLZXimhFlgvUh6QASTNYS3LcTuO5J7wrpMYP2CI7I4fHa6Cx/MP1lZCZk6Eb+AWaTCgmzde9WoQ==" }, "@walmart/price-changes-mini-app": { - "version": "1.4.10", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.4.10.tgz", - "integrity": "sha512-CUovZxH9L3MERTqsWvUJFh9fmjv55vXdt6hfqyokYMZwzGWMBl1Zn6eBR0RbNfdNnKowQE8IZ6Ai+3fuyO+rAw==" + "version": "1.4.11", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.4.11.tgz", + "integrity": "sha512-uCC2Hk4fRcAC49c4uuIpLpD3geWjG7uAQByH8ygekhQKPrijc5/F1/z+Tkt3zFQ88BlsE+ihQ6z3AWFzAyuNGw==" }, "@walmart/profile-feature-app": { "version": "0.0.50", --- package.json @@ -100,7 +100,7 @@ "@walmart/mod-flex-mini-app": "1.1.2", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.126.4", - "@walmart/price-changes-mini-app": "1.4.10", + "@walmart/price-changes-mini-app": "1.4.11", "@walmart/profile-feature-app": "0.0.50", "@walmart/push-to-talk-mini-app": "1.8.9", "@walmart/react-native-encrypted-storage": "1.1.3",
Bumps price changes version 1.4.11
Bumps price changes version 1.4.11
135cd1b03a50fb440f7dc33bbdce71a07222536f
--- yarn.lock @@ -24140,4 +24140,5 @@ __metadata: react: optional: true checksum: 10c0/aee26f11facebb39b016e89539f72a72c2c00151208907fc909c3cedd455728240e09e01d98ebd3b63a2a3518a5917eac5de6c853743ca55a1655296d750bb48 + languageName: node linkType: hard
Update yarn lock
Update yarn lock
f26b62e8d6b7945c0c478709407c22ef90f24b04
--- __tests__/scripts/package-deprecation-check/validations/isLibraryExempt.test.ts @@ -1,4 +1,4 @@ -import {isLibraryExempt} from './isLibraryExempt'; +import {isLibraryExempt} from '../../../../scripts/mini-app-scan/package-deprecation/validations/isLibraryExempt'; describe('isLibraryExempt', () => { let exemptLibs = [{ --- scripts/mini-app-scan/package-deprecation/mini-app-check/analyzer.ts @@ -11,6 +11,7 @@ import {generateDependencyMapWithDepsCrawler} from './crawler'; import {extractDependencyVersion, extractVersionRange, isVersionMatch} from './version'; import {getSettledResult, getPRComment, isLibraryDeprecated, getErrorMessage, getImagesPRComment} from '../helper'; import {TESTING_MODE} from './utils'; +import {isLibraryExempt} from '../validations/isLibraryExempt'; // --- Get branch context --- // @@ -67,8 +68,12 @@ async function analyzePackageForDeprecation(pkgName: string, packageDependencies }); if (matchingLib) { - const isCurrentlyDeprecated = !matchingLib.enforcementDate || - isLibraryDeprecated(matchingLib.enforcementDate); + const isCurrentlyDeprecated = + !matchingLib.enforcementDate || + ( + isLibraryDeprecated(matchingLib.enforcementDate) && + !isLibraryExempt(pkgName, matchingLib.exemptions) + ); findings.push({ library: matchingLib, --- scripts/mini-app-scan/package-deprecation/mini-app-check/types.ts @@ -3,7 +3,7 @@ export interface LibraryEntry { replacement?: string; enforcementDate?: string; notes?: string; - exemptions?: string[] | null; + exemptions?: Exemption[]; deprecatedVersionRange?: string; } --- scripts/mini-app-scan/package-deprecation/validations/isLibraryExempt.ts @@ -1,4 +1,4 @@ -import {Exemption} from '../types'; +import {Exemption} from '../mini-app-check/types'; /** * Checks if a library is deprecated based on its enforcement date.
refactor: exemption check function and tests
refactor: exemption check function and tests
c3893b8125fbd00ccacec1bb1f437b4acfe2dc7d
--- package.json @@ -112,7 +112,7 @@ "@walmart/ims-print-services-ui": "2.21.1", "@walmart/inbox-mini-app": "0.102.2", "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", - "@walmart/iteminfo-mini-app": "8.4.2", + "@walmart/iteminfo-mini-app": "8.5.2", "@walmart/learning-mini-app": "20.0.76", "@walmart/manager-approvals-miniapp": "0.3.6", "@walmart/me-at-walmart-athena-queries": "6.31.0", --- yarn.lock @@ -7271,9 +7271,9 @@ __metadata: languageName: node linkType: hard -"@walmart/iteminfo-mini-app@npm:8.4.2": - version: 8.4.2 - resolution: "@walmart/iteminfo-mini-app@npm:8.4.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fiteminfo-mini-app%2F-%2F%40walmart%2Fiteminfo-mini-app-8.4.2.tgz" +"@walmart/iteminfo-mini-app@npm:8.5.2": + version: 8.5.2 + resolution: "@walmart/iteminfo-mini-app@npm:8.5.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fiteminfo-mini-app%2F-%2F%40walmart%2Fiteminfo-mini-app-8.5.2.tgz" peerDependencies: "@apollo/client": ">=3.7.3" "@react-navigation/drawer": ">=6.3.0" @@ -7315,7 +7315,7 @@ __metadata: reselect: ">=4.1.0" uuid: ">=3.3.2" victory-native: ">=36.5.0" - checksum: 10c0/69ef648bb837bfec3102b29077ad3a3a764fe0b1cfabff763c6c5ae9d1efaf6a2224c9abc6501ea60f43b6bbcb105622917b30306b8cdfd0a08d3587ba3d8d7f + checksum: 10c0/73597c2e5719ea0c55b74ab11ff6b1b3e078c76e688523f914ec0a7ffd66aa418fcc3012cbb7665048e4a761b4332469b1c1b023847dacc23b31bcb37fb4e13f languageName: node linkType: hard @@ -7612,7 +7612,7 @@ __metadata: "@walmart/ims-print-services-ui": "npm:2.21.1" "@walmart/inbox-mini-app": "npm:0.102.2" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" - "@walmart/iteminfo-mini-app": "npm:8.4.2" + "@walmart/iteminfo-mini-app": "npm:8.5.2" "@walmart/learning-mini-app": "npm:20.0.76" "@walmart/manager-approvals-miniapp": "npm:0.3.6" "@walmart/me-at-walmart-athena-queries": "npm:6.31.0"
chore: bump up iteminfo version for drop32 (#4427)
chore: bump up iteminfo version for drop32 (#4427)
4f724cfbaa8800a546f3334f079c533802b24007
--- core/__tests__/startup/AppFlowTest.ts @@ -52,7 +52,6 @@ jest.mock('../../src/PinAccess/PinCodeSagas', () => ({ jest.mock('../../src/navigation/sagas', () => ({ resetTo: jest.fn(), })); -jest.mock('expo-store-review', () => {}); describe('captureMissedMiniAppEvents', () => { it('plays modified sign in action', () => { --- core/__tests__/startup/AssociateStartupTest.ts @@ -26,8 +26,6 @@ import { import {handleAppReviewPrompt} from '../../src/appReview/sagas'; import {handleDeepLink} from '../../src/startup/DeeplinkFlow'; -jest.mock('expo-store-review', () => {}); - test('associateStartupFlow', () => { const iterator = associateStartupFlow(); expect(iterator.next().value).toEqual(call(handleSiteIdPrompt)); --- core/package.json @@ -83,7 +83,6 @@ "react-native-splash-screen": "*", "react-native-tab-view": "*", "react-native-webview": "*", - "react-native-wm-app-review": "*", "react-native-wm-config": "*", "react-redux": "*", "redux": "*", --- package.json @@ -237,7 +237,6 @@ "react-native-vision-camera": "patch:react-native-vision-camera@npm%3A3.7.1#~/.yarn/patches/react-native-vision-camera-npm-3.7.1-a55884f46c.patch", "react-native-webview": "11.23.1", "react-native-windows": "0.41.0-rc.1", - "react-native-wm-app-review": "0.5.4", "react-native-wm-config": "0.1.1", "react-native-wm-network": "6.3.17", "react-native-wm-notification": "6.3.17", --- targets/US/ios/Podfile.lock @@ -1955,8 +1955,6 @@ PODS: - WebexSDK/Wxc (~> 3.11.2) - react-native-webview (11.23.1): - React-Core - - react-native-wm-app-review (0.5.4): - - React-Core - react-native-wm-voice-text (1.0.2): - React - React-nativeconfig (0.73.7) @@ -2375,7 +2373,6 @@ DEPENDENCIES: - "react-native-walmart-cookies (from `../../../node_modules/@walmart/react-native-cookies`)" - "react-native-webex-sdk (from `../../../node_modules/@walmart/react-native-webex-sdk`)" - react-native-webview (from `../../../node_modules/react-native-webview`) - - react-native-wm-app-review (from `../../../node_modules/react-native-wm-app-review`) - react-native-wm-voice-text (from `../../../node_modules/react-native-wm-voice-text`) - React-nativeconfig (from `../../../node_modules/react-native/ReactCommon`) - React-NativeModulesApple (from `../../../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`) @@ -2636,8 +2633,6 @@ EXTERNAL SOURCES: :path: "../../../node_modules/@walmart/react-native-webex-sdk" react-native-webview: :path: "../../../node_modules/react-native-webview" - react-native-wm-app-review: - :path: "../../../node_modules/react-native-wm-app-review" react-native-wm-voice-text: :path: "../../../node_modules/react-native-wm-voice-text" React-nativeconfig: @@ -2866,7 +2861,6 @@ SPEC CHECKSUMS: react-native-walmart-cookies: 8edc1df5a8434eb006c5d4435571758e76f2e500 react-native-webex-sdk: 14e111e3fe6e7722a40958799645939a800e34c4 react-native-webview: d33e2db8925d090871ffeb232dfa50cb3a727581 - react-native-wm-app-review: 97a8d62495b3d0a83e40dbebea7e86f4ae2f4488 react-native-wm-voice-text: 5bacd3a1565e7a1cf936f0a0e399428ea307786c React-nativeconfig: 754233aac2a769578f828093b672b399355582e6 React-NativeModulesApple: a03b2da2b8e127d5f5ee29c683e0deba7a9e1575 --- targets/US/package.json @@ -241,7 +241,6 @@ "react-native-view-shot": "^3.4.0", "react-native-vision-camera": "patch:react-native-vision-camera@npm%3A3.7.1#~/.yarn/patches/react-native-vision-camera-npm-3.7.1-a55884f46c.patch", "react-native-webview": "11.23.1", - "react-native-wm-app-review": "0.7.1", "react-native-wm-config": "0.1.1", "react-native-wm-network": "~6.3.20", "react-native-wm-notification": "~6.3.20", --- yarn.lock @@ -6833,7 +6833,6 @@ __metadata: react-native-splash-screen: "*" react-native-tab-view: "*" react-native-webview: "*" - react-native-wm-app-review: "*" react-native-wm-config: "*" react-redux: "*" redux: "*" @@ -7159,7 +7158,6 @@ __metadata: react-native-view-shot: "npm:^3.4.0" react-native-vision-camera: "patch:react-native-vision-camera@npm%3A3.7.1#~/.yarn/patches/react-native-vision-camera-npm-3.7.1-a55884f46c.patch" react-native-webview: "npm:11.23.1" - react-native-wm-app-review: "npm:0.7.1" react-native-wm-config: "npm:0.1.1" react-native-wm-network: "npm:~6.3.20" react-native-wm-notification: "npm:~6.3.20" @@ -19168,19 +19166,6 @@ __metadata: languageName: node linkType: hard -"react-native-wm-app-review@npm:0.5.4": - version: 0.5.4 - resolution: "react-native-wm-app-review@npm:0.5.4" - peerDependencies: - "@testing-library/react-hooks": ^5.0.3 - "@walmart/core-services": ^2.0.19 - "@walmart/core-services-allspark": ^2.10.8 - react: "*" - react-native: "*" - checksum: 10c0/29db4b6d125bdbc5e3c55480a1d949b876a8335a7151dcc47dd9f692994989bd72f62132dc5deb87ae1d1e3b8a9e00dc3de377690c4d876ab9016c79b656e3a5 - languageName: node - linkType: hard - "react-native-wm-config@npm:0.1.1": version: 0.1.1 resolution: "react-native-wm-config@npm:0.1.1"
chore: remove unnecessary mocks and remove references to old library
chore: remove unnecessary mocks and remove references to old library
f597be08011c499489201faa96cb00864b1b6ab0
--- packages/redux-store/src/actions.ts @@ -2,7 +2,6 @@ import { bindActionCreators } from 'redux'; import { AuthActionCreators as foundationAuthActionCreators, AuthActionTypes, - AuthResult, } from '@walmart/allspark-foundation/Auth'; import { ConfigActionTypes, @@ -11,21 +10,18 @@ import { import { ClockActionTypes, ClockActionCreators, - ClockData, } from '@walmart/allspark-foundation/Clock'; import { SiteActionTypes, SiteActionCreators, } from '@walmart/allspark-foundation/Site'; import { - ImpersonationUser, UserActionTypes, UserActionCreators as foundationUserActionCreators, } from '@walmart/allspark-foundation/User'; import { DeviceActionCreators } from '@walmart/allspark-foundation/Device'; import { LocaleActionCreators } from '@walmart/allspark-foundation/Locale'; import { VersionActionCreators } from '@walmart/allspark-foundation/Versions'; -import { AllsparkReduxStore } from '@walmart/allspark-foundation/Redux'; import { dispatch } from './store'; import { @@ -151,9 +147,9 @@ export const StoreConfigActionCreators = { }; /** - * @deprecated use SiteActionTypes from '@walmart/allspark-foundation/Site' instead + * @deprecated use UserActionTypes from '@walmart/allspark-foundation/User' instead * @example - * import {SiteActionTypes} from '@walmart/allspark-foundation/Site'; + * import {UserActionTypes} from '@walmart/allspark-foundation/User'; */ export const UserTypes = { GET_USER_PROGRESS: UserActionTypes.FETCH_PROGRESS, @@ -366,36 +362,23 @@ export const ssoActions = new Proxy( /** * @deprecated use AuthActionCreators from '@walmart/allspark-foundation/Auth' and dispatch directly instead */ - signInProgress: () => - AllsparkReduxStore.dispatch( - foundationAuthActionCreators.SIGN_IN_PROGRESS() - ), + signInProgress: authActions.signInProgress, /** * @deprecated use `AuthActionCreators.SIGN_IN_SUCCESS` from '@walmart/allspark-foundation/Auth' and dispatch directly instead */ - signInSuccess: (authResult: AuthResult) => - AllsparkReduxStore.dispatch( - foundationAuthActionCreators.SIGN_IN_SUCCESS(authResult) - ), + signInSuccess: authActions.signInSuccess, /** * @deprecated use `ClockActionCreators.FETCH_SUCCESS` from '@walmart/allspark-foundation/Auth' and dispatch directly instead */ - clockCheckSuccess: (clockData: ClockData) => - AllsparkReduxStore.dispatch(ClockActionCreators.FETCH_SUCCESS(clockData)), + clockCheckSuccess: clockStatusActions.clockCheckSuccess, /** * @deprecated use `AuthActionCreators.START_IMPERSONATION` from '@walmart/allspark-foundation/Auth' and dispatch directly instead */ - startImpersonation: (user: ImpersonationUser) => - AllsparkReduxStore.dispatch( - foundationUserActionCreators.START_IMPERSONATION(user) - ), + startImpersonation: userActions.startImpersonation, /** * @deprecated use `AuthActionCreators.EXIT_IMPERSONATION` from '@walmart/allspark-foundation/Auth' and dispatch directly instead */ - exitImpersonation: () => - AllsparkReduxStore.dispatch( - foundationUserActionCreators.EXIT_IMPERSONATION() - ), + exitImpersonation: userActions.exitImpersonation, }, { get: function (target, p) { --- packages/redux-store/src/selectors/user.selectors.ts @@ -1,7 +1,11 @@ import { UserSelectors } from '@walmart/allspark-foundation/User'; +import { createSelector } from '@reduxjs/toolkit'; // Impersonation -export const getImpersonationState = (state: any) => state.impersonation; +export const getImpersonationState = createSelector( + [UserSelectors.getState], + (state) => ({ impersonator: state.impersonator, impersonatee: state.data }) +); /** * @deprecated use `UserSelectors` from '@walmart/allspark-foundation/User' instead
fix: backwards compatability fixes
fix: backwards compatability fixes
5ad72eea24ab7c52b4a77178ead311584811b621
--- package-lock.json @@ -3575,9 +3575,9 @@ } }, "@walmart/ui-components": { - "version": "1.1.45", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.45.tgz", - "integrity": "sha512-h5RnjjrKmTenOIKx3SfSanZd5yrLrSyKDAcoZqxG+nOcHL3v6eaFAN3jkvgCRQtVYcIb74YHRMig74rWRHleYQ==", + "version": "1.1.50", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.50.tgz", + "integrity": "sha512-k6jTJKq2U+802wFADD3D3Ra6/ORD/lIkcYMyPiS69dc24lMJ2YLBsjqzPutMv9RbMv0JMCB0X9ZPynHTEeax5w==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -89,7 +89,7 @@ "@walmart/schedule-mini-app": "0.2.76", "@walmart/settings-mini-app": "1.2.6", "@walmart/time-clock-mini-app": "0.3.8", - "@walmart/ui-components": "1.1.45", + "@walmart/ui-components": "1.1.50", "@walmart/welcomeme-mini-app": "0.26.2", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
ui-components update
ui-components update
ca671de0715d7ff94f34e10d795cd1ebcd2b50c2
--- package.json @@ -180,7 +180,7 @@ "@walmart/time-clock-feature-app": "1.0.0", "@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.16", + "@walmart/topstock-mini-app": "1.28.18", "@walmart/translator-mini-app": "1.8.14", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.27.4#~/.yarn/patches/@walmart-ui-components-npm-1.27.4-f17d3c535e.patch", "@walmart/walmart-fiscal-week": "^0.3.6", --- yarn.lock @@ -8952,7 +8952,7 @@ __metadata: "@walmart/time-clock-feature-app": "npm:1.0.0" "@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.16" + "@walmart/topstock-mini-app": "npm:1.28.18" "@walmart/translator-mini-app": "npm:1.8.14" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.27.4#~/.yarn/patches/@walmart-ui-components-npm-1.27.4-f17d3c535e.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" @@ -10145,9 +10145,9 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.28.16": - version: 1.28.16 - resolution: "@walmart/topstock-mini-app@npm:1.28.16::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftopstock-mini-app%2F-%2F%40walmart%2Ftopstock-mini-app-1.28.16.tgz" +"@walmart/topstock-mini-app@npm:1.28.18": + version: 1.28.18 + resolution: "@walmart/topstock-mini-app@npm:1.28.18::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftopstock-mini-app%2F-%2F%40walmart%2Ftopstock-mini-app-1.28.18.tgz" peerDependencies: "@react-navigation/native": ">=5.8.10" "@react-navigation/stack": ">=5.12.8" @@ -10158,7 +10158,7 @@ __metadata: react-i18next: ">=11.7.3" react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/5fc5883711af4594f0fa4e088cdaab0026e3ffdfb2ae08816c81bb00a953cb51eb3e57e0f689bbf3bb4b232a4438456b3f0b2cfea89bb5f373d75cd6d91d24c2 + checksum: 10c0/8cf4a20f8243644d6d6e0828596794987fe8883e87fa92694e36b55af2122c163ccbf5adc83c45c307a7cfdab03da110d6135be62013332ddfec9fdf6f12d99f languageName: node linkType: hard
fix: updating topstock (#5310)
fix: updating topstock (#5310) Co-authored-by: t0s0qvk <t0s0qvk@walmart.com> Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>
b07726234d5b1ea8265809acfbca16cb099ecbbf
--- packages/me-at-walmart-common/__tests__/components/ScMetricsTest.ts @@ -1,9 +1,9 @@ import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; -import {SC_METRICS_WIDET_REGISTRY_KEY} from '../../src/components'; +import {SC_METRICS_CONTAINER_ID} from '../../src/components'; describe('Constants', () => { - it('should match SC_METRICS_WIDET_REGISTRY_KEY value', () => { - expect(SC_METRICS_WIDET_REGISTRY_KEY).toEqual('scMetrics'); + it('should match SC_METRICS_CONTAINER_ID value', () => { + expect(SC_METRICS_CONTAINER_ID).toEqual('metrics-sc'); }); }); @@ -12,6 +12,6 @@ describe('ScMetricsContainer', () => { // Mock AllsparkComponentContainers.create method const mockCreate = AllsparkComponentContainers.create as jest.Mock; - expect(mockCreate).toHaveBeenCalledWith(SC_METRICS_WIDET_REGISTRY_KEY); + expect(mockCreate).toHaveBeenCalledWith(SC_METRICS_CONTAINER_ID); }); });
test: updated SC Metrics tests
test: updated SC Metrics tests
8a36f96df1f441a6fa84a738359d5898ee67af94
--- android/app/build.gradle @@ -96,8 +96,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 928 - versionName "1.20.1" + versionCode 929 + versionName "1.20.2" } signingConfigs { --- ios/AllSpark/Info.plist @@ -21,7 +21,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.20.1</string> + <string>1.20.2</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -44,7 +44,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>928</string> + <string>929</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false/> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.20.1", + "version": "1.20.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.20.1", + "version": "1.20.2", "hasInstallScript": true, "dependencies": { "@react-native-async-storage/async-storage": "~1.21.0", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.20.1", + "version": "1.20.2", "private": true, "scripts": { "android": "react-native run-android", --- patches/@walmart+me-at-walmart-container+6.0.16.patch @@ -1,26 +0,0 @@ -diff --git a/node_modules/@walmart/me-at-walmart-container/lib/graphql/policies.js b/node_modules/@walmart/me-at-walmart-container/lib/graphql/policies.js -index 97c7d27..05193da 100644 ---- a/node_modules/@walmart/me-at-walmart-container/lib/graphql/policies.js -+++ b/node_modules/@walmart/me-at-walmart-container/lib/graphql/policies.js -@@ -48,6 +48,21 @@ exports.TypePolicies = { - keyFields: ['associateId'], - merge: true, - }, -+ NotificationPreferences: { -+ merge: true, -+ }, -+ DisplayPreferences: { -+ merge: true, -+ }, -+ MeAtWalmartPreferences: { -+ merge: true, -+ }, -+ AssociatePreferences: { -+ merge: true, -+ }, -+ Punch: { -+ merge: true, -+ }, - // TODO: Added by Learning. Add at mini app level. - AssociateJobDetail: { - merge: true,
remove patch and update version
remove patch and update version
26b6fed64c6c019026c8ca7e933c9e7539849172
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.5.31", + "@walmart/facilities-management-miniapp": "0.5.32", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6", @@ -5070,9 +5070,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.5.31", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.31.tgz", - "integrity": "sha512-N1BEKH3IX64Vqzge5rw48PqF7dy5bzKrx1ZH3/bmxWZw6yjijiU+0SHmZOkHv8bAh/rwPBucaYCqDij+beGKyQ==", + "version": "0.5.32", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.32.tgz", + "integrity": "sha512-QC3jdYcgrBTFRHVUZqWUdInJCR7T7MmZKdJeDyneLtkBvR1vzGW0SnqfQ6+uGpONPWwDlUinklQoppm05iR3dQ==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25325,9 +25325,9 @@ "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==" }, "@walmart/facilities-management-miniapp": { - "version": "0.5.31", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.31.tgz", - "integrity": "sha512-N1BEKH3IX64Vqzge5rw48PqF7dy5bzKrx1ZH3/bmxWZw6yjijiU+0SHmZOkHv8bAh/rwPBucaYCqDij+beGKyQ==" + "version": "0.5.32", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.32.tgz", + "integrity": "sha512-QC3jdYcgrBTFRHVUZqWUdInJCR7T7MmZKdJeDyneLtkBvR1vzGW0SnqfQ6+uGpONPWwDlUinklQoppm05iR3dQ==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.10",
package lock update
package lock update
f97248f4dea0cbbcf5f7acb1a08bff16ae6f93de
--- package-lock.json @@ -41,7 +41,7 @@ "@walmart/amp-mini-app": "1.1.72", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.18.5", - "@walmart/attendance-mini-app": "3.17.0", + "@walmart/attendance-mini-app": "3.18.0", "@walmart/avp-feature-app": "0.0.32", "@walmart/avp-shared-library": "0.0.53", "@walmart/calling-mini-app": "0.1.8", @@ -8497,9 +8497,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "3.17.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.17.0.tgz", - "integrity": "sha512-TMJ0TYe9CuQcH/N1065MSZiRf++LewXFb43R3fmQLGRN3kKnW3XvJ27YAsyhqwJedm+rrU0sXQoPkXP02AVcaA==", + "version": "3.18.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.18.0.tgz", + "integrity": "sha512-RjO3+u4C0ZZcqjvnzZoGG2K49xAnMeufA0B/IEo0AsqvpvzN/tXrZ/WZD5RZl3WyKPIqRX1AczZvqS1+zfBeAg==", "hasInstallScript": true, "dependencies": { "@walmart/wfm-ui": "^0.2.26", @@ -33228,9 +33228,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "3.17.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.17.0.tgz", - "integrity": "sha512-TMJ0TYe9CuQcH/N1065MSZiRf++LewXFb43R3fmQLGRN3kKnW3XvJ27YAsyhqwJedm+rrU0sXQoPkXP02AVcaA==", + "version": "3.18.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-3.18.0.tgz", + "integrity": "sha512-RjO3+u4C0ZZcqjvnzZoGG2K49xAnMeufA0B/IEo0AsqvpvzN/tXrZ/WZD5RZl3WyKPIqRX1AczZvqS1+zfBeAg==", "requires": { "@walmart/wfm-ui": "^0.2.26", "moment-timezone": "0.5.40", --- package.json @@ -82,7 +82,7 @@ "@walmart/amp-mini-app": "1.1.72", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.18.5", - "@walmart/attendance-mini-app": "3.17.0", + "@walmart/attendance-mini-app": "3.18.0", "@walmart/avp-feature-app": "0.0.32", "@walmart/avp-shared-library": "0.0.53", "@walmart/calling-mini-app": "0.1.8",
ama v3.18.0
ama v3.18.0
954b8b1202a2c09889c66dad7d7ae6055baf583d
--- android/build.gradle @@ -15,7 +15,7 @@ buildscript { } } dependencies { - classpath("com.android.tools.build:gradle:3.5.3") + classpath("com.android.tools.build:gradle:3.4.2") classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0' classpath 'com.walmart.amp:android-signing:1.0.0' --- package-lock.json @@ -5723,6 +5723,11 @@ "esprima": "^4.0.0" } }, + "jsbarcode": { + "version": "3.11.0", + "resolved": "https://npme.walmart.com/jsbarcode/-/jsbarcode-3.11.0.tgz", + "integrity": "sha512-/ozCd7wsa+VIHo9sUc03HneVEQrH7cVWfJolUT/WOW1m8mJ2e3iYZje6C9X3LFHdczlesqFHRpxLtbVsNtjyow==" + }, "jsbn": { "version": "0.1.1", "resolved": "https://npme.walmart.com/jsbn/-/jsbn-0.1.1.tgz", @@ -8592,6 +8597,15 @@ "prop-types": "^15.7.2" } }, + "react-native-barcode-builder": { + "version": "2.0.0", + "resolved": "https://npme.walmart.com/react-native-barcode-builder/-/react-native-barcode-builder-2.0.0.tgz", + "integrity": "sha512-hOpP321behSPlpWNGcowN66P9Z2Xv6kQwa2I8SdfSGMFmJlll1b22R63xQSIAi72RC/gZe1cWBBz03J686e9JA==", + "requires": { + "@react-native-community/art": "^1.2.0", + "jsbarcode": "^3.8.0" + } + }, "react-native-device-info": { "version": "5.6.5", "resolved": "https://npme.walmart.com/react-native-device-info/-/react-native-device-info-5.6.5.tgz", --- package.json @@ -42,6 +42,7 @@ "lodash": "^4.17.20", "react": "16.13.1", "react-native": "0.63.2", + "react-native-barcode-builder": "^2.0.0", "react-native-device-info": "^5.6.5", "react-native-gesture-handler": "^1.7.0", "react-native-modal": "^11.5.6",
downgraded android build version to 3.4.2
downgraded android build version to 3.4.2
79ed45d37633ce4e000f6789e9adce171c6a1ac8
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.42.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.41.0...v2.42.0) (2025-06-03) + + +### Features + +* **ui:** wmconnect mini app ([69af948](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/69af9486d38030cbf33060dfc6d32c843b1bd97d)) + # [2.41.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.40.0...v2.41.0) (2025-06-02) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.41.0", + "version": "2.42.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 2.42.0 [skip ci]
chore(release): 2.42.0 [skip ci] # [2.42.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.41.0...v2.42.0) (2025-06-03) ### Features * **ui:** wmconnect mini app ([69af948](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/69af9486d38030cbf33060dfc6d32c843b1bd97d))
ccf9e8711a2ae292f3a64ce74e6c8d8ba795929c
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ActionButtonGroup/ActionButtonGroup.tsx @@ -0,0 +1,30 @@ +import React from 'react'; +import { ButtonGroupProps } from './types'; +import { Button } from '@walmart/gtp-shared-components'; +import { buttonGroupStyles as styles } from './style'; +import { View } from 'react-native'; + +export const ActionButtonGroup = ({ + negativeButtonLabel, + positiveButtonLabel, + onNegativeButtonPress, + onPositiveButtonPress, +}: ButtonGroupProps) => { + return ( + <View style={styles.buttonContainer}> + <Button variant='tertiary' size='small' onPress={onNegativeButtonPress}> + {negativeButtonLabel} + </Button> + <View style={styles.positiveButtonContainer}> + <Button + variant='primary' + size='medium' + isFullWidth + onPress={onPositiveButtonPress} + > + {positiveButtonLabel} + </Button> + </View> + </View> + ); +}; --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ActionButtonGroup/index.ts @@ -0,0 +1 @@ +export { ActionButtonGroup } from './ActionButtonGroup'; --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ActionButtonGroup/style.ts @@ -0,0 +1,21 @@ +import { colors } from '@walmart/gtp-shared-components'; +import { StyleSheet } from 'react-native'; + +export const buttonGroupStyles = StyleSheet.create({ + buttonContainer: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + padding: 16, + alignItems: 'center', + borderTopColor: colors.gray['20'], + borderTopWidth: 1, + position: 'absolute', + bottom: 0, + backgroundColor: colors.white, + width: '100%', + }, + positiveButtonContainer: { + width: '67%', + }, +}); --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ActionButtonGroup/types.ts @@ -0,0 +1,6 @@ +export interface ButtonGroupProps { + negativeButtonLabel: string; + positiveButtonLabel: string; + onNegativeButtonPress: () => void; + onPositiveButtonPress: () => void; +}
feat: created action button group component
feat: created action button group component
4903670095cf95edcb124d033119c12da649919e
--- package-lock.json @@ -6432,6 +6432,25 @@ "eslint-visitor-keys": "^1.1.0" } }, + "@walmart/core-services": { + "version": "1.4.13", + "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.4.13.tgz", + "integrity": "sha512-Kav8ndkYel6svIeW2WRQw1x7vqhG7QSr9UbH/XYRCuWw7rJH47UZnzQfRXBjxSAAtIuLrizuEc0fqDt32nqiXQ==", + "requires": { + "lodash": "^4.17.21", + "reduxsauce": "^1.2.1", + "reselect": "^4.1.5", + "seamless-immutable": "^7.1.4", + "uuid": "^8.3.2" + }, + "dependencies": { + "uuid": { + "version": "8.3.2", + "resolved": "https://npme.walmart.com/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + } + } + }, "@walmart/react-native-encrypted-storage": { "version": "1.1.13", "resolved": "https://npme.walmart.com/@walmart/react-native-encrypted-storage/-/react-native-encrypted-storage-1.1.13.tgz", @@ -6928,9 +6947,9 @@ "dev": true }, "axios": { - "version": "1.2.3", - "resolved": "https://npme.walmart.com/axios/-/axios-1.2.3.tgz", - "integrity": "sha512-pdDkMYJeuXLZ6Xj/Q5J3Phpe+jbGdsSzlQaFVkMQzRUL05+6+tetX8TV3p4HrU4kzuO9bt+io/yGQxuyxA/xcw==", + "version": "1.2.4", + "resolved": "https://npme.walmart.com/axios/-/axios-1.2.4.tgz", + "integrity": "sha512-lIQuCfBJvZB/Bv7+RWUqEJqNShGOVpk9v7P0ZWx5Ip0qY6u7JBAU6dzQPMLasU9vHL2uD8av/1FDJXj7n6c39w==", "requires": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -17801,6 +17820,11 @@ "resolved": "https://npme.walmart.com/scuid/-/scuid-1.1.0.tgz", "integrity": "sha512-MuCAyrGZcTLfQoH2XoBlQ8C6bzwN88XT/0slOGz0pn8+gIP85BOAfYa44ZXQUTOwRwPU0QvgU+V+OSajl/59Xg==" }, + "seamless-immutable": { + "version": "7.1.4", + "resolved": "https://npme.walmart.com/seamless-immutable/-/seamless-immutable-7.1.4.tgz", + "integrity": "sha512-XiUO1QP4ki4E2PHegiGAlu6r82o5A+6tRh7IkGGTVg/h+UoeX4nFBeCGPOhb4CYjvkqsfm/TUtvOMYC1xmV30A==" + }, "semver": { "version": "6.3.0", "resolved": "https://npme.walmart.com/semver/-/semver-6.3.0.tgz", @@ -19078,9 +19102,9 @@ } }, "ua-parser-js": { - "version": "0.7.32", - "resolved": "https://npme.walmart.com/ua-parser-js/-/ua-parser-js-0.7.32.tgz", - "integrity": "sha512-f9BESNVhzlhEFf2CHMSj40NWOjYPl1YKYbrvIr/hFTDEmLq7SRbWvm7FcdcpCYT95zrOhC7gZSxjdnnTpBcwVw==" + "version": "0.7.33", + "resolved": "https://npme.walmart.com/ua-parser-js/-/ua-parser-js-0.7.33.tgz", + "integrity": "sha512-s8ax/CeZdK9R/56Sui0WM6y9OFREJarMRHqLB2EwkovemBxNQ+Bqu8GAsUnVcXKgphb++ghr/B2BZx4mahujPw==" }, "uglify-js": { "version": "3.17.2", @@ -19124,9 +19148,9 @@ "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==" }, "undici": { - "version": "5.15.1", - "resolved": "https://npme.walmart.com/undici/-/undici-5.15.1.tgz", - "integrity": "sha512-XLk8g0WAngdvFqTI+VKfBtM4YWXgdxkf1WezC771Es0Dd+Pm1KmNx8t93WTC+Hh9tnghmVxkclU1HN+j+CvIUA==", + "version": "5.16.0", + "resolved": "https://npme.walmart.com/undici/-/undici-5.16.0.tgz", + "integrity": "sha512-KWBOXNv6VX+oJQhchXieUznEmnJMqgXMbs0xxH2t8q/FUAWSJvOSr/rMaZKnX5RIVq7JDn0JbP4BOnKG2SGXLQ==", "requires": { "busboy": "^1.6.0" } --- packages/allspark-foundation/package.json @@ -47,7 +47,6 @@ "@types/react-redux": "~7.1.9", "@types/seamless-immutable": "~7.1.16", "@walmart/gtp-shared-components": "2.0.0-beta.7", - "axios": "~0.27.2", "moment-timezone": "~0.5.37", "react": "~17.0.2", "react-native": "~0.67.4",
chore: package update
chore: package update
d901c3d16c5992b7bd0ec318249994b3606602e8
--- docs/CHANGELOG.md @@ -1,3 +1,13 @@ +## [2.14.2](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.14.1...v2.14.2) (2025-03-03) + + +### Bug Fixes + +* **ui:** update roster looper smdv-9999 ([6527523](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/65275231ad10309ebcc65068c6214a755cde9b9a)) +* **ui:** update roster version smdv-9999 ([f81e08c](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/f81e08ca63ffffb028411cbaf221bc21a0270079)) +* **ui:** update roster version smdv-9999 ([ec8fa11](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ec8fa11810c0af9413c67889dbafd0b057ccf633)) +* **ui:** update roster version smdv-9999 ([83e3239](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/83e323948b38e9f538bff6bbc4712fe43dfaf3f1)) + ## [2.14.1](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.14.0...v2.14.1) (2025-02-28) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.14.1", + "version": "2.14.2", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.14.2 [skip ci]
chore(release): 2.14.2 [skip ci] ## [2.14.2](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.14.1...v2.14.2) (2025-03-03) ### Bug Fixes * **ui:** update roster looper smdv-9999 ([6527523](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/65275231ad10309ebcc65068c6214a755cde9b9a)) * **ui:** update roster version smdv-9999 ([f81e08c](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/f81e08ca63ffffb028411cbaf221bc21a0270079)) * **ui:** update roster version smdv-9999 ([ec8fa11](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ec8fa11810c0af9413c67889dbafd0b057ccf633)) * **ui:** update roster version smdv-9999 ([83e3239](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/83e323948b38e9f538bff6bbc4712fe43dfaf3f1))
b06637e783d86db86753aac8def2ff28acc764d3
--- .looper.multibranch.yml @@ -283,13 +283,13 @@ flows: - echo "workspace is ${WORKSPACE}" - echo "podfile lock is ${WORKSPACE}/ios/Podfile.lock" - ls -l "${WORKSPACE}/ios/Podfile.lock" - - (name installed version) sudo ls -l /Applications/xcode_version/ - call: pr - call: setup-fastlane - call: increment-version-code - node(label=$LOOPER_NODES, ws="exclusive"): - parallel(failsafe): - call: build-native(ios) + - call: build-native(android) - call: run-sonar-analysis - call: publish-to-hygieia @@ -504,7 +504,6 @@ flows: rm -f ~/.cocoapods/repos/cocoapods/.git/index.lock fi exit 0 - - (name installed version) sudo ls -l /Applications/xcode_version/ - (name cocoapods setup) ./BuildSupport/install-cocoapods.sh - (name prepare xcode) sudo xcode-select -s /Applications/xcode_version/Xcode_$TARGET_XCODE.app/Contents/Developer/
revert some changes
revert some changes
c01cb1105ee91869cae64aa4dc0fbc199ff4c5e2
--- .looper-pr.yml @@ -13,17 +13,6 @@ flows: - (name Yarn Install) yarn install - (name Test Coverage) yarn run coverage - # Accessibility fix flow (for fix/a11y branch) - publish-a11y-fix: - - (name Enable Corepack) corepack enable - - (name Yarn Set Version) yarn set version 4.6.0 - - (name Yarn Install) yarn install - - (name Lint) yarn run lint - - (name Coverage) yarn run coverage - - (name Build) yarn run build - - (name Tag A11y Version) npm version prerelease --preid=a11y --no-git-tag-version - - (name Publish A11y Fix to NPM) npm publish --tag a11y - envs: global: variables: @@ -42,14 +31,3 @@ envs: AUTHOR: temp SLACK_CHANNEL: "smdv-miniapp" -# Define branch-specific triggers -branches: - # fix/a11y branch - accessibility fix releases with npm publish - - spec: fix/a11y - triggers: - - push: - call: publish-a11y-fix - ignoreAuthor: - - jenkinspan - - svc-looper - --- .looper.yml @@ -24,4 +24,4 @@ flows: - (name Yarn Version) yarn --version - yarn install - yarn run lint - - yarn run coverage + - yarn run coverage \ No newline at end of file
chore(ci): revert looper changes
chore(ci): revert looper changes
7dbf721c2339efde56ae693cb798b9d4ec929709
--- __tests__/hooks/useRbacConfigWithJobCode.test.ts @@ -115,9 +115,8 @@ describe('useRbacConfigWithJobCode', () => { ); expect(result.current).toStrictEqual(true); }); - //TODO: Fix this test case - it.skip('useRbacConfigWithJobCode returns userHasRequiredJobCode value if user title contains jobDescription', () => { + it('useRbacConfigWithJobCode returns userHasRequiredJobCode value if user title contains jobDescription', () => { (useSelector as jest.Mock).mockReturnValueOnce({ loaded: true, data: { --- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -15,7 +15,6 @@ import { useGetViewersPrimaryTeamId, useGetViewersPrimaryTeamName, useTotalSiteOrTotalStore, - useUserIsInRoster, } from '../../../hooks'; import {useSelector} from 'react-redux'; import { @@ -42,7 +41,7 @@ import {AssociateListItem} from '../../components/AssociateList/AssociateListIte import {analytics} from '../../../logger/Analytics'; import {logger} from '../../../common/logger'; import moment from 'moment'; -import {Alert, Body} from '@walmart/gtp-shared-components'; +import {Body} from '@walmart/gtp-shared-components'; import { associateIsAbsent, associateIsClockedIn, @@ -93,7 +92,6 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { const showRoster = useSelector(displayRoster); const showSearchInput = useSelector(displaySearchInput); const isSalariedOrLead = isTeamLead || isSalaried || isPeopleLead; - const userIsInRoster = useUserIsInRoster(); const [teamState, setTeamState] = useState<{ teamLabel: string | null; teamIds: string[]; @@ -422,14 +420,6 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { </Body> </View> )} - {!dataLoading && !userIsInRoster && ( - <Alert variant='warning' UNSAFE_style={styles.error}> - {t('rosterScreen.notInRoster', { - siteId: storeId, - context: siteTranslationContext, - })} - </Alert> - )} <RosterFiltersAndInfo totalScheduleCount={filterCount.scheduledCount} associates={teamRoster} --- src/managerExperience/screens/RosterDetailScreen/styles.tsx @@ -29,7 +29,4 @@ export const rosterDetailScreenStyles = StyleSheet.create({ listEmptyComponent: { top: 16, }, - error: { - margin: 16, - }, });
feat: unskipped tets
feat: unskipped tets
d19c47de1c9f70bd14b9b146cba3b7a3b62602e3
--- package.json @@ -86,7 +86,7 @@ "@walmart/inbox-mini-app": "0.8.0", "@walmart/iteminfo-mini-app": "2.0.9", "@walmart/manager-approvals-miniapp": "0.0.51", - "@walmart/metrics-mini-app": "0.4.11", + "@walmart/metrics-mini-app": "0.4.12", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.37", "@walmart/react-native-env": "^0.2.0",
bumping version
bumping version
a1c92a4e7151894e91f7932c76879da4607a6f71
--- src/components/ClockedOutScreenGuard.tsx @@ -9,6 +9,7 @@ import {Alert} from '@walmart/gtp-shared-components'; import {useSelector} from 'react-redux'; import {ClockStatusSelectors} from '@walmart/redux-store'; import {useTranslation} from '@walmart/core-services/Translations'; +import {UserHeader} from '../containers/UserHeader'; const styles = StyleSheet.create({ warning: { @@ -28,15 +29,18 @@ export const ClockedOutScreenGuard: React.FC<ClockedOutScreenGuardProps> = ({ if (!clockedIn) { analytics('roster', {message: 'clocked out roster access'}, 10); return ( - <Alert - variant='warning' - children={t('clockedOutScreenGuard.clockedOutMessage')} - UNSAFE_style={styles.warning} - actionButtonProps={{ - children: t('clockedOutScreenGuard.viewTimeClock'), - onPress: noop, - }} - /> + <> + <UserHeader /> + <Alert + variant='warning' + children={t('clockedOutScreenGuard.clockedOutMessage')} + UNSAFE_style={styles.warning} + actionButtonProps={{ + children: t('clockedOutScreenGuard.viewTimeClock'), + onPress: noop, + }} + /> + </> ); } return children; --- src/components/ClockedOutScreenGuard.tsx @@ -9,6 +9,7 @@ import {Alert} from '@walmart/gtp-shared-components'; import {useSelector} from 'react-redux'; import {ClockStatusSelectors} from '@walmart/redux-store'; import {useTranslation} from '@walmart/core-services/Translations'; +import {UserHeader} from '../containers/UserHeader'; const styles = StyleSheet.create({ warning: { @@ -28,15 +29,18 @@ export const ClockedOutScreenGuard: React.FC<ClockedOutScreenGuardProps> = ({ if (!clockedIn) { analytics('roster', {message: 'clocked out roster access'}, 10); return ( - <Alert - variant='warning' - children={t('clockedOutScreenGuard.clockedOutMessage')} - UNSAFE_style={styles.warning} - actionButtonProps={{ - children: t('clockedOutScreenGuard.viewTimeClock'), - onPress: noop, - }} - /> + <> + <UserHeader /> + <Alert + variant='warning' + children={t('clockedOutScreenGuard.clockedOutMessage')} + UNSAFE_style={styles.warning} + actionButtonProps={{ + children: t('clockedOutScreenGuard.viewTimeClock'), + onPress: noop, + }} + /> + </> ); } return children;
add user header to screen guard
add user header to screen guard
a49e3999b36dbf385dfb1f863984655438564384
--- src/redux/selectors.ts @@ -3,6 +3,7 @@ import {UserSelectors, GlobalState} from '@walmart/redux-store'; import {encryptUserId} from '../utils/user'; import {SharedReduxState} from './types'; import {CCMFallbacks} from '../ccmFallbacks'; +import {logger} from '../logger/Logger'; export const getEncryptedUserId = createSelector( [UserSelectors.getUserWIN], @@ -47,7 +48,16 @@ export const pushToTalkEnabled = createSelector( export const teamLeadJobDescriptions = createSelector( [getTextingAppConfigData], - (state) => - (state?.teamLeadJobDescriptions || - CCMFallbacks.teamLeadJobDescriptions) as string[], + (state) => { + const jobDescriptions = state?.teamLeadJobDescriptions?.toString(); + try { + return ((jobDescriptions && JSON.parse(jobDescriptions)) || + CCMFallbacks.teamLeadJobDescriptions) as string[]; + } catch (e: any) { + logger.error('Error parsing teamLeadJobDescriptions CCM2 JSON', { + message: e.toString, + }); + return CCMFallbacks.teamLeadJobDescriptions; + } + }, ); --- src/redux/selectors.ts @@ -3,6 +3,7 @@ import {UserSelectors, GlobalState} from '@walmart/redux-store'; import {encryptUserId} from '../utils/user'; import {SharedReduxState} from './types'; import {CCMFallbacks} from '../ccmFallbacks'; +import {logger} from '../logger/Logger'; export const getEncryptedUserId = createSelector( [UserSelectors.getUserWIN], @@ -47,7 +48,16 @@ export const pushToTalkEnabled = createSelector( export const teamLeadJobDescriptions = createSelector( [getTextingAppConfigData], - (state) => - (state?.teamLeadJobDescriptions || - CCMFallbacks.teamLeadJobDescriptions) as string[], + (state) => { + const jobDescriptions = state?.teamLeadJobDescriptions?.toString(); + try { + return ((jobDescriptions && JSON.parse(jobDescriptions)) || + CCMFallbacks.teamLeadJobDescriptions) as string[]; + } catch (e: any) { + logger.error('Error parsing teamLeadJobDescriptions CCM2 JSON', { + message: e.toString, + }); + return CCMFallbacks.teamLeadJobDescriptions; + } + }, );
protecting teamLead ccm config selector
protecting teamLead ccm config selector
0502887a2353da9749741d2aa80e39e662636237
--- docs/docs/getting-started.md @@ -19,7 +19,7 @@ See the [Introduction](./components/allspark%20foundation/foundation-intro.md) p - Android Studio - Cocoapods -[Environment setup guide for react native](https://reactnative.dev/docs/set-up-your-environment) will help you install most of the dependencies correctly. +[Environment setup guide for react native](https://reactnative.dev/docs/set-up-your-environment) will help you install most of the pre-requisite dependencies correctly. For migrating a feature app to Foundation, read the [migration documentation](./components/allspark%20foundation/migration%20guides/foundation-migration.md). There are six phases in total, however the final phase is optional.
Update getting-started.md
Update getting-started.md
65e505ccbe84b4cbedb4b18382e20ba1ddeb425e
--- packages/allspark-foundation/allspark.config.js @@ -11,6 +11,7 @@ module.exports = { '@walmart/react-native-scanner-3.0': {}, 'react-native-flipper': {}, 'react-native-gesture-handler': {}, + 'react-native-permissions': {}, 'react-native-reanimated': {}, 'react-native-safe-area-context': {}, 'react-native-screens': {}, --- packages/allspark-foundation/package.json @@ -64,6 +64,7 @@ "react-native-apollo-devtools-client": "^1.0.4", "react-native-flipper": "^0.191.0", "react-native-gesture-handler": "^2.9.0", + "react-native-permissions": "^3.6.1", "react-native-reanimated": "^2.14.4", "react-native-safe-area-context": "~4.4.1", "react-native-screens": "~3.15.0", @@ -79,6 +80,7 @@ "react-native-apollo-devtools-client": ">=1", "react-native-flipper": ">=0.191", "react-native-gesture-handler": ">2.9", + "react-native-permissions": ">=3.6", "react-native-reanimated": ">=2.14", "react-native-safe-area-context": ">=4.4", "react-native-screens": ">=3.15", --- packages/allspark-foundation/src/Container/configure.ts @@ -16,6 +16,10 @@ export const configureContainer = ( if (http) { AllsparkHttpClient.mergeConfig(http); + + if (http.interceptors) { + AllsparkHttpClient.addInterceptors(http.interceptors); + } } if (graphQL) { --- packages/allspark-foundation/src/DynamicServiceCreator.tsx @@ -64,6 +64,24 @@ export const DynamicServiceCreator = < return isConnected; case 'Connect': return Connect; + // Special handling for services that can be "cloned" + case 'createFeatureInstance': + return (...params: any[]) => { + let imp = {} as T; + + return new Proxy(imp, { + get: (__, prop) => { + return async (...args: any[]) => { + await waitForConnection(); + imp = implementation!.createFeatureInstance(...params); + const method = imp[prop]; + if (typeof method === 'function') { + return method.apply(imp, args); + } + }; + }, + }); + }; default: // Handle early calls, wait for connect before resolving if (!implementation) { --- packages/allspark-foundation/src/Feature/AllsparkFeature.tsx @@ -50,7 +50,7 @@ export type AllsparkFeatureConfig = { * @example * const MyFeature = AllsparkFeature('my_mini_app' as const); */ -export const AllsparkFeature = (id: string, config?: AllsparkFeatureConfig) => { +export const AllsparkFeature = (id: string, config: AllsparkFeatureConfig) => { // Add Feature Environment variables AllsparkEnvironment.addFeatureConfig(id, config?.environment); --- packages/allspark-foundation/src/Navigation/Root/RootNavigation.tsx @@ -58,7 +58,7 @@ export const RootNavigationFactory = () => { * @description Callback for when container state changes. Should only * be used with the root NavigationContainer component. */ - const onContainerStateChange = () => { + const onStateChange = () => { _previousRouteName = _currentRouteName; _currentRouteName = getCurrentRouteName(); _screenChangeHandler(_currentRouteName, _previousRouteName); @@ -68,7 +68,7 @@ export const RootNavigationFactory = () => { * @description Callback for when container is ready. Should only * be used with the root NavigationContainer component. */ - const onContainerReady = () => { + const onReady = () => { _isReady = true; _currentRouteName = getCurrentRouteName(); @@ -170,8 +170,8 @@ export const RootNavigationFactory = () => { container: { ref, linking, - onContainerReady, - onContainerStateChange, + onReady, + onStateChange, }, context: { reset, --- packages/allspark-foundation/src/Services/Logger.ts @@ -28,5 +28,5 @@ export type AllsparkLoggerService = LoggerBaseService & { }; export const LoggerService = DynamicServiceCreator<AllsparkLoggerService>({ - name: 'LocalStorage', + name: 'Logger', }); --- packages/allspark-foundation/src/index.ts @@ -41,7 +41,11 @@ export type { HttpClientConfig, } from './HTTP'; -export { AllsparkRootNavigation, useScreenChangeListener } from './Navigation'; +export { + AllsparkRootNavigation, + useScreenChangeListener, + useRootNavigation, +} from './Navigation'; export * from './Permissions'; --- packages/me-at-walmart-container/package.json @@ -47,7 +47,6 @@ "react": "~18.1.0", "react-native": "~0.70.9", "react-native-device-info": "^10.3.0", - "react-native-permissions": "^3.6.1", "wifi-store-locator": "^1.0.0-alpha2" }, "peerDependencies": { @@ -64,7 +63,6 @@ "react": "~18.1.0", "react-native": "~0.70.9", "react-native-device-info": ">=10.3", - "react-native-permissions": ">=3.6", "wifi-store-locator": ">=1" } }
chore: fixes from testing
chore: fixes from testing
44bddb99a0a448e149093e8345ec0a884fe3c80f
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/inbox-mini-app": "0.83.3", "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", - "@walmart/me-field-mini-app": "12.0.20", + "@walmart/me-field-mini-app": "12.0.21", "@walmart/metrics-mini-app": "0.11.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", @@ -5453,9 +5453,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "12.0.20", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.20.tgz", - "integrity": "sha512-2UoWw4eidfAl1brZ+WJUN/yZq12ZKtmHjIbTaMkowofe67j7zHQd5ECxiShcg3Bnb91pNL04FvVXg5n2zw5ueQ==", + "version": "12.0.21", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.21.tgz", + "integrity": "sha512-WiFL+L18yyDV0HzOpKv8LMZ+KYSHyMAontahxpNmVL/9snq+oVKrwPuOCP//6H9VoeZTtPWUlPn32CAMs0f8Hg==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -25348,9 +25348,9 @@ } }, "@walmart/me-field-mini-app": { - "version": "12.0.20", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.20.tgz", - "integrity": "sha512-2UoWw4eidfAl1brZ+WJUN/yZq12ZKtmHjIbTaMkowofe67j7zHQd5ECxiShcg3Bnb91pNL04FvVXg5n2zw5ueQ==" + "version": "12.0.21", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.21.tgz", + "integrity": "sha512-WiFL+L18yyDV0HzOpKv8LMZ+KYSHyMAontahxpNmVL/9snq+oVKrwPuOCP//6H9VoeZTtPWUlPn32CAMs0f8Hg==" }, "@walmart/metrics-mini-app": { "version": "0.11.5", --- package.json @@ -99,7 +99,7 @@ "@walmart/inbox-mini-app": "0.83.3", "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", - "@walmart/me-field-mini-app": "12.0.20", + "@walmart/me-field-mini-app": "12.0.21", "@walmart/metrics-mini-app": "0.11.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4",
⬆️ Bump Learning mini app
⬆️ Bump Learning mini app
687e21c76ca37846dd7a7418f78c30506f9fcb44
--- package-lock.json @@ -3181,9 +3181,9 @@ "integrity": "sha512-SsYeWcxxTEepE6j5VXuLED8z5GrloWsUXcF9+G8vq3pZz12x8zCsADRdCT/nXVGhWvgbN8IxJ0f3J1AoihtqDA==" }, "@walmart/time-clock-mini-app": { - "version": "0.1.23", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.23.tgz", - "integrity": "sha512-1J40At/wTuOLi9HXN0cdVWxSGyZUfU+fo8uenGhxHkmDublDMXYMQKA9xDIQcCWJHjGKKH/8vjNleJlDQsovvQ==", + "version": "0.1.25", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.25.tgz", + "integrity": "sha512-1IMcKA/ASAmw535q5+qU/jJWC+XEPFaZVi34KXkB+ShjkWQSMItu+lFT4LG8LRsStYJObesYj00knRqdef9LQQ==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "javascript-time-ago": "^2.3.4", --- package.json @@ -64,7 +64,7 @@ "@walmart/redux-store": "^1.0.11", "@walmart/schedule-mini-app": "0.2.55", "@walmart/settings-mini-app": "1.1.14", - "@walmart/time-clock-mini-app": "0.1.23", + "@walmart/time-clock-mini-app": "0.1.25", "@walmart/ui-components": "1.0.94", "@walmart/welcomeme-mini-app": "0.5.27", "i18next": "^19.7.0",
Permissions changes and other misc fixes (#313)
Permissions changes and other misc fixes (#313)
dacb21fce987f578bd56bd564e14b1f204e3e92c
--- package-lock.json @@ -30483,9 +30483,9 @@ "integrity": "sha512-vAn11SgL6thiZdZLdAe1EvJ+gYGSDJa2HBrLPXlTFQgUHtf2+fnnj4SG9bX8mg9/Ax3Hg7IQaiKle3GsdgN2ww==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.9.47", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.47.tgz", - "integrity": "sha512-7cn6Rn7+hCkZComxXA5zfT8AXwakKmdAMYxhL79E1YiC6YkeVZNPtl4d1el0VVkcoVNQE2+oq/AUYZ4COMQuhw==" + "version": "0.9.48", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.48.tgz", + "integrity": "sha512-aJzdl4g6cOcNQhHvtcmkWrczuEeU/pkrkL6qJpPa+cq1LnfWQQpLlEM/h0WWVA2rKgXNOSkvDPADBD2+nkb+Nw==" }, "@walmart/financial-wellbeing-feature-app": { "version": "1.10.4", --- package.json @@ -93,7 +93,7 @@ "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.5.1", "@walmart/facilities-management-miniapp": "0.6.67", - "@walmart/feedback-all-spark-miniapp": "0.9.47", + "@walmart/feedback-all-spark-miniapp": "0.9.48", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16",
GDVCVR-13952 ffedback-mini-app version bump
GDVCVR-13952 ffedback-mini-app version bump
c3ce25077cf7bbe23b8ca60c3a61667985cb0072
--- graphql.yml @@ -10,6 +10,11 @@ applications: environments: - name: 'stg' persistedQueries: + - name: 'getAssociateById' + hash: 'a8fa65ba461cd25f4cb6e107a1f2075668b1307b1a6146a86c235395d54dd626' + queryTemplate: 'src/queries/getAssociateById.graphql' + tags: + - 'v1' - name: 'getDailyRosterHome' hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql' @@ -27,6 +32,11 @@ applications: - 'v1' - name: 'prod' persistedQueries: + - name: 'getAssociateById' + hash: 'a8fa65ba461cd25f4cb6e107a1f2075668b1307b1a6146a86c235395d54dd626' + queryTemplate: 'src/queries/getAssociateById.graphql' + tags: + - 'v1' - name: 'getDailyRosterHome' hash: '3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql' --- packages/me-at-walmart-athena-queries/src/getAssociateById.graphql @@ -0,0 +1,56 @@ +query getAssociateById($userId: String!) { + getAssociateById(id: $userId) { + __typename + associateTypeCode + birthDate { + __typename + raw + } + centralizedJobCode + department + displayName + employmentStatus + facilityCountryCode + facilityDivNumber + facilityNumber + facilityRegionNumber + facilityStateProvCode + firstName + fullName + geographicCategoryCode + hireDate + jobCategoryCode + jobCategoryCodeDesc + lastName + mdseDivNumber + payType + preferredFirstName + preferredFullName + preferredLastName + preferredMiddleName + preferredNameSocialSuffix + preferredNameTitle + punch { + __typename + clockStatus + lastPunchTime + lastPunchType + siteNbr + } + secondaryJobs { + __typename + secondaryStoreDeptNumber + secondaryStoreJobCode + secondaryStoreJobCodeDesc + } + teams { + __typename + members + teamId + teamName + } + userId + win + workEmail + } +} \ No newline at end of file --- packages/me-at-walmart-athena-queries/src/getAssociateById.ts @@ -0,0 +1,174 @@ +import * as Types from './schema.types'; + +import { gql } from '@walmart/allspark-graphql-client'; +import * as ApolloReactCommon from '@walmart/allspark-graphql-client'; +import * as ApolloReactHooks from '@walmart/allspark-graphql-client'; +const defaultOptions = {} as const; +export type GetAssociateByIdQueryVariables = Types.Exact<{ + userId: Types.Scalars['String']; +}>; + +export type GetAssociateByIdQuery = { + __typename?: 'Query'; + getAssociateById?: { + __typename: 'Associate'; + associateTypeCode?: string | null; + centralizedJobCode?: string | null; + department?: string | null; + displayName?: string | null; + employmentStatus?: string | null; + facilityCountryCode?: string | null; + facilityDivNumber?: number | null; + facilityNumber?: string | null; + facilityRegionNumber?: number | null; + facilityStateProvCode?: string | null; + firstName?: string | null; + fullName?: string | null; + geographicCategoryCode?: string | null; + hireDate?: string | null; + jobCategoryCode?: string | null; + jobCategoryCodeDesc?: string | null; + lastName?: string | null; + mdseDivNumber?: number | null; + payType?: string | null; + preferredFirstName?: string | null; + preferredFullName?: string | null; + preferredLastName?: string | null; + preferredMiddleName?: string | null; + preferredNameSocialSuffix?: string | null; + preferredNameTitle?: string | null; + userId?: string | null; + win?: number | null; + workEmail?: string | null; + birthDate?: { __typename: 'Birthday'; raw?: string | null } | null; + punch?: { + __typename: 'Punch'; + clockStatus?: string | null; + lastPunchTime?: string | null; + lastPunchType?: string | null; + siteNbr?: string | null; + } | null; + secondaryJobs?: Array<{ + __typename: 'SecondaryJobs'; + secondaryStoreDeptNumber?: number | null; + secondaryStoreJobCode?: string | null; + secondaryStoreJobCodeDesc?: string | null; + } | null> | null; + teams?: Array<{ + __typename: 'Team'; + members?: Array<string | null> | null; + teamId?: string | null; + teamName?: string | null; + } | null> | null; + } | null; +}; + +export const GetAssociateByIdDocument = gql` + query getAssociateById($userId: String!) { + getAssociateById(id: $userId) { + __typename + associateTypeCode + birthDate { + __typename + raw + } + centralizedJobCode + department + displayName + employmentStatus + facilityCountryCode + facilityDivNumber + facilityNumber + facilityRegionNumber + facilityStateProvCode + firstName + fullName + geographicCategoryCode + hireDate + jobCategoryCode + jobCategoryCodeDesc + lastName + mdseDivNumber + payType + preferredFirstName + preferredFullName + preferredLastName + preferredMiddleName + preferredNameSocialSuffix + preferredNameTitle + punch { + __typename + clockStatus + lastPunchTime + lastPunchType + siteNbr + } + secondaryJobs { + __typename + secondaryStoreDeptNumber + secondaryStoreJobCode + secondaryStoreJobCodeDesc + } + teams { + __typename + members + teamId + teamName + } + userId + win + workEmail + } + } +`; + +/** + * __useGetAssociateByIdQuery__ + * + * To run a query within a React component, call `useGetAssociateByIdQuery` and pass it any options that fit your needs. + * When your component renders, `useGetAssociateByIdQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetAssociateByIdQuery({ + * variables: { + * userId: // value for 'userId' + * }, + * }); + */ +export function useGetAssociateByIdQuery( + baseOptions: ApolloReactHooks.QueryHookOptions< + GetAssociateByIdQuery, + GetAssociateByIdQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions }; + return ApolloReactHooks.useQuery< + GetAssociateByIdQuery, + GetAssociateByIdQueryVariables + >(GetAssociateByIdDocument, options); +} +export function useGetAssociateByIdLazyQuery( + baseOptions?: ApolloReactHooks.LazyQueryHookOptions< + GetAssociateByIdQuery, + GetAssociateByIdQueryVariables + > +) { + const options = { ...defaultOptions, ...baseOptions }; + return ApolloReactHooks.useLazyQuery< + GetAssociateByIdQuery, + GetAssociateByIdQueryVariables + >(GetAssociateByIdDocument, options); +} +export type GetAssociateByIdQueryHookResult = ReturnType< + typeof useGetAssociateByIdQuery +>; +export type GetAssociateByIdLazyQueryHookResult = ReturnType< + typeof useGetAssociateByIdLazyQuery +>; +export type GetAssociateByIdQueryResult = ApolloReactCommon.QueryResult< + GetAssociateByIdQuery, + GetAssociateByIdQueryVariables +>; --- packages/me-at-walmart-athena-queries/src/index.ts @@ -1 +1,4 @@ +export * from './getAssociateById'; +export * from './getDailyRosterHome'; export * from './getLoggedInUser'; +export * from './getTeamByIdHome';
feat: add get associate by id query
feat: add get associate by id query
6c97e5694156cbeb57e78824f3f3d367c1d9cc65
--- 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.28.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.27.0-alpha.0...v6.28.1-alpha.0) (2025-01-14) + +**Note:** Version bump only for package @walmart/me-at-walmart + + + + + # [6.27.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.26.0...v6.27.0-alpha.0) (2025-01-14) --- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.28.0", + "version": "6.28.1-alpha.0", "npmClient": "yarn", "changelogPreset": "angular", "command": { --- 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.28.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.27.0-alpha.0...v6.28.1-alpha.0) (2025-01-14) + +**Note:** Version bump only for package @walmart/core-services-allspark + + + + + # [6.27.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.26.0...v6.27.0-alpha.0) (2025-01-14) **Note:** Version bump only for package @walmart/core-services-allspark --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "6.27.0-alpha.0", + "version": "6.28.1-alpha.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/core-widget-registry/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.28.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.27.0-alpha.0...v6.28.1-alpha.0) (2025-01-14) + +**Note:** Version bump only for package @walmart/core-widget-registry + + + + + # [6.27.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.26.0...v6.27.0-alpha.0) (2025-01-14) **Note:** Version bump only for package @walmart/core-widget-registry --- packages/core-widget-registry/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "6.27.0-alpha.0", + "version": "6.28.1-alpha.0", "lockfileVersion": 1, "requires": true, "dependencies": { --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "6.27.0-alpha.0", + "version": "6.28.1-alpha.0", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", --- packages/me-at-walmart-common/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.28.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.27.0-alpha.0...v6.28.1-alpha.0) (2025-01-14) + +**Note:** Version bump only for package @walmart/me-at-walmart-common + + + + + # [6.27.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.26.0...v6.27.0-alpha.0) (2025-01-14) **Note:** Version bump only for package @walmart/me-at-walmart-common --- packages/me-at-walmart-common/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-common", - "version": "6.27.0-alpha.0", + "version": "6.28.1-alpha.0", "description": "Common utilities and components for Me@Walmat mini apps", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-container/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.28.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.27.0-alpha.0...v6.28.1-alpha.0) (2025-01-14) + +**Note:** Version bump only for package @walmart/me-at-walmart-container + + + + + # [6.27.0-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.26.0...v6.27.0-alpha.0) (2025-01-14) --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "6.27.0-alpha.0", + "version": "6.28.1-alpha.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version
e94d25966062b9b464d7fe96aa23e1ad66286d77
--- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -549,7 +549,7 @@ export const MainStackNav = () => { Navigator: MainStack as any, })} - {ItemInfoFeature.buildAllScreens(ScreenTags.AssociateStack, { + {ItemInfoFeature.buildAllScreens({ Navigator: MainStack as any, })} --- targets/US/android/app/src/main/res/values/strings.xml @@ -1,4 +1,4 @@ <resources> <string name="app_name">Me@Walmart</string> - <string moduleConfig="true" name="CodePushDeploymentKey">bxaFhKysMbgqkicxhpd_CLuY1ae6DxsB5N7uU</string> + <string moduleConfig="true" name="CodePushDeploymentKey">nBYo63jPiissQ2ot9A_NVgD4Gnhm-Z0DLg7m-</string> </resources> --- targets/US/ios/AllSpark.xcodeproj/project.pbxproj @@ -703,7 +703,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = F3653BAB2218679F299EF5F1 /* Pods-AllSpark.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta"; CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; @@ -753,7 +753,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 791B25E6CC3E142AC5BD129C /* Pods-AllSpark.release.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta"; CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; --- targets/US/ios/AllSpark/Info.plist @@ -49,7 +49,7 @@ <!-- <key>NSLocationWhenInUseUsageDescription</key> <string></string> --> <key>UILaunchStoryboardName</key> - <string>LaunchScreen-Dev</string> + <string>LaunchScreen-Beta</string> <key>UIRequiredDeviceCapabilities</key> <array> <!-- @customization - default arm64 --> @@ -116,7 +116,7 @@ <!-- @customization - code push --> <key>CodePushDeploymentKey</key> - <string>LCVCkTeZVt9h-JYHlQ4NFkOQfYJkTL3RKk4nt</string> + <string>L5K7EI3qOzy8xcT5koqb32j3LdpP6qG8py3Pv</string> <!-- @customization - permission descriptions --> <key>NSCameraUsageDescription</key>
Addressed the pr commits
Addressed the pr commits
4f040bfdc8f6b0ee36c5a9708593a91f58750e3e
--- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx @@ -255,7 +255,6 @@ describe('MainTabsNav', () => { (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]); (useBadgesCount as jest.Mock).mockReturnValueOnce([0]); mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge - mockUseSelector.mockReturnValueOnce(true); mockUseSelector.mockReturnValueOnce({ home: config, me: config, @@ -274,7 +273,6 @@ describe('MainTabsNav', () => { (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([2]); (useBadgesCount as jest.Mock).mockReturnValueOnce([2]); mockUseSelector.mockReturnValueOnce({highPriorityCount: 2}); // taskBadge - mockUseSelector.mockReturnValueOnce(true); mockUseSelector.mockReturnValueOnce({ home: config, me: config, @@ -291,7 +289,6 @@ describe('MainTabsNav', () => { (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([2]); (useBadgesCount as jest.Mock).mockReturnValueOnce([2]); mockUseSelector.mockReturnValueOnce({highPriorityCount: 2}); // taskBadge - mockUseSelector.mockReturnValueOnce(true); mockUseSelector.mockReturnValueOnce({ home: config, me: config, @@ -309,7 +306,6 @@ describe('MainTabsNav', () => { (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]); (useBadgesCount as jest.Mock).mockReturnValueOnce([0]); mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge - mockUseSelector.mockReturnValueOnce(true); mockUseSelector.mockReturnValueOnce({ home: disabledConfig, me: disabledConfig, --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap @@ -37,7 +37,6 @@ exports[`MainTabsNav matches snapshot with badges 1`] = ` > <Screen component={[Function]} - listeners={[Function]} name="home" /> <Screen @@ -109,7 +108,6 @@ exports[`MainTabsNav matches snapshot with inbox shown and badges 1`] = ` > <Screen component={[Function]} - listeners={[Function]} name="home" /> <Screen @@ -171,7 +169,6 @@ exports[`MainTabsNav matches snapshot with no badges 1`] = ` > <Screen component={[Function]} - listeners={[Function]} name="home" /> <Screen
code review comments
code review comments
cfcbb07794c8e2fe9b285b145542bc4da94ad1f3
--- android/package-lock.json @@ -1,6 +0,0 @@ -{ - "name": "android", - "lockfileVersion": 2, - "requires": true, - "packages": {} -}
Remove android/package-lock.json
Remove android/package-lock.json
502d1f353ebd2c77d9bb10dc2bfb580289172b60
--- __tests__/harness/index.tsx @@ -26,7 +26,7 @@ import { } from '@apollo/client/testing'; import {mockGetDailyRosterQuery} from './athenaQueries/getDailyRoster'; import {mockGetTeamsByStoreQuery} from './athenaQueries/getTeamsByStore'; -import {mockGetTeamByIdQuery} from "./athenaQueries/getTeamById"; +import {mockGetTeamByIdQuery} from './athenaQueries/getTeamById'; const rootReducer = reducerManager.getRootReducer(); --- __tests__/harness/index.tsx @@ -26,7 +26,7 @@ import { } from '@apollo/client/testing'; import {mockGetDailyRosterQuery} from './athenaQueries/getDailyRoster'; import {mockGetTeamsByStoreQuery} from './athenaQueries/getTeamsByStore'; -import {mockGetTeamByIdQuery} from "./athenaQueries/getTeamById"; +import {mockGetTeamByIdQuery} from './athenaQueries/getTeamById'; const rootReducer = reducerManager.getRootReducer();
fix lint
fix lint
d86fea36d59dcfcd5a295c76027d48619509186c
--- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -333,7 +333,7 @@ export const SupplyChainRosterDetailScreen = ({ /> ); // eslint-disable-next-line react-hooks/exhaustive-deps -}, [teamState, userIsInRoster]); + }, [teamState, userIsInRoster]); const searchInputElement = useCallback(() => { return (
chore(ui): lint fix
chore(ui): lint fix
5684e1182f400d807c407ecd392f02f138e7df84
--- package-lock.json @@ -54,7 +54,7 @@ "@walmart/core-widget-registry": "~1.2.4", "@walmart/counts-component-miniapp": "0.1.10", "@walmart/emergency-mini-app": "1.27.0", - "@walmart/exception-mini-app": "1.7.3", + "@walmart/exception-mini-app": "1.7.4", "@walmart/facilities-management-miniapp": "0.8.0", "@walmart/feedback-all-spark-miniapp": "0.9.58", "@walmart/financial-wellbeing-feature-app": "1.20.1", @@ -8835,9 +8835,9 @@ } }, "node_modules/@walmart/exception-mini-app": { - "version": "1.7.3", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.7.3.tgz", - "integrity": "sha512-ahdTzrtsudZme6CLK4kv7gwVj/+6Ea/V7YjwHL1zxBPls22meFqqUMfjGhAwk0zT3hr8Cz+v934fDj0chQAT3w==", + "version": "1.7.4", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.7.4.tgz", + "integrity": "sha512-tNTDiVtWXZhVur+SAWUjGFMa0xHVQQjHGR9JLcTQTz2cGk5+/JT0+9UzslJguzeI48HSRIPOAOZbEwam5IzGVQ==", "peerDependencies": { "@walmart/core-services": "^2.0.15", "@walmart/core-services-allspark": "^2.10.3", @@ -33236,9 +33236,9 @@ } }, "@walmart/exception-mini-app": { - "version": "1.7.3", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.7.3.tgz", - "integrity": "sha512-ahdTzrtsudZme6CLK4kv7gwVj/+6Ea/V7YjwHL1zxBPls22meFqqUMfjGhAwk0zT3hr8Cz+v934fDj0chQAT3w==" + "version": "1.7.4", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.7.4.tgz", + "integrity": "sha512-tNTDiVtWXZhVur+SAWUjGFMa0xHVQQjHGR9JLcTQTz2cGk5+/JT0+9UzslJguzeI48HSRIPOAOZbEwam5IzGVQ==" }, "@walmart/facilities-management-miniapp": { "version": "0.8.0", --- package.json @@ -95,7 +95,7 @@ "@walmart/core-widget-registry": "~1.2.4", "@walmart/counts-component-miniapp": "0.1.10", "@walmart/emergency-mini-app": "1.27.0", - "@walmart/exception-mini-app": "1.7.3", + "@walmart/exception-mini-app": "1.7.4", "@walmart/facilities-management-miniapp": "0.8.0", "@walmart/feedback-all-spark-miniapp": "0.9.58", "@walmart/financial-wellbeing-feature-app": "1.20.1", @@ -338,4 +338,4 @@ "pre-push": "run-p solidarity coverage" } } -} \ No newline at end of file +}
Pinpoint-1.7.8
Pinpoint-1.7.8
87a539d5705049ed2ee6b718e6884c05a20542f3
--- android/app/src/main/assets/fonts/icomoon.ttf Binary files a/android/app/src/main/assets/fonts/icomoon.ttf and b/android/app/src/main/assets/fonts/icomoon.ttf differ --- ios/icomoon.ttf Binary files a/ios/icomoon.ttf and b/ios/icomoon.ttf differ --- package-lock.json @@ -3214,9 +3214,9 @@ } }, "@walmart/ui-components": { - "version": "1.0.97", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.97.tgz", - "integrity": "sha512-XOHKAPOEhSEKCr9/9Xf492bdVYLw57zDS/qHboonkr8Pza9ghqEf5JlAnyXuAVHhvgyiuYI3hl24balds3e1Sg==", + "version": "1.0.100", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.100.tgz", + "integrity": "sha512-25ojcH1vjlz6vGvR2i+X5xl0yu09ZC9T2+rm3+BMP9pdsMLDujy8G8M056wVq+xm62ak2lbu7dICr/V8Sa3spQ==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -78,7 +78,7 @@ "@walmart/schedule-mini-app": "0.2.59", "@walmart/settings-mini-app": "1.1.20", "@walmart/time-clock-mini-app": "0.1.47", - "@walmart/ui-components": "1.0.97", + "@walmart/ui-components": "1.0.100", "@walmart/welcomeme-mini-app": "0.5.27", "i18next": "^19.7.0", "intl": "^1.2.5",
ui components version bump , updated fonts (#414)
ui components version bump , updated fonts (#414) Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
5efc9e556a01c37e0011209a7947d0f19e60dbc6
--- src/startup/index.ts @@ -73,13 +73,12 @@ export function* appFlow() { const data: {reason: string | undefined} = yield take( AuthTypes.SIGN_OUT_REQUEST, ); - console.log('data in sva signout in index.ts file', data); //Navigate to login page first yield call(resetTo, 'login'); //Wait for login page to be loaded. yield take(AuthTypes.SIGN_IN_PAGE_LOADED); - if (data?.reason) { + if (data?.reason && data?.reason !== 'N/A') { //Show signout prompt and followup instructions yield call(navigate, 'Core.ConfirmSignoutPrompt', data); //Wait for confirmation
added N/A condition
added N/A condition
64d98793575174bd57551495da7da50da9880918
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/SearchInput.tsx @@ -6,6 +6,11 @@ import { TeamSearchInputLoading } from './TeamSearchInputLoading'; import { TeamSearchInputProps } from './types'; import { useAllsparkTranslation } from '@walmart/allspark-foundation'; import { FEATURE_ID } from '../../../SupplyChain/constant'; +import { + microphoneIconEnabled, + searchIconEnabled, +} from '../../../SupplyChain/Redux'; +import { useSelector } from 'react-redux'; export const TeamSearchInput = ({ LeftIcon, @@ -13,6 +18,8 @@ export const TeamSearchInput = ({ loading, handleChange, }: TeamSearchInputProps) => { + const showSearchIcon = useSelector(searchIconEnabled); + const showMicrophoneIcon = useSelector(microphoneIconEnabled); const { t } = useAllsparkTranslation(FEATURE_ID); if (loading) { return <TeamSearchInputLoading loading={loading} />; @@ -20,12 +27,12 @@ export const TeamSearchInput = ({ const leftIconComponent = LeftIcon ? ( <LeftIcon size={'small'} /> ) : ( - <Icons.SearchIcon size={'small'} /> + <>{showSearchIcon && <Icons.SearchIcon size={'small'} />}</> ); const rightIconComponent = RightIcon ? ( <RightIcon size={'medium'} /> ) : ( - <Icons.MicrophoneIcon size={'medium'} /> + <>{showMicrophoneIcon && <Icons.MicrophoneIcon size={'medium'} />}</> ); return ( <View style={styles.container}>
feat: added feature flag for search input
feat: added feature flag for search input
1b73802023eb2e731f7a0b5692d4a82030f8e523
--- .yarn/patches/react-native-modalfy-npm-3.7.0-a3af8847e5.patch @@ -0,0 +1,52 @@ +diff --git a/lib/commonjs/lib/ModalStack.js b/lib/commonjs/lib/ModalStack.js +index 34a9127520914af5760dbeb23197d637ea0251dc..21e11613a42b414b1cb858356726333a438a0036 100644 +--- a/lib/commonjs/lib/ModalStack.js ++++ b/lib/commonjs/lib/ModalStack.js +@@ -77,9 +77,10 @@ const ModalStack = props => { + setModalStackOptions((0, _utils.computeUpdatedModalOptions)('modalStack', newModalOptions, (0, _utils.getStackItemOptions)(Array.from(stack.openedItems).pop(), stack))); + }); + }, []); +- const resetModalStackOptions = (0, _useMemoOne.useCallback)(() => { ++ const resetModalStackOptions = (0, _useMemoOne.useCallback)((dynamicStack) => { + (0, _utils.queueMacroTask)(() => { +- setModalStackOptions((0, _utils.getStackItemOptions)(Array.from(stack.openedItems).pop(), stack)); ++ const stackToUse = dynamicStack || stack; ++ setModalStackOptions((0, _utils.getStackItemOptions)(Array.from(stackToUse.openedItems).pop(), stack)); + }); + }, []); + +@@ -147,7 +148,7 @@ const ModalStack = props => { + }; + + (0, _react.useEffect)(() => { +- resetModalStackOptions(); ++ resetModalStackOptions(stack); + }, [stack.openedItems.size]); + (0, _react.useEffect)(() => { + if (stack.openedItems.size && backdropColor && backdropColor !== 'black' && !hasChangedBackdropColor) { +diff --git a/lib/module/lib/ModalStack.js b/lib/module/lib/ModalStack.js +index b98ab09e8c2b7c3e20e1f96f30344dc919ca200f..2aaf5585f9629061d08c259c8514e9f3654ee83d 100644 +--- a/lib/module/lib/ModalStack.js ++++ b/lib/module/lib/ModalStack.js +@@ -59,9 +59,10 @@ const ModalStack = props => { + setModalStackOptions(computeUpdatedModalOptions('modalStack', newModalOptions, getStackItemOptions(Array.from(stack.openedItems).pop(), stack))); + }); + }, []); +- const resetModalStackOptions = useCallback(() => { ++ const resetModalStackOptions = useCallback((dynamicStack) => { + queueMacroTask(() => { +- setModalStackOptions(getStackItemOptions(Array.from(stack.openedItems).pop(), stack)); ++ const stackToUse = dynamicStack || stack; ++ setModalStackOptions(getStackItemOptions(Array.from(stackToUse.openedItems).pop(), stack)); + }); + }, []); + +@@ -129,7 +130,7 @@ const ModalStack = props => { + }; + + useEffect(() => { +- resetModalStackOptions(); ++ resetModalStackOptions(stack); + }, [stack.openedItems.size]); + useEffect(() => { + if (stack.openedItems.size && backdropColor && backdropColor !== 'black' && !hasChangedBackdropColor) { --- package.json @@ -482,7 +482,8 @@ "wfm-allspark-data-library": "^7.0.0", "pretty-format/react-is": "19.0.0", "react-server-dom-webpack": "~19.0.1", - "react-error-boundary@npm:^6.0.0": "patch:react-error-boundary@npm%3A6.0.0#~/.yarn/patches/react-error-boundary-npm-6.0.0-fd31a206a6.patch" + "react-error-boundary@npm:^6.0.0": "patch:react-error-boundary@npm%3A6.0.0#~/.yarn/patches/react-error-boundary-npm-6.0.0-fd31a206a6.patch", + "react-native-modalfy@npm:^3.5.2": "patch:react-native-modalfy@npm%3A3.7.0#~/.yarn/patches/react-native-modalfy-npm-3.7.0-a3af8847e5.patch" }, "config": { "commitizen": { --- yarn.lock @@ -20746,7 +20746,7 @@ __metadata: languageName: node linkType: hard -"react-native-modalfy@npm:^3.5.2": +"react-native-modalfy@npm:3.7.0": version: 3.7.0 resolution: "react-native-modalfy@npm:3.7.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-modalfy%2F-%2Freact-native-modalfy-3.7.0.tgz" dependencies: @@ -20761,6 +20761,21 @@ __metadata: languageName: node linkType: hard +"react-native-modalfy@patch:react-native-modalfy@npm%3A3.7.0#~/.yarn/patches/react-native-modalfy-npm-3.7.0-a3af8847e5.patch": + version: 3.7.0 + resolution: "react-native-modalfy@patch:react-native-modalfy@npm%3A3.7.0%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Freact-native-modalfy%252F-%252Freact-native-modalfy-3.7.0.tgz#~/.yarn/patches/react-native-modalfy-npm-3.7.0-a3af8847e5.patch::version=3.7.0&hash=9f3ae9" + dependencies: + hoist-non-react-statics: "npm:^3.3.2" + react-is: "npm:^17.0.2" + use-memo-one: "npm:^1.1.2" + peerDependencies: + react: ">=16.8.3" + react-native: ">=0.59.0" + react-native-gesture-handler: ">=2.2.1" + checksum: 10c0/abb8ffa14d376a3642a3a2dc528fba279fe36d152620e3f284f7269d6ea3f7703f74467797497f04125bd51b9a3b05e221f8aea9fbbb171c844e30b70271919b + languageName: node + linkType: hard + "react-native-network-logger@npm:2.0.1": version: 2.0.1 resolution: "react-native-network-logger@npm:2.0.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Freact-native-network-logger%2F-%2Freact-native-network-logger-2.0.1.tgz"
fix(lib): fix ALLSPARK-7291 fix modalfy lib (#5206)
fix(lib): fix ALLSPARK-7291 fix modalfy lib (#5206) Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com> Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>