commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
611022d99a79f5d8e0831e30862d68251971193c
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/TeamListItem/TeamListItem.tsx @@ -14,7 +14,6 @@ import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { useSelector } from 'react-redux'; import { - // primaryTeamChipEnabled, teamImageEnabled, teamSelectionCheckboxEnabled, teamSelectionNavArrowEnabled, @@ -24,8 +23,6 @@ export const TeamListItem = ({ checkboxDisabled, iconType, isSelected, - // isPrimaryTeam, - // primaryTeamText, subText, teamName, teamId, @@ -38,7 +35,6 @@ export const TeamListItem = ({ const TeamImage = useAllsparkImage(); const logger = LoggerService.getContainerInstance(); const telemetryService = useTelemetryService(); - // const showPrimaryTeamChip = useSelector(primaryTeamChipEnabled); const showTeamSelectionCheckbox = useSelector(teamSelectionCheckboxEnabled); const showTeamSelectionNavArrow = useSelector(teamSelectionNavArrowEnabled); const showTeamImage = useSelector(teamImageEnabled); @@ -83,21 +79,6 @@ export const TeamListItem = ({ </View> </View> <View style={styles.iconContainer}> - {/* {showPrimaryTeamChip && isPrimaryTeam && ( - <Tag - accessibilityLabel={primaryTeamText} - color='blue' - UNSAFE_style={styles.primaryTeamContainer} - variant='tertiary' - > - <Body - UNSAFE_style={styles.primaryTeamText} - testID='teamlist-primaryteam' - > - {primaryTeamText} - </Body> - </Tag> - )} */} {showTeamSelectionCheckbox && iconType === 'checkbox' && ( <Checkbox accessibilityState={{
Removing primary team
Removing primary team
0176e8c263b8d5425b043822f3862bdc28b2c236
--- package-lock.json @@ -3278,9 +3278,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.30.6", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.6.tgz", - "integrity": "sha512-qKNH6cLQWeeqGS3RS8I/s2xzCZdXNBfoHIQFLynNbOG+ob2FjQSKEmlF/8UeJ6K7gXRmgmV1gMJUOdv5wku6JQ==", + "version": "0.30.10", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.30.10.tgz", + "integrity": "sha512-xrrwrZHJAejUV+0tyLPgH2ISuBXRdbRHZPlbXM8LItM6g+bihyGB7ub1uMV09zG2rn5jcohZcyLzLcZS+SdydQ==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -66,7 +66,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.41", "@walmart/allspark-home-mini-app": "0.4.27", "@walmart/allspark-me-mini-app": "0.1.0", - "@walmart/ask-sam-mini-app": "0.30.6", + "@walmart/ask-sam-mini-app": "0.30.10", "@walmart/config-components": "^1.0.26", "@walmart/counts-component-miniapp": "0.0.15", "@walmart/exception-mini-app": "0.28.0",
Update ask sam
Update ask sam
a9ffe0fd4cb2542ddd7659c990ee6ebe559d579b
--- src/queries/getDailyRoster.ts @@ -15,7 +15,7 @@ export type GetDailyRosterQuery = { __typename?: 'Query'; getDailyRoster?: Array<{ __typename: 'MewAssociate'; - associateId: string; + associateId?: string | null; firstName?: string | null; fullName?: string | null; jobCategoryCodeDesc?: string | null; --- src/queries/getDailyRoster.ts @@ -15,7 +15,7 @@ export type GetDailyRosterQuery = { __typename?: 'Query'; getDailyRoster?: Array<{ __typename: 'MewAssociate'; - associateId: string; + associateId?: string | null; firstName?: string | null; fullName?: string | null; jobCategoryCodeDesc?: string | null;
revert getDailyRoster.ts
revert getDailyRoster.ts
187a6e5649f713fe9e3888be1924a075877249a1
--- packages/allspark-foundation/__tests__/Navigation/client.test.tsx @@ -480,7 +480,7 @@ describe('NavigationClient', () => { .spyOn(ModalState, 'getState') .mockReturnValue({ stack: [] }); navigationClient = new NavigationClient(); - (navigationClient as any)._modalState.initialized = true; + (navigationClient as any)._modalInitialized = true; (navigationClient as any)._updateModalState(); expect(mockGetState).toHaveBeenCalled(); expect(mockSetState).toHaveBeenCalledWith(expect.any(Function)); --- packages/allspark-foundation/src/Navigation/client.tsx @@ -53,6 +53,8 @@ export class NavigationClient< private _isReady = false; private _currentRouteName = ''; private _previousRouteName = ''; + private _disabled = false; + private _disableReason = ''; private _config = {} as AllsparkNavigationConfig; private _navigationResolverMap: NavigationResolverMap = {}; private _queueManager = new QueueManager<QueueTypes<S>>([ @@ -84,18 +86,14 @@ export class NavigationClient< DefaultModalOptions ); private _modalSubscription: ModalStateSubscription<M>; - private _modalState = { - initialized: false, - enabled: true, - disableReason: '', - }; + private _modalInitialized = false; constructor() { // Subscribe to modalfy state changes to capture initialization of modal state // from modalfy provider. Only then we can update the modal state or else it could be overwritten. this._modalSubscription = ModalState.subscribe(() => { this._modalSubscription.unsubscribe(); - this._modalState.initialized = true; + this._modalInitialized = true; this._queueManager.flush('updateModalState', this._updateModalState); }); } @@ -143,7 +141,7 @@ export class NavigationClient< * addModal or configure */ private _updateModalState = () => { - if (!this._modalState.initialized) { + if (!this._modalInitialized) { this._queueManager.enqueue('updateModalState', undefined); } else { ModalState.setState<M>(() => ({ @@ -362,13 +360,24 @@ export class NavigationClient< * @see https://reactnavigation.org/docs/navigation-container/#navigate */ public navigate = <K extends keyof S>(name: K, params?: S[K]) => { - if (this._isReady && this._ref) { - this._ref.current?.navigate( - ...this._buildNavigateParams(name.toString(), params) - ); - } else { + // Enqueue the navigate call if the client is not ready + if (!this._isReady || !this._ref) { this._queueManager.enqueue('navigate', { name: name.toString(), params }); + return; + } + + // Log warning if the client is disabled + if (this._disabled) { + console.warn( + `Allspark Navigation is currently disabled. Reason: ${this._disableReason}` + ); + return; } + + // Call navigate on the navigation container ref + this._ref.current?.navigate( + ...this._buildNavigateParams(name.toString(), params) + ); }; /** @@ -376,11 +385,22 @@ export class NavigationClient< * @see https://reactnavigation.org/docs/navigation-container/#goback */ public goBack = () => { - if (this._isReady && this._ref) { - this._ref.current?.goBack(); - } else { + // Log warning if client is not ready + if (!this._isReady || !this._ref) { console.warn('goBack called on Allspark Root Navigation before ready'); + return; } + + // Log warning if the client is disabled + if (this._disabled) { + console.warn( + `Allspark Navigation is currently disabled. Reason: ${this._disableReason}` + ); + return; + } + + // Call goBack on the navigation container ref + this._ref.current?.goBack(); }; /** @@ -397,19 +417,32 @@ export class NavigationClient< * ); */ public dispatch = (action: NavigationAction) => { - if (this._isReady && this._ref) { - if ((action as CommonActions.Action).type === 'NAVIGATE') { - const { name, params } = action.payload || ({} as any); - - this._ref.current?.dispatch( - CommonActions.navigate(...this._buildNavigateParams(name, params)) - ); - } else { - this._ref.current?.dispatch(action); - } - } else { + // Enqueue the dispatch action if the client is not ready + if (!this._isReady || !this._ref) { this._queueManager.enqueue('dispatch', action); + return; } + + // Log warning if the client is disabled + if (this._disabled) { + console.warn( + `Allspark Navigation is currently disabled. Reason: ${this._disableReason}` + ); + return; + } + + // If the action is a navigate action, build the navigation params based on client resolver config + if ((action as CommonActions.Action).type === 'NAVIGATE') { + const { name, params } = action.payload || ({} as any); + + this._ref.current?.dispatch( + CommonActions.navigate(...this._buildNavigateParams(name, params)) + ); + return; + } + + // Call dispatch on the navigation container ref + this._ref.current?.dispatch(action); }; /** @@ -490,11 +523,22 @@ export class NavigationClient< * }); */ public reset = (state: NavigationState<S>) => { - if (this._isReady && this._ref) { - this._ref.current?.reset(state); - } else { + // Enqueue the reset action if the client is not ready + if (!this._isReady || !this._ref) { this._queueManager.enqueue('reset', state); + return; } + + // Log warning if the client is disabled + if (this._disabled) { + console.warn( + `Allspark Navigation is currently disabled. Reason: ${this._disableReason}` + ); + return; + } + + // Call reset on the navigation container ref + this._ref.current?.reset(state); }; /** @@ -514,6 +558,23 @@ export class NavigationClient< return this._eventManager.addListener('screenChange', handler); }; + /** + * Enables navigation. If already enabled, this does nothing. + */ + public enable = () => { + this._disabled = false; + }; + + /** + * Disables navigation. All methods on the AllsparkNavigationClient that navigate or open modals will be disabled. + * Call `AllsparkNavigationClient.enable()` to re-enable navigation. + * @param reason - Reason for disabling navigation. + */ + public disable = (reason: string = '') => { + this._disabled = true; + this._disableReason = reason; + }; + // --- Modals --- // /** @@ -556,13 +617,16 @@ export class NavigationClient< params?: M[K], callback?: () => void ) => { - if (this._modalState.enabled) { - this._modalfy.openModal(modalName, params, callback); - } else { + // Log warning if the client is disabled + if (this._disabled) { console.warn( - `Allspark Modals are currently disabled. Reason: ${this._modalState.disableReason}` + `Allspark Navigation is currently disabled. Reason: ${this._disableReason}` ); + return; } + + // Call openModal on the modalfy instance + this._modalfy.openModal(modalName, params, callback); }; /** @@ -597,15 +661,6 @@ export class NavigationClient< this._modalfy.closeAllModals(callback); }; - public enableModals = () => { - this._modalState.enabled = true; - }; - - public disableModals = (reason: string = '') => { - this._modalState.enabled = false; - this._modalState.disableReason = reason; - }; - /** * Creates StackNavigator connected to AllsparkNavigationClient. */
feat: add enable and disable methods to navigation client
feat: add enable and disable methods to navigation client
bef9b6385f6e186018d729f5b1c09403f3b70ad9
--- yarn.lock @@ -5992,9 +5992,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.3.6": - version: 1.3.6 - resolution: "@walmart/allspark-foundation-hub@npm:1.3.6" +"@walmart/allspark-foundation-hub@npm:1.3.9": + version: 1.3.9 + resolution: "@walmart/allspark-foundation-hub@npm:1.3.9" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6010,7 +6010,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/96953b39a79eb5c8678198a22497ad0c207c1bfba6017bbbb12bc3c7c166e2b07ce37c4df6a0be5a769449bf3b6a34b33107d309248b7fd1f4245962c0f5dbda + checksum: 10c0/bd0fc540d931ba4e74abd375575681e50fa9ebcbb96762ddfa9e144c0c8b66cd211a336820cc7f535d3ed4a2fb5fc1336703a4bc056fe80b2d5095ea562ec539 languageName: node linkType: hard @@ -6398,7 +6398,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.20.0" - "@walmart/allspark-foundation-hub": "npm:1.3.6" + "@walmart/allspark-foundation-hub": "npm:1.3.9" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.39.0" + "@walmart/roster-mini-app": "npm:2.40.0" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.39.0": - version: 2.39.0 - resolution: "@walmart/roster-mini-app@npm:2.39.0" +"@walmart/roster-mini-app@npm:2.40.0": + version: 2.40.0 + resolution: "@walmart/roster-mini-app@npm:2.40.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/4c087eef4c16d430590a1e3d9016aa2dd5c6260023ee1101a83ea604c4c81092e8883dbee2704be7c17571f141eee42033b463c864a14615b20644d6b13da4ff + checksum: 10c0/5e3a1bc57b0a3d776a101ea56c9c06c0d7935359049daf73ea642dd92024d54bc9477ca3c6272dfb4d991df616000e479c0c90a7d9493ddcce0ef96bc1341664 languageName: node linkType: hard
Update roster mini app version
Update roster mini app version
b2903b48bff1aade3da736d909c20bea89594e34
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.13", + "version": "2.0.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/texting-mini-app", - "version": "2.0.13", + "version": "2.0.14", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.8.4", --- src/components/AssociateRosterItem/index.tsx @@ -15,7 +15,7 @@ import {useSelector} from 'react-redux'; import {SiteSelectors} from '@walmart/redux-store'; import {PresenceIndicator} from '../../presence/components/PresenceIndicator'; -import {associateDisplayName, encryptUserId} from '../../utils'; +import {associateDisplayName, associateIsClockedIn, encryptUserId} from '../../utils'; import {useStartAssociateText} from '../../hooks'; import {Associate} from '../../types'; import {StatusChip} from '../StatusChip'; @@ -38,7 +38,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { } const encryptedId = encryptUserId(associate?.win?.toString() ?? ''); - const isClockedIn = associate?.punch?.clockStatus === '1' ?? false; + const isClockedIn = associateIsClockedIn(associate); const {height} = StyleSheet.flatten(style || {}); const name = associateDisplayName(associate); --- src/components/MessagesHeader.tsx @@ -5,7 +5,8 @@ import {Body, CloseIcon, colors} from '@walmart/gtp-shared-components'; import {PresenceIndicator} from '../presence/components/PresenceIndicator'; import {useChannelData, useChannelName} from '../channels/hooks'; import {useDailyRoster} from '../hooks'; -import {decryptUserId} from '../utils'; +import {associateIsClockedIn, decryptUserId} from '../utils'; +import { Associate } from '../types'; const styles = StyleSheet.create({ header: { @@ -87,7 +88,7 @@ export const MessagesHeader = (props: {channelId: string}) => { {showPresence && ( <View style={styles.statusRow}> <PresenceIndicator - isClockedIn={firstRecipientAssociate?.punch?.clockStatus === '1'} + isClockedIn={associateIsClockedIn(firstRecipientAssociate as Associate)} showText={true} textStyle={styles.headerPresenseText} /> --- src/utils/user.ts @@ -24,8 +24,9 @@ export const associateIsAbsent = (associate?: Associate) => export const associateIsTardy = (associate?: Associate) => associate?.absentData?.absenceTypeCode === 2; -export const associateIsClockedIn = (associate?: Associate) => - associate?.punch?.clockStatus !== '2'; +export const associateIsClockedIn = (associate?: Associate) => { + return associate?.punch?.clockStatus !== '2' && associate?.punch?.clockStatus !== '9'; +} export const associateIsOnMeal = (associate?: Associate) => !associateIsClockedIn(associate) && associate?.punch?.lastPunchType === '5'; --- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.13", + "version": "2.0.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/texting-mini-app", - "version": "2.0.13", + "version": "2.0.14", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.8.4", --- src/components/AssociateRosterItem/index.tsx @@ -15,7 +15,7 @@ import {useSelector} from 'react-redux'; import {SiteSelectors} from '@walmart/redux-store'; import {PresenceIndicator} from '../../presence/components/PresenceIndicator'; -import {associateDisplayName, encryptUserId} from '../../utils'; +import {associateDisplayName, associateIsClockedIn, encryptUserId} from '../../utils'; import {useStartAssociateText} from '../../hooks'; import {Associate} from '../../types'; import {StatusChip} from '../StatusChip'; @@ -38,7 +38,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { } const encryptedId = encryptUserId(associate?.win?.toString() ?? ''); - const isClockedIn = associate?.punch?.clockStatus === '1' ?? false; + const isClockedIn = associateIsClockedIn(associate); const {height} = StyleSheet.flatten(style || {}); const name = associateDisplayName(associate); --- src/components/MessagesHeader.tsx @@ -5,7 +5,8 @@ import {Body, CloseIcon, colors} from '@walmart/gtp-shared-components'; import {PresenceIndicator} from '../presence/components/PresenceIndicator'; import {useChannelData, useChannelName} from '../channels/hooks'; import {useDailyRoster} from '../hooks'; -import {decryptUserId} from '../utils'; +import {associateIsClockedIn, decryptUserId} from '../utils'; +import { Associate } from '../types'; const styles = StyleSheet.create({ header: { @@ -87,7 +88,7 @@ export const MessagesHeader = (props: {channelId: string}) => { {showPresence && ( <View style={styles.statusRow}> <PresenceIndicator - isClockedIn={firstRecipientAssociate?.punch?.clockStatus === '1'} + isClockedIn={associateIsClockedIn(firstRecipientAssociate as Associate)} showText={true} textStyle={styles.headerPresenseText} /> --- src/utils/user.ts @@ -24,8 +24,9 @@ export const associateIsAbsent = (associate?: Associate) => export const associateIsTardy = (associate?: Associate) => associate?.absentData?.absenceTypeCode === 2; -export const associateIsClockedIn = (associate?: Associate) => - associate?.punch?.clockStatus !== '2'; +export const associateIsClockedIn = (associate?: Associate) => { + return associate?.punch?.clockStatus !== '2' && associate?.punch?.clockStatus !== '9'; +} export const associateIsOnMeal = (associate?: Associate) => !associateIsClockedIn(associate) && associate?.punch?.lastPunchType === '5';
moving all isclocked in checks to a common place
moving all isclocked in checks to a common place
32197bf2dce04872c05947e6f9a21c5f3002feb0
--- targets/US/package.json @@ -91,7 +91,7 @@ "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.5.20", "@walmart/calling-mini-app": "0.5.17", - "@walmart/checkout-mini-app": "4.0.1", + "@walmart/checkout-mini-app": "4.0.3", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.4.5", "@walmart/core-services": "~6.5.2", @@ -355,4 +355,4 @@ ] } } -} \ No newline at end of file +} --- yarn.lock @@ -6153,9 +6153,9 @@ __metadata: languageName: node linkType: hard -"@walmart/checkout-mini-app@npm:4.0.1": - version: 4.0.1 - resolution: "@walmart/checkout-mini-app@npm:4.0.1" +"@walmart/checkout-mini-app@npm:4.0.3": + version: 4.0.3 + resolution: "@walmart/checkout-mini-app@npm:4.0.3" dependencies: "@stomp/stompjs": "npm:^7.0.0" cpc-input: "npm:^1.7.28" @@ -6197,7 +6197,7 @@ __metadata: react-native-wm-telemetry: ">=6" react-redux: ^8.1.3 redux: ^4.0.5 - checksum: 10c0/96c630bc31d5f3845830d02e0bff1c4ff83e2ff3143ba0318f9523dabfaaf2aac10bf4cc9ffa08baea67bde0704b3c6ac67080db74574402f7899a7added64a4 + checksum: 10c0/2a9a862b4a89c44952d0997bcf4a07b2191864812d9ab72b78e6588c3970da76b7efa38695d0ea7f0ec9b393da93426eee2ab152363cff1c02e21457f17ec47f languageName: node linkType: hard @@ -7007,7 +7007,7 @@ __metadata: "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.5.20" "@walmart/calling-mini-app": "npm:0.5.17" - "@walmart/checkout-mini-app": "npm:4.0.1" + "@walmart/checkout-mini-app": "npm:4.0.3" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.4.5" "@walmart/core-services": "npm:~6.5.2"
updated CO version to 4.0.3
updated CO version to 4.0.3
abec857805129412b551719e936624fe43e364cf
--- package-lock.json @@ -3025,12 +3025,13 @@ } }, "@walmart/allspark-health-survey-mini-app": { - "version": "0.0.39", - "resolved": "https://npme.walmart.com/@walmart/allspark-health-survey-mini-app/-/allspark-health-survey-mini-app-0.0.39.tgz", - "integrity": "sha512-ZUNYwZzj7xix/f8n1ACQMB1HzwQY7WYKgBfvfHTSOFW5NDNQRkBjtm/u5YJm2IvHBP7GDJImymnarLUbKDrMmQ==", + "version": "0.0.41", + "resolved": "https://npme.walmart.com/@walmart/allspark-health-survey-mini-app/-/allspark-health-survey-mini-app-0.0.41.tgz", + "integrity": "sha512-+7wG5WGTPcL1wriTu0ZI/ftBnEG2CINdT9PD/NA/o6fiphqo9UCQz70bkfA7Yzsmd/rEGtbZqFXuYuvpo10Vgg==", "requires": { - "@walmart/patient-portal-mobile": "^2.1.13", + "@walmart/patient-portal-mobile": "2.1.14", "crypto-js": "^3.3.0", + "mockdate": "^3.0.5", "moment": "^2.29.1", "react-native-qrcode-svg": "^6.0.6", "react-native-svg": "^12.1.0", @@ -3128,9 +3129,9 @@ "integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w==" }, "@walmart/patient-portal-mobile": { - "version": "2.1.13", - "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.13.tgz", - "integrity": "sha512-4nqT8D5dHRzrDTN7281Ck39GiUITofmnBtplWwKWQnHukrDfGy1M5NwzF2db9kgtoA1L5D7+XjQk4/Uo6zEhDw==", + "version": "2.1.14", + "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.14.tgz", + "integrity": "sha512-LhqS1Ogr1vi5Nj2/gIRPQnn/ogReKbIhXvXsLdDzltCibI5YGoKxHpReIQKp3YJ01xBUJyUBzrc3G/JCe7KYSg==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "@walmart/react-native-collapsible": "1.5.3", @@ -11171,6 +11172,11 @@ "minimist": "^1.2.5" } }, + "mockdate": { + "version": "3.0.5", + "resolved": "https://npme.walmart.com/mockdate/-/mockdate-3.0.5.tgz", + "integrity": "sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==" + }, "moment": { "version": "2.29.1", "resolved": "https://npme.walmart.com/moment/-/moment-2.29.1.tgz", --- package.json @@ -63,7 +63,7 @@ "@redux-saga/testing-utils": "^1.1.3", "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", - "@walmart/allspark-health-survey-mini-app": "0.0.39", + "@walmart/allspark-health-survey-mini-app": "0.0.41", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0", "@walmart/ask-sam-mini-app": "0.29.42",
font fix for home health card
font fix for home health card
61d0bbde79e4e796c9c0e4786648114f8b6823d0
--- .looper.multibranch.yml @@ -611,7 +611,7 @@ flows: - var(MINUTES): echo $((($TIME_ELAPSED%3600)/60)) - var(SECONDS): - echo $(($MINUTES%60)) + echo $((($TIME_ELAPSED%3600)%60)) - slack.postMessage: message: $MESSAGE_TITLE channelId: ${slackChannel} @@ -651,7 +651,7 @@ flows: - type: mrkdwn text: "*Looper job* ${env} #:<${BUILD_URL}|${BUILD_NUMBER}>" - type: mrkdwn - text: "*Github Repo:* <${GITHUB_BRANCH_URL}|URL> - FS: ${FILE_SIZE} - BT: ${MINUTES}min ${SECONDS}secs" + text: "*Github Repo:* <${GITHUB_BRANCH_URL}|URL> - FS: ${FILE_SIZE} - BT: ${MINUTES}m ${SECONDS}s" - type: divider # send failure message to slack
Update .looper.multibranch.yml
Update .looper.multibranch.yml
f94d9075d6b254ef1ce24915e2d260e00047556a
--- package-lock.json @@ -4137,9 +4137,9 @@ } }, "@walmart/allspark-home-mini-app": { - "version": "0.5.25", - "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.25.tgz", - "integrity": "sha512-1lzYNAFODNRkCTfqD7PPk+ZVjjdpXv2aPes2MQl8z8R2ORSCDG8rnid3jpMDNInqUHYPVF3TdFevhY+KtCqREw==", + "version": "0.5.26", + "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.5.26.tgz", + "integrity": "sha512-drlChf64fqgj+/4/KoSHiR8x5DJzM8Yg3/NzHtPyWYuIu1J1YNRDrBW2TqKNQl2swxqVUad8hpb+YEkF8Bd38w==", "requires": { "moment": "^2.29.0", "uuid": "^8.3.1" @@ -4273,9 +4273,9 @@ "integrity": "sha512-UWciGlPmDkMLM0BvZzvEdYrg8iHagGxhvrBwdrgTDeK1SsX8TCPNgMq/1cVdkuk0wdhcaiTTf6DLi4d6AAcWFw==" }, "@walmart/metrics-mini-app": { - "version": "0.5.21", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.21.tgz", - "integrity": "sha512-LGuc2ly+cM0evbDBJuFJMhNsAXs7GCqxXTAlcEwNC4XRvyd6PfpHxesI54nQNQxb8ULiB8/z5uxGnNYXP4bKiQ==", + "version": "0.6.1", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.6.1.tgz", + "integrity": "sha512-EEGgwIt4NqAZOkNI1AutTWymt5/MClUjRw42PRnOP9Bi385TYYSQC9nuFqQ5ea4S/Sc9QQygAMG7avFPS0eEFQ==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -71,7 +71,7 @@ "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@walmart/allspark-health-survey-mini-app": "0.0.44", - "@walmart/allspark-home-mini-app": "0.5.25", + "@walmart/allspark-home-mini-app": "0.5.26", "@walmart/allspark-me-mini-app": "0.31.4", "@walmart/allspark-neon-core": "0.1.25", "@walmart/ask-sam-mini-app": "0.40.8", @@ -87,7 +87,7 @@ "@walmart/inbox-mini-app": "0.28.0", "@walmart/iteminfo-mini-app": "4.0.20", "@walmart/manager-approvals-miniapp": "0.0.59", - "@walmart/metrics-mini-app": "0.5.21", + "@walmart/metrics-mini-app": "0.6.1", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.97.0", "@walmart/price-changes-mini-app": "1.0.6",
bumping metrics and home version
bumping metrics and home version
b0e91b9284a4fba2d2a17712a4d83d5568a8e7b8
--- package-lock.json @@ -5094,9 +5094,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "1.2.8", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.2.8.tgz", - "integrity": "sha512-0ntjoMa196Xu381S6jF3WupKkZFWNA7OebsCW5bu99SSUVNpiTx3QsDrRSLUvd6rkLgiUF/vVB29KQuxq3GCrw==", + "version": "1.2.13", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.2.13.tgz", + "integrity": "sha512-skczD5rDTI/yJsKwbcJysv0cvKE8Q1DzhgZjgJe5XuD5MuTt2JmTJov1/nwFEY5POC0wAFE7IgO63CyhRoRx6Q==", "requires": { "@walmart/core-utils": "^1.0.9", "@walmart/react-native-scanner-3.0": "^0.1.12", --- package.json @@ -79,7 +79,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.2.8", + "@walmart/ask-sam-mini-app": "^1.2.13", "@walmart/config-components": "3.0.3", "@walmart/core-services": "~1.2.11", "@walmart/core-services-allspark": "~1.7.18",
ask sam mini app version bump
ask sam mini app version bump
172cd1c339058e3f3dc5cb942900735f7609ee4b
--- ios/Podfile.lock @@ -178,7 +178,7 @@ PODS: - RNPermissions - PromisesObjC (2.1.0) - Protobuf (3.20.0) - - PTT (0.7.14-rc.14): + - PTT (0.7.14-rc.15): - BinaryCodable (~> 0.2.1) - CocoaAsyncSocket (~> 7.6.3) - RealmSwift (= 10.15.0) @@ -406,8 +406,8 @@ PODS: - React-Core - react-native-pdf (6.2.2): - React-Core - - react-native-ptt-module (1.5.85): - - PTT (= 0.7.14-rc.14) + - react-native-ptt-module (1.5.87): + - PTT (= 0.7.14-rc.15) - React - react-native-safe-area-context (3.3.2): - React-Core @@ -945,7 +945,7 @@ SPEC CHECKSUMS: Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72 Protobuf: 66e2f3b26a35e4cc379831f4ced538274ee4b923 - PTT: f5f7c0d2143a776d23abad9bb1c8b991a9c57d63 + PTT: dcd0a88856e88369871ca235c31639afecedd32b RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 RCTRequired: 4bf86c70714490bca4bf2696148638284622644b RCTTypeSafety: c475a7059eb77935fa53d2c17db299893f057d5d @@ -970,7 +970,7 @@ SPEC CHECKSUMS: react-native-netinfo: 77d133105df525d4a11f10fcaa8d0b8883ea6429 react-native-pager-view: 311c10a4eead1be627cad59062aa059d8108b943 react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f - react-native-ptt-module: 004bb037d13e0587bfa38f60035493d00a56d94d + react-native-ptt-module: a5c168a701040f9904b759f0804fe51a9f48557c react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 --- package-lock.json @@ -4343,9 +4343,9 @@ "integrity": "sha512-qJaaKPSs5rNbukmidrZoqqWylzPX1nos0NwavGpgMjfCIvRuAE83yxNgNMV2KNP8y42YfNhEQlMJ5dCnsg/vWw==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.112", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.112.tgz", - "integrity": "sha512-6ZD1ocAP2sytT7OKIl7eiTMF5n/gOjIUmPhC9os7DVxCIA16A2/he51/NLe7QLswctVwO4vq0gA2IbimX8J98A==" + "version": "0.5.117", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.117.tgz", + "integrity": "sha512-thSC4BAnDXS8r+aMYca94EtYwUftY/MPoJbIm0QPaC8u+mZUnk7lgRXTIjw3b+cP/uHTAQg/ooTPsozm1oU8Og==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", @@ -16978,9 +16978,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.5.85", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.85.tgz", - "integrity": "sha512-EWYqFm6oPuE9rJCLOG99d3oq87RaTfFKkgUxeAieRTnLFsC18UzGA/YaOK9BVC+5nZ51XEzMrujiz361Z81wTw==" + "version": "1.5.87", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.5.87.tgz", + "integrity": "sha512-q2yeTnYVg/KZdPwTg4vNzNBLFsG0H6ofAPEDzprsD0bcJuySWW3ibzKGr8ylIUK9LmH3x7H1DDU1+aJQaAd7YQ==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- package.json @@ -91,7 +91,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.101.0", "@walmart/price-changes-mini-app": "1.0.6", - "@walmart/push-to-talk-mini-app": "0.5.112", + "@walmart/push-to-talk-mini-app": "0.5.117", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0", @@ -145,7 +145,7 @@ "react-native-pdf": "^6.2.0", "react-native-permissions": "3.0.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.5.85", + "react-native-ptt-module": "1.5.87", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.3.0",
using ptt v1.5.117
using ptt v1.5.117
b7999ba39b7fc716455cac430cc1e748e4be6c6d
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.38", + "version": "2.12.39", "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.2.7-alpha.9", + "@walmart/allspark-foundation-hub": "1.2.7-alpha.10", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", --- yarn.lock @@ -5914,9 +5914,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.2.7-alpha.9": - version: 1.2.7-alpha.9 - resolution: "@walmart/allspark-foundation-hub@npm:1.2.7-alpha.9" +"@walmart/allspark-foundation-hub@npm:1.2.7-alpha.10": + version: 1.2.7-alpha.10 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.7-alpha.10" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -5932,7 +5932,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/51bcfe78e4e1a0742d9305a31aba8464b5f2cb78deb4b86ebd979ee04f4e004a8728eff00424dd6b7819fda883ee4191d0cf45773d908ffe5180ef4a4a5249cc + checksum: 10c0/1ad8d14ffd7f721a53e638b91f4557fd2160c029d2600f434377cc2b21ddc35d1d3621726429325def628ed3a81c2caf919a55bf3601f7cf37b5183dd6b72695 languageName: node linkType: hard @@ -6383,7 +6383,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.27.4" - "@walmart/allspark-foundation-hub": "npm:1.2.7-alpha.9" + "@walmart/allspark-foundation-hub": "npm:1.2.7-alpha.10" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0"
Update roster mini app version
Update roster mini app version
11ad82753b12ba8a73e004396ab5303aa7fc8d9d
--- package.json @@ -86,7 +86,7 @@ "@walmart/inbox-mini-app": "0.8.0", "@walmart/iteminfo-mini-app": "2.0.9", "@walmart/manager-approvals-miniapp": "0.0.51", - "@walmart/metrics-mini-app": "0.4.11", + "@walmart/metrics-mini-app": "0.4.12", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.37", "@walmart/react-native-env": "^0.2.0",
remove master spinner
remove master spinner
c55588650ffcbb465734ced7b24317b988c21b61
--- src/presence/service.ts @@ -71,7 +71,16 @@ export const getLastOfflineTime = async (): Promise<number | null> => { const lastOfflineTimeFromStorage = await AsyncStorage.getItem( LAST_OFFLINE_CACHE_KEY, ); - return !isNil(lastOfflineTimeFromStorage) && lastOfflineTimeFromStorage !== '' - ? parseInt(JSON.parse(lastOfflineTimeFromStorage), 10) - : null; + try { + return !isNil(lastOfflineTimeFromStorage) && + lastOfflineTimeFromStorage !== '' + ? parseInt(JSON.parse(lastOfflineTimeFromStorage), 10) + : null; + } catch (e) { + const err = e as Error; + logger.error('could not parse lastOfflineTimeFromStorage', { + message: err.toString(), + }); + return null; + } }; --- src/presence/service.ts @@ -71,7 +71,16 @@ export const getLastOfflineTime = async (): Promise<number | null> => { const lastOfflineTimeFromStorage = await AsyncStorage.getItem( LAST_OFFLINE_CACHE_KEY, ); - return !isNil(lastOfflineTimeFromStorage) && lastOfflineTimeFromStorage !== '' - ? parseInt(JSON.parse(lastOfflineTimeFromStorage), 10) - : null; + try { + return !isNil(lastOfflineTimeFromStorage) && + lastOfflineTimeFromStorage !== '' + ? parseInt(JSON.parse(lastOfflineTimeFromStorage), 10) + : null; + } catch (e) { + const err = e as Error; + logger.error('could not parse lastOfflineTimeFromStorage', { + message: err.toString(), + }); + return null; + } };
wrap json parse in try catch block
wrap json parse in try catch block
549d73edc61a647dfc1f45e82ab58a9a78be2906
--- src/screens/MessagesScreen.tsx @@ -125,9 +125,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { const viewerFirstName = useSelector(getUserFirstName); const isConnected = useSelector(getNetworkState)?.isConnected; const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled); - const siteId: string | undefined = useSelector( - SiteSelectors.getUserWorkingSite, - ); + const siteId: string = useSelector(SiteSelectors.getUserWorkingSite); /** * hooks @@ -275,33 +273,33 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { const getRecipients = (): { recipients?: string[]; - channelType?: string; + channelType: string; } => { - const recipientsList = channelData?.participants - .filter((recipient) => { - const recipientNotSelf = recipient !== viewerId; - const recipientIsOnline = !offlineIds.includes(recipient); - return recipientNotSelf && recipientIsOnline; - }) - .map((encyptedUser) => { - const decryptedWIN = decryptUserId(encyptedUser); - return ( - find(rosterData?.getDailyRoster, { - win: parseInt(decryptedWIN, 10), - })?.userId || '' - ); - }); - if (channelPath.includes(channelTypes.STORE_ALL)) { + if (channelPath.includes(channelTypes.STORE_ALL) && !isNil(siteId)) { return { - recipients: [siteId as string], + recipients: [siteId], channelType: channelTypes.STORE_ALL, }; - } else if (channelPath.includes(viewerTeamId)) { + } else if (channelPath.includes(viewerTeamId) && !isNil(viewerTeamId)) { return { recipients: [viewerTeamId], channelType: channelTypes.TEAM, }; } else { + const recipientsList = channelData?.participants + .filter((recipient) => { + const recipientNotSelf = recipient !== viewerId; + const recipientIsOnline = !offlineIds.includes(recipient); + return recipientNotSelf && recipientIsOnline; + }) + .map((encyptedUser) => { + const decryptedWIN = decryptUserId(encyptedUser); + return ( + find(rosterData?.getDailyRoster, { + win: parseInt(decryptedWIN, 10), + })?.userId || '' + ); + }); return { recipients: recipientsList, channelType: channelTypes.ONE_ONE, --- src/screens/MessagesScreen.tsx @@ -125,9 +125,7 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { const viewerFirstName = useSelector(getUserFirstName); const isConnected = useSelector(getNetworkState)?.isConnected; const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled); - const siteId: string | undefined = useSelector( - SiteSelectors.getUserWorkingSite, - ); + const siteId: string = useSelector(SiteSelectors.getUserWorkingSite); /** * hooks @@ -275,33 +273,33 @@ export const MessagesScreen: FC<MessagesScreenProps> = (props) => { const getRecipients = (): { recipients?: string[]; - channelType?: string; + channelType: string; } => { - const recipientsList = channelData?.participants - .filter((recipient) => { - const recipientNotSelf = recipient !== viewerId; - const recipientIsOnline = !offlineIds.includes(recipient); - return recipientNotSelf && recipientIsOnline; - }) - .map((encyptedUser) => { - const decryptedWIN = decryptUserId(encyptedUser); - return ( - find(rosterData?.getDailyRoster, { - win: parseInt(decryptedWIN, 10), - })?.userId || '' - ); - }); - if (channelPath.includes(channelTypes.STORE_ALL)) { + if (channelPath.includes(channelTypes.STORE_ALL) && !isNil(siteId)) { return { - recipients: [siteId as string], + recipients: [siteId], channelType: channelTypes.STORE_ALL, }; - } else if (channelPath.includes(viewerTeamId)) { + } else if (channelPath.includes(viewerTeamId) && !isNil(viewerTeamId)) { return { recipients: [viewerTeamId], channelType: channelTypes.TEAM, }; } else { + const recipientsList = channelData?.participants + .filter((recipient) => { + const recipientNotSelf = recipient !== viewerId; + const recipientIsOnline = !offlineIds.includes(recipient); + return recipientNotSelf && recipientIsOnline; + }) + .map((encyptedUser) => { + const decryptedWIN = decryptUserId(encyptedUser); + return ( + find(rosterData?.getDailyRoster, { + win: parseInt(decryptedWIN, 10), + })?.userId || '' + ); + }); return { recipients: recipientsList, channelType: channelTypes.ONE_ONE,
update review comments
update review comments
8bc26d57965d70c458eeab7282dc15569febda13
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.9.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.9.7...@walmart/allspark-foundation-hub@1.9.8) (2025-05-30) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.9.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.9.6...@walmart/allspark-foundation-hub@1.9.7) (2025-05-28) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.9.7", + "version": "1.9.8", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.9.8
b501eab86a16b4fb14132b2322d0ad6e86ef0497
--- package-lock.json @@ -62,8 +62,8 @@ "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", "@walmart/OneWalmart-MiniApp": "1.0.12", - "@walmart/pay-stub-miniapp": "^0.9.20", - "@walmart/payrollsolution_miniapp": "^0.130.23", + "@walmart/pay-stub-miniapp": "0.9.20", + "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10", "@walmart/profile-feature-app": "0.76.0", "@walmart/push-to-talk-mini-app": "1.8.59",
update package-lock.json
update package-lock.json
4f81ac745c041446f5f35b6509d61da251c6e306
--- docs/CHANGELOG.md @@ -1,3 +1,13 @@ +# [1.13.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.12.0...v1.13.0) (2024-08-30) + + +### Features + +* **ui:** migrated phase3 of allspark-foundation ([034dca5](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/034dca5ce0d0ebc673a0b0b3e4f7353ba24e4403)) +* **ui:** updated lockfile ([7b83c23](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/7b83c23721a7f75397a48aa97b68663f0a1428dc)) +* **ui:** updated wmconnect and roster versions ([90ffa54](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/90ffa543e575d29e5bb7e2e42555d878ae4d4081)) +* **ui:** version change for testing ([d5c9de3](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/d5c9de368b77c2eeaee8cee31bf9b222066c307c)) + # [1.12.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.11.0...v1.12.0) (2024-08-10) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.12.0", + "version": "1.13.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 1.13.0 [skip ci]
chore(release): 1.13.0 [skip ci] # [1.13.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.12.0...v1.13.0) (2024-08-30) ### Features * **ui:** migrated phase3 of allspark-foundation ([034dca5](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/034dca5ce0d0ebc673a0b0b3e4f7353ba24e4403)) * **ui:** updated lockfile ([7b83c23](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/7b83c23721a7f75397a48aa97b68663f0a1428dc)) * **ui:** updated wmconnect and roster versions ([90ffa54](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/90ffa543e575d29e5bb7e2e42555d878ae4d4081)) * **ui:** version change for testing ([d5c9de3](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/d5c9de368b77c2eeaee8cee31bf9b222066c307c))
6a98da706f62c6d1ccbdf103f0e23e7218a4cee1
--- packages/allspark-utils/src/types.ts @@ -411,7 +411,7 @@ export type InferPromiseType<T extends PromiseOrPromiseFunction> = export type InferPromiseArguments<T extends PromiseOrPromiseFunction> = T extends (param: infer Param) => Promise<any> ? unknown extends Param - ? void + ? any : Param : void; --- packages/core-utils/src/hooks.ts @@ -30,7 +30,7 @@ export const useAsync = <T>( useEffect(() => { if (autoFetch) { - fetch(); + fetch(undefined); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [...dependencies]);
chore: typing fix
chore: typing fix
9e7a43b7d4ea4eb3e6f541f0f99ef35c01824383
--- package-lock.json @@ -3447,7 +3447,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", @@ -3478,7 +3478,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" } @@ -3509,9 +3509,9 @@ "integrity": "sha512-bRj8dBPIo3ShYDH800Lm9XfbCHk8Kclu+Cqbdo/oEB3DIQtoK4TSoyIm8W+c9nhd/kaeEQsev6N99WmNj5BEAg==" }, "@walmart/schedule-mini-app": { - "version": "0.4.1", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.4.1.tgz", - "integrity": "sha512-4XOcWR8zFFY3q+XpaqU3r9Gk1W5/W4xmtc/HHjMlXT6dI1DPTbN8YV0e2OP1YxvEL/oPPo+veGoUEPaxhxD5WQ==", + "version": "0.4.3", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.4.3.tgz", + "integrity": "sha512-Bse8zhT/ry7nJ/3pznyZKtNKVnIl+wQtPul7FWhJduySAWrsTeggj0SV60qMLj9JGVkazOYFyBAzrhjjtEmHJg==", "requires": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.2.0", @@ -14207,7 +14207,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", @@ -15467,7 +15467,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", @@ -15481,7 +15481,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", @@ -15491,7 +15491,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==" } } },
updated package lock
updated package lock
f4a881ec0ace4f4b6069f4df147a9283105f24de
--- src/components/Roster/Roster.tsx @@ -1,10 +1,14 @@ import React, {useEffect, useState} from 'react'; -import {RosterProps} from './types'; +import {AssociateRosterItem, RosterData, RosterProps} from './types'; import {View, Text} from 'react-native'; import {styles} from './styles'; import {FlashList} from '@shopify/flash-list'; import {useDailyRoster} from '../../hooks'; import {isNil} from 'lodash'; +import {sortedAssociateList} from '../../utils'; +import {useSelector} from 'react-redux'; +import {teamLeadJobDescriptions} from '../../redux/selectors'; +import {Associate} from '../../types'; //TODO: States to verify: No Data, Loading, Error (identify all types of errors), Success export const Roster: React.FC<RosterProps> = (props) => { @@ -16,7 +20,7 @@ export const Roster: React.FC<RosterProps> = (props) => { dataOverride = null, } = props; const shouldSkipQuery = !isNil(dataOverride); - const [associates, setAssociates] = useState([]); + const [associates, setAssociates] = useState<AssociateRosterItem[]>([]); const { loading: loadingDailyRoster = false, data: getDailyRosterResponse = null, @@ -24,6 +28,9 @@ export const Roster: React.FC<RosterProps> = (props) => { refetch: refetchDailyRoster = null, //TODO: Use for pullToRefresh, need equiv callback for data override } = useDailyRoster(shouldSkipQuery); + //TODO: teamLeads should not be controlled by CCM. This list should be controlled bt RBAC. Reconsider impl for teamLead check + const teamLeads = useSelector(teamLeadJobDescriptions) as string[]; + const renderAssociateRosterItem = () => { return ( <View> @@ -42,13 +49,17 @@ export const Roster: React.FC<RosterProps> = (props) => { !loadingDailyRoster && !rosterDataFetchError ) { - setAssociates([]); //TODO: set the associates based on the getDailyRoster response + const sortedAssociates = sortedAssociateList( + getDailyRosterResponse?.getDailyRoster as Associate[], //TODO: Type should not be vanilla Associate Type. Prune this object into AssociateRosterItem type + teamLeads, + ); + setAssociates(sortedAssociates); //TODO: set the associates based on the getDailyRoster response } }, [shouldSkipQuery, getDailyRosterResponse?.getDailyRoster, dataOverride]); //TODO: Give more specific dependency with correct type return ( <View style={styles.screen}> - <FlashList data={[0, 1, 2]} renderItem={renderAssociateRosterItem} /> + <FlashList data={associates} renderItem={renderAssociateRosterItem} /> </View> ); }; --- src/components/Roster/types.ts @@ -2,6 +2,8 @@ interface RosterActionButton { label: string; action: (event: any) => void; } + + export interface RosterData { [key: string]: any; //TODO: Define a strict type for the shape of the roster data // associateList: any; //TODO: Define standard shape for AssociateItem[] type
populating the screen with data
populating the screen with data
418b100da8048c03374c61ea30c9ce870e917131
--- packages/allspark-foundation-hub/__tests__/shared/WarningAlert.test.tsx @@ -0,0 +1,47 @@ +import React from 'react'; +import { render, fireEvent } from '@testing-library/react-native'; +import { WarningAlert } from '../../src/Shared/Components/WarningAlert/WarningAlert'; + +describe('WarningAlert', () => { + const mockOnPressButton = jest.fn(); + + const defaultProps = { + alertMessage: 'Unable to load. Please refresh.', + buttonLabel: 'Try Again ', + onPressButton: mockOnPressButton, + }; + + afterEach(() => { + jest.clearAllMocks(); + }); + + it('should render the WarningAlert component with the correct message and button', () => { + const { getByText, getByTestId } = render(<WarningAlert {...defaultProps} />); + + expect(getByText(defaultProps.alertMessage)).toBeTruthy(); + expect(getByText(defaultProps.buttonLabel)).toBeTruthy(); + expect(getByTestId('warning-alert')).toBeTruthy(); + expect(getByTestId('warning-alert-button')).toBeTruthy(); + }); + + it('should call onPressButton and hide the alert when the button is pressed', () => { + const { getByTestId, queryByTestId } = render(<WarningAlert {...defaultProps} />); + + const button = getByTestId('warning-alert-button'); + fireEvent.press(button); + + expect(mockOnPressButton).toHaveBeenCalledTimes(1); + expect(queryByTestId('warning-alert')).toBeNull(); + }); + + it('should hide the alert when the button is pressed even if onPressButton is not provided', () => { + const { getByTestId, queryByTestId } = render( + <WarningAlert alertMessage={defaultProps.alertMessage} buttonLabel={defaultProps.buttonLabel} /> + ); + + const button = getByTestId('warning-alert-button'); + fireEvent.press(button); + + expect(queryByTestId('warning-alert')).toBeNull(); + }); +}); \ No newline at end of file --- packages/allspark-foundation-hub/__tests__/store/redux/reducer.test.ts @@ -1,4 +1,4 @@ -import { storeManagerExperienceSlice } from '../../../src'; +import { DEFAULT_SELECTED_TEAM, storeManagerExperienceSlice } from '../../../src'; describe('storeManagerExperienceSlice', () => { const STORE_INITIAL_STATE = { @@ -14,6 +14,7 @@ describe('storeManagerExperienceSlice', () => { userTeamSelectionError: null, userTeamSelectionUpdatedTime: '', selectedTeamIdsFromTeamSelection: [], + selectedTeamData: DEFAULT_SELECTED_TEAM }; it('should update selected team preference', () => { @@ -86,6 +87,37 @@ describe('storeManagerExperienceSlice', () => { expect(newState.userOnboardingError).toEqual(null); }); + it('should update selected team data', () => { + const action = { + type: 'storeManagerExperienceSlice/updateSelectedTeamData', + payload: { + teamId: '1111111', + teamLabel: 'Management', + teamImage: { uri: '', blurhash: '' }, + }, + }; + const newState = storeManagerExperienceSlice.reducer( + STORE_INITIAL_STATE, + action + ); + expect(newState.selectedTeamData).toEqual(action.payload); + }); + + it('should update selected team IDs from team selection', () => { + const action = { + type: 'storeManagerExperienceSlice/updateSelectedTeamIdsFromTeamSelection', + payload: ['1111111', '1000008'], + }; + const newState = storeManagerExperienceSlice.reducer( + STORE_INITIAL_STATE, + action + ); + expect(newState.selectedTeamIdsFromTeamSelection).toEqual([ + '1111111', + '1000008', + ]); + }) + it('should complete user onboarding', () => { const action = { type: 'storeManagerExperienceSlice/completeUserOnboarding', --- packages/allspark-foundation-hub/__tests__/supplyChain/redux/reducer.test.ts @@ -39,6 +39,24 @@ describe('supplyChainManagerExperienceSlice', () => { expect(newState.selectedShifts).toEqual(['A1', 'A2', 'B1']); }); + it('should set all site teams', () => { + const action = { + type: 'supplyChainManagerExperienceSlice/setAllSiteTeams', + payload: [ + { teamName: 'Team A', opsareaName: 'Ops Area 1' }, + { teamName: 'Team B', opsareaName: 'Ops Area 2' }, + ], + }; + const newState = supplyChainManagerExperienceSlice.reducer( + SC_INITIAL_STATE, + action + ); + expect(newState.allSiteTeams).toEqual([ + { teamName: 'Team A', opsareaName: 'Ops Area 1' }, + { teamName: 'Team B', opsareaName: 'Ops Area 2' }, + ]); + }) + it('should set all site teams in sections', () => { const action = { type: 'supplyChainManagerExperienceSlice/setAllSiteTeamsSections', --- packages/allspark-foundation-hub/src/Shared/Components/WarningAlert/WarningAlert.tsx @@ -27,11 +27,11 @@ export const WarningAlert = ({ variant='warning' children={alertMessage} accessibilityLabel={alertMessage} - testID='warning-banner' + testID='warning-alert' actionButtonProps={{ children: buttonLabel, onPress: handlePressButton, - testID: 'warning-banner-button', + testID: 'warning-alert-button', }} /> );
test(ui): warning alert test coverage
test(ui): warning alert test coverage
1627d53b2265655490f0b0298ae1a58f6ca59dfa
--- __tests__/storeInfo/__snapshots__/StoreMapTest.tsx.snap @@ -42,7 +42,7 @@ exports[`StoreMap matches snapshot while loading 1`] = ` } > <Image - resizeMode="center" + resizeMode="contain" source={ Object { "testUri": "../../../src/images/assets/store-location-pin.png", @@ -118,7 +118,7 @@ exports[`StoreMap matches snapshot with coordinates 1`] = ` } > <Image - resizeMode="center" + resizeMode="contain" source={ Object { "testUri": "../../../src/images/assets/store-location-pin.png", --- src/storeInfo/StoreMap.tsx @@ -51,7 +51,7 @@ export const StoreMap = (props: StoreMapProps) => { <Marker coordinate={coordinates}> <Image source={Images.StoreLocationPin} - resizeMode='center' + resizeMode='contain' style={styles.marker} /> </Marker>
Store map change
Store map change
06a93b3a0691bf2b9f492cf06e790a69295b41d3
--- src/screens/RosterScreen.tsx @@ -71,7 +71,7 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { setPullToRefresh(false); }, 2000); }); - }, [dailyRosterLazy[0]]); + }, [pullToRefresh]); useEffect(() => { if (data?.getDailyRoster) { --- src/screens/RosterScreen.tsx @@ -71,7 +71,7 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { setPullToRefresh(false); }, 2000); }); - }, [dailyRosterLazy[0]]); + }, [pullToRefresh]); useEffect(() => { if (data?.getDailyRoster) {
update useCallback dependency
update useCallback dependency
be594ec40cfe22a75f373fff8ab054cb2bbe634e
--- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx @@ -121,7 +121,10 @@ export const TeamSwitcher = ({ const { isOffSite, allTeamsOfStore } = useGetAllTeamsOfStore(); const flatListRef = useRef<FlatList<any>>(null); - if (userPrefTeamsFromTeamSelection?.length !== userPrefTeams?.length) { + if ( + userPrefTeamsFromTeamSelection?.length > 0 && + userPrefTeamsFromTeamSelection?.length !== userPrefTeams?.length + ) { refetch(); } const selectedTeamIndex = teamSwitcherList.findIndex(
fix(ui): smdv 7478
fix(ui): smdv 7478
c3ea630e7cca912e22e600eae8e6176f0a159499
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [3.16.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.15.0...v3.16.0) (2026-01-16) + + +### Features + +* **ui:** bumped wmconnect version ([2ac1256](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/2ac12569774f17b00752348021f22d81b4323428)) + # [3.15.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.14.0...v3.15.0) (2025-12-22) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.15.0", + "version": "3.16.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.16.0 [skip ci]
chore(release): 3.16.0 [skip ci] # [3.16.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.15.0...v3.16.0) (2026-01-16) ### Features * **ui:** bumped wmconnect version ([2ac1256](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/2ac12569774f17b00752348021f22d81b4323428))
0f6b3911f7f58f89f2bcd9950c25069320130eae
--- package-lock.json @@ -25074,7 +25074,9 @@ "version": "0.5.42" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.9.10" + "version": "0.9.25", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.25.tgz", + "integrity": "sha512-xSrJMEScMx3bC5AzGIBn7B1DhTmMPG6Wd3q4IREQjiTv5H37ezd7YWu5CkpHTAmezFOiFbaNvPmeNyIkQl+A+A==" }, "@walmart/financial-wellbeing-feature-app": { "version": "1.3.1" --- package.json @@ -88,7 +88,7 @@ "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.1.11", "@walmart/facilities-management-miniapp": "0.5.42", - "@walmart/feedback-all-spark-miniapp": "0.9.10", + "@walmart/feedback-all-spark-miniapp": "0.9.25", "@walmart/financial-wellbeing-feature-app": "1.3.1", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16",
Feedback-mini-app version bumupdate
Feedback-mini-app version bumupdate
0071ed1bef38f3d9aa8027112418f1b35bf534f1
--- package-lock.json @@ -63,7 +63,7 @@ "@walmart/iteminfo-mini-app": "7.6.3", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "14.0.2", - "@walmart/metrics-mini-app": "0.18.1", + "@walmart/metrics-mini-app": "0.18.4", "@walmart/mod-flex-mini-app": "1.13.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16", @@ -9174,10 +9174,13 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.18.1", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.18.1.tgz", - "integrity": "sha512-KCDfG8y4OT96xdLKzkOi/vXlZS647cPwXdPrR20iv+SO8n4kGPxX07nJ3nu2xFuqyjKQ5XqyoxYoWBHTo5DG6A==", + "version": "0.18.4", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.18.4.tgz", + "integrity": "sha512-w/8/57nySFRK0zMExNPPweevoUdeFi9y25VycCiDGw0FYmhKbD1VKpUnU3uzH5Bs01bp4+kkuw/l+1KG0rIyjg==", "hasInstallScript": true, + "dependencies": { + "base-64": "^1.0.0" + }, "engines": { "node": ">=16" }, @@ -9191,7 +9194,6 @@ "@walmart/redux-store": ">=3.1.4", "apisauce": ">=3.0.1", "axios-cache-adapter": ">=2.7.3", - "base-64": ">=1.0.0", "expo": "49.0.10", "lodash": ">=4.17.21", "moment-timezone": ">=0.5.33", @@ -10828,6 +10830,12 @@ "version": "1.0.2", "license": "MIT" }, + "node_modules/base-64": { + "version": "1.0.0", + "resolved": "https://npme.walmart.com/base-64/-/base-64-1.0.0.tgz", + "integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==", + "license": "MIT" + }, "node_modules/base64-js": { "version": "1.5.1", "funding": [ @@ -33203,9 +33211,12 @@ "integrity": "sha512-JGf97zQqXPczaYyCjbkSHZ/inO1AkewmMqaj9GgdIGQumgRL17lLsviNp2drH2yFLMee2JIMx2zMJ0g62LCuPw==" }, "@walmart/metrics-mini-app": { - "version": "0.18.1", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.18.1.tgz", - "integrity": "sha512-KCDfG8y4OT96xdLKzkOi/vXlZS647cPwXdPrR20iv+SO8n4kGPxX07nJ3nu2xFuqyjKQ5XqyoxYoWBHTo5DG6A==" + "version": "0.18.4", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.18.4.tgz", + "integrity": "sha512-w/8/57nySFRK0zMExNPPweevoUdeFi9y25VycCiDGw0FYmhKbD1VKpUnU3uzH5Bs01bp4+kkuw/l+1KG0rIyjg==", + "requires": { + "base-64": "^1.0.0" + } }, "@walmart/mod-flex-mini-app": { "version": "1.13.6", @@ -34112,6 +34123,11 @@ "balanced-match": { "version": "1.0.2" }, + "base-64": { + "version": "1.0.0", + "resolved": "https://npme.walmart.com/base-64/-/base-64-1.0.0.tgz", + "integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==" + }, "base64-js": { "version": "1.5.1" }, @@ -45046,4 +45062,4 @@ } } } -} \ No newline at end of file +} --- package.json @@ -104,7 +104,7 @@ "@walmart/iteminfo-mini-app": "7.6.3", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "14.0.2", - "@walmart/metrics-mini-app": "0.18.1", + "@walmart/metrics-mini-app": "0.18.4", "@walmart/mod-flex-mini-app": "1.13.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16", @@ -325,4 +325,4 @@ "pre-push": "run-p solidarity coverage" } } -} \ No newline at end of file +}
Bumping metrics-mini-app version to 0.18.4
Bumping metrics-mini-app version to 0.18.4
9f58f8a76dd7e673718766ae2c9e0ba7191799fe
--- android/app/build.gradle @@ -1,6 +1,11 @@ -apply plugin: "com.android.application" -apply plugin: 'com.google.gms.google-services' -apply plugin: 'com.google.firebase.crashlytics' +plugins { + id 'com.android.application' + id 'dagger.hilt.android.plugin' + id 'com.google.gms.google-services' + id 'kotlin-android' + id 'kotlin-kapt' + id 'com.google.firebase.crashlytics' +} import com.android.build.OutputFile @@ -229,6 +234,8 @@ dependencies { implementation 'com.walmart.ssae.sms.sumo:sumosdk:2.5.5' implementation 'com.walmart.ssae.sms.sumo:sumofcm:2.5.5' implementation 'com.google.firebase:firebase-messaging:21.0.1' + implementation "com.google.dagger:hilt-android:2.34.1-beta" + kapt "com.google.dagger:hilt-compiler:2.34.1-beta" debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { exclude group:'com.facebook.fbjni' --- android/app/src/main/java/com/walmart/stores/allspark/beta/MainApplication.java @@ -13,7 +13,9 @@ import java.lang.reflect.InvocationTargetException; import java.util.List; import com.walmart.ssmp.platform.core.PlatformCoreApplication; import com.walmart.stores.allspark.beta.BuildConfig; +import dagger.hilt.android.HiltAndroidApp; +@HiltAndroidApp public class MainApplication extends PlatformCoreApplication implements ReactApplication { private final ReactNativeHost mReactNativeHost = --- android/build.gradle @@ -3,7 +3,7 @@ buildscript { ext { buildToolsVersion = "29.0.2" - minSdkVersion = 23 + minSdkVersion = 26 compileSdkVersion = 30 targetSdkVersion = 30 googlePlayServicesVersion = "17.0.0" @@ -17,9 +17,11 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:4.1.0' + classpath "com.google.dagger:hilt-android-gradle-plugin:2.34.1-beta" classpath 'com.google.gms:google-services:4.3.3' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0' classpath 'com.walmart.ssmp:android-signing:1.0.9' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }
Updating android for sumo 2
Updating android for sumo 2
da37b301145a91c49a0c7d45239f61d97f05c2c9
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -262,6 +262,7 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` } /> <Screen + component="SalesItemizedScreen" name="metricsSalesDrilldown" options={ Object { @@ -270,6 +271,7 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` } /> <Screen + component="PresubItemizedScreen" name="metricsPreSubDrilldown" options={ Object { @@ -296,6 +298,7 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` } /> <Screen + component="MetricsFtprTabNavigation" name="metricsFTPDrilldown" options={ Object { @@ -570,6 +573,7 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] } /> <Screen + component="SalesItemizedScreen" name="metricsSalesDrilldown" options={ Object { @@ -578,6 +582,7 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] } /> <Screen + component="PresubItemizedScreen" name="metricsPreSubDrilldown" options={ Object { @@ -604,6 +609,7 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] } /> <Screen + component="MetricsFtprTabNavigation" name="metricsFTPDrilldown" options={ Object { --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -301,19 +301,19 @@ export const MainStackNav = () => { /> {WorkMiniAppScreens} <MainStack.Screen + component={SalesItemizedScreen} name='metricsSalesDrilldown' options={{ title: translate('navigation.salesDrilldownTitle'), - }}> - {() => <SalesItemizedScreen />} - </MainStack.Screen> + }} + /> <MainStack.Screen + component={PresubItemizedScreen} name='metricsPreSubDrilldown' options={{ title: translate('navigation.presubDrilldownTitle'), - }}> - {() => <PresubItemizedScreen />} - </MainStack.Screen> + }} + /> <MainStack.Screen component={MetricsPreSubInfoModalScreen} name='metricsPreSubInfoModal' @@ -329,12 +329,12 @@ export const MainStackNav = () => { }} /> <MainStack.Screen + component={MetricsFtprTabNavigation} name='metricsFTPDrilldown' options={{ title: translate('navigation.ftprDrilldownTitle'), - }}> - {() => <MetricsFtprTabNavigation />} - </MainStack.Screen> + }} + /> </MainStack.Navigator> {/* PTT Notifications Container */}
fixing metrics navigation screens
fixing metrics navigation screens
7ce4c5ff0679de5005870f2ddae09eda089974bf
--- targets/US/package.json @@ -117,7 +117,7 @@ "@walmart/me-at-walmart-common": "workspace:^", "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-core": "workspace:^", - "@walmart/metrics-mini-app": "1.29.5", + "@walmart/metrics-mini-app": "1.29.6", "@walmart/mod-flex-mini-app": "1.23.2", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.0.14", --- yarn.lock @@ -7414,7 +7414,7 @@ __metadata: "@walmart/me-at-walmart-common": "workspace:^" "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-core": "workspace:^" - "@walmart/metrics-mini-app": "npm:1.29.5" + "@walmart/metrics-mini-app": "npm:1.29.6" "@walmart/mod-flex-mini-app": "npm:1.23.2" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.0.14" @@ -7646,20 +7646,20 @@ __metadata: languageName: unknown linkType: soft -"@walmart/metrics-common@npm:1.3.4": - version: 1.3.4 - resolution: "@walmart/metrics-common@npm:1.3.4" - checksum: 10c0/4000911472bacf2c493d0af8079b4cadb55f2217c6d57c082d71e2a22b8ae0c92f4e1c517c55583e218395a66c7014790f8b1620ebf3269c9c9522cc502e4d38 +"@walmart/metrics-common@npm:1.3.5": + version: 1.3.5 + resolution: "@walmart/metrics-common@npm:1.3.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmetrics-common%2F-%2F%40walmart%2Fmetrics-common-1.3.5.tgz" + checksum: 10c0/f1b2338546262d39b98d973dd8aa0c6e06504cde0c6474a25edb506d22be245c3552e1477c0eaa371ed00b4d0eab270fe6c1a8bd3c976573a82d2dad3860acd4 languageName: node linkType: hard -"@walmart/metrics-mini-app@npm:1.29.5": - version: 1.29.5 - resolution: "@walmart/metrics-mini-app@npm:1.29.5" +"@walmart/metrics-mini-app@npm:1.29.6": + version: 1.29.6 + resolution: "@walmart/metrics-mini-app@npm:1.29.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmetrics-mini-app%2F-%2F%40walmart%2Fmetrics-mini-app-1.29.6.tgz" dependencies: - "@walmart/metrics-common": "npm:1.3.4" - "@walmart/metrics-store": "npm:1.3.4" - "@walmart/metrics-supply-chain": "npm:1.0.6" + "@walmart/metrics-common": "npm:1.3.5" + "@walmart/metrics-store": "npm:1.3.5" + "@walmart/metrics-supply-chain": "npm:1.0.7" peerDependencies: "@apollo/client": ">=3.11.8" "@react-native/gradle-plugin": ">=0.73.4" @@ -7681,27 +7681,27 @@ __metadata: react-native: 0.73.7 react-redux: ">=8.0.4" reduxsauce: ">=1.2.0" - checksum: 10c0/391eaadcd6a03a84a98a190244708fcd8c3c38150e822d2bc8489e7e99a7accf7ae2ec66eb6b4b8a06d79761435a8fb78fc91f706c8bb48faca6fab51aad1e43 + checksum: 10c0/ed162e48606d16dcce0fb86e97afb27da71d1be314e6300ea87e4d878c34ba6aae64ec8cd7c11ad008d9b4648fce5ef62ac1a8f40e6f912e68b947d5fd011c99 languageName: node linkType: hard -"@walmart/metrics-store@npm:1.3.4": - version: 1.3.4 - resolution: "@walmart/metrics-store@npm:1.3.4" +"@walmart/metrics-store@npm:1.3.5": + version: 1.3.5 + resolution: "@walmart/metrics-store@npm:1.3.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmetrics-store%2F-%2F%40walmart%2Fmetrics-store-1.3.5.tgz" dependencies: - "@walmart/metrics-common": "npm:1.3.4" + "@walmart/metrics-common": "npm:1.3.5" base-64: "npm:^1.0.0" - checksum: 10c0/a939da27208a4b9675bae93e2c62f4d9120e093f97740de733cbc7251c425afacf693d9b974fe47cf13879e040b49b017c5bf62a88d63ec9a5efe652b37b9417 + checksum: 10c0/1e97119b500cfd0bc8bd4ed7e12191637855a4db79967824c4bdea44ee19ce244be2a0972660b775903d2701ef1e467f18912f6eb8999c00d711895a2ac55721 languageName: node linkType: hard -"@walmart/metrics-supply-chain@npm:1.0.6": - version: 1.0.6 - resolution: "@walmart/metrics-supply-chain@npm:1.0.6" +"@walmart/metrics-supply-chain@npm:1.0.7": + version: 1.0.7 + resolution: "@walmart/metrics-supply-chain@npm:1.0.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmetrics-supply-chain%2F-%2F%40walmart%2Fmetrics-supply-chain-1.0.7.tgz" dependencies: - "@walmart/metrics-common": "npm:1.3.4" + "@walmart/metrics-common": "npm:1.3.5" base-64: "npm:^1.0.0" - checksum: 10c0/4d4a9c5ae2ffa80c6b06930ed58876628a1cd4d9950ae0e6abdf499bdf2b368d0f6869be5c48a81866cbebebaa2e6caca32a3f5ec489ef1b683632309bb5f367 + checksum: 10c0/a9710597a99c608c646c1aed2e46b4f389980a74a2287602995d89bb79264f527a300fb82fd4eab87e0d4e4403ce9b146f311740d1adf7c0ae0dcd3eb41b3eb0 languageName: node linkType: hard
build: metrics version bump
build: metrics version bump
b635049834e3c7f894aaf3768dedb4fee183a1ce
--- android/app/build.gradle @@ -139,8 +139,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 639 - versionName "1.3.0" + versionCode 640 + versionName "1.3.1" } splits { abi { --- ios/AllSpark/Info.plist @@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.3.0</string> + <string>1.3.1</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -34,9 +34,9 @@ </dict> </array> <key>CFBundleVersion</key> - <string>639</string> + <string>640</string> <key>FirebaseAutomaticScreenReportingEnabled</key> - <false/> + <false /> <key>LSApplicationQueriesSchemes</key> <array> <string>gif2</string> @@ -45,7 +45,7 @@ <string>awbs</string> </array> <key>LSRequiresIPhoneOS</key> - <true/> + <true /> <key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> @@ -53,14 +53,14 @@ <key>i5.walmartimages.com</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> - <true/> + <true /> <key>NSIncludesSubdomains</key> - <true/> + <true /> </dict> <key>localhost</key> <dict> <key>NSExceptionAllowsInsecureHTTPLoads</key> - <true/> + <true /> </dict> </dict> </dict> @@ -112,7 +112,7 @@ <string>armv7</string> </array> <key>UIRequiresFullScreen</key> - <true/> + <true /> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> @@ -120,7 +120,7 @@ <key>UIUserInterfaceStyle</key> <string>Light</string> <key>UIViewControllerBasedStatusBarAppearance</key> - <false/> + <false /> <key>WMKits</key> <dict> <key>team-id</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.3.0", + "version": "1.3.1", "private": true, "scripts": { "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
Bumping version for hotfix
Bumping version for hotfix
d9890a0c5de6c0295336d21d6a53f43151bb0834
--- yarn.lock @@ -6372,6 +6372,15 @@ __metadata: languageName: node linkType: hard +"@walmart/facilities-management-miniapp@patch:@walmart/facilities-management-miniapp@npm%3A0.15.7#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.15.7-5b9d1150f9.patch": + version: 0.15.7 + resolution: "@walmart/facilities-management-miniapp@patch:@walmart/facilities-management-miniapp@npm%3A0.15.7#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.15.7-5b9d1150f9.patch::version=0.15.7&hash=faa979" + peerDependencies: + "@walmart/allspark-foundation": "*" + checksum: 10c0/9f76b2aa7eaec3439b1518ce6b4441eeea7f9a71701f5a010c6a0cfa915cb8ea76144a1584374dd03a5a4f71182e7ff61f2dc953580ca18d6aa23eeb8643f9b2 + languageName: node + linkType: hard + "@walmart/feedback-all-spark-miniapp@npm:0.9.66": version: 0.9.66 resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.66" @@ -7008,7 +7017,7 @@ __metadata: "@walmart/counts-component-miniapp": "npm:0.1.13" "@walmart/emergency-mini-app": "npm:1.29.10" "@walmart/exception-mini-app": "npm:1.8.11" - "@walmart/facilities-management-miniapp": "npm:0.15.7" + "@walmart/facilities-management-miniapp": "patch:@walmart/facilities-management-miniapp@npm%3A0.15.7#~/.yarn/patches/@walmart-facilities-management-miniapp-npm-0.15.7-5b9d1150f9.patch" "@walmart/feedback-all-spark-miniapp": "npm:0.9.66" "@walmart/financial-wellbeing-feature-app": "npm:1.26.0" "@walmart/functional-components": "npm:~6.3.28"
chore: update yarn.lock
chore: update yarn.lock
30be3f295c0ad5afbee6b5add8fe51b0ad76c18b
--- __tests__/hooks/userTest.tsx --- package.json @@ -80,13 +80,13 @@ "@typescript-eslint/eslint-plugin": "^5.37.0", "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", - "@walmart/allspark-foundation": "latest", + "@walmart/allspark-foundation": "6.20.0", "@walmart/allspark-foundation-hub": "latest", "@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": "latest", + "@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.1", --- yarn.lock @@ -6010,9 +6010,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:latest": - version: 6.21.0 - resolution: "@walmart/allspark-foundation@npm:6.21.0" +"@walmart/allspark-foundation@npm:6.20.0": + version: 6.20.0 + resolution: "@walmart/allspark-foundation@npm:6.20.0" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -6105,7 +6105,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/fc5a7cd9cf08b9404dced8b98291364d4f5b3f927ea6f796eedc27010103801aada482439c16ae49d9eddb833811988b071d250b2b8a68cafd61e125caa1ee59 + checksum: 10c0/ca36b0592d5d97675161419536a39f758bd2e00f25c013aeaad4f7e6ce0cb2b3050b766233d5bbb3f4a93aa91fca2271572a78d4a14a4c63c3b957b9c36c3704 languageName: node linkType: hard @@ -6206,7 +6206,7 @@ __metadata: languageName: node linkType: hard -"@walmart/core-services-allspark@npm:latest": +"@walmart/core-services-allspark@npm:6.25.1": version: 6.25.1 resolution: "@walmart/core-services-allspark@npm:6.25.1" peerDependencies: @@ -6404,13 +6404,13 @@ __metadata: "@typescript-eslint/eslint-plugin": "npm:^5.37.0" "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" - "@walmart/allspark-foundation": "npm:latest" + "@walmart/allspark-foundation": "npm:6.20.0" "@walmart/allspark-foundation-hub": "npm:latest" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" "@walmart/core-services": "npm:6.1.4" - "@walmart/core-services-allspark": "npm:latest" + "@walmart/core-services-allspark": "npm:6.25.1" "@walmart/core-utils": "npm:6.1.4" "@walmart/functional-components": "npm:6.1.4" "@walmart/gtp-shared-components": "npm:2.2.1"
Remove unnecessary code
Remove unnecessary code
ea5249d6e7580b3feb0d6b9a82c9e598d7bf9a18
--- ios/Podfile.lock @@ -427,11 +427,11 @@ PODS: - React - react-native-safe-area-context (3.3.2): - React-Core - - react-native-scanner-3.0 (0.1.12): + - react-native-scanner-3.0 (0.1.13): - Firebase/Analytics - React - - ScanditBarcodeCapture (= 6.14.0-beta.3) - - ScanditCaptureCore (= 6.14.0-beta.3) + - ScanditBarcodeCapture (= 6.14.0) + - ScanditCaptureCore (= 6.14.0) - react-native-splash-screen (3.2.0): - React - react-native-video (5.1.0-alpha8): @@ -587,9 +587,9 @@ PODS: - React - RNVectorIcons (7.1.0): - React - - ScanditBarcodeCapture (6.14.0-beta.3): - - ScanditCaptureCore (= 6.14.0-beta.3) - - ScanditCaptureCore (6.14.0-beta.3) + - ScanditBarcodeCapture (6.14.0): + - ScanditCaptureCore (= 6.14.0) + - ScanditCaptureCore (6.14.0) - SDWebImage (5.11.1): - SDWebImage/Core (= 5.11.1) - SDWebImage/Core (5.11.1) @@ -1005,7 +1005,7 @@ SPEC CHECKSUMS: react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa react-native-ptt-module: 03c55e2666382002ce515ab08941d81987a4b2e1 react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5 - react-native-scanner-3.0: 2bb5307f59fad2fe0b3e13c3b92cc34fb15dea0a + react-native-scanner-3.0: 4fe17cb74975f87714d17678603bf69078f3a80f react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 @@ -1053,8 +1053,8 @@ SPEC CHECKSUMS: RNSoundPlayer: e7f72cf262c8de4f1427b5f29cc47aebadd1d872 RNSVG: ce9d996113475209013317e48b05c21ee988d42e RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59 - ScanditBarcodeCapture: 190177be53186374f1e3ccf387b9813a6d2d4f8b - ScanditCaptureCore: 39c5a377a839738468883545c4f418fe9b4ba4e8 + ScanditBarcodeCapture: 26e343653b28a92c1bf34a5d571c8a03c2e6e5a2 + ScanditCaptureCore: 0c5c3ce4440b980271235ff935a1752a9bcd970c SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d SQLite.swift: d2b4642190917051ce6bd1d49aab565fe794eea3 --- package-lock.json @@ -5458,9 +5458,9 @@ "integrity": "sha512-qxVserzdiG4xsZCLRIwYfRq/KuHsYSPkrl02tKHNhF5bhtWWo6oEUatBoSsY5BL8EVGOHk2ezsPWb2o5pg9Ryw==" }, "@walmart/react-native-scanner-3.0": { - "version": "0.1.12", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.12.tgz", - "integrity": "sha512-4IRzNJEYj0A1BUxytUX9AVqZBteRd7nVnzaLuYnrDXS2DTq3yEjoArKRbcta4fShCrvYr+xgLt5xbGVmPLtBbQ==" + "version": "0.1.13", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.13.tgz", + "integrity": "sha512-dx7kWpRo8UXree41xhHPzOXt7k48WD/X4PcTGUP7Wb2rHAfpQtBP9R/Em8vm0/riEUCrR1Xs6BCnvqoQx5f3nA==" }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", --- package.json @@ -108,7 +108,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.12", + "@walmart/react-native-scanner-3.0": "0.1.13", "@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: Performance enhancement around resume/pause with STANDBY camera state.
Scanner3: Performance enhancement around resume/pause with STANDBY camera state.
0423cfb28162713cc118508160702c8e4fb30997
--- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -147,6 +147,7 @@ export const RosterDetailScreen = () => { ) : []; + //Todo: Move some of the functions to utils or hooks const filterCount = useMemo(() => { if (teamState.teamLabel === TOTAL_STORE_TEAM_ID) { return { @@ -249,6 +250,44 @@ export const RosterDetailScreen = () => { [teamState], ); + const getContext = () => { + if (selectedFilter === FilterValue.absent) { + return FilterValue.absent; + } else if (selectedFilter === FilterValue.tardy) { + return FilterValue.tardy; + } else if (selectedFilter === FilterValue.clockedIn) { + return FilterValue.clockedIn; + } else { + return FilterValue.all; + } + }; + + const getSelectFilterLabel = () => { + if (selectedFilter === FilterValue.absent) { + return t('rosterScreen.filters.absent'); + } else if (selectedFilter === FilterValue.tardy) { + return t('rosterScreen.filters.tardy'); + } else if (selectedFilter === FilterValue.clockedIn) { + return t('rosterScreen.filters.clockedIn'); + } else { + return t('rosterScreen.filters.all'); + } + }; + + const emptyListInfo = useMemo(() => { + const context = getContext(); + const filterLabel = getSelectFilterLabel(); + return { + title: t('rosterListEmptyComponent.title', { + filterLabel, + context, + }), + description: t('rosterListEmptyComponent.description', { + context, + }), + }; + }, [selectedFilter]); + const renderListEmptyComponent = () => { return dataError ? ( <ErrorScreen @@ -265,8 +304,8 @@ export const RosterDetailScreen = () => { ) : ( <ListEmptyComponent testID='listEmptyComponent' - title='No associates found' - description='Try adjusting your search query' + title={emptyListInfo.title} + description={emptyListInfo.description} mediaComponent={ <AllsparkImage accessibilityRole='image' --- src/translations/en-US.ts @@ -167,6 +167,16 @@ export const enUS = { }, }, }, + rosterListEmptyComponent: { + title: 'No associates found', + title_absent: 'No {{filterLabel}} associates found', + title_tardy: 'No {{filterLabel}} associates found', + title_clockedIn: 'No {{filterLabel}} associates found', + description: 'Try adjusting your search query.', + description_absent: 'Consider updating the filters to see associates.', + description_tardy: 'Consider updating the filters to see associates.', + description_clockedIn: 'Consider updating the filters to see associates.', + }, //Todo: Need to remove this post all spark foundation migration impersonation: { allowGeoClk: 'Allow geo validation on clocking', --- src/translations/es-MX.ts @@ -157,6 +157,19 @@ export const esMX = { }, }, }, + rosterListEmptyComponent: { + title: 'No se encontraron asociados', + title_absent: 'No se han encontrado {{filterLabel}} asociados', + title_tardy: 'No se han encontrado {{filterLabel}} asociados', + title_clockedIn: 'No se han encontrado {{filterLabel}} asociados', + description: 'Intenta ajustar tu consulta de búsqueda.', + description_absent: + 'Considere la posibilidad de actualizar los filtros para ver los asociados.', + description_tardy: + 'Considere la posibilidad de actualizar los filtros para ver los asociados.', + description_clockedIn: + 'Considere la posibilidad de actualizar los filtros para ver los asociados.', + }, //Todo: Need to remove this after the allspark foundation migration impersonation: { allowGeoClk: 'Permitir la validación geográfica al marcar',
Add empty list component
Add empty list component
051369db06930f628801e3b36eae0a3c09e6ed41
--- packages/allspark-foundation/src/GraphQL/client.ts @@ -16,6 +16,7 @@ import { MutationHookOptions, QueryHookOptions, LazyQueryHookOptions, + SuspenseQueryHookOptions, } from '@apollo/client'; import { NoInfer } from 'react-redux'; @@ -23,6 +24,7 @@ import { useMutation as useMutationBase, useQuery as useQueryBase, useLazyQuery as useLazyQueryBase, + useSuspenseQuery as useSuspenseQueryBase, } from './hooks'; import { GraphQLClientConfig, GraphQLFeatureConfig } from './types'; import { generateQueryHash } from './utils'; @@ -314,6 +316,22 @@ export class GraphQLFeatureClient { }); }; + /** + * Hook for making a suspense query call to GraphQL API + */ + public useSuspenseQuery = < + TData = any, + TVariables extends OperationVariables = OperationVariables, + >( + query: DocumentNode | TypedDocumentNode<TData, TVariables>, + options?: SuspenseQueryHookOptions<NoInfer<TData>, NoInfer<TVariables>> + ) => { + return useSuspenseQueryBase(query, { + ...options, + featureId: this.featureId, + }); + }; + /** * Hook for making a lazy query call to GraphQL API */ --- packages/allspark-foundation/src/GraphQL/hooks.ts @@ -11,6 +11,8 @@ import { NoInfer, LazyQueryHookOptions, QueryHookOptions, + useSuspenseQuery as useSuspenseQueryBase, + SuspenseQueryHookOptions, } from '@apollo/client'; import { useHttpClient } from '../HTTP'; import { AllsparkGraphQLClient } from './client'; @@ -74,6 +76,31 @@ export const useLazyQuery = < }); }; +/** + * Uses AllsparkGraphQLClient to make a suspense query. + * + * If an AllsparkFeature, use the`createGraphQLClient()` method on the AllsparkFeature instance. + * Then use the useSuspenseQuery hook on that instance instead. + */ +export const useSuspenseQuery = < + TData = any, + TVariables extends OperationVariables = OperationVariables, +>( + query: DocumentNode | TypedDocumentNode<TData, TVariables>, + options?: SuspenseQueryHookOptions<NoInfer<TData>, NoInfer<TVariables>> & { + featureId?: string; + } +) => { + const httpContext = useHttpClient(); + return useSuspenseQueryBase(query, { + ...options, + context: { + featureId: options?.featureId || httpContext?.featureId, + ...(options?.context || {}), + }, + }); +}; + /** * Uses AllsparkGraphQLClient to make a mutation. *
feat: add susupense query support to the graphql client
feat: add susupense query support to the graphql client
2dc2aec96fe3926a12ab9f84fb33677c154fdce2
--- src/translations/en-US.ts @@ -1,29 +1,29 @@ export const enUS = { appNames: { core: 'Me@Walmart', + '@walmart/allspark-health-survey-mini-app': 'Health Survey', '@walmart/allspark-home-mini-app': 'Home', '@walmart/allspark-me-mini-app': 'Me', '@walmart/ask-sam-mini-app': 'Ask Sam', + '@walmart/counts-component-miniapp': 'Counts', + '@walmart/exception-mini-app': 'Pinpoint', + '@walmart/feedback-all-spark-miniapp': 'Feedback', + '@walmart/impersonation-mini-app': 'Impersonation', + '@walmart/inbox-mini-app': 'Inbox', + '@walmart/iteminfo-mini-app': 'Item information', + '@walmart/manager-approvals-miniapp': 'Manager Approvals', '@walmart/metrics-mini-app': 'Metrics', + '@walmart/payrollsolution_miniapp': 'Payroll', + '@walmart/price-changes-mini-app': 'Price Changes', '@walmart/push-to-talk-mini-app': 'Push To Talk', + '@walmart/refrigeration-alarms-mini-app': 'Refrigeration Alarms', '@walmart/schedule-mini-app': 'Schedules', - '@walmart/time-clock-mini-app': 'Time Clock', '@walmart/settings-mini-app': 'Settings', - '@walmart/iteminfo-mini-app': 'Item information', '@walmart/shelfavailability-mini-app': 'Shelf Availability', - '@walmart/feedback-all-spark-miniapp': 'Feedback', - '@walmart/inbox-mini-app': 'Inbox', + '@walmart/taskit-mini-app': 'Tasks', + '@walmart/time-clock-mini-app': 'Time Clock', '@walmart/welcomeme-mini-app': 'Welcome Me', - '@walmart/exception-mini-app': 'Pinpoint', 'react-native-ssmp-sso-allspark': 'Single Sign On', - '@walmart/counts-component-miniapp': 'Counts', - '@walmart/manager-approvals-miniapp': 'Manager Approvals', - '@walmart/price-changes-mini-app': 'Price Changes', - '@walmart/refrigeration-alarms-mini-app': 'Refrigeration Alarms', - '@walmart/taskit-mini-app': 'Tasks', - '@walmart/allspark-health-survey-mini-app': 'Health Survey', - '@walmart/impersonation-mini-app': 'Impersonation', - '@walmart/payrollsolution_miniapp': 'Payroll', }, navigation: { main: 'Me@Walmart', --- src/translations/es-MX.ts @@ -1,29 +1,29 @@ export const esMX = { appNames: { core: 'Me@Walmart', + '@walmart/allspark-health-survey-mini-app': 'Health Survey', '@walmart/allspark-home-mini-app': 'Home', '@walmart/allspark-me-mini-app': 'Me', '@walmart/ask-sam-mini-app': 'Ask Sam', + '@walmart/counts-component-miniapp': 'Counts', + '@walmart/exception-mini-app': 'Pinpoint', + '@walmart/feedback-all-spark-miniapp': 'Feedback', + '@walmart/impersonation-mini-app': 'Impersonation', + '@walmart/inbox-mini-app': 'Inbox', + '@walmart/iteminfo-mini-app': 'Item information', + '@walmart/manager-approvals-miniapp': 'Manager Approvals', '@walmart/metrics-mini-app': 'Metrics', + '@walmart/payrollsolution_miniapp': 'Payroll', + '@walmart/price-changes-mini-app': 'Cambios de precios', '@walmart/push-to-talk-mini-app': 'Push To Talk', + '@walmart/refrigeration-alarms-mini-app': 'Alarmas de Refrigeración', '@walmart/schedule-mini-app': 'Schedules', - '@walmart/time-clock-mini-app': 'Time Clock', '@walmart/settings-mini-app': 'Settings', - '@walmart/iteminfo-mini-app': 'Item information', '@walmart/shelfavailability-mini-app': 'Shelf Availability', - '@walmart/feedback-all-spark-miniapp': 'Feedback', - '@walmart/inbox-mini-app': 'Inbox', + '@walmart/taskit-mini-app': 'Tasks', + '@walmart/time-clock-mini-app': 'Time Clock', '@walmart/welcomeme-mini-app': 'Welcome Me', - '@walmart/exception-mini-app': 'Pinpoint', 'react-native-ssmp-sso-allspark': 'Single Sign On', - '@walmart/counts-component-miniapp': 'Counts', - '@walmart/manager-approvals-miniapp': 'Manager Approvals', - '@walmart/price-changes-mini-app': 'Cambios de precios', - '@walmart/refrigeration-alarms-mini-app': 'Alarmas de Refrigeración', - '@walmart/taskit-mini-app': 'Tasks', - '@walmart/allspark-health-survey-mini-app': 'Health Survey', - '@walmart/impersonation-mini-app': 'Impersonation', - '@walmart/payrollsolution_miniapp': 'Payroll', }, navigation: { main: 'Me@Walmart', --- src/versions/constants.ts @@ -5,27 +5,27 @@ export const ALL_DEPENDENCIES: { } = packageJson.dependencies; export const LISTED_DEPENDENCIES = [ + '@walmart/allspark-health-survey-mini-app', '@walmart/allspark-home-mini-app', '@walmart/allspark-me-mini-app', '@walmart/ask-sam-mini-app', - '@walmart/push-to-talk-mini-app', - '@walmart/schedule-mini-app', - '@walmart/time-clock-mini-app', - '@walmart/feedback-all-spark-miniapp', - '@walmart/settings-mini-app', - '@walmart/refrigeration-alarms-mini-app', + '@walmart/counts-component-miniapp', '@walmart/exception-mini-app', - '@walmart/iteminfo-mini-app', - '@walmart/shelfavailability-mini-app', + '@walmart/feedback-all-spark-miniapp', + '@walmart/impersonation-mini-app', '@walmart/inbox-mini-app', - '@walmart/welcomeme-mini-app', - 'react-native-ssmp-sso-allspark', - '@walmart/counts-component-miniapp', + '@walmart/iteminfo-mini-app', '@walmart/manager-approvals-miniapp', '@walmart/metrics-mini-app', + '@walmart/payrollsolution_miniapp', '@walmart/price-changes-mini-app', + '@walmart/push-to-talk-mini-app', + '@walmart/refrigeration-alarms-mini-app', + '@walmart/schedule-mini-app', + '@walmart/settings-mini-app', + '@walmart/shelfavailability-mini-app', '@walmart/taskit-mini-app', - '@walmart/allspark-health-survey-mini-app', - '@walmart/impersonation-mini-app', - '@walmart/payrollsolution_miniapp', + '@walmart/time-clock-mini-app', + '@walmart/welcomeme-mini-app', + 'react-native-ssmp-sso-allspark', ];
Sort app names (translations and versions)
Sort app names (translations and versions)
70b2060f3537067e0097b00a2d9f82dc8b7b907b
--- src/queries/getDailyRoster.ts @@ -1,6 +1,6 @@ import * as Types from './schema.types'; -import {gql} from '@walmart/allspark-foundation/GraphQL'; +import {gql} from '@walmart/allspark-graphql-client'; import * as ApolloReactCommon from '@walmart/allspark-graphql-client'; import * as ApolloReactHooks from '@walmart/allspark-graphql-client'; const defaultOptions = {} as const; --- src/queries/getTeamById.ts @@ -1,6 +1,6 @@ import * as Types from './schema.types'; -import {gql} from '@walmart/allspark-foundation/GraphQL'; +import {gql} from '@walmart/allspark-graphql-client'; import * as ApolloReactCommon from '@walmart/allspark-graphql-client'; import * as ApolloReactHooks from '@walmart/allspark-graphql-client'; const defaultOptions = {} as const; --- src/queries/getTeamsbyStore.ts @@ -1,6 +1,6 @@ import * as Types from './schema.types'; -import {gql} from '@walmart/allspark-foundation/GraphQL'; +import {gql} from '@walmart/allspark-graphql-client'; import * as ApolloReactCommon from '@walmart/allspark-graphql-client'; import * as ApolloReactHooks from '@walmart/allspark-graphql-client'; const defaultOptions = {} as const; --- src/queries/upsertAssociateTextPreference.ts @@ -1,6 +1,6 @@ import * as Types from './schema.types'; -import {gql} from '@walmart/allspark-foundation/GraphQL'; +import {gql} from '@walmart/allspark-graphql-client'; import * as ApolloReactCommon from '@walmart/allspark-graphql-client'; import * as ApolloReactHooks from '@walmart/allspark-graphql-client'; const defaultOptions = {} as const;
fix(ui): updated imports SMDV-5878
fix(ui): updated imports SMDV-5878
49c8918299c8763fc3983a178149573e33c21786
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.37", + "version": "2.12.38", "main": "dist/index.js", "files": [ "dist" --- src/components/FilterChipGroup/FilterChipGroup.tsx @@ -17,6 +17,7 @@ import { SiteSelectors, } from '@walmart/allspark-foundation'; import {analytics} from '../../logger/analytics'; +import {EMP_TYPE_SALARIED} from '@walmart/allspark-foundation-hub'; export const FilterChipGroup = ({ isPrimaryTeam, @@ -31,7 +32,13 @@ export const FilterChipGroup = ({ const isPeopleLead = useSelector(UserSelectors.getIsUserPeopleLead); const isTeamLead = useSelector(UserSelectors.getIsUserTeamLead); const isSalaried = useSelector(UserSelectors.getIsUserSalaried); - const isSalariedOrLead = isTeamLead || isSalaried || isPeopleLead; + const employeeType: string | undefined = useSelector( + UserSelectors.getEmployeeType, + ); + const isUserSalariedEmployee: boolean = + employeeType?.toUpperCase() === EMP_TYPE_SALARIED; + const isSalariedOrLead = + isTeamLead || isSalaried || isUserSalariedEmployee || isPeopleLead; const isSiteDC = useSelector(SiteSelectors.getWorkingSiteIsDC); const showShiftSwitcher = !isPrimaryTeam && !isSalariedOrLead && isSiteDC; const isShiftSwitcherEnabled = useSelector(shiftSwitcherEnabled); --- src/screens/RosterDetailScreen/StoreRosterDetailScreen.tsx @@ -7,6 +7,7 @@ import { ErrorScreen, TeamSwitcher, ManagerExperienceSelectors, + EMP_TYPE_SALARIED, } from '@walmart/allspark-foundation-hub'; import {RosterDetailPageHeader} from '../../components/RosterDetailPageHeader'; import {RosterFiltersAndInfo} from '../../components/RosterFiltersAndInfo'; @@ -104,8 +105,18 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { const showRoster = useSelector(displayRoster); const showSearchInput = useSelector(displaySearchInput); const showTeamHub: boolean = useSelector(showManagerTeamsHub); + const employeeType: string | undefined = useSelector( + UserSelectors.getEmployeeType, + ); + const isUserSalariedEmployee: boolean = + employeeType?.toUpperCase() === EMP_TYPE_SALARIED; const isSalariedOrLead = - showTeamHub && (isTeamLead || isSalaried || isPeopleLead || isHomeOffice); + showTeamHub && + (isTeamLead || + isSalaried || + isUserSalariedEmployee || + isPeopleLead || + isHomeOffice); const defaultTeamLabel = isSalariedOrLead ? selectedTeamPreference : initialTeamName; --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -10,6 +10,7 @@ import { supplyChainManagerExperienceSlice, SC_ManagerExperienceSelectors as supplyChainSelector, TOTAL_SITE_TEAM_LABEL, + EMP_TYPE_SALARIED, } from '@walmart/allspark-foundation-hub'; import {RosterDetailPageHeader} from '../../components/RosterDetailPageHeader'; import {RosterFiltersAndInfo} from '../../components/RosterFiltersAndInfo'; @@ -116,8 +117,18 @@ export const SupplyChainRosterDetailScreen = ({ const showRoster = useSelector(displayRoster); const showSearchInput = useSelector(displaySearchInput); const showTeamHub: boolean = useSelector(showManagerTeamsHub); + const employeeType: string | undefined = useSelector( + UserSelectors.getEmployeeType, + ); + const isUserSalariedEmployee: boolean = + employeeType?.toUpperCase() === EMP_TYPE_SALARIED; const isSalariedOrLead = - showTeamHub && (isTeamLead || isSalaried || isPeopleLead || isHomeOffice); + showTeamHub && + (isTeamLead || + isSalaried || + isUserSalariedEmployee || + isPeopleLead || + isHomeOffice); const defaultTeamLabel = isSalariedOrLead ? selectedTeamPreference : initialTeamName;
Update roster mini app version
Update roster mini app version
a7443d872cc4601bd8c59fe404107a9633eaca24
--- src/screens/MyWalmartV2/AssociateRosterDetailScreen/AssociateRosterDetailScreen.tsx @@ -44,9 +44,10 @@ export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( useEffect(() => { update({ + visible: !refreshing || !associatesConfig?.loading, insets: {bottom: 80}, }) - }, []); + }, [refreshing, associatesConfig?.loading]); const handleFilterPress = useCallback( (filterId: RosterFilterValue) => {
feat(ui): updating dependencies
feat(ui): updating dependencies
ac285efa9fcdb42c0d5e9c67cf37b1f0fe4e4f64
--- .looper-pr.yml @@ -20,14 +20,19 @@ envs: STAGES_TO_RUN: LINT: true UNITTEST: true - BUILD: false + BUILD: true SONAR_SCAN: true ARTIFACT_PUBLISH: true AUTO_PR_MONO: false + BUILD_TO_RUN: + ANDROID_BUILD: true + IOS_BUILD: true + SAUCELAB_UPLOAD: false + PROXIMITY_UPLOAD: true ALLOW_NPM_PUSH_TO_AF: true JIRAPREFIX: SSMP MONO_REPO: allspark/allspark-core MONO_REPO_BASE_BRANCH: develop AUTHOR: temp SLACK_CHANNEL: "smdv-miniapp" - + BUILD_TYPE: 'SNAPSHOT'
feat(ci): add qa build support
feat(ci): add qa build support
1e8dabbb8107d65794ba6f504b78ccb57fdab15f
--- package-lock.json @@ -77,7 +77,7 @@ "@walmart/receipt-check-miniapp": "1.12.4", "@walmart/redux-store": "3.1.5", "@walmart/returns-mini-app": "0.13.3", - "@walmart/schedule-mini-app": "0.35.0", + "@walmart/schedule-mini-app": "0.36.0", "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.28.14", @@ -3089,6 +3089,15 @@ "@react-native-firebase/app": "15.1.1" } }, + "node_modules/@react-native-firebase/messaging": { + "version": "15.7.0", + "resolved": "https://npme.walmart.com/@react-native-firebase/messaging/-/messaging-15.7.0.tgz", + "integrity": "sha512-c2BLLbBm4kMjbkm1fJ465qZ2o24GHylLxeHSjU63SHIUVhnD5j7rWV/XvumNIEkSWtZmy9v+uGpmArLCAjZraw==", + "license": "Apache-2.0", + "peerDependencies": { + "@react-native-firebase/app": "15.7.0" + } + }, "node_modules/@react-native-firebase/perf": { "version": "15.1.1", "license": "Apache-2.0", @@ -5922,15 +5931,16 @@ } }, "node_modules/@walmart/schedule-mini-app": { - "version": "0.35.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.35.0.tgz", - "integrity": "sha512-V45Z7fH8nNwG5QbgXJRLZgQ46hODVpsu7MO+G+TQbZde2BruW9fN1+D0WrpoHkcBY3GoZgq7qsv/rldocVOahg==", + "version": "0.36.0", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.36.0.tgz", + "integrity": "sha512-0DDJRW0Pksxeh8Tmb3ceTwr7PFNpkxTqcIbLrSs8AWFxJcKk2lezj2qFIUNcL8wKNvezLwD1/GxJBsPBlhkiKA==", "dependencies": { + "@react-native-firebase/messaging": "^15.1.1", "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.2.26", "crypto-js": "^3.3.0", "react-native-tab-view": "^2.4.0", - "wfm-allspark-data-library": "^1.2.0" + "wfm-allspark-data-library": "^1.6.0" }, "peerDependencies": { "@react-native-firebase/remote-config": ">=10.1.1", @@ -5938,20 +5948,17 @@ "@react-navigation/native": ">=6.0.0", "@react-navigation/stack": ">=6.0.0", "@walmart/attendance-mini-app": ">=0.50.0", - "@walmart/functional-components": ">=2.0.0", + "@walmart/core-services": "^2.0.19", "@walmart/gtp-shared-components": ">=0.2.2", - "@walmart/react-native-env": ">=0.1.0", - "@walmart/react-native-logger": "^1.9.0", "@walmart/react-native-shared-navigation": "^0.2.0", "@walmart/redux-store": ">=1.0.15", "@walmart/ui-components": ">=1.0.101", - "i18next": "^19.8.7", + "i18next": "*", "javascript-time-ago": "^2.3.4", "react": ">=18.1.0", "react-i18next": ">=12.0.0", "react-native": ">=0.70.5", "react-native-wm-config": "^0.1.1", - "react-native-wm-telemetry": "^0.3.0", "react-redux": ">=7.2.1", "redux": "^4.0.5", "reselect": ">=4.0.0" @@ -21793,23 +21800,22 @@ "license": "BSD-2-Clause" }, "node_modules/wfm-allspark-data-library": { - "version": "1.4.0", - "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.4.0.tgz", - "integrity": "sha512-5dTFcB7la2gU/N4dotRthj/mTp8gO81hG8rXg0T7ufbveKkDekk65geIu5cnQGoHmJvCsKhCs5yR2quZrfJrCg==", + "version": "1.6.0", + "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.6.0.tgz", + "integrity": "sha512-OMxCgOgFyVelpIujkHAzzonY6PSjw8PHy5SOwm9LU1XpPPwO0RUle+ZXnL1xk9C0rDEEI9YoUuaNXkNpTEbeYQ==", "dependencies": { "azure-storage": "2.10.3", "crypto-js": "^3.3.0", "url": "^0.11.0" }, "peerDependencies": { - "@walmart/functional-components": "^1.0.21", - "@walmart/react-native-env": "^0.1.0", - "@walmart/redux-store": "^1.0.4", + "@walmart/core-services": "~2.0.22", + "@walmart/redux-store": "^3.1.2", "i18next": "*", "moment": "^2.27.0", - "react": "^16.13.1", - "react-native": "^0.63.2", - "redux": "^4.0.1" + "react": ">=18.1.0", + "react-native": ">=0.70.5", + "redux": ">=4.0.0" } }, "node_modules/whatwg-encoding": { @@ -24185,6 +24191,11 @@ "resolved": "https://npme.walmart.com/@react-native-firebase/firestore/-/firestore-15.1.1.tgz", "integrity": "sha512-XU7Zl/IJmL7hUq0syy3jR5AnvExF8j2Crnu7mcaR9aMfbiiEoAUCNtFNVfiA8ff2Owpmwz49qndxNBKEjyftqg==" }, + "@react-native-firebase/messaging": { + "version": "15.7.0", + "resolved": "https://npme.walmart.com/@react-native-firebase/messaging/-/messaging-15.7.0.tgz", + "integrity": "sha512-c2BLLbBm4kMjbkm1fJ465qZ2o24GHylLxeHSjU63SHIUVhnD5j7rWV/XvumNIEkSWtZmy9v+uGpmArLCAjZraw==" + }, "@react-native-firebase/perf": { "version": "15.1.1", "requires": { @@ -25467,15 +25478,16 @@ } }, "@walmart/schedule-mini-app": { - "version": "0.35.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.35.0.tgz", - "integrity": "sha512-V45Z7fH8nNwG5QbgXJRLZgQ46hODVpsu7MO+G+TQbZde2BruW9fN1+D0WrpoHkcBY3GoZgq7qsv/rldocVOahg==", + "version": "0.36.0", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.36.0.tgz", + "integrity": "sha512-0DDJRW0Pksxeh8Tmb3ceTwr7PFNpkxTqcIbLrSs8AWFxJcKk2lezj2qFIUNcL8wKNvezLwD1/GxJBsPBlhkiKA==", "requires": { + "@react-native-firebase/messaging": "^15.1.1", "@walmart/moment-walmart": "1.0.4", "@walmart/wfm-ui": "0.2.26", "crypto-js": "^3.3.0", "react-native-tab-view": "^3.3.0", - "wfm-allspark-data-library": "^1.2.0" + "wfm-allspark-data-library": "^1.6.0" } }, "@walmart/service-environment-js": { @@ -35572,9 +35584,9 @@ "version": "3.0.1" }, "wfm-allspark-data-library": { - "version": "1.4.0", - "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.4.0.tgz", - "integrity": "sha512-5dTFcB7la2gU/N4dotRthj/mTp8gO81hG8rXg0T7ufbveKkDekk65geIu5cnQGoHmJvCsKhCs5yR2quZrfJrCg==", + "version": "1.6.0", + "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-1.6.0.tgz", + "integrity": "sha512-OMxCgOgFyVelpIujkHAzzonY6PSjw8PHy5SOwm9LU1XpPPwO0RUle+ZXnL1xk9C0rDEEI9YoUuaNXkNpTEbeYQ==", "requires": { "azure-storage": "2.10.3", "crypto-js": "^3.3.0", --- package.json @@ -119,7 +119,7 @@ "@walmart/receipt-check-miniapp": "1.12.4", "@walmart/redux-store": "3.1.5", "@walmart/returns-mini-app": "0.13.3", - "@walmart/schedule-mini-app": "0.35.0", + "@walmart/schedule-mini-app": "0.36.0", "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.28.14",
update schedule-mini-app
update schedule-mini-app
7d90673e59f7233713412cae5b67b8f4dddae1c7
--- package-lock.json @@ -4331,9 +4331,9 @@ } }, "@walmart/payrollsolution_miniapp": { - "version": "0.73.0", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.73.0.tgz", - "integrity": "sha512-xZzP0cK11qOvyR0xrFoAu6xY6moyTEIUbVfiYnyQl2UmuG/2iEQ5bC5V4nZKfmTF3VDvD04FZ999xafFllQ1WQ==" + "version": "0.79.0", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.79.0.tgz", + "integrity": "sha512-sQxNKPIjaNOklrZAbhD7ECuWe8l2VogO3nONDgKAW64PVk5eKHuKYhzVr4shbW55P8Yf3UvlNAC3JCyObNllkA==" }, "@walmart/push-to-talk-mini-app": { "version": "0.5.39", @@ -4545,9 +4545,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.38.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.38.0.tgz", - "integrity": "sha512-A9bSzfxkKHh27sERSMTXCqc4vU0TmlTQ8w09DaR6u3ndGYXw18n2F9xPehYEkyj2QNyTWekw6hBJLdaxhu/71g==" + "version": "0.40.0", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.40.0.tgz", + "integrity": "sha512-Pl61FRUs+urKukGmNjb4drlfvVz6TExN6xHcmE/JUUbIDHljuwWq5+S6z8AQNPAe2piqjibHNwuYyNK8RPPU2A==" }, "@walmart/wfm-ui": { "version": "0.1.50",
chore(welecomeMe): version update on payroll to 0.79.0
chore(welecomeMe): version update on payroll to 0.79.0
84e154926c31875edd9534f69b5566024f5d0301
--- package.json @@ -128,7 +128,6 @@ "@walmart/wfm-ui": "0.2.24", "axios": "^0.26.1", "axios-cache-adapter": "2.7.3", - "cpc-input": "^1.7.28", "crypto-js": "^3.3.0", "dayjs": "^1.10.5", "i18n-iso-countries": "^7.5.0", @@ -239,7 +238,6 @@ "adaptive-expressions": "^4.13.5", "adaptivecards-templating": "^2.1.0", "babel-jest": "^26.6.3", - "big-integer": "^1.6.51", "eslint": "^7.14.0", "husky": "^4.2.5", "jest": "^26.6.3",
Update package.json
Update package.json
e164fd32d8080b8ca9f52ac6e01167028d6a6c91
--- core/__tests__/__mocks__/@walmart/iteminfo-mini-app.js @@ -1,5 +1,6 @@ module.exports = { __esModule: true, - default: 'AnimatedLoaderFill', - ItemInfoMiniApp: 'ItemInfoMiniApp', + default: { + buildScreensByTag: () => 'ItemInfoMiniApp', + } }; --- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -56,15 +56,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> - <Screen - component={[Function]} - name="itemInfo" - options={ - { - "headerShown": false, - } - } - /> <Screen component={[Function]} name="shelfAvailability" @@ -153,21 +144,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> - <Screen - component={[Function]} - name="itemInfoQuickAction" - options={ - { - "cardOverlayEnabled": true, - "cardStyle": { - "backgroundColor": "rgba(0, 0, 0, 0)", - }, - "cardStyleInterpolator": [Function], - "headerShown": false, - "presentation": "transparentModal", - } - } - /> <Screen component={[Function]} name="inbox" @@ -554,6 +530,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } /> MetricsScreens + ItemInfoMiniApp <Screen component={[Function]} name="ConnectedCalling" @@ -741,15 +718,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> - <Screen - component={[Function]} - name="itemInfo" - options={ - { - "headerShown": false, - } - } - /> <Screen component={[Function]} name="shelfAvailability" @@ -838,21 +806,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> - <Screen - component={[Function]} - name="itemInfoQuickAction" - options={ - { - "cardOverlayEnabled": true, - "cardStyle": { - "backgroundColor": "rgba(0, 0, 0, 0)", - }, - "cardStyleInterpolator": [Function], - "headerShown": false, - "presentation": "transparentModal", - } - } - /> <Screen component={[Function]} name="inbox" @@ -1239,6 +1192,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } /> MetricsScreens + ItemInfoMiniApp <Screen component={[Function]} name="ConnectedCalling" --- core/src/manifest.ts @@ -65,6 +65,7 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('./features/inbox').InboxFeature, require('./features/listening').ListeningFeature, require('@walmart/metrics-mini-app').default, + require('@walmart/iteminfo-mini-app').default, require('./features/receiving').ReceivingFeature, require('./features/sidekick').SidekickFeature, require('./features/taskIt').TaskItFeature, --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -29,7 +29,7 @@ import { FWB_NAV_SCREEN_NAME, } from '@walmart/financial-wellbeing-feature-app'; import InboxScreen from '@walmart/inbox-mini-app'; -import {ItemInfoMiniApp} from '@walmart/iteminfo-mini-app'; +import ItemInfoMiniApp from '@walmart/iteminfo-mini-app'; import {FieldLearningApp} from '@walmart/learning-mini-app'; import ManagerApprovalsFeature from '@walmart/manager-approvals-miniapp'; import MetricsFeature from '@walmart/metrics-mini-app'; @@ -126,15 +126,6 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [ }, clockCheckEnabled: true, }, - { - featureId: MINI_APPS.ITEM_INFO, - name: 'itemInfo', - component: ItemInfoMiniApp, - options: { - headerShown: false, - }, - clockCheckEnabled: true, - }, { featureId: MINI_APPS.AVAILABILITY, name: 'shelfAvailability', @@ -218,16 +209,7 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [ }, clockCheckEnabled: true, }, - { - featureId: MINI_APPS.ITEM_INFO, - name: 'itemInfoQuickAction', - component: ItemInfoMiniApp, - options: { - presentation: 'transparentModal', - ...ModalTransitionOptions, - }, - clockCheckEnabled: true, - }, + { featureId: MINI_APPS.INBOX, name: 'inbox', @@ -585,6 +567,10 @@ export const MainStackNav = () => { Navigator: MainStack as any, })} + {ItemInfoMiniApp.buildScreensByTag(ScreenTags.AssociateStack, { + Navigator: MainStack as any, + })} + {CallingFeature.buildScreen('ConnectedCalling', { Navigator: MainStack as any, })} --- targets/US/package.json @@ -109,7 +109,7 @@ "@walmart/gtp-shared-components": "2.2.4", "@walmart/ims-print-services-ui": "2.15.3", "@walmart/inbox-mini-app": "0.96.6", - "@walmart/iteminfo-mini-app": "7.16.2", + "@walmart/iteminfo-mini-app": "8.0.1", "@walmart/learning-mini-app": "20.0.35", "@walmart/manager-approvals-miniapp": "0.3.0", "@walmart/me-at-walmart-athena-queries": "6.26.1", @@ -355,4 +355,4 @@ ] } } -} \ No newline at end of file +} --- yarn.lock @@ -6536,9 +6536,9 @@ __metadata: languageName: node linkType: hard -"@walmart/iteminfo-mini-app@npm:7.16.2": - version: 7.16.2 - resolution: "@walmart/iteminfo-mini-app@npm:7.16.2" +"@walmart/iteminfo-mini-app@npm:8.0.1": + version: 8.0.1 + resolution: "@walmart/iteminfo-mini-app@npm:8.0.1" peerDependencies: "@apollo/client": ">=3.7.3" "@react-native-community/art": 1.2.0 @@ -6546,15 +6546,15 @@ __metadata: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" - "@walmart/allspark-utils": ">=1.5.2" - "@walmart/ask-sam-mini-app": ">=1.15.4" + "@walmart/allspark-utils": 6.1.4 + "@walmart/ask-sam-mini-app": ">=1.24.7" "@walmart/config-components": ">=4.2.8" - "@walmart/core-services": ">=2.2.1" - "@walmart/counts-component-miniapp": ">=0.0.21" + "@walmart/core-services": ^6.2.0 + "@walmart/counts-component-miniapp": ">=0.1.13" "@walmart/functional-components": ">=4.0.3" "@walmart/gtp-shared-components": ">=2.1.3" "@walmart/ims-print-services-ui": ">=2.7.1" - "@walmart/price-changes-mini-app": ">=1.4.5" + "@walmart/price-changes-mini-app": ">=1.10.18" "@walmart/react-native-env": ">=0.2.0" "@walmart/react-native-logger": ">=1.34.8" "@walmart/react-native-scanner-3.0": ">=0.4.2" @@ -6571,7 +6571,7 @@ __metadata: react-native-device-info: ">=10.3.0" react-native-gesture-handler: ">=2.14.0" react-native-permissions: ">=3.10.1" - react-native-qrcode-svg: ">=6.1.2" + react-native-qrcode-svg: ">=6.3.2" react-native-safe-area-context: ">=4.7.2" react-native-segmented-control-tab: ">=3.4.1" react-native-sound-player: ">=0.13.2" @@ -6583,7 +6583,7 @@ __metadata: reselect: ">=4.1.0" uuid: ">=3.3.2" victory-native: ">=36.5.0" - checksum: 10c0/f8622cf8174112b58b0a26b5ff12da59df2d8f6468fbab24b9fb01261b102fb7dc2d47d15ac250c55e47c752889d2c0568082f0aa3acc6add5a9e4f12b3c4458 + checksum: 10c0/16f577ffe23fb4ae5a8c7e058b7a410538acebbbb8e77e02a7cf551dc5e7a0a451eebb9e8086b944e8bf601fcfe5582bb34d70f2e5267f20d85754f19194dcda languageName: node linkType: hard @@ -7025,7 +7025,7 @@ __metadata: "@walmart/gtp-shared-components": "npm:2.2.4" "@walmart/ims-print-services-ui": "npm:2.15.3" "@walmart/inbox-mini-app": "npm:0.96.6" - "@walmart/iteminfo-mini-app": "npm:7.16.2" + "@walmart/iteminfo-mini-app": "npm:8.0.1" "@walmart/learning-mini-app": "npm:20.0.35" "@walmart/manager-approvals-miniapp": "npm:0.3.0" "@walmart/me-at-walmart-athena-queries": "npm:6.26.1"
Item Information drop27 bumped version
Item Information drop27 bumped version
17f9dc477a6407b0a6c61dbc871a2d87c81025a3
--- package.json @@ -35,7 +35,7 @@ "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", - "@babel/runtime": "^7.20.0", + "@babel/runtime": "7.25.6", "@firebase/firestore-types": "^2.5.1", "@graphql-codegen/cli": "^2.16.4", "@graphql-codegen/near-operation-file-preset": "^2.5.0", --- yarn.lock @@ -1810,6 +1810,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:7.25.6": + version: 7.25.6 + resolution: "@babel/runtime@npm:7.25.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fruntime%2F-%2Fruntime-7.25.6.tgz" + dependencies: + regenerator-runtime: "npm:^0.14.0" + checksum: 10c0/d6143adf5aa1ce79ed374e33fdfd74fa975055a80bc6e479672ab1eadc4e4bfd7484444e17dd063a1d180e051f3ec62b357c7a2b817e7657687b47313158c3d2 + languageName: node + linkType: hard + "@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.20.0, @babel/runtime@npm:^7.22.5, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.25.0, @babel/runtime@npm:^7.26.10, @babel/runtime@npm:^7.6.3, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2": version: 7.26.10 resolution: "@babel/runtime@npm:7.26.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40babel%2Fruntime%2F-%2Fruntime-7.26.10.tgz" @@ -6382,7 +6391,7 @@ __metadata: dependencies: "@babel/core": "npm:^7.20.0" "@babel/preset-env": "npm:^7.20.0" - "@babel/runtime": "npm:^7.20.0" + "@babel/runtime": "npm:7.25.6" "@firebase/firestore-types": "npm:^2.5.1" "@graphql-codegen/cli": "npm:^2.16.4" "@graphql-codegen/near-operation-file-preset": "npm:^2.5.0"
feat(ui): update package js for roster
feat(ui): update package js for roster
268743f5602d9d1ed9e0380b4eaf3d82073670bd
--- packages/allspark-foundation/src/Network/NetInfoNetworkService.ts @@ -85,7 +85,7 @@ export class NetInfoNetworkService implements INetworkService { } catch (error) { throw new Error( 'NetInfoNetworkService: @react-native-community/netinfo is required but not available. ' + - 'Please install it or provide a custom implementation of INetworkService.' + 'Please install it or provide a custom implementation of INetworkService.' ); } }; --- packages/allspark-foundation/src/Translation/TranslationClient.ts @@ -218,4 +218,4 @@ export class TranslationClient { * This allows the TranslationClient to be used as a drop-in replacement * for the i18n instance in most cases. **/ -export interface TranslationClient extends i18n { } +export interface TranslationClient extends i18n {} --- packages/allspark-foundation/src/User/UserServiceFacade.ts @@ -18,7 +18,8 @@ import { AuthResult } from '../Auth'; */ export class UserServiceFacade extends ServiceFacade<IUserService> - implements IUserService { + implements IUserService +{ // Call the parent class's constructor with the service name constructor() { super('UserServiceFacade'); @@ -38,7 +39,7 @@ export class UserServiceFacade this._showFallbackWarning('fetch'); throw new Error( 'UserServiceFacade.fetch: No user service implementation bound. ' + - 'Please ensure the container is properly initialized with a user service.' + 'Please ensure the container is properly initialized with a user service.' ); }; @@ -58,7 +59,7 @@ export class UserServiceFacade this._showFallbackWarning('impersonate'); throw new Error( 'UserServiceFacade.impersonate: No user service implementation bound. ' + - 'Please ensure the container is properly initialized with a user service.' + 'Please ensure the container is properly initialized with a user service.' ); }; }
chore: lint fixes
chore: lint fixes
80ddb64c465c1b07eaf42b15bd0bee14d7117803
--- __tests__/home/components/CelebrationCard/__snapshots__/indexTest.tsx.snap @@ -243,10 +243,9 @@ exports[`CelebrationCard matches snapshot when loaded; calls navigate on view mo UNSAFE_style={ { "borderRadius": 1000, - "height": 1, - "marginBottom": 16, - "marginTop": 12, - "width": "90%", + "marginHorizontal": 16, + "marginVertical": 12, + "width": 686, } } /> @@ -345,10 +344,9 @@ exports[`CelebrationCard matches snapshot when loading, but with results 1`] = ` UNSAFE_style={ { "borderRadius": 1000, - "height": 1, - "marginBottom": 16, - "marginTop": 12, - "width": "90%", + "marginHorizontal": 16, + "marginVertical": 12, + "width": 686, } } /> --- src/home/components/CelebrationCard/styles.ts @@ -1,7 +1,9 @@ -import {StyleSheet} from 'react-native'; +import {StyleSheet, Dimensions} from 'react-native'; import {colors} from '@walmart/gtp-shared-components-3'; import {Fonts, Metrics} from '../../theme'; +const {width: screenWidth} = Dimensions.get('window'); + export default StyleSheet.create({ container: { paddingTop: Metrics.margins.medium, @@ -35,11 +37,10 @@ export default StyleSheet.create({ paddingHorizontal: Metrics.margins.large, }, dividerRow: { - marginTop: Metrics.margins.medium, - marginBottom: Metrics.margins.large, - height: 1, + marginVertical: Metrics.margins.medium, + marginHorizontal: Metrics.margins.large, borderRadius: Metrics.radius.circle, - width: '90%' + width: screenWidth - 64, }, nameRow: { flexDirection: 'row',
feat(ui): fix divider
feat(ui): fix divider
6229c6c3b27843a814d6456963e9d6cdcfeb0177
--- ios/Podfile.lock @@ -350,7 +350,7 @@ PODS: - React - react-native-get-random-values (1.5.1): - React-Core - - react-native-logger (1.25.0): + - react-native-logger (1.26.0): - React - react-native-netinfo (5.9.7): - React-Core @@ -376,7 +376,7 @@ PODS: - React-Core - react-native-wm-barcode (2.29.0): - React - - react-native-wm-voice-text (0.4.1): + - react-native-wm-voice-text (0.5.0): - React - React-RCTActionSheet (0.63.2): - React-Core/RCTActionSheetHeaders (= 0.63.2) @@ -506,14 +506,14 @@ PODS: - RNWMSSOLibrary (1.1.0): - AppAuth - React - - SSO (= 1.3.3) + - SSO (= 1.3.4) - 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.3): + - SSO (1.3.4): - AppAuth - Starscream (3.0.6) - Yoga (1.14.0) @@ -818,7 +818,7 @@ SPEC CHECKSUMS: react-native-encrypted-storage: 837c733334debf626204f03d867c7e01d8741e2f react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e - react-native-logger: 6d1a4098b9b035278c3691760a45be8ce56acd2e + react-native-logger: 6822d3bbc4e89f0f0f24fb0737a75eb80af89856 react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f react-native-ptt-module: 65c70129b84f1a1d8a9e12bfb6b4ff74f27361a4 @@ -829,7 +829,7 @@ SPEC CHECKSUMS: react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 react-native-wm-barcode: 881d483f23fba207961884289c00ff79cd1fac94 - react-native-wm-voice-text: 80c0b59ff0fab4daf179ee430e4ea285181e3891 + react-native-wm-voice-text: dcd2ab0e035ed425dc60e2eda85463b3602036e6 React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5 React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6 React-RCTBlob: 39cf0ece1927996c4466510e25d2105f67010e13 @@ -866,10 +866,10 @@ SPEC CHECKSUMS: RNSoundPlayer: e7f72cf262c8de4f1427b5f29cc47aebadd1d872 RNSVG: ce9d996113475209013317e48b05c21ee988d42e RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59 - RNWMSSOLibrary: cae03f288b7b8fd5fb77f0029906a828d9962550 + RNWMSSOLibrary: 5ac32b2d4c636f762408dfd6c0eb363a9983b8e7 SDWebImage: 7acbb57630ac7db4a495547fb73916ff3e432f6b SDWebImageWebPCoder: d0dac55073088d24b2ac1b191a71a8f8d0adac21 - SSO: b5011634576e580e95c905aa78a8685f5b39ea66 + SSO: b411029cd497cccfcf0fb44da1cbda2b9fef086b Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 Yoga: 7740b94929bbacbddda59bf115b5317e9a161598 --- package-lock.json @@ -12536,9 +12536,9 @@ "integrity": "sha512-Ls9qiNZzW/OLFoI25wfjjAcrf2DZ975hn2vr6U9gyuxi2nooVbzQeFoQS5vQcbCt9QX5NY8ASEEAtlLdIa6KVg==" }, "react-native-ssmp-sso-allspark": { - "version": "1.1.2", - "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.1.2.tgz", - "integrity": "sha512-cus1fi9mZUc7tf17gPSGnMfnwXZ4SpsERHYkuf5x9UCG0vt6mKREM1V32MRBrVm+2PlRuqZx95TomLH5PUxoAg==" + "version": "1.1.4", + "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-1.1.4.tgz", + "integrity": "sha512-lfv1vPjJEywDL5aH2xLgAHwQ25KFGH5yZx2hB0W/tjPiu9H58mI3VCyzUVRZ4MeWQtrRFUoY5laCz2YV/vfcMw==" }, "react-native-sumo-sdk": { "version": "2.7.4-rc.9", --- package.json @@ -119,7 +119,7 @@ "react-native-sha256": "^1.3.6", "react-native-sound-player": "0.10.9", "react-native-splash-screen": "^3.2.0", - "react-native-ssmp-sso-allspark": "1.1.2", + "react-native-ssmp-sso-allspark": "1.1.4", "react-native-sumo-sdk": "^2.7.4-rc.9", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.15.2",
upgrading to new SSO with browser fix
upgrading to new SSO with browser fix
d0b4c3f6418c86c715849065397ec5650cc770d5
--- __tests__/logger/logger.test.tsx @@ -1,7 +1,7 @@ import {TextingLogger} from '../../src/logger/Logger'; const {DefaultLogger} = require('@walmart/react-native-logger'); -const LOGGER_APP_KEY = 'texting'; +const LOGGER_APP_KEY = 'roster'; jest.mock('@walmart/react-native-logger', () => ({ DefaultLogger: { @@ -17,11 +17,11 @@ jest.mock('@walmart/react-native-logger', () => ({ }, })); -describe('TextingLogger', () => { - let textingLogger: TextingLogger; +describe('rosterLogger', () => { + let rosterLogger: TextingLogger; beforeEach(() => { - textingLogger = new TextingLogger(DefaultLogger); + rosterLogger = new TextingLogger(DefaultLogger); }); afterEach(() => { @@ -30,54 +30,54 @@ describe('TextingLogger', () => { it('should set config', () => { const config = {testConfig: 'testConfig'}; - textingLogger.setConfig(config); + rosterLogger.setConfig(config); expect(DefaultLogger.setConfig).toHaveBeenCalledWith(config); }); it('should log debug messages', () => { const message = 'Debug message'; const params = {test: 'test'}; - textingLogger.debug(message, params); + rosterLogger.debug(message, params); expect(DefaultLogger.debug).toHaveBeenCalledWith(message, params); }); it('should log error messages with additional checks', () => { const message = 'Error message'; const params = {message: 'Error message details'}; - textingLogger.error(message, params); + rosterLogger.error(message, params); expect(DefaultLogger.error).toHaveBeenCalledWith(message, params); }); it('should not log error messages if there is no params', () => { const message = 'Error message'; const params = null; - textingLogger.error(message, params); + rosterLogger.error(message, params); expect(DefaultLogger.error).not.toBeCalled(); }); it('should set session info messages with user object', () => { const sessionInfo = 'test session'; - textingLogger.setSessionInfo(sessionInfo); + rosterLogger.setSessionInfo(sessionInfo); expect(DefaultLogger.setSessionInfo).toHaveBeenCalledWith(sessionInfo); }); it('should clone config with fields', () => { const config = {config: 'test config'}; const fields = {fields: 'additional fields'}; - textingLogger.clone(config, fields); + rosterLogger.clone(config, fields); expect(DefaultLogger.clone).toHaveBeenCalledWith(config, fields); }); it('should set logLevel', () => { const logLevel = 'DEBUG'; - textingLogger.setLogLevel(logLevel); + rosterLogger.setLogLevel(logLevel); expect(DefaultLogger.setLogLevel).toHaveBeenCalledWith(logLevel); }); it('should log info messages', () => { const message = 'info message'; const params = {test: 'test'}; - textingLogger.info(message, params); + rosterLogger.info(message, params); expect(DefaultLogger.info).toHaveBeenCalledWith(message, params); }); @@ -85,13 +85,13 @@ describe('TextingLogger', () => { it('should log warn messages', () => { const message = 'warn message'; const params = {test: 'test'}; - textingLogger.warn(message, params); + rosterLogger.warn(message, params); expect(DefaultLogger.warn).toHaveBeenCalledWith(message, params); }); it('should set user info', () => { const userInfo = {info: 'user details'}; - textingLogger.setUserInfo(userInfo); + rosterLogger.setUserInfo(userInfo); expect(DefaultLogger.setUserInfo).toHaveBeenCalledWith(userInfo); }); });
renamed test class from texting to roster
renamed test class from texting to roster
1055e9ce9aad01c5316f82d1cc578821e897b6f3
--- package-lock.json @@ -87,7 +87,7 @@ "@walmart/receipt-check-miniapp": "1.19.3", "@walmart/redux-store": "3.7.0", "@walmart/returns-mini-app": "3.13.0", - "@walmart/schedule-mini-app": "0.92.0", + "@walmart/schedule-mini-app": "0.93.0", "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.26.2", "@walmart/taskit-mini-app": "2.57.5", @@ -9752,9 +9752,9 @@ } }, "node_modules/@walmart/schedule-mini-app": { - "version": "0.92.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.92.0.tgz", - "integrity": "sha512-I3MUiiBmnLfvL0TswqP4Ah8CUSvT0xY5JMa/7MFkmylzhvvTE5d3DjNWhstTzcZWfiHxlZpxrWbr9RJe9LFJqg==", + "version": "0.93.0", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.93.0.tgz", + "integrity": "sha512-8ggiqjIqw+qkhd94q3nYzPiKmsf9Fp79mpnW8N9YOR8IJf7PHbvOvt0Vxu18mo21TZ8avzXc9ev3f+EfXfS0Xw==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "^0.8.4", @@ -33497,7 +33497,7 @@ "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.24.tgz", "integrity": "sha512-oFv/1KYE/qpXbrVZivQI7HKgB6f7O2dRbSyYYWQIO/MF9mPqf2hoJzjE6uh9aIJEWe8yG4Ze5pnC3H6L31Nw+g==", "requires": { - "@walmart/functional-components": "~4.0.3" + "@walmart/functional-components": "~4.0.3" } }, "@walmart/pay-stub-miniapp": { @@ -33610,9 +33610,9 @@ } }, "@walmart/schedule-mini-app": { - "version": "0.92.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.92.0.tgz", - "integrity": "sha512-I3MUiiBmnLfvL0TswqP4Ah8CUSvT0xY5JMa/7MFkmylzhvvTE5d3DjNWhstTzcZWfiHxlZpxrWbr9RJe9LFJqg==", + "version": "0.93.0", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.93.0.tgz", + "integrity": "sha512-8ggiqjIqw+qkhd94q3nYzPiKmsf9Fp79mpnW8N9YOR8IJf7PHbvOvt0Vxu18mo21TZ8avzXc9ev3f+EfXfS0Xw==", "requires": { "@walmart/moment-walmart": "1.0.4", "@walmart/wfm-ui": "^0.8.4", --- package.json @@ -128,7 +128,7 @@ "@walmart/receipt-check-miniapp": "1.19.3", "@walmart/redux-store": "3.7.0", "@walmart/returns-mini-app": "3.13.0", - "@walmart/schedule-mini-app": "0.92.0", + "@walmart/schedule-mini-app": "0.93.0", "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.26.2", "@walmart/taskit-mini-app": "2.57.5",
bumping schedule-mini-app for Drop19
bumping schedule-mini-app for Drop19
415321ae8ce1f6c48e3ce1a0157c09537f882daf
--- package-lock.json @@ -4175,9 +4175,9 @@ "integrity": "sha512-QCq3JOlevxQpSY2QdNgG2lpy+eVCpicsvqmNI96xvgWgXqHnU2G5tmlzO/87gyPsmG0UE/kDCNaA6oW7fXOXJA==" }, "@walmart/ask-sam-mini-app": { - "version": "0.40.11", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.40.11.tgz", - "integrity": "sha512-dltpqsFmVKeAmqLcXZY41vyUrMdLuFL1ShTGGDvB4m3J+capvh16GcebaOvueuz/DENlrP3NqGB2G2nGnzd9Gg==", + "version": "0.41.5", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.41.5.tgz", + "integrity": "sha512-fHI3rCSUJU6nxSIU2UsYEFWItPGV6lChS3EPa/JVy7znkZAVOxPVG/WeH0W0v5Gbhf1zMeP+g8EHmfSJECJeRA==", "requires": { "apisauce": "^1.1.2", "axios-cache-adapter": "^2.7.3", @@ -4427,6 +4427,7 @@ "integrity": "sha512-+jm0akPlgBHkpvYII2MH0AqmaR/hXsWxws6xQjh73jaKjPuFViYhLGDTXRdN30+svmQ/nVpRv8XFOWeEUn4/ng==", "requires": { "@walmart/moment-walmart": "^1.0.4", + "@walmart/wfm-ui": "0.2.11", "crypto-js": "^3.3.0", "react-native-tab-view": "^2.4.0", "reselect": "^4.0.0", @@ -4434,9 +4435,9 @@ }, "dependencies": { "@walmart/wfm-ui": { - "version": "0.2.14", - "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.2.14.tgz", - "integrity": "sha512-G1Nv0A4Y3OXSSs3fHkg/gJOBAmPHpdJvhVOQrk8Fug9ObcBkMWZTdpKrY6KDLgGjVa306UFnbS+iPf+plBwqpA==", + "version": "0.2.11", + "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.2.11.tgz", + "integrity": "sha512-NIsEkS1LnNwYmwUAOWSsViqRfS99jR1xTy0ViZm3OCeFDONcDYaSF/jTpfvaQDYM0kXG3aehJk1MGEeW43bJmg==", "requires": { "@walmart/moment-walmart": "1.0.3", "lodash": "^4.17.20", --- package.json @@ -74,7 +74,7 @@ "@walmart/allspark-home-mini-app": "0.5.30", "@walmart/allspark-me-mini-app": "0.31.9", "@walmart/allspark-neon-core": "0.1.26", - "@walmart/ask-sam-mini-app": "^0.40.11", + "@walmart/ask-sam-mini-app": "0.41.5", "@walmart/config-components": "3.0.2", "@walmart/counts-component-miniapp": "0.0.34", "@walmart/exception-mini-app": "0.40.3",
bump ask sam version
bump ask sam version
9d3e836d5182d6c6668094887a4d7618c6a5cc21
--- package-lock.json @@ -19453,9 +19453,9 @@ } }, "react-native-wm-barcode": { - "version": "2.36.3", - "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.36.3.tgz", - "integrity": "sha512-U+Kh0hOf2meySLdzuydlWk/PUn0WFkRuJhaHEGWfjrOb1WrCy+Otzh7Hnl35PVOMfxVldzn606CzMPtj/qGMSg==" + "version": "2.36.4", + "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.36.4.tgz", + "integrity": "sha512-AoHUibBYTRy6GOqiSC5j0BXRyiOP2dV/TcynBSvPPdfLFZrGtxPgMbZicRNnKFfUJLKF+Z+r54FBZMXrH4s4dg==" }, "react-native-wm-config": { "version": "0.1.1", --- package.json @@ -176,7 +176,7 @@ "react-native-vision-camera": "1.0.10", "react-native-webview": "^10.7.0", "react-native-wm-app-review": "^0.2.0-rc.3", - "react-native-wm-barcode": "2.36.3", + "react-native-wm-barcode": "2.36.4", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.2.0", "react-native-wm-notification": "^2.0.1",
Updated scanner plugin version for new telemetry events
Updated scanner plugin version for new telemetry events
f513966047bb241d239859b90bf2b8cece33ba3b
--- core/__tests__/rbac/RbacSagasTest.tsx @@ -1,7 +1,6 @@ -import {takeLatest, select, put} from 'redux-saga/effects'; +import {takeLatest, select, put, call} from 'redux-saga/effects'; import { NavConfigActionCreators, - NavConfigSelectors, NavType, } from '@walmart/allspark-foundation/Navigation'; import {EnvironmentSelectors} from '@walmart/allspark-foundation/Environment'; @@ -9,6 +8,7 @@ import {EnvironmentSelectors} from '@walmart/allspark-foundation/Environment'; import {getRbacData, getRbacEnabledApps} from '../../src/rbac/selectors'; import {onRbacRequest, watchForRbacRequest} from '../../src/rbac/RbacSagas'; import {RbacLogger} from '../../src/rbac/utils'; +import {waitForNavConfigFetch} from '@walmart/allspark-foundation/Navigation/config/sagas'; const LoggerSpy = jest.spyOn(RbacLogger, 'error'); @@ -90,7 +90,7 @@ describe('onRbacRequest', () => { expect( iterator.next({rmaMegaNavId: '01d285d7-6ec4-45e1-96a5-74365d3b8a6d'}) .value, - ).toEqual(select(NavConfigSelectors.getData)); + ).toEqual(call(waitForNavConfigFetch)); expect(iterator.next(null).done).toEqual(true); }); @@ -104,7 +104,7 @@ describe('onRbacRequest', () => { expect( iterator.next({rmaMegaNavId: '01d285d7-6ec4-45e1-96a5-74365d3b8a6d'}) .value, - ).toEqual(select(NavConfigSelectors.getData)); + ).toEqual(call(waitForNavConfigFetch)); expect(iterator.next(unmodifiedMeganavData).value).toEqual( put(NavConfigActionCreators.FETCH_SUCCESS(modifiedMeganavData)), ); --- core/src/oneClick/OneClickSagas.tsx @@ -1,27 +1,30 @@ -import {takeLatest, select, put} from 'redux-saga/effects'; +import {takeLatest, select, put, call} from 'redux-saga/effects'; import {createRestartableSaga} from '@walmart/allspark-utils'; import { ConfigSelectors, ConfigActionTypes, + ConfigData, } from '@walmart/allspark-foundation/Config'; import { NavConfigActionCreators, NavConfigData, - NavConfigSelectors, NavConfigActionTypes, } from '@walmart/allspark-foundation/Navigation'; +import {waitForNavConfigFetch} from '@walmart/allspark-foundation/Navigation/config/sagas'; import {Logger} from '../core/Logger'; import {updateMegaNavCCM} from './utility/updateMegaNavCCM'; -export function* onOneClickRequest(): any { +export function* onOneClickRequest() { try { // App config data - const appConfigData = yield select(ConfigSelectors.getData); + const appConfigData: ConfigData | null = yield select( + ConfigSelectors.getData, + ); // If no meganav data, stop here - const meganavData: NavConfigData = yield select(NavConfigSelectors.getData); + const meganavData: NavConfigData | null = yield call(waitForNavConfigFetch); if (!meganavData) { return; } @@ -46,9 +49,8 @@ export function* watchForAppConfigRequest() { takeLatest( [ ConfigActionTypes.FETCH_SUCCESS, - NavConfigActionTypes.FETCH_SUCCESS, - NavConfigActionTypes.STATE_CHANGED, ConfigActionTypes.BACKGROUND_REFRESH, + NavConfigActionTypes.STATE_CHANGED, ], onOneClickRequest, ), --- core/src/rbac/RbacSagas.tsx @@ -1,10 +1,10 @@ -import {select, put, takeLatest} from 'redux-saga/effects'; +import {select, put, takeLatest, call} from 'redux-saga/effects'; import { NavConfigActionCreators, NavConfigData, - NavConfigSelectors, } from '@walmart/allspark-foundation/Navigation'; +import {waitForNavConfigFetch} from '@walmart/allspark-foundation/Navigation/config/sagas'; import {EnvironmentSelectors} from '@walmart/allspark-foundation/Environment'; import {createRestartableSaga} from '@walmart/allspark-utils'; import {IMeAtWalmartEnvironment} from '@walmart/me-at-walmart-common'; @@ -13,7 +13,7 @@ import {modifyNavConfigForRbacPermissions, RbacLogger} from './utils'; import {getRbacData, getRbacEnabledApps} from './selectors'; import {RbacData} from './types'; -export function* onRbacRequest(): any { +export function* onRbacRequest() { try { const rbacEnabledApps: string[] = yield select(getRbacEnabledApps); @@ -33,7 +33,7 @@ export function* onRbacRequest(): any { } // If no meganav data, stop here - const meganavData: NavConfigData = yield select(NavConfigSelectors.getData); + const meganavData: NavConfigData | null = yield call(waitForNavConfigFetch); if (!meganavData) { return; } --- targets/US/ios/Podfile.lock @@ -2910,7 +2910,7 @@ SPEC CHECKSUMS: walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 - Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee + Yoga: c716aea2ee01df6258550c7505fa61b248145ced PODFILE CHECKSUM: 17e750d8df86ae62ba07284ce6cb973a761640ea
fix: one click saga causing infinite loop
fix: one click saga causing infinite loop
b211e23847b1878e250d797bbab92bce1a911d44
--- src/components/AssociateRosterItem/types.ts @@ -9,6 +9,7 @@ export type AssociateItemProps = { style?: StyleProp<ViewStyle>; }; +// eslint-disable-next-line no-shadow export enum StatusColors { ABSENT = 'red', TARDY = 'gray', --- src/constants.ts @@ -3,6 +3,7 @@ export const RNFBConfigAndroid = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const RNFBConfigiOS = '75AC25EB-432A-47D1-855A-84728D2AB60C'; //TODO: Does absent status need to be managed by this app or is there a third party to pull this from? +// eslint-disable-next-line no-shadow export enum ABSENT_STATUS { ABSENT = 1, TARDY = 2, --- src/components/AssociateRosterItem/types.ts @@ -9,6 +9,7 @@ export type AssociateItemProps = { style?: StyleProp<ViewStyle>; }; +// eslint-disable-next-line no-shadow export enum StatusColors { ABSENT = 'red', TARDY = 'gray', --- src/constants.ts @@ -3,6 +3,7 @@ export const RNFBConfigAndroid = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const RNFBConfigiOS = '75AC25EB-432A-47D1-855A-84728D2AB60C'; //TODO: Does absent status need to be managed by this app or is there a third party to pull this from? +// eslint-disable-next-line no-shadow export enum ABSENT_STATUS { ABSENT = 1, TARDY = 2,
adding no-shadow ignore
adding no-shadow ignore
ff29c3c4aa3e6d5cd9c5c5b28d4849c5fa4aeba5
--- package.json @@ -19,7 +19,7 @@ "env:prod": "yarn workspaces foreach --all -p run env:prod", "env:teflon": "yarn workspaces foreach --all -p run env:teflon", "fixDependencies": "sh targets/US/scripts/fixDependencies.sh", - "jetifier": "yarn workspaces foreach --all -p run jetifier", + "jetifier": "jetifier", "increment:buildNumber": "yarn workspaces foreach --all -p run increment:buildNumber", "lint": "eslint ./targets/**/src ./packages/**/src ./core/src --ext .js,.jsx,.ts,.tsx --max-warnings 3", "lint:fix": "eslint ./targets/**/src ./packages/**/src ./core/src --ext .js,.jsx,.ts,.tsx --fix",
chore: fix jetifier command
chore: fix jetifier command
0e914e681a4e229ac7e0c2b855c6eeed3861d392
--- package-lock.json @@ -63,7 +63,7 @@ "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", "@walmart/ims-print-services-ui": "2.8.0", - "@walmart/inbox-mini-app": "0.90.0-485-4dc92e2", + "@walmart/inbox-mini-app": "0.90.1", "@walmart/iteminfo-mini-app": "7.8.3", "@walmart/learning-mini-app": "18.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", @@ -9149,9 +9149,9 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.90.0-485-4dc92e2", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.90.0-485-4dc92e2.tgz", - "integrity": "sha512-ViJTzS+xTOaKmE3FPjU9gTFNwWBCgSu7jHhLiKgkxhhguWzb7SIZujfoqyWjew39mO8Z7NqBAheN4bV7XxUyWQ==", + "version": "0.90.1", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.90.1.tgz", + "integrity": "sha512-AfGKqQFlgv8jNTQLqMjdL3mXRsKXPqf3J24vJK/DqEprGFvllPW/BRQufbEbH78p0jG4RAey8/Kd2K4G+nGbfQ==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" --- package.json @@ -104,7 +104,7 @@ "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", "@walmart/ims-print-services-ui": "2.8.0", - "@walmart/inbox-mini-app": "0.90.0-485-4dc92e2", + "@walmart/inbox-mini-app": "0.90.1", "@walmart/iteminfo-mini-app": "7.8.3", "@walmart/learning-mini-app": "18.0.3", "@walmart/manager-approvals-miniapp": "0.2.4",
inbox version updated
inbox version updated
6ada28497654250e500eef79bb60962bd9e17f60
--- .looper-pr.yml @@ -32,3 +32,4 @@ envs: +
feat(ui): update concord #SMDV-99991
feat(ui): update concord #SMDV-99991
255d72b1a47b6b0c3ca24dc64c4e75ae6604e8fc
--- package-lock.json @@ -82,7 +82,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.20.0", + "@walmart/time-clock-mini-app": "2.21.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26", @@ -6846,9 +6846,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.20.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.20.0.tgz", - "integrity": "sha512-ss41YNJjr+PxbhDmgxz3YOtFQU0IivPHjng+EFacbimvaIzwAjoG4EU5zAiSb0ykY4s/PYno1g6WgFZf2j3fRw==", + "version": "2.21.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.21.0.tgz", + "integrity": "sha512-c66wic5ucMdCxCdJVrLpqPUUKheAeisYG+BaaIVkeeWbUlNvQJIRTVTa9k0gyU3bqmYRqTgXjghKJz+PMoKLXg==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -29503,9 +29503,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.20.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.20.0.tgz", - "integrity": "sha512-ss41YNJjr+PxbhDmgxz3YOtFQU0IivPHjng+EFacbimvaIzwAjoG4EU5zAiSb0ykY4s/PYno1g6WgFZf2j3fRw==", + "version": "2.21.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.21.0.tgz", + "integrity": "sha512-c66wic5ucMdCxCdJVrLpqPUUKheAeisYG+BaaIVkeeWbUlNvQJIRTVTa9k0gyU3bqmYRqTgXjghKJz+PMoKLXg==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -124,7 +124,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.2", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.20.0", + "@walmart/time-clock-mini-app": "2.21.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26",
Update Time Clock Mini App to 2.21.0
Update Time Clock Mini App to 2.21.0
7b94989ff91dd960ac31a417958dceafb4328471
--- packages/me-at-walmart-container/src/services/logger.ts @@ -65,6 +65,11 @@ class LoggerClient { id, ...fields, }); + /** + * Session Info is not maintained across logger instances by react-native-logger. + * We must manually set on each instance to ensure it is included in logs. + */ + this._logger.setSessionInfo(SESSION_ID); } public setLogLevel = (level: LogLevel, overrides?: TLogLevelOverride[]) => { @@ -138,7 +143,12 @@ export class LoggerClientManager { }; public getContainerInstance = () => { - return this._instances.get('container')!; + const instance = this._instances.get('container')!; + + return Object.assign(instance, { + setConfig: DefaultLogger.setConfig, + setUserInfo: DefaultLogger.setUserInfo, + }); }; /** @@ -159,19 +169,10 @@ export const MeAtWalmartLoggerService = LoggerServiceCreator( export type IMeAtWalmartLoggerService = typeof MeAtWalmartLoggerService; /** - * Set session ID immediately. The react-native-logger does not maintain session info across instances. - * Meaning any instances created before the session ID is set will not have the session ID. + * Container level logger to be used across the container package. */ -DefaultLogger.setSessionInfo(SESSION_ID); - -const ContainerLogger = - MeAtWalmartLoggerService.createFeatureInstance('container'); - -export const MeAtWalmartLogger = Object.assign(ContainerLogger, { - setConfig: DefaultLogger.setConfig, - setSessionInfo: DefaultLogger.setSessionInfo, - setUserInfo: DefaultLogger.setUserInfo, -}); +export const MeAtWalmartLogger = + MeAtWalmartLoggerService.getContainerInstance(); // Re-exporting logger types export { LoggerLevel };
refactor: set session info on logger client creation to ensure its on all instances
refactor: set session info on logger client creation to ensure its on all instances
71f9b6865e15783f8b7de10132ec150b14082a7c
--- package.json @@ -92,7 +92,7 @@ "@walmart/attendance-mini-app": "3.174.2", "@walmart/avp-feature-app": "0.25.32", "@walmart/avp-shared-library": "0.25.28", - "@walmart/backroom-mini-app": "1.13.3", + "@walmart/backroom-mini-app": "1.15.9", "@walmart/calling-mini-app": "0.7.64", "@walmart/checkout-mini-app": "4.17.0", "@walmart/compass-sdk-rn": "6.2.851", --- src/manifest.ts @@ -115,6 +115,7 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('@walmart/global-vpi-mini-app').GlobalVpiFeatureModule, require('@walmart/shop-gnfr-mini-app').default, require('@walmart/profile-feature-app').UPV2FeatureModule, + require('@walmart/backroom-mini-app').BackroomFeatureModule, ); } --- yarn.lock @@ -7806,9 +7806,9 @@ __metadata: languageName: node linkType: hard -"@walmart/backroom-mini-app@npm:1.13.3": - version: 1.13.3 - resolution: "@walmart/backroom-mini-app@npm:1.13.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.13.3.tgz" +"@walmart/backroom-mini-app@npm:1.15.9": + version: 1.15.9 + resolution: "@walmart/backroom-mini-app@npm:1.15.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fbackroom-mini-app%2F-%2F%40walmart%2Fbackroom-mini-app-1.15.9.tgz" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -7820,7 +7820,6 @@ __metadata: axios: ">=0.26.1" react: "*" react-native: "*" - react-native-flipper: ">=0.212.0" react-native-gesture-handler: ">=2.9.0" react-native-mask-input: ">=1.2.3" react-native-new-snap-carousel: ">=3.9.3" @@ -7831,7 +7830,7 @@ __metadata: react-native-svg-transformer: ">=1.0.0" react-redux: ">=8.0.0" redux: ">=4.0.0" - checksum: 10c0/1c329fbe338eac0ca3009923d7909f42479e158b9feb900dfc42c672c3b47f259dc8f31eb7b9cee7340a1ce3a413b0276e66c553cc84bbc83d17c4d001555249 + checksum: 10c0/d576e846606218ddd3c76e169b97e9a0d358c00b84317ebe315a0a27d8493018d20d323b6aa44a8c61b98b33d178de988f69bed4d4b90a3c4d08debacc13dcf5 languageName: node linkType: hard @@ -8644,7 +8643,7 @@ __metadata: "@walmart/attendance-mini-app": "npm:3.174.2" "@walmart/avp-feature-app": "npm:0.25.32" "@walmart/avp-shared-library": "npm:0.25.28" - "@walmart/backroom-mini-app": "npm:1.13.3" + "@walmart/backroom-mini-app": "npm:1.15.9" "@walmart/calling-mini-app": "npm:0.7.64" "@walmart/checkout-mini-app": "npm:4.17.0" "@walmart/compass-sdk-rn": "npm:6.2.851"
feat: SVZPK-4700 Add multi filter feature (#4599)
feat: SVZPK-4700 Add multi filter feature (#4599) * feat: SVZPK-4700 Add multi filter feature * feat: add backroom mini app to manifest file --------- Co-authored-by: Mahabubee Shaik <m0s0nc1@walmart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
33f1707405d5aa626ff753f5284e32a363954c60
--- __tests__/__snapshots__/AppTest.tsx.snap @@ -2,14 +2,14 @@ exports[`RootContainer renders and fires startup event 1`] = ` <Provider - env="dev" + env="beta" environmentOverrides={{}} /> `; exports[`RootContainer renders with no linking config on undefined userid 1`] = ` <Provider - env="dev" + env="beta" environmentOverrides={{}} /> `;
test case fidx
test case fidx
b35a3fb9c7d6b6547fd8398d654773d5bc264899
--- package.json @@ -79,7 +79,7 @@ "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.56", - "@walmart/attendance-mini-app": "0.53.0", + "@walmart/attendance-mini-app": "0.56.0", "@walmart/config-components": "4.0.2", "@walmart/core-services": "~1.4.11", "@walmart/core-services-allspark": "~2.2.2", @@ -336,4 +336,4 @@ "pre-push": "run-p solidarity coverage" } } -} +} \ No newline at end of file
Update attendance mini app to 0.56.0
Update attendance mini app to 0.56.0
ce228d4449034e88c1b4df64f9aeccb4bbf4e977
--- packages/allspark-foundation-hub/__tests__/HubFeature/__snapshots__/TeamListItem.test.tsx.snap @@ -45,7 +45,7 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`] } /> <View - accessibilityLabel="Management 93 Clocked in" + accessibilityLabel="Management" accessibilityRole="header" accessible={true} style={ @@ -61,26 +61,13 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`] "color": "#2e2f32", "fontFamily": "Bogle-Regular", "fontSize": 16, - "fontWeight": "700", + "fontWeight": "400", "lineHeight": 24, } } > Management </Text> - <Text - style={ - { - "color": "#2e2f32", - "fontFamily": "Bogle-Regular", - "fontSize": 14, - "fontWeight": "400", - "lineHeight": 20, - } - } - > - 93 Clocked in - </Text> </View> </View> <View @@ -203,7 +190,7 @@ exports[`TeamListItem renders list item for team selection correctly 1`] = ` } /> <View - accessibilityLabel="Management " + accessibilityLabel="Management" accessibilityRole="header" accessible={true} style={
feat(ui): updated snaps
feat(ui): updated snaps
ab896102b89b5472a1ca06ac0d913a803cc611b5
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.1-beta.1", + "version": "1.0.1-beta.2", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Update the bottomsheet navigation
Update the bottomsheet navigation
6916125a044ccee8439f9c3f3ebe03638d4deada
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.23.0", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.23.0.tgz", - "integrity": "sha512-2skFf6lro77QWa4FNUCzfItOqYvd0E3Vu42S2+ptPJkmnSIj1w/d7ZwnRfN3151QmVI0hPoYgSrJwnjh5AregA==", + "version": "0.25.0", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.25.0.tgz", + "integrity": "sha512-hoFctbJYh/4Wa1i3duRmHN72dOdMQlU3vqh+BUYawirSYNiO8lLfKf3DqDqvtJ9MP2JrgqUW3NSMg/F/yVy0rA==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", @@ -12614,9 +12614,9 @@ } }, "react-native-wm-barcode": { - "version": "2.24.0-patch.1", - "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.24.0-patch.1.tgz", - "integrity": "sha512-TKBYktC65sECtmWF3dpdvk3QaFiWb2bLA2tBY9nvK6JnmQLN7VT7lMfMTzhNmYXM1qOG+N668aWso4fC0Hxpjw==" + "version": "2.25.0", + "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.25.0.tgz", + "integrity": "sha512-xmSBA8p4Zol8ANcEytrb3cGukmnVCbVqRzRFXKOcKH1LPMVn/wnWEQ0itu8x24k4/guMa/Mf8vagstrCjAnMGg==" }, "react-native-wm-config": { "version": "0.1.1", --- package.json @@ -66,7 +66,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.38", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0", - "@walmart/ask-sam-mini-app": "0.23.0", + "@walmart/ask-sam-mini-app": "0.25.0", "@walmart/config-components": "1.0.21", "@walmart/feedback-all-spark-miniapp": "0.0.50", "@walmart/functional-components": "1.0.27", @@ -129,7 +129,7 @@ "react-native-video": "^5.1.0-alpha8", "react-native-view-shot": "^3.1.2", "react-native-webview": "^10.7.0", - "react-native-wm-barcode": "2.24.0-patch.1", + "react-native-wm-barcode": "2.25.0", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.1.0", "react-native-wm-notification": "^1.0.0",
updated barcode scanner and ask sam version
updated barcode scanner and ask sam version
e67c902401faf322a11bff0e32d29215aa661455
--- packages/allspark-foundation-hub/src/Store/Modules/Hub/HubDashboard.tsx @@ -24,7 +24,6 @@ import { telemetryLogHandler, telemetryEventsHandler, createDefaultWidgetPlaceholder, - MY_TEAMS_TEAM_ID, } from '../../../Shared'; import styles from './styles'; import { Body } from '@walmart/gtp-shared-components';
lint fix
lint fix
783cff805287afdb695f2b99a69c9797ab1da543
--- packages/allspark-cli/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.7.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-cli@1.7.0...@walmart/allspark-cli@1.7.1) (2025-11-10) + +**Note:** Version bump only for package @walmart/allspark-cli + # [1.7.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-cli@1.6.0...@walmart/allspark-cli@1.7.0) (2025-11-06) ### Features --- packages/allspark-cli/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-cli", - "version": "1.7.0", + "version": "1.7.1", "description": "Allspark CLI: CLI tools for allspark clients", "main": "dist/index.js", "types": "dist/index.d.ts", --- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.22.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.22.0...@walmart/allspark-foundation-hub@1.22.1) (2025-11-10) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + # [1.22.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.21.1...@walmart/allspark-foundation-hub@1.22.0) (2025-11-07) ### Features --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.22.0", + "version": "1.22.1", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.12.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.12.0...@walmart/allspark-foundation@7.12.1) (2025-11-10) + +**Note:** Version bump only for package @walmart/allspark-foundation + # [7.12.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.11.2...@walmart/allspark-foundation@7.12.0) (2025-11-07) ### Features --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.12.0", + "version": "7.12.1", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/me-at-walmart-geolocation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.4.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.1...@walmart/me-at-walmart-geolocation@1.4.2) (2025-11-10) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.4.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.4.0...@walmart/me-at-walmart-geolocation@1.4.1) (2025-11-07) **Note:** Version bump only for package @walmart/me-at-walmart-geolocation --- packages/me-at-walmart-geolocation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-geolocation", - "version": "1.4.1", + "version": "1.4.2", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js", --- packages/me-at-walmart-location/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.1...@walmart/me-at-walmart-location@1.2.2) (2025-11-10) + +**Note:** Version bump only for package @walmart/me-at-walmart-location + ## [1.2.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.0...@walmart/me-at-walmart-location@1.2.1) (2025-11-07) **Note:** Version bump only for package @walmart/me-at-walmart-location --- packages/me-at-walmart-location/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-location", - "version": "1.2.1", + "version": "1.2.2", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.2.0...@walmart/my-walmart-hub@1.2.1) (2025-11-10) + +**Note:** Version bump only for package @walmart/my-walmart-hub + # [1.2.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.1.1...@walmart/my-walmart-hub@1.2.0) (2025-11-07) ### Features --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.2.0", + "version": "1.2.1", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-cli@1.7.1 - @walmart/allspark-foundation@7.12.1 - @walmart/allspark-foundation-hub@1.22.1 - @walmart/me-at-walmart-geolocation@1.4.2 - @walmart/me-at-walmart-location@1.2.2 - @walmart/my-walmart-hub@1.2.1
d3219fb6642be5d28eb00faa35ac61a3443ddec2
--- packages/allspark-foundation/src/Components/ComponentContainers.tsx @@ -28,7 +28,7 @@ const PassThrough: React.FC<{ children: React.ReactNode }> = ({ children }) => ( * A component container manages a set of components with a given set of props. * * Components can be added, removed, and rendered separately. - * + * * NOTE: The recommended way to create component containers is through your AllsparkFeature instance * using the createComponentContainer method to ensure proper association with your feature ID. * @@ -36,7 +36,7 @@ const PassThrough: React.FC<{ children: React.ReactNode }> = ({ children }) => ( * // Recommended: Using AllsparkFeature (preferred approach) * const MyFeature = new AllsparkFeature('MyFeature' as const); * const HomeScreen = MyFeature.createComponentContainer<HomeScreenComponentProps>('HomeScreen'); - * + * * // Alternative: Direct creation * const MyContainer = new ComponentContainer<{greeting: string}>(); * @@ -561,13 +561,13 @@ class ComponentContainerManager<ContainerMap extends Record<string, any>> { * * NOTE: The recommended way to create component containers is through your AllsparkFeature instance * using the createComponentContainer method to ensure proper association with your feature ID. - * + * * @example * // Recommended: Using AllsparkFeature (preferred approach) * const MyFeature = new AllsparkFeature('MyFeature' as const); * const HomeScreen = MyFeature.createComponentContainer<HomeScreenProps>('HomeScreen'); * // This will be registered as 'MyFeature.HomeScreen' - * + * * // Alternative: Direct creation * // Create Container (requires manual prefixing with feature name) * const MyContainer = AllsparkComponentContainers.create<MyContainerProps>('MyFeature.MyContainer'); --- packages/allspark-foundation/src/Components/DynamicComponents.tsx @@ -27,12 +27,12 @@ export type ListProps = { * A dynamic component is a component design pattern that separates creation, display, and update operations. * It manages multiple sets of props (called "records") which can be added, updated, or removed independently, * and provides various ways to render these records. - * + * * Key concepts: * - Records: Individual sets of props identified by a unique ID * - Template: The component function used to render each record * - Rendering: DynamicComponent provides Record and List components for different rendering scenarios - * + * * Relationship with DynamicComponentManager: * - DynamicComponent instances can be used standalone or registered with a DynamicComponentManager * - When registered with a manager, they can be accessed by ID through the manager's API @@ -376,7 +376,7 @@ export function useDynamicComponentRecord( /** * A manager for a collection of DynamicComponent instances. This class serves as a registry and coordinator * for multiple DynamicComponent instances and provides a unified API for working with them. - * + * * The relationship between DynamicComponentManager and DynamicComponent: * - DynamicComponentManager maintains a registry of DynamicComponent instances * - It provides methods to create, register, and interact with these components @@ -456,7 +456,7 @@ export class DynamicComponentManager< * * // Or list of records * <MyComponent.List limit={3} method="lifo" /> - * + * * // With TypeScript for type safety: * type MyComponentProps = { value: string; color: string }; * const MyTypedComponent = AllsparkDynamicComponents.create<MyComponentProps>('MyTypedComponent', (props) => { @@ -481,7 +481,7 @@ export class DynamicComponentManager< /** * Adds a DynamicComponent instance to the manager. This is useful when you've created a DynamicComponent * instance outside the manager and want to make it available through the manager's methods. - * + * * @param id - A unique identifier for the component in the manager * @param component - The DynamicComponent instance to register * @example @@ -490,10 +490,10 @@ export class DynamicComponentManager< * const { value } = props; * return <Text>{value}</Text>; * }); - * + * * // Register it with the manager * AllsparkDynamicComponents.register('MyFeature.CustomComponent', MyCustomComponent); - * + * * // Now it can be accessed through the manager * AllsparkDynamicComponents.add('MyFeature.CustomComponent', 'record-1', { value: 'Hello' }); */ @@ -635,7 +635,7 @@ export class DynamicComponentManager< }; /** - * @deprecated - Use AllsparkSharedComponents instead. The use case for this component is handled by SharedComponents. + * @deprecated - Use AllsparkSharedComponents instead. The use case for this component is handled by SharedComponents. * Only the creator of the dynamic component should render components, so this should not be needed. */ public Template = <K extends keyof ComponentMap>(props: {
chore: lint fixes
chore: lint fixes
06473fe7967d3c372329d17986368ab23fa11d23
--- __mocks__/@walmart/allspark-foundation/Navigation.js @@ -5,7 +5,7 @@ const drawer = { lock: jest.fn(), toggleDrawerOpened: jest.fn(), locked: false, - lock: jest.fn(), + lockDrawer: jest.fn(), unlock: jest.fn(), } @@ -24,6 +24,8 @@ module.exports = { closeDrawer: jest.fn(), enable: jest.fn(), disable: jest.fn(), + lockDrawer: jest.fn(), + unlockDrawer: jest.fn(), addScreenChangeListener: jest.fn(() => ({remove: jest.fn()})), createAllsparkStackNavigator: jest.fn(() => ({ Navigator: 'Navigator', --- __tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/AssociateHallwayNavTest.tsx.snap @@ -22,10 +22,10 @@ exports[`DrawerNav matches default snapshot for initial render 1`] = ` value={ { "drawerLocked": undefined, - "lockDrawer": undefined, + "lockDrawer": [MockFunction], "renderBadge": [Function], "toggleDrawerLocked": undefined, - "unlockDrawer": undefined, + "unlockDrawer": [MockFunction], } } > @@ -77,10 +77,10 @@ exports[`DrawerNav matches snapshot after initial render 1`] = ` value={ { "drawerLocked": undefined, - "lockDrawer": undefined, + "lockDrawer": [MockFunction], "renderBadge": [Function], "toggleDrawerLocked": undefined, - "unlockDrawer": undefined, + "unlockDrawer": [MockFunction], } } > --- src/PinAccess/PinCodeSagas.ts @@ -88,6 +88,8 @@ export function* handlePinPrompt(reason: string, resetNav: boolean) { // Disable navigation, until pin flow is completed AllsparkNavigationClient.disable(); + AllsparkNavigationClient.closeDrawer(); + AllsparkNavigationClient.lockDrawer(); const biometricTask: Task = yield fork(handleBiometricSetup); @@ -98,6 +100,7 @@ export function* handlePinPrompt(reason: string, resetNav: boolean) { // Pin flow complete, reenable navigation AllsparkNavigationClient.enable(); + AllsparkNavigationClient.unlockDrawer(); if (biometricTask) { yield cancel(biometricTask);
fix: disable drawer navigation on pin screen (#4770)
fix: disable drawer navigation on pin screen (#4770) Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com> Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
6669dbf40e0b478292f77c39e2c2469b88d97cdd
--- src/index.tsx @@ -4,7 +4,7 @@ import {useSelector, useDispatch} from 'react-redux'; import {ThunkDispatch} from '@reduxjs/toolkit'; import {firebase} from '@react-native-firebase/app-check'; -import {SiteSelectors, reducerManager} from '@walmart/redux-store'; +import {SiteSelectors, reducerManager, addSagas} from '@walmart/redux-store'; import {useEnvironment} from '@walmart/core-services/Environment'; import {LoggerCloneProvider} from '@walmart/core-services/Logger'; import {HttpClientCloneProvider} from '@walmart/allspark-http-client'; @@ -29,6 +29,7 @@ import {onNewMessage} from './navigation/utils'; import firestore from '@react-native-firebase/firestore'; import {setFirestorePersistenceEnabled} from './redux/selectors'; import {SafeAreaProvider} from 'react-native-safe-area-context'; +import {DoNotDisturbGoOnlineOnClockOutSaga} from './presence/sagas'; export {PushToTalkProvider} from './channels/pushToTalkProvider'; export {DoNotDisturbAutoResetSaga} from './presence/sagas'; @@ -68,6 +69,8 @@ export const initialize = async (debugToken: string) => { export const initTextingPushNotificationListeners = initNotificationListeners; +addSagas(DoNotDisturbGoOnlineOnClockOutSaga); + initi18n(); reducerManager.addReducer(textingSlice.name, textingSlice.reducer); @@ -75,7 +78,6 @@ initNotificationListeners(); export const MeganavTextingScreen = MeganavScreen; - export const TextingMiniApp = () => { const persistenceEnabledValue: boolean = useSelector( setFirestorePersistenceEnabled, --- src/index.tsx @@ -4,7 +4,7 @@ import {useSelector, useDispatch} from 'react-redux'; import {ThunkDispatch} from '@reduxjs/toolkit'; import {firebase} from '@react-native-firebase/app-check'; -import {SiteSelectors, reducerManager} from '@walmart/redux-store'; +import {SiteSelectors, reducerManager, addSagas} from '@walmart/redux-store'; import {useEnvironment} from '@walmart/core-services/Environment'; import {LoggerCloneProvider} from '@walmart/core-services/Logger'; import {HttpClientCloneProvider} from '@walmart/allspark-http-client'; @@ -29,6 +29,7 @@ import {onNewMessage} from './navigation/utils'; import firestore from '@react-native-firebase/firestore'; import {setFirestorePersistenceEnabled} from './redux/selectors'; import {SafeAreaProvider} from 'react-native-safe-area-context'; +import {DoNotDisturbGoOnlineOnClockOutSaga} from './presence/sagas'; export {PushToTalkProvider} from './channels/pushToTalkProvider'; export {DoNotDisturbAutoResetSaga} from './presence/sagas'; @@ -68,6 +69,8 @@ export const initialize = async (debugToken: string) => { export const initTextingPushNotificationListeners = initNotificationListeners; +addSagas(DoNotDisturbGoOnlineOnClockOutSaga); + initi18n(); reducerManager.addReducer(textingSlice.name, textingSlice.reducer); @@ -75,7 +78,6 @@ initNotificationListeners(); export const MeganavTextingScreen = MeganavScreen; - export const TextingMiniApp = () => { const persistenceEnabledValue: boolean = useSelector( setFirestorePersistenceEnabled,
adding saga
adding saga
320bf5e6df194f78a75a78f03f1f7a7c1d226665
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -637,6 +637,19 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects checkoutFeature.Root TranslatorScreens ModFlexScreens + <Screen + component={[Function]} + name="managerExperience.teamSelection" + options={ + { + "title": "Choose Teams", + } + } + /> + <Screen + component={[Function]} + name="managerExperience.teamOnboarding" + /> </Navigator> `; @@ -1277,5 +1290,18 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects checkoutFeature.Root TranslatorScreens ModFlexScreens + <Screen + component={[Function]} + name="managerExperience.teamSelection" + options={ + { + "title": "Choose Teams", + } + } + /> + <Screen + component={[Function]} + name="managerExperience.teamOnboarding" + /> </Navigator> `;
Build all the manager experience screens
Build all the manager experience screens
418620d57cbbea38d8d54e5bbbe456ba0810c865
--- src/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -24,7 +24,10 @@ import { displaySearchInput, teamLeadJobDescriptions, } from '../../redux/selectors'; -import {sortedAssociateList} from '../../utils/associateList'; +import { + sortedAssociateList, + transformToAssociateFormat, +} from '../../utils/associateList'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import { generateTeamRoster, @@ -306,33 +309,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { } // Transform supply chain membership into Associate format - return filtered.map((member) => ({ - associateId: member.walmartIdentificationNumber, - win: member.walmartIdentificationNumber, - userId: member.userId, - firstName: member.associate.firstName, - lastName: member.associate.lastName, - jobCategoryCodeDesc: member.functionCodeDesc, - schedule: [ - { - startTime: member.clockStatus?.time, - endTime: (() => { - const end = new Date(member.clockStatus?.time as string); - end.setHours(end.getHours() + 9); // 9-hour shift - return end.toISOString(); - })(), - scheduleId: `SCH-${member.walmartIdentificationNumber}`, - businessUnitNumber: mockSupplyChainTeam.businessUnitNumber, - }, - ], - punch: { - clockStatus: member.clockStatus?.status, - clockStatusDesc: - member.clockStatus?.status === 'IN' ? 'Clocked In' : 'Clocked Out', - lastPunchType: member.clockStatus?.status, - lastPunchTime: member.clockStatus?.time, - }, - })); + return transformToAssociateFormat(filtered); }, [ mockSupplyChainTeam?.membership, mockSupplyChainTeam?.mewClockedInCount, --- src/screens/RosterDetailScreen/mocks/supplyChainData.ts @@ -116,11 +116,9 @@ export const mockSupplyChainTeam: SupplyChainTeam = { export const mockSupplyChainTeamResponse: SupplyChainTeamResponse = { teams: mockSupplyChainTeam, - errors: [], }; export const mockSupplyChainTeamsByStoreResponse: SupplyChainTeamsByStoreResponse = { teams: [mockSupplyChainTeam], - errors: [], }; --- src/utils/associateList.ts @@ -12,6 +12,8 @@ import {Associate, payTypes} from '../common'; import {toUpper} from 'lodash'; import {TFunction} from 'i18next'; import {TagColor} from '@walmart/gtp-shared-components'; +import {SupplyChainTeamAssociateMembership} from '../screens/RosterDetailScreen/mocks/types/supplyChain'; +import {mockSupplyChainTeam} from '../screens/RosterDetailScreen/mocks/supplyChainData'; const ASC_ORDER = 1; const DESC_ORDER = -1; @@ -97,6 +99,38 @@ export const generateAssociateInitials = (associateName: string) => { }, ''); }; +export const transformToAssociateFormat = ( + memberList: SupplyChainTeamAssociateMembership[], +) => { + return memberList.map((member) => ({ + associateId: member.walmartIdentificationNumber, + win: member.walmartIdentificationNumber, + userId: member.userId, + firstName: member.associate.firstName, + lastName: member.associate.lastName, + jobCategoryCodeDesc: member.functionCodeDesc, + schedule: [ + { + startTime: member.clockStatus?.time, + endTime: (() => { + const end = new Date(member.clockStatus?.time as string); + end.setHours(end.getHours() + 9); // 9-hour shift + return end.toISOString(); + })(), + scheduleId: `SCH-${member.walmartIdentificationNumber}`, + businessUnitNumber: mockSupplyChainTeam.businessUnitNumber, + }, + ], + punch: { + clockStatus: member.clockStatus?.status, + clockStatusDesc: + member.clockStatus?.status === 'IN' ? 'Clocked In' : 'Clocked Out', + lastPunchType: member.clockStatus?.status, + lastPunchTime: member.clockStatus?.time, + }, + })); +}; + export const deriveAssociateStatus = ( associate: Associate, t: TFunction<'roster'[]>,
reviewing comments
reviewing comments
16c5426fac11353e6f469d073c9f0c8da9e1a170
--- __tests__/__mocks__/@walmart/checkout-mini-app.js @@ -0,0 +1,3 @@ +module.exports = { + CheckoutMiniApp: 'CheckoutMiniApp', +};
Checkout mini app onboarding for drop 20
Checkout mini app onboarding for drop 20
e24637206f17e104d48b2530a05ef3d9bf228389
--- package.json @@ -135,7 +135,7 @@ "@walmart/pay-stub-miniapp": "0.24.15", "@walmart/payrollsolution_miniapp": "0.151.10", "@walmart/persona-hub": "0.3.3", - "@walmart/price-changes-mini-app": "1.14.4", + "@walmart/price-changes-mini-app": "1.14.5", "@walmart/profile-feature-app": "2.8.1-UPV2MyWalmart.6", "@walmart/react-native-barcode-builder": "^1.0.1", "@walmart/react-native-cookies": "1.0.1", --- yarn.lock @@ -8728,7 +8728,7 @@ __metadata: "@walmart/pay-stub-miniapp": "npm:0.24.15" "@walmart/payrollsolution_miniapp": "npm:0.151.10" "@walmart/persona-hub": "npm:0.3.3" - "@walmart/price-changes-mini-app": "npm:1.14.4" + "@walmart/price-changes-mini-app": "npm:1.14.5" "@walmart/profile-feature-app": "npm:2.8.1-UPV2MyWalmart.6" "@walmart/react-native-barcode-builder": "npm:^1.0.1" "@walmart/react-native-cookies": "npm:1.0.1" @@ -9134,9 +9134,9 @@ __metadata: languageName: node linkType: hard -"@walmart/price-changes-mini-app@npm:1.14.4": - version: 1.14.4 - resolution: "@walmart/price-changes-mini-app@npm:1.14.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.14.4.tgz" +"@walmart/price-changes-mini-app@npm:1.14.5": + version: 1.14.5 + resolution: "@walmart/price-changes-mini-app@npm:1.14.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.14.5.tgz" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.2.0" @@ -9155,7 +9155,7 @@ __metadata: redux-saga: ^1.1.3 reduxsauce: ^1.2.0 uuid: ^3.3.2 - checksum: 10c0/1765b0922f9c321adb9cf97763073f03f9de4710c689e019f4df52c3e5ca34af5e45bd9607c7100d854f995d55d7c4ffb228247b5a69994d1dc9e0343d6a0c4b + checksum: 10c0/219ec8f9e9cfe4fdcf8619c85d8bb7ce3d0dfb340c2002d661d7576f57b1033a40a1627216b4691ec9bac8aa4a99ae84fbaa7cfc7d975c409c62f910a609b445 languageName: node linkType: hard
feat(pc): hot fix changes defaulting end date to 7 days for 'competetive pricing' reason (#4733)
feat(pc): hot fix changes defaulting end date to 7 days for 'competetive pricing' reason (#4733)
73b0b722fd309414c8e4aa8402d5997fb56cf2e7
--- .looper.multibranch.yml @@ -1,3 +1,8 @@ inherit: job:///allspark/allspark-core/allspark-template:allspark-template.yml updateTaskStatusOnGit: true # added as per discussion on SREDP-11895 + +envs: + global: + variables: + TEMPLATE_REPO_BRANCH: feature/WiFiAPEnabled
Update looper file to point to feature branch
Update looper file to point to feature branch
90d470a964db2ace063c6247804e78367883b841
--- .yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch @@ -1,5 +1,5 @@ diff --git a/components/FontIcon/FontIcon.js b/components/FontIcon/FontIcon.js -index 7c52440c6790eb6b0df892737dee011f8a5a470d..26c12c694e91e5437e2c6b145a013013ec9bf599 100644 +index 7c52440c6790eb6b0df892737dee011f8a5a470d..0faa18761ed7de6cc13e0881e78ff9c693c959a5 100644 --- a/components/FontIcon/FontIcon.js +++ b/components/FontIcon/FontIcon.js @@ -1,4 +1,4 @@ @@ -8,8 +8,9 @@ index 7c52440c6790eb6b0df892737dee011f8a5a470d..26c12c694e91e5437e2c6b145a013013 -export default createIconSetFromIcoMoon(globalNavConfig); +export default createIconSetFromIcoMoon(globalNavConfig, 'IcoMoon', 'icomoon.ttf'); +\ No newline at end of file diff --git a/components/Header/Header.js b/components/Header/Header.js -index 4b2a5559c2ab84537d71ed5a832cbb135af01649..ae52c4f939ff6dc7072a1c036bfc4dab321c3a85 100644 +index 4b2a5559c2ab84537d71ed5a832cbb135af01649..6941f8b9f376b7d8c4183fba7b157ea1db7df15e 100644 --- a/components/Header/Header.js +++ b/components/Header/Header.js @@ -1,6 +1,6 @@ @@ -62,8 +63,8 @@ index 4b2a5559c2ab84537d71ed5a832cbb135af01649..ae52c4f939ff6dc7072a1c036bfc4dab - ); -}; +/** -+ * @deprecated - Header context no longer exists with the foundation. Banners are -+ * rendered using AllsparkBanners from '@walmart/allspark-foundation/Components' ++ * @deprecated - Header context no longer exists with the foundation. Banners are ++ * rendered using AllsparkBanners from '@walmart/allspark-foundation/Components' + */ +export const HeaderContext = createContext({ renderBanners: () => <AllsparkBannersContainer.List limit={1} /> }); + @@ -78,3 +79,4 @@ index 4b2a5559c2ab84537d71ed5a832cbb135af01649..ae52c4f939ff6dc7072a1c036bfc4dab + */ Header.Provider = HeaderContext.Provider; +\ No newline at end of file --- package.json @@ -157,7 +157,7 @@ "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.25.4", "@walmart/translator-mini-app": "1.6.9", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.4#~/.yarn/patches/@walmart-ui-components-npm-1.24.4-247996ccb0.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.5#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "1.0.13", "@walmart/wfm-ui": "3.0.2", @@ -424,7 +424,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/moment-walmart": "1.0.4", "axios": "~1.6.0", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.4#~/.yarn/patches/@walmart-ui-components-npm-1.24.4-247996ccb0.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.5#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch", "axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch", "axios-cache-interceptor": "patch:axios-cache-interceptor@npm%3A1.5.1#~/.yarn/patches/axios-cache-interceptor-npm-1.5.1-c84dd3f9ed.patch", "eslint-config-expo": "~8.0.1", --- yarn.lock @@ -7670,7 +7670,7 @@ __metadata: "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.25.4" "@walmart/translator-mini-app": "npm:1.6.9" - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.4#~/.yarn/patches/@walmart-ui-components-npm-1.24.4-247996ccb0.patch" + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.24.5#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:1.0.13" "@walmart/wfm-ui": "npm:3.0.2" @@ -8663,9 +8663,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.24.4": - version: 1.24.4 - resolution: "@walmart/ui-components@npm:1.24.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fui-components%2F-%2F%40walmart%2Fui-components-1.24.4.tgz" +"@walmart/ui-components@npm:1.24.5": + version: 1.24.5 + resolution: "@walmart/ui-components@npm:1.24.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fui-components%2F-%2F%40walmart%2Fui-components-1.24.5.tgz" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" @@ -8684,13 +8684,13 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/eaa7e53a3b7f540527a6cabaa5b4c106a54839163e2984fe86b0ff100fd097325924c027ca643d59c74cf25b86bf80d46f4ea60afc848d0c06595ee0c31d3bc8 + checksum: 10c0/c7559648af60443991cb17daecf6c8ce0eb433c51f6c477d766c86de57c151e98981cc1f3839bfcc44a5bf06f71137b74cd48d6c46063ede431e7980baf1e2e3 languageName: node linkType: hard -"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.24.4#~/.yarn/patches/@walmart-ui-components-npm-1.24.4-247996ccb0.patch": - version: 1.24.4 - resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.24.4%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fui-components%252F-%252F%2540walmart%252Fui-components-1.24.4.tgz#~/.yarn/patches/@walmart-ui-components-npm-1.24.4-247996ccb0.patch::version=1.24.4&hash=66bb98" +"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.24.5#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch": + version: 1.24.5 + resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.24.5%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fui-components%252F-%252F%2540walmart%252Fui-components-1.24.5.tgz#~/.yarn/patches/@walmart-ui-components-npm-1.24.5-7a8dd495eb.patch::version=1.24.5&hash=8cc923" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" @@ -8709,7 +8709,7 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/1dfea558a5b27f982aaeb71204ac256ddd5ac9c10a10aa4f9f887c3a4c010177b051b1e0627af763b1e27e19c0c1f88c9acb6f0359bf412115031f86699d1163 + checksum: 10c0/76faa5b2cc415a3dedef454c0ca43f3d36b369b8dd73ca70c088c698a9f736586293438a496ee4e28bc12997c0617d617fdace8aecdbd53be47e8a41811abdce languageName: node linkType: hard
fix(update): updated ui-components version SSMP-10973 (#4542)
fix(update): updated ui-components version SSMP-10973 (#4542)
a330a3b368664cb9ddd8cb85dd4359121a94ca72
--- package-lock.json @@ -82,7 +82,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.22.0", + "@walmart/time-clock-mini-app": "2.23.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26", @@ -6846,9 +6846,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.22.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.22.0.tgz", - "integrity": "sha512-slzleE8xl0ikCWVXdHfHRxhSePE3EVare/lsNT1/95mV4W35A9Wi/L4VzJljRpmylxA+XIIKWweZJfE2NdsJlw==", + "version": "2.23.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.23.0.tgz", + "integrity": "sha512-I1zxHNvaMN44ILg1vKr/K4fR8TG2tnVyBGkWli4sbMIuU7fvBomswQxx2HohcC45ChZ7409sxb9NpgZqvHB72Q==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -30245,9 +30245,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.22.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.22.0.tgz", - "integrity": "sha512-slzleE8xl0ikCWVXdHfHRxhSePE3EVare/lsNT1/95mV4W35A9Wi/L4VzJljRpmylxA+XIIKWweZJfE2NdsJlw==", + "version": "2.23.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.23.0.tgz", + "integrity": "sha512-I1zxHNvaMN44ILg1vKr/K4fR8TG2tnVyBGkWli4sbMIuU7fvBomswQxx2HohcC45ChZ7409sxb9NpgZqvHB72Q==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -124,7 +124,7 @@ "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.2", "@walmart/taskit-mini-app": "0.49.6", - "@walmart/time-clock-mini-app": "2.22.0", + "@walmart/time-clock-mini-app": "2.23.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.73.0", "@walmart/wfm-ui": "0.2.26",
Update Time Clock to 2.23.0
Update Time Clock to 2.23.0
18c4131f85cef6dedc4f1f65ab36dc0980ec9eea
--- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MeStackNavTest.tsx.snap @@ -44,5 +44,19 @@ exports[`MeStackNav matches snapshot 1`] = ` } } /> + <Group + screenOptions={ + Object { + "presentation": "transparentModal", + } + } + > + <Screen + name="editPreferredNameScreen" + /> + <Screen + name="preferredNameSnackbar" + /> + </Group> </Navigator> `;
Update MeStack snapshot.
Update MeStack snapshot.
10cc274fe2d3b938103d80779d330e23f0f566d2
--- .yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch @@ -0,0 +1,24 @@ +diff --git a/dist/hooks/operations/useFabAnimationButton.js b/dist/hooks/operations/useFabAnimationButton.js +index 23a1312442362ce7e31fda9e748d3cf5ebae5ddb..f80673af48771bf8579f1777ec0735e40824f5ef 100644 +--- a/dist/hooks/operations/useFabAnimationButton.js ++++ b/dist/hooks/operations/useFabAnimationButton.js +@@ -13,8 +13,8 @@ export const useFabAnimationButton = (isFocused, onTopOfScrollView) => { + outputRange: [0, 1000], + }); + scanTextSize.interpolate({ +- inputRange: [0, scanTextSizeVal], +- outputRange: [0, 1000], ++ inputRange: [0.001, scanTextSizeVal], ++ outputRange: [0.001, 1000], + }); + Animated.parallel([ + Animated.timing(iconPadding, { +@@ -23,7 +23,7 @@ export const useFabAnimationButton = (isFocused, onTopOfScrollView) => { + useNativeDriver: false, + }), + Animated.timing(scanTextSize, { +- toValue: Platform.OS === 'ios' ? 0.001 : 0, ++ toValue: 0.001, + duration: 200, + useNativeDriver: false, + }), \ No newline at end of file --- package.json @@ -130,7 +130,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-geolocation": "1.3.19", "@walmart/metrics-mini-app": "1.29.15", - "@walmart/mod-flex-mini-app": "1.30.3", + "@walmart/mod-flex-mini-app": "patch:@walmart/mod-flex-mini-app@npm%3A1.30.3#~/.yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.4.3", "@walmart/myteam-mini-app": "3.6.0", --- yarn.lock @@ -8181,7 +8181,7 @@ __metadata: "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-geolocation": "npm:1.3.19" "@walmart/metrics-mini-app": "npm:1.29.15" - "@walmart/mod-flex-mini-app": "npm:1.30.3" + "@walmart/mod-flex-mini-app": "patch:@walmart/mod-flex-mini-app@npm%3A1.30.3#~/.yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.4.3" "@walmart/myteam-mini-app": "npm:3.6.0" @@ -8498,6 +8498,47 @@ __metadata: languageName: node linkType: hard +"@walmart/mod-flex-mini-app@patch:@walmart/mod-flex-mini-app@npm%3A1.30.3#~/.yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch": + version: 1.30.3 + resolution: "@walmart/mod-flex-mini-app@patch:@walmart/mod-flex-mini-app@npm%3A1.30.3%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fmod-flex-mini-app%252F-%252F%2540walmart%252Fmod-flex-mini-app-1.30.3.tgz#~/.yarn/patches/@walmart-mod-flex-mini-app-npm-1.30.3-700538609c.patch::version=1.30.3&hash=13e608" + peerDependencies: + "@react-navigation/drawer": ">=6" + "@react-navigation/material-top-tabs": ">=6" + "@react-navigation/native": ">=6" + "@react-navigation/stack": ">=6" + "@walmart/allspark-foundation": ">=6" + "@walmart/allspark-utils": ">=6" + "@walmart/core-services-allspark": ">=6" + "@walmart/functional-components": ">=6" + "@walmart/gtp-shared-components": ^2.2.7 + "@walmart/ims-print-services-ui": ^2.21.1 + "@walmart/ui-components": ^1.7.0 + crypto-js: ~4.2.0 + expo: ~50.0.20 + expo-av: ">=13.10.6" + expo-haptics: ">=12.8.1" + expo-image: ~1.10.6 + i18next: ^23.6.0 + lodash: ~4.17.21 + react: "*" + react-i18next: ^13.3.1 + react-native: "*" + react-native-device-info: ~10.13.1 + react-native-get-random-values: ~1.10.0 + react-native-image-pan-zoom: ^2.1.12 + react-native-pdf: ^6.7.5 + react-native-safe-area-context: ^4.8.2 + react-native-screens: ^3.28.0 + react-native-tab-view: ^3.3.0 + react-native-webview: ^11.23.1 + react-redux: ^8.1.3 + redux: ^4.2.1 + redux-saga: ^1.2.3 + uuid: ^3.3.2 + checksum: 10c0/6c173d13430852cdf08dfd21f2248d62f19901c08af9df5420d6d8d2cf89e601d3b75ca2977c0043d829ded5e8cdf711d6ba4197028584de8468cd6685fb6181 + languageName: node + linkType: hard + "@walmart/moment-walmart@npm:1.0.4": version: 1.0.4 resolution: "@walmart/moment-walmart@npm:1.0.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmoment-walmart%2F-%2Fmoment-walmart-1.0.4.tgz"
feat(drop35): fix crash on modflex
feat(drop35): fix crash on modflex
003b4b81efccb981f06226356bd7d4c276a0d660
--- android/app/src/main/AndroidManifest.xml @@ -134,13 +134,13 @@ </intent-filter> </service> - <receiver + <!-- <receiver android:name=".IntentWakeupReceiver" android:exported="true" > <intent-filter> <action android:name="com.walmart.squiggly.intent.action.PTT_PRESS" /> </intent-filter> - </receiver> + </receiver> --> </application> </manifest>
adding a file that was missed
adding a file that was missed
4aff13438cc4c842797b0cf446588e166167bfac
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -230,6 +230,7 @@ buildPhases = ( 53D455D8D940558DAEDE5BA8 /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, + 6A2682C14C7D86EFC75B2EBB /* [CP] Prepare Artifacts */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, @@ -364,6 +365,24 @@ shellPath = /bin/sh; shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nset -e\n\nif [[ ${PODS_ROOT} ]]; then\n echo \"info: Exec FirebaseCrashlytics Run from Pods\"\n \"${PODS_ROOT}/FirebaseCrashlytics/run\"\nelse\n echo \"info: Exec FirebaseCrashlytics Run from framework\"\n \"${PROJECT_DIR}/FirebaseCrashlytics.framework/run\"\nfi\n"; }; + 6A2682C14C7D86EFC75B2EBB /* [CP] Prepare Artifacts */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-artifacts.sh", + "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/Frameworks/DMSDK.xcframework", + ); + name = "[CP] Prepare Artifacts"; + outputPaths = ( + "${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-artifacts.sh\"\n"; + showEnvVarsInLog = 0; + }; 6EF6D4963025B31A0E737FDF /* [CP-User] [RNFB] Core Configuration */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -401,7 +420,7 @@ "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf", "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf", "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", - "${BUILT_PRODUCTS_DIR}/react-native-wm-barcode/react_native_wm_barcode.framework/AVScannerViewController.nib", + "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/AVScannerViewController.xib", "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/scanbeep.wav", "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/DIGIMark-custom.ttf", "${PODS_ROOT}/../../node_modules/react-native-wm-voice-text/ios/state-change_confirm-down.wav", @@ -447,11 +466,10 @@ ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-AllSpark/Pods-AllSpark-frameworks.sh", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/DMSDK/DMSDK.framework/DMSDK", + "${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DMSDK.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; --- ios/Podfile.lock @@ -332,7 +332,7 @@ PODS: - React - react-native-get-random-values (1.5.1): - React-Core - - react-native-logger (1.26.0): + - react-native-logger (1.25.0): - React - react-native-netinfo (5.9.7): - React-Core @@ -356,7 +356,7 @@ PODS: - React - react-native-webview (10.10.0): - React-Core - - react-native-wm-barcode (2.25.0): + - react-native-wm-barcode (2.29.0): - React - react-native-wm-voice-text (0.4.1): - React @@ -804,7 +804,7 @@ SPEC CHECKSUMS: react-native-encrypted-storage: 837c733334debf626204f03d867c7e01d8741e2f react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e - react-native-logger: 6822d3bbc4e89f0f0f24fb0737a75eb80af89856 + react-native-logger: 6d1a4098b9b035278c3691760a45be8ce56acd2e react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f react-native-ptt-module: 65c70129b84f1a1d8a9e12bfb6b4ff74f27361a4 @@ -814,7 +814,7 @@ SPEC CHECKSUMS: react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 - react-native-wm-barcode: eeee6215ce0f2969b7648fee8015745d175269ce + react-native-wm-barcode: 881d483f23fba207961884289c00ff79cd1fac94 react-native-wm-voice-text: 80c0b59ff0fab4daf179ee430e4ea285181e3891 React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5 React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6 @@ -861,4 +861,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 567b62a30f7dd8da9c40b835f39a00c574423a67 -COCOAPODS: 1.10.1 +COCOAPODS: 1.9.3 --- package-lock.json @@ -12789,9 +12789,9 @@ } }, "react-native-wm-barcode": { - "version": "2.25.0", - "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.25.0.tgz", - "integrity": "sha512-xmSBA8p4Zol8ANcEytrb3cGukmnVCbVqRzRFXKOcKH1LPMVn/wnWEQ0itu8x24k4/guMa/Mf8vagstrCjAnMGg==" + "version": "2.29.0", + "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-2.29.0.tgz", + "integrity": "sha512-xXs/c6oyhcDIqTxwVt+H9FegeYYNZ1fF5WfatNA/k9oSfUsbEGEALIxJNc/wJDnra51SeEAm+XAO9SI+mmjOCw==" }, "react-native-wm-config": { "version": "0.1.1", --- package.json @@ -130,7 +130,7 @@ "react-native-video": "^5.1.0-alpha8", "react-native-view-shot": "^3.1.2", "react-native-webview": "^10.7.0", - "react-native-wm-barcode": "2.25.0", + "react-native-wm-barcode": "2.29.0", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.1.0", "react-native-wm-notification": "^1.0.0",
updated scanner version
updated scanner version
7b8f5a6291a168e83e3010d4261cddc2ed25974c
--- src/translations/es-MX.ts @@ -413,31 +413,32 @@ export const esMX_home = { announcement: { announcementCard: { description: - 'We listened - hourly store associates can now earn a yearly bonus', - learnMore: 'Learn more', - summary: 'Bonuses are back for hourly associates!', - title: 'Announcement', + 'Los escuchamos - los asociados por hora de las tiendas ahora pueden ganar un bono anual.', + learnMore: 'Más información', + summary: '¡Vuelven los bonos para los asociados por hora!', + title: 'Anuncio', }, announcementScreen: { - bonusesAreBackHeading: 'Bonuses are back for hourly associates!', + bonusesAreBackHeading: '¡Vuelven los bonos para los asociados por hora!', bonusesAreBackSummary: - 'We listened – full-time and part-time hourly store associates can now earn a yearly bonus.', - close: 'Close', + 'Los escuchamos - los asociados por hora de tiendas a tiempo completo y a tiempo parcial ahora pueden ganar un bono anual.', + close: 'Cerrar', eligibility: { description: - 'Hourly store associates become eligible after one year at Walmart.', - title: 'Eligibilty starts now', + 'Los asociados por hora de tiendas son elegibles después de un año en Walmart.', + title: 'La elegibilidad comienza ahora', }, influence: { description: - 'Work as a team to grow store sales and profit, which influence bonus.', - title: 'Influence your outcome', + 'Trabaja en equipo para aumentar las ventas y las ganancias de la tienda, lo que influye en el bono.', + title: 'Influye en tu resultado', }, staying: { - description: 'The longer you stay with Walmart the higher the bonus.', - title: 'Staying pays', + description: + 'Cuanto más tiempo te quedes en Walmart, mayor será el bono.', + title: 'Quedarse vale la pena', }, - viewDetails: 'View details', + viewDetails: 'Ver detalles', }, announcementWebView: { backToHome: 'Back to home',
Spanish translations for Announcement Card and Announcement Screen
Spanish translations for Announcement Card and Announcement Screen
dfdc5d0d92c341d0cc098ba3b6e9f9b17b3519eb
--- .looper.multibranch.yml @@ -1,3 +1,8 @@ inherit: job:///allspark/allspark-core/allspark-template:allspark-template.yml updateTaskStatusOnGit: true # added as per discussion on SREDP-11895 + +envs: + global: + variables: + ALLOW_NPM_PUSH_TO_AF: true
Enabled Af from looper yml
Enabled Af from looper yml
da206a3206fc8f57897f35bf809d1c1766a3ea88
--- packages/allspark-foundation-hub/src/Store/Modules/TeamSelection/Screens/TeamSelection.tsx @@ -211,7 +211,7 @@ export const TeamSelection = () => { {isPartialError && ( <WarningAlert alertMessage={t('warningAlert.warningMessage', { - default: 'Something went wrong', + default: 'Unable to load. Please refresh.', fallbackLng: 'en-US', })} buttonLabel={t('warningAlert.buttonLabel', { --- packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx @@ -419,7 +419,7 @@ export const TeamSwitcher = ({ {isPartialError && ( <WarningAlert alertMessage={t('warningAlert.warningMessage', { - default: 'Something went wrong', + default: 'Unable to load. Please refresh.', fallbackLng: 'en-US', })} buttonLabel={t('warningAlert.buttonLabel', { --- packages/allspark-foundation-hub/src/SupplyChain/Components/EditSavedTeams/EditSavedTeams.tsx @@ -149,7 +149,7 @@ const EditSavedTeams = ({ handleEdit }: { handleEdit: () => void }) => { {isPartialError && ( <WarningAlert alertMessage={t('warningAlert.warningMessage', { - default: 'Something went wrong', + default: 'Unable to load. Please refresh.', fallbackLng: 'en-US', })} buttonLabel={t('warningAlert.buttonLabel', { --- packages/allspark-foundation-hub/src/SupplyChain/Hub/SiteHubDashboard.tsx @@ -325,7 +325,7 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { {isPartialError && ( <WarningAlert alertMessage={t('warningAlert.warningMessage', { - default: 'Something went wrong', + default: 'Unable to load. Please refresh.', fallbackLng: 'en-US', })} buttonLabel={t('warningAlert.buttonLabel', { --- packages/allspark-foundation-hub/src/SupplyChain/Modals/EditSavedTeamModal/EditSavedTeamsModal.tsx @@ -186,7 +186,7 @@ export const EditSavedTeamsModal = ({ {isPartialError && ( <WarningAlert alertMessage={t('warningAlert.warningMessage', { - default: 'Something went wrong', + default: 'Unable to load. Please refresh.', fallbackLng: 'en-US', })} buttonLabel={t('warningAlert.buttonLabel', { --- packages/allspark-foundation-hub/src/SupplyChain/Modals/UpdateTeamsModal/UpdateTeamsModal.tsx @@ -224,7 +224,7 @@ export const UpdateTeamsModal = ({ {isPartialError && ( <WarningAlert alertMessage={t('warningAlert.warningMessage', { - default: 'Something went wrong', + default: 'Unable to load. Please refresh.', fallbackLng: 'en-US', })} buttonLabel={t('warningAlert.buttonLabel', { --- packages/allspark-foundation-hub/src/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -226,7 +226,7 @@ export const OnboardingScreen = () => { {isPartialError && ( <WarningAlert alertMessage={t('warningAlert.warningMessage', { - default: 'Something went wrong', + default: 'Unable to load. Please refresh.', fallbackLng: 'en-US', })} buttonLabel={t('warningAlert.buttonLabel', {
feat(ui): update default message
feat(ui): update default message
1cb7fa55bbb56a043e75641eff0c12e89587181e
--- __tests__/connectivity/ConnectivityTest.tsx @@ -150,3 +150,12 @@ describe('Connectivity', () => { expect(saga.next().done).toBe(true); }); }); + + +// describe('getShowConnectivityWarning', () => { +// const network = {type: 'wifi', isConnected: true}; +// (NetworkSelectors.getData as jest.Mock).mockReturnValue(network); +// it('returns false when network is connect and type is wifi', () => { +// expect(getShowConnectivityWarning([NetworkSelectors])).toBe(false); +// }); +// }); --- __tests__/core/AlertModalTest.tsx @@ -41,7 +41,7 @@ describe('AlertModal', () => { it('should use default buttonText when modal.params is empty', async () => { const modal = { - params: '', + params: '', // or {}, }; const {getByTestId} = render(<AlertModal modal={modal} />); expect(getByTestId('DismissModalBtn')).toBeTruthy(); --- app.config.US.ts @@ -33,6 +33,7 @@ const CONFIG: ExpoConfig = { name: 'MyWalmart', slug: 'myWalmart', version: pkg.version, + newArchEnabled: false, web: { name: 'MyWalmart', shortName: 'MyWalmart',
fix: ALLSPARK-5754 add missing git files
fix: ALLSPARK-5754 add missing git files
64e46ed52c7a44a632128b5d24f9c6c7059e67ab
--- .looper.yml @@ -22,6 +22,9 @@ triggers: - manual: name: Publish from Git call: publishFromGit + - manual: + name: Publish Major + call: publishMajor flows: default: @@ -36,6 +39,10 @@ flows: - (name Install Dependencies) npm install - (name Build) npm run build + publishMajor: + - call: preparePublish + - (name Publish From Changes) HUSKY_SKIP_HOOKS=1 npx lerna publish major --yes + publishFromChanges: - call: preparePublish - (name Publish From Changes) HUSKY_SKIP_HOOKS=1 npx lerna publish --yes
chore: update looper for temporary major publish flow
chore: update looper for temporary major publish flow
de29b79bab3f8fddd4d9cea7bdf551005885ab49
--- packages/allspark-foundation/__tests__/LocalStorage/client.test.tsx @@ -22,7 +22,7 @@ describe('LocalStorageClient', () => { test('should set an item', async () => { await client.set('testKey', 'testValue'); - expect(AsyncStorage.setItem).toHaveBeenCalledWith('testId_testKey', 'testValue'); + expect(AsyncStorage.setItem).toHaveBeenCalledWith('testId_testKey', '{\"value\":\"testValue\"}'); }); test('should remove an item', async () => {
fix: updating missed testcase
fix: updating missed testcase
8f664555928cdba8a979d9f6f40123763936fa62
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.8.10", + "version": "3.8.11", "main": "dist/index.js", "files": [ "dist",
update roster mini app version
update roster mini app version
1d1e8649cb452cfd6f64c089c5fd86879dcb261c
--- __tests__/core/httpClientInitTest.ts @@ -179,6 +179,8 @@ describe('createRefreshTokenCallback', () => { expect(connectedSSO.getFreshAccessToken).toHaveBeenCalled(); expect(connectedSSO.signOut).toHaveBeenCalled(); + // @ts-ignore + expect(request.cancelToken).toBeDefined(); }); it('will not call sign out if user is not still available', async () => { @@ -193,6 +195,8 @@ describe('createRefreshTokenCallback', () => { expect(connectedSSO.getFreshAccessToken).toHaveBeenCalled(); expect(connectedSSO.signOut).not.toHaveBeenCalled(); + // @ts-ignore + expect(request.cancelToken).toBeDefined(); }); it('should add impersonation header when impersonation is true', async () => { --- src/core/httpClientInit.ts @@ -1,4 +1,5 @@ import '../types/functional-components.d.ts'; +import Axios from 'axios'; import {defaultHttpClient} from '@walmart/functional-components'; import type {ConnectedSSO} from 'react-native-connect-sso-redux'; import {getStore, GlobalState, User as SsoUser} from '@walmart/redux-store'; @@ -96,6 +97,14 @@ export const createRefreshTokenCallback = (sso: ConnectedSSO) => async ( if (userStillAvailable) { sso.signOut('MainActivity', false); } + + request.cancelToken = new Axios.CancelToken((cancel) => + cancel( + `Failed to refresh token. Request cancelled. Original error: ${err}`, + ), + ); + + return request; } } else { return new Promise((resolve) => {
Adding cancel on refresh token callback catch
Adding cancel on refresh token callback catch
062eb24e85ac380188898ee8c2f5b2689580d643
--- package.json @@ -110,7 +110,7 @@ "@walmart/exception-mini-app": "1.8.19", "@walmart/expo-config-plugins": "~0.5.3", "@walmart/facilities-management-miniapp": "0.18.33", - "@walmart/feedback-all-spark-miniapp": "0.9.79", + "@walmart/feedback-all-spark-miniapp": "0.9.75", "@walmart/financial-wellbeing-feature-app": "1.31.6", "@walmart/functional-components": "~6.3.28", "@walmart/global-vpi-mini-app": "1.1.40", --- yarn.lock @@ -7796,13 +7796,14 @@ __metadata: languageName: node linkType: hard -"@walmart/feedback-all-spark-miniapp@npm:0.9.79": - version: 0.9.79 - resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.79::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffeedback-all-spark-miniapp%2F-%2F%40walmart%2Ffeedback-all-spark-miniapp-0.9.79.tgz" +"@walmart/feedback-all-spark-miniapp@npm:0.9.75": + version: 0.9.75 + resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.75::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffeedback-all-spark-miniapp%2F-%2F%40walmart%2Ffeedback-all-spark-miniapp-0.9.75.tgz" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 "@walmart/allspark-foundation": "*" + "@walmart/core-services": ">=6" "@walmart/gtp-shared-components": ^2.1.9 "@walmart/react-native-shared-navigation": ">=1.0.2" "@walmart/redux-store": ">=6" @@ -7814,7 +7815,7 @@ __metadata: react-redux: ^7.2.1 reduxsauce: ^1.2.0 reselect: ^4.0.0 - checksum: 10c0/47b6124fef74bb17950d81045ec1fcb41f65b52f206171aea90ab36fa70d8bd350ab022b79a1d5d26dd5eb935d1aab7395bf6bce7d60275662bc92a974c3770b + checksum: 10c0/17e10d09cf14e697b45b826fa74c23d3d907cb87ed68fec33eee0c8ff747694131afac302a5d148654452896c31cd244e7d31360f7c8424447227dae959c26d8 languageName: node linkType: hard @@ -8337,7 +8338,7 @@ __metadata: "@walmart/exception-mini-app": "npm:1.8.19" "@walmart/expo-config-plugins": "npm:~0.5.3" "@walmart/facilities-management-miniapp": "npm:0.18.33" - "@walmart/feedback-all-spark-miniapp": "npm:0.9.79" + "@walmart/feedback-all-spark-miniapp": "npm:0.9.75" "@walmart/financial-wellbeing-feature-app": "npm:1.31.6" "@walmart/functional-components": "npm:~6.3.28" "@walmart/global-vpi-mini-app": "npm:1.1.40"
fix(revert): revert feedback develop (#4825)
fix(revert): revert feedback develop (#4825)
c504e4c5274667d6789e40aeec7521268afaf10e
--- packages/my-walmart-hub/src/HubWidget/Components/HubWidgetEmptyContent.tsx @@ -49,10 +49,10 @@ const styles = StyleSheet.create({ }, emptyIcon: { - width: 48, - height: 48, + width: 150, + height: 150, marginBottom: 12, - opacity: 0.6, + opacity: 0.9, }, emptyText: { --- packages/my-walmart-hub/src/TeamSwitcher/Components/ModalHeader/style.ts @@ -35,7 +35,7 @@ */ import { colors } from '@walmart/gtp-shared-components-3'; -import { StyleSheet } from 'react-native'; +import { Platform, StyleSheet } from 'react-native'; /** * StyleSheet for ModalHeader component @@ -58,6 +58,7 @@ export const styles = StyleSheet.create({ justifyContent: 'center', alignItems: 'center', backgroundColor: colors.white, + marginTop: Platform.OS === 'android' ? 20 : 10, }, /** * Title text styling
fix(hub): updated header styling for android (#502)
fix(hub): updated header styling for android (#502) * feat(ui): updated header styling for android * feat(ui): updated empty content img dimensions
517fd2dd5a0309888f09a587ac54706b4212fad8
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -207,7 +207,6 @@ export const HubDashboard = ({ hideOnboardingBottomSheet(); hideTeamUpdatedBottomSheet(); hideErrorBottomSheet(); - hideOnboardingFlow(); navigation.setParams({ teamSelectionComplete: false, teamOnboardingComplete: false,
update the navigation for onboarding
update the navigation for onboarding
7c5598876a9e3b35a996439170de4fe43c26d541
--- android/app/build.gradle @@ -139,8 +139,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 196 - versionName "1.1.0" + versionCode 359 + versionName "1.1.1" } splits { abi { --- ios/AllSpark/Info.plist @@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.1.0</string> + <string>1.1.1</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>196</string> + <string>359</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.1.0", + "version": "1.1.1", "private": true, "scripts": { "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
bump version to 1.1.1 and version code to 359
bump version to 1.1.1 and version code to 359
f7faca42837ebe6564975d846def37bb7210c5f1
--- graphql.yml @@ -61,31 +61,31 @@ applications: queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v1' - - name: 'prod' - persistedQueries: - - name: 'GetAssociateClockStatus' - hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' - queryTemplate: 'src/queries/getAssociateClockStatus.graphql' - tags: - - 'v1' - - name: 'GetAssociateName' - hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' - queryTemplate: 'src/queries/getAssociateName.graphql' - tags: - - 'v1' - - name: 'GetDailyRoster' - hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' - queryTemplate: 'src/queries/getDailyRoster.graphql' - tags: - - 'v2' - - 'Drop13' - - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' - queryTemplate: 'src/queries/getTeamById.graphql' - tags: - - 'v1' - - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' - queryTemplate: 'src/queries/getTeamsbyStore.graphql' - tags: - - 'v1' +# - name: 'prod' +# persistedQueries: +# - name: 'GetAssociateClockStatus' +# hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' +# queryTemplate: 'src/queries/getAssociateClockStatus.graphql' +# tags: +# - 'v1' +# - name: 'GetAssociateName' +# hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' +# queryTemplate: 'src/queries/getAssociateName.graphql' +# tags: +# - 'v1' +# - name: 'GetDailyRoster' +# hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' +# queryTemplate: 'src/queries/getDailyRoster.graphql' +# tags: +# - 'v2' +# - 'Drop13' +# - name: 'GetTeamById' +# hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' +# queryTemplate: 'src/queries/getTeamById.graphql' +# tags: +# - 'v1' +# - name: 'GetTeamsByStore' +# hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' +# queryTemplate: 'src/queries/getTeamsbyStore.graphql' +# tags: +# - 'v1' --- graphql.yml @@ -61,31 +61,31 @@ applications: queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v1' - - name: 'prod' - persistedQueries: - - name: 'GetAssociateClockStatus' - hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' - queryTemplate: 'src/queries/getAssociateClockStatus.graphql' - tags: - - 'v1' - - name: 'GetAssociateName' - hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' - queryTemplate: 'src/queries/getAssociateName.graphql' - tags: - - 'v1' - - name: 'GetDailyRoster' - hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' - queryTemplate: 'src/queries/getDailyRoster.graphql' - tags: - - 'v2' - - 'Drop13' - - name: 'GetTeamById' - hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' - queryTemplate: 'src/queries/getTeamById.graphql' - tags: - - 'v1' - - name: 'GetTeamsByStore' - hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' - queryTemplate: 'src/queries/getTeamsbyStore.graphql' - tags: - - 'v1' +# - name: 'prod' +# persistedQueries: +# - name: 'GetAssociateClockStatus' +# hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' +# queryTemplate: 'src/queries/getAssociateClockStatus.graphql' +# tags: +# - 'v1' +# - name: 'GetAssociateName' +# hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' +# queryTemplate: 'src/queries/getAssociateName.graphql' +# tags: +# - 'v1' +# - name: 'GetDailyRoster' +# hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' +# queryTemplate: 'src/queries/getDailyRoster.graphql' +# tags: +# - 'v2' +# - 'Drop13' +# - name: 'GetTeamById' +# hash: '621b0a1e3c192cddfbaadda0fe3083bf40cc54e1eceeee695031685ec791f3b9' +# queryTemplate: 'src/queries/getTeamById.graphql' +# tags: +# - 'v1' +# - name: 'GetTeamsByStore' +# hash: 'b011c98be6f7c9ee3d5b5574bdf1dde812979d6cb971a057f00c173cdbc4b694' +# queryTemplate: 'src/queries/getTeamsbyStore.graphql' +# tags: +# - 'v1'
commenting out prod env as part of workaround
commenting out prod env as part of workaround
d77dc8a4cd74e5afeaf2643d1bbf6ed210985eb4
--- package-lock.json @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.15.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.4.2-beta43", + "@walmart/facilities-management-miniapp": "0.4.2-beta48", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", @@ -5082,9 +5082,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.4.2-beta43", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.4.2-beta43.tgz", - "integrity": "sha512-qYbsZ2wSKc+YhQD9n3XLGYrvTdHIwS8paAinWjjS7ULyL89TK/e8j+VFk8ETVZ49JfiDo392FSd2aU9PRYOIZw==", + "version": "0.4.2-beta48", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.4.2-beta48.tgz", + "integrity": "sha512-f/hH8zh/RJQUUjRt9c2X8yDdCMadLzUFyeS5p6oaBtYnbW6f/7PABwhpkj7GtRzmzy3mcPFpB146tusfMZ0+Bw==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -5162,6 +5162,7 @@ "reduxsauce": "^1.2.0", "reselect": "^4.1.0", "seamless-immutable": "^7.1.4", + "uuid": "^3.3.2", "wifi-store-locator": "1.0.1", "xdate": "^0.8.2" } @@ -25164,9 +25165,9 @@ "integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg==" }, "@walmart/facilities-management-miniapp": { - "version": "0.4.2-beta43", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.4.2-beta43.tgz", - "integrity": "sha512-qYbsZ2wSKc+YhQD9n3XLGYrvTdHIwS8paAinWjjS7ULyL89TK/e8j+VFk8ETVZ49JfiDo392FSd2aU9PRYOIZw==" + "version": "0.4.2-beta48", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.4.2-beta48.tgz", + "integrity": "sha512-f/hH8zh/RJQUUjRt9c2X8yDdCMadLzUFyeS5p6oaBtYnbW6f/7PABwhpkj7GtRzmzy3mcPFpB146tusfMZ0+Bw==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.9", --- package.json @@ -89,7 +89,7 @@ "@walmart/counts-component-miniapp": "0.0.42", "@walmart/emergency-mini-app": "1.15.0", "@walmart/exception-mini-app": "1.0.14", - "@walmart/facilities-management-miniapp": "0.4.2-beta47", + "@walmart/facilities-management-miniapp": "0.4.2-beta48", "@walmart/feedback-all-spark-miniapp": "0.9.9", "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6",
Update version
Update version
a58fd426db1aa3e7b85f736d80e345fff3c146a7
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx @@ -68,7 +68,7 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({ <View style={styles.alert}> <AlertBanner label={t('updateTeamsModal.shiftFailureAlert.error')} - buttonLabel={t('updateTeamsModal.shiftFailureAlert.buttonLable')} + buttonLabel={t('updateTeamsModal.shiftFailureAlert.buttonLabel')} onPressButton={() => { refetch(); }} --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts @@ -68,7 +68,7 @@ export const enUS = { }, shiftFailureAlert: { error: 'Unable to load shifts. We’ll pick A1 for now.', - buttonLable: 'Try again', + buttonLabel: 'Try again', }, upsertError: { error: 'Updating view failed.', @@ -159,7 +159,7 @@ export const esMX: typeof enUS = { }, shiftFailureAlert: { error: 'No se pueden cargar turnos. Elegiremos A1 por ahora.', - buttonLable: 'Vuelve a intentarlo', + buttonLabel: 'Vuelve a intentarlo', }, upsertError: { error: 'Error en la actualización de la vista.',
Updating translations
Updating translations
c018bc8e904c98ca833aa4647bb2a82414946efc
--- __tests__/__mocks__/@walmart/core-services/Shared/Hooks.js @@ -2,7 +2,7 @@ module.exports = { useAppState: jest.fn(), useAppStateEffect: jest.fn(), useAsync: jest.fn(), - useBackButton: jest.fn(), + useBackButton: jest.fn((fn) => fn()), useDeviceOrientation: jest.fn(), usePaginateList: jest.fn(), usePrevious: jest.fn(), --- __tests__/auth/SitePromptTest.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import {Platform} from 'react-native'; import {render, fireEvent} from '@testing-library/react-native'; import {userActions} from '@walmart/redux-store'; import {SitePrompt} from '../../src/auth/SitePrompt'; @@ -28,6 +29,7 @@ test('prompt captures site input and updates user', () => { }); test('prompt matches snapshot for android', () => { + Platform.OS = 'android'; const {toJSON} = render(<SitePrompt navigation={navigation} route={route} />); expect(toJSON()).toMatchSnapshot(); }); --- __tests__/auth/__snapshots__/SitePromptTest.tsx.snap @@ -95,15 +95,10 @@ exports[`prompt matches snapshot for android 1`] = ` <View onLayout={[Function]} style={ - Array [ - Object { - "flex": 1, - "justifyContent": "center", - }, - Object { - "paddingBottom": 0, - }, - ] + Object { + "flex": 1, + "justifyContent": "center", + } } > <View
Site prompt test update
Site prompt test update