commit_hash
stringlengths
40
40
input
stringlengths
13
7.99k
output
stringlengths
5
155
full_message
stringlengths
6
8.96k
ef8083c13a155bc45e78d6348afadc5a7b80ea35
--- __tests__/core/initSSOTest.ts @@ -112,6 +112,7 @@ describe('ssoTelemetryEventListener', () => { countryCode: 'US', siteId: 'NOT_FOUND', domain: 'Store/Club', + userIdState: 'unset', }, ); }); @@ -121,6 +122,7 @@ describe('ssoTelemetryEventListener', () => { domain: 'Store/Club', siteId: '100', countryCode: 'NOT_FOUND', + userId: 'NOT_FOUND', userType: ASSOCIATE_USER_TYPE as String, } as SSOPingFedEventData; @@ -136,6 +138,7 @@ describe('ssoTelemetryEventListener', () => { siteId: '100', countryCode: 'NOT_FOUND', domain: 'Store/Club', + userIdState: 'NOT_FOUND', }, ); }); @@ -161,6 +164,7 @@ describe('ssoTelemetryEventListener', () => { siteId: '100', countryCode: 'US', domain: 'Store/Club', + userIdState: 'unset', }, ); }); --- src/core/initSSO.ts @@ -25,6 +25,12 @@ const logNotFoundError = (event: SSOPingFedEventData) => { countryCode: event.countryCode, siteId: event.siteId, domain: event.domain, + userIdState: + event.userId === 'NOT_FOUND' + ? 'NOT_FOUND' + : !event.userId + ? 'unset' + : 'set', }); } };
More logging.
More logging.
03750d73d344968716c2be190fd2dae3f68cc5dd
--- packages/allspark-foundation-hub/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation-hub", - "version": "1.3.6", + "version": "1.3.7", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation-hub/src/Container/AllsparkHubContainer.tsx @@ -101,6 +101,7 @@ export class AllsparkHubContainer { private containerName = ''; private widgetCCMConfigs = {}; private validWidgets: ValidatedTeamWidgetMapping = {}; + private defaultWidgets: string[] = []; constructor() { managerExperienceFeature.connect(); } @@ -116,6 +117,7 @@ export class AllsparkHubContainer { const dispatch = useDispatch(); this.containerName = name; this.componentOverrides = componentOverrides; + this.defaultWidgets = defaultWidgets; const defaultWidgetConfig = createDefaultWidgetsConfig(defaultWidgets); this.widgetCCMConfigs = useHubConfig(ccmNamespace, defaultWidgetConfig); const screenName = @@ -131,6 +133,7 @@ export class AllsparkHubContainer { this.validWidgets = validateWidgets({ registeredWidgets: widgets, teamWidgetMapping: this.widgetCCMConfigs, + defaultWidgets: this.defaultWidgets, }); return this; }; --- packages/allspark-foundation-hub/src/Container/utils.ts @@ -1,11 +1,92 @@ import { TeamWidgetMapping, ValidatedTeamWidgetMapping } from './types'; +const isObject = (value: any): value is Record<string, any> => { + return typeof value === 'object' && value !== null; +}; + +const isValidTeam = (team: any): boolean => { + if (!isObject(team)) { + console.error('Invalid team structure: Team is not an object'); + return false; + } + if (typeof team.teamName !== 'string') { + console.error('Invalid team structure: teamName is not a string'); + return false; + } + if (!Array.isArray(team.widgets)) { + console.error('Invalid team structure: widgets is not an array'); + return false; + } + if (!team.widgets.every(isValidWidget)) { + console.error('Invalid team structure: One or more widgets are invalid'); + return false; + } + return true; +}; + +const isValidWidget = (widget: any): boolean => { + if (typeof widget.name !== 'string') { + console.error('Invalid widget structure: name is not a string'); + return false; + } + if (typeof widget.rank !== 'number') { + console.error('Invalid widget structure: rank is not a number'); + return false; + } + if (typeof widget.enable !== 'boolean') { + console.error('Invalid widget structure: enable is not a boolean'); + return false; + } + return true; +}; + +export const validateTeamWidgetMappingJson = (jsonInput: string): boolean => { + try { + const jsonMapping = JSON.parse(jsonInput); + if (!isObject(jsonMapping)) { + console.error('Invalid JSON structure: Root is not an object'); + return false; + } + if (!Object.values(jsonMapping).every(isValidTeam)) { + console.error('Invalid JSON structure: One or more teams are invalid'); + return false; + } + return true; + } catch (error) { + console.error('Error parsing JSON:', error); + return false; + } +}; + export const validateWidgets = (data: { registeredWidgets: string[]; teamWidgetMapping: TeamWidgetMapping; + defaultWidgets: string[]; }): ValidatedTeamWidgetMapping => { const validatedData: ValidatedTeamWidgetMapping = {}; + let teamWidgetMappingJson; + try { + teamWidgetMappingJson = JSON.stringify(data.teamWidgetMapping); + } catch (error) { + console.error('Invalid JSON string:', error); + return { + default: { + teamName: 'default', + widgets: data.defaultWidgets, + }, + }; + } + + if (!validateTeamWidgetMappingJson(teamWidgetMappingJson)) { + return { + default: { + teamName: 'default', + widgets: data.defaultWidgets, + }, + }; + } + for (const [teamId, { teamName, widgets }] of Object.entries( data.teamWidgetMapping )) { --- packages/allspark-foundation-hub/src/Store/Hooks/useGetViewersPrimaryTeam.ts @@ -4,11 +4,17 @@ import { EMP_TYPE_SALARIED, MANAGEMENT_TEAM_ID, MANAGEMENT_TEAM_LABEL, + TOTAL_SITE_TEAM_ID, + TOTAL_SITE_TEAM_LABEL, + TOTAL_STORE_TEAM_ID, + TOTAL_STORE_TEAM_LABEL, } from '../../Shared'; +import { SiteSelectors } from '@walmart/allspark-foundation'; export const useGetViewersPrimaryTeam = () => { const viewerTeam: Team[] | undefined = useSelector(UserSelectors.getTeams); const isSalaried: boolean = useSelector(UserSelectors.getIsUserSalaried); + const isSiteDC: boolean = useSelector(SiteSelectors.getWorkingSiteIsDC); const employeeType: string | undefined = useSelector( UserSelectors.getEmployeeType ); @@ -17,7 +23,21 @@ export const useGetViewersPrimaryTeam = () => { if (!viewerTeam?.length) { if (isSalaried || isUserSalariedEmployee) { return [{ teamName: MANAGEMENT_TEAM_LABEL, teamId: MANAGEMENT_TEAM_ID }]; + } else { + return [ + { + teamName: isSiteDC ? TOTAL_SITE_TEAM_LABEL : TOTAL_STORE_TEAM_LABEL, + teamId: isSiteDC ? TOTAL_SITE_TEAM_ID : TOTAL_STORE_TEAM_ID, + }, + ]; } } - return viewerTeam; + return ( + viewerTeam || [ + { + teamName: isSiteDC ? TOTAL_SITE_TEAM_LABEL : TOTAL_STORE_TEAM_LABEL, + teamId: isSiteDC ? TOTAL_SITE_TEAM_ID : TOTAL_STORE_TEAM_ID, + }, + ] + ); };
Update foundation hub version for validation widgets function
Update foundation hub version for validation widgets function
c5f27613f40af728357621179ebdb4b1aa5c624f
--- packages/allspark-foundation-hub/src/HubFeature/AllsparkHubContainer.tsx @@ -8,6 +8,7 @@ import { createDefaultWidgetsConfig, validateWidgets } from './utils'; import { ValidatedTeamWidgetMapping, ComponentOverrides } from './types'; import { AllsparkFeatureModule } from '@walmart/allspark-foundation/Feature'; import { enUS, esMX } from './Store/translation'; +import { enUS as siteEnUS, esMX as siteEsMX } from './SupplyChain/translation'; import { FEATURE_ID, FEATURE_NAME } from './Store/Common/constant'; import { TeamOnboardingScreen } from './Store/Onboarding'; import { managerExperienceSlice } from './Store/Redux/reducer'; @@ -29,8 +30,8 @@ import { UpdateTeamsModal } from './SupplyChain/Screens/UpdateTeamsModal/UpdateT export const managerExperienceFeature = new AllsparkFeatureModule(FEATURE_ID, { name: FEATURE_NAME, translations: { - 'en-US': enUS, - 'es-MX': esMX, + 'en-US': { ...enUS, ...siteEnUS }, + 'es-MX': { ...esMX, ...siteEsMX }, }, screens: { 'managerExperience.teamSelection': {
Adding translation for SC
Adding translation for SC
8338f74fe170d32a33f1ffc669ed5a329eebfe90
--- __tests__/logger/analytics-test.tsx @@ -26,6 +26,12 @@ describe('Texting analytics', () => { expect(logSpy).toBeCalled(); }); + it('shall default sampling rate to 100 if its not passed in', () => { + const logSpy = jest.spyOn(WmTelemetry, 'logEvent'); + analytics('test event', {}, undefined); + expect(logSpy).toBeCalled(); + }); + it('shall not log with sampling rate 0', () => { const logSpy = jest.spyOn(WmTelemetry, 'logEvent'); analytics('test event', {}, 0);
Adding analytics test coverage
Adding analytics test coverage
2537e45b557154849195dce4a7f4b36eb44c9ead
--- android/app/src/main/AndroidManifest.xml @@ -65,7 +65,7 @@ </service> <receiver - android:name="com.walmart.ssae.sms.sumo.sdk.reactnative.SumoModuleMQTTPushReceiver" + android:name=".MQTTPushReceiver" android:enabled="true" android:exported="true" android:permission="com.walmart.sumo.mqtt.RECEIVE_MQTT_PUSH"> --- android/app/src/main/java/com/walmart/stores/allspark/beta/MQTTPushReceiver.java @@ -0,0 +1,43 @@ +package com.walmart.stores.allspark.beta; + +import android.content.Context; +import android.content.Intent; + +import com.walmart.platform.mobile.push.sumosdk.notification.BroadcastData; +import com.walmart.platform.mobile.push.sumosdk.notification.SumoComponentType; +import com.walmart.platform.mobile.push.sumosdk.notification.SumoNotification; +import com.walmart.platform.mobile.push.sumosdk.notification.SumoNotificationProfiles; +import com.walmart.platform.mobile.push.sumosdk.notification.SumoNotificationTappedIntent; +import com.walmart.ssae.sms.sumo.sdk.reactnative.SumoModuleMQTTPushReceiver; + +import org.jetbrains.annotations.NotNull; + +public class MQTTPushReceiver extends SumoModuleMQTTPushReceiver { + @Override + public void onReceive(Context context, @NotNull Intent intent) { + SumoNotification sumoNotification = SumoNotification.parseMQTTNotification(intent.getExtras()); + + SumoNotificationProfiles.shared().applyProfileForNotification(sumoNotification); + + Intent tappedIntent = new Intent(); + tappedIntent.setClassName(context, context.getPackageName() + ".MainActivity"); + tappedIntent.replaceExtras(intent.getExtras()); + tappedIntent.putExtra("com.walmart.sumo.CHANNEL", "mqtt"); + tappedIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); + sumoNotification.setNotificationTappedIntent(new SumoNotificationTappedIntent(tappedIntent, SumoComponentType.Activity)); + + if (sumoNotification.getTitle() == null || sumoNotification.getTitle().trim().length() == 0) { + sumoNotification.setTitle(context.getApplicationInfo().loadLabel(context.getPackageManager()).toString()); + } + + if (sumoNotification.getLargeIcon() == null) { + // 'icon' appears to be RN default resource name + sumoNotification.setLargeIcon("ic_notification_icon"); + } + if (sumoNotification.getSmallIcon() == null) { + sumoNotification.setSmallIcon("ic_notification_small"); + } + + new PushReceiptTask().execute(new BroadcastData(context, sumoNotification)); + } +}
Fix/android notification icon (#286)
Fix/android notification icon (#286) * WIP * Added notification icons and FCMReceiver code to override pushes and add icon to the notification * changed name of the small icon * added icon for status bar * removing icons * Adding logic to fix for MQTT Co-authored-by: Hitesh Arora <>
86e29369922f84bef934c62d4ae24e66d606aa32
--- .looper.multibranch.yml @@ -94,4 +94,3 @@ flows: mini-pr: - (name Branch Check, silent) echo "TBD" - call: build-npm - - (name Build JS Bundle) ./node_modules/.bin/react-native bundle --entry-file ./targets/US/index.js --bundle-output ./bundle.js --reset-cache
chore: looper template testing
chore: looper template testing
acc85482b4a718cbf6dc541361ecfdf5009ae8ff
--- __tests__/sumo/SumoReduxTest.ts @@ -56,18 +56,9 @@ describe('selectors', () => { expect(optIn).toEqual(INITIAL_STATE.optIn); }); - describe('getSumoProfile', () => { - it('handles defined profile', () => { - const profile = getSumoProfile(mockState); - expect(profile).toEqual(mockProfile); - }); - - it('handles undefined profile', () => { - const profile = getSumoProfile(({ - sumo: INITIAL_STATE, - } as unknown) as GlobalState); - expect(profile).toEqual({}); - }); + test('getSumoProfile', () => { + const profile = getSumoProfile(mockState); + expect(profile).toEqual(mockProfile); }); }); --- __tests__/sumo/SumoSagasTest.ts @@ -6,7 +6,7 @@ import { call, take, put, - debounce, + takeLeading, fork, retry, } from 'redux-saga/effects'; @@ -577,10 +577,10 @@ describe('sumoSagas', () => { const iterator = sumoSagas(); expect(iterator.next().value).toEqual( all([ - takeLatest(USER_CHANGED_ACTIONS, onUserChange), + takeLeading(500, USER_CHANGED_ACTIONS, onUserChange), + takeLeading(500, SIGN_OUT_SUCCESS, onSignOut), takeLatest(SumoTypes.OPT_IN_REQUEST, onOptInRequest), takeLatest(SumoTypes.PROFILE_SUCCESS, persistOptInSetting), - debounce(500, SIGN_OUT_SUCCESS, onSignOut), takeLatest(TOKEN_CHANGED_ACTION, onTokenChanged), takeLatest(StartupTypes.MINI_APP_NAV_STACK_LOADED, onMiniAppReplay), ]), --- src/sumo/SumoRedux.ts @@ -84,7 +84,7 @@ export const getSumoOptIn = createSelector( ); export const getSumoProfile = createSelector( [getSumoState], - (state) => state.profile || {}, + (state) => state.profile, ); /* ------------- Reducers ------------- */ --- src/sumo/SumoSagas.ts @@ -8,9 +8,9 @@ import { call, take, put, - debounce, fork, retry, + takeLeading, } from 'redux-saga/effects'; import {User} from '@walmart/redux-store'; import WmNotification, { @@ -256,6 +256,7 @@ export function* onOptInRequest({optIn}: AnyAction) { // before callign register. Opt in at this time is unknown so will either // pull default from redux or read from async storage export function* onUserChange() { + console.log('calling user change'); yield call(waitForSumoCharge); const optIn: boolean = yield call(getOptInStatus); yield call(registerSumoUser, optIn); @@ -284,10 +285,11 @@ export function* onMiniAppReplay() { // Clearing all but charge state, since it is the same between users export function* onSignOut() { + console.log('calling sign out'); try { const profile: SumoProfile = yield select(getSumoProfile); // @ts-ignore - profileId is missing on SumoProfile definition - if (profile && profile.profileId) { + if (profile?.profileId) { yield call(WmNotification.unregister); } } catch (error) { @@ -301,10 +303,10 @@ export function* onSignOut() { export function* sumoSagas() { yield all( createRestartableSagas([ - takeLatest(USER_CHANGED_ACTIONS, onUserChange), + takeLeading(USER_CHANGED_ACTIONS, onUserChange), + takeLeading(SIGN_OUT_SUCCESS, onSignOut), takeLatest(SumoTypes.OPT_IN_REQUEST, onOptInRequest), takeLatest(SumoTypes.PROFILE_SUCCESS, persistOptInSetting), - debounce(500, SIGN_OUT_SUCCESS, onSignOut), takeLatest(TOKEN_CHANGED_ACTION, onTokenChanged), takeLatest(StartupTypes.MINI_APP_NAV_STACK_LOADED, onMiniAppReplay), ]),
Updating sumo registration saga to avoid rapid requests
Updating sumo registration saga to avoid rapid requests
bae6dd6fa70b267a69c44267408057ed89245997
--- __tests__/core/RootContainerTest.tsx @@ -32,6 +32,11 @@ jest.mock('../../src/core/wmConfigInit.ts', () => ({ jest.mock('react-native-splash-screen', () => ({ hide: jest.fn(), })); +jest.mock('@walmart/push-to-talk-mini-app', () => ({ + Components: { + NotificationsContainer: () => null, + }, +})); describe('RootContainer', () => { it('renders', () => { let component: ReactTestRenderer; --- ios/Podfile.lock @@ -396,7 +396,7 @@ PODS: - nanopb/encode (1.30906.0) - PromisesObjC (1.2.11) - Protobuf (3.13.0) - - PTT (0.3.6a): + - PTT (0.4.1): - BinaryCodable (~> 0.2.1) - CocoaMQTT/WebSockets (~> 1.3.0-rc.1) - RCTRequired (0.63.2) @@ -573,8 +573,8 @@ PODS: - React-Core - react-native-pdf (6.2.2): - React-Core - - react-native-ptt-module (1.1.46): - - PTT (= 0.3.6a) + - react-native-ptt-module (1.1.52): + - PTT (= 0.4.1) - React - react-native-safe-area-context (3.1.8): - React-Core @@ -667,6 +667,8 @@ PODS: - React - RNCPicker (1.8.1): - React-Core + - RNDateTimePicker (3.0.5): + - React-Core - RNDeviceInfo (5.6.5): - React - RNFBAnalytics (7.6.9): @@ -764,6 +766,7 @@ DEPENDENCIES: - "RNCClipboard (from `../node_modules/@react-native-community/clipboard`)" - "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)" - "RNCPicker (from `../node_modules/@react-native-community/picker`)" + - "RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)" - RNDeviceInfo (from `../node_modules/react-native-device-info`) - "RNFBAnalytics (from `../node_modules/@react-native-firebase/analytics`)" - "RNFBApp (from `../node_modules/@react-native-firebase/app`)" @@ -907,6 +910,8 @@ EXTERNAL SOURCES: :path: "../node_modules/@react-native-community/masked-view" RNCPicker: :path: "../node_modules/@react-native-community/picker" + RNDateTimePicker: + :path: "../node_modules/@react-native-community/datetimepicker" RNDeviceInfo: :path: "../node_modules/react-native-device-info" RNFBAnalytics: @@ -976,7 +981,7 @@ SPEC CHECKSUMS: nanopb: 59317e09cf1f1a0af72f12af412d54edf52603fc PromisesObjC: 8c196f5a328c2cba3e74624585467a557dcb482f Protobuf: 3dac39b34a08151c6d949560efe3f86134a3f748 - PTT: b3630bf50aa1e489789d51aaa8c4352fdd26e93d + PTT: 9d5bc615525be1e5e67b70ce3d68b218420c4dca RCTRequired: f13f25e7b12f925f1f6a6a8c69d929a03c0129fe RCTTypeSafety: 44982c5c8e43ff4141eb519a8ddc88059acd1f3a React: e1c65dd41cb9db13b99f24608e47dd595f28ca9a @@ -991,7 +996,7 @@ SPEC CHECKSUMS: react-native-logger: 27925eba2af5c4d574bcd9b5619b1607cca65f85 react-native-netinfo: e36c1bb6df27ab84aa933679b3f5bbf9d180b18f react-native-pdf: 4b5a9e4465a6a3b399e91dc4838eb44ddf716d1f - react-native-ptt-module: f2547b22755ae89bb64062d21c435c9d18465613 + react-native-ptt-module: 13375ca72ecbf2c1bc6b5456d8ae96e47f76679e react-native-safe-area-context: 01158a92c300895d79dee447e980672dc3fb85a6 react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865 react-native-sumo-sdk: 8a034fe724417d8c9465951630e229edef2f738f @@ -1016,6 +1021,7 @@ SPEC CHECKSUMS: RNCClipboard: 5e299c6df8e0c98f3d7416b86ae563d3a9f768a3 RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459 RNCPicker: 914b557e20b3b8317b084aca9ff4b4edb95f61e4 + RNDateTimePicker: ec9dd57ccf0d8c3661ea2d182661efcc1512be24 RNDeviceInfo: e841619c3dac5495a095c5455473579ff04908d4 RNFBAnalytics: 7d40b9b392fe2b8e6c2beeb119d1b090ed671c94 RNFBApp: 804b98033f45c3a3e35b56de8c894f85ef5e4388 --- package-lock.json @@ -1935,9 +1935,9 @@ "integrity": "sha512-iTkDEL7GeYYS8laso4ECQ7DyHgBxnJh/uP5PJNQMHZyKb8niIwIwb19HFLuGBVRa9vZIjTz7mChSydbIn4KV0w==" }, "@walmart/push-to-talk-mini-app": { - "version": "0.0.23", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.23.tgz", - "integrity": "sha512-AAEq+Lh1weT7sqEuQx9JcMHVH3J07Zms3SmpPdCUhT/44ZY56cf+PTKyVn5TZ5XuFWbumhInXX0Bq3KKeKhkgw==" + "version": "0.0.25", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.25.tgz", + "integrity": "sha512-uPR2o/6vATs3J3ciIGI8lwXzSO6sV4Bqhx6AY9Co6avYrZEy0GlpGtzEFXFEkB3bBwx+10eX0b/TeKafclwh6g==" }, "@walmart/react-native-env": { "version": "0.1.0", @@ -9127,9 +9127,9 @@ "integrity": "sha512-PO99dptMocEfUSS3SM7gY6UqophaBxizKjnZ7FcEwa+H4ONVxTk310/JCXJ9vdNunomgpxHluKRXnApfm9Md1w==" }, "react-native-ptt-module": { - "version": "1.1.46", - "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.46.tgz", - "integrity": "sha512-dN1Ja8L1Vdn072u6YqGn480fevUncdDcpo9gjM7A5MOeZTE1O7X1XJt23b7CXjkcVNNe2t4ng0QD3fHG2b03mw==" + "version": "1.1.52", + "resolved": "https://npme.walmart.com/react-native-ptt-module/-/react-native-ptt-module-1.1.52.tgz", + "integrity": "sha512-ix1Qm/Qp6vORkWHIFmEtYoNqMJwAW7bI8vazkEMduvgs7XJBcg+2vtz9BTdatCLFq1YMVjDv6EJQfPWsgMVnmA==" }, "react-native-qrcode-svg": { "version": "6.0.6", --- package.json @@ -47,7 +47,7 @@ "@walmart/functional-components": "^1.0.22", "@walmart/gtp-shared-components": "^0.2.2", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.0.23", + "@walmart/push-to-talk-mini-app": "0.0.25", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.14.0", "@walmart/react-native-shared-navigation": "^0.2.0", @@ -73,7 +73,7 @@ "react-native-modal": "^11.5.6", "react-native-pdf": "^6.2.0", "react-native-popup-menu": "^0.15.9", - "react-native-ptt-module": "1.1.46", + "react-native-ptt-module": "1.1.52", "react-native-qrcode-svg": "^6.0.6", "react-native-reanimated": "^1.10.2", "react-native-safe-area-context": "^3.1.3", --- src/core/RootContainer.tsx @@ -24,6 +24,7 @@ import {initWmConfig} from './wmConfigInit'; import {RootNav} from '../navigation'; import Config from '../../env'; +import {Components} from '@walmart/push-to-talk-mini-app'; initAnalyticsUserAttributes(); initCrashAttributes(); @@ -46,6 +47,7 @@ export const RootContainer = () => { redirectUri='com.walmart.stores.allspark.beta://SSOLogin' connectedSSO={connectedSSO}> <RootNav /> + <Components.NotificationsContainer /> </AuthenticatorView> </NavigationContainer> </Provider> --- src/navigation/Navigation.tsx @@ -211,6 +211,11 @@ const RootNav = () => ( component={Components.JoinGroupScreen} options={Properties.JoinGroupNavProperties} /> + <RootStack.Screen + name='PTTDndConfirmation' + component={Components.DndConfirmationScreen} + options={Properties.DndConfirmationNavProperties} + /> <RootStack.Screen name='timeClock' component={TimeClockScreen}
PTT version upgrade (#120)
PTT version upgrade (#120) * PTT version upgrade * mocking notification component
bab418171428e20a0bfc6747264e9e27f9336b23
--- packages/allspark-foundation/src/Elements/README.md @@ -1,17 +1,10 @@ # Allspark Elements -An `AllsparkElement` is a component whose creation and placement are separate from its update. +## Overview -This allows for a component to be created and placed, usually by a Container app, then updated at a later time by someone else, usually a Feature app. +An `AllsparkElement` is a component whose creation, update and render are separate. This helps with the separation of concerns between Features and Containers. -An `AllsparkElement` can have multiple sets of props added to it. Each set of props is called a record. How an Element is -ultimately displayed depends on the component used on the Element instance. - -A specific record can be used to create a single component with `<AllsparkElement.Container>`. - -Multiple records can be used to create a List component with `<AllsparkElement.List>`. - -`AllsparkBanners` and `AllsparkBadges` are examples of AllsparkElements. +Containers can create elements for features to update (e.g. Banners & Badges) or features can create elements for other features to use (i.e. a Widget Registry). ## Usage @@ -24,7 +17,7 @@ The `name` is responsible for identifying your element. We recommend prefixing t The `component` is used to render the element. ```tsx -import { AllsparkElement } from '@allspark/core'; +import { AllsparkElement } from '@walmart/allspark-foundation/Elements'; const Messages = AllsparkElements.createElement( 'Me@Walmart.Messages',
doc: update elements readme
doc: update elements readme
a9c7c66440f1775edc286e47669d77c9033b1d96
--- .looper.yml @@ -11,11 +11,14 @@ triggers: name: PR call: pr - manual: - name: Publish From Changes (TEST) + name: Publish call: publishFromChanges - manual: - name: Publish - call: publishAll + name: Publish from Package + call: publishFromPackage + - manual: + name: Publish from Git + call: publishFromGit flows: default: @@ -30,10 +33,14 @@ flows: - (name Install Dependencies) npm install - (name Build) npm run build - publishAll: + publishFromChanges: - call: preparePublish - - (name Publish) npm run publish + - (name Publish) npx lerna publish --yes - publishFromChanges: + publishFromPackage: + - call: preparePublish + - (name Publish from Package) npx lerna publish from-package + + publishFromGit: - call: preparePublish - - (name Publish Changed Packages) npx lerna publish --yes + - (name Publish from Git) npm run publish from-git
chore: add looper triggers for lerna publish flows
chore: add looper triggers for lerna publish flows
584c6fc774a208ce0a2a747f0fbf2fb3c8b2f253
--- ios/AllSpark.xcodeproj/project.pbxproj @@ -560,7 +560,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = D994751F557438D6B85DBCC2 /* Pods-AllSpark.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; @@ -607,7 +607,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 99D7C873A014A98046591001 /* Pods-AllSpark.release.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Beta"; + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-Dev"; CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AllSpark/AllSpark.entitlements; --- ios/AllSpark/Info.plist @@ -118,7 +118,7 @@ <string>remote-notification</string> </array> <key>UILaunchStoryboardName</key> - <string>LaunchScreen-Beta</string> + <string>LaunchScreen-Dev</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> --- src/whatsNew/WhatsNewScreen.tsx @@ -16,6 +16,7 @@ import {getValueForCurrentLanguage} from '../transforms/language'; import {Images} from '../images'; import {RestrictionNote} from './RestrictionNote'; import {getWhatsNew} from './WhatsNewSaga'; +import env from "../../env"; import { RecordText, WhatsNewConfig, @@ -79,6 +80,8 @@ export const WhatsNewScreen = () => { contentContainerStyle={styles.scrollContainer}> <SparkIcon size={32} color='#ffc220' /> <Text style={styles.title}>{translate('whatsNew.screenTitle')}</Text> + <Text>{env.deployment}</Text> + <Text>{env.associateAuthConfig.redirectUrl}</Text> <SolidCard color='white'
updated WhatsNewScreen.tsx
updated WhatsNewScreen.tsx
339500a6615f5638f773ba821abd8ebb3347b9ed
--- README.md @@ -89,7 +89,7 @@ yarn run:android Variant and Target are specified through the process variables `APP_VARIANT` and `TARGET`: ```bash -APP_VARIANT=dev TARGET=US yarn run command +EXPO_PUBLIC_APP_VARIANT=dev TARGET=US yarn run <command> ``` Predefined commands will prompt for these values when required. Once these variables are set they are stored locally in a `build.context.json` file for use in subsequent commands.
fix: ALLSPARK-12345 update README.md
fix: ALLSPARK-12345 update README.md
88d6b2cc5ca42f8b832d87a810fd0bfa1f0c0f3c
--- package-lock.json @@ -4260,9 +4260,9 @@ "integrity": "sha512-7nXe02E/AOFtT1u6/tVerIskwWvSoJcMgYN2DNH7vMgbb0YIFOsqwzX+nbRh/AcaZhC7YX5H2irVCc6/5/HjJw==" }, "@walmart/metrics-mini-app": { - "version": "0.5.1", - "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.1.tgz", - "integrity": "sha512-OmTIEe5xQUs5ECdHynK1AdXNgeGQ9bWWx/vwKY+xUzIu/NGH1QJunEt84ijXGulaC5zZpAiyBT5243z73jhcWA==", + "version": "0.5.2", + "resolved": "https://npme.walmart.com/@walmart/metrics-mini-app/-/metrics-mini-app-0.5.2.tgz", + "integrity": "sha512-7brDEaqD4oDkGHLxYY82+QOBVplAWoPlAvWU63z8hrW6Zl74GA/SR6cXrouHcZum2wSRp/ZkLJ25Sg6dBsHCsQ==", "requires": { "@types/base-64": "^1.0.0", "apisauce": "^1.1.2", --- package.json @@ -86,7 +86,7 @@ "@walmart/inbox-mini-app": "0.19.0", "@walmart/iteminfo-mini-app": "2.0.16", "@walmart/manager-approvals-miniapp": "0.0.58", - "@walmart/metrics-mini-app": "0.5.1", + "@walmart/metrics-mini-app": "0.5.2", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.39", "@walmart/react-native-env": "^0.2.0", --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -303,37 +303,22 @@ export const MainStackNav = () => { <MainStack.Screen component={SalesItemizedScreen} name='metricsSalesDrilldown' - options={{ - title: translate('navigation.salesDrilldownTitle'), - }} /> <MainStack.Screen component={PresubItemizedScreen} name='metricsPreSubDrilldown' - options={{ - title: translate('navigation.presubDrilldownTitle'), - }} /> <MainStack.Screen component={MetricsPreSubInfoModalScreen} name='metricsPreSubInfoModal' - options={{ - title: translate('navigation.presubInfoModalTitle'), - }} /> <MainStack.Screen component={MetricsFtprInfoModalScreen} name='metricsFtprInfoModal' - options={{ - title: translate('navigation.ftprInfoModalTitle'), - }} /> <MainStack.Screen component={MetricsFtprTabNavigation} name='metricsFTPDrilldown' - options={{ - title: translate('navigation.ftprDrilldownTitle'), - }} /> </MainStack.Navigator> --- src/translations/en-US.ts @@ -31,11 +31,6 @@ export const enUS = { featureRestrictions: 'Feature restrictions', whatsNew: "What's New", signInFailed: 'Sign in failed', - presubDrilldownTitle: 'Pre-substitution', - ftprDrilldownTitle: 'First Time Pick Percentage', - salesDrilldownTitle: 'Sales', - presubInfoModalTitle: 'What is Pre-substitution?', - ftprInfoModalTitle: 'What is First Time Pick Percentage?', }, updates: { timeToUpdateApp: "It's time to update your Me@Walmart beta app!", --- src/translations/es-MX.ts @@ -31,11 +31,6 @@ export const esMX = { featureRestrictions: 'Restricciones', whatsNew: 'Novedades en la app', signInFailed: 'Error al iniciar sesión', - presubDrilldownTitle: 'Pre-Sustitución', - ftprDrilldownTitle: 'Pick de Primera Vez', - salesDrilldownTitle: 'Ventas', - presubInfoModalTitle: '¿Qué es Pre-sustitución?', - ftprInfoModalTitle: '¿Qué es Pick de Primera Vez?', }, updates: { timeToUpdateApp: 'Actualiza Me@Walmart beta app!',
bumping metrics version
bumping metrics version
739217bb25fea8f64fa4509591a2d986364cb30f
--- ios/Podfile.lock @@ -763,7 +763,7 @@ PODS: - React - React-callinvoker - React-Core - - vizpick-mini-app (1.0.9-306-9ebb142): + - vizpick-mini-app (1.0.9-310-ab240ab): - React - walmart-react-native-sumo-sdk (2.5.1): - React @@ -1302,7 +1302,7 @@ SPEC CHECKSUMS: TextServiceProto: 8af27cc52ab3421f79c94e7c7fdcd6f3579b5fdc TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863 VisionCamera: 4cfd685b1e671fea4aa0400905ab397f0e972210 - vizpick-mini-app: 0fc2e91e9ca83a6a3da4443e5a935f642f7c5f5b + vizpick-mini-app: e8bc823aa8d0bd7fb66467fbb8bcbb489f9ac610 walmart-react-native-sumo-sdk: 0c9a5bd5f514bce7eed9f4a31b5d7b76ad6749a8 wifi-store-locator: 56782767136ebc63eeafa5b8a368a0321d8e1969 Yoga: dc109b79db907f0f589fc423e991b09ec42d2295 --- package-lock.json @@ -82,7 +82,7 @@ "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.34.6", "@walmart/time-clock-mini-app": "2.98.0", - "@walmart/topstock-mini-app": "1.0.9-306-9ebb142", + "@walmart/topstock-mini-app": "1.0.9-310-ab240ab", "@walmart/ui-components": "1.15.0", "@walmart/welcomeme-mini-app": "0.77.0", "@walmart/wfm-ui": "0.2.26", @@ -6103,9 +6103,9 @@ "license": "GPL-3.0-or-later" }, "node_modules/@walmart/topstock-mini-app": { - "version": "1.0.9-306-9ebb142", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.0.9-306-9ebb142.tgz", - "integrity": "sha512-cgagtaIO1teSXzVVBoRnHm9OeFd08+smLhdQH1cHmancCW9FyUOPXC2rK60yg6GcqKvxzh3IWIHLWU2zlEKRIA==", + "version": "1.0.9-310-ab240ab", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.0.9-310-ab240ab.tgz", + "integrity": "sha512-a25o++qd/aIqS0Wh/YYe2ePikTOi79zLW7vOxnWILeJtdCL7pw4BopXi/qXWemPvOPUEkpBPYgalVbQBJNXX7Q==", "dependencies": { "javascript-time-ago": "^2.5.7" }, @@ -25427,9 +25427,9 @@ "version": "1.0.4" }, "@walmart/topstock-mini-app": { - "version": "1.0.9-306-9ebb142", - "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.0.9-306-9ebb142.tgz", - "integrity": "sha512-cgagtaIO1teSXzVVBoRnHm9OeFd08+smLhdQH1cHmancCW9FyUOPXC2rK60yg6GcqKvxzh3IWIHLWU2zlEKRIA==", + "version": "1.0.9-310-ab240ab", + "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.0.9-310-ab240ab.tgz", + "integrity": "sha512-a25o++qd/aIqS0Wh/YYe2ePikTOi79zLW7vOxnWILeJtdCL7pw4BopXi/qXWemPvOPUEkpBPYgalVbQBJNXX7Q==", "requires": { "javascript-time-ago": "^2.5.7" } --- package.json @@ -124,7 +124,7 @@ "@walmart/shelfavailability-mini-app": "1.5.16", "@walmart/taskit-mini-app": "2.34.6", "@walmart/time-clock-mini-app": "2.98.0", - "@walmart/topstock-mini-app": "1.0.9-306-9ebb142", + "@walmart/topstock-mini-app": "1.0.9-310-ab240ab", "@walmart/ui-components": "1.15.0", "@walmart/welcomeme-mini-app": "0.77.0", "@walmart/wfm-ui": "0.2.26",
feat(banner): added banner support VS-2348
feat(banner): added banner support VS-2348
a75cdd12a628da15e054cc18df9d5d11edc4042a
--- package-lock.json @@ -8930,7 +8930,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-sumo-sdk": "2.6.0", "@walmart/redux-store": "3.5.0", - "@walmart/taskit-mini-app": "2.47.9", + "@walmart/taskit-mini-app": "v2.56.0-953-0c9b829", "@walmart/ui-components": "1.15.1", "axios": "~1.2.6", "i18next": "^22.0.1",
update taskit for NR fast image
update taskit for NR fast image
2bf4d1feddc069a44334345dd5d4c14909b2c740
--- packages/me-at-walmart-container/__tests__/services/config.test.ts @@ -1,25 +1,13 @@ -jest.mock('../../src/services/config', () => { - const originalModule = jest.requireActual('../../src/services/config'); - const EventManagerMock = { - runEvent: jest.fn(), - }; - return { - ...originalModule, - ChangeEventManager: EventManagerMock, - testFn: jest.fn(), - - }; -}); - - - jest.mock('@walmart/config-components', () => { const originalModule = jest.requireActual('@walmart/config-components'); return { ...originalModule, AppConfig: { initialize: jest.fn(), + fetchAppConfig: jest.fn(), + removeAppConfigListener: jest.fn(), + addAppConfigListener: jest.fn(), }, }; }); @@ -31,17 +19,47 @@ import { IMeAtWalmartConfigService, MeAtWalmartConfigFetchParams, ChangeEventManager , actualListener, -initialize +initialize, fetch } from '../../src/services/config'; import { AppConfig, - } from '@walmart/config-components'; +describe('actualListener', () => { + afterEach(() => { + jest.clearAllMocks(); + }); + + it('should not call ChangeEventManager.runEvent when result is undefined', () => { + + + const runEventSpy = jest.spyOn(ChangeEventManager, 'runEvent'); + actualListener(undefined); + expect( runEventSpy ).not.toHaveBeenCalled(); + }); + + + + it('should call ChangeEventManager.runEvent when result is defined', () => { + const result = { + configs: ['config1', 'config2'], + }; + const runEventSpy = jest.spyOn(ChangeEventManager, 'runEvent'); + actualListener(result); + + expect(runEventSpy).toHaveBeenCalledWith('config_change', result.configs); + + }); +}); + + + + + describe('initialize', () => { afterEach(() => { jest.clearAllMocks(); @@ -71,30 +89,52 @@ describe('initialize', () => { }); - - -describe('actualListener', () => { +describe('fetch', () => { afterEach(() => { jest.clearAllMocks(); - jest.spyOn(console, 'log').mockImplementation(() => {}) }); - it('should not call ChangeEventManager.runEvent when result is undefined', () => { - actualListener(undefined); - expect(ChangeEventManager.runEvent).not.toHaveBeenCalled(); - }); + it('should call fetchAppConfig with correct arguments and manage listeners', async () => { + const mockConfig = { key: 'value', forceRefresh: true }; // Replace with actual AppConfigFetchParams + const mockData = { some: 'data' }; // Mocked return data + (AppConfig.fetchAppConfig as jest.Mock).mockResolvedValueOnce(mockData); - it('should call ChangeEventManager.runEvent with the correct arguments when result is defined', () => { - const mockResult = { - configs: { queueUnhandledEvents: true }, - changes: [], - }; + const result = await fetch(mockConfig); - actualListener(mockResult); + // Assertions for fetchAppConfig + expect(AppConfig.fetchAppConfig).toHaveBeenCalledTimes(1); + expect(AppConfig.fetchAppConfig).toHaveBeenCalledWith(mockConfig, true); - expect(ChangeEventManager.runEvent).toHaveBeenCalledTimes(1); - expect(ChangeEventManager.runEvent).toHaveBeenCalledWith('config_change', mockResult.configs); - }); + // Assertions for listener removal and addition + expect(AppConfig.removeAppConfigListener).toHaveBeenCalledTimes(1); + expect(AppConfig.removeAppConfigListener).toHaveBeenCalledWith(LISTENER_KEY); + + expect(AppConfig.addAppConfigListener).toHaveBeenCalledTimes(1); + expect(AppConfig.addAppConfigListener).toHaveBeenCalledWith( + LISTENER_KEY, + { key: 'value' }, // `scope` after removing `forceRefresh` + actualListener + ); + + // Result assertion + expect(result).toEqual(mockData); + }); + + it('should throw an error if fetchAppConfig rejects', async () => { + const mockConfig = { key: 'value', forceRefresh: false }; + const mockError = new Error('Fetch failed'); + (AppConfig.fetchAppConfig as jest.Mock).mockRejectedValueOnce(mockError); + + await expect(fetch(mockConfig)).rejects.toThrow('Fetch failed'); + + // Assertions for fetchAppConfig + expect(AppConfig.fetchAppConfig).toHaveBeenCalledTimes(1); + expect(AppConfig.fetchAppConfig).toHaveBeenCalledWith(mockConfig, false); + + // Assertions for listener removal and addition (should not be called due to rejection) + expect(AppConfig.removeAppConfigListener).not.toHaveBeenCalled(); + expect(AppConfig.addAppConfigListener).not.toHaveBeenCalled(); + }); }); --- packages/me-at-walmart-container/src/services/config.ts @@ -27,7 +27,6 @@ export const ChangeEventManager = new EventManager<{config_change: ConfigData}>( // Actual change listener we'll add to AppConfig export const actualListener = (result: AppConfigCallbackHandlerResult | undefined) => { - if (result) { ChangeEventManager.runEvent('config_change', result.configs); } @@ -40,7 +39,7 @@ export const initialize = async (config: AppConfigInitParams) => { // On successful fetch, add change listener for the scope that was just fetched. // Remove current listener if it exists. -const fetch = async ( +export const fetch = async ( config: AppConfigFetchParams & {forceRefresh?: boolean}, ) => { const {forceRefresh, ...scope} = config;
added test case for fetch function in packages/me-at-walmart-container/src/services/config.ts
added test case for fetch function in packages/me-at-walmart-container/src/services/config.ts
8a0baad5606c0898e8b2e37887582a4d296afc87
--- targets/US/package.json @@ -140,7 +140,7 @@ "@walmart/redux-store": "~6.3.28", "@walmart/returns-mini-app": "4.15.0", "@walmart/rfid-scan-mini-app": "2.6.3", - "@walmart/rn-receiving-mini-app": "2.4.34", + "@walmart/rn-receiving-mini-app": "2.4.35", "@walmart/roster-mini-app": "2.9.0", "@walmart/schedule-mini-app": "0.118.2", "@walmart/shelfavailability-mini-app": "1.5.37", --- yarn.lock @@ -7055,7 +7055,7 @@ __metadata: "@walmart/redux-store": "npm:~6.3.28" "@walmart/returns-mini-app": "npm:4.15.0" "@walmart/rfid-scan-mini-app": "npm:2.6.3" - "@walmart/rn-receiving-mini-app": "npm:2.4.34" + "@walmart/rn-receiving-mini-app": "npm:2.4.35" "@walmart/roster-mini-app": "npm:2.9.0" "@walmart/schedule-mini-app": "npm:0.118.2" "@walmart/shelfavailability-mini-app": "npm:1.5.37" @@ -7769,9 +7769,9 @@ __metadata: languageName: node linkType: hard -"@walmart/rn-receiving-mini-app@npm:2.4.34": - version: 2.4.34 - resolution: "@walmart/rn-receiving-mini-app@npm:2.4.34" +"@walmart/rn-receiving-mini-app@npm:2.4.35": + version: 2.4.35 + resolution: "@walmart/rn-receiving-mini-app@npm:2.4.35" dependencies: "@walmart/atlas-rn-ui-components": "npm:1.1.35" "@walmart/loadquality-mini-app": "npm:1.0.156" @@ -7797,7 +7797,7 @@ __metadata: react-native-svg: ">=14.1.0" react-native-svg-transformer: ">=1.1.0" react-native-vision-camera: ^2.16.8 - checksum: 10c0/3e900c99e94975b97fb33798dd11d5ee31317037cb3d1e39df3c7bbb9c5d6abbcd4d6f7f0961731388f4ece53d06b12aa974c956c04d25d9a1b9a49d9db831d8 + checksum: 10c0/206044dd6915d2d2bb07a9191fbee524e350e5d141826e100a3568c32c81c12c5017beb04ceccb8bec77dc23c91905dc24ae296bb089b3a87f77e4b9c7792a50 languageName: node linkType: hard
Upgrade ura: 2.4.35
Upgrade ura: 2.4.35
d72dcba6923592d32e0f1ca59332d5eb748c7e24
--- packages/allspark-foundation/__tests__/Components/TeamListItem.test.tsx @@ -110,12 +110,4 @@ describe('TeamListItem', () => { ); expect(checkbox.props.accessibilityState.checked).not.toBeTruthy(); }); - - it('displays loading list item when isLoading is true', () => { - const { getByTestId } = render( - <TeamListItem {...allTeamsProps} isLoading /> - ); - const loadingListItem = getByTestId('loading-list-item'); - expect(loadingListItem).toBeTruthy(); - }); }); --- packages/allspark-foundation/src/Components/TeamListItem/LoadingListItem.tsx @@ -1,9 +0,0 @@ -import React from 'react'; -import { ListItem, SkeletonText } from '@walmart/gtp-shared-components/dist'; -import { loadingListItemStyles as styles } from './styles'; - -export const LoadingListItem = () => ( - <ListItem UNSAFE_style={styles.listItem} testID='loading-list-item'> - <SkeletonText lines={2} UNSAFE_style={styles.loadingSkeleton} /> - </ListItem> -); --- packages/allspark-foundation/src/Components/TeamListItem/TeamListItem.tsx @@ -9,13 +9,11 @@ import { } from '@walmart/gtp-shared-components/dist'; import { images } from './images'; import { TeamListItemProps } from './types'; -import { LoadingListItem } from './LoadingListItem'; export const TeamListItem = ({ checkboxDisabled, iconType, isLastListItem = false, - isLoading = false, isSelected, isPrimaryTeam = false, primaryTeamText, @@ -30,9 +28,7 @@ export const TeamListItem = ({ ); const TeamImage = useTeamHubImage(); - return isLoading ? ( - <LoadingListItem /> - ) : ( + return ( <View style={styles.container} testID='team-list-item'> <View style={styles.teamOuterContainer}> <TeamImage --- packages/allspark-foundation/src/Components/TeamListItem/types.ts @@ -2,7 +2,6 @@ export interface TeamListItemProps { checkboxDisabled?: boolean; iconType?: 'checkbox' | 'navArrow'; isLastListItem?: boolean; - isLoading?: boolean; isSelected?: boolean; isPrimaryTeam?: boolean; primaryTeamText?: string;
feat: remove loading from team list item
feat: remove loading from team list item
e256b82059873411beb92237f6f7f4d372803de7
--- .looper.multibranch.yml @@ -7,5 +7,5 @@ envs: global: variables: ANDROID_ANALYZE_SIZE_ENABLED: true - ALLSPARK_STRIP_BINARY_SYMBOLS: true + ALLSPARK_STRIP_BINARY_SYMBOLS: false \ No newline at end of file --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart", - "version": "1.33.2", + "version": "1.33.3", "main": "index.js", "private": true, "workspaces": [
fix(strip-disable): disabled symbol stripping
fix(strip-disable): disabled symbol stripping
fea28b14397472696ce49295f151db79f131ce65
--- src/queries/getDailyRoster.ts @@ -15,7 +15,7 @@ export type GetDailyRosterQuery = { __typename?: 'Query'; getDailyRoster?: Array<{ __typename: 'MewAssociate'; - associateId: string; + associateId?: string | null; firstName?: string | null; fullName?: string | null; jobCategoryCodeDesc?: string | null; --- src/queries/getDailyRoster.ts @@ -15,7 +15,7 @@ export type GetDailyRosterQuery = { __typename?: 'Query'; getDailyRoster?: Array<{ __typename: 'MewAssociate'; - associateId: string; + associateId?: string | null; firstName?: string | null; fullName?: string | null; jobCategoryCodeDesc?: string | null;
reverting change to query
reverting change to query
669778c1c86ba5f69845acbbbb617e0cc45cd080
--- ios/Podfile.lock @@ -538,7 +538,7 @@ PODS: - RCTTypeSafety - React - ReactCommon/turbomodule/core - - react-native-scanner-3.0 (0.1.33-rc.6): + - react-native-scanner-3.0 (0.1.33-rc.7): - Firebase/Analytics - React - ScanditBarcodeCapture (= 6.14.0) @@ -556,7 +556,7 @@ PODS: - React-Core - react-native-wm-app-review (0.4.0): - React-Core - - react-native-wm-vizpick-shell (1.1.2-rc.2): + - react-native-wm-vizpick-shell (1.1.2-rc.4): - React - react-native-wm-voice-text (1.0.1): - React @@ -1225,13 +1225,13 @@ SPEC CHECKSUMS: react-native-ptt-module: 47e1b73551afa3830155cc92f4809d06c38e5eca react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe react-native-safe-area-context: 6c12e3859b6f27b25de4fee8201cfb858432d8de - react-native-scanner-3.0: 97dcfcef22227545ea9b2da0c584c910dfed59bd + react-native-scanner-3.0: d82d70eee5bb48b6707a4d64811786c4a3f1d518 react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-view-shot: 792829857bbb23a9c8acdad9a640554bdee397a3 react-native-webview: d33e2db8925d090871ffeb232dfa50cb3a727581 react-native-wm-app-review: eff89fab61d28c3bf7106419717d4aeb6c5aa6f2 - react-native-wm-vizpick-shell: 08648e4f05d6a5ed3f9465136bfd71122b56fa46 + react-native-wm-vizpick-shell: 2f30eaa112fb60413e62840d9a1ff3ddf64e4b42 react-native-wm-voice-text: 0658ee8e9d8e9e3df0f48dd49115f804ac0e8896 React-perflogger: cce000b5caa4bcecbb29ee9cfdb47f26202d2599 React-RCTActionSheet: ba29f52a82d970e2aba5804490ecaea587c7a751 --- package-lock.json @@ -69,7 +69,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.33.0", - "@walmart/react-native-scanner-3.0": "0.1.33-rc.6", + "@walmart/react-native-scanner-3.0": "0.1.33-rc.7", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1", @@ -161,7 +161,7 @@ "react-native-wm-network": "0.2.0", "react-native-wm-notification": "2.0.1", "react-native-wm-telemetry": "0.4.0", - "react-native-wm-vizpick-shell": "1.1.2-rc.2", + "react-native-wm-vizpick-shell": "1.1.2-rc.4", "react-native-wm-voice-text": "1.0.1", "react-redux": "^8.0.4", "realm": "11.2.0", @@ -5766,9 +5766,9 @@ } }, "node_modules/@walmart/react-native-scanner-3.0": { - "version": "0.1.33-rc.6", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.6.tgz", - "integrity": "sha512-6QZWSMBxrAlK570l+CRPptvyfSrctRwhotKv5G7mfRwoeK8KtFcLDi6dyUFUcNn54RFsSrdZ8yPWwbODu9eOTw==", + "version": "0.1.33-rc.7", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.7.tgz", + "integrity": "sha512-Fx6mVL7xW2Wwsp/T9Ff1X71zXqQVnqjcsQWA/d/VLrD4jWgvFTrAD9FpNJHcLxsUqBCtbDyR0sF6+NkNW4JrWg==", "license": "ISC", "peerDependencies": { "react-native": ">=0.47.1" @@ -18357,7 +18357,9 @@ } }, "node_modules/react-native-wm-vizpick-shell": { - "version": "1.1.2-rc.2", + "version": "1.1.2-rc.4", + "resolved": "https://npme.walmart.com/react-native-wm-vizpick-shell/-/react-native-wm-vizpick-shell-1.1.2-rc.4.tgz", + "integrity": "sha512-4+unMjnMvZBWT50yXQzgT6k5wih0IOpwg4uTvp3kqwgb8BCCPpGoHlrGEXbdAnM/AbF1D3e6DURo1gzoMJ5BEQ==", "license": "UNLICENSED" }, "node_modules/react-native-wm-voice-text": { @@ -25301,9 +25303,9 @@ "version": "1.33.0" }, "@walmart/react-native-scanner-3.0": { - "version": "0.1.33-rc.6", - "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.6.tgz", - "integrity": "sha512-6QZWSMBxrAlK570l+CRPptvyfSrctRwhotKv5G7mfRwoeK8KtFcLDi6dyUFUcNn54RFsSrdZ8yPWwbODu9eOTw==" + "version": "0.1.33-rc.7", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.33-rc.7.tgz", + "integrity": "sha512-Fx6mVL7xW2Wwsp/T9Ff1X71zXqQVnqjcsQWA/d/VLrD4jWgvFTrAD9FpNJHcLxsUqBCtbDyR0sF6+NkNW4JrWg==" }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", @@ -33218,7 +33220,9 @@ "version": "0.4.0" }, "react-native-wm-vizpick-shell": { - "version": "1.1.2-rc.2" + "version": "1.1.2-rc.4", + "resolved": "https://npme.walmart.com/react-native-wm-vizpick-shell/-/react-native-wm-vizpick-shell-1.1.2-rc.4.tgz", + "integrity": "sha512-4+unMjnMvZBWT50yXQzgT6k5wih0IOpwg4uTvp3kqwgb8BCCPpGoHlrGEXbdAnM/AbF1D3e6DURo1gzoMJ5BEQ==" }, "react-native-wm-voice-text": { "version": "1.0.1" --- package.json @@ -111,7 +111,7 @@ "@walmart/react-native-encrypted-storage": "1.1.3", "@walmart/react-native-env": "0.2.0", "@walmart/react-native-logger": "1.33.0", - "@walmart/react-native-scanner-3.0": "0.1.33-rc.6", + "@walmart/react-native-scanner-3.0": "0.1.33-rc.7", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.1", @@ -203,7 +203,7 @@ "react-native-wm-network": "0.2.0", "react-native-wm-notification": "2.0.1", "react-native-wm-telemetry": "0.4.0", - "react-native-wm-vizpick-shell": "1.1.2-rc.2", + "react-native-wm-vizpick-shell": "1.1.2-rc.4", "react-native-wm-voice-text": "1.0.1", "react-redux": "^8.0.4", "realm": "11.2.0",
scanner and shell version update
scanner and shell version update
158c8dc3d9197b224d76b7925cd30e775bbf93e0
--- package.json @@ -147,7 +147,7 @@ "@walmart/rn-mobile-sdk-pairing": "2.1.8", "@walmart/rn-receiving-mini-app": "2.4.97", "@walmart/roster-mini-app": "3.2.0", - "@walmart/schedule-mini-app": "2.1.3", + "@walmart/schedule-mini-app": "2.2.0", "@walmart/shelfavailability-mini-app": "1.5.45", "@walmart/shop-gnfr-mini-app": "1.0.302", "@walmart/sidekick-mini-app": "4.199.7", --- yarn.lock @@ -7479,7 +7479,7 @@ __metadata: "@walmart/rn-mobile-sdk-pairing": "npm:2.1.8" "@walmart/rn-receiving-mini-app": "npm:2.4.97" "@walmart/roster-mini-app": "npm:3.2.0" - "@walmart/schedule-mini-app": "npm:2.1.3" + "@walmart/schedule-mini-app": "npm:2.2.0" "@walmart/shelfavailability-mini-app": "npm:1.5.45" "@walmart/shop-gnfr-mini-app": "npm:1.0.302" "@walmart/sidekick-mini-app": "npm:4.199.7" @@ -8167,9 +8167,9 @@ __metadata: languageName: node linkType: hard -"@walmart/schedule-mini-app@npm:2.1.3": - version: 2.1.3 - resolution: "@walmart/schedule-mini-app@npm:2.1.3::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2F%40walmart%2Fschedule-mini-app-2.1.3.tgz" +"@walmart/schedule-mini-app@npm:2.2.0": + version: 2.2.0 + resolution: "@walmart/schedule-mini-app@npm:2.2.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2F%40walmart%2Fschedule-mini-app-2.2.0.tgz" dependencies: "@walmart/moment-walmart": "npm:^1.0.4" "@walmart/wfm-ui": "npm:^3.0.2" @@ -8201,7 +8201,7 @@ __metadata: react-redux: ">=7.2.1" redux: ">=4.0.5" reselect: ">=4.0.0" - checksum: 10c0/127fbd3769aace3e0404c617dbcc750036081dc05d2052348f3588db9e5d7381bb99f989bc7adb5ffc66363a80ee8fb9e10e57a83f1034ce46289e17a833b33a + checksum: 10c0/253b9dfa5d8b400a602a8e38d8cdd3a33560017761ffacfeb6d829ad0a77b86f67eeb84bf5c6cab0018c106ca82ce9dd6f7fb7c50a18f2b87241ebefe6bb9112 languageName: node linkType: hard
fix(schedules): schedules bugfix for LA-FWW feature (#4386)
fix(schedules): schedules bugfix for LA-FWW feature (#4386)
4db74aece1c858f7477fec595117bf4065790584
--- package.json @@ -14,9 +14,7 @@ "test": "TZ=UTC jest", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:fix": "eslint ./src ./__tests__ --ext .js,.jsx,.ts,.tsx --fix", - "copy:images": "cp -r ./src/images ./dist/", - "copy:media": "cp -r ./src/media ./dist/", - "build": "npm config fix && rm -rf ./dist && tsc && npm run copy:images && npm run copy:media", + "build": "npm config fix && rm -rf ./dist && tsc && npm run", "env:dev": "cp ./container/env.dev.ts ./container/env.ts", "env:teflon": "cp ./container/env.teflon.ts ./container/env.ts", "env:beta": "cp ./container/env.beta.ts ./container/env.ts",
remove unused build scripts
remove unused build scripts
54700bcde1a66b6bcde4b0d16148eef2b89c75f2
--- src/components/TeamList.tsx @@ -153,6 +153,7 @@ const teamIconMap = { '1000123': Images.remodel, '1000284': Images.home, '1000343': Images.salesFloor, + '1000100': Images.adminSupport, '1111111': Images.management, }; --- src/images/index.ts @@ -23,6 +23,7 @@ export const Images = { 'wave-yellow': require('./siri-wave-yellow.png'), emptyTextMessages: require('./EmptyTextMessages.png'), management: require('./teamIcons/TotalStore.png'), + adminSupport: require('./teamIcons/TotalStore.png'), salesFloor: require('./teamIcons/SalesFloor.png'), textinDisabledWarning: require('./TextingDisabled.png'), }; --- src/components/TeamList.tsx @@ -153,6 +153,7 @@ const teamIconMap = { '1000123': Images.remodel, '1000284': Images.home, '1000343': Images.salesFloor, + '1000100': Images.adminSupport, '1111111': Images.management, }; --- src/images/index.ts @@ -23,6 +23,7 @@ export const Images = { 'wave-yellow': require('./siri-wave-yellow.png'), emptyTextMessages: require('./EmptyTextMessages.png'), management: require('./teamIcons/TotalStore.png'), + adminSupport: require('./teamIcons/TotalStore.png'), salesFloor: require('./teamIcons/SalesFloor.png'), textinDisabledWarning: require('./TextingDisabled.png'), };
update the team image for admin and support
update the team image for admin and support
fb44acf75aefbcc9577adcb040a038b0762de44e
--- packages/allspark-foundation/__tests__/Navigation/__snapshots__/DrawerButton.test.tsx.snap @@ -28,32 +28,3 @@ exports[`Navigation/components/DrawerButton should render DrawerButton snapshot />, ] `; - -exports[`Navigation/components/DrawerButton should render snapshot 1`] = ` -[ - <IconButton - UNSAFE_style={{}} - color="white" - disabled={false} - onPress={[Function]} - size="medium" - testID="navigationMenu" - > - <MenuIcon - UNSAFE_style={{}} - /> - </IconButton>, - <View - style={ - [ - { - "position": "absolute", - "right": 0, - "top": 10, - }, - {}, - ] - } - />, -] -`; --- yarn.lock @@ -6231,6 +6231,7 @@ __metadata: react: "npm:^18.2.0" react-native: "npm:~0.73.7" react-test-renderer: "npm:18.2.0" + redux-saga-test-plan: "npm:^4.0.6" typescript: "npm:^4.7.4" languageName: unknown linkType: soft @@ -9585,6 +9586,13 @@ __metadata: languageName: node linkType: hard +"fsm-iterator@npm:^1.1.0": + version: 1.1.0 + resolution: "fsm-iterator@npm:1.1.0" + checksum: 10c0/9d86936d1a957c3d8bd5a4ea7205ff360459e051c3feb95bc6b08fe38169f78fe81f010ff5c705e62d433bd667d7daf74cb3451b4f85a9258f4ba672a9f666f2 + languageName: node + linkType: hard + "function-bind@npm:^1.1.2": version: 1.1.2 resolution: "function-bind@npm:1.1.2" @@ -12254,6 +12262,13 @@ __metadata: languageName: node linkType: hard +"lodash.isequal@npm:^4.5.0": + version: 4.5.0 + resolution: "lodash.isequal@npm:4.5.0" + checksum: 10c0/dfdb2356db19631a4b445d5f37868a095e2402292d59539a987f134a8778c62a2810c2452d11ae9e6dcac71fc9de40a6fedcb20e2952a15b431ad8b29e50e28f + languageName: node + linkType: hard + "lodash.ismatch@npm:^4.4.0": version: 4.4.0 resolution: "lodash.ismatch@npm:4.4.0" @@ -15454,6 +15469,21 @@ __metadata: languageName: node linkType: hard +"redux-saga-test-plan@npm:^4.0.6": + version: 4.0.6 + resolution: "redux-saga-test-plan@npm:4.0.6" + dependencies: + fsm-iterator: "npm:^1.1.0" + lodash.isequal: "npm:^4.5.0" + lodash.ismatch: "npm:^4.4.0" + peerDependencies: + "@redux-saga/is": ^1.0.1 + "@redux-saga/symbols": ^1.0.1 + redux-saga: ^1.0.1 + checksum: 10c0/0a2882d5cc9d70cce71f8f9c93f61db5905bdda4077b42160100a3b680daba200fd83f4f3be4c79d5f116b71e3d20268813f031b302cc6f88200f83b46b6f069 + languageName: node + linkType: hard + "redux-saga@npm:^1.2.3": version: 1.3.0 resolution: "redux-saga@npm:1.3.0"
added yarn lock changes
added yarn lock changes
47fdd2e7b39175d626eaece87c61eb501a79460c
--- env.teflon.js @@ -1,7 +1,5 @@ export default { - // TODO - change below to "teflon" once one or more mini apps are ready; be aware some mini apps may fail or default to prod untiil they are updated to handle another environment - env: 'dev', - // TODO - change below to "teflon" once CCM is ready + env: 'teflon', deployment: 'teflon', consumerId: 'b5fc6fe0-5927-44a6-a693-6e922e830b04', pingFedEnv: 'CERT',
update teflon env file
update teflon env file
723df871190d6356677e285b185035e883d429ae
--- .looper.multibranch.yml @@ -62,7 +62,7 @@ flows: - call: mini-pr - call: sonar-scan-pr - (name Scanning Walmart Packages) npm run lint:changed-walmart-libs ${GITHUB_PR_TARGET_BRANCH} - - (name Set Environment and Run Check) export GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" && export GITHUB_PR_NUMBER="${GITHUB_PR_NUMBER}" && export GITHUB_PR_TARGET_BRANCH="${GITHUB_PR_TARGET_BRANCH:-main}" && export GITHUB_PR_SOURCE_BRANCH="${GITHUB_PR_SOURCE_BRANCH}" && export GITHUB_BASE_REF="${GITHUB_PR_TARGET_BRANCH:-main}" && export GITHUB_HEAD_REF="${GITHUB_PR_SOURCE_BRANCH}" && echo "Token length - $(echo "${GITHUB_TOKEN}" | wc -c)" && npx ts-node scripts/mini-app-scan/package-deprecation-check.ts "${GITHUB_PR_TARGET_BRANCH:-main}" + - (name Set Environment and Run Check) export GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" && export GITHUB_PR_NUMBER="${GITHUB_PR_NUMBER}" && export GITHUB_PR_TARGET_BRANCH="${GITHUB_PR_TARGET_BRANCH:-main}" && export GITHUB_PR_SOURCE_BRANCH="${GITHUB_PR_SOURCE_BRANCH}" && npx ts-node scripts/mini-app-scan/package-deprecation-check.ts "${GITHUB_PR_TARGET_BRANCH:-main}" - call: slack-notification-pr(slack-pr) mini-pr: # overridden for new bundle js command
fix(package-dep): remove unused env variables
fix(package-dep): remove unused env variables
6958cb2167ca23b5d1b084b4e2a6a5f087d06358
--- src/auth/ErrorScreen.tsx @@ -38,7 +38,7 @@ export const ErrorScreen: FC<any> = (props) => { const [siteId, setSiteId] = useState(''); const [detail, setDetail] = useState(''); const [formDirty, setFormDirty] = useState(false); - const [selectedValue, setSelectedValue] = useState(''); + const [errorCategory, seterrorCategory] = useState(''); const [selectedQ1Options, setselectedQ1Options] = useState([0, '1']); const [selectedQ2Option, setSelectedQ2Option] = useState(''); @@ -171,11 +171,11 @@ export const ErrorScreen: FC<any> = (props) => { )} <Dropdown style={styles.input} - value={selectedValue} + value={errorCategory} values={getIssueList()} // todo label={translate('ssoError.selectIssue')} onSelect={(itemValue: string) => { - setSelectedValue(itemValue); + seterrorCategory(itemValue); }} /> </View> @@ -192,7 +192,7 @@ export const ErrorScreen: FC<any> = (props) => { )} </View> - {selectedValue === translate('ssoError.issues.other') && ( + {errorCategory === translate('ssoError.issues.other') && ( <View> <Text style={styles.fieldTitle}> {translate('ssoError.otherIssue.q1')}
refactor var name
refactor var name
780be34a94f286252c607a5c24bb20db5630cec9
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [3.8.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.7.0...v3.8.0) (2025-09-22) + + +### Features + +* **ui:** updated version ([a2ae244](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/a2ae244c5c0ecc7397a0420b1b34a4a9c8c9cb08)) + # [3.7.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.6.0...v3.7.0) (2025-09-17) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/roster-mini-app", - "version": "3.7.0", + "version": "3.8.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.8.0 [skip ci]
chore(release): 3.8.0 [skip ci] # [3.8.0](https://gecgithub01.walmart.com/smdv/roster-miniapp/compare/v3.7.0...v3.8.0) (2025-09-22) ### Features * **ui:** updated version ([a2ae244](https://gecgithub01.walmart.com/smdv/roster-miniapp/commit/a2ae244c5c0ecc7397a0420b1b34a4a9c8c9cb08))
32ded14210d637f7f0f5d1e461ccf9a1c6391a5d
--- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.28", + "version": "2.0.29", "private": false, "main": "bundle/dist/index.js", "files": [ --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/texting-mini-app", - "version": "2.0.28", + "version": "2.0.29", "private": false, "main": "bundle/dist/index.js", "files": [
Update texting mini app version
Update texting mini app version
27f9f90193b1e5c36628090f0bdd1b4ce628f9da
--- src/index.tsx @@ -9,6 +9,7 @@ import {initi18n} from './translations'; import {ClockedOutScreenGuard} from './components/ClockedOutScreenGuard'; import {SafeAreaProvider} from 'react-native-safe-area-context'; import {getHttpConfig, HTTP_CLIENT_KEY} from './services/config'; +import {PresenceProvider} from '@walmart/wmconnect-mini-app'; export const LOGGER_FIELDS = {id: 'myTeam-mini-app'}; @@ -47,7 +48,7 @@ export const TextingMiniApp = () => { <HttpClientCloneProvider id={HTTP_CLIENT_KEY} config={httpConfig}> <ClockedOutScreenGuard> <PresenceProvider> - <TextingNavigation /> + <TextingNavigation /> </PresenceProvider> </ClockedOutScreenGuard> </HttpClientCloneProvider>
Update version
Update version
3971ae78979ce8539670f9c903b80745e5df1f1d
--- graphql.yml @@ -15,10 +15,10 @@ applications: hash: 'f47967b84a2c8ea52dceb45d4650a9cd62ad19a6b545cb63288b3acd085a4194' queryTemplate: 'packages/me-at-walmart-athena-queries/src/businessUnitByCountryAndNumber.graphql' tags: - - 'v1' - - name: 'getAssociateById' - hash: '0a06f624828f31fa5f8a13615385e1c3c4424732132e432655f4a45962a7fa22' - queryTemplate: 'packages/me-at-walmart-athena-queries/src/getAssociateById.graphql' + - "v1" + - name: "getAssociateById" + hash: "74d18daff6c8fbc929d25f81238dc140da7e18eac04e4120c334cf6e1b06c6b0" + queryTemplate: "packages/me-at-walmart-athena-queries/src/getAssociateById.graphql" tags: - 'v1' - name: 'getAssociatePreferences' --- packages/me-at-walmart-athena-queries/src/getAssociateById.graphql @@ -49,25 +49,50 @@ query getAssociateById($idType: idType = USERID, $userId: String!) { lastPunchType siteNbr } + rolesAndOrgs { + __typename + assignedBusinessUnit { + __typename + ... on AssociateRetailBusinessUnitAssignment { + __typename + businessUnitNumber + teams { + __typename + members + membership { + __typename + baseTeam + role + walmartIdentificationNumber + } + teamId + teamName + } + } + ... on AssociateSupplyChainBusinessUnitAssignment { + __typename + businessUnitNumber + teams { + __typename + members + membership { + __typename + baseTeam + role + walmartIdentificationNumber + } + teamId + teamName + } + } + } + } secondaryJobs { __typename secondaryStoreDeptNumber secondaryStoreJobCode secondaryStoreJobCodeDesc } - teams { - __typename - members - membership { - __typename - baseTeam - role - win - } - site - teamId - teamName - } userId win workEmail --- packages/me-at-walmart-athena-queries/src/getAssociateById.ts @@ -61,25 +61,49 @@ export type GetAssociateByIdQuery = { lastPunchType?: string | null; siteNbr?: string | null; } | null; + rolesAndOrgs?: { + __typename: 'RoleAndOrgs'; + assignedBusinessUnit?: + | { + __typename: 'AssociateRetailBusinessUnitAssignment'; + businessUnitNumber?: number | null; + teams?: Array<{ + __typename: 'Team'; + members?: Array<string | null> | null; + teamId?: string | null; + teamName?: string | null; + membership?: Array<{ + __typename: 'TeamAssociateMembership'; + baseTeam?: boolean | null; + role?: string | null; + walmartIdentificationNumber?: string | null; + } | null> | null; + } | null> | null; + } + | { + __typename: 'AssociateSupplyChainBusinessUnitAssignment'; + businessUnitNumber?: number | null; + teams?: Array<{ + __typename: 'SupplyChainTeam'; + members?: Array<string | null> | null; + teamId?: string | null; + teamName?: string | null; + membership?: Array<{ + __typename: 'SupplyChainTeamAssociateMembership'; + baseTeam?: boolean | null; + role?: string | null; + walmartIdentificationNumber?: string | null; + } | null> | null; + } | null> | null; + } + | null; + } | null; secondaryJobs?: Array<{ __typename: 'SecondaryJobs'; secondaryStoreDeptNumber?: number | null; secondaryStoreJobCode?: string | null; secondaryStoreJobCodeDesc?: string | null; } | null> | null; - teams?: Array<{ - __typename: 'Team'; - members?: Array<string | null> | null; - site?: string | null; - teamId?: string | null; - teamName?: string | null; - membership?: Array<{ - __typename: 'TeamAssociateMembership'; - baseTeam?: boolean | null; - role?: string | null; - win?: string | null; - } | null> | null; - } | null> | null; } | null; }; @@ -135,25 +159,50 @@ export const GetAssociateByIdDocument = gql` lastPunchType siteNbr } + rolesAndOrgs { + __typename + assignedBusinessUnit { + __typename + ... on AssociateRetailBusinessUnitAssignment { + __typename + businessUnitNumber + teams { + __typename + members + membership { + __typename + baseTeam + role + walmartIdentificationNumber + } + teamId + teamName + } + } + ... on AssociateSupplyChainBusinessUnitAssignment { + __typename + businessUnitNumber + teams { + __typename + members + membership { + __typename + baseTeam + role + walmartIdentificationNumber + } + teamId + teamName + } + } + } + } secondaryJobs { __typename secondaryStoreDeptNumber secondaryStoreJobCode secondaryStoreJobCodeDesc } - teams { - __typename - members - membership { - __typename - baseTeam - role - win - } - site - teamId - teamName - } userId win workEmail --- packages/me-at-walmart-athena-queries/src/schema.graphql @@ -3963,7 +3963,7 @@ enum LearningSearchSortOrder { } """ -Details of the associate performing the search. This will be used to apply rbac / persona level access restrictions by the search engine +Details of the associate performing the search, this will be used to apply rbac / persona level access restrictions by the search engine """ input LearningSearchUser { """Country Code of Associate""" @@ -6996,6 +6996,7 @@ type RoleAndOrgs { """Allowed Organization From Organization Assignments""" allowedOrgFromOrgAssignments: [String] + assignedBusinessUnit: AssociateBusinessUnitAssignment """Role Assigned in the Organization""" assignedRoleInOrg: [String] --- packages/me-at-walmart-athena-queries/src/schema.types.ts @@ -3474,7 +3474,7 @@ export enum LearningSearchSortOrder { Desc = 'DESC', } -/** Details of the associate performing the search. This will be used to apply rbac / persona level access restrictions by the search engine */ +/** Details of the associate performing the search, this will be used to apply rbac / persona level access restrictions by the search engine */ export type LearningSearchUser = { /** Country Code of Associate */ countryCode?: InputMaybe<Scalars['String']>; @@ -6468,6 +6468,7 @@ export type RoleAndOrgs = { >; /** Allowed Organization From Organization Assignments */ allowedOrgFromOrgAssignments?: Maybe<Array<Maybe<Scalars['String']>>>; + assignedBusinessUnit?: Maybe<AssociateBusinessUnitAssignment>; /** Role Assigned in the Organization */ assignedRoleInOrg?: Maybe<Array<Maybe<Scalars['String']>>>; /** A unique identifier for the associate */
feature: update only stage for getAssociateById
feature: update only stage for getAssociateById
ed1ba3cf29dcc237f88ed7df83b5cc8641db9f73
--- packages/allspark-foundation/__tests__/Components/ComponentContainers.test.tsx @@ -148,9 +148,9 @@ describe('AllsparkComponentContainers', () => { AllsparkComponentContainers.add('test', 'mockComponent', MockComponent); const { getByText } = render( - <AllsparkComponentContainers.List container="test" props={{ greeting: 'Hello' }} /> + <AllsparkComponentContainers.List container="test" props={{ greeting: 'Hello 2' }} /> ); - expect(getByText('Hello')).toBeTruthy(); + expect(getByText('Hello 2')).toBeTruthy(); }); test('renders specific component from container', () => { @@ -167,12 +167,12 @@ describe('AllsparkComponentContainers', () => { expect(AllsparkComponentContainers.hasComponent('test', 'mockComponent')).toBe(true); AllsparkComponentContainers.create('test'); - expect(AllsparkComponentContainers.hasComponent('test', 'mockComponent')).toBe(false); + expect(AllsparkComponentContainers.hasComponent('test', 'mockComponent')).toBe(true); }); test('registers existing container', () => { const container = new ComponentContainer<{ greeting: string }>(); AllsparkComponentContainers.register('test', container); - expect(AllsparkComponentContainers.getComponents('test')).toEqual([]); + expect(AllsparkComponentContainers.getComponents('test')).toEqual(['mockComponent1', 'mockComponent2', 'mockComponent3']); }); });
fix pr
fix pr
82777290600a5916ca837537d06856c648065dc4
--- __tests__/settings/IndexTest.tsx @@ -1,4 +1,6 @@ // Mock the AllsparkFeatureModule before importing SettingsFeature +import {SettingsFeature} from '../../src/settings'; + jest.mock('@walmart/allspark-foundation/Feature', () => { return { AllsparkFeatureModule: jest.fn().mockImplementation((name, config) => { @@ -11,8 +13,6 @@ jest.mock('@walmart/allspark-foundation/Feature', () => { }; }); -import {SettingsFeature} from '../../src/settings'; - describe('SettingsFeature', () => { // Add a timeout to prevent hanging
chore(lint): lint fixes
chore(lint): lint fixes
96d152bfcba317db1d322684299ef8b56e0bdebb
--- package-lock.json @@ -74,7 +74,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.0", - "@walmart/receipt-check-miniapp": "1.9.1", + "@walmart/receipt-check-miniapp": "1.9.2", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0", @@ -5860,9 +5860,9 @@ } }, "node_modules/@walmart/receipt-check-miniapp": { - "version": "1.9.1", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.1.tgz", - "integrity": "sha512-zVaw40X9FdGrqWtgeI88JNHgUVzcywzLyvxjs8UD3QW2qq/mz3MJNpyzTy09CieeWn1WARTC0njY4K5diMIXow==", + "version": "1.9.2", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.2.tgz", + "integrity": "sha512-QBtp+KR/nsjMJSLYaUH+i12z29H6zMjcwzU8g4TJyqZL7e+rpXRxyBKXuf9CLPhsZC6XyoJmHRUbVgkMmfYgNw==", "dependencies": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", @@ -25409,9 +25409,9 @@ "integrity": "sha512-VkGT8BSZOsxR4FJjxeu6ursO3qzAVZea6jEwT6KJsXgBJ9MIHhkBo78guM6kEbqqQl3SlGS/+5tbOxKdWrvStQ==" }, "@walmart/receipt-check-miniapp": { - "version": "1.9.1", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.1.tgz", - "integrity": "sha512-zVaw40X9FdGrqWtgeI88JNHgUVzcywzLyvxjs8UD3QW2qq/mz3MJNpyzTy09CieeWn1WARTC0njY4K5diMIXow==", + "version": "1.9.2", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.9.2.tgz", + "integrity": "sha512-QBtp+KR/nsjMJSLYaUH+i12z29H6zMjcwzU8g4TJyqZL7e+rpXRxyBKXuf9CLPhsZC6XyoJmHRUbVgkMmfYgNw==", "requires": { "@walmart/tcnumber": "^2.3.3", "@xstate/react": "^3.0.1", --- package.json @@ -116,7 +116,7 @@ "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.5.0", - "@walmart/receipt-check-miniapp": "1.9.1", + "@walmart/receipt-check-miniapp": "1.9.2", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0",
bump version
bump version
9b68dc19053e2fece14c2f51a88d98a45eb9bbf5
--- .looper.multibranch.yml @@ -24,7 +24,7 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/drop24-iteminfo + - spec: feature/drop24 triggers: - manual: name: Publish Packages (Pre-Release)
revert the looper change
revert the looper change
03d9ff70d9737de69a5dfac7b0b076f08e06c5ab
--- package-lock.json @@ -58,7 +58,7 @@ "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.6", "@walmart/impersonation-mini-app": "1.20.2", - "@walmart/ims-print-services-ui": "2.5.1", + "@walmart/ims-print-services-ui": "2.6.0", "@walmart/inbox-mini-app": "0.86.1", "@walmart/iteminfo-mini-app": "7.4.0", "@walmart/manager-approvals-miniapp": "0.2.4", @@ -7407,9 +7407,9 @@ } }, "node_modules/@walmart/ims-print-services-ui": { - "version": "2.5.1", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.5.1.tgz", - "integrity": "sha512-od8axStfj5GPLFu05HRXBlh4g+kssKIrpuIc+MpsN/oigmLFwvrnJiXr0KMYtgFzN8zmro3J4rbc27In6D1R+w==", + "version": "2.6.0", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.6.0.tgz", + "integrity": "sha512-TZHJBvc53Ty0HdKFTNqdttYv0KxdhY6/XqCtEYydRXgo51l9l6E/iB3EvmdRxkIVNzWxTfvS/qDzWYo0+uehZQ==", "peerDependencies": { "@react-native-firebase/analytics": ">=10.5.1", "@react-native-firebase/app": ">=10.5.0", @@ -30541,9 +30541,9 @@ "integrity": "sha512-Eubyowsouh6ZEZEfJ4je0i+GwZzSFc36p5q1JeUfjrkLWNt/lJZUnIZ1cNKnEHVqCR+y5HwJ9JuRiioWyJ5sfQ==" }, "@walmart/ims-print-services-ui": { - "version": "2.5.1", - "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.5.1.tgz", - "integrity": "sha512-od8axStfj5GPLFu05HRXBlh4g+kssKIrpuIc+MpsN/oigmLFwvrnJiXr0KMYtgFzN8zmro3J4rbc27In6D1R+w==" + "version": "2.6.0", + "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.6.0.tgz", + "integrity": "sha512-TZHJBvc53Ty0HdKFTNqdttYv0KxdhY6/XqCtEYydRXgo51l9l6E/iB3EvmdRxkIVNzWxTfvS/qDzWYo0+uehZQ==" }, "@walmart/inbox-mini-app": { "version": "0.86.1", --- package.json @@ -99,7 +99,7 @@ "@walmart/gta-react-native-calendars": "0.0.16", "@walmart/gtp-shared-components": "2.0.6", "@walmart/impersonation-mini-app": "1.20.2", - "@walmart/ims-print-services-ui": "2.5.1", + "@walmart/ims-print-services-ui": "2.6.0", "@walmart/inbox-mini-app": "0.86.1", "@walmart/iteminfo-mini-app": "7.4.0", "@walmart/manager-approvals-miniapp": "0.2.4",
bump up Print version to 2.6.0 for drop 13 hotfix
bump up Print version to 2.6.0 for drop 13 hotfix
1519dbb368d30a5ecc6165797bc4786ebfdc55bd
--- targets/US/ios/AllSpark/Images.xcassets/AppIcon-Beta.appiconset/iTunesArtwork@2x.png Binary files a/targets/US/ios/AllSpark/Images.xcassets/AppIcon-Beta.appiconset/iTunesArtwork@2x.png and b/targets/US/ios/AllSpark/Images.xcassets/AppIcon-Beta.appiconset/iTunesArtwork@2x.png differ --- targets/US/ios/AllSpark/Images.xcassets/AppIcon-Dev.appiconset/iTunesArtwork@2x.png Binary files a/targets/US/ios/AllSpark/Images.xcassets/AppIcon-Dev.appiconset/iTunesArtwork@2x.png and b/targets/US/ios/AllSpark/Images.xcassets/AppIcon-Dev.appiconset/iTunesArtwork@2x.png differ --- targets/US/ios/AllSpark/Images.xcassets/AppIcon-Prod.appiconset/iTunesArtwork@2x.png Binary files a/targets/US/ios/AllSpark/Images.xcassets/AppIcon-Prod.appiconset/iTunesArtwork@2x.png and b/targets/US/ios/AllSpark/Images.xcassets/AppIcon-Prod.appiconset/iTunesArtwork@2x.png differ --- targets/US/ios/AllSpark/Images.xcassets/AppIcon-Teflon.appiconset/iTunesArtwork@2x.png Binary files a/targets/US/ios/AllSpark/Images.xcassets/AppIcon-Teflon.appiconset/iTunesArtwork@2x.png and b/targets/US/ios/AllSpark/Images.xcassets/AppIcon-Teflon.appiconset/iTunesArtwork@2x.png differ
remove alpha channel from large icon
remove alpha channel from large icon
599cf2139d761fb37fdeb72e20062ab12752587a
--- .yarnrc.yml @@ -1,3 +1,5 @@ +enableInlineHunks: true + logFilters: - code: YN0007 level: warning @@ -7,7 +9,6 @@ logFilters: nodeLinker: node-modules npmRegistryServer: "https://npme.walmart.com/" -enableInlineHunks: true packageExtensions: "@walmart/allspark-neon-core@*": --- package.json @@ -146,7 +146,7 @@ "@types/seamless-immutable": "^7.1.16", "@types/semver": "^7.3.4", "@types/uuid": "^8.3.0", - "@walmart/allspark-foundation": "6.25.0", + "@walmart/allspark-foundation": "6.27.3", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-utils": "~6.5.0", @@ -269,7 +269,7 @@ "pre-push": "run-p solidarity coverage" } }, - "packageManager": "yarn@4.1.1", + "packageManager": "yarn@4.6.0", "engines": { "node": ">=18" } --- targets/US/package.json @@ -77,7 +77,7 @@ "@terrylinla/react-native-sketch-canvas": "patch:@terrylinla/react-native-sketch-canvas@npm%3A0.8.0#~/.yarn/patches/@terrylinla-react-native-sketch-canvas-npm-0.8.0-c7b2afd4cd.patch", "@walmart/allspark-authentication": "~6.4.1", "@walmart/allspark-cope-key-listener": "0.0.18", - "@walmart/allspark-foundation": "6.25.0", + "@walmart/allspark-foundation": "6.27.3", "@walmart/allspark-graphql-client": "~6.3.28", "@walmart/allspark-http-client": "~6.3.28", "@walmart/allspark-neon-core": "0.1.31", --- yarn.lock @@ -5966,9 +5966,9 @@ __metadata: languageName: node linkType: hard -"@walmart/allspark-foundation@npm:6.25.0": - version: 6.25.0 - resolution: "@walmart/allspark-foundation@npm:6.25.0" +"@walmart/allspark-foundation@npm:6.27.3": + version: 6.27.3 + resolution: "@walmart/allspark-foundation@npm:6.27.3" dependencies: "@apollo/client": "npm:^3.8.6" "@graphql-codegen/cli": "npm:^5.0.0" @@ -6004,24 +6004,23 @@ __metadata: "@react-navigation/drawer": 6.x "@react-navigation/native": 6.x "@react-navigation/stack": 6.x - "@walmart/allspark-graphql-client": ">=6" - "@walmart/allspark-http-client": ">=6" - "@walmart/core-services": ">=6" - "@walmart/core-utils": ">=6" - "@walmart/functional-components": ">=6" + "@walmart/allspark-graphql-client": "workspace:^" + "@walmart/allspark-http-client": "workspace:^" + "@walmart/core-services": "workspace:^" + "@walmart/core-utils": "workspace:^" + "@walmart/functional-components": "workspace:^" "@walmart/gtp-shared-components": ">=2" - "@walmart/react-native-env": ">=6" + "@walmart/react-native-env": "workspace:^" "@walmart/react-native-scanner-3.0": ">=0.6.3" - "@walmart/react-native-shared-navigation": ">=6" + "@walmart/react-native-shared-navigation": "workspace:^" "@walmart/react-native-sumo-sdk": ^2.7.0 - "@walmart/react-native-wm-network": ">=6" - "@walmart/react-native-wm-notification": ">=6" - "@walmart/react-native-wm-telemetry": ">=6" - "@walmart/redux-store": ">=6" + "@walmart/react-native-wm-network": "workspace:^" + "@walmart/react-native-wm-notification": "workspace:^" + "@walmart/react-native-wm-telemetry": "workspace:^" + "@walmart/redux-store": "workspace:^" react: "*" react-native: "*" react-native-apollo-devtools-client: "*" - react-native-device-info: "*" react-native-drop-shadow: "*" react-native-flipper: "*" react-native-gesture-handler: 2.x @@ -6061,7 +6060,7 @@ __metadata: allspark-generate-graphql: cli/generate.js allspark-link: cli/link.js allspark-setup: cli/setup.js - checksum: 10c0/dfdc3c6447ebf399aa2c1a90119e15ecaa24193c6ab736e736d44165152238122f501bbd7e72039d4702e21b035053a66d078c05ae6857a64ef3e948e627dd0a + checksum: 10c0/40be45baf350ae569c459a46a3ecbbcf157eeb7ec15e7815d9865a339bae015251b0cf9971c993c1beb23d728929ab34c0b48549db1ead100ed6892bbbc54652 languageName: node linkType: hard @@ -7261,7 +7260,7 @@ __metadata: "@types/uuid": "npm:^8.3.0" "@walmart/allspark-authentication": "npm:~6.4.1" "@walmart/allspark-cope-key-listener": "npm:0.0.18" - "@walmart/allspark-foundation": "npm:6.25.0" + "@walmart/allspark-foundation": "npm:6.27.3" "@walmart/allspark-graphql-client": "npm:~6.3.28" "@walmart/allspark-http-client": "npm:~6.3.28" "@walmart/allspark-neon-core": "npm:0.1.31"
chore: bump foundation version for local storage fix
chore: bump foundation version for local storage fix
f6bd169a8f437a894a440e1d94b115ccaf8f742e
--- src/screens/RosterScreen.tsx @@ -93,7 +93,7 @@ export const RosterHeader: React.FC<{teamInfo?: TeamInfo}> = ({teamInfo}) => { ); } }) as string[], - [], + [associates], ); return ( --- src/screens/RosterScreen.tsx @@ -93,7 +93,7 @@ export const RosterHeader: React.FC<{teamInfo?: TeamInfo}> = ({teamInfo}) => { ); } }) as string[], - [], + [associates], ); return (
memo on associate array
memo on associate array
5120829c8da499e2f41c5df0fa868100ec060d3e
--- packages/allspark-foundation/src/LocalStorage/client.ts @@ -46,7 +46,7 @@ export class LocalStorageClient { expiry: Date.now() + config.ttl, }); } - return value; + return JSON.stringify({ value }); }; private _buildKeys = (keys: string[]) => {
fix: fixing a missed case
fix: fixing a missed case
998f4193138b71a1bcdade260be13762d9ad8f30
--- src/codeOfConduct/service.ts @@ -1,4 +1,5 @@ import {TextingApi} from '../services/TextingApi'; +import {logger} from '../logger/Logger'; const CODE_OF_CONDUCT_ENDPOINT = '/directedvoice/ptt/v1/codeofconduct/CodeOfConduct/'; @@ -12,7 +13,10 @@ export const getCodeOfConductData = async ( setIsAcknowledged(response.data.codeOfConduct.isAcknowledged); // setIsAcknowledged(false); // to test } catch (e) { - console.log('Error getting code of conduct: is acknowleged'); + const err = e as Error; + logger.error('Error getting code of conduct: is acknowleged', { + message: `Error getting code of conduct: is acknowleged ${err}`, + }); setIsAcknowledged(false); } }; @@ -32,6 +36,9 @@ export const acknowledgeUser = async ( }, }); } catch (e) { - console.log('Error setting user acknowledgement'); + let err = e as Error; + logger.error('Error setting user acknowledgement', { + message: `Error setting user acknowledgement ${err.message}`, + }); } }; --- src/codeOfConduct/service.ts @@ -1,4 +1,5 @@ import {TextingApi} from '../services/TextingApi'; +import {logger} from '../logger/Logger'; const CODE_OF_CONDUCT_ENDPOINT = '/directedvoice/ptt/v1/codeofconduct/CodeOfConduct/'; @@ -12,7 +13,10 @@ export const getCodeOfConductData = async ( setIsAcknowledged(response.data.codeOfConduct.isAcknowledged); // setIsAcknowledged(false); // to test } catch (e) { - console.log('Error getting code of conduct: is acknowleged'); + const err = e as Error; + logger.error('Error getting code of conduct: is acknowleged', { + message: `Error getting code of conduct: is acknowleged ${err}`, + }); setIsAcknowledged(false); } }; @@ -32,6 +36,9 @@ export const acknowledgeUser = async ( }, }); } catch (e) { - console.log('Error setting user acknowledgement'); + let err = e as Error; + logger.error('Error setting user acknowledgement', { + message: `Error setting user acknowledgement ${err.message}`, + }); } };
using logger
using logger
84eb2924421caba8131b2f051e4faf3ea47f34ca
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 63 + versionCode 64 versionName "1.0.4" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>63</string> + <string>64</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>63</string> + <string>64</string> </dict> </plist>
Incrementing build number
Incrementing build number
0a14e62968ffc8755a38f1e58c4380aa0bd85340
--- package-lock.json @@ -4475,9 +4475,9 @@ } }, "@walmart/taskit-mini-app": { - "version": "0.239.0-rc.2", - "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.239.0-rc.2.tgz", - "integrity": "sha512-uSVAsQzeBjAh4BL+AmyXCC9q3ftOFiFwPVg8LW6wk/yb6AGmvsVzFu5EE2dWYCX1XNBi/RK/+/joQrV4CcjfNA==" + "version": "0.239.0-rc.3", + "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.239.0-rc.3.tgz", + "integrity": "sha512-S6ikrFDNCREzw0thhzKZOwlZGLEiAqEa+8O3mRrK0JLDCCvWGzok8Qzu2t7ZXy8M3LzXzHtVwKG7dOJBy0Q4Gw==" }, "@walmart/time-clock-mini-app": { "version": "0.4.32", --- package.json @@ -101,7 +101,7 @@ "@walmart/schedule-mini-app": "0.12.0", "@walmart/settings-mini-app": "1.6.0", "@walmart/shelfavailability-mini-app": "0.8.3", - "@walmart/taskit-mini-app": "0.239.0-rc.2", + "@walmart/taskit-mini-app": "0.239.0-rc.3", "@walmart/time-clock-mini-app": "0.4.32", "@walmart/ui-components": "1.3.0-rc.14", "@walmart/welcomeme-mini-app": "0.46.0",
upgrading taskit version
upgrading taskit version
a7eae4622bac97c7ac1d6b40503a166d311ac73a
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.6.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.5.0...v1.6.0) (2024-06-26) + + +### Features + +* **ui:** Mini app changes for drop 23 SMDV-5921 ([8dd0828](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/8dd08289bf337974499ecd68476c0419eb099e4b)) + # [1.5.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.4.0...v1.5.0) (2024-06-26) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "1.5.0", + "version": "1.6.0", "main": "dist/index.js", "files": [ "dist"
chore(release): 1.6.0 [skip ci]
chore(release): 1.6.0 [skip ci] # [1.6.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.5.0...v1.6.0) (2024-06-26) ### Features * **ui:** Mini app changes for drop 23 SMDV-5921 ([8dd0828](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/8dd08289bf337974499ecd68476c0419eb099e4b))
cc3027a537678c337b871d1b9b398a4edbc82264
--- ios/Podfile.lock @@ -2050,4 +2050,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 5e9af5bffc9ed6ee9db34b0f1573f68bd919bf97 -COCOAPODS: 1.11.3 +COCOAPODS: 1.12.0
update pod file
update pod file
da0de77b111f8121034074fe1de96b0a2c2377b1
--- packages/allspark-foundation/__tests__/FeatureRunner/components/FeatureSection.test.tsx @@ -42,10 +42,6 @@ describe('FeatureSection and LocalStorageCard', () => { multiGet: mockMultiGet, }); }); - it('FeatureSection should render snapshot', async () => { - const { toJSON } = render(<FeatureSection {...props} />); - expect(toJSON()).toMatchSnapshot(); - }); it('FeatureSection should render and handle navigation', async () => { const { getByTestId } = render(<FeatureSection {...props} />); const screenLink = getByTestId('screen-link'); --- packages/allspark-foundation/__tests__/FeatureRunner/components/__snapshots__/FeatureSection.test.tsx.snap @@ -1,275 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`FeatureSection and LocalStorageCard FeatureSection should render snapshot 1`] = ` -<View> - <Heading> - Feature: - </Heading> - <Card - UNSAFE_style={ - [ - { - "flex": 0, - "marginTop": 16, - }, - undefined, - ] - } - > - <CardHeader - UNSAFE_style={ - { - "marginBottom": 0, - } - } - title="Screens" - /> - <CardContent - UNSAFE_style={ - { - "paddingLeft": 0, - } - } - > - <View> - <Button - UNSAFE_style={ - { - "alignSelf": "flex-start", - } - } - onPress={[Function]} - testID="screen-link" - variant="tertiary" - > - screen - </Button> - </View> - </CardContent> - </Card> - <Card - UNSAFE_style={ - [ - { - "flex": 0, - "marginTop": 16, - }, - undefined, - ] - } - > - <CardHeader - UNSAFE_style={ - { - "marginBottom": 0, - } - } - title="Modals" - /> - <CardContent - UNSAFE_style={ - { - "paddingLeft": 0, - } - } - > - <View> - <Button - UNSAFE_style={ - { - "alignSelf": "flex-start", - } - } - onPress={[Function]} - testID="modal-link" - variant="tertiary" - > - modal - </Button> - </View> - </CardContent> - </Card> - <Card - UNSAFE_style={ - [ - { - "flex": 0, - "marginTop": 16, - }, - undefined, - ] - } - > - <CardHeader - UNSAFE_style={ - { - "marginBottom": 0, - } - } - title="Local Storage" - /> - <CardContent> - <View - style={ - { - "flexDirection": "row", - "justifyContent": "space-between", - } - } - > - <Button - onPress={[Function]} - testID="clear" - variant="secondary" - > - Clear - </Button> - <Button - onPress={[Function]} - testID="log" - variant="secondary" - > - Log - </Button> - </View> - </CardContent> - </Card> -</View> -`; - -exports[`FeatureSection should render snapshot 1`] = ` -<View> - <Heading> - Feature: - </Heading> - <Card - UNSAFE_style={ - [ - { - "flex": 0, - "marginTop": 16, - }, - undefined, - ] - } - > - <CardHeader - UNSAFE_style={ - { - "marginBottom": 0, - } - } - title="Screens" - /> - <CardContent - UNSAFE_style={ - { - "paddingLeft": 0, - } - } - > - <View> - <Button - UNSAFE_style={ - { - "alignSelf": "flex-start", - } - } - onPress={[Function]} - testID="screen-link" - variant="tertiary" - > - screen - </Button> - </View> - </CardContent> - </Card> - <Card - UNSAFE_style={ - [ - { - "flex": 0, - "marginTop": 16, - }, - undefined, - ] - } - > - <CardHeader - UNSAFE_style={ - { - "marginBottom": 0, - } - } - title="Modals" - /> - <CardContent - UNSAFE_style={ - { - "paddingLeft": 0, - } - } - > - <View> - <Button - UNSAFE_style={ - { - "alignSelf": "flex-start", - } - } - onPress={[Function]} - testID="modal-link" - variant="tertiary" - > - modal - </Button> - </View> - </CardContent> - </Card> - <Card - UNSAFE_style={ - [ - { - "flex": 0, - "marginTop": 16, - }, - undefined, - ] - } - > - <CardHeader - UNSAFE_style={ - { - "marginBottom": 0, - } - } - title="Local Storage" - /> - <CardContent> - <View - style={ - { - "flexDirection": "row", - "justifyContent": "space-between", - } - } - > - <Button - onPress={[Function]} - testID="clear" - variant="secondary" - > - Clear - </Button> - <Button - onPress={[Function]} - testID="log" - variant="secondary" - > - Log - </Button> - </View> - </CardContent> - </Card> -</View> -`;
remove snapshaot feature section
remove snapshaot feature section
7aadcbbe5861036f2bb6d28a595d3718228f2ef1
--- package-lock.json @@ -56,7 +56,7 @@ "@walmart/inbox-mini-app": "0.68.0", "@walmart/iteminfo-mini-app": "6.0.1", "@walmart/manager-approvals-miniapp": "0.1.1", - "@walmart/me-field-mini-app": "1.1.34", + "@walmart/me-field-mini-app": "1.1.35", "@walmart/metrics-mini-app": "0.9.28", "@walmart/mod-flex-mini-app": "1.2.7", "@walmart/moment-walmart": "1.0.4", @@ -5197,9 +5197,9 @@ } }, "node_modules/@walmart/me-field-mini-app": { - "version": "1.1.34", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.34.tgz", - "integrity": "sha512-0IXPF7k1fMwVh5i7ZDbZsoVhNvCv1gubqhaJoNMhTVUqq8zHdWGHRHRxA4L5pRQVZGMJ5KVNVtiC8Nl//vPIHg==", + "version": "1.1.35", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.35.tgz", + "integrity": "sha512-ERQVQCZSYCKEZwgSAlPgAx0qKtqGudUA53rfxZ3RgDznTDqoaxmXG6aA3iCtfZpoF2RKr7CAKc/RYABitQdt4g==", "peerDependencies": { "@atmt/feedback-component-native": "^8.0.0", "@react-native-firebase/analytics": "14.11.0", @@ -24886,9 +24886,9 @@ "version": "0.1.1" }, "@walmart/me-field-mini-app": { - "version": "1.1.34", - "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.34.tgz", - "integrity": "sha512-0IXPF7k1fMwVh5i7ZDbZsoVhNvCv1gubqhaJoNMhTVUqq8zHdWGHRHRxA4L5pRQVZGMJ5KVNVtiC8Nl//vPIHg==" + "version": "1.1.35", + "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.35.tgz", + "integrity": "sha512-ERQVQCZSYCKEZwgSAlPgAx0qKtqGudUA53rfxZ3RgDznTDqoaxmXG6aA3iCtfZpoF2RKr7CAKc/RYABitQdt4g==" }, "@walmart/metrics-mini-app": { "version": "0.9.28", --- package.json @@ -98,7 +98,7 @@ "@walmart/inbox-mini-app": "0.68.0", "@walmart/iteminfo-mini-app": "6.0.1", "@walmart/manager-approvals-miniapp": "0.1.1", - "@walmart/me-field-mini-app": "1.1.34", + "@walmart/me-field-mini-app": "1.1.35", "@walmart/metrics-mini-app": "0.9.28", "@walmart/mod-flex-mini-app": "1.2.7", "@walmart/moment-walmart": "1.0.4",
📦 Bump learning mini-app for drop 8.3
📦 Bump learning mini-app for drop 8.3
37951a1edb56de7e1dc332b2203da60c2d7f675c
--- CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.35.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.35.0...v6.35.1-alpha.0) (2025-08-28) + +**Note:** Version bump only for package @walmart/me-at-walmart + + + + + # [6.35.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.35.0-alpha.0...v6.35.0) (2025-08-28) **Note:** Version bump only for package @walmart/me-at-walmart --- lerna.json @@ -1,5 +1,5 @@ { - "version": "6.35.0", + "version": "6.35.1-alpha.0", "npmClient": "yarn", "changelogPreset": "angular", "command": { --- packages/core-services-allspark/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.35.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.35.0...v6.35.1-alpha.0) (2025-08-28) + +**Note:** Version bump only for package @walmart/core-services-allspark + + + + + # [6.35.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.35.0-alpha.0...v6.35.0) (2025-08-28) **Note:** Version bump only for package @walmart/core-services-allspark --- packages/core-services-allspark/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-services-allspark", - "version": "6.35.0", + "version": "6.35.1-alpha.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/core-widget-registry/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.35.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.35.0...v6.35.1-alpha.0) (2025-08-28) + +**Note:** Version bump only for package @walmart/core-widget-registry + + + + + # [6.35.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/v6.35.0-alpha.0...v6.35.0) (2025-08-28) **Note:** Version bump only for package @walmart/core-widget-registry --- packages/core-widget-registry/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/core-widget-registry", - "version": "6.35.0", + "version": "6.35.1-alpha.0", "description": "Repo for Me@Walmart related widget registries", "author": "rlane1 <russell.lane@walmart.com>", "license": "ISC", --- packages/me-at-walmart-common/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.35.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.35.0...v6.35.1-alpha.0) (2025-08-28) + +**Note:** Version bump only for package @walmart/me-at-walmart-common + + + + + # [6.35.0](https://gecgithub01.walmart.com/allspark/allspark/compare/v6.35.0-alpha.0...v6.35.0) (2025-08-28) **Note:** Version bump only for package @walmart/me-at-walmart-common --- packages/me-at-walmart-common/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-common", - "version": "6.35.0", + "version": "6.35.1-alpha.0", "description": "Common utilities and components for Me@Walmat mini apps", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/me-at-walmart-container/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.35.1-alpha.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.35.0...v6.35.1-alpha.0) (2025-08-28) + +**Note:** Version bump only for package @walmart/me-at-walmart-container + + + + + # [6.35.0](https://gecgithub01.walmart.com/allspark/allspark-core/compare/v6.35.0-alpha.0...v6.35.0) (2025-08-28) **Note:** Version bump only for package @walmart/me-at-walmart-container --- packages/me-at-walmart-container/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/me-at-walmart-container", - "version": "6.35.0", + "version": "6.35.1-alpha.0", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts",
chore(version): updating package version
chore(version): updating package version
170ce236a517ae19be729b7791b09ac5f79e4d8f
--- src/auth/ErrorScreen.tsx @@ -51,6 +51,7 @@ export const ErrorScreen: FC<any> = (props) => { defaultConfig.issues, ); const [otherErrorFb, setOtherErrorFb] = useState(defaultConfig.otherIssues); + const [selectedOther, setSelectedOther] = useState([]); const userIdValid = !formDirty || !!userId; const siteIdValid = !formDirty || !!siteId; @@ -267,28 +268,33 @@ export const ErrorScreen: FC<any> = (props) => { {errorCategory === translate('ssoError.issues.other') && ( <View> - {otherErrorFb.map((question) => ( - <View> - <Text style={styles.otherErr}> - {question.title[i18n.language]} - </Text> - {question && question.componentType === 'radio' ? ( - <RadioItemGroup - items={getOptions2(question.options)} - style={styles.otherErr} - selectedId={selectedQ2Option} - onSelect={(id) => setSelectedQ2Option(id)} - /> - ) : ( - <CheckboxItemGroup - items={getOptions2(question.options)} - style={styles.otherErr} - selectedIds={selectedQ1Options} - onSelect={(id) => setselectedQ1Options(id)} - /> - )} - </View> - ))} + {otherErrorFb.map((question) => { + const title = question.title[i18n.language]; + return ( + <View> + <Text style={styles.otherErr}>{title}</Text> + {question && question.componentType === 'radio' ? ( + <RadioItemGroup + items={getOptions2(question.options)} + style={styles.otherErr} + selectedId={selectedOther[title]} + onSelect={(id) => + setSelectedOther({...selectedOther, [title]: id}) + } + /> + ) : ( + <CheckboxItemGroup + items={getOptions2(question.options)} + style={styles.otherErr} + selectedIds={selectedOther[title]} + onSelect={(id) => + setSelectedOther({...selectedOther, [title]: id}) + } + /> + )} + </View> + ); + })} </View> )}
implement firebase radio and checkbox select
implement firebase radio and checkbox select
d86532de637f0817dd8a0893709644e2a1b74d26
--- .looper-pr.yml @@ -31,3 +31,4 @@ envs: MONO_REPO_BASE_BRANCH: develop AUTHOR: temp SLACK_CHANNEL: 'smdv-miniapp' +
fix(ui): update package
fix(ui): update package
2bdceeae52391b0f161abe892dbfb8ef223f6c1d
--- babel.config.js @@ -1,8 +1,8 @@ - module.exports = (api) => { + api.cache(true); const plugins = ['react-native-reanimated/plugin']; + //remove console.logs only in CI environment. if (process.env.CI) { - //remove console.logs only in CI environment. plugins.push('transform-remove-console'); } return { --- src/whatsNew/WhatsNewScreen.tsx @@ -65,7 +65,6 @@ export const WhatsNewScreen = () => { const {whatsNew, whatsNext, restrictions, version} = useSelector(getWhatsNewWithIsDC); const renderSectionList = version === '2'; - console.log('test sva babel'); return ( <View style={styles.container}>
removed console.logs
removed console.logs
ec5baf279058ac452858ce3316ddd5dd442f7230
--- .looper.multibranch.yml @@ -24,7 +24,7 @@ envs: ANDROID_BASE_PATH: targets/US/android branches: - - spec: feature/drop24 + - spec: feature/drop24-shop-gnfr* triggers: - manual: name: Publish Packages (Pre-Release)
Changes to looper.multibranch.yml
Changes to looper.multibranch.yml
94409bb2055f5f809fcf76015a84fffeac6ed005
--- __tests__/navigation/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap @@ -106,6 +106,15 @@ Array [ } } /> + <Screen + name="taskItQuickActions" + options={ + Object { + "gestureDirection": "vertical", + "gestureEnabled": true, + } + } + /> <Screen component="ItemInfoMiniApp" name="itemInfoQuickAction" --- src/navigation/AssociateHallwayNav/MainStackNav.tsx @@ -4,6 +4,7 @@ import {useTranslation} from 'react-i18next'; import {createStackNavigator, TransitionPresets} from '@react-navigation/stack'; import {Header} from '@walmart/ui-components'; import {AskSamMiniApp} from '@walmart/ask-sam-mini-app'; +import {TaskItQuickActions} from '@walmart/taskit-mini-app'; import {ScheduleMiniApp} from '@walmart/schedule-mini-app'; import {HealthSurveyMiniApp} from '@walmart/allspark-health-survey-mini-app'; import SettingsMiniApp from '@walmart/settings-mini-app'; @@ -153,7 +154,14 @@ export const MainStackNav = () => { gestureDirection: 'vertical', }} /> - + <MainStack.Screen + name='taskItQuickActions' + component={TaskItQuickActions} + options={{ + gestureEnabled: true, + gestureDirection: 'vertical', + }} + /> <MainStack.Screen name='itemInfoQuickAction' component={ItemInfoMiniApp}
added taskit Quickaction
added taskit Quickaction
94be6be99492fd05cf05a919168bc10f9e0957f0
--- src/constants.ts @@ -1,5 +1,3 @@ -import {colors} from '@walmart/gtp-shared-components/dist'; - //TODO: Move this to more standard place export const RNFBConfigAndroid = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const RNFBConfigiOS = '75AC25EB-432A-47D1-855A-84728D2AB60C'; --- src/constants.ts @@ -1,5 +1,3 @@ -import {colors} from '@walmart/gtp-shared-components/dist'; - //TODO: Move this to more standard place export const RNFBConfigAndroid = '75AC25EB-432A-47D1-855A-84728D2AB60C'; export const RNFBConfigiOS = '75AC25EB-432A-47D1-855A-84728D2AB60C';
revert file change
revert file change
eaaea3dd08cc82f7278487f37176074131aaf8c6
--- src/containers/ChannelRow.tsx @@ -70,6 +70,7 @@ export const ChannelRow = (props: ChannelRowProps) => { const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>(); const [channelDetails, setChannelDetails] = useState<{ + group?: boolean; channelName: string; recipients: string[]; message: string; @@ -102,6 +103,7 @@ export const ChannelRow = (props: ChannelRowProps) => { ); setChannelDetails({ + group: channelData.group, recipients, channelName, ...lastMessageDetails, @@ -147,7 +149,7 @@ export const ChannelRow = (props: ChannelRowProps) => { </ListItem> ); } - const {channelName, message, timestamp, recipients} = channelDetails; + const {channelName, group, message, timestamp, recipients} = channelDetails; const onChannelPress = () => { navigation.navigate('texting.messages', { @@ -168,7 +170,7 @@ export const ChannelRow = (props: ChannelRowProps) => { <View style={styles.itemLeading}> {!!unread && <View style={styles.unreadMarker} />} - {recipients.length === 1 && ( + {!group && recipients.length === 1 && ( <PresenceIndicator userId={recipients[0]} style={styles.presenseIndicator} --- src/screens/SearchScreen.tsx @@ -135,7 +135,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = ({route}) => { return null; } - const onText = () => startAssociateText(associate.userId!); + const onText = () => startAssociateText([associate.userId!]); return ( <AssociateRosterItem --- src/containers/ChannelRow.tsx @@ -70,6 +70,7 @@ export const ChannelRow = (props: ChannelRowProps) => { const navigation = useNavigation<NavigationProp<TextingNavParamsMap>>(); const [channelDetails, setChannelDetails] = useState<{ + group?: boolean; channelName: string; recipients: string[]; message: string; @@ -102,6 +103,7 @@ export const ChannelRow = (props: ChannelRowProps) => { ); setChannelDetails({ + group: channelData.group, recipients, channelName, ...lastMessageDetails, @@ -147,7 +149,7 @@ export const ChannelRow = (props: ChannelRowProps) => { </ListItem> ); } - const {channelName, message, timestamp, recipients} = channelDetails; + const {channelName, group, message, timestamp, recipients} = channelDetails; const onChannelPress = () => { navigation.navigate('texting.messages', { @@ -168,7 +170,7 @@ export const ChannelRow = (props: ChannelRowProps) => { <View style={styles.itemLeading}> {!!unread && <View style={styles.unreadMarker} />} - {recipients.length === 1 && ( + {!group && recipients.length === 1 && ( <PresenceIndicator userId={recipients[0]} style={styles.presenseIndicator} --- src/screens/SearchScreen.tsx @@ -135,7 +135,7 @@ export const SearchScreen: React.FC<SearchScreenProps> = ({route}) => { return null; } - const onText = () => startAssociateText(associate.userId!); + const onText = () => startAssociateText([associate.userId!]); return ( <AssociateRosterItem
fix: fix start text call from search screen
fix: fix start text call from search screen
c6e03a385f7ecca605b07e62942e557ebc671880
--- packages/me-at-walmart-container/package.json @@ -6,7 +6,8 @@ "types": "lib/index.d.ts", "files": [ "lib", - "cli" + "cli", + "react-native.config.js" ], "bin": { "me-at-walmart-link": "./cli/link.js"
chore: add config to publish files
chore: add config to publish files
28ef28ffab6d0635bee34264e5f284f2044a6c3a
--- README.md @@ -1,7 +1,8 @@ -# allspark-core +# allspark-core <img src="https://i5-me.walmartimages.com/images/misc/me-at-icon.png" alt="me-at-icon" width="25" height="25"/> This is the core container app for the AllSpark Project (Me@Walmart redesign) - [Onboarding docs](https://confluence.walmart.com/display/ALLSPARK/AllSpark+Ecosystem+Onboarding+and+Documentation) + ## Setup ### Prerequisites
Update README.md
Update README.md
b17da1c0e136010bb9c8e649722b6f347076e865
--- package-lock.json @@ -1911,9 +1911,9 @@ } }, "@walmart/ask-sam-mini-app": { - "version": "0.6.24", - "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.24.tgz", - "integrity": "sha512-q5cM+h38CrYtDCBWfXCRchugmzEWU9kvcC6JWddKHdRU9FVVa/rlv9qJ3ttyKnwk8ZO2nZ9frCOD4+717obQAg==", + "version": "0.6.25", + "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.6.25.tgz", + "integrity": "sha512-sDCVbOCwiYDrxRWa+3YX4fYTY7PmiL6Kqwl7fTgu5TV6S7sw72jCwu633z0DTAGPGsZEAATAZm+ZnElf/TaOWQ==", "requires": { "apisauce": "^1.1.2", "lodash": "^4.17.19", --- package.json @@ -44,7 +44,7 @@ "@walmart/allspark-health-survey-mini-app": "0.0.10", "@walmart/allspark-home-mini-app": "0.1.4", "@walmart/allspark-me-mini-app": "0.0.11", - "@walmart/ask-sam-mini-app": "0.6.24", + "@walmart/ask-sam-mini-app": "0.6.25", "@walmart/config-components": "1.0.7", "@walmart/feedback-all-spark-miniapp": "0.0.29", "@walmart/functional-components": "^1.0.22",
Ask Sam Version (#173)
Ask Sam Version (#173) * Verison increment * package.lock increment Co-authored-by: rlane1 <rlane1@walmart.com>
a96fe030ed218d2048fba7e1c289d4912f0a680b
--- package-lock.json @@ -3446,9 +3446,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.5.31", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.31.tgz", - "integrity": "sha512-rl2ttsZFuXUNxcY7v2rTAna7aCmFjAWcqJsUePv9qjDzG5dsL1Ir6c1CAKovkLQ4kdpt6S7oLWOii7RpwkM2DA==" + "version": "0.5.32", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.5.32.tgz", + "integrity": "sha512-qJvU7F4iew2Oyzb9/lNjGl8l+LPj9WyHDoxOeQrXnTW8BsPAXI7qOr5mW9K8nAN9siebKfqo3mIfgbbNLBMGLQ==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -80,7 +80,7 @@ "@walmart/manager-approvals-miniapp": "0.0.42", "@walmart/metrics-mini-app": "0.4.10", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.5.31", + "@walmart/push-to-talk-mini-app": "0.5.32", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.27.0", "@walmart/react-native-shared-navigation": "^0.4.0",
Bump PTT version for preferred name
Bump PTT version for preferred name
bf55048777cebe6d5011b85e4f9e3a8db844e324
--- graphql.yml @@ -49,8 +49,8 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: 'ca8e5acc29eeba742a4e7bc7ec976770e607b6e25ce48b6dc4eb88e372748eb5' queryTemplate: 'src/queries/getTeamById.graphql' @@ -77,8 +77,8 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: 'ca8e5acc29eeba742a4e7bc7ec976770e607b6e25ce48b6dc4eb88e372748eb5' queryTemplate: 'src/queries/getTeamById.graphql' --- graphql.yml @@ -49,8 +49,8 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: 'ca8e5acc29eeba742a4e7bc7ec976770e607b6e25ce48b6dc4eb88e372748eb5' queryTemplate: 'src/queries/getTeamById.graphql' @@ -77,8 +77,8 @@ applications: hash: 'a91589d0ee9424fabe377345d9994068d07fb8781417b94ef77575d3fdd3f8f3' queryTemplate: 'src/queries/getDailyRoster.graphql' tags: - - 'v2' - - 'Drop13' + - 'v3' + - 'Drop14' - name: 'GetTeamById' hash: 'ca8e5acc29eeba742a4e7bc7ec976770e607b6e25ce48b6dc4eb88e372748eb5' queryTemplate: 'src/queries/getTeamById.graphql'
update getDailyRoster tag
update getDailyRoster tag
6dd45c25f00cad88bec4cb816faaf68ac78c1c8b
--- package-lock.json @@ -53,7 +53,7 @@ "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "1.2.2", - "@walmart/inbox-mini-app": "0.81.9-400-832dccb", + "@walmart/inbox-mini-app": "0.81.12", "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45", @@ -5196,9 +5196,9 @@ } }, "node_modules/@walmart/inbox-mini-app": { - "version": "0.81.9-400-832dccb", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.9-400-832dccb.tgz", - "integrity": "sha512-HdpT2fIDP8CV4EwGnYy4wh3d3qe+qtXHWoi2GcC6WCX/3r9OSrvSmH13cXBlp279ALepSAWKjrnuFIBi3xZMhA==", + "version": "0.81.12", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.12.tgz", + "integrity": "sha512-KN1m9jDxycTKt/46lDnpDwg0pKS5MvOqm/9HThMTxwoRojR/d/g2snPCwN9wxDtFAsvuQUdQWHmMA/vHDQ1yKA==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" @@ -25090,9 +25090,9 @@ "integrity": "sha512-Mh3s0NI0QSMUtH5lkWqksw+QyROQIgz3tnb7Yn+sIAdJCo/sijB94t+dZLTdpIJcAQE0w7MGH8iSWnaGJ3gzrg==" }, "@walmart/inbox-mini-app": { - "version": "0.81.9-400-832dccb", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.9-400-832dccb.tgz", - "integrity": "sha512-HdpT2fIDP8CV4EwGnYy4wh3d3qe+qtXHWoi2GcC6WCX/3r9OSrvSmH13cXBlp279ALepSAWKjrnuFIBi3xZMhA==", + "version": "0.81.12", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.12.tgz", + "integrity": "sha512-KN1m9jDxycTKt/46lDnpDwg0pKS5MvOqm/9HThMTxwoRojR/d/g2snPCwN9wxDtFAsvuQUdQWHmMA/vHDQ1yKA==", "requires": { "@walmart/moment-walmart": "1.0.4", "@walmart/walmart-fiscal-week": "^0.3.6" --- package.json @@ -95,7 +95,7 @@ "@walmart/gtp-shared-components": "2.0.3", "@walmart/impersonation-mini-app": "1.11.0", "@walmart/ims-print-services-ui": "1.2.2", - "@walmart/inbox-mini-app": "0.81.9-400-832dccb", + "@walmart/inbox-mini-app": "0.81.12", "@walmart/iteminfo-mini-app": "5.3.5", "@walmart/manager-approvals-miniapp": "0.2.1", "@walmart/me-field-mini-app": "1.1.45",
fix(inbox): update inbox version ssmp-4418
fix(inbox): update inbox version ssmp-4418
23d351694f0c6ac990703f680c62b0d3c363f44e
--- src/managerExperience/screens/AllTeamsScreen/AllTeamsScreen.tsx @@ -16,6 +16,10 @@ import {AllTeamsLoadingScreen} from './AllTeamsLoadingScreen'; import {NavigationProp, useNavigation} from '@react-navigation/native'; import {TextingNavParamsMap} from '../../../navigation'; import {analytics} from '../../../logger/Analytics'; +import { + TOTAL_STORE_TEAM_ID, + TOTAL_STORE_TEAM_LABEL, +} from '@walmart/allspark-foundation-hub/HubFeature/constant'; export const AllTeamsScreen = () => { const {t} = useTranslation([ROSTER_I18N_NAMESPACE]); @@ -76,10 +80,12 @@ export const AllTeamsScreen = () => { handlePress={() => { analytics('view_team', { message: 'View total store roster', - teamName: 'Total store', - teamId: 'Total store', + teamName: TOTAL_STORE_TEAM_LABEL, + teamId: TOTAL_STORE_TEAM_ID, + }); + navigation.navigate('myTeam.rosterDetail', { + teamId: TOTAL_STORE_TEAM_ID, }); - navigation.navigate('myTeam.rosterDetail', {teamId: 'total'}); }} /> <View style={styles.separator} />
feat: used constants rather than hard coding
feat: used constants rather than hard coding
698db17b2e363d34d06910556e5d4840159d69e1
--- targets/US/ios/Podfile.lock @@ -1929,7 +1929,7 @@ PODS: - React-Core - react-native-safe-area-context (4.10.8): - React-Core - - react-native-scanner-3.0 (0.8.1): + - react-native-scanner-3.0 (0.8.2): - Firebase/Analytics - React - ScanditBarcodeCapture (= 6.25.2) @@ -2846,7 +2846,7 @@ SPEC CHECKSUMS: react-native-pdf: 103940c90d62adfd259f63cca99c7c0c306b514c react-native-render-html: 984dfe2294163d04bf5fe25d7c9f122e60e05ebe react-native-safe-area-context: b7daa1a8df36095a032dff095a1ea8963cb48371 - react-native-scanner-3.0: e0c4c6a55a6bd34cd2ac99f27c7f6bb32bf9ce16 + react-native-scanner-3.0: cb097ec5234ea1c7713c9d5d74f323ee840e0dfb react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-view-shot: 6b7ed61d77d88580fed10954d45fad0eb2d47688 @@ -2922,7 +2922,7 @@ SPEC CHECKSUMS: walmart-react-native-sumo-sdk: a6dc20c0ec3c8ab878886529a0e2fc22e747821c WebexSDK: d652713bd7ad5902e81918121912ba75a0056c3b wifi-store-locator: 501fca0a220c725ed93ab403635c0f246a8ce7e3 - Yoga: c716aea2ee01df6258550c7505fa61b248145ced + Yoga: 47d399a73c0c0caa9ff824e5c657eae31215bfee PODFILE CHECKSUM: 17e750d8df86ae62ba07284ce6cb973a761640ea --- targets/US/package.json @@ -131,7 +131,7 @@ "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "~6.3.20", "@walmart/react-native-logger": "1.34.8", - "@walmart/react-native-scanner-3.0": "0.8.1", + "@walmart/react-native-scanner-3.0": "0.8.2", "@walmart/react-native-shared-navigation": "~6.3.20", "@walmart/react-native-store-map": "0.3.7", "@walmart/react-native-sumo-sdk": "2.7.0", --- yarn.lock @@ -7109,7 +7109,7 @@ __metadata: "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-env": "npm:~6.3.20" "@walmart/react-native-logger": "npm:1.34.8" - "@walmart/react-native-scanner-3.0": "npm:0.8.1" + "@walmart/react-native-scanner-3.0": "npm:0.8.2" "@walmart/react-native-shared-navigation": "npm:~6.3.20" "@walmart/react-native-store-map": "npm:0.3.7" "@walmart/react-native-sumo-sdk": "npm:2.7.0" @@ -7686,12 +7686,12 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-scanner-3.0@npm:0.8.1": - version: 0.8.1 - resolution: "@walmart/react-native-scanner-3.0@npm:0.8.1" +"@walmart/react-native-scanner-3.0@npm:0.8.2": + version: 0.8.2 + resolution: "@walmart/react-native-scanner-3.0@npm:0.8.2" peerDependencies: react-native: ">=0.47.1" - checksum: 10c0/9bf8dfa332636f7fad34de5b0a928f4ae5e08dc768af841564d009c183a1a5ab6437a03b9ed8ea831d3d2c92c1768557f5618805d82d73df0abb736dacdbbce8 + checksum: 10c0/d18b225cfacec354aac53be3225105662ff93e4779dc5c9545c9b7db942cfb9c3c1e734c0b85ac96d3947209171600fd8cb14e3133815b2bba37c05565dc23df languageName: node linkType: hard
Updated Scanner 3.0 to 0.8.2
Updated Scanner 3.0 to 0.8.2
c8d6dac86ce0c2244df7b30729dd5553fd1406f2
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 137 + versionCode 138 versionName "1.0.14" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>137</string> + <string>138</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key>
Incrementing build number
Incrementing build number
b7d9a48e5ce6cd5a268e4841e67ae638cc21e4e9
--- package.json @@ -132,7 +132,7 @@ "@walmart/react-native-cookies": "1.0.1", "@walmart/react-native-encrypted-storage": "~1.1.3", "@walmart/react-native-env": "~6.3.28", - "@walmart/react-native-logger": "1.35.0", + "@walmart/react-native-logger": "1.37.0", "@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.10.7#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.10.7-9aedc7354c.patch", "@walmart/react-native-shared-navigation": "~6.3.28", "@walmart/react-native-store-map": "0.3.7", --- yarn.lock @@ -8365,7 +8365,7 @@ __metadata: "@walmart/react-native-cookies": "npm:1.0.1" "@walmart/react-native-encrypted-storage": "npm:~1.1.3" "@walmart/react-native-env": "npm:~6.3.28" - "@walmart/react-native-logger": "npm:1.35.0" + "@walmart/react-native-logger": "npm:1.37.0" "@walmart/react-native-scanner-3.0": "patch:@walmart/react-native-scanner-3.0@npm%3A0.10.7#~/.yarn/patches/@walmart-react-native-scanner-3.0-npm-0.10.7-9aedc7354c.patch" "@walmart/react-native-shared-navigation": "npm:~6.3.28" "@walmart/react-native-store-map": "npm:0.3.7" @@ -8889,14 +8889,14 @@ __metadata: languageName: node linkType: hard -"@walmart/react-native-logger@npm:1.35.0": - version: 1.35.0 - resolution: "@walmart/react-native-logger@npm:1.35.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-logger%2F-%2Freact-native-logger-1.35.0.tgz" +"@walmart/react-native-logger@npm:1.37.0": + version: 1.37.0 + resolution: "@walmart/react-native-logger@npm:1.37.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freact-native-logger%2F-%2F%40walmart%2Freact-native-logger-1.37.0.tgz" peerDependencies: lodash: ^4.17.21 react: "*" react-native: "*" - checksum: 10c0/552c3369365020cae6c943dcb645a4a9930b0fa55c87d695820c69546d51909ed13820290df3c85d62c498043a51007f0313fb5e69b055ea6f276960f61efe27 + checksum: 10c0/53b7d17c41f22549287254785295d6a5eb303af58d31f1bbeac3822b5a7d0de13438068d92bfaabbe0782761700d555835935340181aaef63655cd6d0d6372c6 languageName: node linkType: hard
refactor(package.json): ALLSPARK-5918 bump package.json for RN logger
refactor(package.json): ALLSPARK-5918 bump package.json for RN logger
b6f1223c6dd0bdaab98b94d7f8a8e32f5d58c111
--- src/managerExperience/components/RosterFiltersHeader/RosterFiltersHeader.tsx @@ -1,8 +1,8 @@ import React from 'react'; import {RosterFiltersHeaderProps} from './types'; -import {Text, View} from 'react-native'; +import {View} from 'react-native'; import {RosterFiltersHeaderStyles as styles} from './style'; -import {Skeleton} from '@walmart/gtp-shared-components/dist'; +import {Body, Heading, Skeleton} from '@walmart/gtp-shared-components/dist'; export const RosterFiltersHeader = ({ headerText, @@ -11,12 +11,12 @@ export const RosterFiltersHeader = ({ }: RosterFiltersHeaderProps) => { return ( <View style={styles.container}> - <Text - style={styles.headerText} + <Heading + UNSAFE_style={styles.headerText} accessibilityLabel={headerText} testID='roster-filters-header'> {headerText} - </Text> + </Heading> {loading ? ( <Skeleton height={24} @@ -24,12 +24,12 @@ export const RosterFiltersHeader = ({ testID='filter-header-loading-associates' /> ) : ( - <Text - style={styles.numberOfAssociates} + <Body + UNSAFE_style={styles.numberOfAssociates} accessibilityLabel={`${numberOfAssociates}`} testID='numberOfAssociates'> ({numberOfAssociates.toString()}) - </Text> + </Body> )} </View> ); --- src/managerExperience/components/RosterFiltersHeader/style.ts @@ -1,22 +1,16 @@ import {StyleSheet} from 'react-native'; -import {colors} from '@walmart/gtp-shared-components'; export const RosterFiltersHeaderStyles = StyleSheet.create({ container: { flexDirection: 'row', alignItems: 'center', + marginTop: 100, }, headerText: { - color: colors.gray['160'], - fontSize: 20, - lineHeight: 28, - fontFamily: 'Bogle-Bold', marginRight: 6, }, numberOfAssociates: { - color: colors.gray['160'], fontSize: 18, lineHeight: 28, - fontFamily: 'Bogle-Regular', }, });
feat: updated roster header to use gtp components
feat: updated roster header to use gtp components
a646e821f68d4247e7999d0101da9806f46d6b8e
--- packages/allspark-foundation/__tests__/Hub/__snapshots__/VerticalDivider.test.tsx.snap @@ -1,19 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`VerticalDivideer renders correctly 1`] = ` -<View - style={ - { - "alignSelf": "center", - "backgroundColor": "#e3e4e5", - "height": 64, - "width": 1, - } - } - testID="vertical-divider" -/> -`; - exports[`VerticalDivider renders correctly 1`] = ` <View style={
test: update snapshot vertical divider
test: update snapshot vertical divider
9db078489ba2b66c2bcaf91fb395e3bc1b16d8a0
--- package.json @@ -171,7 +171,7 @@ "@walmart/translator-mini-app": "patch:@walmart/translator-mini-app@npm%3A1.7.17#~/.yarn/patches/@walmart-translator-mini-app-npm-1.7.17-ff0dbf51a0.patch", "@walmart/ui-components": "1.27.0", "@walmart/walmart-fiscal-week": "^0.3.6", - "@walmart/welcomeme-mini-app": "^1.0.14", + "@walmart/welcomeme-mini-app": "^1.0.15", "@walmart/wfm-ui": "3.0.4", "@walmart/wm-plus-mini-app": "1.5.5", "@walmart/wmconnect-mini-app": "3.7.0", --- yarn.lock @@ -8222,7 +8222,7 @@ __metadata: "@walmart/translator-mini-app": "patch:@walmart/translator-mini-app@npm%3A1.7.17#~/.yarn/patches/@walmart-translator-mini-app-npm-1.7.17-ff0dbf51a0.patch" "@walmart/ui-components": "npm:1.27.0" "@walmart/walmart-fiscal-week": "npm:^0.3.6" - "@walmart/welcomeme-mini-app": "npm:^1.0.14" + "@walmart/welcomeme-mini-app": "npm:^1.0.15" "@walmart/wfm-ui": "npm:3.0.4" "@walmart/wm-plus-mini-app": "npm:1.5.5" "@walmart/wmconnect-mini-app": "npm:3.7.0" @@ -9590,9 +9590,9 @@ __metadata: languageName: node linkType: hard -"@walmart/welcomeme-mini-app@npm:^1.0.14": - version: 1.0.14 - resolution: "@walmart/welcomeme-mini-app@npm:1.0.14::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwelcomeme-mini-app%2F-%2F%40walmart%2Fwelcomeme-mini-app-1.0.14.tgz" +"@walmart/welcomeme-mini-app@npm:^1.0.15": + version: 1.0.15 + resolution: "@walmart/welcomeme-mini-app@npm:1.0.15::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwelcomeme-mini-app%2F-%2F%40walmart%2Fwelcomeme-mini-app-1.0.15.tgz" peerDependencies: "@walmart/allspark-foundation": "*" "@walmart/schedule-mini-app": "*" @@ -9609,7 +9609,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/6890cf8168f4831be7b0b4190d648c7b517a197f0204d33d7e3b2c4e9a3af56d5e6f2b07802f0aa50d89e06f66ab747e6d81ceaf9131d5012b76c4cdea89260a + checksum: 10c0/20d99cf70101858e2d0012fd4c2a7cad29c0e7cf2f514be68187b50025d050366edafd2bae5dbe8f805d20edfdd6dfab43614592ac76a2c46f58ace425936061 languageName: node linkType: hard
fix(ALLSPARK-7179): version update welcome me mini app (#4958)
fix(ALLSPARK-7179): version update welcome me mini app (#4958) Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> Co-authored-by: Aroushi Sharma - a0s11tw <Aroushi.Sharma@walmart.com>
33df75446a52cc655b6c790ae25cee32fd56c960
--- package-lock.json @@ -87,7 +87,7 @@ "@walmart/receipt-check-miniapp": "1.18.7", "@walmart/redux-store": "3.7.0", "@walmart/returns-mini-app": "3.13.0", - "@walmart/schedule-mini-app": "0.63.0", + "@walmart/schedule-mini-app": "0.63.1", "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.24.0", "@walmart/taskit-mini-app": "2.53.3", @@ -9748,14 +9748,12 @@ } }, "node_modules/@walmart/schedule-mini-app": { - "version": "0.63.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.63.0.tgz", - "integrity": "sha512-PtAWjN5YDnl0qU4ux8pZMW/8R3pKUbmCvK+X+2LquJa3B8EdoST0kUxuNBYNFjjUQBazdVQs4PUm0nfSzf1oEg==", + "version": "0.63.1", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.63.1.tgz", + "integrity": "sha512-yjpuHKG7hNrcYWVImsAa1GJt4sYxhh+ai9lhNdp0KEOv8G13sQpGzGhDNbPCfcoVpxwG4NX21bb2ia4uuMk/oA==", "dependencies": { "@walmart/moment-walmart": "^1.0.4", "@walmart/wfm-ui": "0.8.2", - "crypto-js": "^3.3.0", - "react-native-tab-view": "^2.4.0", "wfm-allspark-data-library": "^1.7.0" }, "peerDependencies": { @@ -9769,11 +9767,13 @@ "@walmart/react-native-shared-navigation": "^0.2.0", "@walmart/redux-store": ">=1.0.15", "@walmart/ui-components": ">=1.15.0", + "crypto-js": ">=4.2.0", "i18next": "^19.8.7", "javascript-time-ago": "^2.3.4", "react": ">=18.1.0", "react-i18next": ">=12.0.0", "react-native": ">=0.70.5", + "react-native-tab-view": "^2.4.0", "react-native-wm-config": "^0.1.1", "react-redux": ">=7.2.1", "redux": "^4.0.5", @@ -33614,14 +33614,12 @@ } }, "@walmart/schedule-mini-app": { - "version": "0.63.0", - "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.63.0.tgz", - "integrity": "sha512-PtAWjN5YDnl0qU4ux8pZMW/8R3pKUbmCvK+X+2LquJa3B8EdoST0kUxuNBYNFjjUQBazdVQs4PUm0nfSzf1oEg==", + "version": "0.63.1", + "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.63.1.tgz", + "integrity": "sha512-yjpuHKG7hNrcYWVImsAa1GJt4sYxhh+ai9lhNdp0KEOv8G13sQpGzGhDNbPCfcoVpxwG4NX21bb2ia4uuMk/oA==", "requires": { "@walmart/moment-walmart": "1.0.4", "@walmart/wfm-ui": "0.8.2", - "crypto-js": "^3.3.0", - "react-native-tab-view": "^3.3.0", "wfm-allspark-data-library": "^1.7.0" }, "dependencies": { --- package.json @@ -128,7 +128,7 @@ "@walmart/receipt-check-miniapp": "1.18.7", "@walmart/redux-store": "3.7.0", "@walmart/returns-mini-app": "3.13.0", - "@walmart/schedule-mini-app": "0.63.0", + "@walmart/schedule-mini-app": "0.63.1", "@walmart/shelfavailability-mini-app": "1.5.19", "@walmart/store-feature-orders": "1.24.0", "@walmart/taskit-mini-app": "2.53.3",
Bump schedule-mini-app version. Drop 18 UI bugfixes
Bump schedule-mini-app version. Drop 18 UI bugfixes
2fbaf2eb9b54a65993bc98128e18d9f0e759cee2
--- src/components/RosterDetailPageHeader/RosterDetailPageHeader.tsx @@ -42,19 +42,23 @@ export const RosterDetailPageHeader = ({ source={{ uri: SupplyChainImages[teamId]?.uri || - SupplyChainImages['0000000']?.uri, + SupplyChainImages.Default?.uri, }} placeholder={ SupplyChainImages[teamId]?.blurhash || - SupplyChainImages['0000000']?.blurhash + SupplyChainImages.Default?.blurhash } testID={`team-image-${teamId}`} /> ) : ( <TeamImage style={styles.teamImage} - source={{uri: StoreImages[teamId]?.uri}} - placeholder={StoreImages[teamId]?.blurhash} + source={{ + uri: StoreImages[teamId]?.uri || StoreImages.Default?.uri, + }} + placeholder={ + StoreImages[teamId]?.blurhash || StoreImages.Default?.blurhash + } testID={`team-image-${teamId}`} /> )} --- src/utils/allTeams.ts @@ -57,11 +57,11 @@ export const createAllTeamsSections = ( return currentSection; }); - return sortedSections; + return sortedSections || []; }; export const createTeamsSectionsByOpsArea = (teams: SupplyChainTeam[]) => { - const groupedTeams = teams.reduce( + const groupedTeams = teams?.reduce( (acc: Record<string, SupplyChainTeam[]>, team: SupplyChainTeam) => { const opsareaName = team.opsareaName || 'Others'; if (!acc[opsareaName]) { @@ -73,13 +73,15 @@ export const createTeamsSectionsByOpsArea = (teams: SupplyChainTeam[]) => { {} as Record<string, SupplyChainTeam[]>, ); - return Object.entries(groupedTeams).map(([opsareaName, teams]) => ({ - title: opsareaName, - data: teams.map((team: SupplyChainTeam) => ({ - ...team, - workareaName: team.workareaName, - })), - })); + return groupedTeams + ? Object.entries(groupedTeams).map(([opsareaName, teams]) => ({ + title: opsareaName, + data: teams.map((team: SupplyChainTeam) => ({ + ...team, + workareaName: team.workareaName, + })), + })) + : []; }; export const mapAvailableShifts = ( availableShifts: {
Fix the weekly schedule changes for Supply Chain
Fix the weekly schedule changes for Supply Chain
6c63e019a16a85a08f32b8e6d398ec206bcf7fa8
--- packages/allspark-authentication/src/Authentication.ts @@ -284,7 +284,7 @@ export class AllsparkAuthentication { let authResult = await this._cachedResult.get(); if (!authResult) { - return null; + throw NO_CACHE_ERROR; } // Refresh will check validity of current cached result and return that if valid
fix: throw no cache error on get user
fix: throw no cache error on get user
2d7c5f62fb549df5a91be949c0b8bf564c31761e
--- .looper.multibranch.yml @@ -184,7 +184,6 @@ envs: variables: AUTOMATION_LOOPER_USERNAME: "%{credentials.secret('AUTOMATION_LOOPER_USERNAME')}" AUTOMATION_LOOPER_PASSWORD: "%{credentials.secret('AUTOMATION_LOOPER_PASSWORD')}" - AUTOMATION_LOOPER_YAML: automation_looper.yml ## ReleaseTypes-Based Variables feature: @@ -1111,7 +1110,7 @@ flows: - exposeVars(./fastlane/fastlane-session.json) - var(ANDROID_APP_ID=${fastlane-session.android_app_id}) automation-run: - - exposeVars(${AUTOMATION_LOOPER_YAML}) + - exposeVars(automation_looper.yml) - foreach(${automation_looper['job_details']}): - try: - (name Call Automation (${value.miniapp})) $RUBY_PATH/bundle exec fastlane automation_looper automation_job_url:${value.automation_job_url} miniapp:${value.miniapp}
Update .looper.multibranch.yml
Update .looper.multibranch.yml
8805376c81629b6a65375c19572da7e14c7b1894
--- package-lock.json @@ -5342,6 +5342,11 @@ "resolved": "https://npme.walmart.com/@walmart/react-native-logger/-/react-native-logger-1.29.0.tgz", "integrity": "sha512-qxVserzdiG4xsZCLRIwYfRq/KuHsYSPkrl02tKHNhF5bhtWWo6oEUatBoSsY5BL8EVGOHk2ezsPWb2o5pg9Ryw==" }, + "@walmart/react-native-scanner-3.0": { + "version": "0.1.1", + "resolved": "https://npme.walmart.com/@walmart/react-native-scanner-3.0/-/react-native-scanner-3.0-0.1.1.tgz", + "integrity": "sha512-zd3DoKSyzsOMgLg55iUOkkjy9u5u82mh1VoOug1jk+tDhfc4sn2hyGEChkCvsouTMQR+s/9wRPMd5uwajqWyDw==" + }, "@walmart/react-native-shared-navigation": { "version": "1.0.2", "resolved": "https://npme.walmart.com/@walmart/react-native-shared-navigation/-/react-native-shared-navigation-1.0.2.tgz", --- package.json @@ -102,6 +102,7 @@ "@walmart/push-to-talk-mini-app": "1.8.4", "@walmart/react-native-env": "^0.2.0", "@walmart/react-native-logger": "^1.29.0", + "@walmart/react-native-scanner-3.0": "0.1.1", "@walmart/react-native-shared-navigation": "1.0.2", "@walmart/react-native-store-map": "^0.3.7", "@walmart/react-native-sumo-sdk": "2.2.2-beta.2",
adding back scanner
adding back scanner
eb0ca4e93a0b1b2baa2476c9fa9ad9b2b9a3e41e
--- 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.30", + "@walmart/receipt-check-miniapp": "1.8.31", "@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.30", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.30.tgz", - "integrity": "sha512-GDpoNRrmoOA9OwyDg6n+8NZCkEjv3/cVMQexz4fFYxbZrORhbhqlVw5GWT6oRacNcfUA6KutExqdGqvUVN5Ggw==", + "version": "1.8.31", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.31.tgz", + "integrity": "sha512-53FhIYHb4CWhLst5wytWG2VLm0bCzXZxknGyHb7TBlgwnmUc5ngG9TbwRZwP/VBXR6FirHQkAxDmcnnXTi2rYw==", "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.30", - "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.30.tgz", - "integrity": "sha512-GDpoNRrmoOA9OwyDg6n+8NZCkEjv3/cVMQexz4fFYxbZrORhbhqlVw5GWT6oRacNcfUA6KutExqdGqvUVN5Ggw==", + "version": "1.8.31", + "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.31.tgz", + "integrity": "sha512-53FhIYHb4CWhLst5wytWG2VLm0bCzXZxknGyHb7TBlgwnmUc5ngG9TbwRZwP/VBXR6FirHQkAxDmcnnXTi2rYw==", "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.30", + "@walmart/receipt-check-miniapp": "1.8.31", "@walmart/redux-store": "3.1.3", "@walmart/refrigeration-alarms-mini-app": "1.35.0", "@walmart/returns-mini-app": "0.6.0",
bump version for fix
bump version for fix
6361b810c6efe1e18e57c136e1738f11a93e56a8
--- package.json @@ -72,7 +72,7 @@ "@walmart/gtp-shared-components": "^0.2.2", "@walmart/impersonation-mini-app": "1.0.15", "@walmart/inbox-mini-app": "0.0.92", - "@walmart/ItemInfo": "0.1.116", + "@walmart/ItemInfo": "0.1.119", "@walmart/moment-walmart": "1.0.4", "@walmart/push-to-talk-mini-app": "0.5.0", "@walmart/react-native-env": "^0.1.0",
iteminfo new version
iteminfo new version
d47194f413c9dbba6adcd6c836b1f29661e2e150
--- graphql.yml @@ -57,7 +57,7 @@ applications: tags: - 'v1' - name: 'upsertSupplyChainAssociatePreference' - hash: '39c45936c3b4d0020c6192b629c29860a30a5f2f70c5297c9e34dcffbaa0c7b0' + hash: '571873ffcf9d8923e4951fa75addb46f876c949046518f0c302707deadab878a' queryTemplate: 'packages/me-at-walmart-athena-queries/src/upsertSupplyChainAssociatePreference.graphql' tags: - 'v1'
Update graphql.yml
Update graphql.yml
d3a17f237b508944983d630dd82cf4952df31c11
--- __tests__/components/__snapshots__/ClockedOutScreenGuardTest.tsx.snap @@ -118,122 +118,3 @@ exports[`Snapshot test renders ClockedOutScreenGuard components correctly 2`] = </View> </View> `; - -exports[`Snapshot test renders correctly for absent associate 1`] = ` -<Navigator - screenOptions={ - { - "cardStyle": { - "backgroundColor": "white", - }, - "header": [Function], - "headerLeft": "DrawerButton", - "headerShown": true, - } - } -> - <Screen - component={[Function]} - name="myTeam.clockedOutScreen" - options={ - { - "title": "My Team", - } - } - /> -</Navigator> -`; - -exports[`Snapshot test renders correctly for absent associate 2`] = ` -<View - style={ - [ - { - "alignItems": "flex-start", - "borderBottomWidth": 1, - "borderLeftWidth": 4, - "borderRadius": 4, - "borderRightWidth": 1, - "borderTopWidth": 1, - "flexDirection": "row", - "paddingLeft": 12, - "paddingRight": 15, - "paddingVertical": 6, - }, - { - "backgroundColor": "#fff9e9", - "borderBottomColor": "#ffe190", - "borderLeftColor": "#ffc220", - "borderRightColor": "#ffe190", - "borderTopColor": "#ffe190", - }, - { - "margin": 16, - }, - ] - } - testID="Alert" -> - <View - style={ - { - "marginRight": 8, - "marginTop": 2, - } - } - > - <Image - accessibilityRole="image" - source={ - { - "testUri": "../../@walmart/gtp-shared-icons/assets/images/icons/Warning-16.png", - } - } - style={ - [ - { - "height": 16, - "tintColor": "#662b0d", - "width": 16, - }, - {}, - ] - } - testID="WarningIcon" - /> - </View> - <View - style={ - { - "alignItems": "flex-start", - "flex": 1, - "flexDirection": "row", - "flexWrap": "wrap", - "justifyContent": "flex-start", - } - } - > - <Text - accessibilityRole="alert" - style={ - [ - { - "fontFamily": "Bogle", - "fontSize": 14, - "fontStyle": "normal", - "fontWeight": "400", - "lineHeight": 20, - "marginRight": 16, - "maxWidth": "95%", - }, - { - "color": "#662b0d", - }, - ] - } - > - You are currently clocked out. This feature is only available when you are clocked in. - </Text> - </View> -</View> -`;
Updating snapshot
Updating snapshot
93aa1173ad82dcd2f8eaa673b5c5f503f5111b7b
--- android/app/build.gradle @@ -158,8 +158,8 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 904 - versionName "1.8.18" + versionCode 905 + versionName "1.8.19" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. --- ios/AllSpark/Info.plist @@ -19,7 +19,7 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>1.8.18</string> + <string>1.8.19</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleURLTypes</key> @@ -36,7 +36,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>904</string> + <string>905</string> <key>FirebaseAutomaticScreenReportingEnabled</key> <false /> <key>LSApplicationQueriesSchemes</key> --- package-lock.json @@ -1,12 +1,12 @@ { "name": "allspark-main", - "version": "1.8.18", + "version": "1.8.19", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "allspark-main", - "version": "1.8.18", + "version": "1.8.19", "hasInstallScript": true, "dependencies": { "@react-native-community/art": "^1.2.0", @@ -173,7 +173,7 @@ "semver": "^7.3.4", "uuid": "^3.3.2", "victory-native": "^36.5.0", - "wifi-store-locator": "1.0.1", + "wifi-store-locator": "1.0.2", "xdate": "^0.8.2" }, "devDependencies": { @@ -21576,7 +21576,9 @@ } }, "node_modules/wifi-store-locator": { - "version": "1.0.1", + "version": "1.0.2", + "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.2.tgz", + "integrity": "sha512-fULMkwwUrlwLrpgj4zYEbbVtQFRdnVVRQXuSgrfpTSbd0lnQrlu+q2dmCURw4N1D01dBwN0feDypNwiXa+lgTQ==", "license": "MIT", "peerDependencies": { "react": "*", @@ -35133,7 +35135,9 @@ "dev": true }, "wifi-store-locator": { - "version": "1.0.1" + "version": "1.0.2", + "resolved": "https://npme.walmart.com/wifi-store-locator/-/wifi-store-locator-1.0.2.tgz", + "integrity": "sha512-fULMkwwUrlwLrpgj4zYEbbVtQFRdnVVRQXuSgrfpTSbd0lnQrlu+q2dmCURw4N1D01dBwN0feDypNwiXa+lgTQ==" }, "wm-react-native-vector-icons": { "version": "1.0.33", --- package.json @@ -1,6 +1,6 @@ { "name": "allspark-main", - "version": "1.8.18", + "version": "1.8.19", "private": true, "scripts": { "android": "react-native run-android", @@ -215,7 +215,7 @@ "semver": "^7.3.4", "uuid": "^3.3.2", "victory-native": "^36.5.0", - "wifi-store-locator": "1.0.1", + "wifi-store-locator": "1.0.2", "xdate": "^0.8.2" }, "overrides": {
update wifi store locater to v1.0.2
update wifi store locater to v1.0.2
30d6c6defd99416b16c40da3af73de34680bcc30
--- package.json @@ -168,7 +168,7 @@ "@walmart/rn-mobile-sdk-pairing": "3.0.3", "@walmart/rn-receiving-mini-app": "2.8.44", "@walmart/roster-mini-app": "3.15.0", - "@walmart/schedule-mini-app": "5.4.4", + "@walmart/schedule-mini-app": "5.4.5", "@walmart/shelfavailability-mini-app": "1.7.2", "@walmart/shop-gnfr-mini-app": "1.0.454", "@walmart/sidekick-mini-app": "4.274.1", --- yarn.lock @@ -8933,7 +8933,7 @@ __metadata: "@walmart/rn-mobile-sdk-pairing": "npm:3.0.3" "@walmart/rn-receiving-mini-app": "npm:2.8.44" "@walmart/roster-mini-app": "npm:3.15.0" - "@walmart/schedule-mini-app": "npm:5.4.4" + "@walmart/schedule-mini-app": "npm:5.4.5" "@walmart/shelfavailability-mini-app": "npm:1.7.2" "@walmart/shop-gnfr-mini-app": "npm:1.0.454" "@walmart/sidekick-mini-app": "npm:4.274.1" @@ -9759,9 +9759,9 @@ __metadata: languageName: node linkType: hard -"@walmart/schedule-mini-app@npm:5.4.4": - version: 5.4.4 - resolution: "@walmart/schedule-mini-app@npm:5.4.4::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2F%40walmart%2Fschedule-mini-app-5.4.4.tgz" +"@walmart/schedule-mini-app@npm:5.4.5": + version: 5.4.5 + resolution: "@walmart/schedule-mini-app@npm:5.4.5::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2F%40walmart%2Fschedule-mini-app-5.4.5.tgz" peerDependencies: "@react-native-community/datetimepicker": ">=7.6.2" "@react-native-firebase/remote-config": ">=10.1.1" @@ -9795,7 +9795,7 @@ __metadata: redux: ">=4.0.5" reselect: ">=4.0.0" wfm-allspark-data-library: ">=7.0.0" - checksum: 10c0/a87cad4ea33fe44b413a9c74b5aaa39237716dfb78191c5513580a030eaddb44618381fbaf5bbde0d1451cf618f08588172c0cf50ef20406ab0b5b5b27abe6b0 + checksum: 10c0/35ef3c11be4d95697343a79d76719ab0d32ef56632e3e5046423b3b6fe02342ef991afa28ed6c922130236b99da419f0e61d19b337eefd547a71f3c448cc0826 languageName: node linkType: hard
fix(schedules): Bump schedules to fix http client issue (#5416)
fix(schedules): Bump schedules to fix http client issue (#5416)
edb830242237b71e6350f3542e51c6b4f667f7ca
--- scripts/mini-app-scan/package-deprecation/legacy-library-deprecated.json @@ -1 +1,50 @@ -[] \ No newline at end of file +[ + { + "legacyLibrary": "@walmart/core-services", + "replacement": "@walmart/allspark-foundation", + "enforcementDate": "2025-08-22", + "notes": "Use the foundation replacement for all new development." + }, + { + "legacyLibrary": "@walmart/core-utils", + "replacement": "@walmart/allspark-utils", + "enforcementDate": "2025-08-22", + "notes": "Use the foundation replacement for all new development." + }, + { + "legacyLibrary": "@walmart/react-native-env", + "replacement": "@walmart/allspark-foundation/Environment", + "enforcementDate": "2025-08-22", + "notes": "Use the foundation replacement for all new development." + }, + { + "legacyLibrary": "@walmart/react-native-shared-navigation", + "replacement": "@walmart/allspark-foundation/Navigation", + "enforcementDate": "2025-08-22", + "notes": "Use the foundation replacement for all new development." + }, + { + "legacyLibrary": "@walmart/react-native-wm-network", + "replacement": "@walmart/allspark-foundation/Network", + "enforcementDate": "2025-08-22", + "notes": "Use the foundation replacement for all new development." + }, + { + "legacyLibrary": "@walmart/react-native-wm-notification", + "replacement": "@walmart/allspark-foundation/Notification", + "enforcementDate": "2025-08-22", + "notes": "Use the foundation replacement for all new development." + }, + { + "legacyLibrary": "@walmart/redux-store", + "replacement": "@walmart/allspark-foundation/Redux", + "enforcementDate": "2025-08-22", + "notes": "Use the foundation replacement for all new development." + }, + { + "legacyLibrary": "@walmart/functional-components", + "replacement": "@walmart/allspark-foundation/HTTP", + "enforcementDate": "2025-08-22", + "notes": "Use the foundation replacement for all new development." + } +]
feat: add deprecation schedule based on drop 33
feat: add deprecation schedule based on drop 33
2030e200dfd2b1cc8d30914efc93bf5b5bccf048
--- __tests__/home/components/DataSaverWidgetTest.tsx @@ -1,9 +1,8 @@ import React from 'react'; +import {Platform} from 'react-native'; import {useSelector} from 'react-redux'; import {create} from 'react-test-renderer'; - import {DataSaverWidget} from '../../../src/home/components/DataSaverWidget'; -import {Platform} from 'react-native'; const mockUseSelector = useSelector as jest.Mock; --- src/home/components/DataSaverWidget.tsx @@ -3,8 +3,7 @@ import {StyleProp, ViewStyle} from 'react-native'; import {useSelector} from 'react-redux'; import {DataSaverCard} from '@walmart/ui-components'; import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation'; - -import {getDataSaverOn} from '../../settings'; +import {getDataSaverOn} from '../../settings/selectors'; interface Props { style?: StyleProp<ViewStyle>;
chore: fix home tests
chore: fix home tests
992f2794da3cadaaf1d5286be592e81737ba0f5b
--- ios/BuildSupport/install-cocoapods.sh @@ -16,11 +16,15 @@ export http_proxy=http://sysproxy.wal-mart.com:8080 export no_proxy=repository.walmart.com,repo.wal-mart.com,localhost,chromium.googlesource.com echo "local pod version: ${POD_VERSION}" +echo -if [ "$POD_VERSION" != "$CCP_VER" ] -then - sudo gem uninstall cocoapods -a -x --user-install --verbose - sudo gem install cocoapods -v ${CCP_VER} --user-install --verbose +CORE_POD_VERSION=$(sudo gem list | grep -w "cocoapods-core") +echo "cocoapods-core versions: $CORE_POD_VERSION" +POD_VERSION=$(sudo gem list | grep -w "cocoapods" | grep -v '-') +echo "cocoapods versions: $POD_VERSION" + +if [[ "$CORE_POD_VERSION" != *$CCP_VER* ]] || [[ "$POD_VERSION" != *$CCP_VER* ]];then + sudo gem install cocoapods -v ${CCP_VER} --verbose fi pod_path=$(ruby -r rubygems -e 'puts Gem.user_dir')/bin
Update install-cocoapods.sh
Update install-cocoapods.sh
cf2216bc772dd9ccc518252c8d1d351d1b13a4ab
--- docs/CHANGELOG.md @@ -1,3 +1,10 @@ +# [3.14.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.13.0...v3.14.0) (2026-01-16) + + +### Features + +* **ui:** bumped roster and wmconnect versions ([18f7fc7](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/18f7fc793db4bb20cbd8a93dc50d504ac7fe2be7)) + # [3.13.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.12.0...v3.13.0) (2025-12-22) --- package.json @@ -1,6 +1,6 @@ { "name": "@walmart/myteam-mini-app", - "version": "3.13.0", + "version": "3.14.0", "main": "dist/index.js", "files": [ "dist",
chore(release): 3.14.0 [skip ci]
chore(release): 3.14.0 [skip ci] # [3.14.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.13.0...v3.14.0) (2026-01-16) ### Features * **ui:** bumped roster and wmconnect versions ([18f7fc7](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/18f7fc793db4bb20cbd8a93dc50d504ac7fe2be7))
e300fa7f81edaf98a7693a1fff2517e8465c2679
--- jest.config.js @@ -22,6 +22,7 @@ module.exports = { transformIgnorePatterns: [ '<rootDir>/node_modules/(?!(react-native|react-redux|@react-native|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-icons|@react-native-community/picker|@walmart/redux-store|@walmart/allspark-foundation|@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/core-utils|@walmart/allspark-graphql-client|@walmart/allspark-http-client|@walmart/allspark-utils|@walmart/config-components|@walmart/react-native-shared-navigation))', ], + testResultsProcessor: 'jest-sonar-reporter', testPathIgnorePatterns: [ '<rootDir>/__tests__/setup.ts', '<rootDir>/__tests__/__mocks__/', --- package.json @@ -92,6 +92,7 @@ "install": "^0.13.0", "javascript-time-ago": "^2.5.7", "jest": "^29.2.1", + "jest-sonar-reporter": "^2.0.0", "metro-react-native-babel-preset": "0.76.5", "namecase": "^1.1.2", "npm": "^9.6.4", --- yarn.lock @@ -6365,6 +6365,7 @@ __metadata: install: "npm:^0.13.0" javascript-time-ago: "npm:^2.5.7" jest: "npm:^29.2.1" + jest-sonar-reporter: "npm:^2.0.0" metro-react-native-babel-preset: "npm:0.76.5" moment-timezone: "npm:~0.5.43" namecase: "npm:^1.1.2"
Update mini app versions
Update mini app versions
43bc592afb229b3be94f9d6a89350438cee51de4
--- __tests__/screens/SearchScreen/__snapshots__/SearchScreenTest.tsx.snap @@ -53,6 +53,7 @@ exports[`SearchScreen should render search screen with expected elements 1`] = ` extendedState={ Object { "value": Object { + "isSearchScreen": true, "listLength": 0, }, } @@ -60,6 +61,7 @@ exports[`SearchScreen should render search screen with expected elements 1`] = ` externalScrollView={[Function]} extraData={ Object { + "isSearchScreen": true, "listLength": 0, } } @@ -102,6 +104,7 @@ exports[`SearchScreen should render search screen with expected elements 1`] = ` "data": Array [], "estimatedItemSize": 100, "extraData": Object { + "isSearchScreen": true, "listLength": 0, }, "numColumns": 1, --- __tests__/screens/SearchScreen/__snapshots__/SearchScreenTest.tsx.snap @@ -53,6 +53,7 @@ exports[`SearchScreen should render search screen with expected elements 1`] = ` extendedState={ Object { "value": Object { + "isSearchScreen": true, "listLength": 0, }, } @@ -60,6 +61,7 @@ exports[`SearchScreen should render search screen with expected elements 1`] = ` externalScrollView={[Function]} extraData={ Object { + "isSearchScreen": true, "listLength": 0, } } @@ -102,6 +104,7 @@ exports[`SearchScreen should render search screen with expected elements 1`] = ` "data": Array [], "estimatedItemSize": 100, "extraData": Object { + "isSearchScreen": true, "listLength": 0, }, "numColumns": 1,
Update snapshot
Update snapshot
b553e5499a3c506d6f90a7cbb14667b7c6dc2b7b
--- packages/allspark-foundation-hub/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -60,9 +60,9 @@ export class AllsparkHubContainer { this.AllsparkWidgetContainer = AllsparkComponentContainers.create(name); const getCCMConfig = ConfigSelectors.createFeatureConfigSelector(ccmNamespace); - const ccmConfigInfo: any = useSelector(getCCMConfig); //Todo: Add type + const ccmConfigInfo: any = useSelector(getCCMConfig); this.widgetCCMConfigs = - ccmConfigInfo?.teamHubWidgets || widgetCCMData.teamWidgetMapping; //Todo: Change the ccm property name and update the CCM ADR + ccmConfigInfo?.hubWidgetsLayoutConfig || widgetCCMData.teamWidgetMapping; return this; }; --- packages/allspark-foundation/src/HubFeature/Hub/Container/AllsparkHubContainer.tsx @@ -59,9 +59,9 @@ export class AllsparkHubContainer { this.AllsparkWidgetContainer = AllsparkComponentContainers.create(name); const getCCMConfig = ConfigSelectors.createFeatureConfigSelector(ccmNamespace); - const ccmConfigInfo = useSelector(getCCMConfig); //Todo: Add type + const ccmConfigInfo: any = useSelector(getCCMConfig); //Todo: Add type this.widgetCCMConfigs = - ccmConfigInfo?.teamHubWidgets || widgetCCMData.teamWidgetMapping; //Todo: Change the ccm property name and update the CCM ADR + ccmConfigInfo?.hubWidgetsLayoutConfig || widgetCCMData.teamWidgetMapping; return this; };
feat(ui): update tests for the initial version
feat(ui): update tests for the initial version
fc61136aca723340aa4320a19ed5c909c8023d57
--- container/app.config.US.ts @@ -1,6 +1,5 @@ import 'tsx/cjs'; import {ExpoConfig} from 'expo/config'; -import pkg from '../package.json'; import * as ExpoPlugins from '@walmart/expo-config-plugins'; /** @@ -29,7 +28,6 @@ const buildNumber = process.env.BUILD_NUMBER || '1'; const CONFIG: ExpoConfig = { name: 'Roster', slug: 'Roster', - version: pkg.version, newArchEnabled: true, android: { versionCode: Number(buildNumber), --- package.json @@ -1,6 +1,5 @@ { "name": "@walmart/roster-mini-app-core", - "version": "3.14.0", "workspaces": [ "container/", "packages/*"
chore(package.json): update configuration
chore(package.json): update configuration
634e68b2766658a9d0f66715e5e5f5572a928ce9
--- packages/allspark-foundation/src/Components/Hub/TeamSwitcher/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import { Text, View, Image, FlatList, TouchableOpacity } from 'react-native'; import { TeamSwitcherProps, TeamSwitcherTypes } from './types'; import { TeamSwitcherStyles } from './styles'; @@ -10,7 +10,7 @@ export * from './types'; export const TeamSwitcher = ({ teamData = [] }: TeamSwitcherProps) => { const [selectedTeam, setSelectedTeam] = useState<string | null>(null); - const styles = TeamSwitcherStyles(); + const styles = useMemo(() => TeamSwitcherStyles(), []); useEffect(() => { if (teamData && teamData.length > 0) {
feat: update styles being defined in main component
feat: update styles being defined in main component
ab2d5a46d6322697cbf7c33443f406045efc5bb7
--- package.json @@ -89,7 +89,7 @@ "@walmart/exception-mini-app": "0.42.1", "@walmart/facilities-management-miniapp": "0.2.2", "@walmart/feedback-all-spark-miniapp": "0.6.0", - "@walmart/financial-wellbeing-feature-app": "1.0.26", + "@walmart/financial-wellbeing-feature-app": "1.0.28", "@walmart/functional-components": "2.0.6", "@walmart/gta-react-native-calendars": "0.0.15", "@walmart/gtp-shared-components": "1.8.9",
updated financial-wellbeing-feature-app - v1.0.28
updated financial-wellbeing-feature-app - v1.0.28
1d54750c3a1fe47d80182bc4036a1762a3225163
--- .gitignore @@ -56,6 +56,7 @@ buck-out/ */fastlane/report.xml */fastlane/Preview.html */fastlane/screenshots +*/fastlane/fastlane-session.json # Bundle artifact *.jsbundle --- .looper.multibranch.yml @@ -251,18 +251,23 @@ flows: - call: setup-fastlane - call: increment-version-code # - call: auto-version - - node(label=$LOOPER_NODES, ws="exclusive"): - - parallel(failsafe): - - call: build-native(ios) - - call: build-native(android) - - call: run-sonar-analysis - - call: publish-to-hygieia + # - node(label=$LOOPER_NODES, ws="exclusive"): + # - parallel(failsafe): + # - call: build-native(ios) + # - call: build-native(android) + # - call: run-sonar-analysis + # - call: publish-to-hygieia # Setup the fastlane library to increment versionCode and build number (we might use it for uploading builds to AppCenter as well) setup-fastlane: - shell: ruby --version - shell: gem --version - (name Bundle) https_proxy=http://sysproxy.wal-mart.com:8080 http_proxy=http://sysproxy.wal-mart.com:8080 bundle + - (var versionCode = bundle exec fastlane get_android_version_code) + - exposeVars(fastlane/fastlane-session.json) + - echo "Android version code ${fastlane-session.android_version_code}" + - echo "Android version code ${fastlane-session.version_code}" + # Set the version code and build number of the native project increment-version-code: --- fastlane/Fastfile @@ -33,11 +33,28 @@ private_lane :set_android do |values| ) end +desc 'Android: Get Version Code' +lane :get_android_version_code do + puts android_get_version_code( + gradle_file: "#{ANDROID_PROJECT}" + ) + UI.message "-------------------------------------------" + session[:android_version_code]=Actions.lane_context[SharedValues::ANDROID_VERSION_CODE] + save_session + UI.message "-------------------------------------------" + +end + desc 'Evaluate and Set Build Number and Version Code' lane :set_build do version_json = read_json(json_path: "#{VERSION_PATH}") version_json[:build] += 1 + UI.message "-------------------------------------------" + session[:version_code]=version_json[:build] + save_session + UI.message "-------------------------------------------" + set_ios(build_number: version_json[:build]) set_android(version_code: version_json[:build]) @@ -45,4 +62,18 @@ lane :set_build do file_path: "#{VERSION_PATH}", hash: version_json ) -end \ No newline at end of file +end + + +# Use the `session` hash and the `save_session` method to store values +# you want to use across Fastlast lanes. + +def session + @session ||= JSON.load(File.read(SESSION_FILE)) rescue {} +end + +def save_session + File.open(SESSION_FILE, "w") {|f| f.write(session.to_json)} +end + +SESSION_FILE="fastlane-session.json" \ No newline at end of file --- fastlane/README.md @@ -15,6 +15,11 @@ Install _fastlane_ using or alternatively using `brew install fastlane` # Available Actions +### get_android_version_code +``` +fastlane get_android_version_code +``` +Android: Get Version Code ### set_build ``` fastlane set_build
adding fastlane to get android version code
adding fastlane to get android version code
a421538762daf72747e8fa342b3e2d638f4d2225
--- targets/US/package.json @@ -124,7 +124,7 @@ "@walmart/native-rfid-scanner": "3.12.1", "@walmart/onewalmart-miniapp": "1.0.24", "@walmart/pay-stub-miniapp": "0.20.5", - "@walmart/payrollsolution_miniapp": "0.145.16", + "@walmart/payrollsolution_miniapp": "0.145.18", "@walmart/price-changes-mini-app": "1.10.18", "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch", "@walmart/react-native-cookies": "1.0.1", --- yarn.lock @@ -7326,7 +7326,7 @@ __metadata: "@walmart/native-rfid-scanner": "npm:3.12.1" "@walmart/onewalmart-miniapp": "npm:1.0.24" "@walmart/pay-stub-miniapp": "npm:0.20.5" - "@walmart/payrollsolution_miniapp": "npm:0.145.16" + "@walmart/payrollsolution_miniapp": "npm:0.145.18" "@walmart/price-changes-mini-app": "npm:1.10.18" "@walmart/profile-feature-app": "patch:@walmart/profile-feature-app@npm%3A1.138.3#~/.yarn/patches/@walmart-profile-feature-app-npm-1.138.3-9802440ed6.patch" "@walmart/react-native-cookies": "npm:1.0.1" @@ -7750,15 +7750,15 @@ __metadata: languageName: node linkType: hard -"@walmart/payrollsolution_miniapp@npm:0.145.16": - version: 0.145.16 - resolution: "@walmart/payrollsolution_miniapp@npm:0.145.16" +"@walmart/payrollsolution_miniapp@npm:0.145.18": + version: 0.145.18 + resolution: "@walmart/payrollsolution_miniapp@npm:0.145.18" dependencies: crypto-js: "npm:^3.3.0" expo: "npm:^50.0.0" peerDependencies: "@walmart/allspark-foundation": "*" - checksum: 10c0/f7c8812119d852d86c44053b4006cc6ad14f030eacd84279588082c3ce726fa5350083f0fc031a6571d7d94fad6182caf14dd50a58c7310eeee277a0554f124f + checksum: 10c0/134e14022d4d13a40fff30fb26b5076f0439322123ead4a53a0dbde06daed90e4d84f9e9e17f88d1e1cdc78334d376ae48f17a3eea9572dbea87ca2c94701739 languageName: node linkType: hard
bump version
bump version
9984deb224a32e848ba91ce95186bb69424529d5
--- package-lock.json @@ -3119,9 +3119,9 @@ } }, "@walmart/push-to-talk-mini-app": { - "version": "0.0.83", - "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.83.tgz", - "integrity": "sha512-pF4FERi3CMwZ4vAsggWkTdkFEKvVd9e69MHmAecVIBWhsjhYUdijtJwp2xcyeYs1uA1H6iMkFWK1LYJ4Nrq2vQ==" + "version": "0.0.86", + "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.0.86.tgz", + "integrity": "sha512-vbYP7vftCMv6BSXecCbMpegWWnxKPkN0cXplY26zeadlBjDUy4j0FtYzsmmAKzwCzABu15+pxfmFt3aJErKLfA==" }, "@walmart/react-native-collapsible": { "version": "1.5.3", --- package.json @@ -57,7 +57,7 @@ "@walmart/impersonation-mini-app": "1.0.9", "@walmart/inbox-mini-app": "0.0.44", "@walmart/moment-walmart": "1.0.4", - "@walmart/push-to-talk-mini-app": "0.0.83", + "@walmart/push-to-talk-mini-app": "0.0.86", "@walmart/react-native-env": "^0.1.0", "@walmart/react-native-logger": "^1.20.0", "@walmart/react-native-shared-navigation": "^0.3.0",
Ptt version bump (#321)
Ptt version bump (#321) * Updated PTT version * PTT version update * PTT version bump * PTT version bumps
a575a754ad8bc2a72bcb07a0faf54d6f0485ae52
--- packages/allspark-authentication/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.1.1](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-authentication@7.1.0...@walmart/allspark-authentication@7.1.1) (2025-10-23) + +### Bug Fixes + +- missing mywalmart components library dependency. update app auth dependency ([41be899](https://gecgithub01.walmart.com/allspark/allspark-core-services/commit/41be899b9f56b2c073801571c9d2614fa77eec6b)) + # [7.1.0](https://gecgithub01.walmart.com/allspark/allspark-core-services/compare/@walmart/allspark-authentication@6.5.1...@walmart/allspark-authentication@7.1.0) (2025-10-16) ### Features --- packages/allspark-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-authentication", - "version": "7.1.0", + "version": "7.1.1", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation-hub/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.19.5](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.4...@walmart/allspark-foundation-hub@1.19.5) (2025-10-23) + +**Note:** Version bump only for package @walmart/allspark-foundation-hub + ## [1.19.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation-hub@1.19.3...@walmart/allspark-foundation-hub@1.19.4) (2025-10-22) **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.4", + "version": "1.19.5", "description": "", "main": "lib/index.js", "types": "lib/index.d.ts", --- packages/allspark-foundation/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [7.4.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.3.0...@walmart/allspark-foundation@7.4.0) (2025-10-23) + +### Bug Fixes + +- missing mywalmart components library dependency. update app auth dependency ([41be899](https://gecgithub01.walmart.com/allspark/allspark/commit/41be899b9f56b2c073801571c9d2614fa77eec6b)) +- **modals:** allspark modal not handling close button props. hoc was not returning a named function ([03f3ed6](https://gecgithub01.walmart.com/allspark/allspark/commit/03f3ed66c6f2558720c4ea1091f9b5df6ce04b74)) +- **telemetry:** firebase service not using modular api ([3862d3d](https://gecgithub01.walmart.com/allspark/allspark/commit/3862d3d875f26adcc1b89f5e7ff66a3c7210922b)) + +### Features + +- **developer menu:** disable developer menu when no plugins are registered ([931375f](https://gecgithub01.walmart.com/allspark/allspark/commit/931375f718a7afe4b34208cdbf8b48c30d9d9baa)) + # [7.3.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/allspark-foundation@7.2.1...@walmart/allspark-foundation@7.3.0) (2025-10-22) ### Features --- packages/allspark-foundation/package.json @@ -1,6 +1,6 @@ { "name": "@walmart/allspark-foundation", - "version": "7.3.0", + "version": "7.4.0", "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.5](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.4...@walmart/me-at-walmart-geolocation@1.3.5) (2025-10-23) + +**Note:** Version bump only for package @walmart/me-at-walmart-geolocation + ## [1.3.4](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-geolocation@1.3.3...@walmart/me-at-walmart-geolocation@1.3.4) (2025-10-22) **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.4", + "version": "1.3.5", "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-authentication@7.1.1 - @walmart/allspark-foundation@7.4.0 - @walmart/allspark-foundation-hub@1.19.5 - @walmart/me-at-walmart-geolocation@1.3.5
6850f4676cefcb918204c5e488f22580bcceea0a
--- android/app/build.gradle @@ -134,7 +134,7 @@ android { applicationId "com.walmart.stores.allspark.beta" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 72 + versionCode 73 versionName "1.0.5" } splits { --- ios/AllSpark/Info.plist @@ -34,7 +34,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>72</string> + <string>73</string> <key>LSApplicationQueriesSchemes</key> <array> <string>invmgmt</string> --- ios/AllSparkTests/Info.plist @@ -19,6 +19,6 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>72</string> + <string>73</string> </dict> </plist>
Incrementing build number
Incrementing build number
80a9a18e6e46401c0a9c4093cb7b399dc1819599
--- env.teflon.js @@ -39,11 +39,10 @@ export default { clientAuthMethod: 'post', }, athena: { - // url: 'https://athena-gateway.sstage.us.walmart.net/', url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/ATHENA/GATEWAY/v1', headers: { 'WM_SVC.NAME': 'ATHENA-GATEWAY', - 'WM_SVC.ENV': 'stage', + 'WM_SVC.ENV': 'dev', }, persistedQueries: true, },
⏪ Reverting back to original configs
⏪ Reverting back to original configs
03ee1a0c983ef3250f92b4e80774e2ea58b73a80
--- src/components/MyWalmartv2/Widgets/Hourly/HourlyRosterWidget.tsx @@ -19,7 +19,8 @@ import {WidgetErrorBoundary} from '../../Shared'; import {useSelector} from 'react-redux'; import {SiteSelectors} from '@walmart/allspark-foundation/Site'; import {AllsparkSharedComponents} from '@walmart/allspark-foundation'; -import {CalendarIcon} from '@walmart/gtp-shared-components'; +import {CalendarIcon, Alert} from '@walmart/gtp-shared-components'; +import {Skeleton} from '@walmart/gtp-shared-components'; /** * @typedef {Object} Punch @@ -428,8 +429,44 @@ const HourlyRosterWidgetCore = ({ onRefresh={handleRefresh} testID="hourly-roster-widget" style={styles.widgetContainer} + loadingContent={ + <View style={styles.container}> + {/* Loading skeleton for roster list using @walmart/gtp-shared-components */} + <View style={styles.searchContainer}> + <Skeleton height={40} width="100%" UNSAFE_style={{marginBottom: 16}} /> + </View> + {[1, 2, 3, 4].map((_, index) => ( + <View key={index} style={{flexDirection: 'row', alignItems: 'center', marginBottom: 12}}> + <Skeleton height={48} width={48} variant="rounded" UNSAFE_style={{marginRight: 12}} /> + <View style={{flex: 1}}> + <Skeleton height={16} width="60%" UNSAFE_style={{marginBottom: 4}} /> + <Skeleton height={14} width="40%" /> + </View> + </View> + ))} + </View> + } + errorContent={ + <View style={styles.container}> + <Alert + variant="warning" + testID="roster-error-banner" + children={t('roster.errorMessage', { + default: 'Failed to load team roster.', + fallbackLng: 'en-US', + })} + actionButtonProps={{ + children: t('roster.tryAgain', { + default: 'Try again', + fallbackLng: 'en-US', + }), + onPress: handleRefresh, + disabled: isLoading, + }} + /> + </View> + } > - {/* Render content based on widget state */} {widgetState === 'default' && ( <View style={styles.container} @@ -472,9 +509,6 @@ const HourlyRosterWidgetCore = ({ </View> )} - {/* Loading state is handled by HubWidgetV2 automatically */} - {/* Error state is handled by HubWidgetV2 automatically */} - {/* Empty state is handled by HubWidgetV2 automatically */} </HubWidgetV2> </ScrollView> ); --- src/components/MyWalmartv2/Widgets/SalariedOrTeamLead/SalariedOrTeamLeadRosterWidget.tsx @@ -49,7 +49,8 @@ import React, {useState, useCallback, useMemo, useEffect} from 'react'; import {View} from 'react-native'; import {useSelector} from 'react-redux'; import {HubWidgetV2} from '@walmart/allspark-foundation-hub'; -import {Body, Heading} from '@walmart/gtp-shared-components'; +import {Body, Heading, Alert} from '@walmart/gtp-shared-components'; +import {Skeleton} from '@walmart/gtp-shared-components'; import {WidgetErrorBoundary} from '../../Shared'; import {logger, rosterTelemetry, translationClient} from '../../../../common'; import {useSalariedOrTeamLeadRosterWidget} from './useSalariedOrTeamLeadRosterWidget'; @@ -225,6 +226,7 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC< // Widget content renderer const renderWidgetContent = () => { + // Default state - normal content return ( <View style={styles.contentContainer}> {/* Warning alert for partial data errors */} @@ -331,6 +333,48 @@ const SalariedOrTeamLeadRosterWidgetCore: React.FC< }} onRefresh={handlePullToRefresh} testID="salaried-or-team-lead-roster-widget" + loadingContent={ + <View style={styles.contentContainer}> + {/* Loading skeleton for scheduled count */} + <View style={styles.scheduleInfoContainer}> + <Skeleton height={20} width={40} UNSAFE_style={{marginBottom: 4}} /> + <Skeleton height={16} width={120} /> + </View> + + {/* Loading skeleton for roster status indicators */} + <View style={styles.rosterStatusContainer}> + {[1, 2, 3].map((_, index) => ( + <React.Fragment key={index}> + <View style={styles.widgetDataContainer}> + <Skeleton height={28} width={40} UNSAFE_style={{marginBottom: 4}} /> + <Skeleton height={14} width={60} /> + </View> + {index < 2 && <View style={styles.verticalDivider} />} + </React.Fragment> + ))} + </View> + </View> + } + errorContent={ + <View style={styles.contentContainer}> + <Alert + variant="warning" + testID="salaried-roster-error-banner" + children={t('roster.salariedErrorMessage', { + default: 'Failed to load salaried team roster.', + fallbackLng: 'en-US', + })} + actionButtonProps={{ + children: t('roster.tryAgain', { + default: 'Try again', + fallbackLng: 'en-US', + }), + onPress: handleRefresh, + disabled: isRefreshing, + }} + /> + </View> + } > {renderWidgetContent()} </HubWidgetV2> --- src/translations/en-US.ts @@ -4,6 +4,9 @@ export const enUS = { }, roster: { title: 'Roster', + errorMessage: 'Failed to load team roster.', + salariedErrorMessage: 'Failed to load roster content.', + tryAgain: 'Try again', }, allTeams: { title: 'All teams', --- src/translations/es-MX.ts @@ -4,6 +4,9 @@ export const esMX = { }, roster: { title: 'Lista', + errorMessage: 'Error al cargar la lista del equipo.', + salariedErrorMessage: 'Error al cargar el contenido de la lista.', + tryAgain: 'Intentar de nuevo', }, allTeams: { title: 'Todos los equipos',
feat(ui): update empty list
feat(ui): update empty list
99a32a74343d7f1e1350247f8b38314ab720d5de
--- src/utils/allTeams.ts @@ -77,9 +77,9 @@ export const createTeamsSectionsByOpsArea = (teams: SupplyChainTeam[]) => { ); return groupedTeams - ? Object.entries(groupedTeams).map(([opsareaName, teams]) => ({ + ? Object.entries(groupedTeams).map(([opsareaName, teamsList]) => ({ title: opsareaName, - data: teams.map((team: SupplyChainTeam) => ({ + data: teamsList.map((team: SupplyChainTeam) => ({ ...team, workareaName: team.workareaName, })),
fix(bug): move selected shift to parent components
fix(bug): move selected shift to parent components
9556fb2501a52e70e0eeff52e936c6064f3fdf96
--- package-lock.json @@ -3367,9 +3367,9 @@ "integrity": "sha512-Am5QrgtwxJ23j3GsZZivaZknjiWTuPFvFxV1J0ysrQZ3H4wZcgsxuFdsCJqA3Hzufo3pZdyMTZhNtAx4IuQjjw==" }, "@walmart/inbox-mini-app": { - "version": "0.0.98", - "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.98.tgz", - "integrity": "sha512-rxjct/ua2E4nECOlciQ483vRVQxJf8V5KE83m49dFyK7AUGMcud4/FmAOX9+HF4tMqTNyb728ROQWfn0oeLrFg==" + "version": "0.0.100", + "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.0.100.tgz", + "integrity": "sha512-hX99Doyqqrwy9aMJbhrucZ8j9MRYjRcJa8gL2z5ZnsU9a30KANm+Oi5w0gg6KsLzXMj7K5nyAPh4hmvHyFkexQ==" }, "@walmart/iteminfo-mini-app": { "version": "1.0.19", --- package.json @@ -76,7 +76,7 @@ "@walmart/gtp-shared-components": "^1.1.8", "@walmart/impersonation-mini-app": "1.0.15", "@walmart/ims-print-services-ui": "0.0.19", - "@walmart/inbox-mini-app": "0.0.98", + "@walmart/inbox-mini-app": "0.0.100", "@walmart/iteminfo-mini-app": "1.0.19", "@walmart/manager-approvals-miniapp": "0.0.40", "@walmart/metrics-mini-app": "0.4.6",
bump inbox mini app
bump inbox mini app
c9a373dcbe9a1f54a8662d081405081c1e568179
--- targets/US/package.json @@ -141,7 +141,7 @@ "@walmart/react-native-webex-sdk": "0.8.11", "@walmart/receipt-check-miniapp": "1.28.1", "@walmart/redux-store": "~6.3.28", - "@walmart/returns-mini-app": "4.16.6", + "@walmart/returns-mini-app": "4.16.7", "@walmart/rfid-scan-mini-app": "2.8.5", "@walmart/rn-mobile-sdk-pairing": "2.1.4-osirisfix.4", "@walmart/rn-receiving-mini-app": "2.4.81", --- yarn.lock @@ -7495,7 +7495,7 @@ __metadata: "@walmart/react-native-webex-sdk": "npm:0.8.11" "@walmart/receipt-check-miniapp": "npm:1.28.1" "@walmart/redux-store": "npm:~6.3.28" - "@walmart/returns-mini-app": "npm:4.16.6" + "@walmart/returns-mini-app": "npm:4.16.7" "@walmart/rfid-scan-mini-app": "npm:2.8.5" "@walmart/rn-mobile-sdk-pairing": "npm:2.1.4-osirisfix.4" "@walmart/rn-receiving-mini-app": "npm:2.4.81" @@ -8111,9 +8111,9 @@ __metadata: languageName: node linkType: hard -"@walmart/returns-mini-app@npm:4.16.6": - version: 4.16.6 - resolution: "@walmart/returns-mini-app@npm:4.16.6" +"@walmart/returns-mini-app@npm:4.16.7": + version: 4.16.7 + resolution: "@walmart/returns-mini-app@npm:4.16.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Freturns-mini-app%2F-%2F%40walmart%2Freturns-mini-app-4.16.7.tgz" dependencies: "@walmart/common-utilities-js": "npm:^1.2.10" "@walmart/virtual-zpl-printer-model": "npm:^0.2.11" @@ -8139,7 +8139,7 @@ __metadata: dependenciesMeta: "@walmart/me-at-walmart": built: false - checksum: 10c0/06299a19238c4f1793491c9b4e032a85fb68edcf0e616f9171d7f4dacf131e7f3f56db9dbe0a082e3e5f603539952706396143c422e3914c74133e7764c44972 + checksum: 10c0/5c315ab10147ec975624ae29f6f4bb4ccc0e41c758ad2e60ddd87d9b3f1b16c2ce28bbe4384d8dda04fd95a5986476de7aabe64072dfcf5c209a3c97d44c1bf3 languageName: node linkType: hard
chore(ui): fixed a bug for returns drop28 (#3995)
chore(ui): fixed a bug for returns drop28 (#3995) Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>