commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
cf86ccb528c988adf2ada0f37d6f995ba4cfef72
--- ios/Podfile.lock @@ -2044,4 +2044,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 5e9af5bffc9ed6ee9db34b0f1573f68bd919bf97 -COCOAPODS: 1.12.1 +COCOAPODS: 1.12.0
Revert lockfile to 1.12.0
Revert lockfile to 1.12.0
9901cd4ca251ccb183be24a0878fbbebae706fb1
--- __tests__/harness/firestore/channelsProvider.ts @@ -3,7 +3,7 @@ import {IChannelsContext} from '../../../src/channels'; import {decryptUserId} from '../../../src/utils'; import {determineLastMessageText} from '../../../src/channels/transforms'; const {storeCollections} = require('./data/stores'); -import {createChannelPath} from '../../../dist/channels'; +import {createChannelPath} from '../../../src/channels'; import { mockAdd, mockCollection, --- __tests__/harness/firestore/channelsProvider.ts @@ -3,7 +3,7 @@ import {IChannelsContext} from '../../../src/channels'; import {decryptUserId} from '../../../src/utils'; import {determineLastMessageText} from '../../../src/channels/transforms'; const {storeCollections} = require('./data/stores'); -import {createChannelPath} from '../../../dist/channels'; +import {createChannelPath} from '../../../src/channels'; import { mockAdd, mockCollection,
moving dist to src
moving dist to src
e2ec2cb31f596ad86dfd149e27549bf1aef981f1
--- package-lock.json @@ -4258,9 +4258,9 @@ "integrity": "sha512-0c1CKmJBY0Nu7cZ+F6Hz2gRmcw4KqrOL1A5HjabEIFeADjBPoZb5qqIH9+wwF4XuhTCz0CGOPAsQQ4l3O1VzSQ==" }, "@walmart/inbox-mini-app": { - "version": "0.23.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.23.0.tgz", - "integrity": "sha512-2WpTXrt9u9LUFeKpsFS31k1xaa8d88rPn/F2gHOKCOnEX1kJJiLBUCj9Sq2esrL+iys0zebfQ6qu9/n88DTgOg==" + "version": "0.24.0", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.24.0.tgz", + "integrity": "sha512-oaJp26HyCBzoqC3AHWqRtNhUuYnzhFoLl8dg/h3y6/Bk6uTbMAYmBolXRot2OeLoZgEWqD4cNnLdHQMy4ZS68g==" }, "@walmart/iteminfo-mini-app": { "version": "2.0.16", @@ -4528,9 +4528,9 @@ } }, "@walmart/ui-components": { - "version": "1.3.0-rc.6", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.6.tgz", - "integrity": "sha512-2vjE5AgFr4jFXr6mu6AVIkJiHpze2/chByCye3AGZbFiy23MYbDARDJ45WRUgjU9sL+Q7eQCrMhcNA9RHn9ydA==", + "version": "1.3.0-rc.8", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-rc.8.tgz", + "integrity": "sha512-u5FNQtfpGMcYSTFL7l/zdBCemXiRDcyVMXcYLpQ1S1rdPO5sucUfR4T+eXUJNKoWYkKcgaExP0sSVByGgVoHAw==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -102,7 +102,7 @@ "@walmart/schedule-mini-app": "0.10.0", "@walmart/taskit-mini-app": "0.143.0-rc.0", "@walmart/shelfavailability-mini-app": "0.7.0", - "@walmart/ui-components": "v1.3.0-rc.6", + "@walmart/ui-components": "v1.3.0-rc.8", "@walmart/welcomeme-mini-app": "0.30.4", "@walmart/wfm-ui": "0.2.8", "axios-cache-adapter": "2.7.3",
version bump
version bump
5fb22eead3e4c8ecec9ee51a295d706e61950849
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -103,6 +103,9 @@ Array [ <Screen name="profile.certificationsScreen" /> + <Screen + name="profile.militaryStatusScreen" + /> <Screen name="profile.personalSettingsScreen" /> @@ -449,6 +452,9 @@ Array [ <Screen name="profile.certificationsScreen" /> + <Screen + name="profile.militaryStatusScreen" + /> <Screen name="profile.personalSettingsScreen" />
feat: updated stack nav snapshots
feat: updated stack nav snapshots
dba09522cb1db9a9aefa01314e779b80bf6bee86
--- packages/allspark-foundation/src/Feature/types.ts @@ -229,6 +229,7 @@ export type BuildScreenConfig = { export type FeatureEventListeners = { onConnect: (capability?: ConnectCapabilities) => void; onDisconnect: (capability?: ConnectCapabilities) => void; + onEnableChange: (enabled: boolean) => void; }; export type FeatureEventTypeMap = {
fix: add missing feature event listener typing
fix: add missing feature event listener typing
a51c4551bceb3a5d28452b605a577b4f8bd4c44d
--- package-lock.json @@ -56,7 +56,7 @@ "@walmart/emergency-mini-app": "1.27.0", "@walmart/exception-mini-app": "1.7.3", "@walmart/facilities-management-miniapp": "0.7.3", - "@walmart/feedback-all-spark-miniapp": "0.9.52", + "@walmart/feedback-all-spark-miniapp": "0.9.58", "@walmart/financial-wellbeing-feature-app": "1.19.2", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.1.0", @@ -8986,9 +8986,9 @@ } }, "node_modules/@walmart/feedback-all-spark-miniapp": { - "version": "0.9.52", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.52.tgz", - "integrity": "sha512-5fGRa3rbOps48Y8nCRl9iFbRQaLU35zpmWN4x/2c7Ip8D7Pd+8QHUQNlaLL+Bdx4OTBACCQ2G+pNIPPqhZRUTw==", + "version": "0.9.58", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.58.tgz", + "integrity": "sha512-3Aep7kY/YbP4Io6VwMNXDfmXZYv0gPRq6PzaV+dMqCEeoRYGny/NuE1k8azgtWOmnOMQDRpJIPZHLFIdLM0TTw==", "peerDependencies": { "@react-native-async-storage/async-storage": "^1.19.0", "@react-native-community/datetimepicker": "^6.1.3", @@ -33385,9 +33385,9 @@ "integrity": "sha512-dtjl72iiLFeASjsES1j5zR3dRee4U1xgjZbjts/aDzl58AyFM4QAuM7Gs45Ca9lrYUKsFthStWuqnsOsIU4uSg==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.9.52", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.52.tgz", - "integrity": "sha512-5fGRa3rbOps48Y8nCRl9iFbRQaLU35zpmWN4x/2c7Ip8D7Pd+8QHUQNlaLL+Bdx4OTBACCQ2G+pNIPPqhZRUTw==" + "version": "0.9.58", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.58.tgz", + "integrity": "sha512-3Aep7kY/YbP4Io6VwMNXDfmXZYv0gPRq6PzaV+dMqCEeoRYGny/NuE1k8azgtWOmnOMQDRpJIPZHLFIdLM0TTw==" }, "@walmart/financial-wellbeing-feature-app": { "version": "1.19.2", --- package.json @@ -97,7 +97,7 @@ "@walmart/emergency-mini-app": "1.27.0", "@walmart/exception-mini-app": "1.7.3", "@walmart/facilities-management-miniapp": "0.7.3", - "@walmart/feedback-all-spark-miniapp": "0.9.52", + "@walmart/feedback-all-spark-miniapp": "0.9.58", "@walmart/financial-wellbeing-feature-app": "1.19.2", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.1.0",
drop 19 changes
drop 19 changes
2ce347a7c59d67c444a196c82c7e1fd4e0503869
--- .looper-pr.yml @@ -29,3 +29,4 @@ envs: AUTHOR: temp SLACK_CHANNEL: 'smdv-miniapp' +
fix(ui): update looper yml
fix(ui): update looper yml
464501025f00b33fdd6d57ab10d2d28769d34cc0
--- .looper-pr.yml @@ -29,3 +29,4 @@ envs: AUTHOR: temp SLACK_CHANNEL: 'smdv-miniapp' +
feat(ui): update prod queries #SMDV-9999
feat(ui): update prod queries #SMDV-9999
2626ab6eb94069e4122103ae1a06084516193721
--- package-lock.json @@ -80,7 +80,7 @@ "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.24.5", - "@walmart/time-clock-mini-app": "2.49.0", + "@walmart/time-clock-mini-app": "2.79.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26", @@ -6074,9 +6074,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.49.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.49.0.tgz", - "integrity": "sha512-bxFW8I1QwLm1dhbEM5VURPwilHmNN/fiHW1KBs6OEWLnMUrRVMsJpS8BvSEhKMOkmHScNiAzJB4pUOPzwa/WYA==", + "version": "2.79.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.79.0.tgz", + "integrity": "sha512-uBEw3KCJjmbduB/QnkAspBdBn4m7mHsv2oU3e2IiS7KLyuYQH18gRHlYkv3dnEiN1nVb7Oy31DOH9AM2FCIKng==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -6087,6 +6087,7 @@ }, "peerDependencies": { "@react-native-community/datetimepicker": "^5.1.0", + "@react-native-community/hooks": "^2.8.0", "@react-navigation/native": "^6.0.8", "@react-navigation/stack": "^6.1.1", "@walmart/core-services": "^1.4.17", @@ -25466,9 +25467,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.49.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.49.0.tgz", - "integrity": "sha512-bxFW8I1QwLm1dhbEM5VURPwilHmNN/fiHW1KBs6OEWLnMUrRVMsJpS8BvSEhKMOkmHScNiAzJB4pUOPzwa/WYA==", + "version": "2.79.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.79.0.tgz", + "integrity": "sha512-uBEw3KCJjmbduB/QnkAspBdBn4m7mHsv2oU3e2IiS7KLyuYQH18gRHlYkv3dnEiN1nVb7Oy31DOH9AM2FCIKng==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -122,7 +122,7 @@ "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.24.5", - "@walmart/time-clock-mini-app": "2.49.0", + "@walmart/time-clock-mini-app": "2.79.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26",
fix: bugs
fix: bugs
cc4fb18e4e9ea4fad52df02d342b6f2cd32b5d15
--- src/components/RosterWidget/useRosterWidget.ts @@ -1,3 +1,4 @@ +// @ts-nocheck import { TeamHubWidgetProps, TOTAL_STORE_TEAM_ID, --- src/screens/AllTeamsScreen/SupplyChainAllTeamsScreen.tsx @@ -164,6 +164,7 @@ export const SupplyChainAllTeamsScreen = () => { <TeamListItem key={`team-${item.teamName}`} teamName={item.teamName} + domain='supplyChain' teamId={item.teamId} isLastListItem={index === section.data.length - 1} subText={ --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -1,3 +1,4 @@ +// @ts-nocheck import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; import {translationClient} from '../../common/translation'; import {RefreshControl, View} from 'react-native'; @@ -5,8 +6,8 @@ import { TOTAL_STORE_TEAM_ID, TOTAL_STORE_TEAM_LABEL, ErrorScreen, - TeamSwitcher, ManagerExperienceSelectors, + TeamShiftSwitcher, } from '@walmart/allspark-foundation-hub'; import {RosterDetailPageHeader} from '../../components/RosterDetailPageHeader'; import {RosterFiltersAndInfo} from '../../components/RosterFiltersAndInfo'; @@ -115,9 +116,11 @@ export const SupplyChainRosterDetailScreen = ({ const defaultTeamIds = isSalariedOrLead ? selectedTeamIds : [initialTeamId]; const userIsInRoster = useUserIsInRoster(); const [teamState, setTeamState] = useState<{ + teamData: any; teamLabel: string | null; teamIds: string[]; }>({ + teamData: '', teamLabel: defaultTeamLabel, teamIds: defaultTeamIds, }); @@ -133,6 +136,7 @@ export const SupplyChainRosterDetailScreen = ({ useEffect(() => { setTeamState({ + teamData: '', teamLabel: defaultTeamLabel, teamIds: defaultTeamIds, }); @@ -252,9 +256,6 @@ export const SupplyChainRosterDetailScreen = ({ tardyCount: filteredAssociates?.filter(associateIsTardy)?.length, }; } else { - let clockedInCount = 0; - let absentCount = 0; - let tardyCount = 0; let scheduledCount = 0; allTeams?.forEach((teamData: Team) => { if (teamState.teamIds?.includes(teamData?.teamId as string)) { @@ -263,9 +264,9 @@ export const SupplyChainRosterDetailScreen = ({ (teamData.membership?.filter(associateIsScheduled) ?.length as number); clockedInCount = - clockedInCount + (teamData?.mewClockedInCount as number); - absentCount = absentCount + (teamData?.mewAbsentCount as number); - tardyCount = tardyCount + (teamData?.mewTardyCount as number); + filteredAssociates?.filter(associateIsClockedIn)?.length; + absentCount = filteredAssociates?.filter(associateIsAbsent)?.length; + tardyCount = filteredAssociates?.filter(associateIsTardy)?.length; } }); return { @@ -476,9 +477,10 @@ export const SupplyChainRosterDetailScreen = ({ <> <WarningBanner /> {isSalariedOrLead ? ( - <TeamSwitcher - onTeamChange={(teamLabel, teamIds) => { + <TeamShiftSwitcher + onTeamChange={(teamData, teamLabel, teamIds) => { setTeamState({ + teamData: teamData, teamLabel: teamLabel, teamIds: teamIds, });
feat: supply Roster integration fixes
feat: supply Roster integration fixes
c7a54da3e59ca47dc29961dcaebcd8e3df190478
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.0-alpha.6", + "version": "1.15.0-alpha.7", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.0-alpha.7", + "@walmart/roster-mini-app": "2.12.0-alpha.8", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "2.7.0", "babel-jest": "^29.2.1",
Update my team mini app version
Update my team mini app version
3084902ea148876abba16d5132969a39486aac31
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.39.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.38.0...v2.39.0) (2025-06-23) + + +### Features + +* **ui:** removing extra space ([8b45a0e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/8b45a0e89122a8041732870b493b6de4cc2fed3c)) + # [2.38.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.37.1...v2.38.0) (2025-06-03) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "2.38.0", + "version": "2.39.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 2.39.0 [skip ci]
chore(release): 2.39.0 [skip ci] # [2.39.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.38.0...v2.39.0) (2025-06-23) ### Features * **ui:** removing extra space ([8b45a0e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/8b45a0e89122a8041732870b493b6de4cc2fed3c))
e2f5bc02bb894d7c8d4936e29f7f285167691a06
--- __mocks__/@walmart/allspark-foundation/Network.js @@ -6,4 +6,9 @@ module.exports = { configure: jest.fn(), addEventListener: jest.fn(), }, + NetworkSelectors: { + getData: jest.fn(), + getNetworkWifiSiteId: jest.fn(), + getNetworkType: jest.fn(), + }, }; --- __tests__/changeStore/selectorsTest.ts @@ -1,13 +1,22 @@ import { NetworkActionCreators, NetworkDetails, + NetworkSelectors, } from '@walmart/allspark-foundation/Network'; import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; import {User, UserActionCreators} from '@walmart/allspark-foundation/User'; import {getNetworkSiteMismatch} from '../../src/changeStore/selectors'; +const getNetworkWifiSiteIdMock = + NetworkSelectors.getNetworkWifiSiteId as jest.Mock; + describe('getNetworkSiteMismatch', () => { + afterEach(() => { + jest.resetAllMocks(); + }); + it('returns false if no wifi site id', () => { + getNetworkWifiSiteIdMock.mockReturnValueOnce(undefined); AllsparkReduxStore.dispatch( UserActionCreators.FETCH_SUCCESS({workingSite: '100'} as User) ); @@ -21,6 +30,7 @@ describe('getNetworkSiteMismatch', () => { }); it('returns true wifi site id doesnt match user site id', () => { + getNetworkWifiSiteIdMock.mockReturnValueOnce('150'); AllsparkReduxStore.dispatch( UserActionCreators.FETCH_SUCCESS({workingSite: '100'} as User) ); @@ -34,6 +44,7 @@ describe('getNetworkSiteMismatch', () => { }); it('returns false wifi site id matches user site id', () => { + getNetworkWifiSiteIdMock.mockReturnValueOnce('100'); AllsparkReduxStore.dispatch( UserActionCreators.FETCH_SUCCESS({workingSite: '100'} as User) ); --- __tests__/connectivity/ConnectivityTest.tsx @@ -2,6 +2,7 @@ import {all, call, takeLatest, select} from 'redux-saga/effects'; import { NetworkActionTypes, + NetworkSelectors, } from '@walmart/allspark-foundation/Network'; import {UserActionTypes} from '@walmart/allspark-foundation/User'; import {AllsparkBanners} from '@walmart/allspark-foundation/Components'; @@ -9,84 +10,83 @@ import {AllsparkTranslationClient} from '@walmart/allspark-foundation/Translatio import { connectivitySagas, updateConnectivityBanner, - getShowConnectivityWarning + getShowConnectivityWarning, } from '../../src/connectivity'; import {SettingsActionTypes} from '../../src/settings/redux'; import {createRestartableSaga} from '@walmart/allspark-utils'; import {Logger} from '../../src/core/Logger'; -test('connectivitySagas', () => { - const iterator = connectivitySagas(); - expect(iterator.next().value).toEqual( - all([ - call(updateConnectivityBanner), - takeLatest( - [ - UserActionTypes.UPDATE, - NetworkActionTypes.STATE_CHANGED, - SettingsActionTypes.SHOW_CONNECTIVITY_WARNING, - ], - updateConnectivityBanner, - ), - ]), - ); -}); - -describe('updateConnectivityBanner Saga', () => { - it('should add a connectivity banner when `getShowConnectivityWarning` returns true', () => { - const saga = updateConnectivityBanner(); - - expect(saga.next().value).toEqual(select(getShowConnectivityWarning)); - expect(saga.next(true).value).toEqual( - AllsparkBanners.add('connectivity', { - type: 'banner', - value: AllsparkTranslationClient.t('banners.connectivity'), - variant: 'warning', - }) - ); - expect(saga.next().done).toBe(true); - }); - - it('should remove the connectivity banner when `getShowConnectivityWarning` returns false', () => { - const saga = updateConnectivityBanner(); - - expect(saga.next().value).toEqual(select(getShowConnectivityWarning)); - expect(saga.next().done).toBe(true); - }); -}); - -describe('connectivitySagas', () => { - it('should handle connectivity sagas', () => { - const saga = connectivitySagas(); - - expect(saga.next().value).toEqual(all([ - call(updateConnectivityBanner), - createRestartableSaga( +describe('Connectivity', () => { + test('connectivitySagas', () => { + const iterator = connectivitySagas(); + expect(iterator.next().value).toEqual( + all([ + call(updateConnectivityBanner), takeLatest( [ UserActionTypes.UPDATE, NetworkActionTypes.STATE_CHANGED, SettingsActionTypes.SHOW_CONNECTIVITY_WARNING, ], - updateConnectivityBanner, + updateConnectivityBanner ), - Logger.error, - ), - ])); - expect(saga.next().done).toBe(true); + ]) + ); + }); + + describe('updateConnectivityBanner Saga', () => { + it('should add a connectivity banner when `getShowConnectivityWarning` returns true', () => { + const saga = updateConnectivityBanner(); + + expect(saga.next().value).toEqual(select(getShowConnectivityWarning)); + expect(saga.next(true).value).toEqual( + AllsparkBanners.add('connectivity', { + type: 'banner', + value: AllsparkTranslationClient.t('banners.connectivity'), + variant: 'warning', + }) + ); + expect(saga.next().done).toBe(true); + }); + + it('should remove the connectivity banner when `getShowConnectivityWarning` returns false', () => { + const saga = updateConnectivityBanner(); + + expect(saga.next().value).toEqual(select(getShowConnectivityWarning)); + 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); -// }); -// it('returns true when network is not wifi', () => { -// const network = { type: 'cellur', isConnected: false }; -// (NetworkSelectors.getData as jest.Mock).mockReturnValue(network) -// expect(getShowConnectivityWarning([NetworkSelectors])).toBe(true); -// }); -// }); + describe('connectivitySagas', () => { + it('should handle connectivity sagas', () => { + const saga = connectivitySagas(); + + expect(saga.next().value).toEqual( + all([ + call(updateConnectivityBanner), + createRestartableSaga( + takeLatest( + [ + UserActionTypes.UPDATE, + NetworkActionTypes.STATE_CHANGED, + SettingsActionTypes.SHOW_CONNECTIVITY_WARNING, + ], + updateConnectivityBanner + ), + Logger.error + ), + ]) + ); + 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); + }); + }); +});
feat(core): ALLSPARK-5703 Test automation for connectivity files (#4008)
feat(core): ALLSPARK-5703 Test automation for connectivity files (#4008) * added deeplink tests * added connectivity tests * code cleanup * code cleanup * pr fix * pr fix * code cleanup * feat(core): code cleanup
58afc2646b24f9f469a80f58351edb74b5a96909
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.4.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.3.1...v1.4.0) (2024-06-17) + + +### Features + +* **ui:** update version SMDV-5884 ([021bd94](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/021bd94fc8bd2a95c840d9a6fa82b0a07021bb9c)) + ## [1.3.1](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.3.0...v1.3.1) (2024-06-13) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.3.1", + "version": "1.4.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 1.4.0 [skip ci]
chore(release): 1.4.0 [skip ci] # [1.4.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.3.1...v1.4.0) (2024-06-17) ### Features * **ui:** update version SMDV-5884 ([021bd94](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/021bd94fc8bd2a95c840d9a6fa82b0a07021bb9c))
88680f2452a238151ec73a477e0d51866c0ebb96
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.10.1", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.1.tgz", - "integrity": "sha512-SawjtKYnk7pwSA93027rkhpeyLZ62HOcdI1fd4PtjyP1WmrCb3N5GWvFfGDS+OLfYLIA2akl8+N4cz6e4vlZAA==", + "version": "0.10.21", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.21.tgz", + "integrity": "sha512-BV9PYMtq+xMLOs0fEaSqE+bgI75hA+GEqgRiCJEMepMOU3HufunPsLKj/JgjiL5CceMFNvxxVNfmsipCd7Wmzg==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -50,7 +50,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.24", "@walmart/allspark-home-mini-app": "0.1.10", "@walmart/allspark-me-mini-app": "0.0.22", - "@walmart/ask-sam-mini-app": "0.10.1", + "@walmart/ask-sam-mini-app": "0.10.21", "@walmart/config-components": "1.0.12", "@walmart/feedback-all-spark-miniapp": "0.0.36", "@walmart/functional-components": "1.0.23",
Ask Sam CCM Fix (#349)
Ask Sam CCM Fix (#349) * Ask sam version bump * Version increment Co-authored-by: rlane1 <rlane1@walmart.com>
283587419b57ba8fc0178c357762c91c718f2048
--- package.json @@ -99,9 +99,9 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.14.1", + "@walmart/roster-mini-app": "2.14.2", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.12.2", + "@walmart/wmconnect-mini-app": "2.12.3", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
fix(ui): update the my team mini app version smdv-9999
fix(ui): update the my team mini app version smdv-9999
dad20d5eeca0daba08db4910b6e8c0886d399b18
--- __tests__/__mocks__/@walmart/allspark-foundation-hub.js @@ -0,0 +1,5 @@ +module.exports = { + managerExperienceFeature: { + buildAllScreens: () => 'ManagerExperienceScreens' + } +} \ No newline at end of file --- __tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -628,19 +628,7 @@ 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" - /> + ManagerExperienceScreens </Navigator> `; @@ -1272,18 +1260,6 @@ 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" - /> + ManagerExperienceScreens </Navigator> `;
chore: fix test for manager experience addition
chore: fix test for manager experience addition
1c51a8365f8a402b82213023b7adf9dda82240fe
--- graphql.yml @@ -11,88 +11,88 @@ applications: - name: "GetAssociateClockStatus" queryTemplate: "src/queries/getAssociateClockStatus.graphql" tags: - - "v1" + - "v2" - name: "GetAssociateName" queryTemplate: "src/queries/getAssociateName.graphql" tags: - - "v1" + - "v2" - name: "GetDailyRoster" queryTemplate: "src/queries/getDailyRoster.graphql" tags: - - "v1" + - "v2" - name: "GetSupplyChainShifts" queryTemplate: "src/queries/getSupplyChainShifts.graphql" tags: - - "v1" + - "v2" - name: "GetTeamById" queryTemplate: "src/queries/getTeamById.graphql" tags: - - "v1" + - "v2" - name: "GetTeamsByStore" queryTemplate: "src/queries/getTeamsbyStore.graphql" tags: - - "v1" + - "v2" - name: "upsertAssociateTextPreferences" queryTemplate: "src/queries/upsertAssociateTextPreference.graphql" tags: - - "v1" + - "v2" - name: "stage" persistedQueries: - name: "GetAssociateClockStatus" queryTemplate: "src/queries/getAssociateClockStatus.graphql" tags: - - "v1" + - "v2" - name: "GetAssociateName" queryTemplate: "src/queries/getAssociateName.graphql" tags: - - "v1" + - "v2" - name: "GetDailyRoster" queryTemplate: "src/queries/getDailyRoster.graphql" tags: - - "v1" + - "v2" - name: "GetSupplyChainShifts" queryTemplate: "src/queries/getSupplyChainShifts.graphql" tags: - - "v1" + - "v2" - name: "GetTeamById" queryTemplate: "src/queries/getTeamById.graphql" tags: - - "v1" + - "v2" - name: "GetTeamsByStore" queryTemplate: "src/queries/getTeamsbyStore.graphql" tags: - - "v1" + - "v2" - name: "upsertAssociateTextPreferences" queryTemplate: "src/queries/upsertAssociateTextPreference.graphql" tags: - - "v1" + - "v2" # - name: "prod" # persistedQueries: # - name: "GetAssociateClockStatus" # queryTemplate: "src/queries/getAssociateClockStatus.graphql" # tags: - # - "v1" + # - "v2" # - name: "GetAssociateName" # queryTemplate: "src/queries/getAssociateName.graphql" # tags: - # - "v1" + # - "v2" # - name: "GetDailyRoster" # queryTemplate: "src/queries/getDailyRoster.graphql" # tags: - # - "v1" + # - "v2" # - name: "GetSupplyChainShifts" # queryTemplate: "src/queries/getSupplyChainShifts.graphql" # tags: - # - "v1" + # - "v2" # - name: "GetTeamById" # queryTemplate: "src/queries/getTeamById.graphql" # tags: - # - "v1" + # - "v2" # - name: "GetTeamsByStore" # queryTemplate: "src/queries/getTeamsbyStore.graphql" # tags: - # - "v1" + # - "v2" # - name: "upsertAssociateTextPreferences" # queryTemplate: "src/queries/upsertAssociateTextPreference.graphql" # tags: - # - "v1" + # - "v2"
update tags
update tags
96df3441545f6bf6e14fc8c972a5c01679384692
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -133,7 +133,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps< ); const nameInitials = useSelector(UserSelectors.getOriginalUserInitials); - const displayName = useSelector(UserSelectors.getOriginalUserFirstName); + const displayName = useSelector(UserSelectors.getOriginalUserName); return ( <SafeAreaView style={styles.globalNavContainer}>
fixing GlobalNavigation display name
fixing GlobalNavigation display name
2a57db731c0bd8245a197643e6b31c905b12732c
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.13.0-alpha.5", + "version": "1.13.0-alpha.6", "main": "dist/index.js", "files": [ "dist" --- src/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import {firebase} from '@react-native-firebase/app-check'; -import {TeamHubNavigation, TextingNavigation} from './navigation'; +import {TeamHub, TextingNavigation} from './navigation'; import {initi18n} from './translations'; import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; import {SafeAreaProvider} from 'react-native-safe-area-context'; @@ -60,5 +60,5 @@ export const TextingMiniApp = () => { const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried); const showManagerTeamHub = isTeamLead || isSalaried || isPeopleLead; - return showManagerTeamHub ? <TeamHubNavigation /> : <MyTeamMiniApp />; + return showManagerTeamHub ? <TeamHub /> : <MyTeamMiniApp />; }; --- src/navigation/index.tsx @@ -10,7 +10,10 @@ import { SearchScreen, SearchHeaderRight, } from '@walmart/roster-mini-app'; -import {useSafeAreaInsets} from 'react-native-safe-area-context'; +import { + SafeAreaProvider, + useSafeAreaInsets, +} from 'react-native-safe-area-context'; import { MessagesScreen, NewMessageScreen, @@ -47,7 +50,7 @@ export const TextingNavigation = () => { <TextingStack.Navigator screenOptions={{ header: Header, - headerShown: true, + headerShown: false, cardStyle: {backgroundColor: 'white'}, }}> <TextingStack.Screen @@ -112,25 +115,5 @@ export const TeamHub = () => { .validate() .render(); - return <>{MyTeamHubContainer}</>; -}; - -export const TeamHubNavigation = () => { - return ( - <TextingStack.Navigator - screenOptions={{ - header: Header, - headerShown: true, - cardStyle: {backgroundColor: 'white'}, - }}> - <TextingStack.Screen - name='myTeam' - options={{ - title: 'My Team', - headerLeft: DrawerButton, - }} - component={TeamHub} - /> - </TextingStack.Navigator> - ); + return <SafeAreaProvider>{MyTeamHubContainer}</SafeAreaProvider>; };
feat(ui): update myteam mini app version
feat(ui): update myteam mini app version
de8f6867df5ee1283fc648ab2ea9803bb24d2892
--- lerna.json @@ -19,8 +19,5 @@ "ignoreChanges": [ "**/*.md", "**/__tests__/**" - ], - "packages": [ - "packages/*" ] }
chore: fix lerna config
chore: fix lerna config
a500f8381fffaa39578b941ba8e61e9b6fb61ad0
--- core/src/navigation/USHallway/AssociateHallwayNav/Tabs/MyTeamStackNav.tsx @@ -11,8 +11,6 @@ import {MyTeamHooks} from '@walmart/wmconnect-mini-app'; import {MainTabsScreenProps, MyTeamStackMap} from '../types'; import {withScreenGuards} from '../../../../core/CreateGuardedScreens'; import {MINI_APPS} from '../../../../oneClick/MiniApps'; -import {View} from 'react-native'; -import {HomeHeaderRightContainer} from '@walmart/me-at-walmart-common'; const MyTeamStack = createStackNavigator<MyTeamStackMap>(); @@ -22,14 +20,6 @@ const GuardedTexting = withScreenGuards(TextingMiniApp, { clockCheckEnabled: false, }); -export const renderHeaderRight = () => { - return ( - <View> - <HomeHeaderRightContainer.Component id='inbox' /> - </View> - ); -}; - export const MyTeamStackNav = (props: MainTabsScreenProps<'myTeam'>) => { const {navigation} = props; @@ -49,7 +39,6 @@ export const MyTeamStackNav = (props: MainTabsScreenProps<'myTeam'>) => { headerMode: 'float', headerShown: false, header: Header, - headerRight: renderHeaderRight, }}> <MyTeamStack.Screen name='myTeam.root'
Update the my team mini app changes
Update the my team mini app changes
e85e9202b6fa9a82a7b4f271c4ba8e9eb588b958
--- package-lock.json @@ -5488,9 +5488,9 @@ "integrity": "sha512-Tz8PRLTpf4goLTBXayZxsBRuy/8+fnxjt+m7g3kfu0NRG58n/MgKi9krclf+LSLBhYTJcL5sKg8ckhA90dHlYQ==" }, "@walmart/receipt-check-miniapp": { - "version": "1.5.0", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.5.0.tgz", - "integrity": "sha512-ukJQv63cUaiZD+S82dcIayPnRzzthI/fdVMvLzqdPE+zXVIGxr037Q9JFb5GkPtquPjoUHhivVDKKeQ2mMNJ8A==", + "version": "1.7.0", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.7.0.tgz", + "integrity": "sha512-2ugtKF2BijGrr2QleRwpuUbEDIhodbMLdaQzUuQM8cFTY791sdTo5/1OLB5LUQC/aSBWec3l1NIC/LPLvbTOiA==", "requires": { "@walmart/tcnumber": "^2.3.1", "@xstate/react": "^3.0.1", --- package.json @@ -112,7 +112,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "^0.3.7", "@walmart/react-native-sumo-sdk": "2.2.2-beta.2", - "@walmart/receipt-check-miniapp": "1.5.0", + "@walmart/receipt-check-miniapp": "1.7.0", "@walmart/redux-store": "2.0.4", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/schedule-mini-app": "0.24.0",
Bump receipt mini app version
Bump receipt mini app version
40361a886335f448e3e4600908b5c8005f9440a1
--- src/components/Roster/Roster.tsx @@ -10,6 +10,20 @@ import {useSelector} from 'react-redux'; import {teamLeadJobDescriptions} from '../../redux/selectors'; import {Associate} from '../../types'; +/** AssociateRosterItem fields + * userId + * win + * fullName + * preferredFirstName + * preferredLastName + * firstName + * lastName + * storeSchedule + * absentData + * punch + * jobCategoryCodeDesc + */ + //TODO: States to verify: No Data, Loading, Error (identify all types of errors), Success export const Roster: React.FC<RosterProps> = (props) => { const {
identify minimal fields needed for an associateRoster item
identify minimal fields needed for an associateRoster item
c34839b5c07f534cdb0713fb12f84a99e87ebe98
--- core/__tests__/home/components/CelebrationCard/indexTest.tsx @@ -63,7 +63,7 @@ describe('CelebrationCard', () => { mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone mockUseSelector.mockReturnValueOnce(true); // isStore mockUseAsync.mockReturnValueOnce({loading: true}); - mockUseSelector.mockReturnValueOnce(true) // compensable + mockUseSelector.mockReturnValueOnce(true); // compensable const component = create(<CelebrationCard {...baseProps} />); it('matches snapshot while fetching', () => { @@ -174,11 +174,11 @@ describe('CelebrationCard', () => { mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone mockUseSelector.mockReturnValueOnce(true); // isStore mockUseAsync.mockReturnValueOnce({loading: true}); - mockUseSelector.mockReturnValueOnce(false) // compensable + mockUseSelector.mockReturnValueOnce(false); // compensable component.update(<CelebrationCard {...baseProps} />); expect(component.toJSON()).toBe(null); }); - it('does render the card when associate is clocked in', () => { + xit('does render the card when associate is clocked in', () => { jest.clearAllMocks(); mockUseSelector.mockReturnValueOnce('100'); // siteId mockUseSelector.mockReturnValueOnce('Store/Club'); // domain @@ -186,7 +186,7 @@ describe('CelebrationCard', () => { mockUseSelector.mockReturnValueOnce({timeZoneId: 'America/New_York'}); // site Timezone mockUseSelector.mockReturnValueOnce(true); // isStore mockUseAsync.mockReturnValueOnce({loading: true}); - mockUseSelector.mockReturnValueOnce(true) // compensable + mockUseSelector.mockReturnValueOnce(true); // compensable component.update(<CelebrationCard {...baseProps} />); expect(component.toJSON()).toMatchSnapshot(); }); --- targets/US/package.json @@ -91,7 +91,7 @@ "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.7.5", "@walmart/calling-mini-app": "0.5.17", - "@walmart/checkout-mini-app": "4.0.16", + "@walmart/checkout-mini-app": "4.0.17", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.5.2", "@walmart/core-services": "~6.5.2", --- yarn.lock @@ -6152,9 +6152,9 @@ __metadata: languageName: node linkType: hard -"@walmart/checkout-mini-app@npm:4.0.16": - version: 4.0.16 - resolution: "@walmart/checkout-mini-app@npm:4.0.16" +"@walmart/checkout-mini-app@npm:4.0.17": + version: 4.0.17 + resolution: "@walmart/checkout-mini-app@npm:4.0.17" dependencies: "@stomp/stompjs": "npm:^7.0.0" cpc-input: "npm:^1.7.28" @@ -6192,7 +6192,7 @@ __metadata: react-native-safe-area-context: "*" react-redux: ^8.1.3 redux: ^4.0.5 - checksum: 10c0/47b96fbef3385723c2df4308a41030530594340ea9f05cae4d971e5a02d1a7c805d4dcaf5c2c6e8878ca163d4c7ca86fb970fad548d35e1e26ffd13bd941ccfe + checksum: 10c0/fc9296b1c5ed552e42b5533441d1721ee22723e2e2c6e750fc5e75ad0f040e824e756c10442a97de43495c83e87ba7406063b5aeeda97d64a49796b92084af9e languageName: node linkType: hard @@ -7002,7 +7002,7 @@ __metadata: "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.7.5" "@walmart/calling-mini-app": "npm:0.5.17" - "@walmart/checkout-mini-app": "npm:4.0.16" + "@walmart/checkout-mini-app": "npm:4.0.17" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.5.2" "@walmart/core-services": "npm:~6.5.2"
CO : 4.0.17
CO : 4.0.17
55aff2e4eeb9c901d786a0a6aa48e58bfab686f1
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -79,7 +79,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( }, [drawerStatus]); useEffect(() => { - getUnreadCountForAllChannels().then(setUnreadMessagesCount); + setUnreadMessagesCount(getUnreadCountForAllChannels()); // eslint-disable-next-line react-hooks/exhaustive-deps }, []);
updating meganav unread count with new method
updating meganav unread count with new method
9dfbe372ef232ab68acf033a79201cb56051c15d
--- packages/allspark-foundation/src/Navigation/config/redux.ts @@ -17,6 +17,7 @@ export type NavConfigState = { loading: boolean; error: boolean; data: NavConfigData | null; + overridden: boolean; }; const INITIAL_STATE: NavConfigState = { @@ -26,6 +27,7 @@ const INITIAL_STATE: NavConfigState = { loaded: false, error: false, data: null, + overridden: false, }; export const navConfigSlice = createSlice({ @@ -51,6 +53,7 @@ export const navConfigSlice = createSlice({ state.loaded = true; state.error = false; state.data = action.payload; + state.overridden = false; }, FETCH_ERROR: (state) => { state.loading = false; @@ -58,6 +61,11 @@ export const navConfigSlice = createSlice({ }, STATE_CHANGED: (state, action: PayloadAction<NavConfigData>) => { state.data = action.payload; + state.overridden = false; + }, + OVERRIDE_DATA: (state, action: PayloadAction<NavConfigData>) => { + state.data = action.payload; + state.overridden = true; }, OVERRIDE_OPTION: ( state,
feat: add action to override nav config data completely
feat: add action to override nav config data completely
46a0b2a597877a3b9350738e1b31098215ab50b0
--- docs/docs/components/hub framework/hub-architecture.md @@ -32,6 +32,9 @@ Provides a customizable header for the hub, allowing users to show or hide it as - Title Component - Navigation Component +#### Image +`Todo: Add the image` + #### API - `showHeader`: boolean (true/false) @@ -55,6 +58,9 @@ A self-contained, reusable component that lists all teams in association prefere - Team List Component - Team Selection Component +#### Image +`Todo: Add the image` + #### API - `teams`: array (list of teams) @@ -78,6 +84,9 @@ Responsible for displaying widgets specific to the hub. - Widgets Container - Widget Component +#### Image +`Todo: Add the image` + #### API - `widgets`: array (list of widgets) --- docs/docs/components/hub framework/hub-telemetry.md @@ -1,4 +1,19 @@ --- sidebar_position: 9 title: Hub Telemetry & Analytics ---- \ No newline at end of file +--- + +# Hub Telemetry & Analytics + +### Telemetry + +| Event Name | Description | +| ---------- | ------------------------------------------------------------------------------------- | +| Test event | Test description | + + +### Analytics + +| Event Name | Description | +| ---------- | ------------------------------------------------------------------------------------- | +| Test event | Test description | \ No newline at end of file
Update the documentation with the appropriate info
Update the documentation with the appropriate info
8be594a5c40682537b8b456c61d88930e42e9b2e
--- package-lock.json @@ -5541,9 +5541,9 @@ } }, "@walmart/settings-mini-app": { - "version": "1.8.0-beta.1", - "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.8.0-beta.1.tgz", - "integrity": "sha512-mL1NuQGjVXs/HBliF5R/epxTo3+lnuJ+fSZYxv2zKVjt3WE901m0xwqFyoT1b0PKGyUDDO4OCMCVFqL1K2W7fA==" + "version": "1.8.0-beta.2", + "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.8.0-beta.2.tgz", + "integrity": "sha512-U5mJbTh3k8AinkmiKjZdzfres7XeHi9mjsvBhRFqK4U1N1LCwgI0KMpnn8jVXJIJawm0vTDUC18sVAXNTEvbfg==" }, "@walmart/shelfavailability-mini-app": { "version": "1.2.3", --- package.json @@ -115,7 +115,7 @@ "@walmart/redux-store": "2.0.4", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/schedule-mini-app": "0.24.0", - "@walmart/settings-mini-app": "1.8.0-beta.1", + "@walmart/settings-mini-app": "1.8.0-beta.2", "@walmart/shelfavailability-mini-app": "1.2.3", "@walmart/taskit-mini-app": "0.34.5", "@walmart/time-clock-mini-app": "0.13.4",
update setting beta v
update setting beta v
0fe546d79bfd88c55cf7445f95bf267cd4e171b6
--- package-lock.json @@ -44,7 +44,7 @@ "@walmart/core-utils": "~1.3.0", "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", - "@walmart/emergency-mini-app": "1.18.0", + "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.14", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.9", @@ -5042,9 +5042,9 @@ } }, "node_modules/@walmart/emergency-mini-app": { - "version": "1.18.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.18.0.tgz", - "integrity": "sha512-pwsIvLY3cvP7FtBKu6jB2f0q72rmKam2a/kCHqZ1TbZFefGnivXzLY7hrTTsCvAVTrjCkIxmPpsWiRtC7xDidQ==", + "version": "1.19.0", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.19.0.tgz", + "integrity": "sha512-ITOT8qbEI4m/5iJ4y1xBG5CR6Z9AG3T9XsmyBbeQXpViU8vGrJcQ49jeAeweVbRSn0bNFZ6c3l6Go2btAvA8wg==", "dependencies": { "@walmart/core-widget-registry": "^0.6.6" }, @@ -25143,9 +25143,9 @@ "integrity": "sha512-tk3UvKAl/VM29GwO/5uNURHnJkR/M1kq42Hn/2Xob+Ww7rY3gOHKhCTL3NytAPrZxyQco0ZyfGOGPbpy2aDnRw==" }, "@walmart/emergency-mini-app": { - "version": "1.18.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.18.0.tgz", - "integrity": "sha512-pwsIvLY3cvP7FtBKu6jB2f0q72rmKam2a/kCHqZ1TbZFefGnivXzLY7hrTTsCvAVTrjCkIxmPpsWiRtC7xDidQ==", + "version": "1.19.0", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.19.0.tgz", + "integrity": "sha512-ITOT8qbEI4m/5iJ4y1xBG5CR6Z9AG3T9XsmyBbeQXpViU8vGrJcQ49jeAeweVbRSn0bNFZ6c3l6Go2btAvA8wg==", "requires": { "@walmart/core-widget-registry": "~0.7.2" } --- package.json @@ -87,7 +87,7 @@ "@walmart/core-utils": "~1.3.0", "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.0.42", - "@walmart/emergency-mini-app": "1.18.0", + "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.14", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.9",
Added emergency Drop 8.3 hotfix
Added emergency Drop 8.3 hotfix
0e78d888bf743c0ed466931c3ed1ccebd7b04c0b
--- packages/core-services-allspark/src/user/types.ts @@ -0,0 +1 @@ +export type { BU_TYPE_DOMAIN } from '@walmart/me-at-walmart-container'; --- packages/react-native-wm-notification/src/index.ts @@ -4,6 +4,7 @@ import { NotificationEventListeners, NotificationProfile, NOTIFICATION_EVENTS_TYPES, + NotificationEnvironment as SumoEnvironment, } from '@walmart/allspark-foundation/Notification'; /** @@ -66,3 +67,10 @@ export type SumoUser = NotificationProfile; * @deprecated use `NOTIFICATION_EVENTS_TYPES` from '@walmart/allspark-foundation/Notification' instead */ export const SumoPushEventTypes = NOTIFICATION_EVENTS_TYPES; + +export { + /** + * @deprecated use `NotificationEnvironment` from '@walmart/allspark-foundation/Notification' instead + */ + SumoEnvironment, +};
fix: add missing export for backwards compatability
fix: add missing export for backwards compatability
7344d416e464a0c557ed67896886c1b7430cc810
--- packages/me-at-walmart-container/src/graphql/policies.ts @@ -6,13 +6,13 @@ export const TypePolicies: StrictTypedTypePolicies = { fields: { getAssociateById: { keyArgs: ['id', 'idType'], - read(existing, options) { + read(existing, { toReference, args }) { if (existing) return existing; // Transform query args into cache lookup - return options.toReference({ + return toReference({ __typename: 'Associate', - associateId: options.args?.id, + associateId: args?.id, }); }, },
chore: update options reference in graphql policy
chore: update options reference in graphql policy
b74adc16666e9c5c49643a2d0176c2489a163c70
--- ios/Podfile.lock @@ -328,35 +328,35 @@ PODS: - React - react-native-encrypted-storage (4.0.2): - React-Core - - react-native-geolocation-service (5.2.0): + - react-native-geolocation-service (5.1.1): - React - - react-native-get-random-values (1.7.0): + - react-native-get-random-values (1.5.1): - React-Core - react-native-logger (1.25.0): - React - - react-native-netinfo (5.9.10): + - react-native-netinfo (5.9.7): - React-Core - - react-native-pdf (6.3.0): + - react-native-pdf (6.2.2): - React-Core - react-native-ptt-module (1.3.5): - PTT (= 0.6.0-rc.6) - React - - react-native-safe-area-context (3.2.0): + - react-native-safe-area-context (3.1.8): - React-Core - react-native-splash-screen (3.2.0): - React - react-native-sumo-sdk (2.7.1): - React - - react-native-video (5.1.1): - - React-Core - - react-native-video/Video (= 5.1.1) - - react-native-video/Video (5.1.1): - - React-Core + - react-native-video (5.1.0-alpha8): + - React + - react-native-video/Video (= 5.1.0-alpha8) + - react-native-video/Video (5.1.0-alpha8): + - React - react-native-view-shot (3.1.2): - React - - react-native-webview (10.10.2): + - react-native-webview (10.10.0): - React-Core - - react-native-wm-barcode (2.9.0): + - react-native-wm-barcode (2.25.0): - React - react-native-wm-voice-text (0.4.1): - React @@ -428,7 +428,7 @@ PODS: - React-Core - RNCClipboard (1.5.1): - React-Core - - RNCMaskedView (0.1.11): + - RNCMaskedView (0.1.10): - React - RNCPicker (1.8.1): - React-Core @@ -463,23 +463,23 @@ PODS: - Firebase/RemoteConfig (~> 6.34.0) - React-Core - RNFBApp - - RNFS (2.18.0): + - RNFS (2.17.0): + - React + - RNGestureHandler (1.8.0): - React - - RNGestureHandler (1.10.3): - - React-Core - RNPermissions (3.0.0): - React-Core - RNReactNativeHapticFeedback (1.11.0): - React-Core - - RNReanimated (1.13.3): - - React-Core - - RNScreens (2.18.1): - - React-Core - - RNSha256 (1.4.7): + - RNReanimated (1.13.1): + - React + - RNScreens (2.11.0): + - React + - RNSha256 (1.3.6): - React - RNSketchCanvas (0.8.0): - React - - RNSVG (12.1.1): + - RNSVG (12.1.0): - React - RNVectorIcons (7.1.0): - React @@ -780,8 +780,8 @@ SPEC CHECKSUMS: leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729 libwebp: e90b9c01d99205d03b6bb8f2c8c415e5a4ef66f0 nanopb: 59317e09cf1f1a0af72f12af412d54edf52603fc - Permission-LocationWhenInUse: e2b8c40ce0f3675a521f26787ab47ebb9bace503 - Permission-Notifications: 5c69bf2f6c1e30345af4f25e2981dc1c8dafbc22 + Permission-LocationWhenInUse: e09ae67e8db2b1eeefb35f18ca59848d0785de5b + Permission-Notifications: 4325073de6e418cfbbdd8d296822c419d8ddc7ef PromisesObjC: 3113f7f76903778cf4a0586bd1ab89329a0b7b97 Protobuf: 7327d4444215b5f18e560a97f879ff5503c4581c PTT: 77f5b7578dbdc8a8f5b4509844a6e9f234bd5b83 @@ -796,21 +796,21 @@ SPEC CHECKSUMS: React-jsiexecutor: 8ca588cc921e70590820ce72b8789b02c67cce38 React-jsinspector: b14e62ebe7a66e9231e9581279909f2fc3db6606 react-native-biometrics: 9d3306e5d29c3bc4e6a3c912d759a94e76a2f683 - react-native-encrypted-storage: e78d848ce0fb663c2ce306e37921d026809322e6 - react-native-geolocation-service: 7c9436da6dfdecd9526c62eac62ea2bc3f0cc8ea - react-native-get-random-values: 237bffb1c7e05fb142092681531810a29ba53015 + react-native-encrypted-storage: 837c733334debf626204f03d867c7e01d8741e2f + react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a + react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e react-native-logger: 6d1a4098b9b035278c3691760a45be8ce56acd2e - react-native-netinfo: 30fb89fa913c342be82a887b56e96be6d71201dd - react-native-pdf: ef641e79a6d550cfabe5d7ec1916799726514c43 + react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f + react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f react-native-ptt-module: fd0a9eaa70d34a46254aae6eb208aae054e8c5dc - react-native-safe-area-context: f0906bf8bc9835ac9a9d3f97e8bde2a997d8da79 + react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f - react-native-video: 0bb76b6d6b77da3009611586c7dbf817b947f30e - react-native-view-shot: 4475fde003fe8a210053d1f98fb9e06c1d834e1c - react-native-webview: 0aa2cde4ee7e3e1c5fffdf64dbce9c709aa18155 - react-native-wm-barcode: 1f16edb27dac807563ed08edc9d0ba042e9a182d - react-native-wm-voice-text: 91c90227ae44f598bf33ec5db84095bc6142daef + react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 + react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 + react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 + react-native-wm-barcode: eeee6215ce0f2969b7648fee8015745d175269ce + react-native-wm-voice-text: 80c0b59ff0fab4daf179ee430e4ea285181e3891 React-RCTActionSheet: 910163b6b09685a35c4ebbc52b66d1bfbbe39fc5 React-RCTAnimation: 9a883bbe1e9d2e158d4fb53765ed64c8dc2200c6 React-RCTBlob: 39cf0ece1927996c4466510e25d2105f67010e13 @@ -821,14 +821,14 @@ SPEC CHECKSUMS: React-RCTText: 1b6773e776e4b33f90468c20fe3b16ca3e224bb8 React-RCTVibration: 4d2e726957f4087449739b595f107c0d4b6c2d2d ReactCommon: a0a1edbebcac5e91338371b72ffc66aa822792ce - ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab + ReactNativeART: f003b07dfa7098aa419ed95b69560923440b1eee rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba - RNCAsyncStorage: b03032fdbdb725bea0bd9e5ec5a7272865ae7398 - RNCClipboard: 41d8d918092ae8e676f18adada19104fa3e68495 - RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489 + RNCAsyncStorage: cb9a623793918c6699586281f0b51cbc38f046f9 + RNCClipboard: 5e299c6df8e0c98f3d7416b86ae563d3a9f768a3 + RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459 RNCPicker: 914b557e20b3b8317b084aca9ff4b4edb95f61e4 - RNDateTimePicker: 8a51a2216c307769e69ef827293d59549ab1ca23 - RNDeviceInfo: c5f8f3a456adcbba405ace475254b08febc4c095 + RNDateTimePicker: 986d4794006e5caaebd089a724f54d35631a8dd4 + RNDeviceInfo: e841619c3dac5495a095c5455473579ff04908d4 RNFastImage: d4870d58f5936111c56218dbd7fcfc18e65b58ff RNFBAnalytics: 6414e9fe1f36c3074f39cd6265b3def777dbfbdb RNFBApp: 804b98033f45c3a3e35b56de8c894f85ef5e4388 @@ -836,15 +836,15 @@ SPEC CHECKSUMS: RNFBDatabase: a0c49ec06eb689788a3071dc071fc7ee842ce3d9 RNFBPerf: aa494d0db6c246d14ffa46b157d63b0a4d5da4ff RNFBRemoteConfig: e5f89ce1c549bc29f03d71c2aa50ef860d7e68a5 - RNFS: 3ab21fa6c56d65566d1fb26c2228e2b6132e5e32 - RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211 - RNPermissions: 99dd8d4a30ff13509b949ca63cd1f69edc461775 + RNFS: 93d5b5535eb39d98e6b19009faa8fe717f7ea45d + RNGestureHandler: 7a5833d0f788dbd107fbb913e09aa0c1ff333c39 + RNPermissions: 350964d19150b183796a88180fb7ec62a1e41422 RNReactNativeHapticFeedback: 653a8c126a0f5e88ce15ffe280b3ff37e1fbb285 - RNReanimated: 514a11da3a2bcc6c3dfd9de32b38e2b9bf101926 - RNScreens: f7ad633b2e0190b77b6a7aab7f914fad6f198d8d - RNSha256: bf2c90a9e0cec6dcbcc4100e4e19715ae7feaa34 - RNSketchCanvas: 9c28adb5381543ed55cc98ce6de46479cb3cb12c - RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f + RNReanimated: dd8c286ab5dd4ba36d3a7fef8bff7e08711b5476 + RNScreens: 0e91da98ab26d5d04c7b59a9b6bd694124caf88c + RNSha256: 22383f4a1ed2b38da9d642c608892a3ab4cad80a + RNSketchCanvas: 6939b18677cd1794151cc3d8eb5a0a2158a4a05b + RNSVG: ce9d996113475209013317e48b05c21ee988d42e RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59 RNWMSSOLibrary: 3103d2f05e6c559dfab7da9ca82c07472b0d0d6b SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d @@ -855,4 +855,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 567b62a30f7dd8da9c40b835f39a00c574423a67 -COCOAPODS: 1.9.3 +COCOAPODS: 1.10.1
pod file matching with develop
pod file matching with develop
6f7be5c2b48267258a0c85bb5fa19bbf19139814
--- package.json @@ -97,7 +97,7 @@ "@walmart/associate-listening-mini-app": "2.0.37", "@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch", "@walmart/avp-feature-app": "0.28.47", - "@walmart/avp-shared-library": "0.27.24", + "@walmart/avp-shared-library": "0.27.26", "@walmart/ax-components": "1.2.10", "@walmart/backroom-mini-app": "1.17.11", "@walmart/beneficiary-online-mini-app": "0.1.26", @@ -120,7 +120,7 @@ "@walmart/expo-config-plugins": "0.11.3", "@walmart/facilities-management-miniapp": "0.18.41", "@walmart/feedback-all-spark-miniapp": "0.9.82", - "@walmart/financial-wellbeing-feature-app": "1.31.6", + "@walmart/financial-wellbeing-feature-app": "1.31.14", "@walmart/functional-components": "~6.3.28", "@walmart/global-vpi-mini-app": "1.1.63", "@walmart/gta-react-native-calendars": "0.7.0", --- yarn.lock @@ -7964,9 +7964,9 @@ __metadata: languageName: node linkType: hard -"@walmart/avp-shared-library@npm:0.27.24": - version: 0.27.24 - resolution: "@walmart/avp-shared-library@npm:0.27.24::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Favp-shared-library%2F-%2F%40walmart%2Favp-shared-library-0.27.24.tgz" +"@walmart/avp-shared-library@npm:0.27.26": + version: 0.27.26 + resolution: "@walmart/avp-shared-library@npm:0.27.26::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Favp-shared-library%2F-%2F%40walmart%2Favp-shared-library-0.27.26.tgz" peerDependencies: "@walmart/allspark-foundation": "*" axios: ^1.3.4 @@ -7977,7 +7977,7 @@ __metadata: redux-saga: ^1.1.3 reduxsauce: ^1.2.0 reselect: ^4.1.7 - checksum: 10c0/0fb6ad701320d2446665a1f4385689273a8e5001b217482a58d4a0e759d8bd2f87dc63588993ec150b246d4f027306c7927dd4b15128ce11e2362d9a09af3611 + checksum: 10c0/62cfc00ef98a6b36ae275674d2052f22cbd1ab307bafdf2012a800872d3f5d55a9f07dfa5c59f4ff6283fb3a35c705a45524fc632944b4985c3fd8e11fba2ee0 languageName: node linkType: hard @@ -8408,9 +8408,9 @@ __metadata: languageName: node linkType: hard -"@walmart/financial-wellbeing-feature-app@npm:1.31.6": - version: 1.31.6 - resolution: "@walmart/financial-wellbeing-feature-app@npm:1.31.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffinancial-wellbeing-feature-app%2F-%2F%40walmart%2Ffinancial-wellbeing-feature-app-1.31.6.tgz" +"@walmart/financial-wellbeing-feature-app@npm:1.31.14": + version: 1.31.14 + resolution: "@walmart/financial-wellbeing-feature-app@npm:1.31.14::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffinancial-wellbeing-feature-app%2F-%2F%40walmart%2Ffinancial-wellbeing-feature-app-1.31.14.tgz" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -8421,7 +8421,7 @@ __metadata: react-native-svg: ^13.4.0 react-redux: ^8.0.4 redux: ^4.1.2 - checksum: 10c0/587545a688c6a6d264aeb477a223f14b195e7e5b0db84361008de116d5e6ea838b9391f91c0b97f7435c5f8edaa5652f4fc789e35ba939f6520b48c03656c182 + checksum: 10c0/9bd016d753590903fcda3047584794e1142ac51e4008a99a28f5da8743defa45d977ce3cbcd0dbe411ddf4b9400fba0bcf581fec97b07bc20550085a18f597a5 languageName: node linkType: hard @@ -8869,7 +8869,7 @@ __metadata: "@walmart/associate-listening-mini-app": "npm:2.0.37" "@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch" "@walmart/avp-feature-app": "npm:0.28.47" - "@walmart/avp-shared-library": "npm:0.27.24" + "@walmart/avp-shared-library": "npm:0.27.26" "@walmart/ax-components": "npm:1.2.10" "@walmart/backroom-mini-app": "npm:1.17.11" "@walmart/beneficiary-online-mini-app": "npm:0.1.26" @@ -8892,7 +8892,7 @@ __metadata: "@walmart/expo-config-plugins": "npm:0.11.3" "@walmart/facilities-management-miniapp": "npm:0.18.41" "@walmart/feedback-all-spark-miniapp": "npm:0.9.82" - "@walmart/financial-wellbeing-feature-app": "npm:1.31.6" + "@walmart/financial-wellbeing-feature-app": "npm:1.31.14" "@walmart/functional-components": "npm:~6.3.28" "@walmart/global-vpi-mini-app": "npm:1.1.63" "@walmart/gta-react-native-calendars": "npm:0.7.0"
Feature/fwb hotfix 1.35 (#5332)
Feature/fwb hotfix 1.35 (#5332) Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
4694c946af13b59b03f235908f7a2e1e33bc64d4
--- packages/allspark-foundation-hub/package.json @@ -7,11 +7,6 @@ "files": [ "lib/" ], - "bin": { - "allspark-generate-graphql": "./cli/generate.js", - "allspark-link": "./cli/link.js", - "allspark-setup": "./cli/setup.js" - }, "repository": { "type": "git", "url": "https://gecgithub01.walmart.com/allspark/allspark" @@ -20,11 +15,9 @@ "coverage": "jest --coverage", "lint": "npx eslint ./ --ext .js,.jsx,.ts,.tsx", "lint:fix": "npx eslint ./ --ext .js,.jsx,.ts,.tsx --fix", - "generate:queries": "./cli/generate.js", "clean:tsbuildinfo": "rm -rf *.tsbuildinfo || true", "clean": "yarn run clean:tsbuildinfo && rm -rf Core HubFeature cli || true", - "build": "yarn run clean && tsc", - "link:assets": "npx react-native-asset" + "build": "yarn run clean && tsc" }, "engines": { "node": ">=18.0.0" --- yarn.lock @@ -7225,10 +7225,6 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - bin: - allspark-generate-graphql: ./cli/generate.js - allspark-link: ./cli/link.js - allspark-setup: ./cli/setup.js languageName: unknown linkType: soft
Update package json file for hub
Update package json file for hub
2443225364c5a57cb654fedbb48383f37425a922
--- src/components/TeamList.tsx @@ -345,9 +345,6 @@ export const TeamChatCard = (props: { } const renderTeamItems = teams.map((teamItemInfo, teamItemNdx) => { const isLastItem = teamItemNdx === teams.length - 1; - console.log( - 'isLastItem: ' + isLastItem + ' teamName: ' + teamItemInfo.teamName + " teamId: " + teamItemInfo.teamId, - ); return ( <TeamItem teamId={teamItemInfo.teamId!} --- src/components/TeamList.tsx @@ -345,9 +345,6 @@ export const TeamChatCard = (props: { } const renderTeamItems = teams.map((teamItemInfo, teamItemNdx) => { const isLastItem = teamItemNdx === teams.length - 1; - console.log( - 'isLastItem: ' + isLastItem + ' teamName: ' + teamItemInfo.teamName + " teamId: " + teamItemInfo.teamId, - ); return ( <TeamItem teamId={teamItemInfo.teamId!}
remove console log
remove console log
e273b769ba6b1aceb1a20befde580da8695ce75e
--- package-lock.json @@ -4286,9 +4286,9 @@ } }, "@walmart/impersonation-mini-app": { - "version": "1.0.28-beta.8", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.28-beta.8.tgz", - "integrity": "sha512-6cO57SnVFT8MhLIajydD87lM7tLyNjS2N71It4x2ae8hCpyjHX+z8Bk7VrFqDAO/kGLyz8gA1C0xdm/MzpiMOw==" + "version": "1.0.28-beta.9", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.28-beta.9.tgz", + "integrity": "sha512-n8UJ9OpwlO/HTo62gCzy2hU1mewj8SHz6H2uPExmuc9gny175mrRh+btVFyWfYxyAO8AJU6rKjNNTnL9DEGXHw==" }, "@walmart/ims-print-services-ui": { "version": "0.1.28", --- package.json @@ -82,7 +82,7 @@ "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", - "@walmart/impersonation-mini-app": "1.0.28-beta.8", + "@walmart/impersonation-mini-app": "1.0.28-beta.9", "@walmart/ims-print-services-ui": "0.1.28", "@walmart/inbox-mini-app": "0.37.0", "@walmart/iteminfo-mini-app": "4.1.8", @@ -190,6 +190,7 @@ "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", + "node-pre-gyp": "0.12.0", "@react-native-community/eslint-config": "^2.0.0", "@testing-library/react-hooks": "^5.0.3", "@types/crypto-js": "^3.1.43",
version bump
version bump
213542099c67642c780896759ae0685c84a17862
--- jest.config.js @@ -6,7 +6,7 @@ module.exports = { coverageThreshold: { global: { statements: 88, - branches: 84, + branches: 83.96, functions: 79, lines: 88, },
chore: lower coverage after drop due to code removal
chore: lower coverage after drop due to code removal
344799c6bfa5571230d957ea335b26d24bac0161
--- src/components/ActionButton/index.tsx @@ -1,7 +1,12 @@ import React, {createElement} from 'react'; import {ActivityIndicator, TouchableOpacity} from 'react-native'; -import Animated from 'react-native-reanimated'; -import {Icons} from '@walmart/gtp-shared-components'; +import Animated, { + interpolateColor, + useAnimatedStyle, + useDerivedValue, + withTiming, +} from 'react-native-reanimated'; +import {colors, Icons} from '@walmart/gtp-shared-components'; import {styles} from './style'; import {ActionButtonProps} from './types'; @@ -11,9 +16,25 @@ export const ActionButton = ({ disabled, ...buttonProps }: ActionButtonProps) => { + const disabledProgress = useDerivedValue(() => { + return withTiming(disabled ? 0 : 1, {duration: 150}); + }, [disabled]); + + const disabledStyle = useAnimatedStyle(() => { + const backgroundColor = interpolateColor( + disabledProgress.value, + [0, 1], + [colors.gray[50], colors.blue[100]], + ); + + return { + backgroundColor, + }; + }); + return ( <TouchableOpacity disabled={disabled} {...buttonProps}> - <Animated.View style={[styles.button]}> + <Animated.View style={[styles.button, disabledStyle]}> {loading ? ( <ActivityIndicator size='small' /> ) : ( --- src/components/ActionButton/index.tsx @@ -1,7 +1,12 @@ import React, {createElement} from 'react'; import {ActivityIndicator, TouchableOpacity} from 'react-native'; -import Animated from 'react-native-reanimated'; -import {Icons} from '@walmart/gtp-shared-components'; +import Animated, { + interpolateColor, + useAnimatedStyle, + useDerivedValue, + withTiming, +} from 'react-native-reanimated'; +import {colors, Icons} from '@walmart/gtp-shared-components'; import {styles} from './style'; import {ActionButtonProps} from './types'; @@ -11,9 +16,25 @@ export const ActionButton = ({ disabled, ...buttonProps }: ActionButtonProps) => { + const disabledProgress = useDerivedValue(() => { + return withTiming(disabled ? 0 : 1, {duration: 150}); + }, [disabled]); + + const disabledStyle = useAnimatedStyle(() => { + const backgroundColor = interpolateColor( + disabledProgress.value, + [0, 1], + [colors.gray[50], colors.blue[100]], + ); + + return { + backgroundColor, + }; + }); + return ( <TouchableOpacity disabled={disabled} {...buttonProps}> - <Animated.View style={[styles.button]}> + <Animated.View style={[styles.button, disabledStyle]}> {loading ? ( <ActivityIndicator size='small' /> ) : (
Revert "Task SMDV-4754 pause button backgoundColor changed"
Revert "Task SMDV-4754 pause button backgoundColor changed"
96c70269a5aafee0b1c498b46d06076cddf32a14
--- src/auth/LoginErrorScreen/index.tsx @@ -117,11 +117,11 @@ export const ErrorScreen = ( const customErrorCode = params?.authError?.code; const [isNetworkError, isTimeMismatchError, isBrowserNotFoundError] = useMemo(() => { - const networkError = networkErrors.some( - (term) => customError?.toLowerCase()?.includes(term), + const networkError = networkErrors.some((term) => + customError?.toLowerCase()?.includes(term), ); - const timeMismatch = timeMismatchErrors.some( - (term) => customError?.toLowerCase()?.includes(term), + const timeMismatch = timeMismatchErrors.some((term) => + customError?.toLowerCase()?.includes(term), ); const noBrowserFound = noBrowserAndroidErrors === customErrorCode; return [networkError, timeMismatch, noBrowserFound]; --- src/hooks/useCanImpersonate.ts @@ -11,9 +11,8 @@ export const useCanImpersonate = () => { const user: User | null = useSelector(UserSelectors.getOriginalUser); const impersonatorGroups: string[] = useSelector(getImpersonatorGroups); - return impersonatorGroups.some( - (group: string) => - // @ts-ignore - user?.memberOf?.includes(group), + return impersonatorGroups.some((group: string) => + // @ts-ignore + user?.memberOf?.includes(group), ); }; --- src/startup/AuthFlow.ts @@ -18,8 +18,8 @@ const SILENT_SSO_ERRORS = [ ]; export const isSilentSignInError = (error?: Error) => - SILENT_SSO_ERRORS.some( - (silentError) => `${error}`?.toLowerCase().includes(silentError), + SILENT_SSO_ERRORS.some((silentError) => + `${error}`?.toLowerCase().includes(silentError), ); export function* authFlow() {
lint fixes to pass pr checks
lint fixes to pass pr checks
bb8ab1d31ef0f1a012e008ee5d70bc1efe8e73c1
--- src/sumo/SumoRedux.ts @@ -90,7 +90,7 @@ export const getSumoProfile = createSelector( ); export const getSumoProfileId = createSelector( [getSumoProfile], - (profile) => profile.profileId, + (profile) => profile?.profileId, ); export const getEncryptedSumoProfileId = createSelector( [getSumoProfileId, getEncryptionKey],
Fixing sumo selector
Fixing sumo selector
1bb01c314e19419ce2c6a5570f8509e9e4b44233
--- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.8.5", + "version": "1.8.10", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5575,14 +5575,13 @@ "integrity": "sha512-YRNp3VcfzWTyDZt6h5hAUK5XTzUrblOZOWUclor4ht/g4E5Oo2sMF8rV5swXlB3QdSQUZwSsU60b01veuR3o6g==" }, "@walmart/returns-mini-app": { - "version": "0.0.12", - "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.0.12.tgz", - "integrity": "sha512-X8i1djoAQLz+6dTR+g89C9WRuWCNeSGJft9tOVxRL+IlBEQ1FXQpk2n0kQJKSJHAkw7ZjLocI4A9k63vCTHMJA==", + "version": "0.0.13", + "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.0.13.tgz", + "integrity": "sha512-IYueYm7GfU7I3IJw7CkHGbtjYijm6p6x+dm7xdoQu+QCJ0ot1Yu9HgaBTSwsy7xTie9hUWfC7VMBdjju8hYTpA==", "requires": { "@walmart/common-utilities-js": "^1.2.10", "@walmart/virtual-zpl-printer-model": "^0.2.11", - "react-native-html-parser": "^0.1.0", - "react-native-uuid": "^2.0.1" + "react-native-html-parser": "^0.1.0" } }, "@walmart/schedule-mini-app": { @@ -19762,11 +19761,6 @@ "resolved": "https://npme.walmart.com/react-native-typing-animation/-/react-native-typing-animation-0.1.7.tgz", "integrity": "sha512-4H3rF9M+I2yAZpYJcY0Mb29TXkn98QK12rrKSY6LZj1BQD9NNmRZuNXzwX4XHapsIz+N/J8M3p27FOQPbfzqeg==" }, - "react-native-uuid": { - "version": "2.0.1", - "resolved": "https://npme.walmart.com/react-native-uuid/-/react-native-uuid-2.0.1.tgz", - "integrity": "sha512-cptnoIbL53GTCrWlb/+jrDC6tvb7ypIyzbXNJcpR3Vab0mkeaaVd5qnB3f0whXYzS+SMoSQLcUUB0gEWqkPC0g==" - }, "react-native-vector-icons": { "version": "7.1.0", "resolved": "https://npme.walmart.com/react-native-vector-icons/-/react-native-vector-icons-7.1.0.tgz", --- package.json @@ -117,7 +117,7 @@ "@walmart/receipt-check-miniapp": "1.8.12", "@walmart/redux-store": "2.0.4", "@walmart/refrigeration-alarms-mini-app": "1.35.0", - "@walmart/returns-mini-app": "0.0.12", + "@walmart/returns-mini-app": "0.0.13", "@walmart/schedule-mini-app": "0.26.0", "@walmart/settings-mini-app": "1.10.0", "@walmart/shelfavailability-mini-app": "1.3.1", @@ -159,6 +159,7 @@ "react-native-gesture-handler": "^1.7.0", "react-native-get-random-values": "^1.5.1", "react-native-haptic-feedback": "^1.10.0", + "react-native-html-parser": "^0.1.0", "react-native-hyperlink": "0.0.19", "react-native-image-pan-zoom": "^2.1.12", "react-native-image-picker": "4.8.5",
update release to 0.0.13
update release to 0.0.13 - added react-native-html-parser - updated mini app version to 0.0.13 which includes changes in PR comments
f5660bbe0863871a0a35bd2a2169da5941f674c0
--- .github/pull_request_template.md @@ -11,6 +11,11 @@ PR/Template Process for Allspark-core: [Link](https://confluence.walmart.com/pag ## Please describe the changes, problems and solutions this PR is addressing: + +## Please provide comparision diff of changes from mini app github: +(Example: [v2.2.0...octocat:v2.3.3](https://github.com/octocat/linguist/compare/v2.2.0...octocat:v2.3.3) , How to do [comparision](https://docs.github.com/en/repositories/releasing-projects-on-github/comparing-releases)) + + ## App changes ### Types of changes What types of changes does your code introduce?
Update pull_request_template.md
Update pull_request_template.md
bd0405e91533fa917b80f3111bf3387c85962052
--- app.config.US.ts @@ -142,6 +142,7 @@ const CONFIG: ExpoConfig = { 'com.zebra.rfd8X00_easytext', 'com.zebra.scanner.SSI', ], + ITSAppUsesNonExemptEncryption: false, }, privacyManifests: { NSPrivacyAccessedAPITypes: [
chore(config): ALLSPARK-5708 update Info.plist (#4063)
chore(config): ALLSPARK-5708 update Info.plist (#4063) * chore(config): ALLSPARK-5708 update Info.plist * chore(config): ALLSPARK-5708 lint fix
80a235ded899b0afc5eb5b29f85c17dcf6da70e3
--- __tests__/utils/UserTest.tsx @@ -0,0 +1,50 @@ +import {associateDisplayName} from '../../src/utils/user'; + +describe('associateDisplayName', () => { + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('should return preferred full name when available', () => { + const associate = { + preferredFirstName: 'John', + preferredLastName: 'Doe', + firstName: 'Jane', + lastName: 'Smith', + userId: '123', + }; + + const result = associateDisplayName(associate); + expect(result).toBe('John Doe'); + }); + + it('should return legal full name when preferred full name is not available', () => { + const associate = { + firstName: 'Jane', + lastName: 'Smith', + userId: '123', + }; + + const result = associateDisplayName(associate); + expect(result).toBe('Jane Smith'); + }); + + it('should return associate user ID when both preferred and legal full names are not available', () => { + const associate = { + userId: '123', + }; + + const result = associateDisplayName(associate); + expect(result).toBe('123'); + }); + + it('should return an empty string when associate is undefined', () => { + const result = associateDisplayName(undefined); + expect(result).toBe(''); + }); + + it('should return an empty string when associate is null', () => { + const result = associateDisplayName(null); + expect(result).toBe(''); + }); +});
Adding user test coverage
Adding user test coverage
cbe4afb8a3eab1113f1d3d95c5c0e8beee0fee9e
--- package-lock.json @@ -40,7 +40,7 @@ "@walmart/attendance-mini-app": "0.59.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.13", - "@walmart/core-services-allspark": "~2.9.1", + "@walmart/core-services-allspark": "~2.9.2", "@walmart/core-utils": "~2.0.5", "@walmart/core-widget-registry": "~1.2.2", "@walmart/counts-component-miniapp": "0.1.2", @@ -4938,16 +4938,16 @@ } }, "node_modules/@walmart/core-services-allspark": { - "version": "2.9.1", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.9.1.tgz", - "integrity": "sha512-MYw991AP7DGunkArSStSEiotnqnTZd15omyLFgBT451ST46BLPHIP9dxJeAadZtRFP4UdMU0lekbDdPcSrHKjg==", + "version": "2.9.2", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.9.2.tgz", + "integrity": "sha512-0tBbJyzUZbEzzgRKQ5CIIjt3BA8f6xueBlY+dwcsUzvC/whd3js1QQ57Znzov2otxDLLMGd2qKz+YBP2p3oCrg==", "license": "ISC", "dependencies": { "@walmart/allspark-graphql-client": "^1.4.0", "@walmart/allspark-http-client": "^2.4.8", "@walmart/allspark-utils": "^1.5.1", "@walmart/core-services": "^2.0.13", - "@walmart/me-at-walmart-athena-queries": "^1.1.2", + "@walmart/me-at-walmart-athena-queries": "^1.2.0", "crypto-js": "~4.1.1", "jwt-decode": "^3.1.2", "luxon": "^2.4.0", @@ -5447,9 +5447,9 @@ } }, "node_modules/@walmart/me-at-walmart-athena-queries": { - "version": "1.1.2", - "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.1.2.tgz", - "integrity": "sha512-WEvGxpnOwj42KGPvRh0MImtTvo7LUbizgGYYBPtzod39+fTWOz11b7/MH7P2ZT9bXWrjD7LWMO2mM6S4sU1xBQ==", + "version": "1.2.0", + "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.2.0.tgz", + "integrity": "sha512-0kAFEOZk21ZroSin/+OYrXhVTKHOKxgczLjJcCy3BV3xxEONAOxYaRRw4bmm2vNaqt4Rr06PU5Gb7A688PyiwQ==", "license": "ISC", "dependencies": { "@walmart/allspark-graphql-client": "^1.4.0" @@ -25318,15 +25318,15 @@ } }, "@walmart/core-services-allspark": { - "version": "2.9.1", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.9.1.tgz", - "integrity": "sha512-MYw991AP7DGunkArSStSEiotnqnTZd15omyLFgBT451ST46BLPHIP9dxJeAadZtRFP4UdMU0lekbDdPcSrHKjg==", + "version": "2.9.2", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-2.9.2.tgz", + "integrity": "sha512-0tBbJyzUZbEzzgRKQ5CIIjt3BA8f6xueBlY+dwcsUzvC/whd3js1QQ57Znzov2otxDLLMGd2qKz+YBP2p3oCrg==", "requires": { "@walmart/allspark-graphql-client": "^1.4.0", "@walmart/allspark-http-client": "^2.4.8", "@walmart/allspark-utils": "^1.5.1", "@walmart/core-services": "~2.0.13", - "@walmart/me-at-walmart-athena-queries": "^1.1.2", + "@walmart/me-at-walmart-athena-queries": "^1.2.0", "crypto-js": "^3.3.0", "jwt-decode": "^3.1.2", "luxon": "^1.28.0", @@ -25466,9 +25466,9 @@ "integrity": "sha512-zmboOlWLlIW/CgLTWKgMOZvkE+b+Z3ltDxB0rAB8RqW95I4q7O6BkK/OFWFAAateYddhtE9wVvSS9A3vFxBAyw==" }, "@walmart/me-at-walmart-athena-queries": { - "version": "1.1.2", - "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.1.2.tgz", - "integrity": "sha512-WEvGxpnOwj42KGPvRh0MImtTvo7LUbizgGYYBPtzod39+fTWOz11b7/MH7P2ZT9bXWrjD7LWMO2mM6S4sU1xBQ==", + "version": "1.2.0", + "resolved": "https://npme.walmart.com/@walmart/me-at-walmart-athena-queries/-/me-at-walmart-athena-queries-1.2.0.tgz", + "integrity": "sha512-0kAFEOZk21ZroSin/+OYrXhVTKHOKxgczLjJcCy3BV3xxEONAOxYaRRw4bmm2vNaqt4Rr06PU5Gb7A688PyiwQ==", "requires": { "@walmart/allspark-graphql-client": "^1.4.0" } --- package.json @@ -82,7 +82,7 @@ "@walmart/attendance-mini-app": "0.59.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.13", - "@walmart/core-services-allspark": "~2.9.1", + "@walmart/core-services-allspark": "~2.9.2", "@walmart/core-utils": "~2.0.5", "@walmart/core-widget-registry": "~1.2.2", "@walmart/counts-component-miniapp": "0.1.2",
chore: update core services allspark for updated queries
chore: update core services allspark for updated queries
af5a2dc7f3e024f2683e996e725d51abe89ab7c8
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.7.0-beta.3", + "version": "3.7.0-beta.4", "main": "dist/index.js", "files": [ "dist",
fix: update wmconnect version
fix: update wmconnect version
f668df016ff7edbc1cf79db576bc5bfd5a5770c4
--- targets/US/package.json @@ -143,7 +143,7 @@ "@walmart/roster-mini-app": "2.8.2", "@walmart/schedule-mini-app": "0.118.0", "@walmart/shelfavailability-mini-app": "1.5.33", - "@walmart/sidekick-mini-app": "4.79.0", + "@walmart/sidekick-mini-app": "4.80.3", "@walmart/store-feature-orders": "1.26.12", "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch", "@walmart/time-clock-mini-app": "2.400.0", --- yarn.lock @@ -6851,7 +6851,7 @@ __metadata: "@walmart/roster-mini-app": "npm:2.8.2" "@walmart/schedule-mini-app": "npm:0.118.0" "@walmart/shelfavailability-mini-app": "npm:1.5.33" - "@walmart/sidekick-mini-app": "npm:4.79.0" + "@walmart/sidekick-mini-app": "npm:4.80.3" "@walmart/store-feature-orders": "npm:1.26.12" "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.3.0#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.3.0-a2dd632c59.patch" "@walmart/time-clock-mini-app": "npm:2.400.0" @@ -7721,9 +7721,9 @@ __metadata: languageName: node linkType: hard -"@walmart/sidekick-mini-app@npm:4.79.0": - version: 4.79.0 - resolution: "@walmart/sidekick-mini-app@npm:4.79.0" +"@walmart/sidekick-mini-app@npm:4.80.3": + version: 4.80.3 + resolution: "@walmart/sidekick-mini-app@npm:4.80.3" peerDependencies: "@apollo/client": "*" "@react-navigation/native": ^6.0.0 @@ -7736,7 +7736,7 @@ __metadata: expo-linear-gradient: ~12.3.0 react: ^18.2.0 react-native: ^0.73.7 - checksum: 10c0/3f50147857164c6ce2462deec3c3875a10b67ef47396e5d5eb709d4ade17da14c7d4c202daed2855d2851d90b8851d6145d039bffc13b618b1f394ab2d6f1f52 + checksum: 10c0/71dd244b1a66dff400e30d2494a6d1fc9ecc86a915240445bf488906706dd6b0124296d39831c301aa0239d2bd839e71fdbf4e2aa69165e4344e4bafd4ed2a29 languageName: node linkType: hard
chore: bump sidekick@4.80.3
chore: bump sidekick@4.80.3
0b7d4b7dcf134cc87befddb3b2ec4715ca4041bb
--- app.config.US.ts @@ -101,7 +101,7 @@ const CONFIG: ExpoConfig = { '$(AppIdentifierPrefix)com.walmart.GenericKeychain', ], 'aps-environment': 'development', - 'com.apple.developer.nfc.readersession.formats': ['NDEF', 'TAG'] + 'com.apple.developer.nfc.readersession.formats': ['TAG'] }, googleServicesFile: AppVariant.select({ prod: './assets/GoogleService-Info-Prod.plist',
fix(hotfix): remove ndef entitlement
fix(hotfix): remove ndef entitlement
883c74f9b53dd5851b737a91d628be557691e484
--- package-lock.json @@ -3359,9 +3359,9 @@ "integrity": "sha512-jplu8SFzqVj1xWNlxMrPmR3oelBdyNBeQHJOr5YM7p7yqAWBiYO2jt9HyUkZCzRkEhrjjDufk9J5K9OJC1GhKA==" }, "@walmart/iteminfo-mini-app": { - "version": "1.0.17", - "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-1.0.17.tgz", - "integrity": "sha512-q29a/g7ym27zNvROhL7fTerTq5SFLn0PL3TnEAGHdUVQ+QomEv1jiASBJOksqeDyZrHWFegSLbRUMwHNAKJGcg==", + "version": "1.0.19", + "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-1.0.19.tgz", + "integrity": "sha512-lVL+eXkQeTL7Psti3GOQwT2P4osAS5t83bxZXz44qMwE63ndvBh3QWSmMyuSjj5OlL/1EHHHppgp0GrO0P+jfA==", "requires": { "react-native-chart-kit": "6.6.1" } --- package.json @@ -77,7 +77,7 @@ "@walmart/impersonation-mini-app": "1.0.15", "@walmart/ims-print-services-ui": "0.0.19", "@walmart/inbox-mini-app": "0.0.96", - "@walmart/iteminfo-mini-app": "1.0.17", + "@walmart/iteminfo-mini-app": "1.0.19", "@walmart/manager-approvals-miniapp": "0.0.40", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.21",
Iteminfo updates- containing the fixes
Iteminfo updates- containing the fixes
10569782d189f530424be79e26c7808b5cabe949
--- src/navigation/index.tsx @@ -5,7 +5,6 @@ import {TextingNavParamsMap} from './types'; import {RosterScreen} from '../screens/RosterScreen'; import {SearchHeader} from '../components/SearchHeader'; import {ViewTeamScreen} from '../screens/ViewTeamScreen'; -import {useSafeAreaInsets} from 'react-native-safe-area-context'; const RosterStack = createStackNavigator<TextingNavParamsMap>(); @@ -13,7 +12,6 @@ export * from './types'; export * from './components'; export const RosterNavigation = () => { - const {top} = useSafeAreaInsets(); return ( <RosterStack.Navigator> <RosterStack.Screen @@ -21,7 +19,6 @@ export const RosterNavigation = () => { options={{ headerShown: false, cardStyle: { - marginTop: top + 24, backgroundColor: 'rgba(0, 0, 0, 0)', }, }} @@ -32,7 +29,6 @@ export const RosterNavigation = () => { options={{ headerShown: false, cardStyle: { - marginTop: top + 24, backgroundColor: 'rgba(0, 0, 0, 0)', }, }}
Update the roster navigation stack
Update the roster navigation stack
84dacbbeedd9fbb99edd875459b3840805c4e306
--- src/managerExperience/screens/AllTeamsScreen/AllTeamsScreen.tsx @@ -30,9 +30,9 @@ import { displayTotalStore, } from '../../../redux/selectors'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; -import { UserSelectors } from '@walmart/allspark-foundation/User'; +import {UserSelectors} from '@walmart/allspark-foundation/User'; import supplyChainTeamsData from './mockData/mockSupplyTeamsData.json'; -import { Body} from '@walmart/gtp-shared-components'; +import {Body} from '@walmart/gtp-shared-components'; export const AllTeamsScreen = () => { const {t} = translationClient.useTranslation(); @@ -50,9 +50,9 @@ export const AllTeamsScreen = () => { const isErrorFetchingTeams = (!allTeams || !allTeams.every((team) => team !== null)) && error; - // Todo: Reach out to Core team and update the DC check for the user (SMDV: https://jira.walmart.com/browse/SMDV-6671) - const siteIsDC = useSelector(SiteSelectors.getWorkingSiteIsDC); - const userDomain = useSelector(UserSelectors.getDomain) + // Todo: Reach out to Core team and update the DC check for the user (SMDV: https://jira.walmart.com/browse/SMDV-6671) + const siteIsDC = useSelector(SiteSelectors.getWorkingSiteIsDC); + const userDomain = useSelector(UserSelectors.getDomain); const userIsDC = userDomain === 'distribution center'; if (loading) { --- src/managerExperience/utils/allTeams.ts @@ -62,14 +62,17 @@ export const createAllTeamsSections = ( }; export const createTeamsSectionsByOpsArea = (teams: SupplyChainTeam[]) => { - const groupedTeams = teams.reduce((acc: Record<string, SupplyChainTeam[]>, team: SupplyChainTeam) => { - const opsareaName = team.opsareaName || 'Others'; - if (!acc[opsareaName]) { - acc[opsareaName] = []; - } - acc[opsareaName].push(team); - return acc; - }, {} as Record<string, SupplyChainTeam[]>); + const groupedTeams = teams.reduce( + (acc: Record<string, SupplyChainTeam[]>, team: SupplyChainTeam) => { + const opsareaName = team.opsareaName || 'Others'; + if (!acc[opsareaName]) { + acc[opsareaName] = []; + } + acc[opsareaName].push(team); + return acc; + }, + {} as Record<string, SupplyChainTeam[]>, + ); return Object.entries(groupedTeams).map(([opsareaName, teams]) => ({ title: opsareaName, --- src/types.ts @@ -48,4 +48,3 @@ export type DeepPartial<T> = { ? Array<DeepPartial<U>> : Partial<T[K]>; }; -
update prettier
update prettier
e6590aa565b7798ab588a89574a406d1386bb39c
--- src/containers/UserHeader.tsx @@ -36,7 +36,7 @@ export const UserHeader = () => { return ( <ListItem UNSAFE_style={styles.item} - title={name} + title={name as string} leading={<Avatar userId={userId} style={styles.avatar} viewer={true} />} trailing={ <Switch isOn={presence === 'online'} onValueChange={onStatusChange} /> --- src/navigation/components.tsx @@ -59,7 +59,7 @@ export const LivingDesignTabBar = (props: MaterialTopTabBarProps) => { color: tintColor || '', })} trailing={options.tabBarBadge?.()}> - {label} + {label as string} </TabNavigationItem> ); }); --- src/screens/SearchScreen.tsx @@ -91,6 +91,7 @@ const SearchHeaderBase = (props: StackHeaderProps) => { }, [navigation, searchInput]); return ( + // @ts-ignore <View style={[styles.header, {paddingTop: top}, options.headerStyle]}> {navigation.canGoBack() && ( <Animated.View style={[options.headerLeftContainerStyle]}> --- src/containers/UserHeader.tsx @@ -36,7 +36,7 @@ export const UserHeader = () => { return ( <ListItem UNSAFE_style={styles.item} - title={name} + title={name as string} leading={<Avatar userId={userId} style={styles.avatar} viewer={true} />} trailing={ <Switch isOn={presence === 'online'} onValueChange={onStatusChange} /> --- src/navigation/components.tsx @@ -59,7 +59,7 @@ export const LivingDesignTabBar = (props: MaterialTopTabBarProps) => { color: tintColor || '', })} trailing={options.tabBarBadge?.()}> - {label} + {label as string} </TabNavigationItem> ); }); --- src/screens/SearchScreen.tsx @@ -91,6 +91,7 @@ const SearchHeaderBase = (props: StackHeaderProps) => { }, [navigation, searchInput]); return ( + // @ts-ignore <View style={[styles.header, {paddingTop: top}, options.headerStyle]}> {navigation.canGoBack() && ( <Animated.View style={[options.headerLeftContainerStyle]}>
fixing ts issues
fixing ts issues
02861274766c56824cd7e124f7816b361fe920f4
--- __tests__/auth/__snapshots__/AuthenticatorViewTest.tsx.snap @@ -95,6 +95,7 @@ exports[`AuthenticatorView renders error 1`] = ` } > <View + accessibilityLabel="retryButton" accessibilityRole="button" accessibilityState={ Object { @@ -251,6 +252,7 @@ exports[`AuthenticatorView renders error 2`] = ` } > <View + accessibilityLabel="retryButton" accessibilityRole="button" accessibilityState={ Object { --- src/auth/AuthenticatorView.tsx @@ -83,6 +83,7 @@ export const AuthenticatorView: React.FC<Props> = (props) => { </View> <View style={styles.signInButton}> <PrimaryButton + accessibilityLabel='retryButton' testID='retryButton' block={true} onPress={() => connectedSSO.signIn(activityName)}>
Fix/E2E-test-ID (#150)
Fix/E2E-test-ID (#150) * Adding accessibilityLabel for E2E testing * Updating snapshots
8867b586b4e65fc48713d31febc75fee7e4fd468
--- src/components/ShiftSwitcherModal/ShiftSwitcherModal.tsx @@ -1,7 +1,7 @@ import React, {useState} from 'react'; import {View} from 'react-native'; import {ShiftSwitcherModalStyles as styles} from './styles'; -import {ShiftType} from '../FilterChipGroup/types'; +import {ShiftType} from '../../common'; import {translationClient} from '../../common/translation'; import { Body, --- src/screens/RosterDetailScreen/StoreRosterDetailScreen.tsx @@ -24,6 +24,7 @@ import { useTotalSiteOrTotalStore, useUserIsInRoster, } from '../../hooks'; +import {ShiftType} from '../../common'; import {useSelector} from 'react-redux'; import { displayRoster, @@ -258,6 +259,9 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { const [selectedFilter, setSelectedFilter] = useState<FilterValue>( FilterValue.all, ); + const [selectedShift, setSelectedShiftState] = useState< + ShiftType | undefined + >(undefined); const handleFilterPress = useCallback( (filterId: FilterValue) => { @@ -451,6 +455,14 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { dataLoading, ]); + const handleShiftChange = useCallback((newShift: ShiftType) => { + setSelectedShiftState(newShift); + }, []); + + const handleSearchInputChange = useCallback((text: string) => { + setSearchInput(text); + }, []); + if (!showRoster) { return ( <RosterDetailScreenDisabled @@ -520,6 +532,7 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { associates={teamRoster} filterChips={filterChips} selectedFilter={selectedFilter} + selectedShift={selectedShift} headerText={ !isSalariedOrLead && isPrimaryTeam ? `${teamState.teamLabel}${t('rosterScreen.teamRosterName')}` @@ -528,14 +541,13 @@ export const StoreRosterDetailScreen = ({route}: RosterDetailScreenProps) => { loading={dataLoading} teamName={currentTeamName} handleFilter={handleFilterPress} + onShiftChange={handleShiftChange} /> {showSearchInput && ( <TeamSearchInput loading={dataLoading} text={searchInput} - handleChange={(text: string) => { - setSearchInput(text); - }} + handleChange={handleSearchInputChange} /> )} </> --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen.tsx @@ -320,6 +320,15 @@ export const SupplyChainRosterDetailScreen = ({ ), ); const [searchInput, setSearchInput] = useState(''); + // Extract the callback function and memoize it + const handleSearchInputChange = useCallback((text: string) => { + setSearchInput(text); + analytics('search_associates', { + message: 'Search associates by name', + searchText: text, + }); + }, []); // No dependencies since analytics is stable and setSearchInput from useState doesn't change + // Filter count for non-DC sites const getFilterCount = useCallback( (teamStateParam: any) => { @@ -864,7 +873,6 @@ export const SupplyChainRosterDetailScreen = ({ filterChips={filterChips} selectedFilter={selectedFilter} selectedShift={selectedShift} - onShiftChange={handleShiftChange} headerText={ dataLoading ? '' @@ -877,18 +885,13 @@ export const SupplyChainRosterDetailScreen = ({ loading={dataLoading} teamName={currentTeamName as string} handleFilter={handleFilterPress} + onShiftChange={handleShiftChange} /> {showSearchInput && ( <TeamSearchInput loading={dataLoading} text={searchInput} - handleChange={(text: string) => { - setSearchInput(text); - analytics('search_associates', { - message: 'Search associates by name', - searchText: text, - }); - }} + handleChange={handleSearchInputChange} /> )} </>
fix(bug): ensure both screens pass down the necessary props
fix(bug): ensure both screens pass down the necessary props
100ec1e1111033b5fad60dd38f5395128437472b
--- packages/me-at-walmart-common/src/redux/index.ts @@ -1,3 +1,2 @@ export * from './actions'; -export * from './sagas'; export * from './selectors'; --- packages/me-at-walmart-common/src/redux/sagas.ts @@ -1,22 +0,0 @@ -import { select, take } from 'redux-saga/effects'; -import { - ConfigActionTypes, - ConfigData, - ConfigSelectors, -} from '@walmart/allspark-foundation/Config'; - -export function* waitForAppConfigFetch(): any { - const loading = yield select(ConfigSelectors.getLoading); - const loaded = yield select(ConfigSelectors.getLoaded); - const error = yield select(ConfigSelectors.getError); - - if (loading || (!loaded && !error)) { - yield take([ - ConfigActionTypes.FETCH_SUCCESS, - ConfigActionTypes.FETCH_ERROR, - ]); - } - - const appConfig: ConfigData | null = yield select(ConfigSelectors.getData); - return appConfig; -} --- packages/me-at-walmart-container/src/redux/device.ts @@ -1,22 +0,0 @@ -import { - DeviceActionTypes, - DeviceInfo, - DeviceSelectors, -} from '@walmart/allspark-foundation/Device'; -import { select, take } from 'redux-saga/effects'; - -export function* waitForDeviceFetch() { - const loading: boolean = yield select(DeviceSelectors.getLoading); - const loaded: boolean = yield select(DeviceSelectors.getLoaded); - const error: boolean = yield select(DeviceSelectors.getError); - - if (loading || (!loaded && !error)) { - yield take([ - DeviceActionTypes.FETCH_SUCCESS, - DeviceActionTypes.FETCH_ERROR, - ]); - } - - const deviceInfo: DeviceInfo | null = yield select(DeviceSelectors.getState); - return deviceInfo; -}
refactor: remove common sagas that have been moved to foundation
refactor: remove common sagas that have been moved to foundation
a0cd58b1fce6ecdfbc957b3c0f746389a473288f
--- packages/celebration-mini-app-graphql/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.28.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.27.1...@walmart/celebration-mini-app-graphql@1.28.0) (2025-12-18) + +### Features + +- **ui:** update celebration peformance ([a679f28](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/a679f2880569dc99eb6ee8f28542130459074f99)) +- **ui:** update performance ([7bbd152](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/7bbd1522f3d11c64426be3c15c9f128e7cfda286)) +- **ui:** update tests ([fc27abd](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/fc27abd6ae855735738f8c4bef61232d450e0276)) + ## [1.27.1](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.27.0...@walmart/celebration-mini-app-graphql@1.27.1) (2025-12-16) **Note:** Version bump only for package @walmart/celebration-mini-app-graphql --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.27.1", + "version": "1.28.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/celebration-mini-app/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.37.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.36.1...@walmart/celebration-mini-app@1.37.0) (2025-12-18) + +### Features + +- **ui:** update celebration peformance ([4cf9969](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/4cf996909246bc66f893700a1dad10a098d37bc5)) +- **ui:** update celebration peformance ([8765b4a](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/8765b4a80b178e67739451b2990ff9dcbc4f8590)) +- **ui:** update celebration peformance ([80ebecd](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/80ebecda9c14a6143cef98095739c449cc454680)) +- **ui:** update celebration peformance ([a679f28](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/a679f2880569dc99eb6ee8f28542130459074f99)) +- **ui:** update performance ([7bbd152](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/7bbd1522f3d11c64426be3c15c9f128e7cfda286)) +- **ui:** update tests ([fc27abd](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/fc27abd6ae855735738f8c4bef61232d450e0276)) + ## [1.36.1](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.36.0...@walmart/celebration-mini-app@1.36.1) (2025-12-16) **Note:** Version bump only for package @walmart/celebration-mini-app --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.36.1", + "version": "1.37.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.37.0 - @walmart/celebration-mini-app-graphql@1.28.0
a78171f453ece562554bf988b1ff4abef4e18ff1
--- yarn.lock @@ -7056,7 +7056,7 @@ __metadata: "@walmart/store-feature-orders": "npm:1.27.1" "@walmart/taskit-mini-app": "npm:4.17.17" "@walmart/time-clock-mini-app": "npm:2.419.0" - "@walmart/topstock-mini-app": "npm:1.17.8" + "@walmart/topstock-mini-app": "npm:1.17.11" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.96.0" @@ -8049,9 +8049,9 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.17.8": - version: 1.17.8 - resolution: "@walmart/topstock-mini-app@npm:1.17.8" +"@walmart/topstock-mini-app@npm:1.17.11": + version: 1.17.11 + resolution: "@walmart/topstock-mini-app@npm:1.17.11" peerDependencies: "@react-native-firebase/app": ^15.1.1 "@react-native-firebase/crashlytics": ^15.1.1 @@ -8068,7 +8068,7 @@ __metadata: react-native-haptic-feedback: ^1.13.0 react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/512620ef5a43f471a4eadbd443454c0f9869cdad5ff1546408765bf50912496a3e992516f3dbfaed9cb187c5146df135eb289a4e08723de9823b19885c26ce49 + checksum: 10c0/bcd410ddf4008bb11a6401356b7453f33ec84cd89d7ba641047a31b7d79772eff3da85f643556b9e8fd21e6ec92274d4d26865e3a30d90a69b1b99f20e77f684 languageName: node linkType: hard
yarn updated topstock version to 1.17.11
yarn updated topstock version to 1.17.11
b2366bc5bea98e178df3f9316bbfc4572ab3ad92
--- package.json @@ -91,7 +91,7 @@ "@walmart/allspark-utils": "7.3.1", "@walmart/amp-mini-app": "1.2.15", "@walmart/ask-sam-chat-components": "0.2.27", - "@walmart/ask-sam-mini-app": "1.35.21", + "@walmart/ask-sam-mini-app": "1.35.22", "@walmart/associate-exp-hub-hub": "2.21.5", "@walmart/associate-exp-hub-team-switcher": "2.25.1", "@walmart/associate-listening-mini-app": "2.0.37", --- yarn.lock @@ -7751,9 +7751,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ask-sam-mini-app@npm:1.35.21": - version: 1.35.21 - resolution: "@walmart/ask-sam-mini-app@npm:1.35.21::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fask-sam-mini-app%2F-%2F%40walmart%2Fask-sam-mini-app-1.35.21.tgz" +"@walmart/ask-sam-mini-app@npm:1.35.22": + version: 1.35.22 + resolution: "@walmart/ask-sam-mini-app@npm:1.35.22::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fask-sam-mini-app%2F-%2F%40walmart%2Fask-sam-mini-app-1.35.22.tgz" dependencies: apisauce: "npm:^1.1.2" numeral: "npm:^2.0.6" @@ -7795,7 +7795,7 @@ __metadata: react-native-wm-voice-text: ">=0.3" reselect: ">=4" victory-native: ">=36.5" - checksum: 10c0/37b54249301c2c59377e9440f2a70791396cd4de248d6ef7d07286202134ab7d161026923d1e4bea70d04b220d7c4504cb131e9d4bd89b17709478523ada72f0 + checksum: 10c0/bcf8eba0c96ce8b8d7c740cd40ec08f1453f439216f8dfe0d183cecbe82a0606879d08a096976fb73aa4324663e2314bc032310e2ff38949fdeef48edf2ea229 languageName: node linkType: hard @@ -8825,7 +8825,7 @@ __metadata: "@walmart/allspark-utils": "npm:7.3.1" "@walmart/amp-mini-app": "npm:1.2.15" "@walmart/ask-sam-chat-components": "npm:0.2.27" - "@walmart/ask-sam-mini-app": "npm:1.35.21" + "@walmart/ask-sam-mini-app": "npm:1.35.22" "@walmart/associate-exp-hub-hub": "npm:2.21.5" "@walmart/associate-exp-hub-team-switcher": "npm:2.25.1" "@walmart/associate-listening-mini-app": "npm:2.0.37"
chore(ask sam mini app): SMBLV-9587 Markdown card is added to capability (#5391)
chore(ask sam mini app): SMBLV-9587 Markdown card is added to capability (#5391) Co-authored-by: Sowmya Munaganuri <Sowmya.Munaganuri+walmart@walmart.com> Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com>
da4d593358365851117450991b5d14a0aa35d647
--- packages/expo-config-plugins/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.8.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.8.2...@walmart/expo-config-plugins@0.8.3) (2025-12-16) + +### Bug Fixes + +- **expo:** fix withBuildProperties plugin ([#532](https://gecgithub01.walmart.com/allspark/allspark/issues/532)) ([7a26ad8](https://gecgithub01.walmart.com/allspark/allspark/commit/7a26ad8162b3fee7def95f8e2d160670143af2e8)) + ## [0.8.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.8.1...@walmart/expo-config-plugins@0.8.2) (2025-12-02) **Note:** Version bump only for package @walmart/expo-config-plugins --- packages/expo-config-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/expo-config-plugins", - "version": "0.8.2", + "version": "0.8.3", "description": "Expo config plugins for me@apps", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/expo-config-plugins@0.8.3
56e538ded9e2a116a2634382b3a900093b2d6697
--- __tests__/setup.ts @@ -1,16 +1,4 @@ jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter'); -jest.mock('@walmart/functional-components', () => { - const mockHttpClient = { - get: jest.fn(), - post: jest.fn(), - }; - return { - defaultHttpClient: { - clone: jest.fn(() => mockHttpClient), - }, - mockHttpClient, - }; -}); import mockRNCNetInfo from '@react-native-community/netinfo/jest/netinfo-mock.js'; --- jest.config.js @@ -32,6 +32,7 @@ module.exports = { '<rootDir>/__tests__/setup.ts', '<rootDir>/__tests__/__mocks__/', '<rootDir>/__tests__/harness/', + '<rootDir>/scripts/dependencies-map/__tests__/*', ], silent: true, //Uncomment to suppress error and warnings in test output }; --- package.json @@ -101,6 +101,7 @@ "@walmart/roster-mini-app": "2.25.4", "@walmart/wmconnect-mini-app": "2.23.1", "babel-jest": "^29.6.3", + "chance": "^1.1.11", "crypto-js": "~4.2.0", "eslint": "^8.19.0", "expo": "^51.0.0", @@ -112,6 +113,7 @@ "expo-linking": "~6.3.1", "expo-local-authentication": "~14.0.1", "expo-splash-screen": "~0.27.7", + "firestore-jest-mock": "^0.21.0", "fs-extra": "^11.2.0", "husky": "^9.1.7", "inquirer": "^12.0.0", --- yarn.lock @@ -6423,6 +6423,7 @@ __metadata: "@walmart/roster-mini-app": "npm:2.25.4" "@walmart/wmconnect-mini-app": "npm:2.23.1" babel-jest: "npm:^29.6.3" + chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" eslint: "npm:^8.19.0" expo: "npm:^51.0.0" @@ -6434,6 +6435,7 @@ __metadata: expo-linking: "npm:~6.3.1" expo-local-authentication: "npm:~14.0.1" expo-splash-screen: "npm:~0.27.7" + firestore-jest-mock: "npm:^0.21.0" fs-extra: "npm:^11.2.0" husky: "npm:^9.1.7" inquirer: "npm:^12.0.0" @@ -7833,6 +7835,13 @@ __metadata: languageName: node linkType: hard +"chance@npm:^1.1.11": + version: 1.1.12 + resolution: "chance@npm:1.1.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fchance%2F-%2Fchance-1.1.12.tgz" + checksum: 10c0/96686a72df9077852993476dc4a16ec7afb797bb26d74caf4a5c6f6786d73fcd3c821ededb88b23a5c7b8762718b5cc43ce07fdd1ea3f508826ba88b57c36329 + languageName: node + linkType: hard + "change-case-all@npm:1.0.14": version: 1.0.14 resolution: "change-case-all@npm:1.0.14" @@ -9987,6 +9996,13 @@ __metadata: languageName: node linkType: hard +"firestore-jest-mock@npm:^0.21.0": + version: 0.21.0 + resolution: "firestore-jest-mock@npm:0.21.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Ffirestore-jest-mock%2F-%2Ffirestore-jest-mock-0.21.0.tgz" + checksum: 10c0/610e2535b450d281965f29c34b932f17cb9535e189b51b66e2b16eb4286582fe391945858a4d807141dc30caa4c6c51038f098758d1f8a0cd5491b4b029058f1 + languageName: node + linkType: hard + "flat-cache@npm:^3.0.4": version: 3.2.0 resolution: "flat-cache@npm:3.2.0"
feat(ui): update tests
feat(ui): update tests
5bb0e8037b5ffd3ee9394ebb0d3453bcb5d878a6
--- ios/Podfile.lock @@ -400,7 +400,7 @@ PODS: - React-Core - react-native-cameraroll (4.1.2): - React-Core - - react-native-encrypted-storage (1.1.0): + - react-native-encrypted-storage (1.1.3): - React-Core - react-native-geolocation-service (5.1.1): - React @@ -992,7 +992,7 @@ SPEC CHECKSUMS: react-native-biometrics: 9d3306e5d29c3bc4e6a3c912d759a94e76a2f683 react-native-blob-util: 600972b1782380a5a7d5db61a3817ea32349dae9 react-native-cameraroll: 60ac50a5209777cbccfe8d7a62d0743a9da87060 - react-native-encrypted-storage: 55e703e9886219deacb95066e932d843ccc0649e + react-native-encrypted-storage: e907c76d2b9f0a30edd989d92f1bb8a9198fdb82 react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e react-native-image-picker: 24a36044140202085113ce99b57bf52c62dc339e --- package-lock.json @@ -5342,9 +5342,9 @@ } }, "@walmart/react-native-encrypted-storage": { - "version": "1.1.0", - "resolved": "https://npme.walmart.com/@walmart/react-native-encrypted-storage/-/react-native-encrypted-storage-1.1.0.tgz", - "integrity": "sha512-vssLucRgLr1rodadutk3OSF1x3UOT98JLT78F5DEBXCvfAJzs2a8WJurn+W8KmHQZolJVUuyX/tOytTRV9xdOw==" + "version": "1.1.3", + "resolved": "https://npme.walmart.com/@walmart/react-native-encrypted-storage/-/react-native-encrypted-storage-1.1.3.tgz", + "integrity": "sha512-F3UeWQE1G2VjgnneH8YT+jBgdsYM8o5dxNT5sYccHiovNIEn6mYG9loPC+njImF3vGA3gAqEhK2e5qCgvTnKGA==" }, "@walmart/react-native-env": { "version": "0.2.0", --- package.json @@ -101,7 +101,7 @@ "@walmart/price-changes-mini-app": "^1.4.6", "@walmart/profile-feature-app": "0.0.46", "@walmart/push-to-talk-mini-app": "1.8.4", - "@walmart/react-native-encrypted-storage": "1.1.0", + "@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.4",
bump RN encrypt storage.
bump RN encrypt storage.
18a67000b8250f1fb895972fbfc6933023c1db60
--- __tests__/sumo/SumoSagasTest.ts @@ -15,7 +15,12 @@ import WmNotification, { Domain, SumoPushEventTypes, } from 'react-native-wm-notification'; -import {AuthTypes, UserSelectors, AuthSelectors} from '@walmart/redux-store'; +import { + AuthTypes, + UserSelectors, + AuthSelectors, + DeviceInfoSelectors, +} from '@walmart/redux-store'; import AsyncStorage from '@react-native-community/async-storage'; import Config from '../../env'; @@ -118,13 +123,21 @@ describe('handleNotificationPermission', () => { describe('chargeSumo', () => { const token = '1234'; - const expectedOptions: any = {...Config.sumoOptions, authToken: token}; + const deviceType = 'COPE'; + const expectedOptions: any = { + ...Config.sumoOptions, + authToken: token, + isCorporateDevice: true, + }; it('handles success', async () => { const iterator = chargeSumo(); expect(iterator.next().value).toEqual(call(handleNotificationPermission)); expect(iterator.next().value).toEqual(call(waitForToken)); expect(iterator.next(token).value).toEqual( + select(DeviceInfoSelectors.getDeviceType), + ); + expect(iterator.next(deviceType).value).toEqual( put(SumoActionCreators.chargeStarted()), ); expect(iterator.next().value).toEqual( @@ -142,6 +155,9 @@ describe('chargeSumo', () => { expect(iterator.next().value).toEqual(call(handleNotificationPermission)); expect(iterator.next().value).toEqual(call(waitForToken)); expect(iterator.next(token).value).toEqual( + select(DeviceInfoSelectors.getDeviceType), + ); + expect(iterator.next(deviceType).value).toEqual( put(SumoActionCreators.chargeStarted()), ); expect(iterator.next().value).toEqual( --- ios/Podfile.lock @@ -430,7 +430,7 @@ PODS: - React - react-native-webview (10.10.0): - React-Core - - react-native-wm-barcode (2.36.0-alpha): + - react-native-wm-barcode (2.36.1): - Firebase/Analytics - React - react-native-wm-voice-text (0.6.0): @@ -578,9 +578,9 @@ PODS: - AppAuth - React - SSO (= 1.4.3) - - SDWebImage (5.12.5): - - SDWebImage/Core (= 5.12.5) - - SDWebImage/Core (5.12.5) + - SDWebImage (5.12.6): + - SDWebImage/Core (= 5.12.6) + - SDWebImage/Core (5.12.6) - SDWebImageWebPCoder (0.6.1): - libwebp (~> 1.0) - SDWebImage/Core (~> 5.7) @@ -591,7 +591,7 @@ PODS: - AppAuth - Starscream (3.0.6) - StructuredLogAssistantIOS (0.0.7) - - SumoSDK (2.2.1): + - SumoSDK (2.2.2-beta.2): - Apollo (= 0.42.0) - Apollo/SQLite (= 0.42.0) - Firebase/Messaging (~> 8.4) @@ -601,9 +601,9 @@ PODS: - SwiftProtobuf - VisionCamera (1.0.10): - React-Core - - walmart-react-native-sumo-sdk (2.2.1): + - walmart-react-native-sumo-sdk (2.2.2-beta.2): - React - - SumoSDK (= 2.2.1) + - SumoSDK (= 2.2.2-beta.2) - wifi-store-locator (1.0.0-alpha2): - React-Core - Yoga (1.14.0) @@ -983,7 +983,7 @@ SPEC CHECKSUMS: react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 - react-native-wm-barcode: 468953ac5111e8c00fd8fc1002fe6a69925033e3 + react-native-wm-barcode: 6234423bc26e602c5772d10aab4006f2d75f8100 react-native-wm-voice-text: e41ea4227df3f52f3e2cab2f08fd89fbdcd02cfd React-perflogger: 0afaf2f01a47fd0fc368a93bfbb5bd3b26db6e7f React-RCTActionSheet: 59f35c4029e0b532fc42114241a06e170b7431a2 @@ -1027,17 +1027,17 @@ SPEC CHECKSUMS: RNSVG: ce9d996113475209013317e48b05c21ee988d42e RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59 RNWMSSOLibrary: 2e5e0514bfd8485c9abb737b0d168cb6847edc62 - SDWebImage: 0905f1b7760fc8ac4198cae0036600d67478751e + SDWebImage: a47aea9e3d8816015db4e523daff50cfd294499d SDWebImageWebPCoder: d0dac55073088d24b2ac1b191a71a8f8d0adac21 SQLite.swift: d2b4642190917051ce6bd1d49aab565fe794eea3 SSO: dde199615662c7a7f9d62828f898441074950864 Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1 - SumoSDK: d3184a1ee47b1cfde30a01e53f0922add1bb1065 + SumoSDK: 2fa93ab09e028a4acd80d97914687d23fa1405b6 SwiftProtobuf: 6ef3f0e422ef90d6605ca20b21a94f6c1324d6b3 TextServiceProto: 07782a63b28a91b30d9a008ffd925768f6da6a2d VisionCamera: 60b74823ece943da919e2eb6dde62a676c486382 - walmart-react-native-sumo-sdk: 5a7fe08175ca155904f8f19db9a2d8710511771b + walmart-react-native-sumo-sdk: 591bc10e53b61d64285a694248e8f652585bfcb9 wifi-store-locator: 0f4d1e14ff9b98c559275105c655a5a6103ef427 Yoga: d6b6a80659aa3e91aaba01d0012e7edcbedcbecd --- package-lock.json @@ -4486,9 +4486,9 @@ "integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg==" }, "@walmart/react-native-sumo-sdk": { - "version": "2.2.1", - "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.2.1.tgz", - "integrity": "sha512-//ejMEC33M3sDSfEXxpxGsbtIynPTof0vlCqtrO6m4V/W0uF0Z5Kg2qatsBbcwI8EFG22DLuXUUfvtTvoVPn6A==" + "version": "2.2.2-beta.2", + "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.2.2-beta.2.tgz", + "integrity": "sha512-Tz8PRLTpf4goLTBXayZxsBRuy/8+fnxjt+m7g3kfu0NRG58n/MgKi9krclf+LSLBhYTJcL5sKg8ckhA90dHlYQ==" }, "@walmart/redux-store": { "version": "1.1.26", --- package.json @@ -95,7 +95,7 @@ "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.29.0", "@walmart/react-native-shared-navigation": "^0.4.0", - "@walmart/react-native-sumo-sdk": "2.2.1", + "@walmart/react-native-sumo-sdk": "2.2.2-beta.2", "@walmart/redux-store": "1.1.26", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/schedule-mini-app": "0.13.0", --- src/sumo/SumoSagas.ts @@ -18,6 +18,7 @@ import { AuthTypes, UserSelectors, AuthSelectors, + DeviceInfoSelectors, } from '@walmart/redux-store'; import WmNotification, { Domain, @@ -87,9 +88,12 @@ export function* chargeSumo(): any { try { const authToken = yield call(waitForToken); + const deviceType = yield select(DeviceInfoSelectors.getDeviceType); + const options = { ...Config.sumoOptions, authToken, + isCorporateDevice: deviceType === 'COPE', }; yield put(SumoActionCreators.chargeStarted());
bump core services for user clear fix. fix saga cleanup logic
bump core services for user clear fix. fix saga cleanup logic
26ba61f1706e3d0f0ea0c73e9e0a7001f922b055
--- packages/allspark-graphql-client/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.0.11](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.10...@walmart/allspark-graphql-client@0.0.11) (2023-01-16) + +**Note:** Version bump only for package @walmart/allspark-graphql-client + + + + + ## [0.0.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.9...@walmart/allspark-graphql-client@0.0.10) (2023-01-16) **Note:** Version bump only for package @walmart/allspark-graphql-client --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "0.0.10", + "version": "0.0.11", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js", --- packages/allspark-redux-store/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.9...@walmart/allspark-redux-store@1.0.10) (2023-01-16) + +**Note:** Version bump only for package @walmart/allspark-redux-store + + + + + ## [1.0.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.8...@walmart/allspark-redux-store@1.0.9) (2023-01-16) **Note:** Version bump only for package @walmart/allspark-redux-store --- packages/allspark-redux-store/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-redux-store", - "version": "1.0.9", + "version": "1.0.10", "description": "Common redux store for allspark platform", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-graphql-client@0.0.11 - @walmart/allspark-redux-store@1.0.10
eabe764566d494deffeb5db197b6d394e58ec65a
--- src/hooks/user.ts @@ -98,7 +98,3 @@ export const useTotalSiteOrTotalStore = (): string => { const isSiteDC = useSelector(SiteSelectors.getWorkingSiteIsDC); return isSiteDC ? 'Total site' : 'Total store'; }; - -export const useIsStoreDC = (): boolean => { - return useSelector(SiteSelectors.getHomeSiteIsDC); -}; --- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -14,7 +14,7 @@ import { useGetTeamsByStore, useGetViewersPrimaryTeamId, useGetViewersPrimaryTeamName, - useIsStoreDC, + useSiteTranslationContext, useTotalSiteOrTotalStore, } from '../../../hooks'; import {useSelector} from 'react-redux'; @@ -74,7 +74,7 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { const teamLeads = useSelector(teamLeadJobDescriptions) as string[]; const storeId = useSelector(UserSelectors.getSiteId); const siteTranslationContext = useTotalSiteOrTotalStore(); - const siteIsDC = useIsStoreDC(); + const translationContext = useSiteTranslationContext(); const countryCode: string | undefined = useSelector( UserSelectors.getCountryCode, ); @@ -392,11 +392,9 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => { header={headerAndSubtext.header} subText={headerAndSubtext.subText} teamId={teamState.teamIds?.[0]} - linkText={t( - siteIsDC - ? 'rosterScreen.viewTeamLink.linkLabel_site' - : 'rosterScreen.viewTeamLink.linkLabel_store', - )} + linkText={t('rosterScreen.viewTeamLink.linkLabel', { + context: translationContext, + })} handleNavigation={() => { analytics('view_all_teams', { message: 'Navigate to all teams screen', --- src/translations/en-US.ts @@ -91,9 +91,9 @@ export const enUS = { messageTeam: 'Message team', }, viewTeamLink: { + linkLabel: 'View other teams', linkLabel_store: 'View other teams', linkLabel_site: 'View other teams and shifts', - linkLabel: 'View other teams', }, notInRoster: 'You cannot text other associates since you are not in the roster of store {{siteId}}.', --- src/translations/es-MX.ts @@ -86,9 +86,9 @@ export const esMX = { messageTeam: 'Equipo de mensajes', }, viewTeamLink: { + linkLabel: 'Ver otros equipos', linkLabel_store: 'Ver otros equipos', linkLabel_site: 'Ver otros equipos y turnos', - linkLabel: 'Ver otros equipos', }, notInRoster: 'No puedes enviar mensajes de texto a otros asociados ya que no estás en la lista de la tienda {{siteId}}.',
fix: useTranslation Context
fix: useTranslation Context
4ce93450a2b87734e029ee4444a2ce3a9e7422f7
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 7 + versionCode 8 versionName "1.0.1" } splits { --- ios/AllSpark.xcodeproj/project.pbxproj @@ -754,7 +754,7 @@ CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 8; DEVELOPMENT_TEAM = F7HDEWM8SU; ENABLE_BITCODE = NO; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; @@ -794,7 +794,7 @@ CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 8; DEVELOPMENT_TEAM = F7HDEWM8SU; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; INFOPLIST_FILE = AllSpark/Info.plist; --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>7</string> + <string>$(CURRENT_PROJECT_VERSION)</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> @@ -42,7 +42,7 @@ <string>awbs</string> </array> <key>LSRequiresIPhoneOS</key> - <true /> + <true/> <key>NSAppTransportSecurity</key> <dict> <key>NSExceptionDomains</key> @@ -50,24 +50,24 @@ <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> <key>NSCameraUsageDescription</key> <string>We use your camera for scanning images of barcodes</string> - <key>NSLocationWhenInUseUsageDescription</key> + <key>NSLocationAlwaysAndWhenInUseUsageDescription</key> <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string> <key>NSLocationAlwaysUsageDescription</key> <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string> - <key>NSLocationAlwaysAndWhenInUseUsageDescription</key> + <key>NSLocationWhenInUseUsageDescription</key> <string>Me@Walmart will use your device's GPS to determine your location while clocking. You may disable this later in your device's settings.</string> <key>NSMicrophoneUsageDescription</key> <string>We record your voice when you want to do a voice search</string> @@ -112,6 +112,6 @@ <key>UIUserInterfaceStyle</key> <string>Light</string> <key>UIViewControllerBasedStatusBarAppearance</key> - <false /> + <false/> </dict> </plist> --- package-lock.json @@ -2773,7 +2773,8 @@ "@types/lodash": { "version": "4.14.165", "resolved": "https://npme.walmart.com/@types/lodash/-/lodash-4.14.165.tgz", - "integrity": "sha512-tjSSOTHhI5mCHTy/OOXYIhi2Wt1qcbHmuXD1Ha7q70CgI/I71afO4XtLb/cVexki1oVYchpul/TOuu3Arcdxrg==" + "integrity": "sha512-tjSSOTHhI5mCHTy/OOXYIhi2Wt1qcbHmuXD1Ha7q70CgI/I71afO4XtLb/cVexki1oVYchpul/TOuu3Arcdxrg==", + "dev": true }, "@types/node": { "version": "14.14.6", @@ -3018,17 +3019,17 @@ } }, "@walmart/allspark-me-mini-app": { - "version": "0.0.20", - "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.0.20.tgz", - "integrity": "sha512-YKqKWp5LmmbvXATKE2nvpn+YP4aRi5pFex4QS+4z8n+qMnCsJt9RkLElG70fGopDgZcnydSHoN29vEGIqS5yLg==", + "version": "0.0.22", + "resolved": "https://npme.walmart.com/@walmart/allspark-me-mini-app/-/allspark-me-mini-app-0.0.22.tgz", + "integrity": "sha512-cIlQgTOURPYg/tKeXEw39+jBUDrIfpuuviIkIQ90XHHnt55E7F1ifP/TcdyqyhcIHJBw6TwBcPl2IH26jJky8g==", "requires": { "reselect": "^4.0.0" } }, "@walmart/ask-sam-mini-app": { - "version": "0.9.52", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.9.52.tgz", - "integrity": "sha512-4SVBwa+mvWi4qh/nH/kCTUr35b69yjckOFqPA3ywa/8g6reqkJJ7p/cIMIMUgYKPut/ynFk7RJqy87H1sZ8Vaw==", + "version": "0.9.53", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.9.53.tgz", + "integrity": "sha512-Du8hlbWavSriYLbCJHi582nbgWsG2keOlJaa7Qhekf1OvgsZXOd+YD71Mod+L/FflhCJGBoUr6PvCZ2DSqvKsA==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -45,11 +45,10 @@ "@react-navigation/native": "^5.7.3", "@react-navigation/stack": "^5.9.0", "@terrylinla/react-native-sketch-canvas": "^0.8.0", - "@types/lodash": "^4.14.159", "@walmart/allspark-health-survey-mini-app": "0.0.24", "@walmart/allspark-home-mini-app": "0.1.10", - "@walmart/allspark-me-mini-app": "0.0.20", - "@walmart/ask-sam-mini-app": "0.9.52", + "@walmart/allspark-me-mini-app": "0.0.22", + "@walmart/ask-sam-mini-app": "0.9.53", "@walmart/config-components": "1.0.11", "@walmart/feedback-all-spark-miniapp": "0.0.35", "@walmart/functional-components": "^1.0.22", @@ -127,6 +126,7 @@ "@react-native-community/eslint-config": "^1.1.0", "@testing-library/react-hooks": "^5.0.3", "@types/jest": "^25.2.3", + "@types/lodash": "^4.14.159", "@types/react-native": "^0.63.2", "@types/react-native-vector-icons": "^6.4.5", "@types/react-redux": "^7.1.9",
Me and Ask Sam Bump (#331)
Me and Ask Sam Bump (#331) * Incrementing me version for crash fix * Ask sam increment * Incrementing me. Moving types to dev dependencies * Android & iOS build number increment * Android and iOS build increment Co-authored-by: rlane1 <rlane1@walmart.com>
96be92480f071fa59afaebe3445ed8a206d65f48
--- docs/docs/components/icons/_category_.json @@ -1,8 +1,8 @@ { - "label": "Icons", - "position": 3, - "link": { - "type": "generated-index", - "description": "Browse the icons available from various sources for use in Me@Walmart." - } - } \ No newline at end of file + "label": "Icons", + "position": 3, + "link": { + "type": "generated-index", + "description": "Browse the icons available from various sources for use in Me@Walmart." + } +} --- docs/docs/components/icons/icons-core-owned.md @@ -4,7 +4,7 @@ title: Me@Core-Owned Icons custom_edit_url: null --- -There are several Android and iOS specific icons available in the `allspark-core` repository. +There are several Android and iOS specific icons available in the `allspark-core` repository. Additionally, most of the Me@Walmart mini-apps store their own set of icons and images in their mini app repositories. ## iOS Icons These icons are located in the `allspark-core/targets/US/ios/Allspark/Images.xcassets` folder. Most are available in different resolutions. --- docs/docs/components/sounds/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Sounds", + "position": 4, + "link": { + "type": "generated-index", + "description": "Browse sounds available for Me@Walmart mini apps." + } +} --- docs/docs/components/sounds/sounds-allspark-core.md @@ -0,0 +1,36 @@ +--- +sidebar_position: 1 +title: Allspark-Core Sounds +custom_edit_url: null +--- + +The tables below list which sounds are already available in `allspark-core` and their respective locations. Additionally, there many be stock sounds available through iOS. + +## iOS Sounds +| Sound File | Source +| - | - +| BusyTone.wav | allspark-core/targets/US/ios/Sounds +| call_1_1_ringback.wav | allspark-core/targets/US/ios/Sounds +| call_1_1_ringtone.wav | allspark-core/targets/US/ios/Sounds +| CallWaiting.wav | allspark-core/targets/US/ios/Sounds +| FastBusy.mp3 | allspark-core/targets/US/ios/Sounds +| Reconnect.wav | allspark-core/targets/US/ios/Sounds +| beep_confirmation.mp3 | allspark-core/targets/US/ios +| beep_error.mp3 | allspark-core/targets/US/ios +| clockfailure.mp3 | allspark-core/targets/US/ios +| clockin.mp3 | allspark-core/targets/US/ios +| clockout.mp3 | allspark-core/targets/US/ios +| walmart_achievement_01.mp3 | allspark-core/targets/US/ios + +## Android Sounds +| Sound File | Source +| - | - +| beep_confirmation.mp3 | allspark-core/targets/US/android/app/src/main/res/raw +| beep_error.mp3 | allspark-core/targets/US/android/app/src/main/res/raw +| clockfailure.mp3 | allspark-core/targets/US/android/app/src/main/res/raw +| clockin.mp3 | allspark-core/targets/US/android/app/src/main/res/raw +| clockout.mp3 | allspark-core/targets/US/android/app/src/main/res/raw +| walmart_achievement_01.mp3 | allspark-core/targets/US/android/app/src/main/res/raw +| boosted_walmart_achievement_06_high_mono_20lufs.m4a | allspark-core/targets/US/android/app/src/main/res/raw +| boosted_walmart_chat_out_high_mono_20lufs.m4a | allspark-core/targets/US/android/app/src/main/res/raw +| walmart_notification_high_mono_20lufs.m4a | allspark-core/targets/US/android/app/src/main/res/raw \ No newline at end of file
docs: sounds information
docs: sounds information
e5e9fb79984f5a65478574a5ceb812d98107e3a8
--- packages/allspark-foundation/src/Feature/README.md @@ -95,14 +95,15 @@ MyFeature.createModule({ #### `config.flows` -An object that defines feature "flows" (generators) for the container app to orchestrate. Flows should not terminate until they are complete. +An object that defines feature "flows" (generators) for the container app or other features to use. A flow should define some unit of work owned by the feature. They can navigate to screens, wait on subsequent actions, make api calls, etc. Once the unit of work is done, only then should the flow terminate. -The default flow types are: +There are some default flow types that, when defined, are orchestrated by the container as part of the overall app flow. The default flow types are: -- Startup - A flow to run at the start of the app. +- Startup - A flow to run within the startup flow for the entire app. When this is invoked is unique to the container but generally will be after authentication, when the user can begin to use features. Some features may require specific setup or prompting from users at this time and can leverage a startup flow to achieve that behavior. ```typescript -function* handleFeature1Startup() { +// Feature 1 prompt at startup +function* startup() { const seenPrompt = yield select(hasSeenPrompt); if (!seenPrompt) { @@ -111,9 +112,19 @@ function* handleFeature1Startup() { } } +// Feature 1 unit of work +function* doWork(item) { + // Navigate to screen where unit of work begins + yield call(AllsparkNavigationClient.navigate('feature1.workStartScreen', {item})); + + // Wait for action signalling work is done + yield take(feature1Actions.WORK_COMPLETE); +} + MyFeature.createModule({ flows: { - startup: handleFeature1Startup + startup, + doWork, }, // ...etc });
docs: update config flow doc
docs: update config flow doc
5f7ab64ae599e0c77de5bb12afbfc0a73f044456
--- packages/allspark-foundation-hub/src/HubFeature/TeamSelection/styles.ts @@ -7,9 +7,10 @@ export const teamSelectionListItemStyles = (hasBorder: boolean) => display: 'flex', paddingTop: 16, paddingBottom: 16, + marginLeft: 16, + marginRight: 16, justifyContent: 'space-between', alignItems: 'center', - width: '100%', flexDirection: 'row', borderBottomColor: colors.gray['20'], borderBottomWidth: hasBorder ? 1 : 0, @@ -20,7 +21,6 @@ export const teamSelectionListItemStyles = (hasBorder: boolean) => flexDirection: 'row', alignItems: 'center', gap: 16, - paddingLeft: 16, }, teamImage: { height: 32,
Fixing border of team selection list item
Fixing border of team selection list item
ec618731830100642585f213383609c449280d85
--- package-lock.json @@ -4553,9 +4553,9 @@ } }, "@walmart/core-services": { - "version": "1.0.8", - "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.0.8.tgz", - "integrity": "sha512-t0/iTnvOjQpjbM3BZVyliY0Zybei4h8J3t+8Xb9MzPOMpVS3QKTeRM2NEDCjRSAt9xRlWwIwwBGPBPlnnTBoIA==", + "version": "1.0.9", + "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.0.9.tgz", + "integrity": "sha512-W7eDuVwBt/ervxiW3B2BhghT//ZDRuIVZTnolpuRxP72nDgRCFl9ODkEdsOF4LBLJLrMULX5UqgU54A54eI6/g==", "requires": { "@walmart/core-utils": "^1.0.8", "axios": "^0.26.0", @@ -4592,9 +4592,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.2.1", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.2.1.tgz", - "integrity": "sha512-T8SBxzyaxiZU31f4VUT+6CoGXmHFbJ3xgu8BwLeCvD/ejHs+uyH7nn1xZalGUv/EG5WIKeIWIKCajCm3jFsOyA==", + "version": "1.2.4", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.2.4.tgz", + "integrity": "sha512-cV/Nsfv6j7dGI98/PP+fGV1goTVC+Zf5AxQzauqpms3c6PTPd7P/krX9Yng2aebGSwV2NfYjTMVHUKqTovBwXQ==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", --- package.json @@ -75,8 +75,8 @@ "@walmart/allspark-neon-core": "0.1.26", "@walmart/ask-sam-mini-app": "^0.41.8", "@walmart/config-components": "3.0.2", - "@walmart/core-services": "^1.0.8", - "@walmart/core-services-allspark": "^1.2.1", + "@walmart/core-services": "^1.0.9", + "@walmart/core-services-allspark": "^1.2.4", "@walmart/core-utils": "^1.0.8", "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.41.1",
bump core services
bump core services
f4e80f93f22e5e1cf7ee789b006597a372e176b9
--- .yarn/patches/@walmart-ask-sam-mini-app-npm-1.33.40-50d88b8263.patch @@ -1,23 +0,0 @@ -diff --git a/dist/index.js b/dist/index.js -index b84561f719881ef533c06c73299905216f8687a0..3bea95e882b23caa482ddcd188542377fd519801 100644 ---- a/dist/index.js -+++ b/dist/index.js -@@ -13,6 +13,7 @@ import { AskSamReduxProvider } from './redux'; - import AskSamRootNavigation from './navigation'; - import { ChatSelectors } from './redux/Chat'; - import { FEATURE_ID_NAME } from './common'; -+import { useSidekickAssistantFABFocusEffect } from '@walmart/me-at-walmart-common'; - export * from './shared'; - export const AskSamMiniApp = (props) => { - const { config: propConfig, route } = props; -@@ -26,6 +27,10 @@ export const AskSamMiniApp = (props) => { - dispatch(LifeCycleActions.close()); - }; - }, []); -+ // Hide the SidekickAssistantFAB when this mini app is active -+ useSidekickAssistantFABFocusEffect({ -+ visible: false, -+ }); - // Handle ask sam configurations - useEffect(() => { - const configuration = propConfig || routeConfig; --- __tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -5,6 +5,7 @@ exports[`AssociateHallwayNav renders MainStackNav 1`] = ` initialRouteName="tabs" screenOptions={ { + "detachPreviousScreen": false, "header": [Function], "headerBackAccessibilityLabel": "headerBackLabel", "headerShown": true, --- package.json @@ -82,7 +82,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "6.4.10", "@walmart/allspark-cope-key-listener": "0.0.18", - "@walmart/allspark-foundation": "7.13.6", + "@walmart/allspark-foundation": "7.13.7", "@walmart/allspark-foundation-hub": "1.25.3", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", @@ -443,7 +443,7 @@ "react-native-svg": "15.11.2", "@react-navigation/elements": "^2.2.6", "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", - "@walmart/allspark-foundation": "7.13.6", + "@walmart/allspark-foundation": "7.13.7", "@walmart/allspark-utils": "7.1.0", "@walmart/compass-sdk-rn": "patch:@walmart/compass-sdk-rn@npm%3A6.4.5#~/.yarn/patches/@walmart-compass-sdk-rn-npm-6.4.5-8b11b421e3.patch", "@walmart/config-components": "patch:@walmart/config-components@npm%3A4.12.1#~/.yarn/patches/@walmart-config-components-npm-4.12.1-935618cf47.patch", --- src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -258,6 +258,7 @@ export const MainStackNav = () => { ...TransitionPresets.SlideFromRightIOS, header: (props) => <Header {...props} />, headerBackAccessibilityLabel: t('headerBackLabel'), + detachPreviousScreen: false, }} > {/* Render the correct tabs depending on mode */} --- yarn.lock @@ -7094,9 +7094,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:7.13.6": - version: 7.13.6 - resolution: "@walmart/allspark-foundation@npm:7.13.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-7.13.6.tgz" +"@walmart/allspark-foundation@npm:7.13.7": + version: 7.13.7 + resolution: "@walmart/allspark-foundation@npm:7.13.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation%2F-%2F%40walmart%2Fallspark-foundation-7.13.7.tgz" dependencies: "@apollo/client": "npm:^3.8.6" "@reduxjs/toolkit": "npm:^1.9.7" @@ -7185,7 +7185,7 @@ __metadata: optional: true react-native-permissions: optional: true - checksum: 10c0/54bf760971709b76b9845dfe8b920ddb6c336b1a4757f5356d52d736f84bc9a867399ae874c0f5c823e4afa6bfc8b8b946821c98fe75b9a6f88e114e9b80d26a + checksum: 10c0/39e925ccae91ffa37331ed65fcb964b1799c93583768f8644e4705d79b49c5e89cf739a66e62451d8dc3c0357fc66d142df2c2f4e9d33aac36558d00d9bf9854 languageName: node linkType: hard @@ -8446,7 +8446,7 @@ __metadata: "@types/react-native-vector-icons": "npm:6.4.18" "@walmart/allspark-authentication": "npm:6.4.10" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:7.13.6" + "@walmart/allspark-foundation": "npm:7.13.7" "@walmart/allspark-foundation-hub": "npm:1.25.3" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28"
fix(ui): ALLSPARK-7403 android issue with transparent modal (#5125)
fix(ui): ALLSPARK-7403 android issue with transparent modal (#5125)
7e27ad28ab1f20b6925b9d693a13b82df4524cf7
--- scripts/sendToTeams.js @@ -0,0 +1,72 @@ +process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; +const yargs = require('yargs/yargs'); +const {hideBin} = require('yargs/helpers'); +const ACData = require('adaptivecards-templating'); +const axios = require('axios'); + +const args = yargs(hideBin(process.argv)) + .option('file') + .option('webhookUrl') + .option('success') + .option('title') + .option('failureMessage') + .option('ver') + .option('buildNumber') + .option('os') + .option('osIcon') + .option('buildType') + .option('env') + .option('envIcon') + .option('releaseType') + .option('releaseTypeDesc') + .option('releaseTypeIcon') + .option('commitMessage') + .option('commitAuthor') + .option('commitDate') + .option('commitUrl') + .option('jobBranch') + .option('jobNbr') + .option('jobUrl') + .option('downloadUrl') + .option('downloadPassword') + .help().argv; + +console.log('args are', args); + +const {file, success} = args; + +const templateFile = + success === 'true' + ? './teamsSuccessTemplate.json' + : './teamsFailureTemplate.json'; + +const templatePayload = require(templateFile); + +const template = new ACData.Template(templatePayload); + +const cardData = file ? require(file) : args; +const webhookUrl = file ? cardData.webhookUrl : args.webhookUrl; + +const card = template.expand({$root: cardData}); + +const postPayload = { + type: 'message', + attachments: [ + { + contentType: 'application/vnd.microsoft.card.adaptive', + contentUrl: null, + content: card, + }, + ], +}; + +console.log('post payload', JSON.stringify(postPayload)); + +axios.default + .post(webhookUrl, postPayload) + .then((resp) => { + console.log('response data', resp.data); + }) + .catch((err) => { + console.log('error occcurred', err); + });
chore: move script needed by looper template up to top level
chore: move script needed by looper template up to top level
40d049378f5c8865c5013bc93982e99b12e10a61
--- __tests__/AppTest.tsx @@ -2,10 +2,6 @@ import React from 'react'; import {create} from 'react-test-renderer'; import {App} from '../src/index'; -jest.mock( - '@walmart/gtp-shared-components/dist/theme/theme-provider', - () => 'ThemeProvider', -); jest.mock('../env', () => ({ __esModule: true, default: {env: 'dev'}, --- __tests__/__mocks__/@walmart/gtp-shared-components.js @@ -29,4 +29,6 @@ module.exports = { ExclamationCircleIcon: 'ExclamationCircleIcon', Spinner: 'Spinner', Dropdown: 'Dropdown', + LivingDesignProvider: 'LivingDesignProvider', + ThemeProvider: 'ThemeProvider', }; --- __tests__/auth/ErrorScreenTest.tsx @@ -14,11 +14,6 @@ import WmConfig from 'react-native-wm-config'; import {useLogger} from '@walmart/core-services/Logger'; import {useWatch, useForm, Controller} from 'react-hook-form'; -jest.mock( - '@walmart/gtp-shared-components/dist/theme/theme-provider', - () => 'ThemeProvider', -); - jest.mock('react', () => ({ ...(jest.requireActual('react') as any), useState: jest.fn(),
test fixes
test fixes
c6cc82b80bb8ecd6170dcc3836f4bcab4a97e93f
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.14", + "version": "1.0.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/myteam-mini-app", - "version": "1.0.14", + "version": "1.0.15", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", @@ -65,7 +65,7 @@ "@walmart/react-native-scanner-3.0": "0.4.2", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", - "@walmart/roster-mini-app": "1.0.16", + "@walmart/roster-mini-app": "1.0.17", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "1.0.15", "babel-jest": "^29.2.1", @@ -11815,9 +11815,9 @@ } }, "node_modules/@walmart/roster-mini-app": { - "version": "1.0.16", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.16.tgz", - "integrity": "sha512-dTyQa9U8ZpVWgs7n+z5gjUNtrPiifmLBI71JKyPfazDfNSEa0GbXwvJrRQZYfs2bI+RpFQWWkE/nNkxJjBWfSQ==", + "version": "1.0.17", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.17.tgz", + "integrity": "sha512-FFb9Ebt3x8OiqWi0eW6aLlt1yd9SS40vfx66rv9d8tbkMTLteYuBv18+DkAoUKiiGYUSw+RUULy6VlLuLxhtNQ==", "dev": true, "hasInstallScript": true }, @@ -41047,9 +41047,9 @@ } }, "@walmart/roster-mini-app": { - "version": "1.0.16", - "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.16.tgz", - "integrity": "sha512-dTyQa9U8ZpVWgs7n+z5gjUNtrPiifmLBI71JKyPfazDfNSEa0GbXwvJrRQZYfs2bI+RpFQWWkE/nNkxJjBWfSQ==", + "version": "1.0.17", + "resolved": "https://npme.walmart.com/@walmart/roster-mini-app/-/roster-mini-app-1.0.17.tgz", + "integrity": "sha512-FFb9Ebt3x8OiqWi0eW6aLlt1yd9SS40vfx66rv9d8tbkMTLteYuBv18+DkAoUKiiGYUSw+RUULy6VlLuLxhtNQ==", "dev": true }, "@walmart/ui-components": { --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.0.14", + "version": "1.0.15", "private": false, "main": "dist/index.js", "files": [ @@ -89,7 +89,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "1.0.15", - "@walmart/roster-mini-app": "1.0.16", + "@walmart/roster-mini-app": "1.0.17", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
Update version
Update version
ff5d3d2daa50529fca1c08d5a434b3a19e477364
--- packages/allspark-cli/package.json @@ -4,7 +4,7 @@ "description": "Allspark CLI: CLI tools for allspark clients", "main": "dist/index.js", "types": "dist/index.d.ts", - "bin": "dist/index.js", + "bin": "dist/cli-tool/index.js", "files": [ "dist" ], @@ -17,16 +17,21 @@ }, "scripts": { "clean": "rm -rf dist *.tsbuildinfo tsconfig.tsbuildinfo || true", - "build": "npm run clean && tsc --project tsconfig.json && npm run copy-deps-map && npm run copy-lint-rules", - "build:watch": "rm -rf dist && tsc --project tsconfig.json --watch", - "cli:dev": "ts-node src/cli-tool/index.ts", + "build": "npm run clean && npm run compile && npm run verify-build && npm run copy-deps-map && npm run copy-lint-rules", + "compile": "npx tsc --project tsconfig.json || (echo 'Primary compilation failed, trying fallback...' && npx tsc src/cli-tool/index.ts --outDir dist/cli-tool --target es2021 --lib es2021 --module commonjs --declaration --esModuleInterop --allowSyntheticDefaultImports --strict --skipLibCheck)", + "build:watch": "rm -rf dist && npx tsc --project tsconfig.json --watch", + "build:debug": "npm run clean && npx tsc --project tsconfig.json --listFiles && npm run copy-deps-map && npm run copy-lint-rules", + "cli:dev": "npx ts-node src/cli-tool/index.ts", "link:cli": "npm run build && chmod +x dist/cli-tool/index.js && npm link", - "prepublishOnly": "npm run build && chmod +x dist/cli-tool/index.js", + "prepublishOnly": "npm run build && [ -f dist/cli-tool/index.js ] && chmod +x dist/cli-tool/index.js || (echo 'Error: CLI entry point not built' && exit 1)", "prepare": "npm run build && [ -f $(pwd)/dist/cli-tool/index.js ] && chmod +x $(pwd)/dist/cli-tool/index.js || echo 'Warning: CLI entry point not found, skipping chmod'", + "verify-build": "[ -f dist/cli-tool/index.js ] && echo '✅ CLI entry point built successfully' || (echo '❌ CLI entry point missing after compilation' && echo 'Checking build artifacts:' && ls -la dist/ 2>/dev/null || echo 'dist/ directory missing' && echo 'Checking source files:' && ls -la src/cli-tool/ 2>/dev/null || echo 'src/cli-tool/ directory missing' && exit 1)", "copy-deps-map": "mkdir -p $(pwd)/dist/cli-tool/scripts && cp -R $(pwd)/src/cli-tool/scripts/dependencies-map $(pwd)/dist/cli-tool/scripts/dependencies-map 2>/dev/null || echo 'Warning: dependencies-map not found'", "copy-lint-rules": "mkdir -p $(pwd)/dist/cli-tool/scripts/lint-check && cp -R $(pwd)/src/cli-tool/scripts/lint-check/eslint-rules $(pwd)/dist/cli-tool/scripts/lint-check/eslint-rules 2>/dev/null || echo 'Warning: eslint-rules not found' && cp $(pwd)/src/cli-tool/scripts/lint-check/.eslintrc-mini-app.json $(pwd)/dist/cli-tool/scripts/lint-check/.eslintrc-mini-app.json 2>/dev/null || echo 'Warning: .eslintrc-mini-app.json not found'", "coverage": "jest --coverage", - "test": "jest" + "test": "jest", + "debug:tsconfig": "npx tsc --showConfig", + "debug:compile": "npx tsc src/cli-tool/index.ts --outDir dist --declaration --listFiles" }, "dependencies": { "@azure/storage-blob": "^12.26.0", @@ -44,6 +49,7 @@ "@types/node": "^24.3.1", "eslint": "^8.57.0", "jest": "~29.7.0", + "ts-node": "^10.9.0", "typescript": "~5.8.3" } } --- packages/allspark-cli/tsconfig.json @@ -1,13 +1,13 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "target": "ES2021", + "target": "es2020", "module": "commonjs", "lib": [ - "ES2021" + "es2020" ], "outDir": "./dist", - "rootDir": "./src/cli-tool", + "rootDir": "./src", "strict": true, "esModuleInterop": true, "skipLibCheck": true, --- yarn.lock @@ -8411,9 +8411,10 @@ __metadata: jest: "npm:~29.7.0" madge: "npm:^8.0.0" sharp: "npm:^0.34.4" + ts-node: "npm:^10.9.0" typescript: "npm:~5.8.3" bin: - allspark-cli: dist/index.js + allspark-cli: dist/cli-tool/index.js languageName: unknown linkType: soft @@ -23223,7 +23224,7 @@ __metadata: languageName: node linkType: hard -"ts-node@npm:^10.8.1, ts-node@npm:^10.9.2": +"ts-node@npm:^10.8.1, ts-node@npm:^10.9.0, ts-node@npm:^10.9.2": version: 10.9.2 resolution: "ts-node@npm:10.9.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2Fts-node%2F-%2Fts-node-10.9.2.tgz" dependencies:
fix(cli): fix build issue (#434)
fix(cli): fix build issue (#434) * fix(cli): publish package * fix(cli): publish package * fix(cli): publish package * fix(cli): publish package * fix(cli): publish package * fix(cli): publish package * fix(cli): publish package
d9ca095353ae90fb80f7a1d82af8048124d6b131
--- src/components/AssociateRosterItem/index.tsx @@ -19,13 +19,14 @@ import { associateIsClockedIn, encryptUserId, formatSchedule, + transformWfmSchedule, } from '../../utils'; import { useIsImpersonatedOnDev, useRbacConfigWithJobCode, useUserIsInRoster, } from '../../hooks'; -import {Associate} from '../../types'; +import {Associate, WFMSchedule} from '../../types'; import {StatusChip} from '../StatusChip'; import {AssociateItemProps} from './types'; import {styles} from './style'; @@ -97,6 +98,11 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { associate?.win?.toString() !== currentUser?.win?.toString(); const isStoreScheduleValid = associate?.storeSchedule && associate?.storeSchedule?.length > 0; + const isWfmScheduleValid = + associate?.wfmSchedule && + associate?.wfmSchedule?.scheduleWeeks && + associate?.wfmSchedule?.scheduleWeeks?.[0]?.scheduleShifts && + associate?.wfmSchedule?.scheduleWeeks?.[0].scheduleShifts?.length > 0; return ( <Card testID='associateRosterCard' @@ -160,10 +166,23 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { <Body weight='400' size='small' numberOfLines={1}> {namecase(associate?.jobCategoryCodeDesc)} </Body> - {isStoreScheduleValid && ( + {isWfmScheduleValid ? ( <Body weight='400' size='small' numberOfLines={1}> - {namecase(formatSchedule(associate?.storeSchedule))} + {namecase( + formatSchedule( + transformWfmSchedule( + associate.wfmSchedule as WFMSchedule, + siteId, + ), + ), + )} </Body> + ) : ( + isStoreScheduleValid && ( + <Body weight='400' size='small' numberOfLines={1}> + {namecase(formatSchedule(associate?.storeSchedule))} + </Body> + ) )} {shouldShowStatusChipAndWeeklySchedule && ( <TouchableOpacity
Update schedule on view team screen
Update schedule on view team screen
795f761f3fa43e76a3253906c30f8299169a21c6
--- packages/core-widget-registry/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.3.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-widget-registry@1.2.10...@walmart/core-widget-registry@1.3.0) (2024-01-30) + + +### Features + +* Sidekick registry widget ([58ef6bd](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/58ef6bd99760ee38be1c7059a83460f87caffbb5)) +* updated exports for sidekick widget registration ([226e192](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/226e192f9fbaf11d0d39b57f6cced55dc8e955b6)) + + + + + ## [1.2.10](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/core-widget-registry@1.2.9...@walmart/core-widget-registry@1.2.10) (2024-01-23) **Note:** Version bump only for package @walmart/core-widget-registry --- packages/core-widget-registry/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "1.2.10", + "version": "1.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "1.2.10", + "version": "1.3.0", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC",
chore(version): updating package version
chore(version): updating package version - @walmart/core-widget-registry@1.3.0
b7f3f90a7945df897dc7d19874d0cd14c8074357
--- targets/US/package.json @@ -103,7 +103,7 @@ "@walmart/emergency-mini-app": "1.30.5", "@walmart/exception-mini-app": "1.8.11", "@walmart/facilities-management-miniapp": "0.17.0", - "@walmart/feedback-all-spark-miniapp": "0.9.72", + "@walmart/feedback-all-spark-miniapp": "0.9.74", "@walmart/financial-wellbeing-feature-app": "1.29.2", "@walmart/functional-components": "~6.3.28", "@walmart/global-vpi-mini-app": "1.1.1", --- yarn.lock @@ -6670,9 +6670,9 @@ __metadata: languageName: node linkType: hard -"@walmart/feedback-all-spark-miniapp@npm:0.9.72": - version: 0.9.72 - resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.72" +"@walmart/feedback-all-spark-miniapp@npm:0.9.74": + version: 0.9.74 + resolution: "@walmart/feedback-all-spark-miniapp@npm:0.9.74" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -6689,7 +6689,7 @@ __metadata: react-redux: ^7.2.1 reduxsauce: ^1.2.0 reselect: ^4.0.0 - checksum: 10c0/8a3fd9a2bc97de337d118a823850a73423b17b9c61eb14cbe20f11239991535ebb45cd95508619843c1a679a7a7007054ff4340cc23264783925556b7da0769b + checksum: 10c0/de0d288eef9c5bba4541274ac9ec068aa722ea3e4eb355d1544d94356de834fe5049ce1a9b869b9778cc77e5bd6313a018b96480bce74cdcc61037cb1e94711e languageName: node linkType: hard @@ -7306,7 +7306,7 @@ __metadata: "@walmart/emergency-mini-app": "npm:1.30.5" "@walmart/exception-mini-app": "npm:1.8.11" "@walmart/facilities-management-miniapp": "npm:0.17.0" - "@walmart/feedback-all-spark-miniapp": "npm:0.9.72" + "@walmart/feedback-all-spark-miniapp": "npm:0.9.74" "@walmart/financial-wellbeing-feature-app": "npm:1.29.2" "@walmart/functional-components": "npm:~6.3.28" "@walmart/global-vpi-mini-app": "npm:1.1.1"
GDVCVR-17557 removing podfile lock changes
GDVCVR-17557 removing podfile lock changes
b3262f66fcb1b26585a245b399624b046340b809
--- ios/Podfile.lock @@ -526,14 +526,14 @@ PODS: - AppAuth - Starscream (3.0.6) - StructuredLogAssistantIOS (0.0.6) - - SumoSDK (2.0.0-rc.2): + - SumoSDK (2.1.0-alpha.2): - Apollo (= 0.42.0) - Apollo/SQLite (= 0.42.0) - Firebase/Messaging (= 8.4.0) - StructuredLogAssistantIOS (= 0.0.6) - - walmart-react-native-sumo-sdk (2.0.0-rc.2): + - walmart-react-native-sumo-sdk (2.1.0-alpha.3): - React - - SumoSDK (= 2.0.0-rc.2) + - SumoSDK (= 2.1.0-alpha.2) - wifi-store-locator (1.0.0-alpha2): - React-Core - Yoga (1.14.0) @@ -902,8 +902,8 @@ SPEC CHECKSUMS: SSO: 6a7e963cb299184b6cf198991d232b1feb25bf04 Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5 StructuredLogAssistantIOS: 68c6fc083b10202a570f4a737359dcc7f81ec6e4 - SumoSDK: 042f5a0bdf8c4fb6b2b6e9f8ef2f97df5dfc5585 - walmart-react-native-sumo-sdk: 8704862f32e46cc9ae9a0223b89bc1973741a466 + SumoSDK: f8d7cf055c573e45367b993ebb0a435f8202b6df + walmart-react-native-sumo-sdk: 700ee1f22c04bcf4af934c321558659d820d06ae wifi-store-locator: 0f4d1e14ff9b98c559275105c655a5a6103ef427 Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 --- package-lock.json @@ -3499,9 +3499,9 @@ "integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg==" }, "@walmart/react-native-sumo-sdk": { - "version": "2.0.0-rc.2", - "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.0.0-rc.2.tgz", - "integrity": "sha512-fH90+efaDPKPz2iTcpI+XzlQ3GZ204jJiwoeZf/j9HfGUakcn9CpRNaQo8oFQhH7NDMrD9S6RksReearlcFG4Q==" + "version": "2.1.0-alpha.3", + "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.1.0-alpha.3.tgz", + "integrity": "sha512-NSK68YKfA95rH9x90qwCNYORlTShIyVoJ2iysN6/OPWKiy59gK6P1yTrg6hAaysWSm/r90fWTkIuukzdSu99+A==" }, "@walmart/redux-store": { "version": "1.0.15", --- package.json @@ -92,7 +92,7 @@ "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.27.0", "@walmart/react-native-shared-navigation": "^0.4.0", - "@walmart/react-native-sumo-sdk": "2.0.0-rc.2", + "@walmart/react-native-sumo-sdk": "2.1.0-alpha.3", "@walmart/redux-store": "^1.0.15", "@walmart/schedule-mini-app": "0.3.1", "@walmart/settings-mini-app": "1.3.7",
Sumo update.
Sumo update.
1331d1bd3baf5d743e5c31c21534e531cf9b4915
--- src/components/AssociateRosterItem/index.tsx @@ -14,8 +14,12 @@ import {goToIndividualSchedule} from '../../navigation/utils'; import {useSelector} from 'react-redux'; import {SiteSelectors, UserSelectors} from '@walmart/redux-store'; -// import {PresenceIndicator} from '../../presence/components/PresenceIndicator'; -import {associateDisplayName, encryptUserId, formatSchedule} from '../../utils'; +import { + associateDisplayName, + associateIsClockedIn, + encryptUserId, + formatSchedule, +} from '../../utils'; import { useIsImpersonatedOnDev, useRbacConfigWithJobCode, @@ -31,6 +35,7 @@ import {messageButtonEnabled, pushToTalkEnabled} from '../../redux/selectors'; import {useDispatch} from 'react-redux'; import {rosterSlice} from '../../redux/reducer'; import {storeAssociateName} from '../../utils/recentSearchHistory'; +import {ClockStatusIndicator} from '../ActionButton/ClockStatusIndicator'; export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { const {associate, first, last, style, isSearchScreen = false} = props; @@ -56,6 +61,7 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { const {height} = StyleSheet.flatten(style || {}); const name = associateDisplayName(associate); const associateName = namecase(name.slice(0, 20)); + const isClockedIn = associateIsClockedIn(associate); const handleIndividualSchedulePress = () => goToIndividualSchedule(associate.userId, associate.fullName, siteId); @@ -85,8 +91,10 @@ export const AssociateRosterItem = React.memo((props: AssociateItemProps) => { UNSAFE_style={[styles.item, {height}, last && styles.lastItem]} title={namecase(name.slice(0, 20))} leading={ - <></> - // <PresenceIndicator isClockedIn={isClockedIn} style={styles.badge} /> + <ClockStatusIndicator + isClockedIn={isClockedIn} + style={styles.badge} + /> } trailing={ <>
Update clocked in indicator
Update clocked in indicator
d626414ea96efa4f82feae73eabbbc8c26349f1c
--- package-lock.json @@ -63,7 +63,7 @@ "@walmart/iteminfo-mini-app": "7.4.0", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", - "@walmart/metrics-mini-app": "0.15.10", + "@walmart/metrics-mini-app": "0.15.12", "@walmart/mod-flex-mini-app": "1.10.4", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16", @@ -8675,9 +8675,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.15.10", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.10.tgz", - "integrity": "sha512-RSDvXRi045HGlw9YOKyNqmHRTjOp4LbSL5Ijbi22zmUSJyQbZjJk8AGS8aegOtviGXktifInkrkl9E5UNs8RLg==", + "version": "0.15.12", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.12.tgz", + "integrity": "sha512-/+m61VGq/w4CGkd43LYMa7S/Qgfyc5s4DxivY+xqplg7l+dEe+qZJwmWYjelEJ+xrVcI9n0JhTzMrtLD+nHAlA==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -33686,9 +33686,9 @@ "integrity": "sha512-JvV5AUWQ51uTUyD3LNk0UD8W5nQjUTRnMdJMvh2x3OHmKAhqTGctHoKjcpBzrtZlBie6e6Az3CUWtPrcA2TZwA==" }, "@walmart/metrics-mini-app": { - "version": "0.15.10", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.10.tgz", - "integrity": "sha512-RSDvXRi045HGlw9YOKyNqmHRTjOp4LbSL5Ijbi22zmUSJyQbZjJk8AGS8aegOtviGXktifInkrkl9E5UNs8RLg==", + "version": "0.15.12", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.12.tgz", + "integrity": "sha512-/+m61VGq/w4CGkd43LYMa7S/Qgfyc5s4DxivY+xqplg7l+dEe+qZJwmWYjelEJ+xrVcI9n0JhTzMrtLD+nHAlA==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -104,7 +104,7 @@ "@walmart/iteminfo-mini-app": "7.4.0", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", - "@walmart/metrics-mini-app": "0.15.12", + "@walmart/metrics-mini-app": "0.15.13", "@walmart/mod-flex-mini-app": "1.10.4", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16",
metrics version bump (bug fixes)
metrics version bump (bug fixes)
03b02d07a4477ac9fea47c11331077d3f436fada
--- packages/allspark-foundation/__tests__/Feature/AllsparkFeature.test.tsx @@ -33,7 +33,7 @@ describe('AllsparkFeature', () => { it('create a GraphQL client', () => { const config = { uri: 'https://graphql.com' }; const results = feature.createGraphQLClient(config); - expect(results.featureId).toBe('testFeature'); + expect(results.id).toBe('testFeature'); expect(results.config).toEqual({ uri: 'https://graphql.com', headers: { featureId: 'testFeature' }, --- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -20,8 +20,7 @@ import { DeviceModule } from '../Device'; import { BaseAllsparkEnvironment, EnvironmentModule } from '../Environment'; import { FeatureModule } from '../Feature'; import { GeolocationServiceCreator } from '../Geolocation'; -import { AllsparkGraphQLClient } from '../GraphQL'; -import { GraphQLClientProvider } from '../GraphQL/provider'; +import { GraphQLModule } from '../GraphQL'; import { HttpModule, HttpClientProvider } from '../HTTP'; import { LocalStorageModule } from '../LocalStorage'; import { LoggerModule } from '../Logger'; @@ -195,7 +194,7 @@ export class AllsparkContainer< }); EnvironmentModule.apply(this.config.graphQL, (graphQLConfig) => { if (graphQLConfig) { - AllsparkGraphQLClient.configure(graphQLConfig); + GraphQLModule.configure(graphQLConfig); } }); EnvironmentModule.apply(this.config.network, NetworkModule.configure); @@ -271,7 +270,7 @@ export class AllsparkContainer< <ReduxModule.Provider> <TranslationProvider> <HttpClientProvider value={HttpModule.client}> - <GraphQLClientProvider> + <GraphQLModule.Provider> <AllsparkNavigationProvider ContainerComponent={NavigationContainer} > @@ -287,7 +286,7 @@ export class AllsparkContainer< </GlobalElementProvider> </AllsparkComponentProvider> </AllsparkNavigationProvider> - </GraphQLClientProvider> + </GraphQLModule.Provider> </HttpClientProvider> </TranslationProvider> </ReduxModule.Provider> --- packages/allspark-foundation/src/GraphQL/GraphQLModule.tsx @@ -9,6 +9,7 @@ import { GraphQLClientOptions, } from './GraphQLClient'; import { GraphQLClientFactory } from './GraphQLClientFactory'; +import { LoggerModule } from '../Logger'; /** * GraphQLModule @@ -43,6 +44,7 @@ export class GraphQLModule { httpConfig: { client: HttpModule.client, }, + logger: LoggerModule.factory.createLoggerManager('GraphQLModule'), }); } return this._instance; --- packages/allspark-foundation/src/GraphQL/deprecated.ts @@ -1,6 +1,17 @@ +import { GraphQLFeatureClientConfig } from './GraphQLFeatureClient'; import { GraphQLModule } from './GraphQLModule'; /** * @deprecated Use `GraphQLModule.client` instead */ -export const AllsparkGraphQLClient = GraphQLModule.client; +export const AllsparkGraphQLClient = GraphQLModule.factory; + +/** + * @deprecated Use `GraphQLFeatureClientConfig` instead + */ +export type GraphQLFeatureConfig = GraphQLFeatureClientConfig; + +/** + * @deprecated Use `GraphQLModule.Provider` instead + */ +export const GraphQLClientProvider = GraphQLModule.Provider; --- packages/allspark-foundation/src/GraphQL/index.ts @@ -1,7 +1,9 @@ +export * from './deprecated'; export type { GraphQLClientConfig, GraphQLClientOptions, } from './GraphQLClient'; +export { GraphQLClient } from './GraphQLClient'; export type { GraphQLFeatureClientConfig, GraphQLFeatureClientOptions, --- packages/allspark-foundation/src/GraphQL/links/AllsparkHttpLink.ts @@ -79,8 +79,8 @@ export class AllsparkHttpLink extends ApolloLink { if (this.options.uri) { console.warn( `AllsparkHttpLink: Ignoring configured base URI '${this.options.uri}' ` + - `because request URI '${uriString}' is already a full URL. ` + - `Using '${uriString}' as-is.` + `because request URI '${uriString}' is already a full URL. ` + + `Using '${uriString}' as-is.` ); } fullURI = uriString; --- packages/allspark-foundation/src/GraphQL/links/CacheValidationLink.ts @@ -99,7 +99,8 @@ export class CacheValidationLink extends ApolloLink { // When keyFields: false is set, Apollo converts it to a special nullKeyFieldsFn // Check if the keyFn is the nullKeyFieldsFn (indicates keyFields: false) - const isEmbeddedType = typePolicy?.keyFn?.name === 'nullKeyFieldsFn'; + const isEmbeddedType = + typePolicy?.keyFn?.name === 'nullKeyFieldsFn'; // Only report as missing keys if it's not an embedded type if (!isEmbeddedType) { --- packages/allspark-foundation/src/GraphQL/links/index.ts @@ -1,4 +1,4 @@ export * from './AllsparkHttpLink'; -export * from './CacheValidationLink' +export * from './CacheValidationLink'; export * from './DynamicLink'; export * from './PersistedQueryLink'; --- packages/allspark-foundation/src/HTTP/HttpClient.ts @@ -680,7 +680,7 @@ export class HttpClient extends Axios { * will manage this for your when an AllsparkFeature is connected and * disconnected */ - public removeInstance = (_: string) => { }; + public removeInstance = (_: string) => {}; /** * @deprecated This re-exposes the request method on the
chore: fix references after update
chore: fix references after update
02a10f1a2636b5c1c5031042691e32c83a4e85d4
--- packages/celebration-mini-app/src/screens/CelebrationDetailsScreen.tsx @@ -232,7 +232,7 @@ const CelebrationDetailsScreen = CelebrationFeature.createScreen( return ( <View style={styles.screen}> <AllsparkSharedComponents.Component - id='Teamswitcher.MyWalmartTeamSwitcherWithHeader' + id='TeamSwitcher.MyWalmartTeamSwitcherWithHeader' props={{onTeamChange: handleTeamChange}} />
feat(ui): update team switcher feature id
feat(ui): update team switcher feature id
a486b018ef36c3cb54aed4400989f1b2d9e7fa28
--- package-lock.json @@ -4331,9 +4331,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.66", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.66.tgz", - "integrity": "sha512-vVxftEb1/Y5JGn4NiVO1DWkz83RKSxa2V81lDJDX7E79kMl3OFGW5XQRldTNzvWYTP1Va5CL39MPh8zjQJitFg==" + "version": "0.5.68", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.68.tgz", + "integrity": "sha512-40p8BqIIplHMPjfkhBwfDd/xe/v8IvuhY4S07yPAMz257k5rBFsIC+n1GibyxIBCay57uMK7B2XC6RmsgY3/BA==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -88,7 +88,7 @@ "@walmart/manager-approvals-miniapp": "0.0.58", "@walmart/metrics-mini-app": "0.4.14", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.5.66", + "@walmart/push-to-talk-mini-app": "0.5.68", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0",
using ptt v0.5.68
using ptt v0.5.68
152cf10b908e4a1e88b45397a389e2a7851887a3
--- packages/me-at-walmart-container/__tests__/services/user/getAssociatesInfo.test.ts @@ -29,20 +29,20 @@ jest.mock('../../../src/services/user/utils', () => ({ describe('getAssociateInfo', () => { const tokenData = { - scope: '', - client_id: '', - guid: '', - iss: '', - jti: '', - sub: '', + scope: 'openid full', + client_id: 'Connected-Associate', + guid: 'rBfyTLalJ7EEZJGCE4ZWjez8YPzfXFiB', + iss: 'https://pfedcert.wal-mart.com', + jti: '2Z50wGWU', + sub: 'NOT_FOUND', c: '', userid: '', aud: '', - upn: '', - nbf: 0, - iat: 0, + upn: 'vn57guq@homeoffice.wal-mart.com', + nbf: 1736975385, + iat: 1736975505, win: '', - exp: 0, + exp: 1736976405, }; const tokenUser = {userId: '123'}; const cachedUser = {userId: '123'};
updated the value of token data in getAssociateInfo.test.ts
updated the value of token data in getAssociateInfo.test.ts
d4187610bce11c023e031bf5415186a82a738957
--- package-lock.json @@ -3560,9 +3560,9 @@ } }, "@walmart/settings-mini-app": { - "version": "1.3.8", - "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.3.8.tgz", - "integrity": "sha512-DnuWICgwXUEwBTmZlx+iEFmh1t7rtQLQICQ7RVYpbHABQAQDFMRUwhyBPCoZT6DVGCkDGhXV5HcsCUFMs8UZsQ==" + "version": "1.3.9", + "resolved": "https://npme.walmart.com/@walmart/settings-mini-app/-/settings-mini-app-1.3.9.tgz", + "integrity": "sha512-+nkW3a+BJZlD+x/AXnNSLj66kf5rKSBNAtosz7LvWHuv+7VrtIDYwP/uoe8j5uneO4AJZpOHCIdEEGHYXOte4A==" }, "@walmart/shelfavailability-mini-app": { "version": "0.5.0", --- package.json @@ -95,7 +95,7 @@ "@walmart/react-native-sumo-sdk": "2.1.0-alpha.3", "@walmart/redux-store": "^1.0.15", "@walmart/schedule-mini-app": "0.4.4", - "@walmart/settings-mini-app": "1.3.8", + "@walmart/settings-mini-app": "1.3.9", "@walmart/ui-components": "1.1.69", "@walmart/shelfavailability-mini-app": "0.5.0", "@walmart/time-clock-mini-app": "0.4.23",
Setting mini app version bump
Setting mini app version bump
bc7419da9387d3782be4b5e332136bca5e6444ea
--- packages/components-library/App.jsx @@ -3,8 +3,4 @@ LogBox.ignoreAllLogs(); export const AppEntryPoint = require('./.storybook').default; -export const App = () => { - return <AppEntryPoint />; -}; - export default AppEntryPoint;
chore: removed App from index
chore: removed App from index
68a3e71c2be8c91c07a19df964e36fe9eab3c089
--- src/components/Roster/Roster.tsx @@ -29,8 +29,8 @@ export const Roster: React.FC<RosterProps> = (props) => { const { // featureFlagMap, //TODO: Will be used as this is built out associateActionButtons = [], - // teamActionButtons, - associateListSearchQuery = null, //TODO: Filter results based on the search query + // teamActionButtons, //TODO: This will be used when teams is added + associateListSearchQuery = null, rosterDataOverride = null, onRosterRefresh = null, } = props; @@ -72,7 +72,7 @@ export const Roster: React.FC<RosterProps> = (props) => { const isTopRow = index === 0; const isLastRow = index === extraData?.listLength - 1; - //TODO: Analyze replace and isSearchScreen props. Remove these from this component and bubble up + //TODO: Analyze replace and isSearchScreen props. Extract search logic from component and place in search screen if (isNil(associate)) return null; return ( @@ -103,7 +103,7 @@ export const Roster: React.FC<RosterProps> = (props) => { getDailyRosterResponse?.getDailyRoster as AssociateRosterItem[], teamLeads, ); - setAssociates(sortedAssociates); //TODO: set the associates based on the getDailyRoster response + setAssociates(sortedAssociates); } }, [ shouldSkipQuery,
cleaning roster component
cleaning roster component
f558decac1ef5ccf6ad49bb57362879c88512ad2
--- packages/allspark-utils/src/types.ts @@ -409,7 +409,11 @@ export type InferPromiseType<T extends PromiseOrPromiseFunction> = * Infers the argument types of a function that returns a Promise. */ export type InferPromiseArguments<T extends PromiseOrPromiseFunction> = - T extends (param: infer Param) => Promise<any> ? Param : []; + T extends (param: infer Param) => Promise<any> + ? unknown extends Param + ? void + : Param + : void; /** * Infers the props type of a component.
fix: inferred arguments was not handling unknown properly
fix: inferred arguments was not handling unknown properly
277f9e1e27caaa62faddbc0d14f0cee9f7f30e7a
--- tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { /* Basic Options */ "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": ["es6"], /* Specify library files to be included in the compilation. */ "allowJs": true, /* Allow javascript files to be compiled. */ "resolveJsonModule": true, /* Include json in build. */ --- tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { /* Basic Options */ "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": ["es6"], /* Specify library files to be included in the compilation. */ "allowJs": true, /* Allow javascript files to be compiled. */ "resolveJsonModule": true, /* Include json in build. */
update tsconfig file
update tsconfig file
0ec2f0f59c250c2e8cde0a46f42135b19976fc55
--- package.json @@ -11,8 +11,9 @@ "hoistingLimits": "none" }, "scripts": { - "build": "yarn workspaces foreach --all run build", + "build": "yarn workspaces foreach --all --topological-dev run build", "coverage": "jest --coverage", + "clean": "yarn workspaces foreach --all run clean", "env:beta": "yarn workspaces foreach --all -p run env:beta", "env:dev": "yarn workspaces foreach --all -p run env:dev", "env:prod": "yarn workspaces foreach --all -p run env:prod",
chore: fix build command
chore: fix build command
621e21be5b5f61563dd37b4461194e6ab9cc11bd
--- package.json @@ -163,7 +163,7 @@ "@walmart/me-at-walmart-container": "workspace:^", "@walmart/moment-walmart": "1.0.4", "@walmart/redux-store": "~6.3.28", - "@walmart/ui-components": "1.21.2", + "@walmart/ui-components": "1.21.3", "axios": "~1.6.0", "axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch", "crypto-js": "~4.2.0", --- targets/US/package.json @@ -152,7 +152,7 @@ "@walmart/time-clock-mini-app": "2.448.1", "@walmart/topstock-mini-app": "1.20.4", "@walmart/translator-mini-app": "1.4.2", - "@walmart/ui-components": "1.21.2", + "@walmart/ui-components": "1.21.3", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.99.0", "@walmart/wfm-ui": "2.4.0", --- yarn.lock @@ -7487,7 +7487,7 @@ __metadata: "@walmart/time-clock-mini-app": "npm:2.448.1" "@walmart/topstock-mini-app": "npm:1.20.4" "@walmart/translator-mini-app": "npm:1.4.2" - "@walmart/ui-components": "npm:1.21.2" + "@walmart/ui-components": "npm:1.21.3" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.99.0" "@walmart/wfm-ui": "npm:2.4.0" @@ -8535,9 +8535,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.21.2": - version: 1.21.2 - resolution: "@walmart/ui-components@npm:1.21.2" +"@walmart/ui-components@npm:1.21.3": + version: 1.21.3 + resolution: "@walmart/ui-components@npm:1.21.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fui-components%2F-%2Fui-components-1.21.3.tgz" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" @@ -8556,7 +8556,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/0f961af489d6d6532c7b1bfeb67d4f40db827daab239be138a499cc4c7bb1e214dda92172098be604c95b14c4cf51fa67ab8f8f9081ffcef99fdfc0e24763858 + checksum: 10c0/aae1300cadc63f2d56bd32981c0684c07fb5e2d67a1ea7c037663fbd419909e738ce3d9ad83569318c66524282f60d27feab5559c4bcf42e886736000cddd711 languageName: node linkType: hard
updating ui-comp version
updating ui-comp version
9d33bd46f04a66352d8a8d5f7473d4b5291c4771
--- container/index.tsx @@ -32,6 +32,7 @@ import {useTranslation} from 'react-i18next'; import {initi18n} from '../src/translations'; import {useDispatch} from 'react-redux'; import {userActions} from '@walmart/redux-store'; +import { SearchHeader, SearchScreen } from "../src/screens/SearchScreen"; const styles = StyleSheet.create({ container: { @@ -74,7 +75,7 @@ const LauncherView: React.FC<LauncherViewProps> = (props) => { i18n.changeLanguage(isEnglish ? 'es-MX' : 'en-US'); const navigateToRosterScreen = () => navigation.navigate(ROOT_CONTAINER_SCREEN_NAME); - const naviateToSearchScreen = () => navigation.navigate(ROOT_CONTAINER_SCREEN_NAME); + const navigateToSearchScreen = () => navigation.navigate('myTeam.searchScreen'); useEffect(() => { const debugToken = @@ -88,9 +89,6 @@ const LauncherView: React.FC<LauncherViewProps> = (props) => { <View style={{marginVertical: 10}}> <PrimaryButton onPress={navigateToRosterScreen}>Open Roster</PrimaryButton> </View> - <View style={{marginVertical: 10}}> - <PrimaryButton onPress={navigateToRosterScreen}>Open Search Screen</PrimaryButton> - </View> <SecondaryButton style={{marginHorizontal: 20}} onPress={toggleLanguage}> Language: {t('container.languageName')} </SecondaryButton> --- src/navigation/index.tsx @@ -1,9 +1,11 @@ import React from 'react'; import {createStackNavigator} from '@react-navigation/stack'; import {Header} from '@walmart/ui-components'; -import {SearchHeader, SearchScreen} from '../screens/SearchScreen'; +import { SearchHeader, SearchHeaderRight, SearchIcon, SearchScreen } from "../screens/SearchScreen"; import {TextingNavParamsMap} from './types'; import {RosterScreen} from '../screens/RosterScreen'; +import {TEXTING_I18N_NAMESPACE} from '../translations'; +import {useTranslation} from 'react-i18next'; const RosterStack = createStackNavigator<TextingNavParamsMap>(); @@ -11,9 +13,11 @@ export * from './types'; export * from './components'; export const RosterNavigation = () => { + const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); return ( <RosterStack.Navigator screenOptions={{ + headerRight: SearchHeaderRight, header: Header, headerShown: true, cardStyle: {backgroundColor: 'white'}, @@ -22,6 +26,7 @@ export const RosterNavigation = () => { name='myTeam.roster' options={{ presentation: 'transparentModal', + title: t('tabsScreen.rosterTab')!, }} component={RosterScreen} />
minor fix to roster mini app
minor fix to roster mini app
ec961e35d5120def75011829e4885d31ec905f00
--- package.json @@ -159,7 +159,7 @@ "@walmart/translator-mini-app": "1.6.4", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.23.1#~/.yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch", "@walmart/walmart-fiscal-week": "^0.3.6", - "@walmart/welcomeme-mini-app": "1.0.12", + "@walmart/welcomeme-mini-app": "1.0.13", "@walmart/wfm-ui": "3.0.2", "@walmart/wm-plus-mini-app": "1.5.4", "@walmart/wmconnect-mini-app": "3.1.1", --- yarn.lock @@ -7491,7 +7491,7 @@ __metadata: "@walmart/translator-mini-app": "npm:1.6.4" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.23.1#~/.yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" - "@walmart/welcomeme-mini-app": "npm:1.0.12" + "@walmart/welcomeme-mini-app": "npm:1.0.13" "@walmart/wfm-ui": "npm:3.0.2" "@walmart/wm-plus-mini-app": "npm:1.5.4" "@walmart/wmconnect-mini-app": "npm:3.1.1" @@ -8543,9 +8543,9 @@ __metadata: languageName: node linkType: hard -"@walmart/welcomeme-mini-app@npm:1.0.12": - version: 1.0.12 - resolution: "@walmart/welcomeme-mini-app@npm:1.0.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwelcomeme-mini-app%2F-%2F%40walmart%2Fwelcomeme-mini-app-1.0.12.tgz" +"@walmart/welcomeme-mini-app@npm:1.0.13": + version: 1.0.13 + resolution: "@walmart/welcomeme-mini-app@npm:1.0.13::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwelcomeme-mini-app%2F-%2F%40walmart%2Fwelcomeme-mini-app-1.0.13.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/schedule-mini-app": "*" @@ -8562,7 +8562,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/d549e33882c1239c91d0ee59277a77f751de5e47598d7877c5297e8cf0c7e0aeba433d389a7259453abe0a3dd9fa4c1da95288dce3c172cda8bf885d6ae32827 + checksum: 10c0/ff6abf781f382b69fc6aa42b28447e992650fd6f237bff8a96012fdb4afc08f42de66999ca825eccdfd4a417d919de03680db672ef2e6afb111bcede9cd053c0 languageName: node linkType: hard
fix: header title fixes for welcome me (#4412)
fix: header title fixes for welcome me (#4412)
bd10e01b593888faae7a42752a4186563e0c72c7
--- src/biometrics/BiometricModal.tsx @@ -9,6 +9,7 @@ import WmTelemetry from 'react-native-wm-telemetry'; import {Images} from '../images'; import {BiometricActionCreators, getBiometricModalType} from './BiometricRedux'; import styles from './BiometricModalStyle'; +import {BIOMETRICS_LOG_KEY} from './utils'; export const BiometricModal: FC<any> = (props) => { const {navigation} = props; @@ -17,19 +18,21 @@ export const BiometricModal: FC<any> = (props) => { const biometric = useSelector(getBiometricModalType); useEffect(() => { - WmTelemetry.logEvent('biometrics', 'enable_prompt_loaded', {biometric}); + WmTelemetry.logEvent(BIOMETRICS_LOG_KEY, 'enable_prompt_loaded', { + biometric, + }); }, [biometric]); const skipBiometricSetup = () => dispatch(BiometricActionCreators.skipBiometricSetup()); const onOpenSettings = () => { - WmTelemetry.logEvent('biometrics', 'go_to_settings', {}); + WmTelemetry.logEvent(BIOMETRICS_LOG_KEY, 'go_to_settings', {}); openSettings(); }; const onClose = () => { - WmTelemetry.logEvent('biometrics', 'do_not_go_to_settings', {}); + WmTelemetry.logEvent(BIOMETRICS_LOG_KEY, 'do_not_go_to_settings', {}); navigation.goBack(); InteractionManager.runAfterInteractions(skipBiometricSetup); }; --- src/biometrics/BiometricSagas.ts @@ -14,7 +14,7 @@ import { getHasSkipped, getBiometricType, } from './BiometricRedux'; -import {getShouldPromptOnCheckError} from './utils'; +import {getShouldPromptOnCheckError, BIOMETRICS_LOG_KEY} from './utils'; export function* handleBiometricPrompt(): any { const biometric = yield select(getBiometricType); @@ -25,11 +25,16 @@ export function* handleBiometricPrompt(): any { if (success) { yield put(BiometricActionCreators.biometricPromptSuccess()); - yield call(WmTelemetry.logEvent, 'biometrics', 'entered_successfully', { - biometric, - }); + yield call( + WmTelemetry.logEvent, + BIOMETRICS_LOG_KEY, + 'entered_successfully', + { + biometric, + }, + ); } else { - yield call(WmTelemetry.logEvent, 'biometrics', 'entered_error', { + yield call(WmTelemetry.logEvent, BIOMETRICS_LOG_KEY, 'entered_error', { biometric, }); } @@ -42,7 +47,7 @@ export function* handleBiometricPrompt(): any { } export function* hanldeBiometricsUnavailable(error: string): any { - yield call(WmTelemetry.logEvent, 'biometrics', 'unavailable', {}); + yield call(WmTelemetry.logEvent, BIOMETRICS_LOG_KEY, 'unavailable', {}); yield call(logger.info, 'Biometric sensor unavailable', { message: error, }); @@ -64,7 +69,7 @@ export function* checkBiometricsAvailable(): any { if (available) { yield put(BiometricActionCreators.setBiometricType(biometryType)); - yield call(WmTelemetry.logEvent, 'biometrics', 'available', { + yield call(WmTelemetry.logEvent, BIOMETRICS_LOG_KEY, 'available', { biometric: biometryType, }); return true; --- src/biometrics/utils.ts @@ -49,3 +49,5 @@ export const getShouldPromptOnCheckError = (error?: string) => { } return false; }; + +export const BIOMETRICS_LOG_KEY = 'biometrics';
Adding constant for biometric log key
Adding constant for biometric log key
16a619c1180a71d8c0f466e82cf03f82448e61ff
--- package-lock.json @@ -12573,9 +12573,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/topstock-mini-app": { - "version": "1.7.1", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.7.1.tgz", - "integrity": "sha512-6Xlpfgz9RURCCqurjTRtLU1qivNzSrVrjHbu8H3SdonnSZY/FURNCmxn9PJPjgWBqdyIYNgAZV5yqHBYVzkHNQ==", + "version": "1.8.5", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.8.5.tgz", + "integrity": "sha512-ziz70WEtLnTXXW39a756/JelodHxxe6jrjMQsWJO8OFLFt2PGIJ+R+pd0JeOAHucLKT67ai9csSkFdnsKhxj9Q==", "peerDependencies": { "@react-native-firebase/app": "^15.1.1", "@react-native-firebase/crashlytics": "^15.1.1", @@ -40815,4 +40815,4 @@ } } } -} \ No newline at end of file +} --- package.json @@ -588,4 +588,4 @@ "pre-push": "run-p solidarity coverage" } } -} \ No newline at end of file +} --- patches/axios-cache-adapter+2.7.3.patch @@ -1,3 +1,17 @@ +diff --git a/node_modules/axios-cache-adapter/package.json b/node_modules/axios-cache-adapter/package.json +index 2add21f..715457d 100644 +--- a/node_modules/axios-cache-adapter/package.json ++++ b/node_modules/axios-cache-adapter/package.json +@@ -13,8 +13,7 @@ + "/src", + "/axios-cache-adapter.d.ts" + ], +- "main": "dist/cache.node.js", +- "browser": "dist/cache.js", ++ "main": "src/index.js", + "types": "axios-cache-adapter.d.ts", + "runkitExampleFilename": "examples/basic.js", + "keywords": [ diff --git a/node_modules/axios-cache-adapter/src/api.js b/node_modules/axios-cache-adapter/src/api.js index 0e13f5f..d77c268 100644 --- a/node_modules/axios-cache-adapter/src/api.js
fix: cache adapter patch did not include package json changes
fix: cache adapter patch did not include package json changes
cd1efbd4e1351af49ce47608895560dc42031a20
--- src/containers/ChatInput/index.tsx @@ -1,4 +1,5 @@ -import React, {useState} from 'react'; +import React, {useEffect, useState} from 'react'; +import {Keyboard} from 'react-native'; import {ThunkDispatch} from 'redux-thunk'; import {useDispatch, useSelector} from 'react-redux'; import { @@ -118,7 +119,35 @@ export const ChatInput = (props: { const {onSend, disabled = false} = props; const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const initialPadding = Platform.OS == 'ios' ? 8 : 34; + const [btmPadding, setBtmPadding] = useState(initialPadding); + useEffect(() => { + const keyboardDidShowListner = Keyboard.addListener( + 'keyboardDidShow', + keyboardDidShow, + ); + const keyboardDidHideListner = Keyboard.addListener( + 'keyboardDidHide', + keyboardDidHide, + ); + + return () => { + keyboardDidShowListner.remove(); + keyboardDidHideListner.remove(); + }; + }, []); + + const keyboardDidShow = () => { + const newPadding = 34; + setBtmPadding(newPadding); + }; + const keyboardDidHide = () => { + const newPadding = 8; + setBtmPadding(newPadding); + }; + const {bottom} = useSafeAreaInsets(); + const platformBottomPadding = Platform.OS === 'ios' ? btmPadding : bottom; const dispatch = useDispatch<ThunkDispatch<any, any, any>>(); const [text, setText] = useState(''); @@ -247,7 +276,7 @@ export const ChatInput = (props: { }; return ( - <View style={[styles.container, {paddingBottom: bottom}]}> + <View style={[styles.container, {paddingBottom: platformBottomPadding}]}> <ScrollView horizontal scrollEnabled={false} --- src/containers/ChatInput/index.tsx @@ -1,4 +1,5 @@ -import React, {useState} from 'react'; +import React, {useEffect, useState} from 'react'; +import {Keyboard} from 'react-native'; import {ThunkDispatch} from 'redux-thunk'; import {useDispatch, useSelector} from 'react-redux'; import { @@ -118,7 +119,35 @@ export const ChatInput = (props: { const {onSend, disabled = false} = props; const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const initialPadding = Platform.OS == 'ios' ? 8 : 34; + const [btmPadding, setBtmPadding] = useState(initialPadding); + useEffect(() => { + const keyboardDidShowListner = Keyboard.addListener( + 'keyboardDidShow', + keyboardDidShow, + ); + const keyboardDidHideListner = Keyboard.addListener( + 'keyboardDidHide', + keyboardDidHide, + ); + + return () => { + keyboardDidShowListner.remove(); + keyboardDidHideListner.remove(); + }; + }, []); + + const keyboardDidShow = () => { + const newPadding = 34; + setBtmPadding(newPadding); + }; + const keyboardDidHide = () => { + const newPadding = 8; + setBtmPadding(newPadding); + }; + const {bottom} = useSafeAreaInsets(); + const platformBottomPadding = Platform.OS === 'ios' ? btmPadding : bottom; const dispatch = useDispatch<ThunkDispatch<any, any, any>>(); const [text, setText] = useState(''); @@ -247,7 +276,7 @@ export const ChatInput = (props: { }; return ( - <View style={[styles.container, {paddingBottom: bottom}]}> + <View style={[styles.container, {paddingBottom: platformBottomPadding}]}> <ScrollView horizontal scrollEnabled={false}
added changes for ios padding issue from messages tab in My Team section
added changes for ios padding issue from messages tab in My Team section
d8ea5072dec369e7419446c867c0f225c1880218
--- targets/US/package.json @@ -152,7 +152,7 @@ "@walmart/shop-gnfr-mini-app": "1.0.137", "@walmart/sidekick-mini-app": "4.168.19", "@walmart/store-feature-orders": "1.27.9", - "@walmart/taskit-mini-app": "5.25.2", + "@walmart/taskit-mini-app": "5.26.5", "@walmart/time-clock-mini-app": "2.448.1", "@walmart/topstock-mini-app": "1.20.4", "@walmart/translator-mini-app": "1.4.2", --- yarn.lock @@ -7389,7 +7389,7 @@ __metadata: "@walmart/shop-gnfr-mini-app": "npm:1.0.137" "@walmart/sidekick-mini-app": "npm:4.168.19" "@walmart/store-feature-orders": "npm:1.27.9" - "@walmart/taskit-mini-app": "npm:5.25.2" + "@walmart/taskit-mini-app": "npm:5.26.5" "@walmart/time-clock-mini-app": "npm:2.448.1" "@walmart/topstock-mini-app": "npm:1.20.4" "@walmart/translator-mini-app": "npm:1.4.2" @@ -8340,12 +8340,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.25.2": - version: 5.25.2 - resolution: "@walmart/taskit-mini-app@npm:5.25.2" +"@walmart/taskit-mini-app@npm:5.26.5": + version: 5.26.5 + resolution: "@walmart/taskit-mini-app@npm:5.26.5" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/92bf0f9ef555a955242071df79671a507e46818473303588bece7489b9b6caf3c3722f4ba94f0ef856e7ffd588090d21cb7169da3543f9cca3ee7cf2f88ae975 + checksum: 10c0/c4f4fa5543f811a74657dd720705419a6518755e6898bca96a2abbb38c6cf0fa0ef44aa1fbcbaee2308f11f06a5aa467eb8f3642a481396c63fd3e743437a37a languageName: node linkType: hard
chore: bump taskit-mini-app@5.26.5
chore: bump taskit-mini-app@5.26.5
f6522e3b8c3aafdd447de4dc55e8e7604dce9c82
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.19.0", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.19.0.tgz", - "integrity": "sha512-oRR7/bgc8jwbiiFYflAS7fM+mVdmM/ozXWaVIkOEapJaL4cE2SsQPwYmBGjob4Ib2T+FnNkepgaz1QNYAp3IRQ==", + "version": "0.21.0", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.21.0.tgz", + "integrity": "sha512-2BpjegUnn8+c8SPGK13S5rFhU+0MSGe+2kjEpF6Rd/iXQB/KIveUHYPwljSMSm/AIcc5CRCDpa6VKIJgw1/hIg==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- 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.19.0", + "@walmart/ask-sam-mini-app": "0.21.0", "@walmart/config-components": "1.0.21", "@walmart/feedback-all-spark-miniapp": "0.0.50", "@walmart/functional-components": "1.0.27", @@ -223,4 +223,4 @@ "pre-push": "npm run coverage" } } -} \ No newline at end of file +}
Bumping ask sam for crash fix and item info integration
Bumping ask sam for crash fix and item info integration
3795c91650c7f0ea7c8f8ee0e5e8cd6fc887c560
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart", - "version": "1.34.3", + "version": "1.34.4", "main": "index.js", "private": true, "workspaces": [ @@ -108,7 +108,7 @@ "@walmart/emergency-mini-app": "1.32.5", "@walmart/exception-mini-app": "1.8.19", "@walmart/expo-config-plugins": "~0.5.3", - "@walmart/facilities-management-miniapp": "0.18.33", + "@walmart/facilities-management-miniapp": "0.18.36", "@walmart/feedback-all-spark-miniapp": "patch:@walmart/feedback-all-spark-miniapp@npm%3A0.9.75#~/.yarn/patches/@walmart-feedback-all-spark-miniapp-npm-0.9.75-733d2d347a.patch", "@walmart/financial-wellbeing-feature-app": "1.31.6", "@walmart/functional-components": "~6.3.28", @@ -143,7 +143,7 @@ "@walmart/react-native-cookies": "1.0.1", "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-logger": "1.38.1", - "@walmart/react-native-scanner-3.0": "0.15.10", + "@walmart/react-native-scanner-3.0": "0.15.14", "@walmart/react-native-shared-navigation": "~6.3.28", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.8.0", @@ -161,7 +161,7 @@ "@walmart/sidekick-mini-app": "4.231.0", "@walmart/store-feature-orders": "1.34.7", "@walmart/talent-preboarding-mini-app": "1.0.48", - "@walmart/taskit-mini-app": "5.42.41", + "@walmart/taskit-mini-app": "5.42.42", "@walmart/time-clock-mini-app": "3.19.6", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.27.1", --- yarn.lock @@ -7771,9 +7771,9 @@ __metadata: languageName: node linkType: hard -"@walmart/facilities-management-miniapp@npm:0.18.33": - version: 0.18.33 - resolution: "@walmart/facilities-management-miniapp@npm:0.18.33::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffacilities-management-miniapp%2F-%2F%40walmart%2Ffacilities-management-miniapp-0.18.33.tgz" +"@walmart/facilities-management-miniapp@npm:0.18.36": + version: 0.18.36 + resolution: "@walmart/facilities-management-miniapp@npm:0.18.36::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ffacilities-management-miniapp%2F-%2F%40walmart%2Ffacilities-management-miniapp-0.18.36.tgz" peerDependencies: expo: ~52.0.46 react: "*" @@ -7782,7 +7782,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/e6ce45c096da59ebfb3f53626b2ea1823d23a8c7e9d84da63ee9978a6fefa8e0a8a5718eaa194efc118ca4a174d9003baed00b9c641f7098b59dfa7025c04e68 + checksum: 10c0/24225fb7007dc8013cc83dfcd210b3ce88e3f1e7fb03d7b01638dd12a96acec56d976ac9edf75242720854a6ab3798525f4f21caab624c2788e09308d5748bd8 languageName: node linkType: hard @@ -8349,7 +8349,7 @@ __metadata: "@walmart/emergency-mini-app": "npm:1.32.5" "@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/facilities-management-miniapp": "npm:0.18.36" "@walmart/feedback-all-spark-miniapp": "patch:@walmart/feedback-all-spark-miniapp@npm%3A0.9.75#~/.yarn/patches/@walmart-feedback-all-spark-miniapp-npm-0.9.75-733d2d347a.patch" "@walmart/financial-wellbeing-feature-app": "npm:1.31.6" "@walmart/functional-components": "npm:~6.3.28" @@ -8384,7 +8384,7 @@ __metadata: "@walmart/react-native-cookies": "npm:1.0.1" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-logger": "npm:1.38.1" - "@walmart/react-native-scanner-3.0": "npm:0.15.10" + "@walmart/react-native-scanner-3.0": "npm:0.15.14" "@walmart/react-native-shared-navigation": "npm:~6.3.28" "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.8.0" @@ -8402,7 +8402,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.231.0" "@walmart/store-feature-orders": "npm:1.34.7" "@walmart/talent-preboarding-mini-app": "npm:1.0.48" - "@walmart/taskit-mini-app": "npm:5.42.41" + "@walmart/taskit-mini-app": "npm:5.42.42" "@walmart/time-clock-mini-app": "npm:3.19.6" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.27.1" @@ -8914,12 +8914,12 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-scanner-3.0@npm:0.15.10": - version: 0.15.10 - resolution: "@walmart/react-native-scanner-3.0@npm:0.15.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-scanner-3.0%2F-%2F%40walmart%2Freact-native-scanner-3.0-0.15.10.tgz" +"@walmart/react-native-scanner-3.0@npm:0.15.14": + version: 0.15.14 + resolution: "@walmart/react-native-scanner-3.0@npm:0.15.14::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-scanner-3.0%2F-%2F%40walmart%2Freact-native-scanner-3.0-0.15.14.tgz" peerDependencies: react-native: ">=0.47.1" - checksum: 10c0/f18ce0dab43e809691f5a87b138888c9d0d908d73bfc4705d23a5ba2565fd1e2eed4b56a7ff33fb0b5becf4155a02042a1e444b4c7c927894835c630c2fa6d00 + checksum: 10c0/b9cf7e88446d31df30b582f3bc836e142e131f231a0629b530f4cd2d24453261af2d3c4a4408c5d7da153d4971c27069b5cbcad4fb9374524f11fc23ca29d712 languageName: node linkType: hard @@ -9306,12 +9306,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.42.41": - version: 5.42.41 - resolution: "@walmart/taskit-mini-app@npm:5.42.41::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.41.tgz" +"@walmart/taskit-mini-app@npm:5.42.42": + version: 5.42.42 + resolution: "@walmart/taskit-mini-app@npm:5.42.42::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.42.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/fa5145175e4768ab9b8c24ffd790e10d8bdd5ad92f7ea3e3b4de61ea458decbfad528e46f446cb01b0331b0d5bc4452aacd59ccec7d418d49a20b122eaad907d + checksum: 10c0/48d3ca582d78cfe1bb6a049f6e47d5a057fb31783e370c8acce216d5c13f9fd6348a0aa8f5ea941358e7063ce7ac43060ec99b2726b19a0a3c3c64dbca1b52f6 languageName: node linkType: hard
feat: hotfix v1.34.4 release (#5013)
feat: hotfix v1.34.4 release (#5013) Co-authored-by: Vasanth g Bhat - v0b01yj <Vasanth.G.Bhat@walmart.com> Co-authored-by: Jesus D Leon Beristain - j0d0n6h <Jesus.Dleonberistain@walmart.com> Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>