commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
216d9b118dd36fd10c55374c4b25525449c4efc7
--- .yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch @@ -1,5 +1,5 @@ diff --git a/components/DrawerButton/index.js b/components/DrawerButton/index.js -index d41d2d015464cdc2e7842364ee4cd3e1f9e03b03..854cd694b50c5b830b9d6876601004535c1b32bc 100644 +index d41d2d015464cdc2e7842364ee4cd3e1f9e03b03..59292c34c570be37478467284a6c3419e0a11b78 100644 --- a/components/DrawerButton/index.js +++ b/components/DrawerButton/index.js @@ -1,53 +1,23 @@ @@ -25,10 +25,11 @@ index d41d2d015464cdc2e7842364ee4cd3e1f9e03b03..854cd694b50c5b830b9d687660100453 - lockDrawer: noop, - unlockDrawer: noop, - toggleDrawerLocked: noop, +-}); + lockDrawer: AllsparkNavigationClient.lockDrawer, + unlockDrawer: AllsparkNavigationClient.unlockDrawer, + toggleDrawerLocked: AllsparkNavigationClient.toggleDrawerLock, - }); ++ }); -export const DrawerButton = (props) => { - const { @@ -58,21 +59,18 @@ index d41d2d015464cdc2e7842364ee4cd3e1f9e03b03..854cd694b50c5b830b9d687660100453 - </TouchableOpacity> - ); -}; -- --DrawerButton.Provider = DrawerButtonContext.Provider; --DrawerButton.Context = DrawerButtonContext; +/** + * @deprecated use 'DrawerButton' from '@walmart/allspark-foundation/Navigation' instead + */ +export const DrawerButton = FoundationDrawerButton; -+ + +/** + * @deprecated Drawer button context is setup automatically. You should not need to use this. + */ -+ DrawerButton.Provider = DrawerButtonContext.Provider; -+ + DrawerButton.Provider = DrawerButtonContext.Provider; ++ +/** + * @deprecated If needing access to the drawer context use `useAllsparkDrawer` from '@walmart/allspark-foundation/Navigation' instead + */ -+ DrawerButton.Context = DrawerButtonContext; + DrawerButton.Context = DrawerButtonContext; \ No newline at end of file --- package.json @@ -110,7 +110,7 @@ "@walmart/gtp-shared-components": "2.2.1", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.11.1", - "@walmart/inbox-mini-app": "0.93.28", + "@walmart/inbox-mini-app": "0.94.4", "@walmart/iteminfo-mini-app": "7.12.1", "@walmart/learning-mini-app": "20.0.21", "@walmart/manager-approvals-miniapp": "0.2.4", @@ -147,7 +147,7 @@ "@walmart/taskit-mini-app": "2.81.15", "@walmart/time-clock-mini-app": "2.353.0", "@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch", "@walmart/welcomeme-mini-app": "0.90.3", "@walmart/wfm-ui": "0.8.7", "@walmart/wm-plus-mini-app": "0.12.20", @@ -522,7 +522,8 @@ "yargs": "^17.0.1", "zustand": "^4.3.9", "@stomp/stompjs": "^7.0.0", - "@react-native-community/art@npm:^1.2.0": "patch:@react-native-community/art@npm%3A1.2.0#~/.yarn/patches/@react-native-community-art-npm-1.2.0-1c93d63acc.patch" + "@react-native-community/art@npm:^1.2.0": "patch:@react-native-community/art@npm%3A1.2.0#~/.yarn/patches/@react-native-community-art-npm-1.2.0-1c93d63acc.patch", + "@walmart/ui-components@npm:^1.15.11": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch" }, "expo": { "autolinking": { --- yarn.lock @@ -6290,9 +6290,9 @@ __metadata: languageName: node linkType: hard -"@walmart/inbox-mini-app@npm:0.93.28": - version: 0.93.28 - resolution: "@walmart/inbox-mini-app@npm:0.93.28" +"@walmart/inbox-mini-app@npm:0.94.4": + version: 0.94.4 + resolution: "@walmart/inbox-mini-app@npm:0.94.4" dependencies: "@walmart/moment-walmart": "npm:^1.0.4" "@walmart/walmart-fiscal-week": "npm:^0.3.6" @@ -6305,7 +6305,7 @@ __metadata: lodash: ">=4.17.20" prop-types: 15.7.2 typescript: ^4.0.2 - checksum: 10c0/33103e55f976e145131d32b0a650572d0d6dcdfe5321a4cc1c2b7528b32f7fa802a27ce8eddcea7f716d4c6bd201fcde13e376b9b067d2bb7e599d98de0364f7 + checksum: 10c0/a3c43d2f144e5cf4b3fffeea0160c441d3f4428ebd26af86a99615bce44c40bcba25989c82a6b663b0d0323c33b0b1c4cf9fc42449a506a632bcf094e0773a19 languageName: node linkType: hard @@ -7248,10 +7248,11 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.15.11": - version: 1.15.11 - resolution: "@walmart/ui-components@npm:1.15.11" +"@walmart/ui-components@npm:1.15.14, @walmart/ui-components@npm:^1.15.11": + version: 1.15.14 + resolution: "@walmart/ui-components@npm:1.15.14" dependencies: + "@walmart/ui-components": "npm:^1.15.11" react-hook-form: "npm:^7.33.1" react-native-calendars: "npm:1.299.0" react-native-elements: "npm:^3.4.2" @@ -7265,28 +7266,7 @@ __metadata: react-native-modal: ^11.6.1 react-native-safe-area-context: ">=3.1.3" react-native-webview: ">=10.10.2" - checksum: 10c0/8eee0cf439f7315fe7116317b3812c24c6ece1fed5a261ccead05d54d40b998e23c95a2a2e3d177722d3c9a8891545f3af4a828da18817596c80ed51ce875a10 - languageName: node - linkType: hard - -"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch": - version: 1.15.11 - resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch::version=1.15.11&hash=d7dbd8" - dependencies: - react-hook-form: "npm:^7.33.1" - react-native-calendars: "npm:1.299.0" - react-native-elements: "npm:^3.4.2" - peerDependencies: - "@react-navigation/stack": ">=6.1.0" - "@walmart/allspark-utils": ^1.6.5 - "@walmart/gtp-shared-components": ^2.0.0 - javascript-time-ago: ">=2.3.4" - react-native-background-timer: ">=2.4.1" - react-native-hyperlink: ">=0.0.19" - react-native-modal: ^11.6.1 - react-native-safe-area-context: ">=3.1.3" - react-native-webview: ">=10.10.2" - checksum: 10c0/4c249366ad239600a219816fcab9c28a5f1d343bd6594e7c5038bc0adc696afd33de7b42f40bf65689803dc37f5ad479514c6d0b82fb53849f0754a53f693c04 + checksum: 10c0/a5a6e67da625790a7aadaffd725a7c38297d13e6173f873a4c56f631788adc98105b35593aef13861a9d149e6a223b30ef22dd7a2dc8af9c498a10c080acf7a7 languageName: node linkType: hard @@ -7750,7 +7730,7 @@ __metadata: "@walmart/gtp-shared-components": "npm:2.2.1" "@walmart/impersonation-mini-app": "npm:1.20.8" "@walmart/ims-print-services-ui": "npm:2.11.1" - "@walmart/inbox-mini-app": "npm:0.93.28" + "@walmart/inbox-mini-app": "npm:0.94.4" "@walmart/iteminfo-mini-app": "npm:7.12.1" "@walmart/learning-mini-app": "npm:20.0.21" "@walmart/manager-approvals-miniapp": "npm:0.2.4" @@ -7787,7 +7767,7 @@ __metadata: "@walmart/taskit-mini-app": "npm:2.81.15" "@walmart/time-clock-mini-app": "npm:2.353.0" "@walmart/topstock-mini-app": "patch:@walmart/topstock-mini-app@npm%3A1.9.7#~/.yarn/patches/@walmart-topstock-mini-app-npm-1.9.7-e6400c510e.patch" - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.11#~/.yarn/patches/@walmart-ui-components-npm-1.15.11-19ccf914c5.patch" + "@walmart/ui-components": "npm:1.15.14" "@walmart/welcomeme-mini-app": "npm:0.90.3" "@walmart/wfm-ui": "npm:0.8.7" "@walmart/wm-plus-mini-app": "npm:0.12.20"
inbox update
inbox update
f927494fe739809aa18d62e58d084dbe11a5efca
--- jest.config.js @@ -9,10 +9,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 18.2, + statements: 18.18, branches: 7.93, functions: 11.94, - lines: 18.4, + lines: 18.37, }, }, transformIgnorePatterns: [ --- jest.config.js @@ -9,10 +9,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 18.2, + statements: 18.18, branches: 7.93, functions: 11.94, - lines: 18.4, + lines: 18.37, }, }, transformIgnorePatterns: [
update jest config
update jest config
b0837952ee79d1c2ed74feb380eb7bb55ab013d0
--- __tests__/__mocks__/@walmart/allspark-foundation/HTTP.js @@ -1,5 +1,6 @@ const mockClient = { get: jest.fn(), + post: jest.fn(), }; module.exports = { AllsparkHttpClient: { --- __tests__/home/services/HomeApi/indexTest.ts @@ -1,4 +1,4 @@ -import {CommonHttpClient} from '@walmart/allspark-http-client'; +import {AllsparkHttpClient} from '@walmart/allspark-foundation/HTTP'; import { HomeApi, @@ -34,7 +34,7 @@ const kQueryGraphVariables = { teamId: 'Sup_0000053992', }; -describe('getFullUrlForRoute', () => { +xdescribe('getFullUrlForRoute', () => { it('returns expected result', () => { mockGetRouteConfig.mockReturnValueOnce(mockRouteConfig); const url = getFullUrlForRoute('anniversary'); @@ -58,14 +58,18 @@ describe('Routes', () => { test('getAnniversaryData', async () => { mockGetRouteConfig.mockReturnValueOnce(undefined); - await HomeApi.getAnniversaryData( - 'anniversaries/homescreen?storeNbr=100&domain=Store/club&userId=sam.s00100', - ); + await HomeApi.getAnniversaryData({ + siteId: '100', + domain: 'Store/club', + userId: 'sam.s00100', + timeZone: 'America/Chicago' + }); expect(BaseHomeApi.get).toHaveBeenCalledWith( - 'https://developer.api.us.stg.walmart.com/api-proxy/service/allspark/wcnp-anniversary/v1/anniversaries/homescreen?storeNbr=100&domain=Store/club&userId=sam.s00100', + 'https://developer.api.us.stg.walmart.com/api-proxy/service/allspark/wcnp-anniversary/v1/anniversaries/homescreen?storeNbr=100&domain=Store/club&userId=sam.s00100&siteTimeZone=America/Chicago', { - analytics: { - key: 'home_anniversary', + cache: { + ttl: 24 * 60 * 60000, + interpretHeader: true, }, }, ); @@ -131,7 +135,7 @@ describe('Routes', () => { describe('fetchCelebrationData', () => { beforeEach(jest.clearAllMocks); it('should return proper data', async () => { - CommonHttpClient.clone().get.mockResolvedValue({ + AllsparkHttpClient.createFeatureClient('home', {timeout: 1000}).get.mockResolvedValueOnce({ ok: true, data: 'Valid result', }); @@ -139,7 +143,7 @@ describe('fetchCelebrationData', () => { expect(result).toEqual('Valid result'); }); it('should throw error when underlying APIs fail', async () => { - CommonHttpClient.clone().get.mockResolvedValue({ + AllsparkHttpClient.createFeatureClient('home', {timeout: 10000}).get.mockResolvedValueOnce({ ok: false, originalError: 'Not a valid result', }); @@ -156,7 +160,7 @@ describe('fetchTeamClockStatusData', () => { beforeEach(jest.clearAllMocks); // jest.useFakeTimers('legacy'); it('should return proper data', async () => { - CommonHttpClient.clone().post.mockResolvedValue({ + AllsparkHttpClient.createFeatureClient('home', {timeout:100}).post.mockResolvedValueOnce({ ok: true, data: 'Valid result', }); @@ -164,11 +168,10 @@ describe('fetchTeamClockStatusData', () => { 'graphQlValidQuery', kQueryGraphVariables, ); - console.log('result', result); expect(result).toEqual('Valid result'); }); it('should throw error when underlying APIs fail', async () => { - CommonHttpClient.clone().post.mockResolvedValue({ + AllsparkHttpClient.createFeatureClient('home', {timeout:1000}).post.mockResolvedValueOnce({ ok: false, originalError: 'Not a valid result', }); @@ -184,7 +187,7 @@ describe('fetchTeamClockStatusData', () => { describe('fetchStoreClockStatusData', () => { beforeEach(jest.clearAllMocks); it('should return proper data', async () => { - CommonHttpClient.clone().post.mockResolvedValue({ + AllsparkHttpClient.createFeatureClient('home', {timeout: 10000}).post.mockResolvedValue({ ok: true, data: 'Valid result', }); @@ -195,7 +198,7 @@ describe('fetchStoreClockStatusData', () => { expect(result).toEqual('Valid result'); }); it('should throw error when underlying APIs fail', async () => { - CommonHttpClient.clone().post.mockResolvedValue({ + AllsparkHttpClient.createFeatureClient('home', {timeout: 3000}).post.mockResolvedValueOnce({ ok: false, originalError: 'Not a valid result', });
add http mock
add http mock
b91c81111ca3b617b937d9f79bfd26876e5633f7
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -137,6 +137,9 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` <Screen name="PttVoiceMessaging" /> + <Screen + name="PttTexting" + /> <Screen component="WhatsNewModal" name="WhatsNewModal" @@ -292,6 +295,9 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] <Screen name="PttVoiceMessaging" /> + <Screen + name="PttTexting" + /> <Screen component="WhatsNewModal" name="WhatsNewModal"
updating snapshots
updating snapshots
9673dd78ea989acf81ff766c6ec9388962640c3e
--- package-lock.json @@ -4458,9 +4458,9 @@ "integrity": "sha512-5VXiKOX6nl2OPte+FFWxAZbWi+aCW0o7rbzJldiMN7XewyTIxsyBMwWlUW5Y29WYa4ZaaVstjincL76EW5v2dA==" }, "@walmart/push-to-talk-mini-app": { - "version": "1.7.8", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.7.8.tgz", - "integrity": "sha512-D1kPl5E55gyliP1j76X0aa3eEmHcu6J1icJRKYnCx7YnDygZKW6JJzhX6IQgk++MVUdjgFNZETmoCNwvF01CDQ==" + "version": "1.7.9", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.7.9.tgz", + "integrity": "sha512-j+uNXNvltUT6iR9FIl5Vqu3MAIdhZC6Vlxxe1U4Ks5Y+7SLVlj7ijHYLAMsl8lvFphN1dC/IftNcNKMZdswuNw==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", @@ -6365,7 +6365,7 @@ "isarray": { "version": "1.0.0", "resolved": "https://npme.walmart.com/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, "process-nextick-args": { "version": "2.0.1", @@ -7180,7 +7180,7 @@ "es6-promisify": { "version": "5.0.0", "resolved": "https://npme.walmart.com/es6-promisify/-/es6-promisify-5.0.0.tgz", - "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", + "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", "requires": { "es6-promise": "^4.0.3" } @@ -8525,7 +8525,7 @@ "github-from-package": { "version": "0.0.0", "resolved": "https://npme.walmart.com/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==" + "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=" }, "glob": { "version": "7.1.6", @@ -9116,7 +9116,7 @@ "http-basic": { "version": "2.5.1", "resolved": "https://npme.walmart.com/http-basic/-/http-basic-2.5.1.tgz", - "integrity": "sha512-q/qOkgjcnZ90v0wSaMwamhfAhIf6lhOsH0ehHFnQHAt1lA9MedSnmqEEnh8bq0njTBAK3IsmS2gEuXryfWCDkw==", + "integrity": "sha1-jORHvbW2xXf4pj4/p4BW7Eu02/s=", "requires": { "caseless": "~0.11.0", "concat-stream": "^1.4.6", @@ -9126,7 +9126,7 @@ "caseless": { "version": "0.11.0", "resolved": "https://npme.walmart.com/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha512-ODLXH644w9C2fMPAm7bMDQ3GRvipZWZfKc+8As6hIadRIelE0n0xZuN38NS6kiK3KPEVrpymmQD8bvncAHWQkQ==" + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=" } } }, @@ -9173,7 +9173,7 @@ "http-response-object": { "version": "1.1.0", "resolved": "https://npme.walmart.com/http-response-object/-/http-response-object-1.1.0.tgz", - "integrity": "sha512-adERueQxEMtIfGk4ee/9CG7AGUjS09OyHeKrubTjmHUsEVXesrGlZLWYnCL8fajPZIX9H4NDnXyyzBPrF078sA==" + "integrity": "sha1-p8TnWq6C87tJBOT0P2FWc7TVGMM=" }, "http-signature": { "version": "1.2.0", @@ -17692,7 +17692,7 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://npme.walmart.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==" + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" } } }, @@ -18930,7 +18930,7 @@ "requires-port": { "version": "1.0.0", "resolved": "https://npme.walmart.com/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" }, "reselect": { "version": "4.1.5", @@ -19718,7 +19718,7 @@ "stream-counter": { "version": "1.0.0", "resolved": "https://npme.walmart.com/stream-counter/-/stream-counter-1.0.0.tgz", - "integrity": "sha512-4nfHc1016AhNOs0CFDR3S0FNeqnYbT7xZ408coajcx2Msj8malNNjvFHzWYIfIAXNK5i0eaKIVfgBYPOkyOTIg==" + "integrity": "sha1-kc8lac5NxQYf6816yyY5SloRR1E=" }, "strict-uri-encode": { "version": "2.0.0", @@ -19930,7 +19930,7 @@ "sync-request": { "version": "3.0.1", "resolved": "https://npme.walmart.com/sync-request/-/sync-request-3.0.1.tgz", - "integrity": "sha512-bnOSypECs6aB9ScWHcJAkS9z55jOhO3tdLefLfJ+J58vC2HCi5tjxmFMxLv0RxvuAFFQ/G4BupVehqpAlbi+3Q==", + "integrity": "sha1-yqEjWq+Im6UBB2oYNMQ2gwqC+3M=", "requires": { "concat-stream": "^1.4.7", "http-response-object": "^1.0.1", @@ -20060,7 +20060,7 @@ "then-request": { "version": "2.2.0", "resolved": "https://npme.walmart.com/then-request/-/then-request-2.2.0.tgz", - "integrity": "sha512-YM/Fho1bQ3JFX9dgFQsBswc3aSTePXvtNHl3aXJTZNz/444yC86EVJR92aWMRNA0O9X0UfmojyCTUcT8Lbo5yA==", + "integrity": "sha1-ZnizL6DKIY/laZgbvYhxtZQGDYE=", "requires": { "caseless": "~0.11.0", "concat-stream": "^1.4.7", @@ -20073,7 +20073,7 @@ "caseless": { "version": "0.11.0", "resolved": "https://npme.walmart.com/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha512-ODLXH644w9C2fMPAm7bMDQ3GRvipZWZfKc+8As6hIadRIelE0n0xZuN38NS6kiK3KPEVrpymmQD8bvncAHWQkQ==" + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=" }, "promise": { "version": "7.3.1", @@ -20260,7 +20260,7 @@ "typedarray": { "version": "0.0.6", "resolved": "https://npme.walmart.com/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" }, "typedarray-to-buffer": { "version": "3.1.5", --- package.json @@ -91,7 +91,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.121.0", "@walmart/price-changes-mini-app": "1.2.3", - "@walmart/push-to-talk-mini-app": "1.7.8", + "@walmart/push-to-talk-mini-app": "1.7.9", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.29.0", "@walmart/react-native-shared-navigation": "^0.4.0",
ptt package version update
ptt package version update
99c2612b629df710e063246851a83e42d985fbd5
--- android/app/src/main/assets/fonts/PTMono-Regular.ttf Binary files /dev/null and b/android/app/src/main/assets/fonts/PTMono-Regular.ttf differ --- ios/AllSpark.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + 8081353125433D1300844649 /* PTMono-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8081353025433D1300844649 /* PTMono-Regular.ttf */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 9E804023FDAC916A0EFCF0C6 /* Pods_AllSpark.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E097B1147C859039006A1F7A /* Pods_AllSpark.framework */; }; BDCF88A12CAE48C7FD327C87 /* Pods_AllSpark_AllSparkTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54E3D77AC43BD66CB889CBF7 /* Pods_AllSpark_AllSparkTests.framework */; }; @@ -55,6 +56,7 @@ 51D1759CCB0D27E13D8965DB /* Pods-AllSpark.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark.release.xcconfig"; path = "Target Support Files/Pods-AllSpark/Pods-AllSpark.release.xcconfig"; sourceTree = "<group>"; }; 54E3D77AC43BD66CB889CBF7 /* Pods_AllSpark_AllSparkTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AllSpark_AllSparkTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 6D6A0AE9B4A248FD46D3196F /* Pods-AllSpark-AllSparkTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark-AllSparkTests.debug.xcconfig"; path = "Target Support Files/Pods-AllSpark-AllSparkTests/Pods-AllSpark-AllSparkTests.debug.xcconfig"; sourceTree = "<group>"; }; + 8081353025433D1300844649 /* PTMono-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "PTMono-Regular.ttf"; sourceTree = "<group>"; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = AllSpark/LaunchScreen.storyboard; sourceTree = "<group>"; }; DA0C825066452BCEE939AB65 /* Pods-AllSpark-AllSparkTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark-AllSparkTests.release.xcconfig"; path = "Target Support Files/Pods-AllSpark-AllSparkTests/Pods-AllSpark-AllSparkTests.release.xcconfig"; sourceTree = "<group>"; }; E097B1147C859039006A1F7A /* Pods_AllSpark.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AllSpark.framework; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -202,6 +204,7 @@ F013540424ED83A70094D840 /* Bogle-Medium.otf */, F013540524ED83A70094D840 /* Bogle-MediumItalic.otf */, F013540824ED83A80094D840 /* Bogle-Regular.otf */, + 8081353025433D1300844649 /* PTMono-Regular.ttf */, F013540624ED83A70094D840 /* Bogle-RegularItalic.otf */, F01353FD24ED83A70094D840 /* Bogle-Thin.otf */, F013540724ED83A80094D840 /* Bogle-ThinItalic.otf */, @@ -327,6 +330,7 @@ F013540924ED83A80094D840 /* Bogle-Thin.otf in Resources */, F013541224ED83A80094D840 /* Bogle-RegularItalic.otf in Resources */, F0F40C0D24DDA8F00001739F /* GoogleService-Info.plist in Resources */, + 8081353125433D1300844649 /* PTMono-Regular.ttf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; --- ios/AllSpark/Info.plist @@ -85,6 +85,7 @@ <string>MaterialIcons.ttf</string> <string>MaterialCommunityIcons.ttf</string> <string>icomoon.ttf</string> + <string>PTMono-Regular.ttf</string> </array> <key>UIBackgroundModes</key> <array> --- ios/PTMono-Regular.ttf Binary files /dev/null and b/ios/PTMono-Regular.ttf differ --- package.json @@ -39,7 +39,7 @@ "@types/lodash": "^4.14.159", "@walmart/allspark-home-mini-app": "0.0.11", "@walmart/allspark-me-mini-app": "0.0.3", - "@walmart/ask-sam-mini-app": "^0.6.4", + "@walmart/ask-sam-mini-app": "^0.6.6", "@walmart/config-components": "^1.0.4", "@walmart/functional-components": "^1.0.21", "@walmart/gtp-shared-components": "^0.2.2",
Added font and incremented ask sam version
Added font and incremented ask sam version
173ebfd6316cadb2342606694c00030fabbbffe8
--- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.28.1-alpha.0", + "version": "6.28.0", "npmClient": "yarn", "changelogPreset": "angular", "command": {
chore: bump package version for prerelease publish
chore: bump package version for prerelease publish
f492562b75506314452e4a202526ade014fa9fb0
--- packages/allspark-foundation/src/Feature/README.md @@ -191,7 +191,7 @@ MyFeature.createModule({ Creates an `AllsparkHttpClient` instance that is scoped to the feature. -See [Allspark Http Client: Feature Configuration](../HttpClient/README.md#feature-configuration) and [Allspark Http Client: Feature Client API](../HttpClient/README.md#feature-client-api) for configuration and usage details respectively. +See [Allspark Http Client: Feature Configuration](../HTTP/README.md#feature-configuration) and [Allspark Http Client: Feature Client API](../HTTP/README.md#feature-client-api) for configuration and usage details respectively. ```typescript const MyFeatureHttpClient = MyFeature.createHttpClient({ @@ -207,9 +207,7 @@ MyFeatureHttpClient.useRequest({method: 'post', url: '/some/path', data: 'some d Creates an `AllsparkGraphqlClient` instance that is scoped to the feature. -See [Allspark Http Client: Feature Configuration](../HttpClient/README.md#feature-configuration) and [Allspark Http Client: Feature Client API](../HttpClient/README.md#feature-client-api) for configuration and usage details respectively. - -See [AllsparkGraphqlClient: Feature Client Config](../GraphqlClient/README.md#feature-client-config) for configuration details and [AllsparkGraphqlClient: API](../GraphqlClient/README.md#api) for usage details. +See [AllsparkGraphqlClient: Feature Client Config](../GraphQL/README.md#feature-client-config) for configuration details and [AllsparkGraphqlClient: API](../GraphQL/README.md#api) for usage details respectively. ```typescript const MyFeatureGraphqlClient = MyFeature.createGraphQLClient({
Update README.md
Update README.md Readme fix
e59586c90037e5d45080e141c845ff2921782dbe
--- package.json @@ -63,7 +63,7 @@ "@redux-saga/testing-utils": "^1.1.3", "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", - "@walmart/ItemInfo": "0.1.129", + "@walmart/ItemInfo": "0.1.132", "@walmart/allspark-health-survey-mini-app": "0.0.35", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0",
iteminfo new version 132
iteminfo new version 132
21121c5edb96d9a28870f15f758037f80084296a
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 44 + versionCode 45 versionName "1.0.2" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>44</string> + <string>45</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>44</string> + <string>45</string> </dict> </plist>
Incrementing build number
Incrementing build number
aa63c57a4c38497f4aa3e5a045af8f33575fec14
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.31.0", + "version": "2.32.0", "main": "dist/index.js", "files": [ "dist" @@ -85,7 +85,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.27.4", - "@walmart/allspark-foundation-hub": "1.3.3", + "@walmart/allspark-foundation-hub": "1.3.4", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", --- yarn.lock @@ -6078,9 +6078,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.3.3": - version: 1.3.3 - resolution: "@walmart/allspark-foundation-hub@npm:1.3.3" +"@walmart/allspark-foundation-hub@npm:1.3.4": + version: 1.3.4 + resolution: "@walmart/allspark-foundation-hub@npm:1.3.4" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6096,7 +6096,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/7030af7992a94ee2d00903434fb86c96b487ed9e89351b04194dab2ce6e81d7ec3874df68277a2cb777a91e42909710427461c214da492d58be58c407c6c2a5d + checksum: 10c0/bf649117336f52b0118eb2de9e6c833a7bd0f33aa27fcf5f540f6584847416fcb75d6ca69309519b0dafc32e70d84cc1911d58400859617314741a9c45eeb974 languageName: node linkType: hard @@ -6547,7 +6547,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.27.4" - "@walmart/allspark-foundation-hub": "npm:1.3.3" + "@walmart/allspark-foundation-hub": "npm:1.3.4" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0"
Update roster mini app version
Update roster mini app version
5ed99785d555761cff7c05aad39537100db7eb34
--- targets/US/package.json @@ -150,7 +150,7 @@ "@walmart/taskit-mini-app": "4.25.8", "@walmart/time-clock-mini-app": "2.419.0", "@walmart/topstock-mini-app": "1.17.11", - "@walmart/translator-mini-app": "1.3.3", + "@walmart/translator-mini-app": "1.3.4", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.96.0", --- yarn.lock @@ -7066,7 +7066,7 @@ __metadata: "@walmart/taskit-mini-app": "npm:4.25.8" "@walmart/time-clock-mini-app": "npm:2.419.0" "@walmart/topstock-mini-app": "npm:1.17.11" - "@walmart/translator-mini-app": "npm:1.3.3" + "@walmart/translator-mini-app": "npm:1.3.4" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.96.0" @@ -8090,9 +8090,9 @@ __metadata: languageName: node linkType: hard -"@walmart/translator-mini-app@npm:1.3.3": - version: 1.3.3 - resolution: "@walmart/translator-mini-app@npm:1.3.3" +"@walmart/translator-mini-app@npm:1.3.4": + version: 1.3.4 + resolution: "@walmart/translator-mini-app@npm:1.3.4" peerDependencies: "@react-native-async-storage/async-storage": ^2.0.0 "@react-native-clipboard/clipboard": ^1.14.2 @@ -8107,7 +8107,7 @@ __metadata: react-native-svg: ">=14.0.0" react-native-wm-voice-text: ^1.0.4 uuid: ">=3.0.0" - checksum: 10c0/f8735299d9a00bcc92f1c2bdb513e3cd66116e1583bd4262727ea30f8e09341a7a56a02ae9e8a8a84edd98bf03db0d8b977d98e7980e554f73f57e886239d7a0 + checksum: 10c0/55816804a0647b1d119d4df2af036e7b96339233cfd82439198a788c648515c0a0685f6d33e99c1379649e2c0c0a0ed4db28c76da449fa6c9eb93f9350b18354 languageName: node linkType: hard
version bump
version bump
d39468b8d3df92bb68e9362625946ab57661ebfb
--- __tests__/__mocks__/@walmart/push-to-talk-mini-app.js @@ -18,6 +18,7 @@ module.exports = { Hooks: { useVMBadgesCount: jest.fn(() => [0]), useTextMessages: jest.fn(), + useTextBadgesCount: jest.fn(() => [0]), }, Providers: { ConversationProvider: 'ConversationProvider', --- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx @@ -22,6 +22,7 @@ jest.mock('@walmart/push-to-talk-mini-app', () => ({ PushToTalkMiniApp: 'PushToTalkMiniApp', Hooks: { useVMBadgesCount: jest.fn((_) => [1]), + useTextBadgesCount: jest.fn((_) => [1]), }, })); @@ -259,6 +260,7 @@ test('TabListeners', () => { describe('MainTabsNav', () => { const config = {enabled: true}; (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]); + (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([0]); mockUseSelector.mockReturnValueOnce(0); // inboxCount Badge mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge mockUseSelector.mockReturnValueOnce({ @@ -277,6 +279,7 @@ describe('MainTabsNav', () => { it('matches snapshot with badges', () => { (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([2]); + (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([2]); mockUseSelector.mockReturnValueOnce(2); // inboxCount Badge mockUseSelector.mockReturnValueOnce({highPriorityCount: 2}); // taskBadge mockUseSelector.mockReturnValueOnce({ @@ -293,6 +296,7 @@ describe('MainTabsNav', () => { it('matches snapshot with inbox shown and badges', () => { (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([2]); + (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([2]); mockUseSelector.mockReturnValueOnce(2); mockUseSelector.mockReturnValueOnce({highPriorityCount: 2}); // taskBadge mockUseSelector.mockReturnValueOnce({ @@ -310,6 +314,7 @@ describe('MainTabsNav', () => { it('matches snapshot when disabled from config', () => { const disabledConfig = {enabled: false}; (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]); + (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([0]); mockUseSelector.mockReturnValueOnce(0); mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge mockUseSelector.mockReturnValueOnce({ @@ -326,6 +331,7 @@ describe('MainTabsNav', () => { it('on click of askSam navigate to be called', () => { const enableConfig = {enabled: true}; (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]); + (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([0]); (useBadgesCount as jest.Mock).mockReturnValueOnce([0]); mockUseSelector.mockReturnValueOnce(0); mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap @@ -65,7 +65,7 @@ exports[`MainTabsNav matches snapshot with badges 1`] = ` name="myTeam" options={ Object { - "tabBarBadge": 2, + "tabBarBadge": 4, "tabBarIcon": [Function], } } @@ -133,7 +133,7 @@ exports[`MainTabsNav matches snapshot with inbox shown and badges 1`] = ` name="myTeam" options={ Object { - "tabBarBadge": 2, + "tabBarBadge": 4, "tabBarIcon": [Function], } } --- src/navigation/AssociateHallwayNav/Tabs/index.tsx @@ -149,12 +149,14 @@ const MainTabs = createBottomTabNavigator(); export const MainTabsNav = () => { const [t] = useTranslation(); const {bottom} = useSafeAreaInsets(); - const [pttBadgeCount] = Hooks.useVMBadgesCount(0); + const [pttVoiceBadgeCount] = Hooks.useVMBadgesCount(0); + const [pttTextBadgeCount] = Hooks.useTextBadgesCount(0); const badgesCount = useSelector(getInboxBadgeCount); const {highPriorityCount} = useSelector(getTaskBadge); const configMap = useSelector(getBottomNavConfigMap); const {home, me, askSam, myTeam, taskit} = configMap; + const pttBadgeCount = pttVoiceBadgeCount + pttTextBadgeCount; return ( <MainTabs.Navigator
feat: updated texting badges (SMDV-2081)
feat: updated texting badges (SMDV-2081)
7cbb2284ff70d31d163c504d9afb849b64f4c20a
--- packages/expo-config-plugins/src/withiOSStripBinarySymbols.ts @@ -3,7 +3,23 @@ import { ConfigPlugin } from '@expo/config-plugins'; -const withiOSStripBinarySymbols: ConfigPlugin = (config) => { +// Define options interface for the plugin parameters +interface StripBinarySymbolsProps { + embedFrameworksScriptPath: string; + stripBinaryScriptPath: string; +} + +const withiOSStripBinarySymbols: ConfigPlugin<StripBinarySymbolsProps> = ( + config, + props +) => { + // Extract paths from props + const { embedFrameworksScriptPath, stripBinaryScriptPath } = props; + + if(!embedFrameworksScriptPath || !stripBinaryScriptPath) { + throw new Error('Both embedFrameworksScriptPath and stripBinaryScriptPath must be provided'); + } + return withXcodeProject(config, (config) => { const xcodeProject = config.modResults; @@ -17,8 +33,8 @@ const withiOSStripBinarySymbols: ConfigPlugin = (config) => { shellPath: '/bin/sh', shellScript: ` # Define paths - FRAMEWORKS_SCRIPT_PATH="\${PODS_ROOT}/Target Support Files/Pods-MyWalmart/Pods-MyWalmart-frameworks.sh" - STRIP_BINARY_PATH="\${PROJECT_DIR}/BuildSupport/strip-binary-symbols.sh" + FRAMEWORKS_SCRIPT_PATH="${embedFrameworksScriptPath}" + STRIP_BINARY_PATH="${stripBinaryScriptPath}" # Check if the strip-binary-symbols.sh reference already exists if grep -q "$STRIP_BINARY_PATH" "$FRAMEWORKS_SCRIPT_PATH"; then @@ -26,7 +42,7 @@ const withiOSStripBinarySymbols: ConfigPlugin = (config) => { exit 0 fi - # Append the code to the end of the file + # Append the code to the end of the file echo "source $STRIP_BINARY_PATH" >> "$FRAMEWORKS_SCRIPT_PATH" echo "Added strip-binary-symbols.sh reference to $FRAMEWORKS_SCRIPT_PATH"
feat(plugin): allspark-6539 code refactor
feat(plugin): allspark-6539 code refactor
786cfe0f0a76cb86acb2056e8d363c6c6c158cc7
--- package-lock.json @@ -3236,6 +3236,11 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "@livingdesign/tokens": { + "version": "0.41.0", + "resolved": "https://npme.walmart.com/@livingdesign/tokens/-/tokens-0.41.0.tgz", + "integrity": "sha512-lUfen6iHPD28xJTew6Hc/N8LsG8Bwww2w7OG6Ug3rhDMncFqrRXcKMD5qws5xWgyhdNqmPQPq3mRyrTfMBH8hA==" + }, "@microsoft/recognizers-text-data-types-timex-expression": { "version": "1.3.0", "resolved": "https://npme.walmart.com/@microsoft/recognizers-text-data-types-timex-expression/-/recognizers-text-data-types-timex-expression-1.3.0.tgz", @@ -3573,9 +3578,9 @@ "integrity": "sha512-yZ9fu3ckZ55t3nrtDnZ5ju60dzMuu24+xhrFHMnYBfc2jeUekwB6R3qXt9rurguT89XHCUOXWUtHvzZf+T14hA==" }, "@react-native-picker/picker": { - "version": "1.16.8", - "resolved": "https://npme.walmart.com/@react-native-picker/picker/-/picker-1.16.8.tgz", - "integrity": "sha512-pacdQDX6V6EmjF+HoiIh6u++qx4mTK0WnhgUHRc01B+Qt5eoeUwseBqmqfTSXTx/aHDEd6PiIw7UGvKgFoqgFQ==" + "version": "2.4.1", + "resolved": "https://npme.walmart.com/@react-native-picker/picker/-/picker-2.4.1.tgz", + "integrity": "sha512-1XWy3IQgwr7MWd30KdY1iUh2gQZD+JiotN1ifj/ptFUYKon/0UFwngKQaWCO/CP/FdLl20/huSSLwKedYrdMMA==" }, "@react-native/assets": { "version": "1.0.0", @@ -4353,12 +4358,11 @@ } }, "@walmart/gtp-shared-components": { - "version": "1.2.0", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.2.0.tgz", - "integrity": "sha1-uZ6zL5R12W20AFyA5eFskWpu0Iw=", + "version": "1.8.4", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.8.4.tgz", + "integrity": "sha512-YTHs+/mciUjXt8OUqB6hOsOcMPiAf9zAQvoasjVEni7ClmmmppukxTzRUpCQlz1wINjayxrwbdtwNqSQ8BGN8w==", "requires": { - "@react-native-community/datetimepicker": "^3.0.8", - "@react-native-community/picker": "^1.6.5", + "@livingdesign/tokens": "^0.41.0", "lodash": "^4.17.15", "moment": "^2.27.0" } @@ -4621,6 +4625,11 @@ "wfm-allspark-data-library": "^0.0.19" }, "dependencies": { + "@react-native-picker/picker": { + "version": "1.16.8", + "resolved": "https://npme.walmart.com/@react-native-picker/picker/-/picker-1.16.8.tgz", + "integrity": "sha512-pacdQDX6V6EmjF+HoiIh6u++qx4mTK0WnhgUHRc01B+Qt5eoeUwseBqmqfTSXTx/aHDEd6PiIw7UGvKgFoqgFQ==" + }, "@walmart/gta-react-native-calendars": { "version": "0.0.16", "resolved": "https://npme.walmart.com/@walmart/gta-react-native-calendars/-/gta-react-native-calendars-0.0.16.tgz", --- package.json @@ -62,6 +62,7 @@ "@react-native-firebase/firestore": "14.11.0", "@react-native-firebase/perf": "14.11.0", "@react-native-firebase/remote-config": "14.11.0", + "@react-native-picker/picker": "^2.4.0", "@react-navigation/bottom-tabs": "^6.2.0", "@react-navigation/drawer": "^6.3.0", "@react-navigation/material-top-tabs": "^6.1.0", @@ -81,7 +82,7 @@ "@walmart/feedback-all-spark-miniapp": "0.3.8", "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", - "@walmart/gtp-shared-components": "1.2.0", + "@walmart/gtp-shared-components": "1.8.0", "@walmart/impersonation-mini-app": "1.1.0", "@walmart/ims-print-services-ui": "0.1.34", "@walmart/inbox-mini-app": "0.37.0", @@ -254,7 +255,7 @@ } }, "transformIgnorePatterns": [ - "<rootDir>/node_modules/(?!(react-native|@walmart/gtp-shared-components|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|jsencrypt|@react-native)/)" + "<rootDir>/node_modules/(?!(react-native|@walmart/gtp-shared-components|@livingdesign|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|jsencrypt|@react-native)/)" ], "moduleNameMapper": { "@walmart/react-native-logger/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/react-native-logger.js", --- src/core/AllsparkTheme.ts @@ -5,14 +5,14 @@ import colors from '@walmart/gtp-shared-components/dist/theme/colors.json'; // Having a defined height was the issue. export const AllsparkTheme = { buttons: { - primary: { - default: { - text: { - ...buttonTheme.buttons.primary.default.text, - height: undefined, - }, - }, - }, + // primary: { + // default: { + // text: { + // ...buttonTheme.buttons.primary.default.text, + // height: undefined, + // }, + // }, + // }, primarySmall: { default: { text: { @@ -21,26 +21,26 @@ export const AllsparkTheme = { }, }, }, - secondary: { - default: { - text: { - ...buttonTheme.buttons.secondary.default.text, - height: undefined, - }, - }, - pressed: { - text: { - ...buttonTheme.buttons.secondary.pressed.text, - height: undefined, - }, - }, - disabled: { - text: { - ...buttonTheme.buttons.secondary.disabled.text, - height: undefined, - }, - }, - }, + // secondary: { + // default: { + // text: { + // ...buttonTheme.buttons.secondary.default.text, + // height: undefined, + // }, + // }, + // pressed: { + // text: { + // ...buttonTheme.buttons.secondary.pressed.text, + // height: undefined, + // }, + // }, + // disabled: { + // text: { + // ...buttonTheme.buttons.secondary.disabled.text, + // height: undefined, + // }, + // }, + // }, secondarySmall: { default: { text: {
bumping gtp library version
bumping gtp library version
850c37085d108ab8ca33eba62c0be1cc4cda4900
--- .looper.yml @@ -27,7 +27,8 @@ branches: - spec: main triggers: - push: - call: publishFromChanges + name: Publish Changed and Branch Checks + call: mainPush skipAuthor: - jenkinspan - svc-looper @@ -77,6 +78,10 @@ flows: - (name Coverage) yarn run coverage - call: sonar-branch + mainPush: + - call: publishFromChanges + - call: branch + push: - call: publishFromChanges
chore: call branch on main to run sonar checks (#396)
chore: call branch on main to run sonar checks (#396) * chore: call branch on main to run sonar checks * chore: call branch before publish from changes * chore: streamline call * chore: move skipauthor
3760d9ea5495707b42c234647a4cc18293adb525
--- package-lock.json @@ -4331,9 +4331,9 @@ } }, "@walmart/payrollsolution_miniapp": { - "version": "0.67.0", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.67.0.tgz", - "integrity": "sha512-CjwX3BO/z6YKm/G6eXeLkvTqRXmNa/rpAXF04MEpz7LWt+HbnnwT3HrcWJA2UJPxpQmsujgKju8xYOsYcXUWUQ==" + "version": "0.71.0", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.71.0.tgz", + "integrity": "sha512-teV6QTg80+vZ8vzKT4bvgeEEm7J3vmu2RRpYsTTCsZ2aWnrtngoSimrhQ9ao5au0scqhwMWKB143LClol/zfRg==" }, "@walmart/push-to-talk-mini-app": { "version": "0.5.39", @@ -4545,9 +4545,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.32.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.32.0.tgz", - "integrity": "sha512-P/FKNsJ9IZ63ICEYi1I600LgaLHjvPV5BE5drf+y6djMnwzshej3h+tUk8jUrziu/cAhsO+ikgcBpdDWUhEDtA==" + "version": "0.33.0", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.33.0.tgz", + "integrity": "sha512-zd1UvDfaydjiGAagAVSecxFyTKbJHBHuSd/HBZ7c+CPMzpW8lqdhPdsQ6U4MXTWSkuWjF1s0vl0H+ldwli0R1w==" }, "@walmart/wfm-ui": { "version": "0.1.50", --- 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/payrollsolution_miniapp": "^0.67.0", + "@walmart/payrollsolution_miniapp": "^0.71.0", "@walmart/push-to-talk-mini-app": "0.5.39", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0",
chore(welcomeMe): Bump up welcomeMe-mini-app to 0.33.0 -[RECRUIT-46125]
chore(welcomeMe): Bump up welcomeMe-mini-app to 0.33.0 -[RECRUIT-46125]
28bc240a53f5d654d90231d28fb0c32b27cc030e
--- package.json @@ -67,7 +67,7 @@ "@walmart/allspark-me-mini-app": "0.1.0", "@walmart/ask-sam-mini-app": "0.17.0", "@walmart/config-components": "1.0.21", - "@walmart/feedback-all-spark-miniapp": "0.0.49", + "@walmart/feedback-all-spark-miniapp": "0.0.50", "@walmart/functional-components": "1.0.27", "@walmart/gtp-shared-components": "^0.2.2", "@walmart/impersonation-mini-app": "1.0.15",
Bumping feedback library version
Bumping feedback library version
b4ca020ef9a67e7d2d3bd3974e0a0daa5e58c76d
--- graphql.yml @@ -1,6 +1,9 @@ schemaVersion: "1.0.0" enableGating: true teamRostersProductId: 1824 +notify: + slack: + channelName: "smdv-miniapp" applications: - name: "WMCONNECT-MINIAPP" applicationKey: "WMCONNECT-MINIAPP"
feat(ui): update channel
feat(ui): update channel
8bee8271f0e2634815792732c489ad0d2d43c69d
--- src/managerExperience/screens/AllTeamsScreen/AllTeamsScreen.tsx @@ -23,10 +23,11 @@ export const AllTeamsScreen = () => { acc += currentTeam?.mewClockedInCount ?? 0; return acc; }, 0); + const isErrorFetchingTeams = + !allTeams || !primaryTeamId || !allTeams.every((team) => team !== null); //TODO: Add error screen - if (!allTeams || !primaryTeamId || !allTeams.every((team) => team !== null)) - return <View>Error screen</View>; + if (isErrorFetchingTeams) return <View>Error screen</View>; const sortedSections = createAllTeamsSections( allTeams,
feat: created descriptive variable name for error fetching teams
feat: created descriptive variable name for error fetching teams
c4b969568f768e0370ae42496746b0d3646dc3cd
--- package-lock.json @@ -72,7 +72,7 @@ "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.13", - "@walmart/learning-mini-app": "20.0.15", + "@walmart/learning-mini-app": "20.0.16", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.16", "@walmart/me-at-walmart-common": "6.0.16", @@ -11731,9 +11731,9 @@ } }, "node_modules/@walmart/learning-mini-app": { - "version": "20.0.15", - "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-20.0.15.tgz", - "integrity": "sha512-JQIpa7dbb3UX+ziLa2rvvPMXSy49LVLMal08HGrpTJu8R5spBUgu0WobB3uD0BP3SreRp6VrBn2aZZ7qJ5N1MQ==", + "version": "20.0.16", + "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-20.0.16.tgz", + "integrity": "sha512-iVqkvXngm+Oi2Yoh/sfnb12y2GHgJnlCKNBErHpKpd/gxW55GOIYXacUZ+rc7y3abxfKB/vadfVLfgLfdTOUgA==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", --- package.json @@ -113,7 +113,7 @@ "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.13", - "@walmart/learning-mini-app": "20.0.15", + "@walmart/learning-mini-app": "20.0.16", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.16", "@walmart/me-at-walmart-common": "6.0.16", @@ -378,7 +378,7 @@ "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.13", - "@walmart/learning-mini-app": "20.0.15", + "@walmart/learning-mini-app": "20.0.16", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.16", "@walmart/me-at-walmart-common": "6.0.16",
feat: :sparkles: Bump learning mini app version to 20.0.16
feat: :sparkles: Bump learning mini app version to 20.0.16
cc27280cd3a4113b7bb7e9fd168e52201b662189
--- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.4.0-alpha.10", + "version": "1.4.0-alpha.11", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(ui): update tests, graphql and versions
chore(ui): update tests, graphql and versions
8ba04d945e1eb82f257e60c3682c25864f9f0fce
--- graphql.yml @@ -1,6 +1,9 @@ schemaVersion: "1.0.0" enableGating: true teamRostersProductId: 1824 +notify: + slack: + channelName: "smdv-miniapp" applications: - name: "ASSOCIATE-EXP-HUB-MINI-APP" applicationKey: "ASSOCIATE-EXP-HUB-MINI-APP"
fix(ui): update looper
fix(ui): update looper
d461a015ecf564229266ea88d650735b4c8e3b13
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/UpdateTeamsModal/UpdateTeamsModal.tsx @@ -173,7 +173,7 @@ export const UpdateTeamsModal = ({ modal: { closeModal } }: ModalProps) => { handleSelection={(item) => handleSelection(item.teamId)} handleEdit={() => AllsparkNavigationClient.openModal( - 'managerExperience.supplyChain.editModal' + 'managerExperience.supplyChain.editModal' as any ) } />
feat(ui): type fix
feat(ui): type fix
f499bd94fa19573ac8d318d16c3503143d118755
--- .looper.multibranch.yml @@ -24,7 +24,7 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/drop24 + - spec: feature/topstock-drop24-1 triggers: - manual: name: Publish Packages (Pre-Release) --- targets/US/package.json @@ -148,7 +148,7 @@ "@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", - "@walmart/topstock-mini-app": "1.15.20", + "@walmart/topstock-mini-app": "1.16.16", "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch", "@walmart/welcomeme-mini-app": "0.95.1", "@walmart/wfm-ui": "1.6.0", --- yarn.lock @@ -6874,7 +6874,7 @@ __metadata: "@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" - "@walmart/topstock-mini-app": "npm:1.15.20" + "@walmart/topstock-mini-app": "npm:1.16.16" "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch" "@walmart/welcomeme-mini-app": "npm:0.95.1" "@walmart/wfm-ui": "npm:1.6.0" @@ -7860,9 +7860,9 @@ __metadata: languageName: node linkType: hard -"@walmart/topstock-mini-app@npm:1.15.20": - version: 1.15.20 - resolution: "@walmart/topstock-mini-app@npm:1.15.20" +"@walmart/topstock-mini-app@npm:1.16.16": + version: 1.16.16 + resolution: "@walmart/topstock-mini-app@npm:1.16.16" peerDependencies: "@react-native-firebase/app": ^15.1.1 "@react-native-firebase/crashlytics": ^15.1.1 @@ -7879,7 +7879,7 @@ __metadata: react-native-haptic-feedback: ^1.13.0 react-native-vector-icons: ">=6.6.0" react-redux: ">=7.2.0" - checksum: 10c0/90baf8d0a306aad2953f3228312b0c4daf48dda6c7cbf0225be417e495cb39d5bcea082199c6b3fceda1b279474f489efc3d2f419c722dc783e6161e20a3365e + checksum: 10c0/001cce7a5436cf0d28856a947c641e956dd2deaaef492469eb38629969e74b74d16456993a258e7f042b146269e665709716aeea2b93435e59315d667a427cd1 languageName: node linkType: hard
fix(): updated topstock version to 1.16.16
fix(): updated topstock version to 1.16.16
b4dc2fb9f37c6abb962341167df6b9fdb95c2f33
--- package-lock.json @@ -4319,9 +4319,9 @@ "integrity": "sha512-D1I8i9IA/LlfKInPduKHARhcJ2KuUVKQ8GMoHlLBLmnl6Zo55xuzKdU8DCyiIJfPsAv/KQVRD63/FVKbyyO1LA==" }, "@walmart/exception-mini-app": { - "version": "0.40.4", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.40.4.tgz", - "integrity": "sha512-JuNzcUSGo2OI5/P7dhyI6wnJvrQhIra/t22pLyUUMx/kuUvXKxGuwxFN4FlpeWe05R9S3DVPiFiHPgu+4KVEVg==" + "version": "0.41.1", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-0.41.1.tgz", + "integrity": "sha512-40MFbit1GW/wE4wnZRZJHCFvwL07b5tef59Fr0gMuMIzvhp6UIkchf6ANQIBjkoDXmPrJwbp4O52UvtyIk19gg==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.3.8", @@ -6371,7 +6371,7 @@ "isarray": { "version": "1.0.0", "resolved": "https://npme.walmart.com/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, "process-nextick-args": { "version": "2.0.1", @@ -7186,7 +7186,7 @@ "es6-promisify": { "version": "5.0.0", "resolved": "https://npme.walmart.com/es6-promisify/-/es6-promisify-5.0.0.tgz", - "integrity": "sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ==", + "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", "requires": { "es6-promise": "^4.0.3" } @@ -8531,7 +8531,7 @@ "github-from-package": { "version": "0.0.0", "resolved": "https://npme.walmart.com/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==" + "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=" }, "glob": { "version": "7.1.6", @@ -9122,7 +9122,7 @@ "http-basic": { "version": "2.5.1", "resolved": "https://npme.walmart.com/http-basic/-/http-basic-2.5.1.tgz", - "integrity": "sha512-q/qOkgjcnZ90v0wSaMwamhfAhIf6lhOsH0ehHFnQHAt1lA9MedSnmqEEnh8bq0njTBAK3IsmS2gEuXryfWCDkw==", + "integrity": "sha1-jORHvbW2xXf4pj4/p4BW7Eu02/s=", "requires": { "caseless": "~0.11.0", "concat-stream": "^1.4.6", @@ -9132,7 +9132,7 @@ "caseless": { "version": "0.11.0", "resolved": "https://npme.walmart.com/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha512-ODLXH644w9C2fMPAm7bMDQ3GRvipZWZfKc+8As6hIadRIelE0n0xZuN38NS6kiK3KPEVrpymmQD8bvncAHWQkQ==" + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=" } } }, @@ -9179,7 +9179,7 @@ "http-response-object": { "version": "1.1.0", "resolved": "https://npme.walmart.com/http-response-object/-/http-response-object-1.1.0.tgz", - "integrity": "sha512-adERueQxEMtIfGk4ee/9CG7AGUjS09OyHeKrubTjmHUsEVXesrGlZLWYnCL8fajPZIX9H4NDnXyyzBPrF078sA==" + "integrity": "sha1-p8TnWq6C87tJBOT0P2FWc7TVGMM=" }, "http-signature": { "version": "1.2.0", @@ -9472,7 +9472,7 @@ "indent-string": { "version": "3.2.0", "resolved": "https://npme.walmart.com/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "integrity": "sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ==", "dev": true }, "inflight": { @@ -16190,7 +16190,7 @@ "nano-time": { "version": "1.0.0", "resolved": "https://npme.walmart.com/nano-time/-/nano-time-1.0.0.tgz", - "integrity": "sha512-flnngywOoQ0lLQOTRNexn2gGSNuM9bKj9RZAWSzhQ+UJYaAFG9bac4DW9VHjUAzrOaIcajHybCTHe/bkvozQqA==", + "integrity": "sha1-sFVPaa2J4i0JB/ehKwmTpdlhN+8=", "requires": { "big-integer": "^1.6.16" } @@ -17698,7 +17698,7 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://npme.walmart.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==" + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" } } }, @@ -18879,7 +18879,7 @@ "remove-accents": { "version": "0.4.2", "resolved": "https://npme.walmart.com/remove-accents/-/remove-accents-0.4.2.tgz", - "integrity": "sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA==" + "integrity": "sha1-CkPTqq4egNuRngeuJUsoXZ4ce7U=" }, "remove-trailing-separator": { "version": "1.1.0", @@ -18936,7 +18936,7 @@ "requires-port": { "version": "1.0.0", "resolved": "https://npme.walmart.com/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==" + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" }, "reselect": { "version": "4.1.5", @@ -19724,7 +19724,7 @@ "stream-counter": { "version": "1.0.0", "resolved": "https://npme.walmart.com/stream-counter/-/stream-counter-1.0.0.tgz", - "integrity": "sha512-4nfHc1016AhNOs0CFDR3S0FNeqnYbT7xZ408coajcx2Msj8malNNjvFHzWYIfIAXNK5i0eaKIVfgBYPOkyOTIg==" + "integrity": "sha1-kc8lac5NxQYf6816yyY5SloRR1E=" }, "strict-uri-encode": { "version": "2.0.0", @@ -19936,7 +19936,7 @@ "sync-request": { "version": "3.0.1", "resolved": "https://npme.walmart.com/sync-request/-/sync-request-3.0.1.tgz", - "integrity": "sha512-bnOSypECs6aB9ScWHcJAkS9z55jOhO3tdLefLfJ+J58vC2HCi5tjxmFMxLv0RxvuAFFQ/G4BupVehqpAlbi+3Q==", + "integrity": "sha1-yqEjWq+Im6UBB2oYNMQ2gwqC+3M=", "requires": { "concat-stream": "^1.4.7", "http-response-object": "^1.0.1", @@ -20066,7 +20066,7 @@ "then-request": { "version": "2.2.0", "resolved": "https://npme.walmart.com/then-request/-/then-request-2.2.0.tgz", - "integrity": "sha512-YM/Fho1bQ3JFX9dgFQsBswc3aSTePXvtNHl3aXJTZNz/444yC86EVJR92aWMRNA0O9X0UfmojyCTUcT8Lbo5yA==", + "integrity": "sha1-ZnizL6DKIY/laZgbvYhxtZQGDYE=", "requires": { "caseless": "~0.11.0", "concat-stream": "^1.4.7", @@ -20079,7 +20079,7 @@ "caseless": { "version": "0.11.0", "resolved": "https://npme.walmart.com/caseless/-/caseless-0.11.0.tgz", - "integrity": "sha512-ODLXH644w9C2fMPAm7bMDQ3GRvipZWZfKc+8As6hIadRIelE0n0xZuN38NS6kiK3KPEVrpymmQD8bvncAHWQkQ==" + "integrity": "sha1-cVuW6phBWTzDMGeSP17GDr2k99c=" }, "promise": { "version": "7.3.1", @@ -20266,7 +20266,7 @@ "typedarray": { "version": "0.0.6", "resolved": "https://npme.walmart.com/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" }, "typedarray-to-buffer": { "version": "3.1.5", --- package.json @@ -77,7 +77,7 @@ "@walmart/ask-sam-mini-app": "0.41.7", "@walmart/config-components": "3.0.2", "@walmart/counts-component-miniapp": "0.0.34", - "@walmart/exception-mini-app": "0.40.4", + "@walmart/exception-mini-app": "0.41.1", "@walmart/feedback-all-spark-miniapp": "0.3.8", "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15",
feature/pinpoint-0.41.1
feature/pinpoint-0.41.1
a75ed983a98ec109e76dd0c42888a61805c754fb
--- packages/expo-config-plugins/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.1.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.1.3...@walmart/expo-config-plugins@0.1.4) (2025-03-26) + +**Note:** Version bump only for package @walmart/expo-config-plugins + ## [0.1.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.1.2...@walmart/expo-config-plugins@0.1.3) (2025-03-24) **Note:** Version bump only for package @walmart/expo-config-plugins --- packages/expo-config-plugins/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/expo-config-plugins", "packageManager": "yarn@4.1.1", - "version": "0.1.3", + "version": "0.1.4", "description": "Expo config plugins for me@apps", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/expo-config-plugins@0.1.4
1cb7da28e1c593dcd9ea8e1c58a29f0014f09f8b
--- package-lock.json @@ -3166,9 +3166,9 @@ "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==" }, "@types/xdate": { - "version": "0.8.31", - "resolved": "https://npme.walmart.com/@types/xdate/-/xdate-0.8.31.tgz", - "integrity": "sha512-iZYRKKK8UZXoepNh2kwK6TPITMj/dwdv0NzNi9DFMt2foGkU7h+ncaCpGsdD2fp/CXMs9dxPAzV9uddFy7c4QA==" + "version": "0.8.32", + "resolved": "https://npme.walmart.com/@types/xdate/-/xdate-0.8.32.tgz", + "integrity": "sha512-giM6hmU4ZCCAQj8BVSMNMA8hQwvKuWewLIe7r+G5NtGvehqW9jXdF/V6CzzkQYgHsk+67/udxql3RdfR8zqSNA==" }, "@types/xmldom": { "version": "0.1.30", @@ -3544,9 +3544,9 @@ "integrity": "sha512-HqzsayD8WUTeiG7VTuHWPgSqKM/RxN90OYmLxBvtyMgGAeAYz8nKnsR5USnPHGb0L2wHUg/KwAhpqRLr0Y2s7w==" }, "@walmart/shelfavailability-mini-app": { - "version": "0.3.64", - "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.64.tgz", - "integrity": "sha512-47pfaSXBCx7tp6IXLIzP+4R7A06YxxPo+8sxnh5kezwJBVgOBUeUiWt8Pz1r/sFTLGFgwF48raNT7vOwXEADTg==", + "version": "0.3.70", + "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.70.tgz", + "integrity": "sha512-fKimo/sQXYW78nFGUPBz/8ARwzBod0kQTIabJRZLiBvjJmO4jS5QODOlcbv3u/bYUTZ25/Jv52F/eADGI7vl0g==", "requires": { "@types/uuid": "^8.3.0", "@types/xdate": "^0.8.31", @@ -3574,9 +3574,9 @@ } }, "follow-redirects": { - "version": "1.14.3", - "resolved": "https://npme.walmart.com/follow-redirects/-/follow-redirects-1.14.3.tgz", - "integrity": "sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==" + "version": "1.14.4", + "resolved": "https://npme.walmart.com/follow-redirects/-/follow-redirects-1.14.4.tgz", + "integrity": "sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==" } } }, --- package.json @@ -87,7 +87,7 @@ "@walmart/redux-store": "^1.0.15", "@walmart/schedule-mini-app": "^0.2.80", "@walmart/settings-mini-app": "1.3.5", - "@walmart/shelfavailability-mini-app": "0.3.64", + "@walmart/shelfavailability-mini-app": "0.3.70", "@walmart/time-clock-mini-app": "0.3.10", "@walmart/ui-components": "1.1.53", "@walmart/welcomeme-mini-app": "0.26.2",
0.3.70 mini app version
0.3.70 mini app version
940d9f6acc83cfa802cd8e859842ced27e502a0b
--- packages/allspark-foundation-hub/src/HubFeature/Hooks/useUserPreferences.ts @@ -4,6 +4,8 @@ import { useState } from 'react'; import { teamImageIcon } from '../Hub/Container/mockData'; import { UserSelectors } from '@walmart/allspark-foundation/User'; import { TeamSwitcherTypes } from '..'; +import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; +import { getVersion } from 'react-native-device-info'; const sorter = (data: TeamSwitcherTypes[]): TeamSwitcherTypes[] => { const TOTAL_STORE = 'Total store'; @@ -46,6 +48,13 @@ export const useUserPreferences = ( }, skip: userPreferenceInput.length > 0, fetchPolicy: 'cache-and-network', + context: { + headers: { + 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, + 'x-o-platform': 'allspark-core', + 'x-o-platform-version': getVersion(), + }, + }, onCompleted: (response: any) => { const transformedTeamData = response.associatePreferences?.meAtWalmartPreferences?.managerExperiencePreferences?.myTeams?.map( --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx @@ -21,6 +21,8 @@ import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; import { FEATURE_ID } from '../../../constant'; import { managerExperienceSlice } from '../../../Redux'; +import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; +import { getVersion } from 'react-native-device-info'; export const TeamSelectionList = ({ userType, @@ -44,6 +46,13 @@ export const TeamSelectionList = ({ const teamSelectionTelemetry = useTelemetryService(); const [upsertManagerExperiencePreferenceMutation, { error, loading }] = useUpsertManagerExperiencePreferenceMutation({ + context: { + headers: { + 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, + 'x-o-platform': 'allspark-core', + 'x-o-platform-version': getVersion(), + }, + }, onCompleted: () => { logger.info('managerExperienceMutation success', { message: 'Manager experience mutation completed', --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Screens/TeamSelection.tsx @@ -18,6 +18,8 @@ import { import { Team } from '@walmart/me-at-walmart-athena-queries/src/schema.types'; import moment from 'moment-timezone'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; +import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; +import { getVersion } from 'react-native-device-info'; export const TeamSelection = () => { const useGetViewersPrimaryTeamName = () => { @@ -52,6 +54,13 @@ export const TeamSelection = () => { message: `${err}`, }); }, + context: { + headers: { + 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, + 'x-o-platform': 'allspark-core', + 'x-o-platform-version': getVersion(), + }, + }, notifyOnNetworkStatusChange: true, }); --- packages/allspark-foundation/src/HubFeature/Hooks/useUserPreferences.ts @@ -4,6 +4,8 @@ import { useState } from 'react'; import { teamImageIcon } from '../Hub/Container/mockData'; import { UserSelectors } from '../../User'; import { TeamSwitcherTypes } from '..'; +import { getVersion } from 'react-native-device-info'; +import { AllsparkEnvironment } from '../../Environment'; const sorter = (data: TeamSwitcherTypes[]): TeamSwitcherTypes[] => { const TOTAL_STORE = 'Total store'; @@ -44,6 +46,13 @@ export const useUserPreferences = ( site: Number(storeId), win: win as string, }, + context: { + headers: { + 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, + 'x-o-platform': 'allspark-core', + 'x-o-platform-version': getVersion(), + }, + }, skip: userPreferenceInput.length > 0, fetchPolicy: 'cache-and-network', onCompleted: (response: any) => { --- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionList.tsx @@ -20,6 +20,8 @@ import { useTelemetryService } from '../../../../Telemetry'; import { useAllsparkTranslation } from '../../../../Translation'; import { FEATURE_ID } from '../../../constant'; import { managerExperienceSlice } from '../../../Redux'; +import { AllsparkEnvironment } from '../../../../Environment'; +import { getVersion } from 'react-native-device-info'; export const TeamSelectionList = ({ userType, @@ -44,6 +46,13 @@ export const TeamSelectionList = ({ const teamSelectionTelemetry = useTelemetryService(); const [upsertManagerExperiencePreferenceMutation, { error, loading }] = useUpsertManagerExperiencePreferenceMutation({ + context: { + headers: { + 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, + 'x-o-platform': 'allspark-core', + 'x-o-platform-version': getVersion(), + }, + }, onCompleted: () => { logger.info('managerExperienceMutation success', { message: 'Manager experience mutation completed', --- packages/allspark-foundation/src/HubFeature/Onboarding/TeamSelection/Screens/TeamSelection.tsx @@ -19,6 +19,8 @@ import { import { Team } from '@walmart/me-at-walmart-athena-queries/src/schema.types'; import moment from 'moment-timezone'; import { LoggerService } from '../../../../Logger'; +import { getVersion } from 'react-native-device-info'; +import { AllsparkEnvironment } from '../../../../Environment'; export const TeamSelection = () => { const useGetViewersPrimaryTeamName = () => { @@ -67,6 +69,13 @@ export const TeamSelection = () => { win: win as string, }, fetchPolicy: 'cache-and-network', + context: { + headers: { + 'wm_consumer.id': AllsparkEnvironment.getCurrent().consumerId, + 'x-o-platform': 'allspark-core', + 'x-o-platform-version': getVersion(), + }, + }, }); const refetchInProgress = networkStatus === 4; const allTeamsData: TeamType[] = data?.getTeamsByStore || ([] as TeamType[]);
Adding context to queries
Adding context to queries
8287be86fe1e9be3f6603962d42aa122df9353bf
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.6.0-beta.3", + "version": "3.6.0-beta.4", "main": "dist/index.js", "files": [ "dist", @@ -92,7 +92,7 @@ "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", - "@walmart/roster-mini-app": "3.8.0-beta.4", + "@walmart/roster-mini-app": "3.8.0-beta.5", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "3.7.0-beta.2", "babel-jest": "^29.6.3", --- yarn.lock @@ -8034,7 +8034,7 @@ __metadata: "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" - "@walmart/roster-mini-app": "npm:3.8.0-beta.4" + "@walmart/roster-mini-app": "npm:3.8.0-beta.5" "@walmart/ui-components": "npm:1.15.1" "@walmart/wmconnect-mini-app": "npm:3.7.0-beta.2" babel-jest: "npm:^29.6.3" @@ -8144,9 +8144,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:3.8.0-beta.4": - version: 3.8.0-beta.4 - resolution: "@walmart/roster-mini-app@npm:3.8.0-beta.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.8.0-beta.4.tgz" +"@walmart/roster-mini-app@npm:3.8.0-beta.5": + version: 3.8.0-beta.5 + resolution: "@walmart/roster-mini-app@npm:3.8.0-beta.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.8.0-beta.5.tgz" dependencies: expo: "npm:~52.0.46" react: "npm:18.3.1" @@ -8162,7 +8162,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/a718ad79117a0193aa43af2d627f0e6dc93ed0f220a6f8c65bdc1531a0626262f545624267f4a2ea5631a22eb6c182313914807d4bc26626357c7a4771bee385 + checksum: 10c0/939f5c1575fcd34ef5abdb6290df825298f4827e1d69715de79e2393094ecbb11b1304129447afe870f1b30f5ea1875c80f288777822470d99bdc0d5c732a32e languageName: node linkType: hard
chore: update yarn.lock to resolve dependency conflicts
chore: update yarn.lock to resolve dependency conflicts
4f3e58e309ff637f6ff125b46c0d696fa2615385
--- android/app/build.gradle @@ -158,8 +158,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 907 - versionName "1.10.0" + versionCode 908 + versionName "1.11.0" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.10.0</string> + <string>1.11.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -36,7 +36,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>907</string> + <string>908</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.10.0", + "version": "1.11.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.10.0", + "version": "1.11.0", "hasInstallScript": true, "dependencies": { "@react-native-community/art": "^1.2.0", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.10.0", + "version": "1.11.0", "private": true, "scripts": { "android": "react-native run-android",
version bump to 1.11.0
version bump to 1.11.0
45775ebb179061df51bda7c94fca65103ff27750
--- package.json @@ -157,7 +157,7 @@ "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.9.20#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.9.20-3371a478c8.patch", "@walmart/receipt-check-miniapp": "1.34.4", "@walmart/redux-store": "~6.3.28", - "@walmart/returns-mini-app": "4.17.16", + "@walmart/returns-mini-app": "4.17.21", "@walmart/rfid-scan-mini-app": "patch:@walmart/rfid-scan-mini-app@npm%3A2.14.3#~/.yarn/patches/@walmart-rfid-scan-mini-app-npm-2.14.3-01044bc5ef.patch", "@walmart/rn-mobile-sdk-pairing": "2.1.8", "@walmart/rn-receiving-mini-app": "2.6.20", --- yarn.lock @@ -8581,7 +8581,7 @@ __metadata: "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.9.20#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.9.20-3371a478c8.patch" "@walmart/receipt-check-miniapp": "npm:1.34.4" "@walmart/redux-store": "npm:~6.3.28" - "@walmart/returns-mini-app": "npm:4.17.16" + "@walmart/returns-mini-app": "npm:4.17.21" "@walmart/rfid-scan-mini-app": "patch:@walmart/rfid-scan-mini-app@npm%3A2.14.3#~/.yarn/patches/@walmart-rfid-scan-mini-app-npm-2.14.3-01044bc5ef.patch" "@walmart/rn-mobile-sdk-pairing": "npm:2.1.8" "@walmart/rn-receiving-mini-app": "npm:2.6.20" @@ -9275,9 +9275,9 @@ __metadata: languageName: node linkType: hard -"@walmart/returns-mini-app@npm:4.17.16": - version: 4.17.16 - resolution: "@walmart/returns-mini-app@npm:4.17.16::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freturns-mini-app%2F-%2F%40walmart%2Freturns-mini-app-4.17.16.tgz" +"@walmart/returns-mini-app@npm:4.17.21": + version: 4.17.21 + resolution: "@walmart/returns-mini-app@npm:4.17.21::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freturns-mini-app%2F-%2F%40walmart%2Freturns-mini-app-4.17.21.tgz" dependencies: "@walmart/common-utilities-js": "npm:^1.2.10" "@walmart/virtual-zpl-printer-model": "npm:^0.2.11" @@ -9285,9 +9285,10 @@ __metadata: "@react-native-async-storage/async-storage": "*" "@react-navigation/native": ">=5" "@react-navigation/stack": ">=6" - "@walmart/allspark-foundation": "*" + "@walmart/allspark-foundation": 7.x "@walmart/core-services-allspark": "*" "@walmart/gtp-shared-components": "*" + "@walmart/gtp-shared-components-3": "*" "@walmart/react-native-logger": "*" "@walmart/react-native-scanner-3.0": "*" react: "*" @@ -9296,7 +9297,7 @@ __metadata: react-native-mask-input: ^1.2.3 react-redux: "*" redux: "*" - checksum: 10c0/441c5ef14d9eb37c2d367e70897ae5e947bbdf53ff2f74b5bcce88474ebd0f6804865cd2003f5c13cc2c97632e1f3ccb4a1d3876a1de30630748c4709dbcfff1 + checksum: 10c0/ebce932141a87b660636085bf23aaf24ad4e07a3d417b3ab4510339a5ee1b7ef789039d40cc0db63fe0ba6dfc14e52199e9190cec5cdf0406a695184582c9d1e languageName: node linkType: hard
chore(ui): returns 2.0 changes (#5022)
chore(ui): returns 2.0 changes (#5022)
3427340809b3e6c5bae56d41bc508ab685f40b78
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.9.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.9.8...@walmart/allspark-foundation-hub@1.9.9) (2025-06-02) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.9.8](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.9.7...@walmart/allspark-foundation-hub@1.9.8) (2025-05-30) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.9.8", + "version": "1.9.9", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-athena-queries/CHANGELOG.md @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.33.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.32.2...@walmart/me-at-walmart-athena-queries@6.33.0) (2025-06-02) + +### Bug Fixes + +- **graphql:** change name ([42d1f32](https://gecgithub01.walmart.com/allspark/allspark/commit/42d1f3233f4d12df65f681028960ddd7ec0f0231)) +- **graphql:** fix typo ([d467d32](https://gecgithub01.walmart.com/allspark/allspark/commit/d467d324924aa3d0bbf66e28fe5b907e2cfe3bca)) +- **graphql:** query name ([c6d2978](https://gecgithub01.walmart.com/allspark/allspark/commit/c6d2978da91f4227bb0523699582ca36a4a880e7)) + +### Features + +- **graphql:** Change imports ([756ee83](https://gecgithub01.walmart.com/allspark/allspark/commit/756ee838066e5fb629cfe90662ff1df7d2457adb)) +- **graphql:** New Query for header ([6106670](https://gecgithub01.walmart.com/allspark/allspark/commit/610667010dd16412f44c6dd6575ce7cc0bc17712)) + ## [6.32.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.32.1...@walmart/me-at-walmart-athena-queries@6.32.2) (2025-05-06) **Note:** Version bump only for package @walmart/me-at-walmart-athena-queries --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "6.32.2", + "version": "6.33.0", "description": "> TODO: description", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.9.9 - @walmart/me-at-walmart-athena-queries@6.33.0
d0d9c5b3fbe9183f6941425cfd8fa01b78bce25a
--- src/whatsNew/WhatsNewSaga.ts @@ -1,5 +1,5 @@ import {takeLatest, call, select, all, put} from 'redux-saga/effects'; -import {GlobalState, UserSelectors} from '@walmart/redux-store'; +import {GlobalState, UserSelectors, SiteSelectors} from '@walmart/redux-store'; import {navigate} from '@walmart/react-native-shared-navigation'; import {createRestartableSagas} from '@walmart/core-utils'; @@ -12,9 +12,7 @@ export const WHATS_NEW_DEFAULT = {whatsNew: [], whatsNext: []}; export const DISTRIBUTION_CENTER_DIVISION_CODE = '7'; export const STORE_DIVISION_CODE = '1'; -export const getWhatsNew = (state: GlobalState) => { - const isDC = - state.site.data?.division?.code === DISTRIBUTION_CENTER_DIVISION_CODE; +export const getWhatsNew = (state: GlobalState, isDC: boolean) => { const config = isDC ? state.appConfig.data?.core?.whatsNewDC : state.appConfig.data?.core?.whatsNew; @@ -29,7 +27,8 @@ export function* getWhatsNewAsyncKey(): any { export function* fetchWhatsNew(whatsNewAsyncKey: string): any { const hasSeenWhatsNew = yield call(LocalStorage.get, whatsNewAsyncKey); if (!hasSeenWhatsNew) { - const whatsNewConfig = yield select(getWhatsNew); + const isDC = yield select(SiteSelectors.isSiteDistributionCenter); + const whatsNewConfig = yield select(getWhatsNew, isDC); return whatsNewConfig; } }
fixing the selector for checking if the site is dc or store
fixing the selector for checking if the site is dc or store
17f762f932744c540fc3440e56a92e3fb6af75cd
--- src/auth/ErrorScreen.tsx @@ -103,6 +103,7 @@ export const ErrorScreen: FC<any> = (props) => { errorCategory: errorCategory, otherQ1: selectedQ1Options, otherQ2: selectedQ2Option, + otherOptions: selectedOther, }); } };
add other radio and checkbox to log
add other radio and checkbox to log
e4629d4731332d56cea2d57ed05fbe575c816793
--- packages/core-services-allspark/src/notification.ts @@ -0,0 +1,26 @@ +import { + AllsparkNotificationClient, + NotificationUser, +} from '@walmart/allspark-foundation/Notification'; + +// Calling mini app is still reference this file for the register method. So keep this for backwards compatibility. + +/** + * @deprecated Use `AllsparkNotificationClient` from `@walmart/allspark-foundation/Notification` instead. + * + * Feature apps should rarely need to access this instance directly though. If you do, please reach out to the + * foundation team about your use case. + */ + +export const AllsparkNotification = { + /** + * @deprecated Use `AllsparkNotificationClient.register` from `@walmart/allspark-foundation/Notification` instead. + * + * Feature apps shouldn't need to register the user. This is handled automatically by the container. Features can + * respond to registration through a saga listening to the `NotificationActionTypes.REGISTER_SUCCESS` action. + * + * If you think you need to actually invoke registration, please reach out to the foundation team about your use case. + */ + register: (user: NotificationUser) => + AllsparkNotificationClient.register({ user, enabled: true }), +};
fix: add notification client proxy for backwards compatability
fix: add notification client proxy for backwards compatability
c7d38256454108103d45525711967aa2b4ae7c40
--- src/ccmFallbacks.ts @@ -13,7 +13,8 @@ export const CCMFallbacks = { rmaPath: '/ptt/weekly_schedule_link', rmaTeamPermissionsPath: '/texting/delete_team_message', rmaTotalStorePermissionsPath: '/texting/delete_total_store_message', - DNDOfflineTimeLimit: 43200, - DNDAutoSwitchThreshold: 120, - DNDAutoSwitchFeatureFlag: true, + showDND: true, + showClockStatus: true, + showAvatar: true, + showSearchIcon: true, }; --- src/redux/selectors.ts @@ -31,3 +31,31 @@ export const showViewTimeClock = createSelector( state?.showViewTimeClock?.toString()?.toLowerCase() === 'true' ?? CCMFallbacks.showViewTimeClock, ); + +export const displayDND = createSelector( + [getTextingAppConfigData], + (state) => + state?.showDND?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.showDND, +); + +export const displayClockStatus = createSelector( + [getTextingAppConfigData], + (state) => + state?.showClockStatus?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.showClockStatus, +); + +export const displayAvatar = createSelector( + [getTextingAppConfigData], + (state) => + state?.showAvatar?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.showAvatar, +); + +export const displaySearchIcon = createSelector( + [getTextingAppConfigData], + (state) => + state?.showSearchIcon?.toString()?.toLowerCase() === 'true' ?? + CCMFallbacks.showSearchIcon, +);
Update new fields for feature flag
Update new fields for feature flag
55f11463bb02391f5aaf6025fc243873cae87fba
--- __tests__/harness/firestore/data/messages.ts @@ -1,6 +1,4 @@ -// @ts-ignore import {generateDocumentId} from './documentIds'; -// @ts-ignore import {generateCreatedAt} from './timestamps'; import {isNil} from 'lodash'; --- __tests__/harness/firestore/data/stores.ts @@ -1,4 +1,3 @@ -// @ts-ignore import {usersCollectionForStore} from './users'; import { oneToOneChannel_AllMessageTypes, --- __tests__/harness/firestore/data/users.ts @@ -1,7 +1,5 @@ import {encryptUserId} from '../../../../src/utils/user'; -// @ts-ignore import {generateCreatedAt} from './timestamps'; -// @ts-ignore import {presenceStatuses} from './presence'; import {values} from 'lodash'; --- __tests__/harness/index.tsx @@ -5,7 +5,6 @@ import {Provider as ReduxProvider} from 'react-redux'; import {reducerManager} from '@walmart/redux-store'; import {PreloadedState} from 'redux'; import {configureStore} from '@reduxjs/toolkit'; -// @ts-ignore import {initialStateMock} from './redux/mockState'; import {I18nextProvider, initReactI18next} from 'react-i18next'; import i18n from 'i18next'; --- __tests__/harness/firestore/data/messages.ts @@ -1,6 +1,4 @@ -// @ts-ignore import {generateDocumentId} from './documentIds'; -// @ts-ignore import {generateCreatedAt} from './timestamps'; import {isNil} from 'lodash'; --- __tests__/harness/firestore/data/stores.ts @@ -1,4 +1,3 @@ -// @ts-ignore import {usersCollectionForStore} from './users'; import { oneToOneChannel_AllMessageTypes, --- __tests__/harness/firestore/data/users.ts @@ -1,7 +1,5 @@ import {encryptUserId} from '../../../../src/utils/user'; -// @ts-ignore import {generateCreatedAt} from './timestamps'; -// @ts-ignore import {presenceStatuses} from './presence'; import {values} from 'lodash'; --- __tests__/harness/index.tsx @@ -5,7 +5,6 @@ import {Provider as ReduxProvider} from 'react-redux'; import {reducerManager} from '@walmart/redux-store'; import {PreloadedState} from 'redux'; import {configureStore} from '@reduxjs/toolkit'; -// @ts-ignore import {initialStateMock} from './redux/mockState'; import {I18nextProvider, initReactI18next} from 'react-i18next'; import i18n from 'i18next';
remove ts ignores from import with new tsconfig
remove ts ignores from import with new tsconfig
7938fff110c68d315223b37d37797a98fa16288c
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 120 + versionCode 121 versionName "1.0.10" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>120</string> + <string>121</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
d980d741beb997574ea9124f9d02257e3290eec0
--- packages/allspark-foundation-hub/src/SupplyChain/Components/TeamShiftSwitcher/TeamShiftSwitcher.tsx @@ -28,7 +28,6 @@ import { generateTeamShiftText, truncateTeamAndShiftText, } from '../../Utils/teamShiftSwitcher'; -import { UserSelectors } from '@walmart/allspark-foundation/User'; import { SC_ManagerExperienceSelectors, teamSwitcherChevronEnabled, @@ -85,11 +84,6 @@ export const TeamShiftSwitcher = ({ ? selectedShifts : shiftPreferenceData; - const currentSiteId = useSelector(UserSelectors.getWorkingSite); - const originalSiteId = useSelector(UserSelectors.getHomeSite); - const isNotPartOfRoster = - currentSiteId && originalSiteId && currentSiteId !== originalSiteId; - const getTeamNameById = (teamIds: string[]): string[] => { const matchingTeamNames: string[] = []; @@ -124,9 +118,8 @@ export const TeamShiftSwitcher = ({ const getDefaultTeamName = () => { let label = ''; if ( - (allTeamData.includes(SupplyChainCCMFallbacks.defaultSiteTeam) && - !selectedTeamIds?.length) || - isNotPartOfRoster + allTeamData.includes(SupplyChainCCMFallbacks.defaultSiteTeam) && + !selectedTeamIds?.length ) { label = TOTAL_SITE_TEAM_LABEL; } else if (teamPreferenceData.length && !selectedTeamIds.length) {
Adding site change team shift switcher fix
Adding site change team shift switcher fix
4e0d1e218e92679086c88f595d687f37c3f87f2a
--- package-lock.json @@ -57,7 +57,7 @@ "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.39", + "@walmart/metrics-mini-app": "0.9.44", "@walmart/mod-flex-mini-app": "1.4.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14", @@ -5382,9 +5382,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.9.39", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.39.tgz", - "integrity": "sha512-9kmgTMGpLRrwlnBqZCXcXYddgtuQNRZAQUtcu9AE2iTxwYhmnM2Q54BnZAeBGJE+6oGeDDIoRTWVV4nae0Wo2Q==", + "version": "0.9.44", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.44.tgz", + "integrity": "sha512-9etn5HU4dPZUAH3w9v4OPT9jrpV2U7mnycc5Xaszl1mM33qqy4mgwnEr6PjmYqYW2j5vbyhyyi5DiS6p3UEpng==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -25114,9 +25114,9 @@ "integrity": "sha512-E6vAHwZlf/Z+rSLxDJBZsobTh19CO6crd5I6WQrYnM2+Hp+LhSZyh9dVkty6LLweJy6l4nmcVHJS6/A6QRC5aA==" }, "@walmart/metrics-mini-app": { - "version": "0.9.39", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.39.tgz", - "integrity": "sha512-9kmgTMGpLRrwlnBqZCXcXYddgtuQNRZAQUtcu9AE2iTxwYhmnM2Q54BnZAeBGJE+6oGeDDIoRTWVV4nae0Wo2Q==", + "version": "0.9.44", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.9.44.tgz", + "integrity": "sha512-9etn5HU4dPZUAH3w9v4OPT9jrpV2U7mnycc5Xaszl1mM33qqy4mgwnEr6PjmYqYW2j5vbyhyyi5DiS6p3UEpng==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -99,7 +99,7 @@ "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", - "@walmart/metrics-mini-app": "0.9.39", + "@walmart/metrics-mini-app": "0.9.44", "@walmart/mod-flex-mini-app": "1.4.5", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.14",
added fix from drop 9 SMBLV-3218
added fix from drop 9 SMBLV-3218
e30a543257bfbfacf2834065356ab76d2a714ffa
--- package-lock.json @@ -64,7 +64,7 @@ "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", "@walmart/metrics-mini-app": "0.15.13", - "@walmart/mod-flex-mini-app": "1.10.4", + "@walmart/mod-flex-mini-app": "1.11.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.9.35", @@ -8736,9 +8736,9 @@ "license": "MIT" }, "node_modules/@walmart/mod-flex-mini-app": { - "version": "1.10.4", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.10.4.tgz", - "integrity": "sha512-yOdC2yPvUYwG+75Ro33MrSDhFmy70fjO90ZjwDUwgBEREt++6u9wbwx0jhKQmJxu/Y1beZzTn/bTdHgvnYiW2g==", + "version": "1.11.6", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.11.6.tgz", + "integrity": "sha512-Qw1WDLt8GOi2StFWZOlB7YNXhTg79JGqpuNmD3N8gSW+WQpJyTcEFo7aeZmEJDUNddM2Fj2Sx+7fddPfmg8shQ==", "hasInstallScript": true, "peerDependencies": { "@react-native-async-storage/async-storage": "^1.19.0", @@ -33739,9 +33739,9 @@ } }, "@walmart/mod-flex-mini-app": { - "version": "1.10.4", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.10.4.tgz", - "integrity": "sha512-yOdC2yPvUYwG+75Ro33MrSDhFmy70fjO90ZjwDUwgBEREt++6u9wbwx0jhKQmJxu/Y1beZzTn/bTdHgvnYiW2g==" + "version": "1.11.6", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.11.6.tgz", + "integrity": "sha512-Qw1WDLt8GOi2StFWZOlB7YNXhTg79JGqpuNmD3N8gSW+WQpJyTcEFo7aeZmEJDUNddM2Fj2Sx+7fddPfmg8shQ==" }, "@walmart/moment-walmart": { "version": "1.0.4" --- package.json @@ -105,7 +105,7 @@ "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", "@walmart/metrics-mini-app": "0.15.13", - "@walmart/mod-flex-mini-app": "1.10.4", + "@walmart/mod-flex-mini-app": "1.11.6", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.9.35",
update to version 1.11.6
update to version 1.11.6
8c13c94ad8963524c0b3d1f463f7630c6ef238c2
--- __tests__/components/TeamHubButton.test.tsx @@ -1,10 +1,6 @@ import React from 'react'; -import {render, fireEvent} from '@testing-library/react-native'; +import {render} from '@testing-library/react-native'; -// Mock console.log to verify it's called -const consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); - -// Mock gtp-shared-components-3 jest.mock('@walmart/gtp-shared-components-3', () => { const React = require('react'); const {TouchableOpacity, Text} = require('react-native'); @@ -53,13 +49,6 @@ describe('TeamHubButton', () => { expect(getByText('Notes')).toBeTruthy(); }); - it('logs to console when pressed', () => { - const {getByTestId} = render(<TeamHubButton />); - const button = getByTestId('hub-button'); - fireEvent.press(button); - expect(consoleSpy).toHaveBeenCalledWith('use this callback for navigation'); - }); - it('applies correct hubButton styles', () => { expect(style.hubButton).toEqual( expect.objectContaining({ --- __tests__/components/index.test.ts @@ -1,20 +1,13 @@ -/** - * Test for components index re-exports - */ - -// Mock gtp-shared-components-3 jest.mock('@walmart/gtp-shared-components-3', () => ({ Button: jest.fn(), })); -// Mock translation client jest.mock('../../src/common/translation', () => ({ translationClient: { useTranslation: jest.fn(() => ({t: jest.fn((key) => key)})), }, })); -// Mock foundation hub jest.mock('@walmart/allspark-foundation-hub', () => ({ HubHeader: jest.fn(), })); --- __tests__/myteam-hub/index.test.ts @@ -1,8 +1,3 @@ -/** - * Test for myteam-hub index re-exports - */ - -// Mock all dependencies first jest.mock('../../src/common/telemetry', () => ({ myTeamTelemetry: { logEvent: jest.fn(), @@ -47,7 +42,6 @@ jest.mock('@react-navigation/native', () => ({ })), })); -// Now import and test exports import * as myteamHub from '../../src/myteam-hub'; describe('myteam-hub index exports', () => { --- __tests__/translations/index.test.ts @@ -1,8 +1,3 @@ -/** - * Test for translations index exports - */ - -// Mock the feature to avoid initialization issues jest.mock('../../src/common/feature', () => ({ MyTeamFeature: { createTranslations: jest.fn((resources) => resources), --- packages/myteam-mini-app/__tests__/components/TeamHubButton.test.tsx @@ -1,10 +1,6 @@ import React from 'react'; -import {render, fireEvent} from '@testing-library/react-native'; +import {render} from '@testing-library/react-native'; -// Mock console.log to verify it's called -const consoleSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); - -// Mock gtp-shared-components-3 jest.mock('@walmart/gtp-shared-components-3', () => { const React = require('react'); const {TouchableOpacity, Text} = require('react-native'); @@ -53,13 +49,6 @@ describe('TeamHubButton', () => { expect(getByText('Notes')).toBeTruthy(); }); - it('logs to console when pressed', () => { - const {getByTestId} = render(<TeamHubButton />); - const button = getByTestId('hub-button'); - fireEvent.press(button); - expect(consoleSpy).toHaveBeenCalledWith('use this callback for navigation'); - }); - it('applies correct hubButton styles', () => { expect(style.hubButton).toEqual( expect.objectContaining({ --- packages/myteam-mini-app/__tests__/components/index.test.ts @@ -1,20 +1,13 @@ -/** - * Test for components index re-exports - */ - -// Mock gtp-shared-components-3 jest.mock('@walmart/gtp-shared-components-3', () => ({ Button: jest.fn(), })); -// Mock translation client jest.mock('../../src/common/translation', () => ({ translationClient: { useTranslation: jest.fn(() => ({t: jest.fn((key) => key)})), }, })); -// Mock foundation hub jest.mock('@walmart/allspark-foundation-hub', () => ({ HubHeader: jest.fn(), })); --- packages/myteam-mini-app/__tests__/myteam-hub/index.test.ts @@ -1,8 +1,3 @@ -/** - * Test for myteam-hub index re-exports - */ - -// Mock all dependencies first jest.mock('../../src/common/telemetry', () => ({ myTeamTelemetry: { logEvent: jest.fn(), @@ -47,7 +42,6 @@ jest.mock('@react-navigation/native', () => ({ })), })); -// Now import and test exports import * as myteamHub from '../../src/myteam-hub'; describe('myteam-hub index exports', () => { --- packages/myteam-mini-app/__tests__/translations/index.test.ts @@ -1,8 +1,3 @@ -/** - * Test for translations index exports - */ - -// Mock the feature to avoid initialization issues jest.mock('../../src/common/feature', () => ({ MyTeamFeature: { createTranslations: jest.fn((resources) => resources), --- packages/myteam-mini-app/jest.config.js @@ -12,6 +12,9 @@ module.exports = { '<rootDir>/src/**/*.{js,jsx,ts,tsx}', '!<rootDir>/src/queries/*', '!<rootDir>/src/mocks/*', + '!<rootDir>/src/**/index.{ts,tsx}', + '!<rootDir>/src/**/types.{ts,tsx}', + '!<rootDir>/src/**/*.d.ts', ], coverageReporters: ['lcov', 'text'], coverageThreshold: {
chore: update jest.config.js so that barrel files and types files are not included in coverage report
chore: update jest.config.js so that barrel files and types files are not included in coverage report
116812bd2bf4f8120677e64b2832935fc14c73a3
--- __tests__/settings/__snapshots__/ToggleSettingTest.tsx.snap @@ -19,6 +19,9 @@ exports[`ToggleSetting renders correctly while loading 1`] = ` <Body UNSAFE_style={ Array [ + Object { + "maxWidth": "80%", + }, false, ] } @@ -70,6 +73,9 @@ exports[`ToggleSetting renders correctly while setting is false 1`] = ` <Body UNSAFE_style={ Array [ + Object { + "maxWidth": "80%", + }, false, ] } @@ -123,6 +129,9 @@ exports[`ToggleSetting renders correctly while setting is true 1`] = ` <Body UNSAFE_style={ Array [ + Object { + "maxWidth": "80%", + }, false, ] } @@ -185,6 +194,9 @@ exports[`ToggleSetting renders correctly with error 1`] = ` <Body UNSAFE_style={ Array [ + Object { + "maxWidth": "80%", + }, false, ] } @@ -241,6 +253,9 @@ exports[`ToggleSetting renders correctly with icon 1`] = ` <Body UNSAFE_style={ Array [ + Object { + "maxWidth": "80%", + }, Object { "marginLeft": 4, }, --- src/settings/SettingsHome.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import i18n from 'i18next'; import {useTranslation} from 'react-i18next'; import {useSelector} from 'react-redux'; import { @@ -52,16 +51,20 @@ const styles = StyleSheet.create({ }, }); -export const renderSectionHeader = (info: {section: SettingSection}) => { +const PreferenceSectionHeader = (info: {section: SettingSection}) => { + const {t} = useTranslation(); return ( <View style={styles.section}> <Heading UNSAFE_style={styles.sectionHeading}> - {i18n.t(`settings:mainScreen:${info.section.title}`)} + {t(`settings:mainScreen:${info.section.title}`)} </Heading> - <Body>{i18n.t(`settings:mainScreen:${info.section.description}`)}</Body> + <Body>{t(`settings:mainScreen:${info.section.description}`)}</Body> </View> ); }; +export const renderSectionHeader = (info: {section: SettingSection}) => ( + <PreferenceSectionHeader {...info} /> +); export const SettingItem = (props: { setting: Setting; --- src/settings/ToggleSetting.tsx @@ -32,6 +32,9 @@ const styles = StyleSheet.create({ descrption: { marginTop: 20, }, + label: { + maxWidth: '80%', + }, }); export const ToggleSetting = (props: ToggleSettingProps) => { @@ -62,7 +65,9 @@ export const ToggleSetting = (props: ToggleSettingProps) => { <View style={styles.toggleRow} testID={testID}> {icon} - <Body weight='700' UNSAFE_style={[!!icon && styles.labelWithIcon]}> + <Body + weight='700' + UNSAFE_style={[styles.label, !!icon && styles.labelWithIcon]}> {value ? labelOn : labelOff} </Body> <View style={styles.toggle}> --- src/settings/selectors.ts @@ -12,7 +12,7 @@ export const getSettingsState = (state: GlobalState) => export const getNetworkSettings = createSelector( [getSettingsState], - (state) => state.network, + (state) => state?.network, ); export const getDataSaverOn = createSelector( --- src/translations/es-MX.ts @@ -439,12 +439,12 @@ export const esMX_settings = { }, privacyPreferences: { birthdayDesc: - 'Show my birthday so that others can celebrate with me. Visible at the bottom of the homepage and by typing "birthdays" in Ask Sam.', - birthdayLabel: 'Show my birthday', - error: 'Something went wrong', + 'Mostrar mi cumpleaños para que otros puedan celebrarlo conmigo. Visible en la parte inferior de la página de inicio y al escribir "birthdays" (cumpleaños) en Ask Sam.', + birthdayLabel: 'Mostrar mi cumpleaños', + error: 'Algo salio mal', subTitle: - 'Decide which information your manager and peers can view about you in Me@Walmart', - title: 'What do you want others to see?', + 'Decide qué información pueden ver tu gerente y tus compañeros en Me@Walmart.', + title: '¿Qué quieres que vean los demás?', }, pushNotificationWarning: 'No pudimos activar las notificaciones. Intenta de nuevo más tarde.',
various fixes
various fixes
943d9e9aad3817f02741db05c4f325ccf243ac4e
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.12.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.12.0...@walmart/allspark-foundation-hub@1.12.1) (2025-08-15) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + # [1.12.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.11.4...@walmart/allspark-foundation-hub@1.12.0) (2025-08-15) ### Features --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.12.0", + "version": "1.12.1", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.12.1
e17e80c38632d959c51ad4bc13419aa65ab91998
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.10.24", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.24.tgz", - "integrity": "sha512-kE5B3ZjJRl44DYYBc4f74H1c7Idrw9mRmGiMlbLtJHUf+BQJykwN0tZ9iFWVdJuZ24mWePasLwLODFVmcI9t4w==", + "version": "0.10.26", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.10.26.tgz", + "integrity": "sha512-MFLoAIPmvtL86eCXRbvzIamB0JXfSt8n+dVzpld5/n1dG3DxD4xXVF3AuSUcsTRdr9uC6eziLEQotUuNGVj5Bg==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -50,7 +50,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.25", "@walmart/allspark-home-mini-app": "0.1.10", "@walmart/allspark-me-mini-app": "0.0.22", - "@walmart/ask-sam-mini-app": "0.10.24", + "@walmart/ask-sam-mini-app": "0.10.26", "@walmart/config-components": "1.0.12", "@walmart/feedback-all-spark-miniapp": "0.0.37", "@walmart/functional-components": "1.0.24",
Ask Sam - Bug Fixes (#365)
Ask Sam - Bug Fixes (#365) * Ask sam increment * Version increment Co-authored-by: rlane1 <rlane1@walmart.com>
d05afde787895fd92dd7d434ef945cbd48569a16
--- __tests__/__mocks__/@walmart/allspark-foundation-hub.js @@ -1,7 +1,3 @@ -const mockAllSpark = jest.mock('@walmart/allspark-foundation-hub'); module.exports = { - ...mockAllSpark, - TeamHubContainer: jest.fn().mockImplementation(() => ({ - add: jest.fn(), - })), + ...jest.requireActual('@walmart/allspark-foundation-hub'), }; --- __tests__/__snapshots__/index.test.tsx.snap @@ -1,30 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`MyTeamMiniApp should render as expected 1`] = ` -<Navigator> - <Screen - component={[Function]} - name="myTeam.rosterDetail" - options={ - { - "cardStyle": { - "backgroundColor": "rgba(0, 0, 0, 0)", - }, - "headerShown": false, - } - } - /> - <Screen - component={[Function]} - name="myTeam.allTeams" - options={ - { - "cardStyle": { - "backgroundColor": "rgba(0, 0, 0, 0)", - }, - "headerShown": false, - } - } - /> -</Navigator> -`; +exports[`MyTeamMiniApp should render as expected 1`] = `<SafeAreaProvider />`; --- __tests__/index.test.tsx @@ -14,10 +14,6 @@ jest.mock('react-redux', () => ({ useSelector: jest.fn(), })); -jest.mock('@walmart/me-at-walmart-common', () => - jest.requireActual('@walmart/me-at-walmart-common'), -); - jest.mock('reselect'); describe('MyTeamMiniApp', () => { --- __tests__/setup.ts @@ -47,6 +47,27 @@ jest.mock('expo-modules-core', () => { }; }); +jest.mock('@walmart/allspark-foundation/Components', () => ({ + AllsparkComponentContainers: { + add: jest.fn(), + create: jest.fn(), + addMultiple: jest.fn(), + }, + AllsparkDynamicComponents: { + create: jest.fn(), + }, + AllsparkBadges: { + update: jest.fn(() => ({})), + addd: jest.fn(), + Template: jest.fn, + }, + ComponentContainer: jest.fn().mockImplementation(() => ({ + add: jest.fn(), + remove: jest.fn(), + render: jest.fn().mockImplementationOnce(() => {}), + })), +})); + jest.mock('@walmart/roster-mini-app', () => jest.requireActual('@walmart/roster-mini-app'), ); @@ -55,6 +76,10 @@ jest.mock('@walmart/wmconnect-mini-app', () => jest.requireActual('@walmart/wmconnect-mini-app'), ); +jest.mock('@walmart/me-at-walmart-common', () => + jest.requireActual('@walmart/me-at-walmart-common'), +); + jest.mock('expo-image', () => jest.requireActual('expo-image')); jest.mock('@walmart/allspark-foundation-hub', () => ({ @@ -66,4 +91,7 @@ jest.mock('@walmart/allspark-foundation-hub', () => ({ })), })), })), + TeamHubContainer: { + add: jest.fn(), + }, })); --- yarn.lock @@ -6310,7 +6310,7 @@ __metadata: "@walmart/me-at-walmart-common@npm:6.25.1": version: 6.25.1 - resolution: "@walmart/me-at-walmart-common@npm:6.25.1" + resolution: "@walmart/me-at-walmart-common@npm:6.25.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fme-at-walmart-common%2F-%2Fme-at-walmart-common-6.25.1.tgz" peerDependencies: "@reduxjs/toolkit": "*" "@walmart/allspark-foundation": "*"
fix(ui): update the myteam tests
fix(ui): update the myteam tests
4f3b41180f4665e42d815acdf14c787b5efac00a
--- packages/allspark-foundation-hub/__tests__/HubFeature/BottomSheet.test.tsx @@ -4,8 +4,8 @@ import { render, fireEvent, act } from '@testing-library/react-native'; import { BottomSheetProps, BottomSheetRef, -} from '../../src/HubFeature/BottomSheet'; -import BottomSheet from '../../src/HubFeature/BottomSheet/BottomSheet'; +} from '../../src/HubFeature/Store/BottomSheet'; +import BottomSheet from '../../src/HubFeature/Store/BottomSheet/BottomSheet'; import { Image, Text } from 'react-native'; describe('BottomSheet', () => { --- packages/allspark-foundation-hub/__tests__/HubFeature/HubOnboardingImage.test.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import HubOnboardingImage from '../../src/HubFeature/BottomSheet/HubOnboardingImage/OnboardingImage'; +import HubOnboardingImage from '../../src/HubFeature/Store/BottomSheet/HubOnboardingImage/OnboardingImage'; import { render } from '../utils'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import TelemetryService from '@walmart/allspark-foundation/Telemetry'; --- packages/allspark-foundation-hub/src/Core/index.ts @@ -4,4 +4,4 @@ import { LogBox } from 'react-native'; // Ignorning to not burden container & feature app teams with these messages. LogBox.ignoreLogs([/ReactNativeSumoSdk requires main queue setup/]); -export * from '../HubFeature'; +export * from '../HubFeature/Store';
Update the folder for store and supply chain
Update the folder for store and supply chain
1e0d05155e274608ab31fc30e6e4fab0aa6aa8ae
--- targets/US/package.json @@ -150,7 +150,7 @@ "@walmart/taskit-mini-app": "4.25.8", "@walmart/time-clock-mini-app": "2.419.0", "@walmart/topstock-mini-app": "1.17.11", - "@walmart/translator-mini-app": "1.3.1", + "@walmart/translator-mini-app": "1.3.3", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.96.0", --- yarn.lock @@ -7066,7 +7066,7 @@ __metadata: "@walmart/taskit-mini-app": "npm:4.25.8" "@walmart/time-clock-mini-app": "npm:2.419.0" "@walmart/topstock-mini-app": "npm:1.17.11" - "@walmart/translator-mini-app": "npm:1.3.1" + "@walmart/translator-mini-app": "npm:1.3.3" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.17.1#~/.yarn/patches/@walmart-ui-components-npm-1.17.1-4a29feac03.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.96.0" @@ -8090,9 +8090,9 @@ __metadata: languageName: node linkType: hard -"@walmart/translator-mini-app@npm:1.3.1": - version: 1.3.1 - resolution: "@walmart/translator-mini-app@npm:1.3.1" +"@walmart/translator-mini-app@npm:1.3.3": + version: 1.3.3 + resolution: "@walmart/translator-mini-app@npm:1.3.3" peerDependencies: "@react-native-async-storage/async-storage": ^2.0.0 "@react-native-clipboard/clipboard": ^1.14.2 @@ -8107,7 +8107,7 @@ __metadata: react-native-svg: ">=14.0.0" react-native-wm-voice-text: ^1.0.4 uuid: ">=3.0.0" - checksum: 10c0/d0de6ed6f4b1d83b64581ee3254b01b82293956dc0543f31551605d90f44f45521fa376ef01e5c975f20a75fe981a0181275e62b1256d50be6e8e07ed5688a9b + checksum: 10c0/f8735299d9a00bcc92f1c2bdb513e3cd66116e1583bd4262727ea30f8e09341a7a56a02ae9e8a8a84edd98bf03db0d8b977d98e7980e554f73f57e886239d7a0 languageName: node linkType: hard
version bump
version bump
1a47e270a5dc16e3e1cbd6994f548a7d7ca1b218
--- patches/@walmart+core-services-allspark+2.10.17.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@walmart/core-services-allspark/lib/httpClient/interceptors/unauthorized.js b/node_modules/@walmart/core-services-allspark/lib/httpClient/interceptors/unauthorized.js +index bb477b1..cca1539 100644 +--- a/node_modules/@walmart/core-services-allspark/lib/httpClient/interceptors/unauthorized.js ++++ b/node_modules/@walmart/core-services-allspark/lib/httpClient/interceptors/unauthorized.js +@@ -13,7 +13,7 @@ async function unauthorizedErrorResponseInterceptor(error) { + statusList.push(response?.status); + const limit = await this.getAllowed401Errors(); + const code = `repeated_401`; +- if (statusList.length > limit) { ++ if (statusList.length > 3) { + this.logger.error('Signing user out due to repeated 401 errors', { + limit, + });
add patch file
add patch file
dce05d0f66ff5f2c761fd7df87bb5f4392c02955
--- package-lock.json @@ -4888,9 +4888,9 @@ "integrity": "sha512-YRNp3VcfzWTyDZt6h5hAUK5XTzUrblOZOWUclor4ht/g4E5Oo2sMF8rV5swXlB3QdSQUZwSsU60b01veuR3o6g==" }, "@walmart/schedule-mini-app": { - "version": "0.17.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.17.0.tgz", - "integrity": "sha512-NwziPoY+mP7bHUNPGVUjxQSZBl03dXoWf6gNFqKylQcAd6Lcyn4QM5mCJMQpeT9CCkWru/HSC+5OnzWdmoZLDg==", + "version": "0.18.0", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.18.0.tgz", + "integrity": "sha512-xY37ds1djWrWvYliBzac5tf2kWRKIFDIsYFLmKP1tp8j6q1A0MsB2zzdrZcYXa9P16mVo5EcyE+ofq+h/zFbow==", "requires": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.2.17",
Bump schedule-mini-app vers in package-lock
Bump schedule-mini-app vers in package-lock
0821948f38a32dd45ae28d4ac9a95aa660a4bfb6
--- packages/me-at-walmart-container/__tests__/services/logger.test.ts @@ -69,11 +69,10 @@ import { SESSION_ID } from '../../src/session'; }); test("should log error messages and default missing message param to 'N/A'", () => { - console.warn = jest.fn(); - + const warnSpy = jest.spyOn(console, 'warn').mockImplementation(()=> {}) loggerClient.error("Error message", { key: "value" }); - expect(console.warn).toHaveBeenCalledWith( + expect(warnSpy).toHaveBeenCalledWith( `Logger.error called without message param for Logger: test-logger. This is required for error logging.` ); expect(mockLogger.error).toHaveBeenCalledWith("Error message", { message: "N/A", key: "value" }); --- packages/me-at-walmart-container/src/services/logger.ts @@ -196,4 +196,4 @@ export {LoggerLevel}; export type LogLevelConfig = TLogLevel; export type LoggerConfig = TConfig; export type LoggerCloneConfig = LoggerConfig & {fields?: TFields}; -export type LoggerUserInfo = TUserInfo; \ No newline at end of file +export type LoggerUserInfo = TUserInfo;
fixed test issues in packages/me-at-walmart-container/__tests__/services/logger.test.ts
fixed test issues in packages/me-at-walmart-container/__tests__/services/logger.test.ts
840d2660a0926c9f80c0339927352c89989e5c9f
--- targets/US/package.json @@ -147,7 +147,7 @@ "@walmart/schedule-mini-app": "1.13.0", "@walmart/shelfavailability-mini-app": "1.5.40", "@walmart/shop-gnfr-mini-app": "1.0.137", - "@walmart/sidekick-mini-app": "4.168.18", + "@walmart/sidekick-mini-app": "4.168.19", "@walmart/store-feature-orders": "1.27.9", "@walmart/taskit-mini-app": "5.8.16", "@walmart/time-clock-mini-app": "2.448.1", --- yarn.lock @@ -7350,7 +7350,7 @@ __metadata: "@walmart/schedule-mini-app": "npm:1.13.0" "@walmart/shelfavailability-mini-app": "npm:1.5.40" "@walmart/shop-gnfr-mini-app": "npm:1.0.137" - "@walmart/sidekick-mini-app": "npm:4.168.18" + "@walmart/sidekick-mini-app": "npm:4.168.19" "@walmart/store-feature-orders": "npm:1.27.9" "@walmart/taskit-mini-app": "npm:5.8.16" "@walmart/time-clock-mini-app": "npm:2.448.1" @@ -8245,9 +8245,9 @@ __metadata: languageName: node linkType: hard -"@walmart/sidekick-mini-app@npm:4.168.18": - version: 4.168.18 - resolution: "@walmart/sidekick-mini-app@npm:4.168.18" +"@walmart/sidekick-mini-app@npm:4.168.19": + version: 4.168.19 + resolution: "@walmart/sidekick-mini-app@npm:4.168.19" peerDependencies: "@apollo/client": "*" "@expo/config-plugins": 7.2.2 @@ -8266,7 +8266,7 @@ __metadata: react: "*" react-native: "*" redux: "*" - checksum: 10c0/dc2edada57433492c58b7b00adf17822ff0f49bb1c835371e6103c51ca55001c9442d3b2bca80842fa8821dd869bbc4139d1be7a3cffa3327d4d54302c49194c + checksum: 10c0/9bc311af7fda80a5edf9b66c0084ea1c034ac6955618a3e1932644e8a5183bbb6a28d5678cead5ad854bd7898bbd7931e469d04b86d98448313126f2af18fbb6 languageName: node linkType: hard
fix: inbox version update
fix: inbox version update
15d41cb2f689c74221e56ccd570328b765891459
--- package.json @@ -129,7 +129,7 @@ "@walmart/payrollsolution_miniapp": "0.147.26", "@walmart/persona-hub": "0.3.3", "@walmart/price-changes-mini-app": "1.12.7", - "@walmart/profile-feature-app": "2.0.2-UPV2MyWalmart.0", + "@walmart/profile-feature-app": "2.0.2-UPV2MyWalmart.2", "@walmart/react-native-barcode-builder": "^1.0.1", "@walmart/react-native-cookies": "1.0.1", "@walmart/react-native-encrypted-storage": "~1.1.3", --- yarn.lock @@ -8675,7 +8675,7 @@ __metadata: "@walmart/payrollsolution_miniapp": "npm:0.147.26" "@walmart/persona-hub": "npm:0.3.3" "@walmart/price-changes-mini-app": "npm:1.12.7" - "@walmart/profile-feature-app": "npm:2.0.2-UPV2MyWalmart.0" + "@walmart/profile-feature-app": "npm:2.0.2-UPV2MyWalmart.2" "@walmart/react-native-barcode-builder": "npm:^1.0.1" "@walmart/react-native-cookies": "npm:1.0.1" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" @@ -9089,9 +9089,9 @@ __metadata: languageName: node linkType: hard -"@walmart/profile-feature-app@npm:2.0.2-UPV2MyWalmart.0": - version: 2.0.2-UPV2MyWalmart.0 - resolution: "@walmart/profile-feature-app@npm:2.0.2-UPV2MyWalmart.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprofile-feature-app%2F-%2F%40walmart%2Fprofile-feature-app-2.0.2-UPV2MyWalmart.0.tgz" +"@walmart/profile-feature-app@npm:2.0.2-UPV2MyWalmart.2": + version: 2.0.2-UPV2MyWalmart.2 + resolution: "@walmart/profile-feature-app@npm:2.0.2-UPV2MyWalmart.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprofile-feature-app%2F-%2F%40walmart%2Fprofile-feature-app-2.0.2-UPV2MyWalmart.2.tgz" peerDependencies: "@react-navigation/material-top-tabs": ">=6.0.0" "@react-navigation/native": ">=6.0.8" @@ -9120,7 +9120,7 @@ __metadata: react-redux: ">=8.0.4" redux: ">=4.2.1" wfm-allspark-data-library: ^3.3.0 - checksum: 10c0/02c77c1f6830c0c098305bf1683c895de08f0f61f7c9bfa4d84024c8804d4bd8442969291833bdedcd1025059b2cb71147a9df6bb623de8193e03872919c03ac + checksum: 10c0/934714e159117ac1e352ed4f028e64fd350143fa315ee43f774fbfebad99a45dfcdae9bfb7fa7a6d21b40af71788ae57c58432abb3d91e1c790995d73d25a234 languageName: node linkType: hard
fix(up2): bump profile-feature-app for header fix (#4345)
fix(up2): bump profile-feature-app for header fix (#4345) * feat(upv2): OPIF-192986 adding new unified profile V2 feature * chore: OPIF-192986 updating allspark-foundation and allspark-utils * chore: OPIF-192986 update MainStackNav snapshot * feat(upv2): OPIF-192986 update with new expo image libraries * refactor(learning): OPIF-192986 revert learning changes in PR * feat(profile): OPIF-192986 updated profile package * feat(upv2): OPIF-192986 update packages * feat(upv2): update profile package * feat(upv2): update packages for upv2 bug fixes * feat(upv2): update time off widget * feat(upv2): update mini apps for profile * feat(ln): Updated @walmart/learning-mini-app to 20.0.64 * feat(upv2): update attendance-mini-app with bugfix * feat(upv2): update profile-feature-app with bugfixes from demo * feat(learning): bump @walmart/learning-mini-app for bugfix * feat(upv2): bump profile-feature-app fixes save issue * chore(upv2): remove learning mini-app changes * chore(upv2): revert learning package changes * chore(upv2): revert schedule and attendance package changes * chore(upv2): clean up yarn.lock file * fix(up2): bump profile-feature-app for header fix * feat(upv2): bump profile-feature-app to fix consumer ID --------- Co-authored-by: Rashad Ahmed <Rashad.Ahmed@walmart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
750b8ad7c26b67407049c805c3bc585cf9323682
--- packages/allspark-foundation-hub/__tests__/HubFeature/__snapshots__/TeamListItem.test.tsx.snap @@ -229,7 +229,7 @@ exports[`TeamListItem renders list item for team selection correctly 1`] = ` } > <View - accessibilityLabel=" checkbox" + accessibilityLabel=" checkboxunchecked" accessibilityState={ { "busy": undefined,
Updating snapshot
Updating snapshot
f1c3910cab5cdbb530103754b6e514c2bd7c7097
--- packages/allspark-foundation/src/Components/Onboarding/TeamSelection/types.ts @@ -34,11 +34,6 @@ export type Area = | 'Pharmacy' | 'Stocking' | 'Vision Center'; - -export interface TeamSelectionProps { - // handleCancel: () => void; - // handleSave: () => void; -} export interface TeamSelectionListItemProps { teamName: Team; isLastListItem: boolean; @@ -68,8 +63,6 @@ export interface TeamSelectionListProps { selectedTeamIds: string[]; handleSelectSingle: (teamName: Team) => void; handleSelectAll: () => void; - // handleCancelButton: () => void; - // handleSaveButton: () => void; } export interface ListHeaderProps {
Removing commented types
Removing commented types
3903ee314a6660106f47ffa2056a55b2dc530123
--- package.json @@ -82,7 +82,7 @@ "@types/redux-mock-store": "^1.0.2", "@walmart/allspark-authentication": "6.4.1", "@walmart/allspark-foundation": "^6.32.0", - "@walmart/allspark-foundation-hub": "1.10.0-beta.4782+cf85748", + "@walmart/allspark-foundation-hub": "1.10.0-beta.4786+24314b58", "@walmart/allspark-graphql-client": "6.3.29", "@walmart/allspark-http-client": "6.3.29", "@walmart/allspark-utils": "6.5.1", --- yarn.lock @@ -6009,9 +6009,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4782+cf85748": - version: 1.10.0-beta.4782 - resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4782::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4782.tgz" +"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4786+24314b58": + version: 1.10.0-beta.4786 + resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4786::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4786.tgz" peerDependencies: "@react-navigation/native": 6.x "@walmart/allspark-foundation": ">=6.27" @@ -6021,7 +6021,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/463642b542a791319af37a80bd74cee265a411fa6e541fb399df183d9320402b4738ae6232fc3ebd75d669e5b41dddc10efb002560ee3b50fb25b4309da375d9 + checksum: 10c0/08d7eb22978217c37746bde51e0d7003e5235d014d2203dde43721572e42a12d10243580825e9b8eb01b5c886bd95a3599c922da0db460145f47fe9e2711e372 languageName: node linkType: hard @@ -6200,7 +6200,7 @@ __metadata: "@types/redux-mock-store": "npm:^1.0.2" "@walmart/allspark-authentication": "npm:6.4.1" "@walmart/allspark-foundation": "npm:^6.32.0" - "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4782+cf85748" + "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4786+24314b58" "@walmart/allspark-graphql-client": "npm:6.3.29" "@walmart/allspark-http-client": "npm:6.3.29" "@walmart/allspark-utils": "npm:6.5.1"
feat(ui): update foundation hub version
feat(ui): update foundation hub version
8f48965caba5860e72ebe9bad3d6c2ffbe60b8a4
--- package.json @@ -135,7 +135,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.15.5", + "@walmart/allspark-foundation": "6.15.6", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-utils": "~6.5.0", --- targets/US/package.json @@ -77,7 +77,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.1", "@walmart/allspark-cope-key-listener": "0.0.17", - "@walmart/allspark-foundation": "6.15.5", + "@walmart/allspark-foundation": "6.15.6", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -5679,9 +5679,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.15.5": - version: 6.15.5 - resolution: "@walmart/allspark-foundation@npm:6.15.5" +"@walmart/allspark-foundation@npm:6.15.6": + version: 6.15.6 + resolution: "@walmart/allspark-foundation@npm:6.15.6" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -5772,7 +5772,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/909d03f28c5c7691c1df165193511da0712995cb0ad2b113c2d8479d18a5783a5d377df72689ccb2275dd2096e8cb588d1505dd6e5841ec012d78283d3bd7eaf + checksum: 10c0/de6bc47524a42873ea8146396f9d8e396c28cb84db990bc1b8450ee58b06253b7fe5e2a469627b69595d146725b3dac2751d064da94398b76c38a2d71fae9374 languageName: node linkType: hard @@ -7055,7 +7055,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.17" - "@walmart/allspark-foundation": "npm:6.15.5" + "@walmart/allspark-foundation": "npm:6.15.6" "@walmart/allspark-graphql-client": "npm:~6.3.20" "@walmart/allspark-http-client": "npm:~6.3.20" "@walmart/allspark-neon-core": "npm:0.1.31"
chore: bump foundation for translation change language fix
chore: bump foundation for translation change language fix
999c706508a2027878b195719eb90aae6686fc82
--- package.json @@ -100,7 +100,7 @@ "@walmart/core-utils": "6.1.4", "@walmart/core-widget-registry": "6.1.4", "@walmart/counts-component-miniapp": "0.1.11", - "@walmart/emergency-mini-app": "1.27.2", + "@walmart/emergency-mini-app": "1.27.4", "@walmart/exception-mini-app": "1.8.3", "@walmart/facilities-management-miniapp": "0.11.7", "@walmart/feedback-all-spark-miniapp": "0.9.63", --- yarn.lock @@ -5978,9 +5978,9 @@ __metadata: languageName: node linkType: hard -"@walmart/emergency-mini-app@npm:1.27.2": - version: 1.27.2 - resolution: "@walmart/emergency-mini-app@npm:1.27.2" +"@walmart/emergency-mini-app@npm:1.27.4": + version: 1.27.4 + resolution: "@walmart/emergency-mini-app@npm:1.27.4" dependencies: "@walmart/allspark-utils": "npm:^1.6.5" "@walmart/core-widget-registry": "npm:^0.6.6" @@ -5995,7 +5995,7 @@ __metadata: react-native: ^0.67.4 react-redux: ^7.2.1 redux: ^4.1.2 - checksum: 10c0/6374b0833c05fde88b7ed5e1a29006072efbe05faa20b4728f0f59bfcca845920b5823efd7d22cc90efbfc8475f4eb930ece6a21b024600c43bfdca07472661e + checksum: 10c0/908d41f91725fc571ad0c60c114227448d501c4d9211181a4e903d3cbd4abfc0a87c50415d493de0faaab475d466b7ccb757bc28fcc89ae29e11ed3f048a0c40 languageName: node linkType: hard @@ -7837,7 +7837,7 @@ __metadata: "@walmart/core-utils": "npm:6.1.4" "@walmart/core-widget-registry": "npm:6.1.4" "@walmart/counts-component-miniapp": "npm:0.1.11" - "@walmart/emergency-mini-app": "npm:1.27.2" + "@walmart/emergency-mini-app": "npm:1.27.4" "@walmart/exception-mini-app": "npm:1.8.3" "@walmart/facilities-management-miniapp": "npm:0.11.7" "@walmart/feedback-all-spark-miniapp": "npm:0.9.63"
emergency version updated
emergency version updated
f2cb3acef56ab3b9db1417b0d6d86e382c89be4b
--- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -494,6 +494,7 @@ export const MainStackNav = () => { {ExceptionMiniApp.buildAllScreens({ Navigator: MainStack as any, })} + {FacilitiesFeature.buildAllScreens({ Navigator: MainStack as any, })}
feat(ui): update mainstack nav test
feat(ui): update mainstack nav test
88e71be3f83739a4604c4504e5e2dc82d8fc355c
--- __tests__/navigation/AssociateHallwayNav/SideMenuContentTest.tsx @@ -6,7 +6,6 @@ import {DrawerActions} from '@react-navigation/native'; import {useDrawerStatus} from '@react-navigation/drawer'; import {authActions, User} from '@walmart/redux-store'; -import {MyTeamHooks} from '@walmart/texting-mini-app'; import {useTelemetry} from '@walmart/core-services/Telemetry'; import appJson from '../../../app.json'; --- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx @@ -2,7 +2,6 @@ import React from 'react'; import {useSelector} from 'react-redux'; import {create} from 'react-test-renderer'; import {navigate} from '@walmart/react-native-shared-navigation'; -import {MyTeamHooks} from '@walmart/texting-mini-app'; import { renderTabBarButton, renderTabBarIcon,
fix lint
fix lint
17992e7cb5d7e04857443b2e9c8f80b30f766082
--- packages/allspark-foundation-hub/src/HubFeature/Store/Common/WorkHub.ts @@ -29,7 +29,7 @@ export interface WorkHubWidgetProps { export const WORK_HUB_KEY = 'Me@Walmart.ManagerExperience.Work'; export const WORK_HUB_CCM_NAMESPACE = 'sidekick'; -export const WORK_HUB_SCREEN_NAME = 'sidekick'; +export const WORK_HUB_SCREEN_NAME = 'Sidekick.WorkTabs'; /** * Component container for Work Hub Manager experience. */
Update team hub and work hub types
Update team hub and work hub types
59f92be0a63ae634e1f9992204bd4c5670e653b7
--- package-lock.json @@ -79,7 +79,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", - "@walmart/taskit-mini-app": "2.24.4", + "@walmart/taskit-mini-app": "2.24.5", "@walmart/time-clock-mini-app": "2.49.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", @@ -6038,9 +6038,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "2.24.4", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.4.tgz", - "integrity": "sha512-Jy9FkmUWwmZ5W5FaciZLVbS36S2hfq1/1zBiH0jIybeikxDdCGHrz7Aa4bgs1R+1bD1lRO4AolOneU3rwGQs4Q==", + "version": "2.24.5", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.5.tgz", + "integrity": "sha512-ghaWpjxOIAdoSoW76mI9kYV/LBtfyAWdxMm4XygxfDDixjg9bPRiIj4VDBeQOGVAo37HAvAkYtbYvpLxkCiePg==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -25346,9 +25346,9 @@ "integrity": "sha512-6P9nNTvcS59vzeWoi2JKT4ldRTQgMShlzThbbagd6PzbPkOS+M2Tx009eR8GGL5YNwxUP1n3PKmCudppwE0J+w==" }, "@walmart/taskit-mini-app": { - "version": "2.24.4", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.4.tgz", - "integrity": "sha512-Jy9FkmUWwmZ5W5FaciZLVbS36S2hfq1/1zBiH0jIybeikxDdCGHrz7Aa4bgs1R+1bD1lRO4AolOneU3rwGQs4Q==" + "version": "2.24.5", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.24.5.tgz", + "integrity": "sha512-ghaWpjxOIAdoSoW76mI9kYV/LBtfyAWdxMm4XygxfDDixjg9bPRiIj4VDBeQOGVAo37HAvAkYtbYvpLxkCiePg==" }, "@walmart/tcnumber": { "version": "2.3.3", --- package.json @@ -121,7 +121,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", - "@walmart/taskit-mini-app": "2.24.4", + "@walmart/taskit-mini-app": "2.24.5", "@walmart/time-clock-mini-app": "2.49.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0",
Updating taskIt version to 2_24_5
Updating taskIt version to 2_24_5
b76e7071f7d4ec01399a2a0af33fef213197840d
--- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/Component/TeamSelectionListItem.tsx @@ -43,7 +43,7 @@ export const TeamSelectionListItem = ({ style={styles.teamInfoContainer} > <TeamImage - source={{ uri: images[teamName] }} + source={{ uri: images[teamName]?.uri }} style={styles.teamImage} resizeMode='contain' /> --- packages/allspark-foundation-hub/src/HubFeature/Onboarding/TeamSelection/images.tsx @@ -1,48 +1,98 @@ -export const images: Record<any, string> = { - 'Admin & Support': - 'https://i5-me.walmartimages.com/images/teams/totalstore-team-427a5cddc7.png', - 'Apparel': - 'https://i5-me.walmartimages.com/images/teams/apparel-team-3a81ffccf4.png', - 'Asset Protection': - 'https://i5-me.walmartimages.com/images/teams/assetprotection-team-408964d173.png', - 'Auto Care Center': - 'https://i5-me.walmartimages.com/images/teams/autocarecenter-team-6c77dfd39f.png', - 'Deli & Bakery': - 'https://i5-me.walmartimages.com/images/teams/delibakery-team-9aca808f6d.png', - 'Digital': - 'https://i5-me.walmartimages.com/images/teams/digital-team-330e13ad96.png', - 'Digital Overnight': - 'https://i5-me.walmartimages.com/images/teams/digital-team-330e13ad96.png', - 'Entertainment': - 'https://i5-me.walmartimages.com/images/teams/entertainment-team-6dd2ca6713.png', - 'Food & Consumables': - 'https://i5-me.walmartimages.com/images/teams/foodconsumeables-team-d27ecbdead.png', - 'Front End': - 'https://i5-me.walmartimages.com/images/teams/frontend-team-e6044e9791.png', - 'Fuel': - 'https://i5-me.walmartimages.com/images/teams/fuel-team-1eeec3363a.png', - 'Hardlines': - 'https://i5-me.walmartimages.com/images/teams/hardlines-team-7c6dca6bb7.png', - 'Health & Beauty': - 'https://i5-me.walmartimages.com/images/teams/pharmacy-team-a31d58c160.png', - 'Home': - 'https://i5-me.walmartimages.com/images/teams/home-team-24f5f53a8a.png', - 'Management': - 'https://i5-me.walmartimages.com/images/teams/totalstore-team-427a5cddc7.png', - 'Meat & Produce': - 'https://i5-me.walmartimages.com/images/teams/meatproduce-team-b8d499d1e1.png', - 'Pharmacy': - 'https://i5-me.walmartimages.com/images/teams/pharmacy-team-a31d58c160.png', - 'Remodel': - 'https://i5-me.walmartimages.com/images/teams/remodel-team-821a5c7567.png', - 'Seasonal': - 'https://i5-me.walmartimages.com/images/teams/seasonal-team-726ffbf6f6.png', - 'Stocking Day 1': - 'https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png', - 'Stocking Day 2': - '.https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png', - 'Stocking Overnight': - 'https://i5-me.walmartimages.com/images/teams/stocking-team-2bdf52809b.png', - 'Vision Center': - 'https://i5-me.walmartimages.com/images/teams/visioncenter-team-bd33a2aa39.png', +export const images: Record<any, { uri: string; blurhash: string }> = { + 'Admin & Support': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png', + blurhash: 'KyL}88t7-oact7xv_4ofbI', + }, + 'Apparel': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-apparel-8c318b96d1.png', + blurhash: 'KuQlzhtn~pb{nNV?.7axD*', + }, + 'Asset Protection': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-assetprotection-667834ffc0.png', + blurhash: 'KhSYmiyE*0s*WYWE%$ROIT', + }, + 'Auto Care Center': { + uri: 'https://i5-me.walmartimages.com/images/teams/auto-care-center-mgr-exp-03bf6ac83d.png', + blurhash: 'KuP%O:t7-;t7t7WB~qayIU', + }, + 'Deli/Bakery': { + uri: 'https://i5-me.walmartimages.com/images/teams/deli-and-bakery-mgr-exp-1fbe7c4976.png', + blurhash: 'K%P$ju%Nx^%hWAjY.TWAWA', + }, + 'Digital': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-digital-7738b264bf.png', + blurhash: 'KYQck?_1_4^*IuMx?aIVIV', + }, + 'Digital Overnight': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-digital-7738b264bf.png', + blurhash: 'KYQck?_1_4^*IuMx?aIVIV', + }, + 'Entertainment': { + uri: 'https://i5-me.walmartimages.com/images/teams/entertainment-mgr-exp-e26362ff74.png', + blurhash: 'KRQTGy4;^*R+IokC~U-SIp', + }, + 'Food/Consumables': { + uri: 'https://i5-me.walmartimages.com/images/teams/food-consumables-mgr-exp-792b257616.png', + blurhash: 'KrSrDdtQpft2ayo#u5VtVr', + }, + 'Front End': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-frontend-280d25ffc2.png', + blurhash: 'KUPZy2xu~p?bt7IU~pRjIU', + }, + 'Fuel': { + uri: 'https://i5-me.walmartimages.com/images/teams/fuel-mgr-exp-ba49035dfd.png', + blurhash: 'KNR:Nc%M^#xbIoxt~Ta#4;', + }, + 'Hardlines': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-hardlines-4d16bea505.png', + blurhash: 'KMRftdET-;?ExVX9~p${Mx', + }, + 'Health & Beauty': { + uri: 'https://i5-me.walmartimages.com/images/teams/health-and-beauty-mgr-exp-a55a6f0206.png', + blurhash: 'KkPjc0t1^n%MWDkB^-RnIm', + }, + 'Home': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-home-d937192739.png', + blurhash: 'KZTIaSo~lCpejYZ}b{e.iv', + }, + 'Management': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png', + blurhash: 'KyL}88t7-oact7xv_4ofbI', + }, + 'Meat/Produce': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-meatproduce-a5965a9074.png', + blurhash: 'KlRM6ytR?^Sin$t7.9jFMw', + }, + 'Pharmacy': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-pharmacy-95002883d0.png', + blurhash: 'KKSF@V~UOux^Rji^-.Ipr=', + }, + 'Remodel': { + uri: 'https://i5-me.walmartimages.com/images/teams/remodel-mgr-exp-6eaa5f7662.png', + blurhash: 'KkSO~;oe*0%2ayRkpJayiv', + }, + 'Sales Floor': { + uri: 'https://i5-me.walmartimages.com/images/teams/salesfloor-mgr-exp-e5d8982b5e.png', + blurhash: 'K$OD;BfQ_1skfQbJ~UfQIW', + }, + 'Seasonal': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-seasonal-191e2d4d0f.png', + blurhash: 'KSQ0dW^,~q_1tS9G%3kBWA', + }, + 'Stocking Day 1': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-stockingday-9904ffa2b6.png', + blurhash: 'KSSP2@yFyZtSofRi%%ROVr', + }, + 'Stocking Day 2': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-stockingday-9904ffa2b6.png', + blurhash: 'KSSP2@yFyZtSofRi%%ROVr', + }, + 'Stocking ON': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-stockingovernight-21b4d8318e.png', + blurhash: 'KRR.[WyE.T-okCM{*0VrR4', + }, + 'Vision Center': { + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-vision-85480258cb.png', + blurhash: 'KXR:A^%h.AbIj?j??aM|M{', + }, };
Update image changes
Update image changes
41a4d21b89ff5ea4a8c922859d21cbb86bebeb19
--- graphql.yml @@ -24,7 +24,6 @@ applications: - 'v3' - 'Drop14' - name: 'GetTeamById' - hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v2' @@ -53,7 +52,6 @@ applications: - 'v3' - 'Drop14' - name: 'GetTeamById' - hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v2' @@ -82,7 +80,6 @@ applications: - 'v3' - 'Drop14' - name: 'GetTeamById' - hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v2' --- graphql.yml @@ -24,7 +24,6 @@ applications: - 'v3' - 'Drop14' - name: 'GetTeamById' - hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v2' @@ -53,7 +52,6 @@ applications: - 'v3' - 'Drop14' - name: 'GetTeamById' - hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v2' @@ -82,7 +80,6 @@ applications: - 'v3' - 'Drop14' - name: 'GetTeamById' - hash: '8a0ff1bceff296ade72cd86c88273c0924510d42ff6bd3487819814045781f31' queryTemplate: 'src/queries/getTeamById.graphql' tags: - 'v2'
Pulled from develop
Pulled from develop
c1c3aec4b7fd0a9b78e9435ba26caa2b5ce54d52
--- package-lock.json @@ -5287,9 +5287,9 @@ } }, "@walmart/mod-flex-mini-app": { - "version": "1.0.0", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.0.0.tgz", - "integrity": "sha512-8Uk8Gri2BkVBk1gQDjjfDKJEpDG8RMtKZlBD0lO0QTXUp9MlJHFCvFNPVLE+o9fXRt8srxKdNqBkUOBlNrC6qA==" + "version": "1.1.0", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.1.0.tgz", + "integrity": "sha512-NGsMRu+oM/pGJ7OxcCfKsj5QGpSSpUZVtWTlGxksR0iAAO13ktuOAALRkiaX557AYMoJ/stUjUVQcaA9dxDK9w==" }, "@walmart/moment-walmart": { "version": "1.0.4", --- package.json @@ -95,7 +95,7 @@ "@walmart/manager-approvals-miniapp": "0.0.62", "@walmart/me-field-mini-app": "1.1.11", "@walmart/metrics-mini-app": "0.9.5", - "@walmart/mod-flex-mini-app": "1.0.0", + "@walmart/mod-flex-mini-app": "1.1.0", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.125.8", "@walmart/price-changes-mini-app": "^1.4.6",
Update mod-flex-mini-app to 1.1.0
Update mod-flex-mini-app to 1.1.0
bcbc092f14b18758001e30fb9ce9a731db608709
--- ios/Podfile.lock @@ -1319,7 +1319,7 @@ PODS: - React-Core - react-native-safe-area-context (4.7.2): - React-Core - - react-native-scanner-3.0 (0.4.4): + - react-native-scanner-3.0 (0.5.1): - Firebase/Analytics - React - ScanditBarcodeCapture (= 6.14.0) @@ -2139,7 +2139,7 @@ SPEC CHECKSUMS: react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe react-native-safe-area-context: 7aa8e6d9d0f3100a820efb1a98af68aa747f9284 - react-native-scanner-3.0: ccbf9b7070e1674943a023427f274ca16af8af07 + react-native-scanner-3.0: 0f98e9de9623c293ebbff5aae47555fadc720f75 react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-view-shot: 792829857bbb23a9c8acdad9a640554bdee397a3 --- package-lock.json @@ -75,7 +75,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.34.8", - "@walmart/react-native-scanner-3.0": "0.4.4", + "@walmart/react-native-scanner-3.0": "0.5.1", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.1", @@ -9525,9 +9525,9 @@ } }, "node_modules/@walmart/react-native-scanner-3.0": { - "version": "0.4.4", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.4.4.tgz", - "integrity": "sha512-ghMNIwHmEAgXYY7fsb0RC6VNmA6NI2BFQ7V7byPatTs/qDVg32h+TvMSf+LvWDtGrfXz4HSiylFmvxrzoe55Ug==", + "version": "0.5.1", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.5.1.tgz", + "integrity": "sha512-IuEV2S2+7vIEBwo4zZqKFEnSP2493OOttHGDmBUiZVLlKX/sSqZrjBhrIyvKLa7rXHKl5tGzN0VnzAYkf4iEnw==", "license": "ISC", "peerDependencies": { "react-native": ">=0.47.1" @@ -29418,7 +29418,7 @@ "requires": { "mv": "~2", "safe-json-stringify": "~1", - "uuid": "^8.0.0" + "uuid": "^3.3.2" } }, "@expo/cli": { @@ -30108,7 +30108,7 @@ "md5": "^2.2.1", "node-fetch": "^2.6.1", "remove-trailing-slash": "^0.1.0", - "uuid": "^8.3.2" + "uuid": "^3.3.2" } }, "@expo/sdk-runtime-versions": { @@ -33480,9 +33480,9 @@ "integrity": "sha512-7+gViTrlsU5fMj0XbgJMCyLQty2Vbw5+lkDHHQOuEPs/jgkd2rjQggeS+8WPAnc/AI9AVnieKHjl+DZq2G+EzQ==" }, "@walmart/react-native-scanner-3.0": { - "version": "0.4.4", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.4.4.tgz", - "integrity": "sha512-ghMNIwHmEAgXYY7fsb0RC6VNmA6NI2BFQ7V7byPatTs/qDVg32h+TvMSf+LvWDtGrfXz4HSiylFmvxrzoe55Ug==" + "version": "0.5.1", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.5.1.tgz", + "integrity": "sha512-IuEV2S2+7vIEBwo4zZqKFEnSP2493OOttHGDmBUiZVLlKX/sSqZrjBhrIyvKLa7rXHKl5tGzN0VnzAYkf4iEnw==" }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", --- package.json @@ -116,7 +116,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.34.8", - "@walmart/react-native-scanner-3.0": "0.4.4", + "@walmart/react-native-scanner-3.0": "0.5.1", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.1",
feature(release): react-native-scanner-3.0 version bum up to 0.5.1
feature(release): react-native-scanner-3.0 version bum up to 0.5.1
48854cefcbb3513706a586724d825e23687def9e
--- package.json @@ -77,7 +77,7 @@ "@types/redux-mock-store": "^1.0.2", "@walmart/allspark-authentication": "6.4.1", "@walmart/allspark-foundation": "^6.32.0", - "@walmart/allspark-foundation-hub": "1.10.0-beta.4766+f3003bb5", + "@walmart/allspark-foundation-hub": "1.10.0-beta.4771+808b12d0", "@walmart/allspark-graphql-client": "6.3.29", "@walmart/allspark-http-client": "6.3.29", "@walmart/allspark-utils": "6.5.1", --- src/screens/HomeScreen.tsx @@ -87,7 +87,7 @@ export const HomeScreen = AssociateExpHubFeature.createScreen(() => { </LocalHeader> <View style={styles.hubContainer}> - <HubFactory useWidgetManagement={false} /> + <HubFactory useWidgetManagement={true} /> </View> </View> </> --- yarn.lock @@ -6009,9 +6009,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4766+f3003bb5": - version: 1.10.0-beta.4766 - resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4766::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4766.tgz" +"@walmart/allspark-foundation-hub@npm:1.10.0-beta.4771+808b12d0": + version: 1.10.0-beta.4771 + resolution: "@walmart/allspark-foundation-hub@npm:1.10.0-beta.4771::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.10.0-beta.4771.tgz" peerDependencies: "@react-navigation/native": 6.x "@walmart/allspark-foundation": ">=6.27" @@ -6021,7 +6021,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/360618233e65e80d171e054fd6a8a834cb4be32912959fa15efeb757317c5e9d322090267570010c592fb3e8934721932f68b60748590970095b2f875e0c47e1 + checksum: 10c0/5de78b1ec73b93feb34d6a27835763b7b5f8991019dbb86005ab8add44da22d94fc8483cd5f6a043f30ad1340757c4356fa93afea96c79cec883879f0bc62af6 languageName: node linkType: hard @@ -6200,7 +6200,7 @@ __metadata: "@types/redux-mock-store": "npm:^1.0.2" "@walmart/allspark-authentication": "npm:6.4.1" "@walmart/allspark-foundation": "npm:^6.32.0" - "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4766+f3003bb5" + "@walmart/allspark-foundation-hub": "npm:1.10.0-beta.4771+808b12d0" "@walmart/allspark-graphql-client": "npm:6.3.29" "@walmart/allspark-http-client": "npm:6.3.29" "@walmart/allspark-utils": "npm:6.5.1"
feat(ui): update allspark-foundation-hub version
feat(ui): update allspark-foundation-hub version
2b516de9e5f10241dc184b4afda468345be38b40
--- .github/pull_request_template.md @@ -7,14 +7,12 @@ PR/Template Process for Allspark-core: [Link](https://confluence.walmart.com/pag ## Links to JIRA tickets: -## Please describe the changes, problems and solutions this PR is addressing: -## For Core app changes -Fill in the below sections if this PR has changes to the ***Core app***. +## Please describe the changes, problems and solutions this PR is addressing: -Skip to ***Mini-App section*** if no changes to Core -#### Types of changes +## App changes +### Types of changes What types of changes does your code introduce to Core? _Put an `x` in the boxes that apply_ @@ -24,22 +22,20 @@ _Put an `x` in the boxes that apply_ - [ ] Build scripts (Changes to looper files or other scripts supporting the build) - [ ] Documentation Update (if none of the other choices apply) -#### Checklist +### Checklist - [ ] Have you written unit tests for this? -- [ ] Does it cover analytics events? If yes, please list them. +- [ ] Please provide a **screenshot of code coverage** for the mini app node module. Minimum 90% coverage required. +- [ ] Have you updated the [Firebase events list](https://confluence.walmart.com/display/ALLSPARK/All+Spark+Custom+Firebase+Events+by+Feature+App) with your mini-app's events? - [ ] Does it cover Splunk Logger events? If yes, please list them. - [ ] Are there any changes to shared Redux? -## For Mini-Apps - +### For Mini-Apps If this PR is integrating a new mini-app **_or_** updating an existing one (via version bump), fill out the following: -#### Checklist - [ ] Are all peer dependencies for your mini app included in allspark-core package.json? -- [ ] Please provide a **screenshot of code coverage** for the mini app node module. Minimum 90% coverage required. -- [ ] Have you updated the [Firebase events list](https://confluence.walmart.com/display/ALLSPARK/All+Spark+Custom+Firebase+Events+by+Feature+App) with your mini-app's events? +- [ ] If this is a new mini-app, include the onboarding documentation for your mini-app. -#### Risk level: +### Risk level: To help with review, estimate the risk level of the changes in this PR? - [ ] Low - [ ] Medium
twicking changes
twicking changes
e7c88a625b325fd13c8a8434ead59e411d261d6a
--- .gitignore @@ -94,3 +94,4 @@ yarn-error.log # yarn install-state.gz node_modules +.qodo --- packages/allspark-foundation/__tests__/FeatureRunner/screens/__snapshots__/Navigation.test.tsx.snap @@ -77,7 +77,7 @@ exports[`Navigation should render snapshot 1`] = ` } testID="ListItem-content" > - TRUE + FALSE </Text> </View> <View @@ -103,7 +103,7 @@ exports[`Navigation should render snapshot 1`] = ` accessibilityRole="image" source={ { - "testUri": "../../@walmart/gtp-shared-icons/assets/images/icons/Lock-32.png", + "testUri": "../../@walmart/gtp-shared-icons/assets/images/icons/LockOpen-32.png", } } style={ @@ -116,7 +116,7 @@ exports[`Navigation should render snapshot 1`] = ` {}, ] } - testID="LockIcon" + testID="LockOpenIcon" /> </IconButton> </View> --- packages/allspark-foundation/__tests__/Translation/modals/__snapshots__/ChangeLanguageModal.test.tsx.snap @@ -14,18 +14,6 @@ exports[`ChangeLanguageModal should render snapshot 1`] = ` "bottom", ] } - > - <Radio - UNSAFE_style={ - { - "marginBottom": 16, - } - } - checked={false} - label="English (EN)" - onPress={[Function]} - testID="English (EN)" - /> - </SafeAreaView> + /> </BottomSheet> `; --- packages/allspark-foundation/package.json @@ -47,7 +47,7 @@ "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 Auth Clock Config Components Container Core Device Environment Feature FeatureRunner GraphQL HTTP LocalStorage Location Logger Navigation Network Notification Permissions Redux Scanner Services Site Telemetry Translation User Work utils cli || true", + "clean": "yarn run clean:tsbuildinfo && rm -rf Auth Clock Config Components Container Core Device Environment Feature FeatureRunner GraphQL HTTP LocalStorage Location Logger Navigation Network node_modules Notification Permissions Redux Scanner Services Site Telemetry Translation User Work utils cli || true", "build": "yarn run clean && tsc", "link:assets": "npx react-native-asset" },
chore: update breaking snaps
chore: update breaking snaps
0d1132b4fe7cdd30ebd3c7ed216b931b832c1a1a
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.48.0", + "version": "3.0.0", "main": "dist/index.js", "files": [ "dist",
chore(ui): update roster versionto latest
chore(ui): update roster versionto latest
6f1986bff69b02a9c08992364543fdb57e46f647
--- __tests__/components/AssociateRosterItemTest.tsx @@ -1,30 +0,0 @@ -import React from 'react'; -const {AssociateRosterItem} = require('../../src/components'); -const {renderWithProviders} = require('../harness'); -const {generateMockAssociate} = require('../harness/mockData/associate'); - -describe('AssociateRosterItem', () => { - it('should not display message button if item is for the current user', () => { - //Current user is default user in mock redux store - const mockAssociate = generateMockAssociate({win: 999991234}); - const component = renderWithProviders( - <AssociateRosterItem - associate={mockAssociate} - first={false} - last={false} - />, - ); - expect(component.queryByText('Message')).toEqual(null); - }); - it('should display message button if item is not the current user', () => { - const mockAssociate = generateMockAssociate(); - const component = renderWithProviders( - <AssociateRosterItem - associate={mockAssociate} - first={false} - last={false} - />, - ); - component.getByText('Message'); - }); -}); --- __tests__/components/EmptyChannelsTest.tsx @@ -1,35 +0,0 @@ -import React from 'react'; -import {EmptyChannels} from '../../src/channels/components/EmptyChannels'; -import {renderWithProviders, simulatedUser} from '../harness'; -import {appConfigState} from '../harness/redux/mockState/appConfigState'; -import * as Linking from 'react-native/Libraries/Linking/Linking'; -import {navigate} from '@walmart/react-native-shared-navigation'; - -describe('EmptyChannels', () => { - it('renders correctly for EmptyChannels', () => { - const emptyChannels = renderWithProviders(<EmptyChannels />, { - preloadedState: appConfigState, - }); - expect(emptyChannels.getByTestId('emptyChannels')).toBeTruthy(); - }); - it('should handle code of conduct link press', async () => { - const emptyChannels = renderWithProviders(<EmptyChannels />, { - preloadedState: appConfigState, - }); - Linking.openURL.mockImplementationOnce(() => Promise.resolve()); - const linkPress = emptyChannels.getByTestId('codeOfConduct'); - - await simulatedUser.press(linkPress); - - expect(Linking.openURL).toHaveBeenCalledTimes(1); - }); - it('should navigate to Settings.TermsOfUse', async () => { - const emptyChannels = renderWithProviders(<EmptyChannels />, { - preloadedState: appConfigState, - }); - const linkPress = emptyChannels.getByTestId('termsOfUse'); - - await simulatedUser.press(linkPress); - expect(navigate).toHaveBeenCalledWith('Settings.TermsOfUse'); - }); -}); --- __tests__/components/StatusChipTest.tsx @@ -1,57 +0,0 @@ -import React from 'react'; -import {StatusChip} from '../../src/components/StatusChip'; -import {Associate} from '../../src/types'; -import {renderWithProviders} from '../harness'; - -describe('StatusChip', () => { - it('renders correctly for absent associate', () => { - const associate = { - absentData: { - absenceTypeCode: 1, - }, - } as Associate; - const component = renderWithProviders(<StatusChip associate={associate} />); - expect(component.toJSON()).toMatchSnapshot(); - }); - - it('renders correctly for tardy associate', () => { - const associate = { - absentData: { - absenceTypeCode: 2, - }, - } as Associate; - const component = renderWithProviders(<StatusChip associate={associate} />); - expect(component.toJSON()).toMatchSnapshot(); - }); - - it('renders correctly for associate on meal', () => { - const associate = { - punch: { - clockStatus: '2', - lastPunchType: '5', - }, - } as Associate; - const component = renderWithProviders(<StatusChip associate={associate} />); - expect(component.toJSON()).toMatchSnapshot(); - }); - - it('renders correctly for associate on ppto', () => { - const associate = { - punch: { - clockStatus: '4', - }, - } as Associate; - const component = renderWithProviders(<StatusChip associate={associate} />); - expect(component.toJSON()).toMatchSnapshot(); - }); - - it('renders correctly for clocked in associate', () => { - const associate = { - punch: { - clockStatus: '1', - }, - } as Associate; - const component = renderWithProviders(<StatusChip associate={associate} />); - expect(component.toJSON()).toMatchSnapshot(); - }); -}); --- __tests__/components/UnreadBadgeTest.tsx @@ -1,35 +0,0 @@ -import React from 'react'; -import {UnreadBadge} from '../../src/channels/components/UnreadBadge'; -import {renderWithProviders} from '../harness'; -import {useTextingFeatureEnabled} from '../../src/hooks'; -import {useUnread} from '../../src/channels/hooks'; - -//TODO: Need to move it to harness -jest.mock('../../src/channels/hooks', () => ({ - useUnread: jest.fn(), -})); -//TODO: Need to move it to harness -jest.mock('../../src/hooks', () => ({ - useTextingFeatureEnabled: jest.fn(), -})); - -describe('unreadBadge', () => { - it('should render component when unread is present and useTextingFeatureEnabled is true', () => { - (useTextingFeatureEnabled as jest.Mock<boolean>).mockReturnValue(true); - (useUnread as jest.Mock<number>).mockReturnValue(1); - const unreadBadge = renderWithProviders(<UnreadBadge />); - expect(unreadBadge.getByTestId('unreadBadge')).toBeTruthy(); - }); - it('should not render component when useTextingFeatureEnabled is false', () => { - (useTextingFeatureEnabled as jest.Mock<boolean>).mockReturnValue(false); - (useUnread as jest.Mock<number>).mockReturnValue(1); - const unreadBadge = renderWithProviders(<UnreadBadge />); - expect(unreadBadge.queryByTestId('unreadBadge')).toBeNull(); - }); - it('should render component when useTextingFeatureEnabled is true', () => { - (useTextingFeatureEnabled as jest.Mock<boolean>).mockReturnValue(true); - (useUnread as jest.Mock<number | null>).mockReturnValue(null); - const unreadBadge = renderWithProviders(<UnreadBadge />); - expect(unreadBadge.queryByTestId('unreadBadge')).toBeNull(); - }); -}); --- __tests__/components/__snapshots__/StatusChipTest.tsx.snap @@ -1,39 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`StatusChip renders correctly for absent associate 1`] = ` -<Tag - color="red" - variant="tertiary" -> - Absent -</Tag> -`; - -exports[`StatusChip renders correctly for associate on meal 1`] = ` -<Tag - color="blue" - variant="tertiary" -> - Meal -</Tag> -`; - -exports[`StatusChip renders correctly for associate on ppto 1`] = ` -<Tag - color="purple" - variant="tertiary" -> - PPTO -</Tag> -`; - -exports[`StatusChip renders correctly for clocked in associate 1`] = `null`; - -exports[`StatusChip renders correctly for tardy associate 1`] = ` -<Tag - color="red" - variant="tertiary" -> - Tardy -</Tag> -`;
removing unused tests
removing unused tests
4389b087a2a892c21956cbc2c801176b6ed0ed07
--- sonar-project.properties @@ -5,6 +5,6 @@ sonar.host.url=http://sonar.looper.prod.walmartlabs.com sonar.sources=src sonar.tests=__tests__ -sonar.exclusions=src/images +sonar.exclusions=src/images,src/navigation/Navigation.tsx,src/navigation/NavigationStyle.ts sonar.sourceEncoding=UTF-8 sonar.typescript.lcov.reportPaths=coverage/lcov.info
Chore/sonar config (#29)
Chore/sonar config (#29) * edited sonar properties * removed report path as sonar PR test failed. * trying sonar tests coverage to show up. * excluded navigation tests.
cda189511795b5c299276226c26f956c59fee2dd
--- package.json @@ -121,12 +121,12 @@ "@walmart/metrics-mini-app": "1.29.6", "@walmart/mod-flex-mini-app": "1.26.3", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "2.3.6", + "@walmart/money-auth-shared-components": "2.3.8", "@walmart/myteam-mini-app": "1.26.0", "@walmart/native-rfid-scanner": "4.0.22", "@walmart/onewalmart-miniapp": "1.0.27", - "@walmart/pay-stub-miniapp": "0.20.15", - "@walmart/payrollsolution_miniapp": "0.145.35", + "@walmart/pay-stub-miniapp": "0.21.4", + "@walmart/payrollsolution_miniapp": "0.147.26", "@walmart/price-changes-mini-app": "1.12.3", "@walmart/profile-feature-app": "1.138.5", "@walmart/react-native-cookies": "1.0.1", --- yarn.lock @@ -8354,12 +8354,12 @@ __metadata: "@walmart/metrics-mini-app": "npm:1.29.6" "@walmart/mod-flex-mini-app": "npm:1.26.3" "@walmart/moment-walmart": "npm:1.0.4" - "@walmart/money-auth-shared-components": "npm:2.3.6" + "@walmart/money-auth-shared-components": "npm:2.3.8" "@walmart/myteam-mini-app": "npm:1.26.0" "@walmart/native-rfid-scanner": "npm:4.0.22" "@walmart/onewalmart-miniapp": "npm:1.0.27" - "@walmart/pay-stub-miniapp": "npm:0.20.15" - "@walmart/payrollsolution_miniapp": "npm:0.145.35" + "@walmart/pay-stub-miniapp": "npm:0.21.4" + "@walmart/payrollsolution_miniapp": "npm:0.147.26" "@walmart/price-changes-mini-app": "npm:1.12.3" "@walmart/profile-feature-app": "npm:1.138.5" "@walmart/react-native-cookies": "npm:1.0.1" @@ -8685,9 +8685,9 @@ __metadata: languageName: node linkType: hard -"@walmart/money-auth-shared-components@npm:2.3.6": - version: 2.3.6 - resolution: "@walmart/money-auth-shared-components@npm:2.3.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmoney-auth-shared-components%2F-%2F%40walmart%2Fmoney-auth-shared-components-2.3.6.tgz" +"@walmart/money-auth-shared-components@npm:2.3.8": + version: 2.3.8 + resolution: "@walmart/money-auth-shared-components@npm:2.3.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmoney-auth-shared-components%2F-%2F%40walmart%2Fmoney-auth-shared-components-2.3.8.tgz" peerDependencies: "@react-navigation/drawer": ^6.6.4 "@react-navigation/native": ^6.0.0 @@ -8695,7 +8695,7 @@ __metadata: "@walmart/allspark-foundation": "*" "@walmart/core-services": ~2.0.11 "@walmart/gtp-shared-components": ^2.0.6 - checksum: 10c0/d06cb35b0e43fc331ded83b202b33f991d13946ae1a3cdbb89e51bcf1c113c00369817c700c6c7b0a9508b35e46dd0b5ed2fc13c8a8e912cfdb3a9fe2bfd1715 + checksum: 10c0/9c4837b888769e522dbac3204bd6de130156f4304102060d274964e82090ae062c3b9337cca5fec763d2bd7154207e3c9dfd09e3123051f6d517fbbe700af984 languageName: node linkType: hard @@ -8773,21 +8773,21 @@ __metadata: languageName: node linkType: hard -"@walmart/pay-stub-miniapp@npm:0.20.15": - version: 0.20.15 - resolution: "@walmart/pay-stub-miniapp@npm:0.20.15::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpay-stub-miniapp%2F-%2F%40walmart%2Fpay-stub-miniapp-0.20.15.tgz" +"@walmart/pay-stub-miniapp@npm:0.21.4": + version: 0.21.4 + resolution: "@walmart/pay-stub-miniapp@npm:0.21.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpay-stub-miniapp%2F-%2F%40walmart%2Fpay-stub-miniapp-0.21.4.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/372899a6a613459fd0be606c0ce38553a67626b7599e26fd2daa540969471a0759ecc14be0d80bffc9158df3bd7d0c23afe0b8572abad16ac3329646c5c9dabf + checksum: 10c0/7473e5640d5799a9d1a5c053a9596dfdb60148852a9ac2e284614bc355c2acca20663adbfb99baff6507f0179a54b1810117294e7fa16b2a0305ab8e38e844ca languageName: node linkType: hard -"@walmart/payrollsolution_miniapp@npm:0.145.35": - version: 0.145.35 - resolution: "@walmart/payrollsolution_miniapp@npm:0.145.35::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.145.35.tgz" +"@walmart/payrollsolution_miniapp@npm:0.147.26": + version: 0.147.26 + resolution: "@walmart/payrollsolution_miniapp@npm:0.147.26::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.147.26.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/dfa8988734a4147cfdaaeb09fbc13143220e05eb83ba0e3af65b3e288f755a0e25d5522c35dfa91cf82ff68ed00579f6893b3e5dda5fc014e1fffdfc316dca9b + checksum: 10c0/adede67fd434cf56c0aacd77bdda6ba4782bd128d91a2900150069681ac90d83e6e44f507262ec02e9d87f8aa83f65aff42170db6f5897d186d6cf14a4681840 languageName: node linkType: hard
feat(pckgs): PAYROLL-28935 payroll bump version (#4189)
feat(pckgs): PAYROLL-28935 payroll bump version (#4189) * bump version * fix(feat: fix ny live check issue): PAYROLL-28935 fix ny live check --------- Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
159459f4c53521435ed8eec6dd7ea03876c98998
--- __tests__/core/RootContainerTest.tsx @@ -17,6 +17,7 @@ jest.mock('../../src/core/analyticsInit', () => ({ initAnalyticsUserAttributes: jest.fn(), initCrashAttributes: jest.fn(), })); +jest.mock('../../src/core/httpClientInit', () => ({})); describe('RootContainer', () => { it('renders', () => { --- __tests__/core/httpClientInitTest.ts @@ -0,0 +1,49 @@ +jest.mock('@walmart/functional-components', () => ({ + defaultHttpClient: { + setConfig: jest.fn(), + }, +})); + +jest.mock('../../src/auth', () => ({ + connectedSSO: { + getFreshAccessToken: jest.fn(), + signOut: jest.fn(), + }, +})); + +import {defaultHttpClient} from '@walmart/functional-components'; +import {connectedSSO} from '../../src/auth'; +import {createRefreshTokenCallback} from '../../src/core/httpClientInit'; + +describe('module', () => { + it('calls setConfig on defaultHttpClient', () => { + expect(defaultHttpClient.setConfig).toHaveBeenCalled(); + }); +}); + +describe('createRefreshTokenCallback', () => { + const request = { + headers: {} as any, + }; + it('handles refresh success', async () => { + const token = '4321'; + (connectedSSO.getFreshAccessToken as jest.Mock).mockResolvedValueOnce( + token, + ); + const callback = createRefreshTokenCallback(connectedSSO); + await callback(request); + + expect(request.headers.authorization).toEqual(`Bearer ${token}`); + expect(connectedSSO.getFreshAccessToken).toHaveBeenCalled(); + }); + + it('handles refresh token failure', async () => { + const err = 'uh oh'; + (connectedSSO.getFreshAccessToken as jest.Mock).mockRejectedValue(err); + const callback = createRefreshTokenCallback(connectedSSO); + await callback(request); + + expect(connectedSSO.getFreshAccessToken).toHaveBeenCalled(); + expect(connectedSSO.signOut).toHaveBeenCalled(); + }); +}); --- __tests__/home/HomeTest.tsx @@ -7,13 +7,24 @@ import {useSelector} from 'react-redux'; import {Home} from '../../src/home/Home'; +jest.mock('../../src/home/testApiCall', () => ({ + callApi: jest.fn(), +})); + +import {callApi} from '../../src/home/testApiCall'; + describe('Home', () => { const mockUseSelector = useSelector as jest.Mock; it('renders with user', () => { const user = {displayName: 'test user'}; + const consumerId = '4321'; mockUseSelector.mockImplementationOnce((selector: (state: any) => any) => { - selector({user: {user}}); - return {user}; + selector({user: {data: user}}); + return {data: user}; + }); + mockUseSelector.mockImplementationOnce((selector: (state: any) => any) => { + selector({}); + return consumerId; }); let component: ReactTestRenderer; @@ -21,6 +32,7 @@ describe('Home', () => { component = create(<Home />); }); expect(component!.toJSON()).toMatchSnapshot(); + expect(callApi).toHaveBeenCalledWith(consumerId); }); it('renders without user', () => { --- src/core/httpClientInit.ts @@ -3,7 +3,7 @@ import {defaultHttpClient} from '@walmart/functional-components'; import type {ConnectedSSO} from 'react-native-connect-sso-redux'; import {connectedSSO} from '../auth'; -const createRefreshTokenCallback = (sso: ConnectedSSO) => async ( +export const createRefreshTokenCallback = (sso: ConnectedSSO) => async ( request: any, ) => { try { --- src/home/Home.tsx @@ -3,12 +3,12 @@ import {View} from 'react-native'; import {useSelector} from 'react-redux'; import {Body} from '@walmart/gtp-shared-components'; -import {SSOState} from '@walmart/redux-store'; +import {GlobalState} from '@walmart/redux-store'; import {callApi} from './testApiCall'; export const Home = () => { - const {user} = useSelector((state: any) => state.user as SSOState); + const {data: user} = useSelector((state: GlobalState) => state.user); const consumerId = useSelector((state: any) => state.envConfig?.consumerId); useEffect(() => {
adding tests
adding tests
5e2c6382e2ec7be965c7631613db596aa791bc50
--- example/src/core/home.tsx @@ -55,8 +55,8 @@ export function HomeScreen() { <Button variant="primary" UNSAFE_style={{marginBottom: 10}} - onPress={() => AllsparkNavigationClient.navigate('teamHub.onboarding')}> - Onboarding + onPress={() => AllsparkNavigationClient.navigate('teamHub.home')}> + Team Hub </Button> <Button variant="primary"
feat: reverted change to home screen
feat: reverted change to home screen
afc0333b962aaf352ebd60244fe36a5902dd0587
--- package-lock.json @@ -51,7 +51,7 @@ "@walmart/counts-component-miniapp": "0.1.5", "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.5.1", - "@walmart/facilities-management-miniapp": "0.6.64", + "@walmart/facilities-management-miniapp": "0.6.65", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", @@ -7198,9 +7198,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.6.64", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.64.tgz", - "integrity": "sha512-xKv+oBGAgXM9+am/1mLmCA+mZBvt2Sx37ZtLQDE3BUZYKCaSo6o+/t+Um85IDXL3JWZkMafpssR0NNVhbTY8/g==", + "version": "0.6.65", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.65.tgz", + "integrity": "sha512-R0Xm8rmQJNkeYdcp0TjKT1glRVd7+vzlrZeocXKhpM3lfEx+mY/ZpPaAW+5XD7wSCL2GtRd4ZfDTRr6nzEu8bg==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/cameraroll": "^4.1.2", @@ -7248,6 +7248,7 @@ "react-native-hyperlink": "0.0.22", "react-native-image-picker": "4.10.0", "react-native-image-resizer": "1.4.5", + "react-native-location-enabler": "^4.1.1", "react-native-modal": "^13.0.1", "react-native-new-snap-carousel": "^3.9.3", "react-native-pager-view": "^6.0.1", @@ -30463,9 +30464,9 @@ "integrity": "sha512-d5j7mlW+7Muw6vSZzc0WvoPbOOlF0oLkniWfAS6IP/o9SZ08Ph6NRIRAg95PWOqeW52zh7YTJZwEi24Zpaf93g==" }, "@walmart/facilities-management-miniapp": { - "version": "0.6.64", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.64.tgz", - "integrity": "sha512-xKv+oBGAgXM9+am/1mLmCA+mZBvt2Sx37ZtLQDE3BUZYKCaSo6o+/t+Um85IDXL3JWZkMafpssR0NNVhbTY8/g==" + "version": "0.6.65", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.65.tgz", + "integrity": "sha512-R0Xm8rmQJNkeYdcp0TjKT1glRVd7+vzlrZeocXKhpM3lfEx+mY/ZpPaAW+5XD7wSCL2GtRd4ZfDTRr6nzEu8bg==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.33" --- package.json @@ -92,7 +92,7 @@ "@walmart/counts-component-miniapp": "0.1.5", "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.5.1", - "@walmart/facilities-management-miniapp": "0.6.64", + "@walmart/facilities-management-miniapp": "0.6.65", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3",
Updating the fm version to 0.6.65
Updating the fm version to 0.6.65
c6014680fd4fb75c1e86b7738879682d7cef9819
--- package-lock.json @@ -43,7 +43,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.9.0", + "@walmart/emergency-mini-app": "1.10.0", "@walmart/exception-mini-app": "1.0.3", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7", @@ -4922,9 +4922,9 @@ } }, "node_modules/@walmart/emergency-mini-app": { - "version": "1.9.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.9.0.tgz", - "integrity": "sha512-TkIFItRHiJ9ANv9wKqRUYUVBTh1+eH8rwNF52tNe1PhT7qB/fBVhWAuCMBb7Sokca8ItRVNu1oE9ytM/cT6/jw==", + "version": "1.10.0", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.10.0.tgz", + "integrity": "sha512-kQGWd1Ct9j3vvz3490EJDHL4lYf0duInw5e/bqfgR3ej6M4ittgIif23TNhqgZIhYU3xxGG3iS6gGyWtHY3pQw==", "dependencies": { "@walmart/core-widget-registry": "^0.6.6" }, @@ -24835,9 +24835,9 @@ "integrity": "sha512-tk3UvKAl/VM29GwO/5uNURHnJkR/M1kq42Hn/2Xob+Ww7rY3gOHKhCTL3NytAPrZxyQco0ZyfGOGPbpy2aDnRw==" }, "@walmart/emergency-mini-app": { - "version": "1.9.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.9.0.tgz", - "integrity": "sha512-TkIFItRHiJ9ANv9wKqRUYUVBTh1+eH8rwNF52tNe1PhT7qB/fBVhWAuCMBb7Sokca8ItRVNu1oE9ytM/cT6/jw==", + "version": "1.10.0", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.10.0.tgz", + "integrity": "sha512-kQGWd1Ct9j3vvz3490EJDHL4lYf0duInw5e/bqfgR3ej6M4ittgIif23TNhqgZIhYU3xxGG3iS6gGyWtHY3pQw==", "requires": { "@walmart/core-widget-registry": "^0.6.6" }, --- package.json @@ -86,7 +86,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.9.0", + "@walmart/emergency-mini-app": "1.10.0", "@walmart/exception-mini-app": "1.0.3", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.7",
update emergency with pqa and banner
update emergency with pqa and banner
828e4734292146e802386807dadf310cb7c7a67d
--- package-lock.json @@ -37,7 +37,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.74", "@walmart/attendance-mini-app": "0.86.0", - "@walmart/compass-sdk-rn": "3.16.1", + "@walmart/compass-sdk-rn": "3.16.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.15", @@ -46,7 +46,7 @@ "@walmart/counts-component-miniapp": "0.1.4", "@walmart/emergency-mini-app": "1.25.0-128-1b540c0", "@walmart/exception-mini-app": "1.3.3", - "@walmart/facilities-management-miniapp": "0.6.34", + "@walmart/facilities-management-miniapp": "0.6.30", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.6.3", "@walmart/functional-components": "~4.0.3", @@ -4907,9 +4907,9 @@ } }, "node_modules/@walmart/compass-sdk-rn": { - "version": "3.16.1", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.1.tgz", - "integrity": "sha512-uosdKTI5vIqbp0WPCEO8Bwy/0uJuk6cy5clCyJJGpheGIRQiSPcsqBy+vx21TI+N/eA0XSqHgDAsckpKYgloWQ==", + "version": "3.16.0", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.0.tgz", + "integrity": "sha512-PjqoRqX0Zs4zvdDfnYpGwiQf+kct0kcBNF8YJIGcPXg/x6cNqlfCOcEegh7CMSbrMddva3wPJdI9i5ZbI6Br4w==", "license": "MIT", "peerDependencies": { "react": "*", @@ -5098,9 +5098,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.6.34", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.34.tgz", - "integrity": "sha512-+cKk8eBRwh0dXEP50cW9LBv112IF7rv9oEAc6PKEuWq6qnO9j06+i2dndFPVX0Jex8w4bata78XWcPORplsYCA==", + "version": "0.6.30", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.30.tgz", + "integrity": "sha512-b1EhbGSqRzP/RHE/IoRpbg8io7CWrPIKrjyiuSjhHJsl2qd54wlGcm+zoK/19ohGSjPCnXTKjfbc5qI0MZZk6A==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25180,9 +25180,9 @@ } }, "@walmart/compass-sdk-rn": { - "version": "3.16.1", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.1.tgz", - "integrity": "sha512-uosdKTI5vIqbp0WPCEO8Bwy/0uJuk6cy5clCyJJGpheGIRQiSPcsqBy+vx21TI+N/eA0XSqHgDAsckpKYgloWQ==" + "version": "3.16.0", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.0.tgz", + "integrity": "sha512-PjqoRqX0Zs4zvdDfnYpGwiQf+kct0kcBNF8YJIGcPXg/x6cNqlfCOcEegh7CMSbrMddva3wPJdI9i5ZbI6Br4w==" }, "@walmart/config-components": { "version": "4.1.0-rc.4", @@ -25252,9 +25252,9 @@ "integrity": "sha512-PrClw+qFgF1XmMlg+PHZT+seQP4ydMPQkmZ+ZzGInSdBLYXJWt8Y5KT+4j3C2SjK191elDYAlqFlBDVDnModjw==" }, "@walmart/facilities-management-miniapp": { - "version": "0.6.34", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.34.tgz", - "integrity": "sha512-+cKk8eBRwh0dXEP50cW9LBv112IF7rv9oEAc6PKEuWq6qnO9j06+i2dndFPVX0Jex8w4bata78XWcPORplsYCA==" + "version": "0.6.30", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.30.tgz", + "integrity": "sha512-b1EhbGSqRzP/RHE/IoRpbg8io7CWrPIKrjyiuSjhHJsl2qd54wlGcm+zoK/19ohGSjPCnXTKjfbc5qI0MZZk6A==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.33", --- package.json @@ -79,7 +79,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.74", "@walmart/attendance-mini-app": "0.86.0", - "@walmart/compass-sdk-rn": "3.16.1", + "@walmart/compass-sdk-rn": "3.16.0", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.15", @@ -88,7 +88,7 @@ "@walmart/counts-component-miniapp": "0.1.4", "@walmart/emergency-mini-app": "1.25.0-128-1b540c0", "@walmart/exception-mini-app": "1.3.3", - "@walmart/facilities-management-miniapp": "0.6.34", + "@walmart/facilities-management-miniapp": "0.6.30", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.6.3", "@walmart/functional-components": "~4.0.3",
reverting fixit changes
reverting fixit changes
e0882ac82743e5f3f1059515a6f4789648100858
--- packages/allspark-foundation/src/HTTP/client.ts @@ -133,6 +133,17 @@ export class HttpClient extends Axios { // @ts-ignore - mergeConfig exists but is not defined on type this.defaults = axios.mergeConfig(this.defaults, restConfig); + // Merge new config into existing config. + // this.config is our own creation so we'll have to handle the merging. Some mini apps + // refer to the config directly so we have to keep it updated. + Object.assign(this.config, { + ...config, + headers: { + ...(this.config.headers || {}), + ...(config.headers || {}), + }, + }); + if (interceptors) { this.addInterceptors(interceptors, { recursive: true }); } @@ -197,7 +208,7 @@ export class HttpClient extends Axios { featureId, isFeatureInstance: true, headers: { - ...headers, + ...(headers || {}), 'x-http-client-feature-key': featureId, }, // Interceptors are not handled by axios config. Adding through config is our creation so
fix: internal config object was not updated when configure was called
fix: internal config object was not updated when configure was called
b23b7cea71b566048abc9c8f79cf4552c481f19e
--- package.json @@ -78,7 +78,7 @@ "@walmart/allspark-foundation": "6.62.5", "@walmart/allspark-foundation-hub": "1.20.0-beta.5420+c86c72e88", "@walmart/allspark-utils": "6.5.1", - "@walmart/associate-exp-hub-mini-app": "1.4.0-beta.507+a47871e", + "@walmart/associate-exp-hub-mini-app": "1.4.0-alpha.24", "@walmart/config-components": "4.6.5", "@walmart/expo-config-plugins": "0.1.4", "@walmart/gtp-shared-components": "2.2.4", --- yarn.lock @@ -6754,19 +6754,19 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-exp-hub-mini-app@npm:1.4.0-beta.507+a47871e": - version: 1.4.0-beta.507 - resolution: "@walmart/associate-exp-hub-mini-app@npm:1.4.0-beta.507::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-exp-hub-mini-app%2F-%2F%40walmart%2Fassociate-exp-hub-mini-app-1.4.0-beta.507.tgz" +"@walmart/associate-exp-hub-mini-app@npm:1.4.0-alpha.24": + version: 1.4.0-alpha.24 + resolution: "@walmart/associate-exp-hub-mini-app@npm:1.4.0-alpha.24::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-exp-hub-mini-app%2F-%2F%40walmart%2Fassociate-exp-hub-mini-app-1.4.0-alpha.24.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" "@walmart/allspark-foundation-hub": 1.20.0-beta.5420+c86c72e88 - "@walmart/my-walmart-hub": 1.1.0-beta.5420+c86c72e88 + "@walmart/my-walmart-hub": 1.1.0-beta.5422+b8fa96d16 expo: 52.x expo-image: "*" react: "*" react-native: "*" react-native-safe-area-context: "*" - checksum: 10c0/604bf93fd7883ac87443a49da85d56a547a079709e29e506d2730995aedd8e09fcfc1bb9a1a51029931e83eb8542924b68c28070bcdeb163093232211f697ff6 + checksum: 10c0/2d7bc5b823f64b7e1046d583b15e021a8bba59b7c6c2bcbe6e0f38dae54fdbbc9a76edff6a115fe1849aa37af8be0f449e7d35dd6fa2f2e9f79fb2de0d337d6c languageName: node linkType: hard @@ -7004,7 +7004,7 @@ __metadata: "@walmart/allspark-foundation": "npm:6.62.5" "@walmart/allspark-foundation-hub": "npm:1.20.0-beta.5420+c86c72e88" "@walmart/allspark-utils": "npm:6.5.1" - "@walmart/associate-exp-hub-mini-app": "npm:1.4.0-beta.507+a47871e" + "@walmart/associate-exp-hub-mini-app": "npm:1.4.0-alpha.24" "@walmart/config-components": "npm:4.6.5" "@walmart/expo-config-plugins": "npm:0.1.4" "@walmart/gtp-shared-components": "npm:2.2.4"
feat(ui): update package versions
feat(ui): update package versions
9536ea4b767f3cb08074f74dfbbb387969bec6a8
--- package-lock.json @@ -3356,9 +3356,9 @@ } }, "@walmart/gta-react-native-calendars": { - "version": "0.0.13", - "resolved": "https://npme.walmart.com/@walmart/gta-react-native-calendars/-/gta-react-native-calendars-0.0.13.tgz", - "integrity": "sha1-t/XUZq+5uHj1F+fwWYWe65zdHWI=", + "version": "0.0.15", + "resolved": "https://npme.walmart.com/@walmart/gta-react-native-calendars/-/gta-react-native-calendars-0.0.15.tgz", + "integrity": "sha512-Axq/7HBaDuW02U8DHrcSVC2XR3jQO4yRNZHfLKBZ4/BTJZ7Hx7XJIHpBJIIKfsVIFVni5+yFpRbFGmj7xY342A==", "requires": { "@walmart/moment-walmart": "1.0.4", "hoist-non-react-statics": "^3.3.1", --- package.json @@ -79,7 +79,7 @@ "@walmart/exception-mini-app": "0.33.0", "@walmart/feedback-all-spark-miniapp": "0.0.58", "@walmart/functional-components": "1.0.31", - "@walmart/gta-react-native-calendars": "0.0.13", + "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "^1.2.0", "@walmart/impersonation-mini-app": "1.0.18", "@walmart/ims-print-services-ui": "0.0.32",
Bump react native calendars
Bump react native calendars
845af1bcf3ae7edd8902345459797623390cadb4
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.19.0", + "version": "1.20.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.19.0", + "version": "1.20.2", "hasInstallScript": true, "dependencies": { "@react-native-async-storage/async-storage": "~1.21.0", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.19.0", + "version": "1.20.2", "private": true, "scripts": { "android": "react-native run-android",
reverted app version
reverted app version
de09b271f81f09a68e29b47c9303f98bc3947199
--- src/constants.ts @@ -2,4 +2,5 @@ export const ROOT_CONTAINER_SCREEN_NAME = 'myTeam'; export const APP_CONTAINER_SCREEN_NAME = 'myTeam.root'; export const MESSAGES_SCREEN_NAME = 'myTeam.messages'; export const NEW_MESSAGES_SCREEN_NAME = 'myTeam.newMessage'; +export const IMAGE_PREVIEW_SCREEN = 'myTeam.imagePreviewScreen'; export const LOCAL_STORAGE_KEY_PREFIX = 'texting-'; --- src/navigation/index.tsx @@ -3,9 +3,8 @@ import {createStackNavigator} from '@react-navigation/stack'; import {DrawerButton, Header} from '@walmart/ui-components'; import {TabsScreen} from '../screens/TabsScreen'; -// import {TextingNavParamsMap} from './types'; +import {TextingNavParamsMap} from './types'; import { - RosterScreen, ViewTeamScreen, SearchHeader, SearchScreen, @@ -13,15 +12,18 @@ import { } from '@walmart/roster-mini-app'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; import { - ChannelsScreen, MessagesScreen, NewMessageScreen, ImagePreviewScreen, buildMessageScreenOptions, } from '@walmart/wmconnect-mini-app'; +import { + IMAGE_PREVIEW_SCREEN, + MESSAGES_SCREEN_NAME, + NEW_MESSAGES_SCREEN_NAME, +} from '../constants'; -// const TextingStack = createStackNavigator<TextingNavParamsMap>(); -const TextingStack = createStackNavigator(); +const TextingStack = createStackNavigator<TextingNavParamsMap>(); export * from './types'; export * from './components'; @@ -32,9 +34,6 @@ export const TextingNavigation = () => { () => buildMessageScreenOptions(top), [top], ); - const MESSAGES_SCREEN_NAME = 'myTeam.messages'; - const NEW_MESSAGES_SCREEN_NAME = 'myTeam.newMessage'; - const IMAGE_PREVIEW_SCREEN = 'myTeam.imagePreviewScreen'; return ( <TextingStack.Navigator @@ -73,7 +72,7 @@ export const TextingNavigation = () => { <TextingStack.Screen name={MESSAGES_SCREEN_NAME} options={messageScreenOptions} - component={MessagesScreen} + component={MessagesScreen as any} /> <TextingStack.Screen name={NEW_MESSAGES_SCREEN_NAME} --- src/navigation/types.ts @@ -15,4 +15,5 @@ export type TextingNavParamsMap = { 'myTeam.imagePreviewScreen': { imageSource: {uri: any}; }; + 'myTeam.messages': any; };
Update tab navigation
Update tab navigation
7162f831a9c429c940ac59a9ba98b4ecff9af7f9
--- packages/me-at-walmart-athena-queries/src/schema.graphql @@ -2804,15 +2804,6 @@ type CourseProgress { pageSize: Int version: Int - """ - Role of associate - """ - role: RosterRole - rosterType: VIEW_TYPE - storeEntity: StoreEntity - storeNum: Int - version: Int - """ View type to fetch the ILT trainings either for self or for direct reportees. example: SELF, DIRECT_REPORTEE etc """ --- packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.ts @@ -13,22 +13,22 @@ export type UpsertSupplyChainAssociatePreferenceMutationVariables = export type UpsertSupplyChainAssociatePreferenceMutation = { __typename?: 'Mutation'; upsertAssociatePreference?: { - __typename: 'AssociatePreferences'; + __typename?: 'AssociatePreferences'; walmartIdentificationNumber: string; meAtWalmartPreferences?: { - __typename: 'MeAtWalmartPreferences'; + __typename?: 'MeAtWalmartPreferences'; managerExperiencePreferences?: { - __typename: 'ManagerExperiencePreferences'; - mySupplyChainTeams?: { - __typename: 'ManagerExperienceSupplyChain'; + __typename?: 'ManagerExperiencePreferences'; + mySupplyChainTeams?: Array<{ + __typename?: 'ManagerExperienceSupplyChain'; shiftCodePreference?: Array<string | null> | null; supplyChainTeamPreference?: Array<{ - __typename: 'SupplyChainTeam'; - businessUnitNumber?: number | null; - countryCode?: string | null; + __typename?: 'SupplyChainTeam'; teamId?: string | null; + countryCode?: string | null; + businessUnitNumber?: number | null; } | null> | null; - } | null; + } | null> | null; } | null; } | null; } | null; @@ -42,24 +42,19 @@ export const UpsertSupplyChainAssociatePreferenceDocument = gql` upsertAssociatePreference( associatePreferencesInput: $associatePreferencesInput ) { - __typename + walmartIdentificationNumber meAtWalmartPreferences { - __typename managerExperiencePreferences { - __typename mySupplyChainTeams(businessUnitNumber: $businessUnitNumber) { - __typename shiftCodePreference supplyChainTeamPreference { - __typename - businessUnitNumber - countryCode teamId + countryCode + businessUnitNumber } } } } - walmartIdentificationNumber } } `;
Adding upsertSupplyChainAssociatePreference query
Adding upsertSupplyChainAssociatePreference query
034bec713a6025eb2a748ebb72988b509130b7b3
--- .looper.multibranch.yml @@ -20,11 +20,7 @@ envs: variables: XCODE_PROJECT_PATH: targets/US/ios/AllSpark.xcodeproj ANDROID_GRADLE_PATH: targets/US/android/app/build.gradle - ios: - variables: IOS_BASE_PATH: targets/US/ios - android: - variables: ANDROID_BASE_PATH: targets/US/android branches:
chore: looper variable updates for template changes
chore: looper variable updates for template changes
adba23291979db534d113e2335a07b199915f73c
--- package.json @@ -63,7 +63,7 @@ "@redux-saga/testing-utils": "^1.1.3", "@sharcoux/slider": "^5.2.1", "@terrylinla/react-native-sketch-canvas": "^0.8.0", - "@walmart/shelfavailability-mini-app": "0.3.33", + "@walmart/shelfavailability-mini-app": "0.3.35", "@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",
updated shelf-availability package.json
updated shelf-availability package.json
08355d39226c26eabc074a03c8d7697d6f205ddb
--- package-lock.json @@ -37067,7 +37067,7 @@ "version": "2.1.6", "dev": true, "requires": { - "axios": "^0.21.4" + "axios": "~1.2.6" } }, "chalk": {
reverted the package lock change
reverted the package lock change
534bc26286ee3434aede02c5862aa538f2ab53cc
--- packages/allspark-foundation/src/Feature/AllsparkFeature.tsx @@ -147,7 +147,6 @@ export class AllsparkFeature<ID extends string = string> { /** * Creates a translation client for the current feature. - * @returns {ITranslationFeatureClient} The translation client for the current feature. * @example * const MyFeature = new AllsparkFeature('myFeature' as const); * --- packages/allspark-foundation/src/Navigation/NavigationModule.tsx @@ -75,7 +75,7 @@ export class NavigationModule { /** * Get the navigation client instance. */ - public static get manager(): NavigationManager<any, any> { + public static get manager(): NavigationManager<Allspark.ScreenParams, Allspark.ModalParams> { return this.instance._manager; } --- packages/allspark-foundation/src/Translation/TranslationFactory.tsx @@ -38,7 +38,7 @@ export class TranslationFactory { public createFeatureClient = <K extends string>( id: K, config?: Omit<TranslationFeatureClientConfig, 'client'> - ) => { + ): TranslationFeatureClient => { if (!id) { throw new Error( '[TranslationFactory] createFeatureClient: invalid feature ID' @@ -46,10 +46,10 @@ export class TranslationFactory { } if (this._featureClients[id]) { - return this._featureClients[id]; + return this._featureClients[id] as TranslationFeatureClient; } - const featureClient = new TranslationFeatureClient(id, { + const featureClient = new TranslationFeatureClient<K>(id, { ...config, client: this._client, }); --- packages/allspark-foundation/src/Translation/TranslationFeatureClient.ts @@ -5,6 +5,7 @@ import { TranslationOptions, } from './types'; import { TranslationClient } from './TranslationClient'; +import { KeyPrefix } from 'i18next'; export type TranslationFeatureClientConfig = { client: TranslationClient; @@ -19,11 +20,11 @@ export type TranslationFeatureClientConfig = { * This client requires an id during construction and all methods * operate within that scoped namespace. */ -export class TranslationFeatureClient implements ITranslationFeatureClient { - private _id: string; +export class TranslationFeatureClient<K extends string = string> implements ITranslationFeatureClient { + private _id: K; private _client: TranslationClient; - constructor(id: string, config: TranslationFeatureClientConfig) { + constructor(id: K, config: TranslationFeatureClientConfig) { this._id = id; this._client = config.client; } @@ -99,7 +100,7 @@ export class TranslationFeatureClient implements ITranslationFeatureClient { * @param options - Options for the translation hook, including key prefix. * @returns The translation function scoped to the feature namespace. */ - public useTranslation = (options?: UseTranslationOptions<undefined>) => { + public useTranslation = <TKPrefix extends KeyPrefix<string> = undefined>(options?: UseTranslationOptions<TKPrefix>) => { return useTranslation(this._id, options); }; } --- packages/allspark-foundation/src/Translation/types.ts @@ -1,4 +1,4 @@ -import { Resource, TOptions } from 'i18next'; +import { KeyPrefix, Resource, TOptions } from 'i18next'; import { UseTranslationOptions } from 'react-i18next'; export type LocaleConfig = { @@ -76,7 +76,7 @@ export interface ITranslationFeatureClient { * @param options - Options for the translation hook. * @returns The translation hook result scoped to the feature namespace. */ - useTranslation( - options?: UseTranslationOptions<undefined> + useTranslation <TKPrefix extends KeyPrefix<string> = undefined>( + options?: UseTranslationOptions<TKPrefix> ): ReturnType<typeof import('react-i18next').useTranslation>; }
chore: fix typing for navigation and translation (#482)
chore: fix typing for navigation and translation (#482) * chore: fix typing * fix: update types for Translation * refactor: adding a generic to TranslationFeatureClient --------- Co-authored-by: Dylan Lane - rlane1 <Russell.Lane@walmart.com>
607ddf34dc056a117fb900522b8b4b1ac1c4e20a
--- package-lock.json @@ -96,7 +96,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.4", "@walmart/react-native-webex-sdk": "0.1.8", - "@walmart/receipt-check-miniapp": "1.19.5", + "@walmart/receipt-check-miniapp": "1.21.2", "@walmart/redux-store": "6.0.16", "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.2.8", @@ -12260,9 +12260,9 @@ } }, "node_modules/@walmart/receipt-check-miniapp": { - "version": "1.19.5", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.19.5.tgz", - "integrity": "sha512-68AzwcciOOLAQASKBheYwk+WTP9vnsveikr0RKqyR0TeigsjLSoppoDgcNwsbrRczmeDyISUBSYnapoQiyNxEA==", + "version": "1.21.2", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.21.2.tgz", + "integrity": "sha512-eV+xhZEPraI6MBBQ4cz/PMbz79JsIaXrfhgS4mowHdJWMkSfSjhV1lNRhlJbyjmY2YqAEd/FkNSkXYzjN9BZrg==", "hasInstallScript": true, "dependencies": { "@walmart/tcnumber": "^2.3.3", --- package.json @@ -137,7 +137,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.4", "@walmart/react-native-webex-sdk": "0.1.8", - "@walmart/receipt-check-miniapp": "1.19.5", + "@walmart/receipt-check-miniapp": "1.21.2", "@walmart/redux-store": "6.0.16", "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.2.8", @@ -399,7 +399,7 @@ "@walmart/react-native-shared-navigation": "6.0.16", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.6.4", - "@walmart/receipt-check-miniapp": "1.19.5", + "@walmart/receipt-check-miniapp": "1.21.2", "@walmart/redux-store": "6.0.16", "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.2.8",
update
update
93376ec90ea10457c85391d630280c287dd63d5e
--- packages/allspark-http-client/src/HttpClient.ts @@ -43,6 +43,15 @@ class HttpClient extends Axios implements IHttpClient { this.defaults.timeout = timeout; this.config = { ...restConfig, timeout, interceptors, id }; + //@TODO remove if condition in later drops. + // Manually adding content-type for POST req, for backward compatibility with older version of http client. + // Axios infers types automatically for sending `data: JSON.stringify()` as + // content-type:application/x-www-form-urlencoded and causing backend error. + + if (!this.defaults.headers.post['Content-Type']) { + this.defaults.headers.post['Content-Type'] = 'application/json'; + } + // Use retry interceptor, not added to config so not duplicated on clone const retryInterceptor = createRetryInterceptor(this as IHttpClient); this.useInterceptor(retryInterceptor);
update content type
update content type
991ee471ac5f3b08a57d5f6dad0d7dc4ca8757e6
--- __tests__/components/RosterWidget.test.tsx @@ -2,7 +2,7 @@ import React from 'react'; import * as hooks from '../../src/hooks'; import {renderWithProviders} from '../harness'; import {RosterWidget} from '../../src/components/RosterWidget'; -import {TeamHubWidgetProps} from '@walmart/allspark-foundation-hub/HubFeature/Store/Common'; +import {TeamHubWidgetProps} from '@walmart/allspark-foundation-hub'; import {GetDailyRosterQueryResult} from '../../src/queries/getDailyRoster'; import {mockGetDailyRosterQuery} from '../harness/athenaQueries/getDailyRoster'; import {mockGetTeamsByStoreQuery} from '../harness/athenaQueries/getTeamsByStore'; --- __tests__/utils/rosterDetail.test.ts @@ -16,7 +16,7 @@ import { EMP_TYPE_SALARIED, MY_TEAMS_TEAM_ID, TOTAL_STORE_TEAM_ID, -} from '@walmart/allspark-foundation-hub/HubFeature/Store/Common/constant'; +} from '@walmart/allspark-foundation-hub'; import {GetDailyRosterHomeQuery} from '@walmart/me-at-walmart-athena-queries'; jest.mock('../../src/navigation/utils', () => ({ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.12", + "version": "2.12.13", "main": "dist/index.js", "files": [ "dist" --- src/components/RosterDetailPageHeader/RosterDetailPageHeader.tsx @@ -4,7 +4,7 @@ import {Text, View} from 'react-native'; import {Heading, Link} from '@walmart/gtp-shared-components'; import {getRosterDetailPageHeaderStyles} from './style'; import {useAllsparkImage} from '@walmart/allspark-foundation/Components/context'; -import {Images as teamImageIcon} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +import {Images as teamImageIcon} from '@walmart/allspark-foundation-hub'; import {translationClient} from '../../common/translation'; import {useSelector} from 'react-redux'; import {displayViewOtherTeams} from '../../redux/selectors'; --- src/components/RosterWidget/RosterWidget.tsx @@ -4,7 +4,7 @@ import { HubWidget, TeamHubWidgetProps, TOTAL_STORE_TEAM_ID, -} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +} from '@walmart/allspark-foundation-hub'; import {Text, View} from 'react-native'; import {Body} from '@walmart/gtp-shared-components'; import { --- src/hooks/teams.ts @@ -10,7 +10,7 @@ import {SiteSelectors} from '@walmart/allspark-foundation/Site'; import { MY_TEAMS_TEAM_ID, TOTAL_STORE_TEAM_ID, -} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +} from '@walmart/allspark-foundation-hub'; export const useGetTeamById = (teamId: string) => { const storeNbr: string | undefined = useSelector( --- src/screens/AllTeamsScreen/AllTeamsScreen.tsx @@ -6,7 +6,7 @@ import { TOTAL_STORE_TEAM_LABEL, ErrorScreen, TeamListItem, -} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +} from '@walmart/allspark-foundation-hub'; import {allTeamsScreenStyles as styles} from './styles'; import { useGetTeamById, --- src/screens/RosterDetailScreen/RosterDetailScreen.tsx @@ -7,7 +7,7 @@ import { ErrorScreen, TeamSwitcher, ManagerExperienceSelectors, -} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +} from '@walmart/allspark-foundation-hub'; import {RosterDetailPageHeader} from '../../components/RosterDetailPageHeader'; import {RosterFiltersAndInfo} from '../../components/RosterFiltersAndInfo'; import {TeamSearchInput} from '../../components/TeamSearchInput'; --- src/utils/rosterDetail.tsx @@ -3,7 +3,7 @@ import { MY_TEAMS_TEAM_ID, TOTAL_STORE_TEAM_ID, Images as teamImageIcon, -} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +} from '@walmart/allspark-foundation-hub'; import {GetDailyRosterQuery} from '../queries/getDailyRoster'; import { associateDisplayName,
Update the roster imports
Update the roster imports
ce38c9f0d82311abf45e0a0d49f74d9dbae66ff2
--- __tests__/channels/components/__snapshots__/ChannelRow.test.tsx.snap @@ -135,7 +135,6 @@ exports[`ChannelRow should render ChannelRow Component 1`] = ` "borderRadius": 20, "height": 40, "justifyContent": "center", - "paddingLeft": 4, "width": 40, }, { --- __tests__/components/__snapshots__/Avatar.test.tsx.snap @@ -10,7 +10,6 @@ exports[`Avatar Component renders initials when no profileImage.uri is available "borderRadius": 20, "height": 40, "justifyContent": "center", - "paddingLeft": 4, "width": 40, }, undefined, @@ -103,7 +102,6 @@ exports[`Avatar Component renders the avatar with profile image for group chat 1 "borderRadius": 20, "height": 40, "justifyContent": "center", - "paddingLeft": 4, "width": 40, }, undefined, --- __tests__/screens/MessagesScreen/__snapshots__/OneToOneChatTests.tsx.snap @@ -507,6 +507,7 @@ exports[`Messages Screen One To One Chat should load list empty state when no me } > <Image + accessibilityLabel="error icon" accessibilityRole="image" source={ { @@ -1343,6 +1344,7 @@ exports[`Messages Screen One To One Chat should send a text message and push not } > <Image + accessibilityLabel="error icon" accessibilityRole="image" source={ {
test: snapshot update
test: snapshot update
b9f9b11018b88de1d819e7d5b8b6fdbda65e30da
--- package-lock.json @@ -42,7 +42,7 @@ "@walmart/ask-sam-mini-app": "1.15.4", "@walmart/attendance-mini-app": "1.62.5", "@walmart/compass-sdk-rn": "5.7.0", - "@walmart/config-components": "4.2.5", + "@walmart/config-components": "4.2.7", "@walmart/copilot-mini-app": "2.3.19", "@walmart/core-services": "~2.2.1", "@walmart/core-services-allspark": "~2.12.7", @@ -8094,9 +8094,9 @@ } }, "node_modules/@walmart/config-components": { - "version": "4.2.5", - "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.5.tgz", - "integrity": "sha512-IxZq/3QRT2olBukJLEyyTGTJ7XLGWyrfd9E2mEEQff3UrTt63Iz7dPFSboh6Q6/cPnIhRORVQAJ7XjUuOANJXQ==", + "version": "4.2.7", + "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.7.tgz", + "integrity": "sha512-2Hdsj2EVvzuLvcXhqYxvOM2Cg3bplF0HznT7JYd6QIS9tU7lwPumAKJTNECPRWcl5ZvyAG+UfMuNpkNGG8+Zsg==", "dependencies": { "reduxsauce": "^1.2.1", "reselect": "^4.1.5" @@ -34212,9 +34212,9 @@ "integrity": "sha512-m7XUOq3dJb57gzP4XgwnpTo73eGbitHzFdGcZor7qEe3iqpjZeRUvE34oFHb/lO1tbAhfN8jd/AEZSrSe56xaA==" }, "@walmart/config-components": { - "version": "4.2.5", - "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.5.tgz", - "integrity": "sha512-IxZq/3QRT2olBukJLEyyTGTJ7XLGWyrfd9E2mEEQff3UrTt63Iz7dPFSboh6Q6/cPnIhRORVQAJ7XjUuOANJXQ==", + "version": "4.2.7", + "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.7.tgz", + "integrity": "sha512-2Hdsj2EVvzuLvcXhqYxvOM2Cg3bplF0HznT7JYd6QIS9tU7lwPumAKJTNECPRWcl5ZvyAG+UfMuNpkNGG8+Zsg==", "requires": { "reduxsauce": "^1.2.1", "reselect": "^4.1.5" --- package.json @@ -83,7 +83,7 @@ "@walmart/ask-sam-mini-app": "1.15.4", "@walmart/attendance-mini-app": "1.62.5", "@walmart/compass-sdk-rn": "5.7.0", - "@walmart/config-components": "4.2.5", + "@walmart/config-components": "4.2.7", "@walmart/copilot-mini-app": "2.3.19", "@walmart/core-services": "~2.2.1", "@walmart/core-services-allspark": "~2.12.7",
Adding xCover6Pro in Cope Device List
Adding xCover6Pro in Cope Device List
d0055331e3f2a455fcc20c1e6e2b6c77904b8f7b
--- src/screens/TabsScreen.tsx @@ -7,7 +7,11 @@ import {UserHeader} from '../containers/UserHeader'; import {useTranslation} from 'react-i18next'; import {TEXTING_I18N_NAMESPACE} from '../translations'; import {WarningBanner} from '../containers/WarningBanner'; -import {WmConnect} from '@walmart/wmconnect-mini-app'; +import { + WmConnect, + DNDSwitch, + PresenceProvider, +} from '@walmart/wmconnect-mini-app'; import {RosterScreen} from '@walmart/roster-mini-app'; type TabsScreenProps = { @@ -19,10 +23,16 @@ const MainTab = createMaterialTopTabNavigator(); export const TabsScreen: React.FC<TabsScreenProps> = () => { const {t} = useTranslation([TEXTING_I18N_NAMESPACE]); + const renderDNDSwitch = () => ( + <PresenceProvider> + <DNDSwitch /> + </PresenceProvider> + ); + return ( <> <WarningBanner /> - <UserHeader /> + <UserHeader rightPanel={renderDNDSwitch()} /> <MainTab.Navigator tabBar={LivingDesignTabBar}
Update dnd switch
Update dnd switch
13e976bbc9f8dca69f98def4e559bf46c31985ee
--- src/channels/provider.tsx @@ -312,14 +312,20 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { delayedUpdate.unreadById[id] = count; } catch (e: any) { logger.error('Error fetching unread message count', { - message: e.toString(), - channelId: channelState.dataById[id]?.id, + message: String(e.message || e.toString() || 'Unknown error'), + error: String(e.message || 'Unknown error'), + error_code: String(e.code || 'unknown-code'), + error_message: String(e.message || 'Unknown error'), + errorcode: String(e.code || 'unknown-code'), + errormessage_code: String(e.code || 'unknown-code'), + errormessage_message: String(e.message || 'Unknown error'), + errormessage_name: String(e.name || 'Error'), }); setChannelState((prev) => { return { ...prev, isError: true, - error: `Error fetching unread message count: ${e.toString()}`, + error: `Error fetching unread message count: ${String(e.message || e)}`, }; }); }
fix(ui): updating error fields to check actual error
fix(ui): updating error fields to check actual error
09774cc349b6b2da69149ce0f12e36ba5896f152
--- package-lock.json @@ -3611,9 +3611,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "0.4.10", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.10.tgz", - "integrity": "sha512-Kvl6ZvEoiiHMJK1yIk6di45xIuUTU/8wv4OdLNtPkPYV1Td704+Sl+1EhwJAq6j/RZHBJz6ofsdtrI+tW+dKzQ==", + "version": "0.4.13", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.13.tgz", + "integrity": "sha512-BgkW4jmi+qgn/Ic1z9cwUoqGU+RUkyWO6F1Xln9yX+T56HQKfwSXW1lvnah8Q9dhfnSYgnuoZLW8fW8q0/ftCQ==", "requires": { "@react-native-community/datetimepicker": "3.0.9", "@react-native-picker/picker": "^1.16.1", --- package.json @@ -97,7 +97,7 @@ "@walmart/schedule-mini-app": "0.3.1", "@walmart/settings-mini-app": "1.3.7", "@walmart/shelfavailability-mini-app": "0.3.89", - "@walmart/time-clock-mini-app": "0.4.10", + "@walmart/time-clock-mini-app": "0.4.13", "@walmart/ui-components": "1.1.57", "@walmart/welcomeme-mini-app": "0.30.2", "@walmart/wfm-ui": "^0.1.50",
Misc GTA fixes for Drop 4
Misc GTA fixes for Drop 4
3baf760579bdd811309d06e34b19220d38ddb799
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/AssociateHallwayNavTest.tsx.snap @@ -2,6 +2,7 @@ exports[`DrawerNav matches default snapshot for initial render 1`] = ` <RenderGuard + onUnmount={[Function]} preRender={[Function]} > <ActivityMonitor @@ -56,6 +57,7 @@ exports[`DrawerNav matches default snapshot for initial render 1`] = ` exports[`DrawerNav matches snapshot after initial render 1`] = ` <RenderGuard + onUnmount={[Function]} preRender={[Function]} > <ActivityMonitor --- core/__tests__/navigation/__snapshots__/RootStackTest.tsx.snap @@ -2,6 +2,7 @@ exports[`RootNav matches snapshot when app accessible 1`] = ` <RenderGuard + onUnmount={[Function]} preRender={[Function]} > <Navigator @@ -198,6 +199,7 @@ exports[`RootNav matches snapshot when app accessible 1`] = ` exports[`RootNav matches snapshot when app not accessible 1`] = ` <RenderGuard + onUnmount={[Function]} preRender={[Function]} > <Navigator --- packages/me-at-walmart-container/__mocks__/@walmart/allspark-foundation/Redux.js @@ -1,8 +0,0 @@ -module.exports = { - AllsparkReduxStore: { - ...jest.requireActual('@walmart/allspark-foundation/Redux'), - getState: jest.fn(), - addSagas: jest.fn(), - resetStore: jest.fn(), - } -} \ No newline at end of file --- packages/me-at-walmart-container/__tests__/http/interceptors/addImpersonation.test.ts @@ -7,10 +7,6 @@ import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; import {HttpLogger} from '../../../src/http/logger'; describe('ImpersonationInterceptor', () => { - beforeEach(() => { - jest.clearAllMocks(); - }); - let mockRequest; beforeEach(() => { --- packages/me-at-walmart-container/__tests__/services/user/meAtWalmartUserService.test.ts @@ -0,0 +1,134 @@ +import jwtDecode from 'jwt-decode'; +import { AllsparkReduxStore } from '@walmart/allspark-foundation/Redux'; +import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; +import { AllsparkGraphQLClient } from '@walmart/allspark-foundation/GraphQL'; +import { + GetAssociateByIdDocument, +} from '@walmart/me-at-walmart-athena-queries'; +import { UserDomain } from '@walmart/me-at-walmart-common'; +import { getAssociateInfo } from '../../../src/services/user/getAssociateInfo'; +import { getCandidateInfo } from '../../../src/services/user/getCandidateInfo'; +import { transformImpersonateeData } from '../../../src/services/user/transforms'; +import { MeAtWalmartUserService } from '../../../src/services/user/index'; + +jest.mock('jwt-decode', () => jest.fn()); +jest.mock('../../../src/services/user/getAssociateInfo', () => ({ + getAssociateInfo: jest.fn(), +})); +jest.mock('../../../src/services/user/getCandidateInfo', () => ({ + getCandidateInfo: jest.fn(), +})); +jest.mock('../../../src/services/user/transforms', () => ({ + transformImpersonateeData: jest.fn(), +})); + +jest.mock('@walmart/allspark-foundation/Environment', () => { + const actual = jest.requireActual('@walmart/allspark-foundation/Environment'); + return { + ...actual, + AllsparkEnvironment: { + getDeferred: jest.fn().mockResolvedValue({ + auth: { candidate: { clientId: 'candidate-client-id' } }, + consumerId: 'test-consumer-id', + }), + }, + }; +}); + +jest.mock('@walmart/allspark-foundation/Redux', () => ({ + AllsparkReduxStore: { + select: jest.fn().mockReturnValue({ id: 'mock-user-id' }), + }, +})); + +describe('MeAtwalmartUserService', () => { + beforeEach(() => { + jest.clearAllMocks(); + }); + + describe('fetch', () => { + it('should call getCandidateInfo if client_id matches candidate clientId', async () => { + const authData = { accessToken: 'mockToken' }; + const tokenData = { client_id: 'candidate-client-id' }; + + jwtDecode.mockReturnValue(tokenData); + AllsparkEnvironment.getDeferred.mockResolvedValue({ + auth: { candidate: { clientId: 'candidate-client-id' } }, + }); + + await MeAtWalmartUserService.fetch(authData); + + expect(getCandidateInfo).toHaveBeenCalledWith(tokenData, authData.accessToken); + expect(getAssociateInfo).not.toHaveBeenCalled(); + }); + + it('should call getAssociateInfo if client_id does not match candidate clientId', async () => { + const authData = { accessToken: 'mockToken' }; + const tokenData = { client_id: 'associate-client-id' }; + + jwtDecode.mockReturnValue(tokenData); + AllsparkEnvironment.getDeferred.mockResolvedValue({ + auth: { candidate: { clientId: 'different-client-id' } }, + }); + + await MeAtWalmartUserService.fetch(authData); + + expect(getAssociateInfo).toHaveBeenCalledWith(tokenData); + expect(getCandidateInfo).not.toHaveBeenCalled(); + }); + }); + + describe('impersonate', () => { + const mockConfig = { + userId: 'a0s11tw', + siteId: '6789', + domain: UserDomain.store, + }; + + it('should call GraphQL query with correct variables', async () => { + const mockEnv = { consumerId: 'test-consumer-id' }; + const mockResponse = { + data: { getAssociateById: { id: 'a0s11tw', name: 'Test User' } }, + }; + const mockUserData = { id: 'a0s11tw', siteId: '6789', transformed: true }; + + AllsparkEnvironment.getDeferred.mockResolvedValue(mockEnv); + AllsparkGraphQLClient.query.mockResolvedValue(mockResponse); + AllsparkReduxStore.select.mockReturnValue({ id: 'currentUser' }); + transformImpersonateeData.mockReturnValue(mockUserData); + + const result = await MeAtWalmartUserService.impersonate(mockConfig); + + expect(AllsparkGraphQLClient.query).toHaveBeenCalledWith({ + query: GetAssociateByIdDocument, + variables: { userId: 'a0s11tw' }, + context: { + headers: { + 'wm_consumer.id': 'test-consumer-id', + 'impersonated-request': 1, + 'X-O-Platform': 'core', + 'X-O-Platform-Version': 'v1', + }, + }, + errorPolicy: 'all', + }); + + expect(transformImpersonateeData).toHaveBeenCalledWith( + mockConfig, + mockResponse.data.getAssociateById, + { id: 'currentUser' } + ); + + expect(result).toEqual(mockUserData); + }); + + it('should throw an error if no data is returned from getAssociateById', async () => { + AllsparkEnvironment.getDeferred.mockResolvedValue({ consumerId: 'test-consumer-id' }); + AllsparkGraphQLClient.query.mockResolvedValue({ data: { getAssociateById: null } }); + + await expect(MeAtWalmartUserService.impersonate(mockConfig)).rejects.toThrow( + 'No data returned from getAssociateById query' + ); + }); + }); +});
Add coverage
Add coverage
c496727378699f990db95de7b58340d45bb9f04e
--- package-lock.json @@ -3277,9 +3277,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.24.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.24.0.tgz", - "integrity": "sha512-vW4XKkd8yVFKRgsU2RT/pthaI8OEdYWtyJRg+LpHSH3ztV0qB6kJyIAv6t3oD61kTWl3vTqP30ivbZUE0ueO4g==" + "version": "0.24.2", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.24.2.tgz", + "integrity": "sha512-/Z0lKbKbpupLy48OfvcWgH1e2PKmR/yV4/gz9LTwmh4LYnRV02X7zTSjR0rNCNALG0x+nKqu5490+/dN9v0Uvg==" }, "@walmart/wfm-ui": { "version": "0.1.50", --- package.json @@ -88,7 +88,7 @@ "@walmart/settings-mini-app": "1.2.3", "@walmart/time-clock-mini-app": "0.3.4", "@walmart/ui-components": "1.1.27", - "@walmart/welcomeme-mini-app": "0.24.0", + "@walmart/welcomeme-mini-app": "0.24.2", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
updated welcomeMe mini patch
updated welcomeMe mini patch
86fecc3330f1dc8d0af580ea261f0a390049aee9
--- package.json @@ -94,9 +94,9 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.7.4", "@walmart/redux-store": "6.3.29", - "@walmart/roster-mini-app": "2.34.0", + "@walmart/roster-mini-app": "2.35.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.35.0", + "@walmart/wmconnect-mini-app": "2.35.1", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6591,9 +6591,9 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.7.4" "@walmart/redux-store": "npm:6.3.29" - "@walmart/roster-mini-app": "npm:2.34.0" + "@walmart/roster-mini-app": "npm:2.35.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.35.0" + "@walmart/wmconnect-mini-app": "npm:2.35.1" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6717,24 +6717,51 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.34.0": - version: 2.34.0 - resolution: "@walmart/roster-mini-app@npm:2.34.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-2.34.0.tgz" - dependencies: - expo: "npm:^51.0.0" - react: "npm:18.2.0" - react-native: "npm:~0.75.4" - peerDependencies: - "@walmart/allspark-foundation": ">=6.32.0" - expo: ^51.0.0 - expo-image: ~1.13.0 - react: "*" - react-native: "*" - react-native-wm-config: 0.1.1 - dependenciesMeta: - "@walmart/me-at-walmart": - built: false - checksum: 10c0/2a3356e905a7a42a8e5ea7884e3258329c0641d8dc4e4522e322840e88c00667b92f7c8247afcc39f70aff860735625f1f08d04d4fcad49d1a4a76ab0096ee89 +"@walmart/roster-mini-app@npm:2.35.0": + version: 2.35.0 + resolution: "@walmart/roster-mini-app@npm:2.35.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2Froster-mini-app-2.35.0.tgz" + peerDependencies: + "@react-native-async-storage/async-storage": ^1.21.0 + "@react-native-community/netinfo": ^11.0.1 + "@react-native-firebase/analytics": ~17.4.2 + "@react-native-firebase/crashlytics": ~17.4.2 + "@react-native-firebase/database": ~17.4.2 + "@react-native-firebase/perf": ~17.4.2 + "@react-navigation/drawer": ^6.6.4 + "@react-navigation/native": ^6.0.8 + "@reduxjs/toolkit": ^1.9.7 + "@types/node": 20.5.9 + "@walmart/allspark-authentication": 6.1.4 + "@walmart/allspark-graphql-client": ^1.4.6 + "@walmart/allspark-http-client": 6.1.4 + "@walmart/config-components": 4.4.0 + "@walmart/core-services": 6.1.4 + "@walmart/core-services-allspark": 6.25.1 + "@walmart/core-utils": 6.1.4 + "@walmart/functional-components": 6.1.4 + "@walmart/gtp-shared-components": 2.2.4 + "@walmart/react-native-encrypted-storage": ~1.1.3 + "@walmart/react-native-logger": 1.34.8 + "@walmart/react-native-scanner-3.0": 0.5.1 + "@walmart/react-native-shared-navigation": 6.1.4 + "@walmart/react-native-sumo-sdk": "*" + i18next: ^23.6.0 + moment-timezone: ~0.5.43 + npm-run-all: ^4.1.5 + react-i18next: ^13.3.1 + react-native-apollo-devtools-client: ^1.0.4 + react-native-app-auth: ^6.4.3 + react-native-device-info: ~10.13.1 + react-native-gesture-handler: ^2.14.0 + react-native-get-random-values: ~1.10.0 + react-native-reanimated: ^3.6.0 + react-native-safe-area-context: ^4.8.2 + react-native-screens: ^3.28.0 + react-native-wm-telemetry: 6.1.4 + redux: ^4.2.1 + redux-saga: ^1.2.3 + wifi-store-locator: 1.4.1 + checksum: 10c0/3b28a2fd51234f6f5ecbc51ad9e79657e1e6ef68b9f2bc56206f1638cf45758a6bfa3b7d67aba4e6779e1cdbbcda5bf2b49fa753cf248c7353f6b0ff209d2833 languageName: node linkType: hard @@ -6758,9 +6785,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.35.0": - version: 2.35.0 - resolution: "@walmart/wmconnect-mini-app@npm:2.35.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.35.0.tgz" +"@walmart/wmconnect-mini-app@npm:2.35.1": + version: 2.35.1 + resolution: "@walmart/wmconnect-mini-app@npm:2.35.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.35.1.tgz" dependencies: expo: "npm:^51.0.0" react: "npm:18.2.0" @@ -6775,7 +6802,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/f420d2a74c8f9e32a66fef1a02a848d17d735a537f6d1e0657c3f1bd7246c8dbaf6a9daf74e3dafc0d9bcf1534a363faf4e65e4a258b63c282484ec6720c843f + checksum: 10c0/34cb5b3048bcf49c47a2adbcd9ea5f4f776c2cf882f3a69cfe10ebbb63515efb49582f5452e2c15d79d3e3e5b9d9012f271d354055134855cda3ed9cd76aee8c languageName: node linkType: hard
updating roster and wmconnect version
updating roster and wmconnect version