commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
24ce811c731069f5d2c74ab7186e30472d91f6ae
--- src/navigation/USHallway/AssociateHallwayNav/Tabs/HomeStackNav.tsx @@ -22,7 +22,7 @@ import {MINI_APPS} from '../../../../oneClick/MiniApps'; import {HomeStackMap, MainTabsScreenProps} from '../types'; import {styles} from './config'; import {getMyWalmartV2Enabled} from '@walmart/me-at-walmart-common'; -import { useTranslation } from 'react-i18next'; +import {useTranslation} from 'react-i18next'; const HomeStack = createStackNavigator<HomeStackMap>();
fix(lint): fixed lint issue
fix(lint): fixed lint issue
7ac99088f2c9055491eabdd3fb4d47b1d4902e4e
--- package-lock.json @@ -45,7 +45,7 @@ "@walmart/core-widget-registry": "~1.2.4", "@walmart/counts-component-miniapp": "0.1.4", "@walmart/emergency-mini-app": "1.24.1", - "@walmart/exception-mini-app": "1.2.30", + "@walmart/exception-mini-app": "1.3.3", "@walmart/facilities-management-miniapp": "0.6.30", "@walmart/feedback-all-spark-miniapp": "0.9.32", "@walmart/financial-wellbeing-feature-app": "1.6.3", @@ -5076,7 +5076,9 @@ } }, "node_modules/@walmart/exception-mini-app": { - "version": "1.2.30", + "version": "1.3.3", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.3.3.tgz", + "integrity": "sha512-PrClw+qFgF1XmMlg+PHZT+seQP4ydMPQkmZ+ZzGInSdBLYXJWt8Y5KT+4j3C2SjK191elDYAlqFlBDVDnModjw==", "peerDependencies": { "@walmart/core-services": "^2.0.15", "@walmart/core-services-allspark": "^2.10.3", @@ -25239,7 +25241,9 @@ } }, "@walmart/exception-mini-app": { - "version": "1.2.30" + "version": "1.3.3", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.3.3.tgz", + "integrity": "sha512-PrClw+qFgF1XmMlg+PHZT+seQP4ydMPQkmZ+ZzGInSdBLYXJWt8Y5KT+4j3C2SjK191elDYAlqFlBDVDnModjw==" }, "@walmart/facilities-management-miniapp": { "version": "0.6.30", --- package.json @@ -87,7 +87,7 @@ "@walmart/core-widget-registry": "~1.2.4", "@walmart/counts-component-miniapp": "0.1.4", "@walmart/emergency-mini-app": "1.24.1", - "@walmart/exception-mini-app": "1.2.30", + "@walmart/exception-mini-app": "1.3.3", "@walmart/facilities-management-miniapp": "0.6.30", "@walmart/feedback-all-spark-miniapp": "0.9.32", "@walmart/financial-wellbeing-feature-app": "1.6.3",
feat(PEW-00): bump exception mini app version to 1.3.3
feat(PEW-00): bump exception mini app version to 1.3.3
62db0852d31426cfabc6af5626bc021b18a1176b
--- src/common/queries/getTeamsByStore.ts @@ -1,23 +1,23 @@ -import * as Types from "./schema.types"; +import * as Types from './schema.types'; -import { gql } from "@apollo/client"; -import * as Apollo from "@apollo/client"; -import * as ApolloReactHooks from "@apollo/client"; +import {gql} from '@apollo/client'; +import * as Apollo from '@apollo/client'; +import * as ApolloReactHooks from '@apollo/client'; const defaultOptions = {} as const; export type GetTeamsByStoreQueryVariables = Types.Exact<{ - countryCode: Types.Scalars["String"]["input"]; - includeManagement?: Types.InputMaybe<Types.Scalars["Boolean"]["input"]>; - siteNbr: Types.Scalars["String"]["input"]; + countryCode: Types.Scalars['String']['input']; + includeManagement?: Types.InputMaybe<Types.Scalars['Boolean']['input']>; + siteNbr: Types.Scalars['String']['input']; teamNamesLike?: Types.InputMaybe< - Types.Scalars["String"]["input"][] | Types.Scalars["String"]["input"] + Types.Scalars['String']['input'][] | Types.Scalars['String']['input'] >; }>; export type GetTeamsByStoreQuery = { - __typename?: "Query"; + __typename?: 'Query'; getTeamsByStore?: | ({ - __typename: "Team"; + __typename: 'Team'; members?: (string | null)[] | null; teamId?: string | null; teamName?: string | null; @@ -25,9 +25,9 @@ export type GetTeamsByStoreQuery = { workgroupId?: string | null; membership?: | ({ - __typename: "TeamAssociateMembership"; + __typename: 'TeamAssociateMembership'; associate?: { - __typename: "Associate"; + __typename: 'Associate'; associateId: string; } | null; } | null)[] @@ -95,7 +95,7 @@ export function useGetTeamsByStoreQuery( | { skip: boolean } ) ) { - const options = { ...defaultOptions, ...baseOptions }; + const options = {...defaultOptions, ...baseOptions}; return ApolloReactHooks.useQuery< GetTeamsByStoreQuery, GetTeamsByStoreQueryVariables @@ -107,7 +107,7 @@ export function useGetTeamsByStoreLazyQuery( GetTeamsByStoreQueryVariables > ) { - const options = { ...defaultOptions, ...baseOptions }; + const options = {...defaultOptions, ...baseOptions}; return ApolloReactHooks.useLazyQuery< GetTeamsByStoreQuery, GetTeamsByStoreQueryVariables @@ -124,7 +124,7 @@ export function useGetTeamsByStoreSuspenseQuery( const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions - : { ...defaultOptions, ...baseOptions }; + : {...defaultOptions, ...baseOptions}; return ApolloReactHooks.useSuspenseQuery< GetTeamsByStoreQuery, GetTeamsByStoreQueryVariables
feat(ui): update graphql queries #SMDV-9999
feat(ui): update graphql queries #SMDV-9999
dee196c91ef8177d30b5d310fcd2406ae4be2d11
--- .yarn/patches/@walmart-sidekick-mini-app-npm-4.275.2-ae9ff75ac4.patch @@ -0,0 +1,13 @@ +diff --git a/dist/components/CoreActionList/CoreActionList.js b/dist/components/CoreActionList/CoreActionList.js +index 10dadb8499b1bfc91c05850a7aaa861d7fe5ada9..fa9f3403d5d3d1ed7d587c0dd38789b1f9e1604f 100644 +--- a/dist/components/CoreActionList/CoreActionList.js ++++ b/dist/components/CoreActionList/CoreActionList.js +@@ -316,7 +316,7 @@ const styles = react_native_1.StyleSheet.create({ + paddingBottom: 72, + }, + sectionHeaderContainer: { +- paddingTop: 24, ++ paddingTop: 12, + }, + insightContainer: { + marginBottom: 16, --- package.json @@ -171,7 +171,7 @@ "@walmart/schedule-mini-app": "5.4.4", "@walmart/shelfavailability-mini-app": "1.7.2", "@walmart/shop-gnfr-mini-app": "1.0.454", - "@walmart/sidekick-mini-app": "4.275.2", + "@walmart/sidekick-mini-app": "patch:@walmart/sidekick-mini-app@npm%3A4.275.2%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fsidekick-mini-app%252F-%252F%2540walmart%252Fsidekick-mini-app-4.275.2.tgz#~/.yarn/patches/@walmart-sidekick-mini-app-npm-4.275.2-ae9ff75ac4.patch", "@walmart/store-feature-orders": "1.35.6", "@walmart/talent-performance-mini-app": "1.2.7", "@walmart/talent-preboarding-mini-app": "1.0.63", --- src/home/components/GreetingRowV2/BaseGreetingV2.tsx @@ -20,7 +20,8 @@ import {getIsTimeClockEnabled} from '@/home/redux/UserSelectors'; const styles = StyleSheet.create({ headerContainer: { - padding: 16, + paddingHorizontal: 16, + paddingTop: 16, gap: 16, }, greetingContainer: { @@ -207,7 +208,7 @@ export const BaseGreetingV2 = (props: BaseGreetingProps) => { /> </View> {isMyWalmartV2Enabled && ( - <View> + <View style={{paddingBottom: isTimeClockFeatureAppEnabled ? 16 : 0}}> {isTimeClockFeatureAppEnabled ? <ComponentsModule.SharedComponents.Component id='timeClock.TimeClockButtonsWidget' props={{}}/> : <TimeClockButtonsWidget />} </View> --- src/home/components/GreetingRowV2/BaseImageV2.tsx @@ -19,7 +19,6 @@ const styles = StyleSheet.create({ position: 'absolute', top: 0, right: 0, - height: 190 }, anniversaryText: { fontSize: 28, @@ -41,8 +40,9 @@ interface BaseImageProps { // Render birthday image (priority over anniversary when both exist) export const renderBirthdayImage = () => ( - <View style={styles.imageStyle}> + <View style={{marginBottom: 16, minHeight: 110}}> <Image + style={styles.imageStyle} source={Images.birthdayHeader} resizeMode="contain" testID="BaseImageV2-BirthdayImage" @@ -101,7 +101,7 @@ const renderAnniversaryImage = (anniversaryData: (null | { amount: number; unit if (!anniversaryData) return null; return ( - <View style={styles.imageStyle} testID="BaseImageV2-AnniversaryImage"> + <View testID="BaseImageV2-AnniversaryImage"> <ImageBackground resizeMode="cover" style={styles.imageAnniversary}
feat(vqa): bug fixes for VQA
feat(vqa): bug fixes for VQA
d33204fd4f5d1ad1bd197df95555c0a923508f4b
--- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen/useSupplyChainRosterDetails.ts @@ -123,7 +123,11 @@ export const useSupplyChainRosterDetails = ({ loggedInUserShift, getHeaderAndSubtext, getCurrentTeamName, - shift, + shift: shift.length + ? shift + : selectedShift?.length + ? selectedShift + : [loggedInUserShift], getSavedSiteTeams, selectedFilter, setSelectedFilter,
feat(ui): shifts logic update 2
feat(ui): shifts logic update 2
438d61651c21526879bf856661d3a680ac6a8d79
--- .yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch --- package.json @@ -155,7 +155,7 @@ "@walmart/time-clock-mini-app-next": "2.812.1", "@walmart/topstock-mini-app": "1.22.3", "@walmart/translator-mini-app": "1.4.2", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.23.1%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fui-components%252F-%252F%2540walmart%252Fui-components-1.23.1.tgz#~/.yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "1.0.12", "@walmart/wfm-ui": "2.4.0", @@ -418,7 +418,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/moment-walmart": "1.0.4", "axios": "~1.6.0", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch", + "@walmart/ui-components": "1.23.1", "axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch", "axios-cache-interceptor": "patch:axios-cache-interceptor@npm%3A1.5.1#~/.yarn/patches/axios-cache-interceptor-npm-1.5.1-c84dd3f9ed.patch", "moment": "^2.29.4", --- yarn.lock @@ -9448,34 +9448,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.21.3": - version: 1.21.3 - resolution: "@walmart/ui-components@npm:1.21.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fui-components%2F-%2Fui-components-1.21.3.tgz" - peerDependencies: - "@react-navigation/stack": ">=6.1.0" - "@walmart/allspark-foundation": "*" - "@walmart/allspark-utils": ">=1.6.5" - "@walmart/gtp-shared-components": ">=2.0.0" - javascript-time-ago: ">=2.3.4" - react: "*" - react-hook-form: "*" - react-native: "*" - react-native-background-timer: ">=2.4.1" - react-native-calendars: "*" - react-native-elements: "*" - react-native-hyperlink: ">=0.0.19" - react-native-modal: ">=11.6.1" - react-native-reanimated: ">=1.13.2" - react-native-safe-area-context: ">=3.1.3" - react-native-vector-icons: ">=7.0.0" - react-native-webview: ">=10.10.2" - checksum: 10c0/aae1300cadc63f2d56bd32981c0684c07fb5e2d67a1ea7c037663fbd419909e738ce3d9ad83569318c66524282f60d27feab5559c4bcf42e886736000cddd711 - languageName: node - linkType: hard - -"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch": - version: 1.21.3 - resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.21.3%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fui-components%252F-%252Fui-components-1.21.3.tgz#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch::version=1.21.3&hash=66bb98" +"@walmart/ui-components@npm:1.23.1": + version: 1.23.1 + resolution: "@walmart/ui-components@npm:1.23.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fui-components%2F-%2F%40walmart%2Fui-components-1.23.1.tgz" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" @@ -9494,7 +9469,7 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/5d0a7ac7ad260ee997935fe24f5b41ce18c0ba15e17ace594a74f2c31c2114758b9915361edbfc8f40db863f31d5d7fb8030917dd026ad01daa8fd7c21ac0403 + checksum: 10c0/081d932ddc3ed38845e44f58c8e6ac5ab3e6449c3a076f9ba1f82f12dfbf10f08be44b2331a58d9375cd1d4a1d269a3ae356afebee7e93ee69ce37149d3eacce languageName: node linkType: hard
chore(update ui-componets lib): ALLSPARK-6091 update version readd patch
chore(update ui-componets lib): ALLSPARK-6091 update version readd patch
ba76c0e2852ae4eaee07205e44b3215f3eecd3aa
--- graphql.yml @@ -77,18 +77,18 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' tags: - 'v1' - - name: 'GetTeamsByStore' - hash: '0d9bcce8cdce8831861e22bd66c43d0891aef2304b2bab61e449c5570aa564d2' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql' - tags: - - 'v1' + # - name: 'GetTeamsByStore' + # hash: '0d9bcce8cdce8831861e22bd66c43d0891aef2304b2bab61e449c5570aa564d2' + # queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql' + # tags: + # - 'v1' - name: 'upsertAssociatePreference' hash: '972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036' queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql' tags: - 'v1' - - name: 'upsertManagerExperiencePreference' - hash: '04ddb3950c4b2aa3b360e762e055dc6928c916cb5234f592b8a7181ac4169bfb' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql' - tags: - - 'v1' + # - name: 'upsertManagerExperiencePreference' + # hash: '04ddb3950c4b2aa3b360e762e055dc6928c916cb5234f592b8a7181ac4169bfb' + # queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql' + # tags: + # - 'v1'
feat(ui): generate the query for get logged in user
feat(ui): generate the query for get logged in user
71ab0aace14dade8f11123273c73de09062447b3
--- core/__tests__/navigation/USHallway/PreHireHallwayNav/__snapshots__/PreHireHallwayNavTest.tsx.snap @@ -37,5 +37,13 @@ exports[`PreHireHallwayNav matches snapshot 1`] = ` } } /> + <Screen + name="paymentselection" + options={ + { + "headerShown": false, + } + } + /> </Navigator> `;
test updated snapshot
test updated snapshot
1400dd058ff36545d7a526c42913240333cbeb9b
--- package-lock.json @@ -4271,9 +4271,9 @@ "integrity": "sha512-7nXe02E/AOFtT1u6/tVerIskwWvSoJcMgYN2DNH7vMgbb0YIFOsqwzX+nbRh/AcaZhC7YX5H2irVCc6/5/HjJw==" }, "@walmart/metrics-mini-app": { - "version": "0.5.9", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.9.tgz", - "integrity": "sha512-sRoSZUpXwpiVa1eGXoi3KhfagkGbBJGQMg4yJggbXfb9+7CWixr9j4pt7m3CSzhQPc2nFLX3Kyx48r/5sBhmnw==", + "version": "0.5.10", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.10.tgz", + "integrity": "sha512-e8gXJyHmzHa/lVM0/xDQizLPfzvSXjsuUUAM6VFUJjuepYJXHLwuFtUmCHivV94ixWFnGBHGij1uOcEI2jyKyA==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "^1.1.2", --- package.json @@ -86,7 +86,7 @@ "@walmart/inbox-mini-app": "0.21.0", "@walmart/iteminfo-mini-app": "2.0.16", "@walmart/manager-approvals-miniapp": "0.0.58", - "@walmart/metrics-mini-app": "0.5.9", + "@walmart/metrics-mini-app": "0.5.10", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.39", "@walmart/react-native-env": "^0.2.0",
bumping metrics version
bumping metrics version
b6f33cb1808c97e06f4fd1ae9932fe91155ceda7
--- package-lock.json @@ -80,7 +80,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", "@walmart/taskit-mini-app": "0.49.12", - "@walmart/time-clock-mini-app": "2.34.0", + "@walmart/time-clock-mini-app": "2.43.0", "@walmart/ui-components": "1.10.0", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26", @@ -6035,7 +6035,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.34.0", + "version": "2.43.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.43.0.tgz", + "integrity": "sha512-loW3zkg39dlRRR5PvciZIS+xJvR79NvPknJZb6R3U5hAlf+tUWnQkSJqEzObJxZi7BWcCZYAQRqxoJAus9zLKg==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -25291,7 +25293,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.34.0", + "version": "2.43.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.43.0.tgz", + "integrity": "sha512-loW3zkg39dlRRR5PvciZIS+xJvR79NvPknJZb6R3U5hAlf+tUWnQkSJqEzObJxZi7BWcCZYAQRqxoJAus9zLKg==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -122,7 +122,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", "@walmart/taskit-mini-app": "0.49.12", - "@walmart/time-clock-mini-app": "2.34.0", + "@walmart/time-clock-mini-app": "2.43.0", "@walmart/ui-components": "1.10.0", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26",
Update time clock to 2.43.0
Update time clock to 2.43.0
9cddfa79e7e54da76d1a0944ce545f64bdff06cf
--- package-lock.json @@ -3635,9 +3635,9 @@ } }, "@walmart/ui-components": { - "version": "1.1.62", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.62.tgz", - "integrity": "sha512-oDDR9Pt0xYrYWkdNcy4dPOkAJwRIqPD6FF22cpA8/yHVf6+XsUxYqUUUAAscxOanYSQs5VLGR3XeUPgxJ/K+IQ==", + "version": "1.1.66", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.66.tgz", + "integrity": "sha512-68bSY2SjTmJCaLbD3gjxfWvMtpou8vd7L+ulRG3f/rETyCo3F6AbTKj9g4PnffQvOAxH675sOoR/kSHDi69o6w==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -98,7 +98,7 @@ "@walmart/settings-mini-app": "1.3.8", "@walmart/shelfavailability-mini-app": "0.3.99", "@walmart/time-clock-mini-app": "0.4.21", - "@walmart/ui-components": "1.1.62", + "@walmart/ui-components": "1.1.66", "@walmart/welcomeme-mini-app": "0.30.4", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
bumping up ui components version
bumping up ui components version
c767dba702a9f5dab017394bfe08138ed6edae80
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/Utils/sectionListData.ts @@ -1,9 +1,9 @@ import { isEmpty } from 'lodash'; -import { Area, MyAreaType, AreaTeamMap, Team } from '../types'; +import { Areas, MyAreaType, AreaTeamMap, Team } from '../types'; export function createSections( myArea: MyAreaType, - areas: Area, + areas: Areas, areaTeamMap: AreaTeamMap, primaryTeam?: Team ): {
Merge changes
Merge changes
e2b574ce792e3fa371f39f60fa07c857b2a2b13c
--- __tests__/navConfig/NavConfigSagasTest.ts @@ -37,6 +37,7 @@ import { getOriginalUserEmployeeType, getOriginalUserDomain, createRestartableSagas, + getIsPreHire, } from '../../src/redux'; import { getSiteConfigDivisonCode, @@ -171,16 +172,28 @@ describe('nav config sagas', () => { }); describe('fetchNavConfig', () => { + it('handles pre hire', () => { + const iterator = fetchNavConfig(); + expect(iterator.next().value).toEqual(select(getIsPreHire)); + expect(iterator.next(true).done).toEqual(true); + }); + it('handles nav config not initialized', () => { const iterator = fetchNavConfig(); - expect(iterator.next().value).toEqual(select(getNavConfigInitialized)); + expect(iterator.next().value).toEqual(select(getIsPreHire)); + expect(iterator.next(false).value).toEqual( + select(getNavConfigInitialized), + ); expect(iterator.next(false).done).toEqual(true); }); it('handles success', () => { const data = {}; const iterator = fetchNavConfig(); - expect(iterator.next().value).toEqual(select(getNavConfigInitialized)); + expect(iterator.next().value).toEqual(select(getIsPreHire)); + expect(iterator.next(false).value).toEqual( + select(getNavConfigInitialized), + ); expect(iterator.next(true).value).toEqual( put(NavConfigActionCreators.fetchProgress()), ); @@ -197,7 +210,10 @@ describe('nav config sagas', () => { it('handles failure', () => { const error = new Error('Something went wrong!'); const iterator = fetchNavConfig(); - expect(iterator.next().value).toEqual(select(getNavConfigInitialized)); + expect(iterator.next().value).toEqual(select(getIsPreHire)); + expect(iterator.next(false).value).toEqual( + select(getNavConfigInitialized), + ); expect(iterator.next(true).value).toEqual( put(NavConfigActionCreators.fetchProgress()), ); --- src/navConfig/NavConfigSagas.ts @@ -18,6 +18,7 @@ import { getUserSite, getOriginalUserEmployeeType, getOriginalUserDomain, + getIsPreHire, } from '../redux/UserSelector'; import {waitForSiteConfig, waitForUser} from '../redux/SharedSagas'; import { @@ -107,20 +108,24 @@ export function* getNavConfigScope(): any { * We don't want to fetch until nav config is initialized. */ export function* fetchNavConfig(): any { - try { - const initialized = yield select(getNavConfigInitialized); + const preHire = yield select(getIsPreHire); + + if (!preHire) { + try { + const initialized = yield select(getNavConfigInitialized); - if (initialized) { - yield put(NavConfigActionCreators.fetchProgress()); - const scope = yield call(getNavConfigScope); - const data = yield call(GlobalNavConfig.fetchConfig, scope); - yield put(NavConfigActionCreators.fetchSuccess(data)); + if (initialized) { + yield put(NavConfigActionCreators.fetchProgress()); + const scope = yield call(getNavConfigScope); + const data = yield call(GlobalNavConfig.fetchConfig, scope); + yield put(NavConfigActionCreators.fetchSuccess(data)); + } + } catch (error) { + yield put(NavConfigActionCreators.fetchError()); + logger?.error('Error fetching GlobalNavConfig', { + message: error.message, + }); } - } catch (error) { - yield put(NavConfigActionCreators.fetchError()); - logger?.error('Error fetching GlobalNavConfig', { - message: error.message, - }); } }
Skipping nav config fetch if pre hire
Skipping nav config fetch if pre hire
e9717d4b04b176419269884dec61645137be49bb
--- packages/me-at-walmart-container/__tests__/redux/site.test.ts @@ -3,7 +3,7 @@ import { updateSiteInfo, updateWorkingSiteInfo, } from '../../src/redux/site'; -import {all, call, select} from 'redux-saga/effects'; +import {call, select} from 'redux-saga/effects'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {SiteSelectors, SiteModule} from '@walmart/allspark-foundation/Site'; import {SiteLogger} from '../../src/common'; @@ -18,9 +18,8 @@ jest.mock('../../src/common', () => ({ describe('navConfig site test', () => { it('calls updateSiteInfo ', () => { const iterator = updateSiteInfo(); - expect(iterator.next().value).toEqual( - all([call(updateWorkingSiteInfo), call(updateHomeSiteInfo)]), - ); + expect(iterator.next().value).toEqual(call(updateWorkingSiteInfo)); + expect(iterator.next().value).toEqual(call(updateHomeSiteInfo)); expect(iterator.next().done).toEqual(true); }); --- packages/me-at-walmart-container/src/redux/site.ts @@ -1,4 +1,4 @@ -import {all, call, select} from 'redux-saga/effects'; +import {call, select} from 'redux-saga/effects'; import {SiteSelectors, Site, SiteModule} from '@walmart/allspark-foundation/Site'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {SiteLogger} from '../common'; @@ -63,5 +63,6 @@ export function* updateWorkingSiteInfo() { } export function* updateSiteInfo() { - yield all([call(updateWorkingSiteInfo), call(updateHomeSiteInfo)]); + yield call(updateWorkingSiteInfo) + yield call(updateHomeSiteInfo) }
fix(query): ALLSPARK-6926 fixed repeated api calling by making use of cache (#4818)
fix(query): ALLSPARK-6926 fixed repeated api calling by making use of cache (#4818) Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com> Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
72746ebd604ca4975e6fdc9ae58ea2a422f453d5
--- package-lock.json @@ -5312,9 +5312,9 @@ "integrity": "sha512-ORWg0JU/Uk0MU2Kr7JaoBNPgBp7vQG36bS32FK+iURdLg/iAaVSfII+LpiTmzINldVyacoPd5gTEklPKUH1N1A==" }, "@walmart/manager-approvals-miniapp": { - "version": "0.0.62", - "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.0.62.tgz", - "integrity": "sha512-3xZ9hyHPrhGO7U3wcjRlXJMHhyMht/WTeR+f3yw8b1B4uWmtlunXw7cqCqDz+Y2gPNr08/+hL5sY5T472CfnMg==" + "version": "0.1.0", + "resolved": "https://npme.walmart.com/@walmart/manager-approvals-miniapp/-/manager-approvals-miniapp-0.1.0.tgz", + "integrity": "sha512-DZAN5IZXt3Cz8amBJa6wn4tz4ZWN27cG0eQYPkjp+s+hHvW8kIh4HJAP2vpkH4RI3q6NyeGF1mACdUp4nCiSDg==" }, "@walmart/me-field-mini-app": { "version": "1.1.22", --- package.json @@ -96,7 +96,7 @@ "@walmart/ims-print-services-ui": "1.1.3", "@walmart/inbox-mini-app": "0.56.0", "@walmart/iteminfo-mini-app": "5.0.11", - "@walmart/manager-approvals-miniapp": "0.0.62", + "@walmart/manager-approvals-miniapp": "0.1.0", "@walmart/me-field-mini-app": "1.1.22", "@walmart/metrics-mini-app": "0.9.12", "@walmart/mod-flex-mini-app": "1.1.5",
Bump Manager Approvals Mini App
Bump Manager Approvals Mini App
ccd4d8289cc995c519c163a05a2cabc6c279ccf4
--- targets/US/package.json @@ -99,10 +99,10 @@ "@walmart/core-utils": "6.3.9", "@walmart/core-widget-registry": "workspace:^", "@walmart/counts-component-miniapp": "0.1.14", - "@walmart/digital-locks-mini-app": "1.1.5", + "@walmart/digital-locks-mini-app": "1.1.8", "@walmart/emergency-mini-app": "1.30.5", "@walmart/exception-mini-app": "1.8.11", - "@walmart/facilities-management-miniapp": "0.17.0", + "@walmart/facilities-management-miniapp": "0.18.1", "@walmart/feedback-all-spark-miniapp": "0.9.72", "@walmart/financial-wellbeing-feature-app": "1.29.2", "@walmart/functional-components": "~6.3.28", --- yarn.lock @@ -6708,9 +6708,9 @@ __metadata: languageName: node linkType: hard -"@walmart/digital-locks-mini-app@npm:1.1.5": - version: 1.1.5 - resolution: "@walmart/digital-locks-mini-app@npm:1.1.5" +"@walmart/digital-locks-mini-app@npm:1.1.8": + version: 1.1.8 + resolution: "@walmart/digital-locks-mini-app@npm:1.1.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fdigital-locks-mini-app%2F-%2F%40walmart%2Fdigital-locks-mini-app-1.1.8.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.0.0" expo: 50.0.17 @@ -6724,7 +6724,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/44ea38244b9966bdb77b3d7e16175d06c5415a827f64140cd72538d13ca39282aa8b8c22f09ad80ff702c54c121257170661aceb289b380a8b302d89be2abedb + checksum: 10c0/fbeb3318d9287cb597016f52182aa50baaca06969ad750e0e38c962bd4123e676a7803790c62bf1ab996b58cca9ea394610d2029f565eec163797e193a01dbe6 languageName: node linkType: hard @@ -6774,12 +6774,13 @@ __metadata: languageName: node linkType: hard -"@walmart/facilities-management-miniapp@npm:0.17.0": - version: 0.17.0 - resolution: "@walmart/facilities-management-miniapp@npm:0.17.0" +"@walmart/facilities-management-miniapp@npm:0.18.1": + version: 0.18.1 + resolution: "@walmart/facilities-management-miniapp@npm:0.18.1" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/b57f8bd194c854b2871f77947a18bf05aeacd3b71dc4dccea74385c65a15d9ea3b432a96428d533847346a3beab9417f2a806aea2c9037f08acf32954413ace0 + redux: "*" + checksum: 10c0/53eecff41e95ad31dce07643f14718f393ec4c2d89d99d314e00e36055e97f6423a78948812aaf69f82dace9e44ec90280ec2d7689a85333c1f9555e47e1feec languageName: node linkType: hard @@ -7428,10 +7429,10 @@ __metadata: "@walmart/core-utils": "npm:6.3.9" "@walmart/core-widget-registry": "workspace:^" "@walmart/counts-component-miniapp": "npm:0.1.14" - "@walmart/digital-locks-mini-app": "npm:1.1.5" + "@walmart/digital-locks-mini-app": "npm:1.1.8" "@walmart/emergency-mini-app": "npm:1.30.5" "@walmart/exception-mini-app": "npm:1.8.11" - "@walmart/facilities-management-miniapp": "npm:0.17.0" + "@walmart/facilities-management-miniapp": "npm:0.18.1" "@walmart/feedback-all-spark-miniapp": "npm:0.9.72" "@walmart/financial-wellbeing-feature-app": "npm:1.29.2" "@walmart/functional-components": "npm:~6.3.28"
bump digital locks to 1.1.8 and facilities-management to 0.18.1
bump digital locks to 1.1.8 and facilities-management to 0.18.1
8b82150dd7177fef65b809d2578c393fb822422c
--- packages/core-services-allspark/src/graphql/cache.ts @@ -10,17 +10,17 @@ const AllsparkTypePolicies: StrictTypedTypePolicies = { read(_, { args, toReference }) { return toReference({ __typename: 'Associate', - associateId: args?.id, + userId: args?.id.toUpperCase(), }); }, }, getTeamById: { // Transform query args into cache lookup - read(_, { args, toReference }) { + read(_, { variables, toReference }) { return toReference({ __typename: 'Team', - teamId: args?.teamId, - site: args?.storeNbr, + teamId: variables?.teamId, + site: variables?.storeNbr, }); }, }, @@ -30,7 +30,7 @@ const AllsparkTypePolicies: StrictTypedTypePolicies = { // Mutation: {}, // -- Type Policies for entities -- // Associate: { - keyFields: ['associateId'], + keyFields: ['userId'], merge: true, }, AssociateJobDetail: { @@ -61,7 +61,7 @@ const AllsparkTypePolicies: StrictTypedTypePolicies = { merge: true, }, MewAssociate: { - keyFields: ['associateId'], + keyFields: ['userId'], merge: true, }, MewTeam: {
fix: change associate key field to user id. align read reference lookup
fix: change associate key field to user id. align read reference lookup
96ccc77301e953477e9d119f84ec5f2760a71359
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/Tabs/MeStackNavTest.tsx @@ -1,7 +1,6 @@ import React from 'react'; import {create} from 'react-test-renderer'; -import { render } from '@testing-library/react-native'; -import {HomeHeaderRightContainer} from '@walmart/me-at-walmart-common'; +import {render} from '@testing-library/react-native'; import {MeStackNav} from '../../../../../src/navigation/USHallway/AssociateHallwayNav/Tabs/MeStackNav'; describe('MeStackNav', () => { @@ -19,8 +18,23 @@ describe('MeStackNav', () => { }); it('renders headerRight component with id="inbox"', () => { const component = render(<MeStackNav />); - const headerRightComponent = component.UNSAFE_root._fiber.child.pendingProps.screenOptions.headerRight(); + const headerRightComponent = + component.UNSAFE_root._fiber.child.pendingProps.screenOptions.headerRight(); expect(headerRightComponent).toBeTruthy(); - expect(headerRightComponent.props).toEqual(expect.objectContaining({ id: 'inbox' })); + const chatIconComponent = headerRightComponent.props.children.find( + (child: any) => child.props.id === 'wmConnect.ChatIcon', + ); + expect(chatIconComponent).toBeTruthy(); + expect(chatIconComponent.props).toEqual( + expect.objectContaining({id: 'wmConnect.ChatIcon'}), + ); + + const inboxComponent = headerRightComponent.props.children.find( + (child: any) => child.props.id === 'inbox', + ); + expect(inboxComponent).toBeTruthy(); + expect(inboxComponent.props).toEqual( + expect.objectContaining({id: 'inbox'}), + ); }); }); --- core/__tests__/navigation/USHallway/AssociateHallwayNav/Tabs/MyTeamStackNavTest.tsx @@ -5,6 +5,7 @@ import * as rosterMiniApp from '@walmart/roster-mini-app'; import {MyTeamStackNav} from '../../../../../src/navigation/USHallway/AssociateHallwayNav/Tabs/MyTeamStackNav'; import {HomeHeaderRightContainer} from '@walmart/me-at-walmart-common'; import {createStackNavigator} from '@react-navigation/stack'; +import {render} from '@testing-library/react-native'; const MyTeamStack = createStackNavigator(); @@ -41,9 +42,24 @@ describe('MyTeamStackNav', () => { }); it('renders headerRight component with id="wmConnect.ChatIcon" and id="inbox"', () => { const component = render(<MyTeamStackNav />); - const headerRightComponent = component.UNSAFE_root._fiber.child.pendingProps.screenOptions.headerRight(); + const headerRightComponent = + component.UNSAFE_root._fiber.child.pendingProps.screenOptions.headerRight(); expect(headerRightComponent).toBeTruthy(); - expect(headerRightComponent.props).toEqual(expect.objectContaining({ id: 'inbox' })); + const chatIconComponent = headerRightComponent.props.children.find( + (child: any) => child.props.id === 'wmConnect.ChatIcon', + ); + expect(chatIconComponent).toBeTruthy(); + expect(chatIconComponent.props).toEqual( + expect.objectContaining({id: 'wmConnect.ChatIcon'}), + ); + + const inboxComponent = headerRightComponent.props.children.find( + (child: any) => child.props.id === 'inbox', + ); + expect(inboxComponent).toBeTruthy(); + expect(inboxComponent.props).toEqual( + expect.objectContaining({id: 'inbox'}), + ); }); it('renders myTeam.root screen when showTeamHub is true', () => { jest.spyOn(myTeamMiniApp, 'useUserCanSeeTeamHub').mockReturnValue(true);
fix(ui): address review comments for renderCommnicationHeader and codeowner
fix(ui): address review comments for renderCommnicationHeader and codeowner
5f125047fff6921f21dd622638a625889719ab91
--- src/components/SearchHeader.tsx @@ -100,7 +100,7 @@ export const SearchHeaderBase = (props: StackHeaderProps) => { <TextInput style={styles.searchInputStyle} autoFocus={true} - placeholder={t('searchScreen.searchInputPlaceholder') as string} + placeholder={t('searchScreen.searchInputPlaceholder') as string} // TODO - strong type t and avoid type casting value={searchInput} onChangeText={updateSearchInput} testID='searchInput'
Adding TODO
Adding TODO
d8558ea35524692d40595ddcd5c46fd83df9d710
--- yarn.lock @@ -23320,11 +23320,11 @@ __metadata: "typescript@patch:typescript@npm%3A~5.8.3#optional!builtin<compat/typescript>": version: 5.8.3 - resolution: "typescript@patch:typescript@npm%3A5.8.3%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Ftypescript%252F-%252Ftypescript-5.8.3.tgz#optional!builtin<compat/typescript>::version=5.8.3&hash=379a07" + resolution: "typescript@patch:typescript@npm%3A5.8.3%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Ftypescript%252F-%252Ftypescript-5.8.3.tgz#optional!builtin<compat/typescript>::version=5.8.3&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/92ea03509e06598948559ddcdd8a4ae5a7ab475766d5589f1b796f5731b3d631a4c7ddfb86a3bd44d58d10102b132cd4b4994dda9b63e6273c66d77d6a271dbd + checksum: 10c0/39117e346ff8ebd87ae1510b3a77d5d92dae5a89bde588c747d25da5c146603a99c8ee588c7ef80faaf123d89ed46f6dbd918d534d641083177d5fac38b8a1cb languageName: node linkType: hard
feat(header): replace yarn.lock
feat(header): replace yarn.lock
7624401d06e3ec2b594ad05784e2dfa0195032fc
--- ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision Binary files a/ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision and b/ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision differ
updated provisioning profile.
updated provisioning profile.
cb1013545aa449b1720c9ef4a37885cc9eb4a0f1
--- src/navigation/ErrorLogBoundary.ts @@ -1,6 +1,7 @@ import {Component, PropsWithChildren} from 'react'; import {Logger} from '../core/Logger'; import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; +import { EnvironmentSelectors } from "@walmart/allspark-foundation/Environment"; export class ErrorLogBoundary extends Component<PropsWithChildren<{}>> { componentDidCatch(e: Error) { @@ -8,7 +9,7 @@ export class ErrorLogBoundary extends Component<PropsWithChildren<{}>> { message: e.message, }); const deploymentEnv = - AllsparkReduxStore.getState()?.environment?.deployment; + AllsparkReduxStore.select(EnvironmentSelectors.getState).deployment; // We will let app crash by rethrowing the error if (deploymentEnv !== 'prod') { throw new Error(e.message); --- src/settings/versions/utils.ts @@ -70,12 +70,12 @@ export const sortByTitle = ( ) => aTitle.localeCompare(bTitle); //moving memoize to this function instead -export const getVersionData = memoize(() => { +export const getVersionData = () => { return Object.keys(ALL_DEPENDENCIES) .filter(shouldBeListed) .map(createPackageDetails) .sort(sortByTitle); -}); +}; // Calculate once per session export const getVersionSectionList = () => [
update error boundary and remove memoize
update error boundary and remove memoize
daa6574557c14680188e3e6bc14221526310671e
--- src/home/components/GreetingRowV2/mockData.tsx @@ -2,9 +2,9 @@ export const mockData = { 'getAssociateById': { 'associateId': '226636520', 'birthDate': { - 'raw': '1992-05-27', + 'raw': '1992-07-10', 'date': { - 'month': 2, + 'month': 7, 'day': 10 } }, @@ -12,7 +12,7 @@ export const mockData = { 'firstName': 'GLORIA', 'fullName': 'PANTOJA, GLORIA', 'lastName': 'PANTOJA', - 'hireDate': '2010-07-10', + 'hireDate': '2010-07-12', 'punch': { 'lastPunchTime': '2025-05-16 13:43:10', 'lastPunchType': '2',
feat(header): build for birthday
feat(header): build for birthday
0c12090631c2653702c1bf1d43593c5329efca9a
--- core/__tests__/features/welcomeMeTest.ts @@ -2,7 +2,7 @@ import {WelcomeMeFeature} from '../../src/features/welcomeMe'; describe('WelcomeMeFeature', () => { it('should have the correct name', () => { - expect(WelcomeMeFeature.name).toBe('Temporary WelcomeMe'); + expect(WelcomeMeFeature.name).toBe('WelcomeMe'); }); it('has expected screen components', () => {
chore: temp change to build metrics in looper
chore: temp change to build metrics in looper
1ca9caff12e7d4d576488d6098d694cef94d22f1
--- packages/allspark-foundation/src/Redux/client.ts @@ -77,10 +77,12 @@ export class ReduxStoreClient { return this._rootReducer(nextState, action); }, middleware: (getDefaultMiddleware) => + // https://redux-toolkit.js.org/api/getDefaultMiddleware#included-default-middleware getDefaultMiddleware({ thunk: true, immutableCheck: false, serializableCheck: false, + actionCreatorCheck: true, }).concat(this._middleware), });
feat: enable action creator check middleware by default
feat: enable action creator check middleware by default
ae0f3f3c783bbca34ef23fe1f92292fee53523a1
--- packages/allspark-foundation-hub/src/HubFeature/Store/HubHeader/styles.ts @@ -1,12 +1,16 @@ import { StyleSheet } from 'react-native'; import { colors } from '@walmart/gtp-shared-components'; -export const HeaderStyles = (backgroundColor?: string, textColor?: string) => +export const HeaderStyles = ( + backgroundColor?: string, + textColor?: string, + noPadding?: boolean +) => StyleSheet.create({ container: { backgroundColor: backgroundColor ?? colors.blue['100'], flexDirection: 'column', - padding: 16, + padding: noPadding ? 0 : 16, }, title: { color: textColor ?? colors.white,
Adding noPadding to the styles
Adding noPadding to the styles
269c2b22fbea51957c9c32733ef025d33126d431
--- src/hooks/roster.ts @@ -21,6 +21,7 @@ import {logger} from '../common/logger'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; import {ApolloError} from '@apollo/client'; +import {TOTAL_STORE_TEAM_ID} from '../common/constants'; export const useDailyRoster = (shouldSkipQuery: boolean = false) => { const [error, setError] = useState<any>(undefined); @@ -73,7 +74,7 @@ export const useGetTeamById = (teamId: string) => { ); const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC); const envConfig = useEnvironment(); - const isTeamIdTotal = teamId === 'total'; + const isTeamIdTotal = teamId === TOTAL_STORE_TEAM_ID; return useGetTeamByIdQuery({ variables: {
Addressing comments
Addressing comments
72532b45afcf68f1cd09aad7eccd36eeefc987a7
--- package.json @@ -108,7 +108,7 @@ "@walmart/iteminfo-mini-app": "7.8.3", "@walmart/learning-mini-app": "18.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", - "@walmart/metrics-mini-app": "0.19.3", + "@walmart/metrics-mini-app": "0.19.4", "@walmart/mod-flex-mini-app": "1.14.6", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.0.14",
metrics version bump for drop 19
metrics version bump for drop 19
4858a75e06e4168df70a31842072fed850c71a40
--- __tests__/managerExperience/components/FilterChipHeader.test.tsx @@ -4,7 +4,6 @@ import {FilterChipHeader} from '../../../src/managerExperience/components/Filter describe('FilterChipHeader Component', () => { const props = { - headerText: 'Test Label', numberOfAssociates: 42, }; @@ -12,7 +11,7 @@ describe('FilterChipHeader Component', () => { const {getByTestId, toJSON} = render(<FilterChipHeader {...props} />); //Check for the text elements by testID - const headerTextElement = getByTestId('headerText'); + const headerTextElement = getByTestId('filter-chip-header'); const numberOfAssociatesElement = getByTestId('numberOfAssociates'); expect(headerTextElement).toBeTruthy(); @@ -23,27 +22,22 @@ describe('FilterChipHeader Component', () => { it('applies the correct accessibility labels', () => { const {getByLabelText} = render(<FilterChipHeader {...props} />); - const headerTextElement = getByLabelText(props.headerText); const numberOfAssociatesElement = getByLabelText( props.numberOfAssociates.toString(), ); - expect(headerTextElement).toBeTruthy(); expect(numberOfAssociatesElement).toBeTruthy(); }); it('renders correctly with different props', () => { const newProps = { - headerText: 'New Label', numberOfAssociates: 100, }; const {getByTestId, toJSON} = render(<FilterChipHeader {...newProps} />); //Check for the text elements by testID - const headerTextElement = getByTestId('headerText'); const numberOfAssociatesElement = getByTestId('numberOfAssociates'); - expect(headerTextElement).toBeTruthy(); expect(numberOfAssociatesElement).toBeTruthy(); expect(toJSON()).toMatchSnapshot(); }); --- __tests__/managerExperience/components/__snapshots__/FilterChipHeader.test.tsx.snap @@ -10,7 +10,7 @@ exports[`FilterChipHeader Component renders correctly with different props 1`] = } > <Text - accessibilityLabel="New Label" + accessibilityLabel="rosterScreen.filterChipHeader" style={ { "color": "#2e2f32", @@ -20,9 +20,9 @@ exports[`FilterChipHeader Component renders correctly with different props 1`] = "marginRight": 6, } } - testID="headerText" + testID="filter-chip-header" > - New Label + rosterScreen.filterChipHeader </Text> <Text accessibilityLabel="100" @@ -53,7 +53,7 @@ exports[`FilterChipHeader Component renders correctly with given label and sched } > <Text - accessibilityLabel="Test Label" + accessibilityLabel="rosterScreen.filterChipHeader" style={ { "color": "#2e2f32", @@ -63,9 +63,9 @@ exports[`FilterChipHeader Component renders correctly with given label and sched "marginRight": 6, } } - testID="headerText" + testID="filter-chip-header" > - Test Label + rosterScreen.filterChipHeader </Text> <Text accessibilityLabel="42" --- src/managerExperience/components/FilterChipHeader/FilterChipHeader.tsx @@ -1,19 +1,21 @@ import React from 'react'; +import {useTranslation} from 'react-i18next'; +import {MANAGER_EXPERIENCE_NAMESPACE} from '../../translations'; import {FilterChipHeaderProps} from './types'; import {Text, View} from 'react-native'; import {FilterChipHeaderStyles as styles} from './style'; export const FilterChipHeader = ({ - headerText, numberOfAssociates, }: FilterChipHeaderProps) => { + const {t} = useTranslation([MANAGER_EXPERIENCE_NAMESPACE]); return ( <View style={styles.container}> <Text style={styles.headerText} - accessibilityLabel={headerText} - testID='headerText'> - {headerText} + accessibilityLabel={t('rosterScreen.filterChipHeader')} + testID='filter-chip-header'> + {t('rosterScreen.filterChipHeader')} </Text> <Text style={styles.numberOfAssociates} --- src/managerExperience/components/FilterChipHeader/types.ts @@ -1,4 +1,3 @@ export interface FilterChipHeaderProps { - headerText: string; numberOfAssociates: number; } --- src/managerExperience/translations/en-US.ts @@ -1 +1,3 @@ -export const enUS = {}; +export const enUS = { + filterChipHeader: "Today's roster", +}; --- src/managerExperience/translations/es-MX.ts @@ -1 +1,3 @@ -export const esMX = {}; +export const esMX = { + filterChipHeader: 'Lista de hoy', +};
feat: updated translations and tests
feat: updated translations and tests
f7c63d1de22c81bfcf179b32c941fc7815058904
--- package.json @@ -88,7 +88,7 @@ "@walmart/counts-component-miniapp": "0.1.4", "@walmart/emergency-mini-app": "1.24.1", "@walmart/exception-mini-app": "1.2.30", - "@walmart/facilities-management-miniapp": "0.6.31", + "@walmart/facilities-management-miniapp": "0.6.36-beta2", "@walmart/feedback-all-spark-miniapp": "0.9.32", "@walmart/financial-wellbeing-feature-app": "1.6.3", "@walmart/functional-components": "~4.0.3",
Update package.json
Update package.json
ee0360f30aab83898939c2a67e6832b697078216
--- package-lock.json @@ -52,7 +52,7 @@ "@walmart/checkout-mini-app": "3.14.0", "@walmart/compass-sdk-rn": "5.19.3", "@walmart/config-components": "4.4.0", - "@walmart/copilot-mini-app": "3.92.9", + "@walmart/copilot-mini-app": "3.92.10", "@walmart/core-services": "6.0.16", "@walmart/core-services-allspark": "6.0.16", "@walmart/core-utils": "6.0.16", @@ -11257,9 +11257,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "3.92.9", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.9.tgz", - "integrity": "sha512-LUkvkb+rSyWDw1xd1zfbUAKmj2c5JLQp8ZG/AkyUxwDrWgitOjWxkZadmMzCp2B7NZbGcuHbwJ3AkDyaNlJhWA==", + "version": "3.92.10", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.92.10.tgz", + "integrity": "sha512-wSAfpr4qrk+fawU4mxz2gsTdIWxBbUOZyBerYQHeE0EIPpDGLpvoSpT0kybPHrSs8UPvF1WfT7fCLecUeH5hVQ==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0",
feat: adding package lock changes
feat: adding package lock changes
90c671ba1286719c51e2c6157871023a24ba5ff9
--- ios/Podfile.lock @@ -1287,4 +1287,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 5d9ba60be3dfb87f4278eff1d4ebb95b0c7dbcf4 -COCOAPODS: 1.11.3 \ No newline at end of file +COCOAPODS: 1.11.3
Update Podfile.lock
Update Podfile.lock
2090ac9b258a73110e4038a687aceca14214ee7a
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.25.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.0...@walmart/allspark-foundation-hub@1.25.1) (2025-12-01) + +### Bug Fixes + +- **hub:** team selection top padding ([#493](https://gecgithub01.walmart.com/allspark/allspark/issues/493)) ([2723f85](https://gecgithub01.walmart.com/allspark/allspark/commit/2723f85133d3ac8187a17de9c5fcd75f1ed8c8fc)) + # [1.25.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.24.14...@walmart/allspark-foundation-hub@1.25.0) (2025-12-01) ### Features --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.25.0", + "version": "1.25.1", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-athena-queries/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. +## [6.37.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.37.1...@walmart/me-at-walmart-athena-queries@6.37.2) (2025-12-01) + +### Bug Fixes + +- **hub:** team selection top padding ([#493](https://gecgithub01.walmart.com/allspark/allspark/issues/493)) ([2723f85](https://gecgithub01.walmart.com/allspark/allspark/commit/2723f85133d3ac8187a17de9c5fcd75f1ed8c8fc)) + ## [6.37.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.37.0...@walmart/me-at-walmart-athena-queries@6.37.1) (2025-11-12) **Note:** Version bump only for package @walmart/me-at-walmart-athena-queries --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "6.37.1", + "version": "6.37.2", "description": "> TODO: description", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.5.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.5.0...@walmart/my-walmart-hub@1.5.1) (2025-12-01) + +### Bug Fixes + +- **hub:** team selection top padding ([#493](https://gecgithub01.walmart.com/allspark/allspark/issues/493)) ([2723f85](https://gecgithub01.walmart.com/allspark/allspark/commit/2723f85133d3ac8187a17de9c5fcd75f1ed8c8fc)) +- **hub:** updated header styling for android ([#502](https://gecgithub01.walmart.com/allspark/allspark/issues/502)) ([c504e4c](https://gecgithub01.walmart.com/allspark/allspark/commit/c504e4c5274667d6789e40aeec7521268afaf10e)) + # [1.5.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.4.14...@walmart/my-walmart-hub@1.5.0) (2025-12-01) ### Features --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.5.0", + "version": "1.5.1", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.25.1 - @walmart/me-at-walmart-athena-queries@6.37.2 - @walmart/my-walmart-hub@1.5.1
13a1085c9914d62f58059b50ef67de487a28d3eb
--- android/app/src/main/res/raw/clockfailure.mp3 Binary files /dev/null and b/android/app/src/main/res/raw/clockfailure.mp3 differ --- android/app/src/main/res/raw/clockin.mp3 Binary files /dev/null and b/android/app/src/main/res/raw/clockin.mp3 differ --- android/app/src/main/res/raw/clockout.mp3 Binary files /dev/null and b/android/app/src/main/res/raw/clockout.mp3 differ --- ios/AllSpark.xcodeproj/project.pbxproj @@ -28,6 +28,9 @@ 9DAAFC32260A8C2900AE7889 /* LaunchScreen-Dev.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DAAFC30260A8C2900AE7889 /* LaunchScreen-Dev.storyboard */; }; 9DAAFC33260A8C2900AE7889 /* LaunchScreen-Beta.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9DAAFC31260A8C2900AE7889 /* LaunchScreen-Beta.storyboard */; }; 9F4DC07684EF306CE59EB89D /* Pods_AllSpark.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7667D95772601C361F753B51 /* Pods_AllSpark.framework */; }; + E9AD4B182679309900D8DDD4 /* clockin.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B152679309900D8DDD4 /* clockin.mp3 */; }; + E9AD4B192679309900D8DDD4 /* clockout.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B162679309900D8DDD4 /* clockout.mp3 */; }; + E9AD4B1A2679309900D8DDD4 /* clockfailure.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */; }; F0C92FC2252B9F1E000B5582 /* Temp.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0C92FC1252B9F1E000B5582 /* Temp.swift */; }; F0F40C0D24DDA8F00001739F /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = F0F40C0C24DDA8F00001739F /* GoogleService-Info.plist */; }; /* End PBXBuildFile section */ @@ -55,6 +58,9 @@ 9D01483625F17B3000A8E049 /* LaunchScreen-Prod.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = "LaunchScreen-Prod.storyboard"; path = "AllSpark/LaunchScreen-Prod.storyboard"; sourceTree = "<group>"; }; 9DAAFC30260A8C2900AE7889 /* LaunchScreen-Dev.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = "LaunchScreen-Dev.storyboard"; path = "AllSpark/LaunchScreen-Dev.storyboard"; sourceTree = "<group>"; }; 9DAAFC31260A8C2900AE7889 /* LaunchScreen-Beta.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = "LaunchScreen-Beta.storyboard"; path = "AllSpark/LaunchScreen-Beta.storyboard"; sourceTree = "<group>"; }; + E9AD4B152679309900D8DDD4 /* clockin.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockin.mp3; sourceTree = "<group>"; }; + E9AD4B162679309900D8DDD4 /* clockout.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockout.mp3; sourceTree = "<group>"; }; + E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockfailure.mp3; sourceTree = "<group>"; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; EDF1F07502E7BA4BECB2DDB2 /* Pods-AllSpark-AllSparkTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark-AllSparkTests.release.xcconfig"; path = "Target Support Files/Pods-AllSpark-AllSparkTests/Pods-AllSpark-AllSparkTests.release.xcconfig"; sourceTree = "<group>"; }; @@ -109,6 +115,9 @@ 06FF016091624EA0B919BA1E /* Resources */ = { isa = PBXGroup; children = ( + E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */, + E9AD4B152679309900D8DDD4 /* clockin.mp3 */, + E9AD4B162679309900D8DDD4 /* clockout.mp3 */, 7E03751FFBC04D1E977A672C /* icomoon.ttf */, 4120FE278C5A4EFEB2622758 /* DIGIMark-custom.ttf */, ); @@ -282,11 +291,13 @@ 31E1724B255A601A0039C18F /* Bogle-Regular.otf in Resources */, 31E17247255A601A0039C18F /* Bogle-Light.otf in Resources */, 31E17248255A601A0039C18F /* Bogle-LightItalic.otf in Resources */, + E9AD4B182679309900D8DDD4 /* clockin.mp3 in Resources */, 31E17249255A601A0039C18F /* Bogle-Medium.otf in Resources */, 31C9750725D6BD2F00044347 /* icomoon.ttf in Resources */, 31E17243255A601A0039C18F /* Bogle-Black.otf in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 31E17244255A601A0039C18F /* Bogle-BlackItalic.otf in Resources */, + E9AD4B1A2679309900D8DDD4 /* clockfailure.mp3 in Resources */, 9D01483725F17B3100A8E049 /* LaunchScreen-Prod.storyboard in Resources */, 31E17246255A601A0039C18F /* Bogle-BoldItalic.otf in Resources */, 31E17245255A601A0039C18F /* Bogle-Bold.otf in Resources */, @@ -295,6 +306,7 @@ 9DAAFC32260A8C2900AE7889 /* LaunchScreen-Dev.storyboard in Resources */, 31E1724D255A601A0039C18F /* Bogle-Thin.otf in Resources */, 31E1724E255A601A0039C18F /* Bogle-ThinItalic.otf in Resources */, + E9AD4B192679309900D8DDD4 /* clockout.mp3 in Resources */, 8081353125433D1300844649 /* PTMono-Regular.ttf in Resources */, 9DAAFC33260A8C2900AE7889 /* LaunchScreen-Beta.storyboard in Resources */, ); --- ios/clockfailure.mp3 Binary files /dev/null and b/ios/clockfailure.mp3 differ --- ios/clockin.mp3 Binary files /dev/null and b/ios/clockin.mp3 differ --- ios/clockout.mp3 Binary files /dev/null and b/ios/clockout.mp3 differ --- package-lock.json @@ -12355,6 +12355,11 @@ "resolved": "https://npme.walmart.com/react-native-sha256/-/react-native-sha256-1.3.6.tgz", "integrity": "sha512-uS77ZQn9Z1l7ZYbZkxDsS8oP8VhO0pXqC3Os0rI7HLYG2PUiThMg/sbjskzsl3KZ2Cfvw9mA7RE86hHxGQ63QA==" }, + "react-native-sound-player": { + "version": "0.10.9", + "resolved": "https://npme.walmart.com/react-native-sound-player/-/react-native-sound-player-0.10.9.tgz", + "integrity": "sha512-ASsSbKuFa2TMVb2cB1ITWx9FadVHnqE4oGuMq8fQMnRFENqANK5oroc0GwUeYtKHHa8iXma4Sdj2cntscQ/H1w==" + }, "react-native-splash-screen": { "version": "3.2.0", "resolved": "https://npme.walmart.com/react-native-splash-screen/-/react-native-splash-screen-3.2.0.tgz", --- package.json @@ -117,6 +117,7 @@ "react-native-safe-area-context": "^3.1.3", "react-native-screens": "^2.10.1", "react-native-sha256": "^1.3.6", + "react-native-sound-player": "0.10.9", "react-native-splash-screen": "^3.2.0", "react-native-ssmp-sso-allspark": "1.1.0", "react-native-sumo-sdk": "^2.7.4-rc.9", @@ -223,4 +224,4 @@ "pre-push": "npm run coverage" } } -} \ No newline at end of file +}
Add clocking sound files and library.
Add clocking sound files and library.
9bb89ac6988581225b4a239f3182b9fa7b2c041f
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 58 + versionCode 59 versionName "1.0.4" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>58</string> + <string>59</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>58</string> + <string>59</string> </dict> </plist>
Incrementing build number
Incrementing build number
41b84e7f9ac40a904fdda05032811537089fcd65
--- package.json @@ -81,7 +81,7 @@ "@walmart/redux-store": "^1.0.12", "@walmart/schedule-mini-app": "0.2.75", "@walmart/settings-mini-app": "1.2.3", - "@walmart/time-clock-mini-app": "0.3.1", + "@walmart/time-clock-mini-app": "0.3.2", "@walmart/ui-components": "1.1.14", "@walmart/welcomeme-mini-app": "0.5.27", "@walmart/wfm-ui": "^0.1.50",
Bump Time Clock Mini App Version
Bump Time Clock Mini App Version
2d8b4a1701c71371b13526b8d09c1ab3700c6137
--- packages/allspark-foundation-hub/src/HubFeature/Redux/selectors.ts @@ -1,5 +1,12 @@ -import { generateSelectorsForSlice } from '@walmart/allspark-foundation/Redux'; +import { + IAllsparkReduxState, + generateSelectorsForSlice, +} from '@walmart/allspark-foundation/Redux'; import { managerExperienceSlice } from './reducer'; +import { LoggerService } from '@walmart/allspark-foundation/Logger'; +import { isNil } from 'lodash'; +import { createSelector } from '@reduxjs/toolkit'; +import { CCMFallbacks } from '../ccmFallbacks'; /** * A collection of selectors for retrieving cafe data from the Redux store. @@ -9,3 +16,166 @@ import { managerExperienceSlice } from './reducer'; export const ManagerExperienceSelectors = generateSelectorsForSlice( managerExperienceSlice ); + +const logger = LoggerService.getContainerInstance(); + +export const getCCMBooleanStr = ( + ccmProperty: string | number | boolean | undefined, + ccmFallback: boolean +) => { + return !isNil(ccmProperty) + ? ccmProperty?.toString()?.toLowerCase() === 'true' + : ccmFallback; +}; + +export const getManagerExperienceConfigData = (state: IAllsparkReduxState) => { + try { + return ( + state.appConfig.data?.['manager-experience'] || + ({} as IAllsparkReduxState['appConfig']['data']) + ); + } catch (error) { + logger.error('Manager experience config error', { + message: `error in fetching texting app config data: ${error}`, + }); + } +}; + +export const addOrEditButtonOnTeamSwitcherEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showAddOrEditButtonOnTeamSwitcher, + CCMFallbacks.showAddOrEditButtonOnTeamSwitcher + ) +); + +export const hubHeaderEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => getCCMBooleanStr(state?.showHubHeader, CCMFallbacks.showHubHeader) +); + +export const hubOnboardingEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr(state?.showHubOnboarding, CCMFallbacks.showHubOnboarding) +); + +export const hubOnboardingSuccessBottomSheetEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showHubOnboardingSuccessBottomSheet, + CCMFallbacks.showHubOnboardingSuccessBottomSheet + ) +); + +export const hubTeamsUpdatedBottomSheetEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showHubTeamsUpdatedBottomSheet, + CCMFallbacks.showHubTeamsUpdatedBottomSheet + ) +); + +export const hubTeamsUpdatedErrorBottomSheetEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showHubTeamsUpdatedErrorBottomSheet, + CCMFallbacks.showHubTeamsUpdatedErrorBottomSheet + ) +); + +export const myTeamsOnTeamSwitcherEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showMyTeamsOnTeamSwitcher, + CCMFallbacks.showMyTeamsOnTeamSwitcher + ) +); + +export const primaryTeamChipEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showPrimaryTeamChip, + CCMFallbacks.showPrimaryTeamChip + ) +); + +export const primaryTeamOnTeamSwitcherEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showPrimaryTeamOnTeamSwitcher, + CCMFallbacks.showPrimaryTeamOnTeamSwitcher + ) +); + +export const selectAllOptionEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showSelectAllOption, + CCMFallbacks.showSelectAllOption + ) +); + +export const selectedTeamPreferenceOnTeamSwitcherEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showSelectedTeamPreferenceOnTeamSwitcher, + CCMFallbacks.showSelectedTeamPreferenceOnTeamSwitcher + ) +); + +export const selectionBannerFooterEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showSelectionBannerFooter, + CCMFallbacks.showSelectionBannerFooter + ) +); + +export const teamImageEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => getCCMBooleanStr(state?.showTeamImage, CCMFallbacks.showTeamImage) +); + +export const teamSelectionCheckboxEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showTeamSelectionCheckbox, + CCMFallbacks.showTeamSelectionCheckbox + ) +); + +export const teamSelectionHeaderEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showTeamSelectionHeader, + CCMFallbacks.showTeamSelectionHeader + ) +); + +export const teamSwitcherEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr(state?.showTeamSwitcher, CCMFallbacks.showTeamSwitcher) +); + +export const totalStoreOnTeamSwitcherEnabled = createSelector( + [getManagerExperienceConfigData], + (state) => + getCCMBooleanStr( + state?.showTotalStoreOnTeamSwitcher, + CCMFallbacks.showTotalStoreOnTeamSwitcher + ) +); --- packages/allspark-foundation-hub/src/HubFeature/ccmFallbacks.ts @@ -0,0 +1,19 @@ +export const CCMFallbacks = { + showAddOrEditButtonOnTeamSwitcher: true, + showHubHeader: true, + showHubOnboarding: true, + showHubOnboardingSuccessBottomSheet: true, + showHubTeamsUpdatedBottomSheet: true, + showHubTeamsUpdatedErrorBottomSheet: true, + showMyTeamsOnTeamSwitcher: true, + showPrimaryTeamChip: true, + showPrimaryTeamOnTeamSwitcher: true, + showSelectAllOption: true, + showSelectedTeamPreferenceOnTeamSwitcher: true, + showSelectionBannerFooter: true, + showTeamImage: true, + showTeamSelectionCheckbox: true, + showTeamSelectionHeader: true, + showTeamSwitcher: true, + showTotalStoreOnTeamSwitcher: true, +};
Add ccm config props for manager experience
Add ccm config props for manager experience
f0cc04cf82d12169fc5b1ddd1b04c26a0e9932d5
--- src/auth/ErrorScreen.tsx @@ -55,7 +55,8 @@ export const ErrorScreen: FC<any> = (props) => { ); const [otherErrorFb, setOtherErrorFb] = useState(initialConfig.otherIssues); const [selectedOther, setSelectedOther] = useState({}); - const [formatedMsgOther, setFormatedOther] = useState([[]]); + const [formatedMsgOther, setFormatedOther] = useState([]); + const [deviceType, setDeviceType] = useState({}); const userIdValid = !formDirty || !!userId; const siteIdValid = !formDirty || !!siteId; @@ -98,7 +99,7 @@ export const ErrorScreen: FC<any> = (props) => { errorCategory: errorCategory[lang], }; if (errorCategory[lang] === translate('ssoError.other')) { - // Todo: logMsg.devicetype = devicetype from formatedMsgOther; + logMsg.devicetype = deviceType; logMsg.options = flatten(Object.values(formatedMsgOther)); } navigation.goBack(); @@ -121,12 +122,17 @@ export const ErrorScreen: FC<any> = (props) => { optionList: Array, title: string, selectedList: Array<string>, + code: string, ) => { const selectedOption = selectedList.map((opnId) => ({ value: optionList[opnId].label, code: optionList[opnId].code, })); - setFormatedOther({...formatedMsgOther, [title]: selectedOption}); + if (code === 'DEVICETYPE') { + setDeviceType(selectedOption); + } else { + setFormatedOther({...formatedMsgOther, [title]: selectedOption}); + } }; const getOptions = (list: Array<Lang>) => { @@ -248,7 +254,7 @@ export const ErrorScreen: FC<any> = (props) => { selectedIds={selectedOther[title]} onSelect={(id) => { setSelectedOther({...selectedOther, [title]: id}); - updateFormatedOther(items, title, id); + updateFormatedOther(items, title, id, question?.code); }} /> ) : ( @@ -257,7 +263,12 @@ export const ErrorScreen: FC<any> = (props) => { selectedId={selectedOther[title]} onSelect={(id) => { setSelectedOther({...selectedOther, [title]: id}); - updateFormatedOther(items, title, [id]); + updateFormatedOther( + items, + title, + [id], + question?.code, + ); }} /> )} --- src/auth/constants.ts @@ -103,6 +103,7 @@ export const defaultConfig = { }, { componentType: 'radio', + code: 'DEVICETYPE', title: { 'en-US': 'What type of device were you using?', 'es-MX': '¿Qué tipo de dispositivo estabas utilizando?',
deviceType added in the log
deviceType added in the log
20f3f366cbeb16d37b43f5433bec866006dfb51e
--- package.json @@ -148,7 +148,7 @@ "@walmart/perf-pay-mini-app": "0.7.204", "@walmart/persona-hub": "0.8.1", "@walmart/price-changes-mini-app": "1.16.17", - "@walmart/profile-feature-app": "2.157.1-UPV2MyWalmart.0", + "@walmart/profile-feature-app": "2.157.2-UPV2MyWalmart.0", "@walmart/react-native-barcode-builder": "^1.0.1", "@walmart/react-native-cookies": "1.0.1", "@walmart/react-native-encrypted-storage": "~1.1.3", --- src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -54,7 +54,7 @@ import BeneficiaryOnlineFeature from '@walmart/beneficiary-online-mini-app'; import TimeClockMiniApp from '@walmart/time-clock-mini-app'; import TimeSheetFeatureApp from '@walmart/timesheet-feature-app'; import {UPV2FeatureModule} from '@walmart/profile-feature-app'; -import {useAllsparkTranslation} from '@walmart/allspark-foundation'; +import {AllsparkTranslationClient, useAllsparkTranslation} from '@walmart/allspark-foundation'; import rosterFeature from '@walmart/roster-mini-app'; import myTeamFeature from '@walmart/myteam-mini-app'; import celebrationFeature from '@walmart/celebration-mini-app'; @@ -228,7 +228,8 @@ export const MainStackNav = () => { name='me.root' component={ProtectedMeMiniApp} options={{ - title: t('navigation.me'), + // TODO: Determine why t('navigation.me') does not work here when MyWalmartV2 is enabled + title: AllsparkTranslationClient.t('navigation.me'), }} /> </> --- yarn.lock @@ -8886,7 +8886,7 @@ __metadata: "@walmart/perf-pay-mini-app": "npm:0.7.204" "@walmart/persona-hub": "npm:0.8.1" "@walmart/price-changes-mini-app": "npm:1.16.17" - "@walmart/profile-feature-app": "npm:2.157.1-UPV2MyWalmart.0" + "@walmart/profile-feature-app": "npm:2.157.2-UPV2MyWalmart.0" "@walmart/react-native-barcode-builder": "npm:^1.0.1" "@walmart/react-native-cookies": "npm:1.0.1" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" @@ -9390,9 +9390,9 @@ __metadata: languageName: node linkType: hard -"@walmart/profile-feature-app@npm:2.157.1-UPV2MyWalmart.0": - version: 2.157.1-UPV2MyWalmart.0 - resolution: "@walmart/profile-feature-app@npm:2.157.1-UPV2MyWalmart.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprofile-feature-app%2F-%2F%40walmart%2Fprofile-feature-app-2.157.1-UPV2MyWalmart.0.tgz" +"@walmart/profile-feature-app@npm:2.157.2-UPV2MyWalmart.0": + version: 2.157.2-UPV2MyWalmart.0 + resolution: "@walmart/profile-feature-app@npm:2.157.2-UPV2MyWalmart.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprofile-feature-app%2F-%2F%40walmart%2Fprofile-feature-app-2.157.2-UPV2MyWalmart.0.tgz" peerDependencies: "@apollo/client": "*" "@livingdesign/tokens-next": "*" @@ -9439,7 +9439,7 @@ __metadata: peerDependenciesMeta: react-router-dom: optional: true - checksum: 10c0/d82875d9ff2da83308a29fd09d8349aaab653a02bbecdb918b38579c3e35e6005fa77a5c84c3c19627d30ba6f04744722da68158b6fd384267e45fdb42383326 + checksum: 10c0/3de4097fdff3b4236ff867c37e49d4ba64c8db1a3a50e7cfe2a1559c444c66193bcf795744c9baa7dcdbcfa30e71d5c6ebeed27ab86010c2b4afb896ea34a1c6 languageName: node linkType: hard
feat: bump profile-feature-app with fab and header fixes (#5252)
feat: bump profile-feature-app with fab and header fixes (#5252)
62014986583b5907e70dd0f8f0abd06b32a61883
--- package.json @@ -148,7 +148,7 @@ "@walmart/react-native-shared-navigation": "~6.3.28", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.8.0", - "@walmart/react-native-webex-sdk": "0.9.19", + "@walmart/react-native-webex-sdk": "0.9.20", "@walmart/receipt-check-miniapp": "1.34.4", "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.17.10", --- yarn.lock @@ -8399,7 +8399,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:~6.3.28" "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.8.0" - "@walmart/react-native-webex-sdk": "npm:0.9.19" + "@walmart/react-native-webex-sdk": "npm:0.9.20" "@walmart/receipt-check-miniapp": "npm:1.34.4" "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.17.10" @@ -8964,14 +8964,14 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-webex-sdk@npm:0.9.19": - version: 0.9.19 - resolution: "@walmart/react-native-webex-sdk@npm:0.9.19::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-webex-sdk%2F-%2F%40walmart%2Freact-native-webex-sdk-0.9.19.tgz" +"@walmart/react-native-webex-sdk@npm:0.9.20": + version: 0.9.20 + resolution: "@walmart/react-native-webex-sdk@npm:0.9.20::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-webex-sdk%2F-%2F%40walmart%2Freact-native-webex-sdk-0.9.20.tgz" peerDependencies: react: "*" react-native: "*" react-native-logger: "*" - checksum: 10c0/238bf9356f1e9416ad869056c406a2c02bf1f71ad9a5e6c476c7b1685633438c76f9cc587f1d921a58c87a7f19658ec5e59241e9770b0c1b4e090a80c506c089 + checksum: 10c0/70b500deb4ccf2e8925786a344be8a5afd49fb43e317575887c53be677d35cb3ecfc5c852caf2f7ff6f40dbc6d8a8e7060ae5dd0103b939125e52d4b3939aa47 languageName: node linkType: hard
fix: CONAS-2410 Calling iOS crash fix (#4827)
fix: CONAS-2410 Calling iOS crash fix (#4827) Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
d043fb057d7766b045128228b3b0fc4b11fcf937
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.7", + "version": "2.0.8", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.7", + "version": "2.0.8", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
835854976b5ce3e0a46935bf080042506a74d91e
--- react-native.config.js @@ -1,7 +1,7 @@ module.exports = { project: { - ios: {}, - android: {}, + ios: { }, + android: { }, }, dependencies: { ...(process.env.CI --- scripts/updateAndroidProjectConfig.sh @@ -16,7 +16,7 @@ STRINGS_XML="android/app/src/main/res/values/strings.xml" RN_CONFIG_JS="react-native.config.js" RN_CONFIG_PROD_APP_MANIFEST_PATH="{manifestPath: '\/app\/src\/main\/AndroidManifest.xml'}," -RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH="{}," +RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH="{ }," RN_CONFIG_JS_PROD="react-native-prod.config.js" RN_CONFIG_JS_DEV_BETA="react-native-dev_beta.config.js" @@ -90,7 +90,8 @@ echo "Updating CodePushDeploymentKey to ${CODE_PUSH_KEY} in ${STRINGS_XML}" sed -Ei'' "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML} echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}" -cat ${RN_CONFIG_JS_SELECTED} > ${RN_CONFIG_JS} +sed -Ei'' "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS} +# cat ${RN_CONFIG_JS_SELECTED} > ${RN_CONFIG_JS} fi echo "Printing ${APP_GRADLE}"
Testing RN Config JS update via file update
Testing RN Config JS update via file update
5cd8aec752a24182e1fd5454afd69311e332a246
--- src/hooks/teams.ts @@ -6,10 +6,8 @@ import {Associate} from '../types'; import {useDailyRoster} from './roster'; import {Team} from '../queries/schema.types'; import moment from 'moment-timezone'; -// import {useGetTeamByIdMock, useGetTeamsByStoreMock} from '../mocks'; export const useGetTeamById = (teamId: string) => { - // return useGetTeamByIdMock(teamId); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -17,12 +15,6 @@ export const useGetTeamById = (teamId: string) => { SiteSelectors.getSiteCountry, ); - // return { - // loading: false, - // data: {getTeamById: _.find(teamsMock, {teamId})}, - // error: false, - // }; // comment in if needed for testing - return useGetTeamByIdQuery({ variables: {storeNbr: storeNbr!, teamId, countryCode: countryCode!}, skip: !storeNbr || !countryCode, @@ -30,7 +22,6 @@ export const useGetTeamById = (teamId: string) => { }; export const useGetTeamsByStore = () => { - // return useGetTeamsByStoreMock(); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -38,8 +29,6 @@ export const useGetTeamsByStore = () => { SiteSelectors.getSiteCountry, ); - // return {loading: false, data: {getTeamsByStore: teamsMock}, error: false}; // comment in if needed for testing - return useGetTeamsByStoreQuery({ variables: { storeNbr: storeNbr!, --- src/hooks/teams.ts @@ -6,10 +6,8 @@ import {Associate} from '../types'; import {useDailyRoster} from './roster'; import {Team} from '../queries/schema.types'; import moment from 'moment-timezone'; -// import {useGetTeamByIdMock, useGetTeamsByStoreMock} from '../mocks'; export const useGetTeamById = (teamId: string) => { - // return useGetTeamByIdMock(teamId); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -17,12 +15,6 @@ export const useGetTeamById = (teamId: string) => { SiteSelectors.getSiteCountry, ); - // return { - // loading: false, - // data: {getTeamById: _.find(teamsMock, {teamId})}, - // error: false, - // }; // comment in if needed for testing - return useGetTeamByIdQuery({ variables: {storeNbr: storeNbr!, teamId, countryCode: countryCode!}, skip: !storeNbr || !countryCode, @@ -30,7 +22,6 @@ export const useGetTeamById = (teamId: string) => { }; export const useGetTeamsByStore = () => { - // return useGetTeamsByStoreMock(); const storeNbr: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -38,8 +29,6 @@ export const useGetTeamsByStore = () => { SiteSelectors.getSiteCountry, ); - // return {loading: false, data: {getTeamsByStore: teamsMock}, error: false}; // comment in if needed for testing - return useGetTeamsByStoreQuery({ variables: { storeNbr: storeNbr!,
Removed commented code
Removed commented code
41a343d363b7f4d99d2a431d736919120e8f15f7
--- package-lock.json @@ -45,7 +45,7 @@ "@walmart/core-widget-registry": "~1.2.4", "@walmart/counts-component-miniapp": "0.1.5", "@walmart/emergency-mini-app": "1.25.1", - "@walmart/exception-mini-app": "1.4.2", + "@walmart/exception-mini-app": "1.5.1", "@walmart/facilities-management-miniapp": "0.6.42", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.8.1", @@ -5070,7 +5070,9 @@ } }, "node_modules/@walmart/exception-mini-app": { - "version": "1.4.2", + "version": "1.5.1", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.5.1.tgz", + "integrity": "sha512-d5j7mlW+7Muw6vSZzc0WvoPbOOlF0oLkniWfAS6IP/o9SZ08Ph6NRIRAg95PWOqeW52zh7YTJZwEi24Zpaf93g==", "peerDependencies": { "@walmart/core-services": "^2.0.15", "@walmart/core-services-allspark": "^2.10.3", @@ -25167,7 +25169,9 @@ } }, "@walmart/exception-mini-app": { - "version": "1.4.2" + "version": "1.5.1", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.5.1.tgz", + "integrity": "sha512-d5j7mlW+7Muw6vSZzc0WvoPbOOlF0oLkniWfAS6IP/o9SZ08Ph6NRIRAg95PWOqeW52zh7YTJZwEi24Zpaf93g==" }, "@walmart/facilities-management-miniapp": { "version": "0.6.42" --- package.json @@ -87,7 +87,7 @@ "@walmart/core-widget-registry": "~1.2.4", "@walmart/counts-component-miniapp": "0.1.5", "@walmart/emergency-mini-app": "1.25.1", - "@walmart/exception-mini-app": "1.4.2", + "@walmart/exception-mini-app": "1.5.1", "@walmart/facilities-management-miniapp": "0.6.42", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.8.1",
Exception-mini-app-1.5.1 - favorites bug fix
Exception-mini-app-1.5.1 - favorites bug fix
56883ef4b5708044ff0367e1f4514338b49708a1
--- ios/Podfile.lock @@ -2232,7 +2232,7 @@ PODS: - FirebaseMessaging (<= 10.18.0) - StructuredLogAssistantIOS (= 0.0.7) - TOCropViewController (2.6.1) - - topstock-mini-app (1.10.8): + - topstock-mini-app (1.12.0): - React - VisionCamera (3.7.1): - React @@ -2899,13 +2899,13 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: 58664bf3b83e2f4bcdfc52704235ab4bca519ceb TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 - topstock-mini-app: b194faed10e28756619b4105d6de60965bcd2058 + topstock-mini-app: 37f838d08fe79248fc2e39c3f003e07afa51c2df VisionCamera: ef56ac9d3e0fef4b94c7cf75735aaccc2326e35a walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 - Yoga: c716aea2ee01df6258550c7505fa61b248145ced + Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee PODFILE CHECKSUM: fc93c11e2096b0f20e15b7c98c1efea2b0908817 -COCOAPODS: 1.14.3 +COCOAPODS: 1.15.2 --- package.json @@ -146,7 +146,7 @@ "@walmart/store-feature-orders": "1.26.9", "@walmart/taskit-mini-app": "3.0.2", "@walmart/time-clock-mini-app": "2.395.0", - "@walmart/topstock-mini-app": "1.10.8", + "@walmart/topstock-mini-app": "1.12.0", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch", "@walmart/welcomeme-mini-app": "0.94.0", "@walmart/wfm-ui": "0.8.12", --- yarn.lock @@ -7259,9 +7259,9 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.10.8": - version: 1.10.8 - resolution: "@walmart/topstock-mini-app@npm:1.10.8" +"@walmart/topstock-mini-app@npm:1.12.0": + version: 1.12.0 + resolution: "@walmart/topstock-mini-app@npm:1.12.0" peerDependencies: "@react-native-firebase/app": ^15.1.1 "@react-native-firebase/crashlytics": ^15.1.1 @@ -7278,7 +7278,7 @@ __metadata: react-native-haptic-feedback: ^1.13.0 react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/ba43295c85f5376b0cb43bf10e1487d3b9c28ec2bfc94abe01442f4c3a7dd36ef27dea9b3d9305878828e6fa8e6fdb3110920ff9125af31b501a1567ee166281 + checksum: 10c0/64d49669316e55d8ed1bdce780f830cdf660d919b314d1f351dbc0e9877442cc268c3a1c34d768a1f4ed180f82ddfb6dae0e8cf7fe91483f9f2824c9c0fae105 languageName: node linkType: hard @@ -7861,7 +7861,7 @@ __metadata: "@walmart/store-feature-orders": "npm:1.26.9" "@walmart/taskit-mini-app": "npm:3.0.2" "@walmart/time-clock-mini-app": "npm:2.395.0" - "@walmart/topstock-mini-app": "npm:1.10.8" + "@walmart/topstock-mini-app": "npm:1.12.0" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch" "@walmart/welcomeme-mini-app": "npm:0.94.0" "@walmart/wfm-ui": "npm:0.8.12"
topstock drop 22 fix
topstock drop 22 fix
7a67202fa9dff3fba508726ad55cfbceb1903bee
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 90 + versionCode 91 versionName "1.0.6" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>90</string> + <string>91</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
f9834a45c833db765f0c7799b883e337bfb28b41
--- __tests__/__mocks__/@walmart/me-at-walmart-common.js @@ -0,0 +1,13 @@ +/** + * Mock for @walmart/me-at-walmart-common package + * Used in testing to provide mock implementations of core constants + */ + +export const CORE_CONTAINERS = { + MY_TEAM: 'MY_WALMART.MY_TEAM', +}; + +// Default export in case it's needed +export default { + CORE_CONTAINERS, +}; \ No newline at end of file
test(ui): fix for test failure
test(ui): fix for test failure
1bcb5dbb539dfa3cee028d05cc471a232a401702
--- targets/US/package.json @@ -136,7 +136,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.7.2-alpha.2", "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.4.3#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.4.3-2621d9f1df.patch", - "@walmart/receipt-check-miniapp": "1.24.2", + "@walmart/receipt-check-miniapp": "1.27.1", "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.15.0", "@walmart/rfid-scan-mini-app": "2.6.3", --- yarn.lock @@ -7051,7 +7051,7 @@ __metadata: "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.2-alpha.2" "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.4.3#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.4.3-2621d9f1df.patch" - "@walmart/receipt-check-miniapp": "npm:1.24.2" + "@walmart/receipt-check-miniapp": "npm:1.27.1" "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.15.0" "@walmart/rfid-scan-mini-app": "npm:2.6.3" @@ -7683,20 +7683,20 @@ __metadata: languageName: node linkType: hard -"@walmart/receipt-check-miniapp@npm:1.24.2": - version: 1.24.2 - resolution: "@walmart/receipt-check-miniapp@npm:1.24.2" +"@walmart/receipt-check-miniapp@npm:1.27.1": + version: 1.27.1 + resolution: "@walmart/receipt-check-miniapp@npm:1.27.1" dependencies: "@walmart/tcnumber": "npm:^2.3.3" "@xstate/react": "npm:^3.0.1" cpc-input: "npm:^1.7.28" dayjs: "npm:^1.11.1" - rxjs: "npm:^7.5.5" + expo-asset: "npm:~9.0.2" uuid: "npm:^3.3.2" xstate: "npm:^4.32.1" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/c92d58bca9a445558548bf4d719c7651c2b7fa12dcbf6a7400ddb12f42feca47152031f29efee4f19ceff02c886ccad0e9423759bb5a2f93b453d50e89b75c86 + checksum: 10c0/34f85af1656f63e54ce40e2b5f2d0946cce71d4c6a4cd47ef32a63967b824bc16cdaf0c68d0137c5df2f14011b989d689317ed55291bb114ccded1fa13332474 languageName: node linkType: hard
update
update
51aa93726415f60d4af851cd4d1e81d8c10a044e
--- packages/allspark-foundation/src/cli/setup.js @@ -24,8 +24,8 @@ const execPromise = (command) => }); const setup = async () => { - console.log('Setting up iOS permissions...'); - await execPromise('npx react-native setup-ios-permissions'); + // console.log('Setting up iOS permissions...'); + // await execPromise('npx react-native setup-ios-permissions'); console.log('Installing fonts...'); await execPromise('npx installFonts');
fix: remove uneeded permission setup from setup script
fix: remove uneeded permission setup from setup script
3594ae0dd343e8becb950741e643f508a85eb599
--- src/hooks/user.ts @@ -2,6 +2,7 @@ import {useSelector} from 'react-redux'; import {UserSelectors, User} from '@walmart/redux-store'; import {teamLeadJobDescriptions as teamLeadJobDescriptionsSelector} from '../redux/selectors'; import {payTypes} from '../constants'; +import {isNil} from 'lodash'; export const useIsSalariedOrTeamLead = () => { const user: User = useSelector(UserSelectors.getUser); @@ -22,5 +23,9 @@ export const useUserIsInRoster = () => { const workingSite: string = useSelector(UserSelectors.getUserWorkingSite); const homeSite: string = useSelector(UserSelectors.getUserHomeSite); + if (isNil(workingSite) || isNil(homeSite)) { + return false; + } + return workingSite.toString() === homeSite.toString(); }; --- src/hooks/user.ts @@ -2,6 +2,7 @@ import {useSelector} from 'react-redux'; import {UserSelectors, User} from '@walmart/redux-store'; import {teamLeadJobDescriptions as teamLeadJobDescriptionsSelector} from '../redux/selectors'; import {payTypes} from '../constants'; +import {isNil} from 'lodash'; export const useIsSalariedOrTeamLead = () => { const user: User = useSelector(UserSelectors.getUser); @@ -22,5 +23,9 @@ export const useUserIsInRoster = () => { const workingSite: string = useSelector(UserSelectors.getUserWorkingSite); const homeSite: string = useSelector(UserSelectors.getUserHomeSite); + if (isNil(workingSite) || isNil(homeSite)) { + return false; + } + return workingSite.toString() === homeSite.toString(); };
adding null protection in response to unit test failures
adding null protection in response to unit test failures
7b51e7f964ef9bc15cc454cb5cba8f868f4ba3e6
--- package.json @@ -84,7 +84,7 @@ "@walmart/core-widget-registry": "0.3.2", "@walmart/counts-component-miniapp": "0.0.36", "@walmart/exception-mini-app": "0.42.1", - "@walmart/facilities-management-miniapp": "0.1.3", + "@walmart/facilities-management-miniapp": "0.1.5", "@walmart/feedback-all-spark-miniapp": "0.6.0", "@walmart/functional-components": "2.0.5", "@walmart/gta-react-native-calendars": "0.0.15",
Version bump
Version bump
972e1a07ab5eb049d911d2b5ead902098d9a8ede
--- core/__tests__/__mocks__/@react-native-community/netinfo.js @@ -0,0 +1,7 @@ +module.exports = { + NetInfoStateType: { + none: 'none', + wifi: 'wifi', + cellular: 'cellular', + }, +} \ No newline at end of file --- core/__tests__/__mocks__/@walmart/allspark-foundation/User.js @@ -0,0 +1,4 @@ +module.exports = { + ...jest.requireActual('@walmart/allspark-foundation/User'), + ImpersonationForm: 'ImpersonationForm', +}; \ No newline at end of file --- core/__tests__/impersonation/__snapshots__/impersonationScreenTest.tsx.snap @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ImpersonationScreen renders component with props 1`] = `null`; --- core/__tests__/impersonation/impersonationScreenTest.tsx @@ -0,0 +1,49 @@ +import React from'react'; +import { render } from '@testing-library/react-native'; +import { ImpersonationScreen } from '../../src/impersonation/ImpersonationScreen'; +import { + clearImpersonationCache, + cacheImpersonationData, + removeImpersonationBanner, + } from '../../src/impersonation/utils'; + import {ImpersonationLogger} from '../../src//core/Logger'; + + jest.mock('../../src/impersonation/utils', () => ({ + cacheImpersonationData: jest.fn(), + addImpersonationBanner: jest.fn(), + clearImpersonationCache: jest.fn(), + removeImpersonationBanner: jest.fn() + })); + + jest.mock('../../src//core/Logger', () => ({ + ImpersonationLogger: {error: jest.fn(), info: jest.fn()}, + })); + +describe('ImpersonationScreen', () => { + const props = { + navigation: { navigate: jest.fn() }, + }; + + it('renders component with expected props', () => { + const data = { + impersonatee: { userId: 'userId', siteId: 'siteId' }, + impersonator: { token: 'token' } + }; + + const component = render(<ImpersonationScreen {...props} />); + const impersonateFormFuncs = component.root._fiber.stateNode.props; + + impersonateFormFuncs.onImpersonationStarted(data); + expect(cacheImpersonationData).toHaveBeenCalledWith(data.impersonatee); + + impersonateFormFuncs.onImpersonationExited(data); + expect(clearImpersonationCache).toHaveBeenCalledWith(); + expect(removeImpersonationBanner).toHaveBeenCalledWith(); + + impersonateFormFuncs.onImpersonationError({ message: 'No user is provided' }); + expect(ImpersonationLogger.error).toHaveBeenCalledWith( + 'Error while starting impersonation', + { message: 'No user is provided' } + ); + }); + }); \ No newline at end of file
impersonation test cases
impersonation test cases
e27091bc0c9bcfea87e6e71a78f9b6493d5c18b8
--- src/components/MyWalmartv2/Common/RosterEmptyState/RosterEmptyState.tsx @@ -101,11 +101,11 @@ const styles = StyleSheet.create({ title: { textAlign: 'center', marginBottom: 8, - color: colors.gray['20'], + color: colors.black['160'], }, description: { textAlign: 'center', - color: colors.gray['40'], + color: colors.gray['160'], }, skeletonImage: { width: 200, --- src/components/MyWalmartv2/Common/RosterErrorState/RosterErrorState.tsx @@ -115,7 +115,7 @@ const styles = StyleSheet.create({ */ title: { marginBottom: 8, - color: colors.red[10], + color: colors.black['160'], textAlign: 'center', }, /** @@ -124,7 +124,7 @@ const styles = StyleSheet.create({ message: { marginBottom: 24, textAlign: 'center', - color: colors.gray[10], + color: colors.gray['160'], }, /** * Style for the retry button container
feat(ui): fix the styling for roster empty and error state
feat(ui): fix the styling for roster empty and error state
57115c16d332ab2cc1fb8030cdb40234bc002aec
--- packages/allspark-foundation-hub/__tests__/HubFeature/supplyChain/ShiftFilterList.test.tsx @@ -3,6 +3,7 @@ import React from 'react'; import { fireEvent } from '@testing-library/react-native'; import { render } from '@walmart/allspark-foundation/__tests__/utils'; import { ShiftFilterList } from '@walmart/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList'; +import { ShiftFilterListProps } from '@walmart/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/types'; jest.mock('@walmart/allspark-foundation/Logger', () => ({ ...jest.requireActual('@walmart/allspark-foundation/Logger'), @@ -44,6 +45,7 @@ describe('ShiftFilterList', () => { shiftId: 'shift3', }, ], + isLoading: false, handleSelectShift: jest.fn(), }; it('Test 1: Renders ShiftFilterList component with required elements correctly', () => { @@ -87,13 +89,16 @@ describe('ShiftFilterList', () => { it('Test 4: Renders ShiftFilter components based on filterListData', () => { const filterListData = [ - { shiftId: 'shift1', teamImage: 'image1' }, - { shiftId: 'shift2', teamImage: 'image2' }, - { shiftId: 'shift3', teamImage: 'image3' }, + { shiftId: 'shift1', teamImage: { uri: 'image1' } }, + { shiftId: 'shift2', teamImage: { uri: 'image2' } }, + { shiftId: 'shift3', teamImage: { uri: 'image3' } }, ]; const { getByTestId, queryByTestId } = render( - <ShiftFilterList filterListData={filterListData} /> + <ShiftFilterList + {...mockShiftFilterListProps} + filterListData={filterListData} + /> ); expect(getByTestId('container')).toBeTruthy(); @@ -101,4 +106,12 @@ describe('ShiftFilterList', () => { expect(queryByTestId(`shift-filter-${item.shiftId}`)).toBeTruthy(); }); }); + + it('Test 5: displays loading shift filter list if isLoading is true', () => { + const { getByTestId } = render( + <ShiftFilterList {...mockShiftFilterListProps} isLoading /> + ); + const loadingFilterList = getByTestId('shift-filter-list-loading'); + expect(loadingFilterList).toBeDefined(); + }); }); --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterListLoading.tsx @@ -5,7 +5,7 @@ import { useWindowDimensions, View } from 'react-native'; const LoadingShiftFilter = () => { const { width } = useWindowDimensions(); - const loadingShiftFilterWidth = (width - 32) * 0.32; + const loadingShiftFilterWidth = (width - 32) * 0.31; const loadingShiftFilterHeight = loadingShiftFilterWidth * 0.48; return ( <Skeleton @@ -16,7 +16,7 @@ const LoadingShiftFilter = () => { }; export const ShiftFilterListLoading = () => ( - <View style={styles.container}> + <View style={styles.container} testID='shift-filter-list-loading'> {Array.from(Array(6)).map(() => ( <LoadingShiftFilter /> ))}
feat: added tests for loading state
feat: added tests for loading state
cb4cba39fe9419d7f4e67d04ebf82e0e1fcb716d
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.18.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.17.1...v1.18.0) (2025-03-07) + + +### Features + +* **ui:** update myteam mini app version for roster ([e092642](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e09264267d345aec91b2996fb7069f6a2e55a863)) + ## [1.17.1](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.17.0...v1.17.1) (2025-03-03) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.17.1", + "version": "1.18.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 1.18.0 [skip ci]
chore(release): 1.18.0 [skip ci] # [1.18.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.17.1...v1.18.0) (2025-03-07) ### Features * **ui:** update myteam mini app version for roster ([e092642](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e09264267d345aec91b2996fb7069f6a2e55a863))
356b41206bbe7aa9197d6c3de1cd8696eac66528
--- ios/Podfile.lock @@ -1467,9 +1467,9 @@ PODS: - FirebaseMessaging (<= 10.1.0) - StructuredLogAssistantIOS (= 0.0.7) - TOCropViewController (2.6.1) - - topstock-mini-app (1.2.4): + - topstock-mini-app (1.3.1): - React - - VisionCamera (2.15.2): + - VisionCamera (2.16.2): - React - React-callinvoker - React-Core @@ -2065,8 +2065,8 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: fef064694cb7fd0f4d8c633f03d2d9e11876fdda TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 - topstock-mini-app: f82a4b725483e89c5e8c5d7102f274882e1871fd - VisionCamera: 4cfd685b1e671fea4aa0400905ab397f0e972210 + topstock-mini-app: 8d66b9738787e17770a39c1943984825d4448c68 + VisionCamera: e665d4459abe1f243e95707f651cd1d10346b382 walmart-react-native-sumo-sdk: 02719d035c1a52e951e15097fae5ea17b459f71c wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 Yoga: dc109b79db907f0f589fc423e991b09ec42d2295
revert lock file changes
revert lock file changes
c50a3df7bd2b2ca6ce10e994d9ed628b9152cae4
--- package.json @@ -123,7 +123,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-geolocation": "1.2.0", "@walmart/metrics-mini-app": "1.29.14", - "@walmart/mod-flex-mini-app": "1.29.4", + "@walmart/mod-flex-mini-app": "1.29.5", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.4.3", "@walmart/myteam-mini-app": "3.1.0", --- yarn.lock @@ -8666,7 +8666,7 @@ __metadata: "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-geolocation": "npm:1.2.0" "@walmart/metrics-mini-app": "npm:1.29.14" - "@walmart/mod-flex-mini-app": "npm:1.29.4" + "@walmart/mod-flex-mini-app": "npm:1.29.5" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.4.3" "@walmart/myteam-mini-app": "npm:3.1.0" @@ -8938,9 +8938,9 @@ __metadata: languageName: node linkType: hard -"@walmart/mod-flex-mini-app@npm:1.29.4": - version: 1.29.4 - resolution: "@walmart/mod-flex-mini-app@npm:1.29.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.29.4.tgz" +"@walmart/mod-flex-mini-app@npm:1.29.5": + version: 1.29.5 + resolution: "@walmart/mod-flex-mini-app@npm:1.29.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.29.5.tgz" peerDependencies: "@react-navigation/drawer": ">=6" "@react-navigation/material-top-tabs": ">=6" @@ -8975,7 +8975,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 uuid: ^3.3.2 - checksum: 10c0/807d9f88a281ea0ae9ad35c7ddb45a6408f1f5f43dcfb6a6390e4b132ea64a6c13abad2484e866a237ebbf73ff362fc58038a3ad1c283b404e5b00032d5a2a97 + checksum: 10c0/9ebcfff0973565d5688bff79ed379b18c5317115ced9ae49eff8199e18dcca52f1bfadfbd013690385c30adb29bf73b58852c6ee68ac64498fd9fda202bc12d6 languageName: node linkType: hard
fix(modflex-mini-app): INNODELOC-16395 FILMS bulk DSL item assignment (#4666)
fix(modflex-mini-app): INNODELOC-16395 FILMS bulk DSL item assignment (#4666) Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
5144b93668c686b43e032212c36eaa488961d160
--- package-lock.json @@ -101,7 +101,7 @@ "@walmart/roster-mini-app": "1.1.7", "@walmart/schedule-mini-app": "0.108.0", "@walmart/shelfavailability-mini-app": "1.5.23", - "@walmart/store-feature-orders": "1.26.7", + "@walmart/store-feature-orders": "1.26.9", "@walmart/taskit-mini-app": "2.81.15", "@walmart/time-clock-mini-app": "2.353.0", "@walmart/topstock-mini-app": "1.9.7", @@ -12534,9 +12534,9 @@ } }, "node_modules/@walmart/store-feature-orders": { - "version": "1.26.7", - "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.26.7.tgz", - "integrity": "sha512-r86UcEMxLmcK5FIUYiL1016CC6ehG303zVNZ+7bfMZ3d79fk2e0anupjeTEcn3EsSHgSUw+HMzRdxzlr8hluhg==", + "version": "1.26.9", + "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.26.9.tgz", + "integrity": "sha512-Mr624ixMK+FsehtoNhdGUy9zwymhj2AAY0Wq2wlbtNdZ7Ezgg0gNo+zg6ODA/ZEHeiFecc+Bp+67iy165reRVA==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -12545,7 +12545,7 @@ "@walmart/gtp-shared-components": "2.2.1", "@walmart/react-native-env": "0.2.0", "react": "^18.2.0", - "react-native": "^0.72.8" + "react-native": "^0.73.7" } }, "node_modules/@walmart/taskit-mini-app": { --- package.json @@ -143,7 +143,7 @@ "@walmart/roster-mini-app": "1.1.7", "@walmart/schedule-mini-app": "0.108.0", "@walmart/shelfavailability-mini-app": "1.5.23", - "@walmart/store-feature-orders": "1.26.7", + "@walmart/store-feature-orders": "1.26.9", "@walmart/taskit-mini-app": "2.81.15", "@walmart/time-clock-mini-app": "2.353.0", "@walmart/topstock-mini-app": "1.9.7", @@ -404,7 +404,7 @@ "@walmart/rfid-scan-mini-app": "2.3.11", "@walmart/schedule-mini-app": "0.108.0", "@walmart/shelfavailability-mini-app": "1.5.23", - "@walmart/store-feature-orders": "1.26.7", + "@walmart/store-feature-orders": "1.26.9", "@walmart/taskit-mini-app": "2.81.15", "@walmart/time-clock-mini-app": "2.353.0", "@walmart/topstock-mini-app": "1.9.7",
drop22 version
drop22 version
86ccc6e2861120e373f0ac79d7a6e0e218ca0b26
--- packages/allspark-foundation/__tests__/Components/ComponentContainers.test.tsx @@ -147,11 +147,12 @@ describe('AllsparkComponentContainers', () => { test('renders container list with given props', () => { AllsparkComponentContainers.add('test', 'mockComponent', MockComponent); - const { getByText } = render( + const { getAllByText } = render( <AllsparkComponentContainers.List container="test" props={{ greeting: 'Hello 2' }} /> ); - expect(getByText('Hello 2')).toBeTruthy(); - }); + expect(getAllByText('Hello 2').length).toBe(1); + expect(getAllByText('Hello 2')[0]).toBeTruthy(); + }); test('renders specific component from container', () => { AllsparkComponentContainers.add('test', 'mockComponent', MockComponent); @@ -167,12 +168,12 @@ describe('AllsparkComponentContainers', () => { expect(AllsparkComponentContainers.hasComponent('test', 'mockComponent')).toBe(true); AllsparkComponentContainers.create('test'); - expect(AllsparkComponentContainers.hasComponent('test', 'mockComponent')).toBe(false); + expect(AllsparkComponentContainers.hasComponent('test', 'mockComponent')).toBe(true); }); test('registers existing container', () => { const container = new ComponentContainer<{ greeting: string }>(); AllsparkComponentContainers.register('test', container); - expect(AllsparkComponentContainers.getComponents('test')).toEqual(['mockComponent1', 'mockComponent2', 'mockComponent3']); + expect(AllsparkComponentContainers.getComponents('test')).toEqual(['mockComponent1', 'mockComponent2', 'mockComponent']); }); });
pr failing fix
pr failing fix
09fd74617950ad2ca090e3e14f7fc67676831102
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.1-beta.8", + "version": "1.0.1-beta.9", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/allspark-foundation-hub/src/HubFeature/Store/Common/index.ts @@ -3,6 +3,10 @@ import { WORK_HUB_KEY, WorkHubWidgetProps } from './WorkHub'; export * from './TeamHub'; export * from './WorkHub'; +export * from './constant'; +export * from './types'; +export * from './utils'; +export * from './ccmFallbacks'; export type HubFeatureContainers = { [TEAM_HUB_KEY]: TeamHubWidgetProps; --- packages/allspark-foundation-hub/src/HubFeature/Store/Hub/Container/index.tsx @@ -1,2 +1,2 @@ -export * from '../../../types'; +export * from './types'; export * from './HubDashboard'; --- packages/allspark-foundation-hub/src/HubFeature/Store/Onboarding/TeamOnboarding/Component/index.tsx @@ -0,0 +1,3 @@ +export { TeamOnboarding } from './TeamOnboarding'; +export { TeamOnboardingCard } from './TeamOnboardingCard'; +export { TeamOnboardingCards } from './TeamOnboardingCards'; --- packages/allspark-foundation-hub/src/HubFeature/Store/Onboarding/TeamOnboarding/index.tsx @@ -1,2 +1,4 @@ export * from './types'; export * from './Screens'; +export * from './Component'; +export * from './OnboardingContext'; --- packages/allspark-foundation-hub/src/HubFeature/Store/TeamSelection/Component/index.tsx @@ -0,0 +1,7 @@ +export * from './ErrorScreen'; +export * from './ListHeader'; +export * from './RenderTeamSelectionListItems'; +export * from './SelectionBanner'; +export * from './SelectionBannerFooterButtons'; +export * from './TeamSelectionList'; +export * from './TeamSelectionLoader'; --- packages/allspark-foundation-hub/src/HubFeature/Store/TeamSelection/Constants/index.tsx @@ -0,0 +1 @@ +export * from './TeamSelectionConstants'; --- packages/allspark-foundation-hub/src/HubFeature/Store/TeamSelection/Utils/index.tsx @@ -0,0 +1,4 @@ +export * from './myArea'; +export * from './sectionListData'; +export * from './teams'; +export * from './teamsByWorkGroup'; --- packages/allspark-foundation-hub/src/HubFeature/Store/TeamSelection/index.tsx @@ -1,2 +1,5 @@ export * from './types'; export * from './Screens'; +export * from './Component'; +export * from './Constants'; +export * from './Utils';
Update the import statements
Update the import statements
ff3f9102b9786c4027b656abdee7efa1961d820d
--- src/cafeOrders/components/messages/ChannelRow.tsx @@ -11,7 +11,7 @@ import { SkeletonText, } from '@walmart/gtp-shared-components'; -import {useUserStatus} from '../../utils'; +import {TEMP_ID_MAP, useUserStatus} from '../../utils'; import {PresenceIndicator} from './PresenceIndicator'; import {Channel} from '../../types'; @@ -118,7 +118,7 @@ export const ChannelRow = (props: ChannelRowProps) => { : lastMessageData?.message, lastMessageTime: getChannelTimestamp(lastMessageMoment), recipientId: recipientId!, - channelName: channelName || recipientId!, + channelName: channelName || TEMP_ID_MAP[recipientId], group: group || false, unread, participants: participants || [], --- src/cafeOrders/components/roster/UserHeader.tsx @@ -3,7 +3,7 @@ import {useSelector} from 'react-redux'; import {StyleSheet} from 'react-native'; import {UserSelectors} from '@walmart/redux-store'; import {Body, colors, ListItem, Switch} from '@walmart/gtp-shared-components'; -import {useCurrentUserStatus} from '../../utils'; +import {TEMP_ID_MAP, useCurrentUserStatus} from '../../utils'; import {Avatar} from '../messages/Avatar'; const styles = StyleSheet.create({ @@ -18,7 +18,7 @@ const styles = StyleSheet.create({ }); export const UserHeader = () => { - const name = useSelector(UserSelectors.getUserName); + const userId = useSelector(UserSelectors.getUserId); const {status, goOnline, goOffline} = useCurrentUserStatus(); const onStatusChange = (online: boolean) => { @@ -28,9 +28,13 @@ export const UserHeader = () => { return ( <ListItem UNSAFE_style={styles.item} - title={name} + title={TEMP_ID_MAP[userId]} leading={ - <Avatar name={name} status={status?.state} style={styles.avatar} /> + <Avatar + name={TEMP_ID_MAP[userId]} + status={status?.state} + style={styles.avatar} + /> } trailing={ <Switch --- src/cafeOrders/screens/MessagesScreen.tsx @@ -23,7 +23,7 @@ import {UserSelectors} from '@walmart/redux-store'; import {Images} from '../themes'; import {MessageRow} from '../components/messages/MessageRow'; import {MessagesHeader} from '../containers/MessagesHeader'; -import {useUserStatus} from '../utils'; +import {TEMP_ID_MAP, useUserStatus} from '../utils'; import {LocalMessage, MessageRequest, Channel} from '../types'; import {MessageTimeSectionHeader} from '../components/messages/MessageTimeSectionHeader'; import {messagesToSections} from '../utils'; @@ -218,7 +218,8 @@ export const MessagesScreen = () => { const unsubscribeChannel = channelDoc.onSnapshot((snapshot) => { const data = snapshot.data(); setChannelDetails({ - channelName: data?.channelName || recipientId, + channelName: + data?.channelName || TEMP_ID_MAP[recipientId] || recipientId, recipientRead: data?.recentRead[recipientId], group: Boolean(data?.group), }); --- src/cafeOrders/utils.ts @@ -8,6 +8,11 @@ import moment from 'moment-timezone'; import {UserSelectors} from '@walmart/redux-store'; import {UserStatus, LocalMessage, Message} from './types'; +export const TEMP_ID_MAP = { + rlane1: 'Dylan Lane', + j0y0231: 'Jae Yoo', +}; + export const createStoreDocumentId = (storeId: string) => `STORE_${storeId}`; export const createAssociateChannelId = (userIds: string[]) => --- src/cafeOrders/components/messages/ChannelRow.tsx @@ -11,7 +11,7 @@ import { SkeletonText, } from '@walmart/gtp-shared-components'; -import {useUserStatus} from '../../utils'; +import {TEMP_ID_MAP, useUserStatus} from '../../utils'; import {PresenceIndicator} from './PresenceIndicator'; import {Channel} from '../../types'; @@ -118,7 +118,7 @@ export const ChannelRow = (props: ChannelRowProps) => { : lastMessageData?.message, lastMessageTime: getChannelTimestamp(lastMessageMoment), recipientId: recipientId!, - channelName: channelName || recipientId!, + channelName: channelName || TEMP_ID_MAP[recipientId], group: group || false, unread, participants: participants || [], --- src/cafeOrders/components/roster/UserHeader.tsx @@ -3,7 +3,7 @@ import {useSelector} from 'react-redux'; import {StyleSheet} from 'react-native'; import {UserSelectors} from '@walmart/redux-store'; import {Body, colors, ListItem, Switch} from '@walmart/gtp-shared-components'; -import {useCurrentUserStatus} from '../../utils'; +import {TEMP_ID_MAP, useCurrentUserStatus} from '../../utils'; import {Avatar} from '../messages/Avatar'; const styles = StyleSheet.create({ @@ -18,7 +18,7 @@ const styles = StyleSheet.create({ }); export const UserHeader = () => { - const name = useSelector(UserSelectors.getUserName); + const userId = useSelector(UserSelectors.getUserId); const {status, goOnline, goOffline} = useCurrentUserStatus(); const onStatusChange = (online: boolean) => { @@ -28,9 +28,13 @@ export const UserHeader = () => { return ( <ListItem UNSAFE_style={styles.item} - title={name} + title={TEMP_ID_MAP[userId]} leading={ - <Avatar name={name} status={status?.state} style={styles.avatar} /> + <Avatar + name={TEMP_ID_MAP[userId]} + status={status?.state} + style={styles.avatar} + /> } trailing={ <Switch --- src/cafeOrders/screens/MessagesScreen.tsx @@ -23,7 +23,7 @@ import {UserSelectors} from '@walmart/redux-store'; import {Images} from '../themes'; import {MessageRow} from '../components/messages/MessageRow'; import {MessagesHeader} from '../containers/MessagesHeader'; -import {useUserStatus} from '../utils'; +import {TEMP_ID_MAP, useUserStatus} from '../utils'; import {LocalMessage, MessageRequest, Channel} from '../types'; import {MessageTimeSectionHeader} from '../components/messages/MessageTimeSectionHeader'; import {messagesToSections} from '../utils'; @@ -218,7 +218,8 @@ export const MessagesScreen = () => { const unsubscribeChannel = channelDoc.onSnapshot((snapshot) => { const data = snapshot.data(); setChannelDetails({ - channelName: data?.channelName || recipientId, + channelName: + data?.channelName || TEMP_ID_MAP[recipientId] || recipientId, recipientRead: data?.recentRead[recipientId], group: Boolean(data?.group), }); --- src/cafeOrders/utils.ts @@ -8,6 +8,11 @@ import moment from 'moment-timezone'; import {UserSelectors} from '@walmart/redux-store'; import {UserStatus, LocalMessage, Message} from './types'; +export const TEMP_ID_MAP = { + rlane1: 'Dylan Lane', + j0y0231: 'Jae Yoo', +}; + export const createStoreDocumentId = (storeId: string) => `STORE_${storeId}`; export const createAssociateChannelId = (userIds: string[]) =>
chore: add temporary name mapping for demo
chore: add temporary name mapping for demo
a7ea33ef80e19af1c822c43f2cd9eb12fad3018a
--- __tests__/home/components/CelebrationCard/__snapshots__/indexTest.tsx.snap @@ -246,7 +246,7 @@ exports[`CelebrationCard matches snapshot when loaded; calls navigate on view mo "height": 1, "marginBottom": 16, "marginTop": 12, - "width": "92%", + "width": "90%", } } /> @@ -348,7 +348,7 @@ exports[`CelebrationCard matches snapshot when loading, but with results 1`] = ` "height": 1, "marginBottom": 16, "marginTop": 12, - "width": "92%", + "width": "90%", } } /> --- src/home/components/CelebrationCard/styles.ts @@ -39,7 +39,7 @@ export default StyleSheet.create({ marginBottom: Metrics.margins.large, height: 1, borderRadius: Metrics.radius.circle, - width: '92%' + width: '90%' }, nameRow: { flexDirection: 'row', --- src/home/components/ScrollingHeader/index.tsx @@ -109,7 +109,7 @@ export const ScrollingHeader = (props) => { { paddingTop: collapsedHeight, transform: [{scale: titleScale}], - + }, ]}> {title}
feat(ui-issues): update snapshots
feat(ui-issues): update snapshots
8a39de6ea469f99861a96c8c51bd0d23d55124c0
--- .looper-native-common.yml @@ -68,7 +68,7 @@ flows: - call: build-android - var(buildOutput = "./android/app/build/outputs/apk/release/app-release-signed.apk") - echo "about to run mvn-deploy-file; ${buildOutput}\n" - - call: mvn-deploy-file(groupId = "com.walmart.store.allspark", artifactId = ${artifactId}, version = ${version}, packaging = ${packaging}, file = ${buildOutput}) + - call: mvn-deploy-file(groupId = "com.walmart.stores.allspark.beta", artifactId = ${artifactId}, version = ${version}, packaging = ${packaging}, file = ${buildOutput}) - (name Betacrash – upload build) sh scripts/betacrash.sh "$APP_TITLE $env" "$BETACRASH_APP_ID" "${buildOutput}" 2>&1 - (name Slack notify) sh scripts/slack.sh "${APP_TITLE}" "${env}" "${fullUrl}" "${os}" "${version}" "${osType}" 2>&1 else:
updated mvn deploy path
updated mvn deploy path
63fbf88c396f66ac3a85b1487236f72356bb4456
--- __tests__/harness/firestore/data/documentIds.ts @@ -12,7 +12,5 @@ export const staticFirestoreDocumentIds = [ ]; export const generateDocumentId = () => { - return Math.round(Math.pow(36, 21) - Math.random() * Math.pow(36, 21)) - .toString(36) - .slice(1); + return Array.from(Array(20), () => Math.floor(Math.random() * 36).toString(36)).join(''); }; --- __tests__/harness/firestore/data/documentIds.ts @@ -12,7 +12,5 @@ export const staticFirestoreDocumentIds = [ ]; export const generateDocumentId = () => { - return Math.round(Math.pow(36, 21) - Math.random() * Math.pow(36, 21)) - .toString(36) - .slice(1); + return Array.from(Array(20), () => Math.floor(Math.random() * 36).toString(36)).join(''); };
fix doc id generator
fix doc id generator
54aaf138169b0dde6259985c56c9b7174a1a653f
--- packages/me-at-walmart-common/package.json @@ -7,9 +7,6 @@ "files": [ "lib" ], - "publishConfig": { - "registry": "https://npme.walmart.com/" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark.git"
fix(pkg): removed publishConfig for package publish (#4671)
fix(pkg): removed publishConfig for package publish (#4671) Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com>
2e5c812e264a1166d049f5c4ce972b8917272022
--- package-lock.json @@ -88,7 +88,7 @@ "@walmart/time-clock-mini-app": "2.175.0", "@walmart/topstock-mini-app": "1.2.3", "@walmart/ui-components": "1.15.1", - "@walmart/welcomeme-mini-app": "0.84.0", + "@walmart/welcomeme-mini-app": "0.84.2", "@walmart/wfm-ui": "0.2.26", "axios": "~1.2.6", "axios-cache-adapter": "2.7.3", @@ -9378,9 +9378,9 @@ } }, "node_modules/@walmart/welcomeme-mini-app": { - "version": "0.84.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.84.0.tgz", - "integrity": "sha512-VIXacXkQsAhudxTrK/F4855zCXuZcbjCxIknClEm9+3Sg4Y92HXdup01GIH3vL0WuFICE2jjKV1VR9y/fPyCAg==", + "version": "0.84.2", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.84.2.tgz", + "integrity": "sha512-GrfZ5kEikWroSeP9jbI/107wg9mGr+453o5i664s3YBhGKm0tAd3lCbT/8evRTLeUsgMJfWBHWNHISNb+1vEoA==", "hasInstallScript": true, "dependencies": { "apisauce": "^1.1.2" @@ -34031,9 +34031,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.84.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.84.0.tgz", - "integrity": "sha512-VIXacXkQsAhudxTrK/F4855zCXuZcbjCxIknClEm9+3Sg4Y92HXdup01GIH3vL0WuFICE2jjKV1VR9y/fPyCAg==", + "version": "0.84.2", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.84.2.tgz", + "integrity": "sha512-GrfZ5kEikWroSeP9jbI/107wg9mGr+453o5i664s3YBhGKm0tAd3lCbT/8evRTLeUsgMJfWBHWNHISNb+1vEoA==", "requires": { "apisauce": "^1.1.2" } --- package.json @@ -129,7 +129,7 @@ "@walmart/time-clock-mini-app": "2.175.0", "@walmart/topstock-mini-app": "1.2.3", "@walmart/ui-components": "1.15.1", - "@walmart/welcomeme-mini-app": "0.84.0", + "@walmart/welcomeme-mini-app": "0.84.2", "@walmart/wfm-ui": "0.2.26", "axios": "~1.2.6", "axios-cache-adapter": "2.7.3",
chore: welcomeme mini app version bump
chore: welcomeme mini app version bump
698ae3cfd820a0f06299c7674ba6421bc99fdbd6
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "2.25.4", + "version": "2.25.5", "main": "index.ts", "workspaces": [ "packages/*"
feat: SMDV-9999 update package
feat: SMDV-9999 update package
04d77cc937922da914e3628598af5103c21e1452
--- src/cafeOrders/screens/MessagesScreen.tsx @@ -247,16 +247,13 @@ export const MessagesScreen = () => { sentFrom: userId, }); - channelDoc.set( - { - participants: [userId, recipientId], - createdAt: firestore.FieldValue.serverTimestamp(), - lastMessage: documentRef, - lastMessageTime: message.createdAt, - [`recentRead.${userId}`]: firestore.FieldValue.serverTimestamp(), - }, - {merge: true}, - ); + channelDoc.update({ + participants: [userId, recipientId], + createdAt: firestore.FieldValue.serverTimestamp(), + lastMessage: documentRef, + lastMessageTime: message.createdAt, + [`recentRead.${userId}`]: firestore.FieldValue.serverTimestamp(), + }); }; const renderItem: ListRenderItem<LocalMessage> = useCallback( --- src/cafeOrders/screens/MessagesScreen.tsx @@ -247,16 +247,13 @@ export const MessagesScreen = () => { sentFrom: userId, }); - channelDoc.set( - { - participants: [userId, recipientId], - createdAt: firestore.FieldValue.serverTimestamp(), - lastMessage: documentRef, - lastMessageTime: message.createdAt, - [`recentRead.${userId}`]: firestore.FieldValue.serverTimestamp(), - }, - {merge: true}, - ); + channelDoc.update({ + participants: [userId, recipientId], + createdAt: firestore.FieldValue.serverTimestamp(), + lastMessage: documentRef, + lastMessageTime: message.createdAt, + [`recentRead.${userId}`]: firestore.FieldValue.serverTimestamp(), + }); }; const renderItem: ListRenderItem<LocalMessage> = useCallback(
fix: fix recent read updates
fix: fix recent read updates
dc61a611c38e8ba8dd1b3c19aff4d89b81059852
--- src/ccmFallbacks.ts @@ -8,4 +8,5 @@ export const CCMFallbacks = { warningMessageContent: 'All users must be on the most recent version of Me@ to send and receive messages.', showViewTimeClock: false, + setFirestorePersistenceEnabled: true, }; --- src/index.tsx @@ -26,6 +26,8 @@ import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; import {useChannelUnreadCount, useMessagesUnreadCount} from './channels'; import {useTeamTextingFeature, useOneOnOneTextWithWin} from './hooks'; import {onNewMessage} from './navigation/utils'; +import firestore from '@react-native-firebase/firestore'; +import {setFirestorePersistenceEnabled} from './redux/selectors'; export {PushToTalkProvider} from './channels/pushToTalkProvider'; export const LOGGER_FIELDS = {id: 'texting-mini-app'}; @@ -71,6 +73,12 @@ initi18n(); export const MeganavTextingScreen = MeganavScreen; export const TextingMiniApp = () => { + const persistenceEnabledValue: boolean = useSelector( + setFirestorePersistenceEnabled, + ); + firestore().settings({ + persistence: persistenceEnabledValue, + }); const envConfig = useEnvironment(); const dispatch = useDispatch<ThunkDispatch<any, any, any>>(); const httpConfig = useMemo(() => getHttpConfig(envConfig), [envConfig]); --- src/redux/selectors.ts @@ -102,3 +102,10 @@ export const showViewTimeClock = createSelector( state?.showViewTimeClock?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showViewTimeClock, ); + +export const setFirestorePersistenceEnabled = createSelector( + [getTextingAppConfigData], + (state) => + state?.setFirestorePersistenceEnabled?.toString()?.toLowerCase() === + 'true' ?? CCMFallbacks.setFirestorePersistenceEnabled, +); --- src/ccmFallbacks.ts @@ -8,4 +8,5 @@ export const CCMFallbacks = { warningMessageContent: 'All users must be on the most recent version of Me@ to send and receive messages.', showViewTimeClock: false, + setFirestorePersistenceEnabled: true, }; --- src/index.tsx @@ -26,6 +26,8 @@ import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; import {useChannelUnreadCount, useMessagesUnreadCount} from './channels'; import {useTeamTextingFeature, useOneOnOneTextWithWin} from './hooks'; import {onNewMessage} from './navigation/utils'; +import firestore from '@react-native-firebase/firestore'; +import {setFirestorePersistenceEnabled} from './redux/selectors'; export {PushToTalkProvider} from './channels/pushToTalkProvider'; export const LOGGER_FIELDS = {id: 'texting-mini-app'}; @@ -71,6 +73,12 @@ initi18n(); export const MeganavTextingScreen = MeganavScreen; export const TextingMiniApp = () => { + const persistenceEnabledValue: boolean = useSelector( + setFirestorePersistenceEnabled, + ); + firestore().settings({ + persistence: persistenceEnabledValue, + }); const envConfig = useEnvironment(); const dispatch = useDispatch<ThunkDispatch<any, any, any>>(); const httpConfig = useMemo(() => getHttpConfig(envConfig), [envConfig]); --- src/redux/selectors.ts @@ -102,3 +102,10 @@ export const showViewTimeClock = createSelector( state?.showViewTimeClock?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showViewTimeClock, ); + +export const setFirestorePersistenceEnabled = createSelector( + [getTextingAppConfigData], + (state) => + state?.setFirestorePersistenceEnabled?.toString()?.toLowerCase() === + 'true' ?? CCMFallbacks.setFirestorePersistenceEnabled, +);
backmerge the changes for firestore settings
backmerge the changes for firestore settings
76c445e4b812f43243c4b68bdc4fc6b9b7c292eb
--- package-lock.json @@ -5094,9 +5094,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "1.2.82", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.2.82.tgz", - "integrity": "sha512-9wUVICUBWctWMhBaiNRzGz5HlFMcjEThUgseS9GlBjUgM3U2Wf5zUyqgnuDLFpA+o3G4eBQkUbODnkdcIwuB7A==", + "version": "1.2.84", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.2.84.tgz", + "integrity": "sha512-S8oPav4xy5pjO8qfjTsMWdGJOcvGN/fzjn2xbtvpMv/GJ3ze9qpK58wjsHkAmfxrE4hyMYP8xBtN2uyHPdI4FQ==", "requires": { "@walmart/core-utils": "^1.0.9", "@walmart/react-native-scanner-3.0": "^0.1.12", --- package.json @@ -79,7 +79,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.2.82", + "@walmart/ask-sam-mini-app": "1.2.84", "@walmart/config-components": "3.0.3", "@walmart/core-services": "~1.2.11", "@walmart/core-services-allspark": "~1.7.26",
ask sam version bump for link fix
ask sam version bump for link fix
dd9d0c500f0352e533ca2c58dd222baaf29ce826
--- src/home/components/TaskCard/TaskClockStatusStoreCard.tsx @@ -71,7 +71,16 @@ export const TaskClockStatusStoreCard = (props: TaskCardProps) => { const navigateToTeamView = () => { logWMTelemetryTouchComponentEvent('task_view_roster'); - navigation.navigate('roster'); + navigation.navigate('myTeam', { + screen: 'myTeam.root', + params: { + screen: 'myTeam.tabs', + params: { + screen: 'roster', + }, + }, + }); + // navigation.navigate('roster'); }; return ( --- src/home/components/TaskCard/TaskClockStatusTeamCard2.tsx @@ -92,7 +92,16 @@ export const TaskClockStatusTeamCard2 = (props: TaskCardProps) => { const navigateToTeamView = () => { logWMTelemetryTouchComponentEvent('task_view_roster'); - navigation.navigate('roster'); + navigation.navigate('myTeam', { + screen: 'myTeam.root', + params: { + screen: 'myTeam.tabs', + params: { + screen: 'roster', + }, + }, + }); + // navigation.navigate('roster'); }; return ( --- src/navigation/AssociateHallwayNav/types.ts @@ -65,7 +65,7 @@ export type MainStackMap = { 'metrics.outScansItemDrilldown': undefined; modFlex: undefined; 'money.auth': undefined; - myTeam: undefined; + myTeam: NavigatorScreenParams<MyTeamStackMap>; paymentselection: undefined; paystub: undefined; Pinpoint: undefined; @@ -203,7 +203,10 @@ export type HomeStackNavigationProp< // The my team stack navigator within the my team tab, a stack navigator. // Typing of its screens and their navigation params export type MyTeamStackMap = { - 'myTeam.root': undefined; + 'myTeam.root': { + [key: string]: any; + }; + roster: undefined; Attendance: undefined; scheduleScreen: undefined; };
Update the view roster navigation
Update the view roster navigation
b6e5c3f72964236556252355e63bc646a3cd8c01
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx @@ -28,6 +28,7 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({ variant='error' children={t('shiftFilter.mandatoryShiftError')} testID='mandatory-shift-error' + UNSAFE_style={styles.alert} /> )} <View style={styles.container}> --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/style.ts @@ -50,6 +50,9 @@ export const ShiftFilterListStyles = StyleSheet.create({ item: { marginBottom: 8, }, + alert: { + marginBottom: 16, + }, }); export const containreStyles = StyleSheet.create({
Adding alert styles
Adding alert styles
f847845f5941a94eb3387a724e6f9eeb0ce5b140
--- package.json @@ -134,7 +134,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-geolocation": "1.3.19", "@walmart/metrics-mini-app": "1.34.0", - "@walmart/mod-flex-mini-app": "patch:@walmart/mod-flex-mini-app@npm%3A1.30.3#~/.yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch", + "@walmart/mod-flex-mini-app": "1.31.0-beta.1", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.4.3", "@walmart/my-walmart-hub": "1.4.6", --- yarn.lock @@ -8556,7 +8556,7 @@ __metadata: "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-geolocation": "npm:1.3.19" "@walmart/metrics-mini-app": "npm:1.34.0" - "@walmart/mod-flex-mini-app": "patch:@walmart/mod-flex-mini-app@npm%3A1.30.3#~/.yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch" + "@walmart/mod-flex-mini-app": "npm:1.31.0-beta.1" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.4.3" "@walmart/my-walmart-hub": "npm:1.4.6" @@ -8836,61 +8836,22 @@ __metadata: languageName: node linkType: hard -"@walmart/mod-flex-mini-app@npm:1.30.3": - version: 1.30.3 - resolution: "@walmart/mod-flex-mini-app@npm:1.30.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.30.3.tgz" +"@walmart/mod-flex-mini-app@npm:1.31.0-beta.1": + version: 1.31.0-beta.1 + resolution: "@walmart/mod-flex-mini-app@npm:1.31.0-beta.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmod-flex-mini-app%2F-%2F%40walmart%2Fmod-flex-mini-app-1.31.0-beta.1.tgz" peerDependencies: - "@react-navigation/drawer": ">=6" - "@react-navigation/material-top-tabs": ">=6" - "@react-navigation/native": ">=6" - "@react-navigation/stack": ">=6" - "@walmart/allspark-foundation": ">=6" - "@walmart/allspark-utils": ">=6" - "@walmart/core-services-allspark": ">=6" - "@walmart/functional-components": ">=6" - "@walmart/gtp-shared-components": ^2.2.7 - "@walmart/ims-print-services-ui": ^2.21.1 - "@walmart/ui-components": ^1.7.0 - crypto-js: ~4.2.0 - expo: ~50.0.20 - expo-av: ">=13.10.6" - expo-haptics: ">=12.8.1" - expo-image: ~1.10.6 - i18next: ^23.6.0 - lodash: ~4.17.21 - react: "*" - react-i18next: ^13.3.1 - react-native: "*" - react-native-device-info: ~10.13.1 - react-native-get-random-values: ~1.10.0 - react-native-image-pan-zoom: ^2.1.12 - react-native-pdf: ^6.7.5 - react-native-safe-area-context: ^4.8.2 - react-native-screens: ^3.28.0 - react-native-tab-view: ^3.3.0 - react-native-webview: ^11.23.1 - react-redux: ^8.1.3 - redux: ^4.2.1 - redux-saga: ^1.2.3 - uuid: ^3.3.2 - checksum: 10c0/51a5464c8dd638f2c57a6487a19d0b957a70e6fe636065dfdc077664afd55ba8ec209bf0cd580532b258556c2cbcf1aa64ad8ec6bafef864e991b6da790c38f2 - languageName: node - linkType: hard - -"@walmart/mod-flex-mini-app@patch:@walmart/mod-flex-mini-app@npm%3A1.30.3#~/.yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch": - version: 1.30.3 - resolution: "@walmart/mod-flex-mini-app@patch:@walmart/mod-flex-mini-app@npm%3A1.30.3%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fmod-flex-mini-app%252F-%252F%2540walmart%252Fmod-flex-mini-app-1.30.3.tgz#~/.yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch::version=1.30.3&hash=13e608" - peerDependencies: - "@react-navigation/drawer": ">=6" - "@react-navigation/material-top-tabs": ">=6" - "@react-navigation/native": ">=6" - "@react-navigation/stack": ">=6" + "@react-native-segmented-control/segmented-control": ^2.5.7 + "@react-navigation/drawer": ">=7" + "@react-navigation/material-top-tabs": ">=7" + "@react-navigation/native": ">=7" + "@react-navigation/stack": ">=7" "@walmart/allspark-foundation": ">=6" "@walmart/allspark-utils": ">=6" "@walmart/core-services-allspark": ">=6" "@walmart/functional-components": ">=6" - "@walmart/gtp-shared-components": ^2.2.7 - "@walmart/ims-print-services-ui": ^2.21.1 + "@walmart/gtp-shared-components": 2.2.7 + "@walmart/gtp-shared-components-3": "*" + "@walmart/ims-print-services-ui": 2.23.0 "@walmart/ui-components": ^1.7.0 crypto-js: ~4.2.0 expo: ~50.0.20 @@ -8914,7 +8875,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 uuid: ^3.3.2 - checksum: 10c0/6c173d13430852cdf08dfd21f2248d62f19901c08af9df5420d6d8d2cf89e601d3b75ca2977c0043d829ded5e8cdf711d6ba4197028584de8468cd6685fb6181 + checksum: 10c0/41be446744e934988c6addca5188d0e23b70e89df280ac1c06ce2f9cf469810b55f370825e9f19cfb7cea669ebeea09aa3f0f57a55e1f279de1e9e09a3fb7639 languageName: node linkType: hard
feat: INNODELOC-16475 modflex drop 35 version bump
feat: INNODELOC-16475 modflex drop 35 version bump
51dd14b46fbfeb40486156c970fe31182d7c22cf
--- .looper-pr.yml @@ -11,7 +11,7 @@ flows: - (name Yarn Set Version) yarn set version 4.4.0 - (name Yarn Version) yarn --version - (name Yarn Install) yarn install - - (name Test Coverage) yarn run coverage + # - (name Test Coverage) yarn run coverage envs:
feat(ui): update the roster message button condition for total store and team
feat(ui): update the roster message button condition for total store and team
cb815407e1423f9da17aa8a0c6239f902a1ac543
--- .github/pull_request_template.md @@ -23,10 +23,10 @@ _Put an `x` in the boxes that apply_ - [ ] Documentation Update (if none of the other choices apply) ### Checklist -- [ ] Please provide a **screenshot of code coverage** for the mini app node module. Minimum 90% coverage required. - [ ] Have you updated the [Firebase events list](https://confluence.walmart.com/display/ALLSPARK/All+Spark+Custom+Firebase+Events+by+Feature+App) with your mini-app's events? - [ ] Are all peer dependencies for your mini app included in allspark-core package.json? - [ ] If this is a new mini-app, include the onboarding documentation link for your mini-app. +- [ ] Please provide a **screenshot of code coverage** for the mini app node module. Minimum 90% coverage required. ### Risk level: To help with review, estimate the risk level of the changes in this PR?
twicking changes
twicking changes
5e13015a2404671796fd263dcc96611a3ffd8ea2
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 17 + versionCode 18 versionName "1.0.1" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>17</string> + <string>18</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>17</string> + <string>18</string> </dict> </plist>
Incrementing build number
Incrementing build number
7640009d204ac45fc4ea69429c9cab286790c45a
--- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -243,7 +243,7 @@ export const SupplyChainRosterDetailScreen = ({ shiftNumber: any, ) { if ( - availableShifts?.supplyChainShifts.every((shift) => + availableShifts?.supplyChainShifts?.every((shift) => shiftNumber.includes(shift.number), ) ) {
Adding all shift check
Adding all shift check
6efd9b47215ada0346ca8e229ac5703b6891a36b
--- packages/expo-config-plugins/CHANGELOG.md @@ -0,0 +1,10 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# 0.1.0 (2025-03-03) + +### Features + +- add expo-config-plugins package ([3df3f69](https://gecgithub01.walmart.com/allspark/allspark/commit/3df3f69eb66a93e3e57722f5c8c7c096d19da74a)) --- packages/expo-config-plugins/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/expo-config-plugins", "packageManager": "yarn@4.1.1", - "version": "0.0.1", + "version": "0.1.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.1.0
9b4e39a8e7aa6a6139494c84429d02718f613886
--- packages/associate-exp-hub-team-switcher/src/components/modals/hoc/UpdateModal.tsx @@ -107,6 +107,7 @@ import { useTeamSelection, } from '../../../services/teamState'; import {Animations} from '../config/animations'; +import {WorkActionsCreators} from '@walmart/allspark-foundation/Work'; /** * Compute areaDepartments from GraphQL fields @@ -474,6 +475,26 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { // Update Redux with the selected team dispatch(AssociateExpHubActionCreators.updateSelectedTeamData(teamData)); + // Update Work Context with team data for widgets and other consumers + const timestamp = Date.now(); + dispatch( + WorkActionsCreators.SET_WORK_CONTEXT({ + teamId: teamData.teamId, + teamLabel: teamData.teamLabel, + teamData: JSON.stringify(teamData), + shifts: isSiteDC + ? JSON.stringify(selectedShifts) + : JSON.stringify([]), + metricsDeptsNumbers: JSON.stringify( + computedDepartments.metricsDeptsNumbers || [] + ), + merchantDeptsNumbers: JSON.stringify( + computedDepartments.merchantDeptsNumbers || [] + ), + timestamp, + }) + ); + // For supply chain sites, also update shifts if (isSiteDC) { const validShifts = selectedShifts.filter( --- packages/associate-exp-hub-team-switcher/src/components/team-switcher/MyWalmartTeamSwitcherFilter.tsx @@ -230,22 +230,38 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ const teamDataWithDepts = selectedTeam as any; // Type assertion to access areaDepartments const timestamp = Date.now(); + const teamSwitcherData: TeamSwitcherData = { + teamId: selectedTeam.teamId, + teamLabel: selectedTeam.teamLabel, + teamData: JSON.stringify(selectedTeam), + shifts: JSON.stringify(selectedShifts), + metricsDeptsNumbers: JSON.stringify( + teamDataWithDepts.areaDepartments?.metricsDeptsNumbers || [] + ), + merchantDeptsNumbers: JSON.stringify( + teamDataWithDepts.areaDepartments?.merchantDeptsNumbers || [] + ), + timestamp, + }; + dispatch( WorkActionsCreators.SET_WORK_CONTEXT({ - teamId: selectedTeam.teamId, - teamLabel: selectedTeam.teamLabel, - teamData: JSON.stringify(selectedTeam), - shifts: JSON.stringify(selectedShifts), - metricsDeptsNumbers: JSON.stringify( - teamDataWithDepts.areaDepartments?.metricsDeptsNumbers || [] - ), - merchantDeptsNumbers: JSON.stringify( - teamDataWithDepts.areaDepartments?.merchantDeptsNumbers || [] - ), - timestamp, + teamId: teamSwitcherData.teamId, + teamLabel: teamSwitcherData.teamLabel, + teamData: teamSwitcherData.teamData, + shifts: teamSwitcherData.shifts, + metricsDeptsNumbers: teamSwitcherData.metricsDeptsNumbers, + merchantDeptsNumbers: teamSwitcherData.merchantDeptsNumbers, + timestamp: teamSwitcherData.timestamp, }) ); + // Call onTeamChange callback with the team data (only from active tab to avoid duplicates) + // This ensures the callback is triggered when team changes from ANY source (modal, initialization, etc.) + if (isActive && onTeamChange) { + onTeamChange(selectedTeam.teamLabel, teamSwitcherData); + } + // Track what we synced to prevent re-syncing the same data lastSyncedTeamRef.current = {teamId: selectedTeam.teamId, timestamp}; prevShiftsRef.current = selectedShifts; @@ -289,6 +305,7 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ dispatch, isSiteDC, broadcastTeamChange, + onTeamChange, ]); // Get primary team data from Hub Framework @@ -668,33 +685,6 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ }); } - // Use the correct fallback text based on site type - const fallbackText = isSiteDC ? 'Total Site' : 'Total Store'; - - // Prepare TeamSwitcherData to pass to onTeamChange - const selectedTeam = teamState.selectedTeamData; - const teamDataWithDepts = selectedTeam as any; // Type assertion to access areaDepartments - const timestamp = Date.now(); - - const teamSwitcherData: TeamSwitcherData = { - teamId: selectedTeam.teamId, - teamLabel: selectedTeam.teamLabel, - teamData: JSON.stringify(selectedTeam), - shifts: JSON.stringify(selectedShifts), - metricsDeptsNumbers: JSON.stringify( - teamDataWithDepts.areaDepartments?.metricsDeptsNumbers || [] - ), - merchantDeptsNumbers: JSON.stringify( - teamDataWithDepts.areaDepartments?.merchantDeptsNumbers || [] - ), - timestamp, - }; - - onTeamChange?.( - teamState.selectedTeamData.teamLabel || fallbackText, - teamSwitcherData - ); - // Log team selection - ALWAYS enabled for monitoring logger.info('Team selection started', { message: 'User initiated team selection', @@ -706,12 +696,10 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ isActive, enableTeamSwitcher, isThrottled, - onTeamChange, teamState.selectedTeamData, isSiteDC, throttleTime, guardedOpenModal, - selectedShifts, ]); // Add defensive check for teamState
feat(ui): apply will now give switcher selection with metadata
feat(ui): apply will now give switcher selection with metadata
e7e7d938ad75c4b2a12c453e19159eb952d3cfc3
--- core/__tests__/connectivity/ConnectivityTest.tsx @@ -1,8 +1,12 @@ import {all, call, takeLatest, select} from 'redux-saga/effects'; -import {NetworkActionTypes} from '@walmart/allspark-foundation/Network'; +import { + NetworkActionTypes, + NetworkSelectors, +} from '@walmart/allspark-foundation/Network'; import {UserActionTypes} from '@walmart/allspark-foundation/User'; import { AllsparkBanners } from '@walmart/allspark-foundation/Components'; +import {AllsparkTranslationClient} from '@walmart/allspark-foundation/Translation'; import { connectivitySagas, updateConnectivityBanner, @@ -12,9 +16,6 @@ import {SettingsActionTypes} from '../../src/settings/redux'; import { createRestartableSaga } from '@walmart/allspark-utils'; import { Logger } from '../../src/core/Logger'; -test('getShowConnectivityWarning', () => { - expect(true).toEqual(true); -}); test('connectivitySagas', () => { const iterator = connectivitySagas(); @@ -38,6 +39,13 @@ describe('updateConnectivityBanner Saga', () => { const saga = updateConnectivityBanner(); expect(saga.next().value).toEqual(select(getShowConnectivityWarning)); + expect(saga.next(true).value).toEqual( + AllsparkBanners.add('connectivity', { + type: 'banner', + value: AllsparkTranslationClient.t('banners.connectivity'), + variant: 'warning', + }) + ); expect(saga.next().done).toBe(true); }); @@ -69,4 +77,17 @@ describe('connectivitySagas', () => { ])); expect(saga.next().done).toBe(true); }); -}); \ No newline at end of file +}); + +describe('getShowConnectivityWarning', () => { + const network = { type: 'wifi', isConnected: true }; + (NetworkSelectors.getData as jest.Mock).mockReturnValue(network) + it('returns false when network is connect and type is wifi', () => { + expect(getShowConnectivityWarning([NetworkSelectors])).toBe(false); + }); + it('returns true when network is not wifi', () => { + const network = { type: 'cellur', isConnected: false }; + (NetworkSelectors.getData as jest.Mock).mockReturnValue(network) + expect(getShowConnectivityWarning([NetworkSelectors])).toBe(true); + }); +});
test getshowconnectivitywaring
test getshowconnectivitywaring
90476822bdb352ac112373c7d924324e964e2795
--- src/utils/user.ts @@ -14,6 +14,8 @@ export const encryptUserId = (userId: string) => baseEncryptUserId(userId, OBFUSCATION_KEY).replace(/\//g, '\\'); export const decryptUserId = (userId: string) => { + if (isNil(userId)) return userId; + const id = userId.replace(/\\/g, '/'); const encodedKey = CryptoJS.enc.Hex.parse(OBFUSCATION_PARSE_KEY); const decrypted = CryptoJS.AES.decrypt(id, encodedKey, {
Update associate clocked in for salaried associates
Update associate clocked in for salaried associates
2dea2e5c82c3e438315547a7e5f8de7fe1a033e2
--- package-lock.json @@ -47,7 +47,7 @@ "@walmart/exception-mini-app": "1.2.4", "@walmart/facilities-management-miniapp": "0.6.7", "@walmart/feedback-all-spark-miniapp": "0.9.25", - "@walmart/financial-wellbeing-feature-app": "1.4.2", + "@walmart/financial-wellbeing-feature-app": "1.6.0", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.4", @@ -5199,9 +5199,9 @@ } }, "node_modules/@walmart/financial-wellbeing-feature-app": { - "version": "1.4.2", - "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.4.2.tgz", - "integrity": "sha512-IOcFYCG2y/+pwMctJECL/Rpi+Kzkfn+6OtETp+XtNiFHQ8m81C3qannJYZQPQdJB3htpJfTPgKpcsjqyuRQvgA==", + "version": "1.6.0", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.6.0.tgz", + "integrity": "sha512-g+FkyHDCVmCdeDXXC1nZztGrhI4jsWWQ3KokhzLs+IuydCpG5osEikO+nW0UUAZUWYtnX+RYsRDjlJCij3ytCQ==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -25117,9 +25117,9 @@ "integrity": "sha512-xSrJMEScMx3bC5AzGIBn7B1DhTmMPG6Wd3q4IREQjiTv5H37ezd7YWu5CkpHTAmezFOiFbaNvPmeNyIkQl+A+A==" }, "@walmart/financial-wellbeing-feature-app": { - "version": "1.4.2", - "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.4.2.tgz", - "integrity": "sha512-IOcFYCG2y/+pwMctJECL/Rpi+Kzkfn+6OtETp+XtNiFHQ8m81C3qannJYZQPQdJB3htpJfTPgKpcsjqyuRQvgA==" + "version": "1.6.0", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.6.0.tgz", + "integrity": "sha512-g+FkyHDCVmCdeDXXC1nZztGrhI4jsWWQ3KokhzLs+IuydCpG5osEikO+nW0UUAZUWYtnX+RYsRDjlJCij3ytCQ==" }, "@walmart/functional-components": { "version": "4.0.3", --- package.json @@ -89,7 +89,7 @@ "@walmart/exception-mini-app": "1.2.4", "@walmart/facilities-management-miniapp": "0.6.7", "@walmart/feedback-all-spark-miniapp": "0.9.25", - "@walmart/financial-wellbeing-feature-app": "1.4.2", + "@walmart/financial-wellbeing-feature-app": "1.6.0", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.4",
bumped financial-wellbeing-feature-app to 1.6.0
bumped financial-wellbeing-feature-app to 1.6.0
5321e4360432e43b51a978c9021da23d9270e352
--- packages/core-services-allspark/package.json @@ -48,7 +48,7 @@ "@types/jest": "^26.0.23", "@types/luxon": "^2.3.2", "@types/uuid": "~8.3.4", - "@walmart/config-components": "4.0.1", + "@walmart/config-components": "4.1.0-rc.4", "@walmart/react-native-encrypted-storage": "^1.1.13", "@walmart/react-native-logger": "1.29.0", "@walmart/react-native-scanner-3.0": "0.1.20", @@ -80,7 +80,7 @@ "@react-native-firebase/firestore": "^15.1.1", "@react-native-firebase/perf": "^15.1.1", "@react-navigation/native": "^6.0.0", - "@walmart/config-components": ">=4.0.1", + "@walmart/config-components": ">=4.1.0", "@walmart/react-native-encrypted-storage": "^1.1.13", "@walmart/react-native-logger": ">=1.29.0", "@walmart/react-native-scanner-3.0": ">=0.1.20", --- packages/core-services-allspark/src/appConfig/sagas.ts @@ -82,6 +82,7 @@ export function* getAppConfigScope(this: AppConfigSagaScope) { model, osVersion, employmentStatus, + isDCUser, ]: string[] = yield all([ select(SiteSelectors.getSiteCountry), select(SiteSelectors.getSiteDivisonCode), @@ -95,6 +96,7 @@ export function* getAppConfigScope(this: AppConfigSagaScope) { call(DeviceInfo.getModel), call(DeviceInfo.getSystemVersion), select(UserSelectors.getUserEmploymentStatus), + select(SiteSelectors.isSiteDistributionCenter), ]); return { @@ -112,6 +114,7 @@ export function* getAppConfigScope(this: AppConfigSagaScope) { deviceType, division: divisionNbr, employmentStatus: `${employmentStatus}`, + isDCUser, }, } as AppConfigFetchParams; }
fix: add dc user field to core service config fetch
fix: add dc user field to core service config fetch
9e3a937367bd28c858d13c2f08e16ca39d7b8e2c
--- src/components/RecentSearchHistory/index.tsx @@ -1,13 +1,15 @@ import React from 'react'; import {FlashList} from '@shopify/flash-list'; import {useDispatch} from 'react-redux'; -import {IconButton, Icons, colors} from '@walmart/gtp-shared-components'; -import {Text, TouchableOpacity, View} from 'react-native'; +import {Body, IconButton, Icons, colors} from '@walmart/gtp-shared-components'; +import {TouchableOpacity, View} from 'react-native'; import {styles} from './style'; import {textingSlice} from '../../redux/reducer'; import {RecentSearchHistoryProps} from './types'; import {useTranslation} from 'react-i18next'; import {TEXTING_I18N_NAMESPACE} from '../../translations'; +import AsyncStorage from '@react-native-async-storage/async-storage'; +import {LOCAL_STORAGE_KEY_PREFIX} from '../../constants'; export const RecentSearchHistory = (props: RecentSearchHistoryProps) => { const {recentSearchHistoryData, clearSearchHistory} = props; @@ -19,17 +21,26 @@ export const RecentSearchHistory = (props: RecentSearchHistoryProps) => { dispatch(textingSlice.actions.SET_SEARCH_TEXT(title)); }; - const Item = ({title}: any) => ( + const associateRemoveHandler = (index: number) => { + const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`; + recentSearchHistoryData.pop(index); + AsyncStorage.setItem( + RECENT_SEARCH_HISTORY_KEY, + JSON.stringify([...recentSearchHistoryData]), + ); + }; + + const Item = ({title, index}: any) => ( <View style={styles.item}> <IconButton size='small' children={<Icons.CloseIcon size={16} color={colors.black} />} - onPress={() => console.log('Close Icon pressed!')} + onPress={() => associateRemoveHandler(index)} /> <TouchableOpacity testID='pressTextLink' onPress={() => associateLinkHandler(title)}> - <Text style={styles.itemText}>{title}</Text> + <Body UNSAFE_style={styles.itemText}>{title}</Body> </TouchableOpacity> </View> ); @@ -41,15 +52,17 @@ export const RecentSearchHistory = (props: RecentSearchHistoryProps) => { testID='linkButtonClearRecentSearch' style={styles.clearSearch} onPress={clearSearchHistory}> - <Text style={styles.clearSearchLink}> + <Body UNSAFE_style={styles.clearSearchLink}> {t('searchScreen.clearRecentSearch')} - </Text> + </Body> </TouchableOpacity> </View> ); }; - const renderItem = ({item}: any) => <Item title={item} />; + const renderItem = ({item, index}: any) => ( + <Item title={item} index={index} /> + ); return ( <FlashList --- src/components/RecentSearchHistory/index.tsx @@ -1,13 +1,15 @@ import React from 'react'; import {FlashList} from '@shopify/flash-list'; import {useDispatch} from 'react-redux'; -import {IconButton, Icons, colors} from '@walmart/gtp-shared-components'; -import {Text, TouchableOpacity, View} from 'react-native'; +import {Body, IconButton, Icons, colors} from '@walmart/gtp-shared-components'; +import {TouchableOpacity, View} from 'react-native'; import {styles} from './style'; import {textingSlice} from '../../redux/reducer'; import {RecentSearchHistoryProps} from './types'; import {useTranslation} from 'react-i18next'; import {TEXTING_I18N_NAMESPACE} from '../../translations'; +import AsyncStorage from '@react-native-async-storage/async-storage'; +import {LOCAL_STORAGE_KEY_PREFIX} from '../../constants'; export const RecentSearchHistory = (props: RecentSearchHistoryProps) => { const {recentSearchHistoryData, clearSearchHistory} = props; @@ -19,17 +21,26 @@ export const RecentSearchHistory = (props: RecentSearchHistoryProps) => { dispatch(textingSlice.actions.SET_SEARCH_TEXT(title)); }; - const Item = ({title}: any) => ( + const associateRemoveHandler = (index: number) => { + const RECENT_SEARCH_HISTORY_KEY = `${LOCAL_STORAGE_KEY_PREFIX}_recent_search_history`; + recentSearchHistoryData.pop(index); + AsyncStorage.setItem( + RECENT_SEARCH_HISTORY_KEY, + JSON.stringify([...recentSearchHistoryData]), + ); + }; + + const Item = ({title, index}: any) => ( <View style={styles.item}> <IconButton size='small' children={<Icons.CloseIcon size={16} color={colors.black} />} - onPress={() => console.log('Close Icon pressed!')} + onPress={() => associateRemoveHandler(index)} /> <TouchableOpacity testID='pressTextLink' onPress={() => associateLinkHandler(title)}> - <Text style={styles.itemText}>{title}</Text> + <Body UNSAFE_style={styles.itemText}>{title}</Body> </TouchableOpacity> </View> ); @@ -41,15 +52,17 @@ export const RecentSearchHistory = (props: RecentSearchHistoryProps) => { testID='linkButtonClearRecentSearch' style={styles.clearSearch} onPress={clearSearchHistory}> - <Text style={styles.clearSearchLink}> + <Body UNSAFE_style={styles.clearSearchLink}> {t('searchScreen.clearRecentSearch')} - </Text> + </Body> </TouchableOpacity> </View> ); }; - const renderItem = ({item}: any) => <Item title={item} />; + const renderItem = ({item, index}: any) => ( + <Item title={item} index={index} /> + ); return ( <FlashList
initial commit for removing the entry
initial commit for removing the entry
085f64189219f15fa5a4da7e6de7cd66184d84d1
--- packages/allspark-foundation-hub/src/HubFeature/BottomSheet/HubOnboardingImage/OnboardingImage.tsx @@ -15,8 +15,9 @@ const HubOnboardingImage = ({ <> <TeamImage source={{ - uri: source, + uri: source.uri, }} + placeholder={source.placeholder} style={styles.imageContainer} resizeMode='contain' /> --- packages/allspark-foundation-hub/src/HubFeature/BottomSheet/HubOnboardingImage/types.ts @@ -1,5 +1,8 @@ export interface HubOnboardingImageProps { - source: string; + source: { + uri: string; + placeholder: string; + }; title: string; description: string; } --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -183,8 +183,14 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { } source={ isMutationError - ? 'https://i5-me.walmartimages.com/images/metrics/cone-error-3212fb53c5.png' - : 'https://i5-me.walmartimages.com/images/teams/my-teams-mgr-exp-1edac1ba4a.png' + ? { + uri: 'https://i5-me.walmartimages.com/images/metrics/cone-error-3212fb53c5.png', + placeholder: 'KbNK;xj[_MkXa|ae%fa|=X', + } + : { + uri: 'https://i5-me.walmartimages.com/images/teams/my-teams-mgr-exp-1edac1ba4a.png', + placeholder: 'KdM7in%J~q=pn#M{~VNIxU', + } } /> ); --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamOnboarding/Component/TeamOnboarding.tsx @@ -36,7 +36,8 @@ export const TeamOnboarding = ({ > <View style={styles.imageContainer}> <TeamImage - source={{ uri: Images.teamOnboarding }} + source={{ uri: Images.teamOnboarding.uri }} + placeholder={Images.teamOnboarding.placeholder} style={styles.imageSize} resizeMode='contain' /> --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamOnboarding/Images/index.ts @@ -1,4 +1,6 @@ export const Images = { - teamOnboarding: - 'https://i5-me.walmartimages.com/images/teams/team-onboarding-mgr-exp-228277d75b.png', + teamOnboarding: { + uri: 'https://i5-me.walmartimages.com/images/teams/team-onboarding-mgr-exp-228277d75b.png', + placeholder: 'KrJuo_NG?wSgodag?aWC$x', + }, }; --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Component/ErrorScreen.tsx @@ -1,7 +1,8 @@ import { Button, ErrorMessage } from '@walmart/gtp-shared-components/dist'; import React from 'react'; import { errorScreenStyles as styles } from '../styles'; -import { Image, View } from 'react-native'; +import { View } from 'react-native'; +import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; export interface ErrorScreenProps { errorTitle: string; @@ -16,6 +17,8 @@ export const ErrorScreen = ({ buttonText, handleButtonPress, }: ErrorScreenProps) => { + const TeamImage = useAllsparkImage(); + return ( <View testID='error-screen-container' style={styles.container}> <ErrorMessage @@ -27,12 +30,13 @@ export const ErrorScreen = ({ </Button> } media={ - <Image + <TeamImage accessibilityRole='image' accessibilityLabel={errorTitle} source={{ uri: 'https://i5-me.walmartimages.com/images/metrics/magnifying-glass-error-icon-fb9309e548.png', }} + placeholder='KLQAN?~9~U=rn$JCyDE3-O' height={162} width={162} /> --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionListItem.tsx @@ -44,6 +44,7 @@ export const TeamSelectionListItem = ({ > <TeamImage source={{ uri: images[teamName]?.uri }} + placeholder={images[teamName]?.blurhash} style={styles.teamImage} resizeMode='contain' /> --- packages/allspark-foundation/src/HubFeature/BottomSheet/HubOnboardingImage/OnboardingImage.tsx @@ -14,8 +14,9 @@ const HubOnboardingImage = ({ <> <TeamImage source={{ - uri: source, + uri: source.uri, }} + placeholder={source.placeholder} style={styles.imageContainer} resizeMode='contain' /> --- packages/allspark-foundation/src/HubFeature/BottomSheet/HubOnboardingImage/types.ts @@ -1,5 +1,5 @@ export interface HubOnboardingImageProps { - source: string; + source: { uri: string; placeholder: string }; title: string; description: string; } --- packages/allspark-foundation/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -231,8 +231,10 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { content={HubOnboardingImage({ title: t('bottomSheet.title'), description: t('bottomSheet.description'), - source: - 'https://i5-me.walmartimages.com/images/teams/my-teams-mgr-exp-1edac1ba4a.png', + source: { + uri: 'https://i5-me.walmartimages.com/images/metrics/cone-error-3212fb53c5.png', + placeholder: 'KbNK;xj[_MkXa|ae%fa|=X', + }, })} onPrimaryButtonPress={closeBottomSheet} primaryButtonText={t('bottomSheet.buttonText')} --- packages/allspark-foundation/src/HubFeature/Onboarding/TeamOnboarding/Component/TeamOnboarding.tsx @@ -36,7 +36,8 @@ export const TeamOnboarding = ({ > <View style={styles.imageContainer}> <TeamImage - source={{ uri: Images.teamOnboarding }} + source={{ uri: Images.teamOnboarding.uri }} + placeholder={Images.teamOnboarding.placeholder} style={styles.imageSize} resizeMode='contain' /> --- packages/allspark-foundation/src/HubFeature/Onboarding/TeamOnboarding/Images/index.ts @@ -1,4 +1,6 @@ export const Images = { - teamOnboarding: - 'https://i5-me.walmartimages.com/images/teams/team-onboarding-mgr-exp-228277d75b.png', + teamOnboarding: { + uri: 'https://i5-me.walmartimages.com/images/teams/team-onboarding-mgr-exp-228277d75b.png', + placeholder: 'KrJuo_NG?wSgodag?aWC$x', + }, }; --- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Component/ErrorScreen.tsx @@ -1,7 +1,8 @@ import { Button, ErrorMessage } from '@walmart/gtp-shared-components/dist'; import React from 'react'; import { errorScreenStyles as styles } from '../styles'; -import { Image, View } from 'react-native'; +import { View } from 'react-native'; +import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; export interface ErrorScreenProps { errorTitle: string; @@ -16,6 +17,8 @@ export const ErrorScreen = ({ buttonText, handleButtonPress, }: ErrorScreenProps) => { + const TeamImage = useAllsparkImage(); + return ( <View testID='error-screen-container' style={styles.container}> <ErrorMessage @@ -27,12 +30,13 @@ export const ErrorScreen = ({ </Button> } media={ - <Image + <TeamImage accessibilityRole='image' accessibilityLabel={errorTitle} source={{ uri: 'https://i5-me.walmartimages.com/images/metrics/magnifying-glass-error-icon-fb9309e548.png', }} + placeholder='KLQAN?~9~U=rn$JCyDE3-O' height={162} width={162} />
chore(ui): add placeholder blurhash for all the images
chore(ui): add placeholder blurhash for all the images
fe900b43dadd3b1ca054c8c014d1851477da670f
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [3.11.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.10.0...v3.11.0) (2025-12-19) + + +### Features + +* **ui:** update roster version ([56becbd](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/56becbdefc913bd1944745c15f6e37c4cb4df2e3)) + # [3.10.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.9.0...v3.10.0) (2025-12-19) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.10.0", + "version": "3.11.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.11.0 [skip ci]
chore(release): 3.11.0 [skip ci] # [3.11.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.10.0...v3.11.0) (2025-12-19) ### Features * **ui:** update roster version ([56becbd](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/56becbdefc913bd1944745c15f6e37c4cb4df2e3))
aaee72ec7740771a79542f6abc175474ff4bb018
--- src/constants.ts @@ -10,3 +10,10 @@ export const payTypes = Object.freeze({ SALARIED: 'S', HOURLY: 'H', }); + +export const filterValues = { + all: 'all', + absent: 'absent', + tardy: 'tardy', + clockedIn: 'clockedIn', +}; --- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -56,6 +56,7 @@ import {ListEmptyComponent} from '../../components/EmptyList'; import {useAllsparkImage} from '@walmart/allspark-foundation/Components/context'; import {Images} from '../../images'; import {rosterTelemetry} from '../../../common'; +import {filterValues} from '../../../constants'; export const RosterDetailScreen = () => { const {t} = useTranslation([ROSTER_I18N_NAMESPACE]); @@ -250,33 +251,16 @@ export const RosterDetailScreen = () => { [teamState], ); - const getContext = () => { - if (selectedFilter === FilterValue.absent) { - return FilterValue.absent; - } else if (selectedFilter === FilterValue.tardy) { - return FilterValue.tardy; - } else if (selectedFilter === FilterValue.clockedIn) { - return FilterValue.clockedIn; - } else { - return FilterValue.all; - } - }; - - const getSelectFilterLabel = () => { - if (selectedFilter === FilterValue.absent) { - return t('rosterScreen.filters.absent'); - } else if (selectedFilter === FilterValue.tardy) { - return t('rosterScreen.filters.tardy'); - } else if (selectedFilter === FilterValue.clockedIn) { - return t('rosterScreen.filters.clockedIn'); - } else { - return t('rosterScreen.filters.all'); - } + const filterLabels = { + all: t('rosterScreen.filters.all'), + absent: t('rosterScreen.filters.absent'), + tardy: t('rosterScreen.filters.tardy'), + clockedIn: t('rosterScreen.filters.clockedIn'), }; const emptyListInfo = useMemo(() => { - const context = getContext(); - const filterLabel = getSelectFilterLabel(); + const context = filterValues[selectedFilter]; + const filterLabel = filterLabels[selectedFilter]; return { title: t('rosterListEmptyComponent.title', { filterLabel,
Add empty list component
Add empty list component
d2f78517cd29a445ed9356323db639eb294b1d82
--- __tests__/harness/athenaQueries/getTeamById.ts @@ -13,7 +13,7 @@ export const mockGetTeamByIdQuery = { storeNbr: '100', teamId: '1000333', }, - skip: true, + skip: false, }, result: { data: { @@ -76,7 +76,7 @@ export const mockGetTeamByIdQueryRosterDetail = { storeNbr: '100', teamId: '1000333', }, - skip: true, + skip: false, }, result: { data: { --- __tests__/managerExperience/components/__snapshots__/RosterDetailPageHeader.test.tsx.snap @@ -100,7 +100,7 @@ exports[`RosterDetailPageHeader renders the header and subText correctly 1`] = ` }, ] } - testID="view-all-teams-btn" + testID="view-all-teams-link" > View other teams </Text> @@ -212,7 +212,7 @@ exports[`RosterDetailPageHeader renders without subText when not provided 1`] = }, ] } - testID="view-all-teams-btn" + testID="view-all-teams-link" > View other teams </Text> --- __tests__/managerExperience/screens/RosterDetailScreen.test.tsx @@ -262,7 +262,7 @@ describe('RosterDetailScreen', () => { const {getByTestId} = renderWithProviders( <RosterDetailScreen route={mockRoute} />, ); - const viewAllTeamsButton = getByTestId('view-all-teams-btn'); + const viewAllTeamsButton = getByTestId('view-all-teams-link'); fireEvent.press(viewAllTeamsButton); expect(mockNavigation).toBeCalledWith('myTeam.allTeams'); }); --- __tests__/managerExperience/screens/__snapshots__/RosterDetailScreen.test.tsx.snap @@ -101,7 +101,7 @@ exports[`RosterDetailScreen renders associate view if user is not a manager 1`] }, ] } - testID="view-all-teams-btn" + testID="view-all-teams-link" > View other teams </Text> --- src/managerExperience/components/RosterDetailPageHeader/RosterDetailPageHeader.tsx @@ -27,7 +27,7 @@ export const RosterDetailPageHeader = ({ <Link UNSAFE_style={styles.link} onPress={handleNavigation} - testID='view-all-teams-btn'> + testID='view-all-teams-link'> {t('rosterScreen.viewTeamLink.linkLabel')} </Link> </View>
test: updated test id and mock data
test: updated test id and mock data
3d9b260fa8d4f653b057f8d720456ca41486c4a9
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.2.7-alpha.3", + "version": "1.2.7-alpha.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation-hub/src/Shared/Common/TeamHub.ts @@ -23,6 +23,7 @@ export interface BaseTeamHubWidgetProps { export interface TeamHubWidgetProps { selectedTeamPreference?: string; selectedTeamIds?: string[]; + selectedShifts?: string[]; refresh?: string | null; widgetStyle?: any; }
Update the allspark foundation hub version for SC
Update the allspark foundation hub version for SC
430d06254e3742eba47311e7c99e3fcf5b3a40b6
--- docs/docs/components/icons/icons-core-owned.md @@ -17,11 +17,7 @@ These icons are located in the `allspark-core/targets/US/ios/Allspark/Images.xca | Prod App Icon | ![](./images/prod-ios.png) | Launcher Icon | ![](./images/beta-ios.png) | App Logo Icon | ![](./images/AppLogo.png) - - -### Spark Icon -![](./images/spark.png) - +| Spark Icon | ![](./images/spark.png) ## Android Icons These icons are located in the `allspark-core/targets/US/android/app/src` folder. Most are available in different resolutions. Additionally, for the build-specific icons, there is a foreground version, rounded version, and a default version for the launcher. --- docs/docs/components/sounds/sounds-allspark-core.md @@ -9,28 +9,28 @@ The tables below list which sounds are already available in `allspark-core` and ## iOS Sounds | Sound File | Source | - | - -| BusyTone.wav | allspark-core/targets/US/ios/Sounds -| call_1_1_ringback.wav | allspark-core/targets/US/ios/Sounds -| call_1_1_ringtone.wav | allspark-core/targets/US/ios/Sounds -| CallWaiting.wav | allspark-core/targets/US/ios/Sounds -| FastBusy.mp3 | allspark-core/targets/US/ios/Sounds -| Reconnect.wav | allspark-core/targets/US/ios/Sounds -| beep_confirmation.mp3 | allspark-core/targets/US/ios -| beep_error.mp3 | allspark-core/targets/US/ios -| clockfailure.mp3 | allspark-core/targets/US/ios -| clockin.mp3 | allspark-core/targets/US/ios -| clockout.mp3 | allspark-core/targets/US/ios -| walmart_achievement_01.mp3 | allspark-core/targets/US/ios +| [BusyTone.wav](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/Sounds/BusyTone.wav) | allspark-core/targets/US/ios/Sounds +| [call_1_1_ringback.wav](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/Sounds/call_1_1_ringback.wav) | allspark-core/targets/US/ios/Sounds +| [call_1_1_ringtone.wav](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/Sounds/call_1_1_ringtone.wav) | allspark-core/targets/US/ios/Sounds +| [CallWaiting.wav](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/Sounds/CallWaiting.wav) | allspark-core/targets/US/ios/Sounds +| [FastBusy.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/Sounds/FastBusy.mp3) | allspark-core/targets/US/ios/Sounds +| [Reconnect.wav](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/Sounds/Reconnect.wav) | allspark-core/targets/US/ios/Sounds +| [beep_confirmation.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/beep_confirmation.mp3) | allspark-core/targets/US/ios +| [beep_error.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/beep_error.mp3) | allspark-core/targets/US/ios +| [clockfailure.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/clockfailure.mp3) | allspark-core/targets/US/ios +| [clockin.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/clockin.mp3) | allspark-core/targets/US/ios +| [clockout.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/clockout.mp3) | allspark-core/targets/US/ios +| [walmart_achievement_01.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/tree/develop/targets/US/ios/walmart_achievement_01.mp3) | allspark-core/targets/US/ios ## Android Sounds | Sound File | Source | - | - -| beep_confirmation.mp3 | allspark-core/targets/US/android/app/src/main/res/raw -| beep_error.mp3 | allspark-core/targets/US/android/app/src/main/res/raw -| clockfailure.mp3 | allspark-core/targets/US/android/app/src/main/res/raw -| clockin.mp3 | allspark-core/targets/US/android/app/src/main/res/raw -| clockout.mp3 | allspark-core/targets/US/android/app/src/main/res/raw -| walmart_achievement_01.mp3 | allspark-core/targets/US/android/app/src/main/res/raw -| boosted_walmart_achievement_06_high_mono_20lufs.m4a | allspark-core/targets/US/android/app/src/main/res/raw -| boosted_walmart_chat_out_high_mono_20lufs.m4a | allspark-core/targets/US/android/app/src/main/res/raw -| walmart_notification_high_mono_20lufs.m4a | allspark-core/targets/US/android/app/src/main/res/raw \ No newline at end of file +| [beep_confirmation.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/beep_confirmation.mp3) | allspark-core/targets/US/android/app/src/main/res/raw +| [beep_error.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/beep_error.mp3) | allspark-core/targets/US/android/app/src/main/res/raw +| [clockfailure.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/clockfailure.mp3) | allspark-core/targets/US/android/app/src/main/res/raw +| [clockin.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/clockin.mp3) | allspark-core/targets/US/android/app/src/main/res/raw +| [clockout.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/clockout.mp3) | allspark-core/targets/US/android/app/src/main/res/raw +| [walmart_achievement_01.mp3](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/walmart_achievement_01.mp3) | allspark-core/targets/US/android/app/src/main/res/raw +| [boosted_walmart_achievement_06_high_mono_20lufs.m4a](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/boosted_walmart_achievement_06_high_mono_20lufs.m4a)| allspark-core/targets/US/android/app/src/main/res/raw +| [boosted_walmart_chat_out_high_mono_20lufs.m4a](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/boosted_walmart_chat_out_high_mono_20lufs.m4a) | allspark-core/targets/US/android/app/src/main/res/raw +| [walmart_notification_high_mono_20lufs.m4a](https://gecgithub01.walmart.com/allspark/allspark-core/blob/develop/targets/US/android/app/src/main/res/raw/walmart_notification_high_mono_20lufs.m4a) | allspark-core/targets/US/android/app/src/main/res/raw \ No newline at end of file
docs: adding links for the sounds
docs: adding links for the sounds
6c3ccdd9155ddbdb6a142b5f736c4627c3489540
--- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx @@ -321,6 +321,7 @@ describe('MainTabsNav', () => { const enableConfig = {enabled: true}; (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]); (useBadgesCount as jest.Mock).mockReturnValueOnce([0]); + mockUseSelector.mockReturnValueOnce(0); mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge mockUseSelector.mockReturnValueOnce({ home: enableConfig,
updating test case
updating test case
214b50634b5e1a725a8bfb06bc5f6c6b676aeeb1
--- android/app/build.gradle @@ -11,7 +11,7 @@ plugins { } import com.android.build.OutputFile -// import org.apache.tools.ant.taskdefs.condition.Os //++ +import org.apache.tools.ant.taskdefs.condition.Os /* * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets --- package-lock.json @@ -118,7 +118,7 @@ "react-native-flipper": "0.172.0", "react-native-fs": "^2.20.0", "react-native-geolocation-service": "^5.3.1", - "react-native-gesture-handler": "^2.9.0", + "react-native-gesture-handler": "2.8.0", "react-native-get-random-values": "^1.8.0", "react-native-haptic-feedback": "^1.14.0", "react-native-html-parser": "^0.1.0", @@ -138,7 +138,7 @@ "react-native-popup-menu": "^0.16.0", "react-native-ptt-module": "1.8.12", "react-native-qrcode-svg": "^6.1.2", - "react-native-reanimated": "2.14.0", + "react-native-reanimated": "2.14.2", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "4.3.1", "react-native-screens": "~3.15.0", @@ -17733,9 +17733,9 @@ "license": "MIT" }, "node_modules/react-native-gesture-handler": { - "version": "2.9.0", - "resolved": "https://npme.walmart.com/react-native-gesture-handler/-/react-native-gesture-handler-2.9.0.tgz", - "integrity": "sha512-a0BcH3Qb1tgVqUutc6d3VuWQkI1AM3+fJx8dkxzZs9t06qA27QgURYFoklpabuWpsUTzuKRpxleykp25E8m7tg==", + "version": "2.8.0", + "resolved": "https://npme.walmart.com/react-native-gesture-handler/-/react-native-gesture-handler-2.8.0.tgz", + "integrity": "sha512-poOSfz/w0IyD6Qwq7aaIRRfEaVTl1ecQFoyiIbpOpfNTjm2B1niY2FLrdVQIOtIOe+K9nH55Qal04nr4jGkHdQ==", "license": "MIT", "dependencies": { "@egjs/hammerjs": "^2.0.17", @@ -17957,9 +17957,9 @@ } }, "node_modules/react-native-reanimated": { - "version": "2.14.0", - "resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-2.14.0.tgz", - "integrity": "sha512-WicflLAyXGveVLZCHLqxH4axkb1QoTLejsdb5WbjkMN0mEDHWQQly7BeKR7Ek0zzZnmcrChnNfMLGGW+X3uDkg==", + "version": "2.14.2", + "resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-2.14.2.tgz", + "integrity": "sha512-zj05BBafk38rE78PhHc6q0vg9M4WeJY/RExHUGFiP1miJyyAaJzs2jLQR+HY0zbutCE+/yNJyOE3dca2BslsGg==", "license": "MIT", "dependencies": { "@babel/plugin-transform-object-assign": "^7.16.7", @@ -32998,9 +32998,9 @@ "version": "5.3.1" }, "react-native-gesture-handler": { - "version": "2.9.0", - "resolved": "https://npme.walmart.com/react-native-gesture-handler/-/react-native-gesture-handler-2.9.0.tgz", - "integrity": "sha512-a0BcH3Qb1tgVqUutc6d3VuWQkI1AM3+fJx8dkxzZs9t06qA27QgURYFoklpabuWpsUTzuKRpxleykp25E8m7tg==", + "version": "2.8.0", + "resolved": "https://npme.walmart.com/react-native-gesture-handler/-/react-native-gesture-handler-2.8.0.tgz", + "integrity": "sha512-poOSfz/w0IyD6Qwq7aaIRRfEaVTl1ecQFoyiIbpOpfNTjm2B1niY2FLrdVQIOtIOe+K9nH55Qal04nr4jGkHdQ==", "requires": { "@egjs/hammerjs": "^2.0.17", "hoist-non-react-statics": "^3.3.0", @@ -33121,9 +33121,9 @@ } }, "react-native-reanimated": { - "version": "2.14.0", - "resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-2.14.0.tgz", - "integrity": "sha512-WicflLAyXGveVLZCHLqxH4axkb1QoTLejsdb5WbjkMN0mEDHWQQly7BeKR7Ek0zzZnmcrChnNfMLGGW+X3uDkg==", + "version": "2.14.2", + "resolved": "https://npme.walmart.com/react-native-reanimated/-/react-native-reanimated-2.14.2.tgz", + "integrity": "sha512-zj05BBafk38rE78PhHc6q0vg9M4WeJY/RExHUGFiP1miJyyAaJzs2jLQR+HY0zbutCE+/yNJyOE3dca2BslsGg==", "requires": { "@babel/plugin-transform-object-assign": "^7.16.7", "@babel/preset-typescript": "^7.16.7", --- package.json @@ -160,7 +160,7 @@ "react-native-flipper": "0.172.0", "react-native-fs": "^2.20.0", "react-native-geolocation-service": "^5.3.1", - "react-native-gesture-handler": "^2.9.0", + "react-native-gesture-handler": "2.8.0", "react-native-get-random-values": "^1.8.0", "react-native-haptic-feedback": "^1.14.0", "react-native-html-parser": "^0.1.0", @@ -180,7 +180,7 @@ "react-native-popup-menu": "^0.16.0", "react-native-ptt-module": "1.8.12", "react-native-qrcode-svg": "^6.1.2", - "react-native-reanimated": "2.14.0", + "react-native-reanimated": "2.14.2", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "4.3.1", "react-native-screens": "~3.15.0",
update reanimated
update reanimated
804a9c68023e9babcc8baa0cc43c309daef9a6ce
--- packages/allspark-foundation-hub/src/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useState } from 'react'; +import React, { useCallback, useEffect, useState } from 'react'; import { SupplyChainImages as Images, AlertBanner, @@ -29,8 +29,7 @@ import { useGetSupplyChainShifts, useUpsertSupplyChainAssociatePreference, } from '../../Hooks'; -import { AllTeamsSections } from '../../Modals/EditSavedTeamModal/types'; -import { useFocusEffect } from '@react-navigation/native'; +import { filterTeamsBySearchInput } from '../../Utils'; export const OnboardingScreen = () => { const { t } = useAllsparkTranslation(FEATURE_ID); @@ -52,7 +51,7 @@ export const OnboardingScreen = () => { const [selectedTeams, setSelectedTeams] = useState<string[]>([]); const [selectedShifts, setSelectedShifts] = useState<string[]>(['A1']); const [sections, setSearchedsections] = useState<typeof allSiteTeamsSections>( - [] + () => [...allSiteTeamsSections] ); const { upsertSupplyChainPreferences } = useUpsertSupplyChainAssociatePreference(); @@ -64,26 +63,16 @@ export const OnboardingScreen = () => { ); const showUpsertAlertBanner = isTeamPreferenceError || isShiftUpsertError; - useFocusEffect( - useCallback(() => { - /** - * There is an issue updating data between modals since the Modal component doesn't rerender, - * below is to force render and update local State based on redux - */ - if (!sections.length && allSiteTeamsSections.length) { - setSearchedsections(allSiteTeamsSections); - } - }, [sections.length, allSiteTeamsSections]) - ); + useEffect(() => { + setSearchedsections(allSiteTeamsSections); + }, [allSiteTeamsSections]); + const showHubHeader = useSelector(scHubHeaderEnabled); const handleSearchInput = useCallback( (input: string) => { - if (input.length > 2) { - const searched = allSiteTeamsSections.filter( - (teamSection: AllTeamsSections) => - teamSection.title.toLowerCase().includes(input.toLowerCase()) - ); + const searched = filterTeamsBySearchInput(allSiteTeamsSections, input); + if (searched) { setSearchedsections(searched); } else { setSearchedsections(allSiteTeamsSections);
feat(ui): updated logic for search and initial state
feat(ui): updated logic for search and initial state
f168f16c51d3d6688496fb798cd6991fc8a49f22
--- graphql.yml @@ -16,7 +16,7 @@ applications: tags: - 'v1' - name: 'getAssociateById' - hash: 'dd2e604f8ee5dafa3c95ae53851e628070bdc2e41f97427b2be8f765352144aa' + hash: '0a06f624828f31fa5f8a13615385e1c3c4424732132e432655f4a45962a7fa22' queryTemplate: 'packages/me-at-walmart-common/src/queries/getAssociateById.graphql' tags: - 'v1' @@ -48,7 +48,7 @@ applications: tags: - 'v1' - name: 'getAssociateById' - hash: 'dd2e604f8ee5dafa3c95ae53851e628070bdc2e41f97427b2be8f765352144aa' + hash: '0a06f624828f31fa5f8a13615385e1c3c4424732132e432655f4a45962a7fa22' queryTemplate: 'packages/me-at-walmart-common/src/queries/getAssociateById.graphql' tags: - 'v1' --- packages/me-at-walmart-common/src/queries/getAssociateById.graphql @@ -8,8 +8,8 @@ query getAssociateById($idType: idType = USERID, $userId: String!) { __typename displayPreferences { __typename - birthday anniversary + birthday } } } @@ -72,4 +72,4 @@ query getAssociateById($idType: idType = USERID, $userId: String!) { win workEmail } -} +} \ No newline at end of file --- packages/me-at-walmart-common/src/queries/getAssociateById.ts @@ -48,8 +48,8 @@ export type GetAssociateByIdQuery = { __typename: 'MeAtWalmartPreferences'; displayPreferences?: { __typename: 'DisplayPreferences'; - birthday?: boolean | null; anniversary?: boolean | null; + birthday?: boolean | null; } | null; } | null; } | null; @@ -94,8 +94,8 @@ export const GetAssociateByIdDocument = gql` __typename displayPreferences { __typename - birthday anniversary + birthday } } }
fix: query did not match registered hash
fix: query did not match registered hash
d134ff5568719d21828caf9fa26ba08328d1daa2
--- package.json @@ -141,7 +141,7 @@ "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.3.16", "@walmart/roster-mini-app": "2.4.0", - "@walmart/schedule-mini-app": "0.116.0", + "@walmart/schedule-mini-app": "0.117.0", "@walmart/shelfavailability-mini-app": "1.5.26", "@walmart/store-feature-orders": "1.26.9", "@walmart/taskit-mini-app": "3.0.2", --- yarn.lock @@ -7056,9 +7056,9 @@ __metadata: languageName: node linkType: hard -"@walmart/schedule-mini-app@npm:0.116.0": - version: 0.116.0 - resolution: "@walmart/schedule-mini-app@npm:0.116.0" +"@walmart/schedule-mini-app@npm:0.117.0": + version: 0.117.0 + resolution: "@walmart/schedule-mini-app@npm:0.117.0" dependencies: "@walmart/moment-walmart": "npm:^1.0.4" "@walmart/wfm-ui": "npm:1.3.0" @@ -7087,7 +7087,7 @@ __metadata: react-redux: ">=7.2.1" redux: ">=4.0.5" reselect: ">=4.0.0" - checksum: 10c0/90c923ecf16e12a73d0160fd125a913c1d51477080d1cd2212f1f67aea341834dd88da1533f717fe69560f1eab9227313f09d7bbd6e91361874feb0b56e44778 + checksum: 10c0/c743d042919bfc076164d55d85651b92dcba038ff36ccb4bf0a4659b140630e88de18aea882f6611c0535fee6fcfdc8024215f96abb8bed637860941b4f285f7 languageName: node linkType: hard @@ -7850,7 +7850,7 @@ __metadata: "@walmart/returns-mini-app": "npm:4.6.0" "@walmart/rfid-scan-mini-app": "npm:2.3.16" "@walmart/roster-mini-app": "npm:2.4.0" - "@walmart/schedule-mini-app": "npm:0.116.0" + "@walmart/schedule-mini-app": "npm:0.117.0" "@walmart/shelfavailability-mini-app": "npm:1.5.26" "@walmart/store-feature-orders": "npm:1.26.9" "@walmart/taskit-mini-app": "npm:3.0.2"
bump schedule-mini-app - updated French translations
bump schedule-mini-app - updated French translations
daed75cf2060691f01271d6f0b9eb083eb764ead
--- package-lock.json @@ -36,7 +36,7 @@ "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.56", - "@walmart/attendance-mini-app": "0.72.0", + "@walmart/attendance-mini-app": "0.73.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~1.4.15", "@walmart/core-services-allspark": "~1.10.18", @@ -4696,9 +4696,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "0.72.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.72.0.tgz", - "integrity": "sha512-0KOUmACOhlotatMmBJivxMJy9Dad9FlHTPorcnyLsI4xo+nJxy86aMv7p6czIQd4XkPKntvH2Koz9tTOlt3+rA==", + "version": "0.73.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.73.0.tgz", + "integrity": "sha512-9CcmyGG/P2ZHlgFp4f/0dM9fWNlekTjpwD6Cfv6Q5fNiViqWeNiUcaBI5Nz92gfNnfEq83pdNtpikIleGDD0Fw==", "dependencies": { "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.40", @@ -24920,9 +24920,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "0.72.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.72.0.tgz", - "integrity": "sha512-0KOUmACOhlotatMmBJivxMJy9Dad9FlHTPorcnyLsI4xo+nJxy86aMv7p6czIQd4XkPKntvH2Koz9tTOlt3+rA==", + "version": "0.73.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.73.0.tgz", + "integrity": "sha512-9CcmyGG/P2ZHlgFp4f/0dM9fWNlekTjpwD6Cfv6Q5fNiViqWeNiUcaBI5Nz92gfNnfEq83pdNtpikIleGDD0Fw==", "requires": { "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.40", --- package.json @@ -78,7 +78,7 @@ "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.56", - "@walmart/attendance-mini-app": "0.72.0", + "@walmart/attendance-mini-app": "0.73.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~1.4.15", "@walmart/core-services-allspark": "~1.10.18",
update attendance-mini-app to 0.73.0
update attendance-mini-app to 0.73.0
100730007e924a0d0cfa718d518425ff7301eeb1
--- package-lock.json @@ -4271,9 +4271,9 @@ "integrity": "sha512-7nXe02E/AOFtT1u6/tVerIskwWvSoJcMgYN2DNH7vMgbb0YIFOsqwzX+nbRh/AcaZhC7YX5H2irVCc6/5/HjJw==" }, "@walmart/metrics-mini-app": { - "version": "0.5.6", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.6.tgz", - "integrity": "sha512-ppjtsGjlY0+7FxOeJvAaJqUGwNx9ljTz3EZriFfBh4gnbreu4cZo3X8mSktiIF2zLv94Yovgya4iEVL9OClhSQ==", + "version": "0.5.7", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.7.tgz", + "integrity": "sha512-VMNcbcNCus3z8cuGyV1PrgBnTqfGeFy5NTxyHs+0j9YhFHDEN/2sCp88x5f0UyFFFtrQzgh6nYfwtxHx3TZfbg==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "^1.1.2", --- package.json @@ -86,7 +86,7 @@ "@walmart/inbox-mini-app": "0.19.0", "@walmart/iteminfo-mini-app": "2.0.16", "@walmart/manager-approvals-miniapp": "0.0.58", - "@walmart/metrics-mini-app": "0.5.6", + "@walmart/metrics-mini-app": "0.5.7", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.39", "@walmart/react-native-env": "^0.2.0",
bumping metrics version to add planned state to truck freights
bumping metrics version to add planned state to truck freights
be989fa355e18966dde7e110f6f9fc812cca294b
--- packages/associate-exp-hub-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.13.2](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.13.1...@walmart/associate-exp-hub-hub@2.13.2) (2025-11-19) + +**Note:** Version bump only for package @walmart/associate-exp-hub-hub + ## [2.13.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.13.0...@walmart/associate-exp-hub-hub@2.13.1) (2025-11-19) **Note:** Version bump only for package @walmart/associate-exp-hub-hub --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.13.1", + "version": "2.13.2", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.5.2](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.5.1...@walmart/associate-exp-hub-mini-app@1.5.2) (2025-11-19) + +**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app + ## [1.5.1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.5.0...@walmart/associate-exp-hub-mini-app@1.5.1) (2025-11-19) **Note:** Version bump only for package @walmart/associate-exp-hub-mini-app --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.5.1", + "version": "1.5.2", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.14.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.14.0...@walmart/associate-exp-hub-team-switcher@2.14.1) (2025-11-19) + +**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher + # [2.14.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.13.0...@walmart/associate-exp-hub-team-switcher@2.14.0) (2025-11-19) ### Features --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.14.0", + "version": "2.14.1", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.13.2 - @walmart/associate-exp-hub-mini-app@1.5.2 - @walmart/associate-exp-hub-team-switcher@2.14.1
bb4249bc7291d433747e2856db6a390a01c794d3
--- targets/US/package.json @@ -118,7 +118,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-core": "workspace:^", "@walmart/metrics-mini-app": "1.24.4", - "@walmart/mod-flex-mini-app": "1.22.0", + "@walmart/mod-flex-mini-app": "1.23.0", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.0.14", "@walmart/myteam-mini-app": "1.12.0", --- yarn.lock @@ -7303,7 +7303,7 @@ __metadata: "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-core": "workspace:^" "@walmart/metrics-mini-app": "npm:1.24.4" - "@walmart/mod-flex-mini-app": "npm:1.22.0" + "@walmart/mod-flex-mini-app": "npm:1.23.0" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.0.14" "@walmart/myteam-mini-app": "npm:1.12.0" @@ -7564,60 +7564,44 @@ __metadata: languageName: node linkType: hard -"@walmart/mod-flex-mini-app@npm:1.22.0": - version: 1.22.0 - resolution: "@walmart/mod-flex-mini-app@npm:1.22.0" +"@walmart/mod-flex-mini-app@npm:1.23.0": + version: 1.23.0 + resolution: "@walmart/mod-flex-mini-app@npm:1.23.0" peerDependencies: - "@react-native-async-storage/async-storage": ^1.19.0 - "@react-native-picker/picker": ^2.4.8 - "@react-navigation/drawer": ^6.3.0 - "@react-navigation/material-top-tabs": ^6.1.0 - "@react-navigation/native": ^6.0.0 - "@react-navigation/stack": ^6.1.0 - "@walmart/allspark-utils": ^1.6.6 - "@walmart/core-services-allspark": ^2.13.5 - "@walmart/functional-components": ^2.0.2 - "@walmart/gtp-shared-components": ^2.1.10 - "@walmart/ims-print-services-ui": ^2.7.1 - "@walmart/react-native-env": ^0.2.0 - "@walmart/react-native-logger": ^1.34.8 - "@walmart/react-native-scanner-3.0": ^0.4.2 - "@walmart/react-native-shared-navigation": ^1.0.2 - "@walmart/react-native-sumo-sdk": ^2.6.4 - "@walmart/redux-store": ^3.7.0 + "@react-navigation/drawer": ">=6" + "@react-navigation/material-top-tabs": ">=6" + "@react-navigation/native": ">=6" + "@react-navigation/stack": ">=6" + "@walmart/allspark-foundation": ">=6" + "@walmart/allspark-utils": ">=6" + "@walmart/core-services-allspark": ">=6" + "@walmart/functional-components": ">=6" + "@walmart/gtp-shared-components": ^2.2.4 + "@walmart/ims-print-services-ui": ^2.12.0 "@walmart/ui-components": ^1.7.0 - crypto-js: ^4.0.0 - expo: ^49.0.0 - expo-image: ~1.3.5 - i18next: ^22.0.1 - lodash: ^4.17.20 + crypto-js: ~4.2.0 + expo: ~50.0.20 + expo-image: ~1.10.6 + i18next: ^23.6.0 + lodash: ~4.17.21 react: "*" - react-i18next: ^12.0.0 + react-i18next: ^13.3.1 react-native: "*" - react-native-app-auth: ^6.4.3 - react-native-blob-util: ^0.16.3 - react-native-device-info: ^10.3.0 - react-native-gesture-handler: ^2.9.0 - react-native-get-random-values: ^1.5.1 + react-native-device-info: ~10.13.1 + react-native-get-random-values: ~1.10.0 react-native-haptic-feedback: ^1.14.0 react-native-image-pan-zoom: ^2.1.12 - react-native-pdf: ^6.6.2 - react-native-reanimated: ^3.5.1 - react-native-safe-area-context: ^3.1.3 - react-native-screens: ^2.10.1 - react-native-sound-player: ^0.10.9 + react-native-pdf: ^6.7.5 + react-native-safe-area-context: ^4.8.2 + react-native-screens: ^3.28.0 + react-native-sound-player: ^0.13.2 react-native-tab-view: ^3.3.0 react-native-webview: ^11.23.1 - react-native-wm-notification: ^2.0.1 - react-native-wm-telemetry: ^0.3.0 - react-redux: ^8.0.4 - redux: ^4.1.2 - redux-dynamic-middlewares: ^2.2.0 - redux-saga: ^1.2.0 - redux-thunk: ^2.4.0 + react-redux: ^8.1.3 + redux: ^4.2.1 + redux-saga: ^1.2.3 uuid: ^3.3.2 - wifi-store-locator: ^1.4.1 - checksum: 10c0/e06983cac5265d2ab2a8e2599acabfbf9a8c3a07095c43c82dacedac712f20180b1c35d9d1cb6af00f28940aa1560f54d279c2079cc54f6c02609ef0634681a6 + checksum: 10c0/f5d48eb0725c74dc7b7948c96d0cfb8c4f60b261f42413843193415cfc9d2a40336559ba1aaa1cde6ba3f417e378c1bb3bf5c8a060e7194a5307e83f1bc0e358 languageName: node linkType: hard
Update modflex mini app version - v1.23.0
Update modflex mini app version - v1.23.0
bd7ab7aa4b8fc0410414c06682f62bc9d39c90c0
--- package-lock.json @@ -3372,9 +3372,9 @@ "integrity": "sha512-cKvZIhfn+NPDhdwFONeRyOmj81FOh7Qmne00KJ4gah40L3T2cWvNR1lXRmC0ORLQ/cK0orrDvXfVpVTIa06CKQ==" }, "@walmart/iteminfo-mini-app": { - "version": "2.0.4", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.4.tgz", - "integrity": "sha512-JzL5YCHz6r/WtPD3/NtW3CtCWpbWO5+AYaoP4B2uGetZDotpMI7LUg5etHuW560pL5adRs/HDK5VxezVwebjZw==", + "version": "2.0.5", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-2.0.5.tgz", + "integrity": "sha512-wkJq+RHIPIhtLOhasXdUJylJBx1C/FPQF6n5ZsujBuBPQBQBLYcD9dNDjpRmZawqLlHCoAQAUSKct/29uNYk6A==", "requires": { "react-native-chart-kit": "6.6.1" } --- package.json @@ -83,7 +83,7 @@ "@walmart/impersonation-mini-app": "1.0.18", "@walmart/ims-print-services-ui": "0.0.32", "@walmart/inbox-mini-app": "0.0.105", - "@walmart/iteminfo-mini-app": "2.0.4", + "@walmart/iteminfo-mini-app": "2.0.5", "@walmart/manager-approvals-miniapp": "0.0.46", "@walmart/metrics-mini-app": "0.4.11", "@walmart/moment-walmart": "1.0.4",
ItemInfo 2-0-5 minor fixes
ItemInfo 2-0-5 minor fixes