commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
47d09cfd9794103e429a5f18599107da6a8fd6b9
--- .looper-pr.yml @@ -7,7 +7,7 @@ envs: STAGES_TO_RUN: LINT: false UNITTEST: false - BUILD: false + BUILD: true SONAR_SCAN: false ARTIFACT_PUBLISH: true AUTO_PR_MONO: false
fix(ci): build enable SSMP-1188
fix(ci): build enable SSMP-1188
e1e6fa0599f5824d1e6cda39019357f423ad6167
--- package-lock.json @@ -1872,9 +1872,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.5.2", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.5.2.tgz", - "integrity": "sha512-n8ETcFz6oNTW9ah+bGjvB+jSWQcNJFUshCGfYffCWRhIj5uVhtXd+Cvik7mV6L1F0x+yHKBY22ctFcQ+xgWIDQ==", + "version": "0.6.1", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.1.tgz", + "integrity": "sha512-7o+FgVv7lMvRANIr7cI6HsKi1r0dJ63YAFYWmRlziysqPsaJkN5TFKun2IHHV421UwYNRtVueZHLReB8lUIAew==", "requires": { "@babel/preset-typescript": "^7.10.4", "apisauce": "^1.1.2", --- package.json @@ -37,7 +37,7 @@ "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": "^4.14.159", "@walmart/allspark-home-mini-app": "0.0.7", - "@walmart/ask-sam-mini-app": "^0.5.2", + "@walmart/ask-sam-mini-app": "^0.6.1", "@walmart/config-components": "^1.0.4", "@walmart/functional-components": "^1.0.21", "@walmart/gtp-shared-components": "^0.2.1", @@ -120,7 +120,8 @@ "!<rootDir>/src/home/testApiCall.ts" ], "coverageReporters": [ - "lcov", "text" + "lcov", + "text" ], "testResultsProcessor": "jest-sonar-reporter", "coverageThreshold": {
Increment ask sam version
Increment ask sam version
e382555f41d0f47d6c751071d88171ec931b16ab
--- package-lock.json @@ -63,7 +63,7 @@ "@walmart/iteminfo-mini-app": "7.4.0", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", - "@walmart/metrics-mini-app": "0.15.1", + "@walmart/metrics-mini-app": "0.15.3", "@walmart/mod-flex-mini-app": "1.10.4", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16", @@ -7622,9 +7622,9 @@ } }, "node_modules/@walmart/metrics-mini-app": { - "version": "0.15.1", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.1.tgz", - "integrity": "sha512-Rulal6v4VUTgFRUIvm7f9PhJluW0EO2nUc2NZ4tEyCXbdPyIhF/US4cz+5naDmvR1dE3gcJzMfIRpaGHkZIc/Q==", + "version": "0.15.3", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.3.tgz", + "integrity": "sha512-tUdGjAg9xoVFTSoYcytToHaOAJ6n1qRQJ/AkX3fokLCy8Ng9fM8TVMxwrXWKWYH9n+cfae+CUszy8YLpU28rxw==", "dependencies": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", @@ -30575,9 +30575,9 @@ "integrity": "sha512-JvV5AUWQ51uTUyD3LNk0UD8W5nQjUTRnMdJMvh2x3OHmKAhqTGctHoKjcpBzrtZlBie6e6Az3CUWtPrcA2TZwA==" }, "@walmart/metrics-mini-app": { - "version": "0.15.1", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.1.tgz", - "integrity": "sha512-Rulal6v4VUTgFRUIvm7f9PhJluW0EO2nUc2NZ4tEyCXbdPyIhF/US4cz+5naDmvR1dE3gcJzMfIRpaGHkZIc/Q==", + "version": "0.15.3", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.15.3.tgz", + "integrity": "sha512-tUdGjAg9xoVFTSoYcytToHaOAJ6n1qRQJ/AkX3fokLCy8Ng9fM8TVMxwrXWKWYH9n+cfae+CUszy8YLpU28rxw==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "1.1.2", --- package.json @@ -104,7 +104,7 @@ "@walmart/iteminfo-mini-app": "7.4.0", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "13.0.3", - "@walmart/metrics-mini-app": "0.15.1", + "@walmart/metrics-mini-app": "0.15.3", "@walmart/mod-flex-mini-app": "1.10.4", "@walmart/moment-walmart": "1.0.4", "@walmart/onewalmart-miniapp": "1.0.16",
metrics version bump
metrics version bump
71de2ffce2ed6ba4d1f39a4fd3003a5d0b948556
--- __tests__/__mocks__/@walmart/ItemInfo.js @@ -0,0 +1,4 @@ +module.exports = { + ItemInfoMiniApp: 'ItemInfoMiniApp', + }; + \ No newline at end of file --- __tests__/navigation/AssociateHallwayNav/__snapshots__/SideMenuContentTest.tsx.snap @@ -27,6 +27,16 @@ exports[`SideMenuContent matches snapshot for undefined user info, and can imper "menuType": "SUBMENU", "title": "menu.settings", }, + Object { + "action": Object { + "type": "NAVIGATE", + "value": "itemInfo", + }, + "enabled": true, + "icon": "barcode", + "menuType": "SUBMENU", + "title": "menu.itemInfo", + }, Object { "action": Object { "type": "NAVIGATE", --- __tests__/navigation/AssociateHallwayNav/__snapshots__/indexTest.tsx.snap @@ -141,6 +141,15 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` } } /> + <Screen + component="ItemInfoMiniApp" + name="itemInfo" + options={ + Object { + "headerShown": false, + } + } + /> <Screen component="HealthSurveyMiniApp" name="HealthSurveyNav" @@ -353,6 +362,15 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] } } /> + <Screen + component="ItemInfoMiniApp" + name="itemInfo" + options={ + Object { + "headerShown": false, + } + } + /> <Screen component="HealthSurveyMiniApp" name="HealthSurveyNav" --- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -58,7 +58,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps< { menuType: 'SUBMENU', icon: 'barcode', - title: translate('menu.itemInfo'), + title: translate('menu.itemInfo'), enabled: true, action: { type: 'NAVIGATE', --- src/navigation/AssociateHallwayNav/index.tsx @@ -14,7 +14,7 @@ import { import {ScheduleMiniApp} from '@walmart/schedule-mini-app'; import {HealthSurveyMiniApp} from '@walmart/allspark-health-survey-mini-app'; import SettingsMiniApp from '@walmart/settings-mini-app'; -import { ItemInfoMiniApp } from '@walmart/ItemInfo'; +import {ItemInfoMiniApp} from '@walmart/ItemInfo'; import ImpersonationMiniApp from '@walmart/impersonation-mini-app'; import {Components, Properties} from '@walmart/push-to-talk-mini-app'; import {FeedbackMiniApp} from '@walmart/feedback-all-spark-miniapp'; --- src/translations/en-US.ts @@ -37,7 +37,7 @@ export const enUS = { feedback: 'Give feedback', whatsNew: "What's new", signOutText: 'Sign out', - itemInfo: 'Item information' + itemInfo: 'Item information', }, welcome: { associateTitle: 'Hello Associates!', --- src/translations/es-MX.ts @@ -37,7 +37,7 @@ export const esMX = { feedback: 'Dar opinión', whatsNew: 'Novedades en la app', signOutText: 'Cerrar sesión', - itemInfo: 'Item information' + itemInfo: 'Item information', }, welcome: { associateTitle: 'Hola Asociados!',
linter
linter
646193a149a465f9d9a12c05a5483b84860da13f
--- graphql.yml @@ -61,30 +61,31 @@ applications: tags: - 'v2' - 'Drop16' - - name: 'prod' - persistedQueries: - - name: 'GetAssociateClockStatus' - hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' - queryTemplate: 'src/queries/getAssociateClockStatus.graphql' - tags: - - 'v1' - - name: 'GetAssociateName' - hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' - queryTemplate: 'src/queries/getAssociateName.graphql' - tags: - - 'v1' - - name: 'GetDailyRoster' - hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' - queryTemplate: 'src/queries/getDailyRoster.graphql' - tags: - - 'v3' - - 'Drop14' - - name: 'GetTeamById' - queryTemplate: 'src/queries/getTeamById.graphql' - tags: - - 'v1' - - name: 'GetTeamsByStore' - queryTemplate: 'src/queries/getTeamsbyStore.graphql' - tags: - - 'v2' - - 'Drop16' +# - name: 'prod' +# persistedQueries: +# - name: 'GetAssociateClockStatus' +# hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' +# queryTemplate: 'src/queries/getAssociateClockStatus.graphql' +# tags: +# - 'v1' +# - name: 'GetAssociateName' +# hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' +# queryTemplate: 'src/queries/getAssociateName.graphql' +# tags: +# - 'v1' +# - name: 'GetDailyRoster' +# hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' +# queryTemplate: 'src/queries/getDailyRoster.graphql' +# tags: +# - 'v3' +# - 'Drop14' +# - name: 'GetTeamById' +# queryTemplate: 'src/queries/getTeamById.graphql' +# tags: +# - 'v2' +# - 'Drop16' +# - name: 'GetTeamsByStore' +# queryTemplate: 'src/queries/getTeamsbyStore.graphql' +# tags: +# - 'v2' +# - 'Drop16' --- graphql.yml @@ -61,30 +61,31 @@ applications: tags: - 'v2' - 'Drop16' - - name: 'prod' - persistedQueries: - - name: 'GetAssociateClockStatus' - hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' - queryTemplate: 'src/queries/getAssociateClockStatus.graphql' - tags: - - 'v1' - - name: 'GetAssociateName' - hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' - queryTemplate: 'src/queries/getAssociateName.graphql' - tags: - - 'v1' - - name: 'GetDailyRoster' - hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' - queryTemplate: 'src/queries/getDailyRoster.graphql' - tags: - - 'v3' - - 'Drop14' - - name: 'GetTeamById' - queryTemplate: 'src/queries/getTeamById.graphql' - tags: - - 'v1' - - name: 'GetTeamsByStore' - queryTemplate: 'src/queries/getTeamsbyStore.graphql' - tags: - - 'v2' - - 'Drop16' +# - name: 'prod' +# persistedQueries: +# - name: 'GetAssociateClockStatus' +# hash: 'b4080db4f80721f28469fdce6584ae8afe567ee4c200d77b6889912ec1c0d214' +# queryTemplate: 'src/queries/getAssociateClockStatus.graphql' +# tags: +# - 'v1' +# - name: 'GetAssociateName' +# hash: 'f82efac63c0d36b80c7bc2a20ea4dfd6d8f970491fb373e8e0c61764dea2360f' +# queryTemplate: 'src/queries/getAssociateName.graphql' +# tags: +# - 'v1' +# - name: 'GetDailyRoster' +# hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' +# queryTemplate: 'src/queries/getDailyRoster.graphql' +# tags: +# - 'v3' +# - 'Drop14' +# - name: 'GetTeamById' +# queryTemplate: 'src/queries/getTeamById.graphql' +# tags: +# - 'v2' +# - 'Drop16' +# - name: 'GetTeamsByStore' +# queryTemplate: 'src/queries/getTeamsbyStore.graphql' +# tags: +# - 'v2' +# - 'Drop16'
comment out prod
comment out prod
e663f224f68177bbbc4c865a30ce74108eb5397c
--- package-lock.json @@ -4664,9 +4664,9 @@ "integrity": "sha512-x0n2tEbTwVe6Xn7KxnslCa8y2I+f6KG6hkhQiNAcZu17Bitwf/Kddoz/9h8Pn5guehnqYVB2oXHoMwMvmr0u0A==" }, "@walmart/functional-components": { - "version": "2.0.3", - "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-2.0.3.tgz", - "integrity": "sha512-t+LERNcgMb4Eyfpz+6WxurN1rY4eI/4ZItFD5oR2U3+/kd6miMk3zTUb+ZCwAZJpDcuSk8EutR092h4BXMJ4yQ==" + "version": "2.0.5", + "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-2.0.5.tgz", + "integrity": "sha512-8Zzb8eMFsD+mnCLleUR4wCgt/Tl1TjM6EvcWJlGu8beOHN6t/GB8nFdruzt9gksVCX3T27MafTf1yECyrhtJ7Q==" }, "@walmart/gta-react-native-calendars": { "version": "0.0.15", --- package.json @@ -81,7 +81,7 @@ "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.41.1", "@walmart/feedback-all-spark-miniapp": "0.3.8", - "@walmart/functional-components": "2.0.3", + "@walmart/functional-components": "2.0.5", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.6.0", "@walmart/impersonation-mini-app": "1.1.0",
bumping functional components for fixes
bumping functional components for fixes
50d920480580b3eafcdfcda6076455496131dc5b
--- package.json @@ -140,7 +140,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/react-native-webex-sdk": "0.8.50", - "@walmart/receipt-check-miniapp": "1.30.2", + "@walmart/receipt-check-miniapp": "1.31.0", "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.17.0", "@walmart/rfid-scan-mini-app": "2.10.4", --- yarn.lock @@ -7472,7 +7472,7 @@ __metadata: "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/react-native-webex-sdk": "npm:0.8.50" - "@walmart/receipt-check-miniapp": "npm:1.30.2" + "@walmart/receipt-check-miniapp": "npm:1.31.0" "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.17.0" "@walmart/rfid-scan-mini-app": "npm:2.10.4" @@ -8014,9 +8014,9 @@ __metadata: languageName: node linkType: hard -"@walmart/receipt-check-miniapp@npm:1.30.2": - version: 1.30.2 - resolution: "@walmart/receipt-check-miniapp@npm:1.30.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freceipt-check-miniapp%2F-%2F%40walmart%2Freceipt-check-miniapp-1.30.2.tgz" +"@walmart/receipt-check-miniapp@npm:1.31.0": + version: 1.31.0 + resolution: "@walmart/receipt-check-miniapp@npm:1.31.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freceipt-check-miniapp%2F-%2F%40walmart%2Freceipt-check-miniapp-1.31.0.tgz" dependencies: "@walmart/tcnumber": "npm:^2.3.3" "@xstate/react": "npm:^3.0.1" @@ -8026,7 +8026,7 @@ __metadata: xstate: "npm:^4.32.1" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/3285cf52df297e69f7b67e3fa2931bb9d8e08eb40905d8afa85c19bad0f669dedcccd118f0cb850aea187f91b8b0c224fcc5c05a44752383a0ac1be7944e0206 + checksum: 10c0/01c84e8af54b2cb5e663d76ada9641cfd6003c8fe014cd8d953bf9d37d52be041c7005c2bfe5ab62642cc0504299c95f48ebdb566f1e7e5b0759bc0a998ff318 languageName: node linkType: hard
feat(receipt-check-miniapp): FLB-2643 Drop 31 Accessibility Fixes
feat(receipt-check-miniapp): FLB-2643 Drop 31 Accessibility Fixes
25d65b1d57f4f83d530d82da80954dacd6879e62
--- __tests__/startup/StartupFlowTest.ts @@ -76,7 +76,7 @@ describe('candidateStartupFlow', () => { test('associateStartupFlow', () => { const iterator = associateStartupFlow(); expect(iterator.next().value).toEqual(call(handleSiteIdPrompt)); - // expect(iterator.next().value).toEqual(call(waitForAppConfig)); + expect(iterator.next().value).toEqual(call(waitForAppConfig)); expect(iterator.next().value).toEqual(call(handleTermsOfUse)); expect(iterator.next().value).toEqual(call(handlePermissions)); expect(iterator.next().value).toEqual(call(handlePinCode)); --- package-lock.json @@ -4597,9 +4597,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.4.8", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.4.8.tgz", - "integrity": "sha512-5is3h7cqc82esSI/gJ+r8eUGAn95l5SywmhwYOfYPhxfNOQ+G+ecnSsmfeRpVLqZq0bTilkHlyCk6pbKk5Jhyw==", + "version": "1.4.9", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.4.9.tgz", + "integrity": "sha512-9CFxVD1Jr8zxW+cd1AvLP5rqrcvgHNoGURlZA1/vDl3iedmeSN1kfguMJ+Cpi6HMpplPPQQGrVeOVYR19nZNnQ==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", --- package.json @@ -76,7 +76,7 @@ "@walmart/ask-sam-mini-app": "^0.41.8", "@walmart/config-components": "3.0.2", "@walmart/core-services": "^1.0.14", - "@walmart/core-services-allspark": "^1.4.8", + "@walmart/core-services-allspark": "^1.4.9", "@walmart/core-utils": "^1.0.8", "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.41.1", --- src/startup/StartupFlow.ts @@ -39,7 +39,7 @@ export function* associateStartupFlow() { // Remaining flows rely on app config. // This also indirectly waits on store config since // app config is dependent on it - // yield call(waitForAppConfig); + yield call(waitForAppConfig); // Terms of Use yield call(handleTermsOfUse);
core service bump for app config fix. adding back wait on app config to startup
core service bump for app config fix. adding back wait on app config to startup
8203cfc39ac11487b1725685d14a5037ecb31d6d
--- __tests__/core/appConfigInitTest.ts @@ -121,7 +121,6 @@ describe('getAppConfigScope', () => { const deviceType = 'COPIUM'; const model = 'ZYA'; const osVersion = '11'; - const teamIds = ['SUP_US_5431785', 'SUP_US_5431785']; it('gets scope and params for app config', () => { const iterator = getAppConfigScope(); @@ -139,7 +138,6 @@ describe('getAppConfigScope', () => { select(DeviceInfoSelectors.getDeviceType), call(DeviceInfo.getModel), call(DeviceInfo.getSystemVersion), - select(UserSelectors.getUserTeamIds), select(UserSelectors.getUserEmploymentStatus), ]), ); @@ -156,7 +154,6 @@ describe('getAppConfigScope', () => { deviceType, model, osVersion, - teamIds, user.employmentStatus, ]); expect(value).toEqual({ @@ -172,7 +169,6 @@ describe('getAppConfigScope', () => { deviceType, model, osVersion, - teamIds: 'SUP_US_5431785,SUP_US_5431785', employmentStatus: user.employmentStatus, division: '1', }, --- __tests__/navConfig/NavConfigSagasTest.ts @@ -74,7 +74,6 @@ const mockScope = { country: 'US', employeeType: 'S', domain: 'store/club', - teamIds: 'SUP_US_5431785,SUP_US_5431785', }; describe('nav config sagas', () => { @@ -144,7 +143,6 @@ describe('nav config sagas', () => { select(DeviceInfoSelectors.getDeviceType), select(UserSelectors.getUserEmployeeType), select(UserSelectors.getUserDomain), - select(UserSelectors.getUserTeamIds), ]), ); const {value, done} = iterator.next([ @@ -159,7 +157,6 @@ describe('nav config sagas', () => { 'COPIUM', 'S', 'store/club', - ['SUP_US_5431785', 'SUP_US_5431785'], ]); expect(value).toEqual(mockScope); --- __tests__/navigation/AssociateHallwayNav/__snapshots__/DrawerNavTest.tsx.snap @@ -20,7 +20,7 @@ exports[`DrawerNav matches default snapshot for initial render 1`] = ` Object { "drawerLocked": false, "lockDrawer": [Function], - "renderBadge": <Badge />, + "renderBadge": [Function], "toggleDrawerLocked": [Function], "unlockDrawer": [Function], } @@ -70,7 +70,7 @@ exports[`DrawerNav matches snapshot after initial render 1`] = ` Object { "drawerLocked": false, "lockDrawer": [Function], - "renderBadge": <Badge />, + "renderBadge": [Function], "toggleDrawerLocked": [Function], "unlockDrawer": [Function], } --- src/core/appConfigInit.ts @@ -73,7 +73,6 @@ export function* getAppConfigScope(): any { deviceType, model, osVersion, - teamIds, employmentStatus, ] = yield all([ select(SiteSelectors.getSiteCountry), @@ -87,7 +86,6 @@ export function* getAppConfigScope(): any { select(DeviceInfoSelectors.getDeviceType), call(DeviceInfo.getModel), call(DeviceInfo.getSystemVersion), - select(UserSelectors.getUserTeamIds), select(UserSelectors.getUserEmploymentStatus), ]); @@ -104,7 +102,6 @@ export function* getAppConfigScope(): any { model, siteId: `${siteId}`, deviceType, - teamIds: `${teamIds.join(',')}`, division: divisionNbr, employmentStatus: `${employmentStatus}`, }, --- src/navConfig/NavConfigSagas.ts @@ -62,7 +62,6 @@ export function* getNavConfigScope(): any { deviceType, employeeType, domain, - teamIds, ] = yield all([ select(UserSelectors.getUserId), select(SiteSelectors.getUserWorkingSite), @@ -75,7 +74,6 @@ export function* getNavConfigScope(): any { select(DeviceInfoSelectors.getDeviceType), select(UserSelectors.getUserEmployeeType), select(UserSelectors.getUserDomain), - select(UserSelectors.getUserTeamIds), ]); return { @@ -91,7 +89,6 @@ export function* getNavConfigScope(): any { env: env.deployment, employeeType, domain, - teamIds: `${teamIds.join(',')}`, }; } --- src/navigation/AssociateHallwayNav/DrawerNav.tsx @@ -40,7 +40,7 @@ export const DrawerNav = () => { const DrawerContext = useMemo( () => ({ - renderBadge: <Badge />, + renderBadge: () => <Badge />, drawerLocked, lockDrawer: () => setDrawerLocked(true), unlockDrawer: () => setDrawerLocked(false),
team id removing
team id removing
bde6d826450f7f3790c4a5b76303a9934791d9fc
--- __tests__/core/RootContainerTest.tsx @@ -11,7 +11,6 @@ import {initBiometrics} from '../../src/biometrics'; import {initWhatsNew} from '../../src/whatsNew'; import {initStartupSaga, StartupActionCreators} from '../../src/startup'; import {initTermsOfUseSagas} from '../../src/termsOfUse'; -import {watchAppStateChanges} from '../../src/core/appStateInit'; import {initEnv} from '../../src/core/envInit'; import {initScreenTracker} from '../../src/core/screenTracker'; import {initAnalytics} from '../../src/core/analyticsInit'; @@ -21,6 +20,7 @@ import {initLogger} from '../../src/core/loggerInit'; import {initAppConfig} from '../../src/core/appConfigInit'; import {initNetwork} from '../../src/core/networkInit'; import {initUpdateCheck} from '../../src/updates'; +import {initAppState} from '../../src/appState'; import {addSSOListeners} from '../../src/core/initSSO'; import {RootContainer, onImport} from '../../src/core/RootContainer'; @@ -73,15 +73,15 @@ jest.mock('../../src/core/httpClientInit', () => ({ jest.mock('../../src/core/initSSO', () => ({ addSSOListeners: jest.fn(), })); -jest.mock('../../src/core/appStateInit', () => ({ - watchAppStateChanges: jest.fn(), -})); jest.mock('../../src/core/i18nInit', () => ({ initI18n: jest.fn(), })); jest.mock('../../src/core/versionsInit', () => ({ initAppVersions: jest.fn(), })); +jest.mock('../../src/appState', () => ({ + initAppState: jest.fn(), +})); jest.mock('../../src/permissions', () => ({ initPermissions: jest.fn(), })); @@ -143,7 +143,7 @@ describe('onImport', () => { expect(initTermsOfUseSagas).toHaveBeenCalled(); expect(initWhatsNew).toHaveBeenCalledWith(); expect(initStartupSaga).toHaveBeenCalled(); - expect(watchAppStateChanges).toHaveBeenCalled(); expect(createCoreLogger).toHaveBeenCalled(); + expect(initAppState).toHaveBeenCalled(); }); }); --- __tests__/core/appStateInitTest.ts @@ -1,150 +0,0 @@ -import {AppState} from 'react-native'; -import {getStore, ssoActions} from '@walmart/redux-store'; -import WMSingleSignOn from 'react-native-ssmp-sso-allspark'; -import AsyncStorage from '@react-native-community/async-storage'; - -import {logger} from '../../src/services/Logger'; -import {getUser} from '../../src/redux/UserSelector'; -import {getCurrentRoute} from '../../src/core/screenTracker'; -import { - onAppInactive, - onAppStateChanged, - watchAppStateChanges, -} from '../../src/core/appStateInit'; - -jest.mock('lodash', () => ({ - debounce: jest.fn((func: any) => func), - memoize: jest.fn((func) => func), -})); - -jest.mock('../../src/redux/UserSelector', () => ({ - getUser: jest.fn(() => true), -})); - -jest.mock('../../src/services/Logger', () => ({ - logger: { - info: jest.fn(), - error: jest.fn(), - }, -})); - -jest.mock('../../src/core/screenTracker', () => ({ - getCurrentRoute: jest.fn(), -})); - -const mockStore = getStore(); -const mockGetUser = (getUser as unknown) as jest.Mock; -const mockGetCurrentRoute = getCurrentRoute as jest.Mock; - -describe('onAppInactive', () => { - it('calls set item if user present', async () => { - await onAppInactive(); - expect(mockStore.getState).toHaveBeenCalled(); - expect(AsyncStorage.setItem).toHaveBeenCalledWith( - 'user_was_present', - 'true', - ); - }); - - it('calls remove item if user not present', async () => { - mockGetUser.mockReturnValueOnce(false); - (mockStore.getState as jest.Mock).mockReturnValueOnce({ - user: {data: null}, - }); - await onAppInactive(); - expect(mockStore.getState).toHaveBeenCalled(); - expect(AsyncStorage.removeItem).toHaveBeenCalledWith('user_was_present'); - }); -}); - -describe('onAppStateChanged', () => { - beforeEach(() => { - jest.clearAllMocks(); - }); - - it('handles state inactive', async () => { - await onAppStateChanged('inactive'); - expect(AsyncStorage.setItem).toHaveBeenCalledWith( - 'user_was_present', - 'true', - ); - }); - - it('handles state background', async () => { - await onAppStateChanged('background'); - expect(AsyncStorage.setItem).toHaveBeenCalledWith( - 'user_was_present', - 'true', - ); - }); - - it('handles current route login', async () => { - mockGetCurrentRoute.mockReturnValueOnce('login'); - await onAppStateChanged('active'); - expect(WMSingleSignOn.getUser).not.toHaveBeenCalled(); - }); - - it('handles user exists', async () => { - mockGetCurrentRoute.mockReturnValueOnce('stuff'); - (AsyncStorage.getItem as jest.Mock).mockReturnValueOnce('true'); - (WMSingleSignOn.getUser as jest.Mock).mockResolvedValueOnce({ - userId: 'swalton3', - }); - await onAppStateChanged('active'); - - expect(WMSingleSignOn.getUser).toHaveBeenCalled(); - expect(ssoActions.signOutSuccess).not.toHaveBeenCalled(); - }); - - it('handles user does not exist', async () => { - mockGetCurrentRoute.mockReturnValueOnce('stuff'); - (AsyncStorage.getItem as jest.Mock).mockReturnValueOnce('true'); - (WMSingleSignOn.getUser as jest.Mock).mockResolvedValue(null); - await onAppStateChanged('active'); - - expect(WMSingleSignOn.getUser).toHaveBeenCalled(); - expect(ssoActions.signOutSuccess).toHaveBeenCalled(); - expect(logger.info).toHaveBeenCalledWith( - 'app resumed; there is no user and we are not on signIn screen; navigating to login', - {}, - ); - }); - - it('handles get user exception', async () => { - const error = new Error('it did not work'); - mockGetCurrentRoute.mockReturnValue('stuff'); - (AsyncStorage.getItem as jest.Mock).mockReturnValueOnce('true'); - (WMSingleSignOn.getUser as jest.Mock).mockRejectedValue(error); - await onAppStateChanged('active'); - - expect(WMSingleSignOn.getUser).toHaveBeenCalled(); - expect(ssoActions.signOutSuccess).toHaveBeenCalled(); - expect(logger.error).toHaveBeenCalledWith( - 'caught error while checking for user on app resume; navigating to login', - { - message: error.message, - stack: error.stack, - }, - ); - }); - - it('handles user previously not being present on app resume', async () => { - (WMSingleSignOn.getUser as jest.Mock).mockResolvedValue(null); - mockGetCurrentRoute.mockReturnValue('stuff'); - (AsyncStorage.getItem as jest.Mock).mockReturnValueOnce(null); - await onAppStateChanged('active'); - - expect(WMSingleSignOn.getUser).not.toHaveBeenCalled(); - }); -}); - -describe('watchAppStateChanges', () => { - it('adds listener', () => { - const AppStateSpy = jest - .spyOn(AppState, 'addEventListener') - .mockImplementation(() => jest.fn()); - - watchAppStateChanges(); - expect(AppStateSpy).toHaveBeenCalledWith('change', onAppStateChanged); - }); -});
Fixing tests
Fixing tests
e2ea26309af4633847dc0abe04076d8a6b10c86e
--- android/app/build.gradle @@ -297,7 +297,6 @@ android { pickFirst '**/x86_64/libc++_shared.so' pickFirst '**/x86/libjsc.so' pickFirst '**/armeabi-v7a/libjsc.so' - exclude "**/libjsc.so" exclude 'META-INF/gradle/incremental.annotation.processors' } }
removing jsc exclucde
removing jsc exclucde
9b3437cf4970549ad9423a4e564b7e53b2a4de58
--- src/config/HubConfig.tsx @@ -7,7 +7,7 @@ */ import React from 'react'; -import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; +import {ComponentsModule} from '@walmart/allspark-foundation/Components'; import {HourlyRosterWidget, SalariedOrTeamLeadRosterWidget} from '../components/MyWalmartv2/Widgets'; import {CORE_CONTAINERS} from '@walmart/me-at-walmart-common'; import {useUserCanSeeHub} from '@walmart/my-walmart-hub'; @@ -69,7 +69,7 @@ export const registerRosterComponents = (isSiteDC: boolean = false) => { // Register Roster Widget to the single MY_TEAM container // User type logic (salaried vs hourly) is handled within the wrapper - AllsparkComponentContainers.add( + ComponentsModule.ComponentContainers.add( ROSTER_HUB_CONFIG.MYTEAM_HUB_ID, ROSTER_HUB_CONFIG.WIDGET_IDS.ROSTER, RosterWidgetWithUserTypeLogic
feat(ui): update allspark component containers
feat(ui): update allspark component containers
0851d70c5f9ff7aab6ee32810c27e9d51a9c298c
--- src/utils/user.ts @@ -10,6 +10,20 @@ export const OBFUSCATION_PARSE_KEY = OBFUSCATION_KEY.padStart(64, '0'); export const encryptUserId = (userId: string) => baseEncryptUserId(userId, OBFUSCATION_KEY).replace(/\//g, '\\'); +export const returnClockedStatusBasedOnSchedule = (scheduleInfo: any) => { + const {schedStartTime, schedEndTime} = + getScheduleStartAndEndTime(scheduleInfo); + const currentTime = moment(); + if ( + currentTime.isBefore(moment(schedStartTime, 'h:mma')) || + currentTime.isAfter(moment(schedEndTime, 'h:mma')) + ) { + return false; // Clocked status would be Clocked Out + } else { + return true; // Clocked status would be Clocked In + } +}; + export const associateIsAbsent = (associate?: Associate) => associate?.absentData?.absenceTypeCode === 1; @@ -20,6 +34,52 @@ export const associateIsClockedIn = (associate?: Associate) => { return ClockStatusEnum.clockedOut !== Number(associate?.punch?.clockStatus); }; +export const isAssociateClockedIn = ( + associate?: Associate, + siteId?: string | undefined, +) => { + const isStoreScheduleValid = + associate?.storeSchedule && associate?.storeSchedule?.length > 0; + const isWfmScheduleValid = + associate?.wfmSchedule && + associate?.wfmSchedule?.scheduleWeeks && + associate?.wfmSchedule?.scheduleWeeks?.[0]?.scheduleShifts && + associate?.wfmSchedule?.scheduleWeeks?.[0].scheduleShifts?.length > 0; + + /* + If punch data is null, then we would check if the associate has schedule data + If there is schedule info, we would return the Clocked status based on schedule info else clocked status would be Clocked out + */ + if (!associate?.punch) { + if (isWfmScheduleValid) { + return returnClockedStatusBasedOnSchedule( + transformWfmSchedule(associate.wfmSchedule as WFMSchedule, siteId), + ); + } else if (isStoreScheduleValid) { + return returnClockedStatusBasedOnSchedule(associate.storeSchedule); + } else { + return false; + } + } + + /* + If punch data has clockStatus and its value is unknown, then we would check if the associate has schedule data + If there is schedule info, we would return the Clocked status based on schedule info else clocked status would be Clocked out + */ + if (ClockStatusEnum.unknown === Number(associate?.punch?.clockStatus)) { + if (isWfmScheduleValid) { + return returnClockedStatusBasedOnSchedule( + transformWfmSchedule(associate.wfmSchedule as WFMSchedule, siteId), + ); + } else if (isStoreScheduleValid) { + return returnClockedStatusBasedOnSchedule(associate.storeSchedule); + } else { + return false; + } + } + return ClockStatusEnum.clockedIn === Number(associate?.punch?.clockStatus); +}; + export const associateIsClockedOut = (associate?: Associate) => { return ClockStatusEnum.clockedOut === Number(associate?.punch?.clockStatus); };
feat: add back is associate clocked in
feat: add back is associate clocked in
e47d2068f4f3e4d1740fb14191d84badd09587df
--- package.json @@ -2,9 +2,9 @@ "name": "@walmart/feature-app-template-typescript", "version": "2.0.0", "private": false, - "main": "dist/index.js", + "main": "bundle/dist/index.js", "files": [ - "dist" + "bundle/dist" ], "scripts": { "android": "react-native run-android", @@ -14,8 +14,8 @@ "test": "jest", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:fix": "eslint ./src ./__tests__ --ext .js,.jsx,.ts,.tsx --fix", - "copy:images": "cp -r ./src/images ./dist/images", - "build": "rm -rf ./dist && tsc && npm run copy:images", + "copy:images": "cp -r ./src/images ./bundle/dist/images", + "build": "rm -rf ./bundle/dist && tsc && npm run copy:images", "env:dev": "cp ./container/env.dev.ts ./container/env.ts", "env:teflon": "cp ./container/env.teflon.ts ./container/env.ts", "env:beta": "cp ./container/env.beta.ts ./container/env.ts", --- tsconfig.json @@ -1,4 +1,3 @@ - { "compilerOptions": { /* Basic Options */ --- package.json @@ -2,9 +2,9 @@ "name": "@walmart/feature-app-template-typescript", "version": "2.0.0", "private": false, - "main": "dist/index.js", + "main": "bundle/dist/index.js", "files": [ - "dist" + "bundle/dist" ], "scripts": { "android": "react-native run-android", @@ -14,8 +14,8 @@ "test": "jest", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:fix": "eslint ./src ./__tests__ --ext .js,.jsx,.ts,.tsx --fix", - "copy:images": "cp -r ./src/images ./dist/images", - "build": "rm -rf ./dist && tsc && npm run copy:images", + "copy:images": "cp -r ./src/images ./bundle/dist/images", + "build": "rm -rf ./bundle/dist && tsc && npm run copy:images", "env:dev": "cp ./container/env.dev.ts ./container/env.ts", "env:teflon": "cp ./container/env.teflon.ts ./container/env.ts", "env:beta": "cp ./container/env.beta.ts ./container/env.ts", --- tsconfig.json @@ -1,4 +1,3 @@ - { "compilerOptions": { /* Basic Options */
fix build script
fix build script
09ff11c2b8ae9b8aa5c5afe9878dd6eff9ba1ec8
--- __tests__/components/AppHeader.test.tsx @@ -198,7 +198,7 @@ describe('AppHeader components', () => { headerTitleAlign: 'left', headerTintColor: 'white', headerBackTitleVisible: false, - headerStyle: {backgroundColor: colors.primary.base, height: BaseHeaderHeight, shadowColor: 'transparent', zIndex: 100}, + headerStyle: {backgroundColor: colors.primary.base, height: BaseHeaderHeight, shadowColor: 'transparent'}, headerTitleContainerStyle: {marginHorizontal: 0}, headerLeftContainerStyle: {paddingStart: 4, paddingEnd: 12}, headerStatusBarHeight: 0, --- __tests__/components/__snapshots__/AppHeader.test.tsx.snap @@ -22,7 +22,6 @@ exports[`AppHeader components MyWalmartStackHeader renders correctly with merged "backgroundColor": "#0071dc", "height": 64, "shadowColor": "transparent", - "zIndex": 100, }, "headerTintColor": "white", "headerTitle": [Function], @@ -58,7 +57,6 @@ exports[`AppHeader components MyWalmartTabHeader applies custom options correctl "backgroundColor": "#0071dc", "height": 64, "shadowColor": "transparent", - "zIndex": 100, } } headerTintColor="yellow" @@ -107,7 +105,6 @@ exports[`AppHeader components MyWalmartTabHeader renders correctly with default "backgroundColor": "#0071dc", "height": 64, "shadowColor": "transparent", - "zIndex": 100, } } headerTintColor="white" --- packages/me-at-walmart-common/src/containers/Core.ts @@ -11,14 +11,14 @@ export const CORE_CONTAINERS = { * Container for the root components rendered alongside the root navigation. This is mainly for edge cases so please coordinate * with the Core team before using this component container to review your use case. * - * Component Typing: ComponentType\<void\> + * Component Typing: ComponentType\<{}\> */ ROOT: 'MY_WALMART.ROOT', /** * Container for components rendered below the base impersonation form. Add components here for feature specific * impersonation settings. * - * Component Typing: ComponentType\<void\> + * Component Typing: ComponentType\<{}\> */ IMPERSONATION_FORM: 'MY_WALMART.IMPERSONATION_FORM', /** @@ -32,7 +32,7 @@ export const CORE_CONTAINERS = { * Container for the MyWalmart 1.0 header right component shown on the home screen. * For MyWalmart 2.0, this is not used. * - * Component Typing: ComponentType\<void\> + * Component Typing: ComponentType\<{}\> */ HOME_HEADER_RIGHT: 'MY_WALMART.HOME_HEADER_RIGHT', /** @@ -120,10 +120,10 @@ export type MyTeamComponentProps = { export type CoreContainerPropsMap = { [CORE_CONTAINERS.FOR_YOU]: ForYouComponentProps; [CORE_CONTAINERS.HOME_DASHBOARD]: HomeComponentProps; - [CORE_CONTAINERS.HOME_HEADER_RIGHT]: void; - [CORE_CONTAINERS.IMPERSONATION_FORM]: void; + [CORE_CONTAINERS.HOME_HEADER_RIGHT]: {}; + [CORE_CONTAINERS.IMPERSONATION_FORM]: {}; [CORE_CONTAINERS.MY_TEAM]: MyTeamComponentProps; - [CORE_CONTAINERS.ROOT]: void; + [CORE_CONTAINERS.ROOT]: {}; [CORE_CONTAINERS.TODAYS_PLAN]: TodaysPlanComponentProps; // Add more component containers here as needed }; --- src/app/README.md @@ -2,4 +2,4 @@ The `app` directory is designed to emulate the structure required by Expo Router's file-based routing system. While we are not fully adopting Expo Router for navigation yet, this directory serves as a foundation for a gradual transition. -The goal is to slowly migrate from the existing `navigation` directory to the `app` directory as we adopt the file-based routing pattern. This approach allows will allow us to migrate to Expo Router in the future without a complete overhaul of the codebase. +The goal is to slowly migrate from the existing `navigation` directory to the `app` directory as we adopt the file-based routing pattern. This approach allows us to migrate to Expo Router in the future without a complete overhaul of the codebase. --- src/components/AppHeader.tsx @@ -26,7 +26,6 @@ export const HeaderStyles = StyleSheet.create({ height: BaseHeaderHeight, backgroundColor: colors.primary.base, shadowColor: 'transparent', - zIndex: 100, }, headerTitleContainerStyle: { marginHorizontal: 0, --- src/impersonation/ImpersonationScreen.tsx @@ -6,8 +6,10 @@ import { User, ImpersonationUser, } from '@walmart/allspark-foundation/User'; +import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Components'; import { - ImpersonationFormContainer + COMPONENT_CONTAINERS, + ComponentContainerPropsMap, } from '@walmart/me-at-walmart-common'; import {encryptUserId} from '@walmart/allspark-utils'; @@ -29,6 +31,8 @@ const styles = StyleSheet.create({ }, }); +const ImpersonationFormContainer = AllsparkComponentContainers.create<ComponentContainerPropsMap['MY_WALMART.IMPERSONATION_FORM']>(COMPONENT_CONTAINERS.IMPERSONATION_FORM); + export const ImpersonationScreen = ( props: AssociateStackScreenProps<'Impersonation'>, ) => { --- src/navigation/USHallway/AssociateHallwayNav/SideMenuContent.tsx @@ -78,7 +78,7 @@ export const SideMenuContent = () => { const deviceType = useSelector(DeviceSelectors.getType); const nameInitials = useSelector(UserSelectors.getInitials); const displayName = useSelector(UserSelectors.getName); - const {highPriorityCount, signOffTaskCount} = useSelector(getTaskBadge); + const taskBadge = useSelector(getTaskBadge); const getIsClockingEnabled = useSelector( ClockAppSelectors.getIsTimeClockFetureEnabled, ); @@ -213,7 +213,7 @@ export const SideMenuContent = () => { retryText={translate('menu.retryText')} onRetry={onRetry} logTelemetryEvent={GlobalNavTelemetry.logEvent} - enableTaskItAlert={!!highPriorityCount || !!signOffTaskCount} + enableTaskItAlert={!!taskBadge?.highPriorityCount || !!taskBadge?.signOffTaskCount} showInboxBadge={!!showBadge} enablePttAlert={unreadMessageCount || undefined} enableTimeClock={getIsClockingEnabled}
refactor: remove unnecessary header styling. move impersonation form container to screen
refactor: remove unnecessary header styling. move impersonation form container to screen
b1066da403e4a7d89ee9edd5b46920e5220aa185
--- .looper.multibranch.yml @@ -98,6 +98,7 @@ envs: FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 300 FASTLANE_OPT_OUT_USAGE: 1 FASTLANE_HIDE_PLUGINS_TABLE: 1 + FASTLANE_HIDE_TIMESTAMP: 1 AUDIT_SLACK_CHANNEL: allspark-node-audit MULTI_BUILD: false # PRODUCT_NAME: 'Me@Walmart'
Update .looper.multibranch.yml
Update .looper.multibranch.yml
0bf7ffe6374b3b658ce761f55534e02cf37b3b8a
--- packages/associate-exp-hub-mini-app/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.14.3](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.2...@walmart/associate-exp-hub-mini-app@1.14.3) (2026-01-13) + +### Bug Fixes + +- test failure ([0f10ca1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/0f10ca1f64e3bb3f9812dc0ab4075ed228c86496)) +- **ui:** improve team icon loading and error handling ([52ec426](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/52ec426556cd6dd7856cd81d480a6d15a4d0b01f)) + ## [1.14.2](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.14.1...@walmart/associate-exp-hub-mini-app@1.14.2) (2025-12-22) **Note:** Version bump only for package @walmart/associate-exp-hub-mini-app --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.14.2", + "version": "1.14.3", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/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. +## [2.25.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.25.0...@walmart/associate-exp-hub-team-switcher@2.25.1) (2026-01-13) + +### Bug Fixes + +- **ui:** improve team icon loading and error handling ([52ec426](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/52ec426556cd6dd7856cd81d480a6d15a4d0b01f)) + # [2.25.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.24.1...@walmart/associate-exp-hub-team-switcher@2.25.0) (2025-12-22) ### Features --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.25.0", + "version": "2.25.1", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-mini-app@1.14.3 - @walmart/associate-exp-hub-team-switcher@2.25.1
83360d5d65a800fced04e27ef1f340a5cf5cfe9a
--- package.json @@ -172,6 +172,7 @@ "moment-timezone": "~0.5.43", "namecase": "^1.1.2", "numeral": "^2.0.6", + "promise-queue": "^2.2.5", "react": "18.2.0", "react-dom": "^18.2.0", "react-hook-form": "^7.51.0", @@ -282,6 +283,7 @@ "@types/luxon": "^2.3.2", "@types/node": "20.5.9", "@types/node-fetch": "^2.6.9", + "@types/promise-queue": "^2", "@types/react": "^18.2.6", "@types/react-native-uuid": "^2.0.0", "@types/react-redux": "^7.1.9", --- yarn.lock @@ -5050,6 +5050,13 @@ __metadata: languageName: node linkType: hard +"@types/promise-queue@npm:^2": + version: 2.2.3 + resolution: "@types/promise-queue@npm:2.2.3" + checksum: 10c0/cca190318f93375c468eb61832a8c94c843b803c3e36777adb3bb2155f1235030235832615a554b3015a34ede62a3556e50a00dad6dea87da2004ce23439c493 + languageName: node + linkType: hard + "@types/prop-types@npm:*": version: 15.7.12 resolution: "@types/prop-types@npm:15.7.12" @@ -7768,6 +7775,7 @@ __metadata: "@types/luxon": "npm:^2.3.2" "@types/node": "npm:20.5.9" "@types/node-fetch": "npm:^2.6.9" + "@types/promise-queue": "npm:^2" "@types/react": "npm:^18.2.6" "@types/react-native-uuid": "npm:^2.0.0" "@types/react-redux": "npm:^7.1.9" @@ -7882,6 +7890,7 @@ __metadata: npm-run-all: "npm:^4.1.5" numeral: "npm:^2.0.6" prettier: "npm:2.8.8" + promise-queue: "npm:^2.2.5" react: "npm:18.2.0" react-dom: "npm:^18.2.0" react-hook-form: "npm:^7.51.0" @@ -17394,6 +17403,13 @@ __metadata: languageName: node linkType: hard +"promise-queue@npm:^2.2.5": + version: 2.2.5 + resolution: "promise-queue@npm:2.2.5" + checksum: 10c0/6b29c1c717399c7e10d9527f3a6af74ea7f811aa297dab27c22e5718a824b1cb012d179e1f5d609bf2db051aaf49630fe8222317dedc2174b24971026ab39969 + languageName: node + linkType: hard + "promise-retry@npm:^2.0.1": version: 2.0.1 resolution: "promise-retry@npm:2.0.1"
fix: added promis queue
fix: added promis queue
c8ef78f2e1ea1952d82225d78a48939b9516f3d7
--- package.json @@ -97,7 +97,7 @@ "@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch", "@walmart/avp-feature-app": "0.26.15", "@walmart/avp-shared-library": "0.25.36", - "@walmart/ax-components": "1.2.0", + "@walmart/ax-components": "1.2.3", "@walmart/backroom-mini-app": "1.16.2", "@walmart/beneficiary-online-mini-app": "0.1.19", "@walmart/beneficiary-online-shared-library": "1.2.6", @@ -122,7 +122,7 @@ "@walmart/global-vpi-mini-app": "1.1.63", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.3.0-rc.0", - "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.11", + "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.12", "@walmart/ims-print-services-ui": "2.24.1", "@walmart/inbox-mini-app": "0.105.3", "@walmart/invue-react-native-sdk": "0.1.26-alpha.14", --- yarn.lock @@ -7545,9 +7545,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ax-components@npm:1.2.0": - version: 1.2.0 - resolution: "@walmart/ax-components@npm:1.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.2.0.tgz" +"@walmart/ax-components@npm:1.2.3": + version: 1.2.3 + resolution: "@walmart/ax-components@npm:1.2.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.2.3.tgz" peerDependencies: "@react-native-picker/picker": ~2.11.1 "@walmart/gtp-shared-components-3": "*" @@ -7558,7 +7558,7 @@ __metadata: react-native: 0.79.x react-native-device-info: ~10.13.1 react-native-web: ^0.20.0 - checksum: 10c0/141f8114fe4a6469ee61add91361b8caa0bda22926e256c802b9b7cdb566d714801cdd0492ad99b7e493424c07e1c447be97c2d2579b5d5dbe56dead797f42e3 + checksum: 10c0/88e75dfc42e37d93b3a19f0d4b2028d36b09551740aad6916c65fb4abb62af9c1f122fc7b488fd2e53c6e28e842dba755d4b50ede9d84a3a2c9b582066629f67 languageName: node linkType: hard @@ -8053,9 +8053,9 @@ __metadata: languageName: node linkType: hard -"@walmart/gtp-shared-components-3@npm:@walmart/gtp-shared-components@3.0.0-beta.11": - version: 3.0.0-beta.11 - resolution: "@walmart/gtp-shared-components@npm:3.0.0-beta.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fgtp-shared-components%2F-%2F%40walmart%2Fgtp-shared-components-3.0.0-beta.11.tgz" +"@walmart/gtp-shared-components-3@npm:@walmart/gtp-shared-components@3.0.0-beta.12": + version: 3.0.0-beta.12 + resolution: "@walmart/gtp-shared-components@npm:3.0.0-beta.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fgtp-shared-components%2F-%2F%40walmart%2Fgtp-shared-components-3.0.0-beta.12.tgz" dependencies: "@livingdesign/tokens-next": "npm:@livingdesign/tokens@1.16.0" "@walmart/gtp-shared-mega-icons": "npm:1.0.2" @@ -8074,7 +8074,7 @@ __metadata: bin: installFonts: ./scripts/installFonts runCodemods: ./scripts/runCodemods - checksum: 10c0/b29fb88e7746e005193b4a62c22bc0b7f0afaf247ebae5f02a4cc8a5d4a886f16b08863ec04c9f3afada6eebd85fc90690348fd02ba87856aa9190e6951a64b4 + checksum: 10c0/84f1e2bb3dcf92e2c2dd4268c202ec395e67bf8b4ebf4ac60d49c24551e52b532d117d6ceecc814b34f63f4ac7a1617589d89dd5d2811dbf9fd2bf615831b035 languageName: node linkType: hard @@ -8509,7 +8509,7 @@ __metadata: "@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch" "@walmart/avp-feature-app": "npm:0.26.15" "@walmart/avp-shared-library": "npm:0.25.36" - "@walmart/ax-components": "npm:1.2.0" + "@walmart/ax-components": "npm:1.2.3" "@walmart/backroom-mini-app": "npm:1.16.2" "@walmart/beneficiary-online-mini-app": "npm:0.1.19" "@walmart/beneficiary-online-shared-library": "npm:1.2.6" @@ -8534,7 +8534,7 @@ __metadata: "@walmart/global-vpi-mini-app": "npm:1.1.63" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.3.0-rc.0" - "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.11" + "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.12" "@walmart/ims-print-services-ui": "npm:2.24.1" "@walmart/inbox-mini-app": "npm:0.105.3" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.14"
chore(bump): bumped gtp and ax component versions (#5106)
chore(bump): bumped gtp and ax component versions (#5106) Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
59a49c79cf630409c701bf7ba67c9c75b9315c53
--- .yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.11-6123ac0660.patch @@ -1,67 +0,0 @@ -diff --git a/android_dynamic_modules/webex_dynamic_module/build.gradle b/android_dynamic_modules/webex_dynamic_module/build.gradle -index c08fd93fe1ace4a4e13b7fafb4e70e8c82bca4db..2565f202119f5d0f30cd75b7d37616a56760a8df 100644 ---- a/android_dynamic_modules/webex_dynamic_module/build.gradle -+++ b/android_dynamic_modules/webex_dynamic_module/build.gradle -@@ -50,13 +50,13 @@ android { - buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() - } - -- flavorDimensions "default" -- productFlavors { -- dev {} -- teflon {} -- prod {} -- beta {} -- } -+ // flavorDimensions "default" -+ // productFlavors { -+ // dev {} -+ // teflon {} -+ // prod {} -+ // beta {} -+ // } - - buildTypes { - debug { -diff --git a/ios/CallingSdk_Utils.h b/ios/CallingSdk_Utils.h -index 219e7b2675fabb2532c018fa2015502d2d1a0e2d..d0382e700a1124b69f51409bd631b74e7e34dc92 100644 ---- a/ios/CallingSdk_Utils.h -+++ b/ios/CallingSdk_Utils.h -@@ -1,6 +1,6 @@ - #import <Foundation/Foundation.h> - #import <React/RCTBridge.h> --#import <SumoSDK-Swift.h> -+#import <SumoSDK/SumoSDK-Swift.h> - - @interface CallingSDK_Utils : NSObject - -diff --git a/ios/CallingSdk_Utils.m b/ios/CallingSdk_Utils.m -index ad181db72380580723de50efbf651a61c75f3d26..0d16dc03b99473bdc5e7f6953cc2439302f259eb 100644 ---- a/ios/CallingSdk_Utils.m -+++ b/ios/CallingSdk_Utils.m -@@ -1,10 +1,10 @@ - #import "CallingSdk_Utils.h" --#import <SumoSDK-Swift.h> -+#import <SumoSDK/SumoSDK-Swift.h> - #import <React/RCTBridge.h> - #import <React/RCTConvert.h> - #import <React/RCTEventDispatcher.h> - #import "ConnectionModule.h" --#import "CallingSDK-Swift.h" -+#import "CallingSDK/CallingSDK-Swift.h" - - - @implementation CallingSDK_Utils -diff --git a/ios/ConnectionModule.m b/ios/ConnectionModule.m -index 4e4914acafda788c8f1081c2b8616efad80f4356..078e85038c47fdae8425004a505a5a43c035a5b8 100644 ---- a/ios/ConnectionModule.m -+++ b/ios/ConnectionModule.m -@@ -14,7 +14,7 @@ - #import <React/RCTUtils.h> - #import <React/RCTLog.h> - --#import "CallingSDK-Swift.h" -+#import "CallingSDK/CallingSDK-Swift.h" - - #ifdef DEBUG - static int const OUTGOING_CALL_WAKEUP_DELAY = 10; --- package.json @@ -89,7 +89,7 @@ "@walmart/avp-feature-app": "0.16.5", "@walmart/avp-shared-library": "0.10.7", "@walmart/backroom-mini-app": "1.9.0", - "@walmart/calling-mini-app": "0.7.17", + "@walmart/calling-mini-app": "0.7.34", "@walmart/checkout-mini-app": "4.4.2", "@walmart/compass-sdk-rn": "6.2.1", "@walmart/config-components": "4.7.1", @@ -137,7 +137,7 @@ "@walmart/react-native-shared-navigation": "~6.3.28", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.7.4", - "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.8.11#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.11-6123ac0660.patch", + "@walmart/react-native-webex-sdk": "0.8.27", "@walmart/receipt-check-miniapp": "1.29.4", "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.16.7", --- yarn.lock @@ -6520,9 +6520,9 @@ __metadata: languageName: node linkType: hard -"@walmart/calling-mini-app@npm:0.7.17": - version: 0.7.17 - resolution: "@walmart/calling-mini-app@npm:0.7.17::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcalling-mini-app%2F-%2F%40walmart%2Fcalling-mini-app-0.7.17.tgz" +"@walmart/calling-mini-app@npm:0.7.34": + version: 0.7.34 + resolution: "@walmart/calling-mini-app@npm:0.7.34::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcalling-mini-app%2F-%2F%40walmart%2Fcalling-mini-app-0.7.34.tgz" peerDependencies: "@react-native-community/datetimepicker": ">=5" "@react-navigation/native": ">=6" @@ -6571,7 +6571,7 @@ __metadata: dependenciesMeta: "@walmart/wmconnect-mini-app": built: false - checksum: 10c0/8a5862b32dd0452988b62797cb29b52b1975b3b23cbdb840407ca3f6ac979dc27b075ded6fc7e33a3247ad1c1262a1be1c0fafdb39037c8a0200e87ed717e0b7 + checksum: 10c0/1f4b522c35bf51db6f210993b257fa38f3d07a0190766b46d2a303456056aea7adaf86fd81fa2d5e3689206be5c2d0e619e817d02037516174fab1b2034081a4 languageName: node linkType: hard @@ -7307,7 +7307,7 @@ __metadata: "@walmart/avp-feature-app": "npm:0.16.5" "@walmart/avp-shared-library": "npm:0.10.7" "@walmart/backroom-mini-app": "npm:1.9.0" - "@walmart/calling-mini-app": "npm:0.7.17" + "@walmart/calling-mini-app": "npm:0.7.34" "@walmart/checkout-mini-app": "npm:4.4.2" "@walmart/compass-sdk-rn": "npm:6.2.1" "@walmart/config-components": "npm:4.7.1" @@ -7355,7 +7355,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:~6.3.28" "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.4" - "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.8.11#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.11-6123ac0660.patch" + "@walmart/react-native-webex-sdk": "npm:0.8.27" "@walmart/receipt-check-miniapp": "npm:1.29.4" "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.16.7" @@ -7924,25 +7924,14 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-webex-sdk@npm:0.8.11": - version: 0.8.11 - resolution: "@walmart/react-native-webex-sdk@npm:0.8.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-webex-sdk%2F-%2F%40walmart%2Freact-native-webex-sdk-0.8.11.tgz" +"@walmart/react-native-webex-sdk@npm:0.8.27": + version: 0.8.27 + resolution: "@walmart/react-native-webex-sdk@npm:0.8.27::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-webex-sdk%2F-%2F%40walmart%2Freact-native-webex-sdk-0.8.27.tgz" peerDependencies: react: "*" react-native: "*" react-native-logger: "*" - checksum: 10c0/9b323f9b4c417a9230057f8bfdbeef3dffe275958e624b2b6ea07eaa79dfa792e0d1d4bc5080a4794b0aafc62a5e76cdebb42276a157799e168908b511a3e60d - languageName: node - linkType: hard - -"@walmart/react-native-webex-sdk@patch:@walmart/react-native-webex-sdk@npm%3A0.8.11#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.11-6123ac0660.patch": - version: 0.8.11 - resolution: "@walmart/react-native-webex-sdk@patch:@walmart/react-native-webex-sdk@npm%3A0.8.11%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Freact-native-webex-sdk%252F-%252F%2540walmart%252Freact-native-webex-sdk-0.8.11.tgz#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.8.11-6123ac0660.patch::version=0.8.11&hash=bb6720" - peerDependencies: - react: "*" - react-native: "*" - react-native-logger: "*" - checksum: 10c0/6e52bc04437b6dea19e29e85591c7b4ded4f26f2f6bbd8472e86c5774cd719f1f202dacf53f86a1badad6db3d7b0c3160a6c64463e7459e84ca622c189a19f10 + checksum: 10c0/ade4482508842931451cca5c4fc7688cc5ef1428cec0d3fff9dfca3cfb42f3d8783a16b440e47c74a66864416d48da20445e2f79058fb9c0eb2edfdc1b099eb2 languageName: node linkType: hard
fix: CONAS-1763 Bugfixes for calling mini app (#4093)
fix: CONAS-1763 Bugfixes for calling mini app (#4093) Co-authored-by: Aswin Das <Aswin.Das@walmart.com>
36d9097f45a43db32e7dd030621bc0c044818664
--- .looper.multibranch.yml @@ -4,7 +4,7 @@ inherit: "job:///metropolis/metroloop/metroloop-parent" ## Whenever you update the nodes, please update it at the two-place, below line & the global variable LOOPER_NODES ## -node: ((osx||stable_osx)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI39&&!MAC-LAB-MINI32&&!MAC-LAB-MINI22&&!MAC-DRFQLAB-MINI22) +node: (osx||stable_osx) tools: android: @@ -47,7 +47,7 @@ envs: global: variables: CI: true - LOOPER_NODES: "((osx||stable_osx)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI39&&!MAC-LAB-MINI32&&!MAC-LAB-MINI22&&!MAC-DRFQLAB-MINI22)" + LOOPER_NODES: "(osx||stable_osx)" GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}" TMPDIR: /tmp
removing extra nodes to test
removing extra nodes to test
f3a89c05d3d24a564bcbb54d0207aabef92ba7b7
--- packages/allspark-foundation/src/Components/ComponentContainers.tsx @@ -69,6 +69,13 @@ export class ComponentContainer<Props extends AnyObject> { this._eventManager.runEvent('change', id); }; + /** + * @deprecated use `add` method instead + */ + public register = (id: string, Component: ComponentType<Props>) => { + this.add(id, Component); + }; + /** * Adds multiple components to the container. * @param components - An array of [id, Component] tuples to add. @@ -85,6 +92,13 @@ export class ComponentContainer<Props extends AnyObject> { }); }; + /** + * @deprecated use `addMultiple` method instead + */ + public multiRegister = (components: [string, ComponentType<Props>][]) => { + this.addMultiple(components); + }; + /** * Removes a component from the container. * @param id - The ID of the component to remove. @@ -316,6 +330,17 @@ class ComponentContainerManager { } }; + /** + * @deprecated use `add` method instead + */ + public register = ( + containerId: string, + id: string, + component: ComponentType<AnyObject> + ) => { + this.add(containerId, id, component); + }; + /** * Adds multiple components to a ComponentContainer instance. * @param containerId - The ID of the ComponentContainer instance to add the record to. @@ -337,6 +362,16 @@ class ComponentContainerManager { } }; + /** + * @deprecated use `addMultiple` method instead + */ + public multiRegister = ( + containerId: string, + components: [string, ComponentType<AnyObject>][] + ) => { + this.addMultiple(containerId, components); + }; + /** * Removes a component from an ComponentContainer instance. *
fix: add register and multi register methods to component container for backwards compat
fix: add register and multi register methods to component container for backwards compat
9b6f2ac61b6a9178ded9bcd0c1ce1e6880ae6de7
--- CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) + +**Note:** Version bump only for package @walmart/me-at-walmart + + + + + # [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) --- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.36.0-alpha.3", + "version": "6.36.0-alpha.4", "npmClient": "yarn", "changelogPreset": "angular", "command": { --- packages/core-services-allspark/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) + +**Note:** Version bump only for package @walmart/core-services-allspark + + + + + # [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) **Note:** Version bump only for package @walmart/core-services-allspark --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "6.36.0-alpha.3", + "version": "6.36.0-alpha.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/core-widget-registry/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) + +**Note:** Version bump only for package @walmart/core-widget-registry + + + + + # [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) **Note:** Version bump only for package @walmart/core-widget-registry --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "6.36.0-alpha.3", + "version": "6.36.0-alpha.4", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", --- packages/me-at-walmart-common/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) + +**Note:** Version bump only for package @walmart/me-at-walmart-common + + + + + # [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) **Note:** Version bump only for package @walmart/me-at-walmart-common --- packages/me-at-walmart-common/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-common", - "version": "6.36.0-alpha.3", + "version": "6.36.0-alpha.4", "description": "Common utilities and components for Me@Walmat mini apps", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-container/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) + +**Note:** Version bump only for package @walmart/me-at-walmart-container + + + + + # [6.36.0-alpha.3](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.2...v6.36.0-alpha.3) (2025-09-05) --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "6.36.0-alpha.3", + "version": "6.36.0-alpha.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version
786cd374ae3e099e9336802cb7f048f062a7d1e8
--- package-lock.json @@ -5243,14 +5243,9 @@ "integrity": "sha512-qLdsZzlG4t1os8wJH9fi8JYPIZh8P3GBehf2bq2anQIZ9N1U+QlW8SA2t5S4NnNemhI3bhjMGXbhvcv1M0mhYg==" }, "@walmart/facilities-management-miniapp": { - "version": "0.2.2", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.2.2.tgz", - "integrity": "sha512-Ldb8o50/NOonnlu1xIFzuvh3SQFP8sCb9lFN83PYKllskYErFe6W+MTOHW9I+TPT9+p5EKMZsPycEa5MlnWOgw==", - "requires": { - "lodash": "^4.17.15", - "react-native-render-html": "^6.3.4", - "xdate": "^0.8.2" - } + "version": "0.2.3-2", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.2.3-2.tgz", + "integrity": "sha512-ZGtcXFmHimerj/G4ugEAC0VTr734UF09ihxdbjIduxzsLPhyIexyZdRm51FbAghw8XOuODB7X9uJHaCuhuigKw==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.8.0", @@ -7630,6 +7625,11 @@ "resolved": "https://npme.walmart.com/csstype/-/csstype-3.0.4.tgz", "integrity": "sha512-xc8DUsCLmjvCfoD7LTGE0ou2MIWLx0K9RCZwSHMOdynqRsP4MtUcLeqh1HcQ2dInwDTqn+3CE0/FZh1et+p4jA==" }, + "ctx-polyfill": { + "version": "1.1.4", + "resolved": "https://npme.walmart.com/ctx-polyfill/-/ctx-polyfill-1.1.4.tgz", + "integrity": "sha512-tz65F3/zmZ2+CMtn4MhNhYi/yIN9dKnItMKzSkH2GE6dBpAIbUR0K5pSHWqUL3OuNBCA70DKlWZYUClHfydIXg==" + }, "d3-array": { "version": "1.2.4", "resolved": "https://npme.walmart.com/d3-array/-/d3-array-1.2.4.tgz", @@ -19287,6 +19287,14 @@ "xdate": "^0.8.0" } }, + "react-native-canvas": { + "version": "0.1.38", + "resolved": "https://npme.walmart.com/react-native-canvas/-/react-native-canvas-0.1.38.tgz", + "integrity": "sha512-DjtN921PKoa2liYF8hKq1263xg2o47Bj/1E/+l75GPicT2RV/x/Y1HBrLvFVCR3OO+UslXEC5BtRjfxDoh/Bug==", + "requires": { + "ctx-polyfill": "^1.1.4" + } + }, "react-native-check-app-install": { "version": "0.0.5", "resolved": "https://npme.walmart.com/react-native-check-app-install/-/react-native-check-app-install-0.0.5.tgz", --- package.json @@ -143,6 +143,7 @@ "react-native-barcode-builder": "^2.0.0", "react-native-biometrics": "^2.1.4", "react-native-blob-util": "^0.13.14", + "react-native-canvas": "^0.1.38", "react-native-check-app-install": "0.0.5", "react-native-circular-progress": "^1.3.6", "react-native-device-info": "^5.6.5", @@ -167,12 +168,10 @@ "react-native-ptt-module": "1.5.98", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "1.13.4", + "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "^3.3.0", "react-native-screens": "^3.10.0", "react-native-segmented-control-tab": "^3.4.1", - "react-native-canvas": "^0.1.38", - "react-native-render-html": "^6.3.4", - "xdate": "^0.8.2", "react-native-sha256": "^1.3.6", "react-native-snap-carousel": "^3.9.1", "react-native-sound-player": "0.10.9", @@ -207,7 +206,8 @@ "semver": "^7.3.4", "uuid": "^3.3.2", "victory-native": "^35.0.1", - "wifi-store-locator": "^1.0.0-alpha2" + "wifi-store-locator": "^1.0.0-alpha2", + "xdate": "^0.8.2" }, "devDependencies": { "@babel/core": "^7.12.9",
Adding package-lock.json
Adding package-lock.json
ce9ea388b3e8b6bef66bb91aac1d936e09f232de
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.2.0-alpha.9", + "version": "3.2.0-alpha.10", "main": "dist/index.js", "files": [ "dist", @@ -77,9 +77,9 @@ "@walmart/allspark-authentication": "6.4.1", "@walmart/allspark-components-library": "1.1.0", "@walmart/allspark-foundation": "^6.32.0", - "@walmart/allspark-foundation-hub": "1.12.0-beta.4979+2eb5821e", + "@walmart/allspark-foundation-hub": "1.13.0-beta.5047+b433a2a7", "@walmart/allspark-utils": "6.5.1", - "@walmart/associate-exp-hub-mini-app": "1.4.0-alpha.12", + "@walmart/associate-exp-hub-mini-app": "1.4.0-alpha.18", "@walmart/config-components": "4.6.5", "@walmart/expo-config-plugins": "0.1.4", "@walmart/gtp-shared-components": "2.2.4", @@ -91,7 +91,7 @@ "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.1.1-alpha.0", + "@walmart/wmconnect-mini-app": "3.2.0-alpha.5", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -7489,9 +7489,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.12.0-beta.4979+2eb5821e": - version: 1.12.0-beta.4979 - resolution: "@walmart/allspark-foundation-hub@npm:1.12.0-beta.4979::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.12.0-beta.4979.tgz" +"@walmart/allspark-foundation-hub@npm:1.13.0-beta.5047+b433a2a7": + version: 1.13.0-beta.5047 + resolution: "@walmart/allspark-foundation-hub@npm:1.13.0-beta.5047::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.13.0-beta.5047.tgz" peerDependencies: "@react-navigation/native": 6.x "@walmart/allspark-foundation": ">=6.27" @@ -7501,7 +7501,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/5285297b4f9ec1257cf736f1999959501ff330c428151929225076cc3fb84e992fa3e5878e983f2428542d959999792e7575fe58ce51e3f4b4ec3d7c3b876a5b + checksum: 10c0/7d065b8f7b4a0970714edfc307e0c94acf3f79b79fe9a7a098612cde0030e4654e8b30cb4130255c4501ab3faafb68a0a73baef6724101e14df2972576c1c6ee languageName: node linkType: hard @@ -7622,18 +7622,18 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-exp-hub-mini-app@npm:1.4.0-alpha.12": - version: 1.4.0-alpha.12 - resolution: "@walmart/associate-exp-hub-mini-app@npm:1.4.0-alpha.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-exp-hub-mini-app%2F-%2F%40walmart%2Fassociate-exp-hub-mini-app-1.4.0-alpha.12.tgz" +"@walmart/associate-exp-hub-mini-app@npm:1.4.0-alpha.18": + version: 1.4.0-alpha.18 + resolution: "@walmart/associate-exp-hub-mini-app@npm:1.4.0-alpha.18::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fassociate-exp-hub-mini-app%2F-%2F%40walmart%2Fassociate-exp-hub-mini-app-1.4.0-alpha.18.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" - "@walmart/allspark-foundation-hub": 1.12.0-beta.4979+2eb5821e + "@walmart/allspark-foundation-hub": 1.13.0-beta.5047+b433a2a7 expo: 52.x expo-image: "*" react: "*" react-native: "*" react-native-safe-area-context: "*" - checksum: 10c0/28cc5c3ae6d0fb901124a741cf83e6e5079c37122e867abeda7128eb8a30d2b087ec4558d02c505879222a6a81600f10d5957664c5382aa5f90ab896a304ee74 + checksum: 10c0/e36fb35fa2f0bbdb3db237c168afa102e8cc7ad95e364994a4f84b3d49742028da5db9c0f25dae89797ab0694c4e9d19f84a0511c08ad78e5f68276e8f6bf50b languageName: node linkType: hard @@ -7873,9 +7873,9 @@ __metadata: "@walmart/allspark-authentication": "npm:6.4.1" "@walmart/allspark-components-library": "npm:1.1.0" "@walmart/allspark-foundation": "npm:^6.32.0" - "@walmart/allspark-foundation-hub": "npm:1.12.0-beta.4979+2eb5821e" + "@walmart/allspark-foundation-hub": "npm:1.13.0-beta.5047+b433a2a7" "@walmart/allspark-utils": "npm:6.5.1" - "@walmart/associate-exp-hub-mini-app": "npm:1.4.0-alpha.12" + "@walmart/associate-exp-hub-mini-app": "npm:1.4.0-alpha.18" "@walmart/config-components": "npm:4.6.5" "@walmart/expo-config-plugins": "npm:0.1.4" "@walmart/gtp-shared-components": "npm:2.2.4" @@ -7887,7 +7887,7 @@ __metadata: "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.1.1-alpha.0" + "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.5" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -7970,9 +7970,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.1.1-alpha.0": - version: 3.1.1-alpha.0 - resolution: "@walmart/wmconnect-mini-app@npm:3.1.1-alpha.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.1.1-alpha.0.tgz" +"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.5": + version: 3.2.0-alpha.5 + resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.5.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -7983,7 +7983,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/6bcdbe8031f2b1b43262741ad10d138faa20bc3a666ead35d3474b9aa166703b2bd03bb7526ac9b8352f920592d0121507a8dfd4ceb66b43ef3f0ab935e559f5 + checksum: 10c0/d1d534d8a7e49d84eb3b1b003ffe573d9dab2c3c0b8ba1393dbc604012ac7bcf6b0650f2e968a92900ab452a7b706f89e02d72d0007b9750b9a31d7faa04edfa languageName: node linkType: hard
feat(ui): update roster mini app version
feat(ui): update roster mini app version
f5c74535346ab526e9c19049fccbcecae0cb6e1f
--- src/screens/MyWalmartV2/AssociateRosterDetailScreen/AssociateRosterDetailScreen.tsx @@ -186,7 +186,7 @@ export const AssociateRosterDetailScreen = memo<RosterDetailScreenProps>( accessibilityLabel={t("rosterScreen.headerSection")} > <AllsparkSharedComponents.Component - id="Teamswitcher.MyWalmartTeamSwitcherWithHeader" + id="TeamSwitcher.MyWalmartTeamSwitcherWithHeader" props={{ onTeamChange: handleTeamChange }} /> <RosterHeader
feat(ui): update feature id for team switcher
feat(ui): update feature id for team switcher
b267546396f0181320643681eebfc1096914f024
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.26.0", + "version": "2.27.0", "main": "dist/index.js", "files": [ "dist" --- src/screens/index.tsx @@ -1,32 +1,46 @@ -import React from 'react'; +// import React from 'react'; import {ScreenTags} from '@walmart/me-at-walmart-common'; import {RosterFeature} from '../common/feature'; -import {RosterNavParamsMap, RosterNavigation} from '../navigation'; -// import {AllTeamsScreen} from './AllTeamsScreen'; -// import {RosterDetailScreen} from './RosterDetailScreen'; +// import {RosterNavParamsMap, RosterNavigation} from '../navigation'; +import {AllTeamsScreen} from './AllTeamsScreen'; +import {RosterDetailScreen} from './RosterDetailScreen'; -export const RosterMiniApp = () => { - return ( - <> - <RosterNavigation /> - </> - ); -}; +// export const RosterMiniApp = () => { +// return ( +// <> +// <RosterNavigation /> +// </> +// ); +// }; -const rosterScreens = RosterFeature.createScreen<RosterNavParamsMap, 'myTeam'>( - RosterMiniApp, - { +// const rosterScreens = RosterFeature.createScreen<RosterNavParamsMap, 'myTeam'>( +// RosterMiniApp, +// { +// tags: [ScreenTags.MyTeamTab], +// clockCheckRequired: true, +// options: { +// title: 'Roster', +// headerShown: false, +// }, +// }, +// ); + +export default RosterFeature.createScreens({ + // ['myTeam.roster']: rosterScreens, + ['myTeam.rosterDetail']: RosterFeature.createScreen(RosterDetailScreen, { tags: [ScreenTags.MyTeamTab], clockCheckRequired: true, options: { title: 'Roster', headerShown: false, }, - }, -); - -export default RosterFeature.createScreens({ - ['myTeam.roster']: rosterScreens, - // ['myTeam.rosterDetail']: RosterFeature.createScreen(RosterDetailScreen), - // ['myTeam.allTeams']: RosterFeature.createScreen(AllTeamsScreen), + }), + ['myTeam.allTeams']: RosterFeature.createScreen(AllTeamsScreen, { + tags: [ScreenTags.MyTeamTab], + clockCheckRequired: true, + options: { + title: 'All teams', + headerShown: false, + }, + }), }); --- src/shared/index.tsx @@ -1,5 +1,5 @@ export {RosterDetailScreen} from '../screens/RosterDetailScreen'; export {AllTeamsScreen} from '../screens/AllTeamsScreen'; export {RosterWidget} from '../components/RosterWidget'; -export {RosterMiniApp} from '../screens'; +// export {RosterMiniApp} from '../screens'; export * from '../navigation';
Update navigation changes
Update navigation changes
132af5fb164a983da4d5c41071278086d96a5367
--- packages/me-at-walmart-container/src/redux/config.ts @@ -137,11 +137,7 @@ export function* getAppConfigScope() { export function* fetchAppConfig(forceRefresh: boolean = false): any { // Wait for config initialization if not done already // Wait for site and device details to be fetched as scope is dependent on these - yield all([ - call(waitForConfigInit), - call(waitForSiteFetch), - call(waitForDeviceFetch), - ]); + yield all([call(waitForConfigInit), call(waitForSiteFetch)]); try { const configScope = yield call(getAppConfigScope); @@ -164,6 +160,8 @@ export function* refetchAppConfig() { } export function* initAppConfig() { + yield call(waitForDeviceFetch); + const appIdentifier: string = yield call(getBundleId); const env: IMeAtWalmartEnvironment = yield call( AllsparkEnvironment.getDeferred
fix: app config init did not wait for device info
fix: app config init did not wait for device info
9301e6b85a8899d7dce79eb9c1d38ed391d058e9
--- package-lock.json @@ -3328,9 +3328,9 @@ } }, "@walmart/config-components": { - "version": "1.0.29", - "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-1.0.29.tgz", - "integrity": "sha512-2lWd8SElggyOahK4nn0xJgPzSqTS5npYsrLCfOj3aeMy0/fXufGzmTvAVeI0dTAAOqGBHWXFhB87ANiVAf6F6w==" + "version": "1.0.31", + "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-1.0.31.tgz", + "integrity": "sha512-OuO9F2DDQBr/ivDBF96dTCCK7x3pHEpPLIOLulDWDZ3szQrVp+yi7sgJMeZ4vMRIzR4FIudtBlJio5/0O7dG4w==" }, "@walmart/counts-component-miniapp": { "version": "0.0.20", --- package.json @@ -74,7 +74,7 @@ "@walmart/allspark-home-mini-app": "0.5.2", "@walmart/allspark-me-mini-app": "0.2.4", "@walmart/ask-sam-mini-app": "0.30.15", - "@walmart/config-components": "^1.0.29", + "@walmart/config-components": "^1.0.30", "@walmart/counts-component-miniapp": "0.0.20", "@walmart/exception-mini-app": "0.36.0", "@walmart/feedback-all-spark-miniapp": "0.0.58",
SSMP-2115
SSMP-2115
5db8a642a2561a4440015360b3025800d1acd906
--- package-lock.json @@ -54,7 +54,7 @@ "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "1.2.2", - "@walmart/inbox-mini-app": "0.81.7", + "@walmart/inbox-mini-app": "0.81.8", "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", @@ -5318,9 +5318,9 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.81.7", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.7.tgz", - "integrity": "sha512-9iofcdf44yN3RbQdHk8VwwNdVJ2zr2DnS1epoh7xDWZnxwHY6kIMTNSNPzbSXvTqcCE+en2MT/GgYPFEsLm5Kw==", + "version": "0.81.8", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.8.tgz", + "integrity": "sha512-9ZXrNzsn4H8wfNxTuao/avE4mjP2fC9WUqMRNRukAe2WRGwCLgNDjYAe6AhR3N7yKiKUnISg3xB2BQQIV5NAZg==", "dependencies": { "@walmart/walmart-fiscal-week": "^0.3.6" }, @@ -25398,9 +25398,9 @@ "integrity": "sha512-Mh3s0NI0QSMUtH5lkWqksw+QyROQIgz3tnb7Yn+sIAdJCo/sijB94t+dZLTdpIJcAQE0w7MGH8iSWnaGJ3gzrg==" }, "@walmart/inbox-mini-app": { - "version": "0.81.7", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.7.tgz", - "integrity": "sha512-9iofcdf44yN3RbQdHk8VwwNdVJ2zr2DnS1epoh7xDWZnxwHY6kIMTNSNPzbSXvTqcCE+en2MT/GgYPFEsLm5Kw==", + "version": "0.81.8", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.8.tgz", + "integrity": "sha512-9ZXrNzsn4H8wfNxTuao/avE4mjP2fC9WUqMRNRukAe2WRGwCLgNDjYAe6AhR3N7yKiKUnISg3xB2BQQIV5NAZg==", "requires": { "@walmart/walmart-fiscal-week": "^0.3.6" }
npm i
npm i
4f3bc4010e819df23fe73a7b7a268680e38d30cd
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/HubHeader/HubHeader.tsx @@ -8,6 +8,8 @@ import { import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; import { TouchableOpacity } from 'react-native-gesture-handler'; import { RosterHeaderProps, getHeaderStyles } from '.'; +import { useSelector } from 'react-redux'; +import { teamImageEnabled } from '../../../SupplyChain/Redux'; export const RosterPageHeader = ({ title, @@ -22,6 +24,7 @@ export const RosterPageHeader = ({ backgroundColorOverride, fontSize = 18, }: RosterHeaderProps) => { + const showTeamImage = useSelector(teamImageEnabled); const TeamImage = useAllsparkImage(); const styles = useMemo( () => @@ -87,7 +90,7 @@ export const RosterPageHeader = ({ </TouchableOpacity> ))} </View> - {imageContent?.uri && ( + {imageContent?.uri && showTeamImage && ( <TeamImage testID={'hub-header-image'} style={styles.teamImage} --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilter.tsx @@ -7,6 +7,8 @@ import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { ShiftFilterProps } from './types'; import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; import { Images } from '../../../Store/Images/images'; +import { useSelector } from 'react-redux'; +import { shiftFilterIconEnabled } from '../../Redux'; export const ShiftFilter = ({ shiftId, @@ -14,6 +16,7 @@ export const ShiftFilter = ({ selectedShifts, handleSelectShift, }: ShiftFilterProps) => { + const showShiftIcon = useSelector(shiftFilterIconEnabled); const TeamImage = useAllsparkImage(); const [selected, setSelected] = useState( selectedShifts?.includes(shiftId) || false @@ -24,14 +27,14 @@ export const ShiftFilter = ({ }; const logger = LoggerService.getContainerInstance(); const telemetryService = useTelemetryService(); - const styles = ShiftFilterStyles(selected); + const styles = ShiftFilterStyles(selected, showShiftIcon); return ( <TouchableOpacity style={styles.container} testID={`shift-filter-${shiftId}`} onPress={handleSelect} > - <View style={styles.shiftFilterOuterContainer}> + {showShiftIcon && ( <TeamImage resizeMode='contain' source={{ @@ -50,16 +53,16 @@ export const ShiftFilter = ({ }} testID='teamImage-shiftFilter' /> - <View - accessible={true} - accessibilityLabel={`${shiftId}`} - accessibilityRole='button' - style={styles.shiftFilterInnerContainer} - > - <Body UNSAFE_style={styles.shiftId} testID='shiftId'> - {shiftId} - </Body> - </View> + )} + <View + accessible={true} + accessibilityLabel={`${shiftId}`} + accessibilityRole='button' + style={styles.shiftFilterInnerContainer} + > + <Body UNSAFE_style={styles.shiftId} testID='shiftId'> + {shiftId} + </Body> </View> </TouchableOpacity> ); --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/style.ts @@ -2,28 +2,23 @@ import { colors } from '@walmart/gtp-shared-components/dist'; import { StyleSheet } from 'react-native'; //TODO: Use teamImage background color from colors gtp shared components. Currently these colors are not matching from shared components. -export const ShiftFilterStyles = (selected: boolean) => +export const ShiftFilterStyles = (selected: boolean, hasIcon: boolean) => StyleSheet.create({ container: { display: 'flex', - padding: 8, + padding: selected ? 7 : 8, width: 109, - justifyContent: 'space-between', + height: 54, + gap: 10, alignItems: 'center', + justifyContent: hasIcon ? 'flex-start' : 'center', flexDirection: 'row', borderWidth: selected ? 2 : 1, borderRadius: 40, borderColor: selected ? colors.black : colors.gray['20'], backgroundColor: colors.white, }, - shiftFilterOuterContainer: { - display: 'flex', - flexDirection: 'row', - alignItems: 'center', - gap: 10, - }, teamImage: { - alignSelf: 'flex-start', height: 36, width: 36, backgroundColor: selected ? '#0071DC' : '#CCE3F8', --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -20,6 +20,8 @@ import { import { useOnboardingContext } from './OnboardingContext'; import { ManagerExperienceCreators } from '../../../Store/Redux/actions'; import { useDispatch } from 'react-redux'; +import { useSelector } from 'react-redux'; +import { hubHeaderEnabled } from '../../Redux'; export const OnboardingScreen = () => { const { t } = useAllsparkTranslation(FEATURE_ID); @@ -34,6 +36,8 @@ export const OnboardingScreen = () => { const [sections, setSearchedsections] = useState<typeof sortedSections>(sortedSections); + const showHubHeader = useSelector(hubHeaderEnabled); + const handleSearchInput = useCallback( (input: string) => { setInput(input);
feat: added feature flags for header and filter
feat: added feature flags for header and filter
162ea92215ea006cd85d8365047479307a9dad15
--- .looper.multibranch.yml @@ -255,7 +255,7 @@ flows: - echo "buildType ${buildType}" - echo "workspace is ${WORKSPACE}" - - var(stuff = '{{ \$root = {title = "stuff", version = "1.10"}, webhookUrl = "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/16391a60331c4d4999f112e40a0b2db1/f02e8323-deff-42c4-85df-613f84ca35ff"}}') + - var(stuff = '{{ title = "stuff", version = "1.10", commit = {message = ${GIT_COMMIT_MESSAGE}} webhookUrl = "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/16391a60331c4d4999f112e40a0b2db1/f02e8323-deff-42c4-85df-613f84ca35ff"}}') # webhookUrl: "https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/16391a60331c4d4999f112e40a0b2db1/f02e8323-deff-42c4-85df-613f84ca35ff" # $root: # title: "stuff"
trying something
trying something
2837a5eae9accb11ecf90c95668a24f478725bc3
--- .looper.yml @@ -23,4 +23,4 @@ flows: - (name Yarn Version) yarn --version - yarn install - yarn run lint - - yarn run coverage + # - yarn run coverage
feat(ui): update looper file
feat(ui): update looper file
5d98e14f4a97d13e5bffa44018aa36ea46b89f41
--- android/app/src/main/java/com/walmart/stores/allspark/beta/SplashActivity.java @@ -9,9 +9,18 @@ public class SplashActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - Intent intent = new Intent(this, MainActivity.class); + if (null != getIntent()) { + // this is carrying forward additional data from the launch intent if available (i.e. sumo) + Intent original = getIntent(); + if (null != original.getExtras()) { + intent.putExtras(original.getExtras()); + } + intent.setAction(original.getAction()); + intent.setData(original.getData()); + intent.setFlags(original.getFlags()); + } startActivity(intent); finish(); } -} +} \ No newline at end of file --- package-lock.json @@ -12512,9 +12512,9 @@ "integrity": "sha512-lDgyoghNlFRRCK0ET3vYy+HzYK0sENPxs77RkHbkr1VxY2vMlC8MbyU5Hg13ORnDf7qst5A0bVz2bocVHR2k8Q==" }, "react-native-wm-notification": { - "version": "0.1.1", - "resolved": "https://npme.walmart.com/react-native-wm-notification/-/react-native-wm-notification-0.1.1.tgz", - "integrity": "sha512-LEL9WYLq5DBxOTMJaMz5O/RXf1ii5Dbx7I1o8EhvFKC414emqO92DQ/e70QbVO/4IUOrqfI/BUwoJerk+4ILFQ==" + "version": "0.1.3", + "resolved": "https://npme.walmart.com/react-native-wm-notification/-/react-native-wm-notification-0.1.3.tgz", + "integrity": "sha512-R8HuLYdo1QjL6JVnS+V+5zfB92DIFZi5jllOf9nIN88zzEfEV9n2a3IRqHxMpTIr6g+VFpLTiNg81Lj8VIFDCQ==" }, "react-native-wm-telemetry": { "version": "0.2.0", --- package.json @@ -64,8 +64,8 @@ "@walmart/schedule-mini-app": "0.2.42", "@walmart/settings-mini-app": "1.1.12", "@walmart/time-clock-mini-app": "0.1.14", - "@walmart/welcomeme-mini-app": "0.5.24", "@walmart/ui-components": "1.0.91", + "@walmart/welcomeme-mini-app": "0.5.24", "i18next": "^19.7.0", "intl": "^1.2.5", "javascript-time-ago": "2.3.3", @@ -105,7 +105,7 @@ "react-native-wm-barcode": "2.9.0", "react-native-wm-config": "^0.1.1", "react-native-wm-network": "^0.1.0", - "react-native-wm-notification": "^0.1.1", + "react-native-wm-notification": "^0.1.3", "react-native-wm-telemetry": "^0.2.0", "react-native-wm-voice-text": "^0.3.0", "react-redux": "^7.2.1", --- src/navigation/Navigation.tsx @@ -332,7 +332,9 @@ const RootNav = () => { headerTintColor: 'black', }} listeners={{ - transitionEnd: () => SplashScreen.hide(), + transitionEnd: () => { + SplashScreen.hide(); + }, }} /> <RootStack.Screen
Fix/sumo android (#272)
Fix/sumo android (#272) * temp commit * fix for android and revert some previous changes for testing * revert some previous changes for testing
dc3bcf505a17b0f2c967235896e3092a93dd50a3
--- __tests__/utils/blobs-test.js @@ -43,13 +43,9 @@ describe('Blobs utils', () => { }); describe('isValidFilename', () => { - it('should return false if base path is not valid', () => { - //TODO - return true; - }); it('should return false if uri is nil', () => { - //TODO - return true; + expect(isValidFileURI(null)).toEqual(false); + expect(isValidFileURI(undefined)).toEqual(false); }); it('should return true if uri is valid', () => { const mockURI = --- src/utils/blob.ts @@ -26,7 +26,7 @@ export const getFileURIFromName = (fileName: string) => `${blobLocalStoragePath}/${fileName}`; export const isValidFileURI = (uri: string) => { - //TODO: Validate URI has supported file extension + //TODO: Validate URI has supported file extension and correct basePath if (isNil(uri)) { return false; } --- __tests__/utils/blobs-test.js @@ -43,13 +43,9 @@ describe('Blobs utils', () => { }); describe('isValidFilename', () => { - it('should return false if base path is not valid', () => { - //TODO - return true; - }); it('should return false if uri is nil', () => { - //TODO - return true; + expect(isValidFileURI(null)).toEqual(false); + expect(isValidFileURI(undefined)).toEqual(false); }); it('should return true if uri is valid', () => { const mockURI = --- src/utils/blob.ts @@ -26,7 +26,7 @@ export const getFileURIFromName = (fileName: string) => `${blobLocalStoragePath}/${fileName}`; export const isValidFileURI = (uri: string) => { - //TODO: Validate URI has supported file extension + //TODO: Validate URI has supported file extension and correct basePath if (isNil(uri)) { return false; }
update isValidFileURI defn
update isValidFileURI defn
fa798b6272d57114a4954a33f5e3437000003da6
--- packages/associate-exp-hub-hub/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. +# [2.18.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.17.0...@walmart/associate-exp-hub-hub@2.18.0) (2025-12-12) + +### Features + +- **ui:** fix tests ([9f26f61](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9f26f61ceae8eb4052255c4e908f414e058eed1c)) + # [2.17.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.16.0...@walmart/associate-exp-hub-hub@2.17.0) (2025-12-02) ### Features --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.17.0", + "version": "2.18.0", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/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.11.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.10.1...@walmart/associate-exp-hub-mini-app@1.11.0) (2025-12-12) + +### Features + +- **ui:** fix tests ([9f26f61](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/9f26f61ceae8eb4052255c4e908f414e058eed1c)) +- **ui:** work context fix ([5754a78](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/5754a781ca572d1e59f6998c387a56350166fb32)) + ## [1.10.1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.10.0...@walmart/associate-exp-hub-mini-app@1.10.1) (2025-12-10) **Note:** Version bump only for package @walmart/associate-exp-hub-mini-app --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.10.1", + "version": "1.11.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.20.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.19.1...@walmart/associate-exp-hub-team-switcher@2.20.0) (2025-12-12) + +### Features + +- **ui:** apply will now give switcher selection with metadata ([9b4e39a](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9b4e39a8e7aa6a6139494c84429d02718f613886)) +- **ui:** fix tests ([9f26f61](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9f26f61ceae8eb4052255c4e908f414e058eed1c)) +- **ui:** updated prop for switcher, fixed broken tests ([65e5673](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/65e5673e1396669a77fb44da95075263d2a138b0)) +- **ui:** work context fix ([5754a78](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/5754a781ca572d1e59f6998c387a56350166fb32)) + ## [2.19.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.19.0...@walmart/associate-exp-hub-team-switcher@2.19.1) (2025-12-10) **Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.19.1", + "version": "2.20.0", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.18.0 - @walmart/associate-exp-hub-mini-app@1.11.0 - @walmart/associate-exp-hub-team-switcher@2.20.0
d4c7a2e9335fab02317357d7f721eae1c020ef76
--- packages/allspark-foundation-hub/__tests__/supplyChain/hooks/useGetSupplyChainTeamsByStore.test.ts @@ -45,6 +45,7 @@ describe('useGetSupplyChainAllTeamsBySite', () => { const dispatch = jest.fn(); const mockLogger = { error: jest.fn(), + info: jest.fn(), }; beforeEach(() => {
test(ui): update test failure
test(ui): update test failure
5896be44ffed772c095fd7adba41e5624677bbc0
--- __tests__/home/containers/__snapshots__/HomeScreenTest.tsx.snap @@ -91,7 +91,7 @@ exports[`HomeScreen matches snapshot 1`] = ` } } > - <Button + <LinkButton UNSAFE_style={ { "flexGrow": 1, @@ -100,10 +100,9 @@ exports[`HomeScreen matches snapshot 1`] = ` "textDecorationLine": "underline", } } - variant="tertiary" > Not now - </Button> + </LinkButton> </View> <View style={ --- src/home/containers/HomeScreen/index.tsx @@ -145,7 +145,6 @@ export const HomeScreen: React.FC<Props> = (props) => { actionButtonProps={[ { buttonProps: { - variant: 'tertiary', UNSAFE_style: { flexGrow: 1, fontSize: 16, --- yarn.lock @@ -23320,11 +23320,11 @@ __metadata: "typescript@patch:typescript@npm%3A~5.8.3#optional!builtin<compat/typescript>": version: 5.8.3 - resolution: "typescript@patch:typescript@npm%3A5.8.3%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Ftypescript%252F-%252Ftypescript-5.8.3.tgz#optional!builtin<compat/typescript>::version=5.8.3&hash=379a07" + resolution: "typescript@patch:typescript@npm%3A5.8.3%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252Ftypescript%252F-%252Ftypescript-5.8.3.tgz#optional!builtin<compat/typescript>::version=5.8.3&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/92ea03509e06598948559ddcdd8a4ae5a7ab475766d5589f1b796f5731b3d631a4c7ddfb86a3bd44d58d10102b132cd4b4994dda9b63e6273c66d77d6a271dbd + checksum: 10c0/39117e346ff8ebd87ae1510b3a77d5d92dae5a89bde588c747d25da5c146603a99c8ee588c7ef80faaf123d89ed46f6dbd918d534d641083177d5fac38b8a1cb languageName: node linkType: hard
fix(nudge): fix not now button issue (#5054)
fix(nudge): fix not now button issue (#5054) Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com>
f9b4a0988bbe4f535fcf9448e16b5275bdfee3b4
--- package.json @@ -78,13 +78,9 @@ "@types/react-test-renderer": "^18.0.7", "@walmart/allspark-authentication": "6.4.1", "@walmart/allspark-foundation": "^6.32.0", - "@walmart/allspark-graphql-client": "6.3.29", "@walmart/allspark-http-client": "6.3.29", "@walmart/allspark-utils": "6.5.1", "@walmart/config-components": "4.6.5", - "@walmart/core-services": "6.5.3", - "@walmart/core-services-allspark": "6.29.0-alpha.0", - "@walmart/core-utils": "6.3.10", "@walmart/expo-config-plugins": "0.1.4", "@walmart/gtp-shared-components": "2.2.4", "@walmart/me-at-walmart-athena-queries": "6.26.1", @@ -94,7 +90,6 @@ "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.10.7", "@walmart/react-native-sumo-sdk": "2.8.0", - "@walmart/redux-store": "6.3.29", "babel-jest": "^29.6.3", "chance": "^1.1.11", "cpy-cli": "^5.0.0", @@ -161,12 +156,7 @@ } }, "resolutions": { - "@walmart/core-services-allspark": "6.29.0-alpha.0", - "@walmart/core-services": "6.5.3", - "@walmart/core-utils": "6.3.10", - "@walmart/redux-store": "6.3.29", "@walmart/config-components": "4.6.5", - "@walmart/react-native-env": "6.3.21", "react": "18.3.1", "react-native": "0.76.9", "react-native-reanimated": "3.16.1", --- yarn.lock @@ -6147,15 +6147,6 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-graphql-client@npm:6.3.29": - version: 6.3.29 - resolution: "@walmart/allspark-graphql-client@npm:6.3.29::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-graphql-client%2F-%2Fallspark-graphql-client-6.3.29.tgz" - peerDependencies: - "@walmart/allspark-foundation": "*" - checksum: 10c0/3a7890486780c06ef9621a39a829c5587eaf91f6274d58339001d8b2db84a5dce672ad27fdd5275f4fc6126428aba0f11a0e98a18b99e02fa979dd08b93b4493 - languageName: node - linkType: hard - "@walmart/allspark-http-client@npm:6.3.29": version: 6.3.29 resolution: "@walmart/allspark-http-client@npm:6.3.29::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-http-client%2F-%2Fallspark-http-client-6.3.29.tgz" @@ -6216,37 +6207,6 @@ __metadata: languageName: node linkType: hard -"@walmart/core-services-allspark@npm:6.29.0-alpha.0": - version: 6.29.0-alpha.0 - resolution: "@walmart/core-services-allspark@npm:6.29.0-alpha.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcore-services-allspark%2F-%2Fcore-services-allspark-6.29.0-alpha.0.tgz" - peerDependencies: - "@walmart/allspark-foundation": ">=6.26.0" - "@walmart/me-at-walmart-common": "workspace:^" - "@walmart/me-at-walmart-container": "workspace:^" - checksum: 10c0/b9753a6376722422734a92b2f6e146e81e2dc798a43f82574112ed928e96ac52b15c2212438c3b66db1e40e3d7b6b0c0253e33f22252be6a6162ec840c1cfe9d - languageName: node - linkType: hard - -"@walmart/core-services@npm:6.5.3": - version: 6.5.3 - resolution: "@walmart/core-services@npm:6.5.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcore-services%2F-%2Fcore-services-6.5.3.tgz" - peerDependencies: - "@walmart/allspark-foundation": "*" - "@walmart/allspark-utils": "*" - "@walmart/me-at-walmart-common": "*" - checksum: 10c0/93a98b879fe7d61d0a404522e9db76afd7cf97d0f92094a3a6fdb51ffe6f55828070a42c0c457a8048bb00094ddd6ab551542b0222425c4040fcbf3a8bc0f564 - languageName: node - linkType: hard - -"@walmart/core-utils@npm:6.3.10": - version: 6.3.10 - resolution: "@walmart/core-utils@npm:6.3.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcore-utils%2F-%2Fcore-utils-6.3.10.tgz" - peerDependencies: - "@walmart/allspark-utils": "*" - checksum: 10c0/e6cd72b6ed7efe0f6bffe02f154766fc90ccb24550c6ccee6908cae14a03528aaf609bd7ab988f1dba05f788758009be20e3e139ccd28a0c2c7466fbb9cfaeae - languageName: node - linkType: hard - "@walmart/expo-config-plugins@npm:0.1.4": version: 0.1.4 resolution: "@walmart/expo-config-plugins@npm:0.1.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fexpo-config-plugins%2F-%2F%40walmart%2Fexpo-config-plugins-0.1.4.tgz" @@ -6396,16 +6356,6 @@ __metadata: languageName: node linkType: hard -"@walmart/redux-store@npm:6.3.29": - version: 6.3.29 - resolution: "@walmart/redux-store@npm:6.3.29::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fredux-store%2F-%2Fredux-store-6.3.29.tgz" - peerDependencies: - "@walmart/allspark-foundation": "*" - "@walmart/me-at-walmart-common": "*" - checksum: 10c0/b4ebf30bb6179144b5d4ff4a98e3a619a8319d1ba43a009870ea23cf9c916d924db09ffa0be46ccd1f075b1b5ceee53d0f2da676c5f39192ee3a4399f70e61ec - languageName: node - linkType: hard - "@walmart/wmconnect-mini-app@workspace:.": version: 0.0.0-use.local resolution: "@walmart/wmconnect-mini-app@workspace:." @@ -6450,13 +6400,9 @@ __metadata: "@types/react-test-renderer": "npm:^18.0.7" "@walmart/allspark-authentication": "npm:6.4.1" "@walmart/allspark-foundation": "npm:^6.32.0" - "@walmart/allspark-graphql-client": "npm:6.3.29" "@walmart/allspark-http-client": "npm:6.3.29" "@walmart/allspark-utils": "npm:6.5.1" "@walmart/config-components": "npm:4.6.5" - "@walmart/core-services": "npm:6.5.3" - "@walmart/core-services-allspark": "npm:6.29.0-alpha.0" - "@walmart/core-utils": "npm:6.3.10" "@walmart/expo-config-plugins": "npm:0.1.4" "@walmart/gtp-shared-components": "npm:2.2.4" "@walmart/me-at-walmart-athena-queries": "npm:6.26.1" @@ -6466,7 +6412,6 @@ __metadata: "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.10.7" "@walmart/react-native-sumo-sdk": "npm:2.8.0" - "@walmart/redux-store": "npm:6.3.29" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" cpy-cli: "npm:^5.0.0"
Adding package.json changes
Adding package.json changes
a929ec3c0a9dc5540d0e5278447286d0e739789f
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.1-alpha.9", + "version": "1.15.1-alpha.10", "main": "dist/index.js", "files": [ "dist" --- src/index.tsx @@ -3,6 +3,7 @@ import {MyTeamFeature} from './common/feature'; import {FEATURE_NAME} from './common/constants'; import {FeatureTags, ScreenTags} from '@walmart/me-at-walmart-common'; import {MyTeamMiniApp} from './navigation'; +import {renderDrawerButton} from '@walmart/allspark-foundation/Navigation'; export * from './shared'; @@ -13,6 +14,9 @@ export default MyTeamFeature.createModule({ ['myTeam.root']: MyTeamFeature.createScreen(MyTeamMiniApp, { tags: [ScreenTags.MyTeamTab], clockCheckRequired: true, + options: { + headerLeft: renderDrawerButton, + }, }), }), translations: myTeamTranslations,
Update my team app version
Update my team app version
53dd79929271aa10ff97938a36617139d10f26e3
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.14", + "version": "2.0.15", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.14", + "version": "2.0.15", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
052d349894e1479cb895030c2c52e9e388b94e5b
--- README.md @@ -44,3 +44,5 @@ When running on the iOS simulator while connected to VPN (or otherwise on an int - `./scripts/certifyBootedSim.sh` +You will also need to add your SSH key to Walmart github using [these](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account) steps. +
Create README.md
Create README.md Added github step for ssh key
9ebf00938c8280aa33355b820451d0fcffe857ac
--- graphql.yml @@ -41,6 +41,11 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.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' @@ -98,6 +103,11 @@ applications: # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.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'
feat(ui): resolved conflicts
feat(ui): resolved conflicts
6af32d2b56639f9073322e79a30a67eef3db7389
--- packages/allspark-foundation/src/Navigation/client.tsx @@ -43,9 +43,7 @@ export class NavigationClient { 'dispatch', 'reset', ]); - private _screenChangeEventManager = new EventManager<EventManagerTypes>([ - 'screenChange', - ]); + private _eventManager = new EventManager<EventManagerTypes>(['screenChange']); private _ref = createRef<NavigationContainerRef<any>>(); @@ -91,7 +89,7 @@ export class NavigationClient { */ private _screenChangeHandler(currentRoute?: string, previousRoute?: string) { if (currentRoute && currentRoute !== previousRoute) { - this._screenChangeEventManager.runEvent('screenChange', { + this._eventManager.runEvent('screenChange', { currentRoute, previousRoute, }); @@ -134,8 +132,13 @@ export class NavigationClient { } /** - * Configure root navigation. Only to be used by the - * AllsparkContainer application. + * A convenience method for configuring the navigation client. + * Will handle setting the navigation resolvers, linking options, and modals in one call. + * + * To be use by an `AllsparkContainer` **ONLY**. + * + * Will be done automatically for a container if a navigation config is provided while + * creating the container. */ public configure(config: AllsparkNavigationConfig) { this._config = config; @@ -147,6 +150,10 @@ export class NavigationClient { if (config.resolvers) { this.setNavigationResolvers(config.resolvers); } + + if (config.linking) { + this.setLinkingOptions(config.linking); + } } /** @@ -160,7 +167,7 @@ export class NavigationClient { * // Configure Resolver * AllsparkNavigationClient.setNavigationResolvers({ * 'feature1.home': (screen, params) => { name: 'container.tab1', params: { screen, params } }, - * '^feature2': (screen, params) => { name: 'container.tab2, params: { screen, params } } + * '^feature2': (screen, params) => { name: 'container.tab2', params: { screen, params } } * }); * * // So that a navigation calls like this: @@ -176,7 +183,7 @@ export class NavigationClient { } /** - * Update linking configuration + * Merges the provided linking options with the current linking options. */ public setLinkingOptions(options: LinkingOptions<any>) { const { config, ...restOptions } = options; @@ -366,7 +373,7 @@ export class NavigationClient { throw new Error('Screen change handler is not a function'); } - return this._screenChangeEventManager.addListener('screenChange', handler); + return this._eventManager.addListener('screenChange', handler); } // --- Modals --- // --- packages/allspark-foundation/src/Navigation/types.ts @@ -9,6 +9,7 @@ import type { RouteConfig, EventMapBase, PathConfigMap, + LinkingOptions, } from '@react-navigation/native'; import { StackNavigationEventMap, @@ -55,6 +56,7 @@ export type AllsparkNavigationConfig = { theme?: Theme; modals?: ModalOptions; resolvers?: NavigationResolverMap; + linking?: LinkingOptions<any>; }; /**
fix: navigation comments and linking setup in configure method
fix: navigation comments and linking setup in configure method
e887b3296a472bd17530181fe1a5b2d84694c221
--- package-lock.json @@ -4552,9 +4552,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.55.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.55.0.tgz", - "integrity": "sha512-Aas3lUKjHf3Tis6fBK7CaXAyxAH+kkcjSY6Bjvj8z0ylVoPbJh5BIJOB4c7UivXqC+c8y3j8HJ/7jmq9T2ZitA==" + "version": "0.56.0", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.56.0.tgz", + "integrity": "sha512-jSyMwk3dSN9f7aeQQ16TLvhxRJhW+C5VXhPIBq65OQ9ey3tAuVqnXaEUUtgsZJPIvv8Y+Gak4BL7FvR7ul1rFA==" }, "@walmart/wfm-ui": { "version": "0.2.11", --- package.json @@ -104,7 +104,7 @@ "@walmart/taskit-mini-app": "0.18.0", "@walmart/time-clock-mini-app": "0.5.1", "@walmart/ui-components": "1.4.0-rc.0", - "@walmart/welcomeme-mini-app": "0.55.0", + "@walmart/welcomeme-mini-app": "0.56.0", "@walmart/wfm-ui": "0.2.11", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
build: welcomeME v0.56.0
build: welcomeME v0.56.0
030b7f3538f2753cbf90d7917cd432252fefe666
--- package-lock.json @@ -4604,9 +4604,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.0.0-beta.16", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.0.0-beta.16.tgz", - "integrity": "sha512-K2bpXy/MVyEnSY36se5U0oIbAM7+hO0OIdc/foe3HJsvZsz62fNB6eRDyRd0Um4R/zCe1+EgrIYJT41jDBu2vg==", + "version": "1.0.0-beta.17", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.0.0-beta.17.tgz", + "integrity": "sha512-Kf9qQ4kV/Ojwe/c7pLAhtTjlWoSIDozDfenzL3vqeH5FAQyVIdf+xAP7eHu/6EjwZjzx/bkAykyXGTq6PQE4dg==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", --- package.json @@ -77,7 +77,7 @@ "@walmart/ask-sam-mini-app": "0.41.7", "@walmart/config-components": "3.0.2", "@walmart/core-services": "^1.0.0-beta.7", - "@walmart/core-services-allspark": "^1.0.0-beta.16", + "@walmart/core-services-allspark": "^1.0.0-beta.17", "@walmart/core-utils": "^0.0.2", "@walmart/counts-component-miniapp": "0.0.34", "@walmart/exception-mini-app": "0.40.4",
bumping core services for cache fixes
bumping core services for cache fixes
e75fa5616806e6d899edb373b0de550e033b6b4b
--- package-lock.json @@ -4263,7 +4263,7 @@ "@walmart/gtp-shared-components": { "version": "1.2.0", "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-1.2.0.tgz", - "integrity": "sha1-uZ6zL5R12W20AFyA5eFskWpu0Iw=", + "integrity": "sha512-OxDrYdXQeR22V+aTBNqQHRJFyIOlOkp2erG4KS+0lEWWve1EApNHNyPgIbFQbydtWn1rybwFossRsVszkr2XKQ==", "requires": { "@react-native-community/datetimepicker": "^3.0.8", "@react-native-community/picker": "^1.6.5",
action name changed
action name changed
c9a82976be3a4aa18b2719e33382edb60c68cd12
--- .yarn/patches/@walmart-time-clock-mini-app-npm-3.19.12-d3039974f6.patch --- package.json @@ -173,7 +173,7 @@ "@walmart/talent-preboarding-shared-utils": "^0.1.114", "@walmart/taskit-mini-app": "5.51.0", "@walmart/time-clock-feature-app": "1.0.0-beta.10", - "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.11#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.11-d3039974f6.patch", + "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.12#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.12-d3039974f6.patch", "@walmart/timesheet-feature-app": "0.2.0-beta.17", "@walmart/topstock-mini-app": "1.28.16", "@walmart/translator-mini-app": "1.8.14", --- yarn.lock @@ -8577,7 +8577,7 @@ __metadata: "@walmart/talent-preboarding-shared-utils": "npm:^0.1.114" "@walmart/taskit-mini-app": "npm:5.51.0" "@walmart/time-clock-feature-app": "npm:1.0.0-beta.10" - "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.11#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.11-d3039974f6.patch" + "@walmart/time-clock-mini-app": "patch:@walmart/time-clock-mini-app@npm%3A3.19.12#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.12-d3039974f6.patch" "@walmart/timesheet-feature-app": "npm:0.2.0-beta.17" "@walmart/topstock-mini-app": "npm:1.28.16" "@walmart/translator-mini-app": "npm:1.8.14" @@ -9537,9 +9537,9 @@ __metadata: languageName: node linkType: hard -"@walmart/time-clock-mini-app@npm:3.19.11": - version: 3.19.11 - resolution: "@walmart/time-clock-mini-app@npm:3.19.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftime-clock-mini-app%2F-%2F%40walmart%2Ftime-clock-mini-app-3.19.11.tgz" +"@walmart/time-clock-mini-app@npm:3.19.12": + version: 3.19.12 + resolution: "@walmart/time-clock-mini-app@npm:3.19.12::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftime-clock-mini-app%2F-%2F%40walmart%2Ftime-clock-mini-app-3.19.12.tgz" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -9585,13 +9585,13 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/ce3cc40e761a3119b059ac8eca93c815be764e54631c7908427d56c2c04a462dc14a462280afbc50b05d170e27abb5e5a2ab08e21a4de2eedb4d7bd43e951705 + checksum: 10c0/80b98ffd6ed718bec1624eb8ca5ba3b7bd0efce3cc9ed873872ef6fdde6307b40d6c8f89fdd07b42943a0551b2a8e201cc1f0897edb60fdecb87e6fe2e1168c4 languageName: node linkType: hard -"@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.11#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.11-d3039974f6.patch": - version: 3.19.11 - resolution: "@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.11%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Ftime-clock-mini-app%252F-%252F%2540walmart%252Ftime-clock-mini-app-3.19.11.tgz#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.11-d3039974f6.patch::version=3.19.11&hash=9badb2" +"@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.12#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.12-d3039974f6.patch": + version: 3.19.12 + resolution: "@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.12%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Ftime-clock-mini-app%252F-%252F%2540walmart%252Ftime-clock-mini-app-3.19.12.tgz#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.12-d3039974f6.patch::version=3.19.12&hash=9badb2" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -9637,7 +9637,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/54511eb556dbd95ff21e1ff2da80840bc90023ad01bb3d93acfd2599fc35413ff67688c8533b6f300d7578620b71ce1f054a9f509fdcfaaeaecb33013934df7f + checksum: 10c0/8e13580b41ee6efab593f6b53720bc6297b0ed8f64221263df12bd54bad67d27883906a51b2dd6c8fda2f49c6147993107f34191e618f36fefd78a9ebe06f153 languageName: node linkType: hard
feat: Time Clock 35 - Bug fixes (#5214)
feat: Time Clock 35 - Bug fixes (#5214) Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
53ce3720aca6570d660587cd6042207fea6960a3
--- package-lock.json @@ -48,7 +48,7 @@ "@walmart/exception-mini-app": "1.0.14", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.9", - "@walmart/financial-wellbeing-feature-app": "1.0.82", + "@walmart/financial-wellbeing-feature-app": "1.0.83", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "^2.0.0", @@ -5189,9 +5189,9 @@ } }, "node_modules/@walmart/financial-wellbeing-feature-app": { - "version": "1.0.82", - "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.0.82.tgz", - "integrity": "sha512-Zk1BvpaMduZEurh417dyE13V6I52NwBmIDH8AL32PhGik2W7+ePhblLVjmQZFivJCKw8iPgVbmWHZ+SQHG+/Zw==", + "version": "1.0.83", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.0.83.tgz", + "integrity": "sha512-K7/W1bvDuJTr4XuYCoewtH/yVCFxSXFvj/hlp/fDuIXOi4klP2zVgistSlToSU/dZkbKOkqFN7O3KrsrXSP+TQ==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -25166,9 +25166,9 @@ "integrity": "sha512-zflnSCCc2yaDFeasMBtEuH74oGEZg1E2auhNUZ05C6zzO9yZ+oHun9+0jhnt+ag6zqZDCG1/AbgUJjfzAgY2dA==" }, "@walmart/financial-wellbeing-feature-app": { - "version": "1.0.82", - "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.0.82.tgz", - "integrity": "sha512-Zk1BvpaMduZEurh417dyE13V6I52NwBmIDH8AL32PhGik2W7+ePhblLVjmQZFivJCKw8iPgVbmWHZ+SQHG+/Zw==" + "version": "1.0.83", + "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.0.83.tgz", + "integrity": "sha512-K7/W1bvDuJTr4XuYCoewtH/yVCFxSXFvj/hlp/fDuIXOi4klP2zVgistSlToSU/dZkbKOkqFN7O3KrsrXSP+TQ==" }, "@walmart/functional-components": { "version": "2.0.6", --- package.json @@ -91,7 +91,7 @@ "@walmart/exception-mini-app": "1.0.14", "@walmart/facilities-management-miniapp": "0.4.2", "@walmart/feedback-all-spark-miniapp": "0.9.9", - "@walmart/financial-wellbeing-feature-app": "1.0.82", + "@walmart/financial-wellbeing-feature-app": "1.0.83", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "^2.0.0",
bumped financial-wellbeing-feature-app to 1.0.83
bumped financial-wellbeing-feature-app to 1.0.83
8d2c96bc3f89f30900597d6377fc9a6db397d7b5
--- package.json @@ -124,7 +124,7 @@ "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.3.0-rc.0", "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.14", - "@walmart/ims-print-services-ui": "2.24.2", + "@walmart/ims-print-services-ui": "2.24.3", "@walmart/inbox-mini-app": "0.105.3", "@walmart/invue-react-native-sdk": "0.1.26-alpha.14", "@walmart/iteminfo-mini-app": "8.8.11", --- yarn.lock @@ -8114,9 +8114,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ims-print-services-ui@npm:2.24.2": - version: 2.24.2 - resolution: "@walmart/ims-print-services-ui@npm:2.24.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2F%40walmart%2Fims-print-services-ui-2.24.2.tgz" +"@walmart/ims-print-services-ui@npm:2.24.3": + version: 2.24.3 + resolution: "@walmart/ims-print-services-ui@npm:2.24.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fims-print-services-ui%2F-%2F%40walmart%2Fims-print-services-ui-2.24.3.tgz" peerDependencies: "@react-native-firebase/analytics": ">=22.4.0" "@react-native-firebase/app": ">=22.4.0" @@ -8137,7 +8137,7 @@ __metadata: react-native: "*" react-native-wm-telemetry: ">=0.2.0" uuid: ">=3.3.2" - checksum: 10c0/5c6797744ee48c7c70aa8089a9412d920c36a26e7b4adcbbdc990e484c67100f9caece5ec3abde9e87e7c2c5520cb74a27f02a91cb324050ff3e2afcc2a27bc6 + checksum: 10c0/9a44d2454cf3f9a7305f8e46ecc4aa7c695c0b26732a0c1b10507f9bf9594a0cc2848d33a85ca1a2751d48ad75e75ce465cead52cd9260b4b12e758044808815 languageName: node linkType: hard @@ -8464,7 +8464,7 @@ __metadata: "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.3.0-rc.0" "@walmart/gtp-shared-components-3": "npm:@walmart/gtp-shared-components@3.0.0-beta.14" - "@walmart/ims-print-services-ui": "npm:2.24.2" + "@walmart/ims-print-services-ui": "npm:2.24.3" "@walmart/inbox-mini-app": "npm:0.105.3" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.14" "@walmart/iteminfo-mini-app": "npm:8.8.11"
fix(print): Bump Print UI to v2.24.3 (#5163)
fix(print): Bump Print UI to v2.24.3 (#5163) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
36b61e5ca1d5436a825612a64d97aa92435bd08c
--- packages/associate-exp-hub-hub/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. +# [2.4.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.3.0...@walmart/associate-exp-hub-hub@2.4.0) (2025-11-03) + +### Features + +- **ui:** update foundation version ([1b43bba](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/1b43bbad73fbc55efc09fb5532535a7222f749e2)) + # [2.3.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.2.0...@walmart/associate-exp-hub-hub@2.3.0) (2025-10-31) ### Features --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.3.0", + "version": "2.4.0", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-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.4.0-alpha.27](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.26...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.27) (2025-11-03) + +### Features + +- **ui:** update foundation version ([1b43bba](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/1b43bbad73fbc55efc09fb5532535a7222f749e2)) + # [1.4.0-alpha.26](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.25...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.26) (2025-10-31) ### Features --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.4.0-alpha.26", + "version": "1.4.0-alpha.27", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/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. +# [2.4.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.3.0...@walmart/associate-exp-hub-team-switcher@2.4.0) (2025-11-03) + +### Features + +- **ui:** update foundation version ([1b43bba](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/1b43bbad73fbc55efc09fb5532535a7222f749e2)) + # [2.3.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.2.0...@walmart/associate-exp-hub-team-switcher@2.3.0) (2025-10-31) ### Features --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.3.0", + "version": "2.4.0", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.4.0 - @walmart/associate-exp-hub-mini-app@1.4.0-alpha.27 - @walmart/associate-exp-hub-team-switcher@2.4.0
632ac2305a885fd336803cb2442b6dee35ff5701
--- .looper.multibranch.yml @@ -574,6 +574,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build Android Dev call: build-selector(market=$market, branch=feature, env_selected=dev, os_type=android) @@ -581,6 +582,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build iOS Dev call: build-selector(market=$market, branch=feature, env_selected=dev, os_type=ios) @@ -588,6 +590,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build Both Beta call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=all) @@ -595,6 +598,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build Android Beta call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=android) @@ -602,6 +606,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build iOS Beta call: build-selector(market=$market, branch=feature, env_selected=beta, os_type=ios) @@ -609,6 +614,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build Both Teflon call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=all) @@ -616,6 +622,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build Android Teflon call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=android) @@ -623,6 +630,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build iOS Teflon call: build-selector(market=$market, branch=feature, env_selected=teflon, os_type=ios) @@ -630,6 +638,7 @@ branches: - market: label: "Enter Market from the following - US, INTL " type: STRING + defaultValue: US - manual: name: Build Simulator call: push(simulator)
Update .looper.multibranch.yml
Update .looper.multibranch.yml
fe09553a6625d9bb3bc4da05ce8c14564712f7b5
--- package.json @@ -98,7 +98,7 @@ "@walmart/core-services-allspark": "workspace:^", "@walmart/core-widget-registry": "workspace:^", "@walmart/counts-component-miniapp": "0.2.7", - "@walmart/digital-locks-mini-app": "1.4.6", + "@walmart/digital-locks-mini-app": "1.4.6-hotfix1", "@walmart/emergency-mini-app": "1.32.5", "@walmart/exception-mini-app": "1.8.18", "@walmart/expo-config-plugins": "^0.2.0", --- yarn.lock @@ -7032,9 +7032,9 @@ __metadata: languageName: node linkType: hard -"@walmart/digital-locks-mini-app@npm:1.4.6": - version: 1.4.6 - resolution: "@walmart/digital-locks-mini-app@npm:1.4.6::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fdigital-locks-mini-app%2F-%2F%40walmart%2Fdigital-locks-mini-app-1.4.6.tgz" +"@walmart/digital-locks-mini-app@npm:1.4.6-hotfix1": + version: 1.4.6-hotfix1 + resolution: "@walmart/digital-locks-mini-app@npm:1.4.6-hotfix1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fdigital-locks-mini-app%2F-%2F%40walmart%2Fdigital-locks-mini-app-1.4.6-hotfix1.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.0.0" expo-haptics: ~13.0.1 @@ -7045,7 +7045,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/33e59fa06f4346798b307ba9e66148218846744ce5c07b1f6cd8d133fbbc64472615a4d5287b5c523dfd263fe10c9da2fcdff089accfbd60bbeb0e1858c3a147 + checksum: 10c0/1d416bdf80c8b575d2f54b0cfa171f22ae8583085b3dfe15413f4be5418e53e6e8aaaf471ca212fd1cdbe0d2efb6e3cec52889e411ebd39e29886828a3b620b4 languageName: node linkType: hard @@ -7611,7 +7611,7 @@ __metadata: "@walmart/core-services-allspark": "workspace:^" "@walmart/core-widget-registry": "workspace:^" "@walmart/counts-component-miniapp": "npm:0.2.7" - "@walmart/digital-locks-mini-app": "npm:1.4.6" + "@walmart/digital-locks-mini-app": "npm:1.4.6-hotfix1" "@walmart/emergency-mini-app": "npm:1.32.5" "@walmart/exception-mini-app": "npm:1.8.18" "@walmart/expo-config-plugins": "npm:^0.2.0"
fix(digitalkey): added clock check flag to all screens (#4562)
fix(digitalkey): added clock check flag to all screens (#4562) Co-authored-by: Alex Scarlett <Alex.Scarlett@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
08c20442e9079ed20349e8420fdff2d9d577789b
--- core/__tests__/startup/AuthFlowTest.ts @@ -22,6 +22,16 @@ describe('isSilentSignInError', () => { it('returns false for undefined error', () => { expect(isSilentSignInError(undefined)).toEqual(false); }); + + it('returns true for normal payload error', () => { + expect( + isSilentSignInError({ + name: 'token-refresh-error', + code: 'invalid_grant', + message: 'unknown, invalid, or expired refresh token', // 'grant revoked due to idle timeout' + }), + ).toEqual(true); + }); }); describe('authFlow', () => { --- core/src/startup/AuthFlow.ts @@ -5,6 +5,7 @@ import { IAuthActions, AuthActionTypes, AuthService, + AuthError, } from '@walmart/allspark-foundation/Auth'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; import {noop} from '@walmart/allspark-utils'; @@ -27,9 +28,9 @@ const SILENT_SSO_ERRORS = [ 'invalid_grant', ]; -export const isSilentSignInError = (error?: Error) => +export const isSilentSignInError = (error?: Error | AuthError) => SILENT_SSO_ERRORS.some((silentError) => - `${error}`?.toLowerCase().includes(silentError), + JSON.stringify(error)?.toLowerCase().includes(silentError), ); export function* authFlow() {
fix invalid_grant showing error feedback screen
fix invalid_grant showing error feedback screen
541d54bde6d0bdc412dc6d4b3cb5f3a6adafaa9f
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingContext.tsx @@ -27,8 +27,6 @@ export const SupplyChainOnboardingProvider = ({ children }: any) => { const isTeamLead: boolean = useSelector(UserSelectors.getIsUserTeamLead); const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried); const eligibleForOnboarding = isTeamLead || isSalaried || isPeopleLead; - const associateId = useSelector(UserSelectors.getWin); - const storageKey = ONBOARDING_KEY + associateId; const { data, teamPreferenceData, shiftPreferenceData, onCompleted } = useGetSupplyChainTeamsPreferenceQuery(); @@ -127,7 +125,6 @@ export const SupplyChainOnboardingProvider = ({ children }: any) => { showOnboardingFlow, hideOnboardingFlow, disableOnboarding, - storageKey, }} > {children} --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Screens/OnboardingScreen/OnboardingScreen.tsx @@ -34,7 +34,7 @@ export const OnboardingScreen = () => { const { t } = useAllsparkTranslation(FEATURE_ID); const teamSelectionTelemetry = useTelemetryService(); const logger = LoggerService.getContainerInstance(); - const { disableOnboarding, storageKey } = useOnboardingContext(); + const { disableOnboarding } = useOnboardingContext(); const { allSiteTeamsSections, error: teamsError,
Adding refresh data changes
Adding refresh data changes
3414f005a6d72af737cc5dcb646df19feda07563
--- packages/allspark-foundation/src/Navigation/components/Header.tsx @@ -1,4 +1,4 @@ -import React, { PropsWithChildren } from 'react'; +import React, { ComponentType, PropsWithChildren } from 'react'; import { Platform, StyleSheet } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { @@ -49,6 +49,12 @@ export const CloseButtonIcon = (p: { tintColor: string }) => ( <CloseIcon size={24} color={p.tintColor} /> ); +export type AllsparkStackHeaderProps = PropsWithChildren< + StackHeaderProps & { + BaseComponent?: ComponentType<StackHeaderProps>; + } +>; + /** * Default Header for use in navigation. * Automatically connected to AllsparkBanners to display global banners @@ -57,8 +63,8 @@ export const CloseButtonIcon = (p: { tintColor: string }) => ( * added to the combined stack navigator, the header should be controlled by the container. * @param props.bannersEnabled - control automatic banner behavior */ -export const StackHeader = (props: PropsWithChildren<StackHeaderProps>) => { - const { options, children } = props; +export const AllsparkStackHeader = (props: AllsparkStackHeaderProps) => { + const { options, children, BaseComponent = RNStackHeader } = props; const { top } = useSafeAreaInsets(); @@ -85,20 +91,23 @@ export const StackHeader = (props: PropsWithChildren<StackHeaderProps>) => { return ( <> - <RNStackHeader {...newProps} /> + <BaseComponent {...newProps} /> {children} </> ); }; -export const Header = ( - props: StackHeaderProps & { bannersEnabled?: boolean; bannerLimit?: number } -) => { +export type AllsparkHeaderProps = AllsparkStackHeaderProps & { + bannersEnabled?: boolean; + bannerLimit?: number; +}; + +export const Header = (props: AllsparkHeaderProps) => { const { bannersEnabled = true, bannerLimit = 1, ...rest } = props; return ( - <StackHeader {...rest}> + <AllsparkStackHeader {...rest}> {bannersEnabled && <AllsparkBannersContainer.List limit={bannerLimit} />} - </StackHeader> + </AllsparkStackHeader> ); };
feat: add option to override base header component for extensive customization cases
feat: add option to override base header component for extensive customization cases
4ee449d77ab0a1aae514ab176ab91e695113d33a
--- CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.5](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.4...v6.36.0-alpha.5) (2025-09-09) + + +### Bug Fixes + +* hide dev menu options in prod for impersonation users ([#4687](https://gecgithub01.walmart.com/allspark/allspark-core/issues/4687)) ([6e0f5e3](https://gecgithub01.walmart.com/allspark/allspark-core/commit/6e0f5e350e3c59f138cca84b71bd56e3d8770877)) + + + + + # [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) **Note:** Version bump only for package @walmart/me-at-walmart --- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.36.0-alpha.4", + "version": "6.36.0-alpha.5", "npmClient": "yarn", "changelogPreset": "angular", "command": { --- packages/core-services-allspark/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.5](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.4...v6.36.0-alpha.5) (2025-09-09) + +**Note:** Version bump only for package @walmart/core-services-allspark + + + + + # [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) **Note:** Version bump only for package @walmart/core-services-allspark --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "6.36.0-alpha.4", + "version": "6.36.0-alpha.5", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/core-widget-registry/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.5](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.4...v6.36.0-alpha.5) (2025-09-09) + +**Note:** Version bump only for package @walmart/core-widget-registry + + + + + # [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) **Note:** Version bump only for package @walmart/core-widget-registry --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "6.36.0-alpha.4", + "version": "6.36.0-alpha.5", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", --- packages/me-at-walmart-common/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.5](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.4...v6.36.0-alpha.5) (2025-09-09) + +**Note:** Version bump only for package @walmart/me-at-walmart-common + + + + + # [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) **Note:** Version bump only for package @walmart/me-at-walmart-common --- packages/me-at-walmart-common/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-common", - "version": "6.36.0-alpha.4", + "version": "6.36.0-alpha.5", "description": "Common utilities and components for Me@Walmat mini apps", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-container/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.36.0-alpha.5](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.4...v6.36.0-alpha.5) (2025-09-09) + +**Note:** Version bump only for package @walmart/me-at-walmart-container + + + + + # [6.36.0-alpha.4](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.36.0-alpha.3...v6.36.0-alpha.4) (2025-09-08) **Note:** Version bump only for package @walmart/me-at-walmart-container --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "6.36.0-alpha.4", + "version": "6.36.0-alpha.5", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version
c38e25947a043b40a5928dd6acc67fcfa4c570a2
--- package-lock.json @@ -4553,9 +4553,9 @@ } }, "@walmart/core-services": { - "version": "1.0.12", - "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.0.12.tgz", - "integrity": "sha512-HjDtpCvMikH0RpxWwtexmf8RXWnA0pfrTUgJ/DobAHCfR9efEvA0sWuiIx7hpjeSQWIm3IZhziy8C3k0i4HH6Q==", + "version": "1.0.13", + "resolved": "https://npme.walmart.com/@walmart/core-services/-/core-services-1.0.13.tgz", + "integrity": "sha512-Xl5NdX0gr2klzR3cz2eb6YkeANvRmmUkz/TmNeQQBsXLfuchZy3aEY+K5QyKfW90W7ilF2hpmg2a98NGtQk5QA==", "requires": { "@walmart/core-utils": "^1.0.8", "axios": "^0.26.0", @@ -4592,9 +4592,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.3.1", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.3.1.tgz", - "integrity": "sha512-X8bdLPojDs4nDX3st97Gnf4fw7wSRfW2cKN5UzLVav9GC+w0YxadEdYgitUeEGt+ftI/uf7FC6tXyy498LLYtg==", + "version": "1.4.0", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.4.0.tgz", + "integrity": "sha512-QjGIMZ/qdBI9P0hquesaYsfkQhbNZ/J3l6u2rqrMG2i7VDBDlj6WaFF5GwEspQnKjYFfFrbhvC9k0MtjyJfGPw==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", @@ -4615,9 +4615,9 @@ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "luxon": { - "version": "2.4.0", - "resolved": "https://npme.walmart.com/luxon/-/luxon-2.4.0.tgz", - "integrity": "sha512-w+NAwWOUL5hO0SgwOHsMBAmZ15SoknmQXhSO0hIbJCAmPKSsGeK8MlmhYh2w6Iib38IxN2M+/ooXWLbeis7GuA==" + "version": "2.5.0", + "resolved": "https://npme.walmart.com/luxon/-/luxon-2.5.0.tgz", + "integrity": "sha512-IDkEPB80Rb6gCAU+FEib0t4FeJ4uVOuX1CQ9GsvU3O+JAGIgu0J7sf1OarXKaKDygTZIoJyU6YdZzTFRu+YR0A==" }, "uuid": { "version": "8.3.2", --- package.json @@ -75,8 +75,8 @@ "@walmart/allspark-neon-core": "0.1.26", "@walmart/ask-sam-mini-app": "^0.41.8", "@walmart/config-components": "3.0.2", - "@walmart/core-services": "^1.0.12", - "@walmart/core-services-allspark": "^1.3.1", + "@walmart/core-services": "^1.0.13", + "@walmart/core-services-allspark": "^1.4.0", "@walmart/core-utils": "^1.0.8", "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.41.1",
bumping core services
bumping core services
1db43e34fe7e256783097787cd9772b64a2296bf
--- package-lock.json @@ -5084,9 +5084,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.6.5", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.6.5.tgz", - "integrity": "sha512-QKbuZCEf9l9hbk1VocvpJ5VPyJwnhQOmFtL4XslaB9TaQrgCIevvZxj1z/Yys7b5MV/4N32qX0hLb4ejOH0Eiw==", + "version": "1.6.6", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.6.6.tgz", + "integrity": "sha512-TnqvcD9SXINXJNcfBxXTGDtZaG4/IIfEZnKg/AfGZbp2NQO1o9jtEoE10E/JdToXzPXvPVnB9gYEP2eYCBwieQ==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", @@ -5338,6 +5338,11 @@ "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.29.0.tgz", "integrity": "sha512-qxVserzdiG4xsZCLRIwYfRq/KuHsYSPkrl02tKHNhF5bhtWWo6oEUatBoSsY5BL8EVGOHk2ezsPWb2o5pg9Ryw==" }, + "@walmart/react-native-scanner-3.0": { + "version": "0.1.0", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.0.tgz", + "integrity": "sha512-B+ETcxQic7k0DJvFqb0P0Yh9fXlwAE9OuMGO3cKQQitOBuoIiJF6wNvdQLK9/ny08WZGbxygowOrqY5WCifzjw==" + }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", "resolved": "https://npme.walmart.com/@walmart/react-native-shared-navigation/-/react-native-shared-navigation-1.0.2.tgz", --- package.json @@ -102,6 +102,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "^0.3.7", "@walmart/react-native-sumo-sdk": "2.2.2-beta.2", + "@walmart/react-native-scanner-3.0": "0.1.0", "@walmart/redux-store": "2.0.4", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/schedule-mini-app": "0.18.0",
Project: Introducing scanner3
Project: Introducing scanner3
1a3a69c6ffe9174c21622029585f2cb3fc34111c
--- packages/allspark-foundation/__tests__/Container/registries.test.tsx @@ -7,7 +7,7 @@ import { describe('Registry Managers', () => { describe('ComponentRegistryManager', () => { - it('should add a feature registry and create a widget', () => { + it('Registry Managers should add a feature registry and create a widget', () => { const mockWidgetRegistry = { createWidget: jest.fn(), } as unknown as WidgetRegistry; @@ -15,19 +15,15 @@ import { const componentRegistry = ComponentRegistryManager(); componentRegistry.addFeatureRegistry('feature1', mockWidgetRegistry); componentRegistry.createComponent('feature1', 'component1', { prop: 'value' }); - expect(mockWidgetRegistry.createWidget).toHaveBeenCalledWith('component1', { prop: 'value' }); }); - it('should return undefined if the featureId is not found', () => { + it('Registry Managers should return undefined if the featureId is not found', () => { const componentRegistry = ComponentRegistryManager(); const result = componentRegistry.createComponent('unknownFeature', 'component1', {}); expect(result).toBeUndefined(); }); - }); - - describe('MethodRegistryManager', () => { - it('should add a method registry and run a method', () => { + it('MethodRegistryManager should add a method registry and run a method', () => { const mockMethodRegistry = { runMethod: jest.fn(), } as unknown as MethodRegistry; @@ -39,15 +35,12 @@ import { expect(mockMethodRegistry.runMethod).toHaveBeenCalledWith('method1', 'param1', 'param2'); }); - it('should return undefined if the featureId is not found', () => { + it('MethodRegistryManager should return undefined if the featureId is not found', () => { const methodRegistry = MethodRegistryManager(); const result = methodRegistry.createComponent('unknownFeature', 'method1', 'param1'); expect(result).toBeUndefined(); }); - }); - - describe('FeatureRegistryManager', () => { - it('should add feature registries and register a key-value pair', () => { + it('FeatureRegistryManager should add feature registries and register a key-value pair', () => { const mockRegistry = { register: jest.fn(), } as unknown as Registry; @@ -58,11 +51,10 @@ import { const featureRegistryManager = FeatureRegistryManager(); featureRegistryManager.addFeatureRegistries('feature1', featureRegistries); featureRegistryManager.register('feature1', 'registry1', 'key1', 'value1'); - expect(mockRegistry.register).toHaveBeenCalledWith('key1', 'value1'); }); - it('should return undefined if the featureId or registryId is not found', () => { + it('FeatureRegistryManager should return undefined if the featureId or registryId is not found', () => { const featureRegistryManager = FeatureRegistryManager(); const result = featureRegistryManager.register('unknownFeature', 'unknownRegistry', 'key1', 'value1'); expect(result).toBeUndefined(); --- packages/allspark-foundation/__tests__/Notification/sagas.test.ts @@ -0,0 +1,57 @@ +import { select, take } from 'redux-saga/effects'; +import { NotificationActionTypes } from '../../Notification//redux'; +import { NotificationSelectors } from '../../Notification//selectors'; +import { waitForNotificationInitialized, waitForNotificationRegister } from '../../Notification/sagas'; +import { NotificationProfile } from '../../Notification/types'; + +describe('Notification Sagas', () => { + describe('waitForNotificationInitialized', () => { + it('should return true if initialized is already true', () => { + const initializedState = true; + + const gen = waitForNotificationInitialized(); + + expect(gen.next().value).toEqual(select(NotificationSelectors.getInitializing)); + expect(gen.next(false).value).toEqual(select(NotificationSelectors.getInitialized)); + expect(gen.next(true).value).toEqual(select(NotificationSelectors.getInitializeError)); + expect(gen.next(false).value).toEqual(select(NotificationSelectors.getInitialized)); + expect(gen.next(initializedState).value).toBe(true); + }); + + it('should wait for INIT_SUCCESS if not initialized yet', () => { + const gen = waitForNotificationInitialized(); + + expect(gen.next().value).toEqual(select(NotificationSelectors.getInitializing)); + expect(gen.next(false).value).toEqual(select(NotificationSelectors.getInitialized)); + expect(gen.next(false).value).toEqual(select(NotificationSelectors.getInitializeError)); + expect(gen.next(false).value).toEqual( + take([NotificationActionTypes.INIT_SUCCESS, NotificationActionTypes.INIT_ERROR]) + ); + }); + }); + + describe('waitForNotificationRegister', () => { + it('should return the notification profile if registered is true', () => { + const profile: NotificationProfile = { /* mock profile data */ }; + + const gen = waitForNotificationRegister(); + + expect(gen.next().value).toEqual(select(NotificationSelectors.getRegistering)); + expect(gen.next(false).value).toEqual(select(NotificationSelectors.getRegistered)); + expect(gen.next(true).value).toEqual(select(NotificationSelectors.getRegisterError)); + expect(gen.next(false).value).toEqual(select(NotificationSelectors.getProfile)); + expect(gen.next(profile).value).toEqual(profile); + }); + + it('should wait for REGISTER_SUCCESS if not registered yet', () => { + const gen = waitForNotificationRegister(); + + expect(gen.next().value).toEqual(select(NotificationSelectors.getRegistering)); + expect(gen.next(false).value).toEqual(select(NotificationSelectors.getRegistered)); + expect(gen.next(false).value).toEqual(select(NotificationSelectors.getRegisterError)); + expect(gen.next(false).value).toEqual( + take([NotificationActionTypes.REGISTER_SUCCESS, NotificationActionTypes.REGISTER_ERROR]) + ); + }); + }); +});
registries and sagas unit test
registries and sagas unit test
6f10b21e75408fe57900664186a6c913de8accd1
--- __tests__/services/configTest.ts @@ -0,0 +1,100 @@ +import {getHttpConfig, getGraphQLConfig} from '../../src/services/config'; + +const miniAppPackage = require('../../package.json'); + +describe('getHttpConfig', () => { + it('should return the correct config', () => { + const envConfig = { + externalBffUrl: 'http://test.com', + consumerId: 'testConsumerId', + }; + + const expectedConfig = { + baseURL: 'http://test.com/api-proxy/service', + headers: { + 'wm_consumer.id': 'testConsumerId', + }, + }; + + expect(getHttpConfig(envConfig)).toEqual(expectedConfig); + }); +}); + +describe('getGraphQLConfig', () => { + it('should return the correct config for prod environment', () => { + const envConfig = { + env: 'prod', + }; + + const expectedConfig = { + headers: { + 'wm_consumer.id': '7d935f1c-b438-4b89-9324-83a5380acf75', + 'x-o-platform': 'roster-miniapp', + 'x-o-platform-version': '1.2.0', + }, + }; + + expect(getGraphQLConfig(envConfig)).toEqual(expectedConfig); + }); + + it('should return the correct config for non-prod environment', () => { + const envConfig = { + env: 'dev', + }; + + const expectedConfig = { + headers: { + 'wm_consumer.id': '1bfc1d19-903b-438b-be7e-b0733aade46b', + 'x-o-platform': 'roster-miniapp', + 'x-o-platform-version': '1.2.0', + }, + }; + + expect(getGraphQLConfig(envConfig)).toEqual(expectedConfig); + }); + it('should return the correct config when miniAppPackage.version is defined', () => { + global.miniAppPackage = {version: '1.0.0'}; + const envConfig = {env: 'dev'}; + + const expectedConfig = { + headers: { + 'wm_consumer.id': '1bfc1d19-903b-438b-be7e-b0733aade46b', + 'x-o-platform': 'roster-miniapp', + 'x-o-platform-version': '1.2.0', + }, + }; + + expect(getGraphQLConfig(envConfig)).toEqual(expectedConfig); + }); + + it('should return the correct config when miniAppPackage.version is not defined', () => { + global.miniAppPackage = {version: undefined}; + const envConfig = {env: 'dev'}; + + const expectedConfig = { + headers: { + 'wm_consumer.id': '1bfc1d19-903b-438b-be7e-b0733aade46b', + 'x-o-platform': 'roster-miniapp', + 'x-o-platform-version': '1.2.0', + }, + }; + + expect(getGraphQLConfig(envConfig)).toEqual(expectedConfig); + }); + + it('should return the correct config when miniAppPackage.version is not defined', () => { + jest.replaceProperty(miniAppPackage, 'version', undefined); + const envConfig = {env: 'dev'}; + + const expectedConfig = { + headers: { + 'wm_consumer.id': '1bfc1d19-903b-438b-be7e-b0733aade46b', + 'x-o-platform': 'roster-miniapp', + 'x-o-platform-version': '2.x.x', + }, + }; + + expect(getGraphQLConfig(envConfig)).toEqual(expectedConfig); + jest.restoreAllMocks(); + }); +});
Adding coverage for cofig file
Adding coverage for cofig file
083f248a99e58a43b2e5616f52bbbbf4093fbb03
--- package-lock.json @@ -65,7 +65,7 @@ "@walmart/payrollsolution_miniapp": "0.130.14", "@walmart/price-changes-mini-app": "1.6.10", "@walmart/profile-feature-app": "0.76.0", - "@walmart/push-to-talk-mini-app": "1.8.58", + "@walmart/push-to-talk-mini-app": "1.8.59", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.31.0-rc.1", @@ -5597,9 +5597,9 @@ } }, "node_modules/@walmart/push-to-talk-mini-app": { - "version": "1.8.58", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.8.58.tgz", - "integrity": "sha512-EvfQXznMbof0z/c8BL4gswYjSzTvghWlQavR6N16IPf/fbdL92jG7pnDWgiuXDGyK2EVb5QnGkWo8LqBJsW/Pg==", + "version": "1.8.59", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.8.59.tgz", + "integrity": "sha512-+2M8GUBWUg/tQgg2aJf7Mcd4PXgMTKVlJVxeeC36PiFIBhKPy6DtkhVkILz8xqaRJqDwbdEZPWSDkjnCNEz/jA==", "license": "UNLICENSED", "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", @@ -24981,9 +24981,9 @@ "integrity": "sha512-P4fXm0HihY3jsOkUX7ZVICRiLOUIDo16FVOZHeie7o611ZmslNScFNWwuzEcFulKsLRq4jSU+XQKrOlUqQlW2g==" }, "@walmart/push-to-talk-mini-app": { - "version": "1.8.58", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.8.58.tgz", - "integrity": "sha512-EvfQXznMbof0z/c8BL4gswYjSzTvghWlQavR6N16IPf/fbdL92jG7pnDWgiuXDGyK2EVb5QnGkWo8LqBJsW/Pg==" + "version": "1.8.59", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.8.59.tgz", + "integrity": "sha512-+2M8GUBWUg/tQgg2aJf7Mcd4PXgMTKVlJVxeeC36PiFIBhKPy6DtkhVkILz8xqaRJqDwbdEZPWSDkjnCNEz/jA==" }, "@walmart/react-native-encrypted-storage": { "version": "1.1.3", --- package.json @@ -107,7 +107,7 @@ "@walmart/payrollsolution_miniapp": "0.130.14", "@walmart/price-changes-mini-app": "1.6.10", "@walmart/profile-feature-app": "0.76.0", - "@walmart/push-to-talk-mini-app": "1.8.58", + "@walmart/push-to-talk-mini-app": "1.8.59", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.31.0-rc.1",
PTT Alarm Permissions Feature, GTP 1.x with Meganav Fixes
PTT Alarm Permissions Feature, GTP 1.x with Meganav Fixes
4ff807035125326f1f9cf4b34fa30e818927053b
--- .husky/commit-msg @@ -1,5 +1,11 @@ #!/bin/sh +# Emergency bypass: set SKIP_COMMITLINT=1 to bypass commitlint validation +if [ "$SKIP_COMMITLINT" = "1" ]; then + echo "SKIP_COMMITLINT flag detected, bypassing commitlint validation" + exit 0 +fi + # Skip commitlint for merge commits (they have auto-generated messages) if [ -f .git/MERGE_HEAD ]; then echo "Merge commit detected, skipping commitlint validation" --- docs/git-setup-recommendations.md @@ -0,0 +1,58 @@ +# Git Setup Recommendations + +## Recommended Git Configuration + +To improve your development workflow and reduce unnecessary merge commits, consider adding these Git configurations: + +```bash +# Set up git to use rebase by default for pulls +git config --global pull.rebase true + +# Or set it locally for this project only +git config pull.rebase true + +# Set up automatic setup of remote tracking branches +git config --global push.autoSetupRemote true + +# Use a more convenient default branch name +git config --global init.defaultBranch main +``` + +## Benefits + +- `pull.rebase true`: Avoids unnecessary merge commits when pulling changes +- `push.autoSetupRemote true`: Automatically sets upstream when pushing new branches +- Clean, linear commit history + +## Alternative Workflow + +Instead of `git pull origin develop`, consider using: + +```bash +# Fetch latest changes without merging +git fetch origin + +# Rebase your current branch on top of the latest develop +git rebase origin/develop + +# Or use pull with rebase (if configured above) +git pull --rebase origin develop +``` + +This approach maintains a cleaner commit history and reduces merge commit noise. + +## Emergency Bypass + +If you need to bypass commitlint validation in emergency situations, you can set the `SKIP_COMMITLINT` environment variable: + +```bash +# Bypass commitlint for a single commit +SKIP_COMMITLINT=1 git commit -m "emergency fix" + +# Or export it temporarily +export SKIP_COMMITLINT=1 +git commit -m "emergency fix" +unset SKIP_COMMITLINT +``` + +**Note:** Use this sparingly and only in genuine emergency situations.
chore: SMDV-8201 emergency bypass docs
chore: SMDV-8201 emergency bypass docs
9cfce6ead5af76d2dab52ebf417725a8c3081a8e
--- package.json @@ -161,7 +161,7 @@ "@walmart/sidekick-mini-app": "4.231.0", "@walmart/store-feature-orders": "1.34.7", "@walmart/talent-preboarding-mini-app": "1.0.48", - "@walmart/taskit-mini-app": "5.42.22", + "@walmart/taskit-mini-app": "5.42.26", "@walmart/time-clock-mini-app": "3.19.6", "@walmart/time-clock-mini-app-next": "3.0.0", "@walmart/topstock-mini-app": "1.27.1", --- yarn.lock @@ -8378,7 +8378,7 @@ __metadata: "@walmart/sidekick-mini-app": "npm:4.231.0" "@walmart/store-feature-orders": "npm:1.34.7" "@walmart/talent-preboarding-mini-app": "npm:1.0.48" - "@walmart/taskit-mini-app": "npm:5.42.22" + "@walmart/taskit-mini-app": "npm:5.42.26" "@walmart/time-clock-mini-app": "npm:3.19.6" "@walmart/time-clock-mini-app-next": "npm:3.0.0" "@walmart/topstock-mini-app": "npm:1.27.1" @@ -9282,12 +9282,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:5.42.22": - version: 5.42.22 - resolution: "@walmart/taskit-mini-app@npm:5.42.22::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.22.tgz" +"@walmart/taskit-mini-app@npm:5.42.26": + version: 5.42.26 + resolution: "@walmart/taskit-mini-app@npm:5.42.26::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.26.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/b80f1f0035156926f7240cb3355927f4bbedabe5b74f892d694e30f3b29a89494f2028761b02a9049592ec0bafcf1ed2ecb6619945aeb1f25dd5d16177fb5b74 + checksum: 10c0/e87ead91a59612d6af392b1ff5f09fb1758350a72a0caf743d128682837b1208eeb487be0bd16086a6fb1cc7ae0744f9773e319a0d60325eed4b05a48b79e701 languageName: node linkType: hard
feat(fixing retake photo issue): fixing retake photo issue
feat(fixing retake photo issue): fixing retake photo issue
272189f7c44c9c857e4748e48db24ba447187b4e
--- patches/@walmart+ui-components+1.15.6.patch @@ -0,0 +1,30 @@ +diff --git a/node_modules/@walmart/ui-components/components/DrawerButton/index.js b/node_modules/@walmart/ui-components/components/DrawerButton/index.js +index 405d1f8..dca14e2 100644 +--- a/node_modules/@walmart/ui-components/components/DrawerButton/index.js ++++ b/node_modules/@walmart/ui-components/components/DrawerButton/index.js +@@ -6,6 +6,7 @@ import styles from './styles'; + import { testID } from '../../utils'; + + const noop = () => {}; ++import {debounce} from 'lodash' + + export const DrawerButtonContext = createContext({ + renderBadge: null, +@@ -15,6 +16,8 @@ export const DrawerButtonContext = createContext({ + toggleDrawerLocked: noop, + }); + ++const debouncFn = debounce((navigation)=> navigation?.dispatch(DrawerActions.toggleDrawer()), 300, {leading:true}); ++ + export const DrawerButton = (props) => { + const { + style, iconStyle, onPress, +@@ -28,7 +31,7 @@ export const DrawerButton = (props) => { + }; + + const toggleDrawer = () => { +- navigation?.dispatch(DrawerActions.toggleDrawer()); ++ debouncFn(navigation); + onPress?.(); + }; +
mega nav shaking patch
mega nav shaking patch
9926f9589d685a251c8f9dee4547f962a0fbaecb
--- package.json @@ -126,7 +126,7 @@ "@walmart/onewalmart-miniapp": "1.0.24", "@walmart/pay-stub-miniapp": "0.15.3", "@walmart/payrollsolution_miniapp": "0.141.11", - "@walmart/price-changes-mini-app": "npm:1.10.15", + "@walmart/price-changes-mini-app": "1.10.15", "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch", "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "6.1.4",
resolved merge conflicts
resolved merge conflicts
e13df144c28fd77649e26456111fb7ae57d91a94
--- .yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch @@ -1222,7 +1222,7 @@ index 14c53b1eb12bcb387f56326dc4973499fd87654f..72b9d098378913f108594fae7fcf6c88 } } diff --git a/src/SketchCanvas.js b/src/SketchCanvas.js -index 8f4fe48faabc56015d76bad685818b1744038443..6b0b07ef499c185e9d26ca5ff3d0d807c044acb2 100644 +index 8f4fe48faabc56015d76bad685818b1744038443..be6ed46bff9025407f10aa630152eb7897139633 100644 --- a/src/SketchCanvas.js +++ b/src/SketchCanvas.js @@ -1,7 +1,7 @@ @@ -1236,9 +1236,11 @@ index 8f4fe48faabc56015d76bad685818b1744038443..6b0b07ef499c185e9d26ca5ff3d0d807 import ReactNative, { requireNativeComponent, NativeModules, -@@ -11,10 +11,11 @@ import ReactNative, { +@@ -9,12 +9,12 @@ import ReactNative, { + PanResponder, + PixelRatio, Platform, - ViewPropTypes, +- ViewPropTypes, processColor -} from 'react-native' -import { requestPermissions } from './handlePermissions'; @@ -1251,7 +1253,7 @@ index 8f4fe48faabc56015d76bad685818b1744038443..6b0b07ef499c185e9d26ca5ff3d0d807 nativeOnly: { nativeID: true, onChange: true -@@ -36,18 +37,6 @@ class SketchCanvas extends React.Component { +@@ -36,18 +36,6 @@ class SketchCanvas extends React.Component { touchEnabled: PropTypes.bool, @@ -1270,7 +1272,41 @@ index 8f4fe48faabc56015d76bad685818b1744038443..6b0b07ef499c185e9d26ca5ff3d0d807 localSourceImage: PropTypes.shape({ filename: PropTypes.string, directory: PropTypes.string, mode: PropTypes.oneOf(['AspectFill', 'AspectFit', 'ScaleToFill']) }), permissionDialogTitle: PropTypes.string, -@@ -104,9 +88,13 @@ class SketchCanvas extends React.Component { +@@ -67,17 +55,12 @@ class SketchCanvas extends React.Component { + + touchEnabled: true, + +- text: null, + localSourceImage: null, + + permissionDialogTitle: '', + permissionDialogMessage: '', + }; + +- state = { +- text: null +- } +- + constructor(props) { + super(props) + this._pathsToProcess = [] +@@ -88,25 +71,16 @@ class SketchCanvas extends React.Component { + this._offset = { x: 0, y: 0 } + this._size = { width: 0, height: 0 } + this._initialized = false +- +- this.state.text = this._processText(props.text ? props.text.map(t => Object.assign({}, t)) : null) +- } +- +- componentWillReceiveProps(nextProps) { +- this.setState({ +- text: this._processText(nextProps.text ? nextProps.text.map(t => Object.assign({}, t)) : null) +- }) +- } +- +- _processText(text) { +- text && text.forEach(t => t.fontColor = processColor(t.fontColor)) +- return text } clear() { @@ -1287,7 +1323,7 @@ index 8f4fe48faabc56015d76bad685818b1744038443..6b0b07ef499c185e9d26ca5ff3d0d807 } undo() { -@@ -136,19 +124,19 @@ class SketchCanvas extends React.Component { +@@ -136,19 +110,19 @@ class SketchCanvas extends React.Component { UIManager.dispatchViewManagerCommand(this._handle, UIManager.RNSketchCanvas.Commands.deletePath, [id]) } @@ -1312,7 +1348,7 @@ index 8f4fe48faabc56015d76bad685818b1744038443..6b0b07ef499c185e9d26ca5ff3d0d807 } } -@@ -249,15 +237,28 @@ class SketchCanvas extends React.Component { +@@ -249,15 +223,28 @@ class SketchCanvas extends React.Component { localSourceImage={this.props.localSourceImage} permissionDialogTitle={this.props.permissionDialogTitle} permissionDialogMessage={this.props.permissionDialogMessage} --- .yarn/patches/@terrylinla-react-native-sketch-canvas-patch-b841bbddec.patch @@ -1,12 +0,0 @@ -diff --git a/src/SketchCanvas.js b/src/SketchCanvas.js -index 6b0b07ef499c185e9d26ca5ff3d0d807c044acb2..e072448e9c20047cbc4994418dcb20fad6956aa7 100644 ---- a/src/SketchCanvas.js -+++ b/src/SketchCanvas.js -@@ -9,7 +9,6 @@ import ReactNative, { - PanResponder, - PixelRatio, - Platform, -- ViewPropTypes, - processColor - } from "react-native"; - import { requestPermissions } from "./handlePermissions"; --- package.json @@ -75,7 +75,7 @@ "@reduxjs/toolkit": "^1.9.7", "@sharcoux/slider": "^6.1.1", "@shopify/flash-list": "~1.6.4", - "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@patch%3A@terrylinla/react-native-sketch-canvas@npm%253A0.8.0%23~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch%3A%3Aversion=0.8.0&hash=627c51#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-patch-b841bbddec.patch", + "@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.1.4", "@walmart/allspark-cope-key-listener": "0.0.17", "@walmart/allspark-foundation": "6.1.4", --- yarn.lock @@ -4683,17 +4683,10 @@ __metadata: languageName: node linkType: hard -"@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::version=0.8.0&hash=627c51": +"@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": version: 0.8.0 - resolution: "@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::version=0.8.0&hash=99818d" - checksum: 10c0/272e13a29f82757bd8518ec35e7094921bdb0cf433bc9842572e7a868606f50940030088ec3ea855349fbe632bf924726247588391d90f13dd26a40c344b6928 - languageName: node - linkType: hard - -"@terrylinla/react-native-sketch-canvas@patch:@terrylinla/react-native-sketch-canvas@patch%3A@terrylinla/react-native-sketch-canvas@npm%253A0.8.0%23~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch%3A%3Aversion=0.8.0&hash=627c51#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-patch-b841bbddec.patch": - version: 0.8.0 - resolution: "@terrylinla/react-native-sketch-canvas@patch:@terrylinla/react-native-sketch-canvas@patch%3A@terrylinla/react-native-sketch-canvas@npm%253A0.8.0%23~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch%3A%3Aversion=0.8.0&hash=99818d#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-patch-b841bbddec.patch::version=0.8.0&hash=41dc91" - checksum: 10c0/7c9c8abfd1ab6619382386e875b4028571e75bb846ee925711e8f0c0c402c04f0213e835edbf6f87cf04cf07dc05cb2cd77a3d3c4c77f55db89e3bfaf1eac9e8 + resolution: "@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::version=0.8.0&hash=5e0f2e" + checksum: 10c0/6b2677c4b5b553103772f638ec32897266b356ad79bee55260a5ff2aa0b3a24928b841e8923eccb79d97752dc556378a30bfccd5d8769a85c1f27594f73907b0 languageName: node linkType: hard @@ -7701,7 +7694,7 @@ __metadata: "@rnx-kit/align-deps": "npm:^2.4.1" "@sharcoux/slider": "npm:^6.1.1" "@shopify/flash-list": "npm:~1.6.4" - "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@patch%3A@terrylinla/react-native-sketch-canvas@npm%253A0.8.0%23~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch%3A%3Aversion=0.8.0&hash=627c51#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-patch-b841bbddec.patch" + "@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" "@testing-library/jest-native": "npm:5.4.3" "@testing-library/react-hooks": "npm:^8.0.1" "@testing-library/react-native": "npm:12.3.2"
updated sketch canvas patch
updated sketch canvas patch
a34161ec0eb0f8eeaead0e845c568cf24b9f834e
--- android/app/src/main/AndroidManifest.xml @@ -23,6 +23,15 @@ </intent> </queries> + <queries> + <package android:name="com.walmart.gif2" /> + <intent> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.BROWSABLE" /> + <data android:scheme="gif2://home" /> + </intent> + </queries> + <application android:name="com.walmart.stores.allspark.beta.MainApplication" android:label="@string/app_name"
Updated the manifest for develop branch
Updated the manifest for develop branch
54922af79e4b75f2524937bb2594a249e01fca77
--- package-lock.json @@ -4475,8 +4475,8 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.143.0-rc.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.143.0-rc.0.tgz", + "version": "0.146.0-rc.2", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.146.0-rc.2.tgz", "integrity": "sha512-CnclOd9H0lwjbaPCLEF+prM/ycJ9Aaruxa7C6FxXXqayWOyW/Jk0WEa0OwUPU3wC8IU/wL4+2IHDojut9RJdyQ==" }, "@walmart/time-clock-mini-app": {
Fixing build conflicts
Fixing build conflicts
d982f7bc9ab11fc6f0025ca5d64c80fe5689c55a
--- src/queries/getSupplyChainTeamById.graphql @@ -1,4 +1,4 @@ -query GetSupplyChainTeamById($businessUnitNumber: Int!, $countryCode: String!, $date: Date!, $includeProxyMembers: Boolean!, $role: [String!], $siteNbr: String!, $teamId: String!) { +query GetSupplyChainTeamById($businessUnitNumber: Int!, $countryCode: String!, $date: Date!, $includeProxyMembers: Boolean!, $role: [String!], $teamId: String!) { supplyChainTeamById( businessUnitNumber: $businessUnitNumber countryCode: $countryCode --- src/queries/getSupplyChainTeamById.ts @@ -13,7 +13,6 @@ export type GetSupplyChainTeamByIdQueryVariables = Types.Exact<{ Array<Types.Scalars['String']> | Types.Scalars['String'] >; teamId: Types.Scalars['String']; - siteNbr: Types.Scalars['String']; }>; export type GetSupplyChainTeamByIdQuery = { @@ -73,7 +72,6 @@ export const GetSupplyChainTeamByIdDocument = gql` $includeProxyMembers: Boolean! $role: [String!] $teamId: String! - $siteNbr: String! ) { supplyChainTeamById( businessUnitNumber: $businessUnitNumber @@ -150,7 +148,6 @@ export const GetSupplyChainTeamByIdDocument = gql` * includeProxyMembers: // value for 'includeProxyMembers' * role: // value for 'role' * teamId: // value for 'teamId' - * siteNbr: // value for 'siteNbr' * }, * }); */ --- src/queries/supplyChainTeamsByBusinessUnit.graphql @@ -1,4 +1,4 @@ -query SupplyChainTeamsByBusinessUnit($businessUnitNumber: Int!, $countryCode: String!, $date: Date!, $includeManagement: Boolean, $siteNbr: String!, $teamNamesLike: [String!]) { +query SupplyChainTeamsByBusinessUnit($businessUnitNumber: Int!, $countryCode: String!, $date: Date!, $includeManagement: Boolean, $teamNamesLike: [String!]) { supplyChainTeamsByBusinessUnit( businessUnitNumber: $businessUnitNumber countryCode: $countryCode --- src/queries/supplyChainTeamsByBusinessUnit.ts @@ -12,7 +12,6 @@ export type SupplyChainTeamsByBusinessUnitQueryVariables = Types.Exact<{ teamNamesLike?: Types.InputMaybe< Array<Types.Scalars['String']> | Types.Scalars['String'] >; - siteNbr: Types.Scalars['String']; }>; export type SupplyChainTeamsByBusinessUnitQuery = { @@ -55,7 +54,6 @@ export const SupplyChainTeamsByBusinessUnitDocument = gql` $date: Date! $includeManagement: Boolean $teamNamesLike: [String!] - $siteNbr: String! ) { supplyChainTeamsByBusinessUnit( businessUnitNumber: $businessUnitNumber @@ -111,7 +109,6 @@ export const SupplyChainTeamsByBusinessUnitDocument = gql` * date: // value for 'date' * includeManagement: // value for 'includeManagement' * teamNamesLike: // value for 'teamNamesLike' - * siteNbr: // value for 'siteNbr' * }, * }); */
Update the query to include the query params
Update the query to include the query params
a98eccb434a95a4e3e83763486c1680c3b4bcf87
--- packages/associate-exp-hub-hub/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. +# [2.19.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.18.3...@walmart/associate-exp-hub-hub@2.19.0) (2025-12-19) + +### Features + +- **ui:** update team switcher issue and tests ([c7e19cc](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/c7e19cc364b109d4decdbf9270f6a2ccdfaa5c2d)) +- **ui:** update team switcher issue and tests ([414c993](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/414c99307da69e0ef9cae4736df1e68ba87d467c)) + ## [2.18.3](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.18.2...@walmart/associate-exp-hub-hub@2.18.3) (2025-12-16) **Note:** Version bump only for package @walmart/associate-exp-hub-hub --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.18.3", + "version": "2.19.0", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.13.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.12.1...@walmart/associate-exp-hub-mini-app@1.13.0) (2025-12-19) + +### Features + +- **ui:** update logger and team switcher issue ([c7a66d7](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/c7a66d7bb45e1e64642aaf4ee84ff62c39179135)) +- **ui:** update team switcher issue and tests ([414c993](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/414c99307da69e0ef9cae4736df1e68ba87d467c)) +- **ui:** update tests ([d216ca0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/d216ca0991e55b36e69c0d75d3dfcebae866f214)) + ## [1.12.1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.12.0...@walmart/associate-exp-hub-mini-app@1.12.1) (2025-12-16) **Note:** Version bump only for package @walmart/associate-exp-hub-mini-app --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.12.1", + "version": "1.13.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.22.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.21.1...@walmart/associate-exp-hub-team-switcher@2.22.0) (2025-12-19) + +### Bug Fixes + +- **ui:** total store bug ([9c80d7b](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9c80d7b4ab7a485e74e9d75c73572f43e2345048)) +- **ui:** total store fix for home office associate ([9707100](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9707100f31ac83f03e71f12f45d819bbbc38c89b)) + +### Features + +- **ui:** cleanup logs ([b311b3d](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/b311b3d0bdf8d48c35f55e6f84a8183c65b4bf49)) +- **ui:** cleanup logs ([fe110c3](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/fe110c3d6c452829e4f954d26efb6214a3396b16)) +- **ui:** cleanup logs ([f672ade](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/f672adec0a061c077238e6e269ef0132bc91bee1)) +- **ui:** resolve lint errors ([2b5a9de](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/2b5a9de3ae7f8289910356ba00c3b6282592c0a8)) +- **ui:** update changes for last user id ([bf41671](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/bf41671e0974d303a072c572e21ede27d8824673)) +- **ui:** update logger and team switcher issue ([c7a66d7](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/c7a66d7bb45e1e64642aaf4ee84ff62c39179135)) +- **ui:** update performance ([c898c32](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/c898c32f95e5d46632de5e0136d54d2d3a207ccd)) +- **ui:** update performance ([7829638](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/7829638a38ff9ecc095b73e624d77a704c2e384f)) +- **ui:** update team switcher issue ([9ec147a](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9ec147ae3fda8ac660c1ec2092287b480dc00dc3)) +- **ui:** update team switcher issue and tests ([c7e19cc](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/c7e19cc364b109d4decdbf9270f6a2ccdfaa5c2d)) +- **ui:** update team switcher issue and tests ([9acd77b](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/9acd77bfe92818f1d7e02014cf6a47ed2984e557)) +- **ui:** update tests ([d216ca0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/d216ca0991e55b36e69c0d75d3dfcebae866f214)) + ## [2.21.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.21.0...@walmart/associate-exp-hub-team-switcher@2.21.1) (2025-12-16) **Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.21.1", + "version": "2.22.0", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.19.0 - @walmart/associate-exp-hub-mini-app@1.13.0 - @walmart/associate-exp-hub-team-switcher@2.22.0
4955ef07553e0401ae3bcd98e1575b5e23d5365b
--- __tests__/components/WarningBanner.test.tsx @@ -10,8 +10,8 @@ jest.mock('react-redux', () => ({ // Mock @walmart/gtp-shared-components jest.mock('@walmart/gtp-shared-components', () => { - const ReactModule = require('react'); - const ReactNative = require('react-native'); +import * as ReactModule from 'react'; +import * as ReactNative from 'react-native'; return { Banner: ({children, onClose, testID}) =>
Update __tests__/components/WarningBanner.test.tsx
Update __tests__/components/WarningBanner.test.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com>
dd49ff0d68bc8e1cdee6505728ee557bc46c8388
--- packages/allspark-foundation-hub/__tests__/HubFeature/ClockOut.test.tsx @@ -1,31 +0,0 @@ -import React from 'react'; -import { render } from '../utils'; -import { ClockOutGuard } from '../../src/HubFeature/ClockOut'; -import { View } from 'react-native'; -import { ClockSelectors } from '@walmart/allspark-foundation/Clock'; - -describe('ClockOutGuard', () => { - it('renders ClockOutGuard Component if isClockedOut prop is true', () => { - (ClockSelectors.getIsClockedOut as unknown as jest.Mock).mockReturnValue( - true - ); - const { toJSON } = render( - <ClockOutGuard> - <View /> - </ClockOutGuard> - ); - expect(toJSON()).toMatchSnapshot(); - }); - - it('renders Children isClockedOut prop is false', () => { - (ClockSelectors.getIsClockedOut as unknown as jest.Mock).mockReturnValue( - false - ); - const { toJSON } = render( - <ClockOutGuard> - <View /> - </ClockOutGuard> - ); - expect(toJSON()).toMatchSnapshot(); - }); -}); --- packages/allspark-foundation-hub/__tests__/HubFeature/HubContainer.test.tsx @@ -569,7 +569,6 @@ jest.mock('@walmart/allspark-foundation', () => ({ }, })); -jest.mock('../../src/HubFeature/ClockOut', () => 'ClockOutGuard'); jest.mock( '../../src/HubFeature/BottomSheet/BottomSheetContext', () => 'BottomSheetProvider'
feat(ui): remoce clockout screen test since component was removed from local
feat(ui): remoce clockout screen test since component was removed from local
68656a252b5065aa4d13cb6c591c234311517f4d
--- package-lock.json @@ -3191,9 +3191,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.5.26", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.26.tgz", - "integrity": "sha512-AqmJDM2a2BTAJ9J+YOflVD5Fr+z459dGW7qN7Q3IjK1yiASCFBKZcxVHBMVE4lA0dm4Qkm71NirgLGkgqcCG4g==" + "version": "0.5.27", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.27.tgz", + "integrity": "sha512-XkfZJYjio/KFzOrjIMNgTqn6N9Nhf5EEZBKXcPU5DIjNUmSMDJqnpbbBr6+6mz4wZqPRZvXmfRdwK8d5prHFeA==" }, "@walmart/wfm-ui": { "version": "0.1.38", --- package.json @@ -66,7 +66,7 @@ "@walmart/settings-mini-app": "1.1.12", "@walmart/time-clock-mini-app": "0.1.16", "@walmart/ui-components": "1.0.91", - "@walmart/welcomeme-mini-app": "0.5.26", + "@walmart/welcomeme-mini-app": "0.5.27", "i18next": "^19.7.0", "intl": "^1.2.5", "javascript-time-ago": "2.3.3",
Welcome Me Mini App - Language reset on iOS swipe gesture (#285)
Welcome Me Mini App - Language reset on iOS swipe gesture (#285) * WelcomeMe Mini App.- Language Reset - Hardware Back button * WelcomeMe - Language Reset on iOS Swipe back gesture Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com>
1ae24f714ed7f0ee34fd59430096d92ac680a57e
--- packages/allspark-foundation/src/Navigation/context.tsx @@ -1,31 +1,51 @@ import React, { PropsWithChildren } from 'react'; -import { noop } from 'lodash'; import { useToggleState } from '@walmart/allspark-utils'; import { AllsparkContextCreator } from '../utils'; +export type DrawerStatus = 'opened' | 'closed'; + /** * Context for Drawer management. */ export type IDrawerContext = { + opened: boolean; + open: () => void; + close: () => void; + toggleDrawerOpened: () => void; locked: boolean; lock: () => void; unlock: () => void; }; +const EmptyDrawerFunction = () => { + // Empty function to be used as a default value for the drawer context + __DEV__ && console.warn('Allspark Drawer context not initialized'); +}; + export const { Context: DrawerContext, Provider: DrawerContextProvider, /** * Hook that returns AllsparkDrawer interface to interact with the drawer. * @example - * const { lock, unlock, locked } = useAllsparkDrawer(); + * const drawer = useAllsparkDrawer(); + * drawer.open(); // Opens the drawer + * drawer.close(); // Closes the drawer + * drawer.lock(); // Locks the drawer + * drawer.unlock(); // Unlocks the drawer + * drawer.locked; // Returns true if the drawer is locked + * drawer.opened; // Returns true if the drawer is opened **/ useContextValue: useAllsparkDrawer, getContextValue: getDrawerContext, } = AllsparkContextCreator<IDrawerContext>('Drawer', { + opened: false, + open: EmptyDrawerFunction, + close: EmptyDrawerFunction, + toggleDrawerOpened: EmptyDrawerFunction, locked: false, - lock: noop, - unlock: noop, + lock: EmptyDrawerFunction, + unlock: EmptyDrawerFunction, }); /** @@ -33,15 +53,42 @@ export const { */ export const DrawerProvider = (props: PropsWithChildren<{}>) => { const { children } = props; + const { value: locked, toggleOn: lock, toggleOff: unlock, } = useToggleState(false); - const value = { locked, lock, unlock }; + const { + value: opened, + toggle: toggleDrawerOpened, + toggleOn: openDrawer, + toggleOff: close, + } = useToggleState(false); + + const open = () => { + if (!locked) { + openDrawer(); + } + }; + + const value = { + opened, + locked, + lock, + unlock, + open, + close, + toggleDrawerOpened, + }; return ( <DrawerContextProvider value={value}>{children}</DrawerContextProvider> ); }; + +export const useAllsparkDrawerStatus = (): DrawerStatus => { + const { opened } = useAllsparkDrawer(); + return opened ? 'opened' : 'closed'; +};
feat: add open state to drawer context
feat: add open state to drawer context
b4849212b3e3fde997cb4158d1f6ad491e2ae5cf
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.25.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.3...@walmart/allspark-foundation-hub@1.25.4) (2025-12-02) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.25.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.2...@walmart/allspark-foundation-hub@1.25.3) (2025-12-02) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.25.3", + "version": "1.25.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.16.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.16.1...@walmart/allspark-foundation@7.16.2) (2025-12-02) + +**Note:** Version bump only for package @walmart/allspark-foundation + ## [7.16.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.16.0...@walmart/allspark-foundation@7.16.1) (2025-12-01) **Note:** Version bump only for package @walmart/allspark-foundation --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.16.1", + "version": "7.16.2", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/components-library/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.5](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/ax-components@1.2.4...@walmart/ax-components@1.2.5) (2025-12-02) + +**Note:** Version bump only for package @walmart/ax-components + ## [1.2.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/ax-components@1.2.3...@walmart/ax-components@1.2.4) (2025-12-01) ### Bug Fixes --- packages/components-library/package.json @@ -57,7 +57,7 @@ "test:coverage": "jest --coverage", "expo:check": "expo install --check" }, - "version": "1.2.4", + "version": "1.2.5", "main": "lib/index.js", "types": "lib/index.d.ts", "name": "@walmart/ax-components", --- packages/expo-config-plugins/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.8.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.8.1...@walmart/expo-config-plugins@0.8.2) (2025-12-02) + +**Note:** Version bump only for package @walmart/expo-config-plugins + ## [0.8.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.8.0...@walmart/expo-config-plugins@0.8.1) (2025-11-12) **Note:** Version bump only for package @walmart/expo-config-plugins --- packages/expo-config-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/expo-config-plugins", - "version": "0.8.1", + "version": "0.8.2", "description": "Expo config plugins for me@apps", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-location/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.20](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.19...@walmart/me-at-walmart-location@1.2.20) (2025-12-02) + +**Note:** Version bump only for package @walmart/me-at-walmart-location + ## [1.2.19](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-location@1.2.18...@walmart/me-at-walmart-location@1.2.19) (2025-12-01) **Note:** Version bump only for package @walmart/me-at-walmart-location @@ -98,6 +102,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features - **lib:** ALLSPARK-7058 refactor location ([#468](https://gecgithub01.walmart.com/allspark/allspark/issues/468)) ([0992a91](https://gecgithub01.walmart.com/allspark/allspark/commit/0992a91c1207700976f5f9f9f997898def72d535)) + ## [1.3.20](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.19...@walmart/me-at-walmart-geolocation@1.3.20) (2025-11-03) **Note:** Version bump only for package @walmart/me-at-walmart-geolocation --- packages/me-at-walmart-location/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-location", - "version": "1.2.19", + "version": "1.2.20", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.6.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.6.0...@walmart/my-walmart-hub@1.6.1) (2025-12-02) + +**Note:** Version bump only for package @walmart/my-walmart-hub + # [1.6.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.5.2...@walmart/my-walmart-hub@1.6.0) (2025-12-02) ### Features --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.6.0", + "version": "1.6.1", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.16.2 - @walmart/allspark-foundation-hub@1.25.4 - @walmart/ax-components@1.2.5 - @walmart/expo-config-plugins@0.8.2 - @walmart/me-at-walmart-location@1.2.20 - @walmart/my-walmart-hub@1.6.1
55bed00684978b2ba693729e0254b0e67e777de1
--- src/components/Avatar.tsx @@ -48,7 +48,7 @@ type AvatarProps = { viewer?: boolean; isClockedIn: boolean | {}; style?: StyleProp<ViewStyle>; - showPresence: boolean; + showPresence?: boolean; }; export const Avatar = (props: AvatarProps) => { --- src/components/Avatar.tsx @@ -48,7 +48,7 @@ type AvatarProps = { viewer?: boolean; isClockedIn: boolean | {}; style?: StyleProp<ViewStyle>; - showPresence: boolean; + showPresence?: boolean; }; export const Avatar = (props: AvatarProps) => {
tsc error
tsc error
df5fcfb10a83deac5a17567874579c1f4b654622
--- src/containers/StoreChatCard.tsx @@ -10,9 +10,11 @@ import { } from '@walmart/gtp-shared-components'; import {useStartStoreText} from '../hooks'; import {useOnlineCount} from '../presence/hooks'; +import {useTranslation} from 'react-i18next'; export const StoreChatCard = (props: {style?: StyleProp<ViewStyle>}) => { const {style} = props; + const {t} = useTranslation(); const startStoreText = useStartStoreText(); const onlineCount = useOnlineCount(); @@ -21,16 +23,18 @@ export const StoreChatCard = (props: {style?: StyleProp<ViewStyle>}) => { <Card UNSAFE_style={style}> <CardContent> <ListItem - title='Whole store' + title={t('rosterScreen.storeChatCard.title')} trailing={ <ButtonGroup> <Button variant='secondary' onPress={startStoreText} size='small'> - <Text>Message</Text> + <Text>{t('rosterScreen.storeChatCard.messageBtn')}</Text> </Button> </ButtonGroup> }> <Body weight='400' size='small'> - {onlineCount} Available + {t('rosterScreen.storeChatCard.availableCount', { + onlineCount: onlineCount, + })} </Body> </ListItem> </CardContent> --- src/translations/en-US.ts @@ -20,6 +20,11 @@ export const enUS = { clockedIn: 'Clocked in', online: 'Online', }, + storeChatCard: { + title: 'Whole store', + messageBtn: 'Message', + availableCount: '{{onlineCount}} Available', + }, }, }, }; --- src/translations/es-MX.ts @@ -20,6 +20,11 @@ export const esMX = { clockedIn: 'Clocked in', online: 'Online', }, + storeChatCard: { + title: 'Whole store', + messageBtn: 'Message', + availableCount: '{{onlineCount}} Available', + }, }, }, }; --- src/containers/StoreChatCard.tsx @@ -10,9 +10,11 @@ import { } from '@walmart/gtp-shared-components'; import {useStartStoreText} from '../hooks'; import {useOnlineCount} from '../presence/hooks'; +import {useTranslation} from 'react-i18next'; export const StoreChatCard = (props: {style?: StyleProp<ViewStyle>}) => { const {style} = props; + const {t} = useTranslation(); const startStoreText = useStartStoreText(); const onlineCount = useOnlineCount(); @@ -21,16 +23,18 @@ export const StoreChatCard = (props: {style?: StyleProp<ViewStyle>}) => { <Card UNSAFE_style={style}> <CardContent> <ListItem - title='Whole store' + title={t('rosterScreen.storeChatCard.title')} trailing={ <ButtonGroup> <Button variant='secondary' onPress={startStoreText} size='small'> - <Text>Message</Text> + <Text>{t('rosterScreen.storeChatCard.messageBtn')}</Text> </Button> </ButtonGroup> }> <Body weight='400' size='small'> - {onlineCount} Available + {t('rosterScreen.storeChatCard.availableCount', { + onlineCount: onlineCount, + })} </Body> </ListItem> </CardContent> --- src/translations/en-US.ts @@ -20,6 +20,11 @@ export const enUS = { clockedIn: 'Clocked in', online: 'Online', }, + storeChatCard: { + title: 'Whole store', + messageBtn: 'Message', + availableCount: '{{onlineCount}} Available', + }, }, }, }; --- src/translations/es-MX.ts @@ -20,6 +20,11 @@ export const esMX = { clockedIn: 'Clocked in', online: 'Online', }, + storeChatCard: { + title: 'Whole store', + messageBtn: 'Message', + availableCount: '{{onlineCount}} Available', + }, }, }, };
adding store chat card
adding store chat card
98c8faf9c79c72d65bd9c6b0bdb288dc976c4860
--- ios/Podfile.lock @@ -261,7 +261,7 @@ PODS: - Permission-Notifications (3.6.1): - RNPermissions - PromisesObjC (2.2.0) - - PTT (1.10.0-rc-01): + - PTT (1.10.0): - Alamofire (= 5.6.4) - BinaryCodable (~> 0.2.1) - CocoaAsyncSocket (~> 7.6.3) @@ -530,8 +530,8 @@ PODS: - React-Core - react-native-pdf (6.6.2): - React-Core - - react-native-ptt-module (1.10.0-rc-02): - - PTT (= 1.10.0-rc-01) + - react-native-ptt-module (1.11.1): + - PTT (= 1.10.0) - React - react-native-render-html (6.3.4): - React-Core @@ -1189,7 +1189,7 @@ SPEC CHECKSUMS: Permission-LocationWhenInUse: 3ba99e45c852763f730eabecec2870c2382b7bd4 Permission-Notifications: 150484ae586eb9be4e32217582a78350a9bb31c3 PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef - PTT: f36af434177e607116125fc3121f1453a876c782 + PTT: 0b32c0063d5eb562fb35c7b080c8b6d403dc9e9c RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda RCTRequired: db184d894eed9e15f1fa80c3372595b7ec360580 RCTTypeSafety: c9bf4c53ad246e4c94a49d91353ed19a8df5952f @@ -1222,7 +1222,7 @@ SPEC CHECKSUMS: react-native-netinfo: f80db8cac2151405633324cb645c60af098ee461 react-native-pager-view: 0ccb8bf60e2ebd38b1f3669fa3650ecce81db2df react-native-pdf: 33c622cbdf776a649929e8b9d1ce2d313347c4fa - react-native-ptt-module: 86f4ac28c873f448349e20da4a5f8d7235eef25c + react-native-ptt-module: 83ae382698d10be1cbd108d1f784f433b83d4e36 react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe react-native-safe-area-context: 6c12e3859b6f27b25de4fee8201cfb858432d8de react-native-scanner-3.0: a0549e6f451262c91e545d3b69a6b9d8cf2ac1eb --- package-lock.json @@ -65,7 +65,7 @@ "@walmart/payrollsolution_miniapp": "0.130.34", "@walmart/price-changes-mini-app": "1.8.7", "@walmart/profile-feature-app": "0.143.0", - "@walmart/push-to-talk-mini-app": "1.10.36", + "@walmart/push-to-talk-mini-app": "1.11.1", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.33.0", @@ -135,7 +135,7 @@ "react-native-pdf": "^6.6.2", "react-native-permissions": "3.6.1", "react-native-popup-menu": "^0.16.0", - "react-native-ptt-module": "1.10.0-rc-02", + "react-native-ptt-module": "1.11.1", "react-native-qrcode-svg": "^6.1.2", "react-native-reanimated": "^2.14.4", "react-native-render-html": "^6.3.4", @@ -7736,9 +7736,9 @@ } }, "node_modules/@walmart/push-to-talk-mini-app": { - "version": "1.10.36", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.10.36.tgz", - "integrity": "sha512-vkepbveXXWUt+eC7VFfSjdoXHKebTt3SKPJR2aasXj78BtRJmtZPjgCJCXuBrj2gHE+/kWJp82tFZJPXkflPpg==", + "version": "1.11.1", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.11.1.tgz", + "integrity": "sha512-E0RfYptJUo/rDqbbG4S+jX/TDdq1/ZW3yUWTxG8ZPRE/jeiS4zJkrifntnXAkl/WEUbp9OK46w9al7RVW4N9MA==", "license": "UNLICENSED", "peerDependencies": { "@react-native-community/async-storage": "^1.11.0", @@ -7768,7 +7768,7 @@ "react-native-image-picker": "4.8.5", "react-native-loudness": "^2.0.0", "react-native-pager-view": "^5.4.9", - "react-native-ptt-module": "1.10.0-rc-02", + "react-native-ptt-module": "1.11.1", "react-native-reanimated": "2.12.0", "react-native-safe-area-context": "^3.3.0", "react-native-screens": "^3.10.0", @@ -23586,9 +23586,9 @@ "license": "ISC" }, "node_modules/react-native-ptt-module": { - "version": "1.10.0-rc-02", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.10.0-rc-02.tgz", - "integrity": "sha512-RsRIVjNW1MCNUyztp/Gdqb0knkfloicfAfQEiHG7ETopTjm6sWg8m50wTvNkagjbWj4u4FCq5y0dvlrpjRnTcA==", + "version": "1.11.1", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.11.1.tgz", + "integrity": "sha512-Gcgmntom63VoLmWwT8HtdgRgq9n0HoaZS28xXQYiSdDUWRmqn58W2hwRqinoEiuIDnRPDkzNf4TPfk2oMLSXEw==", "license": "MIT" }, "node_modules/react-native-qrcode-svg": { @@ -33927,9 +33927,9 @@ "integrity": "sha512-TAX4y7MMHEwzauVB/rjCUhmZbLoF/TQNtscyWPj6vLUKA2rFTWUsZ/yB5+Ykcld/1syBPHPFkdbRstdTxvndZw==" }, "@walmart/push-to-talk-mini-app": { - "version": "1.10.36", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.10.36.tgz", - "integrity": "sha512-vkepbveXXWUt+eC7VFfSjdoXHKebTt3SKPJR2aasXj78BtRJmtZPjgCJCXuBrj2gHE+/kWJp82tFZJPXkflPpg==" + "version": "1.11.1", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-1.11.1.tgz", + "integrity": "sha512-E0RfYptJUo/rDqbbG4S+jX/TDdq1/ZW3yUWTxG8ZPRE/jeiS4zJkrifntnXAkl/WEUbp9OK46w9al7RVW4N9MA==" }, "@walmart/react-native-encrypted-storage": { "version": "1.1.3", @@ -44778,9 +44778,9 @@ "integrity": "sha512-xRS7mRh0exwu7Iw8PPVHdM11d13A/KzYjy0/fZx3zVtxISxPkNaDGayau6oa7HqO3Nj0oS9ulFCYjcQfG6vahA==" }, "react-native-ptt-module": { - "version": "1.10.0-rc-02", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.10.0-rc-02.tgz", - "integrity": "sha512-RsRIVjNW1MCNUyztp/Gdqb0knkfloicfAfQEiHG7ETopTjm6sWg8m50wTvNkagjbWj4u4FCq5y0dvlrpjRnTcA==" + "version": "1.11.1", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.11.1.tgz", + "integrity": "sha512-Gcgmntom63VoLmWwT8HtdgRgq9n0HoaZS28xXQYiSdDUWRmqn58W2hwRqinoEiuIDnRPDkzNf4TPfk2oMLSXEw==" }, "react-native-qrcode-svg": { "version": "6.2.0", --- package.json @@ -107,7 +107,7 @@ "@walmart/payrollsolution_miniapp": "0.130.34", "@walmart/price-changes-mini-app": "1.8.7", "@walmart/profile-feature-app": "0.143.0", - "@walmart/push-to-talk-mini-app": "1.10.36", + "@walmart/push-to-talk-mini-app": "1.11.1", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.33.0", @@ -177,7 +177,7 @@ "react-native-pdf": "^6.6.2", "react-native-permissions": "3.6.1", "react-native-popup-menu": "^0.16.0", - "react-native-ptt-module": "1.10.0-rc-02", + "react-native-ptt-module": "1.11.1", "react-native-qrcode-svg": "^6.1.2", "react-native-reanimated": "^2.14.4", "react-native-render-html": "^6.3.4",
Update push to talk package
Update push to talk package
a9e4d940ed845a906d92a660fcbe3bf2d7b396d0
--- graphql.yml @@ -42,7 +42,7 @@ applications: tags: - "v1" - name: "getTeamsByStore" - hash: "49da730c0bc1d293da071814f3d7506a7daf865110898f8d5e92f6c41a9ac8d1" + hash: "aad913d998645d71338e1e4b51b5f58ef3a1d250876a1c404633587a1ac40dc2" queryTemplate: "packages/associate-exp-hub-mini-app/src/utils/queries/getTeamsByStore.graphql" tags: - "v1" @@ -89,7 +89,7 @@ applications: tags: - "v1" - name: "getTeamsByStore" - hash: "49da730c0bc1d293da071814f3d7506a7daf865110898f8d5e92f6c41a9ac8d1" + hash: "aad913d998645d71338e1e4b51b5f58ef3a1d250876a1c404633587a1ac40dc2" queryTemplate: "packages/associate-exp-hub-mini-app/src/utils/queries/getTeamsByStore.graphql" tags: - "v1" @@ -136,7 +136,7 @@ applications: tags: - "v1" - name: "getTeamsByStore" - hash: "49da730c0bc1d293da071814f3d7506a7daf865110898f8d5e92f6c41a9ac8d1" + hash: "aad913d998645d71338e1e4b51b5f58ef3a1d250876a1c404633587a1ac40dc2" queryTemplate: "packages/associate-exp-hub-mini-app/src/utils/queries/getTeamsByStore.graphql" tags: - "v1" @@ -187,7 +187,7 @@ applications: tags: - "v1" - name: "getTeamsByStore" - hash: "49da730c0bc1d293da071814f3d7506a7daf865110898f8d5e92f6c41a9ac8d1" + hash: "aad913d998645d71338e1e4b51b5f58ef3a1d250876a1c404633587a1ac40dc2" queryTemplate: "packages/associate-exp-hub-team-switcher/src/utils/queries/getTeamsByStore.graphql" tags: - "v1" @@ -234,7 +234,7 @@ applications: tags: - "v1" - name: "getTeamsByStore" - hash: "49da730c0bc1d293da071814f3d7506a7daf865110898f8d5e92f6c41a9ac8d1" + hash: "aad913d998645d71338e1e4b51b5f58ef3a1d250876a1c404633587a1ac40dc2" queryTemplate: "packages/associate-exp-hub-team-switcher/src/utils/queries/getTeamsByStore.graphql" tags: - "v1" @@ -281,7 +281,7 @@ applications: tags: - "v1" - name: "getTeamsByStore" - hash: "49da730c0bc1d293da071814f3d7506a7daf865110898f8d5e92f6c41a9ac8d1" + hash: "aad913d998645d71338e1e4b51b5f58ef3a1d250876a1c404633587a1ac40dc2" queryTemplate: "packages/associate-exp-hub-team-switcher/src/utils/queries/getTeamsByStore.graphql" tags: - "v1" --- packages/associate-exp-hub-mini-app/src/utils/queries/getTeamsByStore.graphql @@ -22,6 +22,7 @@ query getTeamsByStore($countryCode: String!, $includeManagement: Boolean, $siteN departmentNumbers } } + site teamIcon { __typename teamIconBlurhashPlaceholder @@ -29,7 +30,6 @@ query getTeamsByStore($countryCode: String!, $includeManagement: Boolean, $siteN } teamId teamName - site workgroup workgroupId } --- packages/associate-exp-hub-mini-app/src/utils/queries/getTeamsByStore.ts @@ -66,7 +66,7 @@ export type GetTeamsByStoreQueryVariables = Types.Exact<{ }>; -export type GetTeamsByStoreQuery = { __typename?: 'Query', getTeamsByStore?: ({ __typename: 'Team', members?: (string | null)[] | null, merchDeptNbrs?: (number | null)[] | null, teamId?: string | null, teamName?: string | null, workgroup?: string | null, workgroupId?: string | null, membership?: ({ __typename: 'TeamAssociateMembership', associate?: { __typename: 'Associate', associateId: string } | null } | null)[] | null, metricsStoreArea?: { __typename: 'MetricsStoreAreaResponse', data?: ({ __typename: 'MetricsStoreArea', departmentNumbers: (number | null)[] } | null)[] | null } | null, teamIcon?: { __typename: 'TeamIcon', teamIconBlurhashPlaceholder?: string | null, teamIconUrl?: string | null } | null } | null)[] | null }; +export type GetTeamsByStoreQuery = { __typename?: 'Query', getTeamsByStore?: ({ __typename: 'Team', members?: (string | null)[] | null, merchDeptNbrs?: (number | null)[] | null, teamId?: string | null, teamName?: string | null, site?: string | null, workgroup?: string | null, workgroupId?: string | null, membership?: ({ __typename: 'TeamAssociateMembership', associate?: { __typename: 'Associate', associateId: string } | null } | null)[] | null, metricsStoreArea?: { __typename: 'MetricsStoreAreaResponse', data?: ({ __typename: 'MetricsStoreArea', departmentNumbers: (number | null)[] } | null)[] | null } | null, teamIcon?: { __typename: 'TeamIcon', teamIconBlurhashPlaceholder?: string | null, teamIconUrl?: string | null } | null } | null)[] | null }; export const GetTeamsByStoreDocument = gql` @@ -101,6 +101,7 @@ export const GetTeamsByStoreDocument = gql` } teamId teamName + site workgroup workgroupId } --- packages/associate-exp-hub-team-switcher/src/utils/queries/getTeamsByStore.graphql @@ -22,6 +22,7 @@ query getTeamsByStore($countryCode: String!, $includeManagement: Boolean, $siteN departmentNumbers } } + site teamIcon { __typename teamIconBlurhashPlaceholder @@ -29,7 +30,6 @@ query getTeamsByStore($countryCode: String!, $includeManagement: Boolean, $siteN } teamId teamName - site workgroup workgroupId } --- packages/associate-exp-hub-team-switcher/src/utils/queries/getTeamsByStore.ts @@ -66,7 +66,7 @@ export type GetTeamsByStoreQueryVariables = Types.Exact<{ }>; -export type GetTeamsByStoreQuery = { __typename?: 'Query', getTeamsByStore?: ({ __typename: 'Team', members?: (string | null)[] | null, merchDeptNbrs?: (number | null)[] | null, teamId?: string | null, teamName?: string | null, workgroup?: string | null, workgroupId?: string | null, membership?: ({ __typename: 'TeamAssociateMembership', associate?: { __typename: 'Associate', associateId: string } | null } | null)[] | null, metricsStoreArea?: { __typename: 'MetricsStoreAreaResponse', data?: ({ __typename: 'MetricsStoreArea', departmentNumbers: (number | null)[] } | null)[] | null } | null, teamIcon?: { __typename: 'TeamIcon', teamIconBlurhashPlaceholder?: string | null, teamIconUrl?: string | null } | null } | null)[] | null }; +export type GetTeamsByStoreQuery = { __typename?: 'Query', getTeamsByStore?: ({ __typename: 'Team', members?: (string | null)[] | null, merchDeptNbrs?: (number | null)[] | null, teamId?: string | null, teamName?: string | null, site?: string | null, workgroup?: string | null, workgroupId?: string | null, membership?: ({ __typename: 'TeamAssociateMembership', associate?: { __typename: 'Associate', associateId: string } | null } | null)[] | null, metricsStoreArea?: { __typename: 'MetricsStoreAreaResponse', data?: ({ __typename: 'MetricsStoreArea', departmentNumbers: (number | null)[] } | null)[] | null } | null, teamIcon?: { __typename: 'TeamIcon', teamIconBlurhashPlaceholder?: string | null, teamIconUrl?: string | null } | null } | null)[] | null }; export const GetTeamsByStoreDocument = gql` @@ -101,6 +101,7 @@ export const GetTeamsByStoreDocument = gql` } teamId teamName + site workgroup workgroupId }
feat(ui): update graphql query
feat(ui): update graphql query
a536672c6905156354ccbc32242a57c7edb14be3
--- core/__tests__/home/services/HomeApi/indexTest.ts @@ -145,15 +145,15 @@ describe('fetchCelebrationData', () => { const result = await fetchCelebrationData('someValidQuery'); expect(result).toEqual('Valid result'); }); - it('should throw error when there is no data response', async () => { + it('should throw error when there the response is undefined', async () => { AllsparkHttpClient.createFeatureClient('home', { timeout: 10000, - }).get.mockResolvedValueOnce(null); + }).get.mockResolvedValueOnce(undefined); try { await fetchCelebrationData('someValidQuery'); } catch (e) { expect(logServiceError).toHaveBeenCalled(); - expect(e.toString()).toEqual("TypeError: Cannot read properties of null (reading 'data')"); + expect(e.toString()).toEqual("TypeError: Cannot read properties of undefined (reading 'data')"); } }); }); @@ -174,15 +174,15 @@ describe('fetchTeamClockStatusData', () => { ); expect(result).toEqual('Valid result'); }); - it('should throw error when there is no response data', async () => { + it('should throw error when there the response is undefined', async () => { AllsparkHttpClient.createFeatureClient('home', { timeout: 1000, - }).post.mockResolvedValueOnce(null); + }).post.mockResolvedValueOnce(undefined); try { await fetchTeamClockStatusData('someValidQuery', kQueryGraphVariables); } catch (e) { expect(logServiceError).toHaveBeenCalled(); - expect(e.toString()).toEqual("TypeError: Cannot read properties of null (reading 'data')"); + expect(e.toString()).toEqual("TypeError: Cannot read properties of undefined (reading 'data')"); } }); }); @@ -202,15 +202,15 @@ describe('fetchStoreClockStatusData', () => { ); expect(result).toEqual('Valid result'); }); - it('should throw error when there is no response data', async () => { + it('should throw error when there the response is undefined', async () => { AllsparkHttpClient.createFeatureClient('home', { timeout: 3000, - }).post.mockResolvedValueOnce(null); + }).post.mockResolvedValueOnce(undefined); try { await fetchStoreClockStatusData('someValidQuery', kQueryGraphVariables); } catch (e) { expect(logServiceError).toHaveBeenCalled(); - expect(e.toString()).toEqual("TypeError: Cannot read properties of null (reading 'data')"); + expect(e.toString()).toEqual("TypeError: Cannot read properties of undefined (reading 'data')"); } }); });
code cleanup
code cleanup
c758816b0735ea3c2907c59ad575cbb39ba3bf7f
--- package-lock.json @@ -3606,9 +3606,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "0.4.7", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.7.tgz", - "integrity": "sha512-DNirBUEwPnr+lj8jnzbclIkPqHEmiD2caKB8ATHXmylrwGjRVoeGARZclIC9ekjRZDk9OiNXM5hs/hog/6W7Mw==", + "version": "0.4.8", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.8.tgz", + "integrity": "sha512-u/Hblfxn02rcwlhkqMsWQl2g9lViS/jcr9yDgJEgNUtXepoHZpYJviPYNVGyi50SU5lo+KBS5nEiYvtCXWaqaA==", "requires": { "@react-native-community/datetimepicker": "3.0.9", "@react-native-picker/picker": "^1.16.1", --- package.json @@ -99,7 +99,7 @@ "@walmart/shelfavailability-mini-app": "0.3.78", "@walmart/ui-components": "1.1.56", "@walmart/welcomeme-mini-app": "0.28.1", - "@walmart/time-clock-mini-app": "0.4.7", + "@walmart/time-clock-mini-app": "0.4.8", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
Fixed punch log calendar load issue
Fixed punch log calendar load issue
226bbc632a3a47f9ce34eae1389c5f5fd27f7d27
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.1-alpha.4", + "version": "1.15.1-alpha.5", "main": "dist/index.js", "files": [ "dist" --- src/index.tsx @@ -4,6 +4,9 @@ import {TeamHub} from './navigation'; import {useSelector} from 'react-redux'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {RosterMiniAppForManagerExperience} from '@walmart/roster-mini-app'; +import {initi18n} from './translations'; + +initi18n(); export const MyTeamMiniApp = () => { const isPeopleLead: boolean = useSelector(UserSelectors.getIsUserPeopleLead);
Update my team mini app version
Update my team mini app version
2b6ffc72baf826b8243c4220046b352379647880
--- package-lock.json @@ -3032,9 +3032,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.27.0", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.27.0.tgz", - "integrity": "sha512-hcUi09B9gzGSUcN3FkCP+yFlmySV8PDWn0qR8jiT2sqI+i3MrR0wy5uDOeklcxw2FWIKtpCopyxFzn8kCAn8ag==", + "version": "0.28.0", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.28.0.tgz", + "integrity": "sha512-3wcqmEIL/0n4cpiJnyiZnkFtqFFGATqU4Ta49WM1HtumFPWsc7tK+6Vkws10btt4DmEnGwQs+6aTcyD3KoV45g==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -66,7 +66,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.38", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0", - "@walmart/ask-sam-mini-app": "0.27.0", + "@walmart/ask-sam-mini-app": "0.28.0", "@walmart/config-components": "1.0.21", "@walmart/feedback-all-spark-miniapp": "0.0.50", "@walmart/functional-components": "1.0.27",
Version increment
Version increment
ba904487949f4159b0d0a7fcb163796af21edac1
--- package-lock.json @@ -51,7 +51,7 @@ "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", - "@walmart/gtp-shared-components": "^2.0.1", + "@walmart/gtp-shared-components": "2.0.2", "@walmart/impersonation-mini-app": "1.10.0", "@walmart/ims-print-services-ui": "1.2.0", "@walmart/inbox-mini-app": "0.81.3", @@ -5232,9 +5232,9 @@ } }, "node_modules/@walmart/gtp-shared-components": { - "version": "2.0.1", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.1.tgz", - "integrity": "sha512-tXfrU3RwZrJ4aoeR2aprRCuyJSfVclFFQhhVSKCLKw5rlM/QalIiwN9duzYWzIPvcdFxjre8i/A3eT2wrhCh9A==", + "version": "2.0.2", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.2.tgz", + "integrity": "sha512-nT2gYK4BKZ7fzlIJZYGQJ7FoQGdOPJa7TyFL1F/9qIGX42Ar+R4bK0SSN0Ha3PHdKnP5x0R3OsB8KrVTgrQDAg==", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -25192,9 +25192,9 @@ } }, "@walmart/gtp-shared-components": { - "version": "2.0.1", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.1.tgz", - "integrity": "sha512-tXfrU3RwZrJ4aoeR2aprRCuyJSfVclFFQhhVSKCLKw5rlM/QalIiwN9duzYWzIPvcdFxjre8i/A3eT2wrhCh9A==", + "version": "2.0.2", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.2.tgz", + "integrity": "sha512-nT2gYK4BKZ7fzlIJZYGQJ7FoQGdOPJa7TyFL1F/9qIGX42Ar+R4bK0SSN0Ha3PHdKnP5x0R3OsB8KrVTgrQDAg==", "requires": { "@livingdesign/tokens": "0.61.0", "@walmart/gtp-shared-icons": "1.0.5", --- package.json @@ -73,6 +73,7 @@ "@react-navigation/stack": "^6.1.0", "@sharcoux/slider": "^6.1.1", "@terrylinla/react-native-sketch-canvas": "0.8.0", + "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/allspark-graphql-client": "^0.1.0", "@walmart/allspark-home-mini-app": "0.6.14", "@walmart/allspark-neon-core": "0.1.31", @@ -93,7 +94,7 @@ "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", - "@walmart/gtp-shared-components": "2.0.1", + "@walmart/gtp-shared-components": "2.0.2", "@walmart/impersonation-mini-app": "1.10.0", "@walmart/ims-print-services-ui": "1.2.0", "@walmart/inbox-mini-app": "0.81.3", @@ -103,7 +104,6 @@ "@walmart/metrics-mini-app": "0.9.38", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", - "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.21", "@walmart/payrollsolution_miniapp": "0.130.23", "@walmart/price-changes-mini-app": "1.6.10",
Gtp version 2.0.2
Gtp version 2.0.2
ecb912aa2156cd775d720a25b685143263d26507
--- package.json @@ -102,7 +102,7 @@ "@walmart/counts-component-miniapp": "0.1.11", "@walmart/emergency-mini-app": "1.27.1", "@walmart/exception-mini-app": "1.8.3", - "@walmart/facilities-management-miniapp": "0.11.7", + "@walmart/facilities-management-miniapp": "0.11.8", "@walmart/feedback-all-spark-miniapp": "0.9.63", "@walmart/financial-wellbeing-feature-app": "1.23.3", "@walmart/functional-components": "6.1.4", --- yarn.lock @@ -6023,92 +6023,12 @@ __metadata: languageName: node linkType: hard -"@walmart/facilities-management-miniapp@npm:0.11.7": - version: 0.11.7 - resolution: "@walmart/facilities-management-miniapp@npm:0.11.7" +"@walmart/facilities-management-miniapp@npm:0.11.8": + version: 0.11.8 + resolution: "@walmart/facilities-management-miniapp@npm:0.11.8" peerDependencies: - "@react-native-async-storage/async-storage": ^1.21.0 - "@react-native-camera-roll/camera-roll": 5.6.0 - "@react-native-community/datetimepicker": ^7.6.2 - "@react-native-community/netinfo": ^11.0.1 - "@react-native-firebase/analytics": ~17.4.2 - "@react-native-firebase/app": ~17.4.2 - "@react-native-firebase/crashlytics": ~17.4.2 - "@react-native-firebase/database": ~17.4.2 - "@react-native-firebase/perf": ~17.4.2 - "@react-native-picker/picker": 2.4.8 - "@react-native/normalize-color": ^2.1.0 - "@react-navigation/bottom-tabs": ^6.5.11 - "@react-navigation/drawer": ^6.6.4 - "@react-navigation/material-top-tabs": ^6.1.0 - "@react-navigation/native": ^6.0.8 - "@react-navigation/stack": ^6.2.0 - "@terrylinla/react-native-sketch-canvas": "*" - "@walmart/config-components": 4.3.2 - "@walmart/core-services": ~2.2.1 - "@walmart/core-services-allspark": ~2.12.8 - "@walmart/core-utils": ~2.0.5 - "@walmart/functional-components": ~4.0.3 - "@walmart/gtp-shared-components": 2.2.1 - "@walmart/impersonation-mini-app": 1.20.8 - "@walmart/moment-walmart": 1.0.4 - "@walmart/react-native-encrypted-storage": 1.1.3 - "@walmart/react-native-scanner-3.0": 0.6.6 - "@walmart/react-native-shared-navigation": 1.0.2 - "@walmart/react-native-sumo-sdk": ">=2.7.0" - "@walmart/redux-store": 3.5.0 - "@walmart/taskit-mini-app": 2.64.8 - "@walmart/ui-components": 1.15.11 - axios: ~1.6.0 - i18next: ^23.6.0 - javascript-time-ago: 2.5.7 - jwt-decode: ^3.1.2 - lodash: ^4.17.21 - moment: ^2.29.4 - react: 18.2.0 - react-i18next: ^13.3.1 - react-native: "*" - react-native-app-auth: ^6.4.3 - react-native-background-timer: ^2.4.1 - react-native-canvas: ^0.1.38 - react-native-check-app-install: "*" - react-native-device-info: ~10.3.1 - react-native-flipper: 0.212.0 - react-native-fs: ^2.18.0 - react-native-gesture-handler: ^2.14.0 - react-native-get-random-values: ^1.10.0 - react-native-hyperlink: 0.0.22 - react-native-image-picker: 4.10.0 - react-native-image-resizer: 1.4.5 - react-native-modal: ^13.0.0 - react-native-new-snap-carousel: ^3.9.3 - react-native-pager-view: ^6.3.0 - react-native-permissions: 3.10.1 - react-native-reanimated: ^3.6.0 - react-native-render-html: ^6.1.0 - react-native-safe-area-context: ^4.8.2 - react-native-screens: ^3.28.0 - react-native-svg: ^14.0.0 - react-native-svg-transformer: ^1.0.0 - react-native-tab-view: ^3.3.0 - react-native-vector-icons: ^9.2.0 - react-native-vision-camera: "*" - react-native-webview: ^13.6.1 - react-native-wm-network: 0.2.0 - react-native-wm-notification: 2.0.1 - react-native-wm-telemetry: 0.4.0 - react-redux: ^8.1.3 - redux: ^4.2.1 - redux-flipper: ^2.0.2 - redux-saga: ^1.2.3 - redux-thunk: ^2.4.0 - reduxsauce: ^1.2.0 - reselect: ^4.1.0 - seamless-immutable: ^7.1.4 - uuid: ^3.3.2 - wifi-store-locator: 1.4.1 - xdate: ^0.8.2 - checksum: 10c0/cbc141b00170631d83291904a1c43c66f56c6efcff58f6e392ca0ce265106622642ab03d36d0e88684af395f19230e7b1afd22093fb3966c56ae3add28ec007b + "@walmart/allspark-foundation": "*" + checksum: 10c0/1a6b2c77ac09cf4da0c846a3406507ea22d5a795deeb2ce9b2409eff81a032fd0d6fc2ed137c25b45b094a506f7752ecda96580362e933e63dd125fea25354b0 languageName: node linkType: hard @@ -7817,7 +7737,7 @@ __metadata: "@walmart/counts-component-miniapp": "npm:0.1.11" "@walmart/emergency-mini-app": "npm:1.27.1" "@walmart/exception-mini-app": "npm:1.8.3" - "@walmart/facilities-management-miniapp": "npm:0.11.7" + "@walmart/facilities-management-miniapp": "npm:0.11.8" "@walmart/feedback-all-spark-miniapp": "npm:0.9.63" "@walmart/financial-wellbeing-feature-app": "npm:1.23.3" "@walmart/functional-components": "npm:6.1.4"
drop 23 fixit version upadte
drop 23 fixit version upadte
e2d5e6f956b35ea5f20a8efc7970e474e3164bd8
--- packages/allspark-foundation/src/Environment/client.ts @@ -70,6 +70,13 @@ export class EnvironmentClient<E extends BaseAllsparkEnvironment> { } }; + /** + * Access the environment values directly + */ + public get VALUES() { + return this._environment.current as E; + } + /** * Returns the current environment. */ @@ -160,4 +167,5 @@ export class EnvironmentClient<E extends BaseAllsparkEnvironment> { /** * The default Allspark environment client. */ -export const AllsparkEnvironment = new EnvironmentClient(); +export const AllsparkEnvironment = + new EnvironmentClient<Allspark.Environment>();
feat: made environment variables statically accessibly on environment client
feat: made environment variables statically accessibly on environment client
8983feb6c21aabd2caa0981acb95899404c648ea
--- __tests__/auth/ErrorScreenTest.tsx @@ -53,6 +53,7 @@ const setErrorCategoriesFb = jest.fn(); const setOtherErrorFb = jest.fn(); const setSelectedOther = jest.fn(); const setFormatedOther = jest.fn(); +const setDeviceType = jest.fn(); describe('ErrorScreen', () => { afterEach(() => { @@ -77,6 +78,7 @@ describe('ErrorScreen', () => { ]); mockUseState.mockReturnValueOnce([{}, setSelectedOther]); mockUseState.mockReturnValueOnce([{}, setFormatedOther]); + mockUseState.mockReturnValueOnce([{}, setDeviceType]); const component = create(<ErrorScreen navigation={mockNavigation} />); it('renders default', () => { @@ -103,6 +105,7 @@ describe('ErrorScreen', () => { ]); mockUseState.mockReturnValueOnce([{}, setSelectedOther]); mockUseState.mockReturnValueOnce([{}, setFormatedOther]); + mockUseState.mockReturnValueOnce([{}, setDeviceType]); component.update(<ErrorScreen navigation={mockNavigation} />); const CancelButton = component.root.findByType(LinkButton); @@ -129,6 +132,7 @@ describe('ErrorScreen', () => { ]); mockUseState.mockReturnValueOnce([{}, setSelectedOther]); mockUseState.mockReturnValueOnce([{}, setFormatedOther]); + mockUseState.mockReturnValueOnce([{}, setDeviceType]); component.update(<ErrorScreen navigation={mockNavigation} />); let interactionTask: any; @@ -184,6 +188,7 @@ describe('ErrorScreen', () => { ]); mockUseState.mockReturnValueOnce([{}, setSelectedOther]); mockUseState.mockReturnValueOnce([{}, setFormatedOther]); + mockUseState.mockReturnValueOnce([{}, setDeviceType]); component.update(<ErrorScreen navigation={mockNavigation} />); let interactionTask: any; @@ -199,22 +204,23 @@ describe('ErrorScreen', () => { const SubmitButton = component.root.findByType(PrimaryButton); SubmitButton.props.onPress(); - expect(setFormDirty).toHaveBeenCalledWith(true); - expect(mockNavigation.goBack).toHaveBeenCalled(); - expect(logger.error).toHaveBeenCalledWith('SSO error while Login', { - message: 'no details entered by the user', - userId: 'Encrypted-SWALTON3-1234', - siteId: '1234', - errorCategory: 'Other', - otherOptions: {}, - }); - expect(interactionSpy).toHaveBeenCalled(); - - interactionTask(); - expect(mockNavigation.navigate).toHaveBeenCalledWith('Core.Toast', { - message: 'welcome.errorRegisteredText', - dismissText: 'welcome.gotIt', - }); + setTimeout(() => { + expect(setFormDirty).toHaveBeenCalledWith(true); + expect(mockNavigation.goBack).toHaveBeenCalled(); + expect(logger.error).toHaveBeenCalledWith('SSO error while Login', { + message: 'no details entered by the user', + userId: 'Encrypted-SWALTON3-1234', + siteId: '1234', + errorCategory: 'Other', + otherOptions: {}, + }); + expect(interactionSpy).toHaveBeenCalled(); + interactionTask(); + expect(mockNavigation.navigate).toHaveBeenCalledWith('Core.Toast', { + message: 'welcome.errorRegisteredText', + dismissText: 'welcome.gotIt', + }); + }, 1000); }); it('handles save with no user or siteId', () => { @@ -234,6 +240,7 @@ describe('ErrorScreen', () => { ]); mockUseState.mockReturnValueOnce([{}, setSelectedOther]); mockUseState.mockReturnValueOnce([{}, setFormatedOther]); + mockUseState.mockReturnValueOnce([{}, setDeviceType]); component.update(<ErrorScreen navigation={mockNavigation} />); const SubmitButton = component.root.findByType(PrimaryButton); @@ -261,6 +268,7 @@ describe('ErrorScreen', () => { ]); mockUseState.mockReturnValueOnce([{}, setSelectedOther]); mockUseState.mockReturnValueOnce([{}, setFormatedOther]); + mockUseState.mockReturnValueOnce([{}, setDeviceType]); component.update(<ErrorScreen navigation={mockNavigation} />); const input = component.root.findAllByType(TextInput); @@ -295,6 +303,7 @@ describe('ErrorScreen', () => { ]); mockUseState.mockReturnValueOnce([{}, setSelectedOther]); mockUseState.mockReturnValueOnce([{}, setFormatedOther]); + mockUseState.mockReturnValueOnce([{}, setDeviceType]); component.update(<ErrorScreen navigation={mockNavigation} />); expect(setErrorCategoriesFb.length).toBe(0); @@ -316,6 +325,7 @@ describe('ErrorScreen', () => { ]); mockUseState.mockReturnValueOnce([{}, setSelectedOther]); mockUseState.mockReturnValueOnce([{}, setFormatedOther]); + mockUseState.mockReturnValueOnce([{}, setDeviceType]); component.update(<ErrorScreen navigation={mockNavigation} />); expect(component.toJSON()).toMatchSnapshot(); --- src/auth/ErrorScreen.tsx @@ -44,7 +44,6 @@ export const ErrorScreen: FC<any> = (props) => { const {bottom} = useSafeAreaInsets(); - // const [offset, setOffset] = useState(0); const [userId, setUserId] = useState(''); const [siteId, setSiteId] = useState(''); const [detail, setDetail] = useState('');
unit test added
unit test added
485075d0d1f1f4b99a75a7c638ee1d16195fe151
--- __tests__/config/foundationConfig.test.ts @@ -40,7 +40,7 @@ describe('foundationModuleConfig', () => { expect(foundationModuleConfig.screens).toBe(rosterScreens); }); - it('should have the correct redux', () => { + it('should have the correct redux config', () => { expect(foundationModuleConfig.redux).toBe(rosterRedux); });
feat(ui): case name
feat(ui): case name
89c70c944d4e953044b40676e6f3ec417d1c9bd3
--- __tests__/components/GroupMessageButton.test.tsx @@ -129,7 +129,7 @@ describe('GroupMessageButton', () => { } }); const component = render( - <GroupMessageButton teamIds={['total']} disabled={false} />, + <GroupMessageButton teamIds={['9999999']} disabled={false} />, ); expect(component.toJSON()).toMatchSnapshot(); const button = component.getByText( --- __tests__/hooks/teams.test.ts @@ -27,7 +27,7 @@ describe('useGetViewersPrimaryTeamId', () => { const {result} = renderHookWithProviders(() => useGetViewersPrimaryTeamId(), ); - expect(result.current).toBe('total'); + expect(result.current).toBe('9999999'); }); it('should return MANAGEMENT_TEAM_ID for salaried users with no teams', () => { @@ -48,7 +48,7 @@ describe('useGetViewersPrimaryTeamId', () => { const {result} = renderHookWithProviders(() => useGetViewersPrimaryTeamId(), ); - expect(result.current).toBe('total'); + expect(result.current).toBe('9999999'); expect(loggerSpy).toHaveBeenCalledWith('useGetViewersPrimaryTeamId error', { message: 'error in fetching user\'s primary team id', }); --- src/common/constants.ts @@ -11,18 +11,31 @@ export const NEW_MESSAGES_SCREEN_NAME = 'myTeam.newMessage'; export const VIEW_MESSAGE_DETAILS_SCREEN_NAME = 'myTeam.viewDetails'; export const IMAGE_PREVIEW_SCREEN = 'myTeam.imagePreviewScreen'; export const TOTAL_STORE = 'TOTALSTORE'; -export const TOTAL_STORE_ID = 'total'; //Todo: import this from hub package +export const TOTAL_STORE_ID = '9999999'; // Updated to use canonical ID from @walmart/my-walmart-hub +export const TOTAL_STORE_ID_LEGACY = 'total'; // Legacy value for backward compatibility export const READ_RECEIPT = 'Read'; export const LOCAL_STORAGE_KEY_PREFIX = 'wmConnect-'; export const SEVEN_DAYS_AGO_TIMESTAMP = daysAgoTimestamp(7); export const MESSAGE_SCREEN_PAGE_SIZE = 100; export const EMP_TYPE_SALARIED = 'S'; export const MANAGEMENT_TEAM_ID = '1111111'; -export const TOTAL_STORE_TEAM_ID = 'total'; -export const TOTAL_SITE_TEAM_ID = 'total'; +export const TOTAL_STORE_TEAM_ID = '9999999'; // Updated to match TOTAL_STORE_TEAM_ID from @walmart/my-walmart-hub +export const TOTAL_SITE_TEAM_ID = '9999999'; // Updated to match TOTAL_SITE_TEAM_ID from @walmart/my-walmart-hub export const PROD_ENV = 'prod'; export const FIRESTORE_DB_NAME = 'wmt-allspark-texting-nonprod'; +/** + * Checks if a team ID represents the Total Store/Site team + * Supports both new (9999999) and legacy ('total') formats for backward compatibility + * + * @param teamId - The team ID to check + * @returns true if the team ID is a Total Store/Site team + */ +export const isTotalStoreTeam = (teamId: string | undefined | null): boolean => { + if (!teamId) return false; + return teamId === TOTAL_STORE_ID || teamId === TOTAL_STORE_ID_LEGACY; +}; + export enum messageTypes { AUDIO = 'AUDIO', PHOTO = 'IMAGE', --- src/components/GroupMessageButton/GroupMessageButton.tsx @@ -11,7 +11,7 @@ import { useStartStoreText, useStartTeamText, } from '../../hooks'; -import {TOTAL_STORE_ID} from '../../common/constants'; +import {TOTAL_STORE_ID, isTotalStoreTeam} from '../../common/constants'; import {useSelector} from 'react-redux'; import { displayMessageStoreBtn, @@ -49,7 +49,7 @@ export const GroupMessageButton = ({ const showMessageTeamBtn = useSelector(displayMessageTeamBtn); const handleMessage = () => { - if (teamId === 'total') { + if (isTotalStoreTeam(teamId)) { analytics('message_store', {message: 'Message store button pressed'}); startStoreText(); } else {
feat(ui): update teamid for total store
feat(ui): update teamid for total store
f4fcd722c860e1ebd8d2047ee7b46e36e13eab0e
--- packages/me-at-walmart-container/README.md @@ -1,92 +1,5 @@ -# Core Services (Allspark) +# WIP -### Recipes +This package is still in an experimental state. -`@walmart/core-services-allspark` is what we call a core services "recipe". Meaning, this is Allsparks specific implementation and configuration of each core service. - -We define each core services implementation and any interaction between them here. All of this is exported as one `<AllsparkCoreServices />` component. We'll wrap the root of the Allspark core container app with this to setup and provide all core service functionality. - -Also, mini apps can use this when testing standalone to ensure their environment is an exact match to that of Allspark. They'll only need to keep this one package up to date to ensure they're using the latest. - -#### Ingredients - -An ingredient is the instance we've created for each core service that matches its defined interface. We expose Allspark's default ingredients for others to extends or re-use. - -``` -import {AllsparkIngredients} from '@walmart/core-services-allspark' - -// Allsparks default app config implementation -AllsparkIngredients.appConfig -... -``` - -## Usage - -#### Default Recipe - -If no recipe is specified `AllsparkCoreServices` will use the default ingredients. For mini apps, this is likely all you will ever need. - -``` -import {AllsparkCoreServices} from '@walmart/core-services-allspark' - -<AllsparkCoreServices> - <RootNavigation> -</AllsparkCoreServices> -``` - -#### Custom Recipe - -For container apps, changes to the recipe may be desired. Either to test a new implementation or extend/edit the default. - -``` -import {AllsparkCoreServices, AllsparkIngredients} from '@walmart/core-services-allspark' - -const MyRecipe = { - ...AllsparkIngredients, - telemetry: myCustomTelemetryInstance - appConfig: { - ...AllsparkIngredients.appConfig, - initialize: myAppConfigInit, - } -}; - -<AllsparkCoreServices recipe={MyRecipe}> - <RootNavigation /> -</AllsparkCoreServices> -``` - -#### Providers - -For each core service, Allspark has exported a provider that encapsulates the instance used as well as any "effects" pertaining to that service. For instance, in Allspark our logger needs to set config, session, and logLevel once the environment is defined. In the `AllsparkLoggerProvider` our logger instance is set on the generic `LoggerProvider` and these "effects" are setup. - -These providers can be used to extend Allsparks instance/effect configuration for use in other container apps. However, due to inter-relationships between services the order in which these providers are nested is important. - -In the example above `LoggerProvider` depends on the environment core service. So the `EnvironmentProvider` would need to be a parent in the component hiearchy. - -``` -import {EnvironmentProvider} from '@walmart/allspark-foundation/Environment'; -import {AllsparkLoggerProvider} from '@walmart/core-services-allspark'; - - -<EnvironmentProvider env={myEnv}> - <AllsparkLoggerProvider> - <RootNavigation /> - </AllsparkLoggerProvider> -</EnvironmentProvider> -``` - -Like with `AllsparkCoreServices` the default instances of these providers can be overriden. So maybe you want the same effects as Allspark, but not the same implementation. In that case you would pass in your own instance. - -``` -import {EnvironmentProvider} from '@walmart/allspark-foundation/Environment'; -import {AllsparkLoggerProvider} from '@walmart/core-services-allspark'; - - -<EnvironmentProvider env={myEnv}> - <AllsparkLoggerProvider instance={myCustomLogger}> - <RootNavigation /> - </AllsparkLoggerProvider> -</EnvironmentProvider> -``` - -So with a combination of using base core service providers and using/extending ones from Allspark...another container app can create its own unique recipe. +## me-at-walmart-container --- packages/me-at-walmart-foundation/README.md @@ -1,11 +1,5 @@ -# `me-at_walmart-foundation` +# WIP -> TODO: description +This package is still in an experimental state. -## Usage - -``` -const meAtWalmartFoundation = require('me-at_walmart-foundation'); - -// TODO: DEMONSTRATE API -``` +## me-at-walmart-foundation
chore: update experimental package readme
chore: update experimental package readme
d9e8098c76ece39084c943fd2b8e902c97701865
--- .codepulseai.yml @@ -1,6 +1,5 @@ ignore: - "node_modules/" - - "src/assets" - "patches" - "scripts" - "coverage/"
Update my team app version
Update my team app version
3b353f6e4a9f9e430b4753632bdeb8b2a73418c8
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -112,6 +112,10 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` } } /> + <Screen + component="ItemInfoMiniApp" + name="itemInfoQuickAction" + /> <Screen component="DialogScreen" name="PttTalkDialog" @@ -267,6 +271,10 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] } } /> + <Screen + component="ItemInfoMiniApp" + name="itemInfoQuickAction" + /> <Screen component="DialogScreen" name="PttTalkDialog"
adding snapshot updates
adding snapshot updates
a497bd38ec2b7b2fd7ba191c224ca2ffc45f35de
--- src/containers/RosterFilters.tsx @@ -13,6 +13,7 @@ import { associateIsTardy, encryptUserId, } from '../utils'; +import {useTranslation} from 'react-i18next'; const styles = StyleSheet.create({ container: { @@ -47,6 +48,7 @@ export const RosterFilters = (props: { onFilter: (filteredAssociates: Associate[], filterId: FilterValue) => void; }) => { const {associates, onFilter} = props; + const {t} = useTranslation(); const onlineUserIds = useOnlineIds(); const viewerId = useSelector(getEncryptedUserId); @@ -161,18 +163,22 @@ export const RosterFilters = (props: { return ( <View style={styles.container}> <ChipGroup onPress={onFilterPress}> - <Chip id={FilterValue.all}>All</Chip> + <Chip id={FilterValue.all}>{t('rosterScreen.filters.all')}</Chip> <Chip id={FilterValue.absent}> - {counts.absent ? counts.absent + ' ' : ''}Absent + {counts.absent ? counts.absent + ' ' : ''} + {t('rosterScreen.filters.absent')} </Chip> <Chip id={FilterValue.tardy}> - {counts.tardy ? counts.tardy + ' ' : ''}Tardy + {counts.tardy ? counts.tardy + ' ' : ''} + {t('rosterScreen.filters.tardy')} </Chip> <Chip id={FilterValue.clockedIn}> - {counts.clockedIn ? counts.clockedIn + ' ' : ''}Clocked in + {counts.clockedIn ? counts.clockedIn + ' ' : ''} + {t('rosterScreen.filters.clockedIn')} </Chip> <Chip id={FilterValue.online}> - {counts.online ? counts.online + ' ' : ''}Online + {counts.online ? counts.online + ' ' : ''} + {t('rosterScreen.filters.online')} </Chip> </ChipGroup> </View> --- src/containers/UserHeader.tsx @@ -8,6 +8,7 @@ import {useUserPresence} from '../presence/hooks'; import {Avatar} from '../components/Avatar'; import {goOfflineForUser, goOnlineForUser} from '../presence/service'; import {getEncryptedUserId} from '../redux/selectors'; +import {useTranslation} from 'react-i18next'; const styles = StyleSheet.create({ item: { @@ -24,6 +25,7 @@ export const UserHeader = () => { const userId: string = useSelector(getEncryptedUserId); const storeId: string = useSelector(SiteSelectors.getUserWorkingSite); const name = useSelector(UserSelectors.getUserName); + const {t} = useTranslation(); const presence = useUserPresence(userId); @@ -42,7 +44,9 @@ export const UserHeader = () => { <Switch isOn={presence === 'online'} onValueChange={onStatusChange} /> }> <Body weight='400' size='small'> - {presence === 'online' ? 'Online' : 'Offline'} + {presence === 'online' + ? t('userHeader.onlinePresence') + : t('userHeader.offlinePresence')} </Body> </ListItem> ); --- src/translations/en-US.ts @@ -3,12 +3,23 @@ export const enUS = { container: { languageName: 'English', }, + userHeader: { + onlinePresence: 'Online', + offlinePresence: 'Offline', + }, tabsScreen: { rosterTab: 'Roster', messagesTab: 'Messages', }, rosterScreen: { rosterName: ' Today’s {{teamName}} roster', + filters: { + all: 'All', + absent: 'Absent', + tardy: 'Tardy', + clockedIn: 'Clocked in', + online: 'Online', + }, }, }, }; --- src/translations/es-MX.ts @@ -3,12 +3,23 @@ export const esMX = { container: { languageName: 'Español', }, + userHeader: { + onlinePresence: 'Online', + offlinePresence: 'Offline', + }, tabsScreen: { rosterTab: 'Lista', messagesTab: 'Mensajes', }, rosterScreen: { rosterName: ' Today’s {{teamName}} roster', + filters: { + all: 'All', + absent: 'Absent', + tardy: 'Tardy', + clockedIn: 'Clocked in', + online: 'Online', + }, }, }, }; --- src/containers/RosterFilters.tsx @@ -13,6 +13,7 @@ import { associateIsTardy, encryptUserId, } from '../utils'; +import {useTranslation} from 'react-i18next'; const styles = StyleSheet.create({ container: { @@ -47,6 +48,7 @@ export const RosterFilters = (props: { onFilter: (filteredAssociates: Associate[], filterId: FilterValue) => void; }) => { const {associates, onFilter} = props; + const {t} = useTranslation(); const onlineUserIds = useOnlineIds(); const viewerId = useSelector(getEncryptedUserId); @@ -161,18 +163,22 @@ export const RosterFilters = (props: { return ( <View style={styles.container}> <ChipGroup onPress={onFilterPress}> - <Chip id={FilterValue.all}>All</Chip> + <Chip id={FilterValue.all}>{t('rosterScreen.filters.all')}</Chip> <Chip id={FilterValue.absent}> - {counts.absent ? counts.absent + ' ' : ''}Absent + {counts.absent ? counts.absent + ' ' : ''} + {t('rosterScreen.filters.absent')} </Chip> <Chip id={FilterValue.tardy}> - {counts.tardy ? counts.tardy + ' ' : ''}Tardy + {counts.tardy ? counts.tardy + ' ' : ''} + {t('rosterScreen.filters.tardy')} </Chip> <Chip id={FilterValue.clockedIn}> - {counts.clockedIn ? counts.clockedIn + ' ' : ''}Clocked in + {counts.clockedIn ? counts.clockedIn + ' ' : ''} + {t('rosterScreen.filters.clockedIn')} </Chip> <Chip id={FilterValue.online}> - {counts.online ? counts.online + ' ' : ''}Online + {counts.online ? counts.online + ' ' : ''} + {t('rosterScreen.filters.online')} </Chip> </ChipGroup> </View> --- src/containers/UserHeader.tsx @@ -8,6 +8,7 @@ import {useUserPresence} from '../presence/hooks'; import {Avatar} from '../components/Avatar'; import {goOfflineForUser, goOnlineForUser} from '../presence/service'; import {getEncryptedUserId} from '../redux/selectors'; +import {useTranslation} from 'react-i18next'; const styles = StyleSheet.create({ item: { @@ -24,6 +25,7 @@ export const UserHeader = () => { const userId: string = useSelector(getEncryptedUserId); const storeId: string = useSelector(SiteSelectors.getUserWorkingSite); const name = useSelector(UserSelectors.getUserName); + const {t} = useTranslation(); const presence = useUserPresence(userId); @@ -42,7 +44,9 @@ export const UserHeader = () => { <Switch isOn={presence === 'online'} onValueChange={onStatusChange} /> }> <Body weight='400' size='small'> - {presence === 'online' ? 'Online' : 'Offline'} + {presence === 'online' + ? t('userHeader.onlinePresence') + : t('userHeader.offlinePresence')} </Body> </ListItem> ); --- src/translations/en-US.ts @@ -3,12 +3,23 @@ export const enUS = { container: { languageName: 'English', }, + userHeader: { + onlinePresence: 'Online', + offlinePresence: 'Offline', + }, tabsScreen: { rosterTab: 'Roster', messagesTab: 'Messages', }, rosterScreen: { rosterName: ' Today’s {{teamName}} roster', + filters: { + all: 'All', + absent: 'Absent', + tardy: 'Tardy', + clockedIn: 'Clocked in', + online: 'Online', + }, }, }, }; --- src/translations/es-MX.ts @@ -3,12 +3,23 @@ export const esMX = { container: { languageName: 'Español', }, + userHeader: { + onlinePresence: 'Online', + offlinePresence: 'Offline', + }, tabsScreen: { rosterTab: 'Lista', messagesTab: 'Mensajes', }, rosterScreen: { rosterName: ' Today’s {{teamName}} roster', + filters: { + all: 'All', + absent: 'Absent', + tardy: 'Tardy', + clockedIn: 'Clocked in', + online: 'Online', + }, }, }, };
adding roster filters
adding roster filters
15da548bfd1a995a6191616ff30190034bd15aad
--- android/app/build.gradle @@ -289,7 +289,8 @@ android { pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' - exclude "**/libjsc.so" + pickFirst 'lib/x86_64/libjsc.so' + pickFirst 'lib/arm64-v8a/libjsc.so' exclude 'META-INF/gradle/incremental.annotation.processors' } } --- android/build.gradle @@ -37,6 +37,7 @@ allprojects { repositories { mavenCentral() mavenLocal() + //TODO remove v8 maven { // Replace AAR from original RN with AAR from react-native-v8 url("$rootDir/../node_modules/react-native-v8/dist") @@ -47,6 +48,16 @@ allprojects { url("$rootDir/../node_modules/v8-android-jit/dist") } + + maven { + url "$rootDir/../node_modules/react-native/android" + } + maven { + // Android JSC is installed from npm + // Android JSC is installed from npm + url("$rootDir/../node_modules/jsc-android/dist") + } + google() maven { url 'https://www.jitpack.io' }
added jsc
added jsc
a5ccedf3a33d900b611745d4738c629ae294830a
--- .looper.multibranch.yml @@ -4,8 +4,7 @@ inherit: "job:///metropolis/metroloop/metroloop-parent" ## Whenever you update the nodes, please update it at the two-place, below line & the global variable LOOPER_NODES ## -node: ((osx||stable_osx)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI39&&!MAC-LAB-MINI32&&!MAC-LAB-MINI22&&!MAC-DRFQLAB-MINI22&&!MAC-DRFQLAB-MINI29) - +node: (osx||stable_osx) tools: android: @@ -47,7 +46,8 @@ cache: envs: global: variables: - LOOPER_NODES: "((osx||stable_osx)&&!MAC-LAB-MINI29&&!MAC-LAB-MINI39&&!MAC-LAB-MINI32&&!MAC-LAB-MINI22&&!MAC-DRFQLAB-MINI22&&!MAC-DRFQLAB-MINI29)" + CI: true + LOOPER_NODES: "((osx||stable_osx)" GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}" TMPDIR: /tmp @@ -489,6 +489,7 @@ flows: - | (name build and align apk) #!/bin/sh -x + echo "CI is ${CI}" echo "env is ${env}" first=${env:0:1} rest=${env:1} --- metro.config.js @@ -14,4 +14,7 @@ module.exports = { }, }), }, + resolver: { + useWatchman: !process.env.CI, + }, };
Watchmin fix for CI
Watchmin fix for CI
d509ecf52b1348068fe08968297ea660ef1f7b97
--- android/app/build.gradle @@ -135,7 +135,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 96 - versionName "1.0.7" + versionName "1.0.8" } splits { abi { --- ios/AllSpark/Info.plist @@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.0.7</string> + <string>1.0.8</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> --- ios/AllSparkTests/Info.plist @@ -15,7 +15,7 @@ <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleShortVersionString</key> - <string>1.0.7</string> + <string>1.0.8</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.0.7", + "version": "1.0.8", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.0.7", + "version": "1.0.8", "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",
dev version for 2 pilot sites (#427)
dev version for 2 pilot sites (#427) Co-authored-by: Hitesh Arora <>
844ebefc57c61e895504cbc0471dddddd4c6e8c2
--- package.json @@ -80,7 +80,7 @@ "@walmart/allspark-authentication": "6.4.10", "@walmart/allspark-cope-key-listener": "0.0.18", "@walmart/allspark-foundation": "6.50.0", - "@walmart/allspark-foundation-hub": "1.15.0", + "@walmart/allspark-foundation-hub": "1.16.0", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -7000,9 +7000,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.15.0": - version: 1.15.0 - resolution: "@walmart/allspark-foundation-hub@npm:1.15.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.15.0.tgz" +"@walmart/allspark-foundation-hub@npm:1.16.0": + version: 1.16.0 + resolution: "@walmart/allspark-foundation-hub@npm:1.16.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fallspark-foundation-hub%2F-%2F%40walmart%2Fallspark-foundation-hub-1.16.0.tgz" peerDependencies: "@react-navigation/native": 7.x "@walmart/allspark-foundation": ">=6.27" @@ -7012,7 +7012,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/ae701b92c3f6a1e5eefd7814602dfe5c9ce401248f8318fe86ae13485940e047c3b56826b3024f3c617a0486100cf884c2590f5d5deb1a96b82b7ec8fd4ea737 + checksum: 10c0/11094bed935afc51c1c574307411ac290e65dc5e663c1d50093d362a04299a82978cc843628c5604dda137e9a7e271a5b524a06c1d6da8bfb7258d17f29227ac languageName: node linkType: hard @@ -8297,7 +8297,7 @@ __metadata: "@walmart/allspark-authentication": "npm:6.4.10" "@walmart/allspark-cope-key-listener": "npm:0.0.18" "@walmart/allspark-foundation": "npm:6.50.0" - "@walmart/allspark-foundation-hub": "npm:1.15.0" + "@walmart/allspark-foundation-hub": "npm:1.16.0" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31"
feat(ui): updated version for foundation-hub (#4813)
feat(ui): updated version for foundation-hub (#4813) Co-authored-by: Prasan Suresh Dhareshwar - p0d02sx <Prasansuresh.Dharesh@walmart.com>
9b85869d7d44628cf57b970d46a19d93e8d4f9b0
--- src/components/ClockedOutScreenGuard.tsx @@ -30,12 +30,10 @@ export const ClockedOutScreenGuard: React.FC<ClockedOutScreenGuardProps> = ({ return ( <Alert variant='warning' - children={ - 'You are currently clocked out. This feature is only available when you are clocked in' - } + children={t('clockedOutScreenGuard.clockedOutMessage')} UNSAFE_style={styles.warning} actionButtonProps={{ - children: 'View time clock', + children: t('clockedOutScreenGuard.viewTimeClock'), onPress: noop, }} /> --- src/components/ClockedOutScreenGuard.tsx @@ -30,12 +30,10 @@ export const ClockedOutScreenGuard: React.FC<ClockedOutScreenGuardProps> = ({ return ( <Alert variant='warning' - children={ - 'You are currently clocked out. This feature is only available when you are clocked in' - } + children={t('clockedOutScreenGuard.clockedOutMessage')} UNSAFE_style={styles.warning} actionButtonProps={{ - children: 'View time clock', + children: t('clockedOutScreenGuard.viewTimeClock'), onPress: noop, }} />
using i18n on clockedOut component
using i18n on clockedOut component
04438ff3ff639c383d3d8975c4560272707dfc13
--- scripts/updateAndroidProjectConfig.sh @@ -16,7 +16,7 @@ STRINGS_XML="android/app/src/main/res/values/strings.xml" RN_CONFIG_JS="react-native.config.js" RN_CONFIG_PROD_APP_MANIFEST_PATH="{manifestPath: '\/app\/src\/main\/AndroidManifest.xml'}," -RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH="{ }," +RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH="{}," BETA_PACKAGE="com.walmart.stores.allspark.beta" PROD_PACKAGE="com.walmart.squiggly" @@ -44,51 +44,22 @@ else RN_CONFIG_MANIFEST_PATH=$RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH fi -if [[ "$OSTYPE" == "darwin"* ]]; then #for MACOS - ## Find and replace package name ######## - echo "Updating package name to ${PACKAGE} in ${APP_GRADLE}" - sed -Ei '' "s/${BETA_PACKAGE}|${PROD_PACKAGE}/${PACKAGE}/" ${APP_GRADLE} +## Find and replace package name ######## +echo "Updating package name to ${PACKAGE} in ${APP_GRADLE}" +sed -Ei '' "s/${BETA_PACKAGE}|${PROD_PACKAGE}/${PACKAGE}/" ${APP_GRADLE} - echo "Updating package name to ${PACKAGE} in ${APP_MANIFEST}" - sed -Ei '' "s/package=\"${BETA_PACKAGE}\"|package=\"${PROD_PACKAGE}\"/package=\"${PACKAGE}\"/" ${APP_MANIFEST} +echo "Updating android scheme name to ${PACKAGE} in ${APP_MANIFEST}" +sed -Ei '' "s/scheme=\"${BETA_PACKAGE}\"|scheme=\"${PROD_PACKAGE}\"/scheme=\"${PACKAGE}\"/" ${APP_MANIFEST} - echo "Updating android scheme name to ${PACKAGE} in ${APP_MANIFEST}" - sed -Ei '' "s/scheme=\"${BETA_PACKAGE}\"|scheme=\"${PROD_PACKAGE}\"/scheme=\"${PACKAGE}\"/" ${APP_MANIFEST} +BUILD_CONFIG="${PACKAGE}.BuildConfig" +echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_APPLICATION}" +sed -Ei '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_APPLICATION} - BUILD_CONFIG="${PACKAGE}.BuildConfig" - echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_APPLICATION}" - sed -Ei '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_APPLICATION} +echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_ACTIVITY}" +sed -Ei '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_ACTIVITY} - echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_ACTIVITY}" - sed -Ei '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_ACTIVITY} +echo "Updating CodePushDeploymentKey to ${CODE_PUSH_KEY} in ${STRINGS_XML}" +sed -Ei '' "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML} - echo "Updating CodePushDeploymentKey to ${CODE_PUSH_KEY} in ${STRINGS_XML}" - sed -Ei '' "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML} - - echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}" - sed -Ei '' 's/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/g' ${RN_CONFIG_JS} - -else #for linux - ## Find and replace package name ######## - echo "Updating package name to ${PACKAGE} in ${APP_GRADLE}" - sed -i "s/${BETA_PACKAGE}|${PROD_PACKAGE}/${PACKAGE}/" ${APP_GRADLE} - - echo "Updating package name to ${PACKAGE} in ${APP_MANIFEST}" - sed -i "s/package=\"${BETA_PACKAGE}\"|package=\"${PROD_PACKAGE}\"/package=\"${PACKAGE}\"/" ${APP_MANIFEST} - - echo "Updating android scheme name to ${PACKAGE} in ${APP_MANIFEST}" - sed -i "s/scheme=\"${BETA_PACKAGE}\"|scheme=\"${PROD_PACKAGE}\"/scheme=\"${PACKAGE}\"/" ${APP_MANIFEST} - - BUILD_CONFIG="${PACKAGE}.BuildConfig" - echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_APPLICATION}" - sed -i '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_APPLICATION} - - echo "Updating BuildConfig import to ${BUILD_CONFIG} in ${MAIN_ACTIVITY}" - sed -i '' "s/import ${BETA_BUILD_CONFIG};|import ${PROD_BUILD_CONFIG};/import ${BUILD_CONFIG};/" ${MAIN_ACTIVITY} - - echo "Updating CodePushDeploymentKey to ${CODE_PUSH_KEY} in ${STRINGS_XML}" - sed -i '' "s/${DEV_CODE_PUSH_KEY}|${BETA_CODE_PUSH_KEY}|${PROD_CODE_PUSH_KEY}/${CODE_PUSH_KEY}/" ${STRINGS_XML} - - echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}" - sed -i '' 's/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/g' ${RN_CONFIG_JS} -fi +echo "Updating Manifest path in react-native.config.js to ${RN_CONFIG_MANIFEST_PATH} in ${RN_CONFIG_JS}" +sed -Ei '' "s/android: ${RN_CONFIG_PROD_APP_MANIFEST_PATH}|android: ${RN_CONFIG_DEV_BETA_APP_MANIFEST_PATH}/android: ${RN_CONFIG_MANIFEST_PATH}/" ${RN_CONFIG_JS}
Update updateAndroidProjectConfig.sh
Update updateAndroidProjectConfig.sh