commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
2834be55e8e9fb246178859719554597894ee3c2
--- packages/allspark-foundation/__tests__/FeatureRunner/components/FeatureSection.test.tsx @@ -1,8 +1,9 @@ import React from 'react'; import { render, fireEvent } from '../../utils'; -import { FeatureSection } from '../../../src/FeatureRunner/components/FeatureSection'; +import { FeatureSection, LocalStorageCard } from '../../../src/FeatureRunner/components/FeatureSection'; import { AllsparkNavigationClient } from '../../../src/Navigation'; import { AllsparkFeatureModule } from '../../../src/Feature'; +import { AllsparkLocalStorage } from '../../../src/LocalStorage'; jest.mock('../../../src/Navigation', () => ({ AllsparkNavigationClient: { @@ -10,15 +11,16 @@ jest.mock('../../../src/Navigation', () => ({ openModal: jest.fn(), }, })); - jest.mock('../../../src/LocalStorage', () => ({ useLocalStorageService: jest.fn(() => ({ clear: jest.fn(), getAllKeys: jest.fn(), multiGet: jest.fn(), })), + AllsparkLocalStorage: { + getFeatureInstance: jest.fn(), + }, })); - const props = { feature: { featureID: 'test-feature', @@ -27,29 +29,43 @@ const props = { } as unknown as AllsparkFeatureModule, }; -describe('FeatureSection', () => { - afterEach(() => { +describe('FeatureSection and LocalStorageCard', () => { + const mockClear = jest.fn(); + const mockGetAllKeys = jest.fn(); + const mockMultiGet = jest.fn(); + + beforeEach(() => { jest.clearAllMocks(); + AllsparkLocalStorage.getFeatureInstance.mockReturnValue({ + clear: mockClear, + getAllKeys: mockGetAllKeys, + multiGet: mockMultiGet, + }); }); - - test('should render snapshot', async () => { + it('FeatureSection should render snapshot', async () => { const { toJSON } = render(<FeatureSection {...props} />); - expect(toJSON()).toMatchSnapshot(); }); - - test('should render', async () => { + it('FeatureSection should render and handle navigation', async () => { const { getByTestId } = render(<FeatureSection {...props} />); - const screenLink = getByTestId('screen-link'); const modalLink = getByTestId('modal-link'); - fireEvent.press(screenLink); - expect(AllsparkNavigationClient.navigate).toHaveBeenCalled(); - fireEvent.press(modalLink); - expect(AllsparkNavigationClient.openModal).toHaveBeenCalled(); }); -}); + it('call clear LocalStorage on Clear button press', () => { + const { getByTestId } = render(<LocalStorageCard featureID="test" />); + fireEvent.press(getByTestId('clear')); + expect(mockClear).toHaveBeenCalled(); + }); + it('call logLocalStorage on Log button press', async () => { + mockGetAllKeys.mockResolvedValue(['key1', 'key2']); + mockMultiGet.mockResolvedValue([['key1', 'value1'], ['key2', 'value2']]); + const { getByTestId } = render(<LocalStorageCard featureID="test" />); + await fireEvent.press(getByTestId('log')); + expect(mockGetAllKeys).toHaveBeenCalled(); + expect(mockMultiGet).toHaveBeenCalledWith(['key1', 'key2']); + }); +}); \ No newline at end of file --- packages/allspark-foundation/__tests__/FeatureRunner/components/__snapshots__/FeatureSection.test.tsx.snap @@ -1,5 +1,142 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`FeatureSection and LocalStorageCard FeatureSection should render snapshot 1`] = ` +<View> + <Heading> + Feature: + </Heading> + <Card + UNSAFE_style={ + [ + { + "flex": 0, + "marginTop": 16, + }, + undefined, + ] + } + > + <CardHeader + UNSAFE_style={ + { + "marginBottom": 0, + } + } + title="Screens" + /> + <CardContent + UNSAFE_style={ + { + "paddingLeft": 0, + } + } + > + <View> + <Button + UNSAFE_style={ + { + "alignSelf": "flex-start", + } + } + onPress={[Function]} + testID="screen-link" + variant="tertiary" + > + screen + </Button> + </View> + </CardContent> + </Card> + <Card + UNSAFE_style={ + [ + { + "flex": 0, + "marginTop": 16, + }, + undefined, + ] + } + > + <CardHeader + UNSAFE_style={ + { + "marginBottom": 0, + } + } + title="Modals" + /> + <CardContent + UNSAFE_style={ + { + "paddingLeft": 0, + } + } + > + <View> + <Button + UNSAFE_style={ + { + "alignSelf": "flex-start", + } + } + onPress={[Function]} + testID="modal-link" + variant="tertiary" + > + modal + </Button> + </View> + </CardContent> + </Card> + <Card + UNSAFE_style={ + [ + { + "flex": 0, + "marginTop": 16, + }, + undefined, + ] + } + > + <CardHeader + UNSAFE_style={ + { + "marginBottom": 0, + } + } + title="Local Storage" + /> + <CardContent> + <View + style={ + { + "flexDirection": "row", + "justifyContent": "space-between", + } + } + > + <Button + onPress={[Function]} + testID="clear" + variant="secondary" + > + Clear + </Button> + <Button + onPress={[Function]} + testID="log" + variant="secondary" + > + Log + </Button> + </View> + </CardContent> + </Card> +</View> +`; + exports[`FeatureSection should render snapshot 1`] = ` <View> <Heading>
feature selection tests
feature selection tests
24e2199ac6da876bc479d711a561cab321c268cf
--- __tests__/managerExperience/components/__snapshots__/FilterChip.test.tsx.snap @@ -9,7 +9,7 @@ exports[`FilterChip renders active filter chip correctly 1`] = ` "checked": undefined, "disabled": false, "expanded": undefined, - "selected": false, + "selected": true, } } accessibilityValue={ @@ -49,16 +49,11 @@ exports[`FilterChip renders active filter chip correctly 1`] = ` "paddingVertical": -1, }, { - "alignItems": "center", "backgroundColor": "#fff", - "borderColor": "#909196", - "borderRadius": 4, - "borderWidth": 1, - "flexDirection": "row", - "justifyContent": "space-around", - "marginHorizontal": 4, - "paddingHorizontal": 15, - "paddingVertical": -1, + "borderColor": "#000", + "borderWidth": 2, + "paddingHorizontal": 14, + "paddingVertical": -2, }, {}, { @@ -85,10 +80,6 @@ exports[`FilterChip renders active filter chip correctly 1`] = ` }, { "color": "#000", - "fontFamily": "Bogle", - "fontSize": 14, - "fontStyle": "normal", - "fontWeight": "400", }, { "lineHeight": 32, --- __tests__/managerExperience/components/__snapshots__/FilterChipGroup.test.tsx.snap @@ -248,7 +248,7 @@ exports[`FilterChipGroup matches snapshot 1`] = ` accessible={true} collapsable={false} focusable={true} - isApplied={true} + isApplied={false} label="12 rosterScreen.filters.absent" onBlur={[Function]} onClick={[Function]} @@ -288,7 +288,7 @@ exports[`FilterChipGroup matches snapshot 1`] = ` {}, { "alignSelf": "center", - "backgroundColor": "#2e2f32", + "backgroundColor": "#f1f1f2", "borderRadius": 1000, "borderWidth": 0, "justifyContent": "center", @@ -325,7 +325,7 @@ exports[`FilterChipGroup matches snapshot 1`] = ` accessibilityLabel="12 rosterScreen.filters.absent" style={ { - "color": "#fff", + "color": "#2e2f32", } } > --- src/managerExperience/components/FilterChipGroup/FilterChipGroup.tsx @@ -2,7 +2,7 @@ import React, {useState} from 'react'; import {FilterChipGroupProps, FilterType} from './types'; import {filterChipGroupStyles as styles} from './styles'; -import {MANAGER_EXPERIENCE_NAMESPACE} from '../../translations'; +import {ROSTER_I18N_NAMESPACE} from '../../../translations'; import {useTranslation} from 'react-i18next'; import {FilterChip} from '../FilterChip/FilterChip'; import {View} from 'react-native'; @@ -13,7 +13,7 @@ export const FilterChipGroup = ({ tardyCount, handleFilter, }: FilterChipGroupProps) => { - const {t} = useTranslation([MANAGER_EXPERIENCE_NAMESPACE]); + const {t} = useTranslation([ROSTER_I18N_NAMESPACE]); const [selectedFilter, setSelectedFilter] = useState< FilterType | undefined >(); --- src/managerExperience/translations/en-US.ts @@ -1,9 +1 @@ -export const enUS = { - rosterScreen: { - filters: { - clockedIn: 'Clocked in', - tardy: 'Tardy', - absent: 'Absent', - }, - }, -}; +export const enUS = {}; --- src/managerExperience/translations/es-MX.ts @@ -1,9 +1 @@ -export const esMX = { - rosterScreen: { - filters: { - clockedIn: 'Dentro de horario', - tardy: 'Tarde', - absent: 'Ausente', - }, - }, -}; +export const esMX = {}; --- src/translations/es-MX.ts @@ -25,7 +25,7 @@ export const esMX = { totalStoreRosterName_site: 'Lista del Sitio Completo de Hoy', totalStoreRosterName_store: 'Lista de la Tienda Completa de Hoy', weeklySchedule: 'Horario semanal', - Filters: { + filters: { all: 'Todos', absent: 'Ausente', tardy: 'Tarde',
feat: used preexisting translations
feat: used preexisting translations
40d94f2899e9ab4fc9d3ac2500abb8f95bdeb6d8
--- package-lock.json @@ -3495,9 +3495,9 @@ "integrity": "sha512-NSK68YKfA95rH9x90qwCNYORlTShIyVoJ2iysN6/OPWKiy59gK6P1yTrg6hAaysWSm/r90fWTkIuukzdSu99+A==" }, "@walmart/redux-store": { - "version": "1.1.8", - "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-1.1.8.tgz", - "integrity": "sha512-VNXl0a86pmVjLokNK1ioOF55K8Tb/VnGq12F4T7fw64OzphPqOado0a+6UJ5fyKRJYPYpOMZTRcViPMrCcZVeg==", + "version": "1.1.9", + "resolved": "https://npme.walmart.com/@walmart/redux-store/-/redux-store-1.1.9.tgz", + "integrity": "sha512-rZUsspTNbtDcSWGtWVetjAyQp/xs/Gl/CaTYCqYUESoB5zl3kmI9pvzBPJt+WZjeDZcyIQRDnohPL6Vc2Xmz1w==", "requires": { "reduxsauce": "^1.2.1" }, --- package.json @@ -93,7 +93,7 @@ "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/react-native-sumo-sdk": "2.1.0-alpha.3", - "@walmart/redux-store": "^1.1.8", + "@walmart/redux-store": "^1.1.9", "@walmart/schedule-mini-app": "0.4.4", "@walmart/settings-mini-app": "1.3.8", "@walmart/shelfavailability-mini-app": "0.5.0",
Redux store update
Redux store update
662034c4b7937203ac9909e3cf61c980a7a111ba
--- package.json @@ -7,10 +7,10 @@ ], "scripts": { "android": "react-native run-android", - "android:beta": "yarn run env:beta && react-native run-android --active-arch-only --mode=betaDebug", - "android:dev": "yarn run env:dev && react-native run-android --active-arch-only --mode=devDebug", - "android:prod": "yarn run env:prod && react-native run-android --active-arch-only --mode=prodDebug", - "android:teflon": "yarn run env:teflon && react-native run-android --active-arch-only --mode=teflonDebug", + "android:beta": "yarn run build && yarn run env:beta && react-native run-android --active-arch-only --mode=betaDebug", + "android:dev": "yarn run build && yarn run env:dev && react-native run-android --active-arch-only --mode=devDebug", + "android:prod": "yarn run build && yarn run env:prod && react-native run-android --active-arch-only --mode=prodDebug", + "android:teflon": "yarn run build && yarn run env:teflon && react-native run-android --active-arch-only --mode=teflonDebug", "androidConfig:beta": "sh scripts/updateAndroidProjectConfig.sh Beta", "androidConfig:dev": "sh scripts/updateAndroidProjectConfig.sh Dev", "androidConfig:prod": "sh scripts/updateAndroidProjectConfig.sh Prod", @@ -29,10 +29,10 @@ "fixDependencies": "sh scripts/fixDependencies.sh", "increment:buildNumber": "react-native-version -b", "ios": "react-native run-ios", - "ios:beta": "yarn run env:beta && react-native run-ios", - "ios:dev": "yarn run env:dev && react-native run-ios", - "ios:prod": "yarn run env:prod && react-native run-ios", - "ios:teflon": "yarn run env:teflon && react-native run-ios", + "ios:beta": "yarn run build && yarn run env:beta && react-native run-ios", + "ios:dev": "yarn run build && yarn run env:dev && react-native run-ios", + "ios:prod": "yarn run build && yarn run env:prod && react-native run-ios", + "ios:teflon": "yarn run build && yarn run env:teflon && react-native run-ios", "iosConfig:beta": "sh scripts/updateiOSProjectConfig.sh Beta", "iosConfig:dev": "sh scripts/updateiOSProjectConfig.sh Dev", "iosConfig:prod": "sh scripts/updateiOSProjectConfig.sh Prod",
Updated scripts
Updated scripts
8f03cb246cd13a54e9de1fd8cb4a979d38381fb1
--- src/containers/ChatInput/AudioPlayback.tsx @@ -106,14 +106,7 @@ export const AudioPlayback = (props: { interruptionModeAndroid: InterruptionModeAndroid.DuckOthers, interruptionModeIOS: InterruptionModeIOS.MixWithOthers, }); - - try { - await createSound(); - } catch (e: any) { - logger.error('audio error', { - message: `'error while playing audio ${e.toString()}'`, - }); - } + await createSound(); }, [audio.uri]); const onReplay = async () => @@ -123,13 +116,12 @@ export const AudioPlayback = (props: { }); }); - const onPause = async () => { + const onPause = async () => SoundRef.current?.pauseAsync().catch((e) => { logger.error('audio error', { message: `'error while pausing audio ${e.toString()}'`, }); }); - }; const onActionButtonPress = () => { if (playbackDetails.isPlaying) { --- src/containers/ChatInput/AudioPlayback.tsx @@ -106,14 +106,7 @@ export const AudioPlayback = (props: { interruptionModeAndroid: InterruptionModeAndroid.DuckOthers, interruptionModeIOS: InterruptionModeIOS.MixWithOthers, }); - - try { - await createSound(); - } catch (e: any) { - logger.error('audio error', { - message: `'error while playing audio ${e.toString()}'`, - }); - } + await createSound(); }, [audio.uri]); const onReplay = async () => @@ -123,13 +116,12 @@ export const AudioPlayback = (props: { }); }); - const onPause = async () => { + const onPause = async () => SoundRef.current?.pauseAsync().catch((e) => { logger.error('audio error', { message: `'error while pausing audio ${e.toString()}'`, }); }); - }; const onActionButtonPress = () => { if (playbackDetails.isPlaying) {
reverting some changes
reverting some changes
09c194ad540db40e6919c893c88997ec5b84feec
--- __tests__/whatsNew/__snapshots__/WhatsNewScreenTest.tsx.snap @@ -87,6 +87,12 @@ exports[`WhatsNewScreen handles undefined config 1`] = ` > whatsNew.screenTitle </Text> + <Text> + dev + </Text> + <Text> + com.walmart.stores.allspark.beta://SSOLogin + </Text> <SolidCard color="white" contentInset="none" @@ -234,6 +240,12 @@ exports[`WhatsNewScreen handles v2 data with section list 1`] = ` > whatsNew.screenTitle </Text> + <Text> + dev + </Text> + <Text> + com.walmart.stores.allspark.beta://SSOLogin + </Text> <SolidCard color="white" contentInset="none" @@ -584,6 +596,12 @@ exports[`WhatsNewScreen renders correctly 1`] = ` > whatsNew.screenTitle </Text> + <Text> + dev + </Text> + <Text> + com.walmart.stores.allspark.beta://SSOLogin + </Text> <SolidCard color="white" contentInset="none" --- package.json @@ -12,7 +12,7 @@ "androidConfig:dev": "sh scripts/updateAndroidProjectConfig.sh Dev", "androidConfig:prod": "sh scripts/updateAndroidProjectConfig.sh Prod", "androidConfig:teflon": "sh scripts/updateAndroidProjectConfig.sh Teflon", - "coverage": "sh ./scripts/verifyBranchName.sh", + "coverage": "jest --coverage", "env:beta": "npm run firebase:beta && cp env.beta.js env.js && npm run projConfig:beta", "env:dev": "npm run firebase:dev && cp env.dev.js env.js && npm run projConfig:dev", "env:prod": "npm run firebase:prod && cp env.prod.js env.js && npm run projConfig:prod",
lint fixes
lint fixes
d589e5e9a6d0a5432472d55c96b9af897b1a0997
--- ios/Podfile.lock @@ -427,7 +427,7 @@ PODS: - React - react-native-safe-area-context (3.3.2): - React-Core - - react-native-scanner-3.0 (0.1.8): + - react-native-scanner-3.0 (0.1.10): - Firebase/Analytics - React - ScanditBarcodeCapture (= 6.14.0-beta.3) @@ -445,7 +445,7 @@ PODS: - React-Core - react-native-wm-app-review (0.2.0-rc.3): - React-Core - - react-native-wm-barcode (2.36.5): + - react-native-wm-barcode (2.36.6): - Firebase/Analytics - React - react-native-wm-voice-text (0.6.0): @@ -1005,13 +1005,13 @@ SPEC CHECKSUMS: react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa react-native-ptt-module: 03c55e2666382002ce515ab08941d81987a4b2e1 react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5 - react-native-scanner-3.0: 8be4e75cc0bf031105a6e665097af81081a1c243 + react-native-scanner-3.0: 998d080253766deb9c281c994f63e70bbe237761 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 react-native-wm-app-review: 339a06c8ba391e1855e90cb4046568f925e9c4b0 - react-native-wm-barcode: e4d61564e1f84115503707b4fb504cbd0e007486 + react-native-wm-barcode: c29f14f511476c7ce29532843f696c2447670aef react-native-wm-voice-text: e41ea4227df3f52f3e2cab2f08fd89fbdcd02cfd React-perflogger: 0afaf2f01a47fd0fc368a93bfbb5bd3b26db6e7f React-RCTActionSheet: 59f35c4029e0b532fc42114241a06e170b7431a2 --- package-lock.json @@ -5362,9 +5362,9 @@ "integrity": "sha512-qxVserzdiG4xsZCLRIwYfRq/KuHsYSPkrl02tKHNhF5bhtWWo6oEUatBoSsY5BL8EVGOHk2ezsPWb2o5pg9Ryw==" }, "@walmart/react-native-scanner-3.0": { - "version": "0.1.8", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.8.tgz", - "integrity": "sha512-6+NfLofFUoI0bY125SyeI0gYuwpugV4+lbI0QcFQxKDwEhAuJpvsyzlU9JdiIEfS3Ub/heWWOjqcVUYDfH+iFw==" + "version": "0.1.10", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.10.tgz", + "integrity": "sha512-65FfEdUpT99FFpvK4POTP2PlKH1KW648C0xqgA6iLaqDiuWkl6wW4wuoVJ/4zZzvFW8nOK7ozkWmpAmPO/c7+g==" }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", --- package.json @@ -105,7 +105,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.29.0", - "@walmart/react-native-scanner-3.0": "0.1.8", + "@walmart/react-native-scanner-3.0": "0.1.10", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "^0.3.7", "@walmart/react-native-sumo-sdk": "2.2.2-beta.2",
Scanner3: Remove pdf417 and datamatrix barcode types support
Scanner3: Remove pdf417 and datamatrix barcode types support
e1fe524ae57b209f90d9b3601d588c0fe9b685d2
--- packages/allspark-foundation/src/Components/TeamOnboarding/Screens/TeamOnboardingScreen.tsx @@ -3,7 +3,7 @@ import { Image, View, StyleSheet } from 'react-native'; import { Body, Button, colors, Heading } from '@walmart/gtp-shared-components'; import { TeamOnboardingCards } from '../Component/TeamOnboardingCards'; -import { Images } from '@walmart/allspark-foundation/Components/TeamOnboarding/Images'; +import { Images } from '../Images'; import { ParamListBase } from '@react-navigation/native'; import { TeamOnboardingCardInfo } from '../Component/TeamOnboardingCard';
feat: fix images import
feat: fix images import
1958da2e6c4b736f03c50333d18f46443d71cef0
--- packages/allspark-foundation-hub/src/SupplyChain/Components/ShiftFilter/ShiftFilter.tsx @@ -49,8 +49,11 @@ export const ShiftFilter = ({ handleSelectShift(shiftName); teamSelectionTelemetry.logEvent('supplychain_select_shift_event', { message: 'Supplychain shift selected', -division: division? trimToFortyCharacters(division.description) : '', -jobProfileName: jobProfileName? trimToFortyCharacters(jobProfileName) : '', + networkType: trimToFortyCharacters(networkType ?? ''), + division: division? trimToFortyCharacters(division.description) : '', + jobProfileName: jobProfileName? trimToFortyCharacters(jobProfileName) : '', + siteNumber: siteNumber?.toString() ?? '', + }); }; const isSelected = selected?.includes(shiftName);
Update ShiftFilter.tsx
Update ShiftFilter.tsx
8cb23faec530838cba455d761775237eeeafb8de
--- jest.config.js @@ -16,10 +16,10 @@ module.exports = { coverageReporters: ['lcov', 'text'], coverageThreshold: { global: { - statements: 89, - branches: 79, - functions: 86, - lines: 89, + statements: 85, + branches: 75, + functions: 85, + lines: 85, }, }, transformIgnorePatterns: [
chore(ui): update wmconnect version
chore(ui): update wmconnect version
701439949f4417ac9fe1cc436f8c3975052929cc
--- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/styles.ts @@ -36,7 +36,6 @@ export const editSavedTeamModalStyles = StyleSheet.create({ }, emptyStateText: { textAlign: 'center', - color: colors.gray, }, });
fix(bug): add no teams found image
fix(bug): add no teams found image
39e7d9188387aef996d04369c57978441dcce3af
--- package-lock.json @@ -52,9 +52,9 @@ "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", - "@walmart/ims-print-services-ui": "2.0.1", + "@walmart/ims-print-services-ui": "2.0.3", "@walmart/inbox-mini-app": "0.81.9", - "@walmart/iteminfo-mini-app": "7.0.2", + "@walmart/iteminfo-mini-app": "7.0.3", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.41", @@ -5172,9 +5172,9 @@ } }, "node_modules/@walmart/ims-print-services-ui": { - "version": "2.0.1", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.1.tgz", - "integrity": "sha512-7x3Lq4DMaGufkU593f0Q0LY9P1tCzyOtuJETV9kBfKsguoWL+EqZuSoJ6MJRJWOAMD922BI1tdgpgd5CGSPiIw==", + "version": "2.0.3", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.3.tgz", + "integrity": "sha512-0/p4dPv2GYGB9xi2fD1M2HFF3jqtvhr0gJlz0VfGO062Hr4f11HZrleq20vbxb99/Ubsz4Q4amqqFcI4sJD4mg==", "peerDependencies": { "@react-native-firebase/analytics": ">=10.5.1", "@react-native-firebase/app": ">=10.5.0", @@ -5214,9 +5214,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.0.2", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.2.tgz", - "integrity": "sha512-PhtZPTWbtb2NEX/d/J71gQB+QP7dCttDjAck7uM7R+k7HKCizQNs9hG0mh7ySDzGFy0Gjd46BnuuV47c+f93IQ==", + "version": "7.0.3", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.3.tgz", + "integrity": "sha512-ty/fGyq7fYdjXgJLEaF3OowK9NnM07iLX0D4wm1Upiqf5E68iYMJtne/yg6zVzD1TVvjurA8L3P2wuSxXQnCog==", "peerDependencies": { "@react-native-community/async-storage": ">=1.12.1", "@react-native-community/netinfo": ">=9.3.6", @@ -25085,9 +25085,9 @@ "integrity": "sha512-jytXe4i0C9GXvPCm6nB26ILZVkcSsBmcdykmGmlFKB4Q/d5i9imtLmFHLfhd6gxU7ZeBoKMJvymF5tWQbI6QoQ==" }, "@walmart/ims-print-services-ui": { - "version": "2.0.1", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.1.tgz", - "integrity": "sha512-7x3Lq4DMaGufkU593f0Q0LY9P1tCzyOtuJETV9kBfKsguoWL+EqZuSoJ6MJRJWOAMD922BI1tdgpgd5CGSPiIw==" + "version": "2.0.3", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.0.3.tgz", + "integrity": "sha512-0/p4dPv2GYGB9xi2fD1M2HFF3jqtvhr0gJlz0VfGO062Hr4f11HZrleq20vbxb99/Ubsz4Q4amqqFcI4sJD4mg==" }, "@walmart/inbox-mini-app": { "version": "0.81.9", @@ -25099,9 +25099,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "7.0.2", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.2.tgz", - "integrity": "sha512-PhtZPTWbtb2NEX/d/J71gQB+QP7dCttDjAck7uM7R+k7HKCizQNs9hG0mh7ySDzGFy0Gjd46BnuuV47c+f93IQ==" + "version": "7.0.3", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.0.3.tgz", + "integrity": "sha512-ty/fGyq7fYdjXgJLEaF3OowK9NnM07iLX0D4wm1Upiqf5E68iYMJtne/yg6zVzD1TVvjurA8L3P2wuSxXQnCog==" }, "@walmart/manager-approvals-miniapp": { "version": "0.2.1", --- package.json @@ -94,9 +94,9 @@ "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", - "@walmart/ims-print-services-ui": "2.0.1", + "@walmart/ims-print-services-ui": "2.0.3", "@walmart/inbox-mini-app": "0.81.9", - "@walmart/iteminfo-mini-app": "7.0.2", + "@walmart/iteminfo-mini-app": "7.0.3", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", "@walmart/metrics-mini-app": "0.9.41", @@ -121,7 +121,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", - "@walmart/taskit-mini-app": "0.49.12", + "@walmart/taskit-mini-app": "0.49.12", "@walmart/time-clock-mini-app": "2.25.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.76.0",
bump up iteminfo and print versions
bump up iteminfo and print versions
72fb577e6f4cf41512fc884fbb844ed5cba87a2c
--- packages/allspark-foundation/src/HTTP/utils.ts @@ -50,7 +50,7 @@ export function createAxiosHeaders( const rawHeaders: Record<string, string> = {}; if (isHeaders(headers)) { - headers.forEach((value, name) => { + headers.forEach((value: string, name: string) => { rawHeaders[name] = value; }); } else if (Array.isArray(headers)) {
chore: fix typing issues
chore: fix typing issues
e3304b817573aa3b646ae499477a6f0bec1469b1
--- ios/Podfile.lock @@ -508,14 +508,14 @@ PODS: - RNWMSSOLibrary (1.1.0): - AppAuth - React - - SSO (= 1.3.5) + - SSO (= 1.3.6) - SDWebImage (5.11.0): - SDWebImage/Core (= 5.11.0) - SDWebImage/Core (5.11.0) - SDWebImageWebPCoder (0.6.1): - libwebp (~> 1.0) - SDWebImage/Core (~> 5.7) - - SSO (1.3.5): + - SSO (1.3.6): - AppAuth - Starscream (3.0.6) - Yoga (1.14.0) @@ -819,7 +819,7 @@ SPEC CHECKSUMS: React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31 React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949 React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a - react-native-background-timer: 17ea5e06803401a379ebf1f20505b793ac44d0fe + react-native-background-timer: 117fffdc9b0d6f144444bb49029f94275a45fdb5 react-native-biometrics: 9d3306e5d29c3bc4e6a3c912d759a94e76a2f683 react-native-encrypted-storage: 837c733334debf626204f03d867c7e01d8741e2f react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a @@ -872,10 +872,10 @@ SPEC CHECKSUMS: RNSoundPlayer: e7f72cf262c8de4f1427b5f29cc47aebadd1d872 RNSVG: ce9d996113475209013317e48b05c21ee988d42e RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59 - RNWMSSOLibrary: c6d6563e0ce6bd65a1c1be9d2ee0ce215432337e + RNWMSSOLibrary: 3cfea6819cdc39dd81a099265b0b1ca647b4a7b7 SDWebImage: 7acbb57630ac7db4a495547fb73916ff3e432f6b SDWebImageWebPCoder: d0dac55073088d24b2ac1b191a71a8f8d0adac21 - SSO: 9dec1c3f07d650c868506b0147185898a27eb837 + SSO: 0544388c456f4758ada3f9e2fa124b8e277da8ac Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 --- package-lock.json @@ -12687,9 +12687,9 @@ "integrity": "sha512-Ls9qiNZzW/OLFoI25wfjjAcrf2DZ975hn2vr6U9gyuxi2nooVbzQeFoQS5vQcbCt9QX5NY8ASEEAtlLdIa6KVg==" }, "react-native-ssmp-sso-allspark": { - "version": "1.1.7", - "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.1.7.tgz", - "integrity": "sha512-/7PCfrUCHy3pcsY5SJs5RyAfPQk4VE/i6DGAziDdFKJSliKJqWhnmSkqHjUJ3b5oL5+gccyj3fu7nhOqwLxboQ==" + "version": "1.1.8", + "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.1.8.tgz", + "integrity": "sha512-oGufwIZsk94ikUOiUkkKvu3MYR21k6sLdI1tqAc70EQD9RVEytFLGDLNluaX62JdkLOGyKoBwZWpwG/TntRazA==" }, "react-native-sumo-sdk": { "version": "2.7.4-rc.9", --- package.json @@ -131,7 +131,7 @@ "react-native-snap-carousel": "^3.9.1", "react-native-sound-player": "0.10.9", "react-native-splash-screen": "^3.2.0", - "react-native-ssmp-sso-allspark": "1.1.7", + "react-native-ssmp-sso-allspark": "1.1.8", "react-native-sumo-sdk": "^2.7.4-rc.9", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.15.2",
SSO version bump up to 1.1.8
SSO version bump up to 1.1.8
c05d601a4faceb6552bf2857dfde4b0aadbafa5c
--- package.json @@ -149,7 +149,7 @@ "@walmart/returns-mini-app": "4.17.8", "@walmart/rfid-scan-mini-app": "2.13.2", "@walmart/rn-mobile-sdk-pairing": "2.1.8", - "@walmart/rn-receiving-mini-app": "2.4.101", + "@walmart/rn-receiving-mini-app": "2.5.18", "@walmart/roster-mini-app": "3.3.0", "@walmart/schedule-mini-app": "2.4.1", "@walmart/shelfavailability-mini-app": "1.5.45", --- yarn.lock @@ -7722,9 +7722,9 @@ __metadata: languageName: node linkType: hard -"@walmart/atlas-rn-ui-components@npm:1.2.2": - version: 1.2.2 - resolution: "@walmart/atlas-rn-ui-components@npm:1.2.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fatlas-rn-ui-components%2F-%2F%40walmart%2Fatlas-rn-ui-components-1.2.2.tgz" +"@walmart/atlas-rn-ui-components@npm:1.3.19": + version: 1.3.19 + resolution: "@walmart/atlas-rn-ui-components@npm:1.3.19" peerDependencies: "@walmart/gtp-shared-components": ">=2.2.3-rc.1" i18next: ">=23.12.2" @@ -7735,7 +7735,7 @@ __metadata: bin: installFonts: ./scripts/installFonts runCodemods: ./scripts/runCodemods - checksum: 10c0/f372ed7e965559003244cf56f2fb795a97340a62dd1640e99575bcdca33ae1567fec4ed1c2caf8bd3f210029017677b0d851effd4eb140675f60b9bb3c7fcf8e + checksum: 10c0/9b8661b8d5bd185927f00771407154d6d51f626246af717a478a50a43f0185ea00b4b1191cb5b5f0bbe456e1d9eb3ae4c4a600404410071602ac0fb233d6c870 languageName: node linkType: hard @@ -8433,9 +8433,9 @@ __metadata: languageName: node linkType: hard -"@walmart/loadquality-mini-app@npm:2.0.26": - version: 2.0.26 - resolution: "@walmart/loadquality-mini-app@npm:2.0.26::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Floadquality-mini-app%2F-%2F%40walmart%2Floadquality-mini-app-2.0.26.tgz" +"@walmart/loadquality-mini-app@npm:2.0.30": + version: 2.0.30 + resolution: "@walmart/loadquality-mini-app@npm:2.0.30::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Floadquality-mini-app%2F-%2F%40walmart%2Floadquality-mini-app-2.0.30.tgz" peerDependencies: "@react-native-clipboard/clipboard": ">=1.10.0" "@react-native/metro-config": ">=0.73.0" @@ -8464,7 +8464,7 @@ __metadata: react-native-svg: ">=14.0.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: "*" - checksum: 10c0/45560c6f285e3cfd977437948173dc6fe6b1b2d21b5b2b19182c7dd2501d1da07133afeb6bad723404bb3432d8994e05b2ce8d70e1bbf4b50fbeb9a9783c51f0 + checksum: 10c0/7b29d7cb0e1dfa1a0b4b8c3a25e9c266bdf2011299515ce709fe291a86f252d8c4b7430f56aa2cf0f5e8aec7291187c665fb023d2a0db3f55c9c50f44c3e3864 languageName: node linkType: hard @@ -8701,7 +8701,7 @@ __metadata: "@walmart/returns-mini-app": "npm:4.17.8" "@walmart/rfid-scan-mini-app": "npm:2.13.2" "@walmart/rn-mobile-sdk-pairing": "npm:2.1.8" - "@walmart/rn-receiving-mini-app": "npm:2.4.101" + "@walmart/rn-receiving-mini-app": "npm:2.5.18" "@walmart/roster-mini-app": "npm:3.3.0" "@walmart/schedule-mini-app": "npm:2.4.1" "@walmart/shelfavailability-mini-app": "npm:1.5.45" @@ -9355,12 +9355,12 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.4.101": - version: 2.4.101 - resolution: "@walmart/rn-receiving-mini-app@npm:2.4.101::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Frn-receiving-mini-app%2F-%2F%40walmart%2Frn-receiving-mini-app-2.4.101.tgz" +"@walmart/rn-receiving-mini-app@npm:2.5.18": + version: 2.5.18 + resolution: "@walmart/rn-receiving-mini-app@npm:2.5.18" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.2.2" - "@walmart/loadquality-mini-app": "npm:2.0.26" + "@walmart/atlas-rn-ui-components": "npm:1.3.19" + "@walmart/loadquality-mini-app": "npm:2.0.30" peerDependencies: "@react-native-clipboard/clipboard": ">=1.14.0" "@react-native/metro-config": ">=0.73.0" @@ -9386,7 +9386,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: "*" - checksum: 10c0/31e12c9afbed04391d4636e8accf9374e48662dd39bc7231b756f3e92dbb7ba4d37ea2216f09bed59403b9f1df5d75996f4d71115de1c3a263b85da9c89ad8d4 + checksum: 10c0/aa53a6b01871e27530c9bf7c2d17de24f2f81873329d26dbae3a12e3e2758b99c54dcefa60346e61231d8866ea13b5d62ad2388d5cd3bcc2b984e194519dda60 languageName: node linkType: hard
feat(receiving): Drop 33 version bump (#4603)
feat(receiving): Drop 33 version bump (#4603) * chore: bump receiving 2.5.10 * feat: version bump receiving 2.5.11 * chore: bump receiving 2.5.12 * chore: bump receiving 2.5.13 * chore: bump receiving 2.5.14 * chore: bump receiving 2.5.16 * chore: bump receiving @ 2.5.17 * chore: bump receiving 2.5.18 --------- Co-authored-by: Abhijit Tambe <abhijit.tambe@walmart.com> Co-authored-by: Abhishek Dourbi <abhishek.dourbi@walmart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
d81a2bf8c1d1760dbc6a07b8b450828c147a0f46
--- src/screens/ChannelsScreen.tsx @@ -83,6 +83,7 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( props: ChannelScreenProps, ) => { const {bottom: bottomInset} = useSafeAreaInsets(); + const channelsListBottomPadding = 82; const {navigation, newMessageButtonOffset, isMeganavScreen} = props; const channels = useChannelContext(); const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); @@ -170,7 +171,7 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( estimatedItemSize={100} contentContainerStyle={{ paddingTop: channelTopMargin, - paddingBottom: bottomInset, + paddingBottom: bottomInset + channelsListBottomPadding, }} /> ) : ( --- src/screens/ChannelsScreen.tsx @@ -83,6 +83,7 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( props: ChannelScreenProps, ) => { const {bottom: bottomInset} = useSafeAreaInsets(); + const channelsListBottomPadding = 82; const {navigation, newMessageButtonOffset, isMeganavScreen} = props; const channels = useChannelContext(); const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); @@ -170,7 +171,7 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = ( estimatedItemSize={100} contentContainerStyle={{ paddingTop: channelTopMargin, - paddingBottom: bottomInset, + paddingBottom: bottomInset + channelsListBottomPadding, }} /> ) : (
adding bottom padding
adding bottom padding
951c270b134683ef990413d1ba99e80978a8c7ba
--- packages/allspark-foundation-hub/__tests__/TeamOnboarding/TeamSelectionUtils.test.tsx @@ -135,9 +135,8 @@ describe('myArea', () => { }); }); -// TODO: fix looper test job failure describe('useGetViewersPrimaryTeamName', () => { - it.skip('should return "Management" team if viewer has no teams and title includes "manager"', () => { + it('should return "Management" team if viewer has no teams and title includes "manager"', () => { (UserSelectors.getTeams as jest.Mock).mockReturnValue([]); (UserSelectors.getTitle as jest.Mock).mockReturnValue('Senior Manager'); (useSelector as jest.Mock).mockImplementation((selector) => { @@ -152,7 +151,7 @@ describe('useGetViewersPrimaryTeamName', () => { expect(result).toEqual([{ teamId: 'total', teamName: 'Total store' }]); }); - it.skip('should return viewer teams if they exist', () => { + it('should return viewer teams if they exist', () => { const mockTeams = [{ teamName: 'Engineering' }]; (UserSelectors.getTeams as jest.Mock).mockReturnValue(mockTeams); (UserSelectors.getTitle as jest.Mock).mockReturnValue('Developer'); @@ -170,7 +169,7 @@ describe('useGetViewersPrimaryTeamName', () => { expect(result).toEqual(mockTeams); }); - it.skip('should return [] if viewer has no teams and title does not include "manager"', () => { + it('should return [] if viewer has no teams and title does not include "manager"', () => { (UserSelectors.getTeams as jest.Mock).mockReturnValue([]); (UserSelectors.getTitle as jest.Mock).mockReturnValue('Developer'); @@ -200,12 +199,12 @@ describe('createSections', () => { Area1: [ { teamName: 'Team1', teamId: '111111' }, { teamName: 'Team2', teamId: '111111' }, - ], - Area2: [{ teamName: 'Team3', teamId: '111111' }], + ] as Team[], + Area2: [{ teamName: 'Team3', teamId: '111111' }] as Team[], Area3: [ { teamName: 'Team4', teamId: '111111' }, { teamName: 'Team5', teamId: '111111' }, - ], + ] as Team[], }; it('should include primary area when myArea is provided', () => {
fixed test cases failures
fixed test cases failures
c2694842a3306d8e1b9e374630c0b9cebd64ddbc
--- src/listeners/index.ts @@ -0,0 +1,74 @@ +/** + * @fileoverview Listeners Module - Feature Event Listeners for Associate Experience Hub + * + * This module defines and registers event listeners for the Associate Experience Hub feature + * with the Allspark framework. It handles feature lifecycle events including connection + * and disconnection with related features. + * + * @architecture + * - **Feature Integration**: Manages connections with other Allspark features + * - **Lifecycle Management**: Handles feature connect/disconnect events + * - **Event Coordination**: Coordinates between different feature modules + * + * @lifecycle_events + * - **onConnect**: Fired when the feature is connected and ready + * - **onDisconnect**: Fired when the feature is being disconnected + * + * @integration_points + * - **Allspark Framework**: Integrates with core Allspark event system + * - **Feature Coordination**: Manages inter-feature communication + * + * @usage + * ```typescript + * // Listeners are automatically registered when this module is imported + * import listeners from './listeners'; + * + * // Feature events are handled automatically by the framework + * ``` + * + * @author Associate Experience Hub Team + * @since 1.0.0 + */ + +import {initializeMyTeamHub} from '../config/HubConfig'; +import {MyTeamFeature} from '../common/feature'; + +/** + * Feature event listeners for the Associate Experience Hub + * + * This configuration defines the event listeners that handle feature lifecycle + * events for the Associate Experience Hub. It manages connections with related + * features and ensures proper initialization and cleanup. + * + * @event_handlers + * - **onConnect**: Establishes connection with manager experience feature + * - **onDisconnect**: Cleanly disconnects from manager experience feature + * + * @example + * ```typescript + * // Event listeners are automatically registered and handle: + * // - Feature initialization and connection + * // - Inter-feature communication setup + * // - Cleanup and disconnection processes + * ``` + */ +export default MyTeamFeature.createListeners({ + feature: { + /** + * Handles feature connection event + * + * Called when the Associate Experience Hub feature is connected + * and ready to interact with other features in the system. + */ + onConnect: () => { + initializeMyTeamHub(); + }, + /** + * Handles feature disconnection event + * + * Called when the Associate Experience Hub feature is being + * disconnected and needs to clean up its connections. + */ + onDisconnect: () => {}, + }, +});
feat(ui): update celebration widget listener
feat(ui): update celebration widget listener
bc3d9d4433195ab4d9abf85b61f28db99d2e8efe
--- package.json @@ -117,7 +117,7 @@ "@walmart/ims-print-services-ui": "2.22.0", "@walmart/inbox-mini-app": "0.103.1", "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", - "@walmart/iteminfo-mini-app": "8.6.1", + "@walmart/iteminfo-mini-app": "8.7.0", "@walmart/learning-mini-app": "20.0.79", "@walmart/manager-approvals-miniapp": "0.3.7", "@walmart/me-at-walmart-athena-queries": "6.31.0", --- yarn.lock @@ -8348,9 +8348,9 @@ __metadata: languageName: node linkType: hard -"@walmart/iteminfo-mini-app@npm:8.6.1": - version: 8.6.1 - resolution: "@walmart/iteminfo-mini-app@npm:8.6.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fiteminfo-mini-app%2F-%2F%40walmart%2Fiteminfo-mini-app-8.6.1.tgz" +"@walmart/iteminfo-mini-app@npm:8.7.0": + version: 8.7.0 + resolution: "@walmart/iteminfo-mini-app@npm:8.7.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fiteminfo-mini-app%2F-%2F%40walmart%2Fiteminfo-mini-app-8.7.0.tgz" peerDependencies: "@apollo/client": ">=3.7.3" "@react-navigation/drawer": ">=6.3.0" @@ -8392,7 +8392,7 @@ __metadata: reselect: ">=4.1.0" uuid: ">=3.3.2" victory-native: ">=36.5.0" - checksum: 10c0/171214358e12074e47336304d3bec407a6efa964e770267df0913a04856f2c97328f863453ccb45358cf46296dde6faa8a7b717428af4652a1548273c2e7cd6d + checksum: 10c0/7b199f45329891489ec4e6c19460bb5aef14cb8eb35d02d3b042306e960b4fbd0f3e76ef147d2d246d115c7cf99ed8fa626efd8dd1a9a3bf15930264234829ef languageName: node linkType: hard @@ -8710,7 +8710,7 @@ __metadata: "@walmart/ims-print-services-ui": "npm:2.22.0" "@walmart/inbox-mini-app": "npm:0.103.1" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" - "@walmart/iteminfo-mini-app": "npm:8.6.1" + "@walmart/iteminfo-mini-app": "npm:8.7.0" "@walmart/learning-mini-app": "npm:20.0.79" "@walmart/manager-approvals-miniapp": "npm:0.3.7" "@walmart/me-at-walmart-athena-queries": "npm:6.31.0"
feat(item-info): Update iteminfoini app version for drop34
feat(item-info): Update iteminfoini app version for drop34
21d7e2d08d5717214f18c3c6523f55ae58280618
--- package.json @@ -80,7 +80,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "6.4.10", "@walmart/allspark-cope-key-listener": "0.0.18", - "@walmart/allspark-foundation": "6.56.0", + "@walmart/allspark-foundation": "6.59.0", "@walmart/allspark-foundation-hub": "1.17.0", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", --- yarn.lock @@ -1575,6 +1575,28 @@ __metadata: languageName: node linkType: hard +"@clack/core@npm:^0.3.3": + version: 0.3.5 + resolution: "@clack/core@npm:0.3.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40clack%2Fcore%2F-%2Fcore-0.3.5.tgz" + dependencies: + picocolors: "npm:^1.0.0" + sisteransi: "npm:^1.0.5" + checksum: 10c0/b1037226b38696bd95e09beef789ff4e23abb282505ac233c0316c2410c8afb68cf91b67812c883f05ffa6943d6f0593f1ebc17beb94f4a42c13e4657f598c0b + languageName: node + linkType: hard + +"@clack/prompts@npm:^0.7.0": + version: 0.7.0 + resolution: "@clack/prompts@npm:0.7.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40clack%2Fprompts%2F-%2Fprompts-0.7.0.tgz" + dependencies: + "@clack/core": "npm:^0.3.3" + is-unicode-supported: "npm:*" + picocolors: "npm:^1.0.0" + sisteransi: "npm:^1.0.5" + checksum: 10c0/fecb3b34308c5cb75807211b28d50caa4b0c5d150d16e733e59bfba3187ac856f050ed44baeca90eb99e047671096ff54402dd2790e9c0e77845a75b04003e2e + languageName: node + linkType: hard + "@commitlint/cli@npm:^19.8.0": version: 19.8.1 resolution: "@commitlint/cli@npm:19.8.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40commitlint%2Fcli%2F-%2Fcli-19.8.1.tgz" @@ -7026,20 +7048,23 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.56.0, @walmart/allspark-foundation@npm:^6.49.0": - version: 6.56.0 - resolution: "@walmart/allspark-foundation@npm:6.56.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-6.56.0.tgz" +"@walmart/allspark-foundation@npm:6.59.0, @walmart/allspark-foundation@npm:^6.49.0": + version: 6.59.0 + resolution: "@walmart/allspark-foundation@npm:6.59.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-6.59.0.tgz" dependencies: "@apollo/client": "npm:^3.8.6" + "@clack/prompts": "npm:^0.7.0" "@graphql-codegen/cli": "npm:^5.0.0" "@graphql-codegen/near-operation-file-preset": "npm:^2.5.0" "@graphql-codegen/typescript": "npm:^4.0.1" "@graphql-codegen/typescript-operations": "npm:^4.0.1" "@graphql-codegen/typescript-react-apollo": "npm:^4.1.0" + "@logicwind/react-native-exit-app": "npm:^0.2.0" "@reduxjs/toolkit": "npm:^1.9.7" "@walmart/allspark-utils": "npm:^6.11.1" axios: "npm:1.11.0" axios-cache-interceptor: "npm:^1.3.2" + commander: "npm:^9.0.0" crypto-js: "npm:~4.2.0" graphql: "npm:^16.8.1" i18next: "npm:^23.6.0" @@ -7098,7 +7123,7 @@ __metadata: optional: true bin: allspark-generate-graphql: ./cli/generate.js - checksum: 10c0/05b037d335f795988f8cdc9f6a5ea3246b4ca32c4dbd49293ff1025667751d6a5b6c5ef419668ec975a4e411ed489e0c297f2da90db24e87956f7f4bdbdf4968 + checksum: 10c0/17a15db0adee6e677acc707227584a0951e850dceae3185d0c306d5070d751e80d81cc76b0e6d9df1b9a0795e224f2a97270e773aae824afaf09dfef9767e325 languageName: node linkType: hard @@ -8257,7 +8282,7 @@ __metadata: "@types/react-test-renderer": "npm:^18.0.7" "@walmart/allspark-authentication": "npm:6.4.10" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:6.56.0" + "@walmart/allspark-foundation": "npm:6.59.0" "@walmart/allspark-foundation-hub": "npm:1.17.0" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28" @@ -11451,6 +11476,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^9.0.0": + version: 9.5.0 + resolution: "commander@npm:9.5.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fcommander%2F-%2Fcommander-9.5.0.tgz" + checksum: 10c0/5f7784fbda2aaec39e89eb46f06a999e00224b3763dc65976e05929ec486e174fe9aac2655f03ba6a5e83875bd173be5283dc19309b7c65954701c02025b3c1d + languageName: node + linkType: hard + "commitizen@npm:^4.0.3, commitizen@npm:^4.2.6": version: 4.3.1 resolution: "commitizen@npm:4.3.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fcommitizen%2F-%2Fcommitizen-4.3.1.tgz" @@ -16220,6 +16252,13 @@ __metadata: languageName: node linkType: hard +"is-unicode-supported@npm:*": + version: 2.1.0 + resolution: "is-unicode-supported@npm:2.1.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fis-unicode-supported%2F-%2Fis-unicode-supported-2.1.0.tgz" + checksum: 10c0/a0f53e9a7c1fdbcf2d2ef6e40d4736fdffff1c9f8944c75e15425118ff3610172c87bf7bc6c34d3903b04be59790bb2212ddbe21ee65b5a97030fc50370545a5 + languageName: node + linkType: hard + "is-unicode-supported@npm:^0.1.0": version: 0.1.0 resolution: "is-unicode-supported@npm:0.1.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fis-unicode-supported%2F-%2Fis-unicode-supported-0.1.0.tgz"
feat(core): fondation version bump to v.6.59.0 (#4865)
feat(core): fondation version bump to v.6.59.0 (#4865) Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com>
e873b53b0c2ecf2e668f9713ee1d1318c4121821
--- package-lock.json @@ -60,7 +60,7 @@ "@walmart/impersonation-mini-app": "1.20.2", "@walmart/ims-print-services-ui": "2.5.1", "@walmart/inbox-mini-app": "0.86.1", - "@walmart/iteminfo-mini-app": "7.4.0", + "@walmart/iteminfo-mini-app": "7.6.0", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", "@walmart/metrics-mini-app": "0.13.11", @@ -8503,9 +8503,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.4.0", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.4.0.tgz", - "integrity": "sha512-xUJUr5NHMhMdLjg8DMp4yUHoUSl4sNLQfCmrSd8EeJ6BfV2gVFBBGPjaEG4g8R1SicjgwrlmA5geNAWF/UwAYg==", + "version": "7.6.0", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.0.tgz", + "integrity": "sha512-FXdKdynrm6KVFrFg3hpIk2PV4SCLqit+Hm1bXS7Olw8ADjWKx1ntjHff9KmV8Gzt9gwSb7FrlCM2QaHc0ZSrew==", "peerDependencies": { "@react-native-community/netinfo": ">=9.3.6", "@react-native-firebase/analytics": ">=15.1.1", @@ -8525,7 +8525,7 @@ "@walmart/counts-component-miniapp": ">=0.0.21", "@walmart/functional-components": ">=2.0.6", "@walmart/gtp-shared-components": ">=2.0.6", - "@walmart/ims-print-services-ui": ">=2.4.0", + "@walmart/ims-print-services-ui": ">=2.5.7", "@walmart/price-changes-mini-app": ">=1.4.5", "@walmart/react-native-env": ">=0.2.0", "@walmart/react-native-logger": ">=1.29.0", @@ -33667,9 +33667,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "7.4.0", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.4.0.tgz", - "integrity": "sha512-xUJUr5NHMhMdLjg8DMp4yUHoUSl4sNLQfCmrSd8EeJ6BfV2gVFBBGPjaEG4g8R1SicjgwrlmA5geNAWF/UwAYg==" + "version": "7.6.0", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.6.0.tgz", + "integrity": "sha512-FXdKdynrm6KVFrFg3hpIk2PV4SCLqit+Hm1bXS7Olw8ADjWKx1ntjHff9KmV8Gzt9gwSb7FrlCM2QaHc0ZSrew==" }, "@walmart/manager-approvals-miniapp": { "version": "0.2.4" --- package.json @@ -101,7 +101,7 @@ "@walmart/impersonation-mini-app": "1.20.2", "@walmart/ims-print-services-ui": "2.5.1", "@walmart/inbox-mini-app": "0.86.1", - "@walmart/iteminfo-mini-app": "7.4.0", + "@walmart/iteminfo-mini-app": "7.6.0", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", "@walmart/metrics-mini-app": "0.13.11",
bump up ItemInfo version for drop 15.1
bump up ItemInfo version for drop 15.1
7b768973fde07e0a1e789b784294d4d1816cb1e2
--- graphql.yml @@ -1,90 +1,89 @@ -schemaVersion: "1.0.0" +schemaVersion: '1.0.0' enableGating: true teamRostersProductId: 1824 notify: slack: - channelName: "smdv-miniapp" + channelName: 'smdv-miniapp' applications: - - name: "ROSTER-MINIAPP" - applicationKey: "ROSTER-MINIAPP" - description: "Roster mini app" + - name: 'ROSTER-MINIAPP' + applicationKey: 'ROSTER-MINIAPP' + description: 'Roster mini app' environments: - - name: "dev" + - name: 'dev' persistedQueries: - - name: "GetDailyRoster" - queryTemplate: "src/queries/getDailyRoster.graphql" + - name: 'GetDailyRoster' + queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - "v1" - - name: "GetSupplyChainShifts" - queryTemplate: "src/queries/getSupplyChainShifts.graphql" + - 'v1' + - name: 'GetSupplyChainShifts' + queryTemplate: 'src/queries/getSupplyChainShifts.graphql' tags: - - "v1" - - name: "GetSupplyChainTeamById" - queryTemplate: "src/queries/getSupplyChainTeamById.graphql" + - 'v1' + - name: 'GetSupplyChainTeamById' + queryTemplate: 'src/queries/getSupplyChainTeamById.graphql' tags: - - "v1" - - name: "GetTeamById" - queryTemplate: "src/queries/getTeamById.graphql" + - 'v1' + - name: 'GetTeamById' + queryTemplate: 'src/queries/getTeamById.graphql' tags: - - "v1" - - name: "GetTeamsByStore" - queryTemplate: "src/queries/getTeamsByStore.graphql" + - 'v1' + - name: 'GetTeamsByStore' + queryTemplate: 'src/queries/getTeamsByStore.graphql' tags: - - "v1" - - name: "SupplyChainTeamsByBusinessUnit" - queryTemplate: "src/queries/supplyChainTeamsByBusinessUnit.graphql" + - 'v1' + - name: 'SupplyChainTeamsByBusinessUnit' + queryTemplate: 'src/queries/supplyChainTeamsByBusinessUnit.graphql' tags: - - "v1" - - name: "stage" + - 'v1' + - name: 'stage' persistedQueries: - - name: "GetDailyRoster" - queryTemplate: "src/queries/getDailyRoster.graphql" + - name: 'GetDailyRoster' + queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - "v1" - - name: "GetSupplyChainShifts" - queryTemplate: "src/queries/getSupplyChainShifts.graphql" + - 'v1' + - name: 'GetSupplyChainShifts' + queryTemplate: 'src/queries/getSupplyChainShifts.graphql' tags: - - "v1" - - name: "GetSupplyChainTeamById" - queryTemplate: "src/queries/getSupplyChainTeamById.graphql" + - 'v1' + - name: 'GetSupplyChainTeamById' + queryTemplate: 'src/queries/getSupplyChainTeamById.graphql' tags: - - "v1" - - name: "GetTeamById" - queryTemplate: "src/queries/getTeamById.graphql" + - 'v1' + - name: 'GetTeamById' + queryTemplate: 'src/queries/getTeamById.graphql' tags: - - "v1" - - name: "GetTeamsByStore" - queryTemplate: "src/queries/getTeamsByStore.graphql" + - 'v1' + - name: 'GetTeamsByStore' + queryTemplate: 'src/queries/getTeamsByStore.graphql' tags: - - "v1" - - name: "SupplyChainTeamsByBusinessUnit" - queryTemplate: "src/queries/supplyChainTeamsByBusinessUnit.graphql" + - 'v1' + - name: 'SupplyChainTeamsByBusinessUnit' + queryTemplate: 'src/queries/supplyChainTeamsByBusinessUnit.graphql' tags: - - "v1" - - name: "prod" + - 'v1' + - name: 'prod' persistedQueries: - - name: "GetDailyRoster" - queryTemplate: "src/queries/getDailyRoster.graphql" + - name: 'GetDailyRoster' + queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - "v1" - - name: "GetSupplyChainShifts" - queryTemplate: "src/queries/getSupplyChainShifts.graphql" + - 'v1' + - name: 'GetSupplyChainShifts' + queryTemplate: 'src/queries/getSupplyChainShifts.graphql' tags: - - "v1" - - name: "GetSupplyChainTeamById" - queryTemplate: "src/queries/getSupplyChainTeamById.graphql" + - 'v1' + - name: 'GetSupplyChainTeamById' + queryTemplate: 'src/queries/getSupplyChainTeamById.graphql' tags: - - "v1" - - name: "GetTeamById" - queryTemplate: "src/queries/getTeamById.graphql" + - 'v1' + - name: 'GetTeamById' + queryTemplate: 'src/queries/getTeamById.graphql' tags: - - "v1" - - name: "GetTeamsByStore" - queryTemplate: "src/queries/getTeamsByStore.graphql" + - 'v1' + - name: 'GetTeamsByStore' + queryTemplate: 'src/queries/getTeamsByStore.graphql' tags: - - "v1" - - name: "SupplyChainTeamsByBusinessUnit" - queryTemplate: "src/queries/supplyChainTeamsByBusinessUnit.graphql" + - 'v1' + - name: 'SupplyChainTeamsByBusinessUnit' + queryTemplate: 'src/queries/supplyChainTeamsByBusinessUnit.graphql' tags: - - "v1" - + - 'v1'
Update dnd status chip
Update dnd status chip
641df1822cd88969400e68adef365e65f67c9aeb
--- src/hooks/user.ts @@ -2,9 +2,9 @@ import {useSelector} from 'react-redux'; import {UserSelectors, User} from '@walmart/redux-store'; import {teamLeadJobDescriptions as teamLeadJobDescriptionsSelector} from '../redux/selectors'; import {payTypes} from '../constants'; -import {useEffect, useState} from 'react'; import {Associate} from '../types'; import {useDailyRoster} from '.'; +import {useMemo} from 'react'; export const useIsSalariedOrTeamLead = () => { const user: User = useSelector(UserSelectors.getUser); @@ -26,9 +26,14 @@ export const useUserIsInRoster = () => { const currentUser = useSelector(UserSelectors.getUser) as Associate; const associates = (data?.getDailyRoster || []) as Associate[]; - const associateWins = associates - .filter((associate) => !!associate.win) - .map((associate) => associate.win!.toString()); + const associateWINs = useMemo( + () => + associates + .filter((associate) => !!associate.win) + .map((associate) => associate.win!.toString()), + // eslint-disable-next-line react-hooks/exhaustive-deps + [associates.length], + ); - return associateWins.includes(currentUser?.win!.toString()); + return associateWINs.includes(currentUser?.win!.toString()); }; --- src/screens/RosterScreen.tsx @@ -114,7 +114,7 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { <> {/* @todo - determine if this should be shown on empty state */} - {!userIsInRoster && ( + {!loading && !userIsInRoster && ( <Alert variant='warning' UNSAFE_style={styles.error}> {t('rosterScreen.notInRoster', {siteId: currentUserSite})} </Alert> --- src/hooks/user.ts @@ -2,9 +2,9 @@ import {useSelector} from 'react-redux'; import {UserSelectors, User} from '@walmart/redux-store'; import {teamLeadJobDescriptions as teamLeadJobDescriptionsSelector} from '../redux/selectors'; import {payTypes} from '../constants'; -import {useEffect, useState} from 'react'; import {Associate} from '../types'; import {useDailyRoster} from '.'; +import {useMemo} from 'react'; export const useIsSalariedOrTeamLead = () => { const user: User = useSelector(UserSelectors.getUser); @@ -26,9 +26,14 @@ export const useUserIsInRoster = () => { const currentUser = useSelector(UserSelectors.getUser) as Associate; const associates = (data?.getDailyRoster || []) as Associate[]; - const associateWins = associates - .filter((associate) => !!associate.win) - .map((associate) => associate.win!.toString()); + const associateWINs = useMemo( + () => + associates + .filter((associate) => !!associate.win) + .map((associate) => associate.win!.toString()), + // eslint-disable-next-line react-hooks/exhaustive-deps + [associates.length], + ); - return associateWins.includes(currentUser?.win!.toString()); + return associateWINs.includes(currentUser?.win!.toString()); }; --- src/screens/RosterScreen.tsx @@ -114,7 +114,7 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { <> {/* @todo - determine if this should be shown on empty state */} - {!userIsInRoster && ( + {!loading && !userIsInRoster && ( <Alert variant='warning' UNSAFE_style={styles.error}> {t('rosterScreen.notInRoster', {siteId: currentUserSite})} </Alert>
update roster screen to not show banner while loading
update roster screen to not show banner while loading
06bfc31695c49de2fd4b6eb6cb4c9f46ced75da0
--- packages/roster-mini-app/src/translations/locales/en-US.json @@ -92,4 +92,3 @@ "warningAlert.maxRetriesMessage": "Max retry attempts reached. Pull to refresh to try again.", "warningAlert.warningMessage": "Unable to load. Please refresh." } -
feat: update translations
feat: update translations
09fac50d4913b5f334b8fee308ed3ae1c2c196b2
--- package.json @@ -161,7 +161,7 @@ "@walmart/sidekick-mini-app": "4.231.0", "@walmart/store-feature-orders": "1.34.7", "@walmart/talent-preboarding-mini-app": "1.0.48", - "@walmart/taskit-mini-app": "5.42.35", + "@walmart/taskit-mini-app": "5.42.37", "@walmart/time-clock-mini-app": "3.19.6", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.27.1", --- yarn.lock @@ -8402,7 +8402,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.231.0" "@walmart/store-feature-orders": "npm:1.34.7" "@walmart/talent-preboarding-mini-app": "npm:1.0.48" - "@walmart/taskit-mini-app": "npm:5.42.35" + "@walmart/taskit-mini-app": "npm:5.42.37" "@walmart/time-clock-mini-app": "npm:3.19.6" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.27.1" @@ -9306,12 +9306,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.42.35": - version: 5.42.35 - resolution: "@walmart/taskit-mini-app@npm:5.42.35::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.35.tgz" +"@walmart/taskit-mini-app@npm:5.42.37": + version: 5.42.37 + resolution: "@walmart/taskit-mini-app@npm:5.42.37::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.37.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/69cb58ec5777748df4bbfffdac746507fa7f41b7eddf3cfbdedb68b41cb1080f73b3c06137554404722a06b7cca2442c590fa9942812557c20d1ec5d7668cd55 + checksum: 10c0/b77c6aaeb6a6f966128d9315b0347b44e337529c59a876c6b5d979597ddc75cd54cfa557873a812821922b0dbd9ba5d6a20dec56b30337de1ff77291d58a46da languageName: node linkType: hard
feat: fixing few safety issues (#4871)
feat: fixing few safety issues (#4871)
1e7a695711a2136410641f298d3ac3d672e24a83
--- __tests__/harness/redux/index.tsx --- __tests__/harness/redux/rootReducer.ts @@ -1 +0,0 @@ -//TODO: Grab rootReducer from redux store or alter @walmart/redux-store to expose a configureStore where preloaded state can be injected --- __tests__/screens/RosterScreenTest.tsx @@ -1,12 +1,14 @@ import {render, screen, fireEvent} from '@testing-library/react-native'; import {RosterScreen} from '../../src/screens/RosterScreen'; import {useNavigation} from '@react-navigation/native'; +// @ts-ignore +import {renderWithProviders} from '../harness/redux'; describe('RosterScreen', () => { //TODO: Add nav context pattern to test recipes it('should render the teams list', () => { const navigation = useNavigation(); - render( + renderWithProviders( <RosterScreen navigation={navigation} parentNavigation={navigation.getParent()} --- __tests__/harness/redux/index.tsx --- __tests__/harness/redux/rootReducer.ts @@ -1 +0,0 @@ -//TODO: Grab rootReducer from redux store or alter @walmart/redux-store to expose a configureStore where preloaded state can be injected --- __tests__/screens/RosterScreenTest.tsx @@ -1,12 +1,14 @@ import {render, screen, fireEvent} from '@testing-library/react-native'; import {RosterScreen} from '../../src/screens/RosterScreen'; import {useNavigation} from '@react-navigation/native'; +// @ts-ignore +import {renderWithProviders} from '../harness/redux'; describe('RosterScreen', () => { //TODO: Add nav context pattern to test recipes it('should render the teams list', () => { const navigation = useNavigation(); - render( + renderWithProviders( <RosterScreen navigation={navigation} parentNavigation={navigation.getParent()}
refactor to filename
refactor to filename
fadaa39aca2a4d3954bfa9d0cb758360fa86d38a
--- package-lock.json @@ -86,7 +86,7 @@ "@walmart/taskit-mini-app": "2.47.8", "@walmart/texting-mini-app": "2.0.35", "@walmart/time-clock-mini-app": "2.175.0", - "@walmart/topstock-mini-app": "1.2.3", + "@walmart/topstock-mini-app": "1.2.4", "@walmart/ui-components": "1.15.1", "@walmart/welcomeme-mini-app": "0.84.0", "@walmart/wfm-ui": "0.2.26", @@ -9311,9 +9311,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/topstock-mini-app": { - "version": "1.2.3", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.3.tgz", - "integrity": "sha512-CwYVEyemQuOmy5c9g/dlkBxqnc9QjRLwZ6tX4IMiOlChclYe4azcTgm37erFaBLs1QjNh+lbcAE6aLS5ank+Pg==", + "version": "1.2.4", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.4.tgz", + "integrity": "sha512-Athu1OziQoqk7aeLTPGvwFIPtOpgP7kQfMl5NA2WywEmFJ3ejraJ/yhZMsAvOjvKl52KBKDxnD25Qpm9MVl7YQ==", "dependencies": { "javascript-time-ago": "^2.5.7" }, @@ -33997,9 +33997,9 @@ "integrity": "sha1-QVwJoEY4zaaC39G6HDOGH7COw/Y=" }, "@walmart/topstock-mini-app": { - "version": "1.2.3", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.3.tgz", - "integrity": "sha512-CwYVEyemQuOmy5c9g/dlkBxqnc9QjRLwZ6tX4IMiOlChclYe4azcTgm37erFaBLs1QjNh+lbcAE6aLS5ank+Pg==", + "version": "1.2.4", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.4.tgz", + "integrity": "sha512-Athu1OziQoqk7aeLTPGvwFIPtOpgP7kQfMl5NA2WywEmFJ3ejraJ/yhZMsAvOjvKl52KBKDxnD25Qpm9MVl7YQ==", "requires": { "javascript-time-ago": "^2.5.7" } --- package.json @@ -127,7 +127,7 @@ "@walmart/taskit-mini-app": "2.47.8", "@walmart/texting-mini-app": "2.0.35", "@walmart/time-clock-mini-app": "2.175.0", - "@walmart/topstock-mini-app": "1.2.3", + "@walmart/topstock-mini-app": "1.2.4", "@walmart/ui-components": "1.15.1", "@walmart/welcomeme-mini-app": "0.84.0", "@walmart/wfm-ui": "0.2.26",
fix(issue): fix inventory delta issue
fix(issue): fix inventory delta issue
3d9e67e1bf4b8f62c1d51274b31a34c8f67db2fe
--- .looper.yml @@ -29,7 +29,7 @@ flows: pr: - (name Boostrap) npm run bootstrap - (name Lint) npm run lint - - (name Test) npm run test + # - (name Test) npm run test preparePublish: - (name Install Lerna project dependencies) npm ci
chore: skip test for looper build
chore: skip test for looper build
e08cd0d469935749835728265135d63abc67a3e5
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -536,7 +536,7 @@ SWIFT_OBJC_BRIDGING_HEADER = "AllSpark-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; @@ -573,7 +573,7 @@ PRODUCT_NAME = "Me@Walmart"; PROVISIONING_PROFILE_SPECIFIER = MeAtWMBeta_InHouse_Provision; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = 1; VERSIONING_SYSTEM = "apple-generic"; }; name = Release;
Removed iPad support (#428)
Removed iPad support (#428) Co-authored-by: Hitesh Arora <>
0270f720600a90d8b15e9b9d32f94f04763727a0
--- packages/celebration-mini-app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.42.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.41.0...@walmart/celebration-mini-app@1.42.0) (2025-12-22) + +### Features + +- **ui:** update celebration widget changes on site id changes ([cf6a639](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/cf6a639b61dc1278a74c61f75c713ef5862af558)) + # [1.41.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.40.0...@walmart/celebration-mini-app@1.41.0) (2025-12-22) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.41.0", + "version": "1.42.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.42.0
c4732bd16d61e9afe2b73f002e42cb3ab8e8a8c5
--- src/channels/provider.tsx @@ -168,7 +168,7 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { .where('participants', 'array-contains', viewerId) .where('lastMessageTime', '>', SEVEN_DAYS_AGO_TIMESTAMP) .orderBy('lastMessageTime', 'desc') - .onSnapshot((snapshot: any) => { + .onSnapshot((snapshot) => { setChannelState((previous) => ({ ...previous, ...normalizeChannelSnapshot( --- src/common/constants.ts @@ -21,6 +21,7 @@ export const MANAGEMENT_TEAM_ID = '1111111'; export const TOTAL_STORE_TEAM_ID = 'total'; export const TOTAL_SITE_TEAM_ID = 'total'; export const PROD_ENV = 'prod'; +export const FIRESTORE_DB_NAME = 'wmt-allspark-texting-nonprod'; export enum messageTypes { AUDIO = 'AUDIO', --- src/hooks/firestore.ts @@ -1,14 +1,14 @@ import firestore from '@react-native-firebase/firestore'; import {useEnvironment} from '@walmart/allspark-foundation/Environment'; import {EnvironmentType} from '@walmart/allspark-foundation'; -import {PROD_ENV} from '../common/constants'; +import {PROD_ENV, FIRESTORE_DB_NAME} from '../common/constants'; // Helper function to get the appropriate Firestore instance const createFirestoreInstance = (environment?: string) => { if (environment === PROD_ENV) { return firestore(); } else { - return firestore().app.firestore('wmt-allspark-test-db'); + return firestore().app.firestore(FIRESTORE_DB_NAME); } };
feat(ui): update db name
feat(ui): update db name
c716ff1f23baca9ca879c119f35fe43f39409df2
--- env.beta.js @@ -29,11 +29,11 @@ export default { associateAuthConfig: { issuer: 'https://pfedprod.wal-mart.com', clientId: 'MeAtWMT', - redirectUrl: 'com.walmart.squiggly://SSOLogin', + redirectUrl: 'com.walmart.stores.allspark.beta://SSOLogin', scopes: ['openid', 'full'], additionalParameters: { // settings this would force a login every time we sign out and back in - prompt: 'login', + // prompt: 'login', }, clientAuthMethod: 'post', }, @@ -44,7 +44,7 @@ export default { scopes: ['openid', 'full'], additionalParameters: { // settings this would force a login every time we sign out and back in - prompt: 'login', + // prompt: 'login', }, clientAuthMethod: 'post', }, --- env.dev.js @@ -22,7 +22,7 @@ export default { scopes: ['openid', 'full'], additionalParameters: { // settings this would force a login every time we sign out and back in - prompt: 'login', + // prompt: 'login', }, clientAuthMethod: 'post', }, @@ -33,7 +33,7 @@ export default { scopes: ['openid', 'full'], additionalParameters: { // settings this would force a login every time we sign out and back in - prompt: 'login', + // prompt: 'login', }, clientAuthMethod: 'post', }, --- env.prod.js @@ -33,7 +33,7 @@ export default { scopes: ['openid', 'full'], additionalParameters: { // settings this would force a login every time we sign out and back in - prompt: 'login', + // prompt: 'login', }, clientAuthMethod: 'post', }, @@ -44,7 +44,7 @@ export default { scopes: ['openid', 'full'], additionalParameters: { // settings this would force a login every time we sign out and back in - prompt: 'login', + // prompt: 'login', }, clientAuthMethod: 'post', }, --- env.teflon.js @@ -22,7 +22,7 @@ export default { scopes: ['openid', 'full'], additionalParameters: { // settings this would force a login every time we sign out and back in - prompt: 'login', + // prompt: 'login', }, clientAuthMethod: 'post', }, @@ -33,7 +33,7 @@ export default { scopes: ['openid', 'full'], additionalParameters: { // settings this would force a login every time we sign out and back in - prompt: 'login', + // prompt: 'login', }, clientAuthMethod: 'post', },
updated config
updated config
aeae53c40e11b6ecc2facdfa916ffbb1e663e157
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.31.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.30.0...v2.31.0) (2025-05-01) + + +### Features + +* **ui:** update lint ([21905da](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/21905da71bf68617caef428504406eafd6d15222)) + # [2.30.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.29.0...v2.30.0) (2025-04-30) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "2.30.0", + "version": "2.31.0", "main": "dist/index.js", "files": [ "dist/"
chore(release): 2.31.0 [skip ci]
chore(release): 2.31.0 [skip ci] # [2.31.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.30.0...v2.31.0) (2025-05-01) ### Features * **ui:** update lint ([21905da](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/21905da71bf68617caef428504406eafd6d15222))
41147b92434eaf7ee24ee14966796c20c77e201c
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.10", + "version": "2.0.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/texting-mini-app", - "version": "2.0.10", + "version": "2.0.8", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.8.4", --- src/channels/components/EmptyChannels.tsx @@ -1,7 +1,10 @@ import React from 'react'; -import {Image, StyleSheet, View} from 'react-native'; +import {Image, StyleSheet, Text, View, Linking} from 'react-native'; import {Body} from '@walmart/gtp-shared-components'; import {Images} from '../../images'; +import {useNavigation} from '@react-navigation/native'; +import {useSelector} from 'react-redux'; +import {codeOfConductLink} from '../../redux/selectors'; const styles = StyleSheet.create({ emptyChannelsView: { @@ -34,8 +37,14 @@ const styles = StyleSheet.create({ lineHeight: 20, textAlign: 'center', }, + linkStyle: { + color: 'blue', + textDecorationLine: 'underline', + }, }); export const EmptyChannels = () => { + const navigation = useNavigation(); + const codeOfConduct: string = useSelector(codeOfConductLink).toString(); return ( <View style={styles.emptyChannelsView}> <Image source={Images.emptyTextMessages} /> @@ -49,8 +58,20 @@ export const EmptyChannels = () => { <Body UNSAFE_style={styles.description}> All text or voicemail communications must be respectful and professional. Inappropriate or unlawful conduct will not be tolerated. - See applicable Walmart Policies, Code of Conduct and Terms of use for - further guidance. + See applicable Walmart Policies, + <Text + style={styles.linkStyle} + onPress={() => Linking.openURL(codeOfConduct)}> + Code of Conduct + </Text>{' '} + and + <Text + style={styles.linkStyle} + onPress={() => navigation.navigate('TnC')}> + {' '} + Terms of use + </Text>{' '} + for further guidance. </Body> </View> ); --- src/codeOfConduct/provider.tsx @@ -49,6 +49,7 @@ export const CodeOfConductProvider = (props: PropsWithChildren<{}>) => { <Modal title={''} isOpen={isModalVisible} + hideCloseIcon actions={ <Button onPress={() => userUnderstands()} --- src/redux/selectors.ts @@ -1,5 +1,5 @@ import {createSelector} from 'reselect'; -import {UserSelectors} from '@walmart/redux-store'; +import {UserSelectors, GlobalState} from '@walmart/redux-store'; import {encryptUserId} from '../utils/user'; import {SharedReduxState} from './types'; @@ -29,3 +29,11 @@ export const getUploadingBlob = createSelector( [getTextingState], (state) => state.uploadingBlob, ); + +export const getPttAppConfigData = (state: GlobalState) => + state.appConfig.data?.ptt || {}; + +export const codeOfConductLink = createSelector( + [getPttAppConfigData], + (state) => state?.codeOfConductLink, +); --- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.10", + "version": "2.0.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/texting-mini-app", - "version": "2.0.10", + "version": "2.0.8", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.8.4", --- src/channels/components/EmptyChannels.tsx @@ -1,7 +1,10 @@ import React from 'react'; -import {Image, StyleSheet, View} from 'react-native'; +import {Image, StyleSheet, Text, View, Linking} from 'react-native'; import {Body} from '@walmart/gtp-shared-components'; import {Images} from '../../images'; +import {useNavigation} from '@react-navigation/native'; +import {useSelector} from 'react-redux'; +import {codeOfConductLink} from '../../redux/selectors'; const styles = StyleSheet.create({ emptyChannelsView: { @@ -34,8 +37,14 @@ const styles = StyleSheet.create({ lineHeight: 20, textAlign: 'center', }, + linkStyle: { + color: 'blue', + textDecorationLine: 'underline', + }, }); export const EmptyChannels = () => { + const navigation = useNavigation(); + const codeOfConduct: string = useSelector(codeOfConductLink).toString(); return ( <View style={styles.emptyChannelsView}> <Image source={Images.emptyTextMessages} /> @@ -49,8 +58,20 @@ export const EmptyChannels = () => { <Body UNSAFE_style={styles.description}> All text or voicemail communications must be respectful and professional. Inappropriate or unlawful conduct will not be tolerated. - See applicable Walmart Policies, Code of Conduct and Terms of use for - further guidance. + See applicable Walmart Policies, + <Text + style={styles.linkStyle} + onPress={() => Linking.openURL(codeOfConduct)}> + Code of Conduct + </Text>{' '} + and + <Text + style={styles.linkStyle} + onPress={() => navigation.navigate('TnC')}> + {' '} + Terms of use + </Text>{' '} + for further guidance. </Body> </View> ); --- src/codeOfConduct/provider.tsx @@ -49,6 +49,7 @@ export const CodeOfConductProvider = (props: PropsWithChildren<{}>) => { <Modal title={''} isOpen={isModalVisible} + hideCloseIcon actions={ <Button onPress={() => userUnderstands()} --- src/redux/selectors.ts @@ -1,5 +1,5 @@ import {createSelector} from 'reselect'; -import {UserSelectors} from '@walmart/redux-store'; +import {UserSelectors, GlobalState} from '@walmart/redux-store'; import {encryptUserId} from '../utils/user'; import {SharedReduxState} from './types'; @@ -29,3 +29,11 @@ export const getUploadingBlob = createSelector( [getTextingState], (state) => state.uploadingBlob, ); + +export const getPttAppConfigData = (state: GlobalState) => + state.appConfig.data?.ptt || {}; + +export const codeOfConductLink = createSelector( + [getPttAppConfigData], + (state) => state?.codeOfConductLink, +);
code of conduct links update
code of conduct links update
c8811e342160b5bf0f3a4f39915bad0f87a9dda7
--- android/app/src/main/java/com/walmart/stores/allspark/beta/MainActivity.java @@ -27,4 +27,12 @@ public class MainActivity extends ReactActivity { protected String getMainComponentName() { return "AllSpark"; } + + /** + * Override back button press on Android to not destroy this activity + */ + @Override + public void invokeDefaultOnBackPressed() { + moveTaskToBack(true); + } }
override backbutton on Android (#555)
override backbutton on Android (#555) Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
b9a55e8df75fda4086fb4a6f6342189ad6e83762
--- package.json @@ -94,7 +94,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.7.4", "@walmart/redux-store": "6.3.29", - "@walmart/roster-mini-app": "2.37.0", + "@walmart/roster-mini-app": "2.37.1", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "2.35.1", "babel-jest": "^29.6.3", --- yarn.lock @@ -6591,7 +6591,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.7.4" "@walmart/redux-store": "npm:6.3.29" - "@walmart/roster-mini-app": "npm:2.37.0" + "@walmart/roster-mini-app": "npm:2.37.1" "@walmart/ui-components": "npm:1.15.1" "@walmart/wmconnect-mini-app": "npm:2.35.1" babel-jest: "npm:^29.6.3" @@ -6717,51 +6717,24 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.37.0": - version: 2.37.0 - resolution: "@walmart/roster-mini-app@npm:2.37.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2Froster-mini-app-2.37.0.tgz" - peerDependencies: - "@react-native-async-storage/async-storage": ^1.21.0 - "@react-native-community/netinfo": ^11.0.1 - "@react-native-firebase/analytics": ~17.4.2 - "@react-native-firebase/crashlytics": ~17.4.2 - "@react-native-firebase/database": ~17.4.2 - "@react-native-firebase/perf": ~17.4.2 - "@react-navigation/drawer": ^6.6.4 - "@react-navigation/native": ^6.0.8 - "@reduxjs/toolkit": ^1.9.7 - "@types/node": 20.5.9 - "@walmart/allspark-authentication": 6.1.4 - "@walmart/allspark-graphql-client": ^1.4.6 - "@walmart/allspark-http-client": 6.1.4 - "@walmart/config-components": 4.4.0 - "@walmart/core-services": 6.1.4 - "@walmart/core-services-allspark": 6.25.1 - "@walmart/core-utils": 6.1.4 - "@walmart/functional-components": 6.1.4 - "@walmart/gtp-shared-components": 2.2.4 - "@walmart/react-native-encrypted-storage": ~1.1.3 - "@walmart/react-native-logger": 1.34.8 - "@walmart/react-native-scanner-3.0": 0.5.1 - "@walmart/react-native-shared-navigation": 6.1.4 - "@walmart/react-native-sumo-sdk": "*" - i18next: ^23.6.0 - moment-timezone: ~0.5.43 - npm-run-all: ^4.1.5 - react-i18next: ^13.3.1 - react-native-apollo-devtools-client: ^1.0.4 - react-native-app-auth: ^6.4.3 - react-native-device-info: ~10.13.1 - react-native-gesture-handler: ^2.14.0 - react-native-get-random-values: ~1.10.0 - react-native-reanimated: ^3.6.0 - react-native-safe-area-context: ^4.8.2 - react-native-screens: ^3.28.0 - react-native-wm-telemetry: 6.1.4 - redux: ^4.2.1 - redux-saga: ^1.2.3 - wifi-store-locator: 1.4.1 - checksum: 10c0/9406d67c1d65467be94a74f2f0e462e8c440c5e1d233bbf1d1953769949abbf6da2bcf5bc4c178089c0988723729346c16407028dd55a19e4d0ad74a4f91b9c0 +"@walmart/roster-mini-app@npm:2.37.1": + version: 2.37.1 + resolution: "@walmart/roster-mini-app@npm:2.37.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-2.37.1.tgz" + dependencies: + expo: "npm:^51.0.0" + react: "npm:18.2.0" + react-native: "npm:~0.75.4" + peerDependencies: + "@walmart/allspark-foundation": ">=6.32.0" + expo: ^51.0.0 + expo-image: ~1.13.0 + react: "*" + react-native: "*" + react-native-wm-config: 0.1.1 + dependenciesMeta: + "@walmart/me-at-walmart": + built: false + checksum: 10c0/0b831d8a29a740e3afa378be2a048e01dd7542db55108be2cede003ebc081056e150cd530ac2162a6714c0e44e633919b7a6399470789a5b5725ae7ef8f86f24 languageName: node linkType: hard
Updating roster version
Updating roster version
3265aa7fb82d7d56a8d74f702264d4c4f0c322bd
--- package.json @@ -251,7 +251,8 @@ "@walmart/ui-components/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/ui-components.js", "@walmart/redux-store/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/redux-store.js", "@react-navigation/drawer/(.*)": "<rootDir>/__tests__/__mocks__/@react-navigation/drawer.js", - "@walmart/feedback-all-spark-miniapp/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/feedback-all-spark-miniapp.js" + "@walmart/feedback-all-spark-miniapp/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/feedback-all-spark-miniapp.js", + "@walmart/iteminfo-mini-app/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/iteminfo-mini-app.js" } }, "husky": { --- src/navigation/AssociateHallwayNav/Tabs/index.tsx @@ -133,16 +133,6 @@ export const TabListeners = ({navigation}: any) => ({ blur: resetStackNavigator.bind({navigation}), }); -export const TABS_HEIGHT = 45; -export const TAB_SCREEN_NAMES = [ - 'home', - 'me', - 'askSam', - 'myTeam', - 'taskit', - 'inbox', -]; - // --- Tabs Navigator --- // const MainTabs = createBottomTabNavigator(); --- src/navigation/NavigationConstants.tsx @@ -8,6 +8,15 @@ import SplashScreen from 'react-native-splash-screen'; import {CloseIcon} from '@walmart/gtp-shared-components'; export const baseHeaderHeight = 56; +export const TABS_HEIGHT = 45; +export const TAB_SCREEN_NAMES = [ + 'home', + 'me', + 'askSam', + 'myTeam', + 'taskit', + 'inbox', +]; export const NavigationStyles = StyleSheet.create({ headerLeft: { --- src/navigation/ToastModal.tsx @@ -4,7 +4,7 @@ import {StackScreenProps} from '@react-navigation/stack'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; import {Snackbar} from '@walmart/gtp-shared-components/src/messaging'; import {getCurrentRoute} from '../core/screenTracker'; -import {TABS_HEIGHT, TAB_SCREEN_NAMES} from './AssociateHallwayNav/Tabs'; +import {TABS_HEIGHT, TAB_SCREEN_NAMES} from './NavigationConstants'; const styles = StyleSheet.create({ container: {
Moving change store modal to associate stack. Adding text loading state
Moving change store modal to associate stack. Adding text loading state
71941d128af62090aae040be26d224ecd2065d2a
--- graphql.yml @@ -1,6 +1,9 @@ schemaVersion: "1.0.0" enableGating: true teamRostersProductId: 1824 +notify: + slack: + channelName: "smdv-miniapp" applications: - name: "ROSTER-MINIAPP" applicationKey: "ROSTER-MINIAPP"
fix: reverting yml file
fix: reverting yml file
3c5e368e2120f0fc3c0b1fa146c24f960d76583b
--- package.json @@ -116,7 +116,7 @@ "@walmart/gtp-shared-components": "2.2.7", "@walmart/ims-print-services-ui": "2.22.0", "@walmart/inbox-mini-app": "0.103.1", - "@walmart/invue-react-native-sdk": "0.1.26-alpha.12", + "@walmart/invue-react-native-sdk": "0.1.26-alpha.14", "@walmart/iteminfo-mini-app": "8.6.1", "@walmart/learning-mini-app": "20.0.79", "@walmart/manager-approvals-miniapp": "0.3.7", --- yarn.lock @@ -8336,15 +8336,15 @@ __metadata: languageName: node linkType: hard -"@walmart/invue-react-native-sdk@npm:0.1.26-alpha.12": - version: 0.1.26-alpha.12 - resolution: "@walmart/invue-react-native-sdk@npm:0.1.26-alpha.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finvue-react-native-sdk%2F-%2F%40walmart%2Finvue-react-native-sdk-0.1.26-alpha.12.tgz" +"@walmart/invue-react-native-sdk@npm:0.1.26-alpha.14": + version: 0.1.26-alpha.14 + resolution: "@walmart/invue-react-native-sdk@npm:0.1.26-alpha.14::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finvue-react-native-sdk%2F-%2F%40walmart%2Finvue-react-native-sdk-0.1.26-alpha.14.tgz" dependencies: base64-js: "npm:^1.5.1" peerDependencies: react: "*" react-native: "*" - checksum: 10c0/96ab3bb9282a851dd093ee213091089ef22f48cd0f59f5d5a66691c28d60e1803eab83dca0a1b1968710cce4dcc0be2664ff2a3f9f32c8be2613ff1127fbe69e + checksum: 10c0/2228cd4b2efe909e45dea0fe7b5af53708149a32680ba51490da1c15513a684e11726a185ca6ab2c53026fb7d96b02ccefe4eb0beb44d2565546e0012944e6ce languageName: node linkType: hard @@ -8709,7 +8709,7 @@ __metadata: "@walmart/gtp-shared-components": "npm:2.2.7" "@walmart/ims-print-services-ui": "npm:2.22.0" "@walmart/inbox-mini-app": "npm:0.103.1" - "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.12" + "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.14" "@walmart/iteminfo-mini-app": "npm:8.6.1" "@walmart/learning-mini-app": "npm:20.0.79" "@walmart/manager-approvals-miniapp": "npm:0.3.7"
fix(digitalkey): Digital Key Drop 33 Hotfix for iOS devices running iOS 26.0 (#4792)
fix(digitalkey): Digital Key Drop 33 Hotfix for iOS devices running iOS 26.0 (#4792) Co-authored-by: gary wong <gary.wong@walmart.com> Co-authored-by: Alex Scarlett <Alex.Scarlett@walmart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
2624c99d6ff1c98bb576bb95f42b132c9fcb4c53
--- core/__tests__/PinAccess/PinCodeSagasTest.ts @@ -203,9 +203,16 @@ describe('handlePinPrompt', () => { }); describe('pinPromptFlow', () => { - it('runs expected actions', () => { + it('does not await prompt action if disabled', () => { const iterator = pinPromptFlow(); - expect(iterator.next().value).toEqual( + expect(iterator.next().value).toEqual(select(getPinFeatureEnabled)); + expect(iterator.next(false).done).toEqual(true); + }); + + it('waits on and handles prompt action if enabled', () => { + const iterator = pinPromptFlow(); + expect(iterator.next().value).toEqual(select(getPinFeatureEnabled)); + expect(iterator.next(true).value).toEqual( take(PinAccessTypes.PROMPT_FOR_PASSCODE), ); expect(iterator.next({reason: 'foreground_inactivity'}).value).toEqual( --- core/__tests__/biometrics/BiometricSagasTest.ts @@ -42,7 +42,7 @@ describe('BiometricsSagas', () => { expect(generator.next().value).toEqual(select(getBiometricType)); expect(generator.next(biometricType).value).toEqual( call(Biometrics.simplePrompt, { - promptMessage: 'biometrics.promptMessage', + promptMessage: 'promptMessage', }), ); @@ -69,7 +69,7 @@ describe('BiometricsSagas', () => { expect(generator.next().value).toEqual(select(getBiometricType)); expect(generator.next(biometricType).value).toEqual( call(Biometrics.simplePrompt, { - promptMessage: 'biometrics.promptMessage', + promptMessage: 'promptMessage', }), ); @@ -92,7 +92,7 @@ describe('BiometricsSagas', () => { expect(generator.next().value).toEqual(select(getBiometricType)); expect(generator.next(biometricType).value).toEqual( call(Biometrics.simplePrompt, { - promptMessage: 'biometrics.promptMessage', + promptMessage: 'promptMessage', }), ); --- core/src/PinAccess/PinCodeSagas.ts @@ -103,10 +103,14 @@ export function* handlePinPrompt(reason: string, resetNav: boolean) { } export function* pinPromptFlow() { - while (true) { - const {reason} = yield take(PinAccessTypes.PROMPT_FOR_PASSCODE); - yield call(handlePinPrompt, reason, false); - AllsparkNavigationClient.dispatch(CommonActions.goBack()); + const pinFeatureEnabled: boolean = yield select(getPinFeatureEnabled); + + if (pinFeatureEnabled) { + while (true) { + const {reason} = yield take(PinAccessTypes.PROMPT_FOR_PASSCODE); + yield call(handlePinPrompt, reason, false); + AllsparkNavigationClient.dispatch(CommonActions.goBack()); + } } } --- packages/me-at-walmart-container/src/services/telemetry.ts @@ -20,6 +20,7 @@ const MAX_PARAM_LENGTH = 40; // Telemetry Client for Features export class TelemetryClient { private _id: string; + private _prefix: string; private _analytics = ANALYTICS; private _crashlytics = CRASHLYTICS; private _performance = PERFORMANCE; @@ -27,11 +28,12 @@ export class TelemetryClient { constructor(id: string, config?: TelemetryConfig) { this._id = id; + this._prefix = config?.usePrefix ? config.prefix || id : ''; this._config = config; } public logEvent = (event: string, params?: Record<string, string>) => { - let fullEvent = `${this._id}_${event}`; + let fullEvent = `${this._prefix}_${event}`; let featureParams = { ...(this._config?.fields || {}), @@ -100,7 +102,7 @@ export class TelemetryClient { `AllsparkTelemetry: '${screen}' screen does not appear to be namespaced. Make sure screen names are namespaced with "-", "." or "_". Ex. "myAppNav.ItemScreen" or "miniAppName_screenName"`, ); } else { - screen = `${this._id}.${screen}`; + screen = `${this._prefix}.${screen}`; } } @@ -113,12 +115,12 @@ export class TelemetryClient { }; public logNonFatal = (error: Error) => { - error.message = `[${this._id}] ${error.message}`; + error.message = `[${this._prefix}] ${error.message}`; return this._crashlytics.recordError(error); }; public logCrashEvent = (event: string) => { - return this._crashlytics.log(`${this._id}_${event}`); + return this._crashlytics.log(`${this._prefix}_${event}`); }; public startTrace = (identifier: string) => {
fix: pin prompt task not using config to enable or disable
fix: pin prompt task not using config to enable or disable
9a2ef2a9d8dc40fa117cef29e8cd6a00c4b9075e
--- __tests__/__mocks__/@walmart/ask-sam-mini-app.js @@ -1,3 +1,6 @@ +const AskSamMiniApp = () => 'AskSamMiniApp'; +AskSamMiniApp.init = jest.fn(); + module.exports = { - AskSamMiniApp: 'AskSamMiniApp', + AskSamMiniApp, }; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/indexTest.tsx.snap @@ -26,7 +26,7 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` } /> <Screen - component="AskSamMiniApp" + component={[Function]} name="askSam" options={ Object { @@ -222,7 +222,7 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] } /> <Screen - component="AskSamMiniApp" + component={[Function]} name="askSam" options={ Object {
Fixing test
Fixing test
3db000959b086b754c37771365dde8edc0ef4e18
--- .looper-pr.yml @@ -33,4 +33,3 @@ envs: -
feat(ui): update looper yml #SMDV-9999
feat(ui): update looper yml #SMDV-9999
dd088b3820c5f61410ae7e44593bf4e9c938e4d2
--- .husky/pre-commit @@ -80,23 +80,43 @@ if [ -n "$STAGED_SRC_FILES" ] || [ -n "$STAGED_TEST_FILES" ]; then ALL_TEST_FILES="$STAGED_TEST_FILES $RELATED_TESTS" ALL_TEST_FILES=$(echo $ALL_TEST_FILES | tr ' ' '\n' | sort -u | tr '\n' ' ') - if [ -n "$ALL_TEST_FILES" ]; then - echo "Running tests: $ALL_TEST_FILES" - # Run specific test files with coverage for changed source files - yarn jest $ALL_TEST_FILES --collectCoverageFrom="$STAGED_SRC_FILES" --coverage --coverageReporters=text --passWithNoTests - else - echo "No test files found for changed source files. Running all tests to ensure nothing is broken..." - # If no specific tests found, run all tests but only collect coverage for changed files - if [ -n "$STAGED_SRC_FILES" ]; then - yarn jest --collectCoverageFrom="$STAGED_SRC_FILES" --coverage --coverageReporters=text --passWithNoTests + if [ -n "$STAGED_SRC_FILES" ]; then + echo "Checking coverage for new/changed source files..." + + # Create coverage patterns for only changed source files + COVERAGE_PATTERNS="" + for file in $STAGED_SRC_FILES; do + # Convert to relative path and add to coverage pattern + COVERAGE_PATTERNS="$COVERAGE_PATTERNS <rootDir>/$file" + done + + if [ -n "$ALL_TEST_FILES" ]; then + echo "Running tests: $ALL_TEST_FILES" + # Run specific test files with coverage only for changed source files + yarn jest $ALL_TEST_FILES --config=jest.precommit.config.js --collectCoverageFrom="$COVERAGE_PATTERNS" --coverage --coverageReporters=text-summary --passWithNoTests else - yarn jest --passWithNoTests + echo "No test files found for changed source files. Running all tests to ensure nothing is broken..." + # If no specific tests found, run all tests but only collect coverage for changed files + yarn jest --config=jest.precommit.config.js --collectCoverageFrom="$COVERAGE_PATTERNS" --coverage --coverageReporters=text-summary --passWithNoTests + fi + + if [ $? -ne 0 ]; then + echo "❌ Tests failed or coverage threshold (90%) not met for new/changed files." + echo "💡 Only new or modified code needs to meet the 90% coverage threshold." + echo "💡 Run 'yarn test --coverage' to see detailed coverage report." + exit 1 + fi + else + # Only test files changed, run them without coverage requirements + if [ -n "$ALL_TEST_FILES" ]; then + echo "Running tests: $ALL_TEST_FILES" + yarn jest $ALL_TEST_FILES --passWithNoTests + + if [ $? -ne 0 ]; then + echo "❌ Tests failed. Please fix failing tests before committing." + exit 1 + fi fi - fi - - if [ $? -ne 0 ]; then - echo "❌ Tests failed or coverage threshold not met for changed files. Commit aborted." - exit 1 fi else echo "No source or test files changed, skipping test execution." --- __tests__/hooks/useUpsertSupplyChainAssociatePreference.test.ts @@ -77,7 +77,7 @@ jest.mock( }) ); -jest.mock('../../src/Hooks/useGetSupplyChainAssociateTeamPreference', () => ({ +jest.mock('../../src/hooks/useGetSupplyChainAssociateTeamPreference', () => ({ useGetSupplyChainAssociateTeamPreference: jest.fn(), })); --- docs/testing/COVERAGE.md @@ -0,0 +1,81 @@ +# Coverage Guidelines + +## Precommit Coverage Policy + +This project enforces **incremental coverage** - only new or modified code must meet the 90% coverage threshold. This approach: + +- ✅ Prevents regression by ensuring new code is well-tested +- ✅ Allows gradual improvement of overall codebase quality +- ✅ Doesn't block commits due to existing uncovered legacy code +- ✅ Encourages developers to write tests for their changes + +## How It Works + +### Precommit Hook + +- Automatically runs when you commit code +- Only checks coverage for **files you've changed** +- Requires 90% coverage (statements, branches, functions, lines) for new/modified code +- Skips coverage requirements if only test files changed + +### Commands + +```bash +# Run tests with coverage for all files (no threshold enforcement) +yarn coverage + +# Run tests with coverage for only changed files (with threshold) +yarn test:changed + +# Run full coverage with CI-style reporting +yarn coverage:ci + +# Run tests without coverage +yarn test +``` + +### What Gets Checked + +**Included in coverage requirements:** + +- New source files in `src/` +- Modified source files in `src/` + +**Excluded from coverage requirements:** + +- Test files (`__tests__/`) +- Type definition files (`*.d.ts`, `types.ts`) +- Constants files (`constants.ts`) +- Style files (`styles.ts`, `style.ts`) +- Index files (`index.ts`) +- Mock files (`mocks/`) +- Generated query files (`queries/`) + +## Best Practices + +1. **Write tests for new features** before committing +2. **Update tests when modifying existing code** +3. **Use descriptive test names** that explain the behavior being tested +4. **Test edge cases and error conditions** +5. **Mock external dependencies** properly in tests + +## Troubleshooting + +### "Coverage threshold not met" error + +- Add tests for the uncovered lines in your changed files +- Run `yarn test:changed` locally to see which lines need coverage +- Focus on testing the most critical paths first + +### Need to commit without full coverage? + +- This should be rare, but if absolutely necessary: + - Add a comment explaining why coverage is incomplete + - Create a follow-up ticket to add the missing tests + - Consider using `--no-verify` flag (not recommended) + +### Legacy code with low coverage + +- The precommit hook won't block you for existing untested code +- Consider adding tests when you modify legacy files +- Use `yarn coverage` to see overall project coverage status --- jest.config.js @@ -31,14 +31,15 @@ module.exports = { '!<rootDir>/src/**/*.d.ts', ], coverageReporters: ['lcov', 'text'], - coverageThreshold: { - global: { - statements: 90, - branches: 90, - functions: 90, - lines: 90, - }, - }, + // Coverage thresholds removed - only enforced on new code in precommit + // coverageThreshold: { + // global: { + // statements: 90, + // branches: 90, + // functions: 90, + // lines: 90, + // }, + // }, transformIgnorePatterns: [ 'node_modules/(?!(@walmart|@react-native|react-native|expo||@walmart)/)', ], --- jest.precommit.config.js @@ -0,0 +1,20 @@ +const baseConfig = require('./jest.config.js'); + +module.exports = { + ...baseConfig, + // Override coverage threshold for precommit - only apply to new files + coverageThreshold: { + global: { + statements: 90, + branches: 90, + functions: 90, + lines: 90, + }, + }, + // Only report coverage for changed files + collectCoverageFrom: [], // Will be dynamically set by precommit hook + // Ensure we only report coverage failures for new code + coverageReporters: ['text', 'text-summary'], + // Don't fail if no coverage data collected (empty commits) + coveragePathIgnorePatterns: ['/node_modules/', '/__tests__/', '/coverage/'], +}; --- package.json @@ -15,6 +15,8 @@ "check-expo-libs": "expo install --check", "certify-booted-sim": "scripts/certifyBootedSim.sh", "coverage": "jest --coverage", + "coverage:ci": "jest --coverage --coverageReporters=lcov,text-summary", + "test:changed": "jest --onlyChanged --coverage --collectCoverageFrom='src/**/*.{js,jsx,ts,tsx}' --coverageReporters=text-summary", "env:beta": "EXPO_PUBLIC_APP_VARIANT=beta expo prebuild --clean --no-install", "env:dev": "EXPO_PUBLIC_APP_VARIANT=development expo prebuild --clean --no-install", "env:prod": "EXPO_PUBLIC_APP_VARIANT=production expo prebuild --clean --no-install",
feat(ui): fix test failure #SMDV-8174
feat(ui): fix test failure #SMDV-8174
d947a140d048babf9ee1002d4e6e9ac805ea8733
--- package.json @@ -104,7 +104,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "6.1.4", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.8.0-alpha.8", + "@walmart/wmconnect-mini-app": "2.8.0-alpha.9", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- src/common/constants.ts @@ -1 +1,2 @@ export const FEATURE_ID = 'Roster' as const; +export const FEATURE_NAME = 'Roster' as const; --- src/config/foundationConfig.ts @@ -1,11 +1,11 @@ import {FeatureTags} from '@walmart/me-at-walmart-common'; -import {FEATURE_ID} from '../common/constants'; +import {FEATURE_NAME} from '../common/constants'; import rosterRedux from '../redux'; import rosterScreens from '../screens'; import rosterTranslations from '../translations'; export const foundationModuleConfig = { - name: FEATURE_ID, + name: FEATURE_NAME, tags: [FeatureTags.associate], screens: rosterScreens, redux: rosterRedux, --- yarn.lock @@ -6397,7 +6397,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:6.1.4" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.8" + "@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.9" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6530,9 +6530,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.8": - version: 2.8.0-alpha.8 - resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.8" +"@walmart/wmconnect-mini-app@npm:2.8.0-alpha.9": + version: 2.8.0-alpha.9 + resolution: "@walmart/wmconnect-mini-app@npm:2.8.0-alpha.9" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6572,7 +6572,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/aeb98b0068ffcc75ad154093fb88a88ca524569c5aff2f3687b09f1f8aa34f2d7faffadddc9d6fc5bd7eecb5f135a29958b17cd6b2bcc66284ba47e775b29206 + checksum: 10c0/6ffb77db4c966618eb8b74be01feec86cbb5aa50b17bbeb0fca67f169b7a108ab3614ad703bebbdfe038e2984e6529a07e04476d1130df80f3e6de68ffa87769 languageName: node linkType: hard
Update roster mini app version
Update roster mini app version
2a61af47ccdd069cc33b6fe5abb33e2318ba0ddd
--- .looper.multibranch.yml @@ -273,7 +273,7 @@ flows: - call: increment-version-code - node(label=$LOOPER_NODES, ws="exclusive"): - parallel(failsafe): - # - call: build-native(ios) + # - call: build-native(ios) - call: build-native(android) - call: run-sonar-analysis - call: publish-to-hygieia @@ -339,8 +339,8 @@ flows: then: - node(label=$LOOPER_NODES, ws="exclusive"): - parallel(failsafe): - - group("$os dev"): - # - call: build-snapshot(dev) + # - group("$os dev"): + # - call: build-snapshot(dev) - group("$os beta"): - call: build-snapshot(beta) - if: $buildGABuilds
Update .looper.multibranch.yml
Update .looper.multibranch.yml
f30dbca200a6a93942fd12fc4e8e6d32e1135da5
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.29.0", + "version": "2.30.0", "main": "dist/index.js", "files": [ "dist" @@ -85,7 +85,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.27.4", - "@walmart/allspark-foundation-hub": "1.3.2", + "@walmart/allspark-foundation-hub": "1.3.3", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", --- yarn.lock @@ -6078,9 +6078,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.3.2": - version: 1.3.2 - resolution: "@walmart/allspark-foundation-hub@npm:1.3.2" +"@walmart/allspark-foundation-hub@npm:1.3.3": + version: 1.3.3 + resolution: "@walmart/allspark-foundation-hub@npm:1.3.3" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6096,7 +6096,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/97a2ac6fd5c72566ccba1e38f22b10291c4e6dc2f2d8711c96d42740204665af9c445cb6702b13aeec7d7d3c9f2e80da8cbbbdafd6da8d811a11b49ec2425346 + checksum: 10c0/7030af7992a94ee2d00903434fb86c96b487ed9e89351b04194dab2ce6e81d7ec3874df68277a2cb777a91e42909710427461c214da492d58be58c407c6c2a5d languageName: node linkType: hard @@ -6547,7 +6547,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.27.4" - "@walmart/allspark-foundation-hub": "npm:1.3.2" + "@walmart/allspark-foundation-hub": "npm:1.3.3" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0"
Update the query to include the query params
Update the query to include the query params
347fee00617eeb78c55f3ea5dd49923caad20a69
--- package-lock.json @@ -4263,7 +4263,7 @@ "@walmart/gtp-shared-components": { "version": "1.2.0", "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.2.0.tgz", - "integrity": "sha1-uZ6zL5R12W20AFyA5eFskWpu0Iw=", + "integrity": "sha512-OxDrYdXQeR22V+aTBNqQHRJFyIOlOkp2erG4KS+0lEWWve1EApNHNyPgIbFQbydtWn1rybwFossRsVszkr2XKQ==", "requires": { "@react-native-community/datetimepicker": "^3.0.8", "@react-native-community/picker": "^1.6.5", @@ -4498,9 +4498,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.9.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.9.0.tgz", - "integrity": "sha512-Wl14KaredVOYm3GHBXPDIp1ZxxwhTol8780auYn7HHwhBEboBVwILf1Vyf2EXTY/EUIDpczmnM8RemBLbM44jA==" + "version": "0.10.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.10.0.tgz", + "integrity": "sha512-wRGcThO3jUgmOVGVhmA1jCB0FqXzmNnB+zoQfxMRJpkF7i1t/hVe99O5AkoFE9qrTQDjJ422S+mel8fhAsQeaQ==" }, "@walmart/time-clock-mini-app": { "version": "0.5.1", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.12.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", - "@walmart/taskit-mini-app": "0.9.0", + "@walmart/taskit-mini-app": "0.10.0", "@walmart/time-clock-mini-app": "0.5.1", "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.51.0",
Upgraded taskit version
Upgraded taskit version
ece3e3c44d906e9881c79a50ea413df50d6547f9
--- package-lock.json @@ -2988,9 +2988,9 @@ } }, "@walmart/allspark-home-mini-app": { - "version": "0.1.10", - "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.1.10.tgz", - "integrity": "sha512-l7AK4xUdXNDeXlxB6EGZZmkNKOHzFLdd0+r8Iyu4LWwkMQX2LlZLOFP36OzgBIUMr//KtR93saNtKjL2+Oa66w==", + "version": "0.1.11", + "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.1.11.tgz", + "integrity": "sha512-MO7KSG4sOOTR6aVzzIw+yLNOZVmlzmqcM+xDRE7sBdd4fkPZjVju4h/MQ5xcJ0HARfMMhCUj7l2L5TNX2uWrPQ==", "requires": { "moment": "^2.29.0", "react-native-get-random-values": "^1.5.0", --- package.json @@ -48,7 +48,7 @@ "@react-navigation/stack": "^5.9.0", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@walmart/allspark-health-survey-mini-app": "0.0.25", - "@walmart/allspark-home-mini-app": "0.1.10", + "@walmart/allspark-home-mini-app": "0.1.11", "@walmart/allspark-me-mini-app": "0.0.22", "@walmart/ask-sam-mini-app": "0.10.29", "@walmart/config-components": "1.0.12",
Incrementing home version (#382)
Incrementing home version (#382) Co-authored-by: rlane1 <rlane1@walmart.com> Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
d78f6cf244ce0d41637133e11a6244ac21de86f6
--- android/app/build.gradle @@ -278,16 +278,16 @@ android { buildTypes { release { tasks.whenTaskAdded { task -> - if (task.name.matches(/^assemble.*Release$/)) { + if(task.name.matches(/^assemble.*Release$/)) { task.finalizedBy 'signReleaseAPK' } } } debug { tasks.whenTaskAdded { task -> - if (task.name.matches(/^assemble.*Debug/) || task.name.matches(/^package.*Debug$/)) + if(task.name.matches(/^assemble.*Debug/) || task.name.matches(/^package.*Debug$/)) task.finalizedBy 'signDebugAPK' - if (task.name.matches(/^assemble.*DebugAndroidTest/) || task.name.matches(/^package.*DebugAndroidTest$/)) + if(task.name.matches(/^assemble.*DebugAndroidTest/) || task.name.matches(/^package.*DebugAndroidTest$/)) task.finalizedBy 'signTestAPK' } }
reverting blank space
reverting blank space
38faab614e91c638287576c73d46f0319383078d
--- packages/allspark-foundation/README.md @@ -55,12 +55,12 @@ npx pod-install ios ### Creating a Feature -To create a new feature app, start with the [AllsparkFeature](./src/Feature/README.md) documentation. +To create a new feature app, start with the [AllsparkFeature](./src/Feature/README.md#allspark-feature) documentation. ### Create a Container -To create a new container app, start with the [AllsparkContainer](./src/Container/README.md) documentation. +To create a new container app, start with the [AllsparkContainer](./src/Container/README.md#allspark-container) documentation. ### Create a Feature Runner -To create a feature runner, start with the [AllsparkFeatureRunner](./src/FeatureRunner/README.md) documentation. +To create a feature runner, start with the [AllsparkFeatureRunner](./src/FeatureRunner/README.md#allspark-feature-runner) documentation.
Update README.md
Update README.md
e1a5676f1f75c685f016e3c310105d1bf216dc10
--- src/channels/provider.tsx @@ -100,7 +100,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { } else { teamChannelDoc.update({ participants: firestore.FieldValue.arrayUnion(viewerId), - lastMessageTime: firestore.FieldValue.serverTimestamp(), }); } }); --- src/channels/provider.tsx @@ -100,7 +100,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { } else { teamChannelDoc.update({ participants: firestore.FieldValue.arrayUnion(viewerId), - lastMessageTime: firestore.FieldValue.serverTimestamp(), }); } });
update review comments
update review comments
985c71249c58b56fe170a49042d68c70685da308
--- src/navigation/BottomSheet.tsx @@ -41,6 +41,7 @@ const styles = StyleSheet.create({ flexDirection: 'row', }, headerTitle: { + flex: 1, flexDirection: 'row', fontSize: 18, lineHeight: 24, --- src/storeInfo/StoreInfo.tsx @@ -63,7 +63,7 @@ export const StoreInfo = (props: StoreInfoProps) => { const openDirections = () => { const {latitude, longitude} = coordinates!; const coordinateString = `${latitude},${longitude}`; - const storeLabel = `Walmart Store ${store}`; + const storeLabel = t('changeStore.storeDirectionsLabel', {store}); Linking.openURL( Platform.select({ @@ -90,7 +90,9 @@ export const StoreInfo = (props: StoreInfoProps) => { ) : ( <> <View> - <Title style={styles.storeInfoText}>Store {store}</Title> + <Title style={styles.storeInfoText}> + {t('changeStore.storeLabel', {store})} + </Title> <Caption style={styles.storeInfoText}>{address}</Caption> </View> --- src/translations/en-US.ts @@ -182,11 +182,13 @@ export const enUS = { siteLabel: 'Site number', enterSitePlaceholder: 'Enter site number', updateAction: 'Update', - successMessage: 'Store changed successfully', + successMessage: 'Your site has been updated', errorMessage: "Sorry! We're having a technical issue. Unable to load map.", errorAction: 'Retry', invalidSite: 'Invalid site number.', + storeLabel: 'Site {{store}}', + storeDirectionsLabel: 'Walmart Site {{store}}', }, storeInfo: { title: 'Your store', --- src/translations/es-MX.ts @@ -175,22 +175,24 @@ export const esMX = { }, changeStore: { bannerMessage: - "You're viewing information from a previous site location.", - bannerAction: 'Update site location', - siteTitle: 'Your site', - directionsButton: 'Directions', - changeStoreTitle: 'Need to update your site location?', - siteLabel: 'Site number', - enterSitePlaceholder: 'Enter site number', - updateAction: 'Update', - successMessage: 'Store changed successfully', + 'Estás viendo información de una ubicación de sitio anterior. Actualizar ubicación del sitio.', + bannerAction: 'Actualizar sitio ubicación', + siteTitle: 'Tu sitio', + directionsButton: 'Instrucciones', + changeStoreTitle: '¿Necesitas actualizar la ubicación de tu sitio?', + siteLabel: 'Número de sitio', + enterSitePlaceholder: 'Ingresa el número de sitio', + updateAction: 'Actualizar', + successMessage: 'Tu sitio ha sido actualizado.', errorMessage: - "Sorry! We're having a technical issue. Unable to load map.", - errorAction: 'Retry', - invalidSite: 'Invalid site number.', + '¡Lo sentimos! Estamos teniendo problemas técnicos. No es posible cargar el mapa', + errorAction: 'Vuelve a intentarlo', + invalidSite: 'Número de sitio inválido', + storeLabel: 'Sitio {{store}}', + storeDirectionsLabel: 'Walmart Sitio {{store}}', }, storeInfo: { - title: 'Your store', + title: 'Tu sitio', }, userInfoError: { title: 'User error!',
Adding change store translations
Adding change store translations
687950f6fa3a6be09684304d4a079b1414e87291
--- package-lock.json @@ -83,7 +83,7 @@ "@walmart/taskit-mini-app": "2.34.6", "@walmart/time-clock-mini-app": "2.98.0", "@walmart/topstock-mini-app": "1.0.6", - "@walmart/ui-components": "1.12.0", + "@walmart/ui-components": "1.14.1", "@walmart/welcomeme-mini-app": "0.77.0", "@walmart/wfm-ui": "0.2.26", "axios": "~1.2.6", @@ -6119,7 +6119,9 @@ } }, "node_modules/@walmart/ui-components": { - "version": "1.12.0", + "version": "1.14.1", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.14.1.tgz", + "integrity": "sha512-YMdEIlub6LAPrd0c4I9H1GZT0eB9QjKeyL+nS7HVWtPiS+8vup4HM2VDnpPxAOgf/3Qca+ExG2WPHylIxylz5g==", "license": "ISC", "dependencies": { "react-hook-form": "^7.33.1", @@ -25258,7 +25260,9 @@ } }, "@walmart/mod-flex-mini-app": { - "version": "1.9.4" + "version": "1.9.4", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.9.4.tgz", + "integrity": "sha512-Z2Mh6hXBXAdZl6suTlO7lCa9GODtImMITZfhqNwYeDVT1fesqbW80s4zgUI2OyqDarPs9/wizWBooeyk+Anb2A==" }, "@walmart/moment-walmart": { "version": "1.0.4" @@ -25408,7 +25412,9 @@ } }, "@walmart/ui-components": { - "version": "1.12.0", + "version": "1.14.1", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.14.1.tgz", + "integrity": "sha512-YMdEIlub6LAPrd0c4I9H1GZT0eB9QjKeyL+nS7HVWtPiS+8vup4HM2VDnpPxAOgf/3Qca+ExG2WPHylIxylz5g==", "requires": { "react-hook-form": "^7.33.1", "react-native-calendars": "^1.1291.0", --- package.json @@ -125,7 +125,7 @@ "@walmart/taskit-mini-app": "2.34.6", "@walmart/time-clock-mini-app": "2.98.0", "@walmart/topstock-mini-app": "1.0.6", - "@walmart/ui-components": "1.12.0", + "@walmart/ui-components": "1.14.1", "@walmart/welcomeme-mini-app": "0.77.0", "@walmart/wfm-ui": "0.2.26", "axios": "~1.2.6",
Inbox gtp component fix
Inbox gtp component fix
14a540d966917a092afc5ffd4815dde55fc84db2
--- targets/US/ios/Podfile.lock @@ -2242,7 +2242,7 @@ PODS: - FirebaseMessaging (<= 10.18.0) - StructuredLogAssistantIOS (= 0.0.7) - TOCropViewController (2.7.4) - - topstock-mini-app (1.16.16): + - topstock-mini-app (1.16.17): - React - VisionCamera (3.7.1): - React @@ -2905,7 +2905,7 @@ SPEC CHECKSUMS: StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 SumoSDK: 58664bf3b83e2f4bcdfc52704235ab4bca519ceb TOCropViewController: 80b8985ad794298fb69d3341de183f33d1853654 - topstock-mini-app: 6a405a5c76659df7c52599b004f15c4a6b84a3c2 + topstock-mini-app: 014a7122dd1074ce684f35231442e0c864816f00 VisionCamera: ef56ac9d3e0fef4b94c7cf75735aaccc2326e35a walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b
upgrade podlock file
upgrade podlock file
45446571e0d11f5f55bf614ab4de0aaca7b0cf13
--- src/translations/es-MX.ts @@ -39,6 +39,10 @@ export const esMX = { clockedIn: 'Dentro de horario', online: 'En línea', }, + shiftChip: { + shift: 'Shift ', + separator: ' | ', + }, statusChips: { absent: 'Ausente', tardy: 'Tarde',
feat: add MX translation
feat: add MX translation
363d25ce890fb6fab533ac6edcd3e0317b9b47cc
--- __tests__/startup/AppFlowTest.ts @@ -11,7 +11,7 @@ import { } from 'redux-saga/effects'; import i18next from 'i18next'; -import {AuthActionTypes, AuthService} from '@walmart/allspark-foundation/Auth'; +import {AuthActionTypes, AuthModule} from '@walmart/allspark-foundation/Auth'; import {UserActionTypes} from '@walmart/allspark-foundation/User'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; import {NetworkSelectors} from '@walmart/allspark-foundation/Network'; @@ -36,6 +36,7 @@ import { captureMissedMiniAppEvents, appFlow, startupFlow, + safeSignOut, } from '../../src/startup/AppFlow'; import {associateStartupFlow} from '../../src/startup/AssociateStartup'; import {candidateStartupFlow} from '../../src/startup/CandidateStartup'; @@ -139,6 +140,27 @@ describe('startupFlow', () => { }); }); +describe('safeSignOut', () => { + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('calls AuthService.signOut when executed', async () => { + jest.spyOn(AuthModule.manager, 'signOut').mockResolvedValueOnce(undefined); + await safeSignOut(); + expect(AuthModule.manager.signOut).toHaveBeenCalledTimes(1); + }); + + it('catches and suppresses errors from AuthService.signOut', async () => { + const error = new Error('Sign out failed'); + jest.spyOn(AuthModule.manager, 'signOut').mockRejectedValueOnce(error); + + // Should not throw + await expect(safeSignOut()).resolves.toBeUndefined(); + expect(AuthModule.manager.signOut).toHaveBeenCalledTimes(1); + }); +}); + describe('appFlow', () => { beforeEach(() => { jest.clearAllMocks(); @@ -146,7 +168,7 @@ describe('appFlow', () => { }); it('calls expected flows', () => { - jest.spyOn(AuthService, 'signOut').mockRejectedValueOnce('junk'); + jest.spyOn(AuthModule.manager, 'signOut').mockResolvedValueOnce(undefined); const captureEventTask = createMockTask(); const startupTask = createMockTask(); const pinPromptTask = createMockTask(); @@ -164,12 +186,13 @@ describe('appFlow', () => { expect(iterator.next().value).toEqual(cancel(captureEventTask)); expect(iterator.next().value).toEqual(take(SIGN_IN_PAGE_LOADED.type)); expect(resetTo).toHaveBeenCalledWith('Core.Login'); + // No payload, and associate mode, so call safeSignOut + expect(iterator.next().value).toEqual(call(safeSignOut)); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); - expect(AuthService.signOut).toBeCalled(); }); it('calls expected flows for sign out with a reason', () => { - jest.spyOn(AuthService, 'signOut').mockRejectedValueOnce('junk'); + jest.spyOn(AuthModule.manager, 'signOut').mockResolvedValueOnce(undefined); const signOutData = {payload: 'invalid_grant'} as any; const captureEventTask = createMockTask(); const startupTask = createMockTask(); @@ -200,13 +223,11 @@ describe('appFlow', () => { reason: signOutData.payload, }, ); - expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); - expect(AuthService.signOut).toBeCalled(); }); it('calls signOut for new candidate mode to clear user data', () => { (isNewCandidateMode as jest.Mock).mockReturnValue(true); - jest.spyOn(AuthService, 'signOut').mockRejectedValueOnce('junk'); + jest.spyOn(AuthModule.manager, 'signOut').mockRejectedValueOnce('junk'); const captureEventTask = createMockTask(); const startupTask = createMockTask(); const pinPromptTask = createMockTask(); @@ -229,7 +250,7 @@ describe('appFlow', () => { }); it('handles candidate sign out action', () => { - jest.spyOn(AuthService, 'signOut').mockRejectedValueOnce('junk'); + jest.spyOn(AuthModule.manager, 'signOut').mockRejectedValueOnce('junk'); const captureEventTask = createMockTask(); const startupTask = createMockTask(); const pinPromptTask = createMockTask(); --- package.json @@ -80,7 +80,7 @@ "@sharcoux/slider": "^6.1.1", "@shopify/flash-list": "1.7.6", "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", - "@walmart/allspark-authentication": "6.4.10", + "@walmart/allspark-authentication": "7.1.4", "@walmart/allspark-cope-key-listener": "0.0.18", "@walmart/allspark-foundation": "7.14.4", "@walmart/allspark-foundation-hub": "1.25.9", --- src/startup/AppFlow.ts @@ -13,7 +13,7 @@ import i18next from 'i18next'; import { AuthActionTypes, - AuthService, + AuthModule, } from '@walmart/allspark-foundation/Auth'; import {UserActionTypes} from '@walmart/allspark-foundation/User'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; @@ -41,6 +41,9 @@ import {SignOutCreators} from '@walmart/candidate-authentication-lib'; import {isNewCandidateMode} from '@walmart/me-at-walmart-container'; import {candidateStartupFlow} from '@/startup/CandidateStartup'; +// call signOut with error handling +export const safeSignOut = () => AuthModule.manager.signOut().catch(noop); + // @TODO - Have PTT remove network event listener. Setup another way. // Have manager approval remove use of sign in action data and use selector // instead. Then we can remove network redispatch along with adding user/payload @@ -132,7 +135,8 @@ export function* appFlow(): any { // Make change to call the sign out flow for the mini app yield put(SignOutCreators.request({context: ME_AT_WALMART})); } else { - AuthService.signOut().catch(noop); + // wait for signout and restart loop + yield call(safeSignOut); } } } --- yarn.lock @@ -7026,19 +7026,19 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-authentication@npm:6.4.10": - version: 6.4.10 - resolution: "@walmart/allspark-authentication@npm:6.4.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-authentication%2F-%2F%40walmart%2Fallspark-authentication-6.4.10.tgz" +"@walmart/allspark-authentication@npm:7.1.4": + version: 7.1.4 + resolution: "@walmart/allspark-authentication@npm:7.1.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-authentication%2F-%2F%40walmart%2Fallspark-authentication-7.1.4.tgz" dependencies: - "@walmart/allspark-utils": "npm:^6.5.4" + "@walmart/allspark-utils": "npm:^7.1.1" lodash: "npm:~4.17.21" ts-retry-promise: "npm:~0.7.1" peerDependencies: moment-timezone: "*" - react: "*" - react-native: "*" - react-native-app-auth: ">=6" - checksum: 10c0/5c09bd78959cb5dca5f9f5edff360fad521cc71008b473dace865f7a9be2fb3e7690a3b426cd2ee685ceb0a303154003e4daf33d4caa081eb335cf8cdf5e0c68 + react: 19.x + react-native: 0.79.x + react-native-app-auth: 8.x + checksum: 10c0/177b0f9af171d71fabc2ad2f1c84a8ac907fe1581f2b77545f0da72983d9fe9f16c95f5feada99eb63e4f44bb96e9e7efa22c236709fcbf0285963ae2a445f33 languageName: node linkType: hard @@ -8421,7 +8421,7 @@ __metadata: "@types/node": "npm:latest" "@types/react": "npm:~19.0.10" "@types/react-native-vector-icons": "npm:6.4.18" - "@walmart/allspark-authentication": "npm:6.4.10" + "@walmart/allspark-authentication": "npm:7.1.4" "@walmart/allspark-cope-key-listener": "npm:0.0.18" "@walmart/allspark-foundation": "npm:7.14.4" "@walmart/allspark-foundation-hub": "npm:1.25.9"
fix: bump allspark-auth and gtp shared components (#5083)
fix: bump allspark-auth and gtp shared components (#5083)
6f59aca120cd40d3ce2ef31c98635bd9e7d44984
--- __tests__/sumo/SumoReduxTest.ts @@ -7,6 +7,8 @@ import { getSumoCharged, getSumoOptIn, getSumoProfile, + getSumoCharging, + getSumoChargeError, } from '../../src/sumo/SumoRedux'; const mockProfile = {userId: 'swalton3'}; @@ -39,6 +41,16 @@ describe('selectors', () => { expect(charged).toEqual(INITIAL_STATE.charged); }); + test('getSumoCharging', () => { + const charged = getSumoCharging(mockState); + expect(charged).toEqual(INITIAL_STATE.charging); + }); + + test('getSumoChargeError', () => { + const charged = getSumoChargeError(mockState); + expect(charged).toEqual(INITIAL_STATE.chargeError); + }); + test('getSumoOptIn', () => { const optIn = getSumoOptIn(mockState); expect(optIn).toEqual(INITIAL_STATE.optIn);
Adding redux tests
Adding redux tests
e3628274360290be43d8436b9c8bbd050fdf1953
--- .looper-android-dev.yml @@ -21,5 +21,5 @@ flows: sh scripts/getAndroidAppVersionFromGradle.sh android/app/build.gradle - npm run jetifier # - (name replace gradle implementation in firestore) sh scripts/updateFirestoreGradle.sh - - (name replace gradle implementation in remote-config) sh scripts/updateRemoteConfigGradle.sh + - (name replace gradle implementation in remote-config) sh scripts/fixAndroidProtobufError.sh - call: build-and-publish(os = "android", version = ${androidAppVersion}-SNAPSHOT, env = "${env}", packaging = "apk") --- scripts/fixAndroidProtobufError.sh @@ -12,3 +12,12 @@ REPLACEMENT_STRING_RC="implementation(\"com.google.firebase:firebase-config\",{\ })" FILE_PATH_RC=./node_modules/@react-native-firebase/remote-config/android/build.gradle sed -i '' "s/.*${SEARCH_STRING_RC}.*/${REPLACEMENT_STRING_RC}/" ${FILE_PATH_RC} + + +SEARCH_STRING_PERF='implementation "com.google.firebase:firebase-perf"' +REPLACEMENT_STRING_PERF="implementation(\"com.google.firebase:firebase-perf\",{\ + exclude group: 'com.google.protobuf',module: 'protobuf-javalite' \ + exclude group: 'com.google.protobuf',module: 'protobuf-lite' \ +})" +FILE_PATH_PERF=./node_modules/@react-native-firebase/perf/android/build.gradle +sed -i '' "s/.*${SEARCH_STRING_PERF}.*/${REPLACEMENT_STRING_PERF}/" ${FILE_PATH_PERF}
updated script to fix firebase/perf issue
updated script to fix firebase/perf issue
966d16a18b458a0bd19f1bda7b6caec0d8bc2dd5
--- __mocks__/@walmart/online-w4-mini-app.js @@ -0,0 +1,6 @@ +module.exports = { + __esModule: true, + default: { + buildAllScreens: () => "OnlineWFourScreen", + }, +}; --- __tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -456,6 +456,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects PaymentSelectionScreen PaystubScreen AuthScreen + OnlineWFourScreen TopstockScreen ExceptionMiniApp FacilitiesFeature @@ -921,6 +922,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects PaymentSelectionScreen PaystubScreen AuthScreen + OnlineWFourScreen TopstockScreen ExceptionMiniApp FacilitiesFeature --- package.json @@ -125,6 +125,7 @@ "@walmart/myteam-mini-app": "1.34.1", "@walmart/native-rfid-scanner": "4.0.22", "@walmart/onewalmart-miniapp": "1.0.27", + "@walmart/online-w4-mini-app": "0.7.26", "@walmart/pay-stub-miniapp": "0.23.3", "@walmart/payrollsolution_miniapp": "0.149.17", "@walmart/persona-hub": "0.3.3", --- src/manifest.ts @@ -109,6 +109,7 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('@walmart/payrollsolution_miniapp').default, require('@walmart/pay-stub-miniapp').default, require('@walmart/money-auth-shared-components').default, + require('@walmart/online-w4-mini-app').default, require('@walmart/exception-mini-app').default, require('@walmart/facilities-management-miniapp').default, require('@walmart/global-vpi-mini-app').GlobalVpiFeatureModule, --- src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -37,6 +37,7 @@ import {PriceChangesFeature} from '@walmart/price-changes-mini-app'; import PayStubMiniApp from '@walmart/pay-stub-miniapp'; import PaymentSelectionMiniApp from '@walmart/payrollsolution_miniapp'; import MoneyAuth from '@walmart/money-auth-shared-components'; +import OnlineWFour from '@walmart/online-w4-mini-app'; import { CertificationsNav, ContactInfoNav, @@ -510,6 +511,10 @@ export const MainStackNav = () => { Navigator: MainStack, })} + {OnlineWFour.buildAllScreens({ + Navigator: MainStack as any, + })} + {TopstockFeature.buildAllScreens({ Navigator: MainStack, })} --- yarn.lock @@ -8668,6 +8668,7 @@ __metadata: "@walmart/myteam-mini-app": "npm:1.34.1" "@walmart/native-rfid-scanner": "npm:4.0.22" "@walmart/onewalmart-miniapp": "npm:1.0.27" + "@walmart/online-w4-mini-app": "npm:0.7.26" "@walmart/pay-stub-miniapp": "npm:0.23.3" "@walmart/payrollsolution_miniapp": "npm:0.149.17" "@walmart/persona-hub": "npm:0.3.3" @@ -9034,6 +9035,13 @@ __metadata: languageName: node linkType: hard +"@walmart/online-w4-mini-app@npm:0.7.26": + version: 0.7.26 + resolution: "@walmart/online-w4-mini-app@npm:0.7.26::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fonline-w4-mini-app%2F-%2F%40walmart%2Fonline-w4-mini-app-0.7.26.tgz" + checksum: 10c0/38b4d15ceeb05728768ff66fbff87bc6787620574424c94d7aac352c1cac3ee44d0a28ad91127a4b68bcbf8331e93f3a2ed2bbf43369b4503794f5aa197bb236 + languageName: node + linkType: hard + "@walmart/pay-stub-miniapp@npm:0.23.3": version: 0.23.3 resolution: "@walmart/pay-stub-miniapp@npm:0.23.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpay-stub-miniapp%2F-%2F%40walmart%2Fpay-stub-miniapp-0.23.3.tgz"
feat(onboard online w4 mini app): OPIF-145281 onboard online w4 (#4301)
feat(onboard online w4 mini app): OPIF-145281 onboard online w4 (#4301) * feat(onboard online w4 mini app): OPIF-145281 onboard online w4 BREAKING CHANGE: introduce new application in me@walmart container * update yarn --------- Co-authored-by: Chaitanya Suryadevara <chaitanya.suryadevara@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
d0def65800407cba9fadbcb1c2c5a346a761aa23
--- package-lock.json @@ -77,6 +77,7 @@ "eslint-plugin-react-native": "^4.1.0", "expo": "49.0.10", "expo-av": "13.4.1", + "expo-image": "1.3.5", "firestore-jest-mock": "^0.21.0", "husky": "^4.3.0", "i18next": "^22.0.1", @@ -101,7 +102,6 @@ "react-native-circular-progress": "^1.3.7", "react-native-device-info": "^10.3.0", "react-native-drop-shadow": "^1.0.0", - "react-native-fast-image": "^8.6.3", "react-native-flipper": "0.182.0", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "2.13.1", @@ -16049,6 +16049,16 @@ "expo": "*" } }, + "node_modules/expo-image": { + "version": "1.3.5", + "resolved": "https://npme.walmart.com/expo-image/-/expo-image-1.3.5.tgz", + "integrity": "sha512-yrIR2mnfIKbKcguoqWK3U5m3zvLPnonvSCabB2ErVGhws8zQs7ILYf+7T08j8U6eFcohjw0CoAFJ6RWNsX2EhA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "expo": "*" + } + }, "node_modules/expo-keep-awake": { "version": "12.3.0", "resolved": "https://npme.walmart.com/expo-keep-awake/-/expo-keep-awake-12.3.0.tgz", @@ -28954,17 +28964,6 @@ "color-string": "^1.6.0" } }, - "node_modules/react-native-fast-image": { - "version": "8.6.3", - "resolved": "https://npme.walmart.com/react-native-fast-image/-/react-native-fast-image-8.6.3.tgz", - "integrity": "sha512-Sdw4ESidXCXOmQ9EcYguNY2swyoWmx53kym2zRsvi+VeFCHEdkO+WG1DK+6W81juot40bbfLNhkc63QnWtesNg==", - "dev": true, - "license": "(MIT AND Apache-2.0)", - "peerDependencies": { - "react": "^17 || ^18", - "react-native": ">=0.60.0" - } - }, "node_modules/react-native-flipper": { "version": "0.182.0", "resolved": "https://npme.walmart.com/react-native-flipper/-/react-native-flipper-0.182.0.tgz", @@ -44110,6 +44109,12 @@ "fontfaceobserver": "^2.1.0" } }, + "expo-image": { + "version": "1.3.5", + "resolved": "https://npme.walmart.com/expo-image/-/expo-image-1.3.5.tgz", + "integrity": "sha512-yrIR2mnfIKbKcguoqWK3U5m3zvLPnonvSCabB2ErVGhws8zQs7ILYf+7T08j8U6eFcohjw0CoAFJ6RWNsX2EhA==", + "dev": true + }, "expo-keep-awake": { "version": "12.3.0", "resolved": "https://npme.walmart.com/expo-keep-awake/-/expo-keep-awake-12.3.0.tgz", @@ -52987,12 +52992,6 @@ } } }, - "react-native-fast-image": { - "version": "8.6.3", - "resolved": "https://npme.walmart.com/react-native-fast-image/-/react-native-fast-image-8.6.3.tgz", - "integrity": "sha512-Sdw4ESidXCXOmQ9EcYguNY2swyoWmx53kym2zRsvi+VeFCHEdkO+WG1DK+6W81juot40bbfLNhkc63QnWtesNg==", - "dev": true - }, "react-native-flipper": { "version": "0.182.0", "resolved": "https://npme.walmart.com/react-native-flipper/-/react-native-flipper-0.182.0.tgz", --- package.json @@ -100,6 +100,7 @@ "eslint-plugin-react-native": "^4.1.0", "expo": "49.0.10", "expo-av": "13.4.1", + "expo-image": "1.3.5", "firestore-jest-mock": "^0.21.0", "husky": "^4.3.0", "i18next": "^22.0.1", @@ -124,7 +125,6 @@ "react-native-circular-progress": "^1.3.7", "react-native-device-info": "^10.3.0", "react-native-drop-shadow": "^1.0.0", - "react-native-fast-image": "^8.6.3", "react-native-flipper": "0.182.0", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "2.13.1",
Update roster mini app version
Update roster mini app version
598b06626b3ecfb71152d99a7437e421c5336915
--- android/app/src/main/AndroidManifest.xml @@ -52,15 +52,6 @@ <uses-library android:name="org.apache.http.legacy" android:required="false"/> <!-- react-native-maps --> - <!-- android:exported not specified on this service --> - <!-- attempting to override and merge config here --> - <service - android:name="com.walmart.stores.google.stt.GoogleSTTRecognitionService" - android:exported="false" - tools:node="merge" - tools:overrideLibrary="com.walmart.stores.google.stt.GoogleSTTRecognitionService" - /> - <!-- Attempting fix for runtime crash: Didn't find class "androidx.work.impl.WorkManagerInitializer --> <provider android:name="androidx.startup.InitializationProvider" --- android/app/src/main/res/values/styles.xml @@ -3,7 +3,6 @@ <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> <!-- Customize your theme here. --> - <item name="android:editTextBackground">@drawable/rn_edit_text_material</item> <item name="android:statusBarColor">@color/blue</item> <!-- Refer to https://github.com/facebook/react-native/pull/29452 --> <item name="android:editTextBackground">@drawable/rn_edit_text_material</item> --- package-lock.json @@ -14307,9 +14307,9 @@ "integrity": "sha1-8QwZvpngLi+J6pHSOcu+5HqQcLs=" }, "react-native-wm-voice-text": { - "version": "0.6.0", - "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.6.0.tgz", - "integrity": "sha512-5XwA0/NyFTqF2QqPeSs89LrK2337a2pfoLX44HlRCXLeHOVbZjC+CFkCuMW6k1u+RnSbDv3ROR44jdV6Dul+9A==" + "version": "1.0.0", + "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-1.0.0.tgz", + "integrity": "sha512-D7H7E2MJRyKWrAm31RqSnaeGH/5iLKcdJhlVg7lyVRmFiqZuqHKT5UXkXrP5DSrusKFlXf367Bi8p6uCadLiCw==" }, "react-query": { "version": "3.39.2", --- package.json @@ -194,7 +194,7 @@ "react-native-wm-network": "0.2.0", "react-native-wm-notification": "2.0.1", "react-native-wm-telemetry": "0.3.0", - "react-native-wm-voice-text": "0.6.0", + "react-native-wm-voice-text": "1.0.0", "react-redux": "^8.0.4", "realm": "11.2.0", "redux": "^4.1.2",
update google STT and update manifest to remove override
update google STT and update manifest to remove override
14cff319bc693c99db7cb1a0736c12792d9d08b7
--- src/Adapters/useGetStoreAssociateAdapter.ts @@ -8,7 +8,7 @@ import { import { allTeamsSorter, createTeamsSectionsByWorkgroup, -} from "../MyWalmartTeamSwitcher/utils"; +} from "src/common/utils"; import { TeamSection, TeamImage } from "src/common/types"; export interface StoreAssociateAdapterData { --- src/Adapters/useGetSupplyChainAdapter.ts @@ -1,7 +1,7 @@ import { SupplyChainImages } from "@walmart/allspark-foundation-hub"; // Internal imports -import { createTeamsSectionsByOpsArea } from "../MyWalmartTeamSwitcher/utils"; +import { createTeamsSectionsByOpsArea } from "src/common/utils"; import { useGetSupplyChainAssociateTeamPreference, useGetSupplyChainShifts, --- src/common/utils.ts @@ -3,48 +3,9 @@ import { ADMIN_SUPPORT_TEAM_LABEL, StoreImages, SupplyChainImages, -} from '@walmart/allspark-foundation-hub'; -import { TeamSection } from './types'; -import { SupplyChainTeam } from './types'; -import { Team as StoreAssociateTeam } from '@walmart/me-at-walmart-athena-queries/lib/schema.types'; - -export const formatTeamName = ( - teams: any, - shifts: (string | null | undefined)[] -): string => { - const [team] = teams; - - if (shifts.length === 0) { - return team?.teamName ?? ''; - } - - const shiftsString = shifts.join(', '); - return `${team?.teamName ?? ''} | ${shiftsString}`; -}; - -// { -// "__typename": "Team", -// "members": [ -// "212543976", -// "221371654", -// "221798165", -// "224901697", -// "226608680", -// "228706997", -// "230427270", -// "230733323", -// "230779954" -// ], -// "mewAbsentCount": 0, -// "mewClockedInCount": 1, -// "mewClockedOutCount": 8, -// "mewTardyCount": 0, -// "site": "100", -// "teamId": "1000198", -// "teamName": "Entertainment", -// "workgroup": "General Merchandise", -// "workgroupId": "1000216" -// }, +} from "@walmart/allspark-foundation-hub"; +import { SupplyChainTeam, TeamSection } from "src/common/types"; +import { Team as StoreAssociateTeam } from "@walmart/me-at-walmart-athena-queries/lib/schema.types"; export const createTeamsSectionsByWorkgroup = ( teams: StoreAssociateTeam[] @@ -52,7 +13,7 @@ export const createTeamsSectionsByWorkgroup = ( // Group teams by opsareaName const groupedTeams = teams?.reduce((acc, team) => { - const sectionTitle = team.workgroup || 'Others'; + const sectionTitle = team.workgroup || "Others"; (acc[sectionTitle] = acc[sectionTitle] || []).push(team); return acc; }, {} as Record<string, StoreAssociateTeam[]>) ?? {}; @@ -63,8 +24,8 @@ export const createTeamsSectionsByWorkgroup = ( data: teams.map((team) => ({ ...team, teamImage: { - uri: StoreImages[team.teamId!]?.uri || '', - blurHash: StoreImages[team.teamId!]?.blurhash || '', + uri: StoreImages[team.teamId!]?.uri || "", + blurHash: StoreImages[team.teamId!]?.blurhash || "", }, })), // No need to map as we're already spreading all properties })); @@ -76,7 +37,7 @@ export const createTeamsSectionsByOpsArea = ( // Group teams by opsareaName const groupedTeams = teams?.reduce((acc, team) => { - const sectionTitle = team.opsareaName || 'Others'; + const sectionTitle = team.opsareaName || "Others"; (acc[sectionTitle] = acc[sectionTitle] || []).push(team); return acc; }, {} as Record<string, SupplyChainTeam[]>) ?? {}; @@ -87,8 +48,8 @@ export const createTeamsSectionsByOpsArea = ( data: teams.map((team) => ({ ...team, teamImage: { - uri: SupplyChainImages[team.teamId!]?.uri || '', - blurHash: SupplyChainImages[team.teamId!]?.blurhash || '', + uri: SupplyChainImages[team.teamId!]?.uri || "", + blurHash: SupplyChainImages[team.teamId!]?.blurhash || "", }, })), // No need to map as we're already spreading all properties })); @@ -98,10 +59,10 @@ export const sortedSections = ( data: Array<{ title: string; data: SupplyChainTeam[] }> ) => data - .sort((a, b) => customSorter(a, b, 'title')) + .sort((a, b) => customSorter(a, b, "title")) .map((section) => ({ ...section, - data: section.data?.sort((a, b) => customSorter(a, b, 'teamName')), + data: section.data?.sort((a, b) => customSorter(a, b, "teamName")), })); export const allTeamsSorter = ( @@ -115,8 +76,8 @@ export const allTeamsSorter = ( return 1; } - const teamNameA = a.teamName ?? ''; - const teamNameB = b.teamName ?? ''; + const teamNameA = a.teamName ?? ""; + const teamNameB = b.teamName ?? ""; return teamNameA.localeCompare(teamNameB); };
feat(ui): move MyWalmartTeamSwitcher utils up to top level #SMDV-7856
feat(ui): move MyWalmartTeamSwitcher utils up to top level #SMDV-7856
a47871ec1ec148b91a11b2db53cf704c92ecdb71
--- .looper.yml @@ -18,6 +18,11 @@ branches: - manual: name: Canary Release call: canaryRelease + - spec: feat/* + triggers: + - manual: + name: Canary Release + call: canaryRelease - spec: develop triggers: - push:
feat(ui): update the associate exp packages
feat(ui): update the associate exp packages
fb53baa9d94e000545e9c8ce3547a1feefd53f8d
--- package-lock.json @@ -70,10 +70,10 @@ "@walmart/metrics-mini-app": "0.18.6", "@walmart/mod-flex-mini-app": "1.14.6", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "0.0.14", + "@walmart/money-auth-shared-components": "0.1.2", "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.15.2", - "@walmart/payrollsolution_miniapp": "0.135.3", + "@walmart/payrollsolution_miniapp": "0.138.1", "@walmart/price-changes-mini-app": "1.10.3", "@walmart/profile-feature-app": "1.138.2", "@walmart/react-native-encrypted-storage": "1.1.3", @@ -9447,9 +9447,9 @@ } }, "node_modules/@walmart/money-auth-shared-components": { - "version": "0.0.14", - "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.14.tgz", - "integrity": "sha512-DCh82OLyonEngEcSHaXZjNP1g5UKXB/0NzM8Wn9Jj+TN8mLDHF/1Y8uqHgh7Eot53IBIF/WB6XReE6KSbrEj0A==", + "version": "0.1.2", + "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.1.2.tgz", + "integrity": "sha512-w7RfHsfSJaB/xbM3HRpO2/cE1iah+04d+7KhETEKymc0n0X1VNxgVVHYs6jWUUCRmJ6jl3z2AQyfcLjosaiCYw==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -9507,9 +9507,9 @@ } }, "node_modules/@walmart/payrollsolution_miniapp": { - "version": "0.135.3", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.135.3.tgz", - "integrity": "sha512-++ZWDdNgJJYh16H5q4Cyb/G6CwD+2uqeNctj7yyWlg1gHCvjy6ah0dDzhryXmxHrKTvDSRD6mlvIJaPd6xqSLA==", + "version": "0.138.1", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.138.1.tgz", + "integrity": "sha512-Tv1Z5Wj52pEjn0ZNv1xugaLFCg50K0hSQKVeIzdyI2FLGiiDzo4CdQXp0eN7ktzHGHTDdikDC4rJgTkQeUMnbA==", "hasInstallScript": true, "dependencies": { "crypto-js": "^3.3.0", @@ -33507,9 +33507,9 @@ "version": "1.0.4" }, "@walmart/money-auth-shared-components": { - "version": "0.0.14", - "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.14.tgz", - "integrity": "sha512-DCh82OLyonEngEcSHaXZjNP1g5UKXB/0NzM8Wn9Jj+TN8mLDHF/1Y8uqHgh7Eot53IBIF/WB6XReE6KSbrEj0A==" + "version": "0.1.2", + "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.1.2.tgz", + "integrity": "sha512-w7RfHsfSJaB/xbM3HRpO2/cE1iah+04d+7KhETEKymc0n0X1VNxgVVHYs6jWUUCRmJ6jl3z2AQyfcLjosaiCYw==" }, "@walmart/onewalmart-miniapp": { "version": "1.0.16", @@ -33536,9 +33536,9 @@ } }, "@walmart/payrollsolution_miniapp": { - "version": "0.135.3", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.135.3.tgz", - "integrity": "sha512-++ZWDdNgJJYh16H5q4Cyb/G6CwD+2uqeNctj7yyWlg1gHCvjy6ah0dDzhryXmxHrKTvDSRD6mlvIJaPd6xqSLA==", + "version": "0.138.1", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.138.1.tgz", + "integrity": "sha512-Tv1Z5Wj52pEjn0ZNv1xugaLFCg50K0hSQKVeIzdyI2FLGiiDzo4CdQXp0eN7ktzHGHTDdikDC4rJgTkQeUMnbA==", "requires": { "crypto-js": "^3.3.0", "expo-sharing": "~11.5.0" --- package.json @@ -111,10 +111,10 @@ "@walmart/metrics-mini-app": "0.18.6", "@walmart/mod-flex-mini-app": "1.14.6", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "0.0.14", + "@walmart/money-auth-shared-components": "0.1.2", "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.15.2", - "@walmart/payrollsolution_miniapp": "0.135.3", + "@walmart/payrollsolution_miniapp": "0.138.1", "@walmart/price-changes-mini-app": "1.10.3", "@walmart/profile-feature-app": "1.138.2", "@walmart/react-native-encrypted-storage": "1.1.3",
bump version
bump version
241bcdc77af68233ea04daf21c33ac97414bc8f2
--- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -387,8 +387,8 @@ export class AllsparkContainer< // Other client configurations may be dependent on env so this is done first. if (!env) { - throw Error( - 'AllsparkContainer Intilization Error: env is required in enviorment' + throw new Error( + 'AllsparkContainer Initialization Error: env is required in environment' ); }
fix: error message typos fixed
fix: error message typos fixed Co-authored-by: qodo-merge[bot] <98856+qodo-merge[bot]@users.noreply.gecgithub01.walmart.com>
7995a3a9ac1de88c3f9eb43c6deef0d4974cce1c
--- packages/allspark-foundation/src/Feature/AllsparkFeature.ts @@ -0,0 +1,50 @@ +import { IAllsparkFeature, AllsparkFeatureConfig } from './types'; +import { validateMiniAppConfig } from './validate'; + +export const AllsparkFeature = <C extends AllsparkFeatureConfig>(config: C) => { + const { + id: miniAppId, + tags = [], + components, + events, + lifecycle, + methods, + navigation, + notifications, + redux, + translations, + } = config; + + // Validation + // Will throw if any error in input config + validateMiniAppConfig(config); + + return { + _isAllsparkFeature: true as const, + id: miniAppId, + tags: tags, + components: components || null, + events: events?.shared || null, + lifecycle: lifecycle || null, + methods: methods || null, + navigation: navigation || null, + notifications: notifications + ? { + ...notifications, + id: notifications?.id || miniAppId, + } + : null, + redux: redux + ? { + ...redux, + id: redux?.id || miniAppId, + } + : null, + translations: translations + ? { + ...translations, + namespace: translations?.namespace || miniAppId, + } + : null, + } as IAllsparkFeature<C>; +}; --- packages/allspark-foundation/src/Feature/index.ts @@ -1,11 +1,11 @@ -export { AllsparkMiniApp } from './MiniApp'; +export { AllsparkFeature } from './AllsparkFeature'; export type { LifecyleConfig, NotificationConfig, - DeeplinkConfig, ScreenConfig, NavigationConfig, ReduxConfig, TranslationConfig, - MiniAppConfig, + AllsparkFeatureConfig, + IAllsparkFeature, } from './types'; --- packages/allspark-foundation/src/Feature/types.ts @@ -10,11 +10,11 @@ import { } from '@react-navigation/native'; import { StackNavigationOptions } from '@react-navigation/stack'; import { - IWidgetRegistry, + WidgetRegistry, IEventManager, - IMethodRegistry, + MethodRegistry, } from '@walmart/allspark-utils'; -import { AtLeastOne, NonUndefined, PickValueType } from '../types'; +import { AtLeastOne, NonUndefined, PickValueType, RequiredBy } from '../types'; export type LifecyleConfig = { onStartup: () => void; @@ -73,13 +73,13 @@ export type AllsparkFeatureConfig = { tags?: string[]; } & AtLeastOne<{ - components: IWidgetRegistry<any>; + components: WidgetRegistry<any>; events: IEventManager<any>; lifecycle: LifecyleConfig; - methods: IMethodRegistry<any>; + methods: MethodRegistry<any>; navigation: NavigationConfig; @@ -90,23 +90,17 @@ export type AllsparkFeatureConfig = { translations: TranslationConfig; }>; -export type IAllsparkFeature<C extends AllsparkFeatureConfig> = Omit< - C, - 'events' | 'notifications' | 'redux' | 'translations' -> & { - // Required Fields +export type IAllsparkFeature<C extends AllsparkFeatureConfig> = Required<C> & { + // Hardcoded value _isAllsparkFeature: true; - tags: string[]; - - // Okay to be undefined - events: C['events'] extends undefined - ? undefined - : PickValueType<NonUndefined<C['events']>, 'shared'>; + // Only shared portion is exposed on complete feature + // events?: PickValueType<C['events'], 'shared'>; + // Possibly undefined, but if defined, ids are guaranteed notifications?: C['notifications'] & { id: string }; - redux: C['redux'] & { id: string }; + redux?: C['redux'] & { id: string }; translations?: C['translations'] & { namespace: string }; }; --- packages/allspark-foundation/src/Feature/validate.ts @@ -1,4 +1,4 @@ -import { MiniAppConfig } from './types'; +import { AllsparkFeatureConfig } from './types'; export const validateId = (miniAppId: string) => { const parsedId = miniAppId.toLowerCase(); @@ -28,7 +28,7 @@ export const validateScreenName = (name: string, miniAppId: string) => { ); }; -export const validateMiniAppConfig = (config: MiniAppConfig) => { +export const validateMiniAppConfig = (config: AllsparkFeatureConfig) => { const { id: miniAppId, navigation } = config; try { --- packages/allspark-foundation/src/MiniApp/MiniApp.ts @@ -1,156 +0,0 @@ -import { - EventManager, - MethodRegistry, - WidgetRegistry, -} from '@walmart/allspark-utils'; -import { IAllsparkFeature, AllsparkFeatureConfig } from './types'; -import { validateMiniAppConfig } from './validate'; - -export const AllsparkFeature = <C extends AllsparkFeatureConfig>(config: C) => { - const { - id: miniAppId, - tags = [], - redux, - translations, - notifications, - events, - ...restConfig - } = config; - - // Validation - // Will throw if any error in input config - validateMiniAppConfig(config); - - return { - ...restConfig, - _isAllsparkFeature: true as const, - id: miniAppId, - tags: tags, - events: events?.shared, - notifications: notifications - ? { - ...notifications, - id: notifications?.id || miniAppId, - } - : undefined, - redux: redux - ? { - ...redux, - id: redux?.id || miniAppId, - } - : undefined, - translations: translations - ? { - ...translations, - namespace: translations?.namespace || miniAppId, - } - : undefined, - } as IAllsparkFeature<C>; -}; - -// --- Test --- // -const Component1 = (props: { value: string }) => (props ? null : null); -const Component2 = (props: { other: boolean }) => (props ? null : null); - -type WidgetMap = { - component1: typeof Component1; - component2: typeof Component2; -}; - -const components = WidgetRegistry<WidgetMap>('mini_app_widgets'); - -type MethodMap = { - getSomething: (value: string) => string; - doSomething: (config: { value: string }) => void; -}; - -const methods = MethodRegistry<MethodMap>('mini_app_methods'); - -type EventMap = { - event1: { value: boolean }; - event2: { other: string }; -}; - -const events = EventManager<EventMap>(['event1']); - -const ma1 = AllsparkFeature({ - id: 'feature_1' as const, - components, - events, - methods, - navigation: { - screens: { - screen1: { getComponent: () => ({} as any), clockCheckRequired: true }, - screen2: { getComponent: () => ({} as any), clockCheckRequired: false }, - }, - }, - // redux: { - // reducer: {} as any, - // }, - translations: { - namespace: 'test', - resources: {}, - }, -}); - -ma1.redux; -// ma1.translations; - -// type WidgetMap2 = { -// component3: typeof Component1; -// component4: typeof Component2; -// }; - -// const components2 = new WidgetRegistry<WidgetMap2>('mini_app_widgets'); - -// const ma2 = MiniApp({ -// id: 'mini_app_2' as const, -// components: components2, -// }); - -// const Container = <A extends Record<string, IMiniApp>, K extends keyof A>( -// miniApps: A -// ) => { -// const apps = (Object.keys(miniApps) as K[]).reduce( -// (obj, key) => ({ -// ...obj, -// [key]: { -// components: '', -// }, -// }), -// {} as { [Key in keyof A]: any } -// ); - -// const masterRegistry = new Registry< -// Record< -// keyof NonNullable<A[K]['navigation']>['screens'], -// NonNullable<A[K]['navigation']>['screens'] -// > -// >('id'); - -// return { -// apps, -// masterRegistry, -// }; -// }; - -// const C = Container({ -// [ma1.id]: ma1, -// [ma2.id]: ma2, -// }); - -// C.masterRegistry.get('') - -// as { -// [K in keyof ReturnType< -// S['getInitialState'] -// // @ts-ignore -// > as `get${Capitalize<K>}`]: Selector< -// GlobalState, -// ReturnType<S['getInitialState']>[K] -// >; -// }, -// t.redux.reducers -// const v = t.navigation.screens; -// t.events; -// const Comp = t.widgets.get('component1'); --- packages/allspark-foundation/src/index.ts @@ -1,2 +1,2 @@ -export * from './MiniApp'; +export * from './Feature'; export * from './types';
feat: update allspark mini app to allspark feature
feat: update allspark mini app to allspark feature
705bb095de59d209d9fe4d92a345e1c1b91cff95
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -736,7 +736,10 @@ INFOPLIST_FILE = AllSpark/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; + LIBRARY_SEARCH_PATHS = ( + "\"$(inherited)\"", + "$(SDKROOT)/usr/lib/swift", + ); MARKETING_VERSION = 1.0.0; OTHER_LDFLAGS = ( "$(inherited)", @@ -768,7 +771,10 @@ INFOPLIST_FILE = AllSpark/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; + LIBRARY_SEARCH_PATHS = ( + "\"$(inherited)\"", + "$(SDKROOT)/usr/lib/swift", + ); MARKETING_VERSION = 1.0.0; OTHER_LDFLAGS = ( "$(inherited)",
fix xcode 12 build problem
fix xcode 12 build problem
5a83be178babeb35d6610d15b47e6f0d52141003
--- packages/allspark-foundation/CHANGELOG.md @@ -3,12 +3,6 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [6.31.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@6.32.0...@walmart/allspark-foundation@6.31.1-alpha.0) (2025-03-06) - -### Reverts - -- Revert "chore(version): updating package version" ([5adc746](https://gecgithub01.walmart.com/allspark/allspark/commit/5adc7463828becacbc73f034517903842a5809a2)) - # [6.31.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@6.30.3...@walmart/allspark-foundation@6.31.0) (2025-02-28) ### Features --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "6.31.1-alpha.0", + "version": "6.31.0", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Revert "chore(version): updating package version"
Revert "chore(version): updating package version" This reverts commit 042d13b16d1cfc81668e576b643ed50dddb2aacd.
080d0c0bc3ddf758783322daa3d181e5e4180fb1
--- packages/allspark-foundation/__tests__/Feature/AllsparkFeatureModule.test.tsx @@ -17,7 +17,6 @@ describe('AllsparkFeatureModule', () => { translations: {}, }; beforeEach(() => { - allsparkFeatureModule = new AllsparkFeatureModule('id',config); jest.spyOn(allsparkFeatureModule as any, '_connectComponents').mockImplementation(); jest.spyOn(allsparkFeatureModule as any, '_connectFlows').mockImplementation(); @@ -28,37 +27,37 @@ describe('AllsparkFeatureModule', () => { jest.spyOn(allsparkFeatureModule as any, '_connectModals').mockImplementation(); }); - it('should call _connectFlows when "flows" capability is passed', () => { + it('call _connectFlows when "flows" capability is passed', () => { allsparkFeatureModule.connect('flows'); expect((allsparkFeatureModule as any)._connectFlows).toHaveBeenCalled(); }); - it('should call _connectListeners when "listeners" capability is passed', () => { + it('call _connectListeners when "listeners" capability is passed', () => { allsparkFeatureModule.connect('listeners'); expect((allsparkFeatureModule as any)._connectListeners).toHaveBeenCalled(); }); - it('should call _connectRedux when "redux" capability is passed', () => { + it('call _connectRedux when "redux" capability is passed', () => { allsparkFeatureModule.connect('redux'); expect((allsparkFeatureModule as any)._connectRedux).toHaveBeenCalled(); }); - it('should call _connectTranslations when "translations" capability is passed', () => { + it('call _connectTranslations when "translations" capability is passed', () => { allsparkFeatureModule.connect('translations'); expect((allsparkFeatureModule as any)._connectTranslations).toHaveBeenCalled(); }); - it('should call _connectScreens when "screens" capability is passed', () => { + it('call _connectScreens when "screens" capability is passed', () => { allsparkFeatureModule.connect('screens'); expect((allsparkFeatureModule as any)._connectScreens).toHaveBeenCalled(); }); - it('should call _connectModals when "modals" capability is passed', () => { + it('call _connectModals when "modals" capability is passed', () => { allsparkFeatureModule.connect('modals'); expect((allsparkFeatureModule as any)._connectModals).toHaveBeenCalled(); }); - it('should call all connect methods when no capability is passed', () => { + it('call all connect methods when no capability is passed', () => { allsparkFeatureModule.connect(); expect((allsparkFeatureModule as any)._connectComponents).toHaveBeenCalled(); expect((allsparkFeatureModule as any)._connectFlows).toHaveBeenCalled();
code cleanup
code cleanup
6739b9b01d5028544aba947661d4b0e34d921b3f
--- package-lock.json @@ -4258,9 +4258,9 @@ "integrity": "sha512-gOjtmh7vtX1XSS1JA8xJWCwoW8vsiED0NxtKNWsXLpRuZfRJ06gESSqLyQUjRXSc40S+kN6dYJYO3EOv3VEPig==" }, "@walmart/inbox-mini-app": { - "version": "0.24.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.24.0.tgz", - "integrity": "sha512-oaJp26HyCBzoqC3AHWqRtNhUuYnzhFoLl8dg/h3y6/Bk6uTbMAYmBolXRot2OeLoZgEWqD4cNnLdHQMy4ZS68g==" + "version": "0.25.0", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.25.0.tgz", + "integrity": "sha512-d+/hvv9+N+Rv36OZZrsN6pLwkeZPDNq52rUfETNmJe8QdCPQvowEGgOG2sbAS5NK7ODGrKFXodGCmrq+UzXHpQ==" }, "@walmart/iteminfo-mini-app": { "version": "4.0.2", --- package.json @@ -85,7 +85,7 @@ "@walmart/iteminfo-mini-app": "4.0.2", "@walmart/impersonation-mini-app": "1.0.27", "@walmart/ims-print-services-ui": "0.1.11", - "@walmart/inbox-mini-app": "0.24.0", + "@walmart/inbox-mini-app": "0.25.0", "@walmart/manager-approvals-miniapp": "0.0.58", "@walmart/metrics-mini-app": "0.5.21", "@walmart/moment-walmart": "1.0.4",
inbox minor VQA fix
inbox minor VQA fix
ef1610da30b3101dac590cf240d26ab2ff483a55
--- src/startup/AssociateStartup.ts @@ -2,11 +2,9 @@ import {useEffect} from 'react'; import {useToggleState} from '@walmart/allspark-utils'; import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; -import {AllsparkEnvironment} from '@walmart/allspark-foundation/Environment'; import {useRbacConfig} from '@walmart/config-components'; import {registerAskSamWidgets} from '@walmart/metrics-mini-app/dist/widgets'; -import {initFeedback} from '@walmart/feedback-all-spark-miniapp'; import {initialize as initializeWmConnect} from '@walmart/wmconnect-mini-app'; import {impersonationSagas} from '../impersonation/sagas'; @@ -31,9 +29,6 @@ export const initAssociateFeatures = () => { const cleanupWmConnect = initializeWmConnect(); registerAskSamWidgets(); registerInboxComponents(); - initFeedback({ - productId: AllsparkEnvironment.getCurrent().productId, - }); return () => { cleanupSettings();
fix: remove feedback initialization
fix: remove feedback initialization
379a3ad0a6217ac7ffee6c372aab318c6374888f
--- targets/US/package.json @@ -150,7 +150,7 @@ "@walmart/taskit-mini-app": "4.25.8", "@walmart/time-clock-mini-app": "2.419.0", "@walmart/topstock-mini-app": "1.17.11", - "@walmart/translator-mini-app": "1.3.6", + "@walmart/translator-mini-app": "1.3.7", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.96.0", --- yarn.lock @@ -7066,7 +7066,7 @@ __metadata: "@walmart/taskit-mini-app": "npm:4.25.8" "@walmart/time-clock-mini-app": "npm:2.419.0" "@walmart/topstock-mini-app": "npm:1.17.11" - "@walmart/translator-mini-app": "npm:1.3.6" + "@walmart/translator-mini-app": "npm:1.3.7" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.96.0" @@ -8090,9 +8090,9 @@ __metadata: languageName: node linkType: hard -"@walmart/translator-mini-app@npm:1.3.6": - version: 1.3.6 - resolution: "@walmart/translator-mini-app@npm:1.3.6" +"@walmart/translator-mini-app@npm:1.3.7": + version: 1.3.7 + resolution: "@walmart/translator-mini-app@npm:1.3.7" peerDependencies: "@react-native-async-storage/async-storage": ^2.0.0 "@react-native-clipboard/clipboard": ^1.14.2 @@ -8107,7 +8107,7 @@ __metadata: react-native-svg: ">=14.0.0" react-native-wm-voice-text: ^1.0.4 uuid: ">=3.0.0" - checksum: 10c0/080b2edd320f82b031eb5aa781326c07f9f2174e60267252ce09b51c3ecd348d5b1d239924cfd89c8bc8f8ac945236a5f43f1ed35121204a9c5a7a7d54182a5a + checksum: 10c0/c92d7af891295f64752b511f68eaab2dc0288dd4751373b1ac52a97d8cc4ebe9a23f25487cfcc00dd65b5017b37ed9220783ed59986628bf7de506fcc27d0fbc languageName: node linkType: hard
version bump
version bump
fa211f077e10ebe08ad3dda0bbfb4c52b213802a
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.176.0-rc.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.176.0-rc.0.tgz", - "integrity": "sha512-XGyG+n5KYMiJhA3xTsHORQAxisp7Hvdf7/+K1R+Y2mmEo9wuEoLmbwjQKafjBPyyetkgYNqw3EX2k+ICLkvVSQ==" + "version": "0.178.0-rc.1", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.178.0-rc.1.tgz", + "integrity": "sha512-rpaI4WT19cYyGphYXSgQzGfz1QXkupLrD9etUlWnZbEmPLo71UedzYDMaxtpvYCiIQ/79FRGNq80lorIu6Z0KQ==" }, "@walmart/time-clock-mini-app": { "version": "0.4.27", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.11.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.1", - "@walmart/taskit-mini-app": "0.176.0-rc.0", + "@walmart/taskit-mini-app": "0.178.0-rc.1", "@walmart/time-clock-mini-app": "0.4.27", "@walmart/ui-components": "1.3.0-rc.10", "@walmart/welcomeme-mini-app": "0.44.0",
Updating taskIt version
Updating taskIt version
84fd37205e1534b9d78edb8991f556182c14a02d
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [3.6.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.5.0...v3.6.0) (2025-09-22) + + +### Features + +* **ui:** updated versions ([e174c86](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e174c86be22d668fdb1fcc563df139a5207d44cc)) + # [3.5.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.4.0...v3.5.0) (2025-09-17) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.5.0", + "version": "3.6.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.6.0 [skip ci]
chore(release): 3.6.0 [skip ci] # [3.6.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.5.0...v3.6.0) (2025-09-22) ### Features * **ui:** updated versions ([e174c86](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e174c86be22d668fdb1fcc563df139a5207d44cc))
126c57d23ab7b32eaaf50b48e4c06431c89cb4c9
--- package-lock.json @@ -3094,9 +3094,9 @@ "integrity": "sha512-S5yf6tmVHz/kK5NNtW3OdQ+nDk7ii3/v1mJ9WA0c2zjL4DRQ+hbqxUv2WOsqa2uA1wbMCliwtAaPePoeiHJEmg==" }, "@walmart/inbox-mini-app": { - "version": "0.0.59", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.59.tgz", - "integrity": "sha512-5FHPH+iVZEzi02mml7YogOcNi8n25EBHB/EfDbrGmXlV2jZ3b590uEdEAncO3fItrH131FpWosXJOm+zQn1zIQ==" + "version": "0.0.91", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.91.tgz", + "integrity": "sha512-KQw0TodpNc2trAMWB2iBfXzsDvYDyhquUxG0czTcgrbXEhMPqihKnXLQdhGpGoAS+a9JLYKRnQNTj/EFgnuYiw==" }, "@walmart/moment-walmart": { "version": "1.0.4", @@ -3192,9 +3192,9 @@ "integrity": "sha512-0sVdqnfYb2Z90rZpk8drAttxOFKAIR3fAvOvFlVWOyxtPPXrAACOFzoTx++gO5SO5vZ1w6IlMKe8uTi2rpCWTA==" }, "@walmart/schedule-mini-app": { - "version": "0.2.65", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.65.tgz", - "integrity": "sha512-SyfJZXJJc39/wPHMs2qMrrnwxxZWMybKwFGjewXDlMMbQ72LR4qDLQHvTefYVSZxqf8+bgxAmn6GqUCeLXuefw==", + "version": "0.2.66", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.66.tgz", + "integrity": "sha512-WvPW6GozsG9rxF7XsWC5nELzXgnbQyJZ0CKwN9ABdb2U44SDxBFQADcCDC/UHyHje7DpvJbG4DqLDYFVLFFxCg==", "requires": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.1.43", @@ -3249,9 +3249,9 @@ } }, "@walmart/ui-components": { - "version": "1.0.100", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.100.tgz", - "integrity": "sha512-25ojcH1vjlz6vGvR2i+X5xl0yu09ZC9T2+rm3+BMP9pdsMLDujy8G8M056wVq+xm62ak2lbu7dICr/V8Sa3spQ==", + "version": "1.0.102", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.0.102.tgz", + "integrity": "sha512-6jUmoCUlImSOfp0YPTNJUE518spQzMCMYojgJkLqZ15lZeJanvTZIKfl6sX672lKUZG5usjLCV0H5h5u3n9hUw==", "requires": { "react-native-calendars": "1.299.0" } @@ -3296,12 +3296,12 @@ } }, "react-i18next": { - "version": "11.8.12", - "resolved": "https://npme.walmart.com/react-i18next/-/react-i18next-11.8.12.tgz", - "integrity": "sha512-M2PSVP9MzT/7yofXfCOF5gAVotinrM4BXWiguk8uFSznJsfFzTjrp3K9CBWcXitpoCBVZGZJ2AnbaWGSNkJqfw==", + "version": "11.8.13", + "resolved": "https://npme.walmart.com/react-i18next/-/react-i18next-11.8.13.tgz", + "integrity": "sha512-KTNuLYnEwI9y54nSEal4yBxXBnfCCfh7t/0p/UHfhlGNcIMu+V4x/y5zGKzbOEK4noQrUzZ+J47RPYH7rMs2ZQ==", "requires": { "@babel/runtime": "^7.13.6", - "html-parse-stringify2": "^2.0.1" + "html-parse-stringify": "^3.0.0" }, "dependencies": { "@babel/runtime": { @@ -6372,6 +6372,21 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, + "html-parse-stringify": { + "version": "3.0.0", + "resolved": "https://npme.walmart.com/html-parse-stringify/-/html-parse-stringify-3.0.0.tgz", + "integrity": "sha512-TrTKp/U0tACrpqalte/VhxepqMLii2mOfC8iuOt4+VA7Zdi6BUKKqNJvEsO17Cr3T3E7PpqLe3NdLII6bcYJgg==", + "requires": { + "void-elements": "3.1.0" + }, + "dependencies": { + "void-elements": { + "version": "3.1.0", + "resolved": "https://npme.walmart.com/void-elements/-/void-elements-3.1.0.tgz", + "integrity": "sha1-YU9/v42AHwu18GYfWy9XhXUOTwk=" + } + } + }, "html-parse-stringify2": { "version": "2.0.1", "resolved": "https://npme.walmart.com/html-parse-stringify2/-/html-parse-stringify2-2.0.1.tgz", --- package.json @@ -68,17 +68,17 @@ "@walmart/functional-components": "1.0.25", "@walmart/gtp-shared-components": "^0.2.2", "@walmart/impersonation-mini-app": "1.0.14", - "@walmart/inbox-mini-app": "0.0.59", + "@walmart/inbox-mini-app": "0.0.91", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.3.26-rc.3", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.25.0", "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/redux-store": "^1.0.12", - "@walmart/schedule-mini-app": "0.2.65", + "@walmart/schedule-mini-app": "0.2.66", "@walmart/settings-mini-app": "1.1.20", "@walmart/time-clock-mini-app": "0.1.50", - "@walmart/ui-components": "1.0.100", + "@walmart/ui-components": "1.0.102", "@walmart/welcomeme-mini-app": "0.5.27", "crypto-js": "^3.3.0", "i18next": "^19.7.0",
Inbox version bump (#452)
Inbox version bump (#452) Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
24f5d264cad3b28dcf780e6c7bab50e12cb2a796
--- src/translations/en-US.ts @@ -29,6 +29,7 @@ export const enUS = { '@walmart/taskit-mini-app': 'Tasks', '@walmart/time-clock-mini-app': 'Time Clock', '@walmart/welcomeme-mini-app': 'Welcome Me', + '@walmart/me-field-mini-app' : 'Learning', 'react-native-ssmp-sso-allspark': 'Single Sign On', }, navigation: { --- src/translations/es-MX.ts @@ -29,6 +29,7 @@ export const esMX = { '@walmart/taskit-mini-app': 'Tasks', '@walmart/time-clock-mini-app': 'Time Clock', '@walmart/welcomeme-mini-app': 'Welcome Me', + '@walmart/me-field-mini-app': 'Aprendizaje', 'react-native-ssmp-sso-allspark': 'Single Sign On', }, navigation: { --- src/versions/constants.ts @@ -32,5 +32,6 @@ export const LISTED_DEPENDENCIES = [ '@walmart/taskit-mini-app', '@walmart/time-clock-mini-app', '@walmart/welcomeme-mini-app', + '@walmart/me-field-mini-app', 'react-native-ssmp-sso-allspark', ];
:bookmark: adding Learning mini app version
:bookmark: adding Learning mini app version
f8f193c940c2b9fb09fab7f67f0391747541a5d4
--- package-lock.json @@ -60,7 +60,7 @@ "@walmart/impersonation-mini-app": "1.20.6", "@walmart/ims-print-services-ui": "2.7.1", "@walmart/inbox-mini-app": "0.88.9", - "@walmart/iteminfo-mini-app": "7.7.3", + "@walmart/iteminfo-mini-app": "7.7.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "14.0.2", "@walmart/metrics-mini-app": "0.15.14", @@ -8544,9 +8544,9 @@ } }, "node_modules/@walmart/iteminfo-mini-app": { - "version": "7.7.3", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.7.3.tgz", - "integrity": "sha512-5xsJEQphj1u2kNe9YJ84U234/msmrJUUT6PHrb7+iY/W/d7Onx1VjaKZG612hZdoFcg3iukUDiaSN0/0LRm7Ew==", + "version": "7.7.4", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.7.4.tgz", + "integrity": "sha512-UCVExhoIlJK7LNCuZx2B0A5T/i++j1pC4ehaPf4y3U0HIUgWrHWISk0Gafk2Fk9oO/mauz9BgFPGEmfTmSfC3g==", "peerDependencies": { "@react-native-community/netinfo": ">=9.3.6", "@react-native-firebase/analytics": ">=17.4.2", @@ -34369,9 +34369,9 @@ } }, "@walmart/iteminfo-mini-app": { - "version": "7.7.3", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.7.3.tgz", - "integrity": "sha512-5xsJEQphj1u2kNe9YJ84U234/msmrJUUT6PHrb7+iY/W/d7Onx1VjaKZG612hZdoFcg3iukUDiaSN0/0LRm7Ew==" + "version": "7.7.4", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-7.7.4.tgz", + "integrity": "sha512-UCVExhoIlJK7LNCuZx2B0A5T/i++j1pC4ehaPf4y3U0HIUgWrHWISk0Gafk2Fk9oO/mauz9BgFPGEmfTmSfC3g==" }, "@walmart/manager-approvals-miniapp": { "version": "0.2.4" --- package.json @@ -101,7 +101,7 @@ "@walmart/impersonation-mini-app": "1.20.6", "@walmart/ims-print-services-ui": "2.7.1", "@walmart/inbox-mini-app": "0.88.9", - "@walmart/iteminfo-mini-app": "7.7.3", + "@walmart/iteminfo-mini-app": "7.7.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "14.0.2", "@walmart/metrics-mini-app": "0.15.14",
bump up iteminfo for drop 17
bump up iteminfo for drop 17
1b9889926b4c7e476c9c33b90562149b2e1808af
--- package-lock.json @@ -33,7 +33,7 @@ "@terrylinla/react-native-sketch-canvas": "0.8.0", "@walmart/allspark-graphql-client": "^1.4.5", "@walmart/allspark-neon-core": "0.1.31", - "@walmart/amp-mini-app": "1.1.30", + "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.190.2", @@ -4755,13 +4755,15 @@ } }, "node_modules/@walmart/amp-mini-app": { - "version": "1.1.30", + "version": "1.1.48", + "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.48.tgz", + "integrity": "sha512-wqMIYsV87EZsMfTE/wbuiB/Xa3t5uQgZNYvBVqPnuZFGRAmg9j3mwVg/LnCpwNmLIaHtE798x43ZIV8h9gjXYQ==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", "@react-navigation/stack": "^6.1.0", "@walmart/core-services": "^1.4.9", - "@walmart/gtp-shared-components": "^1.8.17", + "@walmart/gtp-shared-components": "^2.0.9", "@walmart/redux-store": "^3.1.3", "react": "^18.2.0", "react-native": "~0.70.5" @@ -25068,7 +25070,9 @@ } }, "@walmart/amp-mini-app": { - "version": "1.1.30" + "version": "1.1.48", + "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.48.tgz", + "integrity": "sha512-wqMIYsV87EZsMfTE/wbuiB/Xa3t5uQgZNYvBVqPnuZFGRAmg9j3mwVg/LnCpwNmLIaHtE798x43ZIV8h9gjXYQ==" }, "@walmart/ask-sam-chat-components": { "version": "0.2.13", --- package.json @@ -75,7 +75,7 @@ "@terrylinla/react-native-sketch-canvas": "0.8.0", "@walmart/allspark-graphql-client": "^1.4.5", "@walmart/allspark-neon-core": "0.1.31", - "@walmart/amp-mini-app": "1.1.30", + "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.190.2",
AMP version for Drop 13
AMP version for Drop 13
3443cefee4a55ddc33eb69f234ae8f970aa6b0f1
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/ActionButtonGroup/ActionButtonGroup.tsx @@ -3,6 +3,8 @@ import { ButtonGroupProps } from './types'; import { Button } from '@walmart/gtp-shared-components'; import { buttonGroupStyles as styles } from './style'; import { View } from 'react-native'; +import { useSelector } from 'react-redux'; +import { cancelActionButtonEnabled } from '../../../SupplyChain/Redux'; export const ActionButtonGroup = ({ secondaryButtonLabel, @@ -10,9 +12,10 @@ export const ActionButtonGroup = ({ onSecondaryButtonPress, onPrimaryButtonPress, }: ButtonGroupProps) => { + const showCancelButton = useSelector(cancelActionButtonEnabled); return ( <View style={styles.buttonContainer}> - {secondaryButtonLabel && onSecondaryButtonPress && ( + {secondaryButtonLabel && onSecondaryButtonPress && showCancelButton && ( <Button variant='tertiary' size='small' --- packages/allspark-foundation-hub/src/HubFeature/Store/Components/ErrorBottomSheet.tsx @@ -8,8 +8,11 @@ import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { AllsparkNavigationClient } from '@walmart/allspark-foundation'; import { useUserPersonaType } from '../Hooks/useUserPersonaType'; +import { useSelector } from 'react-redux'; +import { errorBottomSheetImageEnabled } from '../../SupplyChain/Redux'; export const ErrorBottomSheet = () => { + const showBottomSheetImage = useSelector(errorBottomSheetImageEnabled); const { t } = useAllsparkTranslation(FEATURE_ID); const bottomSheetRef = useRef<{ open: () => void; close: () => void }>(null); const errorBottomSheetTelemetry = useTelemetryService(); @@ -47,7 +50,7 @@ export const ErrorBottomSheet = () => { }, [personaType]); const renderContent = useCallback(() => { - return ( + return showBottomSheetImage ? ( <HubOnboardingImage title={t('errorBottomsheet.title')} description={t('errorBottomsheet.description')} @@ -56,8 +59,10 @@ export const ErrorBottomSheet = () => { placeholder: 'KbNK;xj[_MkXa|ae%fa|=X', }} /> + ) : ( + '' ); - }, [t]); + }, [t, showBottomSheetImage]); return ( <BottomSheet --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/EditSavedTeams/EditSavedTeams.tsx @@ -8,6 +8,8 @@ import { View } from 'react-native'; import { Images } from '../../Images/images'; import { useAllsparkTranslation } from '@walmart/allspark-foundation'; import mockData from './mock'; +import { useSelector } from 'react-redux'; +import { editSavedTeamsEnabled } from '../../Redux'; type SavedTeam = { teamId: string; @@ -33,6 +35,7 @@ const renderSavedTeamItem: ListRenderItem<SavedTeam> = ({ }; const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => { + const showEditSavedTeams = useSelector(editSavedTeamsEnabled); const { bottom: bottomInset } = useSafeAreaInsets(); const divider = () => <View style={styles.divider} />; const { t } = useAllsparkTranslation(); @@ -41,9 +44,9 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => { <RosterPageHeader title={t('editSavedTeams.title')} subText={t('editSavedTeams.subText')} - rightTextLink - textLinkLabel='Edit' - onPressRightTextLink={handleEdit} + rightTextLink={showEditSavedTeams} + textLinkLabel={showEditSavedTeams ? 'Edit' : undefined} + onPressRightTextLink={showEditSavedTeams ? handleEdit : undefined} /> <FlashList ListHeaderComponent={() => ( --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ExpandedTeamShift/ExpandedTeamShift.tsx @@ -9,7 +9,10 @@ import { colors, Divider } from '@walmart/gtp-shared-components'; import { useAllsparkTranslation } from '@walmart/allspark-foundation'; import { ActionButtonGroup } from '../../../Shared/Components/ActionButtonGroup'; import { FEATURE_ID } from '../../constant'; +import { useSelector } from 'react-redux'; +import { teamSearchInputEnabled } from '../../Redux'; export const ExpandedTeamShift = () => { + const showTeamSearchInput = useSelector(teamSearchInputEnabled); const { t } = useAllsparkTranslation(FEATURE_ID); //TODO: Remove dummy data const shiftdata = [ @@ -60,7 +63,7 @@ export const ExpandedTeamShift = () => { backgroundColor={colors.white} textColor={colors.black} /> - <TeamSearchInput handleChange={() => {}} /> + {showTeamSearchInput && <TeamSearchInput handleChange={() => {}} />} <EditSavedTeams handleEdit={() => {}} /> <Divider UNSAFE_style={styles.divider} /> <HubHeader
feat: ff for action buttons edit button and search input
feat: ff for action buttons edit button and search input
fc297822c50818366d151b173ebe1669a7473ef1
--- .looper.multibranch.yml @@ -254,9 +254,11 @@ rules: flows: default: + - excludeTools(android, maven, jdk) - echo "default flow not required" pr: + - excludeTools(android, maven, jdk) - npm install - npm run env:dev - npm run lint
Update .looper.multibranch.yml
Update .looper.multibranch.yml
a6e89ece25944a90f726ec57342135a94323f1d0
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "1.62.13", "@walmart/compass-sdk-rn": "5.7.4", "@walmart/config-components": "4.2.8", - "@walmart/copilot-mini-app": "2.3.19", + "@walmart/copilot-mini-app": "^3.5.1", "@walmart/core-services": "~2.2.1", "@walmart/core-services-allspark": "~2.12.8", "@walmart/core-utils": "~2.0.5", @@ -8570,9 +8570,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "2.3.19", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.19.tgz", - "integrity": "sha512-r26ehSzcYQ6Wmz53NLLsnr9i2EThB69R8yJ1N/axT24eybEQrsmLNria/5aa/uylq3GYjtcc7eh6+N+39vu80Q==", + "version": "3.5.1", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.5.1.tgz", + "integrity": "sha512-J8eStDXDrJ/TOZAJbhbNYkm4qLZvaUGTGXvTYKdTyE1xJfgUFH3eRpUxPyMqx85xwaiunXmaWHnPbJEYb8z8IA==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -33193,9 +33193,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "2.3.19", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.19.tgz", - "integrity": "sha512-r26ehSzcYQ6Wmz53NLLsnr9i2EThB69R8yJ1N/axT24eybEQrsmLNria/5aa/uylq3GYjtcc7eh6+N+39vu80Q==" + "version": "3.5.1", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.5.1.tgz", + "integrity": "sha512-J8eStDXDrJ/TOZAJbhbNYkm4qLZvaUGTGXvTYKdTyE1xJfgUFH3eRpUxPyMqx85xwaiunXmaWHnPbJEYb8z8IA==" }, "@walmart/core-services": { "version": "2.2.1", --- package.json @@ -84,7 +84,7 @@ "@walmart/attendance-mini-app": "1.62.13", "@walmart/compass-sdk-rn": "5.7.4", "@walmart/config-components": "4.2.8", - "@walmart/copilot-mini-app": "2.3.19", + "@walmart/copilot-mini-app": "3.5.1", "@walmart/core-services": "~2.2.1", "@walmart/core-services-allspark": "~2.12.8", "@walmart/core-utils": "~2.0.5",
chore: bump copilot @3.5.1
chore: bump copilot @3.5.1
1d90d573e10b878c558337c0a1664bd7d83e4f4b
--- package-lock.json @@ -5238,9 +5238,9 @@ "integrity": "sha512-3JQgXUmCEw8vPdrNdWxXHmSyz0wz1xOB06rUsBUouCxVtLghC9FoSZM7Q5azFKQ0QFFKUki/hjuv/fkakzCZyA==" }, "@walmart/facilities-management-miniapp": { - "version": "0.1.6", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.1.6.tgz", - "integrity": "sha512-92IS5besBnPPwOZN7Y8pgikGfX5mZw44uI/AnH7PADb+34Z0lgQhQ1xcYGAfSfR79uLm487Ny/HLQli74CXeTQ==", + "version": "0.1.7", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.1.7.tgz", + "integrity": "sha512-4f1su6WyLkhxIG/KiVc4c+N9qWnriuAJTuRkfewo8wZA55+ReBC7qByJ3fevJZ0wu1HVwDP3Pki+W/ThJTqtcA==", "requires": { "lodash": "^4.17.15", "react-native-render-html": "^6.3.4", --- package.json @@ -84,7 +84,7 @@ "@walmart/core-widget-registry": "0.3.2", "@walmart/counts-component-miniapp": "0.0.39", "@walmart/exception-mini-app": "0.42.1", - "@walmart/facilities-management-miniapp": "0.1.6", + "@walmart/facilities-management-miniapp": "0.1.7", "@walmart/feedback-all-spark-miniapp": "0.6.0", "@walmart/functional-components": "2.0.5", "@walmart/gta-react-native-calendars": "0.0.15",
Updating version - Facilities Management
Updating version - Facilities Management
162d25ac16aa42e28d17425f5144cdd6f81b14cf
--- src/index.tsx @@ -9,6 +9,7 @@ import {useSelector} from 'react-redux'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; import {RosterWidget} from './components/RosterWidget'; +import {ClockGuard} from '@walmart/allspark-foundation/Clock/withClockGuard'; //Todo: Remove this once the Phase 4 migration is completed // TODO: This needs to be reconsidered when we go production export const initialize = async (debugToken: string) => { @@ -44,9 +45,11 @@ AllsparkComponentContainers.add( export const MyTeamMiniApp = () => { return ( <SafeAreaProvider> - <PresenceProvider> - <TextingNavigation /> - </PresenceProvider> + <ClockGuard> + <PresenceProvider> + <TextingNavigation /> + </PresenceProvider> + </ClockGuard> </SafeAreaProvider> ); };
Update clockout screen
Update clockout screen
517846f2833efbf1083b39fdc38ad14255f9626f
--- .looper.yml @@ -4,6 +4,11 @@ tools: sonarscanner: 4.6.2.2472 updateTaskStatusOnGit: true +envs: + global: + variables: + ALLOW_NPM_PUSH_TO_AF: true + scheduling: concurrent --- .yarnrc.yml @@ -8,4 +8,4 @@ logFilters: nodeLinker: node-modules -npmRegistryServer: "https://npme.walmart.com/" +npmRegistryServer: ${REPOSOLNS_NPM_REPO}
chore: switch to artifact
chore: switch to artifact
66f5fe92edcf3d64396a426a9b172f4f8a20d1ca
--- __tests__/navConfig/NavConfigSagasTest.ts @@ -7,6 +7,7 @@ import { take, } from '@redux-saga/core/effects'; import {getStore} from '@walmart/redux-store'; +import {SIGN_OUT_SUCCESS} from '@walmart/redux-store/lib/commonjs/types/actions'; import DeviceInfo from 'react-native-device-info'; import {GlobalNavConfig} from '@walmart/config-components'; import {defaultHttpClient} from '@walmart/functional-components'; @@ -19,6 +20,7 @@ import { navConfigSagas, watchForSuccessToSetupListener, FETCH_NAV_CONFIG_ACTIONS, + onSignOut, } from '../../src/navConfig/NavConfigSagas'; import { @@ -34,7 +36,7 @@ import { waitForUser, getOriginalUserEmployeeType, getOriginalUserDomain, - createRestartableSaga, + createRestartableSagas, } from '../../src/redux'; import { getSiteConfigDivisonCode, @@ -47,7 +49,7 @@ import {logger} from '../../src/services/Logger'; const mockStore = getStore(); jest.mock('../../src/redux/CreateRestartableSagas', () => ({ - createRestartableSaga: (saga: any) => saga, + createRestartableSagas: (sagas: any[]) => sagas, })); jest.mock('../../src/services/Logger', () => ({ @@ -216,6 +218,14 @@ describe('nav config sagas', () => { }); }); + test('onSignOut', () => { + const iterator = onSignOut(); + expect(iterator.next().value).toEqual( + put(NavConfigActionCreators.refresh(null)), + ); + expect(iterator.next().done).toEqual(true); + }); + test('onConfigChanged', () => { const newConfig = {}; onConfigChanged(newConfig); @@ -241,9 +251,10 @@ describe('nav config sagas', () => { all([ call(initializeNavConfig), call(watchForSuccessToSetupListener), - createRestartableSaga( + ...createRestartableSagas([ takeLatest(FETCH_NAV_CONFIG_ACTIONS, fetchNavConfig), - ), + takeLatest(SIGN_OUT_SUCCESS, onSignOut), + ]), ]), ); }); --- src/navConfig/NavConfigSagas.ts @@ -3,9 +3,10 @@ import {defaultHttpClient} from '@walmart/functional-components'; import {takeLatest, all, call, select, put, take} from 'redux-saga/effects'; import DeviceInfo from 'react-native-device-info'; import {getStore} from '@walmart/redux-store'; +import {SIGN_OUT_SUCCESS} from '@walmart/redux-store/lib/commonjs/types/actions'; import env from '../../env'; -import {createRestartableSaga} from '../redux'; +import {createRestartableSagas} from '../redux'; import { NavConfigActionCreators, NavConfigTypes, @@ -124,6 +125,10 @@ export function* fetchNavConfig(): any { } } +export function* onSignOut(): any { + yield put(NavConfigActionCreators.refresh(null)); +} + /* * Nav Config Change Listener * Listener for Nav config changes needs to be setup to refresh data in state @@ -148,6 +153,9 @@ export function* navConfigSagas() { yield all([ call(initializeNavConfig), call(watchForSuccessToSetupListener), - createRestartableSaga(takeLatest(FETCH_NAV_CONFIG_ACTIONS, fetchNavConfig)), + ...createRestartableSagas([ + takeLatest(FETCH_NAV_CONFIG_ACTIONS, fetchNavConfig), + takeLatest(SIGN_OUT_SUCCESS, onSignOut), + ]), ]); } --- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -88,7 +88,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps< // Once side menu is closed, update nav config if changed and present // Updating while closed to avoid popping in of options while open - if (remoteNavConfig?.length && remoteNavConfig !== navConfig) { + if (remoteNavConfig && remoteNavConfig !== navConfig) { setNavConfig(remoteNavConfig); } }
Clearing nav config on sign out
Clearing nav config on sign out
1692dfb6fa274907051b4338f21a53332a210fd2
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -528,6 +528,7 @@ "\"${PODS_CONFIGURATION_BUILD_DIR}/RNPermissions\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/Permission-Notifications\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/Permission-LocationWhenInUse\"", + "\"${PODS_CONFIGURATION_BUILD_DIR}/Permission-Camera\"", ); MARKETING_VERSION = 1.0.5; OTHER_LDFLAGS = ( @@ -566,6 +567,7 @@ "$(SDKROOT)/usr/lib/swift", "\"${PODS_CONFIGURATION_BUILD_DIR}/RNPermissions\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/Permission-Notifications\"", + "\"${PODS_CONFIGURATION_BUILD_DIR}/Permission-Camera\"", "\"${PODS_CONFIGURATION_BUILD_DIR}/Permission-LocationWhenInUse\"", ); MARKETING_VERSION = 1.0.5; --- ios/Podfile.lock @@ -874,7 +874,7 @@ SPEC CHECKSUMS: boost: a7c83b31436843459a1961bfd74b96033dc77234 BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 - DoubleConversion: cde416483dac037923206447da6e1454df403714 + DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 FBLazyVector: e5569e42a1c79ca00521846c223173a57aca1fe1 FBReactNativeSpec: fe08c1cd7e2e205718d77ad14b34957cce949b58 Firebase: 54cdc8bc9c9b3de54f43dab86e62f5a76b47034f @@ -889,7 +889,7 @@ SPEC CHECKSUMS: FirebasePerformance: b6a1fd3ca81f5d54c4216e43562aa9dcd4f54b19 FirebaseRemoteConfig: 0b813f093033c56fe74a91996044a239ab5acb02 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 - glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 + glog: 5337263514dd6f09803962437687240c5dc39aa4 GoogleAppMeasurement: 6b6a08fd9c71f4dbc89e0e812acca81d797aa342 GoogleDataTransport: 85fd18ff3019bb85d3f2c551d04c481dedf71fc9 GoogleUtilities: 3df19e3c24f7bbc291d8b5809aa6b0d41e642437 @@ -983,6 +983,6 @@ SPEC CHECKSUMS: wifi-store-locator: 0f4d1e14ff9b98c559275105c655a5a6103ef427 Yoga: e7dc4e71caba6472ff48ad7d234389b91dadc280 -PODFILE CHECKSUM: 0c7cc926823c750eebe424a7c0d463101c78e702 +PODFILE CHECKSUM: 5b531e93d330f94d5b0a9dc1d92989dfb0969e15 COCOAPODS: 1.10.1
add lib search path
add lib search path
3fb677f9d56a6c2fc5e5cdf4198860892031af14
--- package-lock.json @@ -4309,7 +4309,7 @@ "@walmart/patient-portal-mobile": { "version": "2.1.14", "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.14.tgz", - "integrity": "sha1-6a8PZ45o8XUCL3Jj8H7rlEfmefQ=", + "integrity": "sha512-LhqS1Ogr1vi5Nj2/gIRPQnn/ogReKbIhXvXsLdDzltCibI5YGoKxHpReIQKp3YJ01xBUJyUBzrc3G/JCe7KYSg==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "@walmart/react-native-collapsible": "1.5.3", @@ -4350,7 +4350,7 @@ "@walmart/react-native-collapsible": { "version": "1.5.3", "resolved": "https://npme.walmart.com/@walmart/react-native-collapsible/-/react-native-collapsible-1.5.3.tgz", - "integrity": "sha1-XoOvTwTbUqaib/9Ii//qp9yNBQk=", + "integrity": "sha512-A/eHjceqHN2FJVaimSrKO/wIHgP5ymIoiyTMRa10ce8NZ7ejhPelIkCqzwjvQ328HG38y7HPelvu/6xlsiFlUQ==", "requires": { "prop-types": "^15.6.2" } @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.8.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.8.0.tgz", - "integrity": "sha512-60zO/wjdR+03ctEVt/8odzbgdFQc7D1b/b3BbW1J9jlDyn8eoEzuxK+u+kPnAC69ITqHraf6ZII/c3IUMie/KQ==" + "version": "0.9.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.9.0.tgz", + "integrity": "sha512-Wl14KaredVOYm3GHBXPDIp1ZxxwhTol8780auYn7HHwhBEboBVwILf1Vyf2EXTY/EUIDpczmnM8RemBLbM44jA==" }, "@walmart/time-clock-mini-app": { "version": "0.5.0", @@ -18429,7 +18429,7 @@ "squiggly-localization": { "version": "0.0.2", "resolved": "https://npme.walmart.com/squiggly-localization/-/squiggly-localization-0.0.2.tgz", - "integrity": "sha1-3ksz5Io53VPnUBiRSVDpxDaSGHU=" + "integrity": "sha512-9j/XUl0XvLk5wksN/nhOcRHmHesVHopX7v3Z1Hv398/656CLarKW0FAqL28zjKO68YH566s8PM1gflrAayBuMA==" }, "sshpk": { "version": "1.16.1", @@ -19824,7 +19824,7 @@ "wfm-allspark-data-library": { "version": "0.0.11", "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz", - "integrity": "sha1-E27LsiPO+Sbj5h3p0FQpcH9VU8g=", + "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==", "requires": { "@walmart/functional-components": "^1.0.22", "@walmart/react-native-env": "^0.1.0", @@ -19838,7 +19838,7 @@ "@walmart/react-native-env": { "version": "0.1.0", "resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.1.0.tgz", - "integrity": "sha1-ojNwDE5pPTzF1RuQXDc//Fnlpz0=" + "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ==" }, "moment": { "version": "2.24.0", @@ -19848,7 +19848,7 @@ "react-native-ssmp-sso-allspark": { "version": "0.0.1-rc8", "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz", - "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s=" + "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg==" } } }, --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.12.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", - "@walmart/taskit-mini-app": "0.8.0", + "@walmart/taskit-mini-app": "0.9.0", "@walmart/time-clock-mini-app": "0.5.0", "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.51.0",
upgraded taskit version
upgraded taskit version
ca9543f29b47e343dcd4d004fcccaa8f037275a6
--- core/__tests__/__mocks__/@walmart/associate-listening-mini-app.js @@ -1,4 +1,6 @@ module.exports = { - ConfigurableSurveyCard: 'ConfigurableSurveyCard', - AvailableSurveysNav: 'AvailableSurveysNav', + __esModule: true, + default: { + buildAllScreens: () => 'AssociateListeningScreens', + } }; --- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -225,15 +225,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> - <Screen - component={[Function]} - name="associateListening.survey" - options={ - { - "headerShown": false, - } - } - /> <Screen component={[Function]} name="FWB" @@ -433,6 +424,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } /> MetricsScreens + AssociateListeningScreens ItemInfoScreens <Screen component={[Function]} @@ -805,15 +797,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> - <Screen - component={[Function]} - name="associateListening.survey" - options={ - { - "headerShown": false, - } - } - /> <Screen component={[Function]} name="FWB" @@ -1013,6 +996,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } /> MetricsScreens + AssociateListeningScreens ItemInfoScreens <Screen component={[Function]} --- core/src/features/listening.ts @@ -1,25 +0,0 @@ -import {AllsparkFeatureModule} from '@walmart/allspark-foundation'; -import {HomeDashboardContainer} from '@walmart/me-at-walmart-common'; - -// --- NOTICE --- // -// Temporary Listening Feature to handle feature setup. -// TODO: Listening, once moved to the foundation, should handle this setup in the module the export. -// Cannot use dynamic require because of metrics export requiring intial transformation -export const ListeningFeature = new AllsparkFeatureModule('listening', { - name: 'Listening', - listeners: { - feature: { - onConnect: () => { - const { - ConfigurableSurveyCard, - } = require('@walmart/associate-listening-mini-app'); - - // Add aes widget to home dashboard container - HomeDashboardContainer.add( - 'ConfigurableSurveyCard', - ConfigurableSurveyCard, - ); - }, - }, - }, -}); --- core/src/manifest.ts @@ -64,7 +64,7 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('./features/emergency').EmergencyFeature, require('./features/feedback').FeedbackFeature, require('./features/inbox').InboxFeature, - require('./features/listening').ListeningFeature, + require('@walmart/associate-listening-mini-app').default, require('@walmart/metrics-mini-app').default, require('@walmart/iteminfo-mini-app').default, require('./features/receiving').ReceivingFeature, --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -9,7 +9,7 @@ import {Header} from '@walmart/ui-components'; import {AmpNav} from '@walmart/amp-mini-app/dist/components/AmpNav'; import AskSamFeature from '@walmart/ask-sam-mini-app'; -import {AvailableSurveysNav} from '@walmart/associate-listening-mini-app'; +import AssociateListeningFeature from '@walmart/associate-listening-mini-app'; import {AVPNav, AVP_NAV_SCREEN_NAME} from '@walmart/avp-feature-app'; import BackroomMiniApp from '@walmart/backroom-mini-app'; import {EmergencyBannerScreen} from '@walmart/emergency-mini-app'; @@ -289,15 +289,6 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [ }, clockCheckEnabled: false, }, - { - featureId: 'survey', - name: 'associateListening.survey', - component: AvailableSurveysNav, - options: { - headerShown: false, - }, - clockCheckEnabled: false, - }, { featureId: 'fwb', name: FWB_NAV_SCREEN_NAME, @@ -470,6 +461,10 @@ export const MainStackNav = () => { Navigator: MainStack as any, })} + {AssociateListeningFeature.buildAllScreens({ + Navigator: MainStack as any, + })} + {ItemInfoFeature.buildAllScreens({ Navigator: MainStack as any, })} --- targets/US/package.json @@ -85,7 +85,7 @@ "@walmart/amp-mini-app": "1.1.98", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.28.21", - "@walmart/associate-listening-mini-app": "1.2.10", + "@walmart/associate-listening-mini-app": "1.2.13", "@walmart/attendance-mini-app": "3.96.2", "@walmart/avp-feature-app": "0.10.19", "@walmart/avp-shared-library": "0.10.5", --- yarn.lock @@ -6343,30 +6343,30 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-listening-mini-app@npm:1.2.10": - version: 1.2.10 - resolution: "@walmart/associate-listening-mini-app@npm:1.2.10" +"@walmart/associate-listening-mini-app@npm:1.2.13": + version: 1.2.13 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.13" dependencies: - "@walmart/associate-listening-utils": "npm:5.0.79" + "@walmart/associate-listening-utils": "npm:5.0.81" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 "@reduxjs/toolkit": ^1.9.5 - "@walmart/core-services": ~2.0.11 + "@walmart/allspark-foundation": "*" "@walmart/gtp-shared-components": 2.0.5 react: ^18.2.0 react-native: 0.70.9 - checksum: 10c0/8d3d88aeeccfd8e92f76b23cc1e15d3b8cdd76d31e332bf4624ef68e6fe6a871646d4c3dd81d61d6727804badc51743b5245160e5eebfe2608fecd14bca0a0b1 + checksum: 10c0/e2c4cbcea39753bcc45bf1e61f1d8c8bdbb80ce74e85f0cbc7cbc8941194e4b25b0160392d373435ee275b59a85df1962eca4fa67e50a800f5b4f93dc0d3e944 languageName: node linkType: hard -"@walmart/associate-listening-utils@npm:5.0.79": - version: 5.0.79 - resolution: "@walmart/associate-listening-utils@npm:5.0.79" +"@walmart/associate-listening-utils@npm:5.0.81": + version: 5.0.81 + resolution: "@walmart/associate-listening-utils@npm:5.0.81" dependencies: "@types/semver": "npm:^7.3.4" semver: "npm:^7.3.4" - checksum: 10c0/0623bc67e56f1e6efc7468cd6ef208503715e9fd49be0085af3eb4b2e11845eb10bc0b1b55e464d19e637ac2802226ff59ecadf9c3de634f99a3177494a7aa79 + checksum: 10c0/efd6a986558de6f4e55292b68c785b5f55066d0602ce86a7609f5f44a4a66e144e398ed9c54eec608d07bacbbb656277a800c0aedc33fd273a1d35b9dd0e36fd languageName: node linkType: hard @@ -7420,7 +7420,7 @@ __metadata: "@walmart/amp-mini-app": "npm:1.1.98" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.28.21" - "@walmart/associate-listening-mini-app": "npm:1.2.10" + "@walmart/associate-listening-mini-app": "npm:1.2.13" "@walmart/attendance-mini-app": "npm:3.96.2" "@walmart/avp-feature-app": "npm:0.10.19" "@walmart/avp-shared-library": "npm:0.10.5"
feat: AL allspark foundation migration phase 4 and 5
feat: AL allspark foundation migration phase 4 and 5
39125a643b132b438a37a94c2afaa2130b738f63
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx @@ -8,17 +8,23 @@ import { useAllsparkTranslation } from '@walmart/allspark-foundation'; import { FEATURE_ID } from '../../../Store/constant'; import { colors } from '@walmart/gtp-shared-components/dist'; import { AlertBanner } from '../../../Shared/Components/AlertBanner'; +import { getSubText } from '../../Utils/SubText'; export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({ filterListData, handleSelectShift, + isModal, }) => { const { t } = useAllsparkTranslation(FEATURE_ID); return ( <> <HubHeader - title={t('shiftFilter.title')} - subText={filterListData ? t('shiftFilter.subText') : null} + title={ + isModal + ? t('expandedTeamShiftModal.shiftFilter.title') + : t('shiftFilter.title') + } + subText={getSubText(filterListData, isModal, t)} backgroundColor={colors.white} textColor={colors.black} noPadding --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/types.ts @@ -11,4 +11,5 @@ export interface ShiftFilterProps extends Shift { export interface ShiftFilterListProps { filterListData: Array<Shift>; handleSelectShift: (shiftId: string) => void; + isModal?: boolean; } --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Utils/SubText.tsx @@ -0,0 +1,14 @@ +import { Shift } from '../Components/ShiftFilter/types'; + +export const getSubText = ( + filterListData: Shift[], + isModal: boolean | undefined, + t: (key: string) => string +) => { + if (!filterListData) { + return null; + } + return isModal + ? t('expandedTeamShiftModal.shiftFilter.subText') + : t('shiftFilter.subText'); +};
Adding getSubText utils function
Adding getSubText utils function
1af286fd11004a1ad0ba75a3aa957a61d6b2aacc
--- packages/allspark-foundation/src/Core/docs/GraphQLCodegen.md @@ -24,6 +24,8 @@ Create an `allspark.config.js` file. This configures code generation in the next step. Below are the minimum required fields. More in depth customization can be found here. +Refer to the [Allspark Config Doc](./AllsparkConfig.md) for more info on this configuration file. + ``` javascript module.exports = { id: 'MINI-APP', // <-- Unique identifier for mini app --- packages/allspark-foundation/src/GraphQL/README.md @@ -13,7 +13,6 @@ A feature client is a scoped version of `AllsparkGraphQLClient` in that: A feature app should follow the GraphQL Codegen process to generate the necessary types and utilities for its queries. This process is described in the [Allspark Feature GraphQL Codegen](../Core/docs/GraphQLCodegen.md) documentation. -```typescript ### Feature Client Config A feature client's configuration options are: @@ -39,29 +38,35 @@ const MyFeatureHttpClient = MyFeature.createGraphQLClient({ #### `query` -todo +Refer to Apollo Client Docs for [query](https://www.apollographql.com/docs/react/api/core/ApolloClient#query) #### `mutate` -todo +Refer to Apollo Client Docs for [mutate](https://www.apollographql.com/docs/react/api/core/ApolloClient#mutate) #### `useQuery` Feature client only. -todo +Refer to Apollo Client Docs for [useQuery](https://www.apollographql.com/docs/react/api/react/hooks#usequery) #### `useLazyQuery` Feature client only. -todo +Refer to Apollo Client Docs for [useLazyQuery](https://www.apollographql.com/docs/react/api/react/hooks#uselazyquery) #### `useMutation` Feature client only. -todo +Refer to Apollo Client Docs for [useMutation](https://www.apollographql.com/docs/react/api/react/hooks#usemutation) + +### Feature Client Codegen + +The foundation provides code generation utilities to help feature apps generate code for their GraphQL queries. + +Refer to the [GraphQL Codgen Doc](../Core/docs/GraphQLCodegen.md) for more indepth instructions on how to configure and use this codegen process. ---- @@ -84,19 +89,21 @@ It's configuration options are: #### `cacheConfig` -todo +Refer to Apollo Client docs for [InMemoryCache configuration options](https://www.apollographql.com/docs/react/caching/cache-configuration#configuration-options) #### `links` -todo +An array of [Apollo Links](https://www.apollographql.com/docs/react/api/link/introduction) #### `httpConfig` -todo +Refer to Apollo Client docs for [Http Link constructor options](https://www.apollographql.com/docs/react/api/link/apollo-link-http#httplink-constructor-options) #### `persistedQueryConfig` -todo +| Property | Required | Type | Notes | +| ---- | ---- | ---- | ---- | +| enabled | true | boolean | If persisted queries should be enabled on the client as describe [here](https://www.apollographql.com/docs/react/api/link/persisted-queries/#3-enable-persisted-queries-on-apolloclient) | ```typescript import { AllsparkContainer } from '@walmart/allspark-foundation/GraphQL'; --- packages/allspark-foundation/src/Permissions/README.md @@ -1,7 +1,19 @@ # Allspark Permissions -Permissions is a simple wrapper around [react-native-permissions](https://github.com/zoontek/react-native-permissions#-react-native-permissions) which is the standard library set by the Foundation. It provides a simple interface for requesting permissions and checking the status of permissions. +The Allspark Permission Client is a wrapper around [react-native-permissions](https://github.com/zoontek/react-native-permissions#-react-native-permissions) which is the standard library set by the Foundation. It provides a simple interface for requesting permissions and checking the status of permissions. -## Usage +## API -View the [react-native-permissions documentation](https://github.com/zoontek/react-native-permissions#-react-native-permissions) for more information. +View the [react-native-permissions documentation](https://github.com/zoontek/react-native-permissions#-react-native-permissions) for more information on the below available methods. + +### `check` + +### `checkMultiple` + +### `request` + +### `checkNotifications` + +### `requestNotifications` + +### `openSettings`
docs: update permissions, graphql and codegen docs
docs: update permissions, graphql and codegen docs
1d74b71307c2c7839f856011d5d91c8307436356
--- src/index.tsx @@ -15,7 +15,7 @@ import { onPreRegister } from '@/setup'; import { CoreNavigation } from '@/navigation'; if (__DEV__) { - require("./ReactotronConfig"); + require("../ReactotronConfig"); } // All setup needing to be done before the app is registered (registerRootComponent)
chore: fix reactotron config path
chore: fix reactotron config path
2c006f6c9be343dd20eee06aa3cb2482403af89c
--- Gemfile @@ -11,6 +11,6 @@ eval_gemfile(plugins_path) if File.exist?(plugins_path) # Cocoapods 1.15 introduced a bug which break the build. We will remove the upper # bound in the template on Cocoapods with next React Native release. -gem 'cocoapods', '>= 1.16.0' +gem 'cocoapods', '>= 1.13', '< 1.15' gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' gem 'xcodeproj', '1.27.0' --- Gemfile.lock @@ -37,10 +37,10 @@ GEM babosa (1.0.4) base64 (0.2.0) claide (1.1.0) - cocoapods (1.16.1) + cocoapods (1.14.3) addressable (~> 2.8) claide (>= 1.0.2, < 2.0) - cocoapods-core (= 1.16.1) + cocoapods-core (= 1.14.3) cocoapods-deintegrate (>= 1.0.3, < 2.0) cocoapods-downloader (>= 2.1, < 3.0) cocoapods-plugins (>= 1.0.0, < 2.0) @@ -54,8 +54,8 @@ GEM molinillo (~> 0.8.0) nap (~> 1.0) ruby-macho (>= 2.3.0, < 3.0) - xcodeproj (>= 1.26.0, < 2.0) - cocoapods-core (1.16.1) + xcodeproj (>= 1.23.0, < 2.0) + cocoapods-core (1.14.3) activesupport (>= 5.0, < 8) addressable (~> 2.8) algoliasearch (~> 1.0) @@ -289,7 +289,7 @@ PLATFORMS DEPENDENCIES activesupport (>= 6.1.7.5, < 7.1.0) - cocoapods (>= 1.16.0) + cocoapods (>= 1.13, < 1.15) fastlane fastlane-plugin-appcenter (~> 2.0) fastlane-plugin-json
Revert "gem update for ios"
Revert "gem update for ios" This reverts commit dac7c4af4cf64b560be801c3b11eddb98891e8d4.
4ff747e0bfb375c91abf317fb716c002b970cbe8
--- packages/allspark-foundation-hub/src/Store/Modules/TeamSelection/Component/TeamSelectionList.tsx @@ -179,6 +179,11 @@ export const TeamSelectionList = ({ StoreManagerExperienceCreators.updateSelectedTeamIDs(selectedTeamIds) ); + dispatch( + StoreManagerExperienceCreators.updateSelectedTeamIdsFromTeamSelection( + selectedTeamIds + ) + ); //TODO: Add confirmation screen navigation logger.info('Save teams event', { message: 'Save teams event triggered', --- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx @@ -114,13 +114,14 @@ export const TeamSwitcher = ({ const [selectedTeam, setSelectedTeam] = useState<string | null>( selectedTeamPreference ); - const selectedTeamIds = useSelector( - StoreManagerExperienceSelectors.getSelectedTeamIDs + + const userPrefTeamsFromTeamSelection = useSelector( + StoreManagerExperienceSelectors.getSelectedTeamIdsFromTeamSelection ); const { isOffSite, allTeamsOfStore } = useGetAllTeamsOfStore(); const flatListRef = useRef<FlatList<any>>(null); - if (selectedTeamIds?.length !== userPrefTeams?.length) { + if (userPrefTeamsFromTeamSelection?.length !== userPrefTeams?.length) { refetch(); } const selectedTeamIndex = teamSwitcherList.findIndex( --- packages/allspark-foundation-hub/src/Store/Redux/reducer.ts @@ -15,6 +15,7 @@ export const STORE_INITIAL_STATE: StoreManagerExperienceState = { userOnboardingError: null, userTeamSelectionError: null, userTeamSelectionUpdatedTime: '', + selectedTeamIdsFromTeamSelection: [], }; export const storeManagerExperienceSlice = createSlice({ @@ -27,6 +28,12 @@ export const storeManagerExperienceSlice = createSlice({ updateSelectedTeamIDs: (state, action: PayloadAction<string[]>) => { state.selectedTeamIDs = action.payload; }, + updateSelectedTeamIdsFromTeamSelection: ( + state, + action: PayloadAction<string[]> + ) => { + state.selectedTeamIdsFromTeamSelection = action.payload; + }, updateSelectedShifts: (state, action: PayloadAction<string[]>) => { state.selectedShifts = action.payload; }, --- packages/allspark-foundation-hub/src/Store/Redux/types.ts @@ -10,4 +10,5 @@ export interface StoreManagerExperienceState { userOnboardingError: string | null; userTeamSelectionError: string | null; userTeamSelectionUpdatedTime: string; + selectedTeamIdsFromTeamSelection: string[]; }
fix(ui): bug fix
fix(ui): bug fix
9698593f659d46eddac3fe60daf7edf3fbb03a72
--- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Screens/TeamSelection.tsx @@ -1,7 +1,8 @@ import React, { useState, useMemo } from 'react'; import { Team as TeamType, Area } from '../types'; import { TeamSelectionList } from '../Component/TeamSelectionList'; -import { Spinner } from '@walmart/gtp-shared-components'; +import { TeamSelectionLoader } from '../Component/TeamSelectionLoader'; +import { ErrorScreen } from '../Component/ErrorScreen'; import { createSections } from '../Utils/sectionListData'; import { groupTeamsByWorkgroupTransform, @@ -29,7 +30,7 @@ export const TeamSelection = () => { const countryCode: string | undefined = useSelector( UserSelectors.getCountryCode ); - const { data, loading, error } = useGetTeamsByStoreQuery({ + const { data, loading, error, refetch, networkStatus } = useGetTeamsByStoreQuery({ variables: { storeNbr: storeNbr as string, date: moment().format('YYYY-MM-DD'), @@ -45,7 +46,10 @@ export const TeamSelection = () => { message: `error in useGetTeamsByStoreQuery from TeamSelection: ${err}`, }); }, + notifyOnNetworkStatusChange: true, }); + + const refetchInProgress = networkStatus === 4; const allTeamsData: TeamType[] = data?.getTeamsByStore || ([] as TeamType[]); const teamsByWorkgroup = useMemo(() => { const allTeams = (data?.getTeamsByStore || []) as TeamType[]; @@ -123,13 +127,17 @@ export const TeamSelection = () => { return acc; }, []); - if (loading) { - //TODO: Add loading screen - return <Spinner testID='loadingScreen' size='large' />; + if (loading || refetchInProgress) { + return <TeamSelectionLoader />; } if (error) { - //TODO: Add error screen - return <Spinner testID='errorScreen' size='large' />; + return <ErrorScreen + errorTitle={'Something went wrong'} + errorMessage={'Refresh this page to try again.'} + buttonText={'Refresh page'} + handleButtonPress={()=> { + refetch(); + }} />; } return (
feat(ui): teamselection error screen
feat(ui): teamselection error screen
1e9e9d295fb7e25285df10c82837919a2884707f
--- env.prod.js @@ -18,7 +18,7 @@ export default { index: 'allspark', format: 'json', }, - logLevel: 'error', + logLevel: 'warn', internalUrl: 'https://api-proxy-es2.prod-us-azure.soa-api-proxy.platform.prod.us.walmart.net', internalBffUrl:
change log level to warn
change log level to warn
d1e23e58d67f86ffd6e93775afab61b12eaacbdd
--- packages/allspark-foundation/src/Translation/index.tsx @@ -25,8 +25,9 @@ export type IAllsparkTranslationClient = CloneableService< export const TranslationClient = (config?: TranslationClientConfig) => { const instance = i18n.createInstance(config); - const clones = {} as Record<string, Clone<IAllsparkTranslationClient>>; + const clones = new Map<string, Clone<IAllsparkTranslationClient>>(); + // Configure client after creation const setOptions = (options: TranslationClientConfig) => { const { resources, ...restOptions } = options; Object.assign(instance.options, restOptions); @@ -46,8 +47,10 @@ export const TranslationClient = (config?: TranslationClientConfig) => { } }; + // Clone access const getClone = (id: string) => clones[id]; + // Clone creation const clone = (id: string) => { const fixedT = instance.getFixedT(null, id);
chore: saving work
chore: saving work
0704402809ab349c9cc123acfdb6648245b4d1f4
--- package.json @@ -81,6 +81,7 @@ "@walmart/core-utils": "~1.0.10", "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.41.1", + "@walmart/facilities-management-miniapp": "0.0.4", "@walmart/feedback-all-spark-miniapp": "0.3.8", "@walmart/functional-components": "2.0.3", "@walmart/gta-react-native-calendars": "0.0.15", @@ -112,7 +113,6 @@ "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.69.0", "@walmart/wfm-ui": "0.2.17", - "@walmart/facilities-management-miniapp": "0.0.4", "axios": "^0.26.1", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
facility manage: maintain alphabetical order
facility manage: maintain alphabetical order
20ded9f29a9a7a2065a926aaee420834876537b0
--- env.dev.js @@ -39,12 +39,13 @@ export default { clientAuthMethod: 'post', }, athena: { - url: 'https://athena-gateway.sdev.us.walmart.net', + shadowGateway: 'https://athena-gateway.sdev.us.walmart.net', + url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', headers: { 'WM_SVC.NAME': 'ATHENA-GATEWAY', 'WM_SVC.ENV': 'dev', }, - persistedQueries: false, + persistedQueries: true, }, logLevel: 'debug', internalUrl:
chore: update dev env config for looper builds
chore: update dev env config for looper builds
835efa14c860400380326aff7788fa6a1e2f939a
--- android/app/src/main/res/values/styles.xml @@ -6,6 +6,7 @@ <item name="android:statusBarColor">@color/blue</item> <!-- Refer to https://github.com/facebook/react-native/pull/29452 --> <item name="android:editTextBackground">@drawable/rn_edit_text_material</item> + <item name="android:textColor">#000000</item> </style> <style name="SplashTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
fix: :lipstick: Added text color for app theme to fix dark mode text input issue
fix: :lipstick: Added text color for app theme to fix dark mode text input issue
7f6a8a114a6a0473a8157307443233a5574d60eb
--- packages/celebration-mini-app-graphql/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.25.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.24.0...@walmart/celebration-mini-app-graphql@1.25.0) (2025-12-02) + +### Features + +- **ui:** remove unused package and update tests ([247e9b6](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/247e9b606ee6db8cc011fea2c3062d4d22dddaa9)) + # [1.24.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.23.0...@walmart/celebration-mini-app-graphql@1.24.0) (2025-12-02) ### Features --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.24.0", + "version": "1.25.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/celebration-mini-app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.34.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.33.0...@walmart/celebration-mini-app@1.34.0) (2025-12-02) + +### Features + +- **ui:** remove unused package and update tests ([247e9b6](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/247e9b606ee6db8cc011fea2c3062d4d22dddaa9)) + # [1.33.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.32.0...@walmart/celebration-mini-app@1.33.0) (2025-12-02) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.33.0", + "version": "1.34.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.34.0 - @walmart/celebration-mini-app-graphql@1.25.0