commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
2c7ec6150006f8077dbb8e94fb23c85d6ed9eccf
--- ios/Podfile.lock @@ -548,8 +548,6 @@ PODS: - React - RNPermissions (3.0.0): - React-Core - - RNReactNativeABeep (1.0.4): - - React - RNReactNativeHapticFeedback (1.11.0): - React-Core - RNReanimated (1.13.1): @@ -676,7 +674,6 @@ DEPENDENCIES: - RNFS (from `../node_modules/react-native-fs`) - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) - RNPermissions (from `../node_modules/react-native-permissions`) - - RNReactNativeABeep (from `../node_modules/react-native-a-beep/ios`) - RNReactNativeHapticFeedback (from `../node_modules/react-native-haptic-feedback`) - RNReanimated (from `../node_modules/react-native-reanimated`) - RNScreens (from `../node_modules/react-native-screens`) @@ -878,8 +875,6 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-gesture-handler" RNPermissions: :path: "../node_modules/react-native-permissions" - RNReactNativeABeep: - :path: "../node_modules/react-native-a-beep/ios" RNReactNativeHapticFeedback: :path: "../node_modules/react-native-haptic-feedback" RNReanimated: @@ -1016,7 +1011,6 @@ SPEC CHECKSUMS: RNFS: 93d5b5535eb39d98e6b19009faa8fe717f7ea45d RNGestureHandler: 7a5833d0f788dbd107fbb913e09aa0c1ff333c39 RNPermissions: 350964d19150b183796a88180fb7ec62a1e41422 - RNReactNativeABeep: 48dcc9a3c52ac98a5e2df055d760a36dc5cba754 RNReactNativeHapticFeedback: 653a8c126a0f5e88ce15ffe280b3ff37e1fbb285 RNReanimated: dd8c286ab5dd4ba36d3a7fef8bff7e08711b5476 RNScreens: d6da2b9e29cf523832c2542f47bf1287318b1868 --- package-lock.json @@ -16758,11 +16758,6 @@ } } }, - "react-native-a-beep": { - "version": "1.1.0", - "resolved": "https://npme.walmart.com/react-native-a-beep/-/react-native-a-beep-1.1.0.tgz", - "integrity": "sha512-Twe3swF6jtOR6sB5DTPH1SBVyqQeivsKEtThwBV3accKz1LF9ZUyo6C9sD6OVaLksupIJaz/smmT1+AZ0vlARw==" - }, "react-native-animatable": { "version": "1.3.3", "resolved": "https://npme.walmart.com/react-native-animatable/-/react-native-animatable-1.3.3.tgz", --- package.json @@ -121,7 +121,6 @@ "react-native": "^0.66.4", "react-native-background-timer": "^2.4.1", "react-native-barcode-builder": "^2.0.0", - "react-native-a-beep": "1.1.0", "react-native-biometrics": "^2.1.4", "react-native-chart-kit": "6.6.1", "react-native-check-app-install": "0.0.5",
Removing an unused package and removing some error logs in item info
Removing an unused package and removing some error logs in item info
1ccdec9644f22a96090bac17f242f9e7de987d67
--- .looper-pr.yml @@ -30,4 +30,3 @@ envs: SLACK_CHANNEL: 'smdv-miniapp' -
feat(ui): update associate exp #SMDV-9999
feat(ui): update associate exp #SMDV-9999
561e8ded59d7c705b76bc35572ffdc6e730b2dd4
--- package-lock.json @@ -40,7 +40,7 @@ "@walmart/amp-mini-app": "1.1.59", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.15.4", - "@walmart/attendance-mini-app": "1.62.9", + "@walmart/attendance-mini-app": "1.62.10", "@walmart/compass-sdk-rn": "5.7.0", "@walmart/config-components": "4.2.7", "@walmart/copilot-mini-app": "2.3.19", @@ -8002,9 +8002,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "1.62.9", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.9.tgz", - "integrity": "sha512-//z69d3TQLuPW7gE6y8G6ylNNeMq5zpYn+4IuGH+adBrr3ymPPk7aP+l+QFmTvzKpWKeHPoS1xgGKM0IH01S4g==", + "version": "1.62.10", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.10.tgz", + "integrity": "sha512-4ZpqNylMik1ZmbsAZIkwiSicpf0pBy8FtjxYYHyjgMypQVVFSZGcIxvhQOZ+qf/uWN8KHO/uZjBlv+YiPqEwaA==", "dependencies": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", @@ -34162,9 +34162,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "1.62.9", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.9.tgz", - "integrity": "sha512-//z69d3TQLuPW7gE6y8G6ylNNeMq5zpYn+4IuGH+adBrr3ymPPk7aP+l+QFmTvzKpWKeHPoS1xgGKM0IH01S4g==", + "version": "1.62.10", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.62.10.tgz", + "integrity": "sha512-4ZpqNylMik1ZmbsAZIkwiSicpf0pBy8FtjxYYHyjgMypQVVFSZGcIxvhQOZ+qf/uWN8KHO/uZjBlv+YiPqEwaA==", "requires": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", --- package.json @@ -81,7 +81,7 @@ "@walmart/amp-mini-app": "1.1.59", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.15.4", - "@walmart/attendance-mini-app": "1.62.9", + "@walmart/attendance-mini-app": "1.62.10", "@walmart/compass-sdk-rn": "5.7.0", "@walmart/config-components": "4.2.7", "@walmart/copilot-mini-app": "2.3.19",
ama v1.62.10
ama v1.62.10
0425787c7be1f94f3a6a9d9a2ecc692b0aecea1e
--- package-lock.json @@ -63,7 +63,7 @@ "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", "@walmart/ims-print-services-ui": "2.8.0", - "@walmart/inbox-mini-app": "0.90.0", + "@walmart/inbox-mini-app": "0.90.0-485-977b45c", "@walmart/iteminfo-mini-app": "7.8.3", "@walmart/learning-mini-app": "18.0.3", "@walmart/manager-approvals-miniapp": "0.2.4", @@ -9149,9 +9149,9 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.90.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.90.0.tgz", - "integrity": "sha512-Z9Q3n8hREnIMkYqcCerDPAz3/m9Ywoq0FSu2FmC4yOgZrzxhli6Q0KuM7OfC01K1nPBSWAw1OT5QpiYPHlcAzQ==", + "version": "0.90.0-485-977b45c", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.90.0-485-977b45c.tgz", + "integrity": "sha512-WEpogpDKqT/xdDihXWGatPSp1bFTJuBw3uO+wbeVnJ6qg7DYIm9McAyRsCslSeJvEO/0rOLWb56aToK56vmTzQ==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" @@ -33450,9 +33450,9 @@ "integrity": "sha512-Iqe7kNS9WRhmDkaIr7/4GwAE3s0lPQ0vcRYkIwchFeT1NE/PC/FVU3DoiNX2pgq6mXkg09PhyYGxmOe5+9ggUA==" }, "@walmart/inbox-mini-app": { - "version": "0.90.0", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.90.0.tgz", - "integrity": "sha512-Z9Q3n8hREnIMkYqcCerDPAz3/m9Ywoq0FSu2FmC4yOgZrzxhli6Q0KuM7OfC01K1nPBSWAw1OT5QpiYPHlcAzQ==", + "version": "0.90.0-485-977b45c", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.90.0-485-977b45c.tgz", + "integrity": "sha512-WEpogpDKqT/xdDihXWGatPSp1bFTJuBw3uO+wbeVnJ6qg7DYIm9McAyRsCslSeJvEO/0rOLWb56aToK56vmTzQ==", "requires": { "@walmart/moment-walmart": "1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" --- package.json @@ -104,7 +104,7 @@ "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", "@walmart/ims-print-services-ui": "2.8.0", - "@walmart/inbox-mini-app": "0.90.0", + "@walmart/inbox-mini-app": "0.90.0-485-977b45c", "@walmart/iteminfo-mini-app": "7.8.3", "@walmart/learning-mini-app": "18.0.3", "@walmart/manager-approvals-miniapp": "0.2.4",
Inbox WmWeek Bug Fix
Inbox WmWeek Bug Fix
207ebce6e8222277d7a0126abe26b7d653e27217
--- packages/allspark-graphql-client/src/apollo/globalRef.ts @@ -0,0 +1,32 @@ +import { ApolloClient, NormalizedCacheObject } from '@apollo/client'; + +export const clientRef: { current?: ApolloClient<NormalizedCacheObject> } = { + current: undefined, +}; + +export const getGraphQLClient = (): ApolloClient<NormalizedCacheObject> => { + if (!clientRef.current) { + throw new Error( + `GraphQL client is not defined. Ensure the AllsparkGraphQLProvider is setup before trying to access globally.` + ); + } + return clientRef.current; +}; + +export const query: ApolloClient<NormalizedCacheObject>['query'] = ( + options +) => { + return getGraphQLClient().query(options); +}; + +export const mutate: ApolloClient<NormalizedCacheObject>['mutate'] = ( + options +) => { + return getGraphQLClient().mutate(options); +}; + +export const subscribe: ApolloClient<NormalizedCacheObject>['subscribe'] = ( + options +) => { + return getGraphQLClient().subscribe(options); +}; --- packages/allspark-graphql-client/src/apollo/index.ts @@ -2,3 +2,4 @@ export * from './hooks'; export * from './provider'; export * from './types'; export { gql } from './utils'; +export { query, mutate, subscribe } from './globalRef';
feat: add global reference and methods for shared client
feat: add global reference and methods for shared client
182aae4b22dd962b7dc09dfb1d1fa597f9dcee37
--- packages/me-at-walmart-container/__tests__/services/config.test.ts @@ -0,0 +1,35 @@ +import { + ConfigLogger, + LISTENER_KEY, + MeAtWalmartConfigService, + IMeAtWalmartConfigService, + MeAtWalmartConfigFetchParams, +} from '../../src/services/config'; + +describe('ConfigLogger Module', () => { + it('should export ConfigLogger as an instance of MeAtWalmartLoggerService', () => { + expect(ConfigLogger).toBeDefined(); + }); + + it('should export LISTENER_KEY as a string', () => { + expect(LISTENER_KEY).toBe('ALLSPARK_APP_CONFIG'); + }); + + it('should export MeAtWalmartConfigService with correct properties', () => { + expect(MeAtWalmartConfigService).toBeDefined(); + // Check for expected properties and methods + expect(MeAtWalmartConfigService).toHaveProperty('initialize'); + expect(MeAtWalmartConfigService).toHaveProperty('fetch'); + expect(MeAtWalmartConfigService).toHaveProperty('addChangeListener'); + }); + + it('should export IMeAtWalmartConfigService type', () => { + const mockService: IMeAtWalmartConfigService = MeAtWalmartConfigService; + expect(mockService).toBeDefined(); + }); + + it('should export MeAtWalmartConfigFetchParams type', () => { + const mockParams: MeAtWalmartConfigFetchParams = {} as any; + expect(mockParams).toBeDefined(); + }); +});
chore: test coverage
chore: test coverage
e86ae019b7d306ce25789fc77ea0f05a976e02ef
--- packages/allspark-graphql-client/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.0.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.6...@walmart/allspark-graphql-client@0.0.7) (2023-01-12) + +**Note:** Version bump only for package @walmart/allspark-graphql-client + + + + + ## [0.0.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-graphql-client@0.0.5...@walmart/allspark-graphql-client@0.0.6) (2023-01-12) **Note:** Version bump only for package @walmart/allspark-graphql-client --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "0.0.6", + "version": "0.0.7", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js", --- packages/allspark-redux-store/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.0.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.5...@walmart/allspark-redux-store@1.0.6) (2023-01-12) + +**Note:** Version bump only for package @walmart/allspark-redux-store + + + + + ## [1.0.5](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-redux-store@1.0.4...@walmart/allspark-redux-store@1.0.5) (2023-01-12) **Note:** Version bump only for package @walmart/allspark-redux-store --- packages/allspark-redux-store/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-redux-store", - "version": "1.0.5", + "version": "1.0.6", "description": "Common redux store for allspark platform", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-graphql-client@0.0.7 - @walmart/allspark-redux-store@1.0.6
4e120eb753946aed450968dffcf3f300fb6c1fbd
--- src/mocks/teamMock.ts @@ -2362,6 +2362,12 @@ export const teamsMock = [ workgroupId: '1000214', workgroup: 'Food & Consumables', membership: [ + { + win: '219469728', + baseTeam: true, + role: 'TA', + userId: 'a0p0ioy', + }, { win: '219469721', baseTeam: true, --- src/mocks/teamMock.ts @@ -2362,6 +2362,12 @@ export const teamsMock = [ workgroupId: '1000214', workgroup: 'Food & Consumables', membership: [ + { + win: '219469728', + baseTeam: true, + role: 'TA', + userId: 'a0p0ioy', + }, { win: '219469721', baseTeam: true,
add abinash to teams mock
add abinash to teams mock
f6909aef379d46e0a3a76299269992a6c4a9414b
--- package-lock.json @@ -50,7 +50,7 @@ "@walmart/core-widget-registry": "~1.2.4", "@walmart/counts-component-miniapp": "0.1.8", "@walmart/emergency-mini-app": "1.26.5", - "@walmart/exception-mini-app": "1.6.5", + "@walmart/exception-mini-app": "1.6.10", "@walmart/facilities-management-miniapp": "0.6.93", "@walmart/feedback-all-spark-miniapp": "0.9.52", "@walmart/financial-wellbeing-feature-app": "1.16.3", @@ -8746,20 +8746,21 @@ } }, "node_modules/@walmart/exception-mini-app": { - "version": "1.6.5", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.6.5.tgz", - "integrity": "sha512-luIn9pSsohNep8F4kUtyhnrol0HoVAPQpZzDZ3dvxKCKquH0oASjFfJE9nIWJ8lywUb0buOnf9MOls+0oUljAQ==", + "version": "1.6.10", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.6.10.tgz", + "integrity": "sha512-Kmpqk63paRh+ditR1Lar5Fx5Stlptr2Pkz0sB0aJ3HZlIfpxlSSWbddk2CkUh7T8scv/pubYxaaBSq6tOSv36w==", "peerDependencies": { "@walmart/core-services": "^2.0.15", "@walmart/core-services-allspark": "^2.10.3", "@walmart/functional-components": ">=2.0.6", - "@walmart/gtp-shared-components": "2.0.2", + "@walmart/gtp-shared-components": ">=2.1.3", "@walmart/ims-print-services-ui": "2.0.6", "@walmart/react-native-logger": ">=1.31.0-rc.0", - "@walmart/redux-store": ">=3.1.3", + "@walmart/redux-store": ">=3.4.0", "@walmart/ui-components": ">=1.6.0", "luxon": ">=1.28.0", "react-i18next": ">=12.0.0", + "react-native": ">=0.72.0", "react-native-device-info": ">=10.3.0", "react-native-new-snap-carousel": "^3.9.3", "react-native-ssmp-sso-allspark": ">=1.1.0", @@ -33251,9 +33252,9 @@ } }, "@walmart/exception-mini-app": { - "version": "1.6.5", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.6.5.tgz", - "integrity": "sha512-luIn9pSsohNep8F4kUtyhnrol0HoVAPQpZzDZ3dvxKCKquH0oASjFfJE9nIWJ8lywUb0buOnf9MOls+0oUljAQ==" + "version": "1.6.10", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.6.10.tgz", + "integrity": "sha512-Kmpqk63paRh+ditR1Lar5Fx5Stlptr2Pkz0sB0aJ3HZlIfpxlSSWbddk2CkUh7T8scv/pubYxaaBSq6tOSv36w==" }, "@walmart/facilities-management-miniapp": { "version": "0.6.93", --- package.json @@ -91,7 +91,7 @@ "@walmart/core-widget-registry": "~1.2.4", "@walmart/counts-component-miniapp": "0.1.8", "@walmart/emergency-mini-app": "1.26.5", - "@walmart/exception-mini-app": "1.6.5", + "@walmart/exception-mini-app": "1.6.10", "@walmart/facilities-management-miniapp": "0.6.93", "@walmart/feedback-all-spark-miniapp": "0.9.52", "@walmart/financial-wellbeing-feature-app": "1.16.3",
updated exception mini app
updated exception mini app
cfed755fad78bda6eab001d3da55106ec3585110
--- packages/me-at-walmart-container/src/network/index.ts @@ -9,6 +9,7 @@ export const MeAtWalmartNetworkConfig = ( ): AllsparkNetworkConfig => ({ getConnectionType: createGetConnectionType(env.network.internalTestURL), getWifiSiteId: getWifiSiteId, + shouldFetchWiFiSSID: true, }); export * from './getNetworkAttributes';
Update core container network config to fetch ssid
Update core container network config to fetch ssid
a709dec83890c3c1d03c846e1ec29502c54b3f85
--- packages/associate-exp-hub-mini-app/src/components/team-switcher/MyWalmartTeamSwitcher.tsx @@ -45,7 +45,12 @@ import { } from '@walmart/allspark-foundation-hub'; import {getUserTeamSelectionInProgress} from '../../store'; import {useTeamSwitcher} from '../../hooks'; -import {useTeamSelection, convertToSelectedTeamData, createTotalTeamData} from '../../services/teamState'; +import { + useTeamSelection, + convertToSelectedTeamData, + createTotalTeamData, + useSelectedShifts +} from '../../services/teamState'; import {SiteSelectors, useAllsparkSelector} from '@walmart/allspark-foundation'; import {AssociateExpHubTranslationClient} from '../../utils/translation'; @@ -111,6 +116,9 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ // Get site type for Total team logic const isSiteDC = useAllsparkSelector(SiteSelectors.getWorkingSiteIsDC); + // Get shift information - hooks must be called at the top level of component + const selectedShifts = useSelectedShifts(); + // Track team changes for telemetry const prevTeamRef = React.useRef(teamState.selectedTeamData); @@ -352,7 +360,9 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ }); } - onTeamChange(teamState.selectedTeamData.teamLabel || 'Total Store'); + // Use the correct fallback text based on site type + const fallbackText = isSiteDC ? 'Total Site' : 'Total Store'; + onTeamChange(teamState.selectedTeamData.teamLabel || fallbackText); if (enableLogging) { AssociateExpHubLogger.info('Team selection started', { @@ -390,15 +400,31 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ } // Use team state for display (primary source), fallback to adapter data - // Add defensive coding to prevent the TypeError - const displayTeamName = teamState?.selectedTeamData?.teamLabel || teamName || 'Total Store'; + + // Create display name with shift information for DC sites + let displayTeamName = ''; + if (isSiteDC) { + // For DC sites, add shift information if available + const shiftsText = selectedShifts.length > 0 ? `${selectedShifts.join(', ')}` : ''; + if (teamState?.selectedTeamData?.teamLabel) { + displayTeamName = `${teamState.selectedTeamData.teamLabel} | Shift ${shiftsText}`; + } else if (teamName) { + displayTeamName = `${teamName} | Shift ${shiftsText}`; + } else { + displayTeamName = 'Total Site'; + } + } else { + // For store sites, just use team label + displayTeamName = teamState?.selectedTeamData?.teamLabel || teamName || 'Total Store'; + } + const displayTeamImage = teamState?.selectedTeamData?.teamImage?.uri || teamImage?.uri || ''; return ( <View accessible accessibilityRole='button' - accessibilityLabel={`Switch team. Current: ${displayTeamName}. Tap to change.`} + accessibilityLabel={`Switch team. Current: ${displayTeamName}. ${isSiteDC && selectedShifts.length > 0 ? `Shifts: ${selectedShifts.join(', ')}. ` : ''}Tap to change.`} accessibilityHint='Opens team selection modal' accessibilityState={{ disabled: !enableTeamSwitcher || isThrottled,
feat(ui): update shift update
feat(ui): update shift update
2fa64b3eb1694fcbed896be843bfd02446fbfa03
--- packages/allspark-redux-store/src/index.ts @@ -4,6 +4,7 @@ export { dispatch, getStore, reducerManager, + useSharedStore, } from './store'; export * from './actions'; --- packages/allspark-redux-store/src/store/hooks.ts @@ -0,0 +1,7 @@ +import { useStore } from 'react-redux'; +import { SharedReduxStore } from './types'; + +export const useSharedStore = () => { + const store = useStore(); + return store as SharedReduxStore; +}; --- packages/allspark-redux-store/src/store/index.ts @@ -1,2 +1,3 @@ export { createStore } from './createStore'; export * from './deprecated'; +export * from './hooks'; --- packages/allspark-redux-store/src/utils/createRestarableSaga.ts @@ -0,0 +1,31 @@ +import { call, Effect, spawn } from 'redux-saga/effects'; + +export const createRestartableSaga = ( + saga: Effect, + onError?: (message: string, params: any) => void +) => { + return spawn(function* () { + while (true) { + try { + yield call(function* () { + yield saga; + }); + break; + } catch (error) { + if (onError) { + yield call(onError, 'Caught exception in saga', { + message: (error as Error).message, + stack: (error as Error).stack, + }); + } + } + } + }); +}; + +export const createRestartableSagas = ( + sagas: Effect[], + onError?: (message: string, params: any) => void +) => { + return sagas.map((saga) => createRestartableSaga(saga, onError)); +}; --- packages/allspark-redux-store/src/utils/generateSelectors.ts @@ -1,7 +1,7 @@ import { createSelector, Slice } from '@reduxjs/toolkit'; import { Selector } from 'react-redux'; import { capitalize } from 'lodash'; -import { GlobalState } from './types'; +import { GlobalState } from '../types'; export const generateSelectors = <S extends Slice>(slice: S) => { const getBaseState: Selector< --- packages/allspark-redux-store/src/utils/index.ts @@ -0,0 +1,3 @@ +export * from './createRestarableSaga'; +export * from './generateSelectors'; +export * from './reduxSliceExists'; --- packages/allspark-redux-store/src/utils/reduxSliceExists.ts @@ -0,0 +1,5 @@ +import { Store } from 'redux'; + +export const reduxSliceExists = (store: Store<any>, slice: string) => { + return !!store.getState()[slice]; +};
feat: add hook and utils
feat: add hook and utils
d5ecae1b3cb7741662f4e93cf590dbdc87c8a31e
--- README.md @@ -49,7 +49,7 @@ You will also need to add your SSH key to Walmart github using [these](https://d ## Running on Android -For faster consecutive builds, ensure that you have successfully run the Android app on the simulator at least once. Once this is confirmed, you can enhance the speed of consecutive builds by setting the flag below to `true` +For faster consecutive builds, ensure that you have successfully run the Android app on the emulator at least once. Once this is confirmed, you can enhance the speed of consecutive builds by setting the flag below to `true` - Navigate to `android/settings.gradle` file. - Locate the line where the `gradle.startParameter.offline` flag is set. - Change the value from `false` to `gradle.startParameter.offline=true`.
Update README.md
Update README.md
b6d14cd700b07ac29488b806450aa8874ec59e7d
--- package-lock.json @@ -36,8 +36,8 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.3.56", - "@walmart/attendance-mini-app": "0.33.0", + "@walmart/ask-sam-mini-app": "1.3.52", + "@walmart/attendance-mini-app": "0.45.0", "@walmart/config-components": "4.0.2", "@walmart/core-services": "~1.4.11", "@walmart/core-services-allspark": "~2.2.2", @@ -4818,9 +4818,10 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "0.33.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.33.0.tgz", - "integrity": "sha512-CcqPB+Zsq+ng44M2mlOoqncsoN9MydbniszwM4aKSscfL0MTA6AgPjxadgNrvPkcFCcp49mKwSNKH6tURrlUKw==", + "version": "0.45.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.45.0.tgz", + "integrity": "sha512-e41xnnVbfBumM14LsymsH35YvC2SUszfjuOJuH2e73ZspSUGlcKpl562697QfyG30oc8RLV694asknSCmyApng==", + "hasInstallScript": true, "dependencies": { "@walmart/gta-react-native-calendars": "0.0.16", "graphql": "^16.6.0", @@ -25299,9 +25300,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "0.33.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.33.0.tgz", - "integrity": "sha512-CcqPB+Zsq+ng44M2mlOoqncsoN9MydbniszwM4aKSscfL0MTA6AgPjxadgNrvPkcFCcp49mKwSNKH6tURrlUKw==", + "version": "0.45.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.45.0.tgz", + "integrity": "sha512-e41xnnVbfBumM14LsymsH35YvC2SUszfjuOJuH2e73ZspSUGlcKpl562697QfyG30oc8RLV694asknSCmyApng==", "requires": { "@walmart/gta-react-native-calendars": "0.0.16", "graphql": "^16.6.0", @@ -36261,4 +36262,4 @@ } } } -} +} \ No newline at end of file --- package.json @@ -78,8 +78,8 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "1.0.11", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.3.56", - "@walmart/attendance-mini-app": "0.33.0", + "@walmart/ask-sam-mini-app": "1.3.52", + "@walmart/attendance-mini-app": "0.45.0", "@walmart/config-components": "4.0.2", "@walmart/core-services": "~1.4.11", "@walmart/core-services-allspark": "~2.2.2", @@ -336,4 +336,4 @@ "pre-push": "run-p solidarity coverage" } } -} +} \ No newline at end of file --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -23,19 +23,12 @@ import {ItemInfoMiniApp} from '@walmart/iteminfo-mini-app'; import {ShelfAvailabilityMiniApp} from '@walmart/shelfavailability-mini-app'; import {PriceChangesMiniApp} from '@walmart/price-changes-mini-app'; import {RefrigerationApp} from '@walmart/refrigeration-alarms-mini-app'; -import { - NewTorScreen as TCMANewTorScreen, - TorReviewScreen as TCMATorReviewScreen, - TorSubmissionScreen as TCMATorSubmissionScreen, - AttendanceModalScreen as TCMAAttendanceModalScreen, - TimeClockScreen, -} from '@walmart/time-clock-mini-app'; +import {TimeClockScreen} from '@walmart/time-clock-mini-app'; import { NewTorScreen, TorReviewScreen, TorSubmissionScreen, AttendanceModalScreen, - CcmSelectors, } from '@walmart/attendance-mini-app'; import {InboxScreen} from '@walmart/inbox-mini-app'; import {ModFlexMiniApp} from '@walmart/mod-flex-mini-app'; @@ -78,7 +71,6 @@ import {PayStubMiniApp} from '@walmart/pay-stub-miniapp'; import {ReturnsMiniApp} from '@walmart/returns-mini-app'; import {useWindowDimensions} from 'react-native'; import {EmergencyBannerScreen} from '@walmart/emergency-mini-app'; -import {useSelector} from 'react-redux'; //--- Main Stack --- // const MainStack = createStackNavigator(); @@ -139,11 +131,6 @@ const WorkMiniAppScreens = WorkMiniApps.map((screen) => { export const MainStackNav = () => { const [translate] = useTranslation('common'); - //For Drop 8.3. Will be Removed in Drop. - const isUsingAttendanceMiniApp = useSelector( - CcmSelectors.getIsUsingAttendanceMiniApp, - ); - useAssociateStartup(); const width = useWindowDimensions().width; @@ -219,7 +206,7 @@ export const MainStackNav = () => { options={{headerBackImage: renderHeaderCloseImage}} /> {/* Attendance Screens */} - {isUsingAttendanceMiniApp ? ( + { <> <MainStack.Screen name='newTor' component={NewTorScreen} /> <MainStack.Screen name='torReview' component={TorReviewScreen} /> @@ -241,32 +228,7 @@ export const MainStackNav = () => { }} /> </> - ) : ( - <> - <MainStack.Screen name='newTor' component={TCMANewTorScreen} /> - <MainStack.Screen - name='torReview' - component={TCMATorReviewScreen} - /> - <MainStack.Screen - name='torSubmission' - component={TCMATorSubmissionScreen} - /> - <MainStack.Screen - name='attendanceModalScreen' - component={TCMAAttendanceModalScreen} - options={{ - presentation: 'transparentModal', - headerShown: false, - ...TransitionPresets.ModalSlideFromBottomIOS, - cardStyle: { - paddingTop: width / 2, - backgroundColor: 'rgba(0, 0, 0, 0.3)', - }, - }} - /> - </> - )} + } <MainStack.Screen name='inbox'
replaced TCMA tor imports with AMA
replaced TCMA tor imports with AMA
0e1521dedc85eea394e6aad816ec5e9db2bd9f85
--- package.json @@ -37,7 +37,7 @@ "@react-navigation/stack": "^5.9.0", "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": "^4.14.159", - "@walmart/allspark-home-mini-app": "^0.1.0", + "@walmart/allspark-home-mini-app": "0.1.0", "@walmart/allspark-me-mini-app": "0.0.3", "@walmart/ask-sam-mini-app": "^0.6.6", "@walmart/config-components": "^1.0.4",
use specific version only
use specific version only
4f1f8ed58f78b1332f9d2d2363348684076322de
--- package-lock.json @@ -66,7 +66,7 @@ "@walmart/metrics-mini-app": "0.17.9", "@walmart/mod-flex-mini-app": "1.13.7", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "0.0.13", + "@walmart/money-auth-shared-components": "0.0.14", "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.13.5", "@walmart/payrollsolution_miniapp": "0.134.3", @@ -9347,9 +9347,9 @@ } }, "node_modules/@walmart/money-auth-shared-components": { - "version": "0.0.13", - "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.13.tgz", - "integrity": "sha512-2HX5KdpM2yqeRo/E78jxDFy5HyDT4s6yzE3I5UrVeC2zH67u9J4pW2tTQzRW4hyrURIPcOcH9GgIAbaG9o8kaQ==", + "version": "0.0.14", + "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.14.tgz", + "integrity": "sha512-DCh82OLyonEngEcSHaXZjNP1g5UKXB/0NzM8Wn9Jj+TN8mLDHF/1Y8uqHgh7Eot53IBIF/WB6XReE6KSbrEj0A==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -33416,9 +33416,9 @@ "version": "1.0.4" }, "@walmart/money-auth-shared-components": { - "version": "0.0.13", - "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.13.tgz", - "integrity": "sha512-2HX5KdpM2yqeRo/E78jxDFy5HyDT4s6yzE3I5UrVeC2zH67u9J4pW2tTQzRW4hyrURIPcOcH9GgIAbaG9o8kaQ==" + "version": "0.0.14", + "resolved": "https://npme.walmart.com/@walmart/money-auth-shared-components/-/money-auth-shared-components-0.0.14.tgz", + "integrity": "sha512-DCh82OLyonEngEcSHaXZjNP1g5UKXB/0NzM8Wn9Jj+TN8mLDHF/1Y8uqHgh7Eot53IBIF/WB6XReE6KSbrEj0A==" }, "@walmart/onewalmart-miniapp": { "version": "1.0.16", --- package.json @@ -107,7 +107,7 @@ "@walmart/metrics-mini-app": "0.17.9", "@walmart/mod-flex-mini-app": "1.13.7", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "0.0.13", + "@walmart/money-auth-shared-components": "0.0.14", "@walmart/onewalmart-miniapp": "1.0.16", "@walmart/pay-stub-miniapp": "0.13.5", "@walmart/payrollsolution_miniapp": "0.134.3",
bump version
bump version
a8660856a0347feaa8e11372630c2c17c5a86f91
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.12.41", + "version": "2.12.42", "main": "dist/index.js", "files": [ "dist" --- src/hooks/teams.ts @@ -172,7 +172,7 @@ export const useGetViewersShiftData = () => { const {t} = translationClient.useTranslation(); const userData = useSelector(UserSelectors.getData); return ( - userData?.shift?.shiftName || + userData?.shift?.name || t('shiftChip.allShifts', { defaultValue: 'All shifts', fallbackLng: 'en-US',
Update the roster mini app version
Update the roster mini app version
864ceba5c7965fae297e26b2dc40ab9d7bc0bc37
--- core/__tests__/home/services/HomeApi/indexTest.ts @@ -145,18 +145,15 @@ describe('fetchCelebrationData', () => { const result = await fetchCelebrationData('someValidQuery'); expect(result).toEqual('Valid result'); }); - it('should throw error when underlying APIs fail', async () => { + it('should throw error when there is no data response', async () => { AllsparkHttpClient.createFeatureClient('home', { timeout: 10000, - }).get.mockResolvedValueOnce({ - ok: false, - originalError: 'Not a valid result', - }); + }).get.mockResolvedValueOnce(null); try { await fetchCelebrationData('someValidQuery'); } catch (e) { expect(logServiceError).toHaveBeenCalled(); - expect(e).toEqual('Not a valid result'); + expect(e.toString()).toEqual("TypeError: Cannot read properties of null (reading 'data')"); } }); }); @@ -177,18 +174,15 @@ describe('fetchTeamClockStatusData', () => { ); expect(result).toEqual('Valid result'); }); - it('should throw error when underlying APIs fail', async () => { + it('should throw error when there is no response data', async () => { AllsparkHttpClient.createFeatureClient('home', { timeout: 1000, - }).post.mockResolvedValueOnce({ - ok: false, - originalError: 'Not a valid result', - }); + }).post.mockResolvedValueOnce(null); try { await fetchTeamClockStatusData('someValidQuery', kQueryGraphVariables); } catch (e) { expect(logServiceError).toHaveBeenCalled(); - expect(e).toEqual('Not a valid result'); + expect(e.toString()).toEqual("TypeError: Cannot read properties of null (reading 'data')"); } }); }); @@ -208,18 +202,15 @@ describe('fetchStoreClockStatusData', () => { ); expect(result).toEqual('Valid result'); }); - it('should throw error when underlying APIs fail', async () => { + it('should throw error when there is no response data', async () => { AllsparkHttpClient.createFeatureClient('home', { timeout: 3000, - }).post.mockResolvedValueOnce({ - ok: false, - originalError: 'Not a valid result', - }); + }).post.mockResolvedValueOnce(null); try { await fetchStoreClockStatusData('someValidQuery', kQueryGraphVariables); } catch (e) { expect(logServiceError).toHaveBeenCalled(); - expect(e).toEqual('Not a valid result'); + expect(e.toString()).toEqual("TypeError: Cannot read properties of null (reading 'data')"); } }); });
home api services core file test coverage
home api services core file test coverage
45f970454aa0be496e97d93f6c1a2dbddccfda2a
--- package.json @@ -117,7 +117,7 @@ "@walmart/me-at-walmart-athena-queries": "6.1.4", "@walmart/me-at-walmart-common": "6.1.4", "@walmart/me-at-walmart-container": "6.1.4", - "@walmart/metrics-mini-app": "0.22.1", + "@walmart/metrics-mini-app": "0.22.2", "@walmart/mod-flex-mini-app": "1.16.4", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.1.4", --- yarn.lock @@ -6515,9 +6515,9 @@ __metadata: languageName: node linkType: hard -"@walmart/metrics-mini-app@npm:0.22.1": - version: 0.22.1 - resolution: "@walmart/metrics-mini-app@npm:0.22.1" +"@walmart/metrics-mini-app@npm:0.22.2": + version: 0.22.2 + resolution: "@walmart/metrics-mini-app@npm:0.22.2" dependencies: base-64: "npm:^1.0.0" peerDependencies: @@ -6541,7 +6541,7 @@ __metadata: react-native-get-random-values: ">=1.8.0" react-redux: ">=8.0.4" reduxsauce: ">=1.2.0" - checksum: 10c0/ac5f1240f50904459468ff5cb21a0b78c76951133d389f30baae40b37ab1cdeaf657649688a0b98247f13672bab12912d1f552c4ec5fd5c3e5bb7eb06591f8b4 + checksum: 10c0/05c703682c66282b80f666ea466a8a692b1d1da3c60795066c41f0a51e6945cd9f2c95b06480418ed53d6211fab0e41f14429c21b6a10bca66d86f31dbcfe4a2 languageName: node linkType: hard @@ -7770,7 +7770,7 @@ __metadata: "@walmart/me-at-walmart-athena-queries": "npm:6.1.4" "@walmart/me-at-walmart-common": "npm:6.1.4" "@walmart/me-at-walmart-container": "npm:6.1.4" - "@walmart/metrics-mini-app": "npm:0.22.1" + "@walmart/metrics-mini-app": "npm:0.22.2" "@walmart/mod-flex-mini-app": "npm:1.16.4" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:0.1.4"
Bumping metrics-mini-app version to 0.22.2
Bumping metrics-mini-app version to 0.22.2
7e7cbfa2801445b4b99a2dac8ee926fdaf7e9f6c
--- package-lock.json @@ -36,7 +36,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.2.96", + "@walmart/ask-sam-mini-app": "1.3.1", "@walmart/config-components": "4.0.1", "@walmart/core-services": "~1.4.9", "@walmart/core-services-allspark": "~1.10.11", @@ -112,6 +112,7 @@ "react-native-check-app-install": "^0.0.5", "react-native-circular-progress": "^1.3.7", "react-native-device-info": "^10.3.0", + "react-native-error-boundary": "^1.1.6", "react-native-fast-image": "^8.6.1", "react-native-flipper": "0.172.0", "react-native-fs": "^2.20.0", @@ -4650,60 +4651,54 @@ } }, "node_modules/@walmart/ask-sam-mini-app": { - "version": "1.2.96", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.2.96.tgz", - "integrity": "sha512-Sy3/JfbgkqWq6BBfAcXZtyfxMca7nbpliBqAM/aFbs8p4hCnAVl6rnQQ66ujEG/XV97hmVNYVenffH8LB0gARQ==", + "version": "1.3.1", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.1.tgz", + "integrity": "sha512-T8Z9AbiStGaAwDBE+mUCy7uhjwSJ25/mqwJCkfVA/NNa1PSfbp39hbQu3cEUpEQkoQ/RQgGocVCCZi/HjKG5kA==", "license": "NONE", "dependencies": { - "@walmart/core-utils": "^1.0.9", - "@walmart/react-native-scanner-3.0": "^0.1.12", "apisauce": "^1.1.2", "axios-cache-adapter": "^2.7.3", - "lodash": "^4.17.19", - "moment": "2.26.0", "numeral": "^2.0.6", - "react-native-error-boundary": "^1.1.6", - "react-native-modal": "^11.5.6", - "react-native-popup-menu": "^0.15.9", - "react-native-tab-view": "^3.1.1", - "react-native-typing-animation": "^0.1.7", - "reduxsauce": "^1.2.0", - "reselect": "^4.0.0", - "xdate": "^0.8.2" + "reduxsauce": "^1.2.0" }, "peerDependencies": { - "@react-native-community/async-storage": ">=1.11.0", - "@react-navigation/native": ">=6.0.0", - "@react-navigation/stack": ">=6.1.0", - "@terrylinla/react-native-sketch-canvas": "^0.8.0", - "@walmart/ask-sam-chat-components": "^0.2.9", - "@walmart/core-services": ">=1.2.0", - "@walmart/core-widget-registry": "0.2.2", - "@walmart/functional-components": ">=1.0.22", + "@react-navigation/native": ">=6", + "@react-navigation/stack": ">=6", + "@terrylinla/react-native-sketch-canvas": "*", + "@walmart/ask-sam-chat-components": ">=0.2.9", + "@walmart/core-services": ">=1.4", + "@walmart/core-utils": ">=1.2", + "@walmart/core-widget-registry": ">=0.2", "@walmart/gtp-shared-components": ">=1.8.0", - "@walmart/react-native-logger": ">=1.17.0", - "@walmart/redux-store": ">=1.1.19", - "@walmart/schedule-mini-app": ">=0.2.54", - "@walmart/ui-components": ">=1.1.14", - "@walmart/wfm-ui": ">=0.1.43", - "axios": "^0.26.1", - "react": ">=17.0.2", - "react-native": ">=0.67.4", - "react-native-barcode-builder": ">=2.0.0", - "react-native-blob-util": ">=0.13.14", - "react-native-device-info": ">=5.6.5", - "react-native-fast-image": ">=8.3.4", + "@walmart/redux-store": ">=3", + "@walmart/schedule-mini-app": "*", + "@walmart/ui-components": ">=1.5", + "@walmart/wfm-ui": "*", + "axios": ">=0.26", + "lodash": ">=4.17", + "moment": ">=2.26", + "react": ">=18.2.0", + "react-native": ">=0.70", + "react-native-barcode-builder": ">=2", + "react-native-blob-util": ">=0.16", + "react-native-device-info": ">=10.3", + "react-native-error-boundary": ">=1.1.6", + "react-native-fast-image": ">=8.6", + "react-native-modal": ">=13", "react-native-pdf": ">=6.6.2", - "react-native-qrcode-svg": ">=6.0.6", - "react-native-safe-area-context": ">=3.3.0", - "react-native-svg": ">=12.1.0", - "react-native-vector-icons": ">=7.0.0", - "react-native-video": ">=5.1.0-alpha8", - "react-native-view-shot": ">=3.1.2", - "react-native-webview": ">=10.7.0", - "react-native-wm-barcode": ">=2.25.0", - "react-native-wm-voice-text": ">=0.3.0", - "victory-native": ">=35.0.1" + "react-native-popup-menu": ">=0.15.9", + "react-native-qrcode-svg": ">=6.2", + "react-native-safe-area-context": ">=4.3", + "react-native-svg": ">=13.4", + "react-native-tab-view": ">=3.3", + "react-native-typing-animation": ">=0.1", + "react-native-vector-icons": ">=9", + "react-native-video": ">=5.2", + "react-native-view-shot": ">=3.4", + "react-native-webview": ">=11.23", + "react-native-wm-voice-text": ">=0.3", + "reselect": ">=4", + "victory-native": ">=36.5" } }, "node_modules/@walmart/common-utilities-js": { @@ -24700,25 +24695,14 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "1.2.96", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.2.96.tgz", - "integrity": "sha512-Sy3/JfbgkqWq6BBfAcXZtyfxMca7nbpliBqAM/aFbs8p4hCnAVl6rnQQ66ujEG/XV97hmVNYVenffH8LB0gARQ==", + "version": "1.3.1", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-1.3.1.tgz", + "integrity": "sha512-T8Z9AbiStGaAwDBE+mUCy7uhjwSJ25/mqwJCkfVA/NNa1PSfbp39hbQu3cEUpEQkoQ/RQgGocVCCZi/HjKG5kA==", "requires": { - "@walmart/core-utils": "^1.0.9", - "@walmart/react-native-scanner-3.0": "^0.1.12", "apisauce": "^1.1.2", "axios-cache-adapter": "^2.7.3", - "lodash": "^4.17.19", - "moment": "^2.29.4", "numeral": "^2.0.6", - "react-native-error-boundary": "^1.1.6", - "react-native-modal": "^13.0.1", - "react-native-popup-menu": "^0.16.0", - "react-native-tab-view": "^3.1.1", - "react-native-typing-animation": "^0.1.7", - "reduxsauce": "^1.2.0", - "reselect": "^4.0.0", - "xdate": "^0.8.2" + "reduxsauce": "^1.2.0" } }, "@walmart/common-utilities-js": { @@ -35055,7 +35039,9 @@ "dev": true }, "wifi-store-locator": { - "version": "1.0.0-alpha2" + "version": "1.0.1", + "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.1.tgz", + "integrity": "sha512-fMZeW8dNlAQIqFaSbuIKxGLTSGv0OoVfb3Re4by5u3RuIqP4u/ez+N8PIGHFJV8jQ4e6iPf2CgSu6J/KFiwt4w==" }, "wm-react-native-vector-icons": { "version": "1.0.33", --- package.json @@ -79,7 +79,7 @@ "@walmart/allspark-neon-core": "0.1.31", "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", - "@walmart/ask-sam-mini-app": "1.2.96", + "@walmart/ask-sam-mini-app": "1.3.1", "@walmart/config-components": "4.0.1", "@walmart/core-services": "~1.4.9", "@walmart/core-services-allspark": "~1.10.11", @@ -154,6 +154,7 @@ "react-native-check-app-install": "^0.0.5", "react-native-circular-progress": "^1.3.7", "react-native-device-info": "^10.3.0", + "react-native-error-boundary": "^1.1.6", "react-native-fast-image": "^8.6.1", "react-native-flipper": "0.172.0", "react-native-fs": "^2.20.0",
bump up ask sam version of rn 70
bump up ask sam version of rn 70
9b0360b87b1fc0f4d5afa651f15dffdeb6492ce1
--- package-lock.json @@ -81,7 +81,7 @@ "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.24.5", "@walmart/time-clock-mini-app": "2.49.0", - "@walmart/topstock-mini-app": "1.0.3", + "@walmart/topstock-mini-app": "1.0.2", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26", @@ -6101,9 +6101,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/topstock-mini-app": { - "version": "1.0.3", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.0.3.tgz", - "integrity": "sha512-eN2aSoJGnpuHZRQdc7ZBHqzIRPD5eXIqGmJFgBWRY7QiGjyxxP94/3hAmXpq//i5DrNrg4ptkRLuc5goTPjmuA==", + "version": "1.0.2", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.0.2.tgz", + "integrity": "sha512-YPjtWOtPcaJ1hQrGTtaQDnTgeEthG1COr6Pmf56U+yiRMNbZ+UACaa6cc0rlZH1Z8IXUs808663hX8y7bVlRyA==", "dependencies": { "javascript-time-ago": "^2.5.7" }, @@ -25408,9 +25408,9 @@ "version": "1.0.4" }, "@walmart/topstock-mini-app": { - "version": "1.0.3", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.0.3.tgz", - "integrity": "sha512-eN2aSoJGnpuHZRQdc7ZBHqzIRPD5eXIqGmJFgBWRY7QiGjyxxP94/3hAmXpq//i5DrNrg4ptkRLuc5goTPjmuA==", + "version": "1.0.2", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.0.2.tgz", + "integrity": "sha512-YPjtWOtPcaJ1hQrGTtaQDnTgeEthG1COr6Pmf56U+yiRMNbZ+UACaa6cc0rlZH1Z8IXUs808663hX8y7bVlRyA==", "requires": { "javascript-time-ago": "^2.5.7" } --- package.json @@ -123,7 +123,7 @@ "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.24.5", "@walmart/time-clock-mini-app": "2.49.0", - "@walmart/topstock-mini-app": "1.0.3", + "@walmart/topstock-mini-app": "1.0.2", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26",
build(version): topstock version - 1.0.2
build(version): topstock version - 1.0.2
76e11950e948d8ff416861a8771043c19fbd63ff
--- packages/me-at-walmart-container/src/redux/config.ts @@ -169,6 +169,7 @@ export function* initAppConfig() { ); try { + // @ts-ignore - logger is not typed correct in config-components yield call(MeAtWalmartConfigService.initialize, { baseURL: `${env.http.externalUrl}${env.http.bffService}`, headers: { 'WM_CONSUMER.ID': env.http.consumerId }, --- packages/me-at-walmart-container/src/services/device.ts @@ -13,6 +13,7 @@ export const DeviceLogger = MeAtWalmartLoggerService.createFeatureInstance('DeviceConfig'); export const getCurrentDeviceConfig = async () => { + // @ts-ignore - logger is not typed correct in config-components await DeviceConfig.initialize({ logger: DeviceLogger }); return {
chore: ignore typescript error from incorrectly typed config components
chore: ignore typescript error from incorrectly typed config components
7985cbf0ddd6feccea2b979eaa6f976b6b9fc957
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart", - "version": "1.22.0", + "version": "1.24.0", "private": true, "workspaces": [ "core", --- targets/US/android/app/build.gradle @@ -106,8 +106,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 930 - versionName "1.22.0" + versionCode 932 + versionName "1.24.0" } signingConfigs { debug { --- targets/US/ios/AllSpark/Info.plist @@ -19,12 +19,12 @@ <string>APPL</string> <key>CFBundleShortVersionString</key> <!-- @customization - default: <string>$(MARKETING_VERSION)</string> --> - <string>1.22.0</string> + <string>1.24.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <!-- @customization - default: <string>$(CURRENT_PROJECT_VERSION)</string> --> - <string>930</string> + <string>932</string> <key>LSRequiresIPhoneOS</key> <true/> <key>NSAppTransportSecurity</key> --- targets/US/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-us", - "version": "1.22.0", + "version": "1.24.0", "private": true, "scripts": { "android": "react-native run-android", @@ -143,7 +143,7 @@ "@walmart/schedule-mini-app": "0.114.2", "@walmart/shelfavailability-mini-app": "1.5.26", "@walmart/store-feature-orders": "1.26.9", - "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.0.2#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.0.2-4cbd5b8e6d.patch", + "@walmart/taskit-mini-app": "4.13.0", "@walmart/time-clock-mini-app": "2.395.0", "@walmart/topstock-mini-app": "1.10.8", "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.15.14%23~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch%3A%3Aversion=1.15.14&hash=8586d9#~/.yarn/patches/@walmart-ui-components-patch-74215b5370.patch", @@ -171,6 +171,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", --- yarn.lock @@ -6876,7 +6876,7 @@ __metadata: "@walmart/schedule-mini-app": "npm:0.114.2" "@walmart/shelfavailability-mini-app": "npm:1.5.26" "@walmart/store-feature-orders": "npm:1.26.9" - "@walmart/taskit-mini-app": "patch:@walmart/taskit-mini-app@npm%3A3.0.2#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.0.2-4cbd5b8e6d.patch" + "@walmart/taskit-mini-app": "npm:4.13.0" "@walmart/time-clock-mini-app": "npm:2.395.0" "@walmart/topstock-mini-app": "npm:1.10.8" "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.15.14%23~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch%3A%3Aversion=1.15.14&hash=8586d9#~/.yarn/patches/@walmart-ui-components-patch-74215b5370.patch" @@ -6915,6 +6915,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" @@ -7728,53 +7729,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:3.0.2": - version: 3.0.2 - resolution: "@walmart/taskit-mini-app@npm:3.0.2" - peerDependencies: - "@terrylinla/react-native-sketch-canvas": ^0.8.0 - "@types/lodash": ">=4.14.176" - "@walmart/core-services": ">=1.2.0" - "@walmart/react-native-shared-navigation": 1.0.2 - "@walmart/redux-store": ">=1.0.11" - "@walmart/ui-components": ">=1.1.63" - lodash: ">=4.17.20" - luxon: ">=2.0.1" - react-i18next: ">=11.7.3" - react-native-device-info: ">=8.1.3" - react-native-fs: ^2.18.0 - react-native-image-picker: ">=4.0.6" - react-native-ssmp-sso-allspark: ">=1.1.0" - react-native-svg: ">=12.1.1" - react-native-svg-transformer: ">=0.14.3" - react-native-vision-camera: 1.0.11 - reselect: ^4.1.5 - checksum: 10c0/943b11bf2074691af296f52d0fe110f5662694012156fd523ce938f62a5abe63563aee3f4d0a5d40af88adbba931903a6939aedd97f05441ef6c4534e6ae2c84 - languageName: node - linkType: hard - -"@walmart/taskit-mini-app@patch:@walmart/taskit-mini-app@npm%3A3.0.2#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.0.2-4cbd5b8e6d.patch": - version: 3.0.2 - resolution: "@walmart/taskit-mini-app@patch:@walmart/taskit-mini-app@npm%3A3.0.2#~/.yarn/patches/@walmart-taskit-mini-app-npm-3.0.2-4cbd5b8e6d.patch::version=3.0.2&hash=956764" +"@walmart/taskit-mini-app@npm:4.13.0": + version: 4.13.0 + resolution: "@walmart/taskit-mini-app@npm:4.13.0" peerDependencies: - "@terrylinla/react-native-sketch-canvas": ^0.8.0 - "@types/lodash": ">=4.14.176" - "@walmart/core-services": ">=1.2.0" - "@walmart/react-native-shared-navigation": 1.0.2 - "@walmart/redux-store": ">=1.0.11" - "@walmart/ui-components": ">=1.1.63" - lodash: ">=4.17.20" - luxon: ">=2.0.1" - react-i18next: ">=11.7.3" - react-native-device-info: ">=8.1.3" - react-native-fs: ^2.18.0 - react-native-image-picker: ">=4.0.6" - react-native-ssmp-sso-allspark: ">=1.1.0" - react-native-svg: ">=12.1.1" - react-native-svg-transformer: ">=0.14.3" - react-native-vision-camera: 1.0.11 - reselect: ^4.1.5 - checksum: 10c0/057a43d741d37c26881c1eba71080be9cc17b988b2678172efaf4304e2453cb822a56f151ba7bf5531610add3737c107d7b88b6ee5e9455f6d70f0bb69d4c2e1 + "@walmart/allspark-foundation": "*" + checksum: 10c0/19ff6ed1a2669b2b56ffcf121f33b2732ae0e7135ce570744fdc270039404f62cfc6d8020f95b3fc35fe8d6597593b71ce16757af4eb1c0915fef7a5b8a17321 languageName: node linkType: hard @@ -17704,6 +17664,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"
chore: bump taskit version
chore: bump taskit version
70b8f02d6d7f066485aa10d207dc5fa356669153
--- packages/core-services/Network/index.tsx @@ -114,7 +114,7 @@ export const useNetwork = () => AllsparkNetworkClient; * * const networkState = useSelector(NetworkSelectors.getState) */ -export const useNetworkState = () => useSelector(NetworkSelectors.getState); +export const useNetworkState = () => useSelector(NetworkSelectors.getData); /** * @deprecated use `NetworkSelectors` from '@walmart/allspark-foundation/Network' instead @@ -122,10 +122,16 @@ export const useNetworkState = () => useSelector(NetworkSelectors.getState); * import {NetworkSelectors} from '@walmart/allspark-foundation/Network'; */ export const NetworkStateSelectors = { - getIsConnected: (state: FoundationNetworkState) => state.data?.isConnected, + getIsConnected: (state: FoundationNetworkState) => + state.data + ? state.data?.isConnected + : (state as unknown as NetworkDetails).isConnected, getConnectionType: (state: FoundationNetworkState) => - state.data?.connectionType, - getType: (state: FoundationNetworkState) => state.data?.type, + state.data + ? state.data?.connectionType + : (state as unknown as NetworkDetails).connectionType, + getType: (state: FoundationNetworkState) => + state.data ? state.data?.type : (state as unknown as NetworkDetails).type, }; /** @@ -133,7 +139,7 @@ export const NetworkStateSelectors = { * @example * import {NetworkSelectors} from '@walmart/allspark-foundation/Network'; */ -export const getNetworkState = NetworkSelectors.getState; +export const getNetworkState = NetworkSelectors.getData; /** * @deprecated use `NetworkSelectors` from '@walmart/allspark-foundation/Network' instead --- packages/core-services/Network/selectors.ts @@ -6,5 +6,5 @@ import { NetworkSelectors } from '@walmart/allspark-foundation/Network'; * @deprecated use `NetworkSelectors.getState` from '@walmart/allspark-foundation/Network' instead * @example * import {NetworkSelectors} from '@walmart/allspark-foundation/Network'; - */ -export const getNetworkState = NetworkSelectors.getState; + **/ +export const getNetworkState = NetworkSelectors.getData;
fix: backwards compatible fix for network selectors
fix: backwards compatible fix for network selectors
a5c8d17e51301777417556bfcaf44487fcb71262
--- package-lock.json @@ -66,7 +66,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.16-alpha-2", + "@walmart/wmconnect-mini-app": "1.0.16-alpha-3", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11834,9 +11834,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.16-alpha-2", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-2.tgz", - "integrity": "sha512-YtaYJqZ6jxsMdYo3aLjBP1DEKj9NX1lcSAkg88vYuvVBeI7/AWzN3vVfgVkimIRg/r/vaA/ibwjshhpjHR5GKA==", + "version": "1.0.16-alpha-3", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-3.tgz", + "integrity": "sha512-WLqcrS9vV32U6a6T1R5s5WD4VHLqe2u2abmN9KYz/iuXlORVu08yAmTIXYYwNGuXYHD1Q7CD6d9Ms+QeBMnFRA==", "dev": true, "hasInstallScript": true }, @@ -41046,9 +41046,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.16-alpha-2", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-2.tgz", - "integrity": "sha512-YtaYJqZ6jxsMdYo3aLjBP1DEKj9NX1lcSAkg88vYuvVBeI7/AWzN3vVfgVkimIRg/r/vaA/ibwjshhpjHR5GKA==", + "version": "1.0.16-alpha-3", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.16-alpha-3.tgz", + "integrity": "sha512-WLqcrS9vV32U6a6T1R5s5WD4VHLqe2u2abmN9KYz/iuXlORVu08yAmTIXYYwNGuXYHD1Q7CD6d9Ms+QeBMnFRA==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -89,7 +89,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.16-alpha-2", + "@walmart/wmconnect-mini-app": "1.0.16-alpha-3", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
versionUpdate
versionUpdate
6622806759a337acd854f704bfaea2a05cbf126d
--- .yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch @@ -1,5 +1,5 @@ diff --git a/components/FontIcon/FontIcon.js b/components/FontIcon/FontIcon.js -index 7c52440c6790eb6b0df892737dee011f8a5a470d..0faa18761ed7de6cc13e0881e78ff9c693c959a5 100644 +index 7c52440c6790eb6b0df892737dee011f8a5a470d..26c12c694e91e5437e2c6b145a013013ec9bf599 100644 --- a/components/FontIcon/FontIcon.js +++ b/components/FontIcon/FontIcon.js @@ -1,4 +1,4 @@ @@ -8,9 +8,8 @@ index 7c52440c6790eb6b0df892737dee011f8a5a470d..0faa18761ed7de6cc13e0881e78ff9c6 -export default createIconSetFromIcoMoon(globalNavConfig); +export default createIconSetFromIcoMoon(globalNavConfig, 'IcoMoon', 'icomoon.ttf'); -\ No newline at end of file diff --git a/components/Header/Header.js b/components/Header/Header.js -index 4b2a5559c2ab84537d71ed5a832cbb135af01649..b86f2e0ff86d9da8d13677351f5e89c223796c71 100644 +index 4b2a5559c2ab84537d71ed5a832cbb135af01649..ae52c4f939ff6dc7072a1c036bfc4dab321c3a85 100644 --- a/components/Header/Header.js +++ b/components/Header/Header.js @@ -1,6 +1,6 @@ @@ -23,7 +22,7 @@ index 4b2a5559c2ab84537d71ed5a832cbb135af01649..b86f2e0ff86d9da8d13677351f5e89c2 import { ChevronLeftIcon } from '@walmart/gtp-shared-components'; import { styles } from './styles'; -@@ -19,40 +19,19 @@ export const commonHeaderProps = { +@@ -19,40 +19,20 @@ export const commonHeaderProps = { headerBackImage: (props) => <ChevronLeftIcon size={24} color={props.tintColor} />, }; @@ -62,7 +61,6 @@ index 4b2a5559c2ab84537d71ed5a832cbb135af01649..b86f2e0ff86d9da8d13677351f5e89c2 - </> - ); -}; -- +/** + * @deprecated - Header context no longer exists with the foundation. Banners are + * rendered using AllsparkBanners from '@walmart/allspark-foundation/Components' @@ -78,4 +76,5 @@ index 4b2a5559c2ab84537d71ed5a832cbb135af01649..b86f2e0ff86d9da8d13677351f5e89c2 + * @deprecated - Header context no longer exists with the foundation. Banners are + * rendered using AllsparkBanners from '@walmart/allspark-foundation/Components' + */ + Header.Provider = HeaderContext.Provider; --- package.json @@ -148,7 +148,7 @@ "@walmart/time-clock-mini-app": "2.448.1", "@walmart/topstock-mini-app": "1.21.6-404-f18fd2e", "@walmart/translator-mini-app": "1.4.2", - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.2#~/.yarn/patches/@walmart-ui-components-npm-1.21.2-8c0be5d437.patch", + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch", "@walmart/walmart-fiscal-week": "^0.3.6", "@walmart/welcomeme-mini-app": "0.99.0", "@walmart/wfm-ui": "2.4.0", --- yarn.lock @@ -6710,7 +6710,7 @@ __metadata: "@walmart/time-clock-mini-app": "npm:2.448.1" "@walmart/topstock-mini-app": "npm:1.21.6-404-f18fd2e" "@walmart/translator-mini-app": "npm:1.4.2" - "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.2#~/.yarn/patches/@walmart-ui-components-npm-1.21.2-8c0be5d437.patch" + "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch" "@walmart/walmart-fiscal-week": "npm:^0.3.6" "@walmart/welcomeme-mini-app": "npm:0.99.0" "@walmart/wfm-ui": "npm:2.4.0" @@ -7745,9 +7745,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ui-components@npm:1.21.2": - version: 1.21.2 - resolution: "@walmart/ui-components@npm:1.21.2" +"@walmart/ui-components@npm:1.21.3": + version: 1.21.3 + resolution: "@walmart/ui-components@npm:1.21.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fui-components%2F-%2Fui-components-1.21.3.tgz" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" @@ -7766,13 +7766,13 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/0f961af489d6d6532c7b1bfeb67d4f40db827daab239be138a499cc4c7bb1e214dda92172098be604c95b14c4cf51fa67ab8f8f9081ffcef99fdfc0e24763858 + checksum: 10c0/aae1300cadc63f2d56bd32981c0684c07fb5e2d67a1ea7c037663fbd419909e738ce3d9ad83569318c66524282f60d27feab5559c4bcf42e886736000cddd711 languageName: node linkType: hard -"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.21.2#~/.yarn/patches/@walmart-ui-components-npm-1.21.2-8c0be5d437.patch": - version: 1.21.2 - resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.21.2#~/.yarn/patches/@walmart-ui-components-npm-1.21.2-8c0be5d437.patch::version=1.21.2&hash=762a39" +"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.21.3#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch": + version: 1.21.3 + resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.21.3%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fui-components%252F-%252Fui-components-1.21.3.tgz#~/.yarn/patches/@walmart-ui-components-npm-1.21.3-509a6d703d.patch::version=1.21.3&hash=66bb98" peerDependencies: "@react-navigation/stack": ">=6.1.0" "@walmart/allspark-foundation": "*" @@ -7791,7 +7791,7 @@ __metadata: react-native-safe-area-context: ">=3.1.3" react-native-vector-icons: ">=7.0.0" react-native-webview: ">=10.10.2" - checksum: 10c0/d0a1b6b9e899faf4beed717b531fdd8b5295085f937674663c2a83bc6315f51dfcc0d54316a1b0bd981a40a027307dc1ff76ae909e414840ecd339813fe07520 + checksum: 10c0/5d0a7ac7ad260ee997935fe24f5b41ce18c0ba15e17ace594a74f2c31c2114758b9915361edbfc8f40db863f31d5d7fb8030917dd026ad01daa8fd7c21ac0403 languageName: node linkType: hard
update UI comp
update UI comp
776d71d3e8a5e8860c54cafa9dee0c5cddfd6704
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.27.0", + "version": "2.28.0", "main": "dist/index.js", "files": [ "dist/"
feat: SMDV-9999 update package
feat: SMDV-9999 update package
4a531147200976cc533fe8ec6382a4e7ef565c59
--- ios/Podfile.lock @@ -1036,4 +1036,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 7efc314454ab8f495d11a401c27762edcf1c5e4f -COCOAPODS: 1.11.3 +COCOAPODS: 1.11.2
fixing podfile to match develop
fixing podfile to match develop
58ca81fd29e333e195624742b092a98ff0e7e29b
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -212,28 +212,15 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const renderContent = useCallback(() => { return ( <HubOnboardingImage - title={ - isMutationError ? t('errorBottomsheet.title') : t('bottomSheet.title') - } - description={ - isMutationError - ? t('errorBottomsheet.description') - : t('bottomSheet.description') - } - source={ - isMutationError - ? { - uri: 'https://i5-me.walmartimages.com/images/metrics/cone-error-3212fb53c5.png', - placeholder: 'KbNK;xj[_MkXa|ae%fa|=X', - } - : { - uri: 'https://i5-me.walmartimages.com/images/teams/my-teams-mgr-exp-1edac1ba4a.png', - placeholder: 'KdM7in%J~q=pn#M{~VNIxU', - } - } + title={t('teamsUpdatedBottomSheet.title')} + description={t('teamsUpdatedBottomSheet.description')} + source={{ + uri: 'https://i5-me.walmartimages.com/images/teams/manage-team-mgr-exp-9455292244.png', + placeholder: 'K+Lq-9bc_N%Lf5R.%MWrr=', + }} /> ); - }, [isMutationError, t]); + }, [t]); return ( <> <ScrollView @@ -297,17 +284,33 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { }} /> </ScrollView> - {(userOnboarded || userOnboardingOrTeamSelectionError) && ( + {(isMutationError || userOnboardingOrTeamSelectionError) && ( <BottomSheet ref={bottomSheetRef} - isVisible={userOnboarded || userOnboardingOrTeamSelectionError} + isVisible={ + userOnboardingOrTeamSelectionError || + (userOnboardingOrTeamSelectionError as boolean) + } + content={HubOnboardingImage({ + title: t('errorBottomsheet.title'), + description: t('errorBottomsheet.description'), + source: { + uri: 'https://i5-me.walmartimages.com/images/metrics/cone-error-3212fb53c5.png', + placeholder: 'KbNK;xj[_MkXa|ae%fa|=X', + }, + })} + onPrimaryButtonPress={closeBottomSheet} + primaryButtonText={t('errorBottomsheet.buttonText')} + /> + )} + + {(userOnboarded || userOnboardingComplete) && ( + <BottomSheet + ref={bottomSheetRef} + isVisible={userOnboardingComplete as boolean} // condition for teams has been updated content={renderContent()} onPrimaryButtonPress={closeBottomSheet} - primaryButtonText={ - isMutationError - ? t('errorBottomsheet.buttonText') - : t('bottomSheet.buttonText') - } + primaryButtonText={t('bottomSheet.buttonText')} /> )} </> --- packages/allspark-foundation-hub/src/HubFeature/translation.ts @@ -42,7 +42,13 @@ export const enUS = { teamSelected: 'team selected', teamsSelected: 'teams selected', }, - bottomSheet: { + onboardingBottomSheet: { + title: 'Start managing your teams', + description: + 'Your personalized Team and Work hubs are ready. Add or edit teams at any time.', + buttonText: 'Got it', + }, + teamsUpdatedBottomSheet: { title: 'Teams updated', description: 'You have successfully updated your teams', buttonText: 'Got it',
feat(ui): updated content for bottomsheet
feat(ui): updated content for bottomsheet
307b2b0908f489f0e88561ce91da56275845b531
--- targets/US/package.json @@ -91,7 +91,7 @@ "@walmart/avp-shared-library": "0.10.1", "@walmart/backroom-mini-app": "1.5.20", "@walmart/calling-mini-app": "0.5.17", - "@walmart/checkout-mini-app": "3.24.0", + "@walmart/checkout-mini-app": "4.0.1", "@walmart/compass-sdk-rn": "5.19.15", "@walmart/config-components": "4.4.5", "@walmart/core-services": "~6.5.2", --- yarn.lock @@ -6153,9 +6153,9 @@ __metadata: languageName: node linkType: hard -"@walmart/checkout-mini-app@npm:3.24.0": - version: 3.24.0 - resolution: "@walmart/checkout-mini-app@npm:3.24.0" +"@walmart/checkout-mini-app@npm:4.0.1": + version: 4.0.1 + resolution: "@walmart/checkout-mini-app@npm:4.0.1" dependencies: "@stomp/stompjs": "npm:^7.0.0" cpc-input: "npm:^1.7.28" @@ -6197,7 +6197,7 @@ __metadata: react-native-wm-telemetry: ">=6" react-redux: ^8.1.3 redux: ^4.0.5 - checksum: 10c0/91d35fd0b64431acf11e0576c0d6bdc209d079fef43070e269357269f1f5fe7ae91cde4e97cae541132c4e425b88a3ffc1bb6154c9ef496383cee530c3840238 + checksum: 10c0/96c630bc31d5f3845830d02e0bff1c4ff83e2ff3143ba0318f9523dabfaaf2aac10bf4cc9ffa08baea67bde0704b3c6ac67080db74574402f7899a7added64a4 languageName: node linkType: hard @@ -7007,7 +7007,7 @@ __metadata: "@walmart/avp-shared-library": "npm:0.10.1" "@walmart/backroom-mini-app": "npm:1.5.20" "@walmart/calling-mini-app": "npm:0.5.17" - "@walmart/checkout-mini-app": "npm:3.24.0" + "@walmart/checkout-mini-app": "npm:4.0.1" "@walmart/compass-sdk-rn": "npm:5.19.15" "@walmart/config-components": "npm:4.4.5" "@walmart/core-services": "npm:~6.5.2"
CO version 4.0.1
CO version 4.0.1
d48786da8e83513ed9e2f81a0aa9099505920acc
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 48 + versionCode 49 versionName "1.0.2" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>48</string> + <string>49</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>48</string> + <string>49</string> </dict> </plist>
Incrementing build number
Incrementing build number
5337db50bfab192aa71428a700008d77a42cfffa
--- .gitignore @@ -18,6 +18,7 @@ yarn-error.log # generated by bob lib/ +packages/allspark-foundation/cli/ packages/allspark-foundation/cli/* # jest --- packages/allspark-foundation/src/cli/envReplacer.ts @@ -1,4 +1,7 @@ -const envReplacer = (config, env) => { +export const envReplacer = ( + config: Record<string, any>, + env: Record<string, string> +) => { Object.keys(config).forEach((key) => { const value = config[key]; @@ -19,7 +22,3 @@ const envReplacer = (config, env) => { return; }); }; - -module.exports = { - envReplacer, -}; --- packages/allspark-foundation/src/cli/linkUtils.ts @@ -1,13 +1,13 @@ -#!/usr/bin/env node -'use strict'; +import fs from 'fs'; -const fs = require('fs'); - -function isObject(item) { +function isObject(item: any) { return item && typeof item === 'object' && !Array.isArray(item); } -function mergeDeep(target, ...sources) { +function mergeDeep( + target: Record<string, any>, + ...sources: Record<string, any>[] +): any { if (!sources.length) return target; const source = sources.shift(); @@ -25,12 +25,12 @@ function mergeDeep(target, ...sources) { return mergeDeep(target, ...sources); } -function writeConfig(config, filePath) { +function writeConfig(config: any, filePath: string) { const fileContent = `module.exports = ${JSON.stringify(config, null, 2)};\n`; fs.writeFileSync(filePath, fileContent); } -function linkReactNativeConfig(inputConfig) { +export function linkReactNativeConfig(inputConfig: Record<string, any>) { const processPath = process.cwd(); const baseConfigPath = `${processPath}/react-native.config.js`; const baseConfig = require(baseConfigPath); @@ -43,7 +43,7 @@ function linkReactNativeConfig(inputConfig) { } } -function mergePods(podfile, pods) { +function mergePods(podfile: string, pods: string[]) { const baseLines = podfile.split('\n'); const basePods = baseLines.filter((line) => /^\s*pod/i.test(line)); @@ -65,7 +65,7 @@ function mergePods(podfile, pods) { return baseLines.join('\n'); } -function mergeSources(podfile, sources) { +function mergeSources(podfile: string, sources: string[]) { const baseLines = podfile.split('\n'); const baseSources = baseLines.filter((line) => /^\s*source/i.test(line)); @@ -84,7 +84,7 @@ function mergeSources(podfile, sources) { return baseLines.join('\n'); } -function linkIos(iosConfig) { +export function linkIos(iosConfig: { pods: string[]; sources: string[] }) { const { pods, sources } = iosConfig; // Process relative files paths @@ -103,8 +103,3 @@ function linkIos(iosConfig) { } }); } - -module.exports = { - linkIos, - linkReactNativeConfig, -}; --- packages/allspark-foundation/tsconfig.cli.json @@ -1,9 +1,11 @@ { "extends": "../../tsconfig.json", "compilerOptions": { + "module": "CommonJS", "rootDir": "src/cli", "outDir": "cli", "allowJs": true, + "declaration": false }, "include": ["src/cli/"], }
chore: update foundation cli
chore: update foundation cli
e1d67529b0ca19c608e8b1ec160ee28803d948e2
--- package.json @@ -131,7 +131,7 @@ "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "6.1.4", "@walmart/react-native-logger": "1.34.8", - "@walmart/react-native-scanner-3.0": "0.6.6", + "@walmart/react-native-scanner-3.0": "0.6.7", "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.7.0", --- yarn.lock @@ -6873,12 +6873,12 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-scanner-3.0@npm:0.6.6": - version: 0.6.6 - resolution: "@walmart/react-native-scanner-3.0@npm:0.6.6" +"@walmart/react-native-scanner-3.0@npm:0.6.7": + version: 0.6.7 + resolution: "@walmart/react-native-scanner-3.0@npm:0.6.7" peerDependencies: react-native: ">=0.47.1" - checksum: 10c0/78833166f9fc6fc06874492fcbdfc02e2888833672ee7c54b7f5351b27f473305a7826930779eb8018a1dd8f07833c7f425f66ab23b078b7732f65be263491e6 + checksum: 10c0/cd0e36da1988d75fcf62bddbf924c1e67adb6b24235356fb488d0d3536884cd03c538e59e6cc5330a64c541bee27e4742a4783a4db176d714fc31166bcd75da6 languageName: node linkType: hard @@ -7868,7 +7868,7 @@ __metadata: "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-env": "npm:6.1.4" "@walmart/react-native-logger": "npm:1.34.8" - "@walmart/react-native-scanner-3.0": "npm:0.6.6" + "@walmart/react-native-scanner-3.0": "npm:0.6.7" "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.0"
scanner version upgrade
scanner version upgrade
a7d9fe962ab8c585ccb35ddb3d072495fcd5bb15
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.33.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.32.0...v1.33.0) (2025-05-12) + + +### Features + +* **ui:** updating roster version ([9bb82dc](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/9bb82dc4a067ec619f454123d3af40b9f42006b8)) + # [1.32.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.31.0...v1.32.0) (2025-05-07) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.32.0", + "version": "1.33.0", "main": "dist/index.js", "files": [ "dist/"
chore(release): 1.33.0 [skip ci]
chore(release): 1.33.0 [skip ci] # [1.33.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.32.0...v1.33.0) (2025-05-12) ### Features * **ui:** updating roster version ([9bb82dc](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/9bb82dc4a067ec619f454123d3af40b9f42006b8))
2fcf078aab71efcf533146858391cd6f837ef921
--- src/hooks/roster.ts @@ -1,3 +1,4 @@ +import {useState} from 'react'; import {useSelector} from 'react-redux'; import moment from 'moment-timezone'; import {SiteSelectors, UserSelectors} from '@walmart/redux-store'; @@ -19,6 +20,7 @@ import {getGraphQLConfig} from '../services/config'; import {useIsSalariedOrTeamLead} from '../hooks'; export const useDailyRoster = (shouldSkipQuery: boolean = false) => { + const [error, setError] = useState<any>(undefined); const storeId: string | undefined = useSelector( SiteSelectors.getUserWorkingSite, ); @@ -26,7 +28,7 @@ export const useDailyRoster = (shouldSkipQuery: boolean = false) => { SiteSelectors.getSiteCountry, ); const envConfig = useEnvironment(); - return useGetDailyRosterQuery({ + const response = useGetDailyRosterQuery({ variables: { businessUnitNumber: Number(storeId)!, storeId: storeId!, @@ -40,19 +42,25 @@ export const useDailyRoster = (shouldSkipQuery: boolean = false) => { nextFetchPolicy: 'cache-and-network', // For the subsequent query execution skip: !storeId || !countryCode || shouldSkipQuery, context: getGraphQLConfig(envConfig), - onError(error) { - logger.error('useGetDailyRosterQuery error', { - message: `error in fetching useGetDailyRosterQuery: ${error}`, - }); - }, - onCompleted: () => { + onCompleted: (data) => { + if (!data.getDailyRoster?.length) { + logger.error('useGetDailyRosterQuery error', { + message: `error in fetching useGetDailyRosterQuery: ${JSON.stringify( + response.error, + )}`, + }); + setError(response.error); + } logger.info('useGetDailyRosterQuery completed', { message: 'useGetDailyRosterQuery executed successfully', }); }, }); + return { + ...response, + error, + }; }; - const checkIfUserHasJobCode = (user: any) => (jobDescription: any) => user?.title?.toLowerCase()?.includes(jobDescription); --- src/hooks/teams.ts @@ -25,11 +25,13 @@ export const useGetTeamById = (teamId: string) => { teamId, countryCode: countryCode!, }, - skip: !storeNbr || !countryCode, + skip: !storeNbr || !countryCode || !teamId, context: getGraphQLConfig(envConfig), onError(error) { logger.error('useGetTeamByIdQuery error', { - message: `error in fetching useGetTeamByIdQuery: ${error}`, + message: `error in fetching useGetTeamByIdQuery: ${JSON.stringify( + error, + )}`, }); }, onCompleted: () => {
feat(ui): moved error handler to onComplete to avoid unnecessary logging
feat(ui): moved error handler to onComplete to avoid unnecessary logging
10ea270884282d4bdd4a5a55d06a4689988e9ffa
--- ios/Podfile.lock @@ -621,9 +621,9 @@ PODS: - JWT (~> 3.0.0-beta.12) - React-Core - SSZipArchive (~> 2.2.2) - - compass-sdk-ios (0.4.12.2) - - compass-sdk-rn (5.19.8): - - compass-sdk-ios (= 0.4.12.2) + - compass-sdk-ios (0.4.12.3) + - compass-sdk-rn (5.19.13): + - compass-sdk-ios (= 0.4.12.3) - React-Core - DoubleConversion (1.1.6) - EXAV (13.6.0): @@ -2729,8 +2729,8 @@ SPEC CHECKSUMS: BoringSSL-GRPC: 3175b25143e648463a56daeaaa499c6cb86dad33 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 CodePush: eaa66fc8dd9ff611304ecc48397ce8831ba79ac9 - compass-sdk-ios: 8077b7076d749de27c83846bad97ecde13f28657 - compass-sdk-rn: 5eec79182e7242fd0fb32cd8a2cc7ccb3fd3f387 + compass-sdk-ios: e77515e01cf1c39cf342389b717b72c2aadf0c95 + compass-sdk-rn: 491bc4d39a622a68dd4203199a9492703633b958 DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953 EXAV: 523cd6969ca53b3b2762f18fb5450b76f84df44f EXConstants: a5f6276e565d98f9eb4280f81241fc342d641590 @@ -2904,8 +2904,8 @@ SPEC CHECKSUMS: walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 - Yoga: c716aea2ee01df6258550c7505fa61b248145ced + Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee PODFILE CHECKSUM: fc93c11e2096b0f20e15b7c98c1efea2b0908817 -COCOAPODS: 1.14.3 +COCOAPODS: 1.15.2 --- package.json @@ -92,7 +92,7 @@ "@walmart/backroom-mini-app": "1.1.10", "@walmart/calling-mini-app": "0.2.38", "@walmart/checkout-mini-app": " 3.18.0", - "@walmart/compass-sdk-rn": "5.19.8", + "@walmart/compass-sdk-rn": "5.19.13", "@walmart/config-components": "4.4.1", "@walmart/copilot-mini-app": "3.92.14", "@walmart/core-services": "6.1.4", @@ -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.8", + "@walmart/facilities-management-miniapp": "0.11.15", "@walmart/feedback-all-spark-miniapp": "0.9.63", "@walmart/financial-wellbeing-feature-app": "1.23.3", "@walmart/functional-components": "6.1.4", --- yarn.lock @@ -5868,13 +5868,13 @@ __metadata: languageName: node linkType: hard -"@walmart/compass-sdk-rn@npm:5.19.8": - version: 5.19.8 - resolution: "@walmart/compass-sdk-rn@npm:5.19.8" +"@walmart/compass-sdk-rn@npm:5.19.13": + version: 5.19.13 + resolution: "@walmart/compass-sdk-rn@npm:5.19.13" peerDependencies: react: "*" react-native: "*" - checksum: 10c0/2c31111fe83410c0ce35f0bbf4452c7f59488ad37cac31d7e17243a262ae3f83df42552bd119e691f77d40cda5b3d6e1e026050f3c1873f6f3dc46f8c62247ea + checksum: 10c0/0c498344aba113e5c566441d6483867d08c2cb900f036f99a419896e8cc16fff610a75a56c7e5cb33cd911505730c5e0968d4cf069ebfb291b6c2ab9186aa26b languageName: node linkType: hard @@ -6023,12 +6023,12 @@ __metadata: languageName: node linkType: hard -"@walmart/facilities-management-miniapp@npm:0.11.8": - version: 0.11.8 - resolution: "@walmart/facilities-management-miniapp@npm:0.11.8" +"@walmart/facilities-management-miniapp@npm:0.11.15": + version: 0.11.15 + resolution: "@walmart/facilities-management-miniapp@npm:0.11.15" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/1a6b2c77ac09cf4da0c846a3406507ea22d5a795deeb2ce9b2409eff81a032fd0d6fc2ed137c25b45b094a506f7752ecda96580362e933e63dd125fea25354b0 + checksum: 10c0/28b0693b2a6567ada2c64757276293e9656df40ca3400034ba5ea811bcbdfc219b1fe25f9fab30e5ea3355f0760b385733054c45b3af808b56ef08aecc6e1294 languageName: node linkType: hard @@ -7727,7 +7727,7 @@ __metadata: "@walmart/backroom-mini-app": "npm:1.1.10" "@walmart/calling-mini-app": "npm:0.2.38" "@walmart/checkout-mini-app": "npm: 3.18.0" - "@walmart/compass-sdk-rn": "npm:5.19.8" + "@walmart/compass-sdk-rn": "npm:5.19.13" "@walmart/config-components": "npm:4.4.1" "@walmart/copilot-mini-app": "npm:3.92.14" "@walmart/core-services": "npm:6.1.4" @@ -7737,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.8" + "@walmart/facilities-management-miniapp": "npm:0.11.15" "@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 compass and fixt version upgrade
Drop 23 compass and fixt version upgrade
641a218c1fd7dd997cc10bf36af307fa1a0b1a59
--- jest.config.js @@ -17,10 +17,10 @@ module.exports = { ], coverageThreshold: { global: { - statements: 87.22, - branches: 75.09, - functions: 85.22, - lines: 87.31, + statements: 87, + branches: 75, + functions: 85, + lines: 87, }, }, transformIgnorePatterns: [ --- package-lock.json @@ -1,12 +1,12 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.12", + "version": "1.0.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@walmart/roster-mini-app", - "version": "1.0.12", + "version": "1.0.13", "hasInstallScript": true, "devDependencies": { "@babel/core": "^7.20.0", @@ -67,7 +67,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.10", + "@walmart/wmconnect-mini-app": "1.0.11", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", @@ -11853,9 +11853,9 @@ } }, "node_modules/@walmart/wmconnect-mini-app": { - "version": "1.0.10", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.10.tgz", - "integrity": "sha512-tY3OvVJN79ik2jMGS3nW37+EUQrJmA9f/hiH5+f98yVrd+IDVryxBRgPb8zY7mNhuHqO41yh+i97ASWphT5xsw==", + "version": "1.0.11", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.11.tgz", + "integrity": "sha512-cRZ9Q9dJ4MRUKYTq9a7W2/rrJ715ZE5McTXIvYZmJPbsabxjStsQa+vEPGEiyhzRV/Bbbj6pO4YHKOfh92BgJg==", "dev": true, "hasInstallScript": true }, @@ -41071,9 +41071,9 @@ } }, "@walmart/wmconnect-mini-app": { - "version": "1.0.10", - "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.10.tgz", - "integrity": "sha512-tY3OvVJN79ik2jMGS3nW37+EUQrJmA9f/hiH5+f98yVrd+IDVryxBRgPb8zY7mNhuHqO41yh+i97ASWphT5xsw==", + "version": "1.0.11", + "resolved": "https://npme.walmart.com/@walmart/wmconnect-mini-app/-/wmconnect-mini-app-1.0.11.tgz", + "integrity": "sha512-cRZ9Q9dJ4MRUKYTq9a7W2/rrJ715ZE5McTXIvYZmJPbsabxjStsQa+vEPGEiyhzRV/Bbbj6pO4YHKOfh92BgJg==", "dev": true }, "@whatwg-node/events": { --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "1.0.12", + "version": "1.0.13", "private": false, "main": "dist/index.js", "files": [ @@ -90,7 +90,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "1.0.10", + "@walmart/wmconnect-mini-app": "1.0.11", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0",
Update version
Update version
2c7e2dd7296784edc1310dbd59a0d8e1c80d26df
--- packages/me-at-walmart-container/__tests__/services/user/cache.test.ts @@ -137,21 +137,6 @@ describe('Test suite for cache functions', () => { }); describe('cacheUserInfo', () => { - it('should cache user info with correct expiry time', async () => { - const user = {userId: '123'} as User; - const source = UserInfoSource.ATHENA; - AllsparkLocalStorage.AllsparkLocalStorage.get.mockResolvedValue('60000'); - const key = createUserInfoCacheKey(user.userId, source); - const expires = Date.now() + 60000; - - await cacheUserInfo(user, source); - - expect(EncryptedStorage.setItem).toHaveBeenCalledWith( - key, - expect.stringContaining('"expires":' + expires), - ); - }); - it('should handle errors gracefully', async () => { EncryptedStorage.setItem.mockRejectedValue(new Error('Some error')); const user = {userId: '123'} as User;
chore: fix test
chore: fix test
8aa567a5f38292c6eda41deab7fdc0944d906a44
--- .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)&&!dualcore&&!MAC-DRFQLAB-MINI21&&!MAC-LAB-MINI33) +node: ((osx||stable_osx)&&!dualcore) ## Global tools used across all flows. tools: @@ -38,7 +38,7 @@ envs: global: variables: CI: true - LOOPER_NODES: '((osx||stable_osx)&&!dualcore&&!MAC-DRFQLAB-MINI21&&!MAC-LAB-MINI33)' + LOOPER_NODES: '((osx||stable_osx)&&!dualcore)' GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}" TMPDIR: /tmp
Reverting the node to original definition
Reverting the node to original definition
99ec3a3558f0dc9a90aaacbf70ae6119f3731ce6
--- package.json @@ -9,7 +9,7 @@ "installConfig": { "hoistingLimits": "none" }, - "packageManager": "yarn@4.4.0", + "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" }, @@ -414,4 +414,4 @@ "typescript": "~5.3.3", "uuid": "^3.3.2" } -} +} \ No newline at end of file
chore: bump yarn version
chore: bump yarn version
97bd98b196efce8ef623e3c5b5d7f3d19359c415
--- graphql.yml @@ -103,21 +103,21 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/getLoggedInUser.graphql' tags: - 'v1' - # - name: "GetSupplyChainShifts" - # hash: "b0f8dbb33dfb79cf68890fa719d4a9a6a2ab8e851ea3a81708a31ac9078c988c" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainShifts.graphql" - # tags: - # - "v1" - # - name: "getSupplyChainTeamPreference" - # hash: "61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql" - # tags: - # - "v1" - # - name: "GetSupplyChainTeamsByStore" - # hash: "74bb80b3180028948952cb07a41ad7a621c0721110520631ee9d871f7a555b67" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamsByStore.graphql" - # tags: - # - "v1" + - name: "GetSupplyChainShifts" + hash: "b0f8dbb33dfb79cf68890fa719d4a9a6a2ab8e851ea3a81708a31ac9078c988c" + queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainShifts.graphql" + tags: + - "v1" + - name: "getSupplyChainTeamPreference" + hash: "61253c3d4d8ab6db774a903969c2f63de9113f44c1947d52c3630dd38ce30839" + queryTemplate: "packages/me-at-walmart-athena-queries/src/getSupplyChainTeamPreferenceQuery.graphql" + tags: + - "v1" + - name: "GetSupplyChainTeamsByStore" + hash: "74bb80b3180028948952cb07a41ad7a621c0721110520631ee9d871f7a555b67" + 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' @@ -138,8 +138,8 @@ applications: queryTemplate: "packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql" tags: - "v1" - # - name: "upsertSupplyChainAssociatePreference" - # hash: "39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0" - # queryTemplate: "packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql" - # tags: - # - "v1" + - name: "upsertSupplyChainAssociatePreference" + hash: "39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0" + queryTemplate: "packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql" + tags: + - "v1" --- packages/allspark-foundation-hub/src/Store/Modals/ErrorBottomSheet.tsx @@ -8,13 +8,16 @@ import { import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; -import { AllsparkNavigationClient } from '@walmart/allspark-foundation'; import { useUserPersonaType } from '../../Shared/Hooks/useUserPersonaType'; import { useSelector } from 'react-redux'; import { hubTeamsUpdatedErrorBottomSheetEnabled } from '../Redux'; import { HubOnboardingImage } from '../Components'; -export const ErrorBottomSheet = () => { +export const ErrorBottomSheet = ({ + modal: { closeModal }, +}: { + modal: { closeModal: () => void }; +}) => { const { t } = useAllsparkTranslation(FEATURE_ID); const bottomSheetRef = useRef<{ open: () => void; close: () => void }>(null); const errorBottomSheetTelemetry = useTelemetryService(); @@ -49,9 +52,8 @@ export const ErrorBottomSheet = () => { telemetryLogHandler('Error bottomsheet triggered', loggerRef, { message: 'Error bottomsheet triggered', }); - AllsparkNavigationClient.closeModal( - 'managerExperience.errorBottomSheet' as any - ); + closeModal(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [personaType]); const renderContent = useCallback(() => { --- packages/allspark-foundation-hub/src/Store/Modals/TeamUpdateBottomSheet.tsx @@ -9,12 +9,15 @@ import { } from '../../Shared'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; -import { AllsparkNavigationClient } from '@walmart/allspark-foundation'; import { useUserPersonaType } from '../../Shared/Hooks/useUserPersonaType'; import { useSelector } from 'react-redux'; import { hubTeamsUpdatedBottomSheetEnabled } from '../Redux'; -export const TeamUpdateBottomSheet = () => { +export const TeamUpdateBottomSheet = ({ + modal: { closeModal }, +}: { + modal: { closeModal: () => void }; +}) => { const { t } = useAllsparkTranslation(FEATURE_ID); const bottomSheetRef = useRef<{ open: () => void; close: () => void }>(null); const teamUpdateBottomSheetTelemetry = useTelemetryService(); @@ -40,9 +43,8 @@ export const TeamUpdateBottomSheet = () => { telemetryLogHandler('Teams updated banner', loggerRef, { message: 'Teams updated bottomsheet triggered', }); - AllsparkNavigationClient.closeModal( - 'managerExperience.teamUpdatedBottomSheet' as any - ); + closeModal(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [personaType]); const renderContent = useCallback(() => { --- packages/allspark-foundation-hub/src/Store/Utils/utils.ts @@ -65,8 +65,6 @@ const createTeamMap = ( return teamMap; }; -let teamMap: Map<string, TeamSwitcherTypes> | null = null; - /** * Finds the team by label * @@ -78,9 +76,8 @@ export const findTeamByLabel = ( teamList: TeamSwitcherTypes[], teamPreference: string ) => { - if (!teamMap) { - teamMap = createTeamMap(teamList); - } + const teamMap: Map<string, TeamSwitcherTypes> | null = + createTeamMap(teamList); return teamMap.get(teamPreference); };
fix: team switcher issue fix
fix: team switcher issue fix * Merge the parent branch * Update the reducer for both Store and Supply Chain * Update the reducer for both Store and Supply Chain * Update the reducer for both Store and Supply Chain * Update hub * Update hub * Update hub * Update hub * Update roster version * Update hub version * Update hub version * Update hub version * Update hub version * Update hub version * Update hub version * feat(ui): fixed broken tests * feat(ui): import fix * feat(ui): fixed broken tests * feat(ui): import fix * feat(ui): removed snaps * feat(ui): added default team for update modal * feat(ui): removed logs * feat(ui): updateimage for total * feat(ui): update on search * feat(ui): update on search dep * Update the foundation hub version * Update the foundation hub version * Adding translation change * Update the foundation hub version * Update the foundation hub version * Update the foundation hub version * Update the foundation hub version * fix: fixes to Edit Modal UI * Removing name casing from team names * Updating styles * Updating styles * feat(ui): updated logic for callout show * Adding image update * Update hub version * Update hub version * Update hub version * feat(ui): updated logic for search and initial state * feat(ui): adjusted style * Adding team list ccm updates * Adding ccm updates * Adding scroll fix * Update the foundation hub version * feat(ui): disabling fling gesture for edit modal * horizontal scroll reset * Update my team app version * Update code pulse ai config * Adding telemtry * Adding null check Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * Update ShiftFilter.tsx * Adding null check * Update packages/allspark-foundation-hub/src/SupplyChain/Utils/utils.ts Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * Update packages/allspark-foundation-hub/src/Store/Modules/Hub/HubDashboard.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * Update packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * feat: add missing team images * add missing team images * Removing shift mock data * Update packages/allspark-foundation-hub/src/SupplyChain/Hooks/useSupplyChainShifts.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * fixed code errors * feat(ui): updated callback * Update packages/allspark-foundation-hub/src/Store/Modules/Hub/HubDashboard.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * Update packages/allspark-foundation-hub/src/Store/Modules/TeamSwitcher/index.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * fixed lint errors * lint fix * Fixing lint errors * Fixing lint errors * Removing network type and jobProfile * Fixing lint errors * Update packages/allspark-foundation-hub/src/SupplyChain/Utils/utils.ts Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * Reducing characters * Update merge changes * feat(ui): updated logic for store switcher * Adding site change team shift switcher fix * Update packages/allspark-foundation-hub/src/SupplyChain/Components/EditSavedTeams/EditSavedTeams.tsx Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com> * feat(ui)L: lint fixes * Adding telemetry updates * IOS automatic refresh * Update error screen buttons * lint fix * Update hub version * Update site id return data * Update site id return data * selected tab on Roster Page * fix: add more teamIds for Images and fix saved Team Images * feat(ui): updated loader logic for teams on search * Update default images * Remove todo * dummy commit * selected team tab * Adding showSearchInput ccm flag * adding management first * pr comments * lint fix * Adding all saved teams widgets * pr comments fixed * error fix * feat(ui): updated logic for callout * fixed sorting * resolved conflicts * lint fix * update teamId constant * feat(ui): null check guard to shifts * feat(ui): more null guards * Update foundation hub version * Adding default shift logic * Adding null check * Adding default shift logic * feat(ui): selection bug fix * Update foundation hub version for validation widgets function * Expose type for get viewer primary team function * Expose type for get viewer primary team function * Revert "Expose type for get viewer primary team function" This reverts commit d3c53bde4c27b554805ed043c359def877344ae4, reversing changes made to 54a43d41c382b383765d4b6002a14d977f39a37b. * Expose type for get viewer primary team function * Adding demo updates * Update foundation hub version * Adding shiftSwitcher backgroung changes * feat(ui): updated images * Update foundation version * feat(ui): updated logic for allowed widgets * feat(ui): added null check * Update foundation version * Update foundation version * Update the style for shift switcher * teams automatic refresh * Update country code for supply chain query * team switcher test failure fixed * lint fix * fixed pr comments * Update country code for supply chain query * Merge changes * Merge changes * Merge changes * feat(ui): hanlding close modal on core level * feat(ui): fixed broken tests on main * Update graphql yml * Update modal close modal * fix(ui): team switcher issue fix --------- Co-authored-by: Mohammed Ali - m0a0ppv <Mohammed.Ali@walmart.com> Co-authored-by: p0k03fp <Prachi.Kunjir@walmart.com> Co-authored-by: Mishael Kama <vn57guo@email.wal-mart.com> Co-authored-by: Dylan Lane - rlane1 <Russell.Lane@walmart.com> Co-authored-by: Vishnu Mohan Reddy Borra - v0b04vp <Vishnu.Mohan.Reddy.Borra@walmart.com> Co-authored-by: AI Code Assistant <AI-Code-Assistant@email.wal-mart.com>
607863eb481050a7cc1beabe6cc02957b264cd79
--- src/cafeOrders/navigation/ChatNav.tsx @@ -23,10 +23,12 @@ const CafeStack = createStackNavigator(); export const ChatNav = () => { const {top} = useSafeAreaInsets(); - const userId = useSelector(UserSelectors.getUserId); - const chatScreenOptions = useMemo(() => buildChatScreenOptions(top), [top]); + const envConfig = useEnvironment(); + const userId = useSelector(UserSelectors.getUserId); + const clientConfig = useMemo(() => getClientConfig(envConfig), [envConfig]); + const chatScreenOptions = useMemo(() => buildChatScreenOptions(top), [top]); useAppStateEffect((state) => { if (userId) { --- src/cafeOrders/navigation/utils.ts @@ -1,13 +1,32 @@ +import {ParamListBase, RouteProp} from '@react-navigation/native'; import { + CardStyleInterpolators, StackCardInterpolationProps, StackNavigationOptions, TransitionPresets, } from '@react-navigation/stack'; -export function ChatCardStyleInterpolator(props: StackCardInterpolationProps) { +let comingFrom: string | null = null; +const REPLACE_SCREEN = 'chatNav.newMessage'; + +export function ChatCardStyleInterpolator( + this: {route: RouteProp<ParamListBase>}, + props: StackCardInterpolationProps, +) { const {current} = props; const {progress} = current; + // @todo - fix animation for pop replace. not good long term solution + const goingTo = this.route.name; + if (comingFrom === REPLACE_SCREEN && comingFrom !== goingTo) { + comingFrom = goingTo; + + return goingTo === REPLACE_SCREEN + ? CardStyleInterpolators.forFadeFromCenter(props) + : CardStyleInterpolators.forNoAnimation(); + } + comingFrom = goingTo; + const { containerStyle, cardStyle, @@ -38,10 +57,13 @@ const { export const buildChatScreenOptions = ( topOffset: number, -): StackNavigationOptions => { +): ((props: { + route: RouteProp<ParamListBase>; + navigation: any; +}) => StackNavigationOptions) => { const cardOffset = topOffset + 24; - return { + return (props) => ({ presentation: 'transparentModal', headerShown: false, cardOverlayEnabled: true, @@ -55,6 +77,6 @@ export const buildChatScreenOptions = ( gestureDirection, headerStyleInterpolator, transitionSpec, - cardStyleInterpolator: ChatCardStyleInterpolator, - }; + cardStyleInterpolator: ChatCardStyleInterpolator.bind(props), + }); }; --- src/cafeOrders/navigation/ChatNav.tsx @@ -23,10 +23,12 @@ const CafeStack = createStackNavigator(); export const ChatNav = () => { const {top} = useSafeAreaInsets(); - const userId = useSelector(UserSelectors.getUserId); - const chatScreenOptions = useMemo(() => buildChatScreenOptions(top), [top]); + const envConfig = useEnvironment(); + const userId = useSelector(UserSelectors.getUserId); + const clientConfig = useMemo(() => getClientConfig(envConfig), [envConfig]); + const chatScreenOptions = useMemo(() => buildChatScreenOptions(top), [top]); useAppStateEffect((state) => { if (userId) { --- src/cafeOrders/navigation/utils.ts @@ -1,13 +1,32 @@ +import {ParamListBase, RouteProp} from '@react-navigation/native'; import { + CardStyleInterpolators, StackCardInterpolationProps, StackNavigationOptions, TransitionPresets, } from '@react-navigation/stack'; -export function ChatCardStyleInterpolator(props: StackCardInterpolationProps) { +let comingFrom: string | null = null; +const REPLACE_SCREEN = 'chatNav.newMessage'; + +export function ChatCardStyleInterpolator( + this: {route: RouteProp<ParamListBase>}, + props: StackCardInterpolationProps, +) { const {current} = props; const {progress} = current; + // @todo - fix animation for pop replace. not good long term solution + const goingTo = this.route.name; + if (comingFrom === REPLACE_SCREEN && comingFrom !== goingTo) { + comingFrom = goingTo; + + return goingTo === REPLACE_SCREEN + ? CardStyleInterpolators.forFadeFromCenter(props) + : CardStyleInterpolators.forNoAnimation(); + } + comingFrom = goingTo; + const { containerStyle, cardStyle, @@ -38,10 +57,13 @@ const { export const buildChatScreenOptions = ( topOffset: number, -): StackNavigationOptions => { +): ((props: { + route: RouteProp<ParamListBase>; + navigation: any; +}) => StackNavigationOptions) => { const cardOffset = topOffset + 24; - return { + return (props) => ({ presentation: 'transparentModal', headerShown: false, cardOverlayEnabled: true, @@ -55,6 +77,6 @@ export const buildChatScreenOptions = ( gestureDirection, headerStyleInterpolator, transitionSpec, - cardStyleInterpolator: ChatCardStyleInterpolator, - }; + cardStyleInterpolator: ChatCardStyleInterpolator.bind(props), + }); };
fix: temp solution for new message replace animation
fix: temp solution for new message replace animation
b54028643361a1e52de62cfeac7c2f939b5dce6b
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 104 + versionCode 105 versionName "1.0.8" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>104</string> + <string>105</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
93a7f795b729dd53681ed5ea2ccba706386f2417
--- packages/my-walmart-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. +# [1.11.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.10.1...@walmart/my-walmart-hub@1.11.0) (2025-12-30) + +### Features + +- update unique index for the layout loader ([#557](https://gecgithub01.walmart.com/allspark/allspark/issues/557)) ([cfe9dbf](https://gecgithub01.walmart.com/allspark/allspark/commit/cfe9dbfef1c966739d37b91dc2ab78f0693c31be)) + ## [1.10.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.10.0...@walmart/my-walmart-hub@1.10.1) (2025-12-29) **Note:** Version bump only for package @walmart/my-walmart-hub --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.10.1", + "version": "1.11.0", "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/my-walmart-hub@1.11.0
c316a475b1d0fb97c0d94fa3173dedbbccc89a33
--- package.json @@ -143,7 +143,7 @@ "@walmart/returns-mini-app": "4.16.7", "@walmart/rfid-scan-mini-app": "2.10.4", "@walmart/rn-mobile-sdk-pairing": "2.1.8", - "@walmart/rn-receiving-mini-app": "2.4.81", + "@walmart/rn-receiving-mini-app": "2.4.85", "@walmart/roster-mini-app": "2.26.0", "@walmart/schedule-mini-app": "1.13.0", "@walmart/shelfavailability-mini-app": "1.5.44", --- yarn.lock @@ -7372,37 +7372,9 @@ __metadata: languageName: node linkType: hard -"@walmart/atlas-rn-ui-components@npm:1.1.35": - version: 1.1.35 - resolution: "@walmart/atlas-rn-ui-components@npm:1.1.35::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fatlas-rn-ui-components%2F-%2Fatlas-rn-ui-components-1.1.35.tgz" - peerDependencies: - "@livingdesign/tokens": ">=0.63.0" - "@react-native-picker/picker": ">=2.4.0" - "@walmart/gtp-shared-components": ">=2.0.0" - "@walmart/gtp-shared-icons": ">=1.0.7" - i18next: ^23.12.2 - lodash: ">=4.17.15" - moment: ">=2.30.1" - react: ">=18.2.0" - react-i18next: ^15.0.0 - react-keyed-flatten-children: ">=1.3.0" - react-native: ">=0.70.5" - react-native-device-info: ">=10.3.0" - react-native-drop-shadow: ">=0.0.7" - react-native-image-picker: ">=7.1.0" - react-native-modal: ">=13.0.1" - react-native-svg: ">=14.1.0" - react-native-svg-transformer: ">=1.1.0" - bin: - installFonts: scripts/installFonts - runCodemods: scripts/runCodemods - checksum: 10c0/dbeb3e580d732daa024de72efe5ec72de28d6e5d6b7f20736bd143294ad8bb1ad3eb4b970ed1567c2c83df8dfc7bbb9b048bbbd4b2821404da3a11aab5927822 - languageName: node - linkType: hard - -"@walmart/atlas-rn-ui-components@npm:1.1.53": - version: 1.1.53 - resolution: "@walmart/atlas-rn-ui-components@npm:1.1.53::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fatlas-rn-ui-components%2F-%2Fatlas-rn-ui-components-1.1.53.tgz" +"@walmart/atlas-rn-ui-components@npm:1.1.55": + version: 1.1.55 + resolution: "@walmart/atlas-rn-ui-components@npm:1.1.55" peerDependencies: "@walmart/gtp-shared-components": ">=2.2.3-rc.1" i18next: ">=23.12.2" @@ -7412,9 +7384,9 @@ __metadata: react-native-image-picker: ">=4.10.0" react-native-svg: ">=14.0.0" bin: - installFonts: scripts/installFonts - runCodemods: scripts/runCodemods - checksum: 10c0/ef4b983b49c9099d6755c670eda51256281895231056ae80a504d7348737783745829a3896d175572bac2a0b6dfc3892c6e2ca4047a35a0fefbb088e55bf586b + installFonts: ./scripts/installFonts + runCodemods: ./scripts/runCodemods + checksum: 10c0/cb1b7bc5efc02a969db731478fbe9f5216d671bb6c8c279b4e6d798f7d29ecc6b6ab67495752d0902de15de6fc4f3bf7ac28ab093b6bc3c81d9c439cc90f1f45 languageName: node linkType: hard @@ -8105,11 +8077,11 @@ __metadata: languageName: node linkType: hard -"@walmart/loadquality-mini-app@npm:2.0.8": - version: 2.0.8 - resolution: "@walmart/loadquality-mini-app@npm:2.0.8" +"@walmart/loadquality-mini-app@npm:2.0.13": + version: 2.0.13 + resolution: "@walmart/loadquality-mini-app@npm:2.0.13" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.1.35" + "@walmart/atlas-rn-ui-components": "npm:1.1.55" peerDependencies: "@react-native-clipboard/clipboard": ">=1.10.0" "@react-native/metro-config": ">=0.73.0" @@ -8138,7 +8110,7 @@ __metadata: react-native-svg: ">=14.0.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: "*" - checksum: 10c0/d61cf1fe8ac0868ce9edf48a2ba5eb94ad85bb7afae19e6e63f9a6847376b5dc9863d034b3492d6ee2fb3e404c883b2ae38fab804fc4a133b32f50a9ec5866e2 + checksum: 10c0/977c3697e8e2151304185fcf23ffe4f8bc123f3b2cc0df9e506b6c6a67d8c591536075ad4d549eb11c0b904dd39b993b54e2b9a4bee815c30413fee8c9e783d0 languageName: node linkType: hard @@ -8376,7 +8348,7 @@ __metadata: "@walmart/returns-mini-app": "npm:4.16.7" "@walmart/rfid-scan-mini-app": "npm:2.10.4" "@walmart/rn-mobile-sdk-pairing": "npm:2.1.8" - "@walmart/rn-receiving-mini-app": "npm:2.4.81" + "@walmart/rn-receiving-mini-app": "npm:2.4.85" "@walmart/roster-mini-app": "npm:2.26.0" "@walmart/schedule-mini-app": "npm:1.13.0" "@walmart/shelfavailability-mini-app": "npm:1.5.44" @@ -9062,12 +9034,12 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.4.81": - version: 2.4.81 - resolution: "@walmart/rn-receiving-mini-app@npm:2.4.81" +"@walmart/rn-receiving-mini-app@npm:2.4.85": + version: 2.4.85 + resolution: "@walmart/rn-receiving-mini-app@npm:2.4.85" dependencies: - "@walmart/atlas-rn-ui-components": "npm:1.1.53" - "@walmart/loadquality-mini-app": "npm:2.0.8" + "@walmart/atlas-rn-ui-components": "npm:1.1.55" + "@walmart/loadquality-mini-app": "npm:2.0.13" peerDependencies: "@react-native-clipboard/clipboard": ">=1.14.0" "@react-native/metro-config": ">=0.73.0" @@ -9093,7 +9065,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: "*" - checksum: 10c0/b4e8600d9195b0f14aacfeb3d8a471f76d727f8516041881a11f030f1fbb55f7fc93a31fa98c998b9caca50e29b0152e3ec9cc98aee36f3a26140452a9e6ee9b + checksum: 10c0/e4f5e8dc149e4730030942cb9d9e7bfa0a9df239780711f280d0c4caa2f1631b5d6f683fb52d42e716b847a757ca9f495f5dc184fc945c0f062f1f35f54614b8 languageName: node linkType: hard
fix(bug) - Unified Receiving update for bug fix - Drop 30 - part 1 (#4129)
fix(bug) - Unified Receiving update for bug fix - Drop 30 - part 1 (#4129) * receiving fix * receiving fix * Fix(UI): fix the image compression and ADA bugs : IP-11968 * updating version of receiving * updating version of receiving * Bug fix for keyboard for LQA - receiving version upgrade --------- Co-authored-by: Peeyush Jarmal - pjarma1 <PJarmal@walmartlabs.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com>
5f6e68a51394e2740ff7d32c099016222d5614da
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -737,11 +737,7 @@ ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "$(inherited)"; OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-Wl", - "-ld_classic", - ); + OTHER_LDFLAGS = "$(inherited)"; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; }; @@ -805,11 +801,7 @@ MTL_ENABLE_DEBUG_INFO = NO; OTHER_CFLAGS = "$(inherited)"; OTHER_CPLUSPLUSFLAGS = "$(inherited)"; - OTHER_LDFLAGS = ( - "$(inherited)", - "-Wl", - "-ld_classic", - ); + OTHER_LDFLAGS = "$(inherited)"; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES;
updated xcode settings
updated xcode settings
35db36fae09a8c30c15f2110312bfe0261792ad6
--- package-lock.json @@ -52,7 +52,7 @@ "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.5.1", "@walmart/facilities-management-miniapp": "0.6.67", - "@walmart/feedback-all-spark-miniapp": "0.9.41", + "@walmart/feedback-all-spark-miniapp": "0.9.42", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16", @@ -7277,9 +7277,9 @@ } }, "node_modules/@walmart/feedback-all-spark-miniapp": { - "version": "0.9.41", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.41.tgz", - "integrity": "sha512-yDhVeTDHJYx+S+ae+uwkVdErU76dyM8YkJUAzcVieVx9jtyGjbMG0oNcXBFU/8+uZZNDYpbUBlYmKCgVjG67Eg==", + "version": "0.9.42", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.42.tgz", + "integrity": "sha512-gBf6oiJbBV/aL7ndG9cudz7gk0udpcSjw6Dku2ralmoGnwQ1ozMW/hWz3YzgsOL5yJ+lv1nG4/6JukzO7TjLzw==", "peerDependencies": { "@react-native-async-storage/async-storage": "^1.19.0", "@react-native-community/datetimepicker": "^6.1.3", @@ -30483,9 +30483,9 @@ "integrity": "sha512-vAn11SgL6thiZdZLdAe1EvJ+gYGSDJa2HBrLPXlTFQgUHtf2+fnnj4SG9bX8mg9/Ax3Hg7IQaiKle3GsdgN2ww==" }, "@walmart/feedback-all-spark-miniapp": { - "version": "0.9.41", - "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.41.tgz", - "integrity": "sha512-yDhVeTDHJYx+S+ae+uwkVdErU76dyM8YkJUAzcVieVx9jtyGjbMG0oNcXBFU/8+uZZNDYpbUBlYmKCgVjG67Eg==" + "version": "0.9.42", + "resolved": "https://npme.walmart.com/@walmart/feedback-all-spark-miniapp/-/feedback-all-spark-miniapp-0.9.42.tgz", + "integrity": "sha512-gBf6oiJbBV/aL7ndG9cudz7gk0udpcSjw6Dku2ralmoGnwQ1ozMW/hWz3YzgsOL5yJ+lv1nG4/6JukzO7TjLzw==" }, "@walmart/financial-wellbeing-feature-app": { "version": "1.10.4", --- package.json @@ -93,7 +93,7 @@ "@walmart/emergency-mini-app": "1.25.1", "@walmart/exception-mini-app": "1.5.1", "@walmart/facilities-management-miniapp": "0.6.67", - "@walmart/feedback-all-spark-miniapp": "0.9.41", + "@walmart/feedback-all-spark-miniapp": "0.9.42", "@walmart/financial-wellbeing-feature-app": "1.10.4", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.0.16",
Feedback mini app version bump
Feedback mini app version bump
2e638db4468840d411c0d498a9b9e70909fe2ba2
--- packages/me-at-walmart-container/src/services/user/types.ts @@ -52,3 +52,7 @@ export type TokenData = { win: string; exp: number; }; + +export type MeAtWalmartUserFields = { + meAtWalmartId?: string; +};
feat: extend allspark global types for me at typings
feat: extend allspark global types for me at typings
d343079e3b1495933b10022a2c8974ba64b2b280
--- src/components/TeamList.tsx @@ -453,7 +453,9 @@ export const TeamChatCard = (props: { action(team) { analytics('team_messagebtn', { teamName: team?.teamName, - teamID: team.teamId, + teamID: team?.teamId, + workgroupID: team?.workgroupId, + workgroup: team?.workgroup, }); startTeamText(team.teamId, team?.teamName || team.teamId); },
updating team msg btn event
updating team msg btn event
91c5edaac8e227db081a59c8e4ce7cd6ca47be3a
--- packages/allspark-foundation-hub/src/HubFeature/Hooks/useUserPreferences.ts @@ -35,7 +35,6 @@ export const useUserPreferences = () => { const storeId: string | undefined = useSelector(UserSelectors.getWorkingSite); const win = useSelector(UserSelectors.getWin); const [teamData, setTeamData] = useState<Array<any>>([]); - const [userPrefError, setUserPrefError] = useState<boolean>(false); const { loading: fetchLoading, networkStatus, @@ -69,7 +68,6 @@ export const useUserPreferences = () => { }); }, onError: (err: any) => { - setUserPrefError(true); //Todo: We need to consider scenario of getting the error as well as data logger.error('useGetAssociatePreferencesQuery error', { message: `${err}`, }); @@ -82,7 +80,6 @@ export const useUserPreferences = () => { return { teamData: teamData.length ? teamData : [], data, - userPrefError, ...rest, loading, }; --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -17,7 +17,7 @@ import { ManagerExperienceSelectors } from '../../../Redux/selectors'; import { FEATURE_ID } from '../../../constant'; import { TeamSwitcher } from '../../TeamSwitcher'; import styles from '../styles'; -import { Alert, Body } from '@walmart/gtp-shared-components'; +import { Body } from '@walmart/gtp-shared-components'; import { AllsparkComponentContainers } from '@walmart/allspark-foundation/Components'; import { HubDashboardProps } from './types'; import { ManagerExperienceCreators } from '../../../Redux'; @@ -38,11 +38,7 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const [allowedWidgetsList, setAllowedWidgetsList] = useState<LayoutConfig>( [] ); - const { - data, - userPrefError, - refetch: refetchUserPrefs, - } = useUserPreferences(); + const { data } = useUserPreferences(); const { t } = useAllsparkTranslation(FEATURE_ID); const dispatch = useDispatch(); @@ -378,21 +374,6 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { } refreshing={state.refreshing} /> - {userPrefError && ( - <View style={styles.warningContainer}> - <Alert - variant='warning' - children={t('hubContainer.selectedTeamsError.message')} - actionButtonProps={{ - children: t('hubContainer.selectedTeamsError.actionText'), - onPress: () => { - refetchUserPrefs(); - }, - }} - /> - </View> - )} - <AllsparkComponentContainers.Layout container={name} layout={allowedWidgetsList} --- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/styles.ts @@ -22,6 +22,7 @@ export default StyleSheet.create({ paddingHorizontal: 16, paddingTop: 16, backgroundColor: colors.white, + top: 16, }, cardStyle: { marginBottom: 16, --- packages/allspark-foundation-hub/src/HubFeature/Hub/TeamSwitcher/index.tsx @@ -16,6 +16,7 @@ import { getDefaultTeamsForUserType, sorter, } from '../Container/utils'; +import { Alert } from '@walmart/gtp-shared-components'; import { UserSelectors, Team } from '@walmart/allspark-foundation/User'; import { EMP_TYPE_HOURLY, @@ -31,6 +32,9 @@ import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { useAllsparkImage } from '@walmart/allspark-foundation/Components/context'; import { Images } from '../../Images/images'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; +import alertStyles from '../Container/styles'; +import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; +import { FEATURE_ID } from '../../constant'; export * from './types'; @@ -38,7 +42,8 @@ export const TeamSwitcher = ({ onTeamChange, refreshing, }: TeamSwitcherProps) => { - const { teamData, loading: isLoading, refetch } = useUserPreferences(); + const { teamData, error, loading: isLoading, refetch } = useUserPreferences(); + const { t } = useAllsparkTranslation(FEATURE_ID); const logger = LoggerService.getContainerInstance(); const userPrefTeams = teamData.length > 0 ? teamData : undefined; const userSelectedTeamLabel = useSelector( @@ -244,20 +249,36 @@ export const TeamSwitcher = ({ ); return ( - <View style={styles.container}> - <FlatList - style={styles.flatListContainer} - testID='team-switcher-list' - data={teamSwitcherList} - renderItem={renderTeamItem} - keyExtractor={keyExtractor} - horizontal={true} - showsHorizontalScrollIndicator={false} - ListEmptyComponent={renderEmptyList} - ListFooterComponent={ - isOffSite ? <></> : <AddEditButton onPress={handleAddEditPress} /> - } - /> - </View> + <> + <View style={styles.container}> + <FlatList + style={styles.flatListContainer} + testID='team-switcher-list' + data={teamSwitcherList} + renderItem={renderTeamItem} + keyExtractor={keyExtractor} + horizontal={true} + showsHorizontalScrollIndicator={false} + ListEmptyComponent={renderEmptyList} + ListFooterComponent={ + isOffSite ? <></> : <AddEditButton onPress={handleAddEditPress} /> + } + /> + </View> + {error && ( + <View style={alertStyles.warningContainer}> + <Alert + variant='warning' + children={t('hubContainer.selectedTeamsError.message')} + actionButtonProps={{ + children: t('hubContainer.selectedTeamsError.actionText'), + onPress: () => { + refetch(); + }, + }} + /> + </View> + )} + </> ); };
Adding team switcher alert
Adding team switcher alert
f6693b82eac9051d19eb4aceaf5426f906dc1aa4
--- src/components/TeamList.tsx @@ -113,7 +113,7 @@ const TeamItem = (props: { } }; - const clockedInCount = teamRoster?.filter(associateIsClockedIn).length; + const clockedInCount = teamRoster?.filter(associateIsClockedIn)?.length ?? 0; return ( <ListItem --- src/components/TeamList.tsx @@ -113,7 +113,7 @@ const TeamItem = (props: { } }; - const clockedInCount = teamRoster?.filter(associateIsClockedIn).length; + const clockedInCount = teamRoster?.filter(associateIsClockedIn)?.length ?? 0; return ( <ListItem
more defensive
more defensive
22d55bca5bea39f0036315f0411085b08c3462e4
--- packages/allspark-cli/package.json @@ -30,8 +30,8 @@ "link:cli": "npm run build && chmod +x dist/cli-tool/index.js && npm link", "prepublishOnly": "npm run build && chmod +x dist/cli-tool/index.js", "prepare": "npm run build && chmod +x dist/cli-tool/index.js", - "copy-deps-map": "cp -R $(pwd)/src/cli-tool/scripts/dependencies-map $(pwd)/dist/cli-tool/scripts/dependencies-map", - "copy-lint-rules": "cp -R $(pwd)/src/cli-tool/scripts/lint-check/eslint-rules $(pwd)/dist/cli-tool/scripts/lint-check/eslint-rules && cp $(pwd)/src/cli-tool/scripts/lint-check/.eslintrc-mini-app.json $(pwd)/dist/cli-tool/scripts/lint-check/.eslintrc-mini-app.json" + "copy-deps-map": "mkdir -p $(pwd)/dist/cli-tool/scripts && cp -R $(pwd)/src/cli-tool/scripts/dependencies-map $(pwd)/dist/cli-tool/scripts/dependencies-map", + "copy-lint-rules": "mkdir -p $(pwd)/dist/cli-tool/scripts && cp -R $(pwd)/src/cli-tool/scripts/lint-check/eslint-rules $(pwd)/dist/cli-tool/scripts/lint-check/eslint-rules && cp $(pwd)/src/cli-tool/scripts/lint-check/.eslintrc-mini-app.json $(pwd)/dist/cli-tool/scripts/lint-check/.eslintrc-mini-app.json" }, "dependencies": { "@clack/prompts": "^0.7.0",
fix(cli): package publish issue (#407)
fix(cli): package publish issue (#407)
a340c31d6b737fce0d27ff5f839e1211c3ff67f1
--- __tests__/managerExperience/components/FilterChipHeader.test.tsx @@ -5,7 +5,7 @@ import {FilterChipHeader} from '../../../src/managerExperience/components/Filter describe('FilterChipHeader Component', () => { const props = { headerText: 'Test Label', - scheduledAssociates: 42, + numberOfAssociates: 42, }; it('renders correctly with given label and scheduled associates', () => { @@ -13,10 +13,10 @@ describe('FilterChipHeader Component', () => { //Check for the text elements by testID const headerTextElement = getByTestId('headerText'); - const scheduledAssociatesElement = getByTestId('scheduledAssociates'); + const numberOfAssociatesElement = getByTestId('numberOfAssociates'); expect(headerTextElement).toBeTruthy(); - expect(scheduledAssociatesElement).toBeTruthy(); + expect(numberOfAssociatesElement).toBeTruthy(); expect(toJSON()).toMatchSnapshot(); }); @@ -24,27 +24,27 @@ describe('FilterChipHeader Component', () => { const {getByLabelText} = render(<FilterChipHeader {...props} />); const headerTextElement = getByLabelText(props.headerText); - const scheduledAssociatesElement = getByLabelText( - props.scheduledAssociates.toString(), + const numberOfAssociatesElement = getByLabelText( + props.numberOfAssociates.toString(), ); expect(headerTextElement).toBeTruthy(); - expect(scheduledAssociatesElement).toBeTruthy(); + expect(numberOfAssociatesElement).toBeTruthy(); }); it('renders correctly with different props', () => { const newProps = { headerText: 'New Label', - scheduledAssociates: 100, + numberOfAssociates: 100, }; const {getByTestId, toJSON} = render(<FilterChipHeader {...newProps} />); //Check for the text elements by testID const headerTextElement = getByTestId('headerText'); - const scheduledAssociatesElement = getByTestId('scheduledAssociates'); + const numberOfAssociatesElement = getByTestId('numberOfAssociates'); expect(headerTextElement).toBeTruthy(); - expect(scheduledAssociatesElement).toBeTruthy(); + expect(numberOfAssociatesElement).toBeTruthy(); expect(toJSON()).toMatchSnapshot(); }); }); --- __tests__/managerExperience/components/__snapshots__/FilterChipHeader.test.tsx.snap @@ -34,7 +34,7 @@ exports[`FilterChipHeader Component renders correctly with different props 1`] = "lineHeight": 28, } } - testID="scheduledAssociates" + testID="numberOfAssociates" > ( 100 @@ -77,7 +77,7 @@ exports[`FilterChipHeader Component renders correctly with given label and sched "lineHeight": 28, } } - testID="scheduledAssociates" + testID="numberOfAssociates" > ( 42 --- src/managerExperience/components/FilterChipHeader/FilterChipHeader.tsx @@ -5,7 +5,7 @@ import {FilterChipHeaderStyles as styles} from './style'; export const FilterChipHeader = ({ headerText, - scheduledAssociates, + numberOfAssociates, }: FilterChipHeaderProps) => { return ( <View style={styles.container}> @@ -16,10 +16,10 @@ export const FilterChipHeader = ({ {headerText} </Text> <Text - style={styles.scheduledAssociates} - accessibilityLabel={`${scheduledAssociates}`} - testID='scheduledAssociates'> - ({scheduledAssociates.toString()}) + style={styles.numberOfAssociates} + accessibilityLabel={`${numberOfAssociates}`} + testID='numberOfAssociates'> + ({numberOfAssociates.toString()}) </Text> </View> ); --- src/managerExperience/components/FilterChipHeader/style.ts @@ -13,7 +13,7 @@ export const FilterChipHeaderStyles = StyleSheet.create({ fontFamily: 'Bogle-Bold', marginRight: 6, }, - scheduledAssociates: { + numberOfAssociates: { color: colors.gray['160'], fontSize: 18, lineHeight: 28, --- src/managerExperience/components/FilterChipHeader/types.ts @@ -1,4 +1,4 @@ export interface FilterChipHeaderProps { headerText: string; - scheduledAssociates: number; + numberOfAssociates: number; }
feat: rename props to numberOfAssociates
feat: rename props to numberOfAssociates
a8301bca02f763b84db9929e942b810ba609290f
--- src/utils/user.ts @@ -33,10 +33,10 @@ export const associateIsOnMeal = (associate?: Associate) => export const associateIsOnPPTO = (associate?: Associate) => associate?.punch?.clockStatus === '4'; -export const associateDisplayName = (associate: Associate) => { +export const associateDisplayName = (associate?: Associate) => { return ( - (associate.preferredFirstName || associate.firstName) + + (associate?.preferredFirstName || associate?.firstName || '') + ' ' + - (associate.preferredLastName || associate.lastName) + (associate?.preferredLastName || associate?.lastName || '') ); }; --- src/utils/user.ts @@ -33,10 +33,10 @@ export const associateIsOnMeal = (associate?: Associate) => export const associateIsOnPPTO = (associate?: Associate) => associate?.punch?.clockStatus === '4'; -export const associateDisplayName = (associate: Associate) => { +export const associateDisplayName = (associate?: Associate) => { return ( - (associate.preferredFirstName || associate.firstName) + + (associate?.preferredFirstName || associate?.firstName || '') + ' ' + - (associate.preferredLastName || associate.lastName) + (associate?.preferredLastName || associate?.lastName || '') ); };
protect against falsy values
protect against falsy values
643c4e093ed4c051edecf193353c737a3e7eed1a
--- packages/allspark-foundation/src/Feature/FeatureCreators.tsx @@ -9,6 +9,9 @@ import { IAllsparkFeatureModal, IAllsparkFeatureListeners, IAllsparkTranslations, + IAllsparkFeatureRedux, + IAllsparkFeatureScreens, + IAllsparkFeatureModals, } from './types'; /** @@ -68,6 +71,17 @@ export const AllsparkFeatureSagas = (sagas: Effect<any, any>[]) => { }; }; +/** + * Creates a redux object ready to be used with `AllsparkFeature.createModule()` + * @param redux The redux config for that feature + * @returns The redux config to be used when creating an AllsparkFeatureModule. + * @example + * const MyFeatureRedux = AllsparkFeatureRedux({ reducer: {}, saga: {} }); + */ +export const AllsparkFeatureRedux = <R extends IAllsparkFeatureRedux>( + redux: R +) => redux; + /** * Creates a feature screen object ready to be used with `AllsparkFeature.createModule()` * @param component - The screen component. @@ -87,6 +101,17 @@ export const AllsparkFeatureScreen = < getComponent: () => component, }); +/** + * Creates a screens object ready to be used with `AllsparkFeature.createModule()` + * @param redux The screens config for that feature + * @returns The screens object to be used when creating an AllsparkFeatureModule. + * @example + * const MyFeatureRedux = AllsparkFeatureRedux({ screen1: {...}, screen2: {...} }); + */ +export const AllsparkFeatureScreens = <S extends IAllsparkFeatureScreens>( + screens: S +) => screens; + /** * Creates an feature modal object ready to be used with `AllsparkFeature.createModule()` * @param component - The component to be used as the modal. @@ -106,6 +131,17 @@ export const AllsparkFeatureModal = < modal: component, }); +/** + * Creates a modals object ready to be used with `AllsparkFeature.createModule()` + * @param redux The modals config for that feature + * @returns The modals object to be used when creating an AllsparkFeatureModule. + * @example + * const MyFeatureRedux = AllsparkFeatureRedux({ screen1: {...}, screen2: {...} }); + */ +export const AllsparkFeatureModals = <M extends IAllsparkFeatureModals>( + modals: M +) => modals; + /** * Creates a translations object ready to be used with `AllsparkFeature.createModule()` * @param translations - The translations object to return. --- packages/allspark-foundation/src/Feature/types.ts @@ -7,8 +7,8 @@ import { AllsparkModalConfig, AllsparkScreenConfig } from '../Navigation/types'; import { LifecycleEventListeners } from '../Container/events'; export type IAllsparkFeatureListeners = { - lifecycle: Partial<LifecycleEventListeners>; - notification: Partial<NotificationEventListeners>; + lifecycle?: Partial<LifecycleEventListeners>; + notification?: Partial<NotificationEventListeners>; }; /**
feat: add feature creators for screens, modals, and redux.
feat: add feature creators for screens, modals, and redux.
6ff0c39cc3bf6fab35fea9ac9abeb700f9bfecd6
--- package.json @@ -165,7 +165,7 @@ "@walmart/rfid-scan-mini-app": "2.15.6", "@walmart/rn-mobile-sdk-digital-locks": "1.0.9", "@walmart/rn-mobile-sdk-pairing": "3.0.3", - "@walmart/rn-receiving-mini-app": "2.8.43", + "@walmart/rn-receiving-mini-app": "2.8.44", "@walmart/roster-mini-app": "3.13.0", "@walmart/schedule-mini-app": "5.4.4", "@walmart/shelfavailability-mini-app": "1.7.2", --- yarn.lock @@ -8927,7 +8927,7 @@ __metadata: "@walmart/rfid-scan-mini-app": "npm:2.15.6" "@walmart/rn-mobile-sdk-digital-locks": "npm:1.0.9" "@walmart/rn-mobile-sdk-pairing": "npm:3.0.3" - "@walmart/rn-receiving-mini-app": "npm:2.8.43" + "@walmart/rn-receiving-mini-app": "npm:2.8.44" "@walmart/roster-mini-app": "npm:3.13.0" "@walmart/schedule-mini-app": "npm:5.4.4" "@walmart/shelfavailability-mini-app": "npm:1.7.2" @@ -9702,9 +9702,9 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.8.43": - version: 2.8.43 - resolution: "@walmart/rn-receiving-mini-app@npm:2.8.43::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Frn-receiving-mini-app%2F-%2F%40walmart%2Frn-receiving-mini-app-2.8.43.tgz" +"@walmart/rn-receiving-mini-app@npm:2.8.44": + version: 2.8.44 + resolution: "@walmart/rn-receiving-mini-app@npm:2.8.44::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Frn-receiving-mini-app%2F-%2F%40walmart%2Frn-receiving-mini-app-2.8.44.tgz" dependencies: "@walmart/atlas-rn-ui-components": "npm:1.5.11" "@walmart/loadquality-mini-app": "npm:2.2.16" @@ -9733,7 +9733,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.3.0" react-native-vision-camera: ">=3.7.1" - checksum: 10c0/454416e3187a0b83a272482057e807210df1297c73769e7e6c775fa61670f75ee43d302ff47da9effbc3a1cb8f62815569650c2fec9f32899b91869dc2120c21 + checksum: 10c0/e2e8164f88ec97875da98c30f758dc9195db2e09efd9531881ece99cfd371441e3d9f9c3c54d2eacc65788d31682473cec002f9df11472f92f6097d96b652f98 languageName: node linkType: hard
fix(receiving): drop 35.1 bug revert hotfix (#5234)
fix(receiving): drop 35.1 bug revert hotfix (#5234) Co-authored-by: Shubhang Shah - s0s0zug <Shubhang.Shah@walmart.com> Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com>
9302245f8f130b2ac308a1fa3e877bffdc1ec3c3
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -36,6 +36,30 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` component="SettingsMiniApp" name="Settings" /> + <Screen + initialParams={ + Object { + "navigateToTaskIt": true, + } + } + name="fixIt.alarms" + /> + <Screen + initialParams={ + Object { + "navigateToTaskIt": true, + } + } + name="fixIt.alarms.active" + /> + <Screen + initialParams={ + Object { + "navigateToTaskIt": true, + } + } + name="fixIt.alarms.history" + /> <Screen component="HealthSurveyMiniApp" name="HealthSurveyNav" @@ -195,6 +219,30 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] component="SettingsMiniApp" name="Settings" /> + <Screen + initialParams={ + Object { + "navigateToTaskIt": true, + } + } + name="fixIt.alarms" + /> + <Screen + initialParams={ + Object { + "navigateToTaskIt": true, + } + } + name="fixIt.alarms.active" + /> + <Screen + initialParams={ + Object { + "navigateToTaskIt": true, + } + } + name="fixIt.alarms.history" + /> <Screen component="HealthSurveyMiniApp" name="HealthSurveyNav"
Updated snapshots
Updated snapshots
4eb398208df8b7056614dec9bd850ab56c4b0e39
--- .yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch @@ -35,3 +35,15 @@ diff --git a/dist/containers/ClockOutScreen/index.js b/dist/containers/ClockOutS }, [dispatch, navigation, navigationOrigin]); // TO DO: FIGURE OUT BETTER WAY TO DETERMINE IF THERE ARE CHANGES TO THE EXISTING PUNCHES const isExistingPunchEdit = () => { +diff --git a/dist/data/redux/Ccm/ccmDefaults/defaults.js b/dist/data/redux/Ccm/ccmDefaults/defaults.js +--- a/dist/data/redux/Ccm/ccmDefaults/defaults.js ++++ b/dist/data/redux/Ccm/ccmDefaults/defaults.js +@@ -131,7 +131,7 @@ exports.timeClockDataDefaults = { + calendarNavBackMonths: 6, + nonPrimaryButtonVariant: 'tertiary', + isPeopleApiEnabled: false, +- isClockStatusUpdateEnabled: false, ++ isClockStatusUpdateEnabled: true, + isPunchReceiverEnabled: false, + isFetchLocationEnabled: true, + isShowNonBYODMessageVisible: false, --- yarn.lock @@ -10091,7 +10091,7 @@ __metadata: "@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.13#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch": version: 3.19.13 - resolution: "@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.13%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.13.tgz#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch::version=3.19.13&hash=d90449" + resolution: "@walmart/time-clock-mini-app@patch:@walmart/time-clock-mini-app@npm%3A3.19.13%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.13.tgz#~/.yarn/patches/@walmart-time-clock-mini-app-npm-3.19.13-d3039974f6.patch::version=3.19.13&hash=fcd624" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -10137,7 +10137,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/ead6c578da89e85796f4051e86b413c52a27f5fc0007692f45011e2ac2abd21ae9aa3a148fea89da4c74324d2f49c30dfe3284c11077b0bd6807c0d52bb466d2 + checksum: 10c0/c7c7a7697dca360d9153e978d429b510c58bbac67ab7ebe01885d93f0422e240d0814494b3f09947e56a884ec9658ce93b598fa16f2a94428bdd4ad8c5b05373 languageName: node linkType: hard
fix(gta): GTA-168225 clock status fix develop (#5348)
fix(gta): GTA-168225 clock status fix develop (#5348) Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>
fe3adcd3aa64c2d36072c41b842f77c8e9c26d92
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/style.ts @@ -5,8 +5,6 @@ export const TeamSearchInputStyles = StyleSheet.create({ container: { flexDirection: 'row', alignItems: 'center', - marginRight: 16, - marginLeft: 16, borderWidth: 1, borderRadius: 30, borderColor: colors.separator['100'],
Updating TeamSearchInput styles
Updating TeamSearchInput styles
6b211bf0968f7bd5982aa88fc6ad1b5bcb670ff1
--- sonar-project.properties @@ -5,7 +5,7 @@ sonar.host.url=http://sonar.looper.prod.walmartlabs.com sonar.sources=packages/allspark-authentication/src, packages/allspark-foundation/src, packages/allspark-utils/src sonar.tests=packages/allspark-authentication/__tests__, packages/allspark-foundation/__tests__, packages/allspark-utils/__tests__ -sonar.exclusions=packages/allspark-authentication/src/Authentication, packages/allspark-foundation/src/cli, packages/allspark-foundation/src/Container, packages/allspark-foundation/src/Core, packages/allspark-foundation/src/Feature, packages/allspark-foundation/src/GraphQL, packages/allspark-foundation/src/HTTP, packages/allspark-foundation/src/Network, packages/allspark-foundation/src/Telemetry +sonar.exclusions=packages/allspark-authentication/src/Authentication.ts, packages/allspark-foundation/src/cli, packages/allspark-foundation/src/Container, packages/allspark-foundation/src/Core, packages/allspark-foundation/src/Feature, packages/allspark-foundation/src/GraphQL, packages/allspark-foundation/src/HTTP, packages/allspark-foundation/src/Network, packages/allspark-foundation/src/Telemetry sonar.sourceEncoding=UTF-8 sonar.typescript.lcov.reportPaths=coverage/lcov.info sonar.testExecutionReportPaths=test-report.xml \ No newline at end of file
chore: edit sonar project file
chore: edit sonar project file
ad5a741cc491f11e9a6d139474b647ed3af2791e
--- src/screens/ChannelsScreen.tsx @@ -0,0 +1,10 @@ +import React from 'react'; +import { View, Text } from 'react-native'; + +export const RosterScreen = () => { + return ( + <View> + <Text>Placeholder For Channels Screen Integration</Text> + </View> + ) +}; --- src/screens/TabsScreen.tsx @@ -5,8 +5,6 @@ import {LivingDesignTabBar} from '../navigation/components'; import {TextingNavParamsMap} from '../navigation/types'; import {UserHeader} from '../containers/UserHeader'; import {RosterScreen} from './RosterScreen'; -import {ChannelsScreen} from './ChannelsScreen'; -import {UnreadBadge} from '../channels/components'; import {useTranslation} from 'react-i18next'; import {TEXTING_I18N_NAMESPACE} from '../translations'; import {WarningBanner} from '../containers/WarningBanner'; @@ -34,16 +32,16 @@ export const TabsScreen: React.FC<TabsScreenProps> = () => { title: t('tabsScreen.rosterTab')!, lazy: true, }} - component={RosterScreen} + component={RosterScreen} //TODO: Import from roster mini app /> <MainTab.Screen name={'messages'} options={{ title: t('tabsScreen.messagesTab')!, lazy: true, - tabBarBadge: UnreadBadge, + //tabBarBadge: UnreadBadge, //TODO: Import from texting app }} - component={ChannelsScreen} + component={ChannelsScreen} //TODO: Import from texting mini app /> </MainTab.Navigator> </>
updating screens
updating screens
c643ddaf494cf1c8cd4cb22d551785710684c67d
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/TeamShiftSwitcher/TeamShiftSwitcher.tsx @@ -84,7 +84,7 @@ export const TeamShiftSwitcher = ({ } }; - return isLoading ? ( + return isLoading || !teamAndShiftText ? ( <TeamSwitcherLoading /> ) : ( <TouchableOpacity @@ -109,7 +109,7 @@ export const TeamShiftSwitcher = ({ accessibilityLabel={accessibilityLabel} testID='team-and-shift-text' > - {fullTeamAndShiftText || teamAndShiftText} + {teamAndShiftText} </Body> {allSavedTeams && ( <Body --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Hub/SiteHubDashboard.tsx @@ -122,7 +122,8 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { teamIds?.forEach((teamId) => { const team = allSiteTeams?.find( - (team: { teamId: string }) => team?.teamId === teamId.toString() + (currentTeam: { teamId: string }) => + currentTeam?.teamId === teamId.toString() ); if (team) { matchingTeamNames.push(team.teamName); @@ -132,7 +133,7 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { return matchingTeamNames; }; - const getTeamName = useMemo(() => { + const teamIds = useMemo(() => { if (selectedTeamIds?.length) { return selectedTeamIds; } @@ -142,7 +143,7 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { return [TOTAL_SITE_TEAM_ID]; }, [selectedTeamIds, teamPreferenceData]); - const allTeamData = getTeamNameById(getTeamName); + const allTeamData = getTeamNameById(teamIds); // After changing store, reload all the hub widgets with new store data. useEffect(() => { checkPopoverStatus(); @@ -266,9 +267,13 @@ export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => { <View style={styles.switcherContainer}> <TeamShiftSwitcher isLoading={isLoading} - allSavedTeams={allTeamData} + allSavedTeams={allTeamData.length > 1 ? allTeamData : undefined} numTotalShifts={DEFAULT_SHIFTS_COUNT} - teamName={allTeamData[0]} + teamName={ + allTeamData.length > 1 + ? t('teamShiftSwitcher.allSavedTeams') + : allTeamData[0] + } teamId={selectedTeamIds?.[0]} selectedShifts={shiftData} onPress={() => { --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts @@ -10,6 +10,7 @@ export const enUS = { savedTeamsAre: 'Saved teams are', viewDifferentTeam: 'View a different team or shift', and: 'and', + allSavedTeams: 'All saved teams', }, editSavedTeams: { title: 'My Saved Teams', @@ -87,6 +88,7 @@ export const esMX: typeof enUS = { savedTeamsAre: 'Los equipos guardados son', viewDifferentTeam: 'Ver un equipo o turno diferente', and: 'y', + allSavedTeams: 'Todos los equipos guardados', }, editSavedTeams: { title: 'Mis equipos guardados',
feat: added all saved teams text in team switcher
feat: added all saved teams text in team switcher
c00357d1131541e9ab91d26fa490d4d8c9ac66f3
--- scripts/mini-app-scan/github-comment-helper.ts @@ -4,6 +4,7 @@ */ // --- GitHub Enterprise Configuration --- // +import {execSync} from 'child_process'; const GITHUB_ENTERPRISE_URL = 'https://gecgithub01.walmart.com'; const GITHUB_API_BASE_URL = `${GITHUB_ENTERPRISE_URL}/api/v3`; @@ -43,7 +44,6 @@ function getErrorMessage(error: unknown): string { // --- Extract PR number from branch name --- // export function extractPRNumberFromBranch(): string | null { try { - const {execSync} = require('child_process'); const currentBranch = execSync('git rev-parse --abbrev-ref HEAD', {encoding: 'utf8'}).trim(); const match = currentBranch.match(/pr\/(\d+)/); return match ? match[1] : null; @@ -55,7 +55,6 @@ export function extractPRNumberFromBranch(): string | null { // --- Get GitHub repository information --- // export function getGitHubRepoInfo(): GitHubRepoInfo | null { try { - const {execSync} = require('child_process'); // Try to get from environment first const githubRepository = process.env.GITHUB_REPOSITORY; --- scripts/mini-app-scan/package-deprecation-check.ts @@ -126,17 +126,11 @@ const deprecatedHitsInPkg: LibraryEntry[] = []; const scheduledHitsInPkg: LibraryEntry[] = []; allLibraries.forEach(lib => { - if (allDepNames.includes(lib.legacyLibrary)) { - if (lib.enforcementDate) { - if (isDeprecated(lib.enforcementDate)) { - deprecatedHitsInPkg.push(lib); - } else { - scheduledHitsInPkg.push(lib); - } - } else { - // No deprecation date provided, treat as deprecated - deprecatedHitsInPkg.push(lib); - } + if (!allDepNames.includes(lib.legacyLibrary)) return; + if (!lib.enforcementDate || isDeprecated(lib.enforcementDate)) { + deprecatedHitsInPkg.push(lib); + } else { + scheduledHitsInPkg.push(lib); } });
fix(package-dep): address comments
fix(package-dep): address comments
3ad403383620adb35252cfec22b9fdcc396d42d7
--- core/src/manifest.ts @@ -47,8 +47,6 @@ export const getCandiateFeatures = (): AllsparkFeatureModule[] => { require('@walmart/welcomeme-mini-app').default, require('@walmart/payrollsolution_miniapp').default, require('@walmart/ask-sam-mini-app').default, - // Add ask same once on foundation - // Add payment selection onc on foundation ]; return Features;
removed comments
removed comments
cf4afb0c80164b35dbd2b3c1583cc571d7818a25
--- packages/allspark-foundation-hub/__tests__/__mocks__/data/apolloMocks.ts @@ -231,7 +231,7 @@ export const apolloMocks = [ mewClockedOutCount: 30, site: '100', teamId: '1000282', - teamName: 'Apparel', + teamName: 'Fashion', workgroup: 'GM', workgroupId: '1000216', }, --- packages/allspark-foundation-hub/__tests__/__mocks__/data/getTeamsByStoreMock.ts @@ -151,7 +151,7 @@ export const mockGetTeamsByStoreQuery = { mewClockedOutCount: 30, site: '100', teamId: '1000282', - teamName: 'Apparel', + teamName: 'Fashion', workgroup: 'GM', workgroupId: '1000216', }, --- packages/allspark-foundation-hub/__tests__/__mocks__/data/teamData.ts @@ -578,7 +578,7 @@ export const teamData = [ mewTardyCount: 0, site: '100', teamId: '1000282', - teamName: 'Apparel', + teamName: 'Fashion', workgroup: 'GM', workgroupId: '1000216', }, --- packages/allspark-foundation-hub/__tests__/__mocks__/data/teamSelection.ts @@ -29,7 +29,7 @@ export const areaTeamMap: AreaTeamMap = { ], 'Fuel': [{ teamName: 'Fuel', teamId: '1000319' }], 'General Merchandise': [ - { teamName: 'Apparel', teamId: '1000282' }, + { teamName: 'Fashion', teamId: '1000282' }, { teamName: 'Auto Care Center', teamId: '1000340' }, { teamName: 'Entertainment', teamId: '1000198' }, { teamName: 'Hardlines', teamId: '1000187' }, --- packages/allspark-foundation-hub/src/Shared/Images/images.tsx @@ -37,7 +37,7 @@ export const StoreImages: Record<any, ImageReturn> = { blurhash: 'KRQTGy4;^*R+IokC~U-SIp', }, '1000282': { - teamName: 'Apparel', + teamName: 'Fashion', uri: 'https://i5-me.walmartimages.com/images/teams/apparel-mgr-exp-dd10fcf60a.png', blurhash: 'KpR37uNL?^S*jYng?vxZD%', },
chore(ui): clean up apparel from code base (#275)
chore(ui): clean up apparel from code base (#275) Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com>
3d8c6c1fce06665eecaf2c75a444adf26714bdab
--- .looper.multibranch.yml @@ -72,7 +72,7 @@ envs: XC_SCHEME: 'AllSpark' XC_TARGET: 'AllSpark' PRODUCT_NAME: 'Me@Walmart' - NO_PROXY: "*.walmart.com,chromium.googlesource.com" + NO_PROXY: "*.walmart.com,chromium.googlesource.com,ssl.scandit.com" ALLSPARK_CORE_GITHUB_URL: "https://gecgithub01.walmart.com/allspark/allspark-core" APPCENTER_DISTRIBUTE_DESTINATIONS: '*'
Update .looper.multibranch.yml
Update .looper.multibranch.yml
ff0bbbbf243eb86d3e862c9c48b64ef69915f24f
--- package.json @@ -121,12 +121,12 @@ "@walmart/metrics-mini-app": "1.29.12", "@walmart/mod-flex-mini-app": "1.27.0", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "2.3.8", + "@walmart/money-auth-shared-components": "2.3.9", "@walmart/myteam-mini-app": "1.34.1", "@walmart/native-rfid-scanner": "4.0.22", "@walmart/onewalmart-miniapp": "1.0.27", "@walmart/pay-stub-miniapp": "0.23.3", - "@walmart/payrollsolution_miniapp": "0.147.26", + "@walmart/payrollsolution_miniapp": "0.149.17", "@walmart/persona-hub": "0.3.3", "@walmart/price-changes-mini-app": "1.13.3", "@walmart/profile-feature-app": "2.0.2-UPV2MyWalmart.2", --- yarn.lock @@ -8667,12 +8667,12 @@ __metadata: "@walmart/metrics-mini-app": "npm:1.29.12" "@walmart/mod-flex-mini-app": "npm:1.27.0" "@walmart/moment-walmart": "npm:1.0.4" - "@walmart/money-auth-shared-components": "npm:2.3.8" + "@walmart/money-auth-shared-components": "npm:2.3.9" "@walmart/myteam-mini-app": "npm:1.34.1" "@walmart/native-rfid-scanner": "npm:4.0.22" "@walmart/onewalmart-miniapp": "npm:1.0.27" "@walmart/pay-stub-miniapp": "npm:0.23.3" - "@walmart/payrollsolution_miniapp": "npm:0.147.26" + "@walmart/payrollsolution_miniapp": "npm:0.149.17" "@walmart/persona-hub": "npm:0.3.3" "@walmart/price-changes-mini-app": "npm:1.13.3" "@walmart/profile-feature-app": "npm:2.0.2-UPV2MyWalmart.2" @@ -8980,9 +8980,9 @@ __metadata: languageName: node linkType: hard -"@walmart/money-auth-shared-components@npm:2.3.8": - version: 2.3.8 - resolution: "@walmart/money-auth-shared-components@npm:2.3.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmoney-auth-shared-components%2F-%2F%40walmart%2Fmoney-auth-shared-components-2.3.8.tgz" +"@walmart/money-auth-shared-components@npm:2.3.9": + version: 2.3.9 + resolution: "@walmart/money-auth-shared-components@npm:2.3.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fmoney-auth-shared-components%2F-%2F%40walmart%2Fmoney-auth-shared-components-2.3.9.tgz" peerDependencies: "@react-navigation/drawer": ^6.6.4 "@react-navigation/native": ^6.0.0 @@ -8990,7 +8990,7 @@ __metadata: "@walmart/allspark-foundation": "*" "@walmart/core-services": ~2.0.11 "@walmart/gtp-shared-components": ^2.0.6 - checksum: 10c0/9c4837b888769e522dbac3204bd6de130156f4304102060d274964e82090ae062c3b9337cca5fec763d2bd7154207e3c9dfd09e3123051f6d517fbbe700af984 + checksum: 10c0/fb4a077e1a6dc651f8d75cc33f6e8cbc8d35fd59325f843f33c426cf9df590b3eb8b76cbacb2a453e2148715ba0e73209ea9d40d44b1e8a547548c8ace75d5da languageName: node linkType: hard @@ -9048,12 +9048,12 @@ __metadata: languageName: node linkType: hard -"@walmart/payrollsolution_miniapp@npm:0.147.26": - version: 0.147.26 - resolution: "@walmart/payrollsolution_miniapp@npm:0.147.26::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.147.26.tgz" +"@walmart/payrollsolution_miniapp@npm:0.149.17": + version: 0.149.17 + resolution: "@walmart/payrollsolution_miniapp@npm:0.149.17::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fpayrollsolution_miniapp%2F-%2F%40walmart%2Fpayrollsolution_miniapp-0.149.17.tgz" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/adede67fd434cf56c0aacd77bdda6ba4782bd128d91a2900150069681ac90d83e6e44f507262ec02e9d87f8aa83f65aff42170db6f5897d186d6cf14a4681840 + checksum: 10c0/7051b604c877b6e284e8aa6a997ddb05120994626178cfbb5439dc19bc3cb20f6c3ef6043ec453c7d371bd73b262d1c78314b11fb37d479dcac4cb2fede7bb95 languageName: node linkType: hard
fix(fix ada bug): OPIF-218982 ada bug fix (#4309)
fix(fix ada bug): OPIF-218982 ada bug fix (#4309) * fix(fix ada bug): PAYROLL-29271 ada bug fix * fix(fix crash issue): PAYROLL-29271 fix crash * bump version * update yarn.lock --------- Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
68a4bf83b595a6ebd8e1f0d4f240f381770f4b6c
--- package.json @@ -112,6 +112,7 @@ "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.69.0", "@walmart/wfm-ui": "0.2.17", + "@walmart/facilities-management-miniapp": "0.0.4", "axios": "^0.26.1", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0", --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -41,6 +41,7 @@ import { } from '../NavigationConstants'; import {withClockOutGuard} from '../ClockOutGuard'; import {MainTabsNav} from './Tabs'; +import {FacilitiesMaintainanceStack} from '@walmart/facilities-management-miniapp'; //--- Main Stack --- // const MainStack = createStackNavigator(); @@ -267,6 +268,21 @@ export const MainStackNav = () => { name='Core.StoreInfoModal' component={StoreInfoModal} /> + + <MainStack.Screen + name='FacilitiesManagementStack.Landing' + component={FacilitiesMaintainanceStack} + initialParams={{ + routeName: 'FacilitiesManagementStack.Landing', + }} + /> + <MainStack.Screen + name='FacilitiesManagementStack.ScheduledServices' + component={FacilitiesMaintainanceStack} + initialParams={{ + routeName: 'FacilitiesManagementStack.ScheduleServices', + }} + /> </MainStack.Group> </MainStack.Navigator> --- src/translations/en-US.ts @@ -24,6 +24,7 @@ export const enUS = { '@walmart/allspark-health-survey-mini-app': 'Health Survey', '@walmart/impersonation-mini-app': 'Impersonation', '@walmart/payrollsolution_miniapp': 'Payroll', + '@walmart/facilities-management-miniapp': 'Facility management', }, navigation: { main: 'Me@Walmart', --- src/translations/es-MX.ts @@ -24,6 +24,7 @@ export const esMX = { '@walmart/allspark-health-survey-mini-app': 'Health Survey', '@walmart/impersonation-mini-app': 'Impersonation', '@walmart/payrollsolution_miniapp': 'Payroll', + '@walmart/facilities-management-miniapp': 'Gestión de instalaciones', }, navigation: { main: 'Me@Walmart', --- src/versions/constants.ts @@ -28,4 +28,5 @@ export const LISTED_DEPENDENCIES = [ '@walmart/allspark-health-survey-mini-app', '@walmart/impersonation-mini-app', '@walmart/payrollsolution_miniapp', + '@walmart/facilities-management-miniapp', ];
facility management miniapp drop8 release
facility management miniapp drop8 release
ec59a6456247675fcc6d86137fc3eeb46eeed326
--- src/screens/AllTeamsScreen/AllTeamsScreen.tsx @@ -11,7 +11,6 @@ export const AllTeamsScreen = () => { const navigation = useNavigation(); useEffect(() => { - console.log('AllTeamsScreen -> useEffect'); navigation.setOptions({ title: translationClient.translate('allTeams.title', { default: 'All teams',
fix(bug): adding additional test coverage
fix(bug): adding additional test coverage
79d0364d23df592309306ea8e767a1e54e2de8ba
--- core/src/core/ClockOutGuard.tsx @@ -1,7 +1,6 @@ import React, {ComponentProps, ComponentType, PropsWithChildren} from 'react'; import {useSelector} from 'react-redux'; -import {TypedNavigator, useNavigation} from '@react-navigation/native'; -import {StackNavigationOptions} from '@react-navigation/stack'; +import {useNavigation} from '@react-navigation/native'; import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; import {ClockSelectors} from '@walmart/allspark-foundation/Clock'; @@ -41,24 +40,3 @@ export const withClockOutGuard = <T extends ComponentType<any>>( </ClockOutGuard> ); }; - -export const CreateGuardedScreens = ( - Stack: TypedNavigator<any, any, any, any, any>, - configs: readonly { - name: keyof MainStackMap & keyof HomeStackMap; - component: ComponentType; - options?: StackNavigationOptions; - }[], -) => - configs.map((screen) => { - const {name, component, options = {}} = screen; - - return ( - <Stack.Screen - key={name} - name={name} - component={withClockOutGuard(component)} - options={options} - /> - ); - }); --- core/src/core/CreateGuardedScreens.tsx @@ -0,0 +1,27 @@ +import React, {ComponentType} from 'react'; +import {withClockOutGuard} from './ClockOutGuard'; +import {withFeatureToggleGuard} from './FeatureToggleGuard'; +import {TypedNavigator} from '@react-navigation/native'; +import {StackNavigationOptions} from '@react-navigation/stack'; +export const CreateGuardedScreens = ( + Stack: TypedNavigator<any, any, any, any, any>, + configs: readonly { + name: keyof MainStackMap & keyof HomeStackMap; + component: ComponentType; + options?: StackNavigationOptions; + }[], +) => + configs.map((screen) => { + const {name, component, options = {}} = screen; + + return ( + <Stack.Screen + key={name} + name={name} + component={ + withClockOutGuard(component) && withFeatureToggleGuard(component) + } + options={options} + /> + ); + }); --- core/src/core/FeatureToggleGuard.tsx @@ -0,0 +1,42 @@ +import React, {ComponentProps, ComponentType, PropsWithChildren} from 'react'; +import {useOneClick} from '../oneClick/useOneClick'; +import {MINI_APPS} from '../oneClick/MiniApps'; +import {useNavigation} from '@react-navigation/native'; + +import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; +import {ClockOutOverlay} from '@walmart/ui-components'; + +export const FeatureToggleGuard = (props: PropsWithChildren<{}>) => { + const {children} = props; + + const navigation = useNavigation(); + const [translate] = useAllsparkTranslation(); + const oneClick = useOneClick(); + + const onGoHome = () => + navigation.navigate('tabs', { + screen: 'home', + params: {screen: 'home.root'}, + }); + + return oneClick.isMiniAppEnabled(MINI_APPS.ASK_SAM) ? ( + <ClockOutOverlay + title={translate('featureToggleGuard.title')} + content={translate('featureToggleGuard.content')} + buttonTitle={translate('featureToggleGuard.action')} + onButtonPress={onGoHome} + /> + ) : ( + children + ); +}; + +export const withFeatureToggleGuard = <T extends ComponentType<any>>( + Component: T, +) => { + return (props: ComponentProps<T>) => ( + <FeatureToggleGuard> + <Component {...props} /> + </FeatureToggleGuard> + ); +}; --- core/src/index.tsx @@ -18,6 +18,7 @@ export const getCoreRootFeatures = () => { require('./appBlock').AppBlockFeature, require('./core').CommonFeatures, require('./startup').StartupFeature, + require('./oneClick').OneClickFeature, ]; }; @@ -47,10 +48,11 @@ export type {RootStackMap, CoreAssociateStackMap} from './navigation/types'; // --- Shared Target Functionality --- // // Functionality shared across targets are exported from here. // Functionality shared across targets and features, consider using me-at-walmart-common +export {ClockOutGuard, withClockOutGuard} from './core/ClockOutGuard'; export { - ClockOutGuard, - CreateGuardedScreens, - withClockOutGuard, -} from './core/ClockOutGuard'; + FeatureToggleGuard, + withFeatureToggleGuard, +} from './core/FeatureToggleGuard'; +export {CreateGuardedScreens} from './core/CreateGuardedScreens'; export {LegacyHeaderProvider} from './legacy/context'; export {ActivityMonitorGuard} from './PinAccess/ActivityMonitorGuard'; --- core/src/oneClick/DataSelector.tsx --- core/src/oneClick/MiniApps.ts --- core/src/oneClick/OneClickSagas.tsx @@ -1,7 +1,7 @@ import {takeLatest, select, put} from 'redux-saga/effects'; import {createRestartableSaga} from '@walmart/allspark-utils'; -import {Logger} from '../../../../core/src/core/Logger'; +import {Logger} from '../core/Logger'; import { NavConfigActionCreators, --- core/src/oneClick/index.ts --- core/src/oneClick/useOneClick.ts --- core/src/oneClick/utility/updateMegaNavCCM.js
ALLSPARK-3960: added oneclick and featureToggleGuard
ALLSPARK-3960: added oneclick and featureToggleGuard
185fd58fc2747ef1a699e205d668860fe8aeef7f
--- packages/allspark-foundation-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. +## [1.10.5](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.10.4...@walmart/allspark-foundation-hub@1.10.5) (2025-08-06) + +### Bug Fixes + +- smdv 8376 ([b72cf89](https://gecgithub01.walmart.com/allspark/allspark/commit/b72cf8981ef27a398fda74a9dc43f616e61c7286)) + ## [1.10.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.10.3...@walmart/allspark-foundation-hub@1.10.4) (2025-08-05) **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.10.4", + "version": "1.10.5", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.10.5
864a9ee659a238c7c6a25f65c23ab09e4d50cf36
--- __tests__/navigation/AssociateHallwayNav/MainTabsNavTest.tsx @@ -23,6 +23,7 @@ jest.mock('@walmart/push-to-talk-mini-app', () => ({ PushToTalkMiniApp: 'PushToTalkMiniApp', Components: { HeaderSearch: 'HeaderSearch', + HeaderSearchIcon: 'HeaderSearchIcon', }, Hooks: { useVMBadgesCount: jest.fn((_) => [1]), --- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainTabsNavTest.tsx.snap @@ -123,11 +123,7 @@ exports[`TabsHeaderLeft matches snapshot 1`] = ` /> `; -exports[`TabsHeaderRight should return PTT component 1`] = ` -<HeaderSearch - displayIconOnly={true} -/> -`; +exports[`TabsHeaderRight should return PTT component 1`] = `<HeaderSearchIcon />`; exports[`TabsHeaderRight should return null for a non-PTT route 1`] = `null`; --- package-lock.json @@ -3471,9 +3471,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.34", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.34.tgz", - "integrity": "sha512-3v2w1cLNy1Wqz/psSYX6+4BahRTkW7avtZjAZgCd+7MD/+S8mapsjYbmJ7yi6jQXWbzbFTfm401zklBmi4FOBA==" + "version": "0.5.36", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.36.tgz", + "integrity": "sha512-3cUSGn87pjDUKzRaoFMOUTTpgGkYY0a29OqRaZ4YSTeTFJ0q5q7gJVigEg2WEUpLLYgCzAKC/XZcyihbraMufA==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -88,7 +88,7 @@ "@walmart/manager-approvals-miniapp": "0.0.51", "@walmart/metrics-mini-app": "0.4.11", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.5.34", + "@walmart/push-to-talk-mini-app": "0.5.36", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.27.0", "@walmart/react-native-shared-navigation": "^0.4.0", --- src/navigation/AssociateHallwayNav/MainTabsNav.tsx @@ -67,7 +67,7 @@ export function TabsHeaderRight(this: {route: Route<string>}) { switch (routeName) { case 'myTeam': - return <Components.HeaderSearch displayIconOnly={true} />; + return <Components.HeaderSearchIcon />; default: return null; }
PTT bug fixes
PTT bug fixes
7d29d816a9c1cfbaa1a1d2ed305d7c9f5f1bbc38
--- packages/allspark-foundation/src/Navigation/index.ts @@ -22,3 +22,4 @@ export { NavConfigSagas } from './config/sagas'; export { NavConfigService, NavConfigServiceCreator } from './config/service'; export * from './config/selectors'; export * from './config/types'; +export { createNavigationContainerAdapter } from './utils';
chore: export navigation container adapter utility from subdirectory root
chore: export navigation container adapter utility from subdirectory root
32a0cd3d2983d472d24971c2797292236f4b603b
--- src/redux/audioPlayThunk.ts @@ -10,12 +10,12 @@ export const playReceivingPTTMessage = createAsyncThunk( const audioRemoteURI = await fetchResource(remoteURI); const {sound} = await Audio.Sound.createAsync( {uri: audioRemoteURI}, - {volume: 100, shouldPlay: true}, + {volume: 1.0, shouldPlay: true}, ); try { await Audio.Sound.createAsync( require('../media/corevoice_src_main_res_raw_audionotificationsound.wav'), - {volume: 80, shouldPlay: true}, + {volume: 1.0, shouldPlay: true}, ).then((recieveTone) => { recieveTone.sound.playAsync(); }); --- src/screens/PushToTalkScreen.tsx @@ -140,7 +140,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { if (RecordingRef.current) { await Audio.Sound.createAsync( require('../media/corevoice_src_main_res_raw_stoptalk.wav'), - {volume: 80, shouldPlay: true}, + {volume: 1.0, shouldPlay: true}, ).then((sound) => { sound.sound.playAsync(); }); @@ -241,7 +241,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { await Audio.Sound.createAsync( require('../media/corevoice_src_main_res_raw_starttalk.wav'), - {volume: 80, shouldPlay: true}, + {volume: 1.0, shouldPlay: true}, ).then((sound) => { sound.sound.playAsync(); }); --- src/redux/audioPlayThunk.ts @@ -10,12 +10,12 @@ export const playReceivingPTTMessage = createAsyncThunk( const audioRemoteURI = await fetchResource(remoteURI); const {sound} = await Audio.Sound.createAsync( {uri: audioRemoteURI}, - {volume: 100, shouldPlay: true}, + {volume: 1.0, shouldPlay: true}, ); try { await Audio.Sound.createAsync( require('../media/corevoice_src_main_res_raw_audionotificationsound.wav'), - {volume: 80, shouldPlay: true}, + {volume: 1.0, shouldPlay: true}, ).then((recieveTone) => { recieveTone.sound.playAsync(); }); --- src/screens/PushToTalkScreen.tsx @@ -140,7 +140,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { if (RecordingRef.current) { await Audio.Sound.createAsync( require('../media/corevoice_src_main_res_raw_stoptalk.wav'), - {volume: 80, shouldPlay: true}, + {volume: 1.0, shouldPlay: true}, ).then((sound) => { sound.sound.playAsync(); }); @@ -241,7 +241,7 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { await Audio.Sound.createAsync( require('../media/corevoice_src_main_res_raw_starttalk.wav'), - {volume: 80, shouldPlay: true}, + {volume: 1.0, shouldPlay: true}, ).then((sound) => { sound.sound.playAsync(); });
update the volume
update the volume
b14a48166ec03b74f1e03a89b3652a1673ddc081
--- __tests__/screens/MessagesScreen/OneToOneChatTest.tsx @@ -34,7 +34,7 @@ import {createMessageList} from "../../../dist/utils"; import {MessageList} from "../../../src/components/MessageList"; import {AudioMedia, ImageMedia, LocalMessage} from "../../../src/types"; import {store100Collection, storeCollections} from "../../harness/firestore/data/stores"; -import {createTextMessage} from "../../harness/firestore/data/messages"; +import {createAudioMessage, createImageMessage, createTextMessage} from "../../harness/firestore/data/messages"; jest.mock('../../../src/channels/transforms', () => ({ normalizeChannelSnapshot: jest.fn(), @@ -216,38 +216,38 @@ describe('1-1 chat', () => { }); it('should see messages loaded onto the screen', async () => { - const getLocalMessagesForChannel = (mockStoreId: string, mockChannelsListIndex: number) => { - const allMessageTypesChannelIndex = 0; - const textMessageIndexForChannel = 1; + const allMessageTypesChannelIndex = 0; + const textMessageIndexForChannel = 1; + const getLocalMessagesForChannel = (mockStoreId: string, mockChannelsListIndex: number): LocalMessage[] => { + const mockMessages = storeCollections['STORE_100']._collections.channels[0]._collections.messages; const mockChannelPath = storeCollections['STORE_100']._collections.channels[0].channelPath; - - //From here: loop through all messages and transform each object to a LocalMessage type const textMessage = mockMessages[textMessageIndexForChannel] as ReturnType<typeof createTextMessage>; - return { - message: textMessage.message, - createdAt: textMessage.createdAt, + + return [{ + message: textMessage?.message, + createdAt: firestore.Timestamp.now(), //TODO: Use Timestamp objects for harness instead of strings for messages mocks sentFrom: textMessage.sentFrom, - // image?: ImageMedia; - // audio?: AudioMedia; + // image: textMessage?.image; + // audio: textMessage?.audio; id: textMessage.id, isMyMessage: false, isGroupMessage: false, - messagePath: '', //TODO: Determine path - readReceipt: '', //TODO: Determine format for read receipt. Optional in this case. - messageTime: '', //TODO: Determine format of messageTime string + messagePath: '', + readReceipt: '', + messageTime: '', showReadReceipt: false, //TODO: Find display format channelPath: mockChannelPath, //TODO: refactor object to method to grab the text message from a given channelpath that can be provided in the test case - } + }]; } - const mockLocalMessages: LocalMessage[] = []; + const mockLocalMessages: LocalMessage[] = getLocalMessagesForChannel('STORE_100', textMessageIndexForChannel); //TODO: Include test message as a string for messageTimeSectionHeader display const messagesList = renderWithProviders(<MessageList messages={mockLocalMessages} channelPath={''} onEndReachedHandler={jest.fn()} />); await finishPendingRequests(); expect(messagesList.toJSON()).toMatchSnapshot(); }); - it('should display an image message as expected', () => { + it('should display a text message as expected', () => { //TODO }); --- __tests__/screens/MessagesScreen/OneToOneChatTest.tsx @@ -34,7 +34,7 @@ import {createMessageList} from "../../../dist/utils"; import {MessageList} from "../../../src/components/MessageList"; import {AudioMedia, ImageMedia, LocalMessage} from "../../../src/types"; import {store100Collection, storeCollections} from "../../harness/firestore/data/stores"; -import {createTextMessage} from "../../harness/firestore/data/messages"; +import {createAudioMessage, createImageMessage, createTextMessage} from "../../harness/firestore/data/messages"; jest.mock('../../../src/channels/transforms', () => ({ normalizeChannelSnapshot: jest.fn(), @@ -216,38 +216,38 @@ describe('1-1 chat', () => { }); it('should see messages loaded onto the screen', async () => { - const getLocalMessagesForChannel = (mockStoreId: string, mockChannelsListIndex: number) => { - const allMessageTypesChannelIndex = 0; - const textMessageIndexForChannel = 1; + const allMessageTypesChannelIndex = 0; + const textMessageIndexForChannel = 1; + const getLocalMessagesForChannel = (mockStoreId: string, mockChannelsListIndex: number): LocalMessage[] => { + const mockMessages = storeCollections['STORE_100']._collections.channels[0]._collections.messages; const mockChannelPath = storeCollections['STORE_100']._collections.channels[0].channelPath; - - //From here: loop through all messages and transform each object to a LocalMessage type const textMessage = mockMessages[textMessageIndexForChannel] as ReturnType<typeof createTextMessage>; - return { - message: textMessage.message, - createdAt: textMessage.createdAt, + + return [{ + message: textMessage?.message, + createdAt: firestore.Timestamp.now(), //TODO: Use Timestamp objects for harness instead of strings for messages mocks sentFrom: textMessage.sentFrom, - // image?: ImageMedia; - // audio?: AudioMedia; + // image: textMessage?.image; + // audio: textMessage?.audio; id: textMessage.id, isMyMessage: false, isGroupMessage: false, - messagePath: '', //TODO: Determine path - readReceipt: '', //TODO: Determine format for read receipt. Optional in this case. - messageTime: '', //TODO: Determine format of messageTime string + messagePath: '', + readReceipt: '', + messageTime: '', showReadReceipt: false, //TODO: Find display format channelPath: mockChannelPath, //TODO: refactor object to method to grab the text message from a given channelpath that can be provided in the test case - } + }]; } - const mockLocalMessages: LocalMessage[] = []; + const mockLocalMessages: LocalMessage[] = getLocalMessagesForChannel('STORE_100', textMessageIndexForChannel); //TODO: Include test message as a string for messageTimeSectionHeader display const messagesList = renderWithProviders(<MessageList messages={mockLocalMessages} channelPath={''} onEndReachedHandler={jest.fn()} />); await finishPendingRequests(); expect(messagesList.toJSON()).toMatchSnapshot(); }); - it('should display an image message as expected', () => { + it('should display a text message as expected', () => { //TODO });
mocking a message to display message bubble
mocking a message to display message bubble
0ec24c19e1876d9d079b8b4097873b938548c351
--- package.json @@ -96,7 +96,7 @@ "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/redux-store": "6.3.29", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.42.0", + "@walmart/wmconnect-mini-app": "3.1.1", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6421,7 +6421,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/redux-store": "npm:6.3.29" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.42.0" + "@walmart/wmconnect-mini-app": "npm:3.1.1" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6504,20 +6504,20 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.42.0": - version: 2.42.0 - resolution: "@walmart/wmconnect-mini-app@npm:2.42.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-2.42.0.tgz" +"@walmart/wmconnect-mini-app@npm:3.1.1": + version: 3.1.1 + resolution: "@walmart/wmconnect-mini-app@npm:3.1.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.1.1.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" - expo: ^51.0.0 - expo-image: ~1.13.0 + expo: ~52.0.46 + expo-image: ~2.0.7 react: "*" react-native: "*" react-native-wm-config: 0.1.1 dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/1964dcc6fd212228e1236dcfb69868711d282ca21709d301ddf9fa370a146d431d04dfa67c8455fa703e15144780717fe51b25d37dd337e441642da8dcba3117 + checksum: 10c0/02d52dbec11b2444054acfc6cda5fc26fcbeb4bc33948216abb071e43786cc4fb53314b2c654835a7d5fd22cb432159b9dd624f563e63e9ae4a243d77c539108 languageName: node linkType: hard
fix(ui): update wmconnect version for roster
fix(ui): update wmconnect version for roster
6ad0c1a2f3ab9097f6dc97e9836b2470dd317dfc
--- docs/CHANGELOG.md @@ -1,3 +1,36 @@ +# [2.43.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.42.0...v2.43.0) (2025-06-28) + + +### Bug Fixes + +* sonar violations major ([d9ef556](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d9ef5562b886886b1aaf10edd0d02f57becaa869)) +* **ui:** fixing lint errors ([d9a42eb](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d9a42eb183b6a58e1d8b3a166eeb5367d69a78d4)) +* **ui:** fixing lint errors ([f1f1b18](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/f1f1b181f0abe4e03e415e0101628f0f8a135304)) +* **ui:** fixing test ([a36b32f](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/a36b32f732342ec1a5f480e719aeb180a57e8f4c)) +* **ui:** fixing test ([7e34047](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/7e340475689a44398f2e21bb99941d1bb70f12af)) +* **ui:** sonar vulnerabilities in channel row ([6d53ba2](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/6d53ba2594cc49cce65fecc6c73e62e3e71bbb6e)) +* **ui:** update libraries ([3859ffc](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/3859ffcf8e942029b2e45c0ec5445aae628f9687)) +* **ui:** update package ([693039e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/693039e785366978cb08c1f3fe818d8407efc356)) +* **ui:** update package ([c8d52f8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c8d52f807c942f4bb717d4542f62500db8d2a0d1)) +* **ui:** update package ([0c1a48c](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/0c1a48cc3744c0533eb2790b8b78a9e088ea1942)) +* **ui:** update package ([76f5928](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/76f592829ceeb18ab9ae0843a1ebe1ac4411e524)) +* **ui:** update packages ([d8f17dd](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d8f17dd9f2fa989179586b8a00d83b116ec4abe3)) +* **ui:** update packages ([a5468ad](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/a5468ad80f94090d1994dd020b94ffd942803f27)) +* **ui:** update packages ([4b8f8be](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/4b8f8bece867beb624b488ddfbbfcf9ade59ee42)) +* **ui:** update user initials avatar ([c28c900](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c28c9001f33b29309e0691d6a6c463cf6f28237e)) +* **ui:** updating tests ([da24ae7](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/da24ae738fa72e87cb0d6a674d065dc69843d7cb)) +* updated import ([442b9c3](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/442b9c37c3530dafe2d593cf40edc85db52c3f1c)) + + +### Features + +* **ui:** removing extra space ([8b45a0e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/8b45a0e89122a8041732870b493b6de4cc2fed3c)) +* **ui:** update package ([ecfdbba](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ecfdbba6006e2ce825a3be1235c6e3e48a32c5fc)) +* **ui:** update the image attachment editing section ([2a196c8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/2a196c8e657ffd20d3811d641a4c738278bbda24)) +* **ui:** update the image attachment editing section ([8705709](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/870570971acf3f0d23c5ba526487720255a98fcb)) +* **ui:** update the queries to match the hotfix for Drop 30 ([e77ec38](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/e77ec384d90abca18fc0fdc363abdd816c68de3c)) +* **ui:** upgrade getAssociateName query ([bde65c1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/bde65c19b8f0bbf38239b6730770cd3730e64e89)) + # [2.39.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.38.0...v2.39.0) (2025-06-23) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "2.42.0", + "version": "2.43.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 2.43.0 [skip ci]
chore(release): 2.43.0 [skip ci] # [2.43.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.42.0...v2.43.0) (2025-06-28) ### Bug Fixes * sonar violations major ([d9ef556](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d9ef5562b886886b1aaf10edd0d02f57becaa869)) * **ui:** fixing lint errors ([d9a42eb](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d9a42eb183b6a58e1d8b3a166eeb5367d69a78d4)) * **ui:** fixing lint errors ([f1f1b18](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/f1f1b181f0abe4e03e415e0101628f0f8a135304)) * **ui:** fixing test ([a36b32f](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/a36b32f732342ec1a5f480e719aeb180a57e8f4c)) * **ui:** fixing test ([7e34047](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/7e340475689a44398f2e21bb99941d1bb70f12af)) * **ui:** sonar vulnerabilities in channel row ([6d53ba2](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/6d53ba2594cc49cce65fecc6c73e62e3e71bbb6e)) * **ui:** update libraries ([3859ffc](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/3859ffcf8e942029b2e45c0ec5445aae628f9687)) * **ui:** update package ([693039e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/693039e785366978cb08c1f3fe818d8407efc356)) * **ui:** update package ([c8d52f8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c8d52f807c942f4bb717d4542f62500db8d2a0d1)) * **ui:** update package ([0c1a48c](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/0c1a48cc3744c0533eb2790b8b78a9e088ea1942)) * **ui:** update package ([76f5928](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/76f592829ceeb18ab9ae0843a1ebe1ac4411e524)) * **ui:** update packages ([d8f17dd](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/d8f17dd9f2fa989179586b8a00d83b116ec4abe3)) * **ui:** update packages ([a5468ad](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/a5468ad80f94090d1994dd020b94ffd942803f27)) * **ui:** update packages ([4b8f8be](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/4b8f8bece867beb624b488ddfbbfcf9ade59ee42)) * **ui:** update user initials avatar ([c28c900](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/c28c9001f33b29309e0691d6a6c463cf6f28237e)) * **ui:** updating tests ([da24ae7](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/da24ae738fa72e87cb0d6a674d065dc69843d7cb)) * updated import ([442b9c3](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/442b9c37c3530dafe2d593cf40edc85db52c3f1c)) ### Features * **ui:** removing extra space ([8b45a0e](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/8b45a0e89122a8041732870b493b6de4cc2fed3c)) * **ui:** update package ([ecfdbba](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ecfdbba6006e2ce825a3be1235c6e3e48a32c5fc)) * **ui:** update the image attachment editing section ([2a196c8](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/2a196c8e657ffd20d3811d641a4c738278bbda24)) * **ui:** update the image attachment editing section ([8705709](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/870570971acf3f0d23c5ba526487720255a98fcb)) * **ui:** update the queries to match the hotfix for Drop 30 ([e77ec38](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/e77ec384d90abca18fc0fdc363abdd816c68de3c)) * **ui:** upgrade getAssociateName query ([bde65c1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/bde65c19b8f0bbf38239b6730770cd3730e64e89))
da34d161f6239c9ec09c7d17ebf6cd628452091e
--- core/src/features/timeclock.tsx @@ -6,6 +6,7 @@ import {AllsparkComponentContainers} from '@walmart/allspark-foundation/Componen import {AllsparkFeature} from '@walmart/allspark-foundation/Feature'; import {IUserActions, UserActionTypes} from '@walmart/allspark-foundation/User'; import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; +import NewTimeClock from '@walmart/time-clock-mini-app-next'; import { HomeDashboardContainer, @@ -25,9 +26,8 @@ const OldTimeClockFeature = new AllsparkFeature('timeclock_v1'); // TODO: Timeclock, once moved to the foundation, should export a similar module. // All functionality added here should be part of that module along with other screens, redux, etc. -const NewTimeClockFeature = new AllsparkFeature('timeclock'); - const TimeClockLocalStorage = OldTimeClockFeature.createLocalStorage({}); +// console.log('New time-->', NewTimeClockFeature); const GEO_VALIDATION_KEY = 'impersonation_geo_validation'; @@ -172,61 +172,9 @@ const OldTimeClock = OldTimeClockFeature.createModule({ }, }); -const NewTimeClock = NewTimeClockFeature.createModule({ - name: 'Time Clock', - redux: { - saga: timeclockSagas, - }, - listeners: { - feature: { - onConnect: () => { - console.log('New Time clock connected!'); - // --- Need a init function from timeclock here! --- // - - const { - TimeClockWidget, - Toast, - } = require('@walmart/time-clock-mini-app-next'); - // Add timeclock widget to the home dashboard - HomeDashboardContainer.add('TimeClockCard', TimeClockWidget); - - // Add timeclock toast to home screen. - // TODO: Refactor to use gtp toast hook - AllsparkComponentContainers.add( - 'Home.Temporary', - 'TimeClock.Toast', - Toast, - ); - - // Add geo validation switch to impersonation screen - const ImpersonationGeoClockSwitch = getImpersonationGeoClockSwitch(); - ImpersonationFormContainer.add( - 'Timeclock.GeoSwitch', - ImpersonationGeoClockSwitch, - ); - }, - onDisconnect: () => { - console.log('New Time clock disconnected!'); - // --- Need a cleanup function from timeclock here! --- // - HomeDashboardContainer.remove('TimeClockCard'); - AllsparkComponentContainers.remove('Home.Temporary', 'TimeClock.Toast'); - ImpersonationFormContainer.remove('Timeclock.GeoSwitch'); - }, - }, - }, - screens: { - timeClock: { - getComponent: () => require('@walmart/time-clock-mini-app-next').default, - options: { - headerShown: false, - }, - }, - }, -}); - export const getUseNewTimeclock = createSelector( ConfigSelectors.createFeatureConfigSelector('timeclock'), - (config) => config?.useNewTimeclock ?? false, + (config) => config?.useNewTimeclock ?? true, ); export const getTimeClockFeature = () => { @@ -235,7 +183,7 @@ export const getTimeClockFeature = () => { }; export const useTimeClockFeature = () => { - const useNewTimeclock = useSelector(getUseNewTimeclock); + const useNewTimeclock = true; useEffect(() => { if (useNewTimeclock) { --- targets/US/package.json @@ -149,7 +149,7 @@ "@walmart/store-feature-orders": "1.27.1", "@walmart/taskit-mini-app": "4.25.8", "@walmart/time-clock-mini-app": "2.448.1", - "@walmart/time-clock-mini-app-next": "2.805.0", + "@walmart/time-clock-mini-app-next": "2.807.0", "@walmart/topstock-mini-app": "1.19.4", "@walmart/translator-mini-app": "1.3.7", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch", --- yarn.lock @@ -7371,7 +7371,7 @@ __metadata: "@walmart/store-feature-orders": "npm:1.27.1" "@walmart/taskit-mini-app": "npm:4.25.8" "@walmart/time-clock-mini-app": "npm:2.448.1" - "@walmart/time-clock-mini-app-next": "npm:2.805.0" + "@walmart/time-clock-mini-app-next": "npm:2.807.0" "@walmart/topstock-mini-app": "npm:1.19.4" "@walmart/translator-mini-app": "npm:1.3.7" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.18.7#~/.yarn/patches/@walmart-ui-components-npm-1.18.7-9e23294b76.patch" @@ -8361,9 +8361,9 @@ __metadata: languageName: node linkType: hard -"@walmart/time-clock-mini-app-next@npm:2.805.0": - version: 2.805.0 - resolution: "@walmart/time-clock-mini-app-next@npm:2.805.0" +"@walmart/time-clock-mini-app-next@npm:2.807.0": + version: 2.807.0 + resolution: "@walmart/time-clock-mini-app-next@npm:2.807.0" dependencies: "@react-navigation/elements": "npm:^1.3.1" moment-timezone: "npm:0.5.33" @@ -8380,6 +8380,7 @@ __metadata: "@walmart/core-services": ^2.3.4 "@walmart/gta-react-native-calendars": 0.1.0 "@walmart/gtp-shared-components": ^2.1.1 + "@walmart/me-at-walmart-common": 6.28.1-alpha.0 "@walmart/redux-store": ^3.5.0 "@walmart/ui-components": 1.18.4 axios: ^1.7.4 @@ -8408,7 +8409,7 @@ __metadata: uuid: ^3.3.2 wifi-store-locator: ^1.4.0 xdate: ^0.8.2 - checksum: 10c0/01cf3c51aad8ddf4ba9e3ca3e7efff8df9e345e86daf6f7ac208dc13af2149e26f4a7de7883d597ec39d6db8b66680f4f2b311723c6039ce4f417b798034be1d + checksum: 10c0/0c3ff36428ba56f729ef572070be3541f7cb500f1aeaafb091531f02a455b68f07dfc8fbcd64ae6be0fb495456131ef6931a044b5270582bda7fa3f011e47b31 languageName: node linkType: hard
feat: tcma clock switch update package
feat: tcma clock switch update package
6ccbbfa879f411871bfe0ab625063414786dabb7
--- package-lock.json @@ -65,7 +65,7 @@ "@walmart/payrollsolution_miniapp": "0.130.46", "@walmart/price-changes-mini-app": "1.9.3", "@walmart/profile-feature-app": "0.221.0", - "@walmart/push-to-talk-mini-app": "1.9.22", + "@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.34.4", @@ -136,7 +136,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.8.18", + "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", @@ -5719,36 +5719,45 @@ } }, "node_modules/@walmart/push-to-talk-mini-app": { - "version": "1.9.22", + "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", + "@react-native-community/datetimepicker": "^3.0.9", "@react-native-community/netinfo": "^5.9.9", + "@react-navigation/material-top-tabs": "^6.1.0", + "@react-navigation/native": "^6.0.0", "@sharcoux/slider": "^5.2.1", - "@walmart/functional-components": "^1.0.34", + "@walmart/functional-components": "^2.0.6", "@walmart/gtp-shared-components": "2.0.2", - "@walmart/react-native-logger": "^1.28.0", + "@walmart/react-native-logger": "1.33.0", "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/react-native-sumo-sdk": "^2.1.0", - "@walmart/redux-store": "^2.0.4", - "@walmart/ui-components": "^1.1.72", + "@walmart/redux-store": "3.1.3", + "@walmart/ui-components": "1.5.0-rc.1", "apisauce": "^1.1.2", "javascript-time-ago": ">=2.3.4", "lodash": "^4.17.19", "namecase": "^1.1.2", "react": "^17.0.2", - "react-native": "^0.67.4", + "react-native": "0.70.6", "react-native-circular-progress": "^1.3.6", "react-native-fs": "^2.17.0", "react-native-get-random-values": "^1.5.1", "react-native-haptic-feedback": "^1.10.0", "react-native-hyperlink": ">=0.0.19", - "react-native-image-picker": "^4.0.6", + "react-native-image-picker": "4.8.5", "react-native-loudness": "^2.0.0", - "react-native-ptt-module": "1.8.18", - "react-native-reanimated": "^1.13.4", + "react-native-pager-view": "^5.4.9", + "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", "react-native-sha256": "^1.4.7", "react-native-ssmp-sso-allspark": "^1.2.3", + "react-native-tab-view": "^3.1.1", "react-native-wm-network": "^0.1.0", "react-native-wm-notification": "^2.0.0", "react-redux": "^7.2.1", @@ -5756,7 +5765,7 @@ "redux-saga": "^1.1.3", "redux-thunk": "^2.3.0", "reduxsauce": "^1.2.0", - "reselect": "^4.1.0" + "reselect": "^4.0.0" } }, "node_modules/@walmart/react-native-encrypted-storage": { @@ -17907,7 +17916,9 @@ "license": "ISC" }, "node_modules/react-native-ptt-module": { - "version": "1.8.18", + "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": { @@ -25325,7 +25336,9 @@ "version": "0.221.0" }, "@walmart/push-to-talk-mini-app": { - "version": "1.9.22" + "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" @@ -32984,7 +32997,9 @@ "version": "0.16.1" }, "react-native-ptt-module": { - "version": "1.8.18" + "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.1.2",
update package-lock
update package-lock
df02b79e39f47a7e4742ca844270313c4b4db987
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "1.62.13", "@walmart/compass-sdk-rn": "5.18.9", "@walmart/config-components": "4.2.13", - "@walmart/copilot-mini-app": "3.33.8", + "@walmart/copilot-mini-app": "^3.33.8", "@walmart/core-services": "~2.3.0", "@walmart/core-services-allspark": "~2.13.4", "@walmart/core-utils": "~2.0.5", @@ -56,7 +56,7 @@ "@walmart/financial-wellbeing-feature-app": "1.16.3", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.1.0", - "@walmart/gtp-shared-components": "^2.1.6", + "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", "@walmart/ims-print-services-ui": "2.7.3", "@walmart/inbox-mini-app": "0.89.2", @@ -8945,9 +8945,9 @@ } }, "node_modules/@walmart/gtp-shared-components": { - "version": "2.1.6", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.6.tgz", - "integrity": "sha512-+Cv3vDgQYSe08vmyEMo3uB/VsU7Rv5TDOv0BjCYRnO+xk7UAi3y3ABVtOXMfcys7bay/1Av38rXqOVgJLoz60Q==", + "version": "2.1.3", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.3.tgz", + "integrity": "sha512-/wB0vaVPXi8WWkpg8dx8avEuPURd2ynZblQ7VrJFx4UlkH46SMEgasCMBZRoWs/UWpjVE4mjuQ9Sz9p/oF87UA==", "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "0.63.0", @@ -33324,9 +33324,9 @@ } }, "@walmart/gtp-shared-components": { - "version": "2.1.6", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.6.tgz", - "integrity": "sha512-+Cv3vDgQYSe08vmyEMo3uB/VsU7Rv5TDOv0BjCYRnO+xk7UAi3y3ABVtOXMfcys7bay/1Av38rXqOVgJLoz60Q==", + "version": "2.1.3", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.1.3.tgz", + "integrity": "sha512-/wB0vaVPXi8WWkpg8dx8avEuPURd2ynZblQ7VrJFx4UlkH46SMEgasCMBZRoWs/UWpjVE4mjuQ9Sz9p/oF87UA==", "requires": { "@livingdesign/tokens": "0.63.0", "@walmart/gtp-shared-icons": "1.0.7", --- package.json @@ -97,7 +97,7 @@ "@walmart/financial-wellbeing-feature-app": "1.16.3", "@walmart/functional-components": "~4.0.3", "@walmart/gta-react-native-calendars": "0.1.0", - "@walmart/gtp-shared-components": "2.1.6", + "@walmart/gtp-shared-components": "2.1.3", "@walmart/impersonation-mini-app": "1.20.7", "@walmart/ims-print-services-ui": "2.7.3", "@walmart/inbox-mini-app": "0.89.2",
Revert "chore: bump gtp@2.1.6"
Revert "chore: bump gtp@2.1.6" This reverts commit 4053366a43246fb7c1bbc5cfa885531a4ed0afcf.
5cc18b2e6e21b8964c1f4827a6d37d0df8eed94a
--- targets/US/ios/Podfile.lock @@ -2153,7 +2153,7 @@ PODS: - Realm/Headers (10.51.0) - RealmJS (12.8.1): - React - - rn-mobile-sdk-pairing (2.1.4-osirisfix.2): + - rn-mobile-sdk-pairing (2.1.4-osirisfix.4): - glog - OsirisDigitalLocks (= 0.8.9) - RCT-Folly (= 2022.05.16.00) @@ -2941,7 +2941,7 @@ SPEC CHECKSUMS: ReactNativeART: 78edc68dd4a1e675338cd0cd113319cf3a65f2ab Realm: 7e75a684c16aca7c6a5db9c70caebf37f07dcee5 RealmJS: 2c7fdb3991d7655fba5f88eb288f75eaf5cb9980 - rn-mobile-sdk-pairing: 0f0da25d98f3e6dc62279cdfa26563283cda5be7 + rn-mobile-sdk-pairing: afc453d6d26e09c7d236b490c184b82d75393e9b RNCAsyncStorage: ec53e44dc3e75b44aa2a9f37618a49c3bc080a7a RNCClipboard: d7a8903d32692b0a1e71738c3825465a9acae10e RNCPicker: 0bf8ef8f7800524f32d2bb2a8bcadd53eda0ecd1 --- targets/US/package.json @@ -99,7 +99,7 @@ "@walmart/core-utils": "6.3.9", "@walmart/core-widget-registry": "workspace:^", "@walmart/counts-component-miniapp": "0.1.14", - "@walmart/digital-locks-mini-app": "1.1.3-osirisfix.1", + "@walmart/digital-locks-mini-app": "1.1.3-osirisfix.2", "@walmart/emergency-mini-app": "1.30.5", "@walmart/exception-mini-app": "1.8.11", "@walmart/facilities-management-miniapp": "0.17.0", @@ -143,7 +143,7 @@ "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.15.0", "@walmart/rfid-scan-mini-app": "2.7.1", - "@walmart/rn-mobile-sdk-pairing": "2.1.4-osirisfix.2", + "@walmart/rn-mobile-sdk-pairing": "2.1.4-osirisfix.4", "@walmart/rn-receiving-mini-app": "2.4.45", "@walmart/roster-mini-app": "2.9.0", "@walmart/schedule-mini-app": "1.13.0", --- yarn.lock @@ -6708,9 +6708,9 @@ __metadata: languageName: node linkType: hard -"@walmart/digital-locks-mini-app@npm:1.1.3-osirisfix.1": - version: 1.1.3-osirisfix.1 - resolution: "@walmart/digital-locks-mini-app@npm:1.1.3-osirisfix.1" +"@walmart/digital-locks-mini-app@npm:1.1.3-osirisfix.2": + version: 1.1.3-osirisfix.2 + resolution: "@walmart/digital-locks-mini-app@npm:1.1.3-osirisfix.2" peerDependencies: "@walmart/allspark-foundation": ">=6.0.0" "@walmart/invue-react-native-sdk": 0.1.26-beta.3 @@ -6725,7 +6725,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/76600411cbaa638c573a48f9394aae5c9c0052cdc0ca29b677298d9c2ac74ee665a6011facc31263bdbdfbc3e1a340dc60f7ad326e66a5a4415b32d924c69a39 + checksum: 10c0/6ae74bf39af0d8b1936748cc817b72a41cef95a47ca9043ff633b89c97c98d464f8566dfb1f29f0f4c11687ec5e31eb13e7b544967d2ee76bb0fe89270ec9a5b languageName: node linkType: hard @@ -7429,7 +7429,7 @@ __metadata: "@walmart/core-utils": "npm:6.3.9" "@walmart/core-widget-registry": "workspace:^" "@walmart/counts-component-miniapp": "npm:0.1.14" - "@walmart/digital-locks-mini-app": "npm:1.1.3-osirisfix.1" + "@walmart/digital-locks-mini-app": "npm:1.1.3-osirisfix.2" "@walmart/emergency-mini-app": "npm:1.30.5" "@walmart/exception-mini-app": "npm:1.8.11" "@walmart/facilities-management-miniapp": "npm:0.17.0" @@ -7473,7 +7473,7 @@ __metadata: "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.15.0" "@walmart/rfid-scan-mini-app": "npm:2.7.1" - "@walmart/rn-mobile-sdk-pairing": "npm:2.1.4-osirisfix.2" + "@walmart/rn-mobile-sdk-pairing": "npm:2.1.4-osirisfix.4" "@walmart/rn-receiving-mini-app": "npm:2.4.45" "@walmart/roster-mini-app": "npm:2.9.0" "@walmart/schedule-mini-app": "npm:1.13.0" @@ -8196,14 +8196,13 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-mobile-sdk-pairing@npm:2.1.4-osirisfix.2": - version: 2.1.4-osirisfix.2 - resolution: "@walmart/rn-mobile-sdk-pairing@npm:2.1.4-osirisfix.2" +"@walmart/rn-mobile-sdk-pairing@npm:2.1.4-osirisfix.4": + version: 2.1.4-osirisfix.4 + resolution: "@walmart/rn-mobile-sdk-pairing@npm:2.1.4-osirisfix.4" peerDependencies: - "@walmart/invue-react-native-sdk": 0.1.26-beta.3 react: "*" react-native: "*" - checksum: 10c0/63e928117900608122d8b4a5761983a862717153329e522eb3f6498d243d88ecf12d3f7d0546ffe21299639582a83fb8c90424b24073705b5db3205eb956ebd6 + checksum: 10c0/86adaa240ea7db7d9dbf76c39dca53a83ce7e2534d9ee697b0cf11093a56434a41cd1a4aaa2f782dbf4d63aaac8bd46d52bb56430a31255dcde8f924cf38333e languageName: node linkType: hard
bump to mini app osirisfix.2, pairing app osirisfix.4
bump to mini app osirisfix.2, pairing app osirisfix.4
3619c003114a8f06475f84d14e478a09cf9de28f
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/Tabs/__snapshots__/MeStackNavTest.tsx.snap @@ -3,6 +3,7 @@ exports[`MeStackNav headerLeft of initial screen match snapshot 1`] = ` [ <IconButton + accessibilityLabel="drawerButton.accessiblityLabel" color="white" disabled={false} onPress={[Function]} --- core/__tests__/navigation/USHallway/AssociateHallwayNav/Tabs/__snapshots__/MyTeamStackNavTest.tsx.snap @@ -26,6 +26,7 @@ exports[`MyTeamStackNav matches snapshot - attendanceminiapp false 1`] = ` exports[`MyTeamStackNav matches snapshot - attendanceminiapp false 2`] = ` [ <IconButton + accessibilityLabel="drawerButton.accessiblityLabel" color="white" disabled={false} onPress={[Function]} @@ -77,6 +78,7 @@ exports[`MyTeamStackNav matches snapshot 1`] = ` exports[`MyTeamStackNav matches snapshot 2`] = ` [ <IconButton + accessibilityLabel="drawerButton.accessiblityLabel" color="white" disabled={false} onPress={[Function]}
updating tests
updating tests
7bbb9bd1a950d1e6a1a472ab6ade3861b26a6ffc
--- package-lock.json @@ -4333,9 +4333,9 @@ } }, "@walmart/payrollsolution_miniapp": { - "version": "0.98.0", - "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.98.0.tgz", - "integrity": "sha512-wt41q4osD4+sahqXwsuwrgMzi4JPJpDYQPmno2WtX05R90R4PnsubrLlBuIUBAEzL0PXnu1LNf+YM9ngYqNH8w==" + "version": "0.101.0", + "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.101.0.tgz", + "integrity": "sha512-/zO9JFCWaeOax8galEjTlr49p0wrLTb2AjpuW4U/PBlHrUUpGtnZ75NJfu14Ptzo4vKbflMgJ3vmyqdyEftedg==" }, "@walmart/price-changes-mini-app": { "version": "1.0.6", @@ -4538,9 +4538,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.46.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.46.0.tgz", - "integrity": "sha512-Mry9YpU3oYC0YoslsEYr7bLBaCLWbJV5kOaxj8a69FGr9/veSBSa/N+GMuyt6pG2KyqyoXsGXixeYlVKCLHNvw==" + "version": "0.47.0", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.47.0.tgz", + "integrity": "sha512-AvGogrjaqFMpTdWMl5oBpS9Phm6+dOUHu8FVvmOkBnzLiRwAysmeQIPkrtEu5haqIgMR4UhSh7XcDLLi/XvBAA==" }, "@walmart/wfm-ui": { "version": "0.2.11", --- package.json @@ -89,7 +89,7 @@ "@walmart/manager-approvals-miniapp": "0.0.59", "@walmart/metrics-mini-app": "0.6.1", "@walmart/moment-walmart": "1.0.4", - "@walmart/payrollsolution_miniapp": "0.98.0", + "@walmart/payrollsolution_miniapp": "0.101.0", "@walmart/price-changes-mini-app": "1.0.6", "@walmart/push-to-talk-mini-app": "0.5.101", "@walmart/react-native-env": "^0.2.0", @@ -104,7 +104,7 @@ "@walmart/taskit-mini-app": "0.239.0-rc.4", "@walmart/time-clock-mini-app": "0.4.32", "@walmart/ui-components": "1.3.0-rc.14", - "@walmart/welcomeme-mini-app": "0.46.0", + "@walmart/welcomeme-mini-app": "0.47.0", "@walmart/wfm-ui": "0.2.11", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
chore(welcomeMe): WelcomeMe v0.47.0 | PayrollMiniApp v0.101.0
chore(welcomeMe): WelcomeMe v0.47.0 | PayrollMiniApp v0.101.0
8fe34b577a0dac1ad2e3726ef8527ad2b7340764
--- packages/allspark-foundation/src/Components/ComponentContainers.md @@ -177,3 +177,12 @@ Returns `true` if the component exists in the container. const hasEmergencyCard = HomeScreen.hasComponent('emergency-card'); // true in example above ``` + +#### `getComponents` + +Returns list of components added to the container. + +```tsx +const components = HomeScreen.getComponents(); +// ['emergency-card'] in example above +``` \ No newline at end of file --- packages/allspark-foundation/src/Components/ComponentContainers.tsx @@ -63,6 +63,13 @@ export class ComponentContainer<Props extends AnyObject> { return this._components.get(id); }; + /** + * Returns an array of component IDs added to the container. + */ + public getComponents = () => { + return Array.from(this._components.keys()); + }; + /** * Returns true if the container has a component with the given ID. */ @@ -247,6 +254,13 @@ class ComponentContainerManager { return this._containers[containerId]?.getComponent(id); }; + /** + * Returns an array of component IDs added to the container. + */ + public getComponents = (containerId: string) => { + return this._containers[containerId]?.getComponents(); + }; + /** * Returns true if the container has a component with the given ID. */
feat: add get components method to component container
feat: add get components method to component container
cc44e28a84c89483dc24733d6305a20da73fc239
--- targets/US/package.json @@ -89,7 +89,7 @@ "@walmart/attendance-mini-app": "3.44.0", "@walmart/avp-feature-app": "0.10.7", "@walmart/avp-shared-library": "0.10.1", - "@walmart/backroom-mini-app": "1.5.15", + "@walmart/backroom-mini-app": "1.5.18", "@walmart/calling-mini-app": "0.5.17", "@walmart/checkout-mini-app": "3.24.0", "@walmart/compass-sdk-rn": "5.19.15", --- yarn.lock @@ -6068,9 +6068,9 @@ __metadata: languageName: node linkType: hard -"@walmart/backroom-mini-app@npm:1.5.15": - version: 1.5.15 - resolution: "@walmart/backroom-mini-app@npm:1.5.15" +"@walmart/backroom-mini-app@npm:1.5.18": + version: 1.5.18 + resolution: "@walmart/backroom-mini-app@npm:1.5.18" dependencies: pubsub-js: "npm:^1.9.4" react-native-mask-input: "npm:^1.2.3" @@ -6093,7 +6093,7 @@ __metadata: react-native-svg-transformer: ">=1.0.0" react-redux: ^8.0.0 redux: ^4.0.0 - checksum: 10c0/bd5479920d524118a73ca8c014c7aca62f9f96e5a94387d88221e06e768accb377163f17fc4178819e4f391ddc04e3990d803293b4b2854a26caac5127eef207 + checksum: 10c0/797ed0429e6b5a839cf4ca082c81a4d0095339360a35c031b50461814d6c839ed764e0fc98a6b1ed446374283232eec068093ec0a8a00dbae1d487ac2238e22b languageName: node linkType: hard @@ -6996,7 +6996,7 @@ __metadata: "@walmart/attendance-mini-app": "npm:3.44.0" "@walmart/avp-feature-app": "npm:0.10.7" "@walmart/avp-shared-library": "npm:0.10.1" - "@walmart/backroom-mini-app": "npm:1.5.15" + "@walmart/backroom-mini-app": "npm:1.5.18" "@walmart/calling-mini-app": "npm:0.5.17" "@walmart/checkout-mini-app": "npm:3.24.0" "@walmart/compass-sdk-rn": "npm:5.19.15"
Update @walmart/backroom-mini-app to 1.5.18
Update @walmart/backroom-mini-app to 1.5.18
34a8a31bab1985a472a11a497b0e73db68f89252
--- babel.config.js @@ -1,7 +1,8 @@ module.exports = (api) => { const babelEnv = api.env(); - console.log('sva babelEnv', babelEnv); + + console.log('sva babelEnv', babelEnv, 'ci', process.env.CI); const plugins = ['react-native-reanimated/plugin']; //change to 'production' to check if this is working in 'development' mode if (babelEnv !== 'production') {
added CI
added CI
5c01f3c8997ff152eb605e1759da4bcd9113e2c0
--- core/src/oneClick/DataSelector.tsx @@ -1,7 +0,0 @@ -import {createSelector} from 'reselect'; -import {IAllsparkReduxState} from '@walmart/allspark-foundation/Redux'; - -export const getAppConfig = (state: IAllsparkReduxState): any => - state?.appConfig; - -export const AppConfigSelector = createSelector([getAppConfig], (data) => data); --- core/src/oneClick/MiniApps.ts @@ -1,63 +0,0 @@ -export enum MINI_APPS { - ASK_SAM = 'ask_sam', - ITEM_INFO = 'item_info', - MESSAGES = 'messages', - TASKS = 'tasks', - ME = 'me', - HOME = 'home', - SCHEDULE = 'schedule', - INBOX = 'inbox', - MYTEAM = 'myTeam', - TIME_OFF_REQUEST = 'timeOffRequest', - VACCINE_VERIFICATION = 'vaccineVerification', - VACCINATION_REPORT = 'vaccinationReport', - FEEDBACK_ME = 'feedback-me', - IDEAS_ME = 'ideas-me', - CONCERN_ME = 'concern-me', - SETTINGS_ME = 'settings-me', - WHATSNEW_ME = 'whatsNew-me', - AVAILABILITY = 'availability', - AISLE_LOC_ZONE = 'AisleLocZone', - FEATURES_LANDING = 'FeaturesLanding', - ITEMINFO = 'itemInfo', - MANAGER_APPROVALS = 'managerApprovals', - MOD_LANDING = 'ModLanding', - PIN_POINT = 'pinpoint', - PRICE_CHANGES = 'priceChanges', - AVAILABILTY_FEEDBACK = 'availabilty-feedback', - VAILABILTY_IDEAS = 'vailabilty-ideas', - AVAILABILTY_CONCERN = 'availabilty-concern', - AVAILABILTY_SETTINGS = 'availabilty-settings', - AVAILABILTY_WHATSNEW = 'availabilty-whatsNew', - REFRIGERATIONALARM = 'refrigerationAlarm', - PICKING = 'picking', - ALARM_HISTORY = 'alarmHistory', - ALARM_FEEDBACK = 'alarm-feedback', - ALARM_IDEAS = 'alarm-ideas', - ALARM_CONCERN = 'alarm-concern', - ALARM_SETTINGS = 'alarm-settings', - ALARM_WHATSNEW = 'alarm-whatsNew', - CHECKOUT_RETURN = 'checkoutReturn', - RECEIPT_CHECK = 'receiptCheck', - FEEDBACK_CHECKOUT = 'feedback-checkout', - CHECKOUT_IDEAS = 'checkout-ideas', - CHECKOUT_CONCERN = 'checkout-concern', - SETTINGS_CHECKOUT = 'settings-checkout', - WHATSNEW_CHECKOUT = 'whatsNew-checkout', - FACILITY_MANAGEMENT = 'facilityManagement', - OVERVIEW = 'overview', - REPORT_AN_ISSUE = 'report-an-issue', - NEEDS_ATTENTION = 'needs-attention', - ALL_ISSUES = 'all-issues', - GLOBALISSUE_FACILITY = 'globalIssue-facility', - SCHEDULED_SERVICE_FACILITY = 'scheduledService-facility', - FEEDBACK_FACILITY = 'feedback-facility', - SETTINGS_FACILITY = 'settings-facility', - WHATSNEW_FACILITY = 'whatsNew-facility', - GIF = 'gif', - HOLIDAY_PLUS_UP = 'HolidayPlusUp', - ASKSAM = 'askSam', - TASKIT = 'taskit', - COPILOT = 'copilot', - TOPSTOCK = 'topstock', -} --- core/src/oneClick/OneClickSagas.tsx @@ -1,41 +0,0 @@ -import {takeLatest, select, put} from 'redux-saga/effects'; -import {createRestartableSaga} from '@walmart/allspark-utils'; - -import {Logger} from '../core/Logger'; - -import {NavConfigActionCreators} from '@walmart/allspark-foundation/Navigation'; -import {updateMegaNavCCM} from './utility/updateMegaNavCCM'; -import {MeganavSelector} from '../rbacConfig/DataSelector'; -import {AppConfigSelector} from './DataSelector'; -import {ConfigActionTypes} from '@walmart/allspark-foundation/Config'; - -export function* onOneClickRequest(): any { - try { - // App config data - const appConfigData = yield select(AppConfigSelector); - //meganav data from ccm - const meganavData = yield select(MeganavSelector); - - //Calling updateMeganavData for the updated data - const updateMegaNavCCMData = updateMegaNavCCM( - meganavData.data, - appConfigData?.data?.oneClick, - ); - - //updating the meganav data - yield put(NavConfigActionCreators.fetchSuccess(updateMegaNavCCMData)); - } catch (error) { - Logger.error('Error updating meganav from OneClickCCM config', { - message: (error as Error).message, - }); - } -} - -export function* watchForAppConfigRequest() { - yield createRestartableSaga( - takeLatest( - [ConfigActionTypes.FETCH_SUCCESS, ConfigActionTypes.BACKGROUND_REFRESH], - onOneClickRequest, - ), - ); -} --- core/src/oneClick/index.ts @@ -1,11 +0,0 @@ -import {AllsparkFeatureModule} from '@walmart/allspark-foundation/Feature'; -import {FeatureTags} from '@walmart/me-at-walmart-common'; -import {watchForAppConfigRequest} from './OneClickSagas'; - -export const OneClickFeature = new AllsparkFeatureModule('oneClickCCMChange', { - name: 'OneClick', - tags: [FeatureTags.associate], - redux: { - saga: watchForAppConfigRequest, - }, -}); --- core/src/oneClick/useOneClick.ts @@ -1,13 +0,0 @@ -import {useSelector} from 'react-redux'; -import {AppConfigSelector} from './DataSelector'; -import {MINI_APPS} from './MiniApps'; - -export const useOneClick = () => { - const appConfig = useSelector(AppConfigSelector); - const oneClick = appConfig?.oneClick; - - const isMiniAppEnabled = (miniAppName: MINI_APPS): boolean => - oneClick?.[miniAppName]?.enable ?? false; - - return {isMiniAppEnabled, MINI_APPS}; -}; --- core/src/oneClick/utility/updateMegaNavCCM.js @@ -1,24 +0,0 @@ -import _ from 'lodash'; - -export const updateMegaNavCCM = (meganavData, oneClickMapper) => { - const meganavClonedData = _.cloneDeep(meganavData); - const updateEnabled = (menu) => { - if (!menu) { - return; - } - const {id} = menu; - const app = oneClickMapper?.[id]; - menu.enabled = app?.enable ?? menu.enabled; - }; - - meganavClonedData?.data.forEach((navItem) => { - navItem.navs.forEach((menu) => { - if (menu?.subMenus) { - menu.subMenus.forEach(updateEnabled); - } - updateEnabled(menu); - }); - }); - - return meganavClonedData; -};
ALLSPARK-3906: remove one click from core
ALLSPARK-3906: remove one click from core
fe093fe2e60b714cae540c97eab7092467217287
--- packages/allspark-cli/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.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-cli@1.4.1...@walmart/allspark-cli@1.4.2) (2025-10-17) + +### Bug Fixes + +- **cli:** fix build issue ([#434](https://gecgithub01.walmart.com/allspark/allspark/issues/434)) ([ff5d3d2](https://gecgithub01.walmart.com/allspark/allspark/commit/ff5d3d2daa50529fca1c08d5a434b3a19e477364)) + ## [1.4.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-cli@1.4.0...@walmart/allspark-cli@1.4.1) (2025-10-16) **Note:** Version bump only for package @walmart/allspark-cli --- packages/allspark-cli/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-cli", - "version": "1.4.1", + "version": "1.4.2", "description": "Allspark CLI: CLI tools for allspark clients", "main": "dist/index.js", "types": "dist/index.d.ts", --- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.19.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.0...@walmart/allspark-foundation-hub@1.19.1) (2025-10-17) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + # [1.19.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.18.7...@walmart/allspark-foundation-hub@1.19.0) (2025-10-16) ### Bug Fixes --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.19.0", + "version": "1.19.1", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.1.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.1.0...@walmart/allspark-foundation@7.1.1) (2025-10-17) + +**Note:** Version bump only for package @walmart/allspark-foundation + # [7.1.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@6.62.3...@walmart/allspark-foundation@7.1.0) (2025-10-16) ### Bug Fixes --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.1.0", + "version": "7.1.1", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/me-at-walmart-geolocation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.0...@walmart/me-at-walmart-geolocation@1.3.1) (2025-10-17) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + # [1.3.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.2.33...@walmart/me-at-walmart-geolocation@1.3.0) (2025-10-16) ### Features --- packages/me-at-walmart-geolocation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-geolocation", - "version": "1.3.0", + "version": "1.3.1", "description": "Geofencing, location tracking and location services for me@ apps", "author": "m0n09mr <maksym.novakh@walmart.com>", "main": "./lib/cjs/index.js",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-cli@1.4.2 - @walmart/allspark-foundation@7.1.1 - @walmart/allspark-foundation-hub@1.19.1 - @walmart/me-at-walmart-geolocation@1.3.1
4eaa5938543854eab83ebe45360b972bea77da36
--- packages/allspark-foundation/src/Components/Banners/AllsparkBanner.tsx @@ -47,7 +47,7 @@ export const AllsparkBanner = (props: { const { banner, onRemove } = props; const { id, type = 'banner', variant = 'info', closable, value } = banner; - const {t} = useAllsparkTranslation(); + const { t } = useAllsparkTranslation(); const onClose = (e: GestureResponderEvent) => { banner.onClose?.(e); @@ -75,7 +75,9 @@ export const AllsparkBanner = (props: { UNSAFE_style={[styles.alert, banner.style]} actionButtonProps={{ ...((banner as AlertConfig).actionButtonProps || {}), - children: (banner as AlertConfig).actionButtonProps?.value ? t((banner as AlertConfig).actionButtonProps!.value) : undefined, + children: (banner as AlertConfig).actionButtonProps?.value + ? t((banner as AlertConfig).actionButtonProps!.value) + : undefined, onPress: (e) => { (banner as AlertConfig).actionButtonProps?.onPress(e); },
Fixed lint issues.
Fixed lint issues.
186368c7bea4eb3a49d3e8f2375d2897895f1bec
--- packages/allspark-foundation/__tests__/Work/redux.test.tsx @@ -17,6 +17,16 @@ describe('WorkActions', () => { type: 'work/WORK_FLOW_COMPLETE', }); }); + test('create the correct "work flow incomplete" action', () => { + expect(WorkActions.WORK_FLOW_INCOMPLETE()).toEqual({ + type: 'work/WORK_FLOW_INCOMPLETE', + }); + }); + test('create the correct "work flow error" action', () => { + expect(WorkActions.WORK_FLOW_ERROR()).toEqual({ + type: 'work/WORK_FLOW_ERROR', + }); + }); }); describe('WorkSelectors', () => { const state = { work: { ...WORK_STATE } } as IAllsparkReduxState; --- packages/allspark-foundation/src/Work/redux.ts @@ -4,28 +4,19 @@ import { generateSelectorsForSlice, } from '../Redux/utils'; import { InferActionTypes } from '../Redux/types'; -import { ParamListBase } from '@react-navigation/native'; -import { StackNavigationProp } from '@react-navigation/stack'; -export type WorkFlows = 'topstock' | 'pinpoint' | 'vizpick'; +export type WorkFlows = 'topstock' | 'pinpoint' | 'vizpick'; export interface WorkState { workFlow: WorkFlows | null; actionId: string | null; } -export interface WorkFlowStart extends WorkState { - /** TO-DO add description about this object */ - actionMetadata?: {[key: string]: any}; - destinationScreen: string; // should this come from actionMetaData? -} - const INITIAL_STATE: WorkState = { workFlow: null, actionId: null, }; - /** * Track work flows that start in sidekick-mini-app but end in * a different work-mini-app, such as topstock-mini-app or pinpoint-mini-app @@ -48,7 +39,7 @@ export const workSlice = createSlice({ }, WORK_FLOW_ERROR: (state, _: PayloadAction<undefined, string>) => { state.workFlow = null; - state.workFlow = null; + state.workFlow = null; }, }, });
fix: add incomplete and error actions DWORK-7010
fix: add incomplete and error actions DWORK-7010
1a4df132edbc9441526346b7083a749f6f7c49fd
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.15.34", + "version": "1.15.35", "main": "dist/index.js", "files": [ "dist" @@ -81,7 +81,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.20.0", - "@walmart/allspark-foundation-hub": "1.2.7-alpha.8", + "@walmart/allspark-foundation-hub": "1.2.7-alpha.9", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.12.36", + "@walmart/roster-mini-app": "2.12.37", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -5992,9 +5992,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.2.7-alpha.8": - version: 1.2.7-alpha.8 - resolution: "@walmart/allspark-foundation-hub@npm:1.2.7-alpha.8" +"@walmart/allspark-foundation-hub@npm:1.2.7-alpha.9": + version: 1.2.7-alpha.9 + resolution: "@walmart/allspark-foundation-hub@npm:1.2.7-alpha.9" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6010,7 +6010,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/d79eb944a09c987c509511e5f4176c18dcdb398a9f15814452b50b9b884831f94a2554d69be3198234ee3e6c46657605e34c86ecf02ab9424661aac26b10ed81 + checksum: 10c0/51bcfe78e4e1a0742d9305a31aba8464b5f2cb78deb4b86ebd979ee04f4e004a8728eff00424dd6b7819fda883ee4191d0cf45773d908ffe5180ef4a4a5249cc languageName: node linkType: hard @@ -6398,7 +6398,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.20.0" - "@walmart/allspark-foundation-hub": "npm:1.2.7-alpha.8" + "@walmart/allspark-foundation-hub": "npm:1.2.7-alpha.9" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.12.36" + "@walmart/roster-mini-app": "npm:2.12.37" "@walmart/ui-components": "npm:1.15.1" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" @@ -6597,9 +6597,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.12.36": - version: 2.12.36 - resolution: "@walmart/roster-mini-app@npm:2.12.36" +"@walmart/roster-mini-app@npm:2.12.37": + version: 2.12.37 + resolution: "@walmart/roster-mini-app@npm:2.12.37" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6641,7 +6641,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/85b69ea1ae48e8d39acead4d029a7ba6ec2a2f4e00b0c72df8614f7ab49bd6aab9444a4ece7da4576dbdd45e8b985724cce69017e6160cbb1e49bec532fae687 + checksum: 10c0/c88b1f32d6547bce02f8fcb60f7e66e8135e7ac9589eaacdb82685e97942a5b4614494a9ae16f93102a60b08a2f243dcc80fa3326d90a6889e7d5713ffe3f5ce languageName: node linkType: hard
Update the roster mini app version
Update the roster mini app version
bbb2176025f5c5c8c09cace80f17520169a4e885
--- src/translations/es-MX.ts @@ -117,7 +117,7 @@ export const esMX_common = { }, navigation: { askSam: 'Ask Sam', - copilot: 'Work', + copilot: 'Trabajo', emergency: 'Message Details', featureRestrictions: 'Restricciones', feedback: 'Comentarios',
chore: fix spanish translation
chore: fix spanish translation
77cca5a30e11699c54b091ff7d9068fb0e351fec
--- __tests__/navigation/__snapshots__/indexTest.tsx.snap @@ -75,6 +75,7 @@ exports[`RootNav matches snapshot when app accessible 1`] = ` options={ Object { "headerBackImage": undefined, + "headerShown": true, "title": "navigation.signInFailed", } } --- src/navigation/index.tsx @@ -90,7 +90,9 @@ export const RootNav = () => { name='Core.ErrorScreen' component={ErrorScreen} options={{ + ...modalTransitionOptions, ...commonModalHeaderProps, + headerShown: true, title: translate('navigation.signInFailed'), headerBackImage: renderHeaderCloseImage, }}
Displaying error screen as modal
Displaying error screen as modal
8ff386651867554b58d19daaa26fd60f93897528
--- docs/CHANGELOG.md @@ -1,3 +1,28 @@ +## [2.25.4](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.25.3...v2.25.4) (2025-04-07) + + +### Bug Fixes + +* **bug:** add tests for AllTeamsScreen ([d299a57](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/d299a57b3e4fad69c1447c17afea995139780995)) +* **bug:** add tests for AllTeamsScreen ([e492a7b](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/e492a7b11e20d2c943169a2463a834dfe4f2c5b9)) +* **bug:** add tests for SupplyChainAllTeamsScreen ([f561c5a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/f561c5a1e03dec96fb7bc4cc4d7d89cb43e47a7e)) +* **bug:** add tests for SupplyChainAllTeamsScreen ([aff3f30](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/aff3f3069e496489668e5c2ca12d6cfe04750b78)) +* **bug:** adding additional test coverage ([ec59a64](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ec59a6456247675fcc6d86137fc3eeb46eeed326)) +* **bug:** adding additional test coverage ([ef14686](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ef14686ac29fc14eea312a31b83a0f89ca080ef6)) +* **bug:** ensure both screens pass down the necessary props ([8867b58](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/8867b586b4e65fc48713d31febc75fee7e4fd468)) +* **bug:** fix linting warnings ([db58565](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/db58565145b6870139ddcb6789e468518921fde6)) +* **bug:** fix linting warnings ([716ca76](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/716ca76f6cd6ab83c86b2a417952a2659682458c)) +* **bug:** fix linting warnings ([cae2bbd](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/cae2bbddfd59101595c79521a4c69a87d53ddeeb)) +* **bug:** fix linting warnings ([40ab0c8](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/40ab0c806e030c9c36f85b638e5b3b2a39c016d5)) +* **bug:** fix linting warnings ([7c83e56](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/7c83e563503f984ca6e96c993450af94e588a31a)) +* **bug:** fix linting warnings ([e663351](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/e663351075f872e5e3089c3e58f7f44e3f6acc54)) +* **bug:** fix linting warnings ([862810f](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/862810f3c61383fde95ec0cb92432aba4c3e17ff)) +* **bug:** fix linting warnings ([be1e759](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/be1e759a4d4885792e50fe243fd0cb37c1400ac7)) +* **bug:** fix/add tests ([fe07303](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/fe0730398084f3f1d04f2417af1261b0b9cebe50)) +* **bug:** move selected shift to parent components ([99a32a7](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/99a32a74343d7f1e1350247f8b38314ab720d5de)) +* **bug:** move selected shift to parent components ([39600a1](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/39600a10adbef4e6c6619e3b016ddebaf7572056)) +* **ui:** update test changes ([b5c73e3](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b5c73e39684fca114af6f52e151548374ebf2719)) + ## [2.25.3](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.25.2...v2.25.3) (2025-04-07) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.25.3", + "version": "2.25.4", "main": "dist/index.js", "files": [ "dist"
chore(release): 2.25.4 [skip ci]
chore(release): 2.25.4 [skip ci] ## [2.25.4](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.25.3...v2.25.4) (2025-04-07) ### Bug Fixes * **bug:** add tests for AllTeamsScreen ([d299a57](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/d299a57b3e4fad69c1447c17afea995139780995)) * **bug:** add tests for AllTeamsScreen ([e492a7b](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/e492a7b11e20d2c943169a2463a834dfe4f2c5b9)) * **bug:** add tests for SupplyChainAllTeamsScreen ([f561c5a](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/f561c5a1e03dec96fb7bc4cc4d7d89cb43e47a7e)) * **bug:** add tests for SupplyChainAllTeamsScreen ([aff3f30](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/aff3f3069e496489668e5c2ca12d6cfe04750b78)) * **bug:** adding additional test coverage ([ec59a64](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ec59a6456247675fcc6d86137fc3eeb46eeed326)) * **bug:** adding additional test coverage ([ef14686](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ef14686ac29fc14eea312a31b83a0f89ca080ef6)) * **bug:** ensure both screens pass down the necessary props ([8867b58](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/8867b586b4e65fc48713d31febc75fee7e4fd468)) * **bug:** fix linting warnings ([db58565](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/db58565145b6870139ddcb6789e468518921fde6)) * **bug:** fix linting warnings ([716ca76](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/716ca76f6cd6ab83c86b2a417952a2659682458c)) * **bug:** fix linting warnings ([cae2bbd](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/cae2bbddfd59101595c79521a4c69a87d53ddeeb)) * **bug:** fix linting warnings ([40ab0c8](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/40ab0c806e030c9c36f85b638e5b3b2a39c016d5)) * **bug:** fix linting warnings ([7c83e56](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/7c83e563503f984ca6e96c993450af94e588a31a)) * **bug:** fix linting warnings ([e663351](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/e663351075f872e5e3089c3e58f7f44e3f6acc54)) * **bug:** fix linting warnings ([862810f](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/862810f3c61383fde95ec0cb92432aba4c3e17ff)) * **bug:** fix linting warnings ([be1e759](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/be1e759a4d4885792e50fe243fd0cb37c1400ac7)) * **bug:** fix/add tests ([fe07303](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/fe0730398084f3f1d04f2417af1261b0b9cebe50)) * **bug:** move selected shift to parent components ([99a32a7](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/99a32a74343d7f1e1350247f8b38314ab720d5de)) * **bug:** move selected shift to parent components ([39600a1](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/39600a10adbef4e6c6619e3b016ddebaf7572056)) * **ui:** update test changes ([b5c73e3](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/b5c73e39684fca114af6f52e151548374ebf2719))
ca996297df55b4fd3fe9a4566fb31b67671ef86c
--- .looper.multibranch.yml @@ -259,6 +259,7 @@ flows: - echo "default flow not required" pr: + - echo "PR flow is being executed" - excludeTools(): - tools(maven, jdk, android) - npm install
Update .looper.multibranch.yml
Update .looper.multibranch.yml
1b8f107da5a0eecf347e03d7c2ddb49fe2971d94
--- package.json @@ -102,7 +102,7 @@ "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "6.1.4", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "2.5.4", + "@walmart/wmconnect-mini-app": "2.6.0", "babel-jest": "^29.2.1", "chance": "^1.1.11", "eslint": "8.22.0", --- yarn.lock @@ -6256,7 +6256,7 @@ __metadata: "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:6.1.4" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:2.5.4" + "@walmart/wmconnect-mini-app": "npm:2.6.0" babel-jest: "npm:^29.2.1" chance: "npm:^1.1.11" eslint: "npm:8.22.0" @@ -6389,9 +6389,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.5.4": - version: 2.5.4 - resolution: "@walmart/wmconnect-mini-app@npm:2.5.4" +"@walmart/wmconnect-mini-app@npm:2.6.0": + version: 2.6.0 + resolution: "@walmart/wmconnect-mini-app@npm:2.6.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6431,7 +6431,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/7442a7563e90f10f0caff7d6b1e81c5801433abcd99ab69d0e84405bbb6c3ae3cc517333789abe61765aa6dddc231ce94dce03a9688f5f0c14c700a1e103a0c4 + checksum: 10c0/6af9c5257a6a5e58388427a9ad8c27dc0de68a4fb54fcf085f010bf28d4b76f803e7ee45b2ae55b1eca98c534a810e00ceab92f7c4ecd56edc5b1e4ae3a9cb13 languageName: node linkType: hard
fix(ui): updated wmconnect version for roster
fix(ui): updated wmconnect version for roster
f17272d966e065b76ba16d8764329c620cb0cb03
--- packages/allspark-foundation/src/Navigation/utils.tsx @@ -1,4 +1,4 @@ -import React, { PropsWithChildren, useEffect } from 'react'; +import React, { PropsWithChildren, useEffect, forwardRef, useImperativeHandle } from 'react'; import { NavigationContainerRef, ParamListBase, @@ -64,24 +64,31 @@ export const createNavigationContainerAdapter = ( useRef: () => NavigationContainerRef<any>, useRouteName: () => string ) => { - const NavigationContainerAdapter = (props: PropsWithChildren<{}>) => { + const NavigationContainerAdapter = forwardRef< + NavigationContainerRef<any>, + PropsWithChildren<{}> + >((props, _ref) => { const { children } = props; const ref = useRef(); const routeName = useRouteName(); + // Connect the custom ref to the forwarded ref + // Usage: <NavigationContainer ref={ref} /> will ensure that the value of ref is set to the useRef value + useImperativeHandle(_ref, () => ref, [ref]); + + // Call onReady on mount useEffect(() => { - // @ts-ignore - AllsparkNavigationClient._ref = ref; AllsparkNavigationClient.NavigationContainerProps.onReady(); }, []); + // Call onStateChange when the route name changes useEffect(() => { AllsparkNavigationClient.NavigationContainerProps.onStateChange(); }, [routeName]); return <>{children}</>; - }; + }); return NavigationContainerAdapter; };
fix(navigation): ref unhandled on NavigationContainer adapter
fix(navigation): ref unhandled on NavigationContainer adapter
dd3e523fdb2140c3778b695e6a4b442b351ed46f
--- package.json @@ -83,7 +83,7 @@ "@walmart/feedback-all-spark-miniapp": "0.3.8", "@walmart/functional-components": "2.0.3", "@walmart/gta-react-native-calendars": "0.0.15", - "@walmart/gtp-shared-components": "1.8.5", + "@walmart/gtp-shared-components": "1.8.6", "@walmart/impersonation-mini-app": "1.2.0", "@walmart/ims-print-services-ui": "0.1.34", "@walmart/inbox-mini-app": "0.40.0",
Update package.json
Update package.json
3b3c6571fdaf6b7264c0e72850d19bb59c4c9052
--- packages/allspark-foundation/src/Components/Onboarding/TeamSelection/Screens/TeamSelection.tsx @@ -20,7 +20,7 @@ export const TeamSelection = () => { return viewerTeam; }; const primaryTeam = useGetViewersPrimaryTeamName(); - const primaryTeamName = primaryTeam?.[0]?.teamName; + const primaryTeamName = primaryTeam?.[0]?.teamName || ''; const storeNbr: string | undefined = useSelector( UserSelectors.getWorkingSite );
Updating primaryTeamName
Updating primaryTeamName
b8334322d582443b187760a8bd0b2e035e38a425
--- package-lock.json @@ -39,7 +39,7 @@ "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", - "@walmart/config-components": "4.2.0-98-336725c", + "@walmart/config-components": "4.2.0-98-f23262b", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.11.0", "@walmart/core-utils": "~2.0.5", @@ -55,7 +55,7 @@ "@walmart/gtp-shared-components": "2.0.6", "@walmart/impersonation-mini-app": "1.20.0-145-f14b734", "@walmart/ims-print-services-ui": "2.4.1", - "@walmart/inbox-mini-app": "0.85.0-426-0a4ede5", + "@walmart/inbox-mini-app": "0.85.0-426-250b0ab", "@walmart/iteminfo-mini-app": "7.3.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "12.0.25", @@ -4956,9 +4956,9 @@ } }, "node_modules/@walmart/config-components": { - "version": "4.2.0-98-336725c", - "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-336725c.tgz", - "integrity": "sha512-nohlns7OAOSTr7B2GUu0j70KWimoyWpMtgVeoQhLaYYXbnltJ3GRvvOGDHAYILYnhH0lMwOX+EzKzuuETdN46w==", + "version": "4.2.0-98-f23262b", + "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-f23262b.tgz", + "integrity": "sha512-yS7RGOwhrBZwshB45Nyt2Ea9vw9cWNonzLFvhIQFcgL3QMGgUFryf9jp3mx/uqbd0ZjtvAd96SNCLRviU+sKag==", "dependencies": { "reduxsauce": "^1.2.1", "reselect": "^4.1.5" @@ -5354,9 +5354,9 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.85.0-426-0a4ede5", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.0-426-0a4ede5.tgz", - "integrity": "sha512-jHgG49VX1JcqaABQlGy64VUfQ3n2C5GQny0cxG3iK4XYVCxDBr/ZA8vlmkQMmlJVObL/koqyM+cKm4Wb0nt4VA==", + "version": "0.85.0-426-250b0ab", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.0-426-250b0ab.tgz", + "integrity": "sha512-SjuU3l0Zva9bJlca7iGAKUux9EXu37RRmZlusIIOr1JxaZ3gcukX/ybSIzwiFNR0YscRJWsgI5SzE6qu6CB7Ug==", "dependencies": { "@shopify/flash-list": "^1.4.3", "@walmart/moment-walmart": "^1.0.4", @@ -25188,9 +25188,9 @@ "version": "4.0.0" }, "@walmart/config-components": { - "version": "4.2.0-98-336725c", - "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-336725c.tgz", - "integrity": "sha512-nohlns7OAOSTr7B2GUu0j70KWimoyWpMtgVeoQhLaYYXbnltJ3GRvvOGDHAYILYnhH0lMwOX+EzKzuuETdN46w==", + "version": "4.2.0-98-f23262b", + "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.2.0-98-f23262b.tgz", + "integrity": "sha512-yS7RGOwhrBZwshB45Nyt2Ea9vw9cWNonzLFvhIQFcgL3QMGgUFryf9jp3mx/uqbd0ZjtvAd96SNCLRviU+sKag==", "requires": { "reduxsauce": "^1.2.1", "reselect": "^4.1.5" @@ -25310,9 +25310,9 @@ "version": "2.4.1" }, "@walmart/inbox-mini-app": { - "version": "0.85.0-426-0a4ede5", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.0-426-0a4ede5.tgz", - "integrity": "sha512-jHgG49VX1JcqaABQlGy64VUfQ3n2C5GQny0cxG3iK4XYVCxDBr/ZA8vlmkQMmlJVObL/koqyM+cKm4Wb0nt4VA==", + "version": "0.85.0-426-250b0ab", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.85.0-426-250b0ab.tgz", + "integrity": "sha512-SjuU3l0Zva9bJlca7iGAKUux9EXu37RRmZlusIIOr1JxaZ3gcukX/ybSIzwiFNR0YscRJWsgI5SzE6qu6CB7Ug==", "requires": { "@shopify/flash-list": "^1.4.3", "@walmart/moment-walmart": "1.0.4", --- package.json @@ -81,7 +81,7 @@ "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.190.2", "@walmart/compass-sdk-rn": "4.0.0", - "@walmart/config-components": "4.2.0-98-336725c", + "@walmart/config-components": "4.2.0-98-f23262b", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.11.0", "@walmart/core-utils": "~2.0.5", @@ -97,7 +97,7 @@ "@walmart/gtp-shared-components": "2.0.6", "@walmart/impersonation-mini-app": "1.20.0-145-f14b734", "@walmart/ims-print-services-ui": "2.4.1", - "@walmart/inbox-mini-app": "0.85.0-426-0a4ede5", + "@walmart/inbox-mini-app": "0.85.0-426-250b0ab", "@walmart/iteminfo-mini-app": "7.3.4", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-field-mini-app": "12.0.25",
Platform bug fixes
Platform bug fixes