commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
ddb38d74a6ee0800046f7242a2f6e17ad1e0d8ad
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.25.30](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.29...@walmart/allspark-foundation-hub@1.25.30) (2026-01-02) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.25.29](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.28...@walmart/allspark-foundation-hub@1.25.29) (2025-12-29) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.25.29", + "version": "1.25.30", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/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. +## [7.17.10](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.17.9...@walmart/allspark-foundation@7.17.10) (2026-01-02) + +### Bug Fixes + +- **ui:** contextual header render issue ([#560](https://gecgithub01.walmart.com/allspark/allspark/issues/560)) ([0847198](https://gecgithub01.walmart.com/allspark/allspark/commit/0847198ad0b3446dc0bd228c3c524eb505384728)) + ## [7.17.9](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.17.8...@walmart/allspark-foundation@7.17.9) (2025-12-29) **Note:** Version bump only for package @walmart/allspark-foundation --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.17.9", + "version": "7.17.10", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.11.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.11.0...@walmart/my-walmart-hub@1.11.1) (2026-01-02) + +**Note:** Version bump only for package @walmart/my-walmart-hub + # [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 --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.11.0", + "version": "1.11.1", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.17.10 - @walmart/allspark-foundation-hub@1.25.30 - @walmart/my-walmart-hub@1.11.1
6e862c3bffaf2f1335e7881e9da2647146b59950
--- packages/allspark-foundation-hub/src/HubFeature/Store/Hub/Container/AllsparkHubContainer.tsx @@ -38,9 +38,6 @@ export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { }, 'managerExperience.teamOnboarding': { getComponent: () => TeamOnboardingScreen, - options: { - title: 'Hub Onboarding', - }, clockCheckRequired: true, }, }, --- packages/allspark-foundation-hub/src/HubFeature/Store/Onboarding/TeamOnboarding/Screens/TeamOnboardingScreen.tsx @@ -2,28 +2,31 @@ import React, { useEffect } from 'react'; import { TeamOnboarding } from '../Component/TeamOnboarding'; import { AllsparkNavigationClient } from '@walmart/allspark-foundation/Navigation'; import { useAllsparkTranslation } from '@walmart/allspark-foundation/Translation'; -import { FEATURE_ID } from '../../../constant'; import { useTelemetryService } from '@walmart/allspark-foundation/Telemetry'; import { LoggerService } from '@walmart/allspark-foundation/Logger'; import { OnboardingImages } from '../../../Images/images'; import { useSelector } from 'react-redux'; -import { hubOnboardingEnabled } from '../../../Redux'; +import { + ManagerExperienceSelectors, + hubOnboardingEnabled, +} from '../../../Redux'; import { useNavigation } from '@react-navigation/native'; import { useUserPersonaType } from '../../../Hooks/useUserPersonaType'; export const TeamOnboardingScreen = () => { - const { t } = useAllsparkTranslation(FEATURE_ID); + const { t } = useAllsparkTranslation(); const teamSelectionTelemetry = useTelemetryService(); const personaType = useUserPersonaType(); const logger = LoggerService.getContainerInstance(); const showHubOnboardingScreen = useSelector(hubOnboardingEnabled); const navigation = useNavigation(); + const hubScreeName = useSelector(ManagerExperienceSelectors.getHubScreenName); useEffect(() => { navigation.setOptions({ - title: t('teamOnboarding.navigationHeaderFirstEntry'), + title: t('managerExperience.' + hubScreeName), }); - }, [navigation, t]); + }, [hubScreeName, navigation, t]); const handleNavigation = () => { logger.info('Onboarding', {
Update team hub and work hub types
Update team hub and work hub types
48b5034dca341cf11d0888ffedb0f6da66dfb331
--- src/notification.ts @@ -5,14 +5,10 @@ import WmNotification, { import { APP_CONTAINER_SCREEN_NAME, MESSAGES_SCREEN_NAME, - messageTypes, ROOT_CONTAINER_SCREEN_NAME, } from './constants'; import {createChannelPath} from './channels'; import {navigate} from '@walmart/react-native-shared-navigation'; -import {fetchResource} from './services/blob'; -import {Audio} from 'expo-av'; -import {logger} from './logger/Logger'; const goToMessageScreenForChannel = ( storeNumber: string, @@ -35,56 +31,18 @@ const goToMessageScreenForChannel = ( }); }; -const playAudioMessageOrCatch = (remoteURI: string) => { - fetchResource(remoteURI) - .then(async (audioRemoteURI) => { - const {sound} = await Audio.Sound.createAsync({uri: audioRemoteURI}); - await sound.playAsync(); - }) - .catch((e) => { - logger.error( - 'Error during audio playback, unable to process push notification event', - { - message: - 'Error during audio playback, unable to process push notification event', - audioURI: remoteURI, - error: e, - }, - ); - }); -}; - export const backgroundPushNotificationHandler = (event?: SumoPushEvent) => { if (event?.customData?.category === 'pushtotalkv2') { const {storeNumber, channelId} = event?.customData; - if (event.customData.messageType === messageTypes.AUDIO) { - playAudioMessageOrCatch(event.customData.url); - } goToMessageScreenForChannel(storeNumber, channelId); return true; } return false; }; -export const foregroundPushNotificationHandler = (event?: SumoPushEvent) => { - if ( - event?.customData?.category === 'pushtotalkv2' && - event.customData.messageType === messageTypes.AUDIO - ) { - playAudioMessageOrCatch(event.customData.url); - return true; - } - return false; -}; - export const initNotificationListeners = async () => { WmNotification.addListener( SumoPushEventTypes.ON_BACKGROUND_NOTIFICATION, backgroundPushNotificationHandler, ); - - WmNotification.addListener( - SumoPushEventTypes.ON_FOREGROUND_NOTIFICATION, - foregroundPushNotificationHandler, - ); }; --- src/notification.ts @@ -5,14 +5,10 @@ import WmNotification, { import { APP_CONTAINER_SCREEN_NAME, MESSAGES_SCREEN_NAME, - messageTypes, ROOT_CONTAINER_SCREEN_NAME, } from './constants'; import {createChannelPath} from './channels'; import {navigate} from '@walmart/react-native-shared-navigation'; -import {fetchResource} from './services/blob'; -import {Audio} from 'expo-av'; -import {logger} from './logger/Logger'; const goToMessageScreenForChannel = ( storeNumber: string, @@ -35,56 +31,18 @@ const goToMessageScreenForChannel = ( }); }; -const playAudioMessageOrCatch = (remoteURI: string) => { - fetchResource(remoteURI) - .then(async (audioRemoteURI) => { - const {sound} = await Audio.Sound.createAsync({uri: audioRemoteURI}); - await sound.playAsync(); - }) - .catch((e) => { - logger.error( - 'Error during audio playback, unable to process push notification event', - { - message: - 'Error during audio playback, unable to process push notification event', - audioURI: remoteURI, - error: e, - }, - ); - }); -}; - export const backgroundPushNotificationHandler = (event?: SumoPushEvent) => { if (event?.customData?.category === 'pushtotalkv2') { const {storeNumber, channelId} = event?.customData; - if (event.customData.messageType === messageTypes.AUDIO) { - playAudioMessageOrCatch(event.customData.url); - } goToMessageScreenForChannel(storeNumber, channelId); return true; } return false; }; -export const foregroundPushNotificationHandler = (event?: SumoPushEvent) => { - if ( - event?.customData?.category === 'pushtotalkv2' && - event.customData.messageType === messageTypes.AUDIO - ) { - playAudioMessageOrCatch(event.customData.url); - return true; - } - return false; -}; - export const initNotificationListeners = async () => { WmNotification.addListener( SumoPushEventTypes.ON_BACKGROUND_NOTIFICATION, backgroundPushNotificationHandler, ); - - WmNotification.addListener( - SumoPushEventTypes.ON_FOREGROUND_NOTIFICATION, - foregroundPushNotificationHandler, - ); };
removing ability to play audio when app in foreground, remove autoplay of auto when clicking push
removing ability to play audio when app in foreground, remove autoplay of auto when clicking push
1fe9a8a9e544095875d242a5e14c2f2736a0fcfc
--- __tests__/auth/__snapshots__/AuthenticatorViewTest.tsx.snap @@ -65,7 +65,7 @@ exports[`AuthenticatorView renders error 1`] = ` style={ Object { "color": "white", - "fontFamily": "Bogle", + "fontFamily": "Bogle-Regular", "fontSize": 16, "marginTop": 8, } @@ -153,7 +153,7 @@ exports[`AuthenticatorView renders error 1`] = ` "alignSelf": "center", "bottom": 24, "color": "white", - "fontFamily": "Bogle", + "fontFamily": "Bogle-Regular", "fontSize": 12, "position": "absolute", } @@ -222,7 +222,7 @@ exports[`AuthenticatorView renders error 2`] = ` style={ Object { "color": "white", - "fontFamily": "Bogle", + "fontFamily": "Bogle-Regular", "fontSize": 16, "marginTop": 8, } @@ -310,7 +310,7 @@ exports[`AuthenticatorView renders error 2`] = ` "alignSelf": "center", "bottom": 24, "color": "white", - "fontFamily": "Bogle", + "fontFamily": "Bogle-Regular", "fontSize": 12, "position": "absolute", } --- src/auth/AuthenticatorViewStyle.ts @@ -36,7 +36,7 @@ export default StyleSheet.create({ appVersionText: { position: 'absolute', color: 'white', - fontFamily: 'Bogle', + fontFamily: 'Bogle-Regular', fontSize: 12, bottom: 24, alignSelf: 'center', @@ -48,7 +48,7 @@ export default StyleSheet.create({ betaText: { color: 'white', fontSize: 16, - fontFamily: 'Bogle', + fontFamily: 'Bogle-Regular', marginTop: 8, }, }); --- src/navigation/NavigationStyle.ts @@ -12,7 +12,7 @@ export default StyleSheet.create({ left: 56, }, headerTitle: { - fontFamily: 'Bogle', + fontFamily: 'Bogle-Bold', fontSize: 18, fontWeight: 'bold', },
Fixing bogle font references (#157)
Fixing bogle font references (#157) Co-authored-by: rlane1 <rlane1@walmart.com>
e1a6586804604c570b3b707bfcb7b439c1b37c07
--- src/services/config.ts @@ -1,6 +1,4 @@ import type {EnvConfig} from '@walmart/core-services/Environment'; -//@ts-ignore - ignoring importing error from outside src folder -import {version} from '../../package.json'; export const HTTP_CLIENT_KEY = 'texting'; @@ -12,8 +10,6 @@ export const getGraphQLConfig = (envConfig: EnvConfig) => { envConfig.env === 'prod' ? 'cfac4a3d-ae91-43c8-81f5-ceb838e4cd44' : '25fe4e50-7085-4793-863c-08b990282345', - 'x-o-platform': 'texting-miniapp', - 'x-o-platform-version': version, }, }; }; --- src/services/config.ts @@ -1,6 +1,4 @@ import type {EnvConfig} from '@walmart/core-services/Environment'; -//@ts-ignore - ignoring importing error from outside src folder -import {version} from '../../package.json'; export const HTTP_CLIENT_KEY = 'texting'; @@ -12,8 +10,6 @@ export const getGraphQLConfig = (envConfig: EnvConfig) => { envConfig.env === 'prod' ? 'cfac4a3d-ae91-43c8-81f5-ceb838e4cd44' : '25fe4e50-7085-4793-863c-08b990282345', - 'x-o-platform': 'texting-miniapp', - 'x-o-platform-version': version, }, }; };
Revert "SMDV-4816 - adding headers to athena calls for mGQL requirements"
Revert "SMDV-4816 - adding headers to athena calls for mGQL requirements"
448b7280605460050b584cce6ca9d8bee5c7d694
--- package-lock.json @@ -105,7 +105,7 @@ "@walmart/topstock-mini-app": "1.7.1", "@walmart/ui-components": "1.15.9", "@walmart/welcomeme-mini-app": "0.88.2", - "@walmart/wfm-ui": "0.2.26", + "@walmart/wfm-ui": "0.8.4", "@walmart/wm-plus-mini-app": "0.12.20", "@walmart/wmconnect-mini-app": "1.0.17", "axios": "~1.6.0", @@ -12538,9 +12538,9 @@ } }, "node_modules/@walmart/wfm-ui": { - "version": "0.2.26", - "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.2.26.tgz", - "integrity": "sha512-0M2ByoWhvyJolAzvA5vHyZkZKFcgogS6G/30N0E2xTSrcGZT9A5kT2JyudjH1sXkIhx9wriYC5EUHb+7tKQKgg==", + "version": "0.8.4", + "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.8.4.tgz", + "integrity": "sha512-lgSBiefwm4urfOaznNg5GVGZ/mGUVMZSEI5ilA1iBzXY0fq7tDLVhpOP2w9BluFioxg86ykXryNOYo5uAYyWaA==", "license": "ISC", "dependencies": { "@walmart/moment-walmart": "1.0.3", @@ -12548,18 +12548,16 @@ "lodash.get": "^4.4.2", "lodash.isequal": "^4.5.0", "lodash.uniqby": "^4.7.0", - "react-native-material-menu": "^0.4.2", "react-native-vector-icons": "^7.0.0", - "string.prototype.matchall": "^4.0.2", - "wm-react-native-vector-icons": "^1.0.26" + "string.prototype.matchall": "^4.0.2" }, "peerDependencies": { - "@walmart/gtp-shared-components": ">=0.2.2", - "i18next": "19.7.0", + "@walmart/gtp-shared-components": ">=2.1.1", + "i18next": "^19.8.7", "moment": "^2.29.4", - "react": "^16.13.1", - "react-i18next": "11.7.3", - "react-native": "^0.63.2", + "react": ">=18.1.0", + "react-i18next": ">=12.0.0", + "react-native": ">=0.70.5", "react-native-modal": "^11.5.6", "xdate": "^0.8.0" } @@ -32733,19 +32731,6 @@ "react-native": "*" } }, - "node_modules/react-native-material-menu": { - "version": "0.4.2", - "resolved": "https://npme.walmart.com/react-native-material-menu/-/react-native-material-menu-0.4.2.tgz", - "integrity": "sha512-k4I56GKzmXDx1QDosRFGk5U8+z7Iec0MM1GM6R68fukwzEQn1UDBv8PkcwP7Z/2Ex+PfjDnTkYzCqWnCa88ouQ==", - "license": "MIT", - "dependencies": { - "prop-types": "^15.6.0" - }, - "peerDependencies": { - "react": ">= 16.3.0", - "react-native": ">= 0.54.0" - } - }, "node_modules/react-native-modal": { "version": "13.0.1", "resolved": "https://npme.walmart.com/react-native-modal/-/react-native-modal-13.0.1.tgz", @@ -39381,17 +39366,6 @@ "react-native": "*" } }, - "node_modules/wm-react-native-vector-icons": { - "version": "1.0.33", - "resolved": "https://npme.walmart.com/wm-react-native-vector-icons/-/wm-react-native-vector-icons-1.0.33.tgz", - "integrity": "sha1-vIAL0WOWBBaAsIuacYHnzsxTQxk=", - "license": "MIT", - "dependencies": { - "lodash": "^4.0.0", - "prop-types": "^15.6.2", - "yargs": "^13.2.2" - } - }, "node_modules/wonka": { "version": "4.0.15", "resolved": "https://npme.walmart.com/wonka/-/wonka-4.0.15.tgz", --- package.json @@ -146,7 +146,7 @@ "@walmart/topstock-mini-app": "1.7.1", "@walmart/ui-components": "1.15.9", "@walmart/welcomeme-mini-app": "0.88.2", - "@walmart/wfm-ui": "0.2.26", + "@walmart/wfm-ui": "0.8.4", "@walmart/wm-plus-mini-app": "0.12.20", "@walmart/wmconnect-mini-app": "1.0.17", "axios": "~1.6.0", @@ -403,7 +403,7 @@ "@walmart/topstock-mini-app": "1.7.1", "@walmart/ui-components": "1.15.9", "@walmart/welcomeme-mini-app": "0.88.2", - "@walmart/wfm-ui": "0.2.26", + "@walmart/wfm-ui": "0.8.4", "@types/react": "^18.0.24", "@types/react-native": "0.72.6", "apisauce": "2.1.6",
chore: updating wfm-ui
chore: updating wfm-ui
6cfc50aeadc23813ffd1d6df122d66ff779e8796
--- package.json @@ -8,7 +8,7 @@ "description": "", "private": true, "scripts": { - "build": "npm run clean && tsc -b --verbose --force packages", + "build": "tsc -b --verbose --force packages", "clean:tsbuildinfo": "rm -rf packages/*.tsbuildinfo || true", "clean": "yarn run clean:tsbuildinfo && yarn workspaces foreach --all --topological-dev run clean", "commit": "commit", --- packages/allspark-foundation/__tests__/Components/TeamOnboarding/TeamSelection.test.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { render, screen } from '@testing-library/react-native'; +import { render } from '../../utils'; import { TeamSelectionList } from '../../../src/Components/Onboarding/TeamSelection/Component/TeamSelectionList'; describe('TeamSelectionList Component Tests', () => { @@ -32,7 +32,7 @@ describe('TeamSelectionList Component Tests', () => { const { getByTestId } = render( <TeamSelectionList {...props} areas={['Digital']} /> ); - expect(screen.getByTestId('selectionList')).toBeDefined(); + expect(getByTestId('selectionList')).toBeDefined(); }); test('renders with selected teams', () => { @@ -70,13 +70,16 @@ describe('TeamSelectionList Component Tests', () => { }); test('handles non-array values in areaTeamMap correctly', () => { - jest.mock('../../src/Components/Onboarding/TeamSelection/mockData', () => ({ - __esModule: true, - default: { - 'Digital': 'Not an array', - 'Admin & Support': ['Team C'], - }, - })); + jest.mock( + '../../../src/Components/Onboarding/TeamSelection/mockData', + () => ({ + __esModule: true, + default: { + 'Digital': 'Not an array', + 'Admin & Support': ['Team C'], + }, + }) + ); const { queryByText } = render( <TeamSelectionList {...props} areas={['Digital']} /> --- packages/allspark-foundation/package.json @@ -130,7 +130,6 @@ "@walmart/core-utils": ">=6", "@walmart/functional-components": ">=6", "@walmart/gtp-shared-components": ">=2", - "@walmart/me-at-walmart-athena-queries": "*", "@walmart/react-native-env": ">=6", "@walmart/react-native-scanner-3.0": ">=0.6.3", "@walmart/react-native-shared-navigation": ">=6", --- yarn.lock @@ -5673,7 +5673,6 @@ __metadata: "@walmart/core-utils": ">=6" "@walmart/functional-components": ">=6" "@walmart/gtp-shared-components": ">=2" - "@walmart/me-at-walmart-athena-queries": "*" "@walmart/react-native-env": ">=6" "@walmart/react-native-scanner-3.0": ">=0.6.3" "@walmart/react-native-shared-navigation": ">=6" @@ -5993,15 +5992,15 @@ __metadata: linkType: hard "@whatwg-node/node-fetch@npm:^0.5.7": - version: 0.5.11 - resolution: "@whatwg-node/node-fetch@npm:0.5.11" + version: 0.5.12 + resolution: "@whatwg-node/node-fetch@npm:0.5.12" dependencies: "@kamilkisiela/fast-url-parser": "npm:^1.1.4" "@whatwg-node/events": "npm:^0.1.0" busboy: "npm:^1.6.0" fast-querystring: "npm:^1.1.1" - tslib: "npm:^2.3.1" - checksum: 10c0/08fadd64eb54ce14b17d85769869c1d5a98bd166f97ed6d08a802980c8546dbf409f4b9374bee2f8ee140c4649f2a7d3bfa069d90697b810150fb938fc4df1ab + tslib: "npm:^2.6.3" + checksum: 10c0/009827a06ac9e068a0347864ec657061d6be9155e4496a47098e9da661f2e615ef669a682e5e1c6d2f7a199358ca5c84871534a6ecb9629c17b9b779097f5378 languageName: node linkType: hard @@ -17151,7 +17150,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^2.0.0, tslib@npm:^2.0.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:^2.5.0, tslib@npm:^2.6.1, tslib@npm:^2.6.2, tslib@npm:~2.6.0": +"tslib@npm:^2.0.0, tslib@npm:^2.0.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.3.1, tslib@npm:^2.4.0, tslib@npm:^2.5.0, tslib@npm:^2.6.1, tslib@npm:^2.6.2, tslib@npm:^2.6.3, tslib@npm:~2.6.0": version: 2.6.3 resolution: "tslib@npm:2.6.3" checksum: 10c0/2598aef53d9dbe711af75522464b2104724d6467b26a60f2bdac8297d2b5f1f6b86a71f61717384aa8fd897240467aaa7bcc36a0700a0faf751293d1331db39a
Update tests
Update tests
2fd3aca4ce92ba3899be77489157fbe8b6868c7b
--- .looper.multibranch.yml @@ -1,6 +1,6 @@ # Multi-Target inherit: - - job:///misc-looper-templates/looper-template-exporter:mac-nodes-template.yml +# - job:///misc-looper-templates/looper-template-exporter:mac-nodes-template.yml - job:///ssmp-looper-templates:looper-node-auditor.yml node: linux @@ -51,6 +51,7 @@ envs: ## Global Variables global: variables: + NODES: (stable_osx||asda||osx_glass||osx)&&!dualcore PROJECT: allspark-core PROJECT_GITHUB_URL: https://gecgithub01.walmart.com/allspark/allspark-core PROJECT_REPO_NAME: allspark/allspark-core
Update .looper.multibranch.yml
Update .looper.multibranch.yml
7668f5a39bb7eff87c3995b119ce280b8ac90ae4
--- package-lock.json @@ -63,7 +63,7 @@ "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.6", - "@walmart/price-changes-mini-app": "1.6.8", + "@walmart/price-changes-mini-app": "1.6.9", "@walmart/profile-feature-app": "0.76.0", "@walmart/push-to-talk-mini-app": "1.8.29", "@walmart/react-native-encrypted-storage": "1.1.3", @@ -5520,63 +5520,38 @@ } }, "node_modules/@walmart/price-changes-mini-app": { - "version": "1.6.8", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.6.8.tgz", - "integrity": "sha512-QeyofnB0FQn6PBgtEDp9fd9JkOD6c26ik4fNpcg6HS88oj2cNEabqsvpNL5vmRgEv48ZvhfsJWua5aP5wB6dzg==", + "version": "1.6.9", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.6.9.tgz", + "integrity": "sha512-cROZoOHD1aXUGaDD50uYN8yxNna/Vt2pWQ/7k/wWHJ+qoJHT4ZUAYRMVcCrCTtkcJ5yn4MWjXTNVZOxTQVesgA==", "peerDependencies": { - "@react-native-community/masked-view": "^0.1.10", - "@react-native-community/netinfo": "^5.9.5", - "@react-native-firebase/analytics": "7.6.10", - "@react-native-firebase/app": "8.4.7", - "@react-native-firebase/crashlytics": "8.5.2", - "@react-native-firebase/database": "10.8.1", - "@react-native-firebase/firestore": "7.8.6", - "@react-native-firebase/perf": "7.4.12", "@react-navigation/native": "^6.0.0", "@react-navigation/stack": "^6.1.0", - "@walmart/config-components": "^1.0.20", - "@walmart/counts-component-miniapp": "0.0.34", - "@walmart/functional-components": "2.0.3", - "@walmart/gtp-shared-components": "^0.2.2", - "@walmart/impersonation-mini-app": "^1.0.14", - "@walmart/ims-print-services-ui": "1.1.5", + "@walmart/counts-component-miniapp": "0.0.41", + "@walmart/functional-components": "2.0.6", + "@walmart/gtp-shared-components": "1.8.17", + "@walmart/ims-print-services-ui": "1.2.0", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "^1.25.0", "@walmart/react-native-scanner-3.0": "0.1.20", - "@walmart/react-native-shared-navigation": "^0.4.0", "@walmart/redux-store": "^1.0.15", - "@walmart/ui-components": "1.4.0-rc.0", + "@walmart/ui-components": "1.6.0", "axios": "0.26.1", "i18next": "^20.2.2", - "moment": "^2.29.3", - "namecase": "^1.1.2", + "lodash": "4.17.21", + "moment": "^2.29.4", "react": "^17.0.2", "react-i18next": "^11.7.3", "react-native": "0.67.5", - "react-native-background-timer": "2.4.1", - "react-native-check-app-install": ">=0.0.5", - "react-native-device-info": "^5.6.5", - "react-native-fast-image": "^8.3.4", + "react-native-fast-image": "^8.6.1", "react-native-hyperlink": "0.0.19", - "react-native-permissions": "^3.0.0", - "react-native-reanimated": "^2.8.0", - "react-native-safe-area-context": "^3.3.0", - "react-native-screens": "^3.10.0", - "react-native-segmented-control-tab": "^3.4.1", - "react-native-ssmp-sso-allspark": "1.2.4", - "react-native-sumo-sdk": "^2.7.4-rc.9", - "react-native-svg": "^12.1.0", + "react-native-permissions": "^3.6.1", + "react-native-screens": "^3.15.0", "react-native-webview": "10.7.0", - "react-native-wm-network": "^0.1.0", - "react-native-wm-notification": "^0.1.5", "react-native-wm-telemetry": "^0.3.0", "react-redux": "^7.2.1", "redux": "^4.0.5", "redux-saga": "^1.1.3", - "redux-thunk": "^2.3.0", "reduxsauce": "^1.2.0", - "reselect": "^4.0.0", - "seamless-immutable": "^7.1.4", "uuid": "^3.3.2" } }, @@ -24996,9 +24971,9 @@ } }, "@walmart/price-changes-mini-app": { - "version": "1.6.8", - "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.6.8.tgz", - "integrity": "sha512-QeyofnB0FQn6PBgtEDp9fd9JkOD6c26ik4fNpcg6HS88oj2cNEabqsvpNL5vmRgEv48ZvhfsJWua5aP5wB6dzg==" + "version": "1.6.9", + "resolved": "https://npme.walmart.com/@walmart/price-changes-mini-app/-/price-changes-mini-app-1.6.9.tgz", + "integrity": "sha512-cROZoOHD1aXUGaDD50uYN8yxNna/Vt2pWQ/7k/wWHJ+qoJHT4ZUAYRMVcCrCTtkcJ5yn4MWjXTNVZOxTQVesgA==" }, "@walmart/profile-feature-app": { "version": "0.76.0", --- package.json @@ -105,7 +105,7 @@ "@walmart/moment-walmart": "1.0.4", "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.6", - "@walmart/price-changes-mini-app": "1.6.8", + "@walmart/price-changes-mini-app": "1.6.9", "@walmart/profile-feature-app": "0.76.0", "@walmart/push-to-talk-mini-app": "1.8.29", "@walmart/react-native-encrypted-storage": "1.1.3",
bump Price Changes to 1.6.9 for Drop8.3
bump Price Changes to 1.6.9 for Drop8.3
4a9e367c835f3beeb09b56f1fa860bab650490cc
--- src/home/containers/HomeScreen/index.tsx @@ -1,6 +1,6 @@ import React, {useCallback, useEffect, useRef, useState, useMemo} from 'react'; import {useSelector} from 'react-redux'; -import {ScrollView, RefreshControl, Animated, Text} from 'react-native'; +import {ScrollView, RefreshControl, Animated} from 'react-native'; import {StackNavigationProp} from '@react-navigation/stack'; import {ParamListBase} from '@react-navigation/native'; import LinearGradient from 'react-native-linear-gradient'; @@ -84,7 +84,6 @@ export const HomeScreen: React.FC<Props> = () => { } }, [showTimestamp]); - const onRefreshStart = (key: string) => { setRefreshingMap((prev) => ({ ...prev,
lintfix
lintfix
892af1e7bdc18f6961306c432b9a432bd813afea
--- __tests__/settings/versions/utilsTest.ts @@ -28,5 +28,5 @@ test('sortByTitle', () => { }); test('getVersionData length', () => { - expect(getVersionData().length).toEqual(33); + expect(getVersionData().length).toEqual(34); }); --- package-lock.json @@ -89,7 +89,7 @@ "@walmart/returns-mini-app": "3.13.0", "@walmart/schedule-mini-app": "0.63.2", "@walmart/shelfavailability-mini-app": "1.5.19", - "@walmart/store-feature-orders": "1.25.0", + "@walmart/store-feature-orders": "1.26.0", "@walmart/taskit-mini-app": "2.53.3", "@walmart/texting-mini-app": "2.1.4", "@walmart/time-clock-mini-app": "2.301.0", @@ -9866,10 +9866,13 @@ } }, "node_modules/@walmart/store-feature-orders": { - "version": "1.25.0", - "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.25.0.tgz", - "integrity": "sha512-In1wOQKpg7IgeWko0TQh6djKc+RLBLiA9geo/D06Z33gEa5JrK5oMoLoponsllKIoVndU3U0RsQDHjmRBSgMNA==", + "version": "1.26.0", + "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.26.0.tgz", + "integrity": "sha512-SlZ3XlkGiegmS1WHR5x8acgziRoJSx1U9HYM3YRzsoZ+VTB+emN/7fze340LGTQ9+XduviWDx8eAn3Cm8ShpHQ==", "hasInstallScript": true, + "dependencies": { + "cli": "^1.0.1" + }, "peerDependencies": { "@react-navigation/native": "^6.0.0", "@react-navigation/stack": "^6.1.0", @@ -9877,7 +9880,7 @@ "@walmart/gtp-shared-components": "^2.1.3", "@walmart/react-native-env": "0.2.0", "react": "^18.2.0", - "react-native": "~0.70.5" + "react-native": "^0.72.8" } }, "node_modules/@walmart/taskit-mini-app": { @@ -11737,6 +11740,19 @@ "node": ">=6" } }, + "node_modules/cli": { + "version": "1.0.1", + "resolved": "https://npme.walmart.com/cli/-/cli-1.0.1.tgz", + "integrity": "sha512-41U72MB56TfUMGndAKK8vJ78eooOD4Z5NOL4xEfjc0c23s+6EYKXlXsmACBVclLP1yOfWCgEganVzddVrSNoTg==", + "license": "MIT", + "dependencies": { + "exit": "0.1.2", + "glob": "^7.1.1" + }, + "engines": { + "node": ">=0.2.5" + } + }, "node_modules/cli-cursor": { "version": "3.1.0", "license": "MIT", @@ -14070,7 +14086,6 @@ "version": "0.1.2", "resolved": "https://npme.walmart.com/exit/-/exit-0.1.2.tgz", "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, "engines": { "node": ">= 0.8.0" } @@ -29475,7 +29490,7 @@ "requires": { "mv": "~2", "safe-json-stringify": "~1", - "uuid": "^3.3.2" + "uuid": "^8.0.0" } }, "@expo/cli": { @@ -30165,7 +30180,7 @@ "md5": "^2.2.1", "node-fetch": "^2.6.1", "remove-trailing-slash": "^0.1.0", - "uuid": "^3.3.2" + "uuid": "^8.3.2" } }, "@expo/sdk-runtime-versions": { @@ -33663,9 +33678,12 @@ "integrity": "sha512-N4zuxdQT3DJGAYVAwPDAYizTQ4MwRClFvcoH63L+uHy4gBBjKzX8EcN5a357Nvf9xq1P6fq2Ai7CtcvI5kl/5Q==" }, "@walmart/store-feature-orders": { - "version": "1.25.0", - "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.25.0.tgz", - "integrity": "sha512-In1wOQKpg7IgeWko0TQh6djKc+RLBLiA9geo/D06Z33gEa5JrK5oMoLoponsllKIoVndU3U0RsQDHjmRBSgMNA==" + "version": "1.26.0", + "resolved": "https://npme.walmart.com/@walmart/store-feature-orders/-/store-feature-orders-1.26.0.tgz", + "integrity": "sha512-SlZ3XlkGiegmS1WHR5x8acgziRoJSx1U9HYM3YRzsoZ+VTB+emN/7fze340LGTQ9+XduviWDx8eAn3Cm8ShpHQ==", + "requires": { + "cli": "^1.0.1" + } }, "@walmart/taskit-mini-app": { "version": "2.53.3", @@ -34848,6 +34866,15 @@ "resolved": "https://npme.walmart.com/clean-stack/-/clean-stack-2.2.0.tgz", "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" }, + "cli": { + "version": "1.0.1", + "resolved": "https://npme.walmart.com/cli/-/cli-1.0.1.tgz", + "integrity": "sha512-41U72MB56TfUMGndAKK8vJ78eooOD4Z5NOL4xEfjc0c23s+6EYKXlXsmACBVclLP1yOfWCgEganVzddVrSNoTg==", + "requires": { + "exit": "0.1.2", + "glob": "^7.1.1" + } + }, "cli-cursor": { "version": "3.1.0", "requires": { @@ -36325,8 +36352,7 @@ "exit": { "version": "0.1.2", "resolved": "https://npme.walmart.com/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==" }, "expand-template": { "version": "2.0.3" @@ -37151,7 +37177,7 @@ "version": "2.1.6", "dev": true, "requires": { - "axios": "~1.2.6" + "axios": "^0.21.4" } }, "chalk": { --- package.json @@ -130,7 +130,7 @@ "@walmart/returns-mini-app": "3.13.0", "@walmart/schedule-mini-app": "0.63.2", "@walmart/shelfavailability-mini-app": "1.5.19", - "@walmart/store-feature-orders": "1.25.0", + "@walmart/store-feature-orders": "1.26.0", "@walmart/taskit-mini-app": "2.53.3", "@walmart/texting-mini-app": "2.1.4", "@walmart/time-clock-mini-app": "2.301.0", --- src/settings/versions/utils.ts @@ -44,6 +44,7 @@ export const LISTED_DEPENDENCIES = [ '@walmart/welcomeme-mini-app', '@walmart/wm-plus-mini-app', 'react-native-ssmp-sso-allspark', + '@walmart/store-feature-orders', ]; export const shouldBeListed = (name: string) => --- src/translations/en-US.ts @@ -31,6 +31,7 @@ export const enUS_common = { '@walmart/returns-mini-app': 'Returns', '@walmart/schedule-mini-app': 'Schedules', '@walmart/shelfavailability-mini-app': 'Shelf Availability', + '@walmart/store-feature-orders': 'Store Feature Orders', '@walmart/taskit-mini-app': 'Notes', '@walmart/texting-mini-app': 'Push To Talk', '@walmart/time-clock-mini-app': 'Time Clock', --- src/translations/es-MX.ts @@ -31,6 +31,7 @@ export const esMX_common = { '@walmart/returns-mini-app': 'Devoluciones', '@walmart/schedule-mini-app': 'Schedules', '@walmart/shelfavailability-mini-app': 'Shelf Availability', + '@walmart/store-feature-orders': 'Store Feature Orders', '@walmart/taskit-mini-app': 'Notas', '@walmart/texting-mini-app': 'Push To Talk', '@walmart/time-clock-mini-app': 'Time Clock',
drop 19 enahancements for feature item scan RBAC and Spanish Translations
drop 19 enahancements for feature item scan RBAC and Spanish Translations
4f1445620c1c8df1384613458566ac1126202d28
--- docs/README.md @@ -26,16 +26,8 @@ This command generates static content into the `build` directory and can be serv ### Deployment -Using SSH: - -``` -$ USE_SSH=true yarn deploy -``` - -Not using SSH: - ``` -$ GIT_USER=<Your GitHub username> yarn deploy +GITHUB_HOST=gecgithub01.walmart.com GIT_USER=<github userid> USE_SSH=true yarn workspace docs deploy ``` If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. --- docs/docs/components/allspark foundation/clients/foundation-navigation.md @@ -88,7 +88,7 @@ To be used by an `AllsparkContainer` **ONLY**. For a container to successfully utilize navigation resolvers, it will need to create its navigation stacks using this custom method. Without it, navigation calls made using the `useNavigation` hook will not be intercepted correctly. -Otherwise, this method matches the default `createStackNavigator` method from `react-navigation`; +Otherwise, this method matches the default `createStackNavigator` method from `react-navigation`. ```jsx // Create a Stack --- docs/docs/components/allspark foundation/clients/foundation-translation.md @@ -30,7 +30,7 @@ const {t} = MyFeatureTranslationClient.useTranslation(); t('hello'); ``` -Features translations are added under a namespace matching their `featureId`. So they can also be access with the global `useAllsparkTranslation` hook or the `useTranslation` hook from 'react-i18next'. You'll just need to pass the featureId as the first argument. +Features translations are added under a namespace matching their `featureId`. So they can also be access with the global `useAllsparkTranslation` hook or the `useTranslation` hook from `react-i18next`. You'll just need to pass the featureId as the first argument. ```ts import { useTranslation } from 'react-i18next'; --- docs/docs/components/allspark foundation/components/foundation-dynamic-components.md @@ -30,7 +30,7 @@ const DynamicMessages = new DynamicComponent<DynamicMessagesProps>( ## Rendering -A `DynamicComponent` interally tracks multiple sets of prop *records* that are added to it. It uses these records to render either as a `Record` or as a `List` +A `DynamicComponent` interally tracks multiple sets of prop *records* that are added to it. It uses these records to render either as a `Record` or as a `List`. ### Render a Record @@ -75,7 +75,7 @@ DynamicMessages.remove('message-1'); ## Global Registration -By default a `DynamicComponent` instance only exists locally. To make it available for others it must be created with `AllsparkDynamicComponents` +By default a `DynamicComponent` instance only exists locally. To make it available for others it must be created with `AllsparkDynamicComponents`. An `id` param is required here to identify your dynamic component globally. --- docs/docs/components/allspark foundation/components/foundation-shared-components.md @@ -5,7 +5,7 @@ custom_edit_url: null --- # Shared Components -Before shared components, for features to share components a direct dependency was required. One feature app would have to import from another. These interdependnecies lead to issues, so shared components offer a solution to decouple these dependencies. +Before shared components, for features to share components a direct dependency was required. One feature app would have to import from another. These interdependencies lead to issues, so shared components offer a solution to decouple these dependencies. Shared components are just components defined on an `AllsparkFeatureModule`. When the feature module is connected, its components are made available through the `AllsparkSharedComponents` global instance. --- docs/docs/components/allspark foundation/core/foundation-graphQL-code-gen.md @@ -68,6 +68,6 @@ This will do the following this: ![Alt text](./images/image-4.png) -* Generate a `graphql.yml`` file at the root of your project. This is required when registering your queries with Athena. +* Generate a `graphql.yml` file at the root of your project. This is required when registering your queries with Athena. ![Alt text](./images/image-5.png) --- docs/docs/components/allspark foundation/core/foundation-version-compatibility.md @@ -6,7 +6,7 @@ custom_edit_url: null # Version Compatibility -*Last updated: September 2, 2024* +*Last updated: September 19, 2024* ## Allspark Libraries @@ -27,8 +27,8 @@ ___ | Drop | allspark-foundation | me-at-walmart-container | me-at-walmart-common | me-at-walmart-athena-queries | - | - | - | - | - | 23 | 6.1.4 | 6.1.4 | 6.1.4 | 6.1.4 -| 24 | 6.15.X | 6.24.X | 6.24.X | 6.24.0 -| 25 | 6.18.X | 6.25.X | 6.25.X | 6.25.0 +| 24 | 6.19.X | 6.24.X | 6.24.X | 6.24.0 +| 25 | 6.20.X | 6.25.X | 6.25.X | 6.25.0 ### Me@Walmart (Deprecated) --- docs/docs/components/allspark foundation/core/foundation-whats-changing.md @@ -16,17 +16,17 @@ With all the changes below keep in mind that backwards compatability is our goal The following packages are being replaced by `@walmart/allspark-foundation`. -@walmart/allspark-graphql-client -@walmart/allspark-http-client -@walmart/core-services -@walmart/core-utils -@walmart/functional-components -@walmart/react-native-env -@walmart/react-native-shared-navigation -@walmart/react-native-wm-network -@walmart/react-native-wm-notification -@walmart/react-native-wm-telemetry -@walmart/redux-store +* @walmart/allspark-graphql-client +* @walmart/allspark-http-client +* @walmart/core-services +* @walmart/core-utils +* @walmart/functional-components +* @walmart/react-native-env +* @walmart/react-native-shared-navigation +* @walmart/react-native-wm-network +* @walmart/react-native-wm-notification +* @walmart/react-native-wm-telemetry +* @walmart/redux-store We are not removing their functionality, but rather moving them to the new package. This will allow us to better manage the dependencies and reduce the number of packages we need to maintain. @@ -34,15 +34,15 @@ We are not removing their functionality, but rather moving them to the new packa The following features have had their underlying implementation changed: -Banners, now uses AllsparkBanners which is a DynamicComponent -The Drawer Button, now uses DrawerButton from foundation, context functionality moved to AllsparkNavigationClient -The Drawer Badge, now uses AllsparkBadges which is a DynamicComponent +* Banners, now uses AllsparkBanners which is a DynamicComponent +* The Drawer Button, now uses DrawerButton from foundation, context functionality moved to AllsparkNavigationClient +* The Drawer Badge, now uses AllsparkBadges which is a DynamicComponent -The following core services are no longer dynamic. Meaning their implementation doesnt change per container. They each have a static implementation defined in the foundation: +The following core services are no longer dynamic, meaning their implementation doesn't change per container. They each have a static implementation defined in the foundation: -HTTP -> axios -Network -> @react-native-community/netinfo -Notification -> @walmart/react-native-sumo-sdk -Permissions -> react-native-permissions -Scanner -> @walmart/react-native-scanner-3.0 -Translation -> i18next \ No newline at end of file +* HTTP -> axios +* Network -> @react-native-community/netinfo +* Notification -> @walmart/react-native-sumo-sdk +* Permissions -> react-native-permissions +* Scanner -> @walmart/react-native-scanner-3.0 +* Translation -> i18next \ No newline at end of file
Link fixes, updates.
Link fixes, updates.
b5cfbfa6b62377581ca6c4796b691ec6d5ff0bb9
--- package.json @@ -113,7 +113,7 @@ "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.13", - "@walmart/learning-mini-app": "20.0.12", + "@walmart/learning-mini-app": "20.0.14", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.15", "@walmart/me-at-walmart-common": "6.0.15", @@ -378,7 +378,7 @@ "@walmart/ims-print-services-ui": "2.10.3", "@walmart/inbox-mini-app": "0.92.10", "@walmart/iteminfo-mini-app": "7.10.13", - "@walmart/learning-mini-app": "20.0.12", + "@walmart/learning-mini-app": "20.0.14", "@walmart/manager-approvals-miniapp": "0.2.4", "@walmart/me-at-walmart-athena-queries": "6.0.15", "@walmart/me-at-walmart-common": "6.0.15",
feat: :sparkles: Bump learning mini app version to 20.0.14
feat: :sparkles: Bump learning mini app version to 20.0.14
901dce6a02fd7ba3c587db8b1f23121f0db8cc4f
--- packages/allspark-foundation-hub/__tests__/HubFeature/Hub/SelectionBannerFooterButtons.test.tsx @@ -3,7 +3,6 @@ import { render, fireEvent } from '../../utils'; import { SelectionBannerFooterButtons } from '../../../src/HubFeature/TeamSelection/Component/SelectionBannerFooterButtons'; describe('SelectionBannerFooterButtons Tests', () => { - const mockCancelFunction = jest.fn(); const mockSaveFunction = jest.fn(); beforeEach(() => { --- packages/allspark-foundation-hub/__tests__/HubFeature/HubContainer.test.tsx @@ -2,7 +2,7 @@ jest.useFakeTimers(); import { createDefaultWidgetPlaceholder, createDefaultWidgetsConfig, - findTeamByLabel, + findTeamById, getDefaultTeamsForUserType, sorter, validateWidgets, @@ -367,7 +367,7 @@ describe('getDefaultTeamsForUserType', () => { }); }); -describe('findTeamByLabel', () => { +describe('findTeamById', () => { it('should return the team with the matching label', () => { const teamList = [ { teamId: '1', teamLabel: 'Admin & Support' }, @@ -375,7 +375,7 @@ describe('findTeamByLabel', () => { ] as TeamSwitcherTypes[]; const teamLabel = 'Support'; - const result = findTeamByLabel(teamList, teamLabel); + const result = findTeamById(teamList, teamLabel); expect(result).toEqual({ teamId: '2', teamLabel: 'Support' }); }); @@ -387,7 +387,7 @@ describe('findTeamByLabel', () => { ] as TeamSwitcherTypes[]; const teamLabel = 'Support'; - const result = findTeamByLabel(teamList, teamLabel); + const result = findTeamById(teamList, teamLabel); expect(result).toBeUndefined(); }); @@ -396,7 +396,7 @@ describe('findTeamByLabel', () => { const teamList = []; const teamLabel = 'Marketing'; - const result = findTeamByLabel(teamList, teamLabel); + const result = findTeamById(teamList, teamLabel); expect(result).toBeUndefined(); }); @@ -408,7 +408,7 @@ describe('findTeamByLabel', () => { ] as TeamSwitcherTypes[]; const teamLabel = ''; - const result = findTeamByLabel(teamList, teamLabel); + const result = findTeamById(teamList, teamLabel); expect(result).toBeUndefined(); });
Update the team selection for removing the Cancel button
Update the team selection for removing the Cancel button
aa251f99cd87f1a29e17755ddd838217198fd3ee
--- package.json @@ -110,7 +110,7 @@ "@walmart/gtp-shared-components": "2.2.1", "@walmart/impersonation-mini-app": "1.20.8", "@walmart/ims-print-services-ui": "2.11.1", - "@walmart/inbox-mini-app": "0.93.23", + "@walmart/inbox-mini-app": "0.93.27", "@walmart/iteminfo-mini-app": "7.12.1", "@walmart/learning-mini-app": "20.0.21", "@walmart/manager-approvals-miniapp": "0.2.4", --- src/inbox/InboxHeaderRight.tsx @@ -4,7 +4,7 @@ import {View, TouchableOpacity, StyleSheet} from 'react-native'; import {useNavigation} from '@react-navigation/native'; import {HeaderButtonProps} from '@react-navigation/elements'; -// import {useBadgeCount} from '@walmart/inbox-mini-app'; +import {useBadgeCount} from '@walmart/inbox-mini-app'; import {FontIcon} from '@walmart/ui-components'; import {colors} from '@walmart/gtp-shared-components'; @@ -31,7 +31,7 @@ export const InboxHeaderRight = (props: HeaderButtonProps) => { const {tintColor = 'white', pressOpacity = 0.2} = props || {}; const navigtion = useNavigation<MainTabsNavigationProp>(); - const showBadge = false; + const {showBadge} = useBadgeCount(); const enabled = useSelector(getInboxHeaderEnabled); const onPress = () => { --- src/navConfig/SideMenuContent.tsx @@ -13,7 +13,7 @@ import {Dialog} from '@walmart/ui-components'; import {colors} from '@walmart/gtp-shared-components'; import {MyTeamHooks} from '@walmart/wmconnect-mini-app'; import {ClockAppSelectors} from '@walmart/time-clock-mini-app'; -// import {getIsAnyUnreadMessageInInbox} from '@walmart/inbox-mini-app'; +import {getIsAnyUnreadMessageInInbox} from '@walmart/inbox-mini-app'; import {getTaskBadge} from '@walmart/taskit-mini-app'; import {UserSelectors} from '@walmart/allspark-foundation/User'; import {ClockSelectors} from '@walmart/allspark-foundation/Clock'; @@ -51,7 +51,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( const [translate, i18n] = useAllsparkTranslation(); - // const showBadge = useSelector(getIsAnyUnreadMessageInInbox); + const showBadge = useSelector(getIsAnyUnreadMessageInInbox); const unreadMessageCount = MyTeamHooks.useMessagesUnreadCount(); const user = useSelector(UserSelectors.getData); const clockedIn = useSelector(ClockSelectors.getIsClockedIn); @@ -175,7 +175,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( onRetry={onRetry} logTelemetryEvent={GlobalNavTelemetry.logEvent} enableTaskItAlert={!!highPriorityCount || !!signOffTaskCount} - showInboxBadge={false} + showInboxBadge={!!showBadge} enablePttAlert={unreadMessageCount || undefined} enableTimeClock={getIsClockingEnabled} /> --- src/navigation/AssociateHallwayNav/Tabs/index.tsx @@ -6,7 +6,7 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context'; import {TaskItMiniApp, getTaskTabBarBadge} from '@walmart/taskit-mini-app'; import CopilotMiniApp, {useWorkBadgeCount} from '@walmart/copilot-mini-app'; -import InboxMiniApp from '@walmart/inbox-mini-app'; +import InboxMiniApp, {useBadgeCount} from '@walmart/inbox-mini-app'; import {useAllsparkTranslation} from '@walmart/allspark-foundation/Translation'; import {getBottomNavConfigMap} from '../../../navConfig/NavConfigRedux'; @@ -30,7 +30,7 @@ export const MainTabsNav = (_: MainStackScreenProps<'tabs'>) => { const config = useSelector(getBottomNavConfigMap); const {askSam, copilot, home, inbox, me, myTeam, taskit} = config; - // const {showBadge} = useBadgeCount(); + const {showBadge} = useBadgeCount(); const taskitBadge = getTaskTabBarBadge(); const copilotBadge = useWorkBadgeCount(); @@ -81,7 +81,7 @@ export const MainTabsNav = (_: MainStackScreenProps<'tabs'>) => { <MainTabs.Screen name='inbox' component={InboxMiniApp} - options={{tabBarBadge: undefined}} + options={{tabBarBadge: showBadge ? '' : undefined}} /> )} </MainTabs.Navigator> --- yarn.lock @@ -6283,9 +6283,9 @@ __metadata: languageName: node linkType: hard -"@walmart/inbox-mini-app@npm:0.93.23": - version: 0.93.23 - resolution: "@walmart/inbox-mini-app@npm:0.93.23" +"@walmart/inbox-mini-app@npm:0.93.27": + version: 0.93.27 + resolution: "@walmart/inbox-mini-app@npm:0.93.27" dependencies: "@walmart/moment-walmart": "npm:^1.0.4" "@walmart/walmart-fiscal-week": "npm:^0.3.6" @@ -6298,7 +6298,7 @@ __metadata: lodash: ">=4.17.20" prop-types: 15.7.2 typescript: ^4.0.2 - checksum: 10c0/35d777a59a700bccff0c5adc4ed771e1200fb73e6ea5cd43ba28ca60ab914718bd1c361c95d9d51aebb68aade302dc90b3aaf24e25ef9212fc416a95c46e6016 + checksum: 10c0/34429d65b95b2e32da3b68325f6452912b75b5644efb9c0e17b80b68c7de3bec0ec90f838a6b7308ea30d7357926a68e4f2d21cae206aa230a6246919183a1d6 languageName: node linkType: hard @@ -7753,7 +7753,7 @@ __metadata: "@walmart/gtp-shared-components": "npm:2.2.1" "@walmart/impersonation-mini-app": "npm:1.20.8" "@walmart/ims-print-services-ui": "npm:2.11.1" - "@walmart/inbox-mini-app": "npm:0.93.23" + "@walmart/inbox-mini-app": "npm:0.93.27" "@walmart/iteminfo-mini-app": "npm:7.12.1" "@walmart/learning-mini-app": "npm:20.0.21" "@walmart/manager-approvals-miniapp": "npm:0.2.4"
chore: bump inbox version
chore: bump inbox version
a7b55a7e492f3c5ed0500967e6b3e61ee01ad7a2
--- metro.config.js @@ -23,6 +23,7 @@ const config = { assetExts: assetExts.filter((ext) => ext !== 'svg'), sourceExts: [...sourceExts, 'svg'], useWatchman: !process.env.CI, + unstable_enableSymlinks: true, }, }; --- package.json @@ -15,7 +15,7 @@ "androidConfig:dev": "sh scripts/updateAndroidProjectConfig.sh Dev", "androidConfig:prod": "sh scripts/updateAndroidProjectConfig.sh Prod", "androidConfig:teflon": "sh scripts/updateAndroidProjectConfig.sh Teflon", - "build": "yarn workspaces foreach -R run build", + "build": "yarn workspaces foreach -R --topological-dev run build", "check:dependencies": "yarn rnx-align-deps", "coverage": "jest --coverage", "env:beta": "yarn run firebase:beta && cp env.beta.js env.js && yarn run projConfig:beta",
Added dependency and scripts
Added dependency and scripts
e1650af900e53867595aaa83d9b7d9b420927cf8
--- .looper-pr.yml @@ -32,4 +32,3 @@ envs: AUTHOR: temp SLACK_CHANNEL: 'smdv-miniapp' -
feat(ui): adding changes to looper-pr.yml
feat(ui): adding changes to looper-pr.yml
fab2e7bb5bbf9043e546181731507897aacfc384
--- package.json @@ -46,10 +46,6 @@ "prettier": "^3.6.2", "typescript": "~5.3.3" }, - "dependencies": { - "@walmart/associate-exp-hub-hub": "workspace:*", - "@walmart/associate-exp-hub-team-switcher": "workspace:*" - }, "resolutions": { "@react-native-firebase/analytics": "~21.0.0", "@react-native-firebase/app": "~21.0.0",
feat(ui): update dependecncies
feat(ui): update dependecncies
2c8fde33dd4f3dcbd6e8397b8337041b9bdcc431
--- package-lock.json @@ -45,7 +45,7 @@ "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", - "@walmart/exception-mini-app": "1.0.16", + "@walmart/exception-mini-app": "1.1.1", "@walmart/facilities-management-miniapp": "0.5.26", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", @@ -80,7 +80,7 @@ "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.11", - "@walmart/taskit-mini-app": "0.49.11", + "@walmart/taskit-mini-app": "0.49.12", "@walmart/time-clock-mini-app": "2.25.0", "@walmart/ui-components": "1.9.0", "@walmart/welcomeme-mini-app": "0.76.0", @@ -5049,13 +5049,13 @@ } }, "node_modules/@walmart/exception-mini-app": { - "version": "1.0.16", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.16.tgz", - "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==", + "version": "1.1.1", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.1.1.tgz", + "integrity": "sha512-8elvtszc5/FRas5j90ZKapR9XbFf0lYG0cRGIFKiBYR6YlMRfwr5HL5LeTnL+bqKvM1p5Stv8tv5Sz2rhcCb3A==", "peerDependencies": { "@walmart/functional-components": ">=2.0.6", - "@walmart/gtp-shared-components": "^2.0.2", - "@walmart/ims-print-services-ui": "1.2.0", + "@walmart/gtp-shared-components": "2.0.2", + "@walmart/ims-print-services-ui": "2.0.1", "@walmart/react-native-logger": ">=1.31.0-rc.0", "@walmart/redux-store": ">=3.1.3", "@walmart/ui-components": ">=1.6.0", @@ -6064,9 +6064,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "0.49.11", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.11.tgz", - "integrity": "sha512-D0Oi1XUgIvxIVjQL2wl0nyeTJr0Sqcvtezbag3ZG0tMlwxGJMXNB2PvkQ5n8JBuAV1YRlggsGtIp+yLz+slgCQ==", + "version": "0.49.12", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.49.12.tgz", + "integrity": "sha512-Qv9d7niybQ9sVyN87KI3gpbSa3I+QVLwf+TjW+l+mgG1LHRUou8uCygL5bfKDOB6acg5FqFKQ+x/ccEv74Fhtg==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -25320,9 +25320,9 @@ } }, "@walmart/exception-mini-app": { - "version": "1.0.16", - "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.0.16.tgz", - "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==" + "version": "1.1.1", + "resolved": "https://npme.walmart.com/@walmart/exception-mini-app/-/exception-mini-app-1.1.1.tgz", + "integrity": "sha512-8elvtszc5/FRas5j90ZKapR9XbFf0lYG0cRGIFKiBYR6YlMRfwr5HL5LeTnL+bqKvM1p5Stv8tv5Sz2rhcCb3A==" }, "@walmart/facilities-management-miniapp": { "version": "0.5.26", --- package.json @@ -87,7 +87,7 @@ "@walmart/core-widget-registry": "~0.7.2", "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", - "@walmart/exception-mini-app": "1.0.16", + "@walmart/exception-mini-app": "1.1.1", "@walmart/facilities-management-miniapp": "0.5.26", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2",
exception-mini-app 1.1.1
exception-mini-app 1.1.1
d41280a5c1f8183a36b85d4386d0e26f184fb3b6
--- .yarn/patches/react-native-npm-0.73.7-7f2047866d.patch @@ -0,0 +1,13 @@ +diff --git a/third-party-podspecs/boost.podspec b/third-party-podspecs/boost.podspec +index 8e924afd367f1b53031daf164bd78cce7908f56e..7089b210a843242c7b3868149bc821be5b42f758 100644 +--- a/third-party-podspecs/boost.podspec ++++ b/third-party-podspecs/boost.podspec +@@ -10,7 +10,7 @@ Pod::Spec.new do |spec| + spec.homepage = 'http://www.boost.org' + spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.' + spec.authors = 'Rene Rivera' +- spec.source = { :http => 'https://archives.boost.io/release/1.83.0/source/boost_1_83_0.tar.bz2', ++ spec.source = { :http => 'https://sourceforge.net/projects/boost/files/boost/1.83.0/boost_1_83_0.tar.bz2', + :sha256 => '6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e' } + + # Pinning to the same version as React.podspec. --- package.json @@ -180,7 +180,7 @@ "react-dom": "^18.2.0", "react-hook-form": "^7.51.0", "react-i18next": "^13.3.1", - "react-native": "0.73.7", + "react-native": "patch:react-native@npm%3A0.73.7#~/.yarn/patches/react-native-npm-0.73.7-7f2047866d.patch", "react-native-app-auth": "7.2.0", "react-native-background-timer": "^2.4.1", "react-native-barcode-builder": "^2.0.0", --- targets/US/package.json @@ -184,7 +184,7 @@ "react-dom": "^18.2.0", "react-hook-form": "^7.51.0", "react-i18next": "^13.3.1", - "react-native": "0.73.7", + "react-native": "patch:react-native@npm%3A0.73.7#~/.yarn/patches/react-native-npm-0.73.7-7f2047866d.patch", "react-native-app-auth": "7.2.0", "react-native-background-timer": "^2.4.1", "react-native-barcode-builder": "^2.0.0", --- yarn.lock @@ -7107,7 +7107,7 @@ __metadata: react-dom: "npm:^18.2.0" react-hook-form: "npm:^7.51.0" react-i18next: "npm:^13.3.1" - react-native: "npm:0.73.7" + react-native: "patch:react-native@npm%3A0.73.7#~/.yarn/patches/react-native-npm-0.73.7-7f2047866d.patch" react-native-apollo-devtools-client: "npm:^1.0.4" react-native-app-auth: "npm:7.2.0" react-native-background-timer: "npm:^2.4.1" @@ -19266,6 +19266,56 @@ __metadata: languageName: node linkType: hard +"react-native@patch:react-native@npm%3A0.73.7#~/.yarn/patches/react-native-npm-0.73.7-7f2047866d.patch": + version: 0.73.7 + resolution: "react-native@patch:react-native@npm%3A0.73.7#~/.yarn/patches/react-native-npm-0.73.7-7f2047866d.patch::version=0.73.7&hash=e03956" + dependencies: + "@jest/create-cache-key-function": "npm:^29.6.3" + "@react-native-community/cli": "npm:12.3.6" + "@react-native-community/cli-platform-android": "npm:12.3.6" + "@react-native-community/cli-platform-ios": "npm:12.3.6" + "@react-native/assets-registry": "npm:0.73.1" + "@react-native/codegen": "npm:0.73.3" + "@react-native/community-cli-plugin": "npm:0.73.17" + "@react-native/gradle-plugin": "npm:0.73.4" + "@react-native/js-polyfills": "npm:0.73.1" + "@react-native/normalize-colors": "npm:0.73.2" + "@react-native/virtualized-lists": "npm:0.73.4" + abort-controller: "npm:^3.0.0" + anser: "npm:^1.4.9" + ansi-regex: "npm:^5.0.0" + base64-js: "npm:^1.5.1" + chalk: "npm:^4.0.0" + deprecated-react-native-prop-types: "npm:^5.0.0" + event-target-shim: "npm:^5.0.1" + flow-enums-runtime: "npm:^0.0.6" + invariant: "npm:^2.2.4" + jest-environment-node: "npm:^29.6.3" + jsc-android: "npm:^250231.0.0" + memoize-one: "npm:^5.0.0" + metro-runtime: "npm:^0.80.3" + metro-source-map: "npm:^0.80.3" + mkdirp: "npm:^0.5.1" + nullthrows: "npm:^1.1.1" + pretty-format: "npm:^26.5.2" + promise: "npm:^8.3.0" + react-devtools-core: "npm:^4.27.7" + react-refresh: "npm:^0.14.0" + react-shallow-renderer: "npm:^16.15.0" + regenerator-runtime: "npm:^0.13.2" + scheduler: "npm:0.24.0-canary-efb381bbf-20230505" + stacktrace-parser: "npm:^0.1.10" + whatwg-fetch: "npm:^3.0.0" + ws: "npm:^6.2.2" + yargs: "npm:^17.6.2" + peerDependencies: + react: 18.2.0 + bin: + react-native: cli.js + checksum: 10c0/93c41760f339463e290ec7524b178cbfc843de35bf68dae743d4e269ccee9e4bd3842a4a956eae3fd7a7f698c63a9f1c107d7e8d8e1947e7fb394b24c1f25849 + languageName: node + linkType: hard + "react-query@npm:^3.39.3": version: 3.39.3 resolution: "react-query@npm:3.39.3"
test boost update
test boost update
cc9eb175479b5d09fdb0e5edfc3f027fa236a3b7
--- targets/US/package.json @@ -130,12 +130,12 @@ "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch", "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "~6.3.20", - "@walmart/react-native-logger": "1.34.8", + "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.8.2", "@walmart/react-native-shared-navigation": "~6.3.20", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.7.0", - "@walmart/react-native-webex-sdk": "0.3.4", + "@walmart/react-native-webex-sdk": "0.4.3", "@walmart/receipt-check-miniapp": "1.23.4", "@walmart/redux-store": "~6.3.20", "@walmart/returns-mini-app": "4.13.0", --- yarn.lock @@ -6960,12 +6960,12 @@ __metadata: "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-env": "npm:~6.3.20" - "@walmart/react-native-logger": "npm:1.34.8" + "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.8.2" "@walmart/react-native-shared-navigation": "npm:~6.3.20" "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.0" - "@walmart/react-native-webex-sdk": "npm:0.3.4" + "@walmart/react-native-webex-sdk": "npm:0.4.3" "@walmart/receipt-check-miniapp": "npm:1.23.4" "@walmart/redux-store": "npm:~6.3.20" "@walmart/returns-mini-app": "npm:4.13.0" @@ -7528,14 +7528,14 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-logger@npm:1.34.8": - version: 1.34.8 - resolution: "@walmart/react-native-logger@npm:1.34.8" +"@walmart/react-native-logger@npm:1.35.0": + version: 1.35.0 + resolution: "@walmart/react-native-logger@npm:1.35.0" peerDependencies: lodash: ^4.17.21 - react: ^16.8.1 - react-native: ">=0.60.0-rc.0 <1.0.x" - checksum: 10c0/048b5950fcb3dd4a3fbb3a7ece13033f14b9681f68030074d007643cd69086a6d5643be7256e6952e79c2381742f3f7355be34cd2b85e685c6a09c635e54bbc9 + react: "*" + react-native: "*" + checksum: 10c0/552c3369365020cae6c943dcb645a4a9930b0fa55c87d695820c69546d51909ed13820290df3c85d62c498043a51007f0313fb5e69b055ea6f276960f61efe27 languageName: node linkType: hard @@ -7578,14 +7578,14 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-webex-sdk@npm:0.3.4": - version: 0.3.4 - resolution: "@walmart/react-native-webex-sdk@npm:0.3.4" +"@walmart/react-native-webex-sdk@npm:0.4.3": + version: 0.4.3 + resolution: "@walmart/react-native-webex-sdk@npm:0.4.3" peerDependencies: react: "*" react-native: "*" react-native-logger: "*" - checksum: 10c0/6217d5404ef78ce180682036c5661e4558b3019c5defdd3758ecd626f2b6caac420603d1f80f7389078e1d927f7efdab754d6a0c62034b06da9ed8de45216550 + checksum: 10c0/39c89b1cb4de06338a218f1500b5e23f3795536761d471439005fcd7c9ef67d2a58607a37d477027b12bd4ac4fed781e671e6a4b1089af202e865eec9b550d0e languageName: node linkType: hard
callin fix
callin fix
bf818c556a0ff456606b61ef59583d0275db645d
--- package-lock.json @@ -4363,9 +4363,9 @@ "integrity": "sha512-kGPI7/o+3DiIAhMTyPco72J7ftlJLPO/Eh+W2aCnFEHlH6ngKIOUrX3xSK8Lm9rBVWL3q2ZGzqCqsJXjwJW5ww==" }, "@walmart/inbox-mini-app": { - "version": "0.37.0-beta.2", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.37.0-beta.2.tgz", - "integrity": "sha512-xkGGWSjKPzpz5HJHF9kbSavNeyzpEN+2NCaNM8AgVfI77r0UrHTCYuwqeRJQnUY+9O5ks9StFpOLIsSp9BZoSQ==" + "version": "0.37.0-beta.4", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.37.0-beta.4.tgz", + "integrity": "sha512-QlIEjNcCpFi0W+g85H8HRhH9sM/NtxXFAXls6mldleMwLgq+9HZMJ4ErNalkxVWH0n7w3M/7T1PV5Pu/wgfuWQ==" }, "@walmart/iteminfo-mini-app": { "version": "4.2.3", --- package.json @@ -83,7 +83,7 @@ "@walmart/gtp-shared-components": "1.6.0", "@walmart/impersonation-mini-app": "1.1.0", "@walmart/ims-print-services-ui": "0.1.34", - "@walmart/inbox-mini-app": "0.37.0-beta.2", + "@walmart/inbox-mini-app": "0.37.0-beta.4", "@walmart/iteminfo-mini-app": "4.2.3", "@walmart/manager-approvals-miniapp": "0.0.60", "@walmart/metrics-mini-app": "0.7.68",
inbox beta version update
inbox beta version update
b9a587b8a0c211848ee84da1af69f1ef0ba265bd
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -414,6 +414,7 @@ "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", "${BUILT_PRODUCTS_DIR}/react-native-wm-barcode/react_native_wm_barcode.framework/AVScannerViewController.nib", "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/scanbeep.wav", + "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/scan.mp3", "${PODS_ROOT}/../../node_modules/react-native-wm-barcode/ios/WMBarcodeScanner/WMBarcodeScanner/assets/DIGIMark-custom.ttf", "${PODS_ROOT}/../../node_modules/react-native-wm-voice-text/ios/state-change_confirm-down.wav", "${PODS_ROOT}/../../node_modules/react-native-wm-voice-text/ios/state-change_confirm-up.wav", @@ -442,6 +443,7 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AVScannerViewController.nib", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/scanbeep.wav", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/scan.mp3", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/DIGIMark-custom.ttf", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/state-change_confirm-down.wav", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/state-change_confirm-up.wav", --- ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision Binary files a/ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision and b/ios/BuildSupport/MeAtWMBeta_InHouse_Provision.mobileprovision differ --- ios/Podfile.lock @@ -358,7 +358,7 @@ PODS: - React - react-native-get-random-values (1.5.1): - React-Core - - react-native-logger (1.27.0): + - react-native-logger (1.28.0): - React - react-native-netinfo (5.9.9): - React-Core @@ -380,7 +380,7 @@ PODS: - React - react-native-webview (10.10.0): - React-Core - - react-native-wm-barcode (2.29.0): + - react-native-wm-barcode (2.32.0): - React - react-native-wm-voice-text (0.5.0): - React @@ -848,7 +848,7 @@ SPEC CHECKSUMS: react-native-encrypted-storage: 837c733334debf626204f03d867c7e01d8741e2f react-native-geolocation-service: f33626f1ae12381ca2ae60f98b2f5edd676bf95a react-native-get-random-values: 41f0c91ac0da870e47b307e07752e9e54bc2dc7e - react-native-logger: 95fe964398913088bd1add74ff671916c4ddfd76 + react-native-logger: 5271e0ac1e6ece721dbfeddd0d197cd4ef15e2d5 react-native-netinfo: 77d133105df525d4a11f10fcaa8d0b8883ea6429 react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f react-native-ptt-module: 0d956aa611f2df9269efc4af39869359fa3b3b3f @@ -857,7 +857,7 @@ SPEC CHECKSUMS: react-native-video: 8d97379f3c2322a569f1e27542ad1a646cad9444 react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 - react-native-wm-barcode: 881d483f23fba207961884289c00ff79cd1fac94 + react-native-wm-barcode: 6a6cd338e5adee909dcb667523e001e4f1868738 react-native-wm-voice-text: dcd2ab0e035ed425dc60e2eda85463b3602036e6 React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336 React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b
update provisioning profile and podfile.lock
update provisioning profile and podfile.lock
09bef5534062b53b09c8271b38ee146cc5166edf
--- targets/US/package.json @@ -123,12 +123,12 @@ "@walmart/metrics-mini-app": "1.27.3", "@walmart/mod-flex-mini-app": "1.23.2", "@walmart/moment-walmart": "1.0.4", - "@walmart/money-auth-shared-components": "2.3.1", + "@walmart/money-auth-shared-components": "2.3.2", "@walmart/myteam-mini-app": "1.12.0", "@walmart/native-rfid-scanner": "3.12.1", "@walmart/onewalmart-miniapp": "1.0.24", "@walmart/pay-stub-miniapp": "0.20.8", - "@walmart/payrollsolution_miniapp": "0.145.21", + "@walmart/payrollsolution_miniapp": "0.145.22", "@walmart/price-changes-mini-app": "1.10.25", "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch", "@walmart/react-native-cookies": "1.0.1", --- yarn.lock @@ -7360,12 +7360,12 @@ __metadata: "@walmart/metrics-mini-app": "npm:1.27.3" "@walmart/mod-flex-mini-app": "npm:1.23.2" "@walmart/moment-walmart": "npm:1.0.4" - "@walmart/money-auth-shared-components": "npm:2.3.1" + "@walmart/money-auth-shared-components": "npm:2.3.2" "@walmart/myteam-mini-app": "npm:1.12.0" "@walmart/native-rfid-scanner": "npm:3.12.1" "@walmart/onewalmart-miniapp": "npm:1.0.24" "@walmart/pay-stub-miniapp": "npm:0.20.8" - "@walmart/payrollsolution_miniapp": "npm:0.145.21" + "@walmart/payrollsolution_miniapp": "npm:0.145.22" "@walmart/price-changes-mini-app": "npm:1.10.25" "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch" "@walmart/react-native-cookies": "npm:1.0.1" @@ -7689,9 +7689,9 @@ __metadata: languageName: node linkType: hard -"@walmart/money-auth-shared-components@npm:2.3.1": - version: 2.3.1 - resolution: "@walmart/money-auth-shared-components@npm:2.3.1" +"@walmart/money-auth-shared-components@npm:2.3.2": + version: 2.3.2 + resolution: "@walmart/money-auth-shared-components@npm:2.3.2" peerDependencies: "@react-navigation/drawer": ^6.6.4 "@react-navigation/native": ^6.0.0 @@ -7699,7 +7699,7 @@ __metadata: "@walmart/allspark-foundation": "*" "@walmart/core-services": ~2.0.11 "@walmart/gtp-shared-components": ^2.0.6 - checksum: 10c0/ea63392276c844c688e01739a5d82e97b960c8d6de65d57abd11b4e57fbec78678039ea10b63d7c7d977ed0ca580b47eabee432c61844abe5195b83533bf1d99 + checksum: 10c0/567f34de8d104f8fcd7d0f730199bc2a22232c06874cb83c4075606a38c47cfc421840e90dcea9bec461bf4aad115ba6118db1d459769194b07eacb86d4f0f35 languageName: node linkType: hard @@ -7793,15 +7793,15 @@ __metadata: languageName: node linkType: hard -"@walmart/payrollsolution_miniapp@npm:0.145.21": - version: 0.145.21 - resolution: "@walmart/payrollsolution_miniapp@npm:0.145.21" +"@walmart/payrollsolution_miniapp@npm:0.145.22": + version: 0.145.22 + resolution: "@walmart/payrollsolution_miniapp@npm:0.145.22" dependencies: crypto-js: "npm:^3.3.0" expo: "npm:^50.0.0" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/793eb40fdef24449c77a12524c85f0a1f1c82343a12cfe89cddf62e89e3d73cebca3d83fcfe7170bc6e0ac4de5132b08153c74fe6af68da5d82d55e7657c39cb + checksum: 10c0/bae7788c0cd38cffca23bf32074c6ea78fe0c59bc0ae9517a3b19c0441b5674ba5e22f860037282ec23ac6a4e8d6fb25c403d728639b3d9acabafa31b7808a9c languageName: node linkType: hard
bump version
bump version
2a0cffaf1efefeaa82d76e6cb74e40662d731a6d
--- __tests__/__mocks__/@walmart/metrics-mini-app.js @@ -12,6 +12,7 @@ module.exports = { ViewAllFreights: 'ViewAllFreights', TotalShrinkDrilldown: 'TotalShrinkDrilldown', SkuVsBookDrilldown: 'SkuVsBookDrilldown', + SafetyItemizedScreen: 'SafetyItemizedScreen', InvVsSalesDrilldown: 'InvVsSalesDrilldown', ViewMoreMetrics: 'ViewMoreMetrics', WoshAssociatesScreen: 'WoshAssociatesScreen', --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/HomeStackNavTest.tsx.snap @@ -100,6 +100,10 @@ exports[`HomeStackNav matches snapshot 1`] = ` } } /> + <Screen + component="SafetyItemizedScreen" + name="metrics.safetyDrilldown" + /> <Screen component="SkuVsBookDrilldown" name="metrics.shrinkSkuVsBookDrilldown" @@ -259,6 +263,10 @@ exports[`HomeStackNav matches snapshot when user is not present 1`] = ` } } /> + <Screen + component="SafetyItemizedScreen" + name="metrics.safetyDrilldown" + /> <Screen component="SkuVsBookDrilldown" name="metrics.shrinkSkuVsBookDrilldown" --- src/navigation/AssociateHallwayNav/Tabs/HomeStackNav.tsx @@ -16,6 +16,7 @@ import { InvVsSalesDrilldown, ViewMoreMetrics, WoshAssociatesScreen, + SafetyItemizedScreen, } from '@walmart/metrics-mini-app'; import {useTelemetry} from '@walmart/core-services/Telemetry'; import {useTranslation} from '@walmart/core-services/Translations'; @@ -182,6 +183,10 @@ export const HomeStackNav = () => { name='metrics.shrinkDrilldown' options={{title: 'Shrink'}} /> + <HomeStack.Screen + component={SafetyItemizedScreen} + name='metrics.safetyDrilldown' + /> <HomeStack.Screen name='metrics.shrinkSkuVsBookDrilldown' component={SkuVsBookDrilldown}
adding safety screen for navigation
adding safety screen for navigation
68f5b7e03ea34b102faf51962ade8fd3f340f11b
--- packages/expo-config-plugins/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [0.11.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.10.0...@walmart/expo-config-plugins@0.11.0) (2025-12-26) + +### Features + +- **expo-config-plugins:** add emm app restrictions plugin ([#550](https://gecgithub01.walmart.com/allspark/allspark/issues/550)) ([0412ffb](https://gecgithub01.walmart.com/allspark/allspark/commit/0412ffbd5ed3cc1e6faf05dd8449054ee3b1f10a)) + # [0.10.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.9.0...@walmart/expo-config-plugins@0.10.0) (2025-12-18) ### Features --- packages/expo-config-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/expo-config-plugins", - "version": "0.10.0", + "version": "0.11.0", "description": "Expo config plugins for me@apps", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/expo-config-plugins@0.11.0
9a43af825c4110a804cf3af22a3611af268959dc
--- package.json @@ -86,7 +86,7 @@ "@walmart/amp-mini-app": "1.1.80", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.22.3", - "@walmart/associate-listening-mini-app": "1.2.1-feat-8d61d27", + "@walmart/associate-listening-mini-app": "1.2.2", "@walmart/attendance-mini-app": "3.44.0", "@walmart/avp-feature-app": "0.5.1", "@walmart/avp-shared-library": "0.5.2", --- src/settings/versions/utils.ts @@ -10,6 +10,7 @@ export const LISTED_DEPENDENCIES = [ '@walmart/allspark-me-mini-app', '@walmart/amp-mini-app', '@walmart/ask-sam-mini-app', + '@walmart/associate-listening-mini-app', '@walmart/attendance-mini-app', '@walmart/avp-shared-library', '@walmart/avp-feature-app', --- yarn.lock @@ -5664,9 +5664,9 @@ __metadata: languageName: node linkType: hard -"@walmart/associate-listening-mini-app@npm:1.2.1-feat-8d61d27": - version: 1.2.1-feat-8d61d27 - resolution: "@walmart/associate-listening-mini-app@npm:1.2.1-feat-8d61d27" +"@walmart/associate-listening-mini-app@npm:1.2.2": + version: 1.2.2 + resolution: "@walmart/associate-listening-mini-app@npm:1.2.2" dependencies: "@walmart/associate-listening-utils": "npm:5.0.45" peerDependencies: @@ -5677,7 +5677,7 @@ __metadata: "@walmart/gtp-shared-components": 2.0.5 react: ^18.2.0 react-native: 0.70.9 - checksum: 10c0/899a79ad7e7f77d270f86fda3ee52cf64a3f86bab494847ef07ba01d884c747a48f5c995d7bf078d9bbb7e4552d46096692d7e00f7d80fe6af794e7f36ac5557 + checksum: 10c0/5a716a07cc2224a35b04c067e14c41a77ddb45f2471936afc1a6a7baf22e352c206e3d494eb8ee8d4f34e63ff2d9ee583a9f7d33a07c75c85ecb0a19f48b037b languageName: node linkType: hard @@ -7773,7 +7773,7 @@ __metadata: "@walmart/amp-mini-app": "npm:1.1.80" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.22.3" - "@walmart/associate-listening-mini-app": "npm:1.2.1-feat-8d61d27" + "@walmart/associate-listening-mini-app": "npm:1.2.2" "@walmart/attendance-mini-app": "npm:3.44.0" "@walmart/avp-feature-app": "npm:0.5.1" "@walmart/avp-shared-library": "npm:0.5.2"
fix: update associate-listening mini app version without metadata and added app under version list
fix: update associate-listening mini app version without metadata and added app under version list
08c2b6f109d08633c29eee4e417a8332b440c71d
--- package-lock.json @@ -34,7 +34,7 @@ "@terrylinla/react-native-sketch-canvas": "0.8.0", "@walmart/allspark-graphql-client": "^1.4.5", "@walmart/allspark-neon-core": "0.1.31", - "@walmart/amp-mini-app": "1.1.44", + "@walmart/amp-mini-app": "1.1.45", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.238.0", @@ -4792,9 +4792,9 @@ } }, "node_modules/@walmart/amp-mini-app": { - "version": "1.1.44", - "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.44.tgz", - "integrity": "sha512-7G8J8KhLlaxXrucovUz2LBIWxcDKWcc2w1xkRVQQBHTdCkFIRX+pKesTaspASDdxUBLo7qzDMUzzIvW/cVDdiA==", + "version": "1.1.45", + "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.45.tgz", + "integrity": "sha512-n7CS+V7Gc/OVm0PmrirINnGevZt/if3WXsy4uO/hBOEXLX8i+lCtNZt4O+VYFY6KFFcbJffUYN2nIwSm9WTRwA==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -25119,9 +25119,9 @@ } }, "@walmart/amp-mini-app": { - "version": "1.1.44", - "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.44.tgz", - "integrity": "sha512-7G8J8KhLlaxXrucovUz2LBIWxcDKWcc2w1xkRVQQBHTdCkFIRX+pKesTaspASDdxUBLo7qzDMUzzIvW/cVDdiA==" + "version": "1.1.45", + "resolved": "https://npme.walmart.com/@walmart/amp-mini-app/-/amp-mini-app-1.1.45.tgz", + "integrity": "sha512-n7CS+V7Gc/OVm0PmrirINnGevZt/if3WXsy4uO/hBOEXLX8i+lCtNZt4O+VYFY6KFFcbJffUYN2nIwSm9WTRwA==" }, "@walmart/ask-sam-chat-components": { "version": "0.2.13", --- package.json @@ -76,7 +76,7 @@ "@terrylinla/react-native-sketch-canvas": "0.8.0", "@walmart/allspark-graphql-client": "^1.4.5", "@walmart/allspark-neon-core": "0.1.31", - "@walmart/amp-mini-app": "1.1.44", + "@walmart/amp-mini-app": "1.1.45", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.12.2", "@walmart/attendance-mini-app": "0.238.0",
AMP version update
AMP version update
ff99bbd29c7e4e32bcee1cf070ccfe67eb0e2a65
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.17", + "version": "2.0.18", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.17", + "version": "2.0.18", "private": false, "main": "bundle/dist/index.js", "files": [
Update package.json
Update package.json
9f494e4e7d76363a715f6fb781debc11224e8208
--- packages/associate-exp-hub-hub/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.11.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.10.2...@walmart/associate-exp-hub-hub@2.11.0) (2025-11-14) + +### Features + +- **ui:** remove dependecies ([b9c9944](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/b9c994425b8b2f18800bff3456e02d36668ce7ce)) + ## [2.10.2](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.10.1...@walmart/associate-exp-hub-hub@2.10.2) (2025-11-12) ### Bug Fixes --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.10.2", + "version": "2.11.0", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.12.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.11.2...@walmart/associate-exp-hub-team-switcher@2.12.0) (2025-11-14) + +### Features + +- **ui:** remove dependecies ([b9c9944](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/b9c994425b8b2f18800bff3456e02d36668ce7ce)) + ## [2.11.2](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.11.1...@walmart/associate-exp-hub-team-switcher@2.11.2) (2025-11-12) ### Bug Fixes --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.11.2", + "version": "2.12.0", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.11.0 - @walmart/associate-exp-hub-team-switcher@2.12.0
8d97477901f060b0b2ecc01a49c6a13a5699ef44
--- example/src/teamHub/screens/teamSelection.tsx @@ -33,6 +33,7 @@ export const TeamSelectionScreen = TeamHub.createScreen( selectedTeams={[]} myArea="Management" primaryTeam="Management" + userType="salariedAssociate" handleSelectSingle={() => {}} handleSelectAll={() => {}} /> --- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/TeamSelectionList.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import { View, Text, ScrollView } from 'react-native'; import { TeamSelectionListItem } from './TeamSelectionListItem'; import { Checkbox } from '@walmart/gtp-shared-components/dist'; @@ -35,20 +35,39 @@ export const TeamSelectionList = ({ selectedTeams, myArea, primaryTeam, + userType, handleSelectSingle, handleSelectAll, }: TeamSelectionListProps) => { + const allAvailableTeams: Team[] = useMemo( + () => + areas.reduce( + (acc, current) => [...acc, ...areaTeamMap[current]], + [] as Team[] + ), + [areas] + ); + const [allTeamsSelected, setAllTeamsSelected] = useState<boolean>( + selectedTeams.length === allAvailableTeams.length + ); + + useEffect(() => { + setAllTeamsSelected(selectedTeams.length === allAvailableTeams.length); + }, [allAvailableTeams, selectedTeams]); + return ( <ScrollView style={styles.container}> - <View style={styles.headerContainer}> - <Text style={styles.header}>Teams</Text> - </View> - <View style={styles.selectAllContainer}> - <Text style={styles.selectTeamsText} onPress={handleSelectAll}> - Select all teams - </Text> - <Checkbox /> - </View> + {userType === 'salariedAssociate' && ( + <> + <View style={styles.headerContainer}> + <Text style={styles.header}>Teams</Text> + </View> + <View style={styles.selectAllContainer}> + <Text style={styles.selectTeamsText}>Select all teams</Text> + <Checkbox checked={allTeamsSelected} onPress={handleSelectAll} /> + </View> + </> + )} <View style={styles.myAreaContainaer}> <Text style={styles.myArea}>My area</Text> --- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/styles.ts @@ -64,8 +64,6 @@ export const teamSelectionListStyles = StyleSheet.create({ headerContainer: { paddingTop: 16, paddingBottom: 16, - borderBottomColor: colors.gray['20'], - borderBottomWidth: 1, }, header: { fontFamily: 'Bogle-Bold', @@ -81,6 +79,8 @@ export const teamSelectionListStyles = StyleSheet.create({ paddingBottom: 16, borderBottomColor: colors.gray['20'], borderBottomWidth: 1, + borderTopColor: colors.gray['20'], + borderTopWidth: 1, marginBottom: 24, }, selectTeamsText: { --- packages/allspark-foundation/src/Components/TeamOnboarding/TeamSelection/types.ts @@ -49,6 +49,7 @@ export interface TeamSelectionListProps { selectedTeams: Team[]; myArea: Area; primaryTeam: Team; + userType: 'teamLead' | 'salariedAssociate'; handleSelectSingle: (teamName: Team) => void; handleSelectAll: () => void; }
feat: added user type logic
feat: added user type logic
5d2581393fbd3b2de236d236f2bccae9b9e2855c
--- index.js @@ -5,7 +5,6 @@ import 'react-native-get-random-values'; import 'intl'; import 'intl/locale-data/jsonp/en'; -import 'moment/locale/en-ca'; import 'moment/locale/es'; import 'moment/locale/es-mx'; import moment from 'moment';
remove Canadian English locale import
remove Canadian English locale import
005253553f7d55417cb84cdb0f0f9253fa1f5c4f
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.49.0", + "version": "1.50.0", "main": "dist/index.js", "files": [ "dist" @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.55.0", + "@walmart/roster-mini-app": "2.56.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -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.55.0" + "@walmart/roster-mini-app": "npm:2.56.0" "@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.55.0": - version: 2.55.0 - resolution: "@walmart/roster-mini-app@npm:2.55.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-2.55.0.tgz" +"@walmart/roster-mini-app@npm:2.56.0": + version: 2.56.0 + resolution: "@walmart/roster-mini-app@npm:2.56.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-2.56.0.tgz" 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/bd7bd7087adcb5a11077d63a97b1573a1afa1a8f1d7c39f7e2a7f496486870ad931d1f8da32f0c32e3abd468fece82c7e2cf5bdce1952fa35622ea23548af92b + checksum: 10c0/86f40d155c66b494f05b0cb403e3eab710c3fd9c580f8b38bfb294362c05a23e06fa95295b2acad2fbc613bb63aa91c5e50ef688e2c35995d2f421441f9de6c3 languageName: node linkType: hard
Merge changes
Merge changes
28681b54ad40c5f4de2438a5ae79afbeaf68891b
--- packages/me-at-walmart-container/src/http/interceptors/performance.ts @@ -1,6 +1,5 @@ import {Interceptor} from '@walmart/allspark-foundation/HTTP'; import {MyWalmartTelemetryServiceInstance} from '../../services/telemetry'; -import {HttpLogger} from '../logger'; export const PerformanceInterceptor: Interceptor = { request: { @@ -18,16 +17,9 @@ export const PerformanceInterceptor: Interceptor = { request.metadata = {httpMetric}; httpMetric.start(); - } catch (error) { - HttpLogger.error('Error while starting HTTP metric for outbound request', { - message: (error as Error).message, - miniAppName: request.headers?.['x-http-client-feature-key'], - method: request.method, - baseURL: request.baseURL, - url: request.url, - }); + } finally { + return request; } - return request; }, }, response: { @@ -40,16 +32,9 @@ export const PerformanceInterceptor: Interceptor = { httpMetric.setResponseContentType(response.headers['content-type']); httpMetric.stop(); - } catch (error) { - HttpLogger.error('Error while stopping HTTP metric for successful response', { - message: (error as Error).message, - miniAppName: response.config.headers?.['x-http-client-feature-key'], - method: response.config.method, - baseURL: response.config.baseURL, - url: response.config.url, - }); + } finally { + return response; } - return response; }, rejected: (error) => { try { @@ -61,13 +46,10 @@ export const PerformanceInterceptor: Interceptor = { error.response?.headers['content-type'], ); httpMetric.stop(); - } catch (err) { - HttpLogger.error('Error while stopping HTTP metric for failed response', { - message: (err as Error).message, - }); + } finally { + // Ensure failed requests throw after interception + return Promise.reject(error); } - // Ensure failed requests throw after interception - return Promise.reject(error); }, options: {synchronous: true}, },
fix: revert sonar changes for performance interceptor (#5218)
fix: revert sonar changes for performance interceptor (#5218) Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com>
8273e9fcb3c283d0a2d58cb4f9bfd12d715782d2
--- src/containers/WarningBanner.tsx @@ -0,0 +1,22 @@ +import React, {useState} from 'react'; +import {Text} from 'react-native'; +import {Banner} from '@walmart/gtp-shared-components'; +import {useSelector} from 'react-redux'; +import { + shouldDisplayWarningBanner, + warningMessageContent, +} from '../redux/selectors'; + +export const WarningBanner = () => { + const [dismissBanner, setDismissBanner] = useState(false); + const showWarningBanner = useSelector(shouldDisplayWarningBanner); + const messageContent = useSelector(warningMessageContent); + const onDismissBanner = () => setDismissBanner(true); + return showWarningBanner && !dismissBanner ? ( + <Banner variant='warning' onClose={onDismissBanner}> + <Text>{messageContent}</Text> + </Banner> + ) : ( + <></> + ); +};
adding back warning banner
adding back warning banner
905f2ddf000f53254b0cdbae392c07c4746f23db
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.1-beta.3", + "version": "1.0.1-beta.4", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Remove example for team hub
Remove example for team hub
2eea07e9b7a9ec3af5925a1c6136483b91f043d4
--- .yarnrc.yml @@ -1,8 +1,6 @@ nodeLinker: node-modules npmRegistryServer: '${REPOSOLNS_NPM_REPO}' -enableImmutableInstalls: true - packageExtensions: '@walmart/ui-components@*': peerDependenciesMeta:
chore: remove enableimmutableinstalls from .yarnrc.yml
chore: remove enableimmutableinstalls from .yarnrc.yml
2e1a6f93ac3224a87c9795d930b3465f1166d458
--- package-lock.json @@ -92,7 +92,7 @@ "@walmart/store-feature-orders": "1.25.0", "@walmart/taskit-mini-app": "2.53.3", "@walmart/texting-mini-app": "2.1.4", - "@walmart/time-clock-mini-app": "2.175.2", + "@walmart/time-clock-mini-app": "2.301.0", "@walmart/topstock-mini-app": "1.4.14", "@walmart/ui-components": "1.15.6", "@walmart/welcomeme-mini-app": "0.86.0", --- package.json @@ -133,7 +133,7 @@ "@walmart/store-feature-orders": "1.25.0", "@walmart/taskit-mini-app": "2.53.3", "@walmart/texting-mini-app": "2.1.4", - "@walmart/time-clock-mini-app": "2.175.2", + "@walmart/time-clock-mini-app": "2.301.0", "@walmart/topstock-mini-app": "1.4.14", "@walmart/ui-components": "1.15.6", "@walmart/welcomeme-mini-app": "0.86.0",
Merge branch 'develop' into feature/topstock-drop18
Merge branch 'develop' into feature/topstock-drop18
9364923cafd220b8b55693014e66241be2bac397
--- package-lock.json @@ -80,7 +80,7 @@ "@walmart/schedule-mini-app": "0.37.0", "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", - "@walmart/taskit-mini-app": "2.39.0", + "@walmart/taskit-mini-app": "2.40.0", "@walmart/time-clock-mini-app": "2.98.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0", @@ -5994,9 +5994,9 @@ } }, "node_modules/@walmart/taskit-mini-app": { - "version": "2.39.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.39.0.tgz", - "integrity": "sha512-sp0dKQGh0yvQth5Gw6zj9tzrRfeZtOxjwKkO5AsEcbr60jy1N0JEsKx3QMjB+7A6A0Pw+rj8zSzqBBEK7K4C1g==", + "version": "2.40.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.40.0.tgz", + "integrity": "sha512-Yj9vUThOswTmvk3BNSo6hEG5F/rGrbLZfJICRSzQEx1DTDTb3ltjIHKCDyA6Q8wlAzoqtHJjZPPnH/W1Idfz0w==", "peerDependencies": { "@terrylinla/react-native-sketch-canvas": "^0.8.0", "@types/lodash": ">=4.14.176", @@ -25384,9 +25384,9 @@ "version": "1.5.16" }, "@walmart/taskit-mini-app": { - "version": "2.39.0", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.39.0.tgz", - "integrity": "sha512-sp0dKQGh0yvQth5Gw6zj9tzrRfeZtOxjwKkO5AsEcbr60jy1N0JEsKx3QMjB+7A6A0Pw+rj8zSzqBBEK7K4C1g==" + "version": "2.40.0", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.40.0.tgz", + "integrity": "sha512-Yj9vUThOswTmvk3BNSo6hEG5F/rGrbLZfJICRSzQEx1DTDTb3ltjIHKCDyA6Q8wlAzoqtHJjZPPnH/W1Idfz0w==" }, "@walmart/tcnumber": { "version": "2.3.3", --- package.json @@ -122,7 +122,7 @@ "@walmart/schedule-mini-app": "0.37.0", "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", - "@walmart/taskit-mini-app": "2.39.0", + "@walmart/taskit-mini-app": "2.40.0", "@walmart/time-clock-mini-app": "2.98.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0",
remove taskit patch and update version
remove taskit patch and update version
1285c55d0c2f20793a630c3808b69497076ef7eb
--- src/containers/ChatInput/AudioPlayback.tsx @@ -79,7 +79,7 @@ export const AudioPlayback = (props: { durationFormatted: msToTimeStamp(durationMillis), })); - if (status.didJustFinish) { + if (didJustFinish) { setPlaybackDetails((prev) => ({ ...prev, isPaused: false, --- src/containers/ChatInput/AudioPlayback.tsx @@ -79,7 +79,7 @@ export const AudioPlayback = (props: { durationFormatted: msToTimeStamp(durationMillis), })); - if (status.didJustFinish) { + if (didJustFinish) { setPlaybackDetails((prev) => ({ ...prev, isPaused: false,
using already deconstructed variable
using already deconstructed variable
e3509e527b32fd8d40e486d5e17bd169b1748e0f
--- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx @@ -280,10 +280,6 @@ describe('MainTabsNav', () => { // (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]); // (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([0]); mockUseSelector.mockReturnValueOnce(0); // inboxCount Badge - mockUseSelector.mockReturnValueOnce({ - highPriorityCount: 0, - signOffTaskCount: 0, - }); // taskBadge mockUseSelector.mockReturnValueOnce({ home: config, me: config, @@ -302,10 +298,6 @@ describe('MainTabsNav', () => { // (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([2]); // (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([2]); mockUseSelector.mockReturnValueOnce(2); // inboxCount Badge - mockUseSelector.mockReturnValueOnce({ - highPriorityCount: 2, - signOffTaskCount: 2, - }); // taskBadge mockUseSelector.mockReturnValueOnce({ home: config, me: config, @@ -322,10 +314,6 @@ describe('MainTabsNav', () => { // (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([2]); // (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([2]); mockUseSelector.mockReturnValueOnce(2); - mockUseSelector.mockReturnValueOnce({ - highPriorityCount: 2, - signOffTaskCount: 1, - }); // taskBadge mockUseSelector.mockReturnValueOnce({ home: config, me: config, @@ -343,10 +331,6 @@ describe('MainTabsNav', () => { // (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]); // (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([0]); mockUseSelector.mockReturnValueOnce(0); - mockUseSelector.mockReturnValueOnce({ - highPriorityCount: 0, - signOffTaskCount: 0, - }); // taskBadge mockUseSelector.mockReturnValueOnce({ home: disabledConfig, me: disabledConfig, --- __tests__/navigation/AssociateHallwayNav/Tabs/__snapshots__/MainTabsNavTest.tsx.snap @@ -2,6 +2,192 @@ exports[`AskSamPlaceholder 1`] = `<View />`; +exports[`MainTabsNav matches snapshot when disabled from config 1`] = ` +<Navigator + id="MainTabNavigation" + safeAreaInsets={ + Object { + "bottom": 14, + } + } + screenListeners={[Function]} + screenOptions={[Function]} +> + <Screen + component="InboxMiniApp" + name="inbox" + options={ + Object { + "tabBarBadge": undefined, + } + } + /> +</Navigator> +`; + +exports[`MainTabsNav matches snapshot with badges 1`] = ` +<Navigator + id="MainTabNavigation" + safeAreaInsets={ + Object { + "bottom": 14, + } + } + screenListeners={[Function]} + screenOptions={[Function]} +> + <Screen + component={[Function]} + name="home" + /> + <Screen + component={[Function]} + name="me" + /> + <Screen + component={[Function]} + name="askSamTab" + options={ + Object { + "tabBarAccessibilityLabel": "askSam", + "tabBarIcon": [Function], + "tabBarLabel": [Function], + "tabBarTestID": "askSam", + } + } + /> + <Screen + component={[Function]} + name="myTeam" + options={ + Object { + "tabBarBadge": undefined, + "tabBarIcon": [Function], + } + } + /> + <Screen + component={[Function]} + name="taskit" + options={ + Object { + "tabBarBadge": undefined, + "tabBarBadgeStyle": undefined, + "tabBarIcon": [Function], + } + } + /> +</Navigator> +`; + +exports[`MainTabsNav matches snapshot with inbox shown and badges 1`] = ` +<Navigator + id="MainTabNavigation" + safeAreaInsets={ + Object { + "bottom": 14, + } + } + screenListeners={[Function]} + screenOptions={[Function]} +> + <Screen + component={[Function]} + name="home" + /> + <Screen + component={[Function]} + name="me" + /> + <Screen + component={[Function]} + name="askSamTab" + options={ + Object { + "tabBarAccessibilityLabel": "askSam", + "tabBarIcon": [Function], + "tabBarLabel": [Function], + "tabBarTestID": "askSam", + } + } + /> + <Screen + component={[Function]} + name="myTeam" + options={ + Object { + "tabBarBadge": undefined, + "tabBarIcon": [Function], + } + } + /> + <Screen + component="InboxMiniApp" + name="inbox" + options={ + Object { + "tabBarBadge": "", + } + } + /> +</Navigator> +`; + +exports[`MainTabsNav matches snapshot with no badges 1`] = ` +<Navigator + id="MainTabNavigation" + safeAreaInsets={ + Object { + "bottom": 14, + } + } + screenListeners={[Function]} + screenOptions={[Function]} +> + <Screen + component={[Function]} + name="home" + /> + <Screen + component={[Function]} + name="me" + /> + <Screen + component={[Function]} + name="askSamTab" + options={ + Object { + "tabBarAccessibilityLabel": "askSam", + "tabBarIcon": [Function], + "tabBarLabel": [Function], + "tabBarTestID": "askSam", + } + } + /> + <Screen + component={[Function]} + name="myTeam" + options={ + Object { + "tabBarBadge": undefined, + "tabBarIcon": [Function], + } + } + /> + <Screen + component={[Function]} + name="taskit" + options={ + Object { + "tabBarBadge": undefined, + "tabBarBadgeStyle": undefined, + "tabBarIcon": [Function], + } + } + /> +</Navigator> +`; + exports[`getOptionsForRoute returns expected options for route 1`] = ` <Text style={
Updated test cases
Updated test cases
ce346e173684ff1318c9eee1c0fa181727fff4fc
--- targets/US/package.json @@ -82,7 +82,7 @@ "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", "@walmart/allspark-utils": "6.5.0", - "@walmart/amp-mini-app": "1.1.89", + "@walmart/amp-mini-app": "1.1.98", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.25.1", "@walmart/associate-listening-mini-app": "1.2.7", --- yarn.lock @@ -6148,19 +6148,17 @@ __metadata: languageName: node linkType: hard -"@walmart/amp-mini-app@npm:1.1.89": - version: 1.1.89 - resolution: "@walmart/amp-mini-app@npm:1.1.89" +"@walmart/amp-mini-app@npm:1.1.98": + version: 1.1.98 + resolution: "@walmart/amp-mini-app@npm:1.1.98" peerDependencies: - "@react-navigation/native": ^6.0.0 - "@react-navigation/stack": ^6.1.0 "@walmart/allspark-foundation": "*" "@walmart/core-services": 6.1.4 "@walmart/gtp-shared-components": ^2.0.9 "@walmart/redux-store": 6.1.4 react: ^18.2.0 react-native: ~0.73.7 - checksum: 10c0/64f62810d524b2b18bbd26880ae4e9f1f68f3952e141fa09551b7ded1979bdc24bab2808e5089cbcd1509fb58a582e05d5893a3318c4e496de024c6dd7b17e26 + checksum: 10c0/4af3ee7f4168faad4663becfb96588cf18a8024e9f3663bddc43dca2d63b191e9acbd6080a60d452c75e4073c11bf15d9349ac4207a47382b494d40424b20cc6 languageName: node linkType: hard @@ -7284,7 +7282,7 @@ __metadata: "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31" "@walmart/allspark-utils": "npm:6.5.0" - "@walmart/amp-mini-app": "npm:1.1.89" + "@walmart/amp-mini-app": "npm:1.1.98" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.25.1" "@walmart/associate-listening-mini-app": "npm:1.2.7"
add AMP version
add AMP version
7c1212a186972976e9b498591676782f141d8d4b
--- __tests__/screens/RosterScreenTest.tsx @@ -46,6 +46,8 @@ describe('AssociateList', () => { it('should filter for clocked in associates', () => {}); it('should filter for online associates', () => {}); it('should display active status on active filter', () => {}); + it('absent filter should only display for team leads and salaried users', () => {}); + it('tardy filter should only display for team leads and salaried users', () => {}); }); describe('AssociateRosterItem', () => { @@ -60,4 +62,5 @@ describe('AssociateList', () => { describe('RosterHeader', () => { it('should show correct header text', () => {}); it('pressing weekly schedule link navigates to scheduling mini app', () => {}); + it('weekly schedule link should only display for team leads and salaried users', () => {}); }); --- __tests__/screens/RosterScreenTest.tsx @@ -46,6 +46,8 @@ describe('AssociateList', () => { it('should filter for clocked in associates', () => {}); it('should filter for online associates', () => {}); it('should display active status on active filter', () => {}); + it('absent filter should only display for team leads and salaried users', () => {}); + it('tardy filter should only display for team leads and salaried users', () => {}); }); describe('AssociateRosterItem', () => { @@ -60,4 +62,5 @@ describe('AssociateList', () => { describe('RosterHeader', () => { it('should show correct header text', () => {}); it('pressing weekly schedule link navigates to scheduling mini app', () => {}); + it('weekly schedule link should only display for team leads and salaried users', () => {}); });
adding test cases
adding test cases
05deb0b7498060e8b402db5fdc0ba331349815b0
--- packages/allspark-foundation/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { --- packages/allspark-foundation/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/allspark-foundation", "private": false, - "version": "2.1.0", + "version": "2.1.1", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore: version fix
chore: version fix
1c9be78771ce3a8e1c7606be4a2fc699bfe86dea
--- packages/allspark-foundation/src/HubFeature/Hub/Container/Screens/HubDashboard.tsx @@ -20,7 +20,12 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { const [allowedWidgetsList, setAllowedWidgetsList] = useState<LayoutConfig>( [] ); - const { teamData, loading } = useUserPreferences([]); + const { + teamData, + userPrefError, + loading, + refetch: refetchUserPrefs, + } = useUserPreferences([]); const { t } = useAllsparkTranslation(FEATURE_ID); const selectedTeamIds = useSelector( ManagerExperienceSelectors.getSelectedTeamData @@ -150,6 +155,20 @@ export const HubDashboard = ({ name, widgets }: HubDashboardProps) => { onTeamChange={(id) => setTeamId(id)} loading={loading} /> + {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}
feat(ui): Merge changes
feat(ui): Merge changes
d4f39063acdfeed90e7905fc9a6d76d54fd5aada
--- core/src/features/welcomeMe.ts @@ -8,7 +8,7 @@ export const WelcomeMeFeature = new AllsparkFeatureModule('welcomeMe', { onConnect: () => { const { addLanguageResources, - } = require('@walmart/welcomeme-mini-app/dist/translations/index'); + } = require('@walmart/welcomeme-mini-app/dist/Translations/index'); addLanguageResources(); }, }, --- core/src/manifest.ts @@ -76,6 +76,10 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { require('@walmart/mod-flex-mini-app').default, require('@walmart/shelfavailability-mini-app').default, require('@walmart/rfid-scan-mini-app').default, + require('@walmart/payrollsolution_miniapp').default, + require('@walmart/pay-stub-miniapp').default, + require('@walmart/money-auth-shared-components').default, + require('@walmart/welcomeme-mini-app').default, ); } --- core/src/navigation/USHallway/PreHireHallwayNav/index.tsx @@ -6,9 +6,9 @@ import {AskSamMiniApp} from '@walmart/ask-sam-mini-app'; import {ModalTransitionOptions} from '@walmart/allspark-foundation/Navigation'; import {AllsparkReduxStore} from '@walmart/allspark-foundation/Redux'; import {ContainerActionCreators} from '@walmart/allspark-foundation/Container'; -import {PaymentSelectionMiniApp} from '@walmart/payrollsolution_miniapp'; +import PaymentSelectionMiniApp from '@walmart/payrollsolution_miniapp'; +import WelcomeMeMiniApp from '@walmart/welcomeme-mini-app'; -import {WelcomeMeFeature} from '../../../features/welcomeMe'; import {PrehireStackMap} from './types'; const PreHireStack = createStackNavigator<PrehireStackMap>(); @@ -21,8 +21,8 @@ export default () => { }, []); return ( - <PreHireStack.Navigator initialRouteName='WelcomeMeMiniApp'> - {WelcomeMeFeature.buildScreen('WelcomeMeMiniApp', { + <PreHireStack.Navigator initialRouteName='welcomeMe.CandidateHome'> + {WelcomeMeMiniApp.buildAllScreens({ Navigator: PreHireStack as any, })}
onboarding welcome me
onboarding welcome me
75d5872c4d0578da37c1bf158d0d70bb1f11aad8
--- src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/SalariedOrTeamLeadRosterWidget.tsx @@ -371,22 +371,24 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC< }); }} onHeaderPress={() => { - // Handle navigation to roster details - rosterTelemetry.logEvent('salaried_roster_header_tap', { - widget_id: 'salaried-or-team-lead-roster-widget', - team_id: teamData?.currentTeam?.teamId || 'all', - }); + // Navigate immediately for best UX + NavigationModule.manager.navigate('myTeam.associateRosterDetail'); - if (__DEV__) { - logger.info('SalariedOrTeamLeadRosterWidget header pressed', { - widgetId: 'salaried-or-team-lead-roster-widget', - currentTeam: teamData?.currentTeam, - message: 'Navigation to roster details requested', + // Defer telemetry and logging to not block navigation + requestAnimationFrame(() => { + rosterTelemetry.logEvent('salaried_roster_header_tap', { + widget_id: 'salaried-or-team-lead-roster-widget', + team_id: teamData?.currentTeam?.teamId || 'all', }); - } - // Navigate to roster details screen - NavigationModule.manager.navigate('myTeam.associateRosterDetail'); + if (__DEV__) { + logger.info('SalariedOrTeamLeadRosterWidget header pressed', { + widgetId: 'salaried-or-team-lead-roster-widget', + currentTeam: teamData?.currentTeam, + message: 'Navigation to roster details requested', + }); + } + }); }} onRefresh={handlePullToRefresh} testID="salaried-or-team-lead-roster-widget"
feat(ui): update celebration peformance
feat(ui): update celebration peformance
42a2093ee617f27e4d3e0e2a061a896fb8ff8aba
--- .looper.multibranch.yml @@ -104,7 +104,7 @@ envs: releaseType: "test" releaseTypeDesc: "build from a feature branch; test feature in isolation" slackIcon: ":firecracker:" - slackChannel: "allspark-builds-developer" + slackChannel: "allspark-builds-feature" buildType: "SNAPSHOT" buildGABuilds: false @@ -240,6 +240,7 @@ flows: ## ## @param (unnamed) env release type build: + - declare(BUILD_NUMBER) - echo "release type ${releaseType}" - echo "slackIcon ${slackIcon}" - echo "slackChannel ${slackChannel}" @@ -267,6 +268,10 @@ flows: increment-version-code: - (name Check Versioning) git clone https://${GITHUB_TOKEN}@gecgithub01.walmart.com/allspark/allspark-core-version.git -b master - (set version code) bundle exec fastlane set_build + - exposeVars(./fastlane/fastlane-session.json) + - var(BUILD_NUMBER): + echo "${fastlane-session.android_version_code}" + - echo "Android version code from file ${fastlane-session.android_version_code} and variable ${BUILD_NUMBER}" - var(GIT_DIRECTORY = "allspark-core-version") - | (name Set Versioning) @@ -490,10 +495,6 @@ flows: slack-success: - exposeVars(./betacrash.json) - (get android version code) bundle exec fastlane get_android_version_code - - exposeVars(./fastlane/fastlane-session.json) - - echo "Android version code ${fastlane-session.android_version_code}" - - var(BUILD_NUMBER): - echo "${fastlane-session.android_version_code}" - var(MESSAGE_TITLE): echo "${slackIcon} ${osIcon} ${releaseType} ${version}" - echo "betacrashUrl ${betacrash.url}" @@ -549,10 +550,6 @@ flows: # @param releaseType slack-failure: - exposeVars(./fastlane/fastlane-session.json) - - (get android version code) bundle exec fastlane get_android_version_code - - echo "Android version code ${fastlane-session.android_version_code}" - - var(BUILD_NUMBER): - echo "${fastlane-session.android_version_code}" - var(MESSAGE_TITLE): | echo ":x: ${osIcon} ${releaseType} BUILD FAILED" --- fastlane/Fastfile @@ -33,17 +33,6 @@ private_lane :set_android do |values| ) end -desc 'Android: Get Version Code' -lane :get_android_version_code do - puts android_get_version_code( - gradle_file: "#{ANDROID_PROJECT}" - ) - UI.message("\n\n\n=====================================\n Writing version code to a JSON file\n=====================================") - session[:android_version_code]=Actions.lane_context[SharedValues::ANDROID_VERSION_CODE] - save_session -end - - desc 'Evaluate and Set Build Number and Version Code' lane :set_build do version_json = read_json(json_path: "#{VERSION_PATH}")
testing new slack channel with fastlane changes
testing new slack channel with fastlane changes
cfc779c5385e8be727a6a81f31630918a1cc8084
--- package-lock.json @@ -51,7 +51,7 @@ "@walmart/avp-shared-library": "0.2.12", "@walmart/backroom-mini-app": "1.0.6", "@walmart/calling-mini-app": "0.1.24", - "@walmart/checkout-mini-app": "3.9.306", + "@walmart/checkout-mini-app": "3.9.309", "@walmart/compass-sdk-rn": "5.19.3", "@walmart/config-components": "4.3.2", "@walmart/copilot-mini-app": "3.70.5", @@ -11109,9 +11109,9 @@ } }, "node_modules/@walmart/checkout-mini-app": { - "version": "3.9.306", - "resolved": "https://npme.walmart.com/@walmart/checkout-mini-app/-/checkout-mini-app-3.9.306.tgz", - "integrity": "sha512-pDaUDNK7eI9KOnzmLn492AZsMlVh+sZUyLR4oRH/agLBAMu6NZJrrntvyYMWabRDbXTcc1QLEaDoVUbDd0Gbvg==", + "version": "3.9.309", + "resolved": "https://npme.walmart.com/@walmart/checkout-mini-app/-/checkout-mini-app-3.9.309.tgz", + "integrity": "sha512-Ytqz1UAo/VLzfw8z6/0JnalIcgTR9/7JyOcDK6WcRsYusL2ZOTmXjSx2oKN2ME00wER+y0PNp2InEyqsOp0wbA==", "dependencies": { "@stomp/stompjs": "^7.0.0", "cpc-input": "^1.7.28", --- package.json @@ -92,7 +92,7 @@ "@walmart/avp-shared-library": "0.2.12", "@walmart/backroom-mini-app": "1.0.6", "@walmart/calling-mini-app": "0.1.24", - "@walmart/checkout-mini-app": "3.9.306", + "@walmart/checkout-mini-app": "3.9.309", "@walmart/compass-sdk-rn": "5.19.3", "@walmart/config-components": "4.3.2", "@walmart/copilot-mini-app": "3.70.5",
CO P1 fix - 3.9.309
CO P1 fix - 3.9.309
1d8fb9e5e687c7e06ef1d89960c51f5676ce7bec
--- __tests__/__mocks__/@walmart/feedback-all-spark-miniapp.js @@ -1,4 +1,6 @@ module.exports = { FeedbackMiniApp: 'FeedbackMiniApp', + FeedbackDialogScreen: 'FeedbackDialogScreen', + SurveySaysDialogScreen: 'SurveySaysDialogScreen', checkAndShowAvailableSurveyAction: jest.fn(), }; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/DrawerNavTest.tsx.snap @@ -28,10 +28,6 @@ exports[`DrawerNav matches snapshot after initial render 1`] = ` component="GuardedApprovalsMiniApp" name="ManagerApprovals" /> - <Screen - component="GuardedItemInfoMiniApp" - name="itemInfo" - /> </Navigator> `; @@ -63,10 +59,6 @@ exports[`DrawerNav matches snapshot for initial render 1`] = ` component="GuardedApprovalsMiniApp" name="ManagerApprovals" /> - <Screen - component="GuardedItemInfoMiniApp" - name="itemInfo" - /> </Navigator> `; --- __tests__/navigation/AssociateHallwayNav/__snapshots__/indexTest.tsx.snap @@ -191,6 +191,15 @@ exports[`AssociateHallwayNav matches snapshot 1`] = ` } } /> + <Screen + component="ItemInfoMiniApp" + name="itemInfo" + options={ + Object { + "headerShown": false, + } + } + /> </Navigator> <NotificationsContainer /> </ActivityMonitor> @@ -387,6 +396,15 @@ exports[`AssociateHallwayNav matches snapshot when time value are undefined 1`] } } /> + <Screen + component="ItemInfoMiniApp" + name="itemInfo" + options={ + Object { + "headerShown": false, + } + } + /> </Navigator> <NotificationsContainer /> </ActivityMonitor> --- __tests__/navigation/AssociateHallwayNav/indexTest.tsx @@ -11,20 +11,6 @@ const mockDispatch = jest.fn(); (useDispatch as jest.Mock).mockReturnValue(mockDispatch); const mockUseSelector = useSelector as jest.Mock; -jest.mock( - '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/FeedbackDialogScreen', - () => ({ - FeedbackDialogScreen: 'FeedbackDialogScreen', - }), -); - -jest.mock( - '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/SurveySaysDialogScreen', - () => ({ - SurveySaysDialogScreen: 'SurveySaysDialogScreen', - }), -); - jest.mock('../../../src/whatsNew/FeatureRestrictionsScreen', () => ({ FeatureRestrictionsScreen: 'FeatureRestrictionsScreen', })); --- package-lock.json @@ -3062,9 +3062,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.29.14", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.14.tgz", - "integrity": "sha512-TAD5EGNWU2kLUQGHc2LCU8q5YTPGoQN+BuChkyz51iYlQwOGB0ehGC31suOeyljAd4G3uVbdNbiQG7DH8Y+MuQ==", + "version": "0.29.16", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.29.16.tgz", + "integrity": "sha512-nsAdJbWCdB98K96yLSDsQSlLV0DTdkuT1XwxNv0ystnPcvbQzr0tFRz1m5rPeZZlGGdXhLCByUc29QmuHNOXuA==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -66,7 +66,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.38", "@walmart/allspark-home-mini-app": "0.4.0", "@walmart/allspark-me-mini-app": "0.1.0", - "@walmart/ask-sam-mini-app": "0.29.14", + "@walmart/ask-sam-mini-app": "0.29.16", "@walmart/config-components": "^1.0.26", "@walmart/counts-component-miniapp": "0.0.13", "@walmart/exception-mini-app": "0.21.0", @@ -232,7 +232,8 @@ "@walmart/react-native-logger/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/react-native-logger.js", "@walmart/ui-components/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/ui-components.js", "@walmart/redux-store/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/redux-store.js", - "@react-navigation/drawer/src/views/Header": "<rootDir>/__tests__/__mocks__/@react-navigation/drawer.js" + "@react-navigation/drawer/(.*)": "<rootDir>/__tests__/__mocks__/@react-navigation/drawer.js", + "@walmart/feedback-all-spark-miniapp/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/feedback-all-spark-miniapp.js" } }, "husky": { --- src/navigation/AssociateHallwayNav/DrawerNav.tsx @@ -7,7 +7,6 @@ import DrawerHeader from '@react-navigation/drawer/src/views/Header'; import {DrawerButton} from '@walmart/ui-components'; import {ExceptionMiniApp as PinpointMiniApp} from '@walmart/exception-mini-app'; import {ApprovalsMiniApp} from '@walmart/manager-approvals-miniapp'; -import {ItemInfoMiniApp} from '@walmart/iteminfo-mini-app'; import {withClockOutGuard} from '../ClockOutGuard'; import {SideMenuContent} from './SideMenuContent'; @@ -58,11 +57,6 @@ const GuardedScreens = [ appName: 'Manager Approvals', component: ApprovalsMiniApp, }, - { - screenName: 'itemInfo', - appName: 'Item Info', - component: ItemInfoMiniApp, - }, ]; const DynamicScreens = GuardedScreens.map((screen) => { --- src/navigation/AssociateHallwayNav/index.tsx @@ -20,6 +20,7 @@ import {Components, Properties} from '@walmart/push-to-talk-mini-app'; import {FeedbackMiniApp} from '@walmart/feedback-all-spark-miniapp'; import {FeedbackDialogScreen} from '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/FeedbackDialogScreen'; import {SurveySaysDialogScreen} from '@walmart/feedback-all-spark-miniapp/dist/src/feedback/containers/SurveySaysDialogScreen'; +import {ItemInfoMiniApp} from '@walmart/iteminfo-mini-app'; import { getInactivityTime, @@ -227,6 +228,11 @@ const AssociateHallwayNav = () => { component={ImpersonationMiniApp} options={{headerShown: false}} /> + <AssociateHallwayStack.Screen + name='itemInfo' + component={ItemInfoMiniApp} + options={{headerShown: false}} + /> </AssociateHallwayStack.Navigator> {/* PTT Notifications Container */}
Moving item info screen location for ask sam integration fix. Adding more to auto mocks.
Moving item info screen location for ask sam integration fix. Adding more to auto mocks.
a1ee53ac8677f4ccbd821163b87e5530756f4a0b
--- docs/docs/components/allspark foundation/clients/foundation-navigation.md @@ -132,7 +132,7 @@ const MyScreen = { } ``` -For convenience, a `AllsparkFeatureScreen` utlity is provided to more easily create and type feature screens. See [AllsparkFeatureScreen](../foundation-feature.md#allsparkfeaturescreen) for more details. +For convenience, a `AllsparkFeatureScreen` utlity is provided to more easily create and type feature screens. See [AllsparkFeatureScreen](../foundation-feature.md#createscreen) for more details. #### Screen Tags @@ -232,7 +232,7 @@ const MyModal = { } ``` -For convenience, a `AllsparkFeatureModal` utlity is provided to more easily create and type modals. See [AllsparkFeatureModal](../foundation-feature.md#allsparkfeaturemodal) for more details. +For convenience, a `AllsparkFeatureModal` utlity is provided to more easily create and type modals. See [AllsparkFeatureModal](../foundation-feature.md#createmodal) for more details. ```ts import {AllsparkFeatureModal} from '@walmart/allspark-foundation/Feature'; --- docs/docs/components/allspark foundation/clients/foundation-network.md @@ -14,13 +14,17 @@ It connects network calls and updates to the Allspark Redux Store, supports Walm ### Add listener ```typescript -AllsparkNetworkClient.addChangeListener((state: NetworkDetails) => { +const { remove } = AllsparkNetworkClient.addChangeListener((state: NetworkDetails) => { // do action according to the state }); +// Call `remove` to remove the listener when it's no longer needed. +remove(); ``` ### Fetching network information ```typescript const state: NetworkDetails = await AllsparkNetworkClient.fetch(); +state.isConnected; // true +state.isInternetReachable; // true ``` --- docs/docs/components/allspark foundation/foundation-featureRunner.md @@ -40,7 +40,7 @@ const FeatureRunner = new AllsparkFeatureRunner( ) ``` -### Step 2: Register App +### Step 3: Register App In the root `index.js` file, register the feature runner app with the AppRegistry. --- docs/docs/components/allspark foundation/foundation-scanner.md @@ -5,7 +5,7 @@ custom_edit_url: null --- # Scanner -The Allspark Network Client is an extension of the `@walmart/react-native-scanner-3.0`. +The Allspark Scanner component is an extension of the `@walmart/react-native-scanner-3.0`. It handles connecting the scanner license and extracting native events through the `AllsparkScanner` wrapper component. @@ -15,3 +15,34 @@ It handles connecting the scanner license and extracting native events through t onScanReceived={(scan) => console.log(scan)} onScanError={() => console.log('Scan error')}/> ``` + +## Scanner Props Options +#### `testID: string` +Test ID for the component. + +#### `isTorchOn: boolean` +Whether the flash is on or off. + +#### `isScanning: boolean` +Whether the scanner is currently scanning. + +#### `config: ScannerConfig` +Configuration options for the scanner. + +#### `scanActionType: ScanActionType` +The type of action to take when a scan is received. + +#### `onScanError: () => void` +Callback function for when a scan error occurs. + +#### `onScanReceived: (payload: ScanPayload) => void` +Callback function for when a scan is received. + +#### `logging?: ScannerLogging` +Optional logging configuration for the scanner. + +#### `feedback?: ScannerFeedback` +Optional feedback configuration for the scanner. + +#### `style?: StyleProp<ViewStyle>` +Optional style for the component. \ No newline at end of file
Updates and fixing broken anchors.
Updates and fixing broken anchors.
85159b158e2b63268bb56e01e104ba178ecb3e6d
--- packages/me-at-walmart-container/package.json @@ -33,7 +33,7 @@ "@walmart/allspark-authentication": "5.0.0-beta.14", "@walmart/allspark-foundation": "5.0.0-beta.14", "@walmart/allspark-utils": "5.0.0-beta.14", - "@walmart/config-components": "4.2.9", + "@walmart/config-components": "4.2.12", "@walmart/core-services": "5.0.0-beta.14", "@walmart/react-native-encrypted-storage": "~1.1.13", "@walmart/react-native-logger": "1.34.7", --- packages/me-at-walmart-container/src/redux/telemetry.ts @@ -74,7 +74,6 @@ export function* onUserChanged() { division, regionNbr, site: site || '', - sessionId: SESSION_ID, deviceType: deviceType!, }); } --- packages/me-at-walmart-container/src/services/config.ts @@ -14,7 +14,7 @@ import { MeAtWalmartLoggerService } from './logger'; // --- Logger --- // export const ConfigLogger = - MeAtWalmartLoggerService.createFeatureInstance('config'); + MeAtWalmartLoggerService.createFeatureInstance('AppConfig'); export const LISTENER_KEY = 'ALLSPARK_APP_CONFIG'; --- packages/me-at-walmart-container/src/services/device.ts @@ -1,5 +1,3 @@ -import { memoize } from 'lodash'; - import { getModel, getSystemVersion, @@ -9,9 +7,15 @@ import { } from 'react-native-device-info'; import { DeviceConfig } from '@walmart/config-components'; import { DeviceServiceCreator } from '@walmart/allspark-foundation/Device'; +import { MeAtWalmartLoggerService } from './logger'; + +export const DeviceLogger = + MeAtWalmartLoggerService.createFeatureInstance('DeviceConfig'); + +export const getCurrentDeviceConfig = async () => { + await DeviceConfig.initialize({ logger: DeviceLogger }); -export const getCurrentDeviceConfig = memoize( - async () => ({ + return { os: DeviceConfig.os, osVersion: getSystemVersion(), device: await DeviceConfig.device, @@ -27,9 +31,8 @@ export const getCurrentDeviceConfig = memoize( type: await DeviceConfig.getType(), buildNumber: getBuildNumber(), bundleId: getBundleId(), - }), - () => 'device_config' -); + }; +}; export const MeAtWalmartDeviceService = DeviceServiceCreator({ fetch: getCurrentDeviceConfig,
feat: update config components and logger instances passed to config services
feat: update config components and logger instances passed to config services
1541a292c3cd9517303cc02ded6227f606c3e057
--- package-lock.json @@ -3279,9 +3279,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.21.0", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.21.0.tgz", - "integrity": "sha512-QEwa7pFCjzLakjkCcjM2ggZRTpaqXA9nZsilzFubE4vmZ1BZXwAB3hAnd69bx3+kcgx30AZYphd8jv/vmuKoOw==" + "version": "0.24.0", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.24.0.tgz", + "integrity": "sha512-vW4XKkd8yVFKRgsU2RT/pthaI8OEdYWtyJRg+LpHSH3ztV0qB6kJyIAv6t3oD61kTWl3vTqP30ivbZUE0ueO4g==" }, "@walmart/wfm-ui": { "version": "0.1.50", --- package.json @@ -86,7 +86,7 @@ "@walmart/settings-mini-app": "1.2.3", "@walmart/time-clock-mini-app": "0.3.2", "@walmart/ui-components": "1.1.18", - "@walmart/welcomeme-mini-app": "0.21.0", + "@walmart/welcomeme-mini-app": "0.24.0", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3", "crypto-js": "^3.3.0",
welcomeMe mini version bump
welcomeMe mini version bump
d318f9d9180be1c7f79c7d1b6b41dc2a268baf33
--- README.md @@ -16,6 +16,7 @@ This is a template for creating a feature app in typescript. - you also need **npx** `npm install -g npx` - React Native Debugger (nice to have) + ### Setup and Install Follow [these directions](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template) to make a new repo using this one as the template. --- README.md @@ -16,6 +16,7 @@ This is a template for creating a feature app in typescript. - you also need **npx** `npm install -g npx` - React Native Debugger (nice to have) + ### Setup and Install Follow [these directions](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template) to make a new repo using this one as the template.
trigger looper
trigger looper
61bc22614d7787b369d3adb6adffe291a8df9599
--- package-lock.json @@ -74,7 +74,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.0", - "@walmart/receipt-check-miniapp": "1.8.22", + "@walmart/receipt-check-miniapp": "1.9.0", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0", @@ -5860,9 +5860,9 @@ } }, "node_modules/@walmart/receipt-check-miniapp": { - "version": "1.8.22", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.22.tgz", - "integrity": "sha512-SQMPc13sGyjILd4BlA6dkYO+ePiFKsZHZVGXFDj/dfqnECBc9wb8fsCEWrpS8dosk1KVGxdVZcfXTg8u7DunKQ==", + "version": "1.9.0", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.0.tgz", + "integrity": "sha512-dqzT+p5hi+rQl0KpRp+19HYAtn8XE9cg2jawXzBGyOF9px1/cSpzJ9hP/urkZLwDy+j3S17Q9o/t9xhwuhqUQA==", "dependencies": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", @@ -5874,8 +5874,7 @@ "peerDependencies": { "@react-navigation/native": "^6.0.0", "@react-navigation/stack": "^6.1.0", - "@walmart/core-services": "^1.0.14", - "@walmart/gtp-shared-components": "^1.2.0", + "@walmart/core-services": "2.0.6", "@walmart/redux-store": "^2.0.4", "react": "^17.0.2", "react-native": "^0.67.4", @@ -25413,9 +25412,9 @@ "integrity": "sha512-VkGT8BSZOsxR4FJjxeu6ursO3qzAVZea6jEwT6KJsXgBJ9MIHhkBo78guM6kEbqqQl3SlGS/+5tbOxKdWrvStQ==" }, "@walmart/receipt-check-miniapp": { - "version": "1.8.22", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.22.tgz", - "integrity": "sha512-SQMPc13sGyjILd4BlA6dkYO+ePiFKsZHZVGXFDj/dfqnECBc9wb8fsCEWrpS8dosk1KVGxdVZcfXTg8u7DunKQ==", + "version": "1.9.0", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.0.tgz", + "integrity": "sha512-dqzT+p5hi+rQl0KpRp+19HYAtn8XE9cg2jawXzBGyOF9px1/cSpzJ9hP/urkZLwDy+j3S17Q9o/t9xhwuhqUQA==", "requires": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", --- package.json @@ -73,7 +73,6 @@ "@react-navigation/stack": "^6.1.0", "@sharcoux/slider": "^6.1.1", "@terrylinla/react-native-sketch-canvas": "0.8.0", - "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/allspark-graphql-client": "^0.1.0", "@walmart/allspark-home-mini-app": "0.6.14", "@walmart/allspark-neon-core": "0.1.31", @@ -104,6 +103,7 @@ "@walmart/metrics-mini-app": "0.9.36", "@walmart/mod-flex-mini-app": "1.3.15", "@walmart/moment-walmart": "1.0.4", + "@walmart/OneWalmart-MiniApp": "1.0.12", "@walmart/pay-stub-miniapp": "0.9.7", "@walmart/payrollsolution_miniapp": "0.130.14", "@walmart/price-changes-mini-app": "1.6.10", @@ -116,7 +116,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.0", - "@walmart/receipt-check-miniapp": "1.8.22", + "@walmart/receipt-check-miniapp": "1.9.0", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0",
drop 9 update for receipt check
drop 9 update for receipt check
fe3fde04f95ba27e696451b65c881f32bedb29ec
--- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.25.5](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.4...@walmart/allspark-foundation-hub@1.25.5) (2025-12-04) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.25.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.25.3...@walmart/allspark-foundation-hub@1.25.4) (2025-12-02) **Note:** Version bump only for package @walmart/allspark-foundation-hub --- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.25.4", + "version": "1.25.5", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.16.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.16.2...@walmart/allspark-foundation@7.16.3) (2025-12-04) + +### Bug Fixes + +- remove deprecated package references ([f207333](https://gecgithub01.walmart.com/allspark/allspark/commit/f20733340e0d6a224c494da91a18b9797481f896)) +- **ui:** update deprecated gtp shared components package ([#510](https://gecgithub01.walmart.com/allspark/allspark/issues/510)) ([2ee08aa](https://gecgithub01.walmart.com/allspark/allspark/commit/2ee08aac086284208c6d106770563f531295c0cb)) + ## [7.16.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.16.1...@walmart/allspark-foundation@7.16.2) (2025-12-02) **Note:** Version bump only for package @walmart/allspark-foundation --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.16.2", + "version": "7.16.3", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/my-walmart-hub/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.6.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.6.1...@walmart/my-walmart-hub@1.6.2) (2025-12-04) + +### Bug Fixes + +- **ui:** unable to locate cross & search in update save teams ([#508](https://gecgithub01.walmart.com/allspark/allspark/issues/508)) ([0e0a2a2](https://gecgithub01.walmart.com/allspark/allspark/commit/0e0a2a2d1a66a168cd112efc432515d08c84e929)) +- **ui:** update deprecated gtp shared component package ([#505](https://gecgithub01.walmart.com/allspark/allspark/issues/505)) ([e5fa580](https://gecgithub01.walmart.com/allspark/allspark/commit/e5fa5808eed1646b31df73f37ef1a803db8e915a)) + ## [1.6.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-hub@1.6.0...@walmart/my-walmart-hub@1.6.1) (2025-12-02) **Note:** Version bump only for package @walmart/my-walmart-hub --- packages/my-walmart-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/my-walmart-hub", - "version": "1.6.1", + "version": "1.6.2", "description": "My Walmart Hub - A comprehensive hub framework for building dynamic widget-based interfaces", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation@7.16.3 - @walmart/allspark-foundation-hub@1.25.5 - @walmart/my-walmart-hub@1.6.2
f71d74fca3de3b04f306dac7174d688dba8d2682
--- fastlane/Fastfile @@ -59,7 +59,7 @@ lane :submit_to_appcenter do |options| if options[:BUILD_OUTPUT] appcenter_upload( file: options[:BUILD_OUTPUT], - destinations: "allsparktestershotfix" + destinations: "allsparktestershotfix", release_notes: release_notes.join("\n\n"), # renders each line in a <p/> in App Center upload_build_only: true) end
fixed syntax error
fixed syntax error
cb0356377c012ce5b8ae633031f0f8ca7585b4ff
--- package-lock.json @@ -70,7 +70,7 @@ "@walmart/pay-stub-miniapp": "0.10.15", "@walmart/payrollsolution_miniapp": "0.131.15", "@walmart/price-changes-mini-app": "1.10.1", - "@walmart/profile-feature-app": "0.334.2", + "@walmart/profile-feature-app": "0.334.3", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.34.8", @@ -9360,9 +9360,9 @@ } }, "node_modules/@walmart/profile-feature-app": { - "version": "0.334.2", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.334.2.tgz", - "integrity": "sha512-s3mQc6bzm7Q+tLlUjIj6CAeZjTOX+Ddf5hkKFjdJDxuL8MErjwdfo5NiVgwqDAoaS3NzPizEDyAiENsOZWNLsg==", + "version": "0.334.3", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.334.3.tgz", + "integrity": "sha512-Nsf4EwhxkpcnX+LzmOpzFZTQbUP93oSf2wZa48k6Prg/j3d5S7K1dKx/mXp0NTNqs5vtLjekxR6CPy+Aisz4TQ==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/bottom-tabs": "^6.0.0", @@ -33419,9 +33419,9 @@ "integrity": "sha512-Jht/q+XDGe4mTqsjUQNNudNxeNF+N6/3dCJZ12IqIvL4ynY1sfOafLCCJ53VoEQwjlJUatSvS1toU5Yh/MYD+g==" }, "@walmart/profile-feature-app": { - "version": "0.334.2", - "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.334.2.tgz", - "integrity": "sha512-s3mQc6bzm7Q+tLlUjIj6CAeZjTOX+Ddf5hkKFjdJDxuL8MErjwdfo5NiVgwqDAoaS3NzPizEDyAiENsOZWNLsg==" + "version": "0.334.3", + "resolved": "https://npme.walmart.com/@walmart/profile-feature-app/-/profile-feature-app-0.334.3.tgz", + "integrity": "sha512-Nsf4EwhxkpcnX+LzmOpzFZTQbUP93oSf2wZa48k6Prg/j3d5S7K1dKx/mXp0NTNqs5vtLjekxR6CPy+Aisz4TQ==" }, "@walmart/react-native-encrypted-storage": { "version": "1.1.3" --- package.json @@ -111,7 +111,7 @@ "@walmart/pay-stub-miniapp": "0.10.15", "@walmart/payrollsolution_miniapp": "0.131.15", "@walmart/price-changes-mini-app": "1.10.1", - "@walmart/profile-feature-app": "0.334.2", + "@walmart/profile-feature-app": "0.334.3", "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.34.8",
feat: bump profile-feature-app to 0.334.3
feat: bump profile-feature-app to 0.334.3
2d2b67eea2d1c78ac03a4b5a91690bcdf9e85975
--- packages/allspark-foundation-hub/src/HubFeature/Hub/TeamSwitcher/index.tsx @@ -102,7 +102,7 @@ export const TeamSwitcher = ({ } else if (isOffSite && empType === EMP_TYPE_HOURLY) { evaluatedTeamList = [totalStore, ...allTeamsOfStore]; evaluatedSelectTeam = totalStore; - } else if (userPrefTeams) { + } else if (userPrefTeams && userPrefTeams.length > 1) { const primaryTeam = userTeams?.[0]; evaluatedTeamList = [ totalStore,
feat(ui): updated condition for myTeams
feat(ui): updated condition for myTeams
d46335ee3ac61e1134c9bcc515117d545704b744
--- __tests__/auth/__snapshots__/CustomErrorScreenCardTest.tsx.snap @@ -43,7 +43,7 @@ exports[`CustomErrorCard 1`] = ` } } > - networkErrorTitle + ssoError.networkErrorTitle </Text> <Text style={ @@ -61,7 +61,7 @@ exports[`CustomErrorCard 1`] = ` } testID="errorMessage" > - networkErrorDescription + ssoError.networkErrorDescription </Text> <View accessibilityRole="button" @@ -125,7 +125,7 @@ exports[`CustomErrorCard 1`] = ` } } > - Try again + ssoError.tryAgain </Text> </View> </View> @@ -186,7 +186,7 @@ exports[`CustomErrorCard 1`] = ` } } > - Report issue + ssoError.reportIssue </Text> </View> </View> @@ -236,7 +236,7 @@ exports[`CustomErrorCard 2`] = ` } } > - timeMismatchErrorTitle + ssoError.timeMismatchErrorTitle </Text> <Text style={ @@ -254,7 +254,7 @@ exports[`CustomErrorCard 2`] = ` } testID="errorMessage" > - timeMismatchErrorDescription + ssoError.timeMismatchErrorDescription </Text> <View accessibilityRole="button" @@ -314,7 +314,7 @@ exports[`CustomErrorCard 2`] = ` } } > - Try again + ssoError.tryAgain </Text> </View> </View> @@ -371,7 +371,7 @@ exports[`CustomErrorCard 2`] = ` } } > - Report issue + ssoError.reportIssue </Text> </View> </View> --- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -`exports[`ErrorScreen handles rendering the custom error 1`] = ` +exports[`ErrorScreen handles rendering the custom error 1`] = ` <View style={ Array [ @@ -43,7 +43,7 @@ } } > - networkErrorTitle + ssoError.networkErrorTitle </Text> <Text style={ @@ -61,7 +61,7 @@ } testID="errorMessage" > - networkErrorDescription + ssoError.networkErrorDescription </Text> <View accessibilityRole="button" @@ -125,7 +125,7 @@ } } > - Try again + ssoError.tryAgain </Text> </View> </View> @@ -186,7 +186,7 @@ } } > - Report issue + ssoError.reportIssue </Text> </View> </View> --- package.json @@ -260,7 +260,7 @@ } }, "transformIgnorePatterns": [ - "<rootDir>/node_modules/(?!(react-native|@walmart/core-services|@walmart/core-services-allspark|@walmart/gtp-shared-components|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-gesture-handler|@react-native)/)" + "<rootDir>/node_modules/(?!(react-native|@walmart/core-services|@walmart/core-services-allspark|@walmart/gtp-shared-components|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|react-native-gesture-handler|@react-native|@react-native-community/datetimepicker)/)" ], "moduleNameMapper": { "@walmart/react-native-logger/(.*)": "<rootDir>/__tests__/__mocks__/@walmart/react-native-logger.js", --- src/auth/ErrorScreen.tsx @@ -135,7 +135,7 @@ export const ErrorScreen = ( logMsg.devicetype = deviceType; logMsg.options = flatten(Object.values(formatedMsgOther)); } - // navigation.goBack(); + navigation.goBack(); telemetry.logEvent(SSO_APP, 'feedback_submitted', {}); InteractionManager.runAfterInteractions(() => navigation.navigate('Core.Toast', { --- src/startup/AuthFlow.ts @@ -17,10 +17,10 @@ import {Auth} from '../core/Auth'; * no user signed in, user cancelled flow - Android */ const SILENT_SSO_ERRORS = [ - // 'get user failed', - // 'no user signed in', - // 'user cancelled flow', - // 'the operation couldn’t be completed', + 'get user failed', + 'no user signed in', + 'user cancelled flow', + 'the operation couldn’t be completed', ]; export const isSilentSignInError = (error?: Error) =>
uncomment test code
uncomment test code
66958af7017222ac9c95ea4ebefd1ebfa868d054
--- __tests__/auth/ErrorScreenTest.tsx @@ -162,7 +162,7 @@ describe('ErrorScreen', () => { mockUseState.mockReturnValueOnce(['', setUserId]); mockUseState.mockReturnValueOnce(['', setIssueDetail]); mockUseState.mockReturnValueOnce(['1234', setSiteId]); - mockUseState.mockReturnValueOnce([true, setUserIdPlaceholder]); + mockUseState.mockReturnValueOnce([false, setUserIdPlaceholder]); mockUseState.mockReturnValueOnce([true, setSiteIdPlaceholder]); mockUseState.mockReturnValueOnce([true, setDetailPlaceholder]); mockUseState.mockReturnValueOnce([false, setRequired]); @@ -185,14 +185,38 @@ describe('ErrorScreen', () => { expect(setRequired).toHaveBeenCalledWith(true); }); it(' display error message ', () => { + mockUseState.mockReturnValueOnce(['', setUserId]); + mockUseState.mockReturnValueOnce(['', setIssueDetail]); + mockUseState.mockReturnValueOnce(['', setSiteId]); + mockUseState.mockReturnValueOnce([false, setUserIdPlaceholder]); + mockUseState.mockReturnValueOnce([false, setSiteIdPlaceholder]); + mockUseState.mockReturnValueOnce([true, setDetailPlaceholder]); + mockUseState.mockReturnValueOnce([true, setRequired]); + component.update(<ErrorScreen navigation={mockNavigation} />); + expect(component.toJSON()).toMatchSnapshot(); + }); + it('display Required style change on error', () => { mockUseState.mockReturnValueOnce(['1234', setUserId]); mockUseState.mockReturnValueOnce(['', setIssueDetail]); mockUseState.mockReturnValueOnce(['', setSiteId]); mockUseState.mockReturnValueOnce([true, setUserIdPlaceholder]); - mockUseState.mockReturnValueOnce([true, setSiteIdPlaceholder]); + mockUseState.mockReturnValueOnce([false, setSiteIdPlaceholder]); mockUseState.mockReturnValueOnce([true, setDetailPlaceholder]); mockUseState.mockReturnValueOnce([true, setRequired]); component.update(<ErrorScreen navigation={mockNavigation} />); - expect(component.toJSON()).toMatchSnapshot(); + const RequiredText = component.root.findByProps({testID: 'required'}); + expect(RequiredText.props.style.color).toEqual('#de1c24'); + }); + it(' display error msg on error', () => { + mockUseState.mockReturnValueOnce(['', setUserId]); + mockUseState.mockReturnValueOnce(['', setIssueDetail]); + mockUseState.mockReturnValueOnce(['123', setSiteId]); + mockUseState.mockReturnValueOnce([true, setUserIdPlaceholder]); + mockUseState.mockReturnValueOnce([false, setSiteIdPlaceholder]); + mockUseState.mockReturnValueOnce([true, setDetailPlaceholder]); + mockUseState.mockReturnValueOnce([true, setRequired]); + component.update(<ErrorScreen navigation={mockNavigation} />); + const RequiredText = component.root.findByProps({testID: 'error-msg'}); + expect(RequiredText.props.style.color).toEqual('#de1c24'); }); }); --- __tests__/auth/__snapshots__/ErrorScreenTest.tsx.snap @@ -53,7 +53,7 @@ exports[`ErrorScreen display error message 1`] = ` <Text style={ Object { - "color": "#2e2f32", + "color": "#de1c24", "fontFamily": "Bogle", "fontSize": 12, "fontStyle": "normal", @@ -62,13 +62,14 @@ exports[`ErrorScreen display error message 1`] = ` "marginTop": 24, } } + testID="required" > ssoError.required </Text> <View style={ Object { - "borderColor": "#909196", + "borderColor": "#de1c24", "borderRadius": 5, "borderWidth": 1, "color": "#74767c", @@ -76,12 +77,25 @@ exports[`ErrorScreen display error message 1`] = ` } } > + <Text + style={ + Object { + "backgroundColor": "#FFFFFF", + "color": "#de1c24", + "left": 10, + "position": "absolute", + "top": -10, + } + } + > + ssoError.userId + </Text> <TextInput allowFontScaling={true} onBlur={[Function]} onChangeText={[Function]} onFocus={[Function]} - placeholder="ssoError.userId" + placeholder="" rejectResponderTermination={true} style={ Object { @@ -94,7 +108,7 @@ exports[`ErrorScreen display error message 1`] = ` } testID="userId-text" underlineColorAndroid="transparent" - value="1234" + value="" /> </View> <View @@ -108,13 +122,26 @@ exports[`ErrorScreen display error message 1`] = ` } } > + <Text + style={ + Object { + "backgroundColor": "#FFFFFF", + "color": "#de1c24", + "left": 10, + "position": "absolute", + "top": -10, + } + } + > + ssoError.siteId + </Text> <TextInput allowFontScaling={true} keyboardType="numeric" onBlur={[Function]} onChangeText={[Function]} onFocus={[Function]} - placeholder="ssoError.siteId" + placeholder="" rejectResponderTermination={true} style={ Object { @@ -143,6 +170,7 @@ exports[`ErrorScreen display error message 1`] = ` "marginTop": 5, } } + testID="error-msg" > ssoError.requiredError </Text> @@ -294,6 +322,7 @@ exports[`ErrorScreen renders default 1`] = ` "marginTop": 24, } } + testID="required" > ssoError.required </Text> --- src/auth/ErrorScreen.tsx @@ -52,8 +52,9 @@ export const ErrorScreen: FC<any> = (props) => { {translate('ssoError.reportIssueTitle')} </Subheader2> <Subheader + testID={'required'} style={ - required && (!userId || !siteIdPlaceholder) + required && (!userId || !siteId) ? styles.headerError : styles.header }> @@ -105,7 +106,7 @@ export const ErrorScreen: FC<any> = (props) => { /> </View> {required && (!siteId || !userId) && ( - <Subheader style={styles.requiredError}> + <Subheader testID='error-msg' style={styles.requiredError}> {translate('ssoError.requiredError')} </Subheader> )}
test case update
test case update
3c663cf558f82804a3505042c71d55b0a22b8577
--- src/containers/ChatInput/index.tsx @@ -4,7 +4,10 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context'; import firestore from '@react-native-firebase/firestore'; import {colors} from '@walmart/gtp-shared-components'; -import Animated, {SequencedTransition} from 'react-native-reanimated'; +import Animated, { + SequencedTransition, + withTiming, +} from 'react-native-reanimated'; import { Asset, ImagePickerResponse, @@ -85,6 +88,20 @@ const styles = StyleSheet.create({ }, }); +const InputTransition = (values) => { + 'worklet'; + return { + initialValues: { + originX: values.currentOriginX, + width: values.currentWidth, + }, + animations: { + originX: withTiming(values.targetOriginX, {duration: 100}), + width: withTiming(values.targetWidth, {duration: 100}), + }, + }; +}; + export const ChatInput = (props: { onSend: (message: MessageRequest) => void; }) => { @@ -249,9 +266,7 @@ export const ChatInput = (props: { onStopRecord={onTrashRecording} /> - <Animated.View - style={styles.inputContainer} - layout={SequencedTransition}> + <Animated.View style={styles.inputContainer} layout={InputTransition}> <> <TextInput value={text} --- src/utils/channel.ts @@ -87,16 +87,19 @@ export const getChannelLastMessageDetails = async ( ) => { const {lastMessage: lastMessageRef} = channel; - const lastMessage = lastMessageRef - ? (await lastMessageRef?.get()).data() - : ({} as any); + const defaultDetails = { + message: 'No messages found', + timestamp: getChannelTimestamp(moment(channel.createdAt.toDate())), + }; + + if (!lastMessageRef) { + return defaultDetails; + } + + const lastMessage = (await lastMessageRef?.get()).data(); if (!lastMessage) { - return { - unread: false, - message: '', - timestamp: '', - }; + return defaultDetails; } const lastMessageFromViewer = lastMessage.sentFrom === viewerId; --- src/containers/ChatInput/index.tsx @@ -4,7 +4,10 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context'; import firestore from '@react-native-firebase/firestore'; import {colors} from '@walmart/gtp-shared-components'; -import Animated, {SequencedTransition} from 'react-native-reanimated'; +import Animated, { + SequencedTransition, + withTiming, +} from 'react-native-reanimated'; import { Asset, ImagePickerResponse, @@ -85,6 +88,20 @@ const styles = StyleSheet.create({ }, }); +const InputTransition = (values) => { + 'worklet'; + return { + initialValues: { + originX: values.currentOriginX, + width: values.currentWidth, + }, + animations: { + originX: withTiming(values.targetOriginX, {duration: 100}), + width: withTiming(values.targetWidth, {duration: 100}), + }, + }; +}; + export const ChatInput = (props: { onSend: (message: MessageRequest) => void; }) => { @@ -249,9 +266,7 @@ export const ChatInput = (props: { onStopRecord={onTrashRecording} /> - <Animated.View - style={styles.inputContainer} - layout={SequencedTransition}> + <Animated.View style={styles.inputContainer} layout={InputTransition}> <> <TextInput value={text} --- src/utils/channel.ts @@ -87,16 +87,19 @@ export const getChannelLastMessageDetails = async ( ) => { const {lastMessage: lastMessageRef} = channel; - const lastMessage = lastMessageRef - ? (await lastMessageRef?.get()).data() - : ({} as any); + const defaultDetails = { + message: 'No messages found', + timestamp: getChannelTimestamp(moment(channel.createdAt.toDate())), + }; + + if (!lastMessageRef) { + return defaultDetails; + } + + const lastMessage = (await lastMessageRef?.get()).data(); if (!lastMessage) { - return { - unread: false, - message: '', - timestamp: '', - }; + return defaultDetails; } const lastMessageFromViewer = lastMessage.sentFrom === viewerId;
fix: input animation and channel default details
fix: input animation and channel default details
58853b76cfc810a64a698d489bc7c1562ea86a5d
--- graphql.yml @@ -57,7 +57,7 @@ applications: tags: - 'v1' - name: 'upsertSupplyChainAssociatePreference' - hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' + hash: '571873ffcf9d8923e4951fa75addb46f876c949046518f0c302707deadab878a' queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' tags: - 'v1'
Update graphql.yml
Update graphql.yml
a04804a51c16ab76b0c6b4d083a8828da51b860e
--- package.json @@ -60,6 +60,9 @@ "@walmart/financial-wellbeing-feature-app": { "built": false }, + "@walmart/global-vpi-mini-app": { + "built": false + }, "@walmart/iteminfo-mini-app": { "built": false }, --- yarn.lock @@ -8077,6 +8077,8 @@ __metadata: built: false "@walmart/financial-wellbeing-feature-app": built: false + "@walmart/global-vpi-mini-app": + built: false "@walmart/iteminfo-mini-app": built: false "@walmart/learning-mini-app":
chore: skip build scripts of vpi mini app
chore: skip build scripts of vpi mini app
b97adc1b12dbec9b7f546f67a4ba9c6a49033379
--- packages/allspark-authentication/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.4](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-authentication@7.1.3...@walmart/allspark-authentication@7.1.4) (2025-11-26) + +**Note:** Version bump only for package @walmart/allspark-authentication + ## [7.1.3](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-authentication@7.1.2...@walmart/allspark-authentication@7.1.3) (2025-11-24) **Note:** Version bump only for package @walmart/allspark-authentication --- packages/allspark-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-authentication", - "version": "7.1.3", + "version": "7.1.4", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-authentication@7.1.4
a243a5ccaa331f33a969ec96f8146d7a25e5f4e8
--- packages/allspark-foundation/src/Navigation/client.tsx @@ -1,4 +1,4 @@ -import { createRef } from 'react'; +import React, { createRef } from 'react'; import { type NavigationContainerRef, @@ -8,7 +8,17 @@ import { CommonActions, DrawerActions, ParamListBase, + StackRouter, + StackRouterOptions, + Router, + StackNavigationState, + StackActionType, + RouterConfigOptions, + useNavigationBuilder, + createNavigatorFactory, } from '@react-navigation/native'; +import { StackView } from '@react-navigation/stack'; + import { createModalStack, modalfy, @@ -535,6 +545,71 @@ export class NavigationClient< public closeAllModals = (callback?: () => void) => { this._modalfy.closeAllModals(callback); }; + + /** + * Creates StackNavigator connected to AllsparkNavigationClient. + */ + public createAllsparkStackNavigator = () => { + const AllsparkStackRouter = (options: StackRouterOptions) => { + const router = StackRouter(options); + + const getStateForAction = ( + state: StackNavigationState<S>, + action: CommonActions.Action | StackActionType, + opts: RouterConfigOptions + ) => { + const result = router.getStateForAction(state, action, opts); + + if (action.type === 'NAVIGATE') { + const newAction = CommonActions.navigate( + ...this._buildNavigateParams( + action.payload.name || action.payload.key!, + action.payload.params + ) + ); + + return router.getStateForAction(state, newAction, opts); + } + + return result; + }; + + return { + ...router, + getStateForAction, + } as Router< + StackNavigationState<ParamListBase>, + CommonActions.Action | StackActionType + >; + }; + + const AllsparkStackNavigator = ({ + initialRouteName, + children, + screenOptions, + ...rest + }: any) => { + const { state, descriptors, navigation, NavigationContent } = + useNavigationBuilder(AllsparkStackRouter, { + initialRouteName, + children, + screenOptions, + }); + + return ( + <NavigationContent> + <StackView + {...rest} + state={state} + descriptors={descriptors} + navigation={navigation} + /> + </NavigationContent> + ); + }; + + return createNavigatorFactory(AllsparkStackNavigator); + }; } /**
feat: add capability to build connect stack navigator from navigation client
feat: add capability to build connect stack navigator from navigation client
d44290e53e305b646a82b569ea50d0a8fe5a82fc
--- package-lock.json @@ -129,7 +129,6 @@ "react-native-image-picker": "4.10.0", "react-native-image-resizer": "1.4.5", "react-native-inappbrowser-reborn": "^3.7.0", - "react-native-inappbrowser-reborn": "^3.7.0", "react-native-linear-gradient": "2.6.2", "react-native-location-enabler": "^4.1.1", "react-native-loudness": "^2.0.0",
✅ Updating package lock file
✅ Updating package lock file
564bcf3240d359faa65c6380f42cc78b9e09e894
--- __tests__/home/components/GreetingRow/__snapshots__/BaseGreetingTest.tsx.snap @@ -17,7 +17,7 @@ exports[`BaseGreeting matches snapshot with name 1`] = ` Array [ Object { "lineHeight": 28, - "marginBottom": 8, + "marginVertical": 8, }, undefined, ] @@ -62,18 +62,13 @@ exports[`BaseGreeting matches snapshot without name, with icon, and custom style <SparkIcon color="#fff200" size={32} - style={ - Object { - "marginBottom": 8, - } - } /> <Title style={ Array [ Object { "lineHeight": 28, - "marginBottom": 8, + "marginVertical": 8, }, Object { "padding": 10, --- __tests__/home/components/GreetingRow/__snapshots__/SiteInfoTest.tsx.snap @@ -10,15 +10,18 @@ exports[`BasSiteInfoeGreeting matches snapshot when given color and change site } } > - <StoreIcon - color="red" - size={16} + <View style={ Object { "marginRight": 8, } } - /> + > + <StoreIcon + color="red" + size={16} + /> + </View> <Subheader style={ Array [ @@ -44,14 +47,17 @@ exports[`BasSiteInfoeGreeting matches snapshot; navigates on press 1`] = ` } } > - <StoreIcon - size={16} + <View style={ Object { "marginRight": 8, } } - /> + > + <StoreIcon + size={16} + /> + </View> <LinkButton onPress={[Function]} testID="changeStoreButton" --- src/home/components/GreetingRow/BaseGreeting.tsx @@ -10,12 +10,9 @@ const styles = StyleSheet.create({ greetingContainer: { paddingTop: Metrics.margins.large, }, - sparkIcon: { - marginBottom: Metrics.margins.base, - }, greeting: { lineHeight: 28, - marginBottom: 8, + marginVertical: 8, }, seperator: { height: 4, @@ -46,7 +43,6 @@ export const BaseGreeting: FC<BaseGreetingPrps> = (props) => { <SparkIcon size={32} color={colors.yellow[100]} - style={styles.sparkIcon} /> )} <Title style={[styles.greeting, titleStyle]}>{title}</Title> --- src/home/components/GreetingRow/SiteInfo.tsx @@ -47,7 +47,9 @@ export const SiteInfo: FC<SiteInfoProps> = (props) => { return ( <View style={styles.container}> - <StoreIcon size={16} color={color} style={styles.icon} /> + <View style={styles.icon}> + <StoreIcon size={16} color={color} /> + </View> {viewSiteEnabled ? ( <LinkButton testID='changeStoreButton' onPress={onSitePress}> {SiteText}
updated styles
updated styles
05afd2b57dbcc4c1880217b5b4a4893f391ad3c4
--- example/src/teamHub/screens/container.tsx @@ -2,9 +2,9 @@ import {useNavigation} from '@react-navigation/native'; import React, {useEffect, useRef} from 'react'; import {TeamHub} from '../feature'; import {TeamHubLogger, TeamHubTelemetry} from '../services'; -import {BottomSheet} from '@walmart/allspark-foundation/Components'; +import {BottomSheet} from '@walmart/allspark-foundation/HubFeature'; import {Image, Text, View} from 'react-native'; -import {AllsparkHubContainer} from '@walmart/allspark-foundation/Components'; +import {AllsparkHubContainer} from '@walmart/allspark-foundation/HubFeature'; import {Widget1, Widget2, Widget3} from './widgets'; export const ContainerScreen = TeamHub.createScreen( --- example/src/teamHub/screens/onboarding.tsx @@ -3,7 +3,7 @@ import {useNavigation} from '@react-navigation/native'; import {useEffect} from 'react'; import {TeamHub} from '../feature'; import {TeamHubLogger, TeamHubTelemetry} from '../services'; -import {TeamOnboardingScreen} from '@walmart/allspark-foundation/Components'; +import {TeamOnboardingScreen} from '@walmart/allspark-foundation/HubFeature'; import {teamOnboardingCardsMockData} from '@walmart/allspark-foundation/__mocks__/data/teamOnboardingCards'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; --- example/src/teamHub/screens/teamSelection.tsx @@ -2,7 +2,7 @@ import React, {useEffect} from 'react'; import {useNavigation} from '@react-navigation/native'; import {TeamHub} from '../feature'; import {TeamHubLogger, TeamHubTelemetry} from '../services'; -import {TeamSelection} from '@walmart/allspark-foundation/Components/Onboarding/TeamSelection/Screens'; +import {TeamSelection} from '@walmart/allspark-foundation/HubFeature/Onboarding/TeamSelection/Screens'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; export const TeamSelectionScreen = TeamHub.createScreen(
File structure change for hub feature
File structure change for hub feature
068d196fa4a9e7eecf7e51bfa415ac7ee64103e1
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -33,7 +33,7 @@ import { getSideMenuNavConfig, NavConfigActionCreators, } from '../../navConfig/NavConfigRedux'; -import { isNil } from 'lodash'; +import {isNil} from 'lodash'; const styles = StyleSheet.create({ globalNavContainer: { @@ -173,7 +173,9 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( onRetry={onRetry} enableTaskItAlert={!!highPriorityCount || !!signOffTaskCount} showInboxBadge={!!badgesCount} - enablePttAlert={!isNil(unreadMessageCount) ? unreadMessageCount : undefined} + enablePttAlert={ + !isNil(unreadMessageCount) ? unreadMessageCount : undefined + } enableTimeClock={getIsClockingEnabled} />
fix lint
fix lint
601d548e9390eabbaa4e8df3bb87087b31b2d265
--- .looper.codepush.yml @@ -1,90 +0,0 @@ -node: ((osx||stable_osx)&&!dualcore) -# Revoke below key once done with testing. -envs: - global: - variables: - APPCENTER_API_TOKEN_IOS: "%{credentials.secret('appcenter_iOS')}" - APPCENTER_API_TOKEN_ANDROID: "34c9f45a58379e5c5aedaee40e601821ea406443" - -tools: - nodejs: - - 16.17.0 - -branches: - - spec: feature/* - triggers: - - manual: - name: dev/beta codepush - Click only once - call: dev - - spec: main - triggers: - - manual: - name: main branch prod - Click only once - call: prod - -flows: - default: - - call: pr - - dev: - - npm install - - npm -v - - echo $APPCENTER_API_TOKEN_ANDROID - - shell: | - #!/bin/bash - CURRENT_BRANCH=$(git branch --show-current) - echo ${CURRENT_BRANCH} - git config --get remote.origin.fetch - echo 'current branch echoed earlier' - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" - git config --get remote.origin.fetch - git branch --set-upstream-to=origin/${CURRENT_BRANCH} ${CURRENT_BRANCH} - echo 'Upstream set, doing pull' - git fetch --all - git pull --all - echo 'Branch names:' - git branch -a - echo 'git setup done, moving to node part now' - - npm install -g appcenter-cli - - echo 'doing listing' - - appcenter login --token $APPCENTER_API_TOKEN_ANDROID - - appcenter apps list - - npm run env:dev - - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d dev --description "update from looper for dev" - - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d dev --description 'looper update' - - npm run env:beta - - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d beta --description "looper update beta" - - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d beta --description 'looper update beta' - - appcenter logout - - prod: - - npm install - - echo $APPCENTER_API_TOKEN_ANDROID - - shell: | - #!/bin/bash - CURRENT_BRANCH=$(git branch --show-current) - echo ${CURRENT_BRANCH} - git config --get remote.origin.fetch - echo 'current branch echoed earlier' - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" - git config --get remote.origin.fetch - git branch --set-upstream-to=origin/${CURRENT_BRANCH} ${CURRENT_BRANCH} - echo 'Upstream set, doing pull' - git fetch --all - git pull --all - echo 'Branch names:' - git branch -a - echo 'switching to main branch' - git switch main - - npm install -g appcenter-cli - - appcenter login --token $APPCENTER_API_TOKEN_ANDROID - - npm run env:prod - - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Android -d prod --description "Prod release" --rollout 1% - - appcenter codepush release-react -a AllSpark-Me-Walmart/AllSpark-Me-Walmart --plist-file ./ios/AllSpark/Info.plist -d prod --description 'Prod Release' --rollout 1% - - appcenter logout -# TODO make below version dynamic. - - git tag v0.0.2 - - git push origin v0.0.2 - - pr: - - npm install
removing looper file from this repo
removing looper file from this repo
2051b96f7ffb51373e14061ac29b3cc87145280d
--- package-lock.json @@ -37,7 +37,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.74", "@walmart/attendance-mini-app": "0.86.0", - "@walmart/compass-sdk-rn": "3.16.1", + "@walmart/compass-sdk-rn": "3.16.17", "@walmart/config-components": "4.1.0-rc.4", "@walmart/core-services": "~2.0.19", "@walmart/core-services-allspark": "~2.10.16", @@ -57,7 +57,7 @@ "@walmart/inbox-mini-app": "0.83.3", "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", - "@walmart/me-field-mini-app": "12.0.17", + "@walmart/me-field-mini-app": "12.0.18", "@walmart/metrics-mini-app": "0.11.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4", @@ -4907,9 +4907,9 @@ } }, "node_modules/@walmart/compass-sdk-rn": { - "version": "3.16.1", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.1.tgz", - "integrity": "sha512-uosdKTI5vIqbp0WPCEO8Bwy/0uJuk6cy5clCyJJGpheGIRQiSPcsqBy+vx21TI+N/eA0XSqHgDAsckpKYgloWQ==", + "version": "3.16.17", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.17.tgz", + "integrity": "sha512-E3AWgniUS68f9DfWvhX1XoPuo9FFe2RXL0HxYcX6w9zq1wIu+sZX79Y9c0NL6pecNWOpKex/krNPMFYgC5q3RA==", "license": "MIT", "peerDependencies": { "react": "*", @@ -5453,9 +5453,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "12.0.17", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.17.tgz", - "integrity": "sha512-J3/ahMoj1E+vR1wEkpUETRO344dmfbbsYTb6helWeMv39JVTdrfbkQIhP3ajt9naTxLGEqrOYpKAnJ4rkDdcMA==", + "version": "12.0.18", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.18.tgz", + "integrity": "sha512-EgZjkqUo58LBeMd8dT7lSseN00pNIAo4y8/MrC+mfHn3Dxl707FEIsRLVfdko/se2BMRziu3ye14k8QAdk9H3w==", "hasInstallScript": true, "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", @@ -5470,7 +5470,7 @@ "@types/graphql": "^14.5.0", "@walmart/config-components": "^3.0.1", "@walmart/core-services": "2.0.19", - "@walmart/core-services-allspark": "2.10.14", + "@walmart/core-services-allspark": "2.10.16", "@walmart/core-utils": "~2.0.3", "@walmart/functional-components": "~4.0.3", "@walmart/gtp-shared-components": "2.0.3", @@ -25184,9 +25184,9 @@ } }, "@walmart/compass-sdk-rn": { - "version": "3.16.1", - "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.1.tgz", - "integrity": "sha512-uosdKTI5vIqbp0WPCEO8Bwy/0uJuk6cy5clCyJJGpheGIRQiSPcsqBy+vx21TI+N/eA0XSqHgDAsckpKYgloWQ==" + "version": "3.16.17", + "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-3.16.17.tgz", + "integrity": "sha512-E3AWgniUS68f9DfWvhX1XoPuo9FFe2RXL0HxYcX6w9zq1wIu+sZX79Y9c0NL6pecNWOpKex/krNPMFYgC5q3RA==" }, "@walmart/config-components": { "version": "4.1.0-rc.4", @@ -25346,9 +25346,9 @@ } }, "@walmart/me-field-mini-app": { - "version": "12.0.17", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.17.tgz", - "integrity": "sha512-J3/ahMoj1E+vR1wEkpUETRO344dmfbbsYTb6helWeMv39JVTdrfbkQIhP3ajt9naTxLGEqrOYpKAnJ4rkDdcMA==" + "version": "12.0.18", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-12.0.18.tgz", + "integrity": "sha512-EgZjkqUo58LBeMd8dT7lSseN00pNIAo4y8/MrC+mfHn3Dxl707FEIsRLVfdko/se2BMRziu3ye14k8QAdk9H3w==" }, "@walmart/metrics-mini-app": { "version": "0.11.5", --- package.json @@ -99,7 +99,7 @@ "@walmart/inbox-mini-app": "0.83.3", "@walmart/iteminfo-mini-app": "7.2.2", "@walmart/manager-approvals-miniapp": "0.2.2", - "@walmart/me-field-mini-app": "12.0.17", + "@walmart/me-field-mini-app": "12.0.18", "@walmart/metrics-mini-app": "0.11.5", "@walmart/mod-flex-mini-app": "1.8.6", "@walmart/moment-walmart": "1.0.4",
feat: 📦 Bump learning mini app
feat: 📦 Bump learning mini app
b4a5d1de7c968baf550c72abc1f23c66d0d304b6
--- packages/associate-exp-hub-hub/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.5.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.4.0...@walmart/associate-exp-hub-hub@2.5.0) (2025-11-04) + +### Features + +- **ui:** update hub and deprecated packages ([3fd78bf](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/3fd78bf04874638237254de4ff3f1db216d29b07)) + # [2.4.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.3.0...@walmart/associate-exp-hub-hub@2.4.0) (2025-11-03) ### Features --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.4.0", + "version": "2.5.0", "description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub", "packageManager": "yarn@4.6.0", "engines": { --- packages/associate-exp-hub-mini-app/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.4.0-alpha.28](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.27...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.28) (2025-11-04) + +### Features + +- **ui:** update hub and deprecated packages ([3fd78bf](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/3fd78bf04874638237254de4ff3f1db216d29b07)) + # [1.4.0-alpha.27](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.4.0-alpha.26...@walmart/associate-exp-hub-mini-app@1.4.0-alpha.27) (2025-11-03) ### Features --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.4.0-alpha.27", + "version": "1.4.0-alpha.28", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/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. +## [2.4.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.4.0...@walmart/associate-exp-hub-team-switcher@2.4.1) (2025-11-04) + +**Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher + # [2.4.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.3.0...@walmart/associate-exp-hub-team-switcher@2.4.0) (2025-11-03) ### Features --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.4.0", + "version": "2.4.1", "description": "Team Switcher module for Associate Experience Hub", "packageManager": "yarn@4.6.0", "engines": {
chore(version): updating package version
chore(version): updating package version - @walmart/associate-exp-hub-hub@2.5.0 - @walmart/associate-exp-hub-mini-app@1.4.0-alpha.28 - @walmart/associate-exp-hub-team-switcher@2.4.1
24992fd80104150efb1191db39d92b89f65a901a
--- 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.12.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.11.4...@walmart/allspark-foundation-hub@1.12.0) (2025-08-15) + +### Features + +- **ui:** optimizing selector value to shallow compare inorder to avoid refetching of api on pull down to refresh if the value remains same ([7a771e7](https://gecgithub01.walmart.com/allspark/allspark/commit/7a771e7533a02829ddedf41b2750f7f9ce309435)) + ## [1.11.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.11.3...@walmart/allspark-foundation-hub@1.11.4) (2025-08-13) **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.11.4", + "version": "1.12.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-foundation-hub@1.12.0
adadea0daf1425c70baa0532c65e778c5f77196f
--- package-lock.json @@ -81,7 +81,7 @@ "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.34.6", - "@walmart/time-clock-mini-app": "2.98.0", + "@walmart/time-clock-mini-app": "2.105.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0", "@walmart/welcomeme-mini-app": "0.77.0", @@ -6025,7 +6025,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.98.0", + "version": "2.105.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.105.0.tgz", + "integrity": "sha512-lBQyn/iJx14Ti/Sh+aGKliYM7yGmmkojELqW3SXjs8Kgyb4Zj3FyvdFlmOEi3d0wNxWfbEKwpV1gBNo1/ZIRzw==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -25393,7 +25395,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.98.0", + "version": "2.105.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.105.0.tgz", + "integrity": "sha512-lBQyn/iJx14Ti/Sh+aGKliYM7yGmmkojELqW3SXjs8Kgyb4Zj3FyvdFlmOEi3d0wNxWfbEKwpV1gBNo1/ZIRzw==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -123,7 +123,7 @@ "@walmart/settings-mini-app": "1.18.1", "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.34.6", - "@walmart/time-clock-mini-app": "2.98.0", + "@walmart/time-clock-mini-app": "2.105.0", "@walmart/topstock-mini-app": "1.0.6", "@walmart/ui-components": "1.15.0", "@walmart/welcomeme-mini-app": "0.77.0",
Update TCMA to 2.105.0
Update TCMA to 2.105.0
37ff6e9ce30b6bc15cfb84877a07189ed28e894d
--- package-lock.json @@ -4309,7 +4309,7 @@ "@walmart/patient-portal-mobile": { "version": "2.1.14", "resolved": "https://npme.walmart.com/@walmart/patient-portal-mobile/-/patient-portal-mobile-2.1.14.tgz", - "integrity": "sha1-6a8PZ45o8XUCL3Jj8H7rlEfmefQ=", + "integrity": "sha512-LhqS1Ogr1vi5Nj2/gIRPQnn/ogReKbIhXvXsLdDzltCibI5YGoKxHpReIQKp3YJ01xBUJyUBzrc3G/JCe7KYSg==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", "@walmart/react-native-collapsible": "1.5.3", @@ -4350,7 +4350,7 @@ "@walmart/react-native-collapsible": { "version": "1.5.3", "resolved": "https://npme.walmart.com/@walmart/react-native-collapsible/-/react-native-collapsible-1.5.3.tgz", - "integrity": "sha1-XoOvTwTbUqaib/9Ii//qp9yNBQk=", + "integrity": "sha512-A/eHjceqHN2FJVaimSrKO/wIHgP5ymIoiyTMRa10ce8NZ7ejhPelIkCqzwjvQ328HG38y7HPelvu/6xlsiFlUQ==", "requires": { "prop-types": "^15.6.2" } @@ -4480,9 +4480,9 @@ "integrity": "sha512-60zO/wjdR+03ctEVt/8odzbgdFQc7D1b/b3BbW1J9jlDyn8eoEzuxK+u+kPnAC69ITqHraf6ZII/c3IUMie/KQ==" }, "@walmart/time-clock-mini-app": { - "version": "0.5.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.5.0.tgz", - "integrity": "sha512-4A9IfafhXfrjTPqffqztbYp0OI1AXKBFcHLNkmjRjl8NW2T5t4KVYzh0QPSKyzInbM5CPCJe+XentYAB0IFE5g==", + "version": "0.5.1", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.5.1.tgz", + "integrity": "sha512-PObnXnDzRjMvHk3HstZyMHitmQxh6QsUIgHsj7TR/eXPvbV0j9BV+xLbNCL7S7CYpmjEwe+TVze7RKUe4OoX8A==", "requires": { "@react-native-community/datetimepicker": "3.0.9", "@react-native-picker/picker": "^1.16.1", @@ -18429,7 +18429,7 @@ "squiggly-localization": { "version": "0.0.2", "resolved": "https://npme.walmart.com/squiggly-localization/-/squiggly-localization-0.0.2.tgz", - "integrity": "sha1-3ksz5Io53VPnUBiRSVDpxDaSGHU=" + "integrity": "sha512-9j/XUl0XvLk5wksN/nhOcRHmHesVHopX7v3Z1Hv398/656CLarKW0FAqL28zjKO68YH566s8PM1gflrAayBuMA==" }, "sshpk": { "version": "1.16.1", @@ -19824,7 +19824,7 @@ "wfm-allspark-data-library": { "version": "0.0.11", "resolved": "https://npme.walmart.com/wfm-allspark-data-library/-/wfm-allspark-data-library-0.0.11.tgz", - "integrity": "sha1-E27LsiPO+Sbj5h3p0FQpcH9VU8g=", + "integrity": "sha512-o34ej3nNhCcy3uwWkOJcU/3zjXmX+VvbqiZrEgQwrxbO6cbJGxiK1Tz/JQX8j1lwi6cZFJKvDOucJtlduzVQrg==", "requires": { "@walmart/functional-components": "^1.0.22", "@walmart/react-native-env": "^0.1.0", @@ -19838,7 +19838,7 @@ "@walmart/react-native-env": { "version": "0.1.0", "resolved": "https://npme.walmart.com/@walmart/react-native-env/-/react-native-env-0.1.0.tgz", - "integrity": "sha1-ojNwDE5pPTzF1RuQXDc//Fnlpz0=" + "integrity": "sha512-ooH0AqLGhS5PNcLaOWRHAEIIvrYIyTUXqshlHkgEKDLhLtGW8WvFu0mlcCXb1FEUc/PVmKEzHNHYV1gzGNBqxQ==" }, "moment": { "version": "2.24.0", @@ -19848,7 +19848,7 @@ "react-native-ssmp-sso-allspark": { "version": "0.0.1-rc8", "resolved": "https://npme.walmart.com/react-native-ssmp-sso-allspark/-/react-native-ssmp-sso-allspark-0.0.1-rc8.tgz", - "integrity": "sha1-/SHw48C+3muBMp2bynExhYPZl0s=" + "integrity": "sha512-4ZWTteIvddzP7Lg3EM0KP1fDfcN8nx7v5yvHASCLUpoZvhxHQUkjj8uTt4TkJxvTuEK16w7mTwHDauTrIC/BJg==" } } }, --- package.json @@ -102,7 +102,7 @@ "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", "@walmart/taskit-mini-app": "0.8.0", - "@walmart/time-clock-mini-app": "0.5.0", + "@walmart/time-clock-mini-app": "0.5.1", "@walmart/ui-components": "1.4.0-rc.0", "@walmart/welcomeme-mini-app": "0.51.0", "@walmart/wfm-ui": "0.2.11",
Bump time clock mini app to 0.5.1
Bump time clock mini app to 0.5.1
874749f4e48062fc9244895b85414b7bdcf5563d
--- src/translations/es-MX.ts @@ -78,6 +78,7 @@ export const esMX = { required: 'Requerido', userId: 'ID de Usuario', siteId: 'ID de Sitio', + issueCategory: 'Categoría de problema de inicio de sesión', optional: 'Opcional', enterUserId: 'Introduce ID de Usuario', enterSiteId: 'Introduce ID de Sitio',
add missed spanish translation for issue category
add missed spanish translation for issue category
d73036d3f98bd1606c826ecc2721a904b85929cf
--- packages/allspark-foundation/src/Core/docs/Migrating.md @@ -11,6 +11,8 @@ Allspark Foundation is backwards compatible so migration can be done in phases. * [Phase 5 - Feature Runner (optional)](#phase-5---feature-runner-optional) * [Phase 6 - Restructure (optional)](#phase-6---restructure-optional) +The [Allspark Feature Template](https://gecgithub01.walmart.com/store-systems-associate-tech-platform/feature-app-template-typescript/tree/feature/foundation) has completed all migration phases, so please reference it if you need an example. + ## Phase 1 - Update Dependencies ### Remove Foundation Dependencies
chore: update migration doc
chore: update migration doc
247370fca70ebf623259dc9847d6db8d90c9ab95
--- targets/US/package.json @@ -146,7 +146,7 @@ "@walmart/shelfavailability-mini-app": "1.5.33", "@walmart/sidekick-mini-app": "4.80.1", "@walmart/store-feature-orders": "1.26.12", - "@walmart/taskit-mini-app": "4.17.15", + "@walmart/taskit-mini-app": "4.17.16", "@walmart/time-clock-mini-app": "2.400.0", "@walmart/topstock-mini-app": "1.15.20", "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch", --- yarn.lock @@ -7124,7 +7124,7 @@ __metadata: "@walmart/shelfavailability-mini-app": "npm:1.5.33" "@walmart/sidekick-mini-app": "npm:4.80.1" "@walmart/store-feature-orders": "npm:1.26.12" - "@walmart/taskit-mini-app": "npm:4.17.15" + "@walmart/taskit-mini-app": "npm:4.17.16" "@walmart/time-clock-mini-app": "npm:2.400.0" "@walmart/topstock-mini-app": "npm:1.15.20" "@walmart/ui-components": "patch:@walmart/ui-components@patch%3A@walmart/ui-components@npm%253A1.16.1%23~/.yarn/patches/@walmart-ui-components-npm-1.16.1-c240fb0151.patch%3A%3Aversion=1.16.1&hash=79c828#~/.yarn/patches/@walmart-ui-components-patch-cd5ae6f92c.patch" @@ -8030,12 +8030,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:4.17.15": - version: 4.17.15 - resolution: "@walmart/taskit-mini-app@npm:4.17.15" +"@walmart/taskit-mini-app@npm:4.17.16": + version: 4.17.16 + resolution: "@walmart/taskit-mini-app@npm:4.17.16" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/ea59b880e788e41d35869be9ffbdc2532bbc3aac70e8bcf2494242b4810fbe65f45ab35a42ca7604ffb712b554b5467c38d86e4287ef86dd8fc772da543f6491 + checksum: 10c0/b29df498c3e0c54c0c447b3a56c7f6a0cf10d6d050272a37729e4a74573a413d1fdaf41a84e6b5b2d916cf2021de4dcb6983b92ba026497f1ec2fb87bd352bf8 languageName: node linkType: hard
updated taskit version
updated taskit version
c65033c21f534a0ab10de9cc5cdb9707381a8722
--- __tests__/startup/StartupSagaTest.ts @@ -7,7 +7,6 @@ import { spawn, fork, cancel, - race, } from 'redux-saga/effects'; import {createMockTask} from '@redux-saga/testing-utils'; import {navigate} from '@walmart/react-native-shared-navigation'; @@ -409,12 +408,11 @@ describe('loginFlow', () => { const iterator = loginFlow(); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next().value).toEqual( - race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }), + take([SIGN_IN_SUCCESS, START_IMPERSONATION, SIGN_IN_ERROR]), + ); + expect(iterator.next({type: SIGN_IN_SUCCESS}).value).toEqual( + fork(handleSignIn), ); - expect(iterator.next({success: true}).value).toEqual(fork(handleSignIn)); expect(iterator.next().value).toEqual(spawn(pinPromptFlow)); expect(iterator.next(pinPromptTask).value).toEqual(select(getUser)); expect(iterator.next(user).value).toEqual(take(SIGN_OUT_SUCCESS)); @@ -427,12 +425,11 @@ describe('loginFlow', () => { const iterator = loginFlow(); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next().value).toEqual( - race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }), + take([SIGN_IN_SUCCESS, START_IMPERSONATION, SIGN_IN_ERROR]), + ); + expect(iterator.next({type: SIGN_IN_SUCCESS}).value).toEqual( + fork(handleSignIn), ); - expect(iterator.next({success: true}).value).toEqual(fork(handleSignIn)); expect(iterator.next().value).toEqual(spawn(pinPromptFlow)); expect(iterator.next(undefined).value).toEqual(select(getUser)); expect(iterator.next(user).value).toEqual(take(SIGN_OUT_SUCCESS)); @@ -445,12 +442,9 @@ describe('loginFlow', () => { const iterator = loginFlow(); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next(captureEventTask).value).toEqual( - race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }), + take([SIGN_IN_SUCCESS, START_IMPERSONATION, SIGN_IN_ERROR]), ); - expect(iterator.next({failure: true}).value).toEqual( + expect(iterator.next({type: SIGN_IN_ERROR}).value).toEqual( call(AsyncStorage.getItem, ALLSPARK_SIGN_IN), ); expect(iterator.next('true').value).toEqual( @@ -466,12 +460,9 @@ describe('loginFlow', () => { const iterator = loginFlow(); expect(iterator.next().value).toEqual(fork(captureMissedMiniAppEvents)); expect(iterator.next(undefined).value).toEqual( - race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }), + take([SIGN_IN_SUCCESS, START_IMPERSONATION, SIGN_IN_ERROR]), ); - expect(iterator.next({failure: true}).value).toEqual( + expect(iterator.next({type: SIGN_IN_ERROR}).value).toEqual( call(AsyncStorage.getItem, ALLSPARK_SIGN_IN), ); expect(iterator.next(undefined).value).toEqual( --- src/startup/StartupSaga.ts @@ -7,7 +7,6 @@ import { spawn, fork, cancel, - race, } from 'redux-saga/effects'; import {ssoActions, User} from '@walmart/redux-store'; import { @@ -187,13 +186,13 @@ export function* loginFlow(): any { while (true) { const captureEventTask = yield fork(captureMissedMiniAppEvents); - // yield take([SIGN_IN_SUCCESS, START_IMPERSONATION]); - const {success} = yield race({ - success: take([SIGN_IN_SUCCESS, START_IMPERSONATION]), - failure: take(SIGN_IN_ERROR), - }); + const signInAction = yield take([ + SIGN_IN_SUCCESS, + START_IMPERSONATION, + SIGN_IN_ERROR, + ]); - if (success) { + if (signInAction.type !== SIGN_IN_ERROR) { yield fork(handleSignIn); const pinPromptTask = yield spawn(pinPromptFlow);
Updating loging flow race to use take instead
Updating loging flow race to use take instead
c22323553a2ad659ea0cde65f07ada3c832a0f53
--- packages/allspark-foundation/src/DeveloperMenu/components/PluginItem.tsx @@ -135,8 +135,8 @@ export const PluginItem = ({ plugin }: PluginItemProps) => { }; const onSwitchChange = (value: boolean) => { - toggle?.onToggle(!value); - setIsOn(!value); + toggle?.onToggle(value); + setIsOn(value); }; return (
fix: toggle value fix (#478)
fix: toggle value fix (#478) Co-authored-by: Shubhang Shah <s0s0zug@homeoffice.wal-mart.com> Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>
6b4e9a386b3d780b6c8997695359df79c2532186
--- package.json @@ -81,7 +81,7 @@ "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", "@walmart/allspark-utils": "6.9.0", - "@walmart/amp-mini-app": "1.1.98", + "@walmart/amp-mini-app": "1.2.8", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "patch:@walmart/ask-sam-mini-app@npm%3A1.29.3#~/.yarn/patches/@walmart-ask-sam-mini-app-npm-1.29.3-61985fa7e6.patch", "@walmart/associate-listening-mini-app": "1.2.32", @@ -92,7 +92,7 @@ "@walmart/calling-mini-app": "0.7.52", "@walmart/checkout-mini-app": "patch:@walmart/checkout-mini-app@npm%3A4.8.12#~/.yarn/patches/@walmart-checkout-mini-app-npm-4.8.12-47beb69cd1.patch", "@walmart/compass-sdk-rn": "6.2.17", - "@walmart/config-components": "4.8.2", + "@walmart/config-components": "4.9.3", "@walmart/core-services": "~6.5.2", "@walmart/core-services-allspark": "workspace:^", "@walmart/core-widget-registry": "workspace:^", --- yarn.lock @@ -7422,9 +7422,9 @@ __metadata: languageName: node linkType: hard -"@walmart/amp-mini-app@npm:1.1.98": - version: 1.1.98 - resolution: "@walmart/amp-mini-app@npm:1.1.98::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Famp-mini-app%2F-%2Famp-mini-app-1.1.98.tgz" +"@walmart/amp-mini-app@npm:1.2.8": + version: 1.2.8 + resolution: "@walmart/amp-mini-app@npm:1.2.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Famp-mini-app%2F-%2F%40walmart%2Famp-mini-app-1.2.8.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/core-services": 6.1.4 @@ -7432,7 +7432,7 @@ __metadata: "@walmart/redux-store": 6.1.4 react: ^18.2.0 react-native: ~0.73.7 - checksum: 10c0/4af3ee7f4168faad4663becfb96588cf18a8024e9f3663bddc43dca2d63b191e9acbd6080a60d452c75e4073c11bf15d9349ac4207a47382b494d40424b20cc6 + checksum: 10c0/88e3fc9ae1e347deb1ef68a36c6aa1ee2c452adc53bf54aa11e2510be9c95ede05e189d3a5a35bb2a081e56f4ca3ab6d6c75ebe4646a8ec70191879f3c02768c languageName: node linkType: hard @@ -7858,9 +7858,9 @@ __metadata: languageName: node linkType: hard -"@walmart/config-components@npm:4.8.2": - version: 4.8.2 - resolution: "@walmart/config-components@npm:4.8.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fconfig-components%2F-%2F%40walmart%2Fconfig-components-4.8.2.tgz" +"@walmart/config-components@npm:4.9.3": + version: 4.9.3 + resolution: "@walmart/config-components@npm:4.9.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fconfig-components%2F-%2F%40walmart%2Fconfig-components-4.9.3.tgz" peerDependencies: "@react-native-firebase/app": ">=15.1.1" "@react-native-firebase/database": ">=15.1.1" @@ -7873,7 +7873,7 @@ __metadata: redux: ">=4.2.0" reduxsauce: ">=1" reselect: ">=4" - checksum: 10c0/6c626c73dd84a412aeb73618a405d966ba2b60bbdbfd5f06dedef21a24eead210ad4e91a573384e21b80d5aab6c22bab553e186ede4ebaaa72b3d08d57484e30 + checksum: 10c0/1cf055e284b687345203b4dce5816ec2c445bf6a5cff8e81c4bb5bb4c4e935f8c600d6d8e8bdb85ea5f8e20ce90698df8b8663b04ce364e5c00f9cd660ffbf5e languageName: node linkType: hard @@ -8557,7 +8557,7 @@ __metadata: "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31" "@walmart/allspark-utils": "npm:6.9.0" - "@walmart/amp-mini-app": "npm:1.1.98" + "@walmart/amp-mini-app": "npm:1.2.8" "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "patch:@walmart/ask-sam-mini-app@npm%3A1.29.3#~/.yarn/patches/@walmart-ask-sam-mini-app-npm-1.29.3-61985fa7e6.patch" "@walmart/associate-listening-mini-app": "npm:1.2.32" @@ -8568,7 +8568,7 @@ __metadata: "@walmart/calling-mini-app": "npm:0.7.52" "@walmart/checkout-mini-app": "patch:@walmart/checkout-mini-app@npm%3A4.8.12#~/.yarn/patches/@walmart-checkout-mini-app-npm-4.8.12-47beb69cd1.patch" "@walmart/compass-sdk-rn": "npm:6.2.17" - "@walmart/config-components": "npm:4.8.2" + "@walmart/config-components": "npm:4.9.3" "@walmart/core-services": "npm:~6.5.2" "@walmart/core-services-allspark": "workspace:^" "@walmart/core-widget-registry": "workspace:^"
fix: SSMP-10621 updated Drop31 versions (#4242)
fix: SSMP-10621 updated Drop31 versions (#4242) * fix: SSMP-10621 updated config-component version * fix(meganav): SSMP-9763 testing meganav changes * fix: SSMP-10789 updated config-comp version * fix(SSMP-10798): updated amp-mini-app version SSMP-10798 * fix(SSMP-10798): reverted navConfig appId in container SSMP-10798 * fix(SSMP-10798): reverted navConfig appId in container SSMP-10798 --------- Co-authored-by: Deepanshu Rawat <deepanshu.rawat@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
6f6078a3c33c7db9531883f4e94d41bc74ffd6c1
--- package.json @@ -91,7 +91,7 @@ "@walmart/feedback-all-spark-miniapp": "0.8.0", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", - "@walmart/gtp-shared-components": "1.8.13", + "@walmart/gtp-shared-components": "1.8.9", "@walmart/impersonation-mini-app": "1.2.0", "@walmart/ims-print-services-ui": "1.1.3", "@walmart/inbox-mini-app": "0.56.0",
Update package.json
Update package.json
b9af2db9283c800f25469c29e6e71a3e1e5dc95e
--- index.js @@ -6,6 +6,8 @@ import 'intl'; import 'intl/locale-data/jsonp/en'; import 'moment/locale/es'; +import moment from 'moment'; +moment.locale('en'); import {AppRegistry} from 'react-native'; import {RootContainer} from './src/core/RootContainer'; --- ios/Podfile.lock @@ -424,7 +424,7 @@ PODS: - React-Core - react-native-wm-barcode (2.35.0): - React - - react-native-wm-voice-text (0.5.0): + - react-native-wm-voice-text (0.6.0): - React - React-perflogger (0.66.4) - React-RCTActionSheet (0.66.4): @@ -977,7 +977,7 @@ SPEC CHECKSUMS: react-native-view-shot: 08c46c9e8e92f6681e8f2ffa55ac3d06e7e99070 react-native-webview: 2e330b109bfd610e9818bf7865d1979f898960a7 react-native-wm-barcode: d9cd05eb93e21a4cda7cff4f44bea383f70e61fe - react-native-wm-voice-text: dcd2ab0e035ed425dc60e2eda85463b3602036e6 + react-native-wm-voice-text: e41ea4227df3f52f3e2cab2f08fd89fbdcd02cfd React-perflogger: 93075d8931c32cd1fce8a98c15d2d5ccc4d891bd React-RCTActionSheet: 7d3041e6761b4f3044a37079ddcb156575fb6d89 React-RCTAnimation: 743e88b55ac62511ae5c2e22803d4f503f2a3a13
fix for setting moment initial locale
fix for setting moment initial locale
0961c364ccf3309e4e023713bb92c1c8384a341c
--- core/src/manifest.ts @@ -75,12 +75,3 @@ export const getAssociateFeatures = (): AllsparkFeatureModule[] => { return Features; }; - -// export const Manifest = { -// get root() { -// return getRootFeatures; -// }, -// get associate() { -// return getAssociateFeatures; -// }, -// }; --- package.json @@ -141,7 +141,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.18.0", + "@walmart/allspark-foundation": "6.19.1", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-utils": "~6.5.0", --- packages/me-at-walmart-container/src/redux/config.ts @@ -5,7 +5,6 @@ import { all, call, fork, - put, select, takeLatest, } from 'redux-saga/effects'; @@ -30,11 +29,7 @@ import {ActiveAllsparkContainer} from '@walmart/allspark-foundation/Container'; import {AllsparkHttpClient} from '@walmart/allspark-foundation/HTTP'; import {AllsparkLocalStorage} from '@walmart/allspark-foundation/LocalStorage'; import {LoggerService} from '@walmart/allspark-foundation/Logger'; -import { - AnyNavOption, - NavConfigActionCreators, - NavConfigSelectors, -} from '@walmart/allspark-foundation/Navigation'; + import { IMeAtWalmartConfigActions, IMeAtWalmartEnvironment, @@ -268,9 +263,9 @@ export function* handleOneClickForFeature( config: OneClickConfig, ) { const actualFeatureId = FEATURE_ID_ALIASES[featureId] || featureId; - const navOption: AnyNavOption = yield select( - NavConfigSelectors.createConfigSelector(actualFeatureId), - ); + // const navOption: AnyNavOption = yield select( + // NavConfigSelectors.createConfigSelector(actualFeatureId), + // ); // Enable/Disable feature based on config if (config?.enable === false) { @@ -279,17 +274,17 @@ export function* handleOneClickForFeature( ActiveAllsparkContainer.features.enableFeature(actualFeatureId); } - // Enable/Disable nav config option based on config - // Disable nav config option if either one click or nav config is disabled - if (navOption.enabled === false || config?.enable === false) { - yield put(NavConfigActionCreators.DISABLE_OPTION(actualFeatureId)); - } - - // Enable the option if one click is enabled and nav config is not disabled - // TODO: Why does nav config takes precedence over one click here? - if (config?.enable === true && navOption.enabled !== false) { - yield put(NavConfigActionCreators.ENABLE_OPTION(actualFeatureId)); - } + // // Enable/Disable nav config option based on config + // // Disable nav config option if either one click or nav config is disabled + // if (navOption.enabled === false || config?.enable === false) { + // yield put(NavConfigActionCreators.DISABLE_OPTION(actualFeatureId)); + // } + + // // Enable the option if one click is enabled and nav config is not disabled + // // TODO: Why does nav config takes precedence over one click here? + // if (config?.enable === true && navOption.enabled !== false) { + // yield put(NavConfigActionCreators.ENABLE_OPTION(actualFeatureId)); + // } } export function* onConfigUpdate( --- targets/US/package.json @@ -77,7 +77,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "~6.4.1", "@walmart/allspark-cope-key-listener": "0.0.17", - "@walmart/allspark-foundation": "6.18.0", + "@walmart/allspark-foundation": "6.19.1", "@walmart/allspark-graphql-client": "~6.3.20", "@walmart/allspark-http-client": "~6.3.20", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -5679,9 +5679,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.18.0": - version: 6.18.0 - resolution: "@walmart/allspark-foundation@npm:6.18.0" +"@walmart/allspark-foundation@npm:6.19.1": + version: 6.19.1 + resolution: "@walmart/allspark-foundation@npm:6.19.1" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -5774,7 +5774,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/5097da3e225edd1d1cfb3d5ebe18f4d5e593ea0336528226de6645271f7c933bfd9d25221fa53d1a3843b9758cf04eab985769534b710c738b55ab661ea5cfea + checksum: 10c0/5ddbdbf8a435591bf9e3817220ae08bed071809f0e9b78c2344ab78b2ecb155205aceb284f5d92868c4bd42a751c100ef339b9e617c71f9d4d16c348fe71697b languageName: node linkType: hard @@ -6984,7 +6984,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.17" - "@walmart/allspark-foundation": "npm:6.18.0" + "@walmart/allspark-foundation": "npm:6.19.1" "@walmart/allspark-graphql-client": "npm:~6.3.20" "@walmart/allspark-http-client": "npm:~6.3.20" "@walmart/allspark-neon-core": "npm:0.1.31"
chore: bump foundation for i18n fix. remove dead references and code
chore: bump foundation for i18n fix. remove dead references and code
202e33e6a3766504039023f41cbe954206dfebb1
--- .looper.multibranch.yml @@ -24,7 +24,7 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/drop24 + - spec: feature/notes-drop24 triggers: - manual: name: Publish Packages (Pre-Release)
fix: updated looper job file
fix: updated looper job file
9bf816b676ebc7a8e457fdd031d046b5d537b282
--- graphql.yml @@ -61,6 +61,11 @@ applications: queryTemplate: 'packages/me-at-walmart-athena-queries/src/updateManagerExperiencePreference.graphql' tags: - 'v1' + - name: 'upsertSupplyChainAssociatePreference' + hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' + queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' + tags: + - 'v1' - name: 'prod' persistedQueries: - name: 'businessUnitByCountryAndNumber' @@ -113,3 +118,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'
feat(ui): resolved conflicts
feat(ui): resolved conflicts
f3a75a700e7d13ed8370ba2b895b74fce45002bc
--- package.json @@ -101,7 +101,7 @@ "@walmart/core-widget-registry": "6.1.4", "@walmart/counts-component-miniapp": "0.1.11", "@walmart/emergency-mini-app": "1.27.1", - "@walmart/exception-mini-app": "1.7.10", + "@walmart/exception-mini-app": "1.8.2", "@walmart/facilities-management-miniapp": "0.11.2", "@walmart/feedback-all-spark-miniapp": "0.9.63", "@walmart/financial-wellbeing-feature-app": "1.23.3", @@ -142,7 +142,7 @@ "@walmart/rfid-scan-mini-app": "2.3.10", "@walmart/roster-mini-app": "1.1.7", "@walmart/schedule-mini-app": "0.114.2", - "@walmart/shelfavailability-mini-app": "1.5.23", + "@walmart/shelfavailability-mini-app": "1.5.26", "@walmart/store-feature-orders": "1.26.9", "@walmart/taskit-mini-app": "3.0.1", "@walmart/time-clock-mini-app": "2.389.0", --- yarn.lock @@ -5998,9 +5998,9 @@ __metadata: languageName: node linkType: hard -"@walmart/exception-mini-app@npm:1.7.10": - version: 1.7.10 - resolution: "@walmart/exception-mini-app@npm:1.7.10" +"@walmart/exception-mini-app@npm:1.8.2": + version: 1.8.2 + resolution: "@walmart/exception-mini-app@npm:1.8.2" peerDependencies: "@walmart/core-services": ^2.0.15 "@walmart/core-services-allspark": ^2.10.3 @@ -6018,7 +6018,7 @@ __metadata: react-native-ssmp-sso-allspark: ">=1.1.0" react-native-webview: ">=11.23.1" uuid: ">=3.3.2" - checksum: 10c0/e95f0f7076d0fbc431205c65359301eaed67550c6ca57c751d73a628e5934d556c052e503bfd0824b4c9b6254b849e1eb76613817f7f7b6ab3c0c6106ed93056 + checksum: 10c0/54e0acea10a8e895390f43a03645d7cde4ce078446cd68ff3d1c468df82a53d9a708313682f8a77ef36a36f2ed1282df753eb25fe513b870152090488b18bd46 languageName: node linkType: hard @@ -7016,9 +7016,9 @@ __metadata: languageName: node linkType: hard -"@walmart/shelfavailability-mini-app@npm:1.5.23": - version: 1.5.23 - resolution: "@walmart/shelfavailability-mini-app@npm:1.5.23" +"@walmart/shelfavailability-mini-app@npm:1.5.26": + version: 1.5.26 + resolution: "@walmart/shelfavailability-mini-app@npm:1.5.26" peerDependencies: "@react-native-community/eslint-config": ^2.0.0 "@react-native-community/masked-view": ^0.1.10 @@ -7044,7 +7044,7 @@ __metadata: jwt-decode: ^3.1.2 react: ^18.2.0 react-i18next: ^12.0.0 - react-native: ">=0.72.0" + react-native: 0.73.7 react-native-check-app-install: 0.0.5 react-native-connect-sso-redux: ^1.1.1 react-native-device-info: ^10.3.0 @@ -7052,8 +7052,8 @@ __metadata: react-native-hyperlink: 0.0.22 react-native-modal: ^13.0.1 react-native-reanimated: 2.12.0 - react-native-safe-area-context: 4.3.1 - react-native-screens: ~3.15.0 + react-native-safe-area-context: ^4.8.2 + react-native-screens: ^3.28.0 react-native-ssmp-sso-allspark: 1.0.9 react-native-uuid: ^2.0.1 react-native-vector-icons: ^9.2.0 @@ -7066,7 +7066,7 @@ __metadata: reselect: ^4.1.0 seamless-immutable: ^7.1.4 xdate: ^0.8.2 - checksum: 10c0/b4af8daddd61f8c0ea268542c60b475760ba11628b84c90e1ac51089e071e72286f549cc2253737db25e34ab880a3271c26d44b5db4077d265fb5d1b047ca482 + checksum: 10c0/a7ca1eb5b6f25844d442d20ffa43fa61793d6010fc8465ceb9295ccd3b1ebbc702c9013ec92849c7a8b984d25da491297853e3dabddeb23d880152ad67bb13bf languageName: node linkType: hard @@ -7716,7 +7716,7 @@ __metadata: "@walmart/core-widget-registry": "npm:6.1.4" "@walmart/counts-component-miniapp": "npm:0.1.11" "@walmart/emergency-mini-app": "npm:1.27.1" - "@walmart/exception-mini-app": "npm:1.7.10" + "@walmart/exception-mini-app": "npm:1.8.2" "@walmart/facilities-management-miniapp": "npm:0.11.2" "@walmart/feedback-all-spark-miniapp": "npm:0.9.63" "@walmart/financial-wellbeing-feature-app": "npm:1.23.3" @@ -7757,7 +7757,7 @@ __metadata: "@walmart/rfid-scan-mini-app": "npm:2.3.10" "@walmart/roster-mini-app": "npm:1.1.7" "@walmart/schedule-mini-app": "npm:0.114.2" - "@walmart/shelfavailability-mini-app": "npm:1.5.23" + "@walmart/shelfavailability-mini-app": "npm:1.5.26" "@walmart/store-feature-orders": "npm:1.26.9" "@walmart/taskit-mini-app": "npm:3.0.1" "@walmart/time-clock-mini-app": "npm:2.389.0"
Pinpoint-1.8.2-SA-1.5.26
Pinpoint-1.8.2-SA-1.5.26
a1b4bc2d9e74a9ef8f00de1cdf00f96dadfff760
--- packages/allspark-cli/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.4.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-cli@1.4.2...@walmart/allspark-cli@1.4.3) (2025-10-21) + +**Note:** Version bump only for package @walmart/allspark-cli + ## [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 --- packages/allspark-cli/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-cli", - "version": "1.4.2", + "version": "1.4.3", "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.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.2...@walmart/allspark-foundation-hub@1.19.3) (2025-10-21) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.19.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.1...@walmart/allspark-foundation-hub@1.19.2) (2025-10-20) **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.19.2", + "version": "1.19.3", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [7.2.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.2.0...@walmart/allspark-foundation@7.2.1) (2025-10-21) + +### Bug Fixes + +- **feature runner:** environment type conflict in feature runner options ([66c991d](https://gecgithub01.walmart.com/allspark/allspark/commit/66c991d4b8cea722e4a87bde7c329a5be237be60)) +- **translation:** selected langage not cached through default language detector if provided ([2c6eb26](https://gecgithub01.walmart.com/allspark/allspark/commit/2c6eb26b8cbecba9dec88e48ceadc2079a2d02dd)) + # [7.2.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.1.1...@walmart/allspark-foundation@7.2.0) (2025-10-20) ### Features --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.2.0", + "version": "7.2.1", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/components-library/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-components@1.3.0...@walmart/my-walmart-components@1.3.1) (2025-10-21) + +**Note:** Version bump only for package @walmart/my-walmart-components + # [1.3.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/my-walmart-components@1.2.2...@walmart/my-walmart-components@1.3.0) (2025-10-16) ### Features --- packages/components-library/package.json @@ -56,7 +56,7 @@ "test:update": "jest --updateSnapshot", "expo:check": "expo install --check" }, - "version": "1.3.0", + "version": "1.3.1", "main": "lib/index.js", "types": "lib/index.d.ts", "name": "@walmart/my-walmart-components", --- 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.3](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.2...@walmart/me-at-walmart-geolocation@1.3.3) (2025-10-21) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.3.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.1...@walmart/me-at-walmart-geolocation@1.3.2) (2025-10-20) **Note:** Version bump only for package @walmart/me-at-walmart-geolocation --- packages/me-at-walmart-geolocation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-geolocation", - "version": "1.3.2", + "version": "1.3.3", "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.3 - @walmart/allspark-foundation@7.2.1 - @walmart/allspark-foundation-hub@1.19.3 - @walmart/my-walmart-components@1.3.1 - @walmart/me-at-walmart-geolocation@1.3.3
40a7803e1cf4cfc43bb3b2c36d1837a545260c44
--- .looper.multibranch.yml @@ -260,43 +260,14 @@ flows: - echo "buildType ${buildType}" - echo "workspace is ${WORKSPACE}" - ## temp - - npm install - - | - #!/bin/sh -x - - cd ./scripts - node sendToTeams.js --webhookUrl https://walmart.webhook.office.com/webhookb2/f0470775-130f-4a42-9531-d0511cf632aa@3cbcc3d3-094d-4006-9849-0d11d61f484d/IncomingWebhook/16391a60331c4d4999f112e40a0b2db1/f02e8323-deff-42c4-85df-613f84ca35ff \ - --success true \ - --title "Build success ios beta SNAPSHOT" \ - --ver "1.1.0" \ - --buildNumber 147 \ - --os ios \ - --osIcon "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAb1BMVEX///+kxDmiwzSgwi36/PTQ4J+qyEmewCGzzl/y9uPR4aLx9uGfwSf5+/GhwjC30Gr1+eq50XCox0H9/vrt89vk7crK3JPq8dXH2o3d6bvm787B1n+xzFisyU3V5KvO35u/1XzX5bDe6cG1zmTC14Z4GmjzAAAHfUlEQVR4nO2d2aKqKhiAAyoaiDSby6xW7/+MR7PUAlqhTGuf/7vYF3uZ8cU893oAAAAA4JQksPcYZ80OJl6TnOnaxHvMM6WIXgy850QRmxp4j3lmCCPUPYElGGM0MxAeC0wIIlnnt6wJYicDobFCHoms668fUYSQkdDYYMcQv3V8x4EjujMSGiscMSLLTm9YEoSPhkJjg1UeiXGnN8Qcsb2h0Fhh3jGA+84/kW02rFsiy5M565bMrXPuVFAURZWRdpFFZnlhv2j96QVCNNDKviavsIlYYSfjzW6yPsRxPI/j82F9um7GYvOnaDIE2iRt0BcaXcvd9og4Y4RwzvO/5v8SwhhHx9vupf2ZN/sw6rsNbhtOrBER0SVmlOVeSCR3ZZTEl+j5cNFeM9F0t02S5tX+PdTTwZESLnFrwgkbTe5RGeWVfRps17BJUSCee8luRIgs6iSRScjPLimKYRZwe61J0Xa78S/1HpIMbwNvrzVZsjzxaeiVjvknQq/sn8y22noP+Db4yrBggEhLQYQIHvgO/q/ssVb+eyf/9Ma3wkdmN9pBr4TeAq7094v2CbSGDIONxgHrkkBrMJv4VpHSnzMjfgUsDjClRmnbOkIGSaPfv9ItG2QmhT7hKLDaf9+pjpCBeVADUldzWbCGrXxr1eyp6RgswCyYWmPJbQgWjoFMQY2lPXgjhiiIErXo0wtBayEt+ww/htDnj4WWGuHzOdYse/Ln4zkXX3X2rVc01d5DVc7+XfQaAPw+fnESXka9TyVuhDCRRyG/0WmFk0exuRJj0XNpI2bCelR+/X0s1sOPh/cPYc9ZcS385vXU0/L7viKtmmh7MdF77fZPRYk6VfU1DKt4moppm/qsMkZiAV83RCT6SsPx80NivkZ87keuYCepEurVGKfvi5p6LkdM9vmPdvWjJ6/r84r7ER8zjf5UNZczlpVOeOTL8CKt1TG6p9PlUGvMe3gvaxS9TOorEoeK4LJ5lsWaYzaYxVmmGgfxNdqv7hTib+dkvv0Q9dMbPtrqUkjsvRSnGpVBd7zUibJy3RrER8NGVc5YAafuBSWND5t0XC7Xhq3LROojmSYOS9IC96Vp5DaR5oqup4dljW6rOB8fdlpXFDjPiJKeoV2cLzs1OZX2He1XPLZi5rLJVkLdjkhtPBi6HVa0Mp32GceF6cV1UYpcr+qbuDckbpeeOq8OkWxttU1ulLiGdt80psM1G7gmC2ha/88xXV2v+yCmm18Y58FaGagjp1vO7iyykCSjNSqDxW/dJGcHWg1iErputJv67qm/PNlWwcKcnjv0HDevy31JWv1eER66BlfzU9P0NVio9Xjx6n0QmlcLXCKP7VJx+U7bBt1SbHti0vdn+JzTkgz+t1zkL5s7e85WejScS7qm7YZTxZUfBY8E4c9Q3qtptb9dvqwJ/3gzLPOhfPgEt9jgvlL0AMsDHbwZTlXB0i9sVBtfyia+N0PV4gC+1Tb8UQymlUcKeMuHN8UP/8g9GiSp4ovK4XVvhnPVKKZ2adpXTZ6VCyO8GSrHaYe6Q3FgCIbmAUMwBMMKMLQGGILh3zfU3XUKhmBoHjAEQzCsAENrgCEYgmEFGFoDDMEQDCv8GU7BEAzB8AEYWgMMwRAMK8DQGmAIhmBYAYbWAEMwBMMKMLQGGIIhGFaAoTVMGyaBGqq2gbQwDG+/xd0wVu630D4YJLw9M3dDc3tmQt33pDqQo8W+p89713ycT3P/4rG5vWs9+VGij9NSvRkqck+b/YeqPaRXz4YG95B+3Afsz7C4bVag5bGKS/FV+HkunEfDviT78JanKq7eNXB1PqNHw97U2H78Xm/DX6KRDKszFXwa9sbDlyqD8w53mcwOrHoZIdu62eDVsJes69sVCTl0O1FxuV3Q4gwRmmbjxn/7NcyjMTuWwRpuux/gkoyvu90qem32+TYsgrAXg2WQAAwtA4ZgCIZgaB+NG1aMGTo+a8z96Z6OT2h1eTHCg6FbQeUwjjXKETCH7F1nROr8YEjXp87rj4d2xfGh7I7P2L0jGy+xBtcf8O1O39rVlSKYe7kBOVq4ikWOxr8Hx4riyE1eZCN/R6dOqPGbjgUI9Xo9YH+SEtY4sPlDQN/56lHG04H3S8inq8vkSbZQhTqdvHNUPbrIqmcuJg4KNop65li8nUI114kX3iPtA31VHEouwlEbur5RRgcwbPJHDZX5EAzBMBTAsAkYhgkYNgHDMAHDJmAYJmDYBAzDBAybgGGYgGETMAyT/4Hhvz+a+O8b6qRS1Q6moA0T1QoNfhaePahmkN2vutBBlfTIWng0U8wgttiF5pKBItiSHRF7xRQ5cXsrri5LuaFsTlBVKrEOuydcIN+nS2S7A+X3QuOj8zDrIb9WnsmKx750lQNtfamoK26SmKHyS8N3kl+DnN0GtwXJSFBkB8WzW6Gw4cegq4qS/vFNkZ6Vz97eYpGkIdf2NQfWyGCcTT48emKNeh8rIzs49j+sLEU4IfHnFTHTMyEcYYwwYT9/6fb0ZTZfcDyMT7+vSItO5xTh4XzQch+oR5I/UGgAAAAAwJ3/AIhisunOMvFaAAAAAElFTkSuQmCC" \ - --buildType SNAPSHOT \ - --env beta \ - --envIcon "https://cdn.iconscout.com/icon/premium/png-256-thumb/beta-8-885880.png" \ - --releaseType "${releaseType}" \ - --releaseTypeDesc "${releaseTypeDesc}" \ - --releaseTypeIcon "${teamsReleaseTypeIcon}" \ - --commitMessage "${GIT_COMMIT_MESSAGE}" \ - --commitAuthor "${GIT_COMMIT_AUTHOR}" \ - --commitDate "${GIT_COMMIT_DATE}" \ - --commitUrl "${GIT_COMMIT_URL}" \ - --jobBranch "${TRIGGER_BRANCH}" \ - --jobNbr "${BUILD_NUMBER}" \ - --jobUrl "${JOB_URL}" \ - --downloadUrl "https://www.google.com" \ - --downloadPassword "1234" - # - call: pr # - call: auto-version - # - node(label=$LOOPER_NODES, ws="exclusive"): - # - parallel(failsafe): - # - call: build-native(ios) - # - call: build-native(android) - # - call: run-sonar-analysis - # - call: publish-to-hygieia + - node(label=$LOOPER_NODES, ws="exclusive"): + - parallel(failsafe): + - call: build-native(ios) + - call: build-native(android) + - call: run-sonar-analysis + - call: publish-to-hygieia # Set the version of native projects and build numbers (current implementation is subject to change) auto-version: @@ -360,24 +331,22 @@ flows: - declare(buildOutput) - declare(sourceMap) - var(version): sh scripts/getIOSAppVersionFromInfoPlist.sh ios/AllSpark/Info.plist - - call: msteams-failure(version = ${version}, flowErrorMessage = "test error message") - # - call: msteams-success(version = ${version}, buildOutput = ${buildOutput}) - # - try: - # - if: | - # %{os == "ios"} - # then: - # - call: ios-process - # else: - # - call: android-process - # - echo "uploading build" - # - call: upload-build(version = "${version}-${env}-SNAPSHOT", artifactId = "allspark-core-${os}-${env}", buildOutput = ${buildOutput}, sourceMap = ${sourceMap}) - # - call: slack-success(version = "${version}-${env}-SNAPSHOT", buildOutput = ${buildOutput}) - # - call: msteams-success(version = ${version}, buildOutput = ${buildOutput}) - # catch: - # - echo "calling slack-failure(${version}, ${flowErrorMessage})" - # - call: slack-failure(version = ${version}, flowErrorMessage = ${flowErrorMessage}) - # - call: msteams-failure(version = ${version}, flowErrorMessage = ${flowErrorMessage}) - # - fail('Failed to generate build with flowErrorMessage - $flowErrorMessage') + - try: + - if: | + %{os == "ios"} + then: + - call: ios-process + else: + - call: android-process + - echo "uploading build" + - call: upload-build(version = "${version}-${env}-SNAPSHOT", artifactId = "allspark-core-${os}-${env}", buildOutput = ${buildOutput}, sourceMap = ${sourceMap}) + - call: slack-success(version = "${version}-${env}-SNAPSHOT", buildOutput = ${buildOutput}) + - call: msteams-success(version = ${version}, buildOutput = ${buildOutput}) + catch: + - echo "calling slack-failure(${version}, ${flowErrorMessage})" + - call: slack-failure(version = ${version}, flowErrorMessage = ${flowErrorMessage}) + - call: msteams-failure(version = ${version}, flowErrorMessage = ${flowErrorMessage}) + - fail('Failed to generate build with flowErrorMessage - $flowErrorMessage') # this is for master # Checks if the build artifact is already published in the expected place.
restore commentted code
restore commentted code
cc50359a4df61474c500584aa5911eaaec5dcf2b
--- package-lock.json @@ -3184,9 +3184,9 @@ } }, "@walmart/welcomeme-mini-app": { - "version": "0.5.22", - "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.22.tgz", - "integrity": "sha512-esNCCA8NKUR+oV4FV7erF2I5AFa75J+jCOERyiFsNQ3JjwWz9Wy6EGEsWC8olz5++8OAXBuGGntHNoAK9KB3tA==" + "version": "0.5.24", + "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.24.tgz", + "integrity": "sha512-JjSEMAqaqWW6y58wC3xtu1b8ZGJynsymXH6aMKrDUUi+HTCMOLbA8CWvFlxy/zlGMet8tzCiG5AFWh+A9BVkJQ==" }, "@walmart/wfm-ui": { "version": "0.1.34", --- package.json @@ -64,7 +64,7 @@ "@walmart/schedule-mini-app": "0.2.42", "@walmart/settings-mini-app": "1.1.12", "@walmart/time-clock-mini-app": "0.1.14", - "@walmart/welcomeme-mini-app": "0.5.22", + "@walmart/welcomeme-mini-app": "0.5.24", "@walmart/ui-components": "1.0.91", "i18next": "^19.7.0", "intl": "^1.2.5",
WelcomeMeMiniApp-0.5.24_UI-Components-Header (#273)
WelcomeMeMiniApp-0.5.24_UI-Components-Header (#273) * Welcome Me Mini App - UAT * minor fix and version increased * version bump (1 sonar bug fixed) * Added Ui-Components Header Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com>
3e8b50dcdc0f9db2555507ea226eda3974483f91
--- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -101,7 +101,9 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( setImmediate(() => // Look to rename mapping for new route name, if none found, use route name - navigation.navigate(SCREEN_RENAME_MAP[route] || route, {...params}), + navigation.navigate(SCREEN_RENAME_MAP[route] || route, { + ...(params || {}), + }), ); };
Update navigation for meganav
Update navigation for meganav
8fcd6c0df36331c7e00f646729732279ffb8343b
--- __tests__/logger/LoggerTest.tsx @@ -0,0 +1,97 @@ +import {TextingLogger} from '../../src/logger/Logger'; +const {DefaultLogger} = require('@walmart/react-native-logger'); + +const LOGGER_APP_KEY = 'myTeam'; + +jest.mock('@walmart/react-native-logger', () => ({ + DefaultLogger: { + clone: jest.fn().mockImplementation(() => ({id: LOGGER_APP_KEY})), + setConfig: jest.fn(), + debug: jest.fn(), + error: jest.fn(), + setUserInfo: jest.fn(), + setSessionInfo: jest.fn(), + setLogLevel: jest.fn(), + info: jest.fn(), + warn: jest.fn(), + }, +})); + +describe('myTeamLogger', () => { + let myTeamLogger: TextingLogger; + + beforeEach(() => { + myTeamLogger = new TextingLogger(DefaultLogger); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + it('should set config', () => { + const config = {testConfig: 'testConfig'}; + myTeamLogger.setConfig(config); + expect(DefaultLogger.setConfig).toHaveBeenCalledWith(config); + }); + + it('should log debug messages', () => { + const message = 'Debug message'; + const params = {test: 'test'}; + myTeamLogger.debug(message, params); + expect(DefaultLogger.debug).toHaveBeenCalledWith(message, params); + }); + + it('should log error messages with additional checks', () => { + const message = 'Error message'; + const params = {message: 'Error message details'}; + myTeamLogger.error(message, params); + expect(DefaultLogger.error).toHaveBeenCalledWith(message, params); + }); + + it('should not log error messages if there is no params', () => { + const message = 'Error message'; + const params = null; + myTeamLogger.error(message, params); + expect(DefaultLogger.error).not.toBeCalled(); + }); + + it('should set session info messages with user object', () => { + const sessionInfo = 'test session'; + myTeamLogger.setSessionInfo(sessionInfo); + expect(DefaultLogger.setSessionInfo).toHaveBeenCalledWith(sessionInfo); + }); + + it('should clone config with fields', () => { + const config = {config: 'test config'}; + const fields = {fields: 'additional fields'}; + myTeamLogger.clone(config, fields); + expect(DefaultLogger.clone).toHaveBeenCalledWith(config, fields); + }); + + it('should set logLevel', () => { + const logLevel = 'DEBUG'; + myTeamLogger.setLogLevel(logLevel); + expect(DefaultLogger.setLogLevel).toHaveBeenCalledWith(logLevel); + }); + + it('should log info messages', () => { + const message = 'info message'; + const params = {test: 'test'}; + myTeamLogger.info(message, params); + + expect(DefaultLogger.info).toHaveBeenCalledWith(message, params); + }); + + it('should log warn messages', () => { + const message = 'warn message'; + const params = {test: 'test'}; + myTeamLogger.warn(message, params); + expect(DefaultLogger.warn).toHaveBeenCalledWith(message, params); + }); + + it('should set user info', () => { + const userInfo = {info: 'user details'}; + myTeamLogger.setUserInfo(userInfo); + expect(DefaultLogger.setUserInfo).toHaveBeenCalledWith(userInfo); + }); +});
Adding logger test coverage
Adding logger test coverage
f0015cd30fed8be7f843d30441dca8760d14b94a
--- graphql.yml @@ -88,11 +88,11 @@ applications: queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociateById.graphql" tags: - "v1" - - name: "getAssociatePreferences" - hash: "38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4" - queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql" - tags: - - "v1" + # - name: "getAssociatePreferences" + # hash: "38e0530d669fff42cb1dc8e5814369c40c33f6d6a77ed734e039948a0c06e8f4" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociatePreference.graphql" + # tags: + # - "v1" - name: "getDailyRosterHome" hash: "3c492831585580bae535c3386ec48e90c2d1895450016f050653bd51ddf86c21" queryTemplate: "packages/me-at-walmart-athena-queries/src/getDailyRosterHome.graphql" @@ -103,43 +103,43 @@ 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" tags: - "v1" - - name: "GetTeamsByStore" - hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44" - queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql" - tags: - - "v1" + # - name: "GetTeamsByStore" + # hash: "e500ff0792181beb5a6281effd5b5324834295856eaaa4c2af8336f6643a0a44" + # queryTemplate: "packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql" + # tags: + # - "v1" - name: "upsertAssociatePreference" hash: "972c522c6ad0675f13587637cff2dd2ed46937a9878a48a66ad2bc2f7d51a036" queryTemplate: "packages/me-at-walmart-athena-queries/src/updateAssociatePrivacyPreference.graphql" tags: - "v1" - - name: "upsertManagerExperiencePreference" - hash: "bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca" - 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: "upsertManagerExperiencePreference" + # hash: "bdf7ca7ba91a0c700df0b0dbd418064d98ef1c2818688e2a1c9e478d8cc3e1ca" + # 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"
Commenting queries in Prod
Commenting queries in Prod
2c3e4d2dae5ccc641079366084cc224a923a3de2
--- packages/allspark-foundation/experimental/Navigation/package.json @@ -1,6 +0,0 @@ -{ - "name": "@walmart/allspark-foundation/Navigation", - "private": true, - "main": "./index", - "types": "./index" -} --- packages/allspark-navigation/README.md @@ -0,0 +1,11 @@ +# `allspark-navigation` + +> TODO: description + +## Usage + +``` +const allsparkNavigation = require('allspark-navigation'); + +// TODO: DEMONSTRATE API +``` --- packages/allspark-navigation/__tests__/allspark-navigation.test.js @@ -0,0 +1,7 @@ +'use strict'; + +const allsparkNavigation = require('..'); + +describe('allspark-navigation', () => { + it('needs tests'); +}); --- packages/allspark-navigation/package-lock.json @@ -0,0 +1,83 @@ +{ + "name": "@walmart/allspark-navigation", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@react-navigation/stack": { + "version": "6.3.12", + "resolved": "https://npme.walmart.com/@react-navigation/stack/-/stack-6.3.12.tgz", + "integrity": "sha512-sDclO/EflZUbfxZZlz5fk3A0wfegeCOEKGznP9n53s+JrDJL2Dc24Gufg56ENLNRX3CiE1KzsaM4SQLJYf/zsA==", + "dev": true, + "requires": { + "@react-navigation/elements": "^1.3.14", + "color": "^4.2.3", + "warn-once": "^0.1.0" + }, + "dependencies": { + "@react-navigation/elements": { + "version": "1.3.14", + "resolved": "https://npme.walmart.com/@react-navigation/elements/-/elements-1.3.14.tgz", + "integrity": "sha512-RBbPhYq+KNFPAkWPaHB9gypq0jTGp/0fkMwRLToJ8jkLtWG4LV+JoQ/erFQnVARkR3Q807n0VnES15EYP4ITMQ==", + "dev": true + }, + "color": { + "version": "4.2.3", + "resolved": "https://npme.walmart.com/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "dev": true, + "requires": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://npme.walmart.com/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://npme.walmart.com/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "color-string": { + "version": "1.9.1", + "resolved": "https://npme.walmart.com/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "dev": true, + "requires": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, + "is-arrayish": { + "version": "0.3.2", + "resolved": "https://npme.walmart.com/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", + "dev": true + }, + "simple-swizzle": { + "version": "0.2.2", + "resolved": "https://npme.walmart.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "dev": true, + "requires": { + "is-arrayish": "^0.3.1" + } + }, + "warn-once": { + "version": "0.1.1", + "resolved": "https://npme.walmart.com/warn-once/-/warn-once-0.1.1.tgz", + "integrity": "sha512-VkQZJbO8zVImzYFteBXvBOZEl1qL175WH8VmZcxF2fZAoudNhNDvHi+doCaAEdU2l2vtcIwa2zn0QK5+I1HQ3Q==", + "dev": true + } + } + } + } +} --- packages/allspark-navigation/package.json @@ -0,0 +1,47 @@ +{ + "name": "@walmart/allspark-navigation", + "version": "1.0.0", + "description": "> TODO: description", + "author": "rlane1 <russell.lane@walmart.com>", + "homepage": "", + "license": "ISC", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "files": [ + "lib" + ], + "publishConfig": { + "registry": "https://npme.walmart.com/" + }, + "repository": { + "type": "git", + "url": "https://gecgithub01.walmart.com/allspark/allspark.git" + }, + "scripts": { + "coverage": "jest --coverage", + "test": "jest", + "lint": "npx eslint ./src --ext .js,.jsx,.ts,.tsx", + "lint:fix": "npx eslint ./src --ext .js,.jsx,.ts,.tsx --fix", + "prepare": "rm -rf lib && tsc", + "clean": "rm -rf lib/ || true" + }, + "dependencies": { + "@walmart/allspark-utils": "^1.3.2", + "@walmart/gtp-shared-components": "^2.0.0", + "redux-saga": "^1.2.2" + }, + "devDependencies": { + "@react-navigation/elements": "^1.3.14", + "@react-navigation/native": "^6.0.0", + "@react-navigation/stack": "^6.3.1", + "react-native-safe-area-context": "4.3.1" + }, + "peerDependencies": { + "@react-navigation/elements": ">=1", + "@react-navigation/native": ">=6", + "@react-navigation/stack": ">=6", + "react-native-safe-area-context": ">=4", + "react": "*", + "react-native": "*" + } +} --- packages/allspark-navigation/src/NavigationElements/context.ts --- packages/allspark-navigation/src/NavigationElements/hooks.ts --- packages/allspark-navigation/src/NavigationElements/index.ts --- packages/allspark-navigation/src/NavigationElements/providers.tsx --- packages/allspark-navigation/src/NavigationElements/types.ts --- packages/allspark-navigation/src/RootNavigation/context.ts --- packages/allspark-navigation/src/RootNavigation/hooks.ts --- packages/allspark-navigation/src/RootNavigation/index.ts --- packages/allspark-navigation/src/RootNavigation/providers.tsx @@ -1,4 +1,10 @@ -import React, { useEffect, useImperativeHandle, useMemo, useRef } from 'react'; +import React, { + useEffect, + useImperativeHandle, + useMemo, + useRef, + forwardRef, +} from 'react'; import type { NavigationContainerRef, ParamListBase, @@ -6,7 +12,6 @@ import type { NavigationState, } from '@react-navigation/native'; import { NavigationContainer } from '@react-navigation/native'; -import { forwardRef } from 'react'; import { EventManager } from '@walmart/allspark-utils'; import { --- packages/allspark-navigation/src/RootNavigation/sagas.ts --- packages/allspark-navigation/src/RootNavigation/types.ts @@ -1,11 +1,11 @@ import { PropsWithChildren } from 'react'; +import { NativeEventSubscription } from 'react-native'; import type { ParamListBase, NavigationAction, Theme, NavigationState, } from '@react-navigation/native'; -import { NativeEventSubscription } from 'react-native'; export type QueuedNavigation = { name: string; --- packages/allspark-navigation/src/components/DrawerButton.tsx @@ -34,8 +34,10 @@ export const DrawerButton = (props: DrawerButtonProps) => { onPress={toggleDrawer} style={style} > - <MenuIcon color='white' size={24} UNSAFE_style={iconStyle} /> - {drawer.badge} + <> + <MenuIcon color='white' size={24} UNSAFE_style={iconStyle} /> + {drawer.badge} + </> </TouchableOpacity> ); }; --- packages/allspark-navigation/src/components/Header.tsx --- packages/allspark-navigation/src/components/index.ts --- packages/allspark-navigation/src/components/styles.ts --- packages/allspark-navigation/src/constants.ts --- packages/allspark-navigation/src/index.ts --- packages/allspark-navigation/tsconfig.json @@ -0,0 +1,15 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "src", + "outDir": "lib" + }, + "exclude": [ + "node_modules/*", + "__tests__/*", + "coverage/*", + "types/*", + "*.js", + "jest.config.js" + ] +}
chore: add allspark network lib
chore: add allspark network lib
19ccd5615373078c2f9bd1f52ae540fa8307d5e7
--- package-lock.json @@ -80,7 +80,7 @@ "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.24.5", - "@walmart/time-clock-mini-app": "2.79.0", + "@walmart/time-clock-mini-app": "2.80.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26", @@ -6074,9 +6074,9 @@ } }, "node_modules/@walmart/time-clock-mini-app": { - "version": "2.79.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.79.0.tgz", - "integrity": "sha512-uBEw3KCJjmbduB/QnkAspBdBn4m7mHsv2oU3e2IiS7KLyuYQH18gRHlYkv3dnEiN1nVb7Oy31DOH9AM2FCIKng==", + "version": "2.80.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.80.0.tgz", + "integrity": "sha512-4lrFO/I7sNJrg4kAZn9DINGr8+rzojoQ6ymJnnQUZWUhMzABoXuLQaMifw6qCgjv7uGwxy78/QLOmXFk5RvK2Q==", "hasInstallScript": true, "license": "UNLICENSED", "dependencies": { @@ -25467,9 +25467,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "2.79.0", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.79.0.tgz", - "integrity": "sha512-uBEw3KCJjmbduB/QnkAspBdBn4m7mHsv2oU3e2IiS7KLyuYQH18gRHlYkv3dnEiN1nVb7Oy31DOH9AM2FCIKng==", + "version": "2.80.0", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.80.0.tgz", + "integrity": "sha512-4lrFO/I7sNJrg4kAZn9DINGr8+rzojoQ6ymJnnQUZWUhMzABoXuLQaMifw6qCgjv7uGwxy78/QLOmXFk5RvK2Q==", "requires": { "@react-navigation/elements": "^1.3.1", "moment-timezone": "0.5.33", --- package.json @@ -122,7 +122,7 @@ "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", "@walmart/taskit-mini-app": "2.24.5", - "@walmart/time-clock-mini-app": "2.79.0", + "@walmart/time-clock-mini-app": "2.80.0", "@walmart/ui-components": "1.10.1", "@walmart/welcomeme-mini-app": "0.76.0", "@walmart/wfm-ui": "0.2.26",
fix: upgrade time clock mini app version
fix: upgrade time clock mini app version
98b07c67f5521f58bf74a9d47fb4d7bdff875125
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.12.2", + "version": "3.12.3", "main": "dist/index.js", "files": [ "dist", @@ -90,9 +90,9 @@ "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", - "@walmart/roster-mini-app": "3.15.2", + "@walmart/roster-mini-app": "3.15.3", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.8.2", + "@walmart/wmconnect-mini-app": "3.8.3", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -7606,9 +7606,9 @@ __metadata: "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" - "@walmart/roster-mini-app": "npm:3.15.2" + "@walmart/roster-mini-app": "npm:3.15.3" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.8.2" + "@walmart/wmconnect-mini-app": "npm:3.8.3" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -7714,9 +7714,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:3.15.2": - version: 3.15.2 - resolution: "@walmart/roster-mini-app@npm:3.15.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.15.2.tgz" +"@walmart/roster-mini-app@npm:3.15.3": + version: 3.15.3 + resolution: "@walmart/roster-mini-app@npm:3.15.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.15.3.tgz" peerDependencies: "@walmart/allspark-foundation": ">=7.12.0" "@walmart/gtp-shared-components-3": "*" @@ -7728,7 +7728,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/43aeb739cc3d5640b90befb774497d69131a0cf6d91181f334e5b1e58dd51ccac23e2f7f6b94a861c777e398a26297ed30181084bd0acab6eb7c5315bf34d7fd + checksum: 10c0/bcf0f651b0cd84f3772ff550da2548037bcfbd2feadddaa8cb925c95545370981547c9098e0bddbfbe63d80fee64f848e535cd47e7f60ecad0ffab2856f416c7 languageName: node linkType: hard @@ -7752,9 +7752,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.8.2": - version: 3.8.2 - resolution: "@walmart/wmconnect-mini-app@npm:3.8.2::__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.8.2.tgz" +"@walmart/wmconnect-mini-app@npm:3.8.3": + version: 3.8.3 + resolution: "@walmart/wmconnect-mini-app@npm:3.8.3::__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.8.3.tgz" peerDependencies: "@walmart/allspark-foundation": ">=7.12.0" expo: ~53.0.20 @@ -7765,7 +7765,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/7f04a221ab488662f02c506e1453b900cc5a401ee3f5c5c66c01564f7e33e544411c26be196c32dee2bf6c2209fc9a1ebcb733df2673ed74f98d6a175f1343b9 + checksum: 10c0/e2b1e4bc578d69cedfe618147bb9bf4499e08eb851b12e0199d0d363ff8bc0cd768d890254f65641fdb50847c522db8cad755a582712a0db3810b57e752f2400 languageName: node linkType: hard
feat(ui): update roster and wmconnect version
feat(ui): update roster and wmconnect version
803a9ab9013381e4a6967e590d892780c164330d
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/SideMenuContentTest.tsx.snap @@ -108,7 +108,7 @@ exports[`SideMenuContent matches snapshot with not user/clockstatus data; sets b Object { "action": Object { "type": "DEEPLINK", - "value": "https://walmartglobalcert.service-now.com/wm_sp?id=sc_cat_item&sys_id=e42427511bb5f0d0bcd8ca63604bcb20", + "value": "https://walmartglobal.service-now.com/wm_sp?id=sc_cat_item&sys_id=e42427511bb5f0d0bcd8ca63604bcb20", }, "clockCheckRequired": true, "enabled": true, @@ -120,7 +120,7 @@ exports[`SideMenuContent matches snapshot with not user/clockstatus data; sets b Object { "action": Object { "type": "DEEPLINK", - "value": "https://walmartglobalcert.service-now.com/wm_sp?id=wm_vac_stats", + "value": "https://walmartglobal.service-now.com/wm_sp?id=wm_vac_stats", }, "clockCheckRequired": true, "enabled": true, @@ -235,7 +235,7 @@ exports[`SideMenuContent matches snapshot with user/clockstatus data; sets bar s Object { "action": Object { "type": "DEEPLINK", - "value": "https://walmartglobalcert.service-now.com/wm_sp?id=sc_cat_item&sys_id=e42427511bb5f0d0bcd8ca63604bcb20", + "value": "https://walmartglobal.service-now.com/wm_sp?id=sc_cat_item&sys_id=e42427511bb5f0d0bcd8ca63604bcb20", }, "clockCheckRequired": true, "enabled": true, @@ -247,7 +247,7 @@ exports[`SideMenuContent matches snapshot with user/clockstatus data; sets bar s Object { "action": Object { "type": "DEEPLINK", - "value": "https://walmartglobalcert.service-now.com/wm_sp?id=wm_vac_stats", + "value": "https://walmartglobal.service-now.com/wm_sp?id=wm_vac_stats", }, "clockCheckRequired": true, "enabled": true, --- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -76,7 +76,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps< action: { type: 'DEEPLINK', value: - 'https://walmartglobalcert.service-now.com/wm_sp?id=sc_cat_item&sys_id=e42427511bb5f0d0bcd8ca63604bcb20', + 'https://walmartglobal.service-now.com/wm_sp?id=sc_cat_item&sys_id=e42427511bb5f0d0bcd8ca63604bcb20', }, }, { @@ -88,8 +88,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps< subMenuOverridden: false, action: { type: 'DEEPLINK', - value: - 'https://walmartglobalcert.service-now.com/wm_sp?id=wm_vac_stats', + value: 'https://walmartglobal.service-now.com/wm_sp?id=wm_vac_stats', }, }, {
updated covid verification fallback urls
updated covid verification fallback urls
417dc310253bd0108ebb9192dffaa756c19261b4
--- __tests__/hooks/useMyTeamHeader.test.ts @@ -2,7 +2,6 @@ import {renderHook} from '@testing-library/react-hooks'; import {useNavigation} from '@react-navigation/native'; import {translationClient} from '../../src/common/translation'; import {useMyTeamHeader} from '../../src/hooks/useMyTeamHeader'; -import {renderDrawerButton} from '@walmart/allspark-foundation/Navigation'; // Mock dependencies jest.mock('@react-navigation/native', () => ({ @@ -64,9 +63,9 @@ describe('useMyTeamHeader', () => { (translationClient.useTranslation as jest.Mock).mockReturnValue({ t: initialT, }); - + const {rerender} = renderHook(() => useMyTeamHeader()); - + expect(mockSetOptions).toHaveBeenCalledTimes(1); expect(mockSetOptions).toHaveBeenLastCalledWith(expect.objectContaining({title: 'Team'})); @@ -75,7 +74,7 @@ describe('useMyTeamHeader', () => { (translationClient.useTranslation as jest.Mock).mockReturnValue({ t: newT, }); - + rerender(); expect(mockSetOptions).toHaveBeenCalledTimes(2);
feat(ui): yarn install issue fix
feat(ui): yarn install issue fix
d08155509ce6abc3b85aa2e09cfc3c9f98d5591e
--- docs/docs/components/allspark foundation/services/foundation-location.md @@ -6,4 +6,113 @@ custom_edit_url: null # Location Service -Coming soon. \ No newline at end of file +The Allspark Location Service is a dynamic container service, meaning it's defined by the container app. It provides a set of APIs which can be used to retrieve information about device's location, such as coordinates and a timestamp. It also ensures that permission is recieved from the user before requesting location information from the device. + +## Container Usage + +A container should define the Location Service and connect it to the Allspark Ecosystem. + +### Define a Location Service + +A Location Service must match the `AllsparkLocationService` interface. You can define it as a class or an object, whichever you prefer. + +```typescript +import { AllsparkLocationService } from '@walmart/allspark-foundation/Location'; + +// As a class +export class MyAppLocationService implements AllsparkLocationService { + // ... implement methods +} + +// As an object +export const MyAppLocationService: AllsparkLocationService = { + // ... implement methods +}; +``` + +### Connect a Location Service + +A "connected" Location Service means that its methods automatically update redux state and dispatch actions. Also, its methods can be called via redux by dispatching LocationActions from `@walmart/allspark-foundation/Location`. + +A Location Service can be connected to the Allspark Ecosystem in two ways. + +#### Using `LocationServiceCreator` + +The `LocationServiceCreator` method is a factory method that creates a Location Service. It ensures that the service matches the `AllsparkLocationService` interface and connects the service to the container. + +```typescript +import { LocationServiceCreator } from '@walmart/allspark-foundation/Location'; + +const MyAppLocationService = LocationServiceCreator(MyAppLocationService); +``` + +#### Using `AllsparkContainer` + +If a Location Service is not created using `LocationServiceCreator`, it will be connected by the container when the container is created. + +```typescript +import { AllsparkContainer } from '@walmart/allspark-foundation'; + +const MyAppContainer = new AllsparkContainer('my-app', { + services: { + location: MyAppLocationService, + // ... remaining services + } +}); +``` + +### Recommended Usage + +We recommend using the `LocationServiceCreator` method to create the Location Service when possible. This ensures the service matches the `AllsparkLocationService` interface and connects the service to the container. + +However, its possible you need access to the "raw" service instance within your container. In this case, you can define the "raw" service then create a "connected" service using `LocationServiceCreator`. + +Now you have options. You can use either type of service depending on your needs. + +```typescript +import { LocationServiceCreator } from '@walmart/allspark-foundation/Location'; + +export const MyAppLocationService = { + // ... implement methods +} + +export const MyAppConnectedLocationService = LocationServiceCreator(MyAppLocationService); +``` + +## Accessing Location Service + +The Location Service should only be directly used by the container. So with that in mind, the container can just directly use the service or connected service it defined in the previous step. + +```typescript +import { MyAppLocationService, MyAppConnectedLocationService } from './LocationService'; + +// "Raw service". Does not update redux. +MyAppLocationService.refreshToken(...); + +// "Connected service". Updates redux. +MyAppConnectedLocationService.refreshToken(...); +``` + +### Library Access + +Its possible that you need to access the Location Service from somewhere other than where the container is defined. + +In these cases, you can have two options: + +#### Global `LocationService` + +You can import the global `LocationService` directly from `@walmart/allspark-foundation/Location`. This is the "connected" service defined by the current container. + +Due to its global nature, this instance is not set until the container is created. Internally it will delay the method call until the service is defined. It should work as expected, but be aware of this behavior. + +#### `useContainerService` Hook + +The `useContainerService` hook from `@walmart/allspark-foundation/Container` can be used to access any dynamically defined service from the current container. + +This type of access is safer and more predictable since it's used within the component context. The service should always be defined by the time the hook is called. + +```typescript +import { useContainerService } from '@walmart/allspark-foundation/Container'; + +const LocationService = useContainerService('location'); +```
Location docs.
Location docs.