commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
01ad42ac7205306206b97b41e9e38c9f8a3e8b91
--- package-lock.json @@ -5567,9 +5567,9 @@ "integrity": "sha512-YRNp3VcfzWTyDZt6h5hAUK5XTzUrblOZOWUclor4ht/g4E5Oo2sMF8rV5swXlB3QdSQUZwSsU60b01veuR3o6g==" }, "@walmart/schedule-mini-app": { - "version": "0.25.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.25.0.tgz", - "integrity": "sha512-3h51nBCjLmPuNJfiqL+RB6hqtUOs8w0zcrEbjxLW7d2jX0vFHaf57mPmDWHtbhN4r7qvM7t8O0yojYpxHxXfAQ==", + "version": "0.26.0", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.26.0.tgz", + "integrity": "sha512-RcwLuFdMulmaAQPkbeOEw77humLkoGhQNj5o+7ylBydW64Pn6sI2VYh0a1DyDjaUuzq3vZL7GGHhRPssqHIY7A==", "requires": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.2.24", --- package.json @@ -117,7 +117,7 @@ "@walmart/receipt-check-miniapp": "1.8.9", "@walmart/redux-store": "2.0.4", "@walmart/refrigeration-alarms-mini-app": "1.35.0", - "@walmart/schedule-mini-app": "0.25.0", + "@walmart/schedule-mini-app": "0.26.0", "@walmart/settings-mini-app": "1.10.0", "@walmart/shelfavailability-mini-app": "1.3.1", "@walmart/taskit-mini-app": "0.34.5-beta.9",
Bump schedule-mini-app version
Bump schedule-mini-app version
6633efb11755a2b5782118ff6a21a085756be3a1
--- app.config.US.ts @@ -265,6 +265,7 @@ const CONFIG: ExpoConfig = { ["Camera", "LocationWhenInUse", "Notifications"], ], "./plugins/withRealm", + "./plugins/withReactNativeScanner", "./plugins/withSsmpAndroidSigning", "./plugins/withSsmpPlatformApplication", "./plugins/withSumoSDK", --- package.json @@ -220,7 +220,7 @@ "react-native-mask-input": "^1.2.3", "react-native-new-snap-carousel": "^3.9.3", "react-native-nfc-manager": "3.16.1", - "react-native-pager-view": "6.3.0", + "react-native-pager-view": "6.4.0", "react-native-pdf": "^6.7.5", "react-native-permissions": "^3.10.1", "react-native-popup-menu": "^0.16.0", --- plugins/withReactNativeScanner.ts @@ -0,0 +1,13 @@ +import { ConfigPlugin } from "@expo/config-plugins"; +import withGradleExtVars from "./withGradleExtVars"; + +const withReactNativeScanner: ConfigPlugin = (config) => { + return withGradleExtVars(config, { + tag: "react-native-scanner-3.0", + ext: { + jacoco_version: "0.8.12" + }, + }); +}; + +export default withReactNativeScanner; --- yarn.lock @@ -8042,7 +8042,7 @@ __metadata: react-native-mask-input: "npm:^1.2.3" react-native-new-snap-carousel: "npm:^3.9.3" react-native-nfc-manager: "npm:3.16.1" - react-native-pager-view: "npm:6.3.0" + react-native-pager-view: "npm:6.4.0" react-native-pdf: "npm:^6.7.5" react-native-permissions: "npm:^3.10.1" react-native-popup-menu: "npm:^0.16.0" @@ -20135,13 +20135,13 @@ __metadata: languageName: node linkType: hard -"react-native-pager-view@npm:6.3.0": - version: 6.3.0 - resolution: "react-native-pager-view@npm:6.3.0" +"react-native-pager-view@npm:6.4.0": + version: 6.4.0 + resolution: "react-native-pager-view@npm:6.4.0" peerDependencies: react: "*" react-native: "*" - checksum: 10c0/4b159080e3771bf1c9aa600521f53fdd4a7082ac94c63e6985f778e00280f0a7c777c822f5fdb2ddf55f1630194290f1051b1d30b9a969528dfd522953fb5e74 + checksum: 10c0/a3e619d7a305c18b0f3095e53645710bceeae57d52b05270e7858ca267c7b972292e253c5b3e7b0728c0e5391581c56324d16964be61f24a0e213347a6864446 languageName: node linkType: hard
add scanner plugin for jacoco and bump RN pager view for 76
add scanner plugin for jacoco and bump RN pager view for 76
10c3fc1d354939a78c3bcd8c15c2b54a934c719d
--- src/components/MyWalmartv2/Widgets/Hourly/HourlyRosterWidget.tsx @@ -253,8 +253,7 @@ const ListItem = memo( associate: associate, disabled: !userIsInRoster || !userIsImpersonatedOnDev, isFullWidth: true, - accessibilityLabel: `${t('rosterScreen.message', 'Message')} ${ - fullName || displayName + accessibilityLabel: `${t('rosterScreen.message', 'Message')} ${fullName || displayName }`, accessibilityHint: t( 'rosterScreen.messageButtonHint', @@ -543,7 +542,7 @@ export const HourlyRosterWidget = ({ const {showTotalScheduledCount, showSearchInput} = useFeatureFlags(); const widgetTitle = useMemo( () => - t('roster.title') + + t('rosterScreen.rosterName') + (showTotalScheduledCount ? ` (${filteredData.length})` : ''), [filteredData.length, t, showTotalScheduledCount] );
feat(ui): corrected label
feat(ui): corrected label
1c174dad6889805cea5a5bc24448e62a35a3df8d
--- __tests__/redux/CreateRestarableSagasTest.ts @@ -47,10 +47,12 @@ describe('createRestartableSagas', () => { TestActionSpawnIterator.next(); // Fail it first - expect( - TestActionSpawnIterator.throw(new Error(localFailureMessage)).value, - ).toEqual( - call(logger.error, SAGA_ERROR_STRING, {message: localFailureMessage}), + const error = new Error(localFailureMessage); + expect(TestActionSpawnIterator.throw(error).value).toEqual( + call(logger.error, SAGA_ERROR_STRING, { + message: localFailureMessage, + stack: error.stack, + }), ); // Restart the saga --- __tests__/sumo/SumoSagasTest.ts @@ -37,6 +37,8 @@ import { } from '../../src/redux'; import { getSumoCharged, + getSumoChargeError, + getSumoCharging, getSumoOptIn, getSumoProfile, SumoActionCreators, @@ -167,16 +169,37 @@ describe('waitForSumoCharge', () => { it('handles when already charged', () => { const iterator = waitForSumoCharge(); expect(iterator.next().value).toEqual(select(getSumoCharged)); + expect(iterator.next(true).value).toEqual(select(getSumoCharging)); + expect(iterator.next(false).value).toEqual(select(getSumoChargeError)); + expect(iterator.next(false).done).toEqual(true); + }); + + it('handles when not charged but has charge error', () => { + const iterator = waitForSumoCharge(); + expect(iterator.next().value).toEqual(select(getSumoCharged)); + expect(iterator.next(false).value).toEqual(select(getSumoCharging)); + expect(iterator.next(false).value).toEqual(select(getSumoChargeError)); expect(iterator.next(true).done).toEqual(true); }); - it('handles when not charged', () => { + it('handles when not charged and not charging', () => { const iterator = waitForSumoCharge(); expect(iterator.next().value).toEqual(select(getSumoCharged)); + expect(iterator.next(false).value).toEqual(select(getSumoCharging)); + expect(iterator.next(false).value).toEqual(select(getSumoChargeError)); expect(iterator.next(false).value).toEqual(fork(chargeSumo)); expect(iterator.next().value).toEqual(take(SumoTypes.CHARGE_SUCCESS)); expect(iterator.next().done).toEqual(true); }); + + it('handles when not charged and charging', () => { + const iterator = waitForSumoCharge(); + expect(iterator.next().value).toEqual(select(getSumoCharged)); + expect(iterator.next(false).value).toEqual(select(getSumoCharging)); + expect(iterator.next(true).value).toEqual(select(getSumoChargeError)); + expect(iterator.next(false).value).toEqual(take(SumoTypes.CHARGE_SUCCESS)); + expect(iterator.next().done).toEqual(true); + }); }); describe('getPreHireProfile', () => { @@ -462,7 +485,8 @@ describe('onTokenChanged', () => { const token = '12355'; const iterator = onTokenChanged(); expect(iterator.next().value).toEqual(select(getAuthToken)); - expect(iterator.next(token).value).toEqual( + expect(iterator.next(token).value).toEqual(call(waitForSumoCharge)); + expect(iterator.next().value).toEqual( call(WmNotification.setAuthToken, token), ); expect(iterator.next().done).toBe(true); --- src/redux/CreateRestartableSagas.ts @@ -11,9 +11,10 @@ export const createRestartableSaga = (saga: Effect) => { yield saga; }); break; - } catch (e) { + } catch (e: any) { yield call(logger.error, SAGA_ERROR_STRING, { message: e.message, + stack: e.stack, }); } } --- src/sumo/SumoRedux.ts @@ -70,6 +70,14 @@ export const getSumoCharged = createSelector( [getSumoState], (state) => state.charged, ); +export const getSumoCharging = createSelector( + [getSumoState], + (state) => state.charging, +); +export const getSumoChargeError = createSelector( + [getSumoState], + (state) => state.chargeError, +); export const getSumoOptIn = createSelector( [getSumoState], (state) => state.optIn, --- src/sumo/SumoSagas.ts @@ -49,6 +49,8 @@ import { getSumoCharged, getSumoOptIn, getSumoProfile, + getSumoCharging, + getSumoChargeError, } from './SumoRedux'; import {NotificationRef} from './SumoEvents'; import AsyncStorage from '@react-native-community/async-storage'; @@ -105,9 +107,14 @@ export function* chargeSumo(): any { // If not charged, will pause execution until charge success or failure export function* waitForSumoCharge(): any { - const sumoCharged: boolean = yield select(getSumoCharged); - if (!sumoCharged) { - yield fork(chargeSumo); + const charged: boolean = yield select(getSumoCharged); + const charging: boolean = yield select(getSumoCharging); + const chargeError: string | null = yield select(getSumoChargeError); + + if (!charged && !chargeError) { + if (!charging) { + yield fork(chargeSumo); + } yield take(SumoTypes.CHARGE_SUCCESS); } } @@ -251,6 +258,7 @@ export function* onUserChange() { export function* onTokenChanged() { const token: string = yield select(getAuthToken); + yield call(waitForSumoCharge); yield call(WmNotification.setAuthToken, token); }
Waiting for sumo charge before setting auth token.
Waiting for sumo charge before setting auth token.
5608654f367eb8c43e2fe6a71f55c58aa709e17f
--- package-lock.json @@ -51,7 +51,7 @@ "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", - "@walmart/gtp-shared-components": "2.0.2", + "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.10.0", "@walmart/ims-print-services-ui": "1.2.0", "@walmart/inbox-mini-app": "0.81.3", @@ -5226,14 +5226,14 @@ } }, "node_modules/@walmart/gtp-shared-components": { - "version": "2.0.2", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.2.tgz", - "integrity": "sha512-nT2gYK4BKZ7fzlIJZYGQJ7FoQGdOPJa7TyFL1F/9qIGX42Ar+R4bK0SSN0Ha3PHdKnP5x0R3OsB8KrVTgrQDAg==", + "version": "2.0.3", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.3.tgz", + "integrity": "sha512-IoLY/Ii2skMsL663g7rIc+H7rFcuSS1ZjKlywBsSuz28hHtQUuMX/ytV7/rHKy+Tg6DTV4tsNe/fblmgO1BLnA==", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "0.61.0", - "@walmart/gtp-shared-icons": "1.0.5", + "@walmart/gtp-shared-icons": "1.0.6", "lodash": "^4.17.15", "moment": "^2.29.4", "react-keyed-flatten-children": "^1.3.0", @@ -5251,9 +5251,9 @@ } }, "node_modules/@walmart/gtp-shared-icons": { - "version": "1.0.5", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.5.tgz", - "integrity": "sha512-lJW/RqJRPuY9d2P0lbIHbmj48yp5SZnsSZjndPGPNtDSfIE+mDrAtAtHqmiT3BDgfXrHJf0NftXOETsy0N4zKQ==", + "version": "1.0.6", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.6.tgz", + "integrity": "sha512-jbyDSfj8sxjXaqnJIw0/UfTWyS1sVWxP4MFKXizqD0BP3BivHXC1bDwhW9PM9q4Ja8qwuppm7a4ByBYWOhusPQ==", "license": "Apache-2.0", "dependencies": { "@livingdesign/tokens": "^0.60.2", @@ -25186,12 +25186,12 @@ } }, "@walmart/gtp-shared-components": { - "version": "2.0.2", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.2.tgz", - "integrity": "sha512-nT2gYK4BKZ7fzlIJZYGQJ7FoQGdOPJa7TyFL1F/9qIGX42Ar+R4bK0SSN0Ha3PHdKnP5x0R3OsB8KrVTgrQDAg==", + "version": "2.0.3", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.3.tgz", + "integrity": "sha512-IoLY/Ii2skMsL663g7rIc+H7rFcuSS1ZjKlywBsSuz28hHtQUuMX/ytV7/rHKy+Tg6DTV4tsNe/fblmgO1BLnA==", "requires": { "@livingdesign/tokens": "0.61.0", - "@walmart/gtp-shared-icons": "1.0.5", + "@walmart/gtp-shared-icons": "1.0.6", "lodash": "^4.17.15", "moment": "^2.29.4", "react-keyed-flatten-children": "^1.3.0", @@ -25199,9 +25199,9 @@ } }, "@walmart/gtp-shared-icons": { - "version": "1.0.5", - "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.5.tgz", - "integrity": "sha512-lJW/RqJRPuY9d2P0lbIHbmj48yp5SZnsSZjndPGPNtDSfIE+mDrAtAtHqmiT3BDgfXrHJf0NftXOETsy0N4zKQ==", + "version": "1.0.6", + "resolved": "https://npme.walmart.com/@walmart/gtp-shared-icons/-/gtp-shared-icons-1.0.6.tgz", + "integrity": "sha512-jbyDSfj8sxjXaqnJIw0/UfTWyS1sVWxP4MFKXizqD0BP3BivHXC1bDwhW9PM9q4Ja8qwuppm7a4ByBYWOhusPQ==", "requires": { "@livingdesign/tokens": "^0.60.2", "lodash": "^4.17.15", --- package.json @@ -94,7 +94,7 @@ "@walmart/financial-wellbeing-feature-app": "1.0.64", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", - "@walmart/gtp-shared-components": "2.0.2", + "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.10.0", "@walmart/ims-print-services-ui": "1.2.0", "@walmart/inbox-mini-app": "0.81.3",
v2.0.3 version bump for GTP
v2.0.3 version bump for GTP
1b2b076a266f082b12e17c40e047edfc3ac7e12c
--- package-lock.json @@ -84,7 +84,7 @@ "@walmart/schedule-mini-app": "0.55.0", "@walmart/shelfavailability-mini-app": "1.5.17", "@walmart/taskit-mini-app": "2.47.8", - "@walmart/texting-mini-app": "2.0.35", + "@walmart/texting-mini-app": "2.0.36", "@walmart/time-clock-mini-app": "2.175.1", "@walmart/topstock-mini-app": "1.2.3", "@walmart/ui-components": "1.15.1", @@ -9223,9 +9223,9 @@ } }, "node_modules/@walmart/texting-mini-app": { - "version": "2.0.35", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.35.tgz", - "integrity": "sha512-9MuNMBjrxsiy3MusMI7SYBLc7J1+zWfK2lFQQiTDhM191dX6OgulOlK0ml1Q08EuV5Q8JmmD0XBjxj2pPPGq7Q==", + "version": "2.0.36", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.36.tgz", + "integrity": "sha512-RrvvHT/fpE6c7iata9ffWwRf2X6TBOygpv3pSUVLh5kQC8Io36wNK3aeMLDUKMZVqpzQ5be6ZmP1VEz2Ekd/0g==", "hasInstallScript": true }, "node_modules/@walmart/time-clock-mini-app": { @@ -33964,9 +33964,9 @@ } }, "@walmart/texting-mini-app": { - "version": "2.0.35", - "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.35.tgz", - "integrity": "sha512-9MuNMBjrxsiy3MusMI7SYBLc7J1+zWfK2lFQQiTDhM191dX6OgulOlK0ml1Q08EuV5Q8JmmD0XBjxj2pPPGq7Q==" + "version": "2.0.36", + "resolved": "https://npme.walmart.com/@walmart/texting-mini-app/-/texting-mini-app-2.0.36.tgz", + "integrity": "sha512-RrvvHT/fpE6c7iata9ffWwRf2X6TBOygpv3pSUVLh5kQC8Io36wNK3aeMLDUKMZVqpzQ5be6ZmP1VEz2Ekd/0g==" }, "@walmart/time-clock-mini-app": { "version": "2.175.1", --- package.json @@ -125,7 +125,7 @@ "@walmart/schedule-mini-app": "0.55.0", "@walmart/shelfavailability-mini-app": "1.5.17", "@walmart/taskit-mini-app": "2.47.8", - "@walmart/texting-mini-app": "2.0.35", + "@walmart/texting-mini-app": "2.0.36", "@walmart/time-clock-mini-app": "2.175.1", "@walmart/topstock-mini-app": "1.2.3", "@walmart/ui-components": "1.15.1",
Texting mini app version update for Terms of use navigation
Texting mini app version update for Terms of use navigation
9dcc794d703d9f915617aa5b6e1a8667ba01536c
--- core/src/core/syncDeviceLanguage.ts @@ -33,6 +33,9 @@ export const syncDeviceLanguage = async () => { language = await AllsparkTranslationClient.getDeviceLanguage(); } + // Device language sometimes comes back with an _. We have a standard of having languages like en-US. + language = language.replace('_', '-'); + // Change language on translation client (i18n) const currentLanguage = AllsparkTranslationClient.language; if (language !== currentLanguage) {
fix: language fix for - and _
fix: language fix for - and _
d782761ea6fce3c1ef3861b008da2650486c61ed
--- packages/allspark-foundation/src/Feature/AllsparkFeatureModule.tsx @@ -359,8 +359,6 @@ export class AllsparkFeatureModule< const { Navigator, config: navConfig } = config; return () => { - const props = navConfig || {}; - /** * Type assertion bridge for React Navigation compatibility * @@ -377,12 +375,13 @@ export class AllsparkFeatureModule< * We use 'unknown' as an intermediate step (TypeScript's recommended approach) rather than * 'as any' to maintain type safety while bridging incompatible but structurally similar types. */ - const navigatorProps = props as unknown as React.ComponentProps< - typeof Navigator.Navigator - >; return ( - <Navigator.Navigator {...navigatorProps}> + <Navigator.Navigator + {...(navConfig as unknown as React.ComponentProps< + typeof Navigator.Navigator + >)} + > {this.buildAllScreens({ Navigator })} </Navigator.Navigator> ); --- packages/allspark-foundation/src/FeatureRunner/screens/SideMenu.tsx @@ -69,13 +69,17 @@ export const DynamicSideMenu = new DynamicComponent<SideMenuItemProps>( SideMenuItem ); +type KnownKeys<T> = keyof { + [K in keyof T as string extends K ? never : K]: T[K]; +}; + export const SideMenu = (_: DrawerContentComponentProps) => { const navigation = useNavigation<NavigationProp<FeatureRunnerScreenParams>>(); const modal = useAllsparkModal(); const closeDrawer = () => navigation.dispatch(DrawerActions.closeDrawer()); - const resetTo = (screen: keyof FeatureRunnerScreenParams) => { + const resetTo = (screen: KnownKeys<FeatureRunnerScreenParams> | string) => { closeDrawer(); navigation.reset({ index: 0, --- packages/allspark-foundation/src/Navigation/client.tsx @@ -752,15 +752,7 @@ export class NavigationClient< * * We use 'unknown' as an intermediate step (TypeScript's recommended approach) rather than * 'as any' to maintain type safety while bridging incompatible but structurally similar types. - */ - const stackDescriptors = descriptors as unknown as React.ComponentProps< - typeof StackView - >['descriptors']; - const stackNavigation = navigation as unknown as React.ComponentProps< - typeof StackView - >['navigation']; - - /** + * * Type-safe cast for the describe function * * The describe function from useNavigationBuilder returns Descriptor<ScreenOptions, Navigation, Route> @@ -770,9 +762,6 @@ export class NavigationClient< * This cast is necessary due to TypeScript's inability to infer the correct type relationship * between the generic descriptor and the specific stack descriptor. */ - const stackDescribe = describe as unknown as React.ComponentProps< - typeof StackView - >['describe']; return ( <NavigationContent> @@ -780,9 +769,21 @@ export class NavigationClient< {...rest} direction={direction} state={state} - descriptors={stackDescriptors} - navigation={stackNavigation} - describe={stackDescribe} + descriptors={ + descriptors as unknown as React.ComponentProps< + typeof StackView + >['descriptors'] + } + navigation={ + navigation as unknown as React.ComponentProps< + typeof StackView + >['navigation'] + } + describe={ + describe as unknown as React.ComponentProps< + typeof StackView + >['describe'] + } /> </NavigationContent> );
fix(types): improve type safety in navigation components
fix(types): improve type safety in navigation components
1a84781e3a4b68e589d130914dca1e4e3651c11f
--- android/app/build.gradle @@ -96,8 +96,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 918 - versionName "1.17.0" + versionCode 921 + versionName "1.18.0" } signingConfigs { --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.17.0</string> + <string>1.18.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -42,7 +42,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>919</string> + <string>920</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.17.0", + "version": "1.18.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.17.0", + "version": "1.18.0", "hasInstallScript": true, "dependencies": { "@firebase/firestore-types": "^2.5.1", @@ -29422,7 +29422,7 @@ "requires": { "mv": "~2", "safe-json-stringify": "~1", - "uuid": "^8.0.0" + "uuid": "^3.3.2" } }, "@expo/cli": { @@ -30112,7 +30112,7 @@ "md5": "^2.2.1", "node-fetch": "^2.6.1", "remove-trailing-slash": "^0.1.0", - "uuid": "^8.3.2" + "uuid": "^3.3.2" } }, "@expo/sdk-runtime-versions": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.17.0", + "version": "1.18.0", "private": true, "scripts": { "android": "react-native run-android",
update to v1.18.0 for drop 18
update to v1.18.0 for drop 18
25672e9964b25cd56419b1b69ddfa7162c9ec81c
--- CLAUDE.md @@ -0,0 +1,139 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +**WMConnect Mini App** (`@walmart/wmconnect-mini-app`) is a React Native messaging and communication feature app within the Me@Walmart ecosystem. It provides real-time messaging, channel management, file sharing via Azure Blob Storage, and user presence tracking. This app serves as the **base foundation** in the mini-app dependency chain (wmconnect β†’ roster β†’ myteam β†’ allspark-core). + +## Tech Stack + +- **Runtime**: React Native 0.79.5 with Expo SDK 53 +- **Language**: TypeScript (strict mode) +- **Package Manager**: Yarn 4.6.0 (via Corepack) +- **Node.js**: >=18 +- **State Management**: Redux Toolkit with Redux Saga +- **Testing**: Jest with React Native Testing Library +- **CI/CD**: Looper (`.looper.yml`) + +## Essential Commands + +```bash +# Install dependencies +yarn + +# Generate native iOS/Android folders (prompts for variant: dev/teflon/beta/prod) +yarn prebuild + +# Run the app +yarn run:ios # Run on iOS simulator +yarn run:android # Run on Android emulator +yarn start # Start Expo dev server + +# Development +yarn lint # Run ESLint +yarn lint:fix # Auto-fix ESLint issues +yarn test # Run Jest tests +yarn coverage # Run tests with coverage report +yarn build # Build TypeScript for publishing (tsc + copy assets) +``` + +## Architecture + +### Allspark Feature Module Pattern + +This app follows the Allspark micro-frontend architecture. The entry point exports a feature module: + +```typescript +// src/index.tsx +export default WmConnectFeature.createModule({ + ...foundationModuleConfig, // screens, modals, redux, translations, listeners +}); +``` + +**Key architectural files:** +- `src/common/feature.ts` - Creates the `AllsparkFeature` instance with FEATURE_ID +- `src/config/foundationConfig.ts` - Aggregates all module components (screens, modals, redux, translations, listeners) +- `containers/Me@Walmart.ts` - Development harness using `AllsparkFeatureRunner` + +### Folder Structure + +``` +src/ +β”œβ”€β”€ common/ # Feature setup, constants, utilities +β”œβ”€β”€ components/ # Reusable UI components +β”œβ”€β”€ containers/ # Container components (ChatInput, Message) +β”œβ”€β”€ screens/ # Screen components (entry point: WMConnectMiniApp) +β”œβ”€β”€ modals/ # Modal components +β”œβ”€β”€ redux/ # Redux slice, sagas, thunks, selectors +β”œβ”€β”€ channels/ # Channel management (provider, context, services) +β”œβ”€β”€ presence/ # User presence system +β”œβ”€β”€ hooks/ # Custom React hooks +β”œβ”€β”€ services/ # API services (TextingApi, blob storage) +β”œβ”€β”€ navigation/ # React Navigation configuration +β”œβ”€β”€ translations/ # i18n translations +└── queries/ # GraphQL queries +``` + +### State Management + +Redux with sagas for side effects: +- `redux/reducer.tsx` - wmConnectSlice with message/channel state +- `redux/sagas.ts` - Async operations (WMConnectSagas) +- `redux/thunks.ts` - Blob storage operations (initLocalBlobStorage, setBlobContainer, refreshSasToken) + +### Providers + +The main screen wraps components with: +1. `ClockGuard` - Clock-in/out validation +2. `PresenceProvider` - User presence tracking +3. `ChannelsProvider` - Channel state management + +## Testing + +Jest configuration in `jest.config.js`: +- Coverage thresholds: 80% statements, 75% branches, 80% functions/lines +- Test setup: `__tests__/setup.ts` (extensive mocks for allspark-foundation, expo-audio, react-native-reanimated) +- Mocks directory: `__tests__/__mocks__/` + +```bash +yarn test # Run all tests +yarn coverage # Generate coverage report +``` + +## CI/CD + +Looper pipeline (`.looper.yml`): +- **pr flow**: corepack enable β†’ yarn install β†’ lint β†’ coverage +- **default flow**: pr + build + npm publish + +## Key Dependencies + +**Walmart Internal:** +- `@walmart/allspark-foundation` - Core framework (peer dependency >=7.12.0) +- `@walmart/me-at-walmart-container` - Container app context +- `@walmart/gtp-shared-components-3` - Living Design 3 UI components + +**External:** +- `@azure/storage-blob` - Azure Blob Storage for file sharing +- `@react-native-firebase/*` - Firebase analytics, crashlytics, firestore +- `expo-audio` - Audio recording/playback +- `expo-image-picker` - Image selection + +## Commit Message Format + +Conventional Commits enforced by commitlint: +``` +<type>(<scope>): <subject> + +Types: feat, fix, chore, docs, style, refactor, test, build, ci +``` + +## Submodule Context + +This is a git submodule of the Walmart Release Orchestrator. Changes should be: +1. Made and committed within this submodule +2. Pushed to the wmconnect remote +3. Then the parent orchestrator's submodule pointer updated + +Published to: `@walmart/wmconnect-mini-app` on Walmart NPM registry --- jest.config.js @@ -1,5 +1,40 @@ -// Root jest config - delegates to workspace packages module.exports = { - projects: ['<rootDir>/packages/*/jest.config.js'], - testTimeout: 10000, + preset: 'react-native', + setupFiles: ['<rootDir>/__tests__/setup.ts'], + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], + moduleNameMapper: { + // Force module uuid to resolve with the CJS entry point, because Jest does not support package.json.exports. See https://github.com/uuidjs/uuid/issues/451 + uuid: require.resolve('uuid'), + }, + collectCoverageFrom: [ + '<rootDir>/src/**/*.{js,jsx,ts,tsx}', + '!<rootDir>/src/**/index.ts', + '!<rootDir>/src/**/types.ts', + '!<rootDir>/src/**/*.types.ts', + '!<rootDir>/src/**/*.d.ts', + '!<rootDir>/src/queries/*', + '!<rootDir>/src/mocks/*', + '!<rootDir>/src/screens/PushToTalkScreen.tsx', //TODO: Remove ignore when we enable this feature. <Make JIRA for this> + '!<rootDir>/src/channels/pushToTalkProvider.tsx', //TODO: Remove ignore when we enable this feature. <Make JIRA for this> + ], + coverageReporters: ['lcov', 'text'], + coverageThreshold: { + global: { + statements: 80, + branches: 75, + functions: 80, + lines: 80, + }, + }, + transformIgnorePatterns: [ + '<rootDir>/node_modules/(?!(react-native|react-redux|@react-native|@react-navigation|expo|expo-av|react-native-flipper|@react-native-community/async-storage|axios|@lifeomic/axios-fetch|react-native-reanimated|@walmart/gtp-shared-components|@walmart/gtp-shared-components-3|@walmart/allspark-foundation|@walmart/gtp-shared-icons|@walmart/gtp-shared-mega-icons|@react-native-community/picker|@react-native-community/netinfo|@react-native-firebase|react-native-iphone-x-helper|react-native-gesture-handler|@react-native/polyfills|@react-native/normalize-color|@walmart/ui-components|@walmart/core-services|@walmart/allspark-utils|@walmart/allspark-http-client|@walmart/allspark-utils|@walmart/config-components|@walmart/allspark-foundation/Environment|@walmart/allspark-foundation/User|@walmart/allspark-foundation/Redux|@walmart/me-at-walmart-common))', + ], + testPathIgnorePatterns: [ + '<rootDir>/__tests__/setup.ts', + '<rootDir>/__tests__/__mocks__/', + '<rootDir>/__tests__/harness/', + '<rootDir>/scripts/dependencies-map/__tests__/*', + ], + testResultsProcessor: 'jest-sonar-reporter', + silent: true, //Uncomment to suppress error and warnings in test output };
chore: resolve merge conflict
chore: resolve merge conflict
4ce230526e4a97196cd5042e766f2e5537f5e909
--- core/src/startup/AssociateStartup.ts @@ -74,7 +74,6 @@ export function* associateStartupFlow() { yield put(WhastNewActionCreators.checkWhatsNew()); yield take(WhatsNewTypes.CHECK_WHATS_NEW_COMPLETE); - console.log('rlane1 - running startup flow on Active Container!'); yield ActiveAllsparkContainer.runFlow('startup'); // Show app review prompt --- targets/US/src/associate/calling.ts @@ -8,7 +8,6 @@ import { import {FeatureTags, ScreenTags} from '@walmart/me-at-walmart-common'; export function* handleCallingOnboarding() { - console.log('rlane1 - running calling onboarding!'); const { callingAppOnboardingFlow, callingPermissionSagas,
chore: remove console logs
chore: remove console logs
0381f07f107225831b71dceb617034122dafe9ca
--- .looper-native-common.yml @@ -63,7 +63,7 @@ flows: %{os == "ios"} then: - call: build-ios - - var(buildOutput = "./ios/build/enterprise/Artifacts/enterprise-AllSpark.ipa") + - var(buildOutput = "./ios/build/enterprise/Artifacts/enterprise-${XC_SCHEME}.ipa") else: - call: build-android - var(buildOutput = "./android/app/build/outputs/apk/release/app-release-signed.apk")
Referenced scheme name from variable
Referenced scheme name from variable
9ec3a489fc02a361a68bbede892ad22be08e3552
--- src/channels/components/TextingDisabled.tsx @@ -40,7 +40,7 @@ export const TextingDisabledScreen = (props: TextinDisabledScreenProps) => { <View style={styles.textingDisabledView} testID='textingDisabledScreenContainer'> - <Image source={Images.textinDisabledWarning} style={styles.imageSize} /> + <Image source={Images.textingDisabledWarning} style={styles.imageSize} /> <Body UNSAFE_style={styles.textingUnavailable} weight='700'> {title} </Body> --- src/components/TeamList.tsx @@ -217,7 +217,10 @@ const TeamItem = (props: { leading={ <Image style={styles.imageStyle} - source={teamIconMap[team.teamId! as keyof typeof teamIconMap]} + source={ + teamIconMap[team.teamId! as keyof typeof teamIconMap] ?? + Images.defaultTeam + } /> } trailing={ --- src/images/index.ts @@ -25,5 +25,7 @@ export const Images = { management: require('./teamIcons/TotalStore.png'), adminSupport: require('./teamIcons/TotalStore.png'), salesFloor: require('./teamIcons/SalesFloor.png'), - textinDisabledWarning: require('./TextingDisabled.png'), + textingDisabledWarning: require('./TextingDisabled.png'), + defaultTeam: require('./teamIcons/DefaultTeaming.png'), + default: require('./teamIcons/Default.png'), }; --- src/images/teamIcons/Default.png Binary files /dev/null and b/src/images/teamIcons/Default.png differ --- src/channels/components/TextingDisabled.tsx @@ -40,7 +40,7 @@ export const TextingDisabledScreen = (props: TextinDisabledScreenProps) => { <View style={styles.textingDisabledView} testID='textingDisabledScreenContainer'> - <Image source={Images.textinDisabledWarning} style={styles.imageSize} /> + <Image source={Images.textingDisabledWarning} style={styles.imageSize} /> <Body UNSAFE_style={styles.textingUnavailable} weight='700'> {title} </Body> --- src/components/TeamList.tsx @@ -217,7 +217,10 @@ const TeamItem = (props: { leading={ <Image style={styles.imageStyle} - source={teamIconMap[team.teamId! as keyof typeof teamIconMap]} + source={ + teamIconMap[team.teamId! as keyof typeof teamIconMap] ?? + Images.defaultTeam + } /> } trailing={ --- src/images/index.ts @@ -25,5 +25,7 @@ export const Images = { management: require('./teamIcons/TotalStore.png'), adminSupport: require('./teamIcons/TotalStore.png'), salesFloor: require('./teamIcons/SalesFloor.png'), - textinDisabledWarning: require('./TextingDisabled.png'), + textingDisabledWarning: require('./TextingDisabled.png'), + defaultTeam: require('./teamIcons/DefaultTeaming.png'), + default: require('./teamIcons/Default.png'), }; --- src/images/teamIcons/Default.png Binary files /dev/null and b/src/images/teamIcons/Default.png differ
Add default image
Add default image
db4486388a1c7191dda1e88257848ea0a9f39f76
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts @@ -71,6 +71,13 @@ export const enUS = { cancel: 'Cancel', }, }, + updateTeamsModal: { + title: 'Update teams', + button: { + apply: 'Apply', + cancel: 'Cancel', + }, + }, }; export const esMX: typeof enUS = { @@ -147,4 +154,11 @@ export const esMX: typeof enUS = { cancel: 'Cancel', }, }, + updateTeamsModal: { + title: 'Update teams', + button: { + apply: 'Apply', + cancel: 'Cancel', + }, + }, };
feat(ui): cleanup and other enhancements
feat(ui): cleanup and other enhancements
9fd21efb6fdda80d01f42cb1f0fdddda20b20135
--- graphql.yml @@ -1,6 +1,9 @@ schemaVersion: "1.0.0" enableGating: true teamRostersProductId: 1824 +notify: + slack: + channelName: "smdv-miniapp" applications: - name: "ROSTER-MINIAPP" applicationKey: "ROSTER-MINIAPP"
feat(ui): update query
feat(ui): update query
8124428258a8f3198468bb3c6b8ad2f00f0a7642
--- src/containers/RosterFilters.tsx @@ -88,26 +88,30 @@ export const RosterFilters = (props: { * Count of associates statuses we use as filters, recalculated * when the length of the list changes */ - const rosterCounts = associates.reduce( - (accm, associate) => { - if (associateIsClockedIn(associate)) { - accm.clockedIn++; - } - if (associateIsAbsent(associate)) { - accm.absent++; - } - if (associateIsTardy(associate)) { - accm.tardy++; - } + const rosterCounts = useMemo( + () => + associates.reduce( + (accm, associate) => { + if (associateIsClockedIn(associate)) { + accm.clockedIn++; + } + if (associateIsAbsent(associate)) { + accm.absent++; + } + if (associateIsTardy(associate)) { + accm.tardy++; + } - return accm; - }, - { - [FilterValue.all]: associates.length, - [FilterValue.absent]: 0, - [FilterValue.tardy]: 0, - [FilterValue.clockedIn]: 0, - }, + return accm; + }, + { + [FilterValue.all]: associates.length, + [FilterValue.absent]: 0, + [FilterValue.tardy]: 0, + [FilterValue.clockedIn]: 0, + }, + ), + [associates.length], ); /** --- src/screens/RosterScreen.tsx @@ -1,6 +1,6 @@ /* eslint-disable react-hooks/exhaustive-deps */ -import React, {useEffect, useMemo, useRef, useState} from 'react'; -import {StyleSheet, View} from 'react-native'; +import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; +import {RefreshControl, StyleSheet, View} from 'react-native'; import {useSelector} from 'react-redux'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; import {FlashList} from '@shopify/flash-list'; @@ -58,6 +58,15 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { const allAssociates = (data?.getDailyRoster || []) as Associate[]; const [associates, setAssociates] = useState<Associate[]>([]); const teamLeads = useSelector(teamLeadJobDescriptions) as string[]; + const [pullToRefresh, setPullToRefresh] = useState(false); + const loaderOffSet = 10; + + const onPullToRefresh = useCallback(() => { + setPullToRefresh(true); + refetch().then(() => { + setPullToRefresh(false); + }); + }, [pullToRefresh]); useEffect(() => { if (data?.getDailyRoster) { @@ -145,7 +154,13 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { contentInset={{bottom: bottomInset}} showsVerticalScrollIndicator={false} ref={flashListRef} - onRefresh={refetch} + refreshControl={ + <RefreshControl + refreshing={pullToRefresh} + onRefresh={onPullToRefresh} + progressViewOffset={loaderOffSet} + /> + } /> </View> ); --- src/containers/RosterFilters.tsx @@ -88,26 +88,30 @@ export const RosterFilters = (props: { * Count of associates statuses we use as filters, recalculated * when the length of the list changes */ - const rosterCounts = associates.reduce( - (accm, associate) => { - if (associateIsClockedIn(associate)) { - accm.clockedIn++; - } - if (associateIsAbsent(associate)) { - accm.absent++; - } - if (associateIsTardy(associate)) { - accm.tardy++; - } + const rosterCounts = useMemo( + () => + associates.reduce( + (accm, associate) => { + if (associateIsClockedIn(associate)) { + accm.clockedIn++; + } + if (associateIsAbsent(associate)) { + accm.absent++; + } + if (associateIsTardy(associate)) { + accm.tardy++; + } - return accm; - }, - { - [FilterValue.all]: associates.length, - [FilterValue.absent]: 0, - [FilterValue.tardy]: 0, - [FilterValue.clockedIn]: 0, - }, + return accm; + }, + { + [FilterValue.all]: associates.length, + [FilterValue.absent]: 0, + [FilterValue.tardy]: 0, + [FilterValue.clockedIn]: 0, + }, + ), + [associates.length], ); /** --- src/screens/RosterScreen.tsx @@ -1,6 +1,6 @@ /* eslint-disable react-hooks/exhaustive-deps */ -import React, {useEffect, useMemo, useRef, useState} from 'react'; -import {StyleSheet, View} from 'react-native'; +import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; +import {RefreshControl, StyleSheet, View} from 'react-native'; import {useSelector} from 'react-redux'; import {useSafeAreaInsets} from 'react-native-safe-area-context'; import {FlashList} from '@shopify/flash-list'; @@ -58,6 +58,15 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { const allAssociates = (data?.getDailyRoster || []) as Associate[]; const [associates, setAssociates] = useState<Associate[]>([]); const teamLeads = useSelector(teamLeadJobDescriptions) as string[]; + const [pullToRefresh, setPullToRefresh] = useState(false); + const loaderOffSet = 10; + + const onPullToRefresh = useCallback(() => { + setPullToRefresh(true); + refetch().then(() => { + setPullToRefresh(false); + }); + }, [pullToRefresh]); useEffect(() => { if (data?.getDailyRoster) { @@ -145,7 +154,13 @@ export const RosterScreen: React.FC<RosterScreenProps> = () => { contentInset={{bottom: bottomInset}} showsVerticalScrollIndicator={false} ref={flashListRef} - onRefresh={refetch} + refreshControl={ + <RefreshControl + refreshing={pullToRefresh} + onRefresh={onPullToRefresh} + progressViewOffset={loaderOffSet} + /> + } /> </View> );
update pull down to refresh
update pull down to refresh
aac80f3f49212cca610d5e7a54465c6bba2ad6f5
--- package-lock.json @@ -40,7 +40,7 @@ "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", - "@walmart/attendance-mini-app": "1.57.0", + "@walmart/attendance-mini-app": "1.60.0", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9", @@ -7991,9 +7991,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "1.57.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.57.0.tgz", - "integrity": "sha512-7bEvRbPX31nZRefpSUnWV8fnm8E1tP7sUb1+hh3d9n3c0hwERTu+g0dfbfQvertiaN56+CpXzBqQpq5ucTFLTQ==", + "version": "1.60.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.60.0.tgz", + "integrity": "sha512-FKyKahFSsoywAs4YzMiSjtPQZcLI53byQrlQtSin3JH559MaATgmb8yeRmbA9JFr+vXH8Cs68ofpRMSxw+phIQ==", "dependencies": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", @@ -33517,9 +33517,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "1.57.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.57.0.tgz", - "integrity": "sha512-7bEvRbPX31nZRefpSUnWV8fnm8E1tP7sUb1+hh3d9n3c0hwERTu+g0dfbfQvertiaN56+CpXzBqQpq5ucTFLTQ==", + "version": "1.60.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-1.60.0.tgz", + "integrity": "sha512-FKyKahFSsoywAs4YzMiSjtPQZcLI53byQrlQtSin3JH559MaATgmb8yeRmbA9JFr+vXH8Cs68ofpRMSxw+phIQ==", "requires": { "@walmart/gta-react-native-calendars": "^0.0.16", "@walmart/wfm-ui": "^0.2.26", --- package.json @@ -81,7 +81,7 @@ "@walmart/amp-mini-app": "1.1.48", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.13.4", - "@walmart/attendance-mini-app": "1.57.0", + "@walmart/attendance-mini-app": "1.60.0", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.1", "@walmart/copilot-mini-app": "1.77.9",
ama v1.60.0
ama v1.60.0
a1fbc76ebeb762c011e01aa7633b4736279d6cb9
--- __tests__/communications/oneToOneChatTest.tsx @@ -3,7 +3,7 @@ import firestore from '@react-native-firebase/firestore'; import {TestFirestoreComponent} from '../../src/components/TestFirestoreComponent'; import {renderWithProviders} from '../harness'; import {createMockChannelsContext} from '../harness/firestore/channelsProvider'; -import {ChannelsProvider} from "../../src/channels"; + jest.mock('@react-native-firebase/firestore'); describe('One to One Chat', () => { @@ -103,13 +103,10 @@ describe('One to One Chat', () => { // }); it('building up to testing messages screen', async () => { - const channelsContext = await createMockChannelsContext( - firestore, - 'STORE_100', - ); - console.log(channelsContext); + const channelsContext = await createMockChannelsContext(firestore, 'STORE_100'); const testComponentWithChannelsProvider = renderWithProviders( - <TestFirestoreComponent />, + <TestFirestoreComponent />, + {channelsContext: channelsContext}, ); expect(testComponentWithChannelsProvider.toJSON()).toMatchSnapshot(); }); --- __tests__/harness/index.tsx @@ -15,10 +15,9 @@ import { EnvironmentProvider, } from '@walmart/core-services/Environment/index'; import {EnvType} from '@walmart/core-services/Environment/types'; -import {ChannelsContext} from '../../src/channels/context'; import {PresenceContext} from '../../src/presence/context'; -import {createMockChannelsContext} from "./firestore/channelsProvider"; -import firestore from "@react-native-firebase/firestore"; +import {IChannelsContext} from '../../src/channels'; +import {ChannelsContext} from '../../src/channels/context'; const rootReducer = reducerManager.getRootReducer(); @@ -28,6 +27,8 @@ export type RootState = ReturnType<typeof rootReducer>; interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> { store?: AppStore; preloadedState?: PreloadedState<RootState>; + channelsContext?: IChannelsContext; + envType?: EnvType; } export const setupStore = (preloadedState?: PreloadedState<RootState>) => { return configureStore({ @@ -56,9 +57,10 @@ export const renderWithProviders: typeof render = ( { preloadedState = initialStateMock as RootState, //TODO: Create mock RootState to pass in store = setupStore(preloadedState), + channelsContext = undefined, + envType = 'dev', ...renderOptions }: ExtendedRenderOptions = {}, - envType?: EnvType, ) => { function Wrapper({children}: PropsWithChildren<{}>): React.ReactElement { return ( @@ -67,7 +69,7 @@ export const renderWithProviders: typeof render = ( env={envType ? {...envConfig, envType} : envConfig}> <I18nextProvider i18n={i18n}> <PresenceContext.Provider value={{}}> - <ChannelsContext.Provider value={{}}> + <ChannelsContext.Provider value={channelsContext}> {children} </ChannelsContext.Provider> </PresenceContext.Provider> --- __tests__/harness/redux/mockState/index.ts @@ -7,9 +7,24 @@ export const initialStateMock: GlobalState = { user: { data: { win: '123456789', + homeSite: '100', + siteId: '100', + }, + }, + site: { + loaded: true, + error: false, + fetchSiteError: false, + fetchingSite: false, + data: { + siteId: 100, + country: 'US', + }, + homeSite: { + siteId: 100, + country: 'US', }, }, - site: {}, clockStatus: clockStatusState, locale: {}, versions: {}, --- __tests__/communications/oneToOneChatTest.tsx @@ -3,7 +3,7 @@ import firestore from '@react-native-firebase/firestore'; import {TestFirestoreComponent} from '../../src/components/TestFirestoreComponent'; import {renderWithProviders} from '../harness'; import {createMockChannelsContext} from '../harness/firestore/channelsProvider'; -import {ChannelsProvider} from "../../src/channels"; + jest.mock('@react-native-firebase/firestore'); describe('One to One Chat', () => { @@ -103,13 +103,10 @@ describe('One to One Chat', () => { // }); it('building up to testing messages screen', async () => { - const channelsContext = await createMockChannelsContext( - firestore, - 'STORE_100', - ); - console.log(channelsContext); + const channelsContext = await createMockChannelsContext(firestore, 'STORE_100'); const testComponentWithChannelsProvider = renderWithProviders( - <TestFirestoreComponent />, + <TestFirestoreComponent />, + {channelsContext: channelsContext}, ); expect(testComponentWithChannelsProvider.toJSON()).toMatchSnapshot(); }); --- __tests__/harness/index.tsx @@ -15,10 +15,9 @@ import { EnvironmentProvider, } from '@walmart/core-services/Environment/index'; import {EnvType} from '@walmart/core-services/Environment/types'; -import {ChannelsContext} from '../../src/channels/context'; import {PresenceContext} from '../../src/presence/context'; -import {createMockChannelsContext} from "./firestore/channelsProvider"; -import firestore from "@react-native-firebase/firestore"; +import {IChannelsContext} from '../../src/channels'; +import {ChannelsContext} from '../../src/channels/context'; const rootReducer = reducerManager.getRootReducer(); @@ -28,6 +27,8 @@ export type RootState = ReturnType<typeof rootReducer>; interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> { store?: AppStore; preloadedState?: PreloadedState<RootState>; + channelsContext?: IChannelsContext; + envType?: EnvType; } export const setupStore = (preloadedState?: PreloadedState<RootState>) => { return configureStore({ @@ -56,9 +57,10 @@ export const renderWithProviders: typeof render = ( { preloadedState = initialStateMock as RootState, //TODO: Create mock RootState to pass in store = setupStore(preloadedState), + channelsContext = undefined, + envType = 'dev', ...renderOptions }: ExtendedRenderOptions = {}, - envType?: EnvType, ) => { function Wrapper({children}: PropsWithChildren<{}>): React.ReactElement { return ( @@ -67,7 +69,7 @@ export const renderWithProviders: typeof render = ( env={envType ? {...envConfig, envType} : envConfig}> <I18nextProvider i18n={i18n}> <PresenceContext.Provider value={{}}> - <ChannelsContext.Provider value={{}}> + <ChannelsContext.Provider value={channelsContext}> {children} </ChannelsContext.Provider> </PresenceContext.Provider> --- __tests__/harness/redux/mockState/index.ts @@ -7,9 +7,24 @@ export const initialStateMock: GlobalState = { user: { data: { win: '123456789', + homeSite: '100', + siteId: '100', + }, + }, + site: { + loaded: true, + error: false, + fetchSiteError: false, + fetchingSite: false, + data: { + siteId: 100, + country: 'US', + }, + homeSite: { + siteId: 100, + country: 'US', }, }, - site: {}, clockStatus: clockStatusState, locale: {}, versions: {},
working injection of context
working injection of context
fc2af5cd3b33a0fa58231fe083342a3486e4521c
--- 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.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.6...@walmart/allspark-foundation-hub@1.19.7) (2025-10-27) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.19.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.5...@walmart/allspark-foundation-hub@1.19.6) (2025-10-23) **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.6", + "version": "1.19.7", "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.4.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.4.1...@walmart/allspark-foundation@7.4.2) (2025-10-27) + +### Bug Fixes + +- **drawer:** drawer service hook causing rerenders ([5eadda6](https://gecgithub01.walmart.com/allspark/allspark/commit/5eadda614ba2a24ef7ad2ffefd3382e358aa5be7)) + ## [7.4.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.4.0...@walmart/allspark-foundation@7.4.1) (2025-10-23) **Note:** Version bump only for package @walmart/allspark-foundation --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.4.1", + "version": "7.4.2", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts", --- packages/me-at-walmart-geolocation/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.7](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.6...@walmart/me-at-walmart-geolocation@1.3.7) (2025-10-27) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.3.6](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.5...@walmart/me-at-walmart-geolocation@1.3.6) (2025-10-23) **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.6", + "version": "1.3.7", "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-foundation@7.4.2 - @walmart/allspark-foundation-hub@1.19.7 - @walmart/me-at-walmart-geolocation@1.3.7
bd71f7490752a0b627541a9b03ae197218dafbc1
--- __tests__/harness/redux/mockState/authState.ts @@ -1,11 +1,9 @@ import {AuthState, AuthData} from '@walmart/redux-store'; +// @ts-ignore const authData: AuthData = { - accessToken: 'fake-access-token', expirationDate: 'fake-expiration-date', lastRefreshTime: 1234, - accessTokenExpirationDate: 'fake-expiration-date', - idToken: 'fake-id-token', }; export const authState: AuthState = { --- __tests__/harness/redux/mockState/authState.ts @@ -1,11 +1,9 @@ import {AuthState, AuthData} from '@walmart/redux-store'; +// @ts-ignore const authData: AuthData = { - accessToken: 'fake-access-token', expirationDate: 'fake-expiration-date', lastRefreshTime: 1234, - accessTokenExpirationDate: 'fake-expiration-date', - idToken: 'fake-id-token', }; export const authState: AuthState = {
removing sensitive fields
removing sensitive fields
ea33abd6f5741c410ceecf896d3a19606a196398
--- packages/associate-exp-hub-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. +## [2.13.3](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.13.2...@walmart/associate-exp-hub-hub@2.13.3) (2025-11-20) + +**Note:** Version bump only for package @walmart/associate-exp-hub-hub + ## [2.13.2](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.13.1...@walmart/associate-exp-hub-hub@2.13.2) (2025-11-19) **Note:** Version bump only for package @walmart/associate-exp-hub-hub --- packages/associate-exp-hub-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-hub", - "version": "2.13.2", + "version": "2.13.3", "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.6.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.5.2...@walmart/associate-exp-hub-mini-app@1.6.0) (2025-11-20) + +### Features + +- **ui:** update graphql queries ([c2c90d0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/c2c90d074a21dc51963225f7dde76760257e0241)) + ## [1.5.2](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.5.1...@walmart/associate-exp-hub-mini-app@1.5.2) (2025-11-19) **Note:** Version bump only for package @walmart/associate-exp-hub-mini-app --- packages/associate-exp-hub-mini-app/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-mini-app", - "version": "1.5.2", + "version": "1.6.0", "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" --- packages/associate-exp-hub-team-switcher/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.15.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.14.1...@walmart/associate-exp-hub-team-switcher@2.15.0) (2025-11-20) + +### Features + +- **ui:** update graphql queries ([c2c90d0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/c2c90d074a21dc51963225f7dde76760257e0241)) + ## [2.14.1](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.14.0...@walmart/associate-exp-hub-team-switcher@2.14.1) (2025-11-19) **Note:** Version bump only for package @walmart/associate-exp-hub-team-switcher --- packages/associate-exp-hub-team-switcher/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/associate-exp-hub-team-switcher", - "version": "2.14.1", + "version": "2.15.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.13.3 - @walmart/associate-exp-hub-mini-app@1.6.0 - @walmart/associate-exp-hub-team-switcher@2.15.0
a478cf398aff9613d2f1e066b36a2861132aa0fc
--- .yarn/plugins/plugin-setup-husky.cjs @@ -0,0 +1,25 @@ +module.exports = { + name: 'plugin-setup-husky', + factory: (require) => { + "use strict" + const fs = require('node:fs') + const {resolve} = require('path') + const {exec} = require('node:child_process') + + return { + default: { + hooks: { + afterAllInstalled() { + if (!process.env.CI && !fs.existsSync(resolve(__dirname, '../../.husky/_'))) { + exec('yarn run prepare', (error) => { + if (error) { + console.error('Error happened when setup husky', error.message) + } + }) + } + } + } + } + } + } +} --- .yarnrc.yml @@ -8,9 +8,7 @@ logFilters: nodeLinker: node-modules -npmRegistryServer: ${REPOSOLNS_NPM_REPO} - -# afterInstall: 'yarn run build' +npmRegistryServer: "${REPOSOLNS_NPM_REPO}" packageExtensions: "@walmart/allspark-neon-core@*": @@ -205,6 +203,9 @@ packageExtensions: optional: true plugins: + - checksum: 27d0b770756cd99fb074edac4a565f222bfe38f505aa3dbd357376a11896f7ca0ff508b9157d6b9fbcb33691c10715a59698a86c2b06d601cd383b3bb88e4927 + path: .yarn/plugins/plugin-setup-husky.cjs + spec: .yarn/plugins/plugin-setup-husky.cjs - checksum: 0a2a35fbed2f33f0df1ceb1db51bf72554201f994eaecb86cbc62a295c3d05f7cc44fa8be8e64fc5e1c0bee4f529a17a0cc429ea9e3486ad467443291d5a8e3b path: .yarn/plugins/@yarnpkg/plugin-after-install.cjs spec: "https://raw.githubusercontent.com/mhassan1/yarn-plugin-after-install/v0.6.0/bundles/@yarnpkg/plugin-after-install.js"
chore(config): ALLSPARK-5676 integrate husky into yarn hook (#4027)
chore(config): ALLSPARK-5676 integrate husky into yarn hook (#4027) Co-authored-by: Maksym Novakh <maksym.novakh@walmart.com>
435fea6e4dc2a8ed4526b9a865e18aee5a2aebb9
--- src/home/components/GreetingRow/BaseGreeting.tsx @@ -39,12 +39,7 @@ export const BaseGreeting: FC<BaseGreetingPrps> = (props) => { return ( <View style={[styles.greetingContainer, style]} testID='Home.Greeting'> - {!!withIcon && ( - <SparkIcon - size={32} - color={colors.yellow[100]} - /> - )} + {!!withIcon && <SparkIcon size={32} color={colors.yellow[100]} />} <Title style={[styles.greeting, titleStyle]}>{title}</Title> <SiteInfo color={color as string} /> <View style={styles.seperator} />
lint fix
lint fix
371f5b3cc1c78b1ccef87e1f03348158430b4a5b
--- package-lock.json @@ -3611,9 +3611,9 @@ } }, "@walmart/time-clock-mini-app": { - "version": "0.4.13", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.13.tgz", - "integrity": "sha512-BgkW4jmi+qgn/Ic1z9cwUoqGU+RUkyWO6F1Xln9yX+T56HQKfwSXW1lvnah8Q9dhfnSYgnuoZLW8fW8q0/ftCQ==", + "version": "0.4.14", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.14.tgz", + "integrity": "sha512-ONZTYt2E38yYEm2t1TnNOaCUJlvvU1SmN3EnOal4d54uOUMBfCPhWBlKYfznvWOAh18Sr6/o0B63eOrkXh95Ug==", "requires": { "@react-native-community/datetimepicker": "3.0.9", "@react-native-picker/picker": "^1.16.1", --- package.json @@ -97,7 +97,7 @@ "@walmart/schedule-mini-app": "0.3.1", "@walmart/settings-mini-app": "1.3.7", "@walmart/shelfavailability-mini-app": "0.3.89", - "@walmart/time-clock-mini-app": "0.4.13", + "@walmart/time-clock-mini-app": "0.4.14", "@walmart/ui-components": "1.1.57", "@walmart/welcomeme-mini-app": "0.30.4", "@walmart/wfm-ui": "^0.1.50",
Attestation UI
Attestation UI
2fe96eb2f8c782516082d355bba6a524410590b2
--- yarn.lock @@ -7051,7 +7051,7 @@ __metadata: "@walmart/roster-mini-app": "npm:2.9.0" "@walmart/schedule-mini-app": "npm:0.118.2" "@walmart/shelfavailability-mini-app": "npm:1.5.37" - "@walmart/shop-gnfr-mini-app": "npm:1.0.131" + "@walmart/shop-gnfr-mini-app": "npm:1.0.136" "@walmart/sidekick-mini-app": "npm:4.84.7" "@walmart/store-feature-orders": "npm:1.27.1" "@walmart/taskit-mini-app": "npm:4.17.21" @@ -7925,9 +7925,9 @@ __metadata: languageName: node linkType: hard -"@walmart/shop-gnfr-mini-app@npm:1.0.131": - version: 1.0.131 - resolution: "@walmart/shop-gnfr-mini-app@npm:1.0.131" +"@walmart/shop-gnfr-mini-app@npm:1.0.136": + version: 1.0.136 + resolution: "@walmart/shop-gnfr-mini-app@npm:1.0.136" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -7935,7 +7935,7 @@ __metadata: "@walmart/gtp-shared-components": ^2.0.0 react: ^18.2.0 react-native: ~0.70.5 - checksum: 10c0/9a3541d60fb272c876a72612127b27b7389f8b298d1deaef5f1519ff1114f0611a0e9c0b8903b2c0fb89e3dc5b01b928bdec0ace37dec3d3c59f1547ebcbdb27 + checksum: 10c0/94666afb0d0b0c0048a52ce3cd42693fcbedf94bc9bb05b517cb92056cba8c56e2cb2e693d48a68fda4a058accfd3b222de0e0d42fcf70181635697e3027aeb1 languageName: node linkType: hard
shop-gnfr crash fix version added yarn.lock file
shop-gnfr crash fix version added yarn.lock file
bb829a38399a7c493c257a9a4b960963919a1e0c
--- package.json @@ -104,7 +104,7 @@ "@walmart/exception-mini-app": "1.7.10", "@walmart/facilities-management-miniapp": "0.10.0", "@walmart/feedback-all-spark-miniapp": "0.9.60", - "@walmart/financial-wellbeing-feature-app": "1.23.2", + "@walmart/financial-wellbeing-feature-app": "1.23.3", "@walmart/functional-components": "6.1.4", "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.1", --- yarn.lock @@ -6160,9 +6160,9 @@ __metadata: languageName: node linkType: hard -"@walmart/financial-wellbeing-feature-app@npm:1.23.2": - version: 1.23.2 - resolution: "@walmart/financial-wellbeing-feature-app@npm:1.23.2" +"@walmart/financial-wellbeing-feature-app@npm:1.23.3": + version: 1.23.3 + resolution: "@walmart/financial-wellbeing-feature-app@npm:1.23.3" peerDependencies: "@react-navigation/native": ^6.0.0 "@react-navigation/stack": ^6.1.0 @@ -6173,7 +6173,7 @@ __metadata: react-native-svg: ^13.4.0 react-redux: ^8.0.4 redux: ^4.1.2 - checksum: 10c0/d2ced382fb8c5942bcaeccc2666e11945e1ce4d1ce5ceb870f48f93019a85d9ce6a494f8da3a43093e3a547817bb43936a95ec08a6dccb10c967d708a539e7ee + checksum: 10c0/fb211673fd301f24b6b933597baf2ab548c5bd01be3e337b258deda300e17c344dfaa19b8b4363699a70ce7a3ac0ce087bd4eb575a3aa8ec902d0a0cd2dbda46 languageName: node linkType: hard @@ -7744,7 +7744,7 @@ __metadata: "@walmart/exception-mini-app": "npm:1.7.10" "@walmart/facilities-management-miniapp": "npm:0.10.0" "@walmart/feedback-all-spark-miniapp": "npm:0.9.60" - "@walmart/financial-wellbeing-feature-app": "npm:1.23.2" + "@walmart/financial-wellbeing-feature-app": "npm:1.23.3" "@walmart/functional-components": "npm:6.1.4" "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.1"
bumped fwb version
bumped fwb version
5b34e8d4bf3f501a62b65b60b1d1b479d2ef33a7
--- core/__tests__/__mocks__/@walmart/allspark-foundation/Translations.js @@ -3,5 +3,6 @@ module.exports = { ...jest.requireActual('@walmart/allspark-foundation/Translation'), AllsparkTranslationClient: { t: jest.fn((key) => key), + on: jest.fn(), }, } \ No newline at end of file --- core/__tests__/legacy/ContextTest.tsx @@ -0,0 +1,17 @@ +import {AllsparkBannersContainer, AllsparkDrawerBadge } from '@walmart/allspark-foundation/Components'; +import { LegacyHeaderContextValue, LegacyDrawerContext} from '../../src/legacy/context'; + + describe('LegacyHeaderContextValue', () => { + it('renders banners correctly', () => { + const renderBanners = LegacyHeaderContextValue.renderBanners; + const bannersElement = renderBanners(); + expect(bannersElement.type).toBe(AllsparkBannersContainer.List); + }); + }); + + describe('LegacyDrawerContext', () => { + it('renders badge correctly', () => { + const badgeElement = LegacyDrawerContext.renderBadge(); + expect(badgeElement.type).toBe(AllsparkDrawerBadge.Component); + }); + }); \ No newline at end of file --- core/__tests__/legacy/IndexTest.tsx @@ -0,0 +1,18 @@ +import {AllsparkTranslationClient} from '@walmart/allspark-foundation/Translation'; +import {AllsparkEnvironment} from '@walmart/allspark-foundation/Environment'; +import { LegacyLocaleFeature, LegacyEnvFeature } from '../../src/legacy/index'; + +describe('LegacyLocaleFeature', () => { + it('calls updateLocale and sets up languageChanged listener on connect', () => { + const onSpy = jest.spyOn(AllsparkTranslationClient, 'on'); + LegacyLocaleFeature._listeners.feature.onConnect(); + expect(onSpy).toHaveBeenCalledTimes(1); + expect(onSpy).toHaveBeenCalledWith('languageChanged', expect.any(Function)); + }); + }); + + describe('LegacyEnvFeature', () => { + it('test LegacyEnvFeature reducers returns current AllsparkEnvironment values', () => { + expect(LegacyEnvFeature._redux.reducer()).toBe(AllsparkEnvironment.getCurrent()); + }); + }); \ No newline at end of file
test cases for legacy folder
test cases for legacy folder
065ca218b612f2263e39015341ed8defb40f321a
--- package-lock.json @@ -43,7 +43,7 @@ "@walmart/attendance-mini-app": "0.190.6", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.5", - "@walmart/copilot-mini-app": "^2.3.6", + "@walmart/copilot-mini-app": "^2.3.16", "@walmart/core-services": "~2.2.0", "@walmart/core-services-allspark": "~2.12.6", "@walmart/core-utils": "~2.0.5", @@ -8104,9 +8104,9 @@ } }, "node_modules/@walmart/copilot-mini-app": { - "version": "2.3.6", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.6.tgz", - "integrity": "sha512-VgbP8wPUqWXqKV2ucSkzhiA1aKnCcqjWbePYKOSiam0JFAaTeph86TqKBX7U2JFyNG2KzztXNl4F/Z6B/3bxRA==", + "version": "2.3.16", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.16.tgz", + "integrity": "sha512-wF915lceEWFfFMfLhDV1VoLb7GI2jV8oWU6O3I+AOcRgZaQRolcBqyeuWlQrGmBcqcjKs8rTBw0mfyAIrphiAA==", "hasInstallScript": true, "peerDependencies": { "@react-navigation/native": "^6.0.0", @@ -33580,9 +33580,9 @@ } }, "@walmart/copilot-mini-app": { - "version": "2.3.6", - "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.6.tgz", - "integrity": "sha512-VgbP8wPUqWXqKV2ucSkzhiA1aKnCcqjWbePYKOSiam0JFAaTeph86TqKBX7U2JFyNG2KzztXNl4F/Z6B/3bxRA==" + "version": "2.3.16", + "resolved": "https://npme.walmart.com/@walmart/copilot-mini-app/-/copilot-mini-app-2.3.16.tgz", + "integrity": "sha512-wF915lceEWFfFMfLhDV1VoLb7GI2jV8oWU6O3I+AOcRgZaQRolcBqyeuWlQrGmBcqcjKs8rTBw0mfyAIrphiAA==" }, "@walmart/core-services": { "version": "2.2.0", --- package.json @@ -84,7 +84,7 @@ "@walmart/attendance-mini-app": "0.190.6", "@walmart/compass-sdk-rn": "4.2.0", "@walmart/config-components": "4.2.5", - "@walmart/copilot-mini-app": "2.3.6", + "@walmart/copilot-mini-app": "2.3.16", "@walmart/core-services": "~2.2.0", "@walmart/core-services-allspark": "~2.12.6", "@walmart/core-utils": "~2.0.5",
chore: bump copilot@2.3.16
chore: bump copilot@2.3.16
4b3c59583ff59742f1a3515c4969aa6de8e3ea1b
--- package-lock.json @@ -73,7 +73,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.29", + "@walmart/receipt-check-miniapp": "1.8.30", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0", @@ -5712,9 +5712,9 @@ } }, "node_modules/@walmart/receipt-check-miniapp": { - "version": "1.8.29", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.29.tgz", - "integrity": "sha512-O39j7IhEonP7veCK7Ze7zcoglyf0VV1uW1B9jzl56H+B1yy4nSShbC4QkZ6QakK28fwHkij7xkijrsOwmrL8OA==", + "version": "1.8.30", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.30.tgz", + "integrity": "sha512-GDpoNRrmoOA9OwyDg6n+8NZCkEjv3/cVMQexz4fFYxbZrORhbhqlVw5GWT6oRacNcfUA6KutExqdGqvUVN5Ggw==", "dependencies": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", @@ -25024,9 +25024,9 @@ "integrity": "sha512-VkGT8BSZOsxR4FJjxeu6ursO3qzAVZea6jEwT6KJsXgBJ9MIHhkBo78guM6kEbqqQl3SlGS/+5tbOxKdWrvStQ==" }, "@walmart/receipt-check-miniapp": { - "version": "1.8.29", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.29.tgz", - "integrity": "sha512-O39j7IhEonP7veCK7Ze7zcoglyf0VV1uW1B9jzl56H+B1yy4nSShbC4QkZ6QakK28fwHkij7xkijrsOwmrL8OA==", + "version": "1.8.30", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.30.tgz", + "integrity": "sha512-GDpoNRrmoOA9OwyDg6n+8NZCkEjv3/cVMQexz4fFYxbZrORhbhqlVw5GWT6oRacNcfUA6KutExqdGqvUVN5Ggw==", "requires": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", --- package.json @@ -115,7 +115,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.29", + "@walmart/receipt-check-miniapp": "1.8.30", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0",
bump version for patch
bump version for patch
ee7403c249009188e6437b1ecd45f0b2e14df501
--- src/media/corevoice_src_main_res_raw_audionotificationsound.wav Binary files /dev/null and b/src/media/corevoice_src_main_res_raw_audionotificationsound.wav differ --- src/media/corevoice_src_main_res_raw_starttalk.wav Binary files /dev/null and b/src/media/corevoice_src_main_res_raw_starttalk.wav differ --- src/media/corevoice_src_main_res_raw_stoptalk.wav Binary files /dev/null and b/src/media/corevoice_src_main_res_raw_stoptalk.wav differ --- src/media/corevoice_src_main_res_raw_textingsound.wav Binary files /dev/null and b/src/media/corevoice_src_main_res_raw_textingsound.wav differ --- src/redux/audioPlayThunk.ts @@ -10,6 +10,11 @@ export const playReceivingPTTMessage = createAsyncThunk( const audioRemoteURI = await fetchResource(remoteURI); const {sound} = await Audio.Sound.createAsync({uri: audioRemoteURI}); try { + await Audio.Sound.createAsync( + require('../media/corevoice_src_main_res_raw_audionotificationsound.wav'), + ).then((recieveTone) => { + recieveTone.sound.playAsync(); + }); await sound.playAsync(); } catch (e) { logger.error('AudioPlayback', { --- src/screens/PushToTalkScreen.tsx @@ -138,6 +138,11 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { timeout.stop(); if (RecordingRef.current) { + await Audio.Sound.createAsync( + require('../media/corevoice_src_main_res_raw_stoptalk.wav'), + ).then((sound) => { + sound.sound.playAsync(); + }); await RecordingRef.current!.stopAndUnloadAsync(); await Audio.setAudioModeAsync({ allowsRecordingIOS: false, @@ -233,6 +238,12 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { playsInSilentModeIOS: true, }); + await Audio.Sound.createAsync( + require('../media/corevoice_src_main_res_raw_starttalk.wav'), + ).then((sound) => { + sound.sound.playAsync(); + }); + const {recording} = await Audio.Recording.createAsync( Audio.RecordingOptionsPresets.HIGH_QUALITY, (status) => { --- src/media/corevoice_src_main_res_raw_audionotificationsound.wav Binary files /dev/null and b/src/media/corevoice_src_main_res_raw_audionotificationsound.wav differ --- src/media/corevoice_src_main_res_raw_starttalk.wav Binary files /dev/null and b/src/media/corevoice_src_main_res_raw_starttalk.wav differ --- src/media/corevoice_src_main_res_raw_stoptalk.wav Binary files /dev/null and b/src/media/corevoice_src_main_res_raw_stoptalk.wav differ --- src/media/corevoice_src_main_res_raw_textingsound.wav Binary files /dev/null and b/src/media/corevoice_src_main_res_raw_textingsound.wav differ --- src/redux/audioPlayThunk.ts @@ -10,6 +10,11 @@ export const playReceivingPTTMessage = createAsyncThunk( const audioRemoteURI = await fetchResource(remoteURI); const {sound} = await Audio.Sound.createAsync({uri: audioRemoteURI}); try { + await Audio.Sound.createAsync( + require('../media/corevoice_src_main_res_raw_audionotificationsound.wav'), + ).then((recieveTone) => { + recieveTone.sound.playAsync(); + }); await sound.playAsync(); } catch (e) { logger.error('AudioPlayback', { --- src/screens/PushToTalkScreen.tsx @@ -138,6 +138,11 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { timeout.stop(); if (RecordingRef.current) { + await Audio.Sound.createAsync( + require('../media/corevoice_src_main_res_raw_stoptalk.wav'), + ).then((sound) => { + sound.sound.playAsync(); + }); await RecordingRef.current!.stopAndUnloadAsync(); await Audio.setAudioModeAsync({ allowsRecordingIOS: false, @@ -233,6 +238,12 @@ export const PushToTalkScreen: FC<PushToTalkScreenProps> = (props) => { playsInSilentModeIOS: true, }); + await Audio.Sound.createAsync( + require('../media/corevoice_src_main_res_raw_starttalk.wav'), + ).then((sound) => { + sound.sound.playAsync(); + }); + const {recording} = await Audio.Recording.createAsync( Audio.RecordingOptionsPresets.HIGH_QUALITY, (status) => {
addition of tones for PTT
addition of tones for PTT
16bd4e19f889449deae1a4e83b72780440bad841
--- src/auth/LoginErrorScreen/DynamicQuestion.tsx @@ -39,43 +39,43 @@ export const DynamicQuestion = (props: { render={({field, fieldState}) => { return ( <FormGroup error={fieldState.error?.message}> - {isSingleSelect - ? options.map((option) => ( - <Radio - key={option.code} - label={option.text} - checked={selectedIds.includes(option.code)} - onPress={() => { - setSelectedIds([option.code]); + {options.map((option) => + isSingleSelect ? ( + <Radio + key={option.code} + label={option.text} + checked={selectedIds.includes(option.code)} + onPress={() => { + setSelectedIds([option.code]); + field.onChange( + options.find((o) => o.code === option.code), + ); + }} + /> + ) : ( + <Checkbox + key={option.code} + label={option.text} + checked={selectedIds.includes(option.code)} + onPress={() => { + setSelectedIds((prev) => { + let newIds = []; + if (prev.includes(option.code)) { + newIds = prev.filter((i) => i !== option.code); + } else { + newIds = [...prev, option.code]; + } field.onChange( - options.find((o) => o.code === option.code), + newIds.map((id) => + options.find((o) => o.code === id), + ), ); - }} - /> - )) - : options.map((option) => ( - <Checkbox - key={option.code} - label={option.text} - checked={selectedIds.includes(option.code)} - onPress={() => { - setSelectedIds((prev) => { - let newIds = []; - if (prev.includes(option.code)) { - newIds = prev.filter((i) => i !== option.code); - } else { - newIds = [...prev, option.code]; - } - field.onChange( - newIds.map((id) => - options.find((o) => o.code === id), - ), - ); - return newIds; - }); - }} - /> - ))} + return newIds; + }); + }} + /> + ), + )} </FormGroup> ); }} --- src/auth/LoginErrorScreen/index.tsx @@ -327,10 +327,11 @@ export const LoginErrorScreen = ( }} render={({field, fieldState}) => ( <Select + title={translate('ssoError.location')} label={translate('ssoError.location')} placeholder={translate('ssoError.selectIssue')} error={fieldState.error?.message} - componentType={{ios: 'Overlay', android: 'Overlay'}} + componentType={{ios: 'Modal', android: 'Modal'}} selectOptions={DOMAINS} testID='location-select' onChange={(selected) => field.onChange(selected[0])} @@ -354,7 +355,7 @@ export const LoginErrorScreen = ( label={translate('ssoError.issueCategory')} placeholder={translate('ssoError.selectIssue')} error={fieldState.error?.message} - componentType={{ios: 'BottomSheet', android: 'BottomSheet'}} + componentType={{ios: 'Modal', android: 'Modal'}} selectOptions={errorCategories} onChange={(selected) => { field.onChange(
refactor: update login error screen select to use modal
refactor: update login error screen select to use modal
bb2a68bfba9bb6f21216c87ca2b129209c494ae3
--- yarn.lock @@ -6984,7 +6984,7 @@ __metadata: reduxsauce: ^1.2.0 reselect: ^4.0.0 wifi-store-locator: ^1.0.0-alpha2 - checksum: 10c0/f4c09941c8550505cd389abc6d330246853c264086bb4e1da8578b5a74ca9c94485086a3c85c27f7d65a8436bbc07ed3b20a35c351101644761335d02cf4f410 + checksum: 10c0/ab8439924413873e1c0fe2159feb6e4d6653fe69b1dd716335555e96243812bc6b23bdd51eb1cae36a4c117dcdddf0817891a4a407974742b9de353d8547dd8b languageName: node linkType: hard
Checksum update
Checksum update
130dde2bab4fb43ebb71751d9a810b8327d0a973
--- src/permissions/PermissionsSaga.ts @@ -1,14 +1,8 @@ import {call, select, fork} from 'typed-redux-saga'; -import {take, cancel} from 'redux-saga/effects'; +import {take, cancel, put} from 'redux-saga/effects'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; -import { - NotificationActionTypes, - NotificationSelectors, -} from '@walmart/allspark-foundation/Notification'; -import { - LocationActionTypes, - LocationSelectors, -} from '@walmart/allspark-foundation/Location'; +import {NotificationSelectors} from '@walmart/allspark-foundation/Notification'; +import {LocationSelectors} from '@walmart/allspark-foundation/Location'; import {PERMISSIONS_COMPLETE, PERMISSIONS_START} from '../core/redux'; import {resetTo} from '../redux/SharedSagas'; @@ -17,14 +11,11 @@ import { PERMISSION_NOTIFICATION_SCREEN, PERMISSION_WELCOME_SCREEN, } from './constants'; +import {PermissionActionTypes} from '@walmart/allspark-foundation/Permissions'; export function* permissionFlow() { while (true) { - yield take([ - PERMISSIONS_START.type, - LocationActionTypes.UPDATE_PERMISSION, - NotificationActionTypes.UPDATE_PERMISSION, - ]); + yield take([PERMISSIONS_START.type, PermissionActionTypes.SET]); const locationUnset = yield* select(LocationSelectors.getPermissionUnset); const notificationsUnset = yield* select( @@ -35,6 +26,8 @@ export function* permissionFlow() { AllsparkNavigationClient.navigate(PERMISSION_LOCATION_SCREEN); } else if (notificationsUnset) { AllsparkNavigationClient.navigate(PERMISSION_NOTIFICATION_SCREEN); + } else { + yield put(PERMISSIONS_COMPLETE()); } } }
fix: permission flow not dispatching complete action to continue startup
fix: permission flow not dispatching complete action to continue startup
e2864402cec470f57662adf5634b98484475a777
--- src/containers/ChatInput/AudioPlayback.tsx @@ -41,8 +41,6 @@ export const AudioPlayback = (props: { }) => { const {audio, style} = props; - // @todo - use something else for playback, this is not unique per instance - // playback listener fires for any plaback const SoundRef = useRef<Audio.Sound>(); const [playbackDetails, setPlaybackDetails] = useState< --- src/containers/ChatInput/AudioPlayback.tsx @@ -41,8 +41,6 @@ export const AudioPlayback = (props: { }) => { const {audio, style} = props; - // @todo - use something else for playback, this is not unique per instance - // playback listener fires for any plaback const SoundRef = useRef<Audio.Sound>(); const [playbackDetails, setPlaybackDetails] = useState<
chore: remove comment that no longer applies
chore: remove comment that no longer applies
cc1f1d724444ce755468461650605c9bf297a1d0
--- .looper-android-release.yml @@ -6,6 +6,10 @@ envs: buildType: "RELEASE" env: "prod" +triggers: + push: disabled + pr: disabled + tools: android: - tools --- .looper-android-snapshot.yml @@ -5,6 +5,10 @@ envs: variables: buildType: "SNAPSHOT" +triggers: + push: disabled + pr: disabled + tools: android: - tools --- .looper-build-numbers.yml @@ -0,0 +1,13 @@ + +tools: + nodejs: 12.4.0 + +triggers: + - push: + ignoreCommitter: jenkinspan + +flows: + default: + - node(stable_osx): + - npm install + - (name incrementing build number) sh scripts/updateAppBundleNumber.sh \ No newline at end of file --- .looper-ios-release.yml @@ -6,6 +6,10 @@ envs: buildType: "RELEASE" env: "prod" +triggers: + push: disabled + pr: disabled + flows: default: - node(stable_osx): --- .looper-ios-snapshot.yml @@ -5,6 +5,10 @@ envs: variables: buildType: "SNAPSHOT" +triggers: + push: disabled + pr: disabled + flows: default: - node(stable_osx): --- .looper-pr.yml @@ -4,6 +4,10 @@ tools: nodejs: 12.4.0 sonarscanner: 3.0.3.778 +triggers: + - push: + ignoreCommitter: jenkinspan + flows: default: - call: pr --- package.json @@ -22,7 +22,8 @@ "update:patch": "npm version patch --no-git-tag-version", "update:minor": "npm version minor --no-git-tag-version", "update:major": "npm version major --no-git-tag-version", - "postversion": "react-native-version -A" + "postversion": "react-native-version -A", + "increment:buildNumber": "react-native-version -b" }, "dependencies": { "@react-native-community/art": "^1.2.0", --- scripts/getIOSAppBundleNumber.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +awk '/CFBundleVersion/{getline; print}' $1 | cut -d '>' -f2 | cut -d '<' -f1 --- scripts/slack.sh @@ -134,6 +134,9 @@ fi #IPA Version messageVersion=${version} +#App's Build Number (As buildNumber will be same in iOS and Android, we are only fetching one) +buildNumber=$(sh scripts/getIOSAppBundleNumber.sh ios/AllSpark/Info.plist) + #title if [ "${os}" == "ios" ]; then os="iOS" @@ -155,6 +158,7 @@ echo "*********************************" echo "messageTitle.............[${messageTitle}]" echo "buildType................[${buildType}]" echo "messageVersion...........[${messageVersion}]" +echo "buildNumber..............[${buildNumber}]" echo "messageGitHubBranchName..[${messageGitHubBranchName}]" echo "messageBetaCrashURL......[${messageBetaCrashURL}]" @@ -182,7 +186,11 @@ EOT GIT_PROPERTIES=$(cat <<-EOT [{ "type": "mrkdwn", - "text": "*Version:* ${messageVersion}" + "text": "*Version:* ${messageVersion} [${buildNumber}]" + }, + { + "type": "mrkdwn", + "text": "*Build Number:* ${buildNumber}" }, { "type": "mrkdwn", --- scripts/updateAppBundleNumber.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -o errexit +set -x + +git pull --ff-only + +npm run increment:buildNumber +#Commit edited files for Build Number +echo "Staging incremented build files." +git add ios/AllSpark/Info.plist ios/AllSparkTests/Info.plist android/app/build.gradle + +#Committing changed files to master +echo "Committing incremented build files." +git commit -m "Incrementing build number" + +#Pushing code to the branch +echo "Pushing code to $GITHUB_BRANCH_NAME" +git push origin $GITHUB_BRANCH_NAME +
Feat/build number (#336)
Feat/build number (#336) * WIP: build number update * incrementing build number: * updated echo statement * Incrementing build number * adding looper file to update build numbers * added tools for npm * Incrementing build number * adding triggers for iOS/Android * test * adding code to git pull * Incrementing build number * removing proxies * Incrementing build number * test release flow * edited logs * Incrementing build number * Incrementing build number * test * Incrementing build number * build test * Incrementing build number * Incrementing build number * updated bundle number as Master's * Incrementing build number * fixing the path of common native files * adding logic to skip incrementing build number for release builds * reverting change * Incrementing build number * removed pipes from build number * Incrementing build number Co-authored-by: Hitesh Arora <> Co-authored-by: jenkinspan <jenkinspan@walmartlabs.com>
791e59392c7341d1baf46b3bb312ceb3e57c04bb
--- src/containers/UserHeader.tsx @@ -45,6 +45,19 @@ export const UserHeader = () => { : goOfflineForUser(storeId, userId); }; + const renderDoNotDisturbToggle = () => { + return ( + <> + <Switch isOn={presence === 'offline'} onValueChange={onStatusChange} /> + <Text style={styles.switchText}> + {presence === 'online' + ? t('userHeader.onlinePresence') + : t('userHeader.dndPresence')} + </Text> + </> + ); + }; + return ( <ListItem UNSAFE_style={styles.item} @@ -57,19 +70,7 @@ export const UserHeader = () => { isClockedIn={isClockedIn} /> } - trailing={ - <> - <Switch - isOn={presence === 'offline'} - onValueChange={onStatusChange} - /> - <Text style={styles.switchText}> - {presence === 'online' - ? t('userHeader.onlinePresence') - : t('userHeader.dndPresence')} - </Text> - </> - }> + trailing={isClockedIn && renderDoNotDisturbToggle()}> <Body weight='400' size='small'> {isClockedIn ? t('userHeader.clockedIn') : ''} </Body> --- src/containers/UserHeader.tsx @@ -45,6 +45,19 @@ export const UserHeader = () => { : goOfflineForUser(storeId, userId); }; + const renderDoNotDisturbToggle = () => { + return ( + <> + <Switch isOn={presence === 'offline'} onValueChange={onStatusChange} /> + <Text style={styles.switchText}> + {presence === 'online' + ? t('userHeader.onlinePresence') + : t('userHeader.dndPresence')} + </Text> + </> + ); + }; + return ( <ListItem UNSAFE_style={styles.item} @@ -57,19 +70,7 @@ export const UserHeader = () => { isClockedIn={isClockedIn} /> } - trailing={ - <> - <Switch - isOn={presence === 'offline'} - onValueChange={onStatusChange} - /> - <Text style={styles.switchText}> - {presence === 'online' - ? t('userHeader.onlinePresence') - : t('userHeader.dndPresence')} - </Text> - </> - }> + trailing={isClockedIn && renderDoNotDisturbToggle()}> <Body weight='400' size='small'> {isClockedIn ? t('userHeader.clockedIn') : ''} </Body>
Hide DND toggle when user clocked out
Hide DND toggle when user clocked out
29ce367a23df1bf21a078021fbb351d00cd68f4a
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.40.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.39.0...v2.40.0) (2025-05-29) + + +### Features + +* **ui:** update package dependency ([ec59a15](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ec59a158eda872caf0990c05c6001817180e82d7)) + ## [2.38.1](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.38.0...v2.38.1) (2025-05-21) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "2.39.0", + "version": "2.40.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 2.40.0 [skip ci]
chore(release): 2.40.0 [skip ci] # [2.40.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v2.39.0...v2.40.0) (2025-05-29) ### Features * **ui:** update package dependency ([ec59a15](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/ec59a158eda872caf0990c05c6001817180e82d7))
a3838d7b4204e520d47bdb0250bcfd0772fbf99c
--- packages/allspark-foundation/src/FeatureRunner/components/FeatureSection.tsx @@ -91,7 +91,11 @@ export const FeatureHeading = (props: { <Heading> Feature: {name} ({enabled ? 'Enabled' : 'Disabled'}) </Heading> - <Button testID='feature-heading-button' variant='tertiary' onPress={onToggle}> + <Button + testID='feature-heading-button' + variant='tertiary' + onPress={onToggle} + > {enabled ? 'Disable' : 'Enable'} </Button> </View> --- packages/allspark-foundation/src/FeatureRunner/screens/Permissions.tsx @@ -89,7 +89,10 @@ const NotificationPermission = () => { ); }; -export const AnyPermission = (props: { name: string; permission: Permission }) => { +export const AnyPermission = (props: { + name: string; + permission: Permission; +}) => { const { name, permission } = props; const status = useSelector(
chore: fix lint issues
chore: fix lint issues
335fae120fb800a33c4f988da6550e72dbc03c54
--- packages/allspark-app-auth/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-app-auth@1.8.1...@walmart/allspark-app-auth@1.8.2) (2022-10-13) + +**Note:** Version bump only for package @walmart/allspark-app-auth + + + + + ## 1.8.1 (2022-10-13) **Note:** Version bump only for package @walmart/allspark-app-auth --- packages/allspark-app-auth/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-app-auth", - "version": "1.8.1", + "version": "1.8.2", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -21,11 +21,10 @@ }, "author": "", "license": "ISC", - "dependencies": {}, "peerDependencies": { "@react-native-community/async-storage": "~1.12.1", - "@walmart/react-native-encrypted-storage": "1.1.12", "@walmart/allspark-foundation": "2.0.1", + "@walmart/react-native-encrypted-storage": "1.1.12", "react": "~17.0.2", "react-native": ">=0.66.0 <0.69.0", "react-native-app-auth": "~6.4.3" @@ -34,7 +33,7 @@ "@types/react": "~17.0.37", "@types/react-native": "~0.67.4", "@types/react-redux": "~7.1.9", - "@walmart/allspark-foundation": "2.0.1", + "@walmart/allspark-foundation": "^2.0.2", "react": "~17.0.2", "react-native": "~0.67.4", "react-native-app-auth": "^6.4.3" --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@2.0.1...@walmart/allspark-foundation@2.0.2) (2022-10-13) + +**Note:** Version bump only for package @walmart/allspark-foundation + + + + + ## 2.0.1 (2022-10-13) **Note:** Version bump only for package @walmart/allspark-foundation --- packages/allspark-foundation/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "2.0.1", + "version": "2.0.2", "description": "", "main": "index.js", "types": "index.d.ts", --- packages/me-at-walmart-container/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/me-at-walmart-container@1.8.1...@walmart/me-at-walmart-container@1.8.2) (2022-10-13) + +**Note:** Version bump only for package @walmart/me-at-walmart-container + + + + + ## 1.8.1 (2022-10-13) **Note:** Version bump only for package @walmart/me-at-walmart-container --- packages/me-at-walmart-container/package-lock.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-container", - "version": "1.8.1", + "version": "1.8.2", "lockfileVersion": 1, "requires": true, "dependencies": { --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "1.8.1", + "version": "1.8.2", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -24,8 +24,8 @@ "dependencies": { "axios": "~0.27.2", "i18next": "~21.9.2", - "lodash": "~4.17.21", "jwt-decode": "~3.1.2", + "lodash": "~4.17.21", "namecase": "~1.1.2", "react-hook-form": "~7.36.1", "react-i18next": "~11.18.6", @@ -95,13 +95,13 @@ "@types/react-native": "~0.67.4", "@types/react-redux": "~7.1.9", "@types/uuid": "~8.3.4", - "@walmart/allspark-app-auth": "~1.8.0", - "@walmart/allspark-foundation": "~2.0.0", + "@walmart/allspark-app-auth": "^1.8.2", + "@walmart/allspark-foundation": "^2.0.2", "@walmart/config-components": "3.0.3", "@walmart/functional-components": "2.0.6", "@walmart/gtp-shared-components": "1.8.9", "@walmart/impersonation-mini-app": "1.2.0", - "@walmart/me-at-walmart-foundation": "~1.8.0", + "@walmart/me-at-walmart-foundation": "^1.8.2", "@walmart/react-native-encrypted-storage": "1.1.12", "@walmart/react-native-logger": "1.29.0", "@walmart/react-native-shared-navigation": "1.0.2", @@ -113,9 +113,9 @@ "react-native-biometrics": "~3.0.1", "react-native-device-info": "~10.2.0", "react-native-maps": "~0.30.1", + "react-native-permissions": "~3.6.1", "react-native-safe-area-context": "~3.3.0", "react-native-splash-screen": "~3.3.0", - "react-native-permissions": "~3.6.1", "react-native-wm-barcode": "2.36.6", "react-native-wm-config": "0.1.1", "react-native-wm-notification": "2.0.1", --- packages/me-at-walmart-foundation/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.8.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-foundation@1.8.1...@walmart/me-at-walmart-foundation@1.8.2) (2022-10-13) + +**Note:** Version bump only for package @walmart/me-at-walmart-foundation + + + + + ## 1.8.1 (2022-10-13) **Note:** Version bump only for package @walmart/me-at-walmart-foundation --- packages/me-at-walmart-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-foundation", - "version": "1.8.1", + "version": "1.8.2", "description": "", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", @@ -26,7 +26,7 @@ "clean": "rm -rf lib/ || true" }, "devDependencies": { - "@walmart/allspark-foundation": "~2.0.0" + "@walmart/allspark-foundation": "^2.0.2" }, "peerDependencies": { "@walmart/allspark-foundation": "~2.0.0"
chore(version): updating package version
chore(version): updating package version - @walmart/allspark-app-auth@1.8.2 - @walmart/allspark-foundation@2.0.2 - @walmart/me-at-walmart-container@1.8.2 - @walmart/me-at-walmart-foundation@1.8.2
9d497ee93fefe01d99caa407ec59cadcfdc93798
--- core/__tests__/termsOfUse/__snapshots__/TermsOfUseTest.tsx.snap @@ -31,7 +31,7 @@ DC-TDC-01-00-01", }, { "data": [ - "This This Terms of use document applies to all associates who work for Walmart. β€œWalmart” means Walmart Inc., one of its subsidiary companies or any operating units in which Walmart Inc. has a majority or controlling interest (β€œWalmart”).", + "This Terms of use document applies to all associates who work for Walmart. β€œWalmart” means Walmart Inc., one of its subsidiary companies or any operating units in which Walmart Inc. has a majority or controlling interest (β€œWalmart”).", ], "title": "Target Audience", },
Updated snapshot
Updated snapshot
87558315cedadd960f562ca7b813fec7354bcf52
--- packages/associate-exp-hub-mini-app/src/components/modals/hoc/UpdateModal.tsx @@ -189,13 +189,16 @@ const UpdateModal = AssociateExpHubFeature.createModal(() => { React.useState(false); const [upsertError, setUpsertError] = React.useState(false); + // Show loading only if teams are actually loading AND we don't have data yet + const isInitialLoad = teamsLoading && (!teamSections || teamSections.length === 0); + + // Initialize searchedSections immediately when teamSections is available useEffect(() => { - if (!teamsLoading && teamSections && teamSections.length) { - // For now, just add the total team to sections and handle saved teams separately + if (teamSections && teamSections.length > 0) { const sectionsWithTotal = addTotalTeamToSections(teamSections, isSiteDC); setSearchedSections(sectionsWithTotal); } - }, [teamSections, teamsLoading, isSiteDC]); + }, [teamSections, isSiteDC]); // Use the new modal state manager const modalState = useModalStateManager(); @@ -684,7 +687,7 @@ const UpdateModal = AssociateExpHubFeature.createModal(() => { savedTeamsConfig: { isError: !!preferencesError, refetch: async () => await handleUpsert(), - userPreferencesData: savedTeamsWithoutTotal, + userPreferencesData: savedTeamsWithoutTotal || [], isLoading: preferencesLoading, singleSelectItem: selectedSavedTeamId ? selectedSavedTeamId : undefined, onSavedItemPress: handleSavedSelection, @@ -697,8 +700,8 @@ const UpdateModal = AssociateExpHubFeature.createModal(() => { allTeamsConfig: { isError: !!teamsError, refetch: teamsRefetch, - isLoading: teamsLoading, - allTeamsData: filteredSearchedSections, + isLoading: teamsLoading || isInitialLoad, + allTeamsData: filteredSearchedSections || [], sectionSelectedItem: selectedAllTeamId ? selectedAllTeamId : undefined, onSectionItemPress: handleAllSelection, }, @@ -714,6 +717,7 @@ const UpdateModal = AssociateExpHubFeature.createModal(() => { selectedAllTeamId, preferencesLoading, teamsLoading, + isInitialLoad, upsertError, preferencesError, teamsError, --- packages/associate-exp-hub-mini-app/src/components/team-switcher/MyWalmartTeamSwitcherFilter.tsx @@ -443,6 +443,13 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ if (teamImage?.uri) { initialTeamData.teamImage = teamImage; } + + // For DC sites, also reset shifts to default A1 + if (isSiteDC) { + teamState.updateSelectedShifts(['A1'], { + logSource: 'TeamSwitcher-Initialization-NotInRoster', + }); + } } // Set the initial team --- packages/associate-exp-hub-team-switcher/src/components/modals/hoc/UpdateModal.tsx @@ -187,13 +187,17 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { React.useState(false); const [upsertError, setUpsertError] = React.useState(false); + // Show loading only if teams are actually loading AND we don't have data yet + // Check teamSections directly to avoid timing issues with state updates + const isInitialLoad = teamsLoading && (!teamSections || teamSections.length === 0); + + // Initialize searchedSections immediately when teamSections is available useEffect(() => { - if (!teamsLoading && teamSections && teamSections.length) { - // For now, just add the total team to sections and handle saved teams separately + if (teamSections && teamSections.length > 0) { const sectionsWithTotal = addTotalTeamToSections(teamSections, isSiteDC); setSearchedSections(sectionsWithTotal); } - }, [teamSections, teamsLoading, isSiteDC]); + }, [teamSections, isSiteDC]); // Use the new modal state manager const modalState = useModalStateManager(); @@ -724,7 +728,7 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { ? { isError: !!preferencesError, refetch: async () => await handleUpsert(), - userPreferencesData: savedTeamsToDisplay, + userPreferencesData: savedTeamsToDisplay || [], isLoading: preferencesLoading, singleSelectItem: selectedSavedTeamId ? selectedSavedTeamId @@ -740,8 +744,8 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { allTeamsConfig: { isError: !!teamsError, refetch: teamsRefetch, - isLoading: teamsLoading, - allTeamsData: filteredSearchedSections, + isLoading: teamsLoading || isInitialLoad, + allTeamsData: filteredSearchedSections || [], sectionSelectedItem: selectedAllTeamId ? selectedAllTeamId : undefined, onSectionItemPress: handleAllSelection, }, @@ -751,7 +755,7 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { }, [ filteredSavedTeams, primaryTeam, - preferences?.length, + preferences, isSiteDC, searchedSections, handleSearchTextChange, @@ -765,6 +769,7 @@ const UpdateModal = TeamSwitcherFeature.createModal(() => { teamsError, teamsRefetch, teamsLoading, + isInitialLoad, selectedAllTeamId, handleAllSelection, upsertError, --- packages/associate-exp-hub-team-switcher/src/components/team-switcher/MyWalmartTeamSwitcherFilter.tsx @@ -538,6 +538,13 @@ const MyWalmartTeamSwitcherComponent: React.FC<TeamSwitcherProps> = ({ if (teamImage?.uri) { initialTeamData.teamImage = teamImage; } + + // For DC sites, also reset shifts to default A1 + if (isSiteDC) { + teamState.updateSelectedShifts(['A1'], { + logSource: 'TeamSwitcher-Initialization-NotInRoster', + }); + } } // Set the initial team
feat(ui): fix the loader issue
feat(ui): fix the loader issue
3e2638c00030646bb13cc6645327dc253f7136b6
--- android/app/build.gradle @@ -134,8 +134,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 134 - versionName "1.0.12" + versionCode 140 + versionName "1.1.0" } splits { abi { --- ios/AllSpark/Info.plist @@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.0.12</string> + <string>1.1.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>134</string> + <string>140</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.0.12", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.0.12", + "version": "1.1.0", "private": true, "scripts": { "firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
version bump
version bump
54ae04006373211cea7d6eb97254c3a8d023f286
--- __tests__/setup.ts @@ -53,8 +53,8 @@ jest.mock('expo-modules-core', () => { jest.mock('expo-image', () => jest.requireActual('expo-image')); -jest.mock('@walmart/allspark-foundation-hub/HubFeature', () => ({ - ...jest.doMock('@walmart/allspark-foundation-hub/HubFeature'), +jest.mock('@walmart/allspark-foundation-hub/HubFeature/Store', () => ({ + ...jest.doMock('@walmart/allspark-foundation-hub/HubFeature/Store'), AllsparkHubContainer: jest.fn().mockImplementationOnce(() => ({ create: jest.fn().mockImplementationOnce(() => ({ validate: jest.fn().mockImplementationOnce(() => ({ --- src/components/TeamHubHeader.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import {HubHeader} from '@walmart/allspark-foundation-hub/HubFeature'; +import {HubHeader} from '@walmart/allspark-foundation-hub/HubFeature/Store'; import {translationClient} from '../common/translation'; export const TeamHubHeader = () => { --- src/navigation/index.tsx @@ -1,6 +1,6 @@ import React from 'react'; import {SafeAreaProvider} from 'react-native-safe-area-context'; -import {AllsparkHubContainer} from '@walmart/allspark-foundation-hub/HubFeature'; +import {AllsparkHubContainer} from '@walmart/allspark-foundation-hub/HubFeature/Store'; import {initializeWidgets} from './utils'; import { TEAM_HUB_CCM_NAMESPACE,
Update imports for foundation hub
Update imports for foundation hub
e59c03d7914018c0646624ac2069acb27850409d
--- package.json @@ -102,7 +102,7 @@ "@walmart/metrics-mini-app": "0.9.12", "@walmart/mod-flex-mini-app": "1.1.5", "@walmart/moment-walmart": "1.0.4", - "@walmart/pay-stub-miniapp": "0.7.7", + "@walmart/pay-stub-miniapp": "0.7.8", "@walmart/payrollsolution_miniapp": "0.126.8", "@walmart/price-changes-mini-app": "1.4.11", "@walmart/profile-feature-app": "0.0.60",
updated paystub-mini-app version to 0.7.8
updated paystub-mini-app version to 0.7.8
2fda9e8d204894ca3c56357c8292599b3fcd6753
--- package-lock.json @@ -5136,6 +5136,11 @@ } } }, + "@walmart/core-widget-registry": { + "version": "0.3.2", + "resolved": "https://npme.walmart.com/@walmart/core-widget-registry/-/core-widget-registry-0.3.2.tgz", + "integrity": "sha512-IuzyUOujBWrNrrs+I0CHc/f3UioBdKPOxjzB/XANkd3NP1JbFA82kC9GqJ6UJhCoEX/gtI+FxUPSaxbq8fahDw==" + }, "@walmart/counts-component-miniapp": { "version": "0.0.35", "resolved": "https://npme.walmart.com/@walmart/counts-component-miniapp/-/counts-component-miniapp-0.0.35.tgz", --- package.json @@ -81,6 +81,7 @@ "@walmart/core-services": "~1.2.0", "@walmart/core-services-allspark": "~1.7.2", "@walmart/core-utils": "~1.0.10", + "@walmart/core-widget-registry": "0.3.2", "@walmart/counts-component-miniapp": "0.0.35", "@walmart/exception-mini-app": "0.42.1", "@walmart/facilities-management-miniapp": "0.0.7",
adding widget registry required by ask sam
adding widget registry required by ask sam
d31f905c65cc66b8d4a0f5cdaed67b64a4309176
--- package-lock.json @@ -5435,9 +5435,9 @@ } }, "@walmart/core-services-allspark": { - "version": "1.7.32-beta.2", - "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.7.32-beta.2.tgz", - "integrity": "sha512-K8V0i9bCxF2Q+k0nxqZIAfKH+G8HULs3dhUF2MI73DMIdW5NhGJTe1jyUzQSOOtan85oVCINl03DE1C47CcFiA==", + "version": "1.7.32-beta.3", + "resolved": "https://npme.walmart.com/@walmart/core-services-allspark/-/core-services-allspark-1.7.32-beta.3.tgz", + "integrity": "sha512-FIuolQ2THiA4wYfaIuaf9V5fXiRi9hkT411nLlKHIKMrBOVkeIzDUhefCl1fitkbFmN8nZUvR8NGTfbB7RxmAg==", "requires": { "axios": "^0.26.0", "crypto-js": "^4.1.1", --- package.json @@ -82,7 +82,7 @@ "@walmart/ask-sam-mini-app": "1.2.85", "@walmart/config-components": "3.0.3", "@walmart/core-services": "~1.2.11", - "@walmart/core-services-allspark": "1.7.32-beta.2", + "@walmart/core-services-allspark": "1.7.32-beta.3", "@walmart/core-utils": "~1.0.10", "@walmart/core-widget-registry": "0.5.7", "@walmart/counts-component-miniapp": "0.0.39",
bump allspark core
bump allspark core
e7a609c58f441025cde64cd51e9e50f73d2b98c9
--- 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.5.2](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.5.1...@walmart/expo-config-plugins@0.5.2) (2025-08-22) + +### Bug Fixes + +- **edge-to-edge:** created new plugin to disable edge-to-edge android ([#364](https://gecgithub01.walmart.com/allspark/allspark/issues/364)) ([d938ca3](https://gecgithub01.walmart.com/allspark/allspark/commit/d938ca3292a3e3e321775650ac79f87e90c441e9)) + ## [0.5.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.5.0...@walmart/expo-config-plugins@0.5.1) (2025-08-21) ### Bug Fixes --- packages/expo-config-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/expo-config-plugins", - "version": "0.5.1", + "version": "0.5.2", "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.5.2
24f7745d633d678dc2ca50f3e107e883f4ec07ae
--- packages/allspark-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-authentication", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -22,8 +22,8 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.7", - "@walmart/allspark-utils": "^5.0.0-alpha.7", + "@walmart/allspark-foundation": "^5.0.0-alpha.8", + "@walmart/allspark-utils": "^5.0.0-alpha.8", "lodash": "~4.17.21", "moment-timezone": "~0.5.37", "ts-retry-promise": "~0.7.0" --- packages/allspark-foundation/allspark.config.js @@ -17,4 +17,8 @@ module.exports = { }, }, }, + ios: { + sources: ['source "https://github.com/CocoaPods/Specs.git"'], + pods: [['GoogleUtilities', ':modular_headers => true']], + }, }; --- packages/allspark-foundation/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/allspark-foundation", "private": false, - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -38,7 +38,7 @@ "@apollo/client": "^3.7.14", "@lifeomic/axios-fetch": "3.0.1", "@reduxjs/toolkit": "^1.9.5", - "@walmart/allspark-utils": "^5.0.0-alpha.7", + "@walmart/allspark-utils": "^5.0.0-alpha.8", "@walmart/gtp-shared-components": "^2.0.2", "axios": "~1.2.4", "crypto-js": "~4.1.1", --- packages/allspark-graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-graphql-client", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "> TODO: description", "license": "ISC", "main": "lib/index.js", @@ -26,6 +26,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.7" + "@walmart/allspark-foundation": "^5.0.0-alpha.8" } } --- packages/allspark-http-client/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-http-client", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", @@ -18,6 +18,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.7" + "@walmart/allspark-foundation": "^5.0.0-alpha.8" } } --- packages/allspark-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-utils", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,7 +18,7 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.7", - "@walmart/me-at-walmart-container": "^5.0.0-alpha.7" + "@walmart/allspark-foundation": "^5.0.0-alpha.8", + "@walmart/me-at-walmart-container": "^5.0.0-alpha.8" } } --- packages/core-services/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "", "main": "index.js", "types": "index.d.ts", @@ -15,7 +15,7 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.7", - "@walmart/allspark-utils": "^5.0.0-alpha.7" + "@walmart/allspark-foundation": "^5.0.0-alpha.8", + "@walmart/allspark-utils": "^5.0.0-alpha.8" } } --- packages/core-utils/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-utils", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "Common functionality required across both container and mini apps.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,6 +18,6 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-utils": "^5.0.0-alpha.7" + "@walmart/allspark-utils": "^5.0.0-alpha.8" } } --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", @@ -18,6 +18,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/me-at-walmart-container": "^5.0.0-alpha.7" + "@walmart/me-at-walmart-container": "^5.0.0-alpha.8" } } --- packages/functional-components/package.json @@ -1,7 +1,7 @@ { "name": "@walmart/functional-components", "private": false, - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "Functional Components", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -20,6 +20,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.7" + "@walmart/allspark-foundation": "^5.0.0-alpha.8" } } --- packages/me-at-walmart-athena-queries/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-athena-queries", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "> TODO: description", "author": "rlane1 <russell.lane@walmart.com>", "homepage": "", @@ -22,6 +22,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/me-at-walmart-container": "^5.0.0-alpha.7" + "@walmart/me-at-walmart-container": "^5.0.0-alpha.8" } } --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -25,8 +25,8 @@ "author": "", "license": "ISC", "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.7", - "@walmart/allspark-utils": "^5.0.0-alpha.7", + "@walmart/allspark-foundation": "^5.0.0-alpha.8", + "@walmart/allspark-utils": "^5.0.0-alpha.8", "@walmart/config-components": "4.1.0-rc.4", "jwt-decode": "^3.1.2" }, @@ -38,9 +38,9 @@ "@react-native-firebase/crashlytics": "~15.1.1", "@react-native-firebase/database": "~15.1.1", "@react-native-firebase/perf": "~15.1.1", - "@walmart/allspark-authentication": "^5.0.0-alpha.7", - "@walmart/core-services": "^5.0.0-alpha.7", - "@walmart/core-utils": "^5.0.0-alpha.7", + "@walmart/allspark-authentication": "^5.0.0-alpha.8", + "@walmart/core-services": "^5.0.0-alpha.8", + "@walmart/core-utils": "^5.0.0-alpha.8", "@walmart/react-native-encrypted-storage": "~1.1.13", "@walmart/react-native-logger": "1.29.0", "@walmart/react-native-sumo-sdk": "2.4.0-rc.2", @@ -57,7 +57,7 @@ "@react-native-firebase/crashlytics": ">=15.1", "@react-native-firebase/database": ">=15.1", "@react-native-firebase/perf": ">=15.1", - "@walmart/allspark-authentication": ">=5.0.0-alpha.7", + "@walmart/allspark-authentication": ">=5.0.0-alpha.8", "@walmart/react-native-encrypted-storage": ">=1.1", "@walmart/react-native-logger": ">=1", "@walmart/react-native-sumo-sdk": ">=2.4", --- packages/redux-store/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/redux-store", - "version": "5.0.0-alpha.7", + "version": "5.0.0-alpha.8", "description": "Common redux store", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -19,6 +19,6 @@ "clean": "rm -rf lib/ || true" }, "dependencies": { - "@walmart/allspark-foundation": "^5.0.0-alpha.7" + "@walmart/allspark-foundation": "^5.0.0-alpha.8" } }
chore: update alpha version
chore: update alpha version
eed051865270f3d46b11c84efe438dfdbfa0c9e4
--- package.json @@ -97,7 +97,7 @@ "@walmart/core-services-allspark": "workspace:^", "@walmart/core-utils": "6.3.9", "@walmart/core-widget-registry": "workspace:^", - "@walmart/counts-component-miniapp": "0.2.1", + "@walmart/counts-component-miniapp": "0.2.4", "@walmart/digital-locks-mini-app": "1.1.9-rc.3", "@walmart/emergency-mini-app": "1.31.4", "@walmart/exception-mini-app": "1.8.13", @@ -127,7 +127,7 @@ "@walmart/onewalmart-miniapp": "1.0.27", "@walmart/pay-stub-miniapp": "0.20.11", "@walmart/payrollsolution_miniapp": "0.145.33", - "@walmart/price-changes-mini-app": "1.11.2", + "@walmart/price-changes-mini-app": "1.12.3", "@walmart/profile-feature-app": "1.138.5", "@walmart/react-native-cookies": "1.0.1", "@walmart/react-native-encrypted-storage": "~1.1.3", --- yarn.lock @@ -6703,9 +6703,9 @@ __metadata: languageName: unknown linkType: soft -"@walmart/counts-component-miniapp@npm:0.2.1": - version: 0.2.1 - resolution: "@walmart/counts-component-miniapp@npm:0.2.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcounts-component-miniapp%2F-%2F%40walmart%2Fcounts-component-miniapp-0.2.1.tgz" +"@walmart/counts-component-miniapp@npm:0.2.4": + version: 0.2.4 + resolution: "@walmart/counts-component-miniapp@npm:0.2.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fcounts-component-miniapp%2F-%2F%40walmart%2Fcounts-component-miniapp-0.2.4.tgz" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.2.0" @@ -6717,7 +6717,7 @@ __metadata: react-native-permissions: ">=3.10.1" react-native-webview: ^13.6.3 reselect: ">=4.1.0" - checksum: 10c0/a7a0dd0df97af0a7f60e9b5dfcd885d69510faf8a20264bb741f2cd80ad1091fb24ffaec3abeb501097c9d62c05eade5b0b5546d092f5a10b6ff4100e21d36df + checksum: 10c0/56fef1d725dae7ae1025cae2f37bba812a553f5bb837538fd48ca4205a482996b23b67ddb25846609e10864f04db3ef26bc758732ebf292b8abaaefad485815c languageName: node linkType: hard @@ -7318,7 +7318,7 @@ __metadata: "@walmart/core-services-allspark": "workspace:^" "@walmart/core-utils": "npm:6.3.9" "@walmart/core-widget-registry": "workspace:^" - "@walmart/counts-component-miniapp": "npm:0.2.1" + "@walmart/counts-component-miniapp": "npm:0.2.4" "@walmart/digital-locks-mini-app": "npm:1.1.9-rc.3" "@walmart/emergency-mini-app": "npm:1.31.4" "@walmart/exception-mini-app": "npm:1.8.13" @@ -7348,7 +7348,7 @@ __metadata: "@walmart/onewalmart-miniapp": "npm:1.0.27" "@walmart/pay-stub-miniapp": "npm:0.20.11" "@walmart/payrollsolution_miniapp": "npm:0.145.33" - "@walmart/price-changes-mini-app": "npm:1.11.2" + "@walmart/price-changes-mini-app": "npm:1.12.3" "@walmart/profile-feature-app": "npm:1.138.5" "@walmart/react-native-cookies": "npm:1.0.1" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" @@ -7778,9 +7778,9 @@ __metadata: languageName: node linkType: hard -"@walmart/price-changes-mini-app@npm:1.11.2": - version: 1.11.2 - resolution: "@walmart/price-changes-mini-app@npm:1.11.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.11.2.tgz" +"@walmart/price-changes-mini-app@npm:1.12.3": + version: 1.12.3 + resolution: "@walmart/price-changes-mini-app@npm:1.12.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fprice-changes-mini-app%2F-%2F%40walmart%2Fprice-changes-mini-app-1.12.3.tgz" peerDependencies: "@react-navigation/native": ">=6.0.0" "@react-navigation/stack": ">=6.2.0" @@ -7799,7 +7799,7 @@ __metadata: redux-saga: ^1.1.3 reduxsauce: ^1.2.0 uuid: ^3.3.2 - checksum: 10c0/72992deda5382400e07e17108dfa58cac66ab330fc0d06952f6877bd1062f7ab0bc3b7af6276175101d470f9e85b9a4e8ff09c31327026b06013e6473b909af3 + checksum: 10c0/9f555a6c87985b6883632d8f426fc094e806c8844a9fa1ef11471ec388608ccf684edc72c9090c197632c57e0047c91e7eb10a2651160262116080786b81ae3b languageName: node linkType: hard
feat: OPIF-101037 update pc mini app to 1.12.3 and counts to 0.2.4 (#4092)
feat: OPIF-101037 update pc mini app to 1.12.3 and counts to 0.2.4 (#4092) Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com>
194bd1706ee6173c0ba3dc9b07586e8b67af0ea3
--- packages/allspark-foundation/src/Feature/AllsparkFeatureManager.ts @@ -11,10 +11,15 @@ export class FeatureModuleManager { * Indicates whether the AllsparkFeatureManager is currently connected. */ public connected = false; + private _id: string; private _featureMap = new Map<string, AllsparkFeatureModule>(); private _changeEventManager = new EventManager(['change']); private _featureTagMap = new Map<string, AllsparkFeatureModule[]>(); + constructor(id: string) { + this._id = id; + } + // --- Feature Management --- // /** @@ -267,34 +272,33 @@ export class FeatureModuleManager { } /** - * Build screens based on given config from the current feature manager. - * Can build screens by featureId, featureTag, screenTag, or defaults to - * all screens in the manager. + * Utility function to build screens from multiple options. + * Memoized to prevent redundant screen building. + * If memoized behavior does not work for you then use the screen builder methods directly. */ - public buildScreens = (config: { - featureId?: string; - featureTag?: string; - screenTag?: string; - builder: BuildScreenConfig; - }) => { - const { featureId, featureTag, screenTag, builder } = config; - - const screens = memoize( - () => { - if (featureId) { - return this.buildScreensById(featureId, builder); - } else if (featureTag) { - return this.buildScreensByFeatureTag(featureTag, builder); - } else if (screenTag) { - return this.buildScreensByScreenTag(screenTag, builder); - } - return this.buildAllScreens(builder); - }, - () => 'screens' - ); - - return screens; - }; + public Screens = memoize( + (config: { + featureId?: string; + featureTag?: string; + screenTag?: string; + builder: BuildScreenConfig; + }) => { + const { featureId, featureTag, screenTag, builder } = config; + + if (featureId) { + return this.buildScreensById(featureId, builder); + } else if (featureTag) { + return this.buildScreensByFeatureTag(featureTag, builder); + } else if (screenTag) { + return this.buildScreensByScreenTag(screenTag, builder); + } + return this.buildAllScreens(builder); + }, + (config) => { + const { featureId = 'x', featureTag = 'x', screenTag = 'x' } = config; + return `${this._id}_${featureId}_${featureTag}_${screenTag}`; + } + ); } /** @@ -302,4 +306,6 @@ export class FeatureModuleManager { * * Manages the collection of AllsparkFeatureModule instances, allowing for adding, retrieving, and connecting features. */ -export const AllsparkFeatureManager = new FeatureModuleManager(); +export const AllsparkFeatureManager = new FeatureModuleManager( + 'AllsparkFeatureManager' +);
fix: screen builder utility on feature manager wasnt memoized and returned wrong type
fix: screen builder utility on feature manager wasnt memoized and returned wrong type
066d28b3ba6bcab795005d7d0d0d7c83774d85ec
--- src/startup/AuthFlow.ts @@ -30,7 +30,7 @@ const SILENT_SSO_ERRORS = [ export const isSilentSignInError = (error?: Error | AuthError) => SILENT_SSO_ERRORS.some((silentError) => - error?.message?.toLowerCase().includes(silentError) + JSON.stringify(error)?.toLowerCase().includes(silentError), ); export function* authFlow() {
chore: fix initial sign in error
chore: fix initial sign in error
605b8725455d7def264a7b9880deb45dc571a92d
--- android/app/build.gradle @@ -140,7 +140,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 361 - versionName "1.0.101" + versionName "1.3.0" } splits { abi { --- ios/AllSpark/Info.plist @@ -17,7 +17,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.0.101</string> + <string>1.3.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key>
allSpark 1.0.101 to 1.0.3 - SA dev
allSpark 1.0.101 to 1.0.3 - SA dev
af23d7c6f267cf35ee984a8913e7c6cfdf606a6b
--- src/translations/en-US.ts @@ -56,8 +56,8 @@ export const enUS = { hideTeamsFooter: 'Hide teams', }, teamWorkgroup: { - myTeam: 'My Team', - myArea: 'My Area', + myTeam: 'My team', + myArea: 'My area', }, associateRosterItem: { messageBtn: 'Message', --- src/translations/es-MX.ts @@ -56,8 +56,8 @@ export const esMX = { hideTeamsFooter: 'Ocultar Equipos', }, teamWorkgroup: { - myTeam: 'Mi Equipo', //TODO: Update official translation - myArea: 'Mi Area', //TODO: Update official translation + myTeam: 'Mi equipo', //TODO: Update official translation + myArea: 'Mi area', //TODO: Update official translation }, associateRosterItem: { messageBtn: 'Mensaje', --- src/translations/en-US.ts @@ -56,8 +56,8 @@ export const enUS = { hideTeamsFooter: 'Hide teams', }, teamWorkgroup: { - myTeam: 'My Team', - myArea: 'My Area', + myTeam: 'My team', + myArea: 'My area', }, associateRosterItem: { messageBtn: 'Message', --- src/translations/es-MX.ts @@ -56,8 +56,8 @@ export const esMX = { hideTeamsFooter: 'Ocultar Equipos', }, teamWorkgroup: { - myTeam: 'Mi Equipo', //TODO: Update official translation - myArea: 'Mi Area', //TODO: Update official translation + myTeam: 'Mi equipo', //TODO: Update official translation + myArea: 'Mi area', //TODO: Update official translation }, associateRosterItem: { messageBtn: 'Mensaje',
update casing with language
update casing with language
e8ae06d31f6d5b667d6a4f3d014d344667144119
--- packages/allspark-foundation/src/Container/AllsparkContainer.tsx @@ -221,7 +221,7 @@ export class AllsparkContainer< const setupList = this._setupMap.get(type); if (setupList) { - setupList.forEach((config) => config.cleanup()); + setupList.forEach((config) => config.cleanup?.()); } this.eventManager.runEvent('onCleanup', type); --- packages/allspark-foundation/src/Container/types.ts @@ -58,7 +58,7 @@ export type ContainerSetupTypes = 'root' | (string & {}); export type ContainerFlowTypes = 'startup' | (string & {}); -export type SetupConfig = { setup: () => Promise<void>; cleanup: () => void }; +export type SetupConfig = { setup: () => Promise<void>; cleanup?: () => void }; /** * Definition of setup functions to be run in the container.
refactor: make cleanup option in setup config
refactor: make cleanup option in setup config
4c8f72f1598ce26ab6af024e15368da39525223e
--- src/components/TeamList.tsx @@ -1,4 +1,4 @@ -import React, {useEffect, useMemo, useState} from 'react'; +import React, {useMemo, useState} from 'react'; import {useSelector} from 'react-redux'; import { StyleProp, @@ -42,7 +42,7 @@ import {useTranslation} from 'react-i18next'; import {TEXTING_I18N_NAMESPACE} from '../translations'; import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors'; import { - groupTeamsByWorkgroupTransform, + groupTeamsByWorkgroupTransform, sortTeamsAscComparator, sortWorkgroupKeysForTeamList, } from '../utils/teams'; import {isNil} from 'lodash'; @@ -91,7 +91,7 @@ const styles = StyleSheet.create({ fontSize: 12, color: colors.gray['140'], marginVertical: 0, - paddingVertical: 0, + paddingTop: 8, }, workgroupHeader: { fontFamily: 'Bogle-Regular', @@ -103,15 +103,11 @@ const styles = StyleSheet.create({ marginVertical: 0, paddingVertical: 0, }, - workgroupHeaderContainer: { - marginLeft: 16, - paddingBottom: 0, - }, workgroupCardContainer: { borderBottomColor: colors.gray[5], borderBottomWidth: 16, padding: 0, - margin: 0, + marginVertical: 8, }, }); @@ -337,9 +333,11 @@ export const TeamChatCard = (props: { primaryWorkGroup, ); + + const renderWorkgroups = () => { return sortedWorkgroupKeys.map((workgroupKey) => { - const teams = teamsByWorkgroup[workgroupKey]; + const teams = teamsByWorkgroup[workgroupKey].sort(sortTeamsAscComparator); if (isNil(teams) || teams.length === 0) { return null; } @@ -355,10 +353,14 @@ export const TeamChatCard = (props: { }); const workgroupName = teams[0].workgroup; return ( - <CardContent UNSAFE_style={styles.workgroupCardContainer}> + <CardContent UNSAFE_style={[styles.workgroupCardContainer]}> <> { - <ListItem UNSAFE_style={{paddingVertical: 0, marginVertical: 0}}> + <ListItem + UNSAFE_style={{ + paddingVertical: 0, + marginVertical: 0, + }}> {workgroupKey === primaryWorkGroup && ( <Text style={styles.workgroupMyTeamOrAreaHeader}> My area @@ -385,7 +387,7 @@ export const TeamChatCard = (props: { if (loading) { return ( - <Card UNSAFE_style={style}> + <Card UNSAFE_style={[style]}> <CardContent> <ListItem> <SkeletonText lines={2} UNSAFE_style={styles.loadingSkeleton} /> --- src/utils/teams.ts @@ -48,3 +48,17 @@ export const sortWorkgroupKeysForTeamList = ( else return 0; }); }; + +export const sortTeamsAscComparator = (teamA: Team, teamB: Team) => { + if (teamA.teamName && teamB.teamName) { + if (teamA.teamName > teamB.teamName) { + return 1; + } else if (teamA.teamName < teamB.teamName) { + return -1; + } else { + return 0; + } + } else { + return 0; + } +}; --- src/components/TeamList.tsx @@ -1,4 +1,4 @@ -import React, {useEffect, useMemo, useState} from 'react'; +import React, {useMemo, useState} from 'react'; import {useSelector} from 'react-redux'; import { StyleProp, @@ -42,7 +42,7 @@ import {useTranslation} from 'react-i18next'; import {TEXTING_I18N_NAMESPACE} from '../translations'; import {messageButtonEnabled, pushToTalkEnabled} from '../redux/selectors'; import { - groupTeamsByWorkgroupTransform, + groupTeamsByWorkgroupTransform, sortTeamsAscComparator, sortWorkgroupKeysForTeamList, } from '../utils/teams'; import {isNil} from 'lodash'; @@ -91,7 +91,7 @@ const styles = StyleSheet.create({ fontSize: 12, color: colors.gray['140'], marginVertical: 0, - paddingVertical: 0, + paddingTop: 8, }, workgroupHeader: { fontFamily: 'Bogle-Regular', @@ -103,15 +103,11 @@ const styles = StyleSheet.create({ marginVertical: 0, paddingVertical: 0, }, - workgroupHeaderContainer: { - marginLeft: 16, - paddingBottom: 0, - }, workgroupCardContainer: { borderBottomColor: colors.gray[5], borderBottomWidth: 16, padding: 0, - margin: 0, + marginVertical: 8, }, }); @@ -337,9 +333,11 @@ export const TeamChatCard = (props: { primaryWorkGroup, ); + + const renderWorkgroups = () => { return sortedWorkgroupKeys.map((workgroupKey) => { - const teams = teamsByWorkgroup[workgroupKey]; + const teams = teamsByWorkgroup[workgroupKey].sort(sortTeamsAscComparator); if (isNil(teams) || teams.length === 0) { return null; } @@ -355,10 +353,14 @@ export const TeamChatCard = (props: { }); const workgroupName = teams[0].workgroup; return ( - <CardContent UNSAFE_style={styles.workgroupCardContainer}> + <CardContent UNSAFE_style={[styles.workgroupCardContainer]}> <> { - <ListItem UNSAFE_style={{paddingVertical: 0, marginVertical: 0}}> + <ListItem + UNSAFE_style={{ + paddingVertical: 0, + marginVertical: 0, + }}> {workgroupKey === primaryWorkGroup && ( <Text style={styles.workgroupMyTeamOrAreaHeader}> My area @@ -385,7 +387,7 @@ export const TeamChatCard = (props: { if (loading) { return ( - <Card UNSAFE_style={style}> + <Card UNSAFE_style={[style]}> <CardContent> <ListItem> <SkeletonText lines={2} UNSAFE_style={styles.loadingSkeleton} /> --- src/utils/teams.ts @@ -48,3 +48,17 @@ export const sortWorkgroupKeysForTeamList = ( else return 0; }); }; + +export const sortTeamsAscComparator = (teamA: Team, teamB: Team) => { + if (teamA.teamName && teamB.teamName) { + if (teamA.teamName > teamB.teamName) { + return 1; + } else if (teamA.teamName < teamB.teamName) { + return -1; + } else { + return 0; + } + } else { + return 0; + } +};
adding teamsList comparator
adding teamsList comparator
d7c322d1dc80a2cbefa872ef10f81766fce4f1cd
--- package.json @@ -89,7 +89,7 @@ "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.33.40", "@walmart/associate-listening-mini-app": "1.2.37", - "@walmart/attendance-mini-app": "3.174.2", + "@walmart/attendance-mini-app": "3.174.3", "@walmart/avp-feature-app": "0.25.32", "@walmart/avp-shared-library": "0.25.28", "@walmart/backroom-mini-app": "1.15.9", --- yarn.lock @@ -7740,9 +7740,9 @@ __metadata: languageName: node linkType: hard -"@walmart/attendance-mini-app@npm:3.174.2": - version: 3.174.2 - resolution: "@walmart/attendance-mini-app@npm:3.174.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.174.2.tgz" +"@walmart/attendance-mini-app@npm:3.174.3": + version: 3.174.3 + resolution: "@walmart/attendance-mini-app@npm:3.174.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.174.3.tgz" peerDependencies: "@react-native-community/datetimepicker": ">=5.1.0" "@react-navigation/native": ">=6.0.8" @@ -7772,7 +7772,7 @@ __metadata: redux-saga: ">=1.2.3" reselect: ">=4.1.0" wfm-allspark-data-library: ">=3.3.0" - checksum: 10c0/e33c4fe1d300896aa5b0a69af265eebd6523cb1ff534d8301755ba0cc9dc699b08b83bc7c69fc5a7b07870f52fa62f86d3f889ad7a0884522322c65cbb178e55 + checksum: 10c0/9f92bcfcbe0a3091f9bf65ad0d61d3dcf2a97438f06956f5f15210538c5ff26562ace21b556e6c282aafac68b7e2b7fddad498a84d9f2f0f837fe45f0af705a1 languageName: node linkType: hard @@ -8632,7 +8632,7 @@ __metadata: "@walmart/ask-sam-chat-components": "npm:^0.2.7" "@walmart/ask-sam-mini-app": "npm:1.33.40" "@walmart/associate-listening-mini-app": "npm:1.2.37" - "@walmart/attendance-mini-app": "npm:3.174.2" + "@walmart/attendance-mini-app": "npm:3.174.3" "@walmart/avp-feature-app": "npm:0.25.32" "@walmart/avp-shared-library": "npm:0.25.28" "@walmart/backroom-mini-app": "npm:1.15.9"
fix(time off requests list page): GTA-164970 fix selectors (#4670)
fix(time off requests list page): GTA-164970 fix selectors (#4670) Co-authored-by: Talia Andrews - t0a07tn <Talia.Andrews@walmart.com> Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
494c97a964f036314817994f9d209d3c296aa96f
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/HubHeader/style.ts @@ -58,6 +58,7 @@ export default ( }, textLink: { marginTop: 5, + marginStart: 25, }, subTextContainer: { flexDirection: 'row',
feat(ui): update style for edit button
feat(ui): update style for edit button
e3fd992aa80721a0e780a7794f71e82321b7ddc9
--- graphql.yml @@ -1,6 +1,9 @@ schemaVersion: "1.0.0" enableGating: true teamRostersProductId: 1824 +notify: + slack: + channelName: "smdv-miniapp" applications: - name: "WMCONNECT-MINIAPP" applicationKey: "WMCONNECT-MINIAPP"
feat(ui): notify channel
feat(ui): notify channel
e0201b2a04c527f6f6b30c703628648356ded0d4
--- package.json @@ -116,7 +116,7 @@ "@walmart/gta-react-native-calendars": "0.7.0", "@walmart/gtp-shared-components": "2.2.7", "@walmart/ims-print-services-ui": "2.23.0", - "@walmart/inbox-mini-app": "0.104.1", + "@walmart/inbox-mini-app": "0.104.9", "@walmart/invue-react-native-sdk": "0.1.26-alpha.14", "@walmart/iteminfo-mini-app": "8.7.2", "@walmart/learning-mini-app": "20.0.92", --- yarn.lock @@ -7973,9 +7973,9 @@ __metadata: languageName: node linkType: hard -"@walmart/inbox-mini-app@npm:0.104.1": - version: 0.104.1 - resolution: "@walmart/inbox-mini-app@npm:0.104.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.104.1.tgz" +"@walmart/inbox-mini-app@npm:0.104.9": + version: 0.104.9 + resolution: "@walmart/inbox-mini-app@npm:0.104.9::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Finbox-mini-app%2F-%2F%40walmart%2Finbox-mini-app-0.104.9.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/allspark-utils": ">=1.6.4" @@ -7986,7 +7986,7 @@ __metadata: "@walmart/onewalmart-miniapp": "*" "@walmart/schedule-mini-app": "*" "@walmart/walmart-fiscal-week": "*" - checksum: 10c0/2ce57e85f3a06b8b4983f0cc0eaa1cbdd1c8099d1eb4d442a733de4d2e64daebd8a9c8b7e78063879fe512a808309a19fbfe2c089becfdd63804c2eb2e10e2b5 + checksum: 10c0/9dd279638b7ae580deb85462b9bf70099d1f358f45297a5746ea7a86aadf653905e4077b0cf6232ed080d143e87374a847cfd9ad4d974888e981c24b870d10b7 languageName: node linkType: hard @@ -8357,7 +8357,7 @@ __metadata: "@walmart/gta-react-native-calendars": "npm:0.7.0" "@walmart/gtp-shared-components": "npm:2.2.7" "@walmart/ims-print-services-ui": "npm:2.23.0" - "@walmart/inbox-mini-app": "npm:0.104.1" + "@walmart/inbox-mini-app": "npm:0.104.9" "@walmart/invue-react-native-sdk": "npm:0.1.26-alpha.14" "@walmart/iteminfo-mini-app": "npm:8.7.2" "@walmart/learning-mini-app": "npm:20.0.92"
feat(onboarding): onboarded performance and pay notification in inbox (#5058)
feat(onboarding): onboarded performance and pay notification in inbox (#5058) Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com>
ed36bbf67cd6d3c7345d3a8cb3ef254666763b19
--- src/translations/en-US.ts @@ -41,7 +41,7 @@ export const enUS = { availableCount: '{{onlineCount}} Available', }, teamListItem: { - viewTeam: 'View Team', + viewTeam: 'View team', clockedIn: '{{count}} Clocked In', messageBtn: 'Message', showTeamsFooter: 'Show teams', --- src/translations/en-US.ts @@ -41,7 +41,7 @@ export const enUS = { availableCount: '{{onlineCount}} Available', }, teamListItem: { - viewTeam: 'View Team', + viewTeam: 'View team', clockedIn: '{{count}} Clocked In', messageBtn: 'Message', showTeamsFooter: 'Show teams',
update view team button
update view team button
c2bd82149b07ad913080bcfb318cc5a13e21fa01
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.6.10", + "version": "3.6.11", "main": "dist/index.js", "files": [ "dist", @@ -90,7 +90,7 @@ "@walmart/react-native-logger": "1.35.0", "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", - "@walmart/roster-mini-app": "3.8.10", + "@walmart/roster-mini-app": "3.8.11", "@walmart/ui-components": "1.15.1", "@walmart/wmconnect-mini-app": "3.7.8", "babel-jest": "^29.6.3", --- yarn.lock @@ -7410,7 +7410,7 @@ __metadata: "@walmart/react-native-logger": "npm:1.35.0" "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" - "@walmart/roster-mini-app": "npm:3.8.10" + "@walmart/roster-mini-app": "npm:3.8.11" "@walmart/ui-components": "npm:1.15.1" "@walmart/wmconnect-mini-app": "npm:3.7.8" babel-jest: "npm:^29.6.3" @@ -7518,9 +7518,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:3.8.10": - version: 3.8.10 - resolution: "@walmart/roster-mini-app@npm:3.8.10::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.8.10.tgz" +"@walmart/roster-mini-app@npm:3.8.11": + version: 3.8.11 + resolution: "@walmart/roster-mini-app@npm:3.8.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Froster-mini-app%2F-%2F%40walmart%2Froster-mini-app-3.8.11.tgz" peerDependencies: "@walmart/allspark-foundation": ">=7.12.0" "@walmart/gtp-shared-components-3": "*" @@ -7532,7 +7532,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/66a6bbcccc1cf85129aa2bce5973865df8d9805f33109774047720d0e183c187d2e7b664842ed5cd492b983c1c51afd87bc3e06b1787c3875cbda4e3ed3cca8d + checksum: 10c0/dd70fce57c58a8b92bc82e05193866457798e3b4210840d124ae6ef1d3528bfd70aa4234fdd1e8f0b389d89a88868e5dc5def808e4c7f54ae0d799a53140f0bf languageName: node linkType: hard
feat(ui): update package version
feat(ui): update package version
abffb57b9e0cfde4fb3e5c2350b1f76143e14486
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.3.0-alpha.6", + "version": "3.3.0-alpha.7", "main": "dist/index.js", "files": [ "dist", @@ -89,7 +89,7 @@ "@walmart/react-native-scanner-3.0": "0.10.4", "@walmart/react-native-sumo-sdk": "2.8.0", "@walmart/ui-components": "1.15.1", - "@walmart/wmconnect-mini-app": "3.2.0-alpha.7", + "@walmart/wmconnect-mini-app": "3.2.0-alpha.8", "babel-jest": "^29.6.3", "chance": "^1.1.11", "crypto-js": "~4.2.0", --- yarn.lock @@ -6368,7 +6368,7 @@ __metadata: "@walmart/react-native-scanner-3.0": "npm:0.10.4" "@walmart/react-native-sumo-sdk": "npm:2.8.0" "@walmart/ui-components": "npm:1.15.1" - "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.7" + "@walmart/wmconnect-mini-app": "npm:3.2.0-alpha.8" babel-jest: "npm:^29.6.3" chance: "npm:^1.1.11" crypto-js: "npm:~4.2.0" @@ -6451,9 +6451,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.7": - version: 3.2.0-alpha.7 - resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.7.tgz" +"@walmart/wmconnect-mini-app@npm:3.2.0-alpha.8": + version: 3.2.0-alpha.8 + resolution: "@walmart/wmconnect-mini-app@npm:3.2.0-alpha.8::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwmconnect-mini-app%2F-%2F%40walmart%2Fwmconnect-mini-app-3.2.0-alpha.8.tgz" peerDependencies: "@walmart/allspark-foundation": ">=6.32.0" expo: ~52.0.46 @@ -6464,7 +6464,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/61e192498afd2036244757bfa51ed3cdf8ea9d5d3492ffecc3ff5d0560bc1cfa5a63904ab070a7ca5a8a01fab122f1b6e9aad30f5a72d630f1df65b4ccd9ef34 + checksum: 10c0/5d0dafa47a13bb10d53446e3e34d7fdce86e652457b4e08676005f33f5df73f1d2023e1b2dac230a4a2083f8454832d26ea1a84abcc387eadc1ac406e00b77ae languageName: node linkType: hard
feat(ui): new version for drop 34
feat(ui): new version for drop 34
06bb680b9010b742d88b9e63dcbfbb1976e77051
--- packages/allspark-foundation-hub/src/Shared/Images/images.tsx @@ -255,8 +255,8 @@ export const SupplyChainImages: Record< }, 'total': { teamName: 'Total site', - uri: 'https://i5-me.walmartimages.com/images/supplychain/total-site-2dc1bfe083.png', - blurhash: 'KoMu9IkD~pXUa}sj_1j@Mx', + uri: 'https://i5-me.walmartimages.com/images/teams/task-image-store-02bdfd7611.png', + blurhash: 'KyL}88t7-oact7xv_4ofbI', }, };
feat(ui): updateimage for total
feat(ui): updateimage for total
4858a4f8ece5d5a32155f36e16402b4c761cc625
--- package-lock.json @@ -37,7 +37,7 @@ "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.52", - "@walmart/attendance-mini-app": "0.48.0", + "@walmart/attendance-mini-app": "0.52.0", "@walmart/config-components": "4.0.2", "@walmart/core-services": "~1.4.11", "@walmart/core-services-allspark": "~2.2.2", @@ -78,7 +78,7 @@ "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0", - "@walmart/schedule-mini-app": "0.30.0", + "@walmart/schedule-mini-app": "0.29.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.2", "@walmart/taskit-mini-app": "0.49.6", @@ -4782,9 +4782,9 @@ } }, "node_modules/@walmart/attendance-mini-app": { - "version": "0.48.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.48.0.tgz", - "integrity": "sha512-wG55FXO9D/4EuUCM86iu6UNpVNgpAyHgw5L48Q48jf7OtWXqC/NiEM7sISiendWzaUbUInIc1l/K3wyWU4h26w==", + "version": "0.52.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.52.0.tgz", + "integrity": "sha512-uEf2w6eAKfVEDtaEzFDSVzI8IyVRvg3Dg+oQ0LXwE0pRe4Me+FNat3DKYE22ZaXC8xzyod4kSnFYLOVnRcpLcg==", "dependencies": { "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.40", @@ -5904,9 +5904,9 @@ } }, "node_modules/@walmart/schedule-mini-app": { - "version": "0.30.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.30.0.tgz", - "integrity": "sha512-X9YCNe2oD3T3oS2wOg+Ez4WtbpYZN6BIdBQOKvrYcUuYzI0s/3ooENROT8etKE/+4Bh2+Vbub5yv7pbxHZOXlw==", + "version": "0.29.0", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.29.0.tgz", + "integrity": "sha512-C8oSmV83RX/jZBPlBw1Fd5gMawFp60y19l7k8FzXT0JB8s/tW5u4XjLiQqod7SOkAtnksKVJHjxsyQMvIRS6ow==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.2.25", @@ -5915,26 +5915,28 @@ "wfm-allspark-data-library": "1.0.1" }, "peerDependencies": { - "@react-native-firebase/remote-config": ">=10.1.1", + "@react-native-firebase/remote-config": "^10.1.1", "@react-navigation/elements": "^1.3.1", - "@react-navigation/native": ">=6.0.0", - "@react-navigation/stack": ">=6.0.0", - "@walmart/attendance-mini-app": ">=0.47.0", - "@walmart/functional-components": ">=2.0.0", - "@walmart/gtp-shared-components": ">=0.2.2", - "@walmart/react-native-env": ">=0.1.0", + "@react-navigation/native": "^5.7.3", + "@react-navigation/stack": "^5.9.0", + "@walmart/attendance-mini-app": ">=0.28.0", + "@walmart/functional-components": "^1.0.27", + "@walmart/gtp-shared-components": "^0.2.2", + "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.9.0", "@walmart/react-native-shared-navigation": "^0.2.0", - "@walmart/redux-store": ">=1.0.15", - "@walmart/ui-components": ">=1.0.101", + "@walmart/redux-store": "^1.0.15", + "@walmart/time-clock-mini-app": "^0.1.21", + "@walmart/ui-components": "^1.0.101", "i18next": "^19.8.7", "javascript-time-ago": "^2.3.4", - "react": ">=18.1.0", - "react-i18next": ">=12.0.0", - "react-native": ">=0.70.5", + "namecase": "^1.1.2", + "react": "^16.13.1", + "react-i18next": "^11.8.6", + "react-native": "^0.63.2", "react-native-wm-config": "^0.1.1", "react-native-wm-telemetry": "^0.3.0", - "react-redux": ">=7.2.1", + "react-redux": "^7.2.1", "redux": "^4.0.5", "reselect": ">=4.0.0" } @@ -25004,9 +25006,9 @@ } }, "@walmart/attendance-mini-app": { - "version": "0.48.0", - "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.48.0.tgz", - "integrity": "sha512-wG55FXO9D/4EuUCM86iu6UNpVNgpAyHgw5L48Q48jf7OtWXqC/NiEM7sISiendWzaUbUInIc1l/K3wyWU4h26w==", + "version": "0.52.0", + "resolved": "https://npme.walmart.com/@walmart/attendance-mini-app/-/attendance-mini-app-0.52.0.tgz", + "integrity": "sha512-uEf2w6eAKfVEDtaEzFDSVzI8IyVRvg3Dg+oQ0LXwE0pRe4Me+FNat3DKYE22ZaXC8xzyod4kSnFYLOVnRcpLcg==", "requires": { "@walmart/gta-react-native-calendars": "0.0.16", "moment-timezone": "0.5.40", @@ -25365,9 +25367,9 @@ } }, "@walmart/schedule-mini-app": { - "version": "0.30.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.30.0.tgz", - "integrity": "sha512-X9YCNe2oD3T3oS2wOg+Ez4WtbpYZN6BIdBQOKvrYcUuYzI0s/3ooENROT8etKE/+4Bh2+Vbub5yv7pbxHZOXlw==", + "version": "0.29.0", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.29.0.tgz", + "integrity": "sha512-C8oSmV83RX/jZBPlBw1Fd5gMawFp60y19l7k8FzXT0JB8s/tW5u4XjLiQqod7SOkAtnksKVJHjxsyQMvIRS6ow==", "requires": { "@walmart/moment-walmart": "1.0.4", "@walmart/wfm-ui": "0.2.25", --- package.json @@ -80,7 +80,7 @@ "@walmart/amp-mini-app": "0.2.13", "@walmart/ask-sam-chat-components": "^0.2.7", "@walmart/ask-sam-mini-app": "1.3.52", - "@walmart/attendance-mini-app": "0.48.0", + "@walmart/attendance-mini-app": "0.52.0", "@walmart/config-components": "4.0.2", "@walmart/core-services": "~1.4.11", "@walmart/core-services-allspark": "~2.2.2", @@ -120,7 +120,7 @@ "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0", - "@walmart/schedule-mini-app": "0.30.0", + "@walmart/schedule-mini-app": "0.29.0", "@walmart/settings-mini-app": "1.12.0", "@walmart/shelfavailability-mini-app": "1.5.2", "@walmart/taskit-mini-app": "0.49.6",
removing all changes that are not the attendance-mini-app version upgrade
removing all changes that are not the attendance-mini-app version upgrade
56c97df71d0186a5d929d8f6bf736a1e919cf5ee
--- saucelabs/.looper-android-saucelabs.yml @@ -19,6 +19,8 @@ flows: - call: build-and-publish(os = "android", version = ${androidAppVersion}, packaging = "apk", env = "dev") triggers: + - push: disabled + - pr: disabled - cron: spec: H 22 * * * timezone: America/Los_Angeles --- saucelabs/.looper-ios-saucelabs.yml @@ -10,6 +10,8 @@ flows: triggers: + - push: disabled + - pr: disabled - cron: spec: H 22 * * * timezone: America/Los_Angeles --- scripts/releaseTagging.sh @@ -4,6 +4,8 @@ RELEASE_VERSION=$1 set -o errexit set -x +git pull --ff-only + #Create release tag for the current Release Branch echo "creating release tag ${RELEASE_VERSION}"
Fix/saucelabs trigger (#341)
Fix/saucelabs trigger (#341) * disabling building on every merge to master as it's part of nightly job * adding git pull on release tagging Co-authored-by: Hitesh Arora <>
ab6547d24c54c685e1a81a11da5f5162f0f2d180
--- .looper-android-release.yml @@ -0,0 +1,26 @@ +inherit: "job:///allspark/allspark-core/native-common:.looper-native-common.yml" + +envs: + global: + variables: + buildType: "RELEASE" + env: "prod" + +tools: + android: + - tools + - platform-tools + - android-28 + - build-tools;28.0.3 + - extras;android;m2repository + +flows: + default: + - node(stable_osx && !MacOSX-156.95.143.72): + - call: npm-install-and-coverage(env = "${env}") + - var(androidAppVersion): + sh scripts/getAndroidAppVersionFromGradle.sh android/app/build.gradle + - npm run jetifier + - (name replace gradle implementation in remote-config) sh scripts/fixAndroidProtobufError.sh + - call: build-and-publish(os = "android", version = ${androidAppVersion}, packaging = "apk") + - (name create release tag) sh scripts/releaseTagging.sh "${androidAppVersion}" \ No newline at end of file --- .looper-ios-release.yml @@ -0,0 +1,15 @@ +inherit: "job:///allspark/allspark-core/native-common:.looper-native-common.yml" + +envs: + global: + variables: + buildType: "RELEASE" + env: "prod" + +flows: + default: + - node(stable_osx): + - call: npm-install-and-coverage(env = "${env}") + - var(iosAppVersion): + sh scripts/getIOSAppVersionFromInfoPlist.sh ios/AllSpark/Info.plist + - call: build-and-publish(os = "ios", version = ${iosAppVersion}, packaging = "ipa") --- .looper-native-common.yml @@ -64,10 +64,10 @@ flows: - call: upload-build(version = "${version}-${env}-SNAPSHOT", artifactId = "allspark-core-${os}-${env}", buildOutput = ${buildOutput}, packaging = ${packaging}, os = ${os}) else: - var(buildOutput = "./android/app/build/outputs/apk/release/app-release-signed.apk") - - echo "starting building Android Snapshot builds" - - var(env = "dev") + - echo "starting building Android Snapshot builds" + - var(env = "dev") - call: build-android(env = ${env}) - - call: upload-build(version = "${version}-${env}-SNAPSHOT", buildType = ${buildType}, artifactId = "allspark-core-${os}-${env}", buildOutput = ${buildOutput}, packaging = ${packaging}, os = ${os}) + - call: upload-build(version = "${version}-${env}-SNAPSHOT", buildType = ${buildType}, artifactId = "allspark-core-${os}-${env}", buildOutput = ${buildOutput}, packaging = ${packaging}, os = ${os}) - var(env = "prod") - call: build-android(env = ${env}) - call: upload-build(version = "${version}-${env}-SNAPSHOT", buildType = ${buildType}, artifactId = "allspark-core-${os}-${env}", buildOutput = ${buildOutput}, packaging = ${packaging}, os = ${os}) @@ -92,16 +92,16 @@ flows: - call: build-ios(env = ${env}) else: - var(buildOutput = "./android/app/build/outputs/apk/release/app-release-signed.apk") - - echo "starting building Android release build" + - echo "starting building Android release build" - call: build-android(env = ${env}) - - echo "uploading build" + - echo "uploading build" - call: upload-build(version = ${version}, buildType = ${buildType}, artifactId = ${artifactId}, buildOutput = ${buildOutput}, packaging = ${packaging}, os = ${os}) else: - echo "artifact present; no need to build and publish. fullUrl = ${fullUrl}" setup-ios: - dir(ios): - - | + - | (name delete index file) #!/bin/sh -x ls -l ~/.cocoapods/repos/cocoapods/.git/index.lock --- ios/AllSpark.xcodeproj/project.pbxproj @@ -758,7 +758,7 @@ "\"$(inherited)\"", "$(SDKROOT)/usr/lib/swift", ); - MARKETING_VERSION = 0.0.1; + MARKETING_VERSION = "0.0.1"; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -793,7 +793,7 @@ "\"$(inherited)\"", "$(SDKROOT)/usr/lib/swift", ); - MARKETING_VERSION = 0.0.1; + MARKETING_VERSION = "0.0.1"; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", --- scripts/betacrash.sh @@ -99,7 +99,7 @@ result=$(curl "https://apps.betacrash.com/v1/builds" \ -F passcode="$password" \ -F app_id="$app_id" \ -F commit_sha="$sha" \ - -F note="${name} ${BUILD_NUMBER} ${BUILD_URL}") + -F note="${name} ${buildType} ${BUILD_NUMBER} ${BUILD_URL}") echo "Following is the curl result: $result" echo $result --- scripts/releaseTagging.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +RELEASE_VERSION=$1 +set -o errexit +set -x + +#Create release tag for the current Release Branch +echo "creating release tag ${RELEASE_VERSION}" + +echo "release tag is v${RELEASE_VERSION}" + +#Deleting if there was tag previously created +git tag -d "v${RELEASE_VERSION}" ||: +git push --delete origin "v${RELEASE_VERSION}" ||: + +#creating annotated tag +git tag -a "v${RELEASE_VERSION}" -m "Release tag for ${RELEASE_VERSION}" +git push origin tag "v${RELEASE_VERSION}" \ No newline at end of file
adding release config for looper (#186)
adding release config for looper (#186) * adding release config for looper * pointing to correct native-common job * changing version number to 0.0.1-rc1 * updated snapshot * adding buildType to the note of betacrash. * updateVersionScript * adding logic to create tags * remove spacing * moving tagging to android release * changing version to 0.0.1 Co-authored-by: Hitesh Arora <> Co-authored-by: Savan Akbari <Savankumar.akbari@walmart.com> Co-authored-by: Russell Lane - rlane1 <Russell.Lane@walmart.com>
ac2a0d6fb6367f9d76d312801b84c6cbb4eec964
--- packages/me-at-walmart-athena-queries/src/getTeamsbyStore.graphql @@ -0,0 +1,15 @@ +query GetTeamsByStore($countryCode: String!, $date: Date!, $storeNbr: String!) { + getTeamsByStore(countryCode: $countryCode, storeNbr: $storeNbr) { + __typename + members + mewAbsentCount(date: $date) + mewClockedInCount + mewClockedOutCount + mewTardyCount(date: $date) + site + teamId + teamName + workgroup + workgroupId + } +} \ No newline at end of file
Adding getTeamsByStore query initial commit
Adding getTeamsByStore query initial commit
5667c901b9b4b50242abfdff140893108416921d
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.0.1-beta.11", + "version": "1.0.1-beta.12", "description": "", "main": "Core/index.js", "types": "Core/index.d.ts",
Update the hub dashboard for changes
Update the hub dashboard for changes
2c3971d3077b580a748c5d105c924be8e6872932
--- src/notification.ts @@ -19,6 +19,10 @@ const goToMessageScreenForChannel = ( channelId: string, ) => { const channelPath = createChannelPath(storeNumber, channelId); + navigate(ROOT_CONTAINER_SCREEN_NAME, { + // @ts-ignore + screen: 'myTeam.tabs', + }); navigate(ROOT_CONTAINER_SCREEN_NAME, { // @ts-ignore screen: APP_CONTAINER_SCREEN_NAME, --- src/notification.ts @@ -19,6 +19,10 @@ const goToMessageScreenForChannel = ( channelId: string, ) => { const channelPath = createChannelPath(storeNumber, channelId); + navigate(ROOT_CONTAINER_SCREEN_NAME, { + // @ts-ignore + screen: 'myTeam.tabs', + }); navigate(ROOT_CONTAINER_SCREEN_NAME, { // @ts-ignore screen: APP_CONTAINER_SCREEN_NAME,
bugfix
bugfix
b0c90d4be65a80d5ab215abaa215a1e400219983
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.24.0", + "version": "1.25.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.22.0", + "@walmart/roster-mini-app": "2.23.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- src/navigation/index.tsx @@ -8,7 +8,7 @@ import { TEAM_HUB_SCREEN_NAME, DEFAULT_WIDGET_IDS, } from '@walmart/allspark-foundation-hub'; -import rosterFeature, {RosterStack} from '@walmart/roster-mini-app'; +import {RosterMiniApp} from '@walmart/roster-mini-app'; import {WarningBanner} from '../components/WarningBanner'; import {useUserCanSeeTeamHub} from '../hooks/user'; @@ -24,9 +24,7 @@ export const MyTeamMiniApp = () => { </> ) : ( <> - {rosterFeature.buildAllScreens({ - Navigator: RosterStack as any, - })} + <RosterMiniApp /> </> ); }; --- 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.22.0" + "@walmart/roster-mini-app": "npm:2.23.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.22.0": - version: 2.22.0 - resolution: "@walmart/roster-mini-app@npm:2.22.0" +"@walmart/roster-mini-app@npm:2.23.0": + version: 2.23.0 + resolution: "@walmart/roster-mini-app@npm:2.23.0" 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/2a6d53b892672999e740c0cf9d06ab4f00c27520aa6b07e1f2f3e707d42a63596a06bdf8b3ad9b1c176c6f02437f308a60c94632aae7eb456c6dd803a902eef1 + checksum: 10c0/fe7a1bd6055750c8e18b632cdc981e8ed640dc00d6befd8415e1fac0acfc1da784b8d12d9b7962f750603b99b426f3a4b07cdb4dc37a2aefb681bce051f0a27b languageName: node linkType: hard
Update the my team mini app version
Update the my team mini app version
87f2e1d696b14aeb61196bfc130325688b08fdaa
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.27.0", + "version": "1.28.0", "main": "dist/index.js", "files": [ "dist" @@ -81,7 +81,7 @@ "@typescript-eslint/parser": "^5.37.0", "@walmart/allspark-authentication": "6.1.4", "@walmart/allspark-foundation": "6.20.0", - "@walmart/allspark-foundation-hub": "1.3.0", + "@walmart/allspark-foundation-hub": "1.3.1", "@walmart/allspark-graphql-client": "^1.4.6", "@walmart/allspark-http-client": "6.1.4", "@walmart/config-components": "4.4.0", @@ -99,7 +99,7 @@ "@walmart/react-native-shared-navigation": "6.1.4", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.7.0", - "@walmart/roster-mini-app": "2.25.0", + "@walmart/roster-mini-app": "2.26.0", "@walmart/ui-components": "1.15.1", "babel-jest": "^29.2.1", "chance": "^1.1.11", --- yarn.lock @@ -5992,9 +5992,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation-hub@npm:1.3.0": - version: 1.3.0 - resolution: "@walmart/allspark-foundation-hub@npm:1.3.0" +"@walmart/allspark-foundation-hub@npm:1.3.1": + version: 1.3.1 + resolution: "@walmart/allspark-foundation-hub@npm:1.3.1" dependencies: "@reduxjs/toolkit": "npm:^1.9.7" "@shopify/flash-list": "npm:~1.6.4" @@ -6010,7 +6010,7 @@ __metadata: react: "*" react-native: "*" react-native-safe-area-context: 4.x - checksum: 10c0/065f2d5758c4af6f1087eb539de5f43e8373058fe44008a2405f23d67c2e8c28cc97437e94266ba794895e395d4b365bb5f2627740f7aac867f0907f6ba72d00 + checksum: 10c0/da1c95dbefcb81d63544c2272798d621b7867a302517e695b8b4a05d10f6813fc899c0d8fc6edb97890aed715ed749cc0467ce0d3c4546a05544c37d6bc125c7 languageName: node linkType: hard @@ -6398,7 +6398,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.37.0" "@walmart/allspark-authentication": "npm:6.1.4" "@walmart/allspark-foundation": "npm:6.20.0" - "@walmart/allspark-foundation-hub": "npm:1.3.0" + "@walmart/allspark-foundation-hub": "npm:1.3.1" "@walmart/allspark-graphql-client": "npm:^1.4.6" "@walmart/allspark-http-client": "npm:6.1.4" "@walmart/config-components": "npm:4.4.0" @@ -6416,7 +6416,7 @@ __metadata: "@walmart/react-native-shared-navigation": "npm:6.1.4" "@walmart/react-native-sumo-sdk": "npm:2.6.0" "@walmart/redux-store": "npm:3.7.0" - "@walmart/roster-mini-app": "npm:2.25.0" + "@walmart/roster-mini-app": "npm:2.26.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.25.0": - version: 2.25.0 - resolution: "@walmart/roster-mini-app@npm:2.25.0" +"@walmart/roster-mini-app@npm:2.26.0": + version: 2.26.0 + resolution: "@walmart/roster-mini-app@npm:2.26.0" 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/4fb38630b6686f5ea942164c0a9eae93ada13326f2e38abf1241dfd47ebee72bdc5bfeef56cd78f5b598dd6778bcc44bc926a8172c4f1c01a9f50d84a6d37ca1 + checksum: 10c0/53b1e560270ed253a2916d0f7620a8701691fcde8c5f83cad4059d48c8df3b7c4e39990e55de2a601c70b1cbf5329f4542d610a7cd9c9e9c7b2fbdb3bc7ca389 languageName: node linkType: hard
Update the my team mini app version
Update the my team mini app version
08f41a101d93c3111d92b746858037dba38900c3
--- packages/allspark-foundation-hub/src/HubFeature/Shared/Components/SearchInput/SearchInput.tsx @@ -4,6 +4,8 @@ import { TeamSearchInputStyles as styles } from './style'; import { colors, Icons } from '@walmart/gtp-shared-components/dist'; import { TeamSearchInputLoading } from './TeamSearchInputLoading'; import { TeamSearchInputProps } from './types'; +import { useAllsparkTranslation } from '@walmart/allspark-foundation'; +import { FEATURE_ID } from '../../../Store/constant'; export const TeamSearchInput = ({ LeftIcon, @@ -11,6 +13,7 @@ export const TeamSearchInput = ({ loading, handleChange, }: TeamSearchInputProps) => { + const { t } = useAllsparkTranslation(FEATURE_ID); if (loading) { return <TeamSearchInputLoading loading={loading} />; } @@ -29,7 +32,7 @@ export const TeamSearchInput = ({ <View style={styles.iconLeftWrapper}>{leftIconComponent}</View> <TextInput style={styles.inputStyle} - placeholder='Search for a team' + placeholder={t('searchTeamInput.placeHolder')} placeholderTextColor={colors.gray['100']} onChangeText={handleChange} testID='search-input' --- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/translation.ts @@ -1,163 +1,11 @@ export const enUS = { - hubHeader: { - title: 'Support your team', - subText: 'Maximize your team’s impact and support your associates’ growth.', - }, - teamSelectionHubHeader: { - title: 'Personalize your hubs', - subText: - 'Your primary team is automatically selected. Choose additional teams to view on your Team and Work hubs.', - }, - teamOnboarding: { - navigationHeaderFirstEntry: 'Hub Onboarding', - heading: 'A new way to manage your Team and Work', - description: 'Get started by selecting your teams', - buttonText: 'Choose teams', - teamOnboardingCardsData: { - firstCard: { - title: 'Centralized information', - description: - 'Easily manage team attendance, assignments, and work progress', - }, - secondCard: { - title: 'Insights and recommended actions', - description: - 'Get smart guidance to help you keep your team and the shift on track', - }, - }, - }, - hubContainer: { - selectedTeamsError: { - message: - 'Unable to load your selected teams. Total store is displayed instead.', - actionText: 'Try again', - }, - }, - teamSelection: { - teams: 'Teams', - selectAll: 'Select all teams', - myArea: 'My Area', - primaryTeam: 'Primary Team', - cancel: 'Cancel', - saveTeams: 'Save teams', - teamSelected: 'team selected', - teamsSelected: 'teams selected', - }, - onboardingBottomSheet: { - title: 'Start managing your teams', - description: - 'Your personalized Team and Work hubs are ready. Add or edit teams at any time.', - buttonText: 'Got it', - }, - teamsUpdatedBottomSheet: { - title: 'Teams updated', - description: 'You have successfully updated your teams', - buttonText: 'Got it', - }, - errorBottomsheet: { - title: 'Saving teams failed', - description: - 'Unable to save additional teams to view on your Team and Work hubs. Try again later.', - buttonText: 'Got it', - }, - hubWidget: { - restrictedContent: { - message: - 'Sensitive information is hidden for teams outside of your primary team.', - }, - }, - clockOutGuard: { - action: 'Clock in', - content: 'You must be clocked in to access the content on this page.', - title: 'Clock in required', - }, - errorScreen: { - title: 'Something went wrong', - message: 'Refresh this page to try again.', - primaryButtonText: 'Refresh page', - secondaryButtonText: 'Cancel', + searchTeamInput: { + placeHolder: 'Search for a team', }, }; export const esMX = { - hubHeader: { - title: 'Apoya a tu equipo', - subText: - 'Maximiza el impacto de tu equipo y apoya el crecimiento de tus asociados.', - }, - teamOnboarding: { - navigationHeaderFirstEntry: 'IncorporaciΓ³n de Hub', - heading: 'Una nueva forma de gestionar tu equipo y tu trabajo', - description: 'Comience seleccionando sus equipos', - buttonText: 'Elegir equipos', - teamOnboardingCardsData: { - firstCard: { - title: 'InformaciΓ³n centralizada', - description: - 'Administre fΓ‘cilmente la asistencia del equipo, las tareas y el progreso del trabajo', - }, - secondCard: { - title: 'Insights and recommended actions', - description: - 'ObtΓ©n orientaciΓ³n inteligente para ayudarte a mantener a tu equipo y al cambio en marcha', - }, - }, - }, - hubContainer: { - selectedTeamsError: { - message: - 'No se puenden cargar los equipos seleccionados. En su lugar se muestra toda la tienda.', - actionText: 'Intentar otra vez', - }, - }, - teamSelectionHubHeader: { - title: 'Personaliza tus hubs', - subText: - 'Tu equipo principal se selecciona automΓ‘ticamente. Elija equipos adicionales para verlos en sus centros de equipo y trabajo.', - }, - teamSelection: { - teams: 'Equipos', - selectAll: 'Seleccionar todos los equipos', - myArea: 'Mi Γ‘rea', - primaryTeam: 'Equipo Principal', - cancel: 'Cancelar', - saveTeams: 'Guardar equipos', - teamSelected: 'Equipo seleccionado', - teamsSelected: 'Equipos seleccionados', - }, - onboardingBottomSheet: { - title: 'Empieza a gestionar tus equipos', - description: - 'Sus centros de trabajo y equipo personalizados estΓ‘n listos. Agregue o edite equipos en cualquier momento.', - buttonText: 'Entiendo', - }, - teamsUpdatedBottomSheet: { - title: 'Equipos actualizados', - description: 'Ha actualizado con Γ©xito sus equipos', - buttonText: 'Entiendo', - }, - errorBottomsheet: { - title: 'Equipo de salvamento fallido', - description: - 'No se pueden guardar equipos adicionales para verlos en los centros de equipo y trabajo. Vuelva a intentarlo mΓ‘s tarde.', - buttonText: 'Entiendo', - }, - hubWidget: { - restrictedContent: { - message: - 'La informaciΓ³n confidencial estΓ‘ oculta para equipos fuera de su equipo principal.', - }, - }, - clockOutGuard: { - action: 'Fichar', - content: - 'Es necesario estar fichado para acceder al contenido de esta pΓ‘gina.', - title: 'Entrada requerida', - }, - errorScreen: { - title: 'Algo saliΓ³ mal', - message: 'Actualice esta pΓ‘gina para volver a intentarlo.', - primaryButtonText: 'Actualizar pΓ‘gina', - secondaryButtonText: 'Cancelar', + searchTeamInput: { + placeHolder: 'Buscar un equipo', }, };
Adding translation
Adding translation
2f39fa4622805a7c33f814c4ac62ea25e74226b5
--- core/__tests__/permissions/PermissionsSagaTest.ts @@ -3,6 +3,7 @@ import {call, select, fork, take, cancel, put} from 'redux-saga/effects'; import {createMockTask} from '@redux-saga/testing-utils'; import { + AllsparkPermissionClient, PermissionActionTypes, } from '@walmart/allspark-foundation/Permissions'; import {NotificationSelectors} from '@walmart/allspark-foundation/Notification'; @@ -19,6 +20,7 @@ import { PERMISSION_LOCATION_SCREEN, PERMISSION_NOTIFICATION_SCREEN, PERMISSION_WELCOME_SCREEN, + PLATFORM_LOCATION_PERMISSION, } from '../../src/permissions/constants'; import { PERMISSIONS_COMPLETE, @@ -93,25 +95,32 @@ describe('permissions sagas', () => { expect(iterator.next().value).toEqual(call(getPermissionsUnset)); expect(iterator.next(false).done).toEqual(true); }); - + it('handles permissions not set', () => { const flowTask = createMockTask(); const iterator = handlePermissions(); expect(iterator.next().value).toEqual(call(getPermissionsUnset)); - expect(iterator.next(true).value).toEqual(call(resetTo, PERMISSION_WELCOME_SCREEN)); + expect(iterator.next(true).value).toEqual( + call(resetTo, PERMISSION_WELCOME_SCREEN), + ); expect(iterator.next().value).toEqual(fork(permissionFlow)); - expect(iterator.next(flowTask).value).toEqual(take(PERMISSIONS_COMPLETE.type)); + expect(iterator.next(flowTask).value).toEqual( + take(PERMISSIONS_COMPLETE.type), + ); expect(iterator.next().value).toEqual(cancel(flowTask)); - expect(iterator.next().done).toBe(true); }); - + it('handles permissions not set and undefined flow task', () => { const iterator = handlePermissions(); expect(iterator.next().value).toEqual(call(getPermissionsUnset)); - expect(iterator.next(true).value).toEqual(call(resetTo, PERMISSION_WELCOME_SCREEN)); + expect(iterator.next(true).value).toEqual( + call(resetTo, PERMISSION_WELCOME_SCREEN), + ); expect(iterator.next().value).toEqual(fork(permissionFlow)); - expect(iterator.next(undefined).value).toEqual(take(PERMISSIONS_COMPLETE.type)); - expect(iterator.next().done).toBe(true); + expect(iterator.next(undefined).value).toEqual( + take(PERMISSIONS_COMPLETE.type), + ); + expect(iterator.next().done).toEqual(true); }); }); }); @@ -154,5 +163,4 @@ describe('getPermissionsUnset', () => { })); expect(generator.next().done).toBeTruthy(); }); -}); - +}); \ No newline at end of file
lint issue resolved
lint issue resolved
6b4cceaea08a0aa04a635bbd77600ae721db9e53
--- packages/me-at-walmart-container/src/services/site.ts @@ -1,50 +0,0 @@ -import { AllsparkEnvironment } from '@walmart/allspark-foundation/Environment'; -import { AllsparkHttpClient } from '@walmart/allspark-foundation/HTTP'; -import { SiteServiceCreator } from '@walmart/allspark-foundation/Site'; -import { IMeAtWalmartEnvironment } from '@walmart/me-at-walmart-common'; -import { MeAtWalmartLogger } from './logger'; - -export const fetchSite = async (storeNumber: string, forceRefresh = false) => { - try { - const env = - await AllsparkEnvironment.getDeferred<IMeAtWalmartEnvironment>(); - - const { status, data = {} } = await AllsparkHttpClient.get( - `${env.http.externalUrl}${env.http.bffService}/storeConfigs/v2/store/${storeNumber}`, - { - headers: { - 'Accept': 'application/json', - 'wm_consumer.id': env.http.consumerId, - }, - cache: { - override: forceRefresh, - ttl: 1000 * 60 * 60 * 24 * 7, // 24 hours - }, - timeout: 5000, - } - ); - if (status === 200) { - MeAtWalmartLogger.debug('Successfully fetched store configs.', { - storeNumber, - }); - return data; - } - MeAtWalmartLogger.warn('No configs exist for this store.', { - storeNumber, - }); - } catch (e) { - MeAtWalmartLogger.error('Unable to fetch store configs.', { - storeNumber, - message: (e as Error).message, - }); - } - - return {}; -}; - -export const MeAtWalmartSiteService = SiteServiceCreator({ - fetchHomeSite: fetchSite, - fetchWorkingSite: fetchSite, -}); - -export type IMeAtWalmartSiteService = typeof MeAtWalmartSiteService;
chore: remove uneeded site service file
chore: remove uneeded site service file
6b8a1b6c4da0cd539c15a04a299aee266a339a1d
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "3.1.1-alpha.0", + "version": "3.1.1-alpha.1", "main": "dist/index.js", "files": [ "dist",
chore(ui): update wmconnect version
chore(ui): update wmconnect version
57eea0f74314a11bf8970310271228be04eb9c97
--- package.json @@ -136,7 +136,7 @@ "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.7.0", "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.1.11#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.1.11-31a5a73745.patch", - "@walmart/receipt-check-miniapp": "1.22.5", + "@walmart/receipt-check-miniapp": "1.22.7", "@walmart/redux-store": "6.1.4", "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.3.10", --- yarn.lock @@ -6906,9 +6906,9 @@ __metadata: languageName: node linkType: hard -"@walmart/receipt-check-miniapp@npm:1.22.5": - version: 1.22.5 - resolution: "@walmart/receipt-check-miniapp@npm:1.22.5" +"@walmart/receipt-check-miniapp@npm:1.22.7": + version: 1.22.7 + resolution: "@walmart/receipt-check-miniapp@npm:1.22.7" dependencies: "@walmart/tcnumber": "npm:^2.3.3" "@xstate/react": "npm:^3.0.1" @@ -6923,7 +6923,7 @@ __metadata: react-native-device-info: ^10.3.0 react-redux: ^7.2.1 redux: ^4.1.2 - checksum: 10c0/3731b27fe5c385d451bbeca5db69065791e7e8e31ac175a38b19f8396dba496ecf12c2aa2cf244b410f82a2a46587f5fe3fbe953bf0a234f1738bc4cf11073d0 + checksum: 10c0/a95d80d605249943eca54b90a0bc1aef3af6669565d6bfe4900aa1c75a7cb94c97fc84d3929c967a3adfa4643d79772bf046a436356b04680326af31d0b07313 languageName: node linkType: hard @@ -7776,7 +7776,7 @@ __metadata: "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.0" "@walmart/react-native-webex-sdk": "patch:@walmart/react-native-webex-sdk@npm%3A0.1.11#~/.yarn/patches/@walmart-react-native-webex-sdk-npm-0.1.11-31a5a73745.patch" - "@walmart/receipt-check-miniapp": "npm:1.22.5" + "@walmart/receipt-check-miniapp": "npm:1.22.7" "@walmart/redux-store": "npm:6.1.4" "@walmart/returns-mini-app": "npm:4.6.0" "@walmart/rfid-scan-mini-app": "npm:2.3.10"
update
update
6d8c9972fa0e096cee8105aa72433f9c9ccd3e29
--- package-lock.json @@ -6815,9 +6815,9 @@ } }, "big-integer": { - "version": "1.6.48", - "resolved": "https://npme.walmart.com/big-integer/-/big-integer-1.6.48.tgz", - "integrity": "sha512-j51egjPa7/i+RdiRuJbPdJ2FIUYYPhvYLjzoYbcMMm62ooO6F94fETG4MTs46zPAF9Brs04OajboA/qTGuz78w==" + "version": "1.6.51", + "resolved": "https://npme.walmart.com/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==" }, "bindings": { "version": "1.5.0", --- package.json @@ -239,6 +239,7 @@ "adaptive-expressions": "^4.13.5", "adaptivecards-templating": "^2.1.0", "babel-jest": "^26.6.3", + "big-integer": "^1.6.51", "eslint": "^7.14.0", "husky": "^4.2.5", "jest": "^26.6.3",
update dependency
update dependency
3e2f37db4fb830dcc1b7ff6c4c73bbcd84336673
--- core/__tests__/features/welcomeMeTest.ts
Delete welcomeMeTest.ts
Delete welcomeMeTest.ts
451ad74d96df1f2f281824486ccbb98ff57db694
--- package.json @@ -98,7 +98,7 @@ "@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch", "@walmart/avp-feature-app": "0.28.47", "@walmart/avp-shared-library": "0.27.26", - "@walmart/ax-components": "1.3.1", + "@walmart/ax-components": "1.3.3", "@walmart/backroom-mini-app": "1.17.11", "@walmart/beneficiary-online-mini-app": "0.1.26", "@walmart/beneficiary-online-shared-library": "1.2.7", --- yarn.lock @@ -7981,9 +7981,9 @@ __metadata: languageName: node linkType: hard -"@walmart/ax-components@npm:1.3.1": - version: 1.3.1 - resolution: "@walmart/ax-components@npm:1.3.1::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.3.1.tgz" +"@walmart/ax-components@npm:1.3.3": + version: 1.3.3 + resolution: "@walmart/ax-components@npm:1.3.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fax-components%2F-%2F%40walmart%2Fax-components-1.3.3.tgz" peerDependencies: "@expo/vector-icons": ~14.1.0 "@walmart/gtp-shared-components-3": "*" @@ -7991,7 +7991,7 @@ __metadata: react: 19.x react-dom: 19.x react-native: 0.79.x - checksum: 10c0/f6dda59091b27347415a31640ea74c3d38acd16d032082c7fc30540781558d50e5e4b32b0af812808ede083a32bd7c8ccf69baa807ba48ad137b9821b21a5725 + checksum: 10c0/316da34cad2535bb1ff53801017707eb870c9357c9de11dd8c7aa588758c56b56c3402f5fdf97e34c0a4b1297f270dd05cbd0fa2f829b2951a4a7c10d17fbf59 languageName: node linkType: hard @@ -8867,7 +8867,7 @@ __metadata: "@walmart/attendance-mini-app": "patch:@walmart/attendance-mini-app@npm:3.176.0#~/.yarn/patches/@walmart-attendance-mini-app-npm-3.176.0-b8336306f0.patch" "@walmart/avp-feature-app": "npm:0.28.47" "@walmart/avp-shared-library": "npm:0.27.26" - "@walmart/ax-components": "npm:1.3.1" + "@walmart/ax-components": "npm:1.3.3" "@walmart/backroom-mini-app": "npm:1.17.11" "@walmart/beneficiary-online-mini-app": "npm:0.1.26" "@walmart/beneficiary-online-shared-library": "npm:1.2.7"
fix(lib): bump ax-component lib to fix app crash
fix(lib): bump ax-component lib to fix app crash
5f8c6628b7a86e48e48ccbc0770b148d020ddd2b
--- package-lock.json @@ -3270,9 +3270,9 @@ } }, "@walmart/ui-components": { - "version": "1.1.34", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.34.tgz", - "integrity": "sha512-hwz6jkUzX1OUWXbM6A9WqqJomsOybtB0Pp4njEPu+8vSyfopZQp06gFWb3x2gjO6rL6XX35P1kammndt9Rk3Yg==", + "version": "1.1.37", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.37.tgz", + "integrity": "sha512-F1oldfVxWcCZH/yXAPLZg5dK45j0qIGKbMypN5GmdJpybkwFb0LqSktUDKVRTgk4EAsJ/Y7A9xy3abch68NG6g==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -87,7 +87,7 @@ "@walmart/schedule-mini-app": "0.2.76", "@walmart/settings-mini-app": "1.2.3", "@walmart/time-clock-mini-app": "0.3.4", - "@walmart/ui-components": "1.1.34", + "@walmart/ui-components": "1.1.37", "@walmart/welcomeme-mini-app": "0.26.2", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
updated ui-component-version
updated ui-component-version
ace1707e94bfd0f57c019b7455aaafa70af5c6cd
--- packages/allspark-foundation/src/Components/Onboarding/TeamSelection/Component/TeamSelectionList.tsx @@ -5,7 +5,7 @@ import { SelectionBanner } from './SelectionBanner'; import { teamSelectionListStyles as styles } from '../styles'; import { TeamPreference, TeamSelectionListProps } from '../types'; import { HubHeader } from '../../../HubHeader'; -import { colors } from '@walmart/gtp-shared-components'; +import { colors, Spinner } from '@walmart/gtp-shared-components'; import { ListHeader } from './ListHeader'; import { MyArea, @@ -19,6 +19,7 @@ import { SelectionBannerFooterButtons } from './SelectionBannerFooterButtons'; import { useUpsertManagerExperiencePreferenceMutation } from '@walmart/me-at-walmart-athena-queries'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { AllsparkNavigationClient } from '../../../../Navigation'; +import { LoggerService } from '../../../../Logger'; export const TeamSelectionList = ({ userType, @@ -37,13 +38,19 @@ export const TeamSelectionList = ({ SiteSelectors.getWorkingSiteCountry ); const win: string | undefined = useSelector(UserSelectors.getWin); - const [upsertManagerExperiencePreferenceMutation] = + const logger = LoggerService.getContainerInstance(); + const [upsertManagerExperiencePreferenceMutation, { error }] = useUpsertManagerExperiencePreferenceMutation({ onCompleted: () => { - //TODO: Add telemetry + logger.info('upsertManagerExperiencePreferenceMutation completed', { + message: + 'upsertManagerExperiencePreferenceMutation executed successfully', + }); }, - onError: () => { - //TODO: Add telemetry + onError: (err) => { + logger.error('upsertManagerExperiencePreferenceMutation error', { + message: `error in upsertManagerExperiencePreferenceMutation from TeamSelection: ${err}`, + }); }, }); @@ -70,8 +77,16 @@ export const TeamSelectionList = ({ }); //TODO: Add confirmation screen navigation AllsparkNavigationClient.navigate('teamHub.container'); + logger.info('Save teams event from team selection', { + message: 'Save teams event from team selection executed successfully', + }); }; + if (error) { + //TODO: Add error handling component + return <Spinner />; + } + return ( //TODO: Add translations to all constants <View testID='selectionList'> --- packages/allspark-foundation/src/Components/Onboarding/TeamSelection/Screens/TeamSelection.tsx @@ -13,6 +13,7 @@ import { UserSelectors } from '../../../../User'; import { useGetTeamsByStoreQuery } from '@walmart/me-at-walmart-athena-queries'; import { Team } from '@walmart/me-at-walmart-athena-queries/src/schema.types'; import moment from 'moment-timezone'; +import { LoggerService } from '../../../../Logger'; export const TeamSelection = () => { const useGetViewersPrimaryTeamName = () => { @@ -21,6 +22,7 @@ export const TeamSelection = () => { }; const primaryTeam = useGetViewersPrimaryTeamName(); const primaryTeamName = primaryTeam?.[0]?.teamName || ''; + const logger = LoggerService.getContainerInstance(); const storeNbr: string | undefined = useSelector( UserSelectors.getWorkingSite ); @@ -34,10 +36,14 @@ export const TeamSelection = () => { countryCode: countryCode as string, }, onCompleted: () => { - //TODO: Add telemetry + logger.info('useGetTeamsByStoreQuery completed', { + message: 'useGetTeamsByStoreQuery executed successfully', + }); }, - onError: () => { - //TODO: Add telemetry + onError: (err) => { + logger.error('useGetTeamsByStoreQuery error', { + message: `error in useGetTeamsByStoreQuery from TeamSelection: ${err}`, + }); }, }); const allTeamsData: TeamType[] = data?.getTeamsByStore || ([] as TeamType[]); @@ -100,6 +106,9 @@ export const TeamSelection = () => { const handleSelectAll = () => { if (selectedTeams.length < allAvailableTeams.length) { setSelectedTeams([...allAvailableTeams]); + logger.info('Select all teams', { + message: 'Selected all teams from team selection', + }); } else { setSelectedTeams([primaryTeamName]); }
Adding logs
Adding logs
8342a3be25c18013e99a650561923944930118a4
--- graphql.yml @@ -29,7 +29,6 @@ applications: tags: - 'v1' - name: 'GetTeamsByStore' - hash: '2102505f2e34ecdf049dd663c666466673496619cf0562892f706d5e9e0095c7' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v2' @@ -58,7 +57,6 @@ applications: tags: - 'v1' - name: 'GetTeamsByStore' - hash: '2102505f2e34ecdf049dd663c666466673496619cf0562892f706d5e9e0095c7' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v2' @@ -87,7 +85,6 @@ applications: tags: - 'v1' - name: 'GetTeamsByStore' - hash: '2102505f2e34ecdf049dd663c666466673496619cf0562892f706d5e9e0095c7' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v2' --- graphql.yml @@ -29,7 +29,6 @@ applications: tags: - 'v1' - name: 'GetTeamsByStore' - hash: '2102505f2e34ecdf049dd663c666466673496619cf0562892f706d5e9e0095c7' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v2' @@ -58,7 +57,6 @@ applications: tags: - 'v1' - name: 'GetTeamsByStore' - hash: '2102505f2e34ecdf049dd663c666466673496619cf0562892f706d5e9e0095c7' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v2' @@ -87,7 +85,6 @@ applications: tags: - 'v1' - name: 'GetTeamsByStore' - hash: '2102505f2e34ecdf049dd663c666466673496619cf0562892f706d5e9e0095c7' queryTemplate: 'src/queries/getTeamsbyStore.graphql' tags: - 'v2'
Removed hash values
Removed hash values
d2a895b633a7d4af65b7b8240d78fa6bedda8596
--- packages/allspark-foundation/__tests__/FeatureRunner/navigation.test.tsx @@ -11,14 +11,81 @@ import { renderSideMenu as RenderSideMenu, } from '../../src/FeatureRunner/navigation'; import { AllsparkFeatureModule } from '../../src/Feature'; -import { - StackHeaderInterpolationProps, - StackHeaderInterpolatedStyle, - StackHeaderProps, -} from '@react-navigation/stack'; +import { StackHeaderProps } from '@react-navigation/stack'; import { NavigationContainer } from '@react-navigation/native'; import { DrawerContentComponentProps } from '@react-navigation/drawer'; +const mockRenderSideMenuProps: DrawerContentComponentProps = { + state: { + key: 'drawer-key', + routeNames: ['Home', 'Settings'], + routes: [ + { key: 'home-key', name: 'Home' }, + { key: 'settings-key', name: 'Settings' }, + ], + index: 0, + type: 'drawer', + stale: false, + }, + navigation: { + dispatch: jest.fn(), + navigate: jest.fn(), + reset: jest.fn(), + goBack: jest.fn(), + isFocused: jest.fn(), + canGoBack: jest.fn(), + getParent: jest.fn(), + getState: jest.fn(), + setParams: jest.fn(), + } as any, // Cast to `any` to satisfy the type + descriptors: { + 'home-key': { + key: 'home-key', + options: {}, + navigation: {} as any, + render: jest.fn(), + }, + 'settings-key': { + key: 'settings-key', + options: {}, + navigation: {} as any, + render: jest.fn(), + }, + }, +}; + +const mockRenderHeaderProps: StackHeaderProps = { + layout: { + width: 0, + height: 0, + }, + progress: { + current: { value: 0 }, + next: undefined, + previous: undefined, + }, + options: { + headerTitle: 'Test Header', + headerStyle: { backgroundColor: 'blue' }, + headerTintColor: 'white', + }, + route: { + key: 'test-route', + name: 'TestScreen', + }, + navigation: { + goBack: jest.fn(), + navigate: jest.fn(), + setOptions: jest.fn(), + } as any, // Cast to `any` to satisfy the type + styleInterpolator: jest.fn(() => ({ + headerStyle: {}, + titleStyle: {}, + leftButtonStyle: {}, + rightButtonStyle: {}, + })), +}; + jest.mock('../../src/Permissions', () => { const initVal = jest.requireActual('../../src/Permissions'); return { @@ -56,9 +123,6 @@ jest.mock('@react-navigation/stack', () => { }; }); -// jest.mock('react-redux', () => ({ -// useSelector: jest.fn(), -// })); jest.mock('../../src/Environment', () => ({ AllsparkEnvironment: { resolveDerivedValue: jest.fn(), @@ -131,37 +195,6 @@ describe('createFeatureRunnerNavigation', () => { }); describe('renderHeader', () => { - const mockRenderHeaderProps: StackHeaderProps = { - layout: { - width: 0, - height: 0, - }, - progress: { - current: { value: 0 }, - next: undefined, - previous: undefined, - }, - options: { - headerTitle: 'Test Header', - headerStyle: { backgroundColor: 'blue' }, - headerTintColor: 'white', - }, - route: { - key: 'test-route', - name: 'TestScreen', - }, - navigation: { - goBack: jest.fn(), - navigate: jest.fn(), - setOptions: jest.fn(), - } as any, // Cast to `any` to satisfy the type - styleInterpolator: jest.fn(() => ({ - headerStyle: {}, - titleStyle: {}, - leftButtonStyle: {}, - rightButtonStyle: {}, - })), - }; it('matches snapshot', () => { console.log('renderHeader: ', RenderHeader); render(<RenderHeader {...mockRenderHeaderProps} />); @@ -182,44 +215,6 @@ describe('renderHeaderLeft', () => { describe('renderSideMenu', () => { it('matches snapshot', () => { - const mockRenderSideMenuProps: DrawerContentComponentProps = { - state: { - key: 'drawer-key', - routeNames: ['Home', 'Settings'], - routes: [ - { key: 'home-key', name: 'Home' }, - { key: 'settings-key', name: 'Settings' }, - ], - index: 0, - type: 'drawer', - stale: false, - }, - navigation: { - dispatch: jest.fn(), - navigate: jest.fn(), - reset: jest.fn(), - goBack: jest.fn(), - isFocused: jest.fn(), - canGoBack: jest.fn(), - getParent: jest.fn(), - getState: jest.fn(), - setParams: jest.fn(), - } as any, // Cast to `any` to satisfy the type - descriptors: { - 'home-key': { - key: 'home-key', - options: {}, - navigation: {} as any, - render: jest.fn(), - }, - 'settings-key': { - key: 'settings-key', - options: {}, - navigation: {} as any, - render: jest.fn(), - }, - }, - }; render( <NavigationContainer> <RenderSideMenu {...mockRenderSideMenuProps} /> --- packages/allspark-foundation/__tests__/GraphQL/utils/sortDocumentNode.test.ts @@ -1,8 +1,6 @@ import { sortDocumentNode } from '../../../src/GraphQL/utils/sortDocumentNode'; import { DocumentNode } from 'graphql'; -// filepath: packages/allspark-foundation/src/GraphQL/utils/sortDocumentNode.test.ts - describe('sortDocumentNode', () => { it('sorts variable definitions by variable name', () => { const document: DocumentNode = { --- packages/allspark-foundation/__tests__/utils/DynamicServiceCreator.test.tsx @@ -1,7 +1,5 @@ import { DynamicServiceCreator } from '../../src/utils/DynamicServiceCreator'; -// filepath: packages/allspark-foundation/src/utils/DynamicServiceCreator.test.tsx - describe('DynamicServiceCreator', () => { let mockImplementation: any; jest.useFakeTimers();
chore: remove commented code and move mocks out of describe block
chore: remove commented code and move mocks out of describe block
4a29689a567a13762d931aa4945e020c0b50d5b9
--- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -151,6 +151,17 @@ const WorkMiniAppScreens = WorkMiniApps.map((screen) => { ); }); +const metricsMainStackScreens = metricsNavigationScreens + .filter((screen) => screen.useInMainStack) + .map((screen, index) => ( + <MainStack.Screen + key={index} + component={screen.component} + name={screen.name} + options={screen.options} + /> + )); + export const MainStackNav = () => { const [translate] = useTranslation('common'); useAssociateStartup(); @@ -323,16 +334,7 @@ export const MainStackNav = () => { }} /> - {metricsNavigationScreens - .filter((screen) => screen.useInMainStack) - .map((screen, index) => ( - <MainStack.Screen - key={index} - component={screen.component} - name={screen.name} - options={screen.options} - /> - ))} + {metricsMainStackScreens} {/* Transparent Modal Screens - Renderd on top of current screen*/} <MainStack.Group --- src/navigation/AssociateHallwayNav/Tabs/HomeStackNav.tsx @@ -51,6 +51,17 @@ type HomeRouteParams = { const HomeStack = createStackNavigator(); +const metricsHomeStackScreens = metricsNavigationScreens.map( + (screen, index) => ( + <HomeStack.Screen + key={index} + component={screen.component} + name={screen.name} + options={screen.options} + /> + ), +); + export const InboxHeaderRight = () => { const [badgesCount] = useBadgesCount(); const navigtion = useNavigation<NavigationProp<HomeRouteParams>>(); @@ -144,14 +155,7 @@ export const HomeStackNav = () => { component={CelebrationListScreen} /> - {metricsNavigationScreens.map((screen, index) => ( - <HomeStack.Screen - key={index} - component={screen.component} - name={screen.name} - options={screen.options} - /> - ))} + {metricsHomeStackScreens} </HomeStack.Navigator> ); };
refactor: moved metrics screen map outside of component
refactor: moved metrics screen map outside of component
2ddf2b79b4b4c2078fa3431843d21454b39e2fe8
--- docs/CHANGELOG.md @@ -0,0 +1,6 @@ +## [2.26.1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.26.0...v2.26.1) (2025-04-30) + + +### Bug Fixes + +* SMDV-9999 update looper ([de22132](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/de221320a2bf024b8a6274d160eff814b7ce9800)) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/wmconnect-mini-app", - "version": "2.26.0", + "version": "2.26.1", "main": "index.ts", "workspaces": [ "packages/*" @@ -8,7 +8,7 @@ "installConfig": { "hoistingLimits": "none" }, - "packageManager": "yarn@4.6.0", + "packageManager": "yarn@4.4.0", "engines": { "node": ">=18" },
chore(release): 2.26.1 [skip ci]
chore(release): 2.26.1 [skip ci] ## [2.26.1](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.26.0...v2.26.1) (2025-04-30) ### Bug Fixes * SMDV-9999 update looper ([de22132](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/de221320a2bf024b8a6274d160eff814b7ce9800))
174aa7af6af976fd25b867acba58d1d26b4d41b9
--- targets/US/package.json @@ -117,7 +117,7 @@ "@walmart/me-at-walmart-common": "workspace:^", "@walmart/me-at-walmart-container": "workspace:^", "@walmart/me-at-walmart-core": "workspace:^", - "@walmart/metrics-mini-app": "1.27.3", + "@walmart/metrics-mini-app": "1.29.1", "@walmart/mod-flex-mini-app": "1.23.2", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "2.0.14", --- yarn.lock @@ -7762,7 +7762,7 @@ __metadata: "@walmart/me-at-walmart-common": "workspace:^" "@walmart/me-at-walmart-container": "workspace:^" "@walmart/me-at-walmart-core": "workspace:^" - "@walmart/metrics-mini-app": "npm:1.27.3" + "@walmart/metrics-mini-app": "npm:1.29.1" "@walmart/mod-flex-mini-app": "npm:1.23.2" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:2.0.14" @@ -7993,31 +7993,33 @@ __metadata: languageName: unknown linkType: soft -"@walmart/metrics-common@npm:1.1.0": - version: 1.1.0 - resolution: "@walmart/metrics-common@npm:1.1.0" - checksum: 10c0/57310424e90b657072376a8faecd0a81065e83b03a0f42a5cc9fdb6df8ec473a18e780cc5a3af329f3f58eddd3ccdc61f37c21b9ebd142180d1576e56659c6c7 +"@walmart/metrics-common@npm:1.3.0": + version: 1.3.0 + resolution: "@walmart/metrics-common@npm:1.3.0" + checksum: 10c0/f27625dd64996dd20ba515861875935b7cfb0a115ee194c45a6cf57c58d378e91ea0cc559ea3b0c5d5c971c3df000d88c97a4785c0d4b8b6db55511372d072da languageName: node linkType: hard -"@walmart/metrics-mini-app@npm:1.27.3": - version: 1.27.3 - resolution: "@walmart/metrics-mini-app@npm:1.27.3" +"@walmart/metrics-mini-app@npm:1.29.1": + version: 1.29.1 + resolution: "@walmart/metrics-mini-app@npm:1.29.1" dependencies: - "@walmart/metrics-common": "npm:1.1.0" - "@walmart/metrics-store": "npm:1.1.3" + "@walmart/metrics-common": "npm:1.3.0" + "@walmart/metrics-store": "npm:1.3.0" + "@walmart/metrics-supply-chain": "npm:1.0.2" peerDependencies: + "@apollo/client": ">=3.11.8" "@react-native/gradle-plugin": ">=0.73.4" "@react-navigation/native": ">=6.0.0" "@shopify/flash-list": ">=1.6.4" "@walmart/allspark-foundation": ">=6.2.0" "@walmart/ask-sam-chat-components": ">=0.2.7" - "@walmart/gtp-shared-components": ">=2.2.1" + "@walmart/gtp-shared-components": 2.2.6-rc.0 "@walmart/me-at-walmart-common": ">=6.2.0" "@walmart/me-at-walmart-container": ">=6.2.0" "@walmart/redux-store": ">=6.2.0" cache-parser: ">=1.2.4" - expo: 50.0.17 + expo: ">=50.0.20" expo-linear-gradient: ">=12.7.2" lodash: ">=4.17.21" moment-timezone: ">=0.5.33" @@ -8026,17 +8028,27 @@ __metadata: react-native: 0.73.7 react-redux: ">=8.0.4" reduxsauce: ">=1.2.0" - checksum: 10c0/2af8460b72806206a8d3ce9d9f36d2617afa3013941e2ea23e401f8bbcac8ee4aa68ceddaea3e9bd32f8e8739dc42850fe0ed008931faf62ec8c342ade74f0f1 + checksum: 10c0/22b98efc8ab14eec6dc6bb3c6a67f29f216d50ef85a8a61cb9c80094a38444793089a7c768aba9f2642cb0cc89d883b68aeca2d46f1ea1c6464a005e4c421ce0 languageName: node linkType: hard -"@walmart/metrics-store@npm:1.1.3": - version: 1.1.3 - resolution: "@walmart/metrics-store@npm:1.1.3" +"@walmart/metrics-store@npm:1.3.0": + version: 1.3.0 + resolution: "@walmart/metrics-store@npm:1.3.0" + dependencies: + "@walmart/metrics-common": "npm:1.3.0" + base-64: "npm:^1.0.0" + checksum: 10c0/d490f43370baa3a30bccc3e7bf271ec77512504dfe1cfbceff1410e9ed89d26d417ce746f0b8352eab60c96775b467bd2fd2a3226862100bdfcc96465564bbf6 + languageName: node + linkType: hard + +"@walmart/metrics-supply-chain@npm:1.0.2": + version: 1.0.2 + resolution: "@walmart/metrics-supply-chain@npm:1.0.2" dependencies: - "@walmart/metrics-common": "npm:1.1.0" + "@walmart/metrics-common": "npm:1.3.0" base-64: "npm:^1.0.0" - checksum: 10c0/8e4dc6d01df7d92e8b6046da0d5b49f18eb126dc5f8008f29310c05c08fe6fe61758b43cf9e2b780fc9c528920b7df99658ab4952c0ff41fbe99662ba69533d5 + checksum: 10c0/0c5d8d2ff7d94b72f64796d7e41cd643c4fd157f529838672fe99899e20d52ad67105a0d0aaff04cd80a5f0777f45cdc1a4560fd0b532934dc7bcd22ee2b8541 languageName: node linkType: hard
Bumping metrics-mini-app version for drop 28
Bumping metrics-mini-app version for drop 28
075a306a8223240e1ac7c108927ae020a31d1632
--- docs/CHANGELOG.md @@ -1,3 +1,11 @@ +# [1.9.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.8.0...v1.9.0) (2024-07-15) + + +### Features + +* **ci:** version fix ([3f117d0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/3f117d0ac30276bbce8e8b444110cf498e73dfb9)) +* **ui:** update version for drop 23 SMDV-5985 ([e4d4219](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e4d4219ff32efe77116c8fb892113a56e9c7f05e)) + # [1.8.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.7.0...v1.8.0) (2024-07-09) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.8.1", + "version": "1.9.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 1.9.0 [skip ci]
chore(release): 1.9.0 [skip ci] # [1.9.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.8.0...v1.9.0) (2024-07-15) ### Features * **ci:** version fix ([3f117d0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/3f117d0ac30276bbce8e8b444110cf498e73dfb9)) * **ui:** update version for drop 23 SMDV-5985 ([e4d4219](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/e4d4219ff32efe77116c8fb892113a56e9c7f05e))
24e1edc4a3f293632db75849a6348f57255b48c1
--- __tests__/__mocks__/@walmart/push-to-talk-mini-app.js @@ -19,7 +19,6 @@ module.exports = { useVMBadgesCount: jest.fn(() => [0]), useTextMessages: jest.fn(), useTextBadgesCount: jest.fn(() => [0]), - useUnreadMessageCount: jest.fn(() => [0]), }, Providers: { ConversationProvider: 'ConversationProvider', --- __tests__/navigation/AssociateHallwayNav/SideMenuContentTest.tsx @@ -30,12 +30,9 @@ jest.mock('../../../src/hooks', () => ({ useCanImpersonate: jest.fn(), })); -jest.mock('@walmart/push-to-talk-mini-app', () => ({ - PushToTalkMiniApp: 'PushToTalkMiniApp', - Hooks: { - useUnreadMessageCount: jest.fn((_) => [1]), - }, -})); +(Hooks.useTextMessages as jest.Mock).mockReturnValue({ + getUnreadCountForAllChannels: jest.fn().mockReturnValue(1), +}); const mockUseDrawerStatus = (useDrawerStatus as jest.Mock).mockReturnValue( 'open', @@ -70,6 +67,7 @@ const navConfig = [ ]; const setShowDialog = jest.fn(); +const setUnreadMessagesCount = jest.fn(); const baseProps = { navigation: { navigate: jest.fn(), @@ -94,12 +92,24 @@ describe('SideMenuContent', () => { mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge mockUseSelector.mockReturnValueOnce(true); mockUseState.mockReturnValueOnce([false, setShowDialog]); - (Hooks.useUnreadMessageCount as jest.Mock).mockReturnValueOnce([0]); + mockUseState.mockReturnValueOnce([0, setUnreadMessagesCount]); let component; act(() => { component = create(<SideMenuContent {...baseProps} />); }); + it('matches snapshot with not user/clockstatus data', () => { + expect(component.toJSON()).toMatchSnapshot(); + expect(WmTelemetry.logEvent).toHaveBeenCalledWith( + 'global_navigation', + 'closed', + { + composite_app: appJson.displayName, + }, + ); + expect(setUnreadMessagesCount).toHaveBeenCalledWith(1); + }); + it('matches snapshot with user/clockstatus data', () => { mockUseDrawerStatus.mockReturnValue('open'); mockUseCanImpersonate.mockReturnValue(false); @@ -115,7 +125,7 @@ describe('SideMenuContent', () => { mockUseSelector.mockReturnValueOnce({highPriorityCount: 1}); // taskBadge mockUseSelector.mockReturnValueOnce(true); mockUseState.mockReturnValueOnce([false, setShowDialog]); - (Hooks.useUnreadMessageCount as jest.Mock).mockReturnValueOnce([0]); + mockUseState.mockReturnValueOnce([0, setUnreadMessagesCount]); act(() => { component.update(<SideMenuContent {...baseProps} />); }); @@ -229,7 +239,7 @@ describe('SideMenuContent', () => { mockUseSelector.mockReturnValueOnce({highPriorityCount: 0}); // taskBadge mockUseSelector.mockReturnValueOnce(true); mockUseState.mockReturnValueOnce([false, setShowDialog]); - (Hooks.useUnreadMessageCount as jest.Mock).mockReturnValueOnce([0]); + mockUseState.mockReturnValueOnce([0, setUnreadMessagesCount]); act(() => { component.update(<SideMenuContent {...baseProps} />); }); --- __tests__/navigation/AssociateHallwayNav/__snapshots__/SideMenuContentTest.tsx.snap @@ -87,6 +87,93 @@ exports[`SideMenuContent matches snapshot for undefined user info, and can imper </SafeAreaView> `; +exports[`SideMenuContent matches snapshot with not user/clockstatus data 1`] = ` +<SafeAreaView + edges={ + Array [ + "top", + ] + } + style={ + Object { + "backgroundColor": "#002d58", + "flex": 1, + "overflow": "hidden", + } + } +> + <GlobalNavigation + appId="test" + baseURL="" + clockIn={false} + defaultLocale="en-US" + developersText="impersonation.developers" + deviceType="PERSONAL" + displayName="Sam Walton" + enableDevelopersOption={false} + enablePttAlert={0} + enableTaskItAlert={false} + enableTimeClock={true} + error={false} + errorText="menu.errorText" + globalNavConfig={ + Array [ + Object { + "action": Object { + "type": "NAVIGATE", + "value": "Settings", + }, + "enabled": true, + "icon": "settings", + "menuType": "SUBMENU", + "title": "Settings", + }, + ] + } + loading={true} + loadingText="menu.loadingText" + locale="en-US" + nameInitials="SW" + navigate={[Function]} + onDevelopersOptionClick={[Function]} + onDrawerClose={[Function]} + onPressTimeClock={[Function]} + onRetry={[Function]} + onSignOut={[Function]} + quickActionData={ + Array [ + Object { + "action": Object { + "type": "NAVIGATE", + "value": "Settings", + }, + "enabled": true, + "icon": "settings", + "menuType": "SUBMENU", + "title": "Settings", + }, + ] + } + retryText="menu.retryText" + showDefaultNav={false} + showInboxBadge={false} + signOutText="menu.signOutText" + siteId={0} + testID="globalNav" + /> + <Dialog + headerText="signoutDialog.title" + onClose={[Function]} + primaryButtonPress={[Function]} + primaryButtonText="signoutDialog.signOutButtonText" + secondaryButtonPress={[Function]} + secondaryButtonText="signoutDialog.cancelButtonText" + testID="signoutDialog" + visible={false} + /> +</SafeAreaView> +`; + exports[`SideMenuContent matches snapshot with user/clockstatus data 1`] = ` <SafeAreaView edges={ --- src/navigation/AssociateHallwayNav/SideMenuContent.tsx @@ -49,6 +49,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( const [translate, i18n] = useTranslation('common'); const drawerStatus = useDrawerStatus(); const canImpersonate = useCanImpersonate(); + const {getUnreadCountForAllChannels} = PTTHooks.useTextMessages(); const badgesCount = useSelector(getInboxBadgeCount); const user = useSelector(UserSelectors.getUser); const clockedIn = useSelector(ClockStatusSelectors.getIsClockedIn); @@ -63,7 +64,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( ClockAppSelectors.getIsTimeClockFetureEnabled, ); const [showDialog, setShowDialog] = useState(false); - const [unreadMessageCount] = PTTHooks.useUnreadMessageCount(0); + const [unreadMessagesCount, setUnreadMessagesCount] = useState(0); useEffect(() => { if (drawerStatus === 'open') { @@ -77,6 +78,11 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( } }, [drawerStatus]); + useEffect(() => { + setUnreadMessagesCount(getUnreadCountForAllChannels()); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); + const onDrawerClose = () => { navigation.dispatch(DrawerActions.closeDrawer()); }; @@ -157,7 +163,7 @@ export const SideMenuContent: React.FC<DrawerContentComponentProps> = ( onRetry={onRetry} enableTaskItAlert={!!highPriorityCount} showInboxBadge={!!badgesCount} - enablePttAlert={unreadMessageCount} + enablePttAlert={unreadMessagesCount} enableTimeClock={getIsClockingEnabled} />
Revert "feat: adding message and channel count (SMDV-2612)"
Revert "feat: adding message and channel count (SMDV-2612)" This reverts commit d280d490eb35bec208fb1634e137e5e1f621ce8a.
657f70fd938aa79a5721af40786bb00b73b99708
--- .looper.multibranch.yml @@ -73,7 +73,7 @@ flows: - (name Bundle Update) https_proxy=http://sysproxy.wal-mart.com:8080 http_proxy=http://sysproxy.wal-mart.com:8080 $RUBY_PATH/bundle update - declare(start_time) - var(start_time): date +%s - - call: app-build-init + - call: app-build-init($value) - (name Jetifier) npm run jetifier # - var(GRADLE_BUILD_FLAVOUR = ${value}) # removed - call: keys-setup
Exposing ENV to app-build-init method (#3976)
Exposing ENV to app-build-init method (#3976)
57d347095e2244670c618aa6743d955276e89460
--- package-lock.json @@ -51,7 +51,7 @@ "@walmart/counts-component-miniapp": "0.1.6", "@walmart/emergency-mini-app": "1.26.1", "@walmart/exception-mini-app": "1.6.5", - "@walmart/facilities-management-miniapp": "0.6.81", + "@walmart/facilities-management-miniapp": "0.6.83", "@walmart/feedback-all-spark-miniapp": "0.9.50", "@walmart/financial-wellbeing-feature-app": "1.13.7", "@walmart/functional-components": "~4.0.3", @@ -8292,9 +8292,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.6.81", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.81.tgz", - "integrity": "sha512-/kyGLn/7U1NrUmB50fCg2hVcFNc7ZMSWahl+8kkLYR5XJ9bETiFSE5eJkbCJ8Hw1HMXloEXt4a/MoEc6k1eFKg==", + "version": "0.6.83", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.83.tgz", + "integrity": "sha512-tS1HJCWG38lQ6121yqNBHk6HU8qLfm7K185kHmsAZrJXgK+1vcAUMNzMY1pvkJoZ3YdI4XfqaYlhsrtCbESRxA==", "hasInstallScript": true, "peerDependencies": { "@react-native-camera-roll/camera-roll": "5.6.0", @@ -34288,9 +34288,9 @@ "integrity": "sha512-luIn9pSsohNep8F4kUtyhnrol0HoVAPQpZzDZ3dvxKCKquH0oASjFfJE9nIWJ8lywUb0buOnf9MOls+0oUljAQ==" }, "@walmart/facilities-management-miniapp": { - "version": "0.6.81", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.81.tgz", - "integrity": "sha512-/kyGLn/7U1NrUmB50fCg2hVcFNc7ZMSWahl+8kkLYR5XJ9bETiFSE5eJkbCJ8Hw1HMXloEXt4a/MoEc6k1eFKg==" + "version": "0.6.83", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.83.tgz", + "integrity": "sha512-tS1HJCWG38lQ6121yqNBHk6HU8qLfm7K185kHmsAZrJXgK+1vcAUMNzMY1pvkJoZ3YdI4XfqaYlhsrtCbESRxA==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.50", --- package.json @@ -92,7 +92,7 @@ "@walmart/counts-component-miniapp": "0.1.6", "@walmart/emergency-mini-app": "1.26.1", "@walmart/exception-mini-app": "1.6.5", - "@walmart/facilities-management-miniapp": "0.6.81", + "@walmart/facilities-management-miniapp": "0.6.83", "@walmart/feedback-all-spark-miniapp": "0.9.50", "@walmart/financial-wellbeing-feature-app": "1.13.7", "@walmart/functional-components": "~4.0.3",
Updated facilities-management-miniapp version to 0.6.83
Updated facilities-management-miniapp version to 0.6.83
7761f8e0e572caca5a020b1e46e19e96baf2c493
--- package-lock.json @@ -4532,9 +4532,9 @@ } }, "@walmart/ui-components": { - "version": "1.3.0-beta.2", - "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-beta.2.tgz", - "integrity": "sha512-Au4Hoprm+Vw2n8b/lLlo52zVDa07wH7moy1alRBtO8OlfcO6I/p+oGhqzzpC1GtkVU4AgOVcG6Ubaubi8ouBrg==", + "version": "1.3.0-beta.3", + "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.3.0-beta.3.tgz", + "integrity": "sha512-2GcJwFH7yUkDTcIPGhw89qeXXSnm7PfEWx6CIC0p+bU/woHcgholb5vUvmqd+Xl3yUVgtSt15tFo0+PoYOlTuQ==", "requires": { "react-native-calendars": "1.299.0" } --- package.json @@ -99,7 +99,7 @@ "@walmart/shelfavailability-mini-app": "0.5.0", "@walmart/taskit-mini-app": "0.0.77-rc.0", "@walmart/time-clock-mini-app": "0.4.24", - "@walmart/ui-components": "1.3.0-beta.2", + "@walmart/ui-components": "1.3.0-beta.3", "@walmart/welcomeme-mini-app": "0.30.4", "@walmart/wfm-ui": "^0.1.50", "axios-cache-adapter": "2.7.3",
bumping version
bumping version
59afae09cb4b1d065af3d44a9ffb99b9d89c4c31
--- packages/allspark-foundation-hub/src/HubFeature/SupplyChain/Components/ShiftFilter/ShiftFilterList.tsx @@ -7,6 +7,7 @@ import { HubHeader } from '../../../Store'; import { useAllsparkTranslation } from '@walmart/allspark-foundation'; import { FEATURE_ID } from '../../../Store/constant'; import { colors } from '@walmart/gtp-shared-components/dist'; +import { Alert } from '@walmart/gtp-shared-components/dist'; export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({ filterListData, @@ -22,6 +23,10 @@ export const ShiftFilterList: React.FC<ShiftFilterListProps> = ({ textColor={colors.black} noPadding /> + <Alert + variant='error' + children={'Select at least one shift to continue.'} + /> <View style={styles.container}> {filterListData?.map( (item) =>
Adding alert
Adding alert
674831455cf5c812d7b1f6dc3a48132e051b6876
--- packages/allspark-utils/src/RenderGuard.tsx @@ -1,4 +1,4 @@ -import React, { PropsWithChildren, useEffect } from 'react'; +import React, { PropsWithChildren, useEffect, useRef } from 'react'; import { useToggleState } from './hooks'; import { AtLeastOne } from './types'; @@ -22,14 +22,29 @@ export const RenderGuard = ( props: PropsWithChildren<{ preRender: () => Promise<void>; onUnmount?: () => void; + singleExecution?: boolean; }> ) => { - const { children, preRender = Promise.resolve, onUnmount } = props; + const { + children, + singleExecution = true, + preRender = Promise.resolve, + onUnmount, + } = props; const { value: ready, toggleOn } = useToggleState(false); + const hasRunPreRender = useRef(false); // Handle pre render promise, toggle on when complete useEffect(() => { - preRender().then(() => toggleOn()); + const runPreRender = async () => { + if (!singleExecution || !hasRunPreRender.current) { + hasRunPreRender.current = true; + await preRender(); + toggleOn(); + } + }; + + runPreRender(); return () => onUnmount?.(); // eslint-disable-next-line react-hooks/exhaustive-deps }, []);
feat: add single execution option to render guard component, default true
feat: add single execution option to render guard component, default true
021fe7886df7966c6025296d928d3a8024ed451b
--- package.json @@ -144,7 +144,7 @@ "@walmart/schedule-mini-app": "0.114.2", "@walmart/shelfavailability-mini-app": "1.5.26", "@walmart/store-feature-orders": "1.26.9", - "@walmart/taskit-mini-app": "4.8.1", + "@walmart/taskit-mini-app": "4.9.0", "@walmart/time-clock-mini-app": "2.395.0", "@walmart/topstock-mini-app": "1.12.0", "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch", --- yarn.lock @@ -7174,12 +7174,12 @@ __metadata: languageName: node linkType: hard -"@walmart/taskit-mini-app@npm:4.8.1": - version: 4.8.1 - resolution: "@walmart/taskit-mini-app@npm:4.8.1" +"@walmart/taskit-mini-app@npm:4.9.0": + version: 4.9.0 + resolution: "@walmart/taskit-mini-app@npm:4.9.0" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/49686c1635e1fc3fc24064f7b07699e321db98cf8ef2c40c26b760ecaa80f0ae774aa0ab07a1c426aedf0955b3bd2d8ce50328fef9c7f9094460cde70d0184f8 + checksum: 10c0/aeef6f0814c15d0a5f19cca98a7fee122ad081adf0c3470fcebaa0ac82f991dd7b1d6f86e77b58635012463c8cf6eed1c5f905a68d3d1d9f39b6b3af35f6da25 languageName: node linkType: hard @@ -7851,7 +7851,7 @@ __metadata: "@walmart/schedule-mini-app": "npm:0.114.2" "@walmart/shelfavailability-mini-app": "npm:1.5.26" "@walmart/store-feature-orders": "npm:1.26.9" - "@walmart/taskit-mini-app": "npm:4.8.1" + "@walmart/taskit-mini-app": "npm:4.9.0" "@walmart/time-clock-mini-app": "npm:2.395.0" "@walmart/topstock-mini-app": "npm:1.12.0" "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.15.14#~/.yarn/patches/@walmart-ui-components-npm-1.15.14-a6f67304be.patch"
chore: bump taskit version
chore: bump taskit version
65b8c6448a2636613ec324d140da4691e41fb651
--- Gemfile.lock @@ -93,6 +93,7 @@ GEM xcodeproj (>= 1.13.0, < 2.0.0) xcpretty (~> 0.3.0) xcpretty-travis-formatter (>= 0.0.3) + fastlane-plugin-appcenter (1.11.1) fastlane-plugin-json (1.0.0) fastlane-plugin-versioning_android (0.1.0) fastlane-plugin-versioning_ios (0.1.0) @@ -203,6 +204,7 @@ PLATFORMS DEPENDENCIES fastlane + fastlane-plugin-appcenter fastlane-plugin-json fastlane-plugin-versioning_android fastlane-plugin-versioning_ios --- fastlane/Fastfile @@ -51,6 +51,25 @@ lane :set_build do ) end +desc "Upload IPA to App Center" +lane :submit_to_appcenter_iOS do + + UI.message("\n\n\n=====================================\n uploading iOS\n=====================================") + + appcenter_upload( + file: "./ios/AllSpark-beta.ipa", + upload_build_only: true) +end + +desc "Upload APK to App Center" +lane :submit_to_appcenter_android do + + UI.message("\n\n\n=====================================\n uploading Android\n=====================================") + + appcenter_upload( + file: "./android/AllSpark-beta.apk", + upload_build_only: true) +end # Use the `session` hash and the `save_session` method to store values # you want to use across Fastlast lanes. --- fastlane/Pluginfile @@ -5,3 +5,4 @@ gem 'fastlane-plugin-versioning_android' gem 'fastlane-plugin-versioning_ios' gem 'fastlane-plugin-json' +gem 'fastlane-plugin-appcenter'
adding fastlane for app center
adding fastlane for app center
166eecf811b1e14d738e80b3c0a4201c5a6ff1c4
--- packages/allspark-foundation/src/Core/docs/Migrating.md @@ -417,8 +417,11 @@ import MyFeature from '../src'; const RootNav = createStackNavigator(); export const App = () => { + useEffect(() => { + MyFeature.connect(); + }, []); + // container logic here - return ( <MeAtWalmartContainer.Provider env={env.env}> <AuthenticatorView>
chore: updating migration doc
chore: updating migration doc
d8aa9656a455895a11437c29b0f086fd4254e236
--- package-lock.json @@ -3046,9 +3046,9 @@ } }, "@walmart/impersonation-mini-app": { - "version": "1.0.5", - "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.5.tgz", - "integrity": "sha512-YaTiCgAbfok/KFqRCqrVuffa653FcH6tRvwMKPpj0Dez2hqQmGxAa7rxMj0Z5XeMdFOOgim78Lz5DGdhrnuRyg==" + "version": "1.0.6", + "resolved": "https://npme.walmart.com/@walmart/impersonation-mini-app/-/impersonation-mini-app-1.0.6.tgz", + "integrity": "sha512-/yog/jh5S+WT6mqRTSxtbnhHfZs7Xx6mJnP26jtMN+kMWljwnzoM+0p8hf8HxUd3fyLxmSjWp/g5RHjz+p8HxA==" }, "@walmart/inbox-mini-app": { "version": "0.0.36", @@ -3138,13 +3138,24 @@ "integrity": "sha512-eDS3eLxVfwTsUICU89ERbzln7RdE53bKTfT5gwYg7wn+bo7U/VtRNX5A12r1Et8nRITkwfGh9ZZS05frCO1TYQ==" }, "@walmart/time-clock-mini-app": { - "version": "0.1.6", - "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.6.tgz", - "integrity": "sha512-rUI56SF0pLMf81DZYaySYxoiSdq57KMeU8XowfPJgIUaY+lIS+bBsPIzzu/26TCL7ma7i4O5XNoNe1n8zRiYYg==", + "version": "0.1.14", + "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.14.tgz", + "integrity": "sha512-gc892ot9lqCdWsB8A8Xnm7MvgoDCY9fDuo2iWEKBbcC7paTNzHhv2CX2Mas9vleMqJ1/u4seobc3qnFfoxnLkA==", "requires": { "@react-native-community/datetimepicker": "^3.0.3", + "javascript-time-ago": "^2.3.4", "moment-timezone": "^0.5.31", "react-native-geolocation-service": "^5.0.0" + }, + "dependencies": { + "javascript-time-ago": { + "version": "2.3.4", + "resolved": "https://npme.walmart.com/javascript-time-ago/-/javascript-time-ago-2.3.4.tgz", + "integrity": "sha512-Tmy9C4MBGtC19AYhV8updznKqtiRSwJHIbDMeypsy3F0vxqgX5ytln4jwXRLVh82WW6ig4VGegi/Qhykpr4YQw==", + "requires": { + "relative-time-format": "^1.0.5" + } + } } }, "@walmart/ui-components": { --- package.json @@ -53,7 +53,7 @@ "@walmart/feedback-all-spark-miniapp": "0.0.31", "@walmart/functional-components": "^1.0.22", "@walmart/gtp-shared-components": "^0.2.2", - "@walmart/impersonation-mini-app": "1.0.5", + "@walmart/impersonation-mini-app": "1.0.6", "@walmart/inbox-mini-app": "0.0.36", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.0.73", @@ -63,7 +63,7 @@ "@walmart/redux-store": "^1.0.11", "@walmart/schedule-mini-app": "0.2.38", "@walmart/settings-mini-app": "1.1.8", - "@walmart/time-clock-mini-app": "0.1.6", + "@walmart/time-clock-mini-app": "0.1.14", "@walmart/welcomeme-mini-app": "0.5.18", "@walmart/ui-components": "1.0.89", "i18next": "^19.7.0",
Added time clock impersonation option and other fixes (#263)
Added time clock impersonation option and other fixes (#263)
e9b88a7e0eddba1195b7b3dbe0b65f114cfafe5b
--- package-lock.json @@ -45,7 +45,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.6.1", + "@walmart/facilities-management-miniapp": "0.6.1-beta2", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6", @@ -4948,9 +4948,9 @@ } }, "node_modules/@walmart/facilities-management-miniapp": { - "version": "0.6.1", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.1.tgz", - "integrity": "sha512-KveW4sIqr6ilWF4U4y7xG9UloOX8XVo0IN1uXRdjjaMnQZ/lYZDBL/8sWPaSPmKwlRe9Y0mdOT68ZFDGVr7/ug==", + "version": "0.6.1-beta2", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.1-beta2.tgz", + "integrity": "sha512-TwAPYct9E7nbESFDDJ1So1Iw3Euc0/nXI1ozokdYEioz0guwLy9SMdOT+79Wtv2LrMxiLacFSBc+Vu45vDpagw==", "hasInstallScript": true, "peerDependencies": { "@react-native-community/async-storage": "^1.12.1", @@ -25014,9 +25014,9 @@ "integrity": "sha512-mzesUeNPUwAWFUrFs6104aZ3NCM5eXa2uD8TrjL+BV+ZVgYG/A58k1xUUxNayw26w7Z41J7m4bxA9ctgNiNVMQ==" }, "@walmart/facilities-management-miniapp": { - "version": "0.6.1", - "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.1.tgz", - "integrity": "sha512-KveW4sIqr6ilWF4U4y7xG9UloOX8XVo0IN1uXRdjjaMnQZ/lYZDBL/8sWPaSPmKwlRe9Y0mdOT68ZFDGVr7/ug==" + "version": "0.6.1-beta2", + "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.6.1-beta2.tgz", + "integrity": "sha512-TwAPYct9E7nbESFDDJ1So1Iw3Euc0/nXI1ozokdYEioz0guwLy9SMdOT+79Wtv2LrMxiLacFSBc+Vu45vDpagw==" }, "@walmart/feedback-all-spark-miniapp": { "version": "0.9.10", --- package.json @@ -87,7 +87,7 @@ "@walmart/counts-component-miniapp": "0.1.2", "@walmart/emergency-mini-app": "1.19.0", "@walmart/exception-mini-app": "1.0.16", - "@walmart/facilities-management-miniapp": "0.6.1-beta1", + "@walmart/facilities-management-miniapp": "0.6.1-beta2", "@walmart/feedback-all-spark-miniapp": "0.9.10", "@walmart/financial-wellbeing-feature-app": "1.1.2", "@walmart/functional-components": "2.0.6",
Updating facilities-management-mini-app version to 0.6.1-beta2
Updating facilities-management-mini-app version to 0.6.1-beta2
4e598912fa989815d841e1bc4d418cbe9d18e524
--- package.json @@ -121,7 +121,7 @@ "@walmart/mod-flex-mini-app": "1.19.6", "@walmart/moment-walmart": "1.0.4", "@walmart/money-auth-shared-components": "0.1.10", - "@walmart/myteam-mini-app": "1.4.0", + "@walmart/myteam-mini-app": "1.10.0", "@walmart/native-rfid-scanner": "3.9.15", "@walmart/onewalmart-miniapp": "1.0.24", "@walmart/pay-stub-miniapp": "0.15.3", @@ -140,7 +140,7 @@ "@walmart/redux-store": "6.1.4", "@walmart/returns-mini-app": "4.6.0", "@walmart/rfid-scan-mini-app": "2.3.16", - "@walmart/roster-mini-app": "2.4.0", + "@walmart/roster-mini-app": "2.8.2", "@walmart/schedule-mini-app": "0.118.0", "@walmart/shelfavailability-mini-app": "1.5.26", "@walmart/store-feature-orders": "1.26.12", @@ -151,7 +151,7 @@ "@walmart/welcomeme-mini-app": "0.94.0", "@walmart/wfm-ui": "1.6.0", "@walmart/wm-plus-mini-app": "0.12.20", - "@walmart/wmconnect-mini-app": "2.3.0", + "@walmart/wmconnect-mini-app": "2.5.4", "axios": "~1.6.0", "axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch", "crypto-js": "~4.2.0", --- yarn.lock @@ -6674,9 +6674,9 @@ __metadata: languageName: node linkType: hard -"@walmart/myteam-mini-app@npm:1.4.0": - version: 1.4.0 - resolution: "@walmart/myteam-mini-app@npm:1.4.0" +"@walmart/myteam-mini-app@npm:1.10.0": + version: 1.10.0 + resolution: "@walmart/myteam-mini-app@npm:1.10.0" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -6718,7 +6718,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/afb335b5d91d381ba394abc4257abab38300334f94d7da200d6e784f3ea398aa8ca2dd4030527d1076434ba3e5a1fc28e933ed9e3b711eb471f0e193ea33805e + checksum: 10c0/203080e813fc35c89d8d6dfdd7f649ab7dda14ed3f9d600384a2c2a091831667eeca14c6a24dc96b3681aea0446c5dce0f9cd23f16a308148d59a82e86b6ae17 languageName: node linkType: hard @@ -7054,9 +7054,9 @@ __metadata: languageName: node linkType: hard -"@walmart/roster-mini-app@npm:2.4.0": - version: 2.4.0 - resolution: "@walmart/roster-mini-app@npm:2.4.0" +"@walmart/roster-mini-app@npm:2.8.2": + version: 2.8.2 + resolution: "@walmart/roster-mini-app@npm:2.8.2" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -7081,7 +7081,8 @@ __metadata: "@walmart/react-native-logger": 1.34.8 "@walmart/react-native-scanner-3.0": 0.5.1 "@walmart/react-native-shared-navigation": 6.1.4 - "@walmart/react-native-sumo-sdk": 2.6.0 + "@walmart/react-native-sumo-sdk": "*" + i18next: ^23.6.0 moment-timezone: ~0.5.43 npm-run-all: ^4.1.5 react-i18next: ^13.3.1 @@ -7097,7 +7098,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/4cbbac957f96c03796864b0dcaf2aaf52aa56b31625a4c6d855eaec9a22310cdc3114b4266a1abbe07b56b5233c4f0854ca0ad31f3cdb6380afd8832d5bb8d2d + checksum: 10c0/3a787b4eff1d373d1558eb8c274aa87dd67d65a3a6f830f74981e4b4b6d560119308f3b1a0e8843a212c20f06525d59663afdca3f2d9034a3a14e34688e01553 languageName: node linkType: hard @@ -7447,9 +7448,9 @@ __metadata: languageName: node linkType: hard -"@walmart/wmconnect-mini-app@npm:2.3.0": - version: 2.3.0 - resolution: "@walmart/wmconnect-mini-app@npm:2.3.0" +"@walmart/wmconnect-mini-app@npm:2.5.4": + version: 2.5.4 + resolution: "@walmart/wmconnect-mini-app@npm:2.5.4" peerDependencies: "@react-native-async-storage/async-storage": ^1.21.0 "@react-native-community/netinfo": ^11.0.1 @@ -7489,7 +7490,7 @@ __metadata: redux: ^4.2.1 redux-saga: ^1.2.3 wifi-store-locator: 1.4.1 - checksum: 10c0/6aeaeaf41bd50b06a792570f1f27ca2ec2b89dc6374a6409681d9b739064047a484a45c42c9a30d9b7860923e58cca1ae2a6047e6cdd97ffe5735b002627cfc0 + checksum: 10c0/7442a7563e90f10f0caff7d6b1e81c5801433abcd99ab69d0e84405bbb6c3ae3cc517333789abe61765aa6dddc231ce94dce03a9688f5f0c14c700a1e103a0c4 languageName: node linkType: hard @@ -7859,7 +7860,7 @@ __metadata: "@walmart/mod-flex-mini-app": "npm:1.19.6" "@walmart/moment-walmart": "npm:1.0.4" "@walmart/money-auth-shared-components": "npm:0.1.10" - "@walmart/myteam-mini-app": "npm:1.4.0" + "@walmart/myteam-mini-app": "npm:1.10.0" "@walmart/native-rfid-scanner": "npm:3.9.15" "@walmart/onewalmart-miniapp": "npm:1.0.24" "@walmart/pay-stub-miniapp": "npm:0.15.3" @@ -7878,7 +7879,7 @@ __metadata: "@walmart/redux-store": "npm:6.1.4" "@walmart/returns-mini-app": "npm:4.6.0" "@walmart/rfid-scan-mini-app": "npm:2.3.16" - "@walmart/roster-mini-app": "npm:2.4.0" + "@walmart/roster-mini-app": "npm:2.8.2" "@walmart/schedule-mini-app": "npm:0.118.0" "@walmart/shelfavailability-mini-app": "npm:1.5.26" "@walmart/store-feature-orders": "npm:1.26.12" @@ -7889,7 +7890,7 @@ __metadata: "@walmart/welcomeme-mini-app": "npm:0.94.0" "@walmart/wfm-ui": "npm:1.6.0" "@walmart/wm-plus-mini-app": "npm:0.12.20" - "@walmart/wmconnect-mini-app": "npm:2.3.0" + "@walmart/wmconnect-mini-app": "npm:2.5.4" adaptive-expressions: "npm:^4.13.5" adaptivecards-templating: "npm:^2.1.0" axios: "npm:~1.6.0"
My Team mini app version update for Drop 23
My Team mini app version update for Drop 23
6f5db83ea3c36d511971a843bf9e92eef9df3f89
--- android/app/src/main/AndroidManifest.xml @@ -78,6 +78,12 @@ <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> + <intent-filter> + <action android:name="android.intent.action.VIEW"/> + <category android:name="android.intent.category.DEFAULT"/> + <category android:name="android.intent.category.BROWSABLE"/> + <data android:scheme="meatwmt"/> + </intent-filter> </activity> <activity android:name="net.openid.appauth.RedirectUriReceiverActivity" --- ios/AllSpark/AppDelegate.mm @@ -3,6 +3,7 @@ #import <React/RCTBridge.h> #import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> +#import <React/RCTLinkingManager.h> #import <React/RCTAppSetupUtils.h> #import "RNSplashScreen.h" @@ -84,6 +85,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( return YES; } + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options +{ + return [RCTLinkingManager application:application openURL:url options:options]; +} + /// This method controls whether the `concurrentRoot`feature of React18 is turned on or off. /// /// @see: https://reactjs.org/blog/2022/03/29/react-v18.html --- ios/AllSpark/Info.plist @@ -34,6 +34,12 @@ <string>com.walmart.stores.allspark.beta</string> </array> </dict> + <dict> + <key>CFBundleURLSchemes</key> + <array> + <string>meatwmt</string> + </array> + </dict> </array> <key>CFBundleVersion</key> <string>908</string> --- ios/Podfile @@ -22,6 +22,16 @@ source 'https://github.com/CocoaPods/Specs.git' Pod::UI.puts "Flipper enabed: #{ENV['NO_FLIPPER'] == '1' ? 'false' : 'true'}" # production = ENV["PRODUCTION"] == "1" +def fix_hermes(app_name) + path = "Pods/Target Support Files/Pods-" + app_name + "/Pods-" + app_name + "-frameworks.sh" + lines = File.readlines(path) + lines.insert(181, ' install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"'+"\n") + lines.insert(183, 'if [[ "$CONFIGURATION" == "Release" ]]; then'+"\n") + lines.insert(184, ' install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"'+"\n") + lines.insert(185, "fi\n") + File.write(path, lines.join, mode: "w") + puts "Hermes fixed" +end target 'AllSpark' do config = use_native_modules! @@ -75,5 +85,6 @@ target 'AllSpark' do :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) + fix_hermes('AllSpark') end end --- ios/Podfile.lock @@ -1285,6 +1285,6 @@ SPEC CHECKSUMS: Yoga: dc109b79db907f0f589fc423e991b09ec42d2295 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 5d9ba60be3dfb87f4278eff1d4ebb95b0c7dbcf4 +PODFILE CHECKSUM: 0524ab04e63c604f1bd411f104dd1c6292a9f577 COCOAPODS: 1.12.0 --- package-lock.json @@ -75,7 +75,7 @@ "@walmart/react-native-sumo-sdk": "2.5.1", "@walmart/receipt-check-miniapp": "1.11.5", "@walmart/redux-store": "3.1.5", - "@walmart/returns-mini-app": "0.13.3", + "@walmart/returns-mini-app": "1.1.0", "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", @@ -5882,9 +5882,9 @@ } }, "node_modules/@walmart/returns-mini-app": { - "version": "0.13.3", - "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.13.3.tgz", - "integrity": "sha512-vuHFnFbdOz9K1lTOS9oeOl4vCYN1ZcmpZHu5sUXOvkb6AjEK9JpME2dluXfTz4DdBPa0J7t4DjLMFPcxss6nmQ==", + "version": "1.1.0", + "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-1.1.0.tgz", + "integrity": "sha512-nhEy2eai7+Bd5a+NfzRehBmKM4Y8zVt523QZrJKN5Yv8mPcfgGHNHRMjUXniYswePC02WW3zLoGbCYbr5dvCpw==", "hasInstallScript": true, "dependencies": { "@walmart/common-utilities-js": "^1.2.10", @@ -5906,7 +5906,7 @@ "cpc-input": "^1.7.28", "promise.allsettled": "^1.0.6", "react": "^16.13.1", - "react-native": "^0.70.6", + "react-native": "^0.70.4", "react-native-html-parser": "^0.1.0", "react-redux": "^7.2.1", "redux": "^4.0.5" @@ -25420,9 +25420,9 @@ } }, "@walmart/returns-mini-app": { - "version": "0.13.3", - "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-0.13.3.tgz", - "integrity": "sha512-vuHFnFbdOz9K1lTOS9oeOl4vCYN1ZcmpZHu5sUXOvkb6AjEK9JpME2dluXfTz4DdBPa0J7t4DjLMFPcxss6nmQ==", + "version": "1.1.0", + "resolved": "https://npme.walmart.com/@walmart/returns-mini-app/-/returns-mini-app-1.1.0.tgz", + "integrity": "sha512-nhEy2eai7+Bd5a+NfzRehBmKM4Y8zVt523QZrJKN5Yv8mPcfgGHNHRMjUXniYswePC02WW3zLoGbCYbr5dvCpw==", "requires": { "@walmart/common-utilities-js": "^1.2.10", "@walmart/virtual-zpl-printer-model": "^0.2.11", --- package.json @@ -117,7 +117,7 @@ "@walmart/react-native-sumo-sdk": "2.5.1", "@walmart/receipt-check-miniapp": "1.11.5", "@walmart/redux-store": "3.1.5", - "@walmart/returns-mini-app": "0.13.3", + "@walmart/returns-mini-app": "1.1.0", "@walmart/schedule-mini-app": "0.33.0", "@walmart/settings-mini-app": "1.17.0", "@walmart/shelfavailability-mini-app": "1.5.13", --- src/index.tsx @@ -1,8 +1,10 @@ import React from 'react'; -import {StatusBar} from 'react-native'; +import {StatusBar, LogBox} from 'react-native'; import {SafeAreaProvider} from 'react-native-safe-area-context'; import {NavigationContainer} from '@react-navigation/native'; +LogBox.ignoreAllLogs(); + import {LivingDesignProvider} from '@walmart/gtp-shared-components'; import {navContainerProps} from '@walmart/react-native-shared-navigation'; import {
initial commit.
initial commit.