commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
f082f516d3ed212eb8e3f29d42f4fe8134a59773
--- packages/allspark-foundation/src/Navigation/client.tsx @@ -379,6 +379,16 @@ export class NavigationClient< } }; + public get drawerLocked() { + const context = getDrawerContext(); + if (!context) { + console.warn( + 'Attempted to get drawer locked state with AllsparkDrawerClient, but no DrawerProvider was found. Ensure the Container app has setup the DrawerProvider.' + ); + } + return context?.locked; + } + /** * Reset the navigation state to the provided state. * @param state — Navigation state object.
feat: add drawer lock status accessor to navigation client
feat: add drawer lock status accessor to navigation client
c20ea2aa599337ca34d37063e28c40af8444ac7f
--- package-lock.json @@ -4243,9 +4243,9 @@ } }, "@walmart/impersonation-mini-app": { - "version": "1.0.24", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.24.tgz", - "integrity": "sha512-YI7uRzEn+/zFdSIeJHozor94HAtCtiMJFpii9NGPuWdXsWc6adqQOyUt9OSQ9KBw7GXsN5Z3ItexG5AjRXxhXw==" + "version": "1.0.24-beta.1", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.24-beta.1.tgz", + "integrity": "sha512-9V6N9SUWp/I2KE9yK9vW4Z6VKYe7tPUkIeUHXrEX2sqNEkdR0+KMG3M2R+ZYwYq1ZkPl5aghD8z/9F35xvSYsQ==" }, "@walmart/ims-print-services-ui": { "version": "0.0.36", --- package.json @@ -81,7 +81,7 @@ "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", - "@walmart/impersonation-mini-app": "1.0.24", + "@walmart/impersonation-mini-app": "1.0.24-beta.1", "@walmart/ims-print-services-ui": "0.0.36", "@walmart/inbox-mini-app": "0.22.0", "@walmart/iteminfo-mini-app": "2.0.16",
added impersonation version bump
added impersonation version bump
056d3cf751554d6de003e8a6a74a23f767223a57
--- example/src/teamHub/screens/onboarding.tsx @@ -4,7 +4,7 @@ import {useEffect} from 'react'; import {TeamHub} from '../feature'; import {TeamHubLogger, TeamHubTelemetry} from '../services'; import {TeamOnboardingScreen} from '@walmart/allspark-foundation/Components'; -import {teamOnboardingCardsMockData} from '@walmart/allspark-foundation/Components/TeamOnboarding/util'; +import {teamOnboardingCardsMockData} from '@walmart/allspark-foundation/__mocks__/data/teamOnboardingCards'; export const OnboardingEntryScreen = TeamHub.createScreen( () => { --- packages/allspark-foundation/__mocks__/data/teamOnboardingCards.tsx --- packages/allspark-foundation/__tests__/Hub/TeamOnboardingCard.test.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { render } from '../utils'; import { TeamOnboardingCard } from '../../src/Components/TeamOnboarding/Component/TeamOnboardingCard'; -import { teamOnboardingCardsMockData } from '../../src/Components/TeamOnboarding/util'; +import { teamOnboardingCardsMockData } from '../../__mocks__/data/teamOnboardingCards'; const props = teamOnboardingCardsMockData[0]; --- packages/allspark-foundation/__tests__/Hub/TeamOnboardingCards.test.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { render } from '../utils'; import { TeamOnboardingCards } from '../../src/Components/TeamOnboarding/Component/TeamOnboardingCards'; -import { teamOnboardingCardsMockData } from '../../src/Components/TeamOnboarding/util'; +import { teamOnboardingCardsMockData } from '../../__mocks__/data/teamOnboardingCards'; const props = { cards: { ...teamOnboardingCardsMockData }, --- packages/allspark-foundation/__tests__/Hub/TeamOnboardingScreen.test.tsx @@ -4,27 +4,12 @@ import { TeamOnboardingScreen, TeamOnboardingScreenProps, } from '../../src/Components/TeamOnboarding/Screens/TeamOnboardingScreen'; -import { Icons } from '@walmart/gtp-shared-components/dist'; - -const teamOnboardingCards = [ - { - icon: <Icons.AssociateIcon size='medium' color='#0071DC' />, - title: 'Centralized information', - description: - 'Easily manage team attendance, assignments, and work progress', - }, - { - icon: <Icons.AssociateIcon size='medium' color='#0071DC' />, - title: 'Insights and recommended actions', - description: - 'Get smart guidance to help you keep your team and the shift on track', - }, -]; +import { teamOnboardingCardsMockData } from '../../__mocks__/data/teamOnboardingCards'; const props: TeamOnboardingScreenProps = { heading: 'A new way to manage your Team and Work', description: 'Get started by selecting your teams', - teamOnboardingCardsInfo: teamOnboardingCards, + teamOnboardingCardsInfo: teamOnboardingCardsMockData, buttonText: 'Choose Teams', handlePressButton: jest.fn(), };
feat: moved card mock data to mocks folder
feat: moved card mock data to mocks folder
2fa39a3823c65abdba54a9ea31b279e13ca00248
--- package-lock.json @@ -30483,9 +30483,9 @@ "integrity": "sha512-vAn11SgL6thiZdZLdAe1EvJ+gYGSDJa2HBrLPXlTFQgUHtf2+fnnj4SG9bX8mg9/Ax3Hg7IQaiKle3GsdgN2ww==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.9.43", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.43.tgz", - "integrity": "sha512-6/R50+Ga6eY7nIqreH8m7KmNEXPz1kQ8DO6/l8J6aGHvTuLRZeFHAH8h3ZsvuWip8/0xUqwd4nyRsd/aeA/g5A==" + "version": "0.9.47", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.47.tgz", + "integrity": "sha512-7cn6Rn7+hCkZComxXA5zfT8AXwakKmdAMYxhL79E1YiC6YkeVZNPtl4d1el0VVkcoVNQE2+oq/AUYZ4COMQuhw==" }, "@walmart/financial-wellbeing-feature-app": { "version": "1.10.4", --- package.json @@ -93,7 +93,7 @@ "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.5.1", "@walmart/facilities-management-miniapp": "0.6.67", - "@walmart/feedback-all-spark-miniapp": "0.9.43", + "@walmart/feedback-all-spark-miniapp": "0.9.47", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16",
feedback-mini-app version bump
feedback-mini-app version bump
06ba565b5e76d0c078beed8318ec742e55daf908
--- 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.18", - "@walmart/allspark-foundation": "6.21.1", + "@walmart/allspark-foundation": "6.21.2", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -6993,7 +6993,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:6.21.1" + "@walmart/allspark-foundation": "npm:6.21.2" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31"
fix: upgrade foundation for feature connect timing fix
fix: upgrade foundation for feature connect timing fix
ee90ac415d38461bd1163734c511f15f1fa63d7e
--- package-lock.json @@ -70,7 +70,7 @@ "@walmart/ims-print-services-ui": "2.11.1", "@walmart/inbox-mini-app": "0.93.23", "@walmart/iteminfo-mini-app": "7.12.1", - "@walmart/learning-mini-app": "20.0.21", + "@walmart/learning-mini-app": "20.0.22", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.16", "@walmart/me-at-walmart-common": "6.0.16", @@ -11798,9 +11798,9 @@ } }, "node_modules/@walmart/learning-mini-app": { - "version": "20.0.21", - "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-20.0.21.tgz", - "integrity": "sha512-fAvwrPX0XNcovhzF//MDO1Hl4qs5F3sUyDqIG8jhl/kfE5Azhmc21YUBrFYMqoUxXoMAq/polQ10a+z/8DcCig==", + "version": "20.0.22", + "resolved": "https://npme.walmart.com/@walmart/learning-mini-app/-/learning-mini-app-20.0.22.tgz", + "integrity": "sha512-gFph1AxfkyOrstjgO5K5sXV60PKSQG1vPenYtJigkeL1owdzjujn7w7bcoQgUgOVEC5sr5QKOV7JjdHc1zerhw==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -41497,4 +41497,4 @@ } } } -} \ No newline at end of file +} --- package.json @@ -112,7 +112,7 @@ "@walmart/ims-print-services-ui": "2.11.1", "@walmart/inbox-mini-app": "0.93.23", "@walmart/iteminfo-mini-app": "7.12.1", - "@walmart/learning-mini-app": "20.0.21", + "@walmart/learning-mini-app": "20.0.22", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.16", "@walmart/me-at-walmart-common": "6.0.16", @@ -377,7 +377,7 @@ "@walmart/ims-print-services-ui": "2.11.1", "@walmart/inbox-mini-app": "0.93.23", "@walmart/iteminfo-mini-app": "7.12.1", - "@walmart/learning-mini-app": "20.0.21", + "@walmart/learning-mini-app": "20.0.22", "@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.21
feat: :sparkles: Bump learning mini app version to 20.0.21
baec89ebd59e737adc08991678e6e55e767b8cdb
--- __tests__/components/EmptyChannelsTest.tsx @@ -0,0 +1,42 @@ +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'; + +jest.mock('react-native/Libraries/Linking/Linking', () => ({ + openURL: jest.fn(), +})); + +jest.mock('@walmart/react-native-shared-navigation', () => ({ + navigate: jest.fn(), +})); +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/EmptyChannelsTest.tsx @@ -0,0 +1,42 @@ +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'; + +jest.mock('react-native/Libraries/Linking/Linking', () => ({ + openURL: jest.fn(), +})); + +jest.mock('@walmart/react-native-shared-navigation', () => ({ + navigate: jest.fn(), +})); +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'); + }); +});
Removing unnecessary lines
Removing unnecessary lines
418ddfd21f8c5d37939bd5c356519a571f9ebcc1
--- patches/@walmart+avp-feature-app+0.0.28.patch @@ -26,3 +26,32 @@ index a98f37d..17ea65e 100644 - </AVPStack.Navigator>); + </AVPStack.Navigator></AVPSharedProvider>); }; +diff --git a/node_modules/@walmart/avp-feature-app/dist/screens/ContributeAsppScreen/Walmart/index.js b/node_modules/@walmart/avp-feature-app/dist/screens/ContributeAsppScreen/Walmart/index.js +index 12ee053..c7394d6 100644 +--- a/node_modules/@walmart/avp-feature-app/dist/screens/ContributeAsppScreen/Walmart/index.js ++++ b/node_modules/@walmart/avp-feature-app/dist/screens/ContributeAsppScreen/Walmart/index.js +@@ -104,9 +104,9 @@ export const ContributeAsppWalmartScreen = () => { + }, + }); + }, +- isNudgeVisible: asppCurrentAmount < asppDefaultAmount && !isAsppMaxedOut, ++ isNudgeVisible: asppCurrentAmount < asppSalariedDefaultAmount && !isAsppMaxedOut, + nudgeText: t('contribute_aspp_screen.meet_aspp_card.nudge_text', { +- amount: asppDefaultAmount, ++ amount: asppSalariedDefaultAmount, + }), + }; + const onPressBack = () => { +diff --git a/node_modules/@walmart/avp-feature-app/dist/translations/en-US.js b/node_modules/@walmart/avp-feature-app/dist/translations/en-US.js +index 23e5337..b7c81ca 100644 +--- a/node_modules/@walmart/avp-feature-app/dist/translations/en-US.js ++++ b/node_modules/@walmart/avp-feature-app/dist/translations/en-US.js +@@ -143,7 +143,7 @@ export const enUS = { + }, + }, + health_benefits: { +- title: 'Health & Welness', ++ title: 'Health & Wellness', + button_text: 'View plan', + top_card: { + title: 'Live your happiest and healthiest life',
updated the patch file
updated the patch file
fb36c08dff79d024d3dd39a63a9ca4b160bca0da
--- targets/US/ios/Podfile.lock @@ -1033,7 +1033,6 @@ PODS: - OsirisCamera (0.8.3-rc.6): - Osiris (= 0.8.3-rc.6) - OsirisBarcode (= 0.8.3-rc.6) - - OsirisDigitalLocks (0.8.9) - OsirisVision (0.8.3-rc.6): - Osiris (= 0.8.3-rc.6) - OsirisCamera (= 0.8.3-rc.6) @@ -2153,11 +2152,6 @@ PODS: - Realm/Headers (10.51.0) - RealmJS (12.8.1): - React - - rn-mobile-sdk-pairing (2.0.7): - - glog - - OsirisDigitalLocks (= 0.8.9) - - RCT-Folly (= 2022.05.16.00) - - React-Core - RNCAsyncStorage (1.24.0): - React-Core - RNCClipboard (1.16.1): @@ -2432,7 +2426,6 @@ DEPENDENCIES: - "ReactNativeART (from `../../../node_modules/@react-native-community/art`)" - Realm - RealmJS (from `../../../node_modules/realm`) - - "rn-mobile-sdk-pairing (from `../../../node_modules/@walmart/rn-mobile-sdk-pairing`)" - "RNCAsyncStorage (from `../../../node_modules/@react-native-async-storage/async-storage`)" - "RNCClipboard (from `../../../node_modules/@react-native-clipboard/clipboard`)" - "RNCPicker (from `../../../node_modules/@react-native-picker/picker`)" @@ -2469,8 +2462,6 @@ DEPENDENCIES: SPEC REPOS: "git@gecgithub01.walmart.com:Compass/compass-ios-private-pods.git": - compass-sdk-ios - "git@gecgithub01.walmart.com:Project-Diamond/cocoapods-specs.git": - - OsirisDigitalLocks "git@gecgithub01.walmart.com:ssaeSCTP/CocoaPodSpecs.git": - StructuredLogAssistantIOS - SumoSDK @@ -2727,8 +2718,6 @@ EXTERNAL SOURCES: :path: "../../../node_modules/@react-native-community/art" RealmJS: :path: "../../../node_modules/realm" - rn-mobile-sdk-pairing: - :path: "../../../node_modules/@walmart/rn-mobile-sdk-pairing" RNCAsyncStorage: :path: "../../../node_modules/@react-native-async-storage/async-storage" RNCClipboard: @@ -2866,7 +2855,6 @@ SPEC CHECKSUMS: Osiris: 1b52d1f11f9c38f81e2a9c5764583639455043ab OsirisBarcode: 8c40bffbc0a2016de00607f6b2512389d2f0e8cd OsirisCamera: 3204d4ed1c9a47e44e0e606bfd0bd67679e70072 - OsirisDigitalLocks: 84d67583c496887c2a5657a7c1b1700d8ab8293f OsirisVision: b94dc2064b827855d6d510337a7737402feb8e9c PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851 @@ -2941,7 +2929,6 @@ SPEC CHECKSUMS: ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab Realm: 7e75a684c16aca7c6a5db9c70caebf37f07dcee5 RealmJS: 2c7fdb3991d7655fba5f88eb288f75eaf5cb9980 - rn-mobile-sdk-pairing: 1577ac7172e81bf99a45d483cbb7988ef109b639 RNCAsyncStorage: ec53e44dc3e75b44aa2a9f37618a49c3bc080a7a RNCClipboard: d7a8903d32692b0a1e71738c3825465a9acae10e RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1 @@ -2986,7 +2973,7 @@ SPEC CHECKSUMS: walmart-react-native-sumo-sdk: a35769d261a7130615e68ebd7861c8afe4320614 WebexSDK: b4ed0ab501a53675579d837745695b1f2499e7c4 wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 - Yoga: c716aea2ee01df6258550c7505fa61b248145ced + Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee ZebraRfidiOSSdk: 7e4eec426a4fd95a40e68d75fc9633ea96224b0c zxing-cpp: fcaae9c9427f24066af415055963582be8200d05 --- targets/US/package.json @@ -99,7 +99,7 @@ "@walmart/core-utils": "6.3.9", "@walmart/core-widget-registry": "workspace:^", "@walmart/counts-component-miniapp": "0.1.14", - "@walmart/digital-locks-mini-app": "1.1.2", + "@walmart/digital-locks-mini-app": "1.1.3", "@walmart/emergency-mini-app": "1.30.5", "@walmart/exception-mini-app": "1.8.11", "@walmart/facilities-management-miniapp": "0.17.0", @@ -143,7 +143,7 @@ "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.15.0", "@walmart/rfid-scan-mini-app": "2.7.1", - "@walmart/rn-mobile-sdk-pairing": "2.0.7", + "@walmart/rn-mobile-sdk-pairing": "2.1.4", "@walmart/rn-receiving-mini-app": "2.4.45", "@walmart/roster-mini-app": "2.9.0", "@walmart/schedule-mini-app": "1.13.0", --- yarn.lock @@ -6708,13 +6708,13 @@ __metadata: languageName: node linkType: hard -"@walmart/digital-locks-mini-app@npm:1.1.2": - version: 1.1.2 - resolution: "@walmart/digital-locks-mini-app@npm:1.1.2" +"@walmart/digital-locks-mini-app@npm:1.1.3": + version: 1.1.3 + resolution: "@walmart/digital-locks-mini-app@npm:1.1.3" peerDependencies: "@walmart/allspark-foundation": ">=6.0.0" "@walmart/invue-react-native-sdk": 0.1.26-beta.3 - "@walmart/rn-mobile-sdk-pairing": 2.0.7 + "@walmart/rn-mobile-sdk-pairing": 2.1.4 expo: 50.0.17 expo-image: 1.5.2 expo-secure-store: ~12.8.1 @@ -6726,7 +6726,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/1db352541ae7f6593d76bb2d7cc9f57603e3eb9f12f3dd4ed251b97533ec2da182ca47296fb4c2ecd1e2772c63f78d9daea30567437cdbc8d5c40074654fa96e + checksum: 10c0/9df6e87722a9b4765f6c599563f23cddc58f4837d2c73ff8e870529a1ed29d2b53849385dc0023b36459f795c4496ac0a28a403427f206e462895dbb3b147867 languageName: node linkType: hard @@ -7430,7 +7430,7 @@ __metadata: "@walmart/core-utils": "npm:6.3.9" "@walmart/core-widget-registry": "workspace:^" "@walmart/counts-component-miniapp": "npm:0.1.14" - "@walmart/digital-locks-mini-app": "npm:1.1.2" + "@walmart/digital-locks-mini-app": "npm:1.1.3" "@walmart/emergency-mini-app": "npm:1.30.5" "@walmart/exception-mini-app": "npm:1.8.11" "@walmart/facilities-management-miniapp": "npm:0.17.0" @@ -7474,7 +7474,7 @@ __metadata: "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.15.0" "@walmart/rfid-scan-mini-app": "npm:2.7.1" - "@walmart/rn-mobile-sdk-pairing": "npm:2.0.7" + "@walmart/rn-mobile-sdk-pairing": "npm:2.1.4" "@walmart/rn-receiving-mini-app": "npm:2.4.45" "@walmart/roster-mini-app": "npm:2.9.0" "@walmart/schedule-mini-app": "npm:1.13.0" @@ -8197,14 +8197,14 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-mobile-sdk-pairing@npm:2.0.7": - version: 2.0.7 - resolution: "@walmart/rn-mobile-sdk-pairing@npm:2.0.7" +"@walmart/rn-mobile-sdk-pairing@npm:2.1.4": + version: 2.1.4 + resolution: "@walmart/rn-mobile-sdk-pairing@npm:2.1.4" peerDependencies: "@walmart/invue-react-native-sdk": 0.1.26-beta.3 react: "*" react-native: "*" - checksum: 10c0/1e6e2b6e331c68ba8dcae6e4047a8ae0d43ed1d24d27572201fe165812b14fee90672eaa31c00e092ea78d850af3b4c5332474371133f93da4ffeccece1a38a5 + checksum: 10c0/2f2bbb694f775cd6d9e183b030dd6125d7f47cbbf53a486b32c38f29e49ea813e95d94c4df58d0c7b6533dcfc0327c871527840da0858de2e5990da173fdf911 languageName: node linkType: hard
bump to 1.1.3, pairing to 2.1.4
bump to 1.1.3, pairing to 2.1.4
61f3c2bd074cad2011bd6a6ecc2fb99ef0bb3146
--- README.md @@ -42,7 +42,7 @@ This is the MyWalmart app. - [Onboarding docs](https://gecgithub01.walmart.com/p - `yarn prebuild` - `bundle install` -### ios setup steps +### ios setup steps - default env is dev, run: `xed ios/AllSpark.xcworkspace` - xcode will launch the project, select the AllSpark project in the project navigator.
chore(config): ALLSPARK-0000 Dummy commit to test prepublish
chore(config): ALLSPARK-0000 Dummy commit to test prepublish
7b3315e7757dc9c1083d8bd42e421fb7f8404ef7
--- package-lock.json @@ -5375,9 +5375,9 @@ } }, "@walmart/mod-flex-mini-app": { - "version": "1.1.5", - "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.1.5.tgz", - "integrity": "sha512-ZdcX0HjxBfCafRfN6wbcyle7F3m+GNbHhzWz6VYBtGXe4JSrLKcI7F3Go9l6pi++vBeP+45Li+TRRlhNwomHmw==" + "version": "1.2.1", + "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.2.1.tgz", + "integrity": "sha512-Jjn3P/DL5Q2V1fmmGq/WObFQCXfiR4/C9MvStOFi64PQLtVCE6lcw1LuO6vEMb0lQ9guCeZ5uUZ6ABjijiu6ew==" }, "@walmart/moment-walmart": { "version": "1.0.4", --- package.json @@ -99,7 +99,7 @@ "@walmart/manager-approvals-miniapp": "0.0.62", "@walmart/me-field-mini-app": "1.1.24", "@walmart/metrics-mini-app": "0.9.12", - "@walmart/mod-flex-mini-app": "1.1.5", + "@walmart/mod-flex-mini-app": "1.2.1", "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.126.9", "@walmart/price-changes-mini-app": "1.5.3",
Update mod-flex-mini-app to 1.2.1
Update mod-flex-mini-app to 1.2.1
cffd412313154ca1d4ea853d7912757ff33bd5f9
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.31", + "version": "1.15.32", "main": "dist/index.js", "files": [ "dist" @@ -81,7 +81,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.20.0", - "@walmart/allspark-foundation-hub": "1.0.11-alpha.2", + "@walmart/allspark-foundation-hub": "1.2.7-alpha.7", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.32", + "@walmart/roster-mini-app": "2.12.35", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -5992,9 +5992,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.0.11-alpha.2": - version: 1.0.11-alpha.2 - resolution: "@walmart/allspark-foundation-hub@npm:1.0.11-alpha.2" +"@walmart/allspark-foundation-hub@npm:1.2.7-alpha.7": + version: 1.2.7-alpha.7 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.7-alpha.7" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -6004,18 +6004,8 @@ __metadata: "@graphql-codegen/typescript-react-apollo": "npm:^4.1.0" "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" - "@types/node-fetch": "npm:^2.6.9" - axios: "npm:~1.6.0" - axios-cache-interceptor: "npm:^1.3.2" - crypto-js: "npm:~4.2.0" - graphql: "npm:^16.8.1" - i18next: "npm:^23.6.0" - json-to-pretty-yaml: "npm:^1.2.2" lodash: "npm:~4.17.21" namecase: "npm:^1.1.2" - react-hook-form: "npm:^7.38.0" - react-i18next: "npm:^13.3.1" - react-native-modalfy: "npm:^3.5.2" react-redux: "npm:^8.1.3" redux: "npm:^4.2.1" redux-saga: "npm:^1.2.3" @@ -6058,39 +6048,7 @@ __metadata: react-native-permissions: 3.x react-native-reanimated: 3.x react-native-safe-area-context: 4.x - react-native-screens: 3.x - peerDependenciesMeta: - "@walmart/allspark-graphql-client": - optional: true - "@walmart/allspark-http-client": - optional: true - "@walmart/core-services": - optional: true - "@walmart/core-utils": - optional: true - "@walmart/functional-components": - optional: true - "@walmart/react-native-env": - optional: true - "@walmart/react-native-shared-navigation": - optional: true - "@walmart/react-native-wm-network": - optional: true - "@walmart/react-native-wm-notification": - optional: true - "@walmart/react-native-wm-telemetry": - optional: true - "@walmart/redux-store": - optional: true - react-native-apollo-devtools-client: - optional: true - react-native-flipper: - optional: true - bin: - allspark-generate-graphql: cli/generate.js - allspark-link: cli/link.js - allspark-setup: cli/setup.js - checksum: 10c0/b3a9b49bb6b54caed3b8c8875fa9826ca0852713947542811ca74871bea57da8f8ebc1a2e3a7c5d78f09791e2281e6a0d8269ba94169c300245b33ff25dbf77e + checksum: 10c0/63964a418e7efc852ae250e5305924e22ed9141de678fcad3ce7a42564b08845b07d97622264c4464e945dd00b62437a8f38f4d975d74dd5ff2769ec37dd3551 languageName: node linkType: hard @@ -6478,7 +6436,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.20.0" - "@walmart/allspark-foundation-hub": "npm:1.0.11-alpha.2" + "@walmart/allspark-foundation-hub": "npm:1.2.7-alpha.7" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" @@ -6496,7 +6454,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.32" + "@walmart/roster-mini-app": "npm:2.12.35" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6677,9 +6635,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.32": - version: 2.12.32 - resolution: "@walmart/roster-mini-app@npm:2.12.32" +"@walmart/roster-mini-app@npm:2.12.35": + version: 2.12.35 + resolution: "@walmart/roster-mini-app@npm:2.12.35" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6721,7 +6679,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/1dd838296cdf3b2fe52eb61cc45eea06eb150b6dbb610c28f53fcee326d413ef058d410a413f7c20578f1157974d9fc7ed79287460fa0d92f554ac58b099fdeb + checksum: 10c0/1eebe115f6f4c082978569e767ea776cc544d7a5a5379cd5c4c8da622d85e28ebfb1adf3c96775c86c0923b6de16fd8db91c674aa88c89a48149fb451ffac103 languageName: node linkType: hard
Update my team mini app version
Update my team mini app version
9a0d90b596ed18b5a8e4f1212e245d5096490592
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -277,22 +277,22 @@ export const MainStackNav = () => { <MainStack.Screen name='FacilitiesManagementStack' component={FacilitiesMaintainanceStack} - /> - - <MainStack.Screen - name='paymentselection' - component={PaymentSelectionMiniApp} - /> - - <MainStack.Screen - name='paymentselection.PayMethodScreen' - component={PayMethodScreen} - /> - - <MainStack.Screen - name='paymentselection.OneAppScreen' - component={OneAppScreen} - /> + /> + + <MainStack.Screen + name='paymentselection' + component={PaymentSelectionMiniApp} + /> + + <MainStack.Screen + name='paymentselection.PayMethodScreen' + component={PayMethodScreen} + /> + + <MainStack.Screen + name='paymentselection.OneAppScreen' + component={OneAppScreen} + /> </MainStack.Group> </MainStack.Navigator>
Feedback comments resolution
Feedback comments resolution
da90cdfb60e33e02a0783adfa28ac69713bbfa88
--- ios/BuildSupport/install-cocoapods.sh @@ -12,7 +12,7 @@ export PATH=$GEM_HOME/bin:$PATH export https_proxy=http://sysproxy.wal-mart.com:8080 export http_proxy=http://sysproxy.wal-mart.com:8080 -export no_proxy=repository.walmart.com,repo.wal-mart.com,localhost +export no_proxy=repository.walmart.com,repo.wal-mart.com,localhost, chromium.googlesource.com gem uninstall cocoapods -a -x --user-install --verbose gem install cocoapods -v ${CCP_VER} --user-install --verbose
adding chromium proxy
adding chromium proxy
f6d2d74bc6a4a59e6b629d179f896b7447f41a12
--- package-lock.json @@ -3565,9 +3565,9 @@ "integrity": "sha512-DnuWICgwXUEwBTmZlx+iEFmh1t7rtQLQICQ7RVYpbHABQAQDFMRUwhyBPCoZT6DVGCkDGhXV5HcsCUFMs8UZsQ==" }, "@walmart/shelfavailability-mini-app": { - "version": "0.4.5-SNAPSHOT.1", - "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.4.5-SNAPSHOT.1.tgz", - "integrity": "sha512-Bh4xWy9QFA5zTT3F4GfJL9IknAsomZGPPmEheXJx/FW8drZUtGVLom/aJ8dpyWWuvWmV9wbiewXuG5O1tnJlPA==", + "version": "0.4.5-SNAPSHOT.2", + "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.4.5-SNAPSHOT.2.tgz", + "integrity": "sha512-4+ePANyVhq/QZSve0MugtFRZJLTgkQ/mTVDBIH5ohGFLPVHAthnTFKWMrjqP/Dk1LMnnQKW5PXUXFVPIMV/e+g==", "requires": { "@types/uuid": "^8.3.0", "@types/xdate": "^0.8.31", --- package.json @@ -96,7 +96,7 @@ "@walmart/redux-store": "^1.0.15", "@walmart/schedule-mini-app": "0.4.4", "@walmart/settings-mini-app": "1.3.8", - "@walmart/shelfavailability-mini-app": "0.4.5-SNAPSHOT.1", + "@walmart/shelfavailability-mini-app": "0.4.5-SNAPSHOT.2", "@walmart/time-clock-mini-app": "0.4.21", "@walmart/ui-components": "1.1.62", "@walmart/welcomeme-mini-app": "0.30.4",
Updated SA snapshot
Updated SA snapshot
d9fe2606b1d52df71d7c6c2fe52dde1b9291a876
--- src/hooks/teams.ts @@ -1,5 +1,18 @@ -import {teamsMock} from "./tempTeamMock"; +import {teamsMock} from './tempTeamMock'; +import {TeamInfo} from '../screens/RosterScreen'; +import {useGetStoreRoster} from './roster'; export const useGetTeamsInfo = () => { - return teamsMock; -} + return teamsMock; +}; + +export const useGetAssociateListForTeam = (teamInfo: TeamInfo) => { + const associateListForStore = useGetStoreRoster(); + const userIdsInTeam = teamInfo.membership.map((member) => { + return member.userId; + }); + return associateListForStore.filter((associate) => { + const userId = associate?.userId; + return userIdsInTeam.includes(userId ?? ''); + }); +}; --- src/screens/RosterScreen.tsx @@ -65,7 +65,12 @@ type Props = { export interface TeamInfo { teamId: string; teamName: string; - members: Associate[]; + membership: { + win: string; + baseTeam: boolean; + role: string; + userId: string; + }[]; } export const RosterHeader: React.FC = () => { @@ -91,7 +96,6 @@ export const RosterScreen: React.FC<Props> = ({navigation}) => { const storeId = useSelector(SiteSelectors.getUserWorkingSite); const countryCode = useSelector(SiteSelectors.getSiteCountry); const clockedIn = useSelector(ClockStatusSelectors.getIsClockedIn); - //TODO: Using hardcoded info, selector is not retrieving data const teams = useGetTeamsInfo(); const associates: (Associate | null)[] = useGetStoreRoster(); @@ -113,8 +117,6 @@ export const RosterScreen: React.FC<Props> = ({navigation}) => { errorPolicy: 'all', }); - - const fetchDailyRoster = useCallback(() => { if (storeId && countryCode) { getDailyRoster({ @@ -163,7 +165,7 @@ export const RosterScreen: React.FC<Props> = ({navigation}) => { //TODO: Create transform method to aggregate the correct TeamInfo data and pass as argument const goToViewTeamScreen = () => { - const teamInfo = teams[3]; + const teamInfo = teams[8]; navigation.navigate('texting.viewTeam', {teamInfo}); }; --- src/screens/ViewTeamScreen.tsx @@ -10,6 +10,7 @@ import {noop} from 'lodash'; import {Associate} from '../types'; import {tempAssociatesMock} from '../hooks/tempAssociatesMock'; import {useStartAssociateText} from '../hooks'; +import {useGetAssociateListForTeam} from "../hooks/teams"; export interface ViewTeamScreenProps { route: any; //TODO: Determine type for route @@ -17,11 +18,11 @@ export interface ViewTeamScreenProps { } export const ViewTeamScreen: React.FC<ViewTeamScreenProps> = ({route}) => { - //TODO: TeamInfo should contain associates data in members prop - //const {teamInfo}: {teamInfo: TeamInfo} = route.params; - const associates = tempAssociatesMock; + const {teamInfo}: {teamInfo: TeamInfo} = route.params; + const associates = useGetAssociateListForTeam(teamInfo); const startAssociateText = useStartAssociateText(); + //TODO: De-duplicate renderAssociate from roster screen const renderAssociate: ListRenderItem<Associate | null> = useCallback( ({item: associate, index}) => { --- src/hooks/teams.ts @@ -1,5 +1,18 @@ -import {teamsMock} from "./tempTeamMock"; +import {teamsMock} from './tempTeamMock'; +import {TeamInfo} from '../screens/RosterScreen'; +import {useGetStoreRoster} from './roster'; export const useGetTeamsInfo = () => { - return teamsMock; -} + return teamsMock; +}; + +export const useGetAssociateListForTeam = (teamInfo: TeamInfo) => { + const associateListForStore = useGetStoreRoster(); + const userIdsInTeam = teamInfo.membership.map((member) => { + return member.userId; + }); + return associateListForStore.filter((associate) => { + const userId = associate?.userId; + return userIdsInTeam.includes(userId ?? ''); + }); +}; --- src/screens/RosterScreen.tsx @@ -65,7 +65,12 @@ type Props = { export interface TeamInfo { teamId: string; teamName: string; - members: Associate[]; + membership: { + win: string; + baseTeam: boolean; + role: string; + userId: string; + }[]; } export const RosterHeader: React.FC = () => { @@ -91,7 +96,6 @@ export const RosterScreen: React.FC<Props> = ({navigation}) => { const storeId = useSelector(SiteSelectors.getUserWorkingSite); const countryCode = useSelector(SiteSelectors.getSiteCountry); const clockedIn = useSelector(ClockStatusSelectors.getIsClockedIn); - //TODO: Using hardcoded info, selector is not retrieving data const teams = useGetTeamsInfo(); const associates: (Associate | null)[] = useGetStoreRoster(); @@ -113,8 +117,6 @@ export const RosterScreen: React.FC<Props> = ({navigation}) => { errorPolicy: 'all', }); - - const fetchDailyRoster = useCallback(() => { if (storeId && countryCode) { getDailyRoster({ @@ -163,7 +165,7 @@ export const RosterScreen: React.FC<Props> = ({navigation}) => { //TODO: Create transform method to aggregate the correct TeamInfo data and pass as argument const goToViewTeamScreen = () => { - const teamInfo = teams[3]; + const teamInfo = teams[8]; navigation.navigate('texting.viewTeam', {teamInfo}); }; --- src/screens/ViewTeamScreen.tsx @@ -10,6 +10,7 @@ import {noop} from 'lodash'; import {Associate} from '../types'; import {tempAssociatesMock} from '../hooks/tempAssociatesMock'; import {useStartAssociateText} from '../hooks'; +import {useGetAssociateListForTeam} from "../hooks/teams"; export interface ViewTeamScreenProps { route: any; //TODO: Determine type for route @@ -17,11 +18,11 @@ export interface ViewTeamScreenProps { } export const ViewTeamScreen: React.FC<ViewTeamScreenProps> = ({route}) => { - //TODO: TeamInfo should contain associates data in members prop - //const {teamInfo}: {teamInfo: TeamInfo} = route.params; - const associates = tempAssociatesMock; + const {teamInfo}: {teamInfo: TeamInfo} = route.params; + const associates = useGetAssociateListForTeam(teamInfo); const startAssociateText = useStartAssociateText(); + //TODO: De-duplicate renderAssociate from roster screen const renderAssociate: ListRenderItem<Associate | null> = useCallback( ({item: associate, index}) => {
filtering roster to get associates for team on view team screen
filtering roster to get associates for team on view team screen
beb05707fad60b3d938ef00df83a6cf1d3e3d6a1
--- __tests__/startup/StartupFlowTest.ts @@ -26,6 +26,7 @@ import { import {handleSurveyPrompt} from '../../src/survey/SurveySaga'; import {handleAppReviewPrompt} from '../../src/appReview/sagas'; import {handleCallingOnboarding} from '../../src/calling/CallingSagas'; +import {AllsparkNotificationClient} from '@walmart/allspark-foundation/Notification'; // jest.mock('../../src/core/Auth', () => ({ // Auth: { @@ -103,6 +104,9 @@ test('associateStartupFlow', () => { expect(iterator.next().value).toEqual(call(handleAppReviewPrompt)); expect(iterator.next().value).toEqual(call(handleSurveyPrompt)); expect(iterator.next().value).toEqual(call(handleCallingOnboarding)); + expect(iterator.next().value).toEqual( + call(AllsparkNotificationClient.resumeNotifications), + ); expect(iterator.next().done).toEqual(true); }); --- src/index.tsx @@ -9,15 +9,21 @@ import {EnvironmentType} from '@walmart/allspark-foundation/Environment'; import {RootStackNavigation} from './navigation'; import {ENV, ENV_OVERRIDES} from '../env'; -/** - * Pause notifications while the app is starting up. - */ -AllsparkNotificationClient.pauseNotifications(); - /** * Any setup that needs to happen before the app is registered. */ export const preRegister = () => { + /** + * Pause notifications while the app is starting up. + */ + AllsparkNotificationClient.pauseNotifications(); + + /** + * Setup calling mini app. + * Requiring directly to avoid side effects. + * @todo: Have calling expose rootSetup directly. Something like: + * import { setupCalling } from '@walmart/calling-mini-app/Setup'; + */ require('@walmart/calling-mini-app/dist/rootSetup/index').setupCalling(); }; --- src/startup/StartupFlow.ts @@ -73,7 +73,7 @@ export function* associateStartupFlow() { yield call(handleCallingOnboarding); // Resume notifications now that the app is fully started - AllsparkNotificationClient.resumeNotifications(); + yield call(AllsparkNotificationClient.resumeNotifications); } export function* startupFlow() {
refactor: move notification pause to preregister. move resume to call effect
refactor: move notification pause to preregister. move resume to call effect
120b78749b356e4139b9af0bf22b6f4205df415c
--- packages/allspark-container/CHANGELOG.md --- packages/allspark-container/LICENSE --- packages/allspark-container/README.md --- packages/allspark-container/__tests__/__mocks__/@walmart/config-components.js --- packages/allspark-container/__tests__/__mocks__/@walmart/functional-components.js --- packages/allspark-container/__tests__/__mocks__/@walmart/react-native-logger.js --- packages/allspark-container/__tests__/__mocks__/react-native-device-info.js --- packages/allspark-container/__tests__/__mocks__/react-native-ssmp-sso-allspark.js --- packages/allspark-container/__tests__/__mocks__/uuid.js --- packages/allspark-container/__tests__/testTest.ts --- packages/allspark-container/babel.config.js --- packages/allspark-container/jest.config.js --- packages/allspark-container/package-lock.json --- packages/allspark-container/package.json --- packages/allspark-container/src/appConfig/constants.ts --- packages/allspark-container/src/appConfig/effects.tsx --- packages/allspark-container/src/appConfig/index.ts --- packages/allspark-container/src/appConfig/provider.tsx --- packages/allspark-container/src/appConfig/sagas.ts --- packages/allspark-container/src/appConfig/utils.ts --- packages/allspark-container/src/auth/constants.ts --- packages/allspark-container/src/auth/effects.tsx --- packages/allspark-container/src/auth/index.ts --- packages/allspark-container/src/auth/provider.tsx --- packages/allspark-container/src/auth/sagas.ts --- packages/allspark-container/src/auth/service/cache.ts --- packages/allspark-container/src/auth/service/getUser.ts --- packages/allspark-container/src/auth/service/index.ts --- packages/allspark-container/src/auth/service/listeners.ts --- packages/allspark-container/src/auth/service/refreshToken.ts --- packages/allspark-container/src/auth/service/signIn.ts --- packages/allspark-container/src/auth/service/signOut.ts --- packages/allspark-container/src/auth/service/types.ts --- packages/allspark-container/src/auth/service/utils.ts --- packages/allspark-container/src/deviceInfo/index.tsx --- packages/allspark-container/src/httpClient/constants.ts --- packages/allspark-container/src/httpClient/effects.ts --- packages/allspark-container/src/httpClient/index.ts --- packages/allspark-container/src/httpClient/interceptors.ts --- packages/allspark-container/src/httpClient/provider.tsx --- packages/allspark-container/src/httpClient/queue.ts --- packages/allspark-container/src/httpClient/types.ts --- packages/allspark-container/src/index.tsx --- packages/allspark-container/src/localStorage/effects.ts --- packages/allspark-container/src/localStorage/index.ts --- packages/allspark-container/src/localStorage/provider.tsx --- packages/allspark-container/src/localStorage/sagas.ts --- packages/allspark-container/src/logger/constants.ts --- packages/allspark-container/src/logger/effects.tsx --- packages/allspark-container/src/logger/index.ts --- packages/allspark-container/src/logger/provider.tsx --- packages/allspark-container/src/logger/sagas.ts --- packages/allspark-container/src/network/constants.ts --- packages/allspark-container/src/network/effects.tsx --- packages/allspark-container/src/network/index.ts --- packages/allspark-container/src/network/provider.tsx --- packages/allspark-container/src/network/sagas.ts --- packages/allspark-container/src/network/types.ts --- packages/allspark-container/src/network/utils.ts --- packages/allspark-container/src/notification/constants.ts --- packages/allspark-container/src/notification/effects.tsx --- packages/allspark-container/src/notification/index.ts --- packages/allspark-container/src/notification/provider.tsx --- packages/allspark-container/src/notification/sagas.ts --- packages/allspark-container/src/permissions/constants.ts --- packages/allspark-container/src/permissions/effects.tsx --- packages/allspark-container/src/permissions/index.ts --- packages/allspark-container/src/permissions/provider.tsx --- packages/allspark-container/src/permissions/utils.ts --- packages/allspark-container/src/providers/index.tsx --- packages/allspark-container/src/providers/package.json --- packages/allspark-container/src/recipe.ts --- packages/allspark-container/src/scanner/index.ts --- packages/allspark-container/src/scanner/provider.tsx --- packages/allspark-container/src/storeConfig/constants.ts --- packages/allspark-container/src/storeConfig/effects.tsx --- packages/allspark-container/src/storeConfig/index.ts --- packages/allspark-container/src/storeConfig/provider.tsx --- packages/allspark-container/src/storeConfig/sagas.ts --- packages/allspark-container/src/telemetry/effects.tsx --- packages/allspark-container/src/telemetry/index.ts --- packages/allspark-container/src/telemetry/provider.tsx --- packages/allspark-container/src/telemetry/sagas.ts --- packages/allspark-container/src/translations/effects.tsx --- packages/allspark-container/src/translations/index.ts --- packages/allspark-container/src/translations/provider.tsx --- packages/allspark-container/src/types/config-components.d.ts --- packages/allspark-container/src/types/index.ts --- packages/allspark-container/src/user/cache.ts --- packages/allspark-container/src/user/constants.ts --- packages/allspark-container/src/user/effects.tsx --- packages/allspark-container/src/user/index.ts --- packages/allspark-container/src/user/provider.tsx --- packages/allspark-container/src/user/sagas.ts --- packages/allspark-container/src/user/service.ts --- packages/allspark-container/src/user/transforms.ts --- packages/allspark-container/src/user/types.ts --- packages/allspark-container/src/user/utils.ts --- packages/allspark-container/src/utils.ts --- packages/allspark-container/tsconfig.json
chore: rename package
chore: rename package
98be4330d57a18ad32fc76d13786a4599952b8b6
--- src/navigation/types.ts @@ -12,7 +12,7 @@ export type TextingNavParamsMap = { 'myTeam.newMessage': undefined; 'myTeam.viewTeam': { teamRoster?: any; - teamData?: GetTeamByIdQuery | undefined; + teamData?: GetTeamByIdQuery; clockedInCount?: number | null; absentCount?: number | null; }; --- src/navigation/types.ts @@ -12,7 +12,7 @@ export type TextingNavParamsMap = { 'myTeam.newMessage': undefined; 'myTeam.viewTeam': { teamRoster?: any; - teamData?: GetTeamByIdQuery | undefined; + teamData?: GetTeamByIdQuery; clockedInCount?: number | null; absentCount?: number | null; };
Update src/navigation/types.ts
Update src/navigation/types.ts Co-authored-by: Rogerio Moura <rogerio.hoehr.de.moura.filho@walmart.com>
9b29089c1f17d5fe184fce461792c4fc71265d56
--- __tests__/__snapshots__/AppTest.tsx.snap @@ -28,20 +28,18 @@ exports[`RootContainer renders and fires startup event 1`] = ` } } > - <PushToTalkProvider> - <NavigationContainer - linking={ - { - "config": { - "screens": { - "main": { - "screens": { - "mainStack": { - "screens": { - "Returns": { - "screens": { - "Returns.Landing": "returns/:siteId/:printerAddress", - }, + <NavigationContainer + linking={ + { + "config": { + "screens": { + "main": { + "screens": { + "mainStack": { + "screens": { + "Returns": { + "screens": { + "Returns.Landing": "returns/:siteId/:printerAddress", }, }, }, @@ -49,16 +47,16 @@ exports[`RootContainer renders and fires startup event 1`] = ` }, }, }, - "prefixes": [ - "meatwmt://", - ], - } + }, + "prefixes": [ + "meatwmt://", + ], } - theme={{}} - > - <UpdateVersionModal /> - </NavigationContainer> - </PushToTalkProvider> + } + theme={{}} + > + <UpdateVersionModal /> + </NavigationContainer> </LoggerProvider> </AllsparkCoreServices> </LivingDesignProvider> @@ -108,13 +106,11 @@ exports[`RootContainer renders with no linking config on undefined userid 1`] = } } > - <PushToTalkProvider> - <NavigationContainer - theme={{}} - > - <UpdateVersionModal /> - </NavigationContainer> - </PushToTalkProvider> + <NavigationContainer + theme={{}} + > + <UpdateVersionModal /> + </NavigationContainer> </LoggerProvider> </AllsparkCoreServices> </LivingDesignProvider> --- __tests__/navigation/AssociateHallwayNav/SideMenuContentTest.tsx @@ -24,6 +24,12 @@ jest.mock('../../../src/hooks', () => ({ useCanImpersonate: jest.fn(), })); +jest.mock('@walmart/wmconnect-mini-app', () => ({ + MyTeamHooks: { + useMessagesUnreadCount: jest.fn(), + }, +})); + const mockUseDrawerStatus = (useDrawerStatus as jest.Mock).mockReturnValue( 'open', ); --- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx @@ -36,6 +36,12 @@ jest.mock('@walmart/taskit-mini-app', () => ({ getTaskTabBarBadge: jest.fn(), })); +jest.mock('@walmart/wmconnect-mini-app', () => ({ + MyTeamHooks: { + useMessagesUnreadCount: jest.fn(), + }, +})); + const mockUseSelector = useSelector as jest.Mock; test('renderTabBarButton', () => { --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -372,6 +372,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects name="SurveySaysDialog" /> <Screen + getComponent={[Function]} name="PTT.MessagesList.ButtonSheet.Screen" /> <Screen @@ -795,6 +796,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects name="SurveySaysDialog" /> <Screen + getComponent={[Function]} name="PTT.MessagesList.ButtonSheet.Screen" /> <Screen --- __tests__/settings/versions/utilsTest.ts @@ -28,5 +28,5 @@ test('sortByTitle', () => { }); test('getVersionData length', () => { - expect(getVersionData().length).toEqual(33); + expect(getVersionData().length).toEqual(36); });
My team mini app version update for Drop 19
My team mini app version update for Drop 19
be4967625058154f8d63e53c616970df15aa7cbe
--- android/build.gradle @@ -4,8 +4,8 @@ buildscript { ext { buildToolsVersion = "33.0.0" minSdkVersion = 26 - compileSdkVersion = 33 - targetSdkVersion = 33 + compileSdkVersion = 34 + targetSdkVersion = 34 kotlinVersion = "1.8.0" kotlin_version = "1.8.0" --- android/gradle.properties @@ -49,7 +49,8 @@ systemProp.https.proxyPort=8080 systemProp.https.nonProxyHosts=*.wal-mart.com|*.walmart.com # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m -org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=4096m -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=512m +# Unrecognized -XX:MaxPermSize=4096m +org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -XX:MaxMetaspaceSize=512m org.gradle.daemon=true org.gradle.parallel=true org.gradle.configureondemand=true \ No newline at end of file
RN upgrade 73
RN upgrade 73
8adbe1224dfb9b0b2c3b7da844d009fcc01c0622
--- package.json @@ -84,7 +84,7 @@ "@walmart/amp-mini-app": "1.1.98", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "patch:@walmart/ask-sam-mini-app@npm%3A1.29.3#~/.yarn/patches/@walmart-ask-sam-mini-app-npm-1.29.3-61985fa7e6.patch", - "@walmart/associate-listening-mini-app": "1.2.14", + "@walmart/associate-listening-mini-app": "1.2.32", "@walmart/attendance-mini-app": "3.156.0", "@walmart/avp-feature-app": "0.16.12", "@walmart/avp-shared-library": "0.10.9", --- yarn.lock @@ -7554,11 +7554,11 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-listening-mini-app@npm:1.2.14": - version: 1.2.14 - resolution: "@walmart/associate-listening-mini-app@npm:1.2.14::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2Fassociate-listening-mini-app-1.2.14.tgz" +"@walmart/associate-listening-mini-app@npm:1.2.32": + version: 1.2.32 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.32::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-mini-app%2F-%2F%40walmart%2Fassociate-listening-mini-app-1.2.32.tgz" dependencies: - "@walmart/associate-listening-utils": "npm:5.0.81" + "@walmart/associate-listening-utils": "npm:5.0.87" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -7567,17 +7567,17 @@ __metadata: "@walmart/gtp-shared-components": 2.0.5 react: ^18.2.0 react-native: 0.70.9 - checksum: 10c0/65929e3feece1e934e266e8daa53582e56d73e034792f9c58cca7e9ef94d1e98466daae069be50eaf88bb5d63fd13982772327c63f6beb4cb83f8e7ba92bc900 + checksum: 10c0/a5abe80e6c7a0f7fb5f5931bd71079fdf2cc7e36cd2c3da661e78cd57322b919e9a6e3e7de238dcc1e014aa9548f530388648e21b98f7d0cad3bcb579d6c31c1 languageName: node linkType: hard -"@walmart/associate-listening-utils@npm:5.0.81": - version: 5.0.81 - resolution: "@walmart/associate-listening-utils@npm:5.0.81::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-utils%2F-%2Fassociate-listening-utils-5.0.81.tgz" +"@walmart/associate-listening-utils@npm:5.0.87": + version: 5.0.87 + resolution: "@walmart/associate-listening-utils@npm:5.0.87::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-listening-utils%2F-%2F%40walmart%2Fassociate-listening-utils-5.0.87.tgz" dependencies: "@types/semver": "npm:^7.3.4" semver: "npm:^7.3.4" - checksum: 10c0/efd6a986558de6f4e55292b68c785b5f55066d0602ce86a7609f5f44a4a66e144e398ed9c54eec608d07bacbbb656277a800c0aedc33fd273a1d35b9dd0e36fd + checksum: 10c0/6de58078e566385cec487f27b10d9f742fa87479b50e92c0bc8cdd77c90690acd865ecaedd740d8a76e1a33bcf28c934ffa6a920a8d4372abfd761437b5b012d languageName: node linkType: hard @@ -8560,7 +8560,7 @@ __metadata: "@walmart/amp-mini-app": "npm:1.1.98" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "patch:@walmart/ask-sam-mini-app@npm%3A1.29.3#~/.yarn/patches/@walmart-ask-sam-mini-app-npm-1.29.3-61985fa7e6.patch" - "@walmart/associate-listening-mini-app": "npm:1.2.14" + "@walmart/associate-listening-mini-app": "npm:1.2.32" "@walmart/attendance-mini-app": "npm:3.156.0" "@walmart/avp-feature-app": "npm:0.16.12" "@walmart/avp-shared-library": "npm:0.10.9"
feat(associate-listening): OPIF-192588 Drop 31 Manager Insight feature (#4220)
feat(associate-listening): OPIF-192588 Drop 31 Manager Insight feature (#4220) * feat(associate-listening): OPIF-192588 Add Manager Insight feature * feat: OPIF-192588 Add Manager Insight feature * feat: OPIF-192588 Add Manager Insight feature * feat: show Manager Insight feature for compensable user only --------- Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
6011e35599c33f430c5ade216cf024938c0624cc
--- package-lock.json @@ -68,7 +68,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.0.14", "@walmart/onewalmart-miniapp": "1.0.16", - "@walmart/pay-stub-miniapp": "0.13.5", + "@walmart/pay-stub-miniapp": "0.15.1", "@walmart/payrollsolution_miniapp": "0.135.3", "@walmart/price-changes-mini-app": "1.10.2", "@walmart/profile-feature-app": "0.334.3", @@ -9387,9 +9387,9 @@ } }, "node_modules/@walmart/pay-stub-miniapp": { - "version": "0.13.5", - "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.13.5.tgz", - "integrity": "sha512-J/rc62vfy5N2yO3t3QVpTPGbyfWJJZe59muSuAuZipkX9zbMVhjoE89WM+FDTykIWcBHXkMY8DCdPlTEUYpzBA==", + "version": "0.15.1", + "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.15.1.tgz", + "integrity": "sha512-fYtRR5nYig2+p3Yg5NxtOcYZA5ukYfJb3E3chl+0s0quoOGI8w1zLxQ2J6eQ6Ob/SCrSP1/tVOHrbmGPuACRQQ==", "hasInstallScript": true, "dependencies": { "crypto-js": "^3.3.0", @@ -33427,9 +33427,9 @@ } }, "@walmart/pay-stub-miniapp": { - "version": "0.13.5", - "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.13.5.tgz", - "integrity": "sha512-J/rc62vfy5N2yO3t3QVpTPGbyfWJJZe59muSuAuZipkX9zbMVhjoE89WM+FDTykIWcBHXkMY8DCdPlTEUYpzBA==", + "version": "0.15.1", + "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.15.1.tgz", + "integrity": "sha512-fYtRR5nYig2+p3Yg5NxtOcYZA5ukYfJb3E3chl+0s0quoOGI8w1zLxQ2J6eQ6Ob/SCrSP1/tVOHrbmGPuACRQQ==", "requires": { "crypto-js": "^3.3.0", "expo-sharing": "~11.5.0"
Bump Version
Bump Version
0349e0e8d803503b9092395cc2ce431814720e4f
--- targets/US/ios/Podfile.lock @@ -653,7 +653,7 @@ PODS: - ReactCommon/turbomodule/core - ExpoSharing (11.10.0): - ExpoModulesCore - - ExpoStoreReview (7.0.2): + - ExpoStoreReview (6.8.3): - ExpoModulesCore - FBLazyVector (0.73.7) - FBReactNativeSpec (0.73.7): @@ -2771,7 +2771,7 @@ SPEC CHECKSUMS: ExpoLinearGradient: 4ad1449a2408e0435ac959076562b3921f2e32a1 ExpoModulesCore: 4a8928a228569301ac4fc4a1e846713e05754d05 ExpoSharing: 752ad6ae2b693de9cd4e7fddb78297bdc658b815 - ExpoStoreReview: 15f9a636b62ff00bb21cbe9a9fe22f0239da4481 + ExpoStoreReview: 3911cdf5a416230a421af41f93e763595bd7a681 FBLazyVector: 9f533d5a4c75ca77c8ed774aced1a91a0701781e FBReactNativeSpec: 3f4077e629672d481b70bc665cdae1829c71c043 Firebase: 0219acf760880eeec8ce479895bd7767466d9f81
chore: update podfile
chore: update podfile
1a9d8311a54024bd6074e199f71c256d55a7e1aa
--- saucelabs/.looper-native-common-saucelabs.yml @@ -3,6 +3,7 @@ inherit: "job:///metropolis/metroloop/metroloop-parent" envs: global: variables: + CI: true TMPDIR: /tmp TARGET_XCODE: "12.0" TARGET_SIMULATOR: "iPhone 11"
adding CI env variable to avoid watchman being used for builds
adding CI env variable to avoid watchman being used for builds
906dfd635e798c28f145c53804f5fe0b17008407
--- sr.yaml @@ -0,0 +1,36 @@ +schemaVersion: 1.0.0 +notify: + slack: + channelName: smdv-graphql +applications: + - name: celebration-mini-app + key: CELEBRATION-MINI-APP + description: MyWalmart 2.0 Celebrations Mini App + organization: GeC + teamRostersProductId: 1824 + companyCatalog: true + businessCriticality: MINOR + members: + - homeoffice\eacheam + - homeoffice\p0d02sx + - homeoffice\rlane1 + - homeoffice\p0k03fp + - homeoffice\m0a0ppv + - homeoffice\d0b01r1 + - homeoffice\v0b04vp + environments: + - name: stage + type: STAGING + consumerIdInfos: + - consumerId: 988ee30c-95ed-420b-b8a7-906fc40af38e + publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Sd/5WZVMSYMzdo15XuI+lGtspwJQLqYnezaq4KsnKi6a7sYilHTWfouGvsddY9b3aElh77e3LLbFuzl5epUyTZlpaTWyn+BKfoTlEMIDaatyDIr6mVn1ria1bbnNPsCAU3HthkmO+cFn5tt80GhzBCfQN41qbLerLN5QYmaWmg2+52blVaDUwqrVYC1obBg3jdhQkPLGEWCFqO4DqTEff0CSISyWRoECkEbVVx7fWSNJvWTPu9/bknC3Jk72yAK+R45j3l6f7hHzC4w/kliuXr8WsmLagspIe9WTJJ0kMq47guwozsggohRSSc8zIElfvdWOMpm3GP5w4W8TRHUeQIDAQAB + - name: dev + type: DEVELOPMENT + consumerIdInfos: + - consumerId: b91fecf3-d2a9-4366-8314-1d7be7b2bdad + publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Sd/5WZVMSYMzdo15XuI+lGtspwJQLqYnezaq4KsnKi6a7sYilHTWfouGvsddY9b3aElh77e3LLbFuzl5epUyTZlpaTWyn+BKfoTlEMIDaatyDIr6mVn1ria1bbnNPsCAU3HthkmO+cFn5tt80GhzBCfQN41qbLerLN5QYmaWmg2+52blVaDUwqrVYC1obBg3jdhQkPLGEWCFqO4DqTEff0CSISyWRoECkEbVVx7fWSNJvWTPu9/bknC3Jk72yAK+R45j3l6f7hHzC4w/kliuXr8WsmLagspIe9WTJJ0kMq47guwozsggohRSSc8zIElfvdWOMpm3GP5w4W8TRHUeQIDAQAB + - name: prod + type: PRODUCTION + consumerIdInfos: + - consumerId: df06a824-11a5-4dca-a991-a2b564decd99 + publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Sd/5WZVMSYMzdo15XuI+lGtspwJQLqYnezaq4KsnKi6a7sYilHTWfouGvsddY9b3aElh77e3LLbFuzl5epUyTZlpaTWyn+BKfoTlEMIDaatyDIr6mVn1ria1bbnNPsCAU3HthkmO+cFn5tt80GhzBCfQN41qbLerLN5QYmaWmg2+52blVaDUwqrVYC1obBg3jdhQkPLGEWCFqO4DqTEff0CSISyWRoECkEbVVx7fWSNJvWTPu9/bknC3Jk72yAK+R45j3l6f7hHzC4w/kliuXr8WsmLagspIe9WTJJ0kMq47guwozsggohRSSc8zIElfvdWOMpm3GP5w4W8TRHUeQIDAQAB \ No newline at end of file
feat(ui): update sr yaml for celebrations
feat(ui): update sr yaml for celebrations
cb950205f641cf63646bec18613c0f4a7f9e70f6
--- plugins/withAppAuth.ts @@ -14,9 +14,6 @@ import { sanitizedName } from "./utils"; const pkg = require("react-native-app-auth/package.json"); -const didFinishLaunchingMethodLineMatcher = /(?:self\.moduleName\s*=\s*@\"([^"]*)\";)/g; -const implAppDelegateLineMatcher = /@implementation AppDelegate/; - const clearKeyChainFunc = `static void ClearKeychainIfNecessary() { if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HAS_RUN_BEFORE"] == NO) { [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"HAS_RUN_BEFORE"]; @@ -36,6 +33,7 @@ const clearKeyChainFunc = `static void ClearKeychainIfNecessary() { } } }`; + const withAppAuthGradleManifestPlaceholder: ConfigPlugin<string | void> = ( config, scheme = config.android?.package @@ -146,10 +144,18 @@ const withAppAuthAppDelegate: ConfigPlugin = (config) => { "AppDelegate.mm" ); - const delegateHeaderContent = await fs.readFile(delegateHeaderPath, "utf8"); - const delegateImplContent = await fs.readFile(delegateImplementationPath, "utf8"); + const delegateHeaderContent = await fs.readFile( + delegateHeaderPath, + "utf8" + ); + const delegateImplContent = await fs.readFile( + delegateImplementationPath, + "utf8" + ); - if (!delegateHeaderContent.includes("RNAppAuthAuthorizationFlowManager.h")) { + if ( + !delegateHeaderContent.includes("RNAppAuthAuthorizationFlowManager.h") + ) { const newDelegateContent = mergeContents({ tag: `rn-app-auth`, src: delegateHeaderContent, @@ -171,23 +177,25 @@ const withAppAuthAppDelegate: ConfigPlugin = (config) => { const tempDelegateContent = mergeContents({ tag: `rn-app-auth-keychain-invocation`, src: delegateImplContent, - newSrc: - 'ClearKeychainIfNecessary();', - anchor: didFinishLaunchingMethodLineMatcher, - offset: 0, + newSrc: "ClearKeychainIfNecessary();", + anchor: /didFinishLaunchingWithOptions/, + offset: 2, comment: "//", }); const newDelegateContent = mergeContents({ - tag: 'rn-app-auth-clear-keychain', + tag: "rn-app-auth-clear-keychain", src: tempDelegateContent.contents, newSrc: clearKeyChainFunc, - anchor:implAppDelegateLineMatcher, + anchor: /@implementation AppDelegate/, offset: 0, - comment: '//', - }) + comment: "//", + }); - fs.writeFileSync(delegateImplementationPath, newDelegateContent.contents); + fs.writeFileSync( + delegateImplementationPath, + newDelegateContent.contents + ); } return config;
refactor: change app auth cng plugin anchors
refactor: change app auth cng plugin anchors
b7c2775a672ea2f3e34a655672a3fd2478d78dc1
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -261,6 +261,48 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` } } /> + <Screen + name="metricsSalesDrilldown" + options={ + Object { + "title": "navigation.salesDrilldownTitle", + } + } + /> + <Screen + name="metricsPreSubDrilldown" + options={ + Object { + "title": "navigation.presubDrilldownTitle", + } + } + /> + <Screen + component="MetricsPreSubInfoModalScreen" + name="metricsPreSubInfoModal" + options={ + Object { + "title": "navigation.presubInfoModalTitle", + } + } + /> + <Screen + component="MetricsFtprInfoModalScreen" + name="metricsFtprInfoModal" + options={ + Object { + "title": "navigation.ftprInfoModalTitle", + } + } + /> + <Screen + name="metricsFTPDrilldown" + options={ + Object { + "title": "navigation.ftprDrilldownTitle", + } + } + /> </Navigator> <NotificationsContainer /> </ActivityMonitor> @@ -527,6 +569,48 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] } } /> + <Screen + name="metricsSalesDrilldown" + options={ + Object { + "title": "navigation.salesDrilldownTitle", + } + } + /> + <Screen + name="metricsPreSubDrilldown" + options={ + Object { + "title": "navigation.presubDrilldownTitle", + } + } + /> + <Screen + component="MetricsPreSubInfoModalScreen" + name="metricsPreSubInfoModal" + options={ + Object { + "title": "navigation.presubInfoModalTitle", + } + } + /> + <Screen + component="MetricsFtprInfoModalScreen" + name="metricsFtprInfoModal" + options={ + Object { + "title": "navigation.ftprInfoModalTitle", + } + } + /> + <Screen + name="metricsFTPDrilldown" + options={ + Object { + "title": "navigation.ftprDrilldownTitle", + } + } + /> </Navigator> <NotificationsContainer /> </ActivityMonitor>
updating snapshot
updating snapshot
66b9c60ff687c2eee9032540d86e018cb4421134
--- packages/allspark-foundation-hub/src/HubFeature/Hub/HubWidget/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react'; +import React from 'react'; import { View } from 'react-native'; import { HubWidgetTypes } from './types'; import { HubWidgetStyles } from './styles'; @@ -24,33 +24,13 @@ export const HubWidget = ({ infoText, isActionBtnDisabled, variant, - refreshKey, - onRefreshStart, - onRefreshEnd, - refresh, ...rest }: HubWidgetTypes) => { const styles = HubWidgetStyles(); const IconComponent = Icons[iconName]; const showShortIntro = shortIntro && variant !== 'restricted'; const { t } = useAllsparkTranslation(FEATURE_ID); - - const reloadWidgetData = () => { - console.log('Reloading widget data.....', rest); - }; - - const onReload = async () => { - onRefreshStart(refreshKey); - await reloadWidgetData(); - onRefreshEnd(refreshKey); - }; - - useEffect(() => { - if (refresh) { - onReload(); - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [refresh]); + console.log('Rest props data: ', rest); return ( <View style={styles.container}> --- packages/allspark-foundation-hub/src/HubFeature/Hub/HubWidget/types.ts @@ -20,10 +20,6 @@ interface HubWidgetBaseTypes { infoText?: string; selectedTeamPreference?: string; selectedTeamIds?: string[]; - refresh: boolean; - refreshKey: string; - onRefreshStart: (refreshKey: string) => void; - onRefreshEnd: (refreshKey: string) => void; } interface HubWidgetActionalable extends HubWidgetBaseTypes {
feat(ui): Update the refresh props for the hub
feat(ui): Update the refresh props for the hub
208c6eddc49677fcad735b2dd54e0b98b6b7ad15
--- packages/allspark-foundation-hub/__tests__/HubFeature/__snapshots__/HubOnboardingImage.test.tsx.snap @@ -3,6 +3,7 @@ exports[`HubOnboardingImage renders HubOnboardingImage Component 1`] = ` [ <Image + onError={[Function]} placeholder="test placeholder" resizeMode="contain" source={ --- packages/allspark-foundation-hub/__tests__/HubFeature/__snapshots__/TeamListItem.test.tsx.snap @@ -30,6 +30,7 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`] } > <Image + onError={[Function]} resizeMode="contain" source={ { @@ -45,7 +46,7 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`] } /> <View - accessibilityLabel="Management 93 Clocked in" + accessibilityLabel="Management" accessibilityRole="header" accessible={true} style={ @@ -61,26 +62,13 @@ exports[`TeamListItem renders list item for all teams roster view correctly 1`] "color": "#2e2f32", "fontFamily": "Bogle-Regular", "fontSize": 16, - "fontWeight": "700", + "fontWeight": "400", "lineHeight": 24, } } > Management </Text> - <Text - style={ - { - "color": "#2e2f32", - "fontFamily": "Bogle-Regular", - "fontSize": 14, - "fontWeight": "400", - "lineHeight": 20, - } - } - > - 93 Clocked in - </Text> </View> </View> <View @@ -188,6 +176,7 @@ exports[`TeamListItem renders list item for team selection correctly 1`] = ` } > <Image + onError={[Function]} resizeMode="contain" source={ { @@ -203,7 +192,7 @@ exports[`TeamListItem renders list item for team selection correctly 1`] = ` } /> <View - accessibilityLabel="Management " + accessibilityLabel="Management" accessibilityRole="header" accessible={true} style={ @@ -240,7 +229,7 @@ exports[`TeamListItem renders list item for team selection correctly 1`] = ` } > <View - accessibilityLabel=" checkboxunchecked" + accessibilityLabel=" checkbox" accessibilityState={ { "busy": undefined,
Updating tests
Updating tests
366b83d473eeb51c010335aa818eb32d12b1f6ed
--- .codepulseai.yml @@ -0,0 +1,18 @@ +ignore: + - "node_modules/" + - "src/assets" + - "patches" + - "scripts" + - "coverage/" + - "dist/" + - "container/*.ts" + - "sr.yaml" + - "*.yml" + - "*.js" + - "*.json" + +ignore_code_suggestion_keywords: + +auto_describe: true # If auto_describe flag value is set to true, PR title and description will be automatically generated by the CodePulseAI as soon as the PR is opened +auto_review: true # If auto_review flag value is set to true, PR will be automatically reviewed by the CodePulseAI as soon as the PR is opened +auto_extended_review: true # If auto_extended_review flag value is set to true, CodePulseAI will perform automated extended review of the PR as soon as the PR is opened \ No newline at end of file
Update my team app version
Update my team app version
8e80f847917f783bcc475a09c1fee60cd0b7e624
--- 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.65-beta1", + "@walmart/facilities-management-miniapp": "0.6.65-beta2", "@walmart/feedback-all-spark-miniapp": "0.9.33", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3",
Update package.json
Update package.json
3e6f40198f5eaf17fccf00a9b116bfe8c69486c7
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingContext.tsx @@ -49,14 +49,14 @@ export const SupplyChainOnboardingProvider = ({ children }: any) => { if (userPreferences === null) { showOnboardingFlow(); } - const myTeamsPreferences = await (teamPreferenceData || - shiftPreferenceData); + const myTeamsPreferences = (await (teamPreferenceData || + shiftPreferenceData)) as string[]; loggerRef.current.info('Team data fetched successfully'); - if (Array.isArray(myTeamsPreferences) || !myTeamsPreferences?.length) { + if (Array.isArray(myTeamsPreferences) && !myTeamsPreferences.length) { // already onboarded hideOnboardingFlow(); - return myTeamsPreferences; } + return myTeamsPreferences; } catch (error: any) { loggerRef.current.error('Error:', error); onboardingTelemetryRef.current.logEvent('preference_data_error_event', { @@ -65,6 +65,7 @@ export const SupplyChainOnboardingProvider = ({ children }: any) => { throw error; } }, [onCompleted]); + useEffect(() => { if (eligibleForOnboarding) { getMyTeamData()
feat(ui): onboarding bug fix
feat(ui): onboarding bug fix
62ea2da307469b4bcb61bf298017f0dbad1c24fc
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 50 + versionCode 51 versionName "1.0.2" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>50</string> + <string>51</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>50</string> + <string>51</string> </dict> </plist>
Incrementing build number
Incrementing build number
ea6061f77ac7882d3707bc21afe1b0f296db060a
--- package.json @@ -130,7 +130,7 @@ "react-native-snap-carousel": "^3.9.1", "react-native-sound-player": "0.10.9", "react-native-splash-screen": "^3.2.0", - "react-native-ssmp-sso-allspark": "1.1.5", + "react-native-ssmp-sso-allspark": "1.1.7", "react-native-sumo-sdk": "^2.7.4-rc.9", "react-native-svg": "^12.1.0", "react-native-tab-view": "^2.15.2",
updated sso plugin
updated sso plugin
ac7a13b2cb457a89f1144d2cb0cc0a314dd25762
--- targets/US/ios/Podfile.lock @@ -1016,7 +1016,7 @@ PODS: - nanopb/encode (= 2.30909.1) - nanopb/decode (2.30909.1) - nanopb/encode (2.30909.1) - - native-rfid-scanner (3.12.1): + - native-rfid-scanner (4.0.16): - React-Core - ZebraRfidiOSSdk (~> 0.1.9) - OpenSSL-Universal (1.1.1100) @@ -2829,7 +2829,7 @@ SPEC CHECKSUMS: libvmaf: 27f523f1e63c694d14d534cd0fddd2fab0ae8711 libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009 nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 - native-rfid-scanner: dbaf6a5b64975e382782c7d45c9f05b015874f36 + native-rfid-scanner: f5f0340b470866e0d70983371c1aae5866b08377 OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c Osiris: 1b52d1f11f9c38f81e2a9c5764583639455043ab OsirisBarcode: 8c40bffbc0a2016de00607f6b2512389d2f0e8cd --- targets/US/package.json @@ -122,7 +122,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.3.4", "@walmart/myteam-mini-app": "1.12.0", - "@walmart/native-rfid-scanner": "3.12.1", + "@walmart/native-rfid-scanner": "4.0.16", "@walmart/onewalmart-miniapp": "1.0.24", "@walmart/pay-stub-miniapp": "0.20.11", "@walmart/payrollsolution_miniapp": "0.145.31", @@ -140,7 +140,7 @@ "@walmart/receipt-check-miniapp": "1.28.1", "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.16.6", - "@walmart/rfid-scan-mini-app": "2.7.1", + "@walmart/rfid-scan-mini-app": "2.8.5", "@walmart/rn-receiving-mini-app": "2.4.80", "@walmart/roster-mini-app": "2.9.0", "@walmart/schedule-mini-app": "1.13.0", --- yarn.lock @@ -7463,7 +7463,7 @@ __metadata: "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.3.4" "@walmart/myteam-mini-app": "npm:1.12.0" - "@walmart/native-rfid-scanner": "npm:3.12.1" + "@walmart/native-rfid-scanner": "npm:4.0.16" "@walmart/onewalmart-miniapp": "npm:1.0.24" "@walmart/pay-stub-miniapp": "npm:0.20.11" "@walmart/payrollsolution_miniapp": "npm:0.145.31" @@ -7481,7 +7481,7 @@ __metadata: "@walmart/receipt-check-miniapp": "npm:1.28.1" "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.16.6" - "@walmart/rfid-scan-mini-app": "npm:2.7.1" + "@walmart/rfid-scan-mini-app": "npm:2.8.5" "@walmart/rn-receiving-mini-app": "npm:2.4.80" "@walmart/roster-mini-app": "npm:2.9.0" "@walmart/schedule-mini-app": "npm:1.13.0" @@ -7861,13 +7861,13 @@ __metadata: languageName: node linkType: hard -"@walmart/native-rfid-scanner@npm:3.12.1": - version: 3.12.1 - resolution: "@walmart/native-rfid-scanner@npm:3.12.1" +"@walmart/native-rfid-scanner@npm:4.0.16": + version: 4.0.16 + resolution: "@walmart/native-rfid-scanner@npm:4.0.16" peerDependencies: react: "*" react-native: "*" - checksum: 10c0/ddc9430052f6430551e8fb87c54cf8c6038716d88b1f6a3492fccadc060cfaad09b881296f8bba1235490e5b10b779f43f7b122c3663e36a9f49b60d62b4bed4 + checksum: 10c0/9c2873f27a2c5524b73ea5980eb1a91857e6f1cf7bc7543ef94df54a4d3c6e9285ecf87710b1e22e219205d56a2e6b8c2ee284f7f2b22bc2f1065b906161eded languageName: node linkType: hard @@ -8179,26 +8179,28 @@ __metadata: languageName: node linkType: hard -"@walmart/rfid-scan-mini-app@npm:2.7.1": - version: 2.7.1 - resolution: "@walmart/rfid-scan-mini-app@npm:2.7.1" +"@walmart/rfid-scan-mini-app@npm:2.8.5": + version: 2.8.5 + resolution: "@walmart/rfid-scan-mini-app@npm:2.8.5" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.1.0" "@shopify/flash-list": ">=1.6.4" "@walmart/allspark-foundation": ">=6.19.1" "@walmart/allspark-utils": ">=6.5.0" - "@walmart/gtp-shared-components": ">=2.2.4" + "@walmart/gtp-shared-components": ">=2.2.6" "@walmart/ims-print-services-ui": ">=2.10.3" - "@walmart/me-at-walmart-common": ">=6.24.0" - "@walmart/native-rfid-scanner": ">=3.12.0" - "@walmart/react-native-scanner-3.0": ">=0.3.0" + "@walmart/me-at-walmart-common": ">=6.26.0" + "@walmart/native-rfid-scanner": ">=4.0.16" + "@walmart/react-native-scanner-3.0": ">=0.10.0" + "@walmart/ui-components": ">=1.20.4" expo-image: ">=1.10.0" - i18next: ">=23.6.0" react: "*" react-i18next: ">=13.3.1" react-native: "*" + react-native-background-timer: ">=2.4.1" react-native-ble-manager: ">=11.0.4" + react-native-haptic-feedback: ">=1.14.0" react-native-new-snap-carousel: ">=3.9.3" react-native-reanimated: ">=3.12.1" react-native-safe-area-context: ">=4.8.2" @@ -8206,7 +8208,7 @@ __metadata: redux: ">=4.1.2" reselect: ">=4.0.0" uuid: ">=3.3.2" - checksum: 10c0/c615da33a2189e3277ecd422b447580e2d01eb2a3f2809031ee27bf097c84df87a45c21d7e6463d9fa97dd272be87f9fe3e9cfaab5d89db5d4c8199a06a61865 + checksum: 10c0/af763e82ee6232e6513858a3fa4827fcdee9a82106661accb95712dd27366361dbfa3b5363ca906dc4e46df069f113827649782e7d86f036cd39fd07d0f922f0 languageName: node linkType: hard
Update @walmart/rfid-scan-mini-app to 2.8.5 and @walmart/native-rfid-scanner to 4.0.16
Update @walmart/rfid-scan-mini-app to 2.8.5 and @walmart/native-rfid-scanner to 4.0.16
fce54f4bd4b4b2c87343a2716d4a44fd1f493f77
--- .looper.yml @@ -3,6 +3,7 @@ node: ((osx||stable_osx)&&!dualcore&&!MAC-DRFQLAB-MINI27) tools: nodejs: - 20.5.1 + sonarscanner: 4.6.2.2472 scheduling: concurrent @@ -41,6 +42,9 @@ flows: testPackages: - call: buildPackages - (name Test) npm run test + + coverage: + - (name Coverage) npm run coverage preparePublish: - call: installDependencies @@ -50,6 +54,7 @@ flows: - call: installDependencies - (name Lint) npm run lint - call: testPackages + - call: sonar publishPatch: - call: preparePublish @@ -78,3 +83,7 @@ flows: publishFromGit: - call: preparePublish - (name Publish from Git) HUSKY=0 npm lerna publish from-git --yes + + sonar: + - call: coverage + - sonar("Sonar"): sonar-scanner -Dproject.settings=sonar-project.properties --- jest.config.js @@ -6,16 +6,16 @@ module.exports = { collectCoverageFrom: ['**/*.{ts,tsx}', '!**/*.d.ts'], coverageThreshold: { 'global': { - statements: 95, - branches: 95, - functions: 95, - lines: 95, + statements: 60, + branches: 60, + functions: 55, + lines: 60, }, './packages/allspark-foundation': { - statements: 90, - branches: 90, - functions: 90, - lines: 90, + statements: 5, + branches: 5, + functions: 5, + lines: 5, }, }, }; --- sonar-project.properties @@ -3,9 +3,8 @@ sonar.projectName=AllSpark sonar.projectVersion=1.0.0 sonar.host.url=http://sonar.looper.prod.walmartlabs.com -sonar.sources=packages/ -sonar.tests=packages/**/__tests__/ -# sonar.exclusions=targets/US/src/images,targets/US/src/navigation/Navigation.tsx,targets/US/src/navigation/NavigationStyle.ts +sonar.sources=packages/allspark-authentication/src/,packages/allspark-foundation/src/,packages/allspark-utils/src/ +sonar.tests=packages/allspark-authentication/__tests__/,packages/allspark-foundation/__tests__/,packages/allspark-utils/__tests__/ sonar.sourceEncoding=UTF-8 sonar.typescript.lcov.reportPaths=coverage/lcov.info sonar.testExecutionReportPaths=test-report.xml \ No newline at end of file
feat(ci): adding looper changes
feat(ci): adding looper changes feat(ci): more looper changes feat(ci): more looper changes feat(ci): more looper changes feat(ci): more looper changes feat(ci): more looper changes feat(ci): more looper changes feat(ci): more looper changes feat(ci): more looper changes feat(ci): more looper changes
c892bf4107d435f67c134ad6424ee55b93524468
--- src/utils/user.ts @@ -2,7 +2,7 @@ import {encryptUserId as baseEncryptUserId} from '@walmart/allspark-utils'; import CryptoJS from 'crypto-js'; import {Associate} from '../types'; import {GetAssociateNameQuery} from '../queries/getAssociateName'; -import { ClockStatusEnum } from '../utils/ClockStatusEnum'; +import {ClockStatusEnum} from '../utils/ClockStatusEnum'; const OBFUSCATION_KEY = 'texting-mini-app'; const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0'); --- src/utils/user.ts @@ -2,7 +2,7 @@ import {encryptUserId as baseEncryptUserId} from '@walmart/allspark-utils'; import CryptoJS from 'crypto-js'; import {Associate} from '../types'; import {GetAssociateNameQuery} from '../queries/getAssociateName'; -import { ClockStatusEnum } from '../utils/ClockStatusEnum'; +import {ClockStatusEnum} from '../utils/ClockStatusEnum'; const OBFUSCATION_KEY = 'texting-mini-app'; const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0');
fix lint
fix lint
6251ed45ab61e0def9fe167d6825994159bcd8f4
--- package-lock.json @@ -68,7 +68,7 @@ "@walmart/push-to-talk-mini-app": "1.9.22", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", - "@walmart/react-native-logger": "1.33.0", + "@walmart/react-native-logger": "1.34.3", "@walmart/react-native-scanner-3.0": "0.1.32", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", @@ -5798,7 +5798,9 @@ } }, "node_modules/@walmart/react-native-logger": { - "version": "1.33.0", + "version": "1.34.3", + "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.34.3.tgz", + "integrity": "sha512-jABrdSwlGl2Ozn6lkh+jG2kQJNoVaJSr/XfFrvsuFbEYWpLS2ydARKrxxHvtqvTrzqqpAvwx+2rik77g4xNSFw==", "peerDependencies": { "react": "^16.8.1", "react-native": ">=0.60.0-rc.0 <1.0.x" @@ -25277,7 +25279,9 @@ "version": "0.2.0" }, "@walmart/react-native-logger": { - "version": "1.33.0" + "version": "1.34.3", + "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.34.3.tgz", + "integrity": "sha512-jABrdSwlGl2Ozn6lkh+jG2kQJNoVaJSr/XfFrvsuFbEYWpLS2ydARKrxxHvtqvTrzqqpAvwx+2rik77g4xNSFw==" }, "@walmart/react-native-scanner-3.0": { "version": "0.1.32", --- package.json @@ -110,7 +110,7 @@ "@walmart/push-to-talk-mini-app": "1.9.22", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", - "@walmart/react-native-logger": "1.33.0", + "@walmart/react-native-logger": "1.34.3", "@walmart/react-native-scanner-3.0": "0.1.32", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7",
updated logger
updated logger
21e73b8392087e24420a36793fcce594d061923c
--- package.json @@ -84,13 +84,13 @@ "@typescript-eslint/eslint-plugin": "^5.37.0", "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", - "@walmart/allspark-foundation": "latest", + "@walmart/allspark-foundation": "6.20.0", "@walmart/allspark-foundation-hub": "latest", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", "@walmart/core-services": "6.1.4", - "@walmart/core-services-allspark": "latest", + "@walmart/core-services-allspark": "6.25.1", "@walmart/core-utils": "6.1.4", "@walmart/functional-components": "6.1.4", "@walmart/gtp-shared-components": "2.2.4", @@ -190,7 +190,7 @@ "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", "@walmart/core-services": "6.1.4", - "@walmart/core-services-allspark": "*", + "@walmart/core-services-allspark": "6.1.4", "@walmart/core-utils": "6.1.4", "@walmart/functional-components": "6.1.4", "@walmart/gtp-shared-components": "2.2.4", --- yarn.lock @@ -5935,9 +5935,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:latest": - version: 6.19.1 - resolution: "@walmart/allspark-foundation@npm:6.19.1" +"@walmart/allspark-foundation@npm:6.20.0": + version: 6.20.0 + resolution: "@walmart/allspark-foundation@npm:6.20.0" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -6030,7 +6030,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/5ddbdbf8a435591bf9e3817220ae08bed071809f0e9b78c2344ab78b2ecb155205aceb284f5d92868c4bd42a751c100ef339b9e617c71f9d4d16c348fe71697b + checksum: 10c0/ca36b0592d5d97675161419536a39f758bd2e00f25c013aeaad4f7e6ce0cb2b3050b766233d5bbb3f4a93aa91fca2271572a78d4a14a4c63c3b957b9c36c3704 languageName: node linkType: hard @@ -6131,7 +6131,7 @@ __metadata: languageName: node linkType: hard -"@walmart/core-services-allspark@npm:latest": +"@walmart/core-services-allspark@npm:6.25.1": version: 6.25.1 resolution: "@walmart/core-services-allspark@npm:6.25.1" peerDependencies: @@ -6381,13 +6381,13 @@ __metadata: "@typescript-eslint/eslint-plugin": "npm:^5.37.0" "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" - "@walmart/allspark-foundation": "npm:latest" + "@walmart/allspark-foundation": "npm:6.20.0" "@walmart/allspark-foundation-hub": "npm:latest" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" "@walmart/core-services": "npm:6.1.4" - "@walmart/core-services-allspark": "npm:latest" + "@walmart/core-services-allspark": "npm:6.25.1" "@walmart/core-utils": "npm:6.1.4" "@walmart/functional-components": "npm:6.1.4" "@walmart/gtp-shared-components": "npm:2.2.4" @@ -6486,7 +6486,7 @@ __metadata: "@walmart/allspark-http-client": 6.1.4 "@walmart/config-components": 4.4.0 "@walmart/core-services": 6.1.4 - "@walmart/core-services-allspark": "*" + "@walmart/core-services-allspark": 6.1.4 "@walmart/core-utils": 6.1.4 "@walmart/functional-components": 6.1.4 "@walmart/gtp-shared-components": 2.2.4 @@ -12064,15 +12064,15 @@ __metadata: linkType: hard "iterator.prototype@npm:^1.1.2": - version: 1.1.2 - resolution: "iterator.prototype@npm:1.1.2" + version: 1.1.3 + resolution: "iterator.prototype@npm:1.1.3" dependencies: define-properties: "npm:^1.2.1" get-intrinsic: "npm:^1.2.1" has-symbols: "npm:^1.0.3" reflect.getprototypeof: "npm:^1.0.4" set-function-name: "npm:^2.0.1" - checksum: 10c0/a32151326095e916f306990d909f6bbf23e3221999a18ba686419535dcd1749b10ded505e89334b77dc4c7a58a8508978f0eb16c2c8573e6d412eb7eb894ea79 + checksum: 10c0/68b0320c14291fbb3d8ed5a17e255d3127e7971bec19108076667e79c9ff4c7d69f99de4b0b3075c789c3f318366d7a0a35bb086eae0f2cf832dd58465b2f9e6 languageName: node linkType: hard
update roster mini app
update roster mini app
9ee61a1627b286e29b84a8cf0a46d7ead015b3be
--- src/mocks/associatesMock.ts @@ -1,3 +1,4 @@ +// @ts-nocheck import {Associate} from '../types'; //TODO: Fix typing for associate object, possibly wait until athena is migrated to do this --- src/mocks/teamMock.ts @@ -1,3 +1,4 @@ +// @ts-nocheck import {Team} from '../types'; export const teamsMock = [ @@ -2619,6 +2620,24 @@ export const teamsMock = [ role: 'TA', userId: 'M0M0ULQ.S00100', }, + { + win: '219468784', + baseTeam: true, + role: 'TL', + userId: 'j0y0231', + }, + { + win: '219860784', + baseTeam: true, + role: 'TA', + userId: 'rlane1', + }, + { + win: '219868784', + baseTeam: true, + role: 'TA', + userId: 'j0w0558', + }, ], }, { --- src/mocks/associatesMock.ts @@ -1,3 +1,4 @@ +// @ts-nocheck import {Associate} from '../types'; //TODO: Fix typing for associate object, possibly wait until athena is migrated to do this --- src/mocks/teamMock.ts @@ -1,3 +1,4 @@ +// @ts-nocheck import {Team} from '../types'; export const teamsMock = [ @@ -2619,6 +2620,24 @@ export const teamsMock = [ role: 'TA', userId: 'M0M0ULQ.S00100', }, + { + win: '219468784', + baseTeam: true, + role: 'TL', + userId: 'j0y0231', + }, + { + win: '219860784', + baseTeam: true, + role: 'TA', + userId: 'rlane1', + }, + { + win: '219868784', + baseTeam: true, + role: 'TA', + userId: 'j0w0558', + }, ], }, {
chore: skit ts check for mock files
chore: skit ts check for mock files
2effb35b77f04546afb3deda802a9e1c9c807903
--- package-lock.json @@ -5416,9 +5416,9 @@ "integrity": "sha512-uCC2Hk4fRcAC49c4uuIpLpD3geWjG7uAQByH8ygekhQKPrijc5/F1/z+Tkt3zFQ88BlsE+ihQ6z3AWFzAyuNGw==" }, "@walmart/profile-feature-app": { - "version": "0.0.50", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.50.tgz", - "integrity": "sha512-X9IzXSFtAoT8TMQ9x15ajK0p0QAZzBxORt7fFGyTXNoag+W3nzJ0THlQMupMY0hTsXBn6LHFyscrZIWjt4dRAg==" + "version": "0.0.52", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.0.52.tgz", + "integrity": "sha512-KPbQv78mYIbKfcBYNuNvDaVPMnZ+8mFXHZWjnxjiZwkwiKyAx4+dBXbT/rOOSUfsmvEUBIP5CLNgcVi85lcNvw==" }, "@walmart/push-to-talk-mini-app": { "version": "1.8.9", --- package.json @@ -102,7 +102,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.126.4", "@walmart/price-changes-mini-app": "1.4.11", - "@walmart/profile-feature-app": "0.0.50", + "@walmart/profile-feature-app": "0.0.52", "@walmart/push-to-talk-mini-app": "1.8.9", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "^0.2.0",
Bumped profile-feature-app version.
Bumped profile-feature-app version.
549d5726042c8e770a7dacb4d7a689fe88c1e89b
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.0-alpha.9", + "version": "1.15.0-alpha.10", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.0-alpha.11", + "@walmart/roster-mini-app": "2.12.0-alpha.12", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "2.7.0", "babel-jest": "^29.2.1", --- yarn.lock @@ -6439,7 +6439,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.0-alpha.11" + "@walmart/roster-mini-app": "npm:2.12.0-alpha.12" "@walmart/ui-components": "npm:1.15.1" "@walmart/wmconnect-mini-app": "npm:2.7.0" babel-jest: "npm:^29.2.1" @@ -6621,9 +6621,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.0-alpha.11": - version: 2.12.0-alpha.11 - resolution: "@walmart/roster-mini-app@npm:2.12.0-alpha.11" +"@walmart/roster-mini-app@npm:2.12.0-alpha.12": + version: 2.12.0-alpha.12 + resolution: "@walmart/roster-mini-app@npm:2.12.0-alpha.12" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6640,10 +6640,10 @@ __metadata: "@walmart/allspark-http-client": 6.1.4 "@walmart/config-components": 4.4.0 "@walmart/core-services": 6.1.4 - "@walmart/core-services-allspark": 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.1 + "@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 @@ -6665,7 +6665,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/f23ec2fb154da34f28aba8abf02b5cb6dfa018216b9c51f9a27ca2da1673c8965dd321241fbbf83da98b75f8f765c9a76a02cb8f006ea9fb0d074aa11fc3acb2 + checksum: 10c0/dc9e75ee2d97dfcdaf2d808f646d628a789f62a3ad7d6bae31dccb519fd005e3e312884a92b9a7ef6a7f856db0b3449219286a3960c09bb7e9c6ee8ca9a53698 languageName: node linkType: hard
Update the my team mini app version
Update the my team mini app version
1a7411db319b5fe6881f9a17f502e39461bc33c0
--- targets/US/package.json @@ -86,7 +86,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.28.21", "@walmart/associate-listening-mini-app": "1.2.10", - "@walmart/attendance-mini-app": "3.143.0", + "@walmart/attendance-mini-app": "3.144.0", "@walmart/avp-feature-app": "0.10.19", "@walmart/avp-shared-library": "0.10.5", "@walmart/backroom-mini-app": "1.9.0", --- yarn.lock @@ -6416,9 +6416,9 @@ __metadata: languageName: node linkType: hard -"@walmart/attendance-mini-app@npm:3.143.0": - version: 3.143.0 - resolution: "@walmart/attendance-mini-app@npm:3.143.0" +"@walmart/attendance-mini-app@npm:3.144.0": + version: 3.144.0 + resolution: "@walmart/attendance-mini-app@npm:3.144.0" peerDependencies: "@react-native-community/datetimepicker": ">=5.1.0" "@react-navigation/native": ">=6.0.8" @@ -6449,7 +6449,7 @@ __metadata: redux-saga: ">=1.2.3" reselect: ">=4.1.0" wfm-allspark-data-library: ">=3.3.0" - checksum: 10c0/f386cd329280ab89c2c95d7624d440a084a567c4424f5db57321d8a10fd07e355bc53351064239cd74fef2d613fecfdd2e12d072490948bf9da0455fd8ec5db5 + checksum: 10c0/147dc11ccc866ec8e40d8a79a163744e6b0f3541668b6984b9e05357a3c2637c255d10ab80f5271faf9874a8803a283cebe73d05fa0c82b2393228e4d3c73e34 languageName: node linkType: hard @@ -7422,7 +7422,7 @@ __metadata: "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.28.21" "@walmart/associate-listening-mini-app": "npm:1.2.10" - "@walmart/attendance-mini-app": "npm:3.143.0" + "@walmart/attendance-mini-app": "npm:3.144.0" "@walmart/avp-feature-app": "npm:0.10.19" "@walmart/avp-shared-library": "npm:0.10.5" "@walmart/backroom-mini-app": "npm:1.9.0"
Update attendance-mini-app version.
Update attendance-mini-app version.
84bec95ba45bae0e2960792bf1d682ace52227f1
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -31,6 +31,9 @@ Array [ component="FeedbackMiniApp" name="Feedback" /> + <Screen + name="ShareConcerns" + /> <Screen component="SettingsMiniApp" name="Settings"
snacpshot updated
snacpshot updated
c013850112e01c1f9c2a02d55018d231cf7dfd2a
--- src/managerExperience/components/FilterChip/FilterChip.tsx @@ -1,26 +1,24 @@ import React from 'react'; import {Chip} from '@walmart/gtp-shared-components/dist'; -import {chipStyles as styles} from './styles'; -import {FilterChipProps} from './types'; +import {filterChipStyles as styles} from './styles'; import {Text} from 'react-native'; +import {FilterChipProps} from './types'; -export const FilterChip = ({ - handleSelect, - label, - isApplied, -}: FilterChipProps) => { - if (label === '') return false; +export const FilterChip = (props: Omit<FilterChipProps, 'children'>) => { return ( <Chip + {...props} UNSAFE_style={ - isApplied ? styles.chipContainerActive : styles.chipContainerInactive + props.isApplied + ? styles.chipContainerActive + : styles.chipContainerInactive } - onPress={handleSelect} - selected={isApplied} - id={label} testID='filter-chip'> - <Text style={isApplied ? styles.chipTextActive : styles.chipTextInactive}> - {label} + <Text + style={ + props.isApplied ? styles.chipTextActive : styles.chipTextInactive + }> + {props.label} </Text> </Chip> ); --- src/managerExperience/components/FilterChip/styles.ts @@ -9,7 +9,7 @@ const chipContainerShared: ViewStyle = { minWidth: 10, }; -export const chipStyles = StyleSheet.create({ +export const filterChipStyles = StyleSheet.create({ chipContainerActive: { ...chipContainerShared, backgroundColor: colors.gray['160'], --- src/managerExperience/components/FilterChip/types.ts @@ -1,5 +1,6 @@ -export interface FilterChipProps { - handleSelect: () => void; +import {ChipProps} from '@walmart/gtp-shared-components/dist'; + +export interface FilterChipProps extends ChipProps { label: string; isApplied: boolean; } --- src/managerExperience/components/FilterChipGroup/FilterChipGroup.tsx @@ -0,0 +1,55 @@ +import React, {useState} from 'react'; +import {FilterChipGroupProps, FilterType} from './types'; + +import {filterChipGroupStyles as styles} from './styles'; +import {MANAGER_EXPERIENCE_NAMESPACE} from '../../translations'; +import {useTranslation} from 'react-i18next'; +import {FilterChip} from '../FilterChip/FilterChip'; +import {View} from 'react-native'; + +export const FilterChipGroup = ({ + absentCount, + clockedInCount, + tardyCount, + handleFilter, +}: FilterChipGroupProps) => { + const {t} = useTranslation([MANAGER_EXPERIENCE_NAMESPACE]); + const [selectedFilter, setSelectedFilter] = useState<FilterType | undefined>( + FilterType.absent, + ); + + const handleFilterPress = (filterType: FilterType) => { + if (selectedFilter === filterType) { + setSelectedFilter(undefined); + } else { + setSelectedFilter(filterType); + } + handleFilter(filterType); + }; + + return ( + <View style={styles.filterChipGroupContainer}> + <FilterChip + isApplied={selectedFilter === FilterType.clockedIn} + id={FilterType.clockedIn} + testID='clockedInFilterChip' + label={`${clockedInCount} ${t('rosterScreen.filters.clockedIn')}`} + onPress={() => handleFilterPress(FilterType.clockedIn)} + /> + <FilterChip + id={FilterType.tardy} + isApplied={selectedFilter === FilterType.tardy} + testID='tardyFilterChip' + label={`${tardyCount} ${t('rosterScreen.filters.tardy')}`} + onPress={() => handleFilterPress(FilterType.tardy)} + /> + <FilterChip + id={FilterType.absent} + isApplied={selectedFilter === FilterType.absent} + testID='absentFilterChip' + label={`${absentCount} ${t('rosterScreen.filters.absent')}`} + onPress={() => handleFilterPress(FilterType.absent)} + /> + </View> + ); +}; --- src/managerExperience/components/FilterChipGroup/index.ts @@ -0,0 +1 @@ +export {FilterChipGroup} from './FilterChipGroup'; --- src/managerExperience/components/FilterChipGroup/styles.ts @@ -0,0 +1,12 @@ +import {StyleSheet} from 'react-native'; +import {colors} from '@walmart/gtp-shared-components'; + +export const filterChipGroupStyles = StyleSheet.create({ + filterChipGroupContainer: { + display: 'flex', + flexDirection: 'row', + flexWrap: 'wrap', + backgroundColor: colors.white, + width: '100%', + }, +}); --- src/managerExperience/components/FilterChipGroup/types.ts @@ -0,0 +1,12 @@ +export enum FilterType { + clockedIn = 'clockedIn', + tardy = 'tardy', + absent = 'absent', +} + +export interface FilterChipGroupProps { + absentCount: number | null; + clockedInCount: number | null; + tardyCount: number | null; + handleFilter: (FilterType: FilterType) => void; +}
feat: created filter chip group component
feat: created filter chip group component
9fb56effb958cd1853adb02f1735071a976279c7
--- README.md @@ -8,7 +8,7 @@ Builds can be triggered from this multibranch job on LooperPro: https://dx.walma ### Testing changes -Canary builds will be automatically built and deployed when changes are pushed to a feature/* branch. Please open the looper above open your branch and get the build version names. You can also publish canary or normal builds from the above looper job. +Canary builds can be manually triggered from a feature/* branch. Use the .beta. versions in allspark-core or other containers to test before raising a PR to main. ## Packages
Update README.md
Update README.md
1659da4e9887fa9ba2d45b44cbbb5bfc59611388
--- android/app/build.gradle @@ -153,8 +153,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 877 - versionName "1.6.0" + versionCode 878 + versionName "1.6.1" } splits { abi { --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.6.0</string> + <string>1.6.1</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -36,7 +36,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>877</string> + <string>878</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.6.0", + "version": "1.6.1", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.6.0", + "version": "1.6.1", "private": true, "scripts": { "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
v1.6.1
v1.6.1
51818e36496fa72d99eb102abd7aa6f074374218
--- package-lock.json @@ -4272,9 +4272,9 @@ } }, "@walmart/impersonation-mini-app": { - "version": "1.0.28-beta.6", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.28-beta.6.tgz", - "integrity": "sha512-EHWAiqzYNdkocynckOhOQzugcQ1EP8u5jFT61ZUwetG0iaKD60Q7bSq048kGRiidQDncBf3EDokO43GvgWnbDQ==" + "version": "1.0.28-beta.8", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.28-beta.8.tgz", + "integrity": "sha512-6cO57SnVFT8MhLIajydD87lM7tLyNjS2N71It4x2ae8hCpyjHX+z8Bk7VrFqDAO/kGLyz8gA1C0xdm/MzpiMOw==" }, "@walmart/ims-print-services-ui": { "version": "0.1.25", --- package.json @@ -82,7 +82,7 @@ "@walmart/functional-components": "1.0.34", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.2.0", - "@walmart/impersonation-mini-app": "1.0.28-beta.6", + "@walmart/impersonation-mini-app": "1.0.28-beta.8", "@walmart/ims-print-services-ui": "0.1.25", "@walmart/inbox-mini-app": "0.37.0", "@walmart/iteminfo-mini-app": "4.1.5",
version bump
version bump
3751bf414d58d4f82839b6eede5e71edf16f9323
--- graphql.yml @@ -12,7 +12,7 @@ applications: - name: 'stg' persistedQueries: - name: 'businessUnitByCountryAndNumber' - hash: 'f47967b84a2c8ea52dceb45d4650a9cd62ad19a6b545cb63288b3acd085a4194' + hash: 'dc5adc0197a2bfd29b0ecc4ec5a255f44f8e0700a8a6916a834ec745574ab54d' queryTemplate: 'packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.graphql' tags: - 'v1' @@ -32,15 +32,10 @@ applications: tags: - 'v1' - name: 'getLoggedInUser' - hash: 'f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c' + hash: '0beb54411dbf4e0c72d8d94982d755e0559023bc5e2c174e356b42f1e07b22fd' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' - - name: 'GetSupplyChainTeamsByStore' - hash: '628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql' - tags: - - 'v1' - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' @@ -61,10 +56,15 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql' tags: - 'v1' + - name: 'upsertSupplyChainAssociatePreference' + hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' + tags: + - 'v1' - name: 'prod' persistedQueries: - name: 'businessUnitByCountryAndNumber' - hash: 'f47967b84a2c8ea52dceb45d4650a9cd62ad19a6b545cb63288b3acd085a4194' + hash: 'dc5adc0197a2bfd29b0ecc4ec5a255f44f8e0700a8a6916a834ec745574ab54d' queryTemplate: 'packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.graphql' tags: - 'v1' @@ -84,15 +84,10 @@ applications: tags: - 'v1' - name: 'getLoggedInUser' - hash: 'f7a857e71616f58af3437976992e1937c9f5300e0058050f44721a555344f73c' + hash: '0beb54411dbf4e0c72d8d94982d755e0559023bc5e2c174e356b42f1e07b22fd' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' - # - name: "GetSupplyChainTeamsByStore" - # hash: "628c21f19457c4deea7fd9d2dd15138c11da598add9f4f67441e0d7d9318c8d1" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql" - # tags: - # - "v1" - name: 'getTeamByIdHome' hash: '6b4b876250309d85dd51831ace4595bd1764b3d41ef7fd65c08df03b4c4982e0' queryTemplate: 'packages/me-at-walmart-athena-queries/src/getTeamByIdHome.graphql' @@ -113,3 +108,8 @@ applications: # queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql" # tags: # - "v1" + # - name: "upsertSupplyChainAssociatePreference" + # hash: "39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql" + # tags: + # - "v1" --- packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.ts @@ -13,20 +13,20 @@ export type UpsertSupplyChainAssociatePreferenceMutationVariables = export type UpsertSupplyChainAssociatePreferenceMutation = { __typename?: 'Mutation'; upsertAssociatePreference?: { - __typename?: 'AssociatePreferences'; + __typename: 'AssociatePreferences'; walmartIdentificationNumber: string; meAtWalmartPreferences?: { - __typename?: 'MeAtWalmartPreferences'; + __typename: 'MeAtWalmartPreferences'; managerExperiencePreferences?: { - __typename?: 'ManagerExperiencePreferences'; + __typename: 'ManagerExperiencePreferences'; mySupplyChainTeams?: Array<{ - __typename?: 'ManagerExperienceSupplyChain'; + __typename: 'ManagerExperienceSupplyChain'; shiftCodePreference?: Array<string | null> | null; supplyChainTeamPreference?: Array<{ - __typename?: 'SupplyChainTeam'; - teamId?: string | null; - countryCode?: string | null; + __typename: 'SupplyChainTeam'; businessUnitNumber?: number | null; + countryCode?: string | null; + teamId?: string | null; } | null> | null; } | null> | null; } | null; @@ -42,19 +42,24 @@ export const UpsertSupplyChainAssociatePreferenceDocument = gql` upsertAssociatePreference( associatePreferencesInput: $associatePreferencesInput ) { - walmartIdentificationNumber + __typename meAtWalmartPreferences { + __typename managerExperiencePreferences { + __typename mySupplyChainTeams(businessUnitNumber: $businessUnitNumber) { + __typename shiftCodePreference supplyChainTeamPreference { - teamId - countryCode + __typename businessUnitNumber + countryCode + teamId } } } } + walmartIdentificationNumber } } `;
Adding upsertSupplyChainAssociatePreference query
Adding upsertSupplyChainAssociatePreference query
0749fe463f7dae734c335570c3bc351101c961c3
--- __tests__/components/TeamHubButton.test.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {render} from '@testing-library/react-native'; +import {render, fireEvent} from '@testing-library/react-native'; jest.mock('@walmart/gtp-shared-components-3', () => { const React = require('react'); @@ -49,6 +49,12 @@ describe('TeamHubButton', () => { expect(getByText('Notes')).toBeTruthy(); }); + it('handles press event', () => { + const {getByTestId} = render(<TeamHubButton />); + const button = getByTestId('hub-button'); + expect(() => fireEvent.press(button)).not.toThrow(); + }); + it('applies correct hubButton styles', () => { expect(style.hubButton).toEqual( expect.objectContaining({ --- packages/myteam-mini-app/__tests__/components/TeamHubButton.test.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {render} from '@testing-library/react-native'; +import {render, fireEvent} from '@testing-library/react-native'; jest.mock('@walmart/gtp-shared-components-3', () => { const React = require('react'); @@ -49,6 +49,12 @@ describe('TeamHubButton', () => { expect(getByText('Notes')).toBeTruthy(); }); + it('handles press event', () => { + const {getByTestId} = render(<TeamHubButton />); + const button = getByTestId('hub-button'); + expect(() => fireEvent.press(button)).not.toThrow(); + }); + it('applies correct hubButton styles', () => { expect(style.hubButton).toEqual( expect.objectContaining({ --- packages/myteam-mini-app/__tests__/components/WarningBanner.test.tsx @@ -1,20 +1,13 @@ -import React, {useState} from 'react'; -import {renderWithProviders} from '../harness'; +import React from 'react'; +import {render, fireEvent} from '@testing-library/react-native'; import {WarningBanner} from '../../src/components/WarningBanner'; import {useSelector} from 'react-redux'; -import {fireEvent} from '@testing-library/react-native'; - -jest.mock('react', () => ({ - ...jest.requireActual('react'), - useState: jest.fn(), -})); jest.mock('react-redux', () => ({ ...jest.requireActual('react-redux'), useSelector: jest.fn(), })); -// Mock the gtp-shared-components-3 Banner and Body components jest.mock('@walmart/gtp-shared-components-3', () => { const React = require('react'); const {View, TouchableOpacity, Text} = require('react-native'); @@ -28,41 +21,59 @@ jest.mock('@walmart/gtp-shared-components-3', () => { onClose && React.createElement( TouchableOpacity, - {onPress: onClose, accessibilityRole: 'button'}, + {onPress: onClose, testID: 'close-button'}, React.createElement(Text, null, 'Close') ) ), - Body: ({children, testID}: any) => - React.createElement(Text, {testID: testID || 'Body'}, children), + Body: ({children}: any) => + React.createElement(Text, {testID: 'banner-body'}, children), }; }); -// TODO: These tests are currently skipped due to reanimated mocking issues with gtp-shared-components-3 -// The component itself works correctly (verified by TypeScript compilation and manual testing) -// The issue is with the test setup and Banner/Body component mocking -// See https://github.com/software-mansion/react-native-reanimated/issues/3125 for similar issues -describe.skip('WarningBanner component', () => { - it('should render when dismissBanner is false', () => { - (useSelector as jest.Mock).mockReturnValue(true); - (useState as jest.Mock).mockReturnValue([false, jest.fn()]); - const warningBanner = renderWithProviders(<WarningBanner />); - expect(warningBanner.getByTestId('warningBanner')).toBeDefined(); +const mockUseSelector = useSelector as jest.Mock; + +describe('WarningBanner', () => { + beforeEach(() => { + jest.clearAllMocks(); }); - it('should not render when dismissBanner is true', () => { - (useSelector as jest.Mock).mockReturnValue(true); - (useState as jest.Mock).mockReturnValue([true, jest.fn()]); - const warningBanner = renderWithProviders(<WarningBanner />); - expect(warningBanner.queryByTestId('warningBanner')).toBeNull(); + it('renders banner when showWarningBanner is true', () => { + mockUseSelector + .mockReturnValueOnce(true) + .mockReturnValueOnce('Warning message'); + + const {getByTestId} = render(<WarningBanner />); + expect(getByTestId('warningBanner')).toBeTruthy(); + }); + + it('does not render when showWarningBanner is false', () => { + mockUseSelector + .mockReturnValueOnce(false) + .mockReturnValueOnce('Warning message'); + + const {queryByTestId} = render(<WarningBanner />); + expect(queryByTestId('warningBanner')).toBeNull(); }); - it('should trigger onClose when pressed', () => { - const mockSetDismissBanner = jest.fn(); - (useSelector as jest.Mock).mockReturnValue(true); - (useState as jest.Mock).mockReturnValue([false, mockSetDismissBanner]); - const warningBanner = renderWithProviders(<WarningBanner />); - const button = warningBanner.getByRole('button'); - fireEvent.press(button); - expect(mockSetDismissBanner).toHaveBeenCalledWith(true); + it('displays the warning message content', () => { + mockUseSelector + .mockReturnValueOnce(true) + .mockReturnValueOnce('Test warning message'); + + const {getByTestId} = render(<WarningBanner />); + expect(getByTestId('banner-body').props.children).toBe('Test warning message'); + }); + + it('dismisses banner when close button is pressed', () => { + mockUseSelector + .mockReturnValueOnce(true) + .mockReturnValueOnce('Warning message'); + + const {getByTestId, queryByTestId} = render(<WarningBanner />); + expect(getByTestId('warningBanner')).toBeTruthy(); + + fireEvent.press(getByTestId('close-button')); + + expect(queryByTestId('warningBanner')).toBeNull(); }); });
chore: increase function test coverage
chore: increase function test coverage
7ef61b1c898b3bf1dbc2ba4461e85e216c9d776b
--- packages/allspark-foundation/src/Logger/types.ts @@ -9,10 +9,6 @@ export type LogLevel = 'debug' | 'info' | 'warn' | 'error'; * Configuration options for the logger. */ export type LoggerConfig = { - /** - * Additional fields to include in the log message. - */ - fields?: Record<string, any>; /** * The minimum log level to include in the logs. */ --- packages/allspark-foundation/src/Telemetry/types.ts @@ -42,10 +42,6 @@ export type TelemetryHttpMethod = * Configuration options for telemetry. */ export type TelemetryConfig = { - /** - * Additional fields to include in the telemetry data. - */ - fields?: Record<string, any>; /** * Prefix used with telemetry events, defaults to feature id * prefix.some_event
remove fields from logger fields
remove fields from logger fields
c4a975a37b45f00a25f499d0c2144e52a4469df8
--- packages/allspark-foundation-hub/__tests__/Hub/AddEditButton.test.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { render, fireEvent } from '../utils'; -import { AddEditButton } from '../../src/Store/Modules/Hub/TeamSwitcher/AddEditButton'; +import { AddEditButton } from '../../src/Store/Modules/TeamSwitcher/AddEditButton'; const mockOnPress = jest.fn(); --- packages/allspark-foundation-hub/__tests__/Hub/Container/Components/ErrorBottomSheet.test.tsx @@ -7,7 +7,7 @@ import { telemetryLogHandler, } from '../../../../src/Shared/Common/utils'; -jest.mock('../../../../src/Store/Common/utils', () => ({ +jest.mock('../../../../src/Shared/Common/utils', () => ({ telemetryEventsHandler: jest.fn(), telemetryLogHandler: jest.fn(), })); --- packages/allspark-foundation-hub/__tests__/Hub/Container/Components/OnboardingBottomSheet.test.tsx @@ -7,7 +7,7 @@ import { telemetryLogHandler, } from '../../../../src/Shared/Common/utils'; -jest.mock('../../../../src/Store/Common/utils', () => ({ +jest.mock('../../../../src/Shared/Common/utils', () => ({ telemetryEventsHandler: jest.fn(), telemetryLogHandler: jest.fn(), })); --- packages/allspark-foundation-hub/__tests__/Hub/Container/Components/TeamUpdateBottomSheet.test.tsx @@ -7,7 +7,7 @@ import { telemetryLogHandler, } from '../../../../src/Shared/Common/utils'; -jest.mock('../../../../src/Store/Common/utils', () => ({ +jest.mock('../../../../src/Shared/Common/utils', () => ({ telemetryEventsHandler: jest.fn(), telemetryLogHandler: jest.fn(), })); --- packages/allspark-foundation-hub/__tests__/Hub/Container/__snapshots__/HubDashboard.test.tsx.snap @@ -3,13 +3,19 @@ exports[`HubDashboard renders FloatingButton Component 1`] = ` <View style={ - { - "backgroundColor": "#fff", - "height": "100%", - "paddingBottom": 40, - "paddingTop": 64, - "width": "100%", - } + [ + { + "backgroundColor": "#fff", + "height": "100%", + "paddingBottom": 40, + "paddingTop": 64, + "width": "100%", + }, + { + "borderTopLeftRadius": 30, + "borderTopRightRadius": 30, + }, + ] } testID="error-screen-container" > @@ -92,34 +98,37 @@ exports[`HubDashboard renders FloatingButton Component 1`] = ` > emptyScreen.message </Text> + </View> + <View + style={ + { + "alignItems": "center", + "display": "flex", + "flexDirection": "row", + "justifyContent": "space-around", + "marginBottom": 16, + } + } + > <View - accessibilityLabel="emptyScreen.title" - accessibilityRole="alert" style={ { - "marginTop": 24, + "width": "67%", } } - testID="ErrorMessage-actions" > - <View - style={ - { - "gap": 8, - } - } + <Button + accessibilityLabel="emptyScreen.primaryButtonText" + accessibilityRole="button" + disabled={false} + isFullWidth={true} + onPress={[Function]} + size="medium" + testID="primary-button" + variant="primary" > - <Button - onPress={[Function]} - size="medium" - variant="primary" - > - emptyScreen.primaryButtonText - </Button> - <Link - onPress={[Function]} - /> - </View> + emptyScreen.primaryButtonText + </Button> </View> </View> </View> @@ -130,13 +139,19 @@ exports[`HubDashboard renders HubDashboard Component woth passed in widgets 1`] exports[`HubDashboard renders TeamOnboardingScreen if showOnboarding is true 1`] = ` <View style={ - { - "backgroundColor": "#fff", - "height": "100%", - "paddingBottom": 40, - "paddingTop": 64, - "width": "100%", - } + [ + { + "backgroundColor": "#fff", + "height": "100%", + "paddingBottom": 40, + "paddingTop": 64, + "width": "100%", + }, + { + "borderTopLeftRadius": 30, + "borderTopRightRadius": 30, + }, + ] } testID="error-screen-container" > @@ -219,34 +234,37 @@ exports[`HubDashboard renders TeamOnboardingScreen if showOnboarding is true 1`] > emptyScreen.message </Text> + </View> + <View + style={ + { + "alignItems": "center", + "display": "flex", + "flexDirection": "row", + "justifyContent": "space-around", + "marginBottom": 16, + } + } + > <View - accessibilityLabel="emptyScreen.title" - accessibilityRole="alert" style={ { - "marginTop": 24, + "width": "67%", } } - testID="ErrorMessage-actions" > - <View - style={ - { - "gap": 8, - } - } + <Button + accessibilityLabel="emptyScreen.primaryButtonText" + accessibilityRole="button" + disabled={false} + isFullWidth={true} + onPress={[Function]} + size="medium" + testID="primary-button" + variant="primary" > - <Button - onPress={[Function]} - size="medium" - variant="primary" - > - emptyScreen.primaryButtonText - </Button> - <Link - onPress={[Function]} - /> - </View> + emptyScreen.primaryButtonText + </Button> </View> </View> </View> --- packages/allspark-foundation-hub/__tests__/Hub/VerticalDivider.test.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { render } from '../utils'; -import { VerticalDivider } from '../../src/Store/Modules/Hub/TeamSwitcher/VerticalDivider'; +import { VerticalDivider } from '../../src/Store/Modules/TeamSwitcher/VerticalDivider'; import { colors } from '@walmart/gtp-shared-components'; describe('VerticalDivider', () => { --- packages/allspark-foundation-hub/__tests__/TeamOnboarding/ErrorScreen.test.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { fireEvent, render } from '../utils'; -import ErrorScreen from '../../src/Store/Screens/ErrorScreen/ErrorScreen'; +import { ErrorScreen } from '../../src/Shared'; describe('ErrorScreen Component Tests', () => { const defaultProps = { --- packages/allspark-foundation-hub/__tests__/shared/ActionButtonGroup.test.tsx --- packages/allspark-foundation-hub/__tests__/shared/AlertBanner.test.tsx --- packages/allspark-foundation-hub/__tests__/shared/WarningBanner.test.tsx --- packages/allspark-foundation-hub/__tests__/shared/__snapshots__/ActionButtonGroup.test.tsx.snap --- packages/allspark-foundation-hub/__tests__/shared/__snapshots__/AlertBanner.test.tsx.snap --- packages/allspark-foundation-hub/__tests__/shared/__snapshots__/WarningBanner.test.tsx.snap --- packages/allspark-foundation-hub/__tests__/utils/index.js @@ -28,7 +28,7 @@ function setupStore(preloadedState) { }); } -function render( +export function render( ui, { preloadedState = initialStateMock, store = {}, ...options } = {} ) {
Update tests
Update tests
53ad470d1a7b1798bb0b17213f3b716d1a18aff9
--- packages/allspark-foundation-hub/__tests__/HubFeature/Hub/TeamSwitcher.test.tsx @@ -94,7 +94,7 @@ const setDeviceDimentions = (width: number, height: number) => { }); }; //Todo: Re write some test cases and Write test cases for selection based on the selection flag -describe.skip('TeamSwitcher', () => { +describe('TeamSwitcher', () => { afterEach(() => { jest.clearAllMocks(); }); @@ -104,7 +104,7 @@ describe.skip('TeamSwitcher', () => { data: mockTeamData, })); - it('renders correctly with team data', () => { + it.skip('renders correctly with team data', () => { const { toJSON } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> ); @@ -150,7 +150,7 @@ describe.skip('TeamSwitcher', () => { }); //Todo: Fix the test since we are not passing the teamData anymore - it('changes the selected team when a team is pressed', () => { + it.skip('changes the selected team when a team is pressed', () => { const { getByTestId, getByText } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> ); @@ -166,7 +166,6 @@ describe.skip('TeamSwitcher', () => { ); }); - // good it('renders the vertical divider correctly', () => { const { getAllByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> @@ -176,7 +175,7 @@ describe.skip('TeamSwitcher', () => { }); //Todo: fix this test for conditional rendering of footer - it('renders the Add/Edit button and handles press', () => { + it.skip('renders the Add/Edit button and handles press', () => { const consoleSpy = jest.spyOn(console, 'log').mockImplementation(); const { getByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> @@ -188,7 +187,7 @@ describe.skip('TeamSwitcher', () => { expect(consoleSpy).toHaveBeenCalledWith('Add/Edit button pressed'); }); - it('applies correct styles for selected team label', () => { + it.skip('applies correct styles for selected team label', () => { const { getByText } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> ); @@ -201,7 +200,7 @@ describe.skip('TeamSwitcher', () => { }); //Todo: Fix the test since we are not passing the teamData anymore - it('displays the selector line and pointer when a team is selected', () => { + it.skip('displays the selector line and pointer when a team is selected', () => { const { getByText, getByTestId } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> ); @@ -255,7 +254,7 @@ describe.skip('TeamSwitcher', () => { }); //Additional test for different device dimentions - it('renders correctly on small devices', () => { + it.skip('renders correctly on small devices', () => { setDeviceDimentions(320, 568); //Iphone SE size const { toJSON } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> @@ -263,7 +262,7 @@ describe.skip('TeamSwitcher', () => { expect(toJSON()).toMatchSnapshot(); }); - it('renders correctly on medium devices', () => { + it.skip('renders correctly on medium devices', () => { setDeviceDimentions(375, 667); //Iphone 8 size const { toJSON } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> @@ -271,7 +270,7 @@ describe.skip('TeamSwitcher', () => { expect(toJSON()).toMatchSnapshot(); }); - it('renders correctly on large devices', () => { + it.skip('renders correctly on large devices', () => { setDeviceDimentions(414, 896); //Iphone 11 Pro Max size const { toJSON } = render( <TeamSwitcher onTeamChange={onTeamChange} refreshing={false} /> --- packages/allspark-foundation-hub/src/HubFeature/Store/Hub/Container/utils.ts @@ -126,6 +126,13 @@ export const findTeamById = ( return teamList.find((team) => team.teamId === teamPreference); }; +/** + * Sorts to send the team switcher correlated to the primary team to the front of the list + * + * @param data given switchers + * @param primaryTeam + * @returns the sorted list + */ export const sorter = ( data: TeamSwitcherTypes[], primaryTeam?: Team
Added test skips and docs for odd sorter
Added test skips and docs for odd sorter
5739ee2df5012c57e417f77d57e45f387f1cd0c6
--- lerna.json @@ -27,4 +27,4 @@ "packages": [ "packages/*" ] -} \ No newline at end of file +}
chore(version): updating package version
chore(version): updating package version
600c7ce33b4f346ff0686788789c0996caba6c34
--- docs/docs/hub framework/hub-intro.md @@ -103,7 +103,7 @@ export const TeamHubContainer = **2. Create your hub** ```jsx -import {AllsparkHubContainer} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +import {AllsparkHubContainer} from '@walmart/allspark-foundation-hub/Store'; import { TeamHubContainer, TEAM_HUB_CCM_NAMESPACE, @@ -152,7 +152,7 @@ With these steps in mind, you're ready to set up your first hub! Remember to con As Widget Providers, below code snippet shows how you can create the Widgets with the default HubWidget layout provided by the Hub framework. You can also choose to create your own custom widget. For detailed information on the Hub Widgets, refer to [Hub Widgets](./hub-widget.md) ```js -import {HubWidget} from '@walmart/allspark-foundation-hub/HubFeature/Store/Hub/HubWidget'; +import {HubWidget} from '@walmart/allspark-foundation-hub/Store/Hub/HubWidget'; import {WidgetDataProps} from '@walmart/me-at-walmart-common'; export const TimeAndAttendanceWidget = (props: WidgetDataProps) => { --- docs/docs/hub framework/hub-team-switcher.md @@ -38,7 +38,7 @@ That's it! The Team Switcher will now be available in your app. ```jsx import React from 'react'; -import {TeamSwitcher} from '@walmart/allspark-foundation-hub/HubFeature/Store/Hub/TeamSwitcher'; +import {TeamSwitcher} from '@walmart/allspark-foundation-hub/Store/Hub/TeamSwitcher'; const teamChangeListener = (teamId) => { /** --- docs/docs/hub framework/hub-widget.md @@ -93,7 +93,7 @@ By using these props, you can customize the appearance and behavior of your `Hub The following code snippet demonstrates how to create a default HubWidget instance, specifically an actionable widget named `TimeAndAttendanceWidget` ```jsx -import {HubWidget} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +import {HubWidget} from '@walmart/allspark-foundation-hub/Store'; const widgetContent = ()=>{ return ( @@ -206,7 +206,7 @@ Let's extend the code example above to show how to register a widget in code. ```jsx import { TEAM_HUB_NAMESPACE } from '@walmart/me-at-walmart-common'; -import {HubWidget} from '@walmart/allspark-foundation-hub/HubFeature/Store'; +import {HubWidget} from '@walmart/allspark-foundation-hub/Store'; const TimeAndAttendanceWidgetId = 'GTATeamName.TimeAndAttendanceWidget'; --- packages/allspark-foundation-hub/.gitignore @@ -1,4 +0,0 @@ -/cli -/Core -/FeatureRunner -/HubFeature \ No newline at end of file --- packages/allspark-foundation-hub/__tests__/__mocks__/data/teamSelection.ts @@ -1,7 +1,7 @@ import { Areas, AreaTeamMap, -} from '../../src/HubFeature/Store/TeamSelection/types'; +} from '../../src/Store/TeamSelection/types'; export const allAreas: Areas = [ 'Admin & Support',
Update the doc
Update the doc
f02a5153cf47bb1b9e5dbbf8481d39de173ebcb8
--- src/channels/provider.tsx @@ -25,13 +25,12 @@ import { DelayedNameCalc, } from './types'; import {ChannelsContext} from './context'; -import {DEFAULT_CHANNELS_STATE, STORE_CHANNEL_ID} from './constants'; +import {DEFAULT_CHANNELS_STATE} from './constants'; import {normalizeChannelSnapshot} from './transforms'; import {fetchChannelName, fetchChannelLastMessage} from './services'; import {logger} from '../logger/Logger'; import {textingSlice} from '../redux/reducer'; import {SEVEN_DAYS_AGO_TIMESTAMP} from '../constants'; -import {getChannelIdFromChannelPath} from './transforms'; import {useGetViewersPrimaryTeamId} from '../hooks'; /** @@ -49,8 +48,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { SiteSelectors.getUserWorkingSite, ); const viewerTeamId = useGetViewersPrimaryTeamId(); - const teamChannelPath = siteId && createTeamChannelPath(viewerTeamId, siteId); - const storeChannelPath = createStoreChannelPath(viewerId); // Normalized state of channel data for current user/site const [channelState, setChannelState] = useState<ChannelsState>( @@ -64,9 +61,19 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const [unreadTracking] = useState<boolean>(true); // Method to start snapshopt subscription to users channels changes - const subscriptionOn = useCallback(() => { + const subscriptionOn = useCallback(async () => { if (viewerId && siteId) { const channelsPath = createChannelsCollectionPath(siteId); + const teamChannelPath = createTeamChannelPath(viewerTeamId, siteId); + const storeChannelPath = createStoreChannelPath(siteId); + const storeChannelDoc = await firestore() + .collection(storeChannelPath) + .doc() + .get(); + const teamChannelDoc = await firestore() + .collection(teamChannelPath) + .doc() + .get(); subscriptionOff(); @@ -81,23 +88,12 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { }); //TODO: Break this out into its own method for more readability - if (!channelPaths.includes(storeChannelPath)) { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - // const storeChannelDoc = await firestore() - // .collection(storeChannelPath) - // .doc() - // .get(); + if (storeChannelPath && !channelPaths.includes(storeChannelPath)) { //TODO: Normalize the teamChannelDoc and setChannelState } //TODO: Break this out into its own method for more readability if (teamChannelPath && !channelPaths.includes(teamChannelPath)) { - - // eslint-disable-next-line @typescript-eslint/no-unused-vars - // const teamChannelDoc = await firestore() - // .collection(teamChannelPath) - // .doc() - // .get(); //TODO: Normalize the teamChannelDoc and setChannelState } --- src/channels/provider.tsx @@ -25,13 +25,12 @@ import { DelayedNameCalc, } from './types'; import {ChannelsContext} from './context'; -import {DEFAULT_CHANNELS_STATE, STORE_CHANNEL_ID} from './constants'; +import {DEFAULT_CHANNELS_STATE} from './constants'; import {normalizeChannelSnapshot} from './transforms'; import {fetchChannelName, fetchChannelLastMessage} from './services'; import {logger} from '../logger/Logger'; import {textingSlice} from '../redux/reducer'; import {SEVEN_DAYS_AGO_TIMESTAMP} from '../constants'; -import {getChannelIdFromChannelPath} from './transforms'; import {useGetViewersPrimaryTeamId} from '../hooks'; /** @@ -49,8 +48,6 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { SiteSelectors.getUserWorkingSite, ); const viewerTeamId = useGetViewersPrimaryTeamId(); - const teamChannelPath = siteId && createTeamChannelPath(viewerTeamId, siteId); - const storeChannelPath = createStoreChannelPath(viewerId); // Normalized state of channel data for current user/site const [channelState, setChannelState] = useState<ChannelsState>( @@ -64,9 +61,19 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { const [unreadTracking] = useState<boolean>(true); // Method to start snapshopt subscription to users channels changes - const subscriptionOn = useCallback(() => { + const subscriptionOn = useCallback(async () => { if (viewerId && siteId) { const channelsPath = createChannelsCollectionPath(siteId); + const teamChannelPath = createTeamChannelPath(viewerTeamId, siteId); + const storeChannelPath = createStoreChannelPath(siteId); + const storeChannelDoc = await firestore() + .collection(storeChannelPath) + .doc() + .get(); + const teamChannelDoc = await firestore() + .collection(teamChannelPath) + .doc() + .get(); subscriptionOff(); @@ -81,23 +88,12 @@ export const ChannelsProvider = (props: PropsWithChildren<{}>) => { }); //TODO: Break this out into its own method for more readability - if (!channelPaths.includes(storeChannelPath)) { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - // const storeChannelDoc = await firestore() - // .collection(storeChannelPath) - // .doc() - // .get(); + if (storeChannelPath && !channelPaths.includes(storeChannelPath)) { //TODO: Normalize the teamChannelDoc and setChannelState } //TODO: Break this out into its own method for more readability if (teamChannelPath && !channelPaths.includes(teamChannelPath)) { - - // eslint-disable-next-line @typescript-eslint/no-unused-vars - // const teamChannelDoc = await firestore() - // .collection(teamChannelPath) - // .doc() - // .get(); //TODO: Normalize the teamChannelDoc and setChannelState }
query for team channel and store channel on subscription start
query for team channel and store channel on subscription start
a7a897b90f837adda2278fa5e6ed07556b6a07b7
--- packages/me-at-walmart-container/src/translations/index.ts @@ -6,6 +6,7 @@ export const MeAtWalmartTranslationConfig: TranslationClientOptions = { ns: ['container'], defaultNS: 'container', compatibilityJSON: 'v3', + supportedLanguages: ['en-US', 'es-MX'], localeConfig: { 'en-US': { descriptor: 'English (EN)',
feat: add supported languages
feat: add supported languages
63fca78d2df7f58bbdfb93a7e33d7e412651ca6c
--- __tests__/navigation/utils.test.ts @@ -3,6 +3,7 @@ import { goToIndividualSchedule, } from '../../src/navigation/utils'; import {navigate} from '@walmart/react-native-shared-navigation'; +import {logger} from '../../src/logger/Logger'; jest.mock('@walmart/react-native-shared-navigation', () => ({ ...jest.requireActual('@walmart/react-native-shared-navigation'), @@ -22,6 +23,24 @@ describe('Navigation Utils', () => { }); }); + it('logs an error when navigate throws an error in goToWeeklySchedule', () => { + const error = new Error('Test error'); + const mockLogger = jest.fn(); + jest.spyOn(logger, 'error').mockImplementation(mockLogger); + + (navigate as jest.Mock).mockImplementation(() => { + throw error; + }); + + goToWeeklySchedule(['11111', '00900900'], 'testTeam'); + + expect(mockLogger).toBeCalledWith('goToWeeklySchedule error', { + message: `error in navigation from goToWeeklySchedule: ${error}`, + }); + + (navigate as jest.Mock).mockReset(); + }); + it('calls goToIndividualSchedule with params', () => { goToIndividualSchedule( '00900900', @@ -45,4 +64,21 @@ describe('Navigation Utils', () => { screen: 'scheduleNav.associateView', }); }); + + it('logs an error when navigate throws an error in goToIndividualSchedule', () => { + const error = new Error('Test error'); + const mockLogger = jest.fn(); + jest.spyOn(logger, 'error').mockImplementation(mockLogger); + + (navigate as jest.Mock).mockImplementation(() => { + throw error; + }); + + goToIndividualSchedule('00900900', '', 'testDisplayName', 'H', 12345, 'US'); + expect(mockLogger).toBeCalledWith('goToIndividualSchedule error', { + message: `error in navigation from goToIndividualSchedule: ${error}`, + }); + + (navigate as jest.Mock).mockReset(); + }); }); --- src/navigation/utils.ts @@ -3,7 +3,10 @@ import namecase from 'namecase'; import {analytics} from '../logger/Analytics'; import {logger} from '../logger/Logger'; -export const goToWeeklySchedule = (wins: string[], teamName?: string) => { +export const goToWeeklySchedule = ( + wins: string[] | undefined, + teamName?: string | undefined, +) => { analytics('weeklyschedule', { message: 'navigate to the weekly schedule page', });
Adding utils files branch coverage
Adding utils files branch coverage
b7f5de8bf87f0c905808c14370509e05cc5d24b9
--- __tests__/auth/__snapshots__/AuthenticatorViewTest.tsx.snap @@ -19,31 +19,63 @@ exports[`AuthenticatorView renders error 1`] = ` } > <View - accessible={true} - focusable={true} - onClick={[Function]} - onResponderGrant={[Function]} - onResponderMove={[Function]} - onResponderRelease={[Function]} - onResponderTerminate={[Function]} - onResponderTerminationRequest={[Function]} - onStartShouldSetResponder={[Function]} + collapsable={true} style={ Object { - "opacity": 1, + "flexDirection": "row", + "justifyContent": "center", + "overflow": "visible", } } - testID="retryButton" > - <Text + <View + accessibilityRole="button" + accessibilityState={ + Object { + "selected": undefined, + } + } + accessible={true} + focusable={true} + forwardedRef={[Function]} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} style={ Object { - "textDecorationLine": "underline", + "backgroundColor": "rgba(0, 113, 220, 1)", + "borderColor": "rgba(0, 113, 220, 1)", + "borderRadius": 40, + "borderWidth": 1, + "flexDirection": "row", + "flexShrink": 1, + "paddingHorizontal": 23, } } + testID="retryButton" > - Try again - </Text> + <Text + forwardedRef={[Function]} + style={ + Object { + "color": "#FFFFFF", + "fontFamily": "Bogle", + "fontSize": 16, + "fontStyle": "normal", + "fontWeight": "700", + "height": 38, + "lineHeight": 38, + "textAlign": "center", + } + } + > + Sign In + </Text> + </View> </View> </View> `; @@ -59,31 +91,63 @@ exports[`AuthenticatorView renders error 2`] = ` } > <View - accessible={true} - focusable={true} - onClick={[Function]} - onResponderGrant={[Function]} - onResponderMove={[Function]} - onResponderRelease={[Function]} - onResponderTerminate={[Function]} - onResponderTerminationRequest={[Function]} - onStartShouldSetResponder={[Function]} + collapsable={true} style={ Object { - "opacity": 1, + "flexDirection": "row", + "justifyContent": "center", + "overflow": "visible", } } - testID="retryButton" > - <Text + <View + accessibilityRole="button" + accessibilityState={ + Object { + "selected": undefined, + } + } + accessible={true} + focusable={true} + forwardedRef={[Function]} + onClick={[Function]} + onResponderGrant={[Function]} + onResponderMove={[Function]} + onResponderRelease={[Function]} + onResponderTerminate={[Function]} + onResponderTerminationRequest={[Function]} + onStartShouldSetResponder={[Function]} style={ Object { - "textDecorationLine": "underline", + "backgroundColor": "rgba(0, 113, 220, 1)", + "borderColor": "rgba(0, 113, 220, 1)", + "borderRadius": 40, + "borderWidth": 1, + "flexDirection": "row", + "flexShrink": 1, + "paddingHorizontal": 23, } } + testID="retryButton" > - Try again - </Text> + <Text + forwardedRef={[Function]} + style={ + Object { + "color": "#FFFFFF", + "fontFamily": "Bogle", + "fontSize": 16, + "fontStyle": "normal", + "fontWeight": "700", + "height": 38, + "lineHeight": 38, + "textAlign": "center", + } + } + > + Sign In + </Text> + </View> </View> </View> `; --- package-lock.json @@ -1838,9 +1838,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.3.1", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.3.1.tgz", - "integrity": "sha512-PjM0msXXoBSlFwssOeB3sMGsuAq+kqDXQr0sMF5vD7U6GUzyQHhyUweV+Op9P8XXjzu+nimuvYKFEZe4YeyIFQ==", + "version": "0.3.2", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.3.2.tgz", + "integrity": "sha512-0mbyE3WNvtlXjVknlElVmILsDK2lSCQDyVqgjOKoUD+V19UI+JLIU6hI+868lOaLbnfbg41ZtC7pyihWcdYeFw==", "requires": { "@babel/preset-typescript": "^7.10.4", "apisauce": "^1.1.2", --- package.json @@ -33,7 +33,7 @@ "@react-navigation/stack": "^5.9.0", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": "^4.14.159", - "@walmart/ask-sam-mini-app": "^0.3.1", + "@walmart/ask-sam-mini-app": "^0.3.2", "@walmart/gtp-shared-components": "^0.1.3", "@walmart/react-native-shared-navigation": "^0.2.0", "@walmart/redux-store": "^0.1.1", --- src/auth/AuthenticatorView.tsx @@ -3,10 +3,8 @@ import { ActivityIndicator, View, Text, - TouchableOpacity, ViewStyle, StyleProp, - TextStyle, } from 'react-native'; import {SSOEnv} from './ssoPingFedType'; import { @@ -16,6 +14,7 @@ import { getStore, } from '@walmart/redux-store'; import {useSelector, shallowEqual} from 'react-redux'; +import {PrimaryButton} from '@walmart/gtp-shared-components'; export interface Props { env: SSOEnv; @@ -34,7 +33,6 @@ const centerRowStyle: StyleProp<ViewStyle> = { alignItems: 'center', }; const leftMargin: StyleProp<ViewStyle> = {marginStart: 8}; -const underlineStyle: StyleProp<TextStyle> = {textDecorationLine: 'underline'}; export const AuthenticatorView: React.FC<Props> = (props) => { const {env, redirectUri, activityName, connectedSSO} = props; @@ -94,11 +92,11 @@ export const AuthenticatorView: React.FC<Props> = (props) => { if (fetchingUserError || signOutError) { return ( <View style={centerContainerStyle}> - <TouchableOpacity + <PrimaryButton testID='retryButton' onPress={() => connectedSSO.signIn(activityName)}> - <Text style={underlineStyle}>Try again</Text> - </TouchableOpacity> + Sign In + </PrimaryButton> </View> ); }
updated ask sam version; made the sign in button use ld3 component
updated ask sam version; made the sign in button use ld3 component
6927b3f0eacc8244180c07160ba68a7ffae89d9b
--- targets/US/package.json @@ -91,7 +91,7 @@ "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.5.20", "@walmart/calling-mini-app": "0.5.17", - "@walmart/checkout-mini-app": "4.0.6", + "@walmart/checkout-mini-app": "4.0.7", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.4.5", "@walmart/core-services": "~6.5.2", --- yarn.lock @@ -6153,9 +6153,9 @@ __metadata: languageName: node linkType: hard -"@walmart/checkout-mini-app@npm:4.0.6": - version: 4.0.6 - resolution: "@walmart/checkout-mini-app@npm:4.0.6" +"@walmart/checkout-mini-app@npm:4.0.7": + version: 4.0.7 + resolution: "@walmart/checkout-mini-app@npm:4.0.7" dependencies: "@stomp/stompjs": "npm:^7.0.0" cpc-input: "npm:^1.7.28" @@ -6197,7 +6197,7 @@ __metadata: react-native-wm-telemetry: ">=6" react-redux: ^8.1.3 redux: ^4.0.5 - checksum: 10c0/13c7cf25d06dc365704ba0db799da57ce7bfcc2de1c8b12a87666f2f94dcfe3ccd589703ff34aaefb6cd8db5b92cd0faa64277a8675cfc50bfa990cd2ece5831 + checksum: 10c0/2ea401da10207f74a40c0faca06f0abdf0bc4ffcb7caffc4b53020aba2e31f5a3f8b7e5c4d1a9c966fda1a948d9d6341f9a81cccfa7c7af5e7eabf8caea4bd1a languageName: node linkType: hard @@ -7007,7 +7007,7 @@ __metadata: "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.5.20" "@walmart/calling-mini-app": "npm:0.5.17" - "@walmart/checkout-mini-app": "npm:4.0.6" + "@walmart/checkout-mini-app": "npm:4.0.7" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.4.5" "@walmart/core-services": "npm:~6.5.2"
update CO version to 4.0.7
update CO version to 4.0.7
1e3caa169b61a937e7bdc02f13cf52fc18ca7b80
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 87 + versionCode 88 versionName "1.0.6" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>87</string> + <string>88</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
31520dfacc1ebf46221ed0b9e9542f8ccf44a953
--- src/components/Roster/Roster.tsx @@ -23,6 +23,11 @@ import {teamLeadJobDescriptions} from '../../redux/selectors'; * jobCategoryCodeDesc */ +/** + * TeamRosterItem fields + * //TODO: Identify minimal fields needs to manage a teamList entity + */ + //TODO: States to verify: No Data, Loading, Error (identify all types of errors), Success export const Roster: React.FC<RosterProps> = (props) => { const {
revisions to roster component
revisions to roster component
99a2214d1f334fd3fd091e1e7b38ed96c523bd63
--- package.json @@ -146,7 +146,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.22.0", + "@walmart/allspark-foundation": "6.27.6", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@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.18", - "@walmart/allspark-foundation": "6.22.0", + "@walmart/allspark-foundation": "6.27.6", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -5966,9 +5966,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.22.0": - version: 6.22.0 - resolution: "@walmart/allspark-foundation@npm:6.22.0" +"@walmart/allspark-foundation@npm:6.27.6": + version: 6.27.6 + resolution: "@walmart/allspark-foundation@npm:6.27.6" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -6004,24 +6004,23 @@ __metadata: "@react-navigation/drawer": 6.x "@react-navigation/native": 6.x "@react-navigation/stack": 6.x - "@walmart/allspark-graphql-client": ">=6" - "@walmart/allspark-http-client": ">=6" - "@walmart/core-services": ">=6" - "@walmart/core-utils": ">=6" - "@walmart/functional-components": ">=6" + "@walmart/allspark-graphql-client": ">=6.3" + "@walmart/allspark-http-client": ">=6.3" + "@walmart/core-services": ">=6.5" + "@walmart/core-utils": ">=6.3" + "@walmart/functional-components": ">=6.3" "@walmart/gtp-shared-components": ">=2" - "@walmart/react-native-env": ">=6" + "@walmart/react-native-env": ">=6.3" "@walmart/react-native-scanner-3.0": ">=0.6.3" - "@walmart/react-native-shared-navigation": ">=6" + "@walmart/react-native-shared-navigation": ">=6.3" "@walmart/react-native-sumo-sdk": ^2.7.0 - "@walmart/react-native-wm-network": ">=6" - "@walmart/react-native-wm-notification": ">=6" - "@walmart/react-native-wm-telemetry": ">=6" - "@walmart/redux-store": ">=6" + "@walmart/react-native-wm-network": ">=6.3" + "@walmart/react-native-wm-notification": ">=6.3" + "@walmart/react-native-wm-telemetry": ">=6.3" + "@walmart/redux-store": ">=6.3" react: "*" react-native: "*" react-native-apollo-devtools-client: "*" - react-native-device-info: "*" react-native-drop-shadow: "*" react-native-flipper: "*" react-native-gesture-handler: 2.x @@ -6059,9 +6058,7 @@ __metadata: optional: true bin: allspark-generate-graphql: cli/generate.js - allspark-link: cli/link.js - allspark-setup: cli/setup.js - checksum: 10c0/ee0eb7b9ccc3ff24504e6b99b60e553766d481f6e6667ae5dcd58f82dd60937582d372fdae01e9e27546b47c2c7841d4530c4d6293233298ab4a1f02a11702dc + checksum: 10c0/6a4aabe7ba4c201860fadfbe171107c899622c08b8a0e890824e2c77f1b7e8531561362a1070ae6e9ae5b0ea913d0b0a011bb2760bd21fdbd864bf95ea100e3d languageName: node linkType: hard @@ -7279,7 +7276,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:6.22.0" + "@walmart/allspark-foundation": "npm:6.27.6" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31"
bumping foundation
bumping foundation
10362b571861c1b0632a4c45de9796663db6d30f
--- packages/allspark-foundation-hub/src/HubFeature/Store/Components/ErrorBottomSheet.tsx @@ -3,10 +3,7 @@ import BottomSheet from './BottomSheet/BottomSheet'; import HubOnboardingImage from './BottomSheet/HubOnboardingImage/OnboardingImage'; import { FEATURE_ID } from '../Common/constant'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; -import { - telemetryEventsHandler, - telemetryLogHandler, -} from '../../utils'; +import { telemetryEventsHandler, telemetryLogHandler } from '../../utils'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { AllsparkNavigationClient } from '@walmart/allspark-foundation';
feat(ui): Update the folder structure for manager experience
feat(ui): Update the folder structure for manager experience
adfa7eb883fba614576d1824896aab49490847aa
--- packages/allspark-utils/src/eventManager.ts @@ -127,7 +127,7 @@ export class EventManager< listener: EventListener<EventPayloadMap[K]>, options?: { id: string } ): ListenerSubscription => { - let id; + let id: string; // Add event if there is none in the listener if (!this._listeners[event]) {
chore: ts error for untyped variable
chore: ts error for untyped variable
591e46f073b0a4b1a5c681ae99d42eebc798a562
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "0.190.6", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.5", - "@walmart/copilot-mini-app": "1.77.9", + "@walmart/copilot-mini-app": "^2.1.7", "@walmart/core-services": "~2.2.0", "@walmart/core-services-allspark": "~2.12.6", "@walmart/core-utils": "~2.0.5", @@ -8104,9 +8104,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "1.77.9", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.9.tgz", - "integrity": "sha512-6MyoDQk3oeLeYQlG1+/uPdn3urUgfC9ZE1IxRedV7+sKZhzpX5Shb7NYnC2jZssP4I0tYwLnQxF5LggIT7eEpg==", + "version": "2.1.7", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.1.7.tgz", + "integrity": "sha512-KzQCZj11f9jJfAfe89dElwqXWzv8LQ+qjLtf6geRndwMhX/dyay3V/4hG+LccrV6R4g6pnoBEPMWTIobyv/73w==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -33580,9 +33580,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "1.77.9", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-1.77.9.tgz", - "integrity": "sha512-6MyoDQk3oeLeYQlG1+/uPdn3urUgfC9ZE1IxRedV7+sKZhzpX5Shb7NYnC2jZssP4I0tYwLnQxF5LggIT7eEpg==" + "version": "2.1.7", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.1.7.tgz", + "integrity": "sha512-KzQCZj11f9jJfAfe89dElwqXWzv8LQ+qjLtf6geRndwMhX/dyay3V/4hG+LccrV6R4g6pnoBEPMWTIobyv/73w==" }, "@walmart/core-services": { "version": "2.2.0", --- package.json @@ -84,7 +84,7 @@ "@walmart/attendance-mini-app": "0.190.6", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.5", - "@walmart/copilot-mini-app": "1.77.9", + "@walmart/copilot-mini-app": "2.1.7", "@walmart/core-services": "~2.2.0", "@walmart/core-services-allspark": "~2.12.6", "@walmart/core-utils": "~2.0.5",
chore: bump copilot@2.1.7
chore: bump copilot@2.1.7
9112a12e7ee6485a733bc2add8de2e766f5a5c6c
--- android/app/src/main/AndroidManifest.xml @@ -21,6 +21,13 @@ <data android:scheme="gif2://home" /> </intent> </queries> + + <queries> + <intent> + <action android:name="android.intent.action.VIEW" /> + <data android:scheme="even" android:host="open" /> + </intent> + </queries> <application android:name="com.walmart.stores.allspark.beta.MainApplication" --- ios/AllSpark/Info.plist @@ -45,6 +45,7 @@ <string>invmgmt</string> <string>awb</string> <string>awbs</string> + <string>even</string> </array> <key>LSRequiresIPhoneOS</key> <true /> --- package.json @@ -89,7 +89,7 @@ "@walmart/exception-mini-app": "0.42.1", "@walmart/facilities-management-miniapp": "0.2.2", "@walmart/feedback-all-spark-miniapp": "0.6.0", - "@walmart/financial-wellbeing-feature-app": "1.0.21", + "@walmart/financial-wellbeing-feature-app": "1.0.22", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.8.9",
financial-wellbeing-feature-app version 1.0.22
financial-wellbeing-feature-app version 1.0.22
f4b416c5bfd89245f41a4273296b2b7fe1155821
--- .looper.multibranch.yml @@ -160,7 +160,7 @@ branches: triggers: - push: skipAuthor: jenkinspan - - spec: release/* + - spec: release call: build(rc) triggers: - push:
change release/* to release
change release/* to release
6c3eeb9c10a112c6be07230cb065064a184bdd6f
--- react-native.config.US.js @@ -0,0 +1,11 @@ +// https://github.com/react-native-community/cli/blob/main/docs/configuration.md + +module.exports = { + projects: {}, + dependencies: { + // Disable linking of package for specific platforms + // 'package-name': { platforms: { ios: null, android: null } } + }, + platforms: {}, + plugins: {}, +}; \ No newline at end of file --- react-native.config.js @@ -0,0 +1,17 @@ +// https://github.com/react-native-community/cli/blob/main/docs/configuration.md + +module.exports = (function () { + /** + * Return config based on target + */ + if (process.env.TARGET === "US") { + return require('./react-native.config.US.js'); + } + + return { + projects: {}, + dependencies: {}, + platforms: {}, + plugins: {}, + }; +})(); \ No newline at end of file
feat: add react-native config file per target for custom linking configuration
feat: add react-native config file per target for custom linking configuration
9002fa216b560f841ff637f8a92ebd8ca8ca1a3f
--- package-lock.json @@ -64,7 +64,7 @@ "@walmart/onewalmart-miniapp": "1.0.14", "@walmart/pay-stub-miniapp": "0.9.35", "@walmart/payrollsolution_miniapp": "0.130.46", - "@walmart/price-changes-mini-app": "1.9.5", + "@walmart/price-changes-mini-app": "1.9.6", "@walmart/profile-feature-app": "0.252.0", "@walmart/push-to-talk-mini-app": "1.12.1", "@walmart/react-native-encrypted-storage": "1.1.3", @@ -5641,9 +5641,9 @@ } }, "node_modules/@walmart/price-changes-mini-app": { - "version": "1.9.5", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.9.5.tgz", - "integrity": "sha512-Pl8nnUoOKFTiT6ue7epAu0pXLFW+75pbQFwQCQ9wZkwillitRuxOpkyDKoWt0Jds8vexzgnKYJjxLrA87Us1tQ==", + "version": "1.9.6", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.9.6.tgz", + "integrity": "sha512-z6sdqRpXM/fr2qU84ccBzToDqtQNMQnq6pY9pneXMTi4wpzZ5IVthuUAimaBigeu+KEYcXio0T7FRMVCHgTRww==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -25303,9 +25303,9 @@ } }, "@walmart/price-changes-mini-app": { - "version": "1.9.5", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.9.5.tgz", - "integrity": "sha512-Pl8nnUoOKFTiT6ue7epAu0pXLFW+75pbQFwQCQ9wZkwillitRuxOpkyDKoWt0Jds8vexzgnKYJjxLrA87Us1tQ==" + "version": "1.9.6", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.9.6.tgz", + "integrity": "sha512-z6sdqRpXM/fr2qU84ccBzToDqtQNMQnq6pY9pneXMTi4wpzZ5IVthuUAimaBigeu+KEYcXio0T7FRMVCHgTRww==" }, "@walmart/profile-feature-app": { "version": "0.252.0" --- package.json @@ -106,7 +106,7 @@ "@walmart/onewalmart-miniapp": "1.0.14", "@walmart/pay-stub-miniapp": "0.9.35", "@walmart/payrollsolution_miniapp": "0.130.46", - "@walmart/price-changes-mini-app": "1.9.5", + "@walmart/price-changes-mini-app": "1.9.6", "@walmart/profile-feature-app": "0.252.0", "@walmart/push-to-talk-mini-app": "1.12.1", "@walmart/react-native-encrypted-storage": "1.1.3",
Bump price changes v1.9.6
Bump price changes v1.9.6
e2de126a3ccc7c3a916d37ca6356fe77b0fa41ff
--- packages/allspark-foundation/__tests__/Feature/AllsparkFeatureManager.test.tsx @@ -3,8 +3,10 @@ import { BuildScreenConfig } from '../../src/Feature/types'; describe('FeatureModuleManager', () => { let manager: FeatureModuleManager; - const mockFeature1 = { id: 'feature1', tags: [], dependencies: [], connect: jest.fn(), disconnect: jest.fn(), buildAllScreens: jest.fn(), buildScreensByTag: jest.fn() } as unknown as AllsparkFeatureModule; - const mockFeature2 = { id: 'feature2', tags: [], dependencies: ['feature1'], connect: jest.fn(), disconnect: jest.fn(), buildAllScreens: jest.fn(), buildScreensByTag: jest.fn() } as unknown as AllsparkFeatureModule; + const mockFeature1 = { id: 'feature1', tags: [], dependencies: [], connect: jest.fn(), disconnect: jest.fn(), + buildAllScreens: jest.fn(), buildScreensByTag: jest.fn() } as unknown as AllsparkFeatureModule; + const mockFeature2 = { id: 'feature2', tags: [], dependencies: ['feature1'], connect: jest.fn(), disconnect: jest.fn(), + buildAllScreens: jest.fn(), buildScreensByTag: jest.fn() } as unknown as AllsparkFeatureModule; beforeEach(() => { manager = new FeatureModuleManager('test'); @@ -125,14 +127,4 @@ describe('FeatureModuleManager', () => { manager.buildAllScreens({ Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig); expect(mockFeature1.buildAllScreens).toHaveBeenCalled(); }); - -// test('should memoize screen building', () => { -// const screens = manager.Screens({ featureId: 'feature1', builder: { Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig }); -// expect(manager.Screens).toHaveBeenCalled(); -// }); - -// test('should memoize screen building for specific screen', () => { -// const screen = manager.Screen('feature1', 'screen1', { Navigator: 'dummyNavigator', routeConfig: {} } as BuildScreenConfig ); -// expect(manager.Screen).toHaveBeenCalled(); -// }); });
code cleanup
code cleanup
ca50588c59e0e1a64e94d8b4dfd3bcd6112d8390
--- targets/US/package.json @@ -86,7 +86,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.24.7", "@walmart/associate-listening-mini-app": "1.2.7", - "@walmart/attendance-mini-app": "3.73.0", + "@walmart/attendance-mini-app": "3.74.0", "@walmart/avp-feature-app": "0.10.7", "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.5.20", --- yarn.lock @@ -6001,9 +6001,9 @@ __metadata: languageName: node linkType: hard -"@walmart/attendance-mini-app@npm:3.73.0": - version: 3.73.0 - resolution: "@walmart/attendance-mini-app@npm:3.73.0" +"@walmart/attendance-mini-app@npm:3.74.0": + version: 3.74.0 + resolution: "@walmart/attendance-mini-app@npm:3.74.0" dependencies: "@walmart/wfm-ui": "npm:^0.2.26" moment-timezone: "npm:0.5.40" @@ -6033,7 +6033,7 @@ __metadata: redux-saga: ^1.2.0 reselect: ^4.1.0 wfm-allspark-data-library: ^3.3.0 - checksum: 10c0/fa782c09f2bcb10c52cb7007cafed64d721150edac63aec1ec214b070b4558c2d6800da8e5c468203004eb6ce4d503fa1bc61aeb0eb2bc881b9aba87cf763907 + checksum: 10c0/26de368a257f182fcc18a98ebc0a0fb5e7d3cc7c9c280199f3459e7874633e136970485c8e8a0e62cfc89be326477f4b4e7917f2e8fe58e78719845c979a1e9b languageName: node linkType: hard @@ -7002,7 +7002,7 @@ __metadata: "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.24.7" "@walmart/associate-listening-mini-app": "npm:1.2.7" - "@walmart/attendance-mini-app": "npm:3.73.0" + "@walmart/attendance-mini-app": "npm:3.74.0" "@walmart/avp-feature-app": "npm:0.10.7" "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.5.20"
bump up attd mini app version
bump up attd mini app version
4832f2d3afff8c5f21b3b6189824004b153e2a05
--- src/components/RosterWidget/RosterWidget.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React, { useCallback, useState } from 'react'; import { HubWidget, TeamHubWidgetProps, @@ -33,12 +33,12 @@ export const RosterWidget = (props: TeamHubWidgetProps) => { isPartialGetTeamsByStoreError || isPartialSupplyChainTeamsError; const [clickCount, setClickCount] = useState(0); - const handlePressButton = () => { + const handlePressButton = useCallback(() => { if (clickCount < 3) { setClickCount(clickCount + 1); onRefresh(); } - }; + }, [clickCount, onRefresh]); return ( <> <HubWidget --- src/components/ShiftSwitcherModal/ShiftSwitcherModal.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React, { useCallback, useState } from 'react'; import { View } from 'react-native'; import { ShiftSwitcherModalStyles as styles } from './styles'; import { ShiftType } from '../../common'; @@ -56,12 +56,12 @@ export const ShiftSwitcherModal = ({ }; const [clickCount, setClickCount] = useState(0); - const onWarningAlertPress = () => { + const onWarningAlertPress = useCallback(() => { if (clickCount < 3) { setClickCount(clickCount + 1); refetchShifts(); } - }; + }, [clickCount, refetchShifts]); return ( <View style={styles.container}> {partialSupplyChainShiftsError && ( --- src/screens/AllTeamsScreen/StoreAllTeamsScreen/StoreAllTeamsScreen.tsx @@ -215,14 +215,13 @@ export const StoreAllTeamsScreen = () => { } const [clickCount, setClickCount] = useState(0); - const onWarningAlertPress = () => { + const onWarningAlertPress = useCallback(() => { if (clickCount < 3) { setClickCount(clickCount + 1); onRefresh(); primaryTeamData.refetch(); - refetch(); } - }; + }, [clickCount, onRefresh, primaryTeamData.refetch]); return ( <> --- src/screens/AllTeamsScreen/SupplyChainAllTeamsScreen/SupplyChainAllTeamsScreen.tsx @@ -198,13 +198,13 @@ export const SupplyChainAllTeamsScreen = () => { const [clickCount, setClickCount] = useState(0); - const onWarningAlertPress = () => { + const onWarningAlertPress = useCallback(() => { if (clickCount < 3) { setClickCount(clickCount + 1); refetchRoster(); refetchSupplyChainTeams(); } - }; + }, [clickCount, refetchRoster, refetchSupplyChainTeams]); return ( <> <WarningBanner />
feat(ui): updated callbacks
feat(ui): updated callbacks
0a12ac57f9a9ba3f98b2edb5db1887f837057d45
--- __tests__/setup.js @@ -1,4 +1,3 @@ -require('react-native-gesture-handler/jestSetup'); jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter'); const { NativeModules } = require('react-native'); @@ -20,15 +19,6 @@ const { // Setup environment with Me@ dev variables AllsparkEnvironment.initialize({ env: 'dev', config: MeAtWalmartEnvironment }); -jest.mock('@react-navigation/native', () => { - const actualNav = jest.requireActual('@react-navigation/native'); - return { - ...actualNav, - useFocusEffect: () => jest.fn(), - useNavigation: jest.fn(), - }; -}); - jest.mock('react-native-reanimated', () => { const Reanimated = require('react-native-reanimated/mock'); @@ -38,16 +28,3 @@ jest.mock('react-native-reanimated', () => { }); jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper'); - -jest.mock('react-native-safe-area-context', () => { - const inset = { top: 0, right: 0, bottom: 0, left: 0 }; - return { - ...jest.requireActual('react-native-safe-area-context'), - SafeAreaProvider: jest.fn().mockImplementation(({ children }) => children), - SafeAreaConsumer: jest - .fn() - .mockImplementation(({ children }) => children(inset)), - SafeAreaView: jest.fn().mockImplementation(({ children }) => children), - useSafeAreaInsets: jest.fn().mockImplementation(() => inset), - }; -}); --- packages/allspark-foundation/__tests__/FeatureRunner/modals/__snapshots__/TranslationModal.test.tsx.snap @@ -7,16 +7,24 @@ exports[`TranslationModal should render snapshot 1`] = ` showCloseHandle={true} title="Choose your preferred language" > - <Radio - UNSAFE_style={ - { - "marginBottom": 16, - } + <SafeAreaView + edges={ + [ + "bottom", + ] } - checked={false} - label="English (EN)" - onPress={[Function]} - testID="English (EN)" - /> + > + <Radio + UNSAFE_style={ + { + "marginBottom": 16, + } + } + checked={false} + label="English (EN)" + onPress={[Function]} + testID="English (EN)" + /> + </SafeAreaView> </BottomSheet> `; --- packages/allspark-foundation/__tests__/FeatureRunner/screens/__snapshots__/SideMenu.test.tsx.snap @@ -1,7 +1,19 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`SideMenu.tsx should render snapshot 1`] = ` -[ +<SafeAreaView + edges={ + [ + "top", + "bottom", + ] + } + style={ + { + "flex": 1, + } + } +> <View style={ { @@ -28,7 +40,7 @@ exports[`SideMenu.tsx should render snapshot 1`] = ` > An AllsparkFeature can interact with the Drawer using 'AllsparkDrawer' from </Body> - </View>, + </View> <RCTScrollView showsVerticalScrollIndicator={false} testID="List" @@ -668,6 +680,6 @@ exports[`SideMenu.tsx should render snapshot 1`] = ` </View> </View> </View> - </RCTScrollView>, -] + </RCTScrollView> +</SafeAreaView> `; --- packages/allspark-foundation/__tests__/__mocks__/@react-navigation/native.js @@ -0,0 +1,13 @@ +const navigation = { + navigate: jest.fn(), + goBack: jest.fn(), + setOptions: jest.fn(), + replace: jest.fn(), +}; + +module.exports = { + ...jest.requireActual('@react-navigation/native'), + useNavigation: jest.fn(() => navigation), + useIsFocused: jest.fn(), + useFocusEffect: jest.fn((f) => f()), +}; --- packages/allspark-foundation/__tests__/__mocks__/react-native-safe-area-context.js @@ -0,0 +1,5 @@ +module.exports = { + SafeAreaView: 'SafeAreaView', + SafeAreaProvider: 'SafeAreaProvider', + useSafeAreaInsets: jest.fn(() => ({top: 0, bottom: 0, right: 0, left: 0})), +}; --- packages/me-at-walmart-container/src/navigation.ts @@ -4,12 +4,12 @@ import { colors } from '@walmart/gtp-shared-components'; const NavigationTheme = { dark: true, colors: { - primary: colors?.blue?.['100'], + primary: colors.blue['100'], background: 'rgb(242, 242, 242)', card: 'rgb(255, 255, 255)', text: 'rgb(28, 28, 30)', border: 'rgb(216, 216, 216)', - notification: colors?.yellow?.['100'], + notification: colors.yellow['100'], }, };
chore: modify unit test setup
chore: modify unit test setup
98e13206dc9f3ecf375b3338a0f0cb196b634325
--- src/containers/RosterFilters.tsx @@ -80,7 +80,7 @@ export const RosterFilters = (props: { <Chip id='absent'>{filters.absent} Absent</Chip> <Chip id='tardy'>{filters.tardy} Tardy</Chip> <Chip id='clockedIn'>{filters.clockedIn} Clocked in</Chip> - <Chip id='available'>{filters.available} Available to talk</Chip> + <Chip id='available'>{filters.available} Online</Chip> </ChipGroup> )} </View> --- src/containers/RosterFilters.tsx @@ -80,7 +80,7 @@ export const RosterFilters = (props: { <Chip id='absent'>{filters.absent} Absent</Chip> <Chip id='tardy'>{filters.tardy} Tardy</Chip> <Chip id='clockedIn'>{filters.clockedIn} Clocked in</Chip> - <Chip id='available'>{filters.available} Available to talk</Chip> + <Chip id='available'>{filters.available} Online</Chip> </ChipGroup> )} </View>
filter chip says online instead of available to talk
filter chip says online instead of available to talk
a1a637d3aa60981006b6681ed729009240a6fe0c
--- package-lock.json @@ -4366,9 +4366,9 @@ "integrity": "sha512-rt56lVXxfj0DWIjqUqn3oXpAlbe7YrOi6/c5hcGByaFe/f42qmPsesxWK3xkKOMsJ7LUXZz50aCb1+lHlv2kog==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.119", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.119.tgz", - "integrity": "sha512-jX0hqL5NhUTpjwrAUun1T0SarKEEeVs9uE2AaDpj9HQPZX8VsbX3iWSOgOkXewpQXoxMcseTmCohFQfNoynqWA==" + "version": "0.5.123", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.123.tgz", + "integrity": "sha512-W4X/45IxLWaKmfjIeCPMvWnr9V3xF0QC/fJAkDClFzUbBL3oxzZacIoQg/kqsS3PBZfqy5jB6cVsyxsjr4BlvQ==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -91,7 +91,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/payrollsolution_miniapp": "0.109.0", "@walmart/price-changes-mini-app": "1.2.1", - "@walmart/push-to-talk-mini-app": "0.5.119", + "@walmart/push-to-talk-mini-app": "0.5.123", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.28.0", "@walmart/react-native-shared-navigation": "^0.4.0",
including meganav change
including meganav change
02c6ae334dc59c0675a89c2e70bd7327b8ecd1c5
--- packages/celebration-mini-app-graphql/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.13.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.12.0...@walmart/celebration-mini-app-graphql@1.13.0) (2025-11-08) + +### Bug Fixes + +- **ui:** Celebration Screen fix for RN and LD updates ([3ec912e](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/3ec912eade1dabe703d3eddd58ac8b6115030277)) + +### Features + +- **ui:** update ax components ([c342acb](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/c342acb772a09093515b6850289512003042cd2e)) + # [1.12.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.11.0...@walmart/celebration-mini-app-graphql@1.12.0) (2025-11-06) ### Features --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.12.0", + "version": "1.13.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/celebration-mini-app/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.22.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.21.0...@walmart/celebration-mini-app@1.22.0) (2025-11-08) + +### Bug Fixes + +- **ui:** Celebration Screen fix for RN and LD updates ([3ec912e](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/3ec912eade1dabe703d3eddd58ac8b6115030277)) + +### Features + +- **ui:** update ax components ([c342acb](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/c342acb772a09093515b6850289512003042cd2e)) + # [1.21.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.20.0...@walmart/celebration-mini-app@1.21.0) (2025-11-06) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.21.0", + "version": "1.22.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.22.0 - @walmart/celebration-mini-app-graphql@1.13.0
ad6512e483648361b5ea70e23ce64bc4676c84f7
--- src/settings/timeclock/TimeClockSettings.tsx @@ -27,7 +27,7 @@ export const TimeClockSettings = () => { snackbar.addSnack({ message: t( `settings:timeClock:${`sound-${ - timeclock.hapticsOn ? 'on' : 'off' + nextValue ? 'on' : 'off' }`}:snackbarTitle`, ), });
verbiage fix
verbiage fix
b1a964297e903d388338b16dd8745b9666ce678f
--- .yarn/install-state.gz Binary files a/.yarn/install-state.gz and /dev/null differ
Removed .yarn/install-state.gz from tracking
Removed .yarn/install-state.gz from tracking
63b3c836e31cbca19aa8b0eed60985aa534fef30
--- src/screens/ViewTeamScreen.tsx @@ -18,7 +18,7 @@ import {Body} from '@walmart/gtp-shared-components'; const styles = StyleSheet.create({ associateRosterItemStyle: {marginHorizontal: 16, height: 100}, - viewTeamScreenContainer: {flex: 1, padding: 20}, + viewTeamScreenContainer: {flex: 1}, emptyState: { marginTop: 24, alignItems: 'center',
Update namespace
Update namespace
c1418832444dfa3d12b9abb7146bc7f079419bb5
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.28.0", + "version": "2.29.0", "main": "dist/index.js", "files": [ "dist"
Update the query to include the query params
Update the query to include the query params
fa5dfaf3265e38dfe675364c007ef72857667721
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.239.0-rc.4", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.239.0-rc.4.tgz", - "integrity": "sha512-PCp72S6siT3IX1wN1nlllMwcQkBXNWLvLl/P0gcBPkpNY3eCx+rZGGe37GcJ+pTzYad2+qGSwWFtLO/DMDHxRA==" + "version": "0.240.0-rc.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.240.0-rc.0.tgz", + "integrity": "sha512-uCX9dFrVTj0n3X9uPGtBbDeZOlrgBl6IiLbSrvj4VbmkizuKpFd3XHeAULmlq+eZjLw/GFdAHxUZ6y2fS9Yp9A==" }, "@walmart/time-clock-mini-app": { "version": "0.4.32", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.12.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", - "@walmart/taskit-mini-app": "0.239.0-rc.4", + "@walmart/taskit-mini-app": "0.240.0-rc.0", "@walmart/time-clock-mini-app": "0.4.32", "@walmart/ui-components": "1.3.0-rc.14", "@walmart/welcomeme-mini-app": "0.47.0",
upgrading taskit version
upgrading taskit version
8f45e396944fa059f9c452ac27d6fce0215067dc
--- env.beta.js @@ -1,6 +1,6 @@ // Environment Overrides for Beta export default { - env: 'prod', + env: 'beta', graphql: { url: 'https://developer.api.us.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', headers: {
fix: env name was wrong for beta
fix: env name was wrong for beta
d26aab36b8afa0c6a631579cda1f8b691075ce90
--- __tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -46,6 +46,22 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> + <Screen + component={[Function]} + name="taskit" + options={ + { + "cardOverlayEnabled": true, + "cardStyle": { + "backgroundColor": "rgba(0, 0, 0, 0)", + }, + "cardStyleInterpolator": [Function], + "gestureDirection": "vertical", + "headerShown": false, + "presentation": "transparentModal", + } + } + /> <Screen component={[Function]} name="myTeam" @@ -412,6 +428,22 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects } } /> + <Screen + component={[Function]} + name="taskit" + options={ + { + "cardOverlayEnabled": true, + "cardStyle": { + "backgroundColor": "rgba(0, 0, 0, 0)", + }, + "cardStyleInterpolator": [Function], + "gestureDirection": "vertical", + "headerShown": false, + "presentation": "transparentModal", + } + } + /> <Screen component={[Function]} name="myTeam" --- src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx @@ -38,7 +38,7 @@ import ReceivingRootApp from '@walmart/rn-receiving-mini-app'; import ShelfAvailabilityFeature from '@walmart/shelfavailability-mini-app'; import GNFRApp from '@walmart/shop-gnfr-mini-app'; import StoreFeatureOrder from '@walmart/store-feature-orders'; -import {TaskItQuickActions, AlarmDetailNav} from '@walmart/taskit-mini-app'; +import {TaskItQuickActions, AlarmDetailNav, TaskItMiniApp} from '@walmart/taskit-mini-app'; import TopstockFeature from '@walmart/topstock-mini-app'; import {WmPlusMiniApp} from '@walmart/wm-plus-mini-app'; import TranslatorFeature from '@walmart/translator-mini-app'; @@ -96,6 +96,17 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [ }, clockCheckEnabled: true, }, + { + featureId: MINI_APPS.TASKIT, + name: 'taskit', + component: TaskItMiniApp, + options: { + gestureDirection: 'vertical', + presentation: 'transparentModal', + ...ModalTransitionOptions, + }, + clockCheckEnabled: true, + }, // TODO: Help texting make changes so this can be removed. { featureId: MINI_APPS.MYTEAM,
feat: navigation fixes
feat: navigation fixes
e25064c06a03567b27a8094e59c1f1f4deada3ec
--- package-lock.json @@ -47,7 +47,7 @@ "@walmart/calling-mini-app": "0.1.8", "@walmart/compass-sdk-rn": "5.18.15", "@walmart/config-components": "4.2.16", - "@walmart/copilot-mini-app": "3.57.0", + "@walmart/copilot-mini-app": "3.57.3", "@walmart/core-services": "~2.3.0", "@walmart/core-services-allspark": "~2.13.5", "@walmart/core-utils": "~2.0.5", @@ -8720,9 +8720,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "3.57.0", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.57.0.tgz", - "integrity": "sha512-A09BwwXLStW4LW5nCrHAl4SgmHGjrKG8eb6EB2KQzjk/1mdR0xqLgyXLg+oW9ewy0+UCtRuPYnPLqCG6w39ypA==", + "version": "3.57.3", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.57.3.tgz", + "integrity": "sha512-ZSi2yVN5OCe/WX30nKRfLddrVJYidkOVT0xrQnWRWKqubKdvswbQEYmXC45alSuJ0fT+hqsTMOdmAAHzvVkTwg==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -33337,9 +33337,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "3.57.0", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.57.0.tgz", - "integrity": "sha512-A09BwwXLStW4LW5nCrHAl4SgmHGjrKG8eb6EB2KQzjk/1mdR0xqLgyXLg+oW9ewy0+UCtRuPYnPLqCG6w39ypA==" + "version": "3.57.3", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-3.57.3.tgz", + "integrity": "sha512-ZSi2yVN5OCe/WX30nKRfLddrVJYidkOVT0xrQnWRWKqubKdvswbQEYmXC45alSuJ0fT+hqsTMOdmAAHzvVkTwg==" }, "@walmart/core-services": { "version": "2.3.2", --- package.json @@ -88,7 +88,7 @@ "@walmart/calling-mini-app": "0.1.8", "@walmart/compass-sdk-rn": "5.18.15", "@walmart/config-components": "4.2.16", - "@walmart/copilot-mini-app": "3.57.0", + "@walmart/copilot-mini-app": "3.57.3", "@walmart/core-services": "~2.3.0", "@walmart/core-services-allspark": "~2.13.5", "@walmart/core-utils": "~2.0.5",
chore: bump copilot@3.57.3
chore: bump copilot@3.57.3
3fd756d17c67b33810a0be848faefe0fe7856c8e
--- __tests__/components/RosterWidget.test.tsx @@ -132,13 +132,19 @@ describe('RosterWidget', () => { } as unknown as SupplyChainTeamsByBusinessUnitQueryResult); jest - .spyOn(hooks, 'useSupplyChainShifts') - // @ts-ignore - .mockReturnValue({ - ...mockGetSupplyChainShiftsQuery.result, - loading: false, - error: undefined, - refetch: jest.fn(), +if (hooks.useSupplyChainShifts) { + jest + .spyOn(hooks, 'useSupplyChainShifts') + // @ts-ignore + .mockReturnValue({ + ...mockGetSupplyChainShiftsQuery.result, + loading: false, + error: undefined, + refetch: jest.fn(), + }); +} else { + throw new Error('useSupplyChainShifts function does not exist on hooks object'); +} }); // Mock useSelector for isSiteDC
Update __tests__/components/RosterWidget.test.tsx
Update __tests__/components/RosterWidget.test.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com>
6de4aa3dca9afe1187f654dce31532d34e35228e
--- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -21,6 +21,7 @@ import { ContainerActionCreators } from './redux'; import { AllsparkServiceGuard } from './services'; import { DEFAULT_STATUSBAR_PROPS } from './constants'; import { AllsparkContainerConfig, ContainerProviderProps } from './types'; +import { LifecylceEventManager } from './events'; /** * @description Creates an Allspark Container. @@ -72,6 +73,7 @@ export class AllsparkContainer<E extends IAllsparkEnvironment> { AllsparkReduxStore.dispatch( ContainerActionCreators.SET_CONTAINER(this.id) ); + LifecylceEventManager.runEvent('onContainerMount', undefined); }, []); return (
fix: add lifecycle container mount call in container provider
fix: add lifecycle container mount call in container provider
9680d37394f37ee1a47cb65f91c3ede387b7b310
--- ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision Binary files a/ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision and b/ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision differ
update provision profile with 2024 cert
update provision profile with 2024 cert
609410ffc3c7b7c4de5fc32691eec5c9aa2e23e6
--- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.19.0", + "version": "1.20.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.19.0", + "version": "1.20.0", "hasInstallScript": true, "dependencies": { "@react-native-async-storage/async-storage": "~1.21.0", @@ -96,7 +96,7 @@ "@walmart/returns-mini-app": "3.13.0", "@walmart/roster-mini-app": "1.0.20", "@walmart/schedule-mini-app": "0.93.0", - "@walmart/shelfavailability-mini-app": "1.5.20", + "@walmart/shelfavailability-mini-app": "1.5.23", "@walmart/store-feature-orders": "1.26.5", "@walmart/taskit-mini-app": "2.57.6", "@walmart/time-clock-mini-app": "2.338.1", @@ -12277,9 +12277,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/shelfavailability-mini-app": { - "version": "1.5.20", - "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-1.5.20.tgz", - "integrity": "sha512-4yxCmn2SRjzS3AT+THv8r9UXWdr8sve7XOVsfyIhezT1WDEO8ReRw4T0rEJ3Y5u630NOgNrqhBg+BqIc3pOhJg==", + "version": "1.5.23", + "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-1.5.23.tgz", + "integrity": "sha512-ka6g/0nntPtWmQySraeiO4tK+LIYFZmDjSXJA0xX8PB3zag4EnaoTCn6NbbvVYG8/r7wDJIxuG6QHAbXjEW3Ag==", "peerDependencies": { "@react-native-community/eslint-config": "^2.0.0", "@react-native-community/masked-view": "^0.1.10", @@ -12291,6 +12291,7 @@ "@react-native-firebase/perf": "15.1.1", "@react-navigation/native": "^6.0.0", "@react-navigation/stack": "^6.1.0", + "@walmart/allspark-foundation": ">=5.0.0", "@walmart/allspark-utils": ">=1.6.5", "@walmart/gtp-shared-components": ">=2.0.10", "@walmart/impersonation-mini-app": "1.4.0", --- package.json @@ -137,7 +137,7 @@ "@walmart/returns-mini-app": "3.13.0", "@walmart/roster-mini-app": "1.0.20", "@walmart/schedule-mini-app": "0.93.0", - "@walmart/shelfavailability-mini-app": "1.5.20", + "@walmart/shelfavailability-mini-app": "1.5.23", "@walmart/store-feature-orders": "1.26.5", "@walmart/taskit-mini-app": "2.57.6", "@walmart/time-clock-mini-app": "2.338.1", @@ -393,7 +393,7 @@ "@walmart/redux-store": "6.0.0", "@walmart/returns-mini-app": "3.13.0", "@walmart/schedule-mini-app": "0.93.0", - "@walmart/shelfavailability-mini-app": "1.5.20", + "@walmart/shelfavailability-mini-app": "1.5.23", "@walmart/store-feature-orders": "1.26.5", "@walmart/taskit-mini-app": "2.57.6", "@walmart/time-clock-mini-app": "2.338.1",
updated shelf availability version
updated shelf availability version
68cd675c16eca01e6a42a996b64dda564b5a148c
--- package.json @@ -111,7 +111,7 @@ "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.11.3", "@walmart/inbox-mini-app": "0.94.6", - "@walmart/iteminfo-mini-app": "7.13.2", + "@walmart/iteminfo-mini-app": "7.15.9", "@walmart/learning-mini-app": "20.0.23", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.1.4", --- yarn.lock @@ -6293,11 +6293,12 @@ __metadata: languageName: node linkType: hard -"@walmart/iteminfo-mini-app@npm:7.13.2": - version: 7.13.2 - resolution: "@walmart/iteminfo-mini-app@npm:7.13.2" +"@walmart/iteminfo-mini-app@npm:7.15.9": + version: 7.15.9 + resolution: "@walmart/iteminfo-mini-app@npm:7.15.9" peerDependencies: "@apollo/client": ^3.7.3 + "@react-native-community/art": 1.2.0 "@react-navigation/drawer": ">=6.3.0" "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.1.0" @@ -6317,14 +6318,14 @@ __metadata: "@walmart/redux-store": ">=3.5.0" "@walmart/ui-components": ">=1.15.1" dayjs: ">=1.11.5" - expo: ^49.0.0 + expo: ^50.0.0 expo-linear-gradient: ^12.7.2 lodash: ">=4.17.21" react: ">=18.2.0" - react-native: ">=0.72.6" + react-native: 0.73.8 react-native-barcode-builder: ">=2.0.0" react-native-device-info: ">=10.3.0" - react-native-gesture-handler: ">=2.13.1" + react-native-gesture-handler: ">=2.14.0" react-native-permissions: ">=3.6.1" react-native-qrcode-svg: ">=6.1.2" react-native-safe-area-context: ">=4.7.2" @@ -6338,7 +6339,7 @@ __metadata: reselect: ">=4.1.0" uuid: ">=3.3.2" victory-native: ">=36.5.0" - checksum: 10c0/85bbf709bcfc70af1aaed1873b2023299c6cc5cb88c01c71c8d75fc873edef11fe0ab48273825b8c10123c6b0e3030d10d94f2ef15f2354954aa7f1d3ba25225 + checksum: 10c0/ad06c10b87884a3b31a4af5bc574b0ddc5d247a2d5a5231525efee7c91f4aabe0afb72da02d96d62c8ab2334989b058f110248d7f9858f892c9cf4dc203aaf39 languageName: node linkType: hard @@ -7826,7 +7827,7 @@ __metadata: "@walmart/impersonation-mini-app": "npm:1.20.8" "@walmart/ims-print-services-ui": "npm:2.11.3" "@walmart/inbox-mini-app": "npm:0.94.6" - "@walmart/iteminfo-mini-app": "npm:7.13.2" + "@walmart/iteminfo-mini-app": "npm:7.15.9" "@walmart/learning-mini-app": "npm:20.0.23" "@walmart/manager-approvals-miniapp": "npm:0.2.4" "@walmart/me-at-walmart-athena-queries": "npm:6.1.4"
Chore item-info@7.15.9 update
Chore item-info@7.15.9 update
db46b376b86a671704aba49cb6ef55e1d48bf87f
--- package-lock.json @@ -47,7 +47,7 @@ "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.4.2", "@walmart/facilities-management-miniapp": "0.6.42", - "@walmart/feedback-all-spark-miniapp": "0.9.39", + "@walmart/feedback-all-spark-miniapp": "0.9.40", "@walmart/financial-wellbeing-feature-app": "1.8.1", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", @@ -5164,9 +5164,9 @@ } }, "node_modules/@walmart/feedback-all-spark-miniapp": { - "version": "0.9.39", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.39.tgz", - "integrity": "sha512-nUpYKCiKuYD7u268qh60wiBkYh+hFTe3aECmAhq/QrCFMtlXeiIIE8S3s5idGnRipXqO9OeqXSaLnTfiW+qFiQ==", + "version": "0.9.40", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.40.tgz", + "integrity": "sha512-+0NvFBHAKpIVTxZWLrQRk/O8o5s2ICxMrFBArzdJmPaXTCVJ8JrXuyOqITBtq9KCjCKnPfymO/BR92f/9VH+8w==", "dependencies": { "react-native-image-crop-picker": "^0.38.1", "react-native-keyboard-aware-scroll-view": "^0.9.5" @@ -25205,9 +25205,9 @@ "version": "0.6.42" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.9.39", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.39.tgz", - "integrity": "sha512-nUpYKCiKuYD7u268qh60wiBkYh+hFTe3aECmAhq/QrCFMtlXeiIIE8S3s5idGnRipXqO9OeqXSaLnTfiW+qFiQ==", + "version": "0.9.40", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.40.tgz", + "integrity": "sha512-+0NvFBHAKpIVTxZWLrQRk/O8o5s2ICxMrFBArzdJmPaXTCVJ8JrXuyOqITBtq9KCjCKnPfymO/BR92f/9VH+8w==", "requires": { "react-native-image-crop-picker": "^0.38.1", "react-native-keyboard-aware-scroll-view": "^0.9.5" --- package.json @@ -89,7 +89,7 @@ "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.4.2", "@walmart/facilities-management-miniapp": "0.6.42", - "@walmart/feedback-all-spark-miniapp": "0.9.39", + "@walmart/feedback-all-spark-miniapp": "0.9.40", "@walmart/financial-wellbeing-feature-app": "1.8.1", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16",
feedabck mini version bump
feedabck mini version bump
3a5a46a0d9f4f520f0c82cf19fdab0f626d22190
--- android/app/src/main/assets/fonts/icomoon.ttf Binary files a/android/app/src/main/assets/fonts/icomoon.ttf and b/android/app/src/main/assets/fonts/icomoon.ttf differ --- ios/icomoon.ttf Binary files a/ios/icomoon.ttf and b/ios/icomoon.ttf differ --- package-lock.json @@ -3269,9 +3269,9 @@ } }, "@walmart/ui-components": { - "version": "1.1.30", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.30.tgz", - "integrity": "sha512-d9zAGkG9Qh0GwvLMP5d+DNyUa3st6dmhqFCldEFiUlIWfVgAHqgxH1T4g9y+hGr88myBaziqxBEY1Gv6yuWI9w==", + "version": "1.1.32", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.32.tgz", + "integrity": "sha512-Abtz9vfDDoS9sLKqgA19PS4aTEGfcOo+H0rb39GggX9GjxOrhmENW3IJiHcymNtZnX6IEXbthbP65SjK2qbwtQ==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -87,7 +87,7 @@ "@walmart/schedule-mini-app": "0.2.76", "@walmart/settings-mini-app": "1.2.3", "@walmart/time-clock-mini-app": "0.3.4", - "@walmart/ui-components": "1.1.30", + "@walmart/ui-components": "1.1.32", "@walmart/welcomeme-mini-app": "0.24.2", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
SSMO-1507
SSMO-1507
8ba1d7883754f8ae2b55e9cd4fddb727c0b08845
--- src/hooks/roster.ts @@ -103,7 +103,7 @@ export const useDailyRoster = (shouldSkipQuery: boolean = false) => { handleOnError("useGetDailyRosterQuery", err, () => { logger.error("useGetDailyRosterQuery error", { message: `error in fetching useGetDailyRosterQuery: ${JSON.stringify( - response?.error + err?.message )}`, }); setError(err);
feat(ui): updated err
feat(ui): updated err
94895823e3ae7fce324c76dd4a980e1ea8b73558
--- .husky/pre-commit @@ -1,3 +1,22 @@ -#! /bin/env bash +#!/bin/sh -npm run test && npm run lint +# Run tests with coverage threshold validation +echo "🧪 Running tests with coverage validation..." +yarn test + +if [ $? -ne 0 ]; then + echo "❌ Tests failed or coverage threshold not met. Commit aborted." + exit 1 +fi + +# Check Prettier formatting +echo "💅 Checking Prettier formatting..." +yarn prettier --check . + +if [ $? -ne 0 ]; then + echo "❌ Code is not formatted according to .prettierrc config." + echo "Run 'yarn prettier --write .' to fix formatting issues." + exit 1 +fi + +echo "✅ All pre-commit checks passed!"
feat(ui): setup husky precommit #SMDV-8175
feat(ui): setup husky precommit #SMDV-8175
835a3f5a090648154a27635f354cd664e94c1da6
--- saucelabs/.looper-native-common-saucelabs.yml @@ -10,7 +10,7 @@ envs: TARGET_SIMULATOR_OS: "15.0" RCT_NO_LAUNCH_PACKAGER: true PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true - KEYCHAIN_PW: "%{credentials.secret('ios-sign-keychain-pw')}" + KEYCHAIN_PW: "%{credentials.secret('ios-sign-v2-keychain-pw')}" KEYCHAIN_NAME: "enterprise-app-signing.keychain-db" XCODE_CONFIG: 'Release' PROVISIONING_PROFILE: ./BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision
Updated Keychain Password in Native common looper yml used for Saucelabs
Updated Keychain Password in Native common looper yml used for Saucelabs
8d7c462e0202b41254a2df9e969d6cd9b959ea36
--- packages/celebration-mini-app-graphql/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.10.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.9.3...@walmart/celebration-mini-app-graphql@1.10.0) (2025-11-04) + +### Features + +- **ui:** resolve merge conflicts ([44214b9](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/44214b9eed3a8500565224ae9ded3932475b7b0b)) +- **ui:** resolve merge conflicts ([7d85188](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/7d851885f396779a87f012866b3b83e098af0694)) + ## [1.9.3](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app-graphql@1.9.2...@walmart/celebration-mini-app-graphql@1.9.3) (2025-11-03) **Note:** Version bump only for package @walmart/celebration-mini-app-graphql --- packages/celebration-mini-app-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app-graphql", - "version": "1.9.3", + "version": "1.10.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/celebration-mini-app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.18.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.17.0...@walmart/celebration-mini-app@1.18.0) (2025-11-04) + +### Features + +- **ui:** resolve merge conflicts ([7d85188](https://gecgithub01.walmart.com/smdv/celebration-mini-app/commit/7d851885f396779a87f012866b3b83e098af0694)) + # [1.17.0](https://gecgithub01.walmart.com/smdv/celebration-mini-app/compare/@walmart/celebration-mini-app@1.16.0...@walmart/celebration-mini-app@1.17.0) (2025-11-03) ### Features --- packages/celebration-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/celebration-mini-app", - "version": "1.17.0", + "version": "1.18.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18"
chore(version): updating package version
chore(version): updating package version - @walmart/celebration-mini-app@1.18.0 - @walmart/celebration-mini-app-graphql@1.10.0
239b524e073e2826b5e512e28d16d715d491a2aa
--- package-lock.json @@ -5497,9 +5497,9 @@ "integrity": "sha512-vGHNXjipnOEdJaASi+EQjTr0YeBNJ2/8Az1pRWzi72gPKh3LfBWidMwrN7CzOCNNuXirVuRVP9zyfTscyQN6pw==" }, "@walmart/emergency-mini-app": { - "version": "1.4.0", - "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.4.0.tgz", - "integrity": "sha512-QCZcTpW6MIYt5QCNYWul2k4wNTQxpUpleeCWPNNYDHznp4k0fJqi8ZT+c5aV3DtkvyAWOk5LG/KY/N5zKX6jbQ==", + "version": "1.5.0", + "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.5.0.tgz", + "integrity": "sha512-1wd5x2U8lnENH+YLJU90H8Tq1xVoHorLBo9vn6OEzKFm6ol3nEY0GjROdD8RMereBLJ9k3tbl8wNRDGTS49qgg==", "requires": { "@walmart/core-widget-registry": "^0.6.6" }, --- package.json @@ -86,7 +86,7 @@ "@walmart/core-utils": "~1.0.10", "@walmart/core-widget-registry": "0.5.7", "@walmart/counts-component-miniapp": "0.0.39", - "@walmart/emergency-mini-app": "1.4.0", + "@walmart/emergency-mini-app": "1.5.0", "@walmart/exception-mini-app": "0.43.1", "@walmart/facilities-management-miniapp": "0.3.26", "@walmart/feedback-all-spark-miniapp": "0.8.0",
adding emergency for impersonation
adding emergency for impersonation
158052d223b6d3886b6205e5b21eb990d0951262
--- src/utils/user.ts @@ -6,7 +6,7 @@ import {isNil} from 'lodash'; import {GetAssociateNameQuery} from '../queries/getAssociateName'; import {Associate} from '../types'; -const OBFUSCATION_KEY = 'roster-mini-app'; +const OBFUSCATION_KEY = 'texting-mini-app'; //Do not change this const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0'); export const encryptUserId = (userId: string) =>
Update selctors
Update selctors
37f17404c7cce29ed716fab751c357fe596c601b
--- src/components/TeamList.tsx @@ -200,6 +200,7 @@ const TeamItem = (props: { const onViewTeam = () => { analytics('viewteam', { + message: 'navigate to the view team page', teamName: team?.teamName, teamID: teamId, workgroup: team?.workgroup, @@ -302,6 +303,7 @@ const StoreTeamItem = (props: { const translationContext = useSiteTranslationContext(); const onViewTeam = () => { analytics('viewteam', { + message: 'navigate to the view team page for total store', teamName: 'Total Store', teamID: 'TOTAL_STORE', }); @@ -481,6 +483,7 @@ export const TeamChatCard = (props: { i18nLabel: t('rosterScreen.associateRosterItem.messageBtn'), action(team) { analytics('team_messagebtn', { + message: 'navigate to messaging screen for a team', teamName: team?.teamName, teamID: team?.teamId, workgroupID: team?.workgroupId, @@ -500,6 +503,7 @@ export const TeamChatCard = (props: { i18nLabel: t('rosterScreen.associateRosterItem.messageBtn'), action() { analytics('team_messagebtn', { + message: 'navigate to messaging screen for a team', teamName: 'TOTAL STORE', teamID: 'TOTAL_STORE', }); --- src/containers/RosterFilters.tsx @@ -75,6 +75,7 @@ export const RosterFilters = (props: { selectedFilter.current = filterValue; analytics('filter_press', { + message: 'roster filter pressed', filterName: filterValue, }); --- src/screens/RosterScreen.tsx @@ -26,6 +26,7 @@ export const RosterScreen: React.FC<any> = () => { i18nLabel: t('rosterScreen.associateRosterItem.messageBtn'), action(data) { analytics('associate_messagebtn', { + message: 'Navigate to messaging screen for an associate', participants: data, }); navigateToMessageScreen(storeId, data);
adding messages for analytics events
adding messages for analytics events