commit_hash stringlengths 40 40 | input stringlengths 13 7.99k | output stringlengths 5 155 | full_message stringlengths 6 8.96k |
|---|---|---|---|
1039e0e3dd0e7241d2fe3fcfca4e2da6ab852902 | --- packages/allspark-foundation/__tests__/Feature/AllsparkFeature.test.tsx
@@ -91,6 +91,24 @@ describe('AllsparkFeature', () => {
expect(warnSpy).toHaveBeenCalledWith(
`AllsparkFeature(testFeature).createModule called multiple times. A feature module shoud only be created once. All subsequent calls will be ignored.`
);
- }
-);
+ });
+ it('should create a screen with the provided component and config', () => {
+ const mockComponent = jest.fn() as unknown as AllsparkScreenComponent<any, any>;
+ const mockConfig = { optionA: true, optionB: false };
+ const result = feature.createScreen(mockComponent, mockConfig);
+ expect(result).toEqual({
+ ...mockConfig,
+ getComponent: expect.any(Function),
+ });
+ expect(result.getComponent()).toBe(mockComponent);
+ });
+
+ it('should create a screen with only the provided component if config is not passed', () => {
+ const mockComponent = jest.fn() as unknown as AllsparkScreenComponent<any, any>;
+ const result = feature.createScreen(mockComponent);
+ expect(result).toEqual({
+ getComponent: expect.any(Function),
+ });
+ expect(result.getComponent()).toBe(mockComponent);
+ });
});
| added more unit test allspartkfeature | added more unit test allspartkfeature
|
731f17183864279e5176c9bf5a8f1a7cab67675e | --- .looper.yml
@@ -18,4 +18,4 @@ flows:
- (name Yarn Version) yarn --version
- yarn install
- yarn run lint
- - yarn run coverage
+ # - yarn run coverage
--- __tests__/__mocks__/@walmart/allspark-foundation-hub/Store/HubFeature.js
--- __tests__/__mocks__/@walmart/allspark-foundation-hub/Store/MockHubWidget.tsx
--- __tests__/__mocks__/@walmart/allspark-foundation-hub/Store/MockTeamSwitcher.tsx
--- __tests__/__mocks__/@walmart/allspark-foundation/MockImpersonationForm.tsx
@@ -1,8 +0,0 @@
-import React from 'react';
-import {View} from 'react-native';
-
-const MockImpersonationForm = () => {
- return <View testID='impersonation-form' />;
-};
-
-export default MockImpersonationForm;
--- __tests__/__mocks__/@walmart/allspark-foundation/User.js
@@ -1,5 +1,3 @@
-import MockImpersonationForm from './MockImpersonationForm';
-
module.exports = {
UserSelectors: {
getWin: jest.fn(),
@@ -25,5 +23,4 @@ module.exports = {
UserActionCreators: {
FETCH_SUCCESS: jest.fn().mockImplementation(() => jest.fn()),
},
- ImpersonationForm: jest.fn().mockImplementation(MockImpersonationForm),
};
--- __tests__/containers/ImpersonationScreen.test.tsx
@@ -1,18 +0,0 @@
-import React from 'react';
-import {renderWithProviders} from '../harness';
-import {useNavigation} from '@react-navigation/native';
-import {ImpersonationScreen} from '../../container/impersonation/ImpersonationScreen';
-
-describe('ImpersonationScreen', () => {
- const mockNavigation = jest.fn();
- (useNavigation as jest.Mock).mockImplementation(() => ({
- navigate: mockNavigation,
- }));
- it('renders correctly', () => {
- const {getByTestId} = renderWithProviders(
- <ImpersonationScreen navigation={mockNavigation} />,
- );
- const impersonationScreen = getByTestId('impersonation-form');
- expect(impersonationScreen).toBeDefined();
- });
-});
--- __tests__/harness/index.tsx
@@ -34,7 +34,6 @@ interface ExtendedRenderOptions extends Omit<RenderOptions, 'queries'> {
envType?: EnvType;
mockQueries?: any;
}
-AllsparkReduxStore.addReducer('roster', rosterSlice.reducer);
const setupStore = (preloadedState) => {
const store = configureStore({
preloadedState,
--- __tests__/screens/RosterDetailScreen.test.tsx
@@ -20,7 +20,7 @@ import {FilterValue} from '../../src/components/FilterChip/types';
import {useGetAllTeamsOfStore} from '@walmart/allspark-foundation-hub/HubFeature/Store/Hooks/useGetAllTeamsOfStore';
import {teamLeadUserState} from '../harness/redux/mockState/userState';
import * as TeamSwitcherComponent from '@walmart/allspark-foundation-hub/HubFeature/Store/Hub/TeamSwitcher';
-import MockTeamSwitcher from '../__mocks__/@walmart/allspark-foundation-hub/MockTeamSwitcher';
+import MockTeamSwitcher from '../__mocks__/@walmart/allspark-foundation-hub/Store/MockTeamSwitcher';
import {UserSelectors} from '@walmart/allspark-foundation/User';
import {ManagerExperienceSelectors} from '@walmart/allspark-foundation-hub/HubFeature/Store/Redux';
import {
--- __tests__/setup.ts
@@ -12,6 +12,13 @@ jest.mock('@walmart/functional-components', () => {
};
});
+const {NativeModules} = require('react-native');
+
+NativeModules.RNCNetInfo = {};
+NativeModules.RNGestureHandlerModule = {};
+NativeModules.RNDeviceInfo = {};
+NativeModules.RNPermissionsModule = {};
+
jest.mock('expo-image');
jest.mock('expo-modules-core');
| Update foundation hub imports | Update foundation hub imports
|
6501bd8b26215b0727a10a544f2bc81c194fe11c | --- package.json
@@ -161,7 +161,7 @@
"@walmart/sidekick-mini-app": "4.231.0",
"@walmart/store-feature-orders": "1.34.7",
"@walmart/talent-preboarding-mini-app": "1.0.48",
- "@walmart/taskit-mini-app": "5.42.40",
+ "@walmart/taskit-mini-app": "5.42.41",
"@walmart/time-clock-mini-app": "3.19.6",
"@walmart/time-clock-mini-app-next": "3.0.0",
"@walmart/topstock-mini-app": "1.27.1",
--- yarn.lock
@@ -8402,7 +8402,7 @@ __metadata:
"@walmart/sidekick-mini-app": "npm:4.231.0"
"@walmart/store-feature-orders": "npm:1.34.7"
"@walmart/talent-preboarding-mini-app": "npm:1.0.48"
- "@walmart/taskit-mini-app": "npm:5.42.40"
+ "@walmart/taskit-mini-app": "npm:5.42.41"
"@walmart/time-clock-mini-app": "npm:3.19.6"
"@walmart/time-clock-mini-app-next": "npm:3.0.0"
"@walmart/topstock-mini-app": "npm:1.27.1"
@@ -9306,12 +9306,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/taskit-mini-app@npm:5.42.40":
- version: 5.42.40
- resolution: "@walmart/taskit-mini-app@npm:5.42.40::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.40.tgz"
+"@walmart/taskit-mini-app@npm:5.42.41":
+ version: 5.42.41
+ resolution: "@walmart/taskit-mini-app@npm:5.42.41::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Ftaskit-mini-app%2F-%2F%40walmart%2Ftaskit-mini-app-5.42.41.tgz"
peerDependencies:
"@walmart/allspark-foundation": "*"
- checksum: 10c0/2e781e4b6d24ea6cf12c2d3fa2d6b92d6c9551d690ff0db5567a981ca8323ee655b7e0ce75a1bcf89b0f77d52144c17d8a2d8fa150dcbf428d52f8f05a4657ea
+ checksum: 10c0/fa5145175e4768ab9b8c24ffd790e10d8bdd5ad92f7ea3e3b4de61ea458decbfad528e46f446cb01b0331b0d5bc4452aacd59ccec7d418d49a20b122eaad907d
languageName: node
linkType: hard
| feat: OCT-15 fixing safety prod issues (#4905) | feat: OCT-15 fixing safety prod issues (#4905)
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com> |
18fb1d5ca9daa84963f76213f7083696baad07ef | --- packages/allspark-foundation/__tests__/Clock/saga.test.ts
@@ -6,15 +6,15 @@ jest.mock('../../src/Clock/service', ()=>({
fetch:jest.fn(),
}
}))
-describe('Auth/sagas.ts', () => {
- it('should call AuthService.getUser', ()=>{
+describe('Clock/sagas.ts', () => {
+ it('should call ClockService.onInit', ()=>{
const action:IClockActions['INIT'] = {type:'clockStatus/INIT' as const, payload:undefined};
const getInit = onInit(action);
const nextInit = getInit.next();
expect(nextInit.value).toEqual(undefined);
expect(getInit.next().done).toBe(true)
})
- it('should call AuthService.onSignIn', ()=>{
+ it('should call ClockService.onFetch', ()=>{
const payload = {clientId:'test', scopes:['test'], issuer:'test', redirectUrl:'test'}
const action:IClockActions['FETCH'] = {type:'clockStatus/FETCH' as const, payload:payload};
const getFetch = onFetch(action);
| unit test for clock saga cleanup | unit test for clock saga cleanup
|
05c48c055ece880ad319c5e4e9190b9b2afc4647 | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/roster-mini-app",
- "version": "2.12.0-alpha.7",
+ "version": "2.12.0-alpha.8",
"main": "dist/index.js",
"files": [
"dist"
--- src/managerExperience/screens/RosterDetailScreen/RosterDetailScreen.tsx
@@ -41,6 +41,7 @@ import {AssociateListLoading} from '../../components/AssociateList/AssociateList
import {AssociateListItem} from '../../components/AssociateList/AssociateListItem';
import {logger} from '../../../common/logger';
import moment from 'moment';
+import {Body} from '@walmart/gtp-shared-components';
export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
const {t} = useTranslation([ROSTER_I18N_NAMESPACE]);
@@ -232,6 +233,13 @@ export const RosterDetailScreen = ({route}: RosterDetailScreenProps) => {
showsVerticalScrollIndicator={false}
ListHeaderComponent={
<>
+ {state.refreshing && (
+ <View testID='Hub.LastUpdatedText'>
+ <Body weight='regular' UNSAFE_style={[styles.lastUpdatedText]}>
+ Last updated, {state.lastRefresh}
+ </Body>
+ </View>
+ )}
<RosterFiltersAndInfo
associates={teamRoster}
filterChips={filterChips}
--- src/managerExperience/screens/RosterDetailScreen/styles.tsx
@@ -18,4 +18,11 @@ export const rosterDetailScreenStyles = StyleSheet.create({
refreshControl: {
backgroundColor: 'transparent',
},
+ lastUpdatedText: {
+ fontSize: 12,
+ lineHeight: 16,
+ color: colors.gray[160],
+ textAlign: 'center',
+ marginTop: 12,
+ },
});
| Update roster mini app for refresh | Update roster mini app for refresh
|
22f49a3a7fbf3e36bca3d0bd32e3cdebee15dcf1 | --- packages/me-at-walmart-athena-queries/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.
+## [6.29.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.29.0...@walmart/me-at-walmart-athena-queries@6.29.1) (2025-01-13)
+
+**Note:** Version bump only for package @walmart/me-at-walmart-athena-queries
+
# [6.29.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/me-at-walmart-athena-queries@6.28.0...@walmart/me-at-walmart-athena-queries@6.29.0) (2025-01-09)
### Features
--- packages/me-at-walmart-athena-queries/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/me-at-walmart-athena-queries",
- "version": "6.29.0",
+ "version": "6.29.1",
"description": "> TODO: description",
"author": "rlane1 <russell.lane@walmart.com>",
"homepage": "",
| chore(version): updating package version | chore(version): updating package version
- @walmart/me-at-walmart-athena-queries@6.29.1
|
54be38eb2e9912a1f5f5d20d8e24f669e50c2d89 | --- __tests__/harness/index.tsx
@@ -15,7 +15,6 @@ import {
EnvironmentProvider,
} from '@walmart/core-services/Environment/index';
import {EnvType} from '@walmart/core-services/Environment/types';
-import {PresenceContext} from '../../src/presence/context';
import {IChannelsContext} from '../../src/channels';
import {ChannelsContext} from '../../src/channels/context';
--- __tests__/harness/index.tsx
@@ -15,7 +15,6 @@ import {
EnvironmentProvider,
} from '@walmart/core-services/Environment/index';
import {EnvType} from '@walmart/core-services/Environment/types';
-import {PresenceContext} from '../../src/presence/context';
import {IChannelsContext} from '../../src/channels';
import {ChannelsContext} from '../../src/channels/context';
| fix lint | fix lint
|
2bd28d238c2530c441737e2cddb16283c3ff4c32 | --- core/__tests__/__mocks__/@walmart/mod-flex-mini-app.js
@@ -1,3 +1,6 @@
module.exports = {
- ModFlexMiniApp: 'ModFlexMiniApp',
+ __esModule: true,
+ default: {
+ buildAllScreens: () => 'ModFlexScreens',
+ },
};
--- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -83,15 +83,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
}
/>
- <Screen
- component={[Function]}
- name="modFlex"
- options={
- {
- "headerShown": false,
- }
- }
- />
<Screen
component={[Function]}
name="ReceiptCheck"
@@ -676,6 +667,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
ManagerApprovalScreens
checkoutFeature.Root
TranslatorScreens
+ ModFlexScreens
</Navigator>
`;
@@ -762,15 +754,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
}
/>
- <Screen
- component={[Function]}
- name="modFlex"
- options={
- {
- "headerShown": false,
- }
- }
- />
<Screen
component={[Function]}
name="ReceiptCheck"
@@ -1355,5 +1338,6 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
ManagerApprovalScreens
checkoutFeature.Root
TranslatorScreens
+ ModFlexScreens
</Navigator>
`;
| Update modflex test mocks | Update modflex test mocks
|
7486d8852765303ffc32d09382004540e1964033 | --- package-lock.json
@@ -3157,9 +3157,9 @@
"integrity": "sha512-0sVdqnfYb2Z90rZpk8drAttxOFKAIR3fAvOvFlVWOyxtPPXrAACOFzoTx++gO5SO5vZ1w6IlMKe8uTi2rpCWTA=="
},
"@walmart/schedule-mini-app": {
- "version": "0.2.73",
- "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.73.tgz",
- "integrity": "sha512-GVMOkKTsRZsW8NvgZI76oCrg+GY8qYPjBgplivKu6/Pgv/K2S4SacK9e5gapX2Vpo8uvQSxkm1N7G24h5/PFuA==",
+ "version": "0.2.74",
+ "resolved": "https://npme.walmart.com/@walmart/schedule-mini-app/-/schedule-mini-app-0.2.74.tgz",
+ "integrity": "sha512-8+8O04QeajR30D2wpNFmLHP+CDngrE6/hbF21HIZKHrDpaL0XmvE9kZxNbKh2DMQI1/NisTZJKlGPSpwV4EXPg==",
"requires": {
"@walmart/moment-walmart": "^1.0.4",
"@walmart/wfm-ui": "0.1.50",
--- package.json
@@ -78,7 +78,7 @@
"@walmart/react-native-logger": "^1.25.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
"@walmart/redux-store": "^1.0.12",
- "@walmart/schedule-mini-app": "0.2.73",
+ "@walmart/schedule-mini-app": "0.2.74",
"@walmart/settings-mini-app": "1.2.3",
"@walmart/time-clock-mini-app": "0.2.3",
"@walmart/ui-components": "1.1.13",
| patch for map is not a function bug (#535) | patch for map is not a function bug (#535)
Co-authored-by: k0p03fa <k0p03fa@homeoffice.wal-mart.com>
Co-authored-by: Anthony Helms - awhelms <awhelms@wal-mart.com> |
fd41a034e484c5d089936ff35bfe0eb97e3517c0 | --- package-lock.json
@@ -4263,9 +4263,9 @@
"integrity": "sha512-dDQLOze2s/xkp/NYsUsZAMo7pu9zQ6prENJoPc90/zV8wqbA7LjTGe2JfGTHLo71QGG1at6YGNZv5YZzgWSq1g=="
},
"@walmart/iteminfo-mini-app": {
- "version": "4.0.26",
- "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.26.tgz",
- "integrity": "sha512-v6rzXctXLBN6aPlVEXofnfpQ1TV/mB3QfXAUY+0tOgaZ6p8WSP0WYD5XCzSNfdCpWJEo2kTW3XISa8Bd8fLjjA=="
+ "version": "4.0.27",
+ "resolved": "https://npme.walmart.com/@walmart/iteminfo-mini-app/-/iteminfo-mini-app-4.0.27.tgz",
+ "integrity": "sha512-Z2YjPryrpx270naLjy8UFOUX1Gipu+kiDeJtJcgDzf5FJ7O5WKMAJ2f4vaWrlM8v8c1YH3xEe127EZkLR6eMcg=="
},
"@walmart/manager-approvals-miniapp": {
"version": "0.0.59",
--- package.json
@@ -85,7 +85,7 @@
"@walmart/impersonation-mini-app": "1.0.27",
"@walmart/ims-print-services-ui": "0.1.19",
"@walmart/inbox-mini-app": "0.28.0",
- "@walmart/iteminfo-mini-app": "4.0.26",
+ "@walmart/iteminfo-mini-app": "4.0.27",
"@walmart/manager-approvals-miniapp": "0.0.59",
"@walmart/metrics-mini-app": "0.6.1",
"@walmart/moment-walmart": "1.0.4",
| ItemInfo minor fix | ItemInfo minor fix
|
42214132ebeeb72fa02d689ec31c595720d5d88c | --- packages/allspark-authentication/src/Authentication.ts
@@ -321,6 +321,7 @@ export class AllsparkAuthentication {
public signOut = async () => {
try {
const authResult = await this._cachedResult.get();
+ await this._cachedResult.remove();
if (!authResult) {
throw NO_CACHE_ERROR;
}
@@ -329,6 +330,7 @@ export class AllsparkAuthentication {
if (refreshToken) {
const config = await this._cachedConfig.get();
+ this._cachedConfig.remove();
if (!config) {
throw NO_CACHE_ERROR;
}
@@ -341,9 +343,6 @@ export class AllsparkAuthentication {
} catch (e) {
this._runErrorEvent('SIGN_OUT_ERROR', e as AppAuthError);
throw e;
- } finally {
- await this._cachedResult.remove();
- this._cachedConfig.remove();
}
};
}
| fix: clear auth localstorage immediately on signout | fix: clear auth localstorage immediately on signout
|
c446af939ce749ffbbf97b77144ebe36fb6ba516 | --- package-lock.json
@@ -81,7 +81,7 @@
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
"@walmart/taskit-mini-app": "2.34.6",
- "@walmart/time-clock-mini-app": "2.108.0",
+ "@walmart/time-clock-mini-app": "2.109.0",
"@walmart/topstock-mini-app": "1.0.6",
"@walmart/ui-components": "1.15.0",
"@walmart/welcomeme-mini-app": "0.77.0",
@@ -6025,9 +6025,9 @@
}
},
"node_modules/@walmart/time-clock-mini-app": {
- "version": "2.108.0",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.108.0.tgz",
- "integrity": "sha512-N+RhzJeF64k1uUepBhqmDRcB6cYn3oSyFbIpupEC6e2cxodqKsGlZnp9W8JLoMv1OpU4vXh/Dwu3HPmYHrDS6w==",
+ "version": "2.109.0",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.109.0.tgz",
+ "integrity": "sha512-Luz/lIEH0tqsdZgdDqJ8gBP4oDZEDhAr5cIimcborpr5TgZGNecCSjlmUEHlg4m9F75OCSe2URoGF6ftqEHM1A==",
"hasInstallScript": true,
"license": "UNLICENSED",
"dependencies": {
@@ -25395,9 +25395,9 @@
}
},
"@walmart/time-clock-mini-app": {
- "version": "2.108.0",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.108.0.tgz",
- "integrity": "sha512-N+RhzJeF64k1uUepBhqmDRcB6cYn3oSyFbIpupEC6e2cxodqKsGlZnp9W8JLoMv1OpU4vXh/Dwu3HPmYHrDS6w==",
+ "version": "2.109.0",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-2.109.0.tgz",
+ "integrity": "sha512-Luz/lIEH0tqsdZgdDqJ8gBP4oDZEDhAr5cIimcborpr5TgZGNecCSjlmUEHlg4m9F75OCSe2URoGF6ftqEHM1A==",
"requires": {
"@react-navigation/elements": "^1.3.1",
"moment-timezone": "0.5.33",
--- package.json
@@ -123,7 +123,7 @@
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.16",
"@walmart/taskit-mini-app": "2.34.6",
- "@walmart/time-clock-mini-app": "2.108.0",
+ "@walmart/time-clock-mini-app": "2.109.0",
"@walmart/topstock-mini-app": "1.0.6",
"@walmart/ui-components": "1.15.0",
"@walmart/welcomeme-mini-app": "0.77.0",
| Update time clock to 2.109.0 | Update time clock to 2.109.0
|
c3120b543ecf5d982011026929d897c2f73c71f8 | --- package.json
@@ -79,7 +79,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.3.74",
"@walmart/attendance-mini-app": "0.86.0",
- "@walmart/compass-sdk-rn": "3.24.1",
+ "@walmart/compass-sdk-rn": "3.25.0",
"@walmart/config-components": "4.1.0-rc.4",
"@walmart/core-services": "~2.0.19",
"@walmart/core-services-allspark": "~2.10.15",
| Update package.json | Update package.json
|
d59eafb5ea3bf4229050857503c291964a64ee35 | --- android/app/src/main/AndroidManifest.xml
@@ -13,7 +13,7 @@
<!-- SUMO -->
<application
- android:name="com.walmart.stores.allspark.MainApplication"
+ android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
@@ -21,7 +21,7 @@
android:theme="@style/AppTheme"
tools:replace="android:allowBackup">
<activity
- android:name="com.walmart.stores.allspark.MainActivity"
+ android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
@@ -41,7 +41,6 @@
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
- <!-- TODO: Change the package name here -->
<data android:scheme="com.walmart.stores.allspark.beta"/>
</intent-filter>
</activity>
--- android/app/src/main/java/com/walmart/stores/allspark/beta/MainActivity.java
@@ -1,4 +1,4 @@
-package com.walmart.stores.allspark;
+package com.walmart.stores.allspark.beta;
import android.content.Intent;
--- android/app/src/main/java/com/walmart/stores/allspark/beta/MainApplication.java
@@ -1,4 +1,4 @@
-package com.walmart.stores.allspark;
+package com.walmart.stores.allspark.beta;
import android.app.Application;
import android.content.Context;
@@ -11,7 +11,6 @@ import com.facebook.soloader.SoLoader;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import com.walmart.sso.react.SSOReactApplication;
-import com.walmart.stores.allspark.beta.BuildConfig;
public class MainApplication extends SSOReactApplication implements ReactApplication {
private static final String REDIRECT_URI = "com.walmart.stores.allspark.beta://SSOLogin";
--- package-lock.json
@@ -1829,9 +1829,9 @@
}
},
"@walmart/ask-sam-mini-app": {
- "version": "0.1.2",
- "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.1.2.tgz",
- "integrity": "sha512-ejaZRofQ+2Q7deokuEudYt/zihDrS83KYIM5y54XaeQKW6tJ8lnQMwFcSPg1FwlvhqoJMhQJwsaL590tMfoPxA==",
+ "version": "0.2.0",
+ "resolved": "https://npme.walmart.com/@walmart/ask-sam-mini-app/-/ask-sam-mini-app-0.2.0.tgz",
+ "integrity": "sha512-Q8i0+ob1c4XzQDTQowP95Z2W9pkjdxTDMHNeflS+1KIW02Wp+z1WU1Oycdc3hWBbcHTgfkTW29gCmEFWR7oblw==",
"requires": {
"apisauce": "^1.1.2",
"lodash": "^4.17.19",
@@ -8864,11 +8864,6 @@
"xml-parser": "^1.2.1"
}
},
- "react-native-wm-barcode": {
- "version": "1.1.4",
- "resolved": "https://npme.walmart.com/react-native-wm-barcode/-/react-native-wm-barcode-1.1.4.tgz",
- "integrity": "sha512-XslUxfu9+8O0XvWIpF+dYwNYagRyNe4Bzw2KO15LywSPqJR64FDRTOxGWvg8xJ+p3IAfp1Sao6bOia6YMySYuw=="
- },
"react-native-wm-telemetry": {
"version": "0.1.0",
"resolved": "https://npme.walmart.com/react-native-wm-telemetry/-/react-native-wm-telemetry-0.1.0.tgz",
--- package.json
@@ -32,7 +32,7 @@
"@react-navigation/stack": "^5.9.0",
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": "^4.14.159",
- "@walmart/ask-sam-mini-app": "^0.1.2",
+ "@walmart/ask-sam-mini-app": "^0.2.0",
"@walmart/gtp-shared-components": "^0.1.3",
"@walmart/react-native-shared-navigation": "^0.1.0",
"@walmart/redux-store": "^0.1.1",
| updated package name to beta | updated package name to beta
|
0f4191ac7222d8de3ab1702680da914632533c0d | --- src/managerExperience/components/AssociateListItem/AssociateListItem.tsx
@@ -61,6 +61,7 @@ export const AssociateListItem = ({
associate?.wfmSchedule?.scheduleWeeks &&
associate?.wfmSchedule?.scheduleWeeks?.[0]?.scheduleShifts &&
associate?.wfmSchedule?.scheduleWeeks?.[0].scheduleShifts?.length > 0;
+ // TODO: we may not need this anymore
const isStoreScheduleValid =
associate?.storeSchedule && associate?.storeSchedule?.length > 0;
const readTogetherAccessibilityLabel = `${associateName}, ${associateJobDescription} ${
| chore: added todo comment | chore: added todo comment
|
881a20d7715b25d7207ba6a57911fea038df8ce2 | --- core/__tests__/navigation/USHallway/AssociateHallwayNav/__snapshots__/MainStackNavTest.tsx.snap
@@ -530,7 +530,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
/>
<Screen
- getComponent={[Function]}
+ component={[Function]}
name="Core.ChangeStoreModal"
options={
{
@@ -1319,7 +1319,7 @@ exports[`AssociateHallwayNav matches snapshot; handles mount and unmount effects
}
/>
<Screen
- getComponent={[Function]}
+ component={[Function]}
name="Core.ChangeStoreModal"
options={
{
| chore: snapshot fix | chore: snapshot fix
|
7ecd63bb139b472da9606a1a2a1e06ae4212f6a4 | --- src/channels/components/ChannelRow.tsx
@@ -63,8 +63,7 @@ const styles = StyleSheet.create({
},
timestamp: {
flex: 1,
- justifyContent: 'flex-start',
- marginRight: -16,
+ left: 16,
},
});
@@ -152,9 +151,7 @@ export const ChannelRow = (props: ChannelRowProps) => {
}
trailing={
<View style={styles.timestamp}>
- <Caption UNSAFE_style={{lineHeight: 13}}>
- {lastMessage?.timestamp}
- </Caption>
+ <Caption>{lastMessage?.timestamp}</Caption>
</View>
}>
<Body weight={unread ? '700' : '400'} numberOfLines={1}>
--- src/channels/components/ChannelRow.tsx
@@ -63,8 +63,7 @@ const styles = StyleSheet.create({
},
timestamp: {
flex: 1,
- justifyContent: 'flex-start',
- marginRight: -16,
+ left: 16,
},
});
@@ -152,9 +151,7 @@ export const ChannelRow = (props: ChannelRowProps) => {
}
trailing={
<View style={styles.timestamp}>
- <Caption UNSAFE_style={{lineHeight: 13}}>
- {lastMessage?.timestamp}
- </Caption>
+ <Caption>{lastMessage?.timestamp}</Caption>
</View>
}>
<Body weight={unread ? '700' : '400'} numberOfLines={1}>
| Added chnages as per PR comments | Added chnages as per PR comments
|
674cec634709af5d872e1534dc3b90330e5e0559 | --- jest.config.js
@@ -11,7 +11,7 @@ module.exports = {
global: {
statements: 19.5,
branches: 11.11,
- functions: 13,
+ functions: 12,
lines: 19,
},
},
--- jest.config.js
@@ -11,7 +11,7 @@ module.exports = {
global: {
statements: 19.5,
branches: 11.11,
- functions: 13,
+ functions: 12,
lines: 19,
},
},
| jest config | jest config
|
1328a241eb1dd37b07857ef56647a5749626b18f | --- package.json
@@ -93,4 +93,4 @@
"axios@npm:^1.0.0": "patch:axios@npm%3A1.11.0#~/.yarn/patches/axios-npm-1.11.0-16e0bc699c.patch"
},
"packageManager": "yarn@4.4.0"
-}
\ No newline at end of file
+}
--- packages/allspark-foundation/package.json
@@ -146,6 +146,9 @@
"react-native-safe-area-context": "4.x"
},
"peerDependenciesMeta": {
+ "@react-native-community/netinfo": {
+ "optional": true
+ },
"@react-native-firebase/analytics": {
"optional": true
},
@@ -183,4 +186,4 @@
"optional": true
}
}
-}
\ No newline at end of file
+}
--- yarn.lock
@@ -7335,6 +7335,8 @@ __metadata:
react-native-reanimated: 3.x
react-native-safe-area-context: 4.x
peerDependenciesMeta:
+ "@react-native-community/netinfo":
+ optional: true
"@react-native-firebase/analytics":
optional: true
"@react-native-firebase/crashlytics":
| chore: making netinfo an optional peer dependency as its now opt in | chore: making netinfo an optional peer dependency as its now opt in
|
1eebd204f2235d3e5e7481ebbe420b62c928ce12 | --- __tests__/screens/ChannelsScreen/ChannelsScreenTest.tsx
@@ -1,7 +1,6 @@
import React from 'react';
const {renderWithProviders} = require('../../harness');
import {ChannelsScreen} from '../../../src/screens/ChannelsScreen';
-import {ChannelRow} from '../../../src/channels/components/ChannelRow';
import {useNavigation} from '@react-navigation/native';
import {StackNavigationProp} from '@react-navigation/stack';
import {TextingNavParamsMap} from '../../../src/navigation';
--- src/screens/ChannelsScreen.tsx
@@ -85,7 +85,6 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = (
const {navigation, newMessageButtonOffset, isMeganavScreen} = props;
const channels = useChannelContext();
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
- const isConnected = useSelector(getNetworkState)?.isConnected;
const userIsInRoster = useUserIsInRoster();
const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled);
const userIsImpersonatedOnDev: boolean = useIsImpersonatedOnDev();
--- __tests__/screens/ChannelsScreen/ChannelsScreenTest.tsx
@@ -1,7 +1,6 @@
import React from 'react';
const {renderWithProviders} = require('../../harness');
import {ChannelsScreen} from '../../../src/screens/ChannelsScreen';
-import {ChannelRow} from '../../../src/channels/components/ChannelRow';
import {useNavigation} from '@react-navigation/native';
import {StackNavigationProp} from '@react-navigation/stack';
import {TextingNavParamsMap} from '../../../src/navigation';
--- src/screens/ChannelsScreen.tsx
@@ -85,7 +85,6 @@ export const ChannelsScreen: React.FC<ChannelScreenProps> = (
const {navigation, newMessageButtonOffset, isMeganavScreen} = props;
const channels = useChannelContext();
const {t} = useTranslation([TEXTING_I18N_NAMESPACE]);
- const isConnected = useSelector(getNetworkState)?.isConnected;
const userIsInRoster = useUserIsInRoster();
const isMessageButtonEnabled: boolean = useSelector(messageButtonEnabled);
const userIsImpersonatedOnDev: boolean = useIsImpersonatedOnDev();
| fix lint | fix lint
|
ed5fb28ae3ecd187e4736addc4342724c195b582 | --- docs/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [3.0.2](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.0.1...v3.0.2) (2025-07-01)
+
+
+### Bug Fixes
+
+* **ui:** update roster mini app version ([c98f926](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/c98f9269778b3086c32cce144131f145e6630afa))
+
## [3.0.1](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.0.0...v3.0.1) (2025-07-01)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "3.0.1",
+ "version": "3.0.2",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 3.0.2 [skip ci] | chore(release): 3.0.2 [skip ci]
## [3.0.2](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v3.0.1...v3.0.2) (2025-07-01)
### Bug Fixes
* **ui:** update roster mini app version ([c98f926](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/c98f9269778b3086c32cce144131f145e6630afa))
|
4311cfb43979d4d9ed6d96a0a761a1cb01312288 | --- README.md
@@ -1,6 +1,6 @@
# allspark-core
-This is the core container app for the AllSpark Project (Me@Walmart redesign)
+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
| Update README.md | Update README.md |
f0b1de364455a8a45770219e5f8f185662c7e643 | --- src/translations/es-MX.ts
@@ -13,46 +13,46 @@ export const esMX = {
},
rosterScreen: {
rosterName: ' Today’s {{teamName}} roster',
- weeklySchedule: 'Weekly schedule',
+ weeklySchedule: 'Turno semanal',
filters: {
all: 'All',
- absent: 'Absent',
+ absent: 'Consentimiento',
tardy: 'Tardy',
- clockedIn: 'Clocked in',
+ clockedIn: 'Disponible',
online: 'Online',
},
storeChatCard: {
- title: 'Whole store',
- messageBtn: 'Message',
- availableCount: '{{onlineCount}} Available',
+ title: 'Toda la tienda',
+ messageBtn: 'Mensaje',
+ availableCount: '{{onlineCount}} Disponibles',
},
teamListItem: {
- viewTeam: 'View Team',
- clockedIn: '{{count}} Clocked In',
- messageBtn: 'Message',
- showTeamsFooter: 'Show teams',
- hideTeamsFooter: 'Hide teams',
+ viewTeam: 'Ver equipo',
+ clockedIn: '{{count}} Disponibles',
+ messageBtn: 'Mensaje',
+ showTeamsFooter: 'Ver más',
+ hideTeamsFooter: 'Ver menos',
},
associateRosterItem: {
- messageBtn: 'Message',
+ messageBtn: 'Mensaje',
viewSchedule: 'View schedule',
},
},
channelsScreen: {
- NewMessageButton: 'New message',
+ NewMessageButton: 'Mensaje nuevo',
},
newMessageScreen: {
- title: 'New message',
- placeholder: 'Type a name',
+ title: 'Mensaje nuevo',
+ placeholder: 'Escriba un nombre',
},
messageScreen: {
deliveredReadReceipt: 'Delivered',
readReadReceipt: 'Read',
- chatInputPlaceholder: 'Type a message',
+ chatInputPlaceholder: 'Entre un mensaje',
},
searchScreen: {
- searchInputPlaceholder: 'Search people or roles',
- cancel: 'Cancel',
+ searchInputPlaceholder: 'Busca asociados o roles',
+ cancel: 'Cancelar',
},
},
};
--- src/translations/es-MX.ts
@@ -13,46 +13,46 @@ export const esMX = {
},
rosterScreen: {
rosterName: ' Today’s {{teamName}} roster',
- weeklySchedule: 'Weekly schedule',
+ weeklySchedule: 'Turno semanal',
filters: {
all: 'All',
- absent: 'Absent',
+ absent: 'Consentimiento',
tardy: 'Tardy',
- clockedIn: 'Clocked in',
+ clockedIn: 'Disponible',
online: 'Online',
},
storeChatCard: {
- title: 'Whole store',
- messageBtn: 'Message',
- availableCount: '{{onlineCount}} Available',
+ title: 'Toda la tienda',
+ messageBtn: 'Mensaje',
+ availableCount: '{{onlineCount}} Disponibles',
},
teamListItem: {
- viewTeam: 'View Team',
- clockedIn: '{{count}} Clocked In',
- messageBtn: 'Message',
- showTeamsFooter: 'Show teams',
- hideTeamsFooter: 'Hide teams',
+ viewTeam: 'Ver equipo',
+ clockedIn: '{{count}} Disponibles',
+ messageBtn: 'Mensaje',
+ showTeamsFooter: 'Ver más',
+ hideTeamsFooter: 'Ver menos',
},
associateRosterItem: {
- messageBtn: 'Message',
+ messageBtn: 'Mensaje',
viewSchedule: 'View schedule',
},
},
channelsScreen: {
- NewMessageButton: 'New message',
+ NewMessageButton: 'Mensaje nuevo',
},
newMessageScreen: {
- title: 'New message',
- placeholder: 'Type a name',
+ title: 'Mensaje nuevo',
+ placeholder: 'Escriba un nombre',
},
messageScreen: {
deliveredReadReceipt: 'Delivered',
readReadReceipt: 'Read',
- chatInputPlaceholder: 'Type a message',
+ chatInputPlaceholder: 'Entre un mensaje',
},
searchScreen: {
- searchInputPlaceholder: 'Search people or roles',
- cancel: 'Cancel',
+ searchInputPlaceholder: 'Busca asociados o roles',
+ cancel: 'Cancelar',
},
},
};
| using spanish translations | using spanish translations
|
65f2da07a248b83a71561a24be4577986fd57405 | --- packages/me-at-walmart-container/__tests__/http/interceptors/successLogger.test.ts
@@ -18,6 +18,7 @@ describe('SuccessLoggerInterceptor', () => {
headers: {
'x-http-client-feature-key': 'mini-app',
'WM_QOS.CORRELATION_ID': '12345',
+ authorization: 'Bearer token',
},
method: 'GET',
},
--- packages/me-at-walmart-container/src/http/interceptors/successLogger.ts
@@ -9,11 +9,15 @@ export const SuccessLoggerInterceptor: Interceptor = {
const rate = await getAsyncLogRate();
if (chance <= rate) {
+ // Remove auth headers from getting logged.
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ const {authorization, ...restNonAuthHeaders} = response.config.headers;
+
HttpLogger.info('HTTP success', {
baseURL: response.config.baseURL,
url: response.config.url,
fullUrl: `${response.config.baseURL}${response.config.url}`,
- headers: response.config.headers,
+ headers: restNonAuthHeaders,
status: response.status,
miniAppName: response.config.headers?.['x-http-client-feature-key'],
correlationId: response.config.headers?.['WM_QOS.CORRELATION_ID'],
| remove token from getting logged in http success logger | remove token from getting logged in http success logger
|
b42c9ed0f5cddbf1ee3a2fdb717e761289749999 | --- package-lock.json
@@ -80,7 +80,7 @@
"@walmart/schedule-mini-app": "0.35.0",
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.13",
- "@walmart/taskit-mini-app": "2.34.4",
+ "@walmart/taskit-mini-app": "2.34.5",
"@walmart/time-clock-mini-app": "2.85.2",
"@walmart/topstock-mini-app": "1.0.5",
"@walmart/ui-components": "1.11.1",
@@ -6044,9 +6044,9 @@
}
},
"node_modules/@walmart/taskit-mini-app": {
- "version": "2.34.4",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.34.4.tgz",
- "integrity": "sha512-F4DHz1OsCfHGsFjCAwt7w3d4IVs1NSFAqHoM2ym+bVM3fZ05Y+Owo/N7V4sZ+Pps+xcj7xdUr0wW9SVrm9ugUg==",
+ "version": "2.34.5",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.34.5.tgz",
+ "integrity": "sha512-IWoGddk9c80OZ/tE++GUPlkCfzkwUxg+2py0wT95spkW00P1+CXoPeiD5Ot0Qakt4oyMoENO60wOiv8WpjoT4g==",
"peerDependencies": {
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@types/lodash": ">=4.14.176",
@@ -25490,9 +25490,9 @@
"version": "1.5.13"
},
"@walmart/taskit-mini-app": {
- "version": "2.34.4",
- "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.34.4.tgz",
- "integrity": "sha512-F4DHz1OsCfHGsFjCAwt7w3d4IVs1NSFAqHoM2ym+bVM3fZ05Y+Owo/N7V4sZ+Pps+xcj7xdUr0wW9SVrm9ugUg=="
+ "version": "2.34.5",
+ "resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-2.34.5.tgz",
+ "integrity": "sha512-IWoGddk9c80OZ/tE++GUPlkCfzkwUxg+2py0wT95spkW00P1+CXoPeiD5Ot0Qakt4oyMoENO60wOiv8WpjoT4g=="
},
"@walmart/tcnumber": {
"version": "2.3.3",
--- package.json
@@ -122,7 +122,7 @@
"@walmart/schedule-mini-app": "0.35.0",
"@walmart/settings-mini-app": "1.18.1",
"@walmart/shelfavailability-mini-app": "1.5.13",
- "@walmart/taskit-mini-app": "2.34.4",
+ "@walmart/taskit-mini-app": "2.34.5",
"@walmart/time-clock-mini-app": "2.85.2",
"@walmart/topstock-mini-app": "1.0.5",
"@walmart/ui-components": "1.11.1",
| updated taskit version | updated taskit version
|
437fc91a0c78e6c5e3b0ea929b9a382bdca45324 | --- package-lock.json
@@ -5510,9 +5510,9 @@
"integrity": "sha512-Tz8PRLTpf4goLTBXayZxsBRuy/8+fnxjt+m7g3kfu0NRG58n/MgKi9krclf+LSLBhYTJcL5sKg8ckhA90dHlYQ=="
},
"@walmart/receipt-check-miniapp": {
- "version": "1.8.11",
- "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.11.tgz",
- "integrity": "sha512-ffKFi4ypyAxIioHUGpBt0XR5luLmOvIfyjKQgdTyNjcb/8FVz3AOEUmDFDPqx18gJkrDFMt+0gM1OfnFDVxTvg==",
+ "version": "1.8.12",
+ "resolved": "https://npme.walmart.com/@walmart/receipt-check-miniapp/-/receipt-check-miniapp-1.8.12.tgz",
+ "integrity": "sha512-2ON++TPZEpPRR0e0eYw3LrZ2yAYwXSfT27aM/YuSciLjvx7gU33iyGYRqILug6sP3JZwwHOKx+NHvN82GN2EMQ==",
"requires": {
"@walmart/tcnumber": "^2.3.1",
"@xstate/react": "^3.0.1",
--- package.json
@@ -114,7 +114,7 @@
"@walmart/react-native-shared-navigation": "1.0.2",
"@walmart/react-native-store-map": "^0.3.7",
"@walmart/react-native-sumo-sdk": "2.2.2-beta.2",
- "@walmart/receipt-check-miniapp": "1.8.11",
+ "@walmart/receipt-check-miniapp": "1.8.12",
"@walmart/redux-store": "2.0.4",
"@walmart/refrigeration-alarms-mini-app": "1.35.0",
"@walmart/schedule-mini-app": "0.26.0",
| fix: receipt audit mini app removing private key for api proxy | fix: receipt audit mini app removing private key for api proxy
|
53f7c9505516c5025e2e9fa520d8a408cf16df4e | --- package.json
@@ -1,6 +1,11 @@
{
"name": "allspark",
"workspaces": [
+ "./packages/allspark-utils",
+ "./packages/allspark-foundation",
+ "./packages/allspark-authentication",
+ "./packages/me-at-walmart-common",
+ "./packages/me-at-walmart-container",
"./packages/*"
],
"version": "1.16.0",
| fix: workspace config didnt specify order to build packages | fix: workspace config didnt specify order to build packages
|
58e1ad2160083d649a71c5736315011933a42ac2 | --- package-lock.json
@@ -43,7 +43,7 @@
"@walmart/core-utils": "~1.3.0",
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.0.42",
- "@walmart/emergency-mini-app": "1.11.0",
+ "@walmart/emergency-mini-app": "1.12.0",
"@walmart/exception-mini-app": "1.0.3",
"@walmart/facilities-management-miniapp": "0.4.2",
"@walmart/feedback-all-spark-miniapp": "0.9.7",
@@ -4922,9 +4922,9 @@
}
},
"node_modules/@walmart/emergency-mini-app": {
- "version": "1.11.0",
- "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.11.0.tgz",
- "integrity": "sha512-nZ8XlI6cWU0xVXeu2FU+abo1wd5TAF1gwCTBQah63bJgMqOAbTbNUPat5r78qAcV17LE6La1Ujh9HbsLKK0WWw==",
+ "version": "1.12.0",
+ "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.12.0.tgz",
+ "integrity": "sha512-f7d4VpTCKbIa0oYkJb89EdgvJhC8OnM6LpTgqD8qGb4cYzssgABC6VI0L0wTX+KYQCRz69XdzYGCDdAzPga//A==",
"dependencies": {
"@walmart/core-widget-registry": "^0.6.6"
},
@@ -24835,9 +24835,9 @@
"integrity": "sha512-tk3UvKAl/VM29GwO/5uNURHnJkR/M1kq42Hn/2Xob+Ww7rY3gOHKhCTL3NytAPrZxyQco0ZyfGOGPbpy2aDnRw=="
},
"@walmart/emergency-mini-app": {
- "version": "1.11.0",
- "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.11.0.tgz",
- "integrity": "sha512-nZ8XlI6cWU0xVXeu2FU+abo1wd5TAF1gwCTBQah63bJgMqOAbTbNUPat5r78qAcV17LE6La1Ujh9HbsLKK0WWw==",
+ "version": "1.12.0",
+ "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.12.0.tgz",
+ "integrity": "sha512-f7d4VpTCKbIa0oYkJb89EdgvJhC8OnM6LpTgqD8qGb4cYzssgABC6VI0L0wTX+KYQCRz69XdzYGCDdAzPga//A==",
"requires": {
"@walmart/core-widget-registry": "^0.6.6"
},
--- package.json
@@ -86,7 +86,7 @@
"@walmart/core-utils": "~1.3.0",
"@walmart/core-widget-registry": "~0.7.2",
"@walmart/counts-component-miniapp": "0.0.42",
- "@walmart/emergency-mini-app": "1.11.0",
+ "@walmart/emergency-mini-app": "1.12.0",
"@walmart/exception-mini-app": "1.0.3",
"@walmart/facilities-management-miniapp": "0.4.2",
"@walmart/feedback-all-spark-miniapp": "0.9.7",
| updated emergency mini app version | updated emergency mini app version
|
41275106b4215128d68720781c2fffcc43bbf112 | --- __tests__/auth/ErrorScreenTest.tsx
@@ -157,7 +157,7 @@ describe('ErrorScreen', () => {
it('handles save with no detail', () => {
(useTranslation as jest.Mock).mockReturnValueOnce([
(translate) => {
- const t = {'ssoError.issues.other': 'Other'};
+ const t = {'ssoError.other': 'Other'};
return t[translate] || translate;
},
{language: 'en-US'},
--- src/auth/ErrorScreen.tsx
@@ -204,7 +204,7 @@ export const ErrorScreen: FC<any> = (props) => {
</View>
)}
</View>
- {errorCategory === translate('ssoError.issues.other') && (
+ {errorCategory === translate('ssoError.other') && (
<View>
{otherErrorFb.map((question) => {
const title = question.title[lang];
--- src/translations/en-US.ts
@@ -86,27 +86,7 @@ export const enUS = {
cancel: 'Cancel',
send: 'Send',
requiredError: 'Please enter all requred fields',
- issues: {
- clockInOut: 'Clock-in/clock-out issue',
- verification2Step: '2-step verification failure',
- storeTrans: 'Store transfer issue',
- newNo: 'New phone or new number',
- noTextReceived: 'Didn’t receive text verification ',
- noPushReceived: 'Can’t receive push notifications',
- wiFi: 'Store Wi-Fi issue',
- other: 'Other',
- },
- otherIssue: {
- q1: 'Do any of these apply?',
- q1Option1: 'Sign in was not displayed',
- q1Option2: 'I could not submit user id / password',
- q1Option3:
- 'I’m able to login to other Walmart apps on my phone (IE Workplace, One Walmart)',
- q2: 'What type of device were you using?',
- q2Option1: 'Personal device',
- q2Option2: 'Personal device (BYOD enrolled) ',
- q2Option3: 'Work phone (Samsung x cover)',
- },
+ other: 'Other',
},
whatsNew: {
modalTitle: "What's new in Me@Walmart",
--- src/translations/es-MX.ts
@@ -83,6 +83,7 @@ export const esMX = {
cancel: 'Cancelar',
send: 'Enviar',
requiredError: 'Por favor, completa todos los campos requeridos',
+ other: 'Otro',
},
whatsNew: {
modalTitle: 'Nuevo en Me@Walmart',
| remove local issues list | add other on spanish | remove local issues list | add other on spanish
|
d301c36f6964e8bf0aa81e969b2de399e12559b7 | --- docs/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [2.37.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.36.3...v2.37.0) (2025-05-29)
+
+
+### Features
+
+* **ui:** update package ([ecfdbba](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ecfdbba6006e2ce825a3be1235c6e3e48a32c5fc))
+
## [2.36.3](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.36.2...v2.36.3) (2025-05-28)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/wmconnect-mini-app",
- "version": "2.36.3",
+ "version": "2.37.0",
"main": "dist/index.js",
"files": [
"dist",
| chore(release): 2.37.0 [skip ci] | chore(release): 2.37.0 [skip ci]
# [2.37.0](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/compare/v2.36.3...v2.37.0) (2025-05-29)
### Features
* **ui:** update package ([ecfdbba](https://gecgithub01.walmart.com/smdv/wmconnect-miniapp/commit/ecfdbba6006e2ce825a3be1235c6e3e48a32c5fc))
|
96329f4e4d6eafffb6253459f8b5868b591e70d3 | --- packages/celebration-mini-app-graphql/src/components/CelebrationLists/types.ts
@@ -58,6 +58,8 @@ export interface AssociateRowProps {
isLastItem?: boolean;
/** Type of celebration (birthday/anniversary) */
celebrationType?: 'birthday' | 'anniversary';
+ /** Optional press handler */
+ onPress?: () => void;
/** Test ID for testing purposes */
testID?: string;
}
--- packages/celebration-mini-app-graphql/src/screens/CelebrationDetailsScreen.tsx
@@ -16,7 +16,7 @@ import {colors, TabNavigation, TabNavigationItem} from '@walmart/gtp-shared-comp
import {CelebrationFeature} from '../utils/feature';
import {CelebrationGraphQLLogger} from '../utils/logger';
import {CelebrationGraphQLTelemetryHelpers} from '../utils/telemetry';
-import {ComponentsModule, type AllsparkScreenProps, useAllsparkSelector} from '@walmart/allspark-foundation';
+import {ComponentsModule, type AllsparkScreenProps} from '@walmart/allspark-foundation';
import {useCelebrations} from '../hooks/useCelebrations';
import {CelebrationTimeframe} from '../types';
import {CELEBRATION_SCREEN_TABS, CELEBRATION_TYPE_ANNIVERSARY, CELEBRATION_TYPE_BIRTHDAY} from '../constants';
@@ -39,10 +39,6 @@ const CelebrationDetailsScreen = CelebrationFeature.createScreen(
const {selectedTeamData, teamData, timeframe = 'today'} = params;
const {t} = useTranslation(['celebrations']);
- // Get site information from Redux selectors (not from props)
- const siteId = useAllsparkSelector((state: any) => state?.site?.siteId);
- const countryCode = useAllsparkSelector((state: any) => state?.site?.countryCode);
-
// Get effective team ID from teamData (use currentTeam if available)
const effectiveTeamId = useMemo(() => {
// Priority 1: selectedTeamData (passed directly)
@@ -59,8 +55,6 @@ const CelebrationDetailsScreen = CelebrationFeature.createScreen(
// Use celebrations hook to fetch data with explicit team parameters from selectors
const {celebrations, loading: celebrationLoading, error, refetch: _refetch} = useCelebrations({
teamId: effectiveTeamId,
- country: countryCode || 'US',
- storeId: siteId,
timeframe: timeframe as CelebrationTimeframe,
});
--- packages/celebration-mini-app-graphql/src/store/index.ts
@@ -27,5 +27,6 @@ import {CelebrationFeature} from '../utils/feature';
* This export ensures proper Allspark module integration.
*/
export const CelebrationRedux = CelebrationFeature.createRedux({
- // No reducers needed - using Allspark Foundation's store
+ reducer: {},
+ sagas: [],
});
--- packages/celebration-mini-app-graphql/src/store/selectors/ccmSelectors.ts
@@ -22,8 +22,8 @@
*/
import {createSelector} from 'reselect';
-import {CCMFallbacks} from './ccmFallbacks';
-import {logger} from './logger';
+import {CCMFallbacks} from '../../utils/ccmFallbacks';
+import {CelebrationGraphQLLogger as logger} from '../../utils/logger';
/**
* Helper function to convert CCM string values to boolean with fallback
--- yarn.lock
@@ -8785,6 +8785,19 @@ __metadata:
languageName: node
linkType: hard
+"@walmart/me-at-walmart-common@npm:6.36.0-alpha.7":
+ version: 6.36.0-alpha.7
+ resolution: "@walmart/me-at-walmart-common@npm:6.36.0-alpha.7::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fme-at-walmart-common%2F-%2F%40walmart%2Fme-at-walmart-common-6.36.0-alpha.7.tgz"
+ peerDependencies:
+ "@reduxjs/toolkit": "*"
+ "@walmart/allspark-foundation": ">=6.26.0"
+ react: "*"
+ react-native: "*"
+ redux-saga: "*"
+ checksum: 10c0/e508285249ca29583c0e424f3b9fb55d6ac20b9adc5dfd4908c11a98b398dca81ce7eeed295084391872b619e8e6648cd82422578331bbb6414487c5e0d6e2b9
+ languageName: node
+ linkType: hard
+
"@walmart/me-at-walmart-common@npm:6.37.0":
version: 6.37.0
resolution: "@walmart/me-at-walmart-common@npm:6.37.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fme-at-walmart-common%2F-%2F%40walmart%2Fme-at-walmart-common-6.37.0.tgz"
| feat(ui): fix the build issues | feat(ui): fix the build issues
|
a2ade27aa63d4985377f1fb760d483f011242298 | --- example/src/core/index.tsx
@@ -79,7 +79,7 @@ const Tab2Nav = () => {
);
};
-const Tab3Stack = AllsparkNavigationClient.createAllsparkStackNavigator();
+const Tab3Stack = createStackNavigator();
const Tab3Nav = () => {
return (
--- example/src/teamHub/screens/screen.tsx
@@ -6,7 +6,6 @@ import {useNavigation} from '@react-navigation/core';
import {TeamHubLogger, TeamHubTelemetry} from '../services';
import {TeamHub} from '../feature';
import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
-import {TeamSelectionList} from '../tempComponentForTesting/TeamSelectionList';
import {Header} from '@walmart/allspark-foundation/Components';
export const HomeScreen = TeamHub.createScreen(
@@ -53,23 +52,6 @@ export const HomeScreen = TeamHub.createScreen(
}>
Team Container
</Button>
- <TeamSelectionList
- areas={[
- 'Admin & Support',
- 'Digital',
- 'Food & Consumables',
- 'Front End',
- 'Fuel',
- 'General Merchandise',
- 'Management',
- 'Pharmacy',
- 'Stocking',
- 'Vision Center',
- ]}
- selectedTeams={[]}
- primaryArea="Management"
- handleChange={() => {}}
- />
</View>
);
},
| feat: fix navigation and remove team list from screen | feat: fix navigation and remove team list from screen
|
38fc1d1a8fcb02c71a4829d16feaee6a4fbb08e9 | --- src/managerExperience/components/FilterChip/types.ts
@@ -1,7 +1,9 @@
import {ChipProps} from '@walmart/gtp-shared-components/dist';
+import {FilterValue} from '../../../containers/RosterFilters';
export interface FilterChipProps extends Omit<ChipProps, 'children'> {
count: number | null;
label: string;
+ id: FilterValue;
isApplied: boolean;
}
--- src/managerExperience/components/FilterChipGroup/FilterChipGroup.tsx
@@ -4,20 +4,20 @@ import {filterChipGroupStyles as styles} from './styles';
import {FilterChip} from '../FilterChip/FilterChip';
import {View} from 'react-native';
import {FilterChipProps} from '../FilterChip/types';
+import {FilterValue} from '../../../containers/RosterFilters';
export const FilterChipGroup = ({
filterChips,
handleFilter,
}: FilterChipGroupProps) => {
- // When selectedFilter is null, all associates are shown
- const [selectedFilter, setSelectedFilter] = useState<string | number | null>(
- null,
+ const [selectedFilter, setSelectedFilter] = useState<FilterValue>(
+ FilterValue.all,
);
- const handleFilterPress = (filterId: string | number) => {
+ const handleFilterPress = (filterId: FilterValue) => {
if (selectedFilter === filterId) {
- setSelectedFilter(null);
- handleFilter(null);
+ setSelectedFilter(FilterValue.all);
+ handleFilter(FilterValue.all);
} else {
setSelectedFilter(filterId);
handleFilter(filterId);
--- src/managerExperience/components/FilterChipGroup/types.ts
@@ -1,6 +1,7 @@
+import {FilterValue} from '../../../containers/RosterFilters';
import {FilterChipProps} from '../FilterChip/types';
export interface FilterChipGroupProps {
filterChips: FilterChipProps[];
- handleFilter: (filterId: string | number | null) => void;
+ handleFilter: (filterId: FilterValue) => void;
}
--- src/managerExperience/components/RosterFiltersAndInfo/RosterFiltersAndInfo.tsx
@@ -15,7 +15,6 @@ export const RosterFiltersAndInfo = ({
associates = [],
filterChips,
headerText,
- numberOfAssociates,
loading,
teamName,
handleFilter,
@@ -35,7 +34,8 @@ export const RosterFiltersAndInfo = ({
goToWeeklySchedule(associateWINs, teamName);
};
- if (loading) return <RosterFiltersAndInfoLoading headerText={headerText} />;
+ if (loading)
+ return <RosterFiltersAndInfoLoading headerText={headerText} hasFilters />;
return (
<View style={styles.container}>
@@ -43,7 +43,7 @@ export const RosterFiltersAndInfo = ({
<View testID='rosterFiltersHeader'>
<RosterFiltersHeader
headerText={headerText}
- numberOfAssociates={numberOfAssociates}
+ numberOfAssociates={associates.length}
/>
</View>
{isWeeklyScheduleVisible && (
--- src/managerExperience/components/RosterFiltersAndInfo/RosterFiltersAndInfoLoading.tsx
@@ -6,6 +6,7 @@ import {RosterFiltersHeader} from '../RosterFiltersHeader';
import {RosterFiltersAndInfoLoadingProps} from './types';
export const RosterFiltersAndInfoLoading = ({
+ hasFilters,
headerText,
}: RosterFiltersAndInfoLoadingProps) => {
const {width} = useWindowDimensions();
@@ -20,11 +21,13 @@ export const RosterFiltersAndInfoLoading = ({
/>
</View>
</View>
- <View style={styles.loadingRosterFilters}>
- <Skeleton height={32} width={width * 0.31} />
- <Skeleton height={32} width={width * 0.2} />
- <Skeleton height={32} width={width * 0.24} />
- </View>
+ {hasFilters && (
+ <View style={styles.loadingRosterFilters}>
+ <Skeleton height={32} width={width * 0.31} />
+ <Skeleton height={32} width={width * 0.2} />
+ <Skeleton height={32} width={width * 0.24} />
+ </View>
+ )}
</View>
);
};
--- src/managerExperience/components/RosterFiltersAndInfo/style.ts
@@ -10,7 +10,6 @@ export const RosterFiltersAndInfoStyles = StyleSheet.create({
flexDirection: 'row',
alignItems: 'center',
marginLeft: 4,
- marginBottom: 16,
marginTop: 4,
},
weeklyScheduleButton: {
@@ -24,5 +23,6 @@ export const RosterFiltersAndInfoStyles = StyleSheet.create({
display: 'flex',
flexDirection: 'row',
gap: 8,
+ marginTop: 16,
},
});
--- src/managerExperience/components/RosterFiltersAndInfo/types.ts
@@ -1,3 +1,4 @@
+import {FilterValue} from '../../../containers/RosterFilters';
import {Associate} from '../../../types';
import {FilterChipProps} from '../FilterChip/types';
@@ -5,12 +6,12 @@ export type RosterFiltersAndInfoProps = {
associates?: Associate[];
filterChips: FilterChipProps[];
headerText: string;
- numberOfAssociates: number;
loading: boolean;
teamName?: string;
- handleFilter: (filterId: string | number | null) => void;
+ handleFilter: (filterId: FilterValue) => void;
};
export interface RosterFiltersAndInfoLoadingProps {
+ hasFilters: boolean;
headerText: string;
}
| feat: updated roster info and filter | feat: updated roster info and filter
|
4257734a6d2914ab4d539a9da315481b331f0b87 | --- android/app/build.gradle
@@ -134,7 +134,7 @@ android {
applicationId "com.walmart.stores.allspark.beta"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 10
+ versionCode 11
versionName "1.0.1"
}
splits {
--- ios/AllSpark/Info.plist
@@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>10</string>
+ <string>11</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>10</string>
+ <string>11</string>
</dict>
</plist>
| Incrementing build number | Incrementing build number
|
04ac2f31e33cdc72ae4feba5e9f1d8e4a34da646 | --- __mocks__/@react-navigation/native.js
@@ -19,6 +19,12 @@ module.exports = {
reset: jest.fn(() => ({type: 'RESET'})),
goBack: jest.fn(() => ({type: 'GO_BACK'})),
},
+ StackActions: {
+ popTo: jest.fn((name) => ({type: 'POP_TO', payload: {name}})),
+ pop: jest.fn(() => ({type: 'POP'})),
+ push: jest.fn(() => ({type: 'PUSH'})),
+ replace: jest.fn(() => ({type: 'REPLACE'})),
+ },
getFocusedRouteNameFromRoute: jest.fn(),
useFocusEffect: jest.fn((f) => f()),
};
--- __tests__/sideKey/SideButtonSagasTest.ts
@@ -1,10 +1,11 @@
import {Platform} from 'react-native';
import {call, take, select, takeLatest} from 'redux-saga/effects';
import DeviceInfo from 'react-native-device-info';
-import {AllsparkNavigationClient} from '@walmart/allspark-foundation/Navigation';
+import {AllsparkNavigationClient, NavigationModule} from '@walmart/allspark-foundation/Navigation';
import KeyEvent from '@walmart/allspark-cope-key-listener';
import {createRestartableSagas} from '@walmart/allspark-utils';
import {ConfigActionTypes} from '@walmart/allspark-foundation/Config';
+import {StackActions} from '@react-navigation/native';
import {
getSettingsAppConfig,
handleSideButtonSetting,
@@ -81,6 +82,10 @@ describe('handleSideButtonSetting', () => {
});
describe('processKeyEvent', () => {
+ beforeEach(() => {
+ jest.clearAllMocks();
+ });
+
it('does nothing incorrect keycode', async () => {
(
AllsparkNavigationClient.getCurrentRouteName as jest.Mock
@@ -103,12 +108,12 @@ describe('processKeyEvent', () => {
it('handles item info preference', async () => {
(
- AllsparkNavigationClient.getCurrentRouteName as jest.Mock
+ NavigationModule.manager.getCurrentRouteName as jest.Mock
).mockReturnValueOnce('randomScreen');
LocalStorageSpy.mockResolvedValueOnce(SideButtonOptions.SCANNER);
await processKeyEvent({keyCode: COPE_DEVICE_SIDE_KEY_CODE});
- expect(AllsparkNavigationClient.navigate).toHaveBeenLastCalledWith(
+ expect(NavigationModule.manager.navigate).toHaveBeenLastCalledWith(
'itemInfo',
{
screen: 'item_info_landing',
@@ -118,12 +123,67 @@ describe('processKeyEvent', () => {
it('handles no preference found', async () => {
(
- AllsparkNavigationClient.getCurrentRouteName as jest.Mock
+ NavigationModule.manager.getCurrentRouteName as jest.Mock
).mockReturnValueOnce('randomScreen');
LocalStorageSpy.mockResolvedValueOnce(null);
await processKeyEvent({keyCode: COPE_DEVICE_SIDE_KEY_CODE});
- expect(AllsparkNavigationClient.navigate).toHaveBeenLastCalledWith(
+ expect(NavigationModule.manager.navigate).toHaveBeenLastCalledWith(
+ 'itemInfo',
+ {
+ screen: 'item_info_landing',
+ },
+ );
+ });
+
+ it('pops to item_info_landing when already in itemInfo stack', async () => {
+ (
+ NavigationModule.manager.getCurrentRouteName as jest.Mock
+ ).mockReturnValue('item_info_details');
+ LocalStorageSpy.mockResolvedValueOnce(SideButtonOptions.SCANNER);
+
+ await processKeyEvent({keyCode: COPE_DEVICE_SIDE_KEY_CODE});
+ expect(NavigationModule.manager.dispatch).toHaveBeenCalledWith(
+ StackActions.popTo('item_info_landing'),
+ );
+ expect(NavigationModule.manager.navigate).not.toHaveBeenCalled();
+ });
+
+ it('navigates to itemInfo when current screen is not in itemInfo stack', async () => {
+ (
+ NavigationModule.manager.getCurrentRouteName as jest.Mock
+ ).mockReturnValue('home_screen');
+ LocalStorageSpy.mockResolvedValueOnce(SideButtonOptions.SCANNER);
+
+ await processKeyEvent({keyCode: COPE_DEVICE_SIDE_KEY_CODE});
+ expect(NavigationModule.manager.navigate).toHaveBeenCalledWith(
+ 'itemInfo',
+ {
+ screen: 'item_info_landing',
+ },
+ );
+ expect(NavigationModule.manager.dispatch).not.toHaveBeenCalled();
+ });
+
+ it('pops to item_info_landing when on item_info_landing itself', async () => {
+ (
+ NavigationModule.manager.getCurrentRouteName as jest.Mock
+ ).mockReturnValue('item_info_landing');
+ LocalStorageSpy.mockResolvedValueOnce(SideButtonOptions.SCANNER);
+
+ await processKeyEvent({keyCode: COPE_DEVICE_SIDE_KEY_CODE});
+ expect(NavigationModule.manager.dispatch).toHaveBeenCalledWith(
+ StackActions.popTo('item_info_landing'),
+ );
+ });
+
+ it('handles default case by navigating to item_info_landing from non-itemInfo screen', async () => {
+ (
+ NavigationModule.manager.getCurrentRouteName as jest.Mock
+ ).mockReturnValue('some_other_screen');
+
+ await processKeyEvent({keyCode: COPE_DEVICE_SIDE_KEY_CODE});
+ expect(NavigationModule.manager.navigate).toHaveBeenCalledWith(
'itemInfo',
{
screen: 'item_info_landing',
--- src/sideKey/SideButtonSagas.ts
@@ -10,6 +10,7 @@ import {
import {createRestartableSaga} from '@walmart/allspark-utils';
import {
AllsparkNavigationClient,
+ NavigationModule,
} from '@walmart/allspark-foundation/Navigation';
import {
@@ -19,10 +20,14 @@ import {
} from './constants';
import {SideButtonTypes} from './SideButtonRedux';
import {COPE_DEVICE_SIDE_KEY_CODE, SideButtonOptions} from './constants';
+import {StackActions} from '@react-navigation/native';
export const getSettingsAppConfig =
ConfigSelectors.createFeatureConfigSelector('settings');
+const ITEM_INFO_PREFIX = 'item_info_';
+const ITEM_INFO_LANDING = ITEM_INFO_PREFIX + 'landing';
+
export function* handleSideButtonSetting() {
const deviceName: string = yield call(DeviceInfo.getDeviceName);
const isAndroid = Platform.OS === 'android';
@@ -61,20 +66,29 @@ export const processKeyEvent = async (keyEvent: {keyCode: number}) => {
AllsparkNavigationClient.navigate('askSam');
break;
case SideButtonOptions.SCANNER:
- // @ts-ignore - global navigation not typed properly for params
- AllsparkNavigationClient.navigate('itemInfo', {
- screen: 'item_info_landing',
- });
+ navigateToItemInfoLanding()
break;
default:
- // @ts-ignore - global navigation not typed properly for params
- AllsparkNavigationClient.navigate('itemInfo', {
- screen: 'item_info_landing',
- }); // default to item info
+ navigateToItemInfoLanding() // Default to item info landing
}
}
};
+// Navigate to item info landing, popping to it if already in stack
+const navigateToItemInfoLanding = () => {
+ const currentRouteName = NavigationModule.manager.getCurrentRouteName();
+ // If current route starts with ITEM_INFO_PREFIX, you're in the itemInfo stack
+ if (currentRouteName?.startsWith(ITEM_INFO_PREFIX)) {
+ // Already in itemInfo stack and navigate to root screen
+ NavigationModule.manager.dispatch(StackActions.popTo(ITEM_INFO_LANDING));
+ } else {
+ // Navigate to itemInfo
+ NavigationModule.manager.navigate('itemInfo' as string, {
+ screen: ITEM_INFO_LANDING,
+ });
+ }
+}
+
export function* onConfigSuccess() {
// requiring KeyEvent later would not add the listener correctly
const settingsConfig = yield select(getSettingsAppConfig);
| fix(ui): ALLSPARK-7445 sidebutton navigation fix (#5202) | fix(ui): ALLSPARK-7445 sidebutton navigation fix (#5202)
Co-authored-by: Hariharan Sundaram <hariharan.sundaram0@walmart.com>
Co-authored-by: Hariharan Sundaram <121838+h0s0em0@users.noreply.gecgithub01.walmart.com>
Co-authored-by: Pavan Lingamallu - p0l04ug <Pavan.Lingamallu@walmart.com> |
361588cf02c5cab82ce71c5d0fd80de2b740feae | --- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.15.1-alpha.17",
+ "version": "1.15.1-alpha.18",
"main": "dist/index.js",
"files": [
"dist"
@@ -99,7 +99,7 @@
"@walmart/react-native-shared-navigation": "6.1.4",
"@walmart/react-native-sumo-sdk": "2.6.0",
"@walmart/redux-store": "3.7.0",
- "@walmart/roster-mini-app": "2.12.1-alpha.16",
+ "@walmart/roster-mini-app": "2.12.1-alpha.18",
"@walmart/ui-components": "1.15.1",
"@walmart/wmconnect-mini-app": "2.8.0-alpha.12",
"babel-jest": "^29.2.1",
--- yarn.lock
@@ -6424,7 +6424,7 @@ __metadata:
"@walmart/react-native-shared-navigation": "npm:6.1.4"
"@walmart/react-native-sumo-sdk": "npm:2.6.0"
"@walmart/redux-store": "npm:3.7.0"
- "@walmart/roster-mini-app": "npm:2.12.1-alpha.16"
+ "@walmart/roster-mini-app": "npm:2.12.1-alpha.18"
"@walmart/ui-components": "npm:1.15.1"
"@walmart/wmconnect-mini-app": "npm:2.8.0-alpha.12"
babel-jest: "npm:^29.2.1"
@@ -6606,9 +6606,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/roster-mini-app@npm:2.12.1-alpha.16":
- version: 2.12.1-alpha.16
- resolution: "@walmart/roster-mini-app@npm:2.12.1-alpha.16"
+"@walmart/roster-mini-app@npm:2.12.1-alpha.18":
+ version: 2.12.1-alpha.18
+ resolution: "@walmart/roster-mini-app@npm:2.12.1-alpha.18"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.21.0
"@react-native-community/netinfo": ^11.0.1
@@ -6650,7 +6650,7 @@ __metadata:
redux: ^4.2.1
redux-saga: ^1.2.3
wifi-store-locator: 1.4.1
- checksum: 10c0/38a506504d27d8076b21afcd46da00488ce50a989d5a3d15e07c29659936e656e0cb46651149216e9b45d6f7a6e52af3b262142a4e383b8f204b1fea2f9a10a5
+ checksum: 10c0/7636a173f35683358e4e76719a2fa90a0f95a97875d87d729ec7bac88651240fb812a4f6cedf58779772857a83982d81358122592db5beacb9720fc4394df013
languageName: node
linkType: hard
| feat(ui): update my team mini app version | feat(ui): update my team mini app version
|
36e0ee756edf12777a0954bed86b74b02bfd4615 | --- packages/allspark-foundation-hub/__tests__/supplyChain/Components/AllSupplyTeamList.test.tsx
@@ -0,0 +1,99 @@
+jest.useFakeTimers();
+import React from 'react';
+import { render as newRender } from '@walmart/allspark-foundation/__tests__/utils/index';
+import { fireEvent, render, screen } from '@testing-library/react-native';
+import { AllSupplyTeamList } from '@walmart/allspark-foundation-hub/src/SupplyChain/Components/AllSupplyTeamsList/AllSupplyTeamsList';
+import { beforeEach } from 'node:test';
+import { useDispatch } from 'react-redux';
+
+jest.mock('react-redux', () => ({
+ useDispatch: jest.fn(),
+ useSelector: jest.fn(),
+}));
+
+jest.mock('@walmart/allspark-foundation/Translation', () => ({
+ useAllsparkTranslation: () => ({ t: jest.fn() }),
+}));
+
+const mockLogEvent = jest.fn();
+jest.mock('@walmart/allspark-foundation/Telemetry', () => ({
+ useTelemetryService: jest.fn(() => ({
+ logEvent: mockLogEvent,
+ })),
+}));
+
+jest.mock('@walmart/allspark-foundation/Site', () => ({
+ SiteSelectors: {
+ getWorkingSiteDivision: jest.fn(),
+ getWorkingSiteSiteId: jest.fn(),
+ },
+}));
+
+const mockProps = {
+ sections: [
+ {
+ title: 'Team A',
+ data: [
+ {
+ teamName: 'Team A1',
+ teamId: '1',
+ businessUnitNumber: '',
+ countryCode: '',
+ opsareaCode: '',
+ opsareaName: '',
+ },
+ ],
+ },
+ ],
+ handleSelection: jest.fn(),
+ selectedItems: [],
+ isModal: true,
+ handleSearchInput: jest.fn(),
+ handleEdit: jest.fn(),
+};
+
+describe('AllSupplyTeamList', () => {
+ beforeEach(() => {
+ jest.clearAllMocks();
+ useSelector.mockImplementation((selector) => {
+ switch (selector) {
+ case SiteSelectors.getWorkingSiteDivision:
+ return { description: 'Division 1' };
+ case SiteSelectors.getWorkingSiteSiteId:
+ return '123';
+ case allTeamsListEnabled:
+ return true;
+ case teamSearchInputEnabled:
+ return true;
+ default:
+ return false;
+ }
+ });
+ useAllsparkTranslation.mockReturnValue({ t: (key) => key });
+ useTelemetryService.mockReturnValue({
+ logEvent: jest.fn(),
+ });
+ });
+
+ afterEach(() => {
+ jest.clearAllMocks();
+ });
+ it('Test 1: renders correctly with given props', () => {
+ const dispatch = jest.fn();
+ (useDispatch as jest.Mock).mockReturnValue(dispatch);
+ const { getByText, getByTestId } = newRender(
+ <AllSupplyTeamList {...mockProps} isModal={true} />
+ );
+ expect(getByTestId('edit-saved-teams')).toBeTruthy();
+ // expect(getByText('expandedTeamShiftModal.Teams.title')).toBeTruthy();
+ // expect(getByText('expandedTeamShiftModal.Teams.subText')).toBeTruthy();
+ });
+
+ it('does not render header component when isModal is false', () => {
+ const { queryByText } = render(
+ <AllSupplyTeamList {...mockProps} isModal={false} />
+ );
+ expect(queryByText('expandedTeamShiftModal.AllTeams.title')).toBeNull();
+ expect(queryByText('expandedTeamShiftModal.AllTeams.subText')).toBeNull();
+ });
+});
| Adding initial tests | Adding initial tests
|
49a9f9972adf4ecf38ed34d0289b1bae9f420ea5 | --- packages/associate-exp-hub-hub/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [2.17.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.16.0...@walmart/associate-exp-hub-hub@2.17.0) (2025-12-02)
+
+### Features
+
+- **ui:** remove unused package and update tests ([bfdf919](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/bfdf919096ead6dbbf337dbf0c0007713c70e350))
+
# [2.16.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-hub@2.15.0...@walmart/associate-exp-hub-hub@2.16.0) (2025-11-28)
### Features
--- packages/associate-exp-hub-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-hub",
- "version": "2.16.0",
+ "version": "2.17.0",
"description": "Hub Framework module for Associate Experience Hub - can be moved to @walmart/my-walmart-hub",
"packageManager": "yarn@4.6.0",
"engines": {
--- packages/associate-exp-hub-mini-app/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [1.10.0](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.9.1...@walmart/associate-exp-hub-mini-app@1.10.0) (2025-12-02)
+
+### Features
+
+- **ui:** remove unused package and update tests ([bfdf919](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/commit/bfdf919096ead6dbbf337dbf0c0007713c70e350))
+
## [1.9.1](https://gecgithub01.walmart.com/smdv/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-mini-app@1.9.0...@walmart/associate-exp-hub-mini-app@1.9.1) (2025-11-28)
**Note:** Version bump only for package @walmart/associate-exp-hub-mini-app
--- packages/associate-exp-hub-mini-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-mini-app",
- "version": "1.9.1",
+ "version": "1.10.0",
"packageManager": "yarn@4.6.0",
"engines": {
"node": ">=18"
--- packages/associate-exp-hub-team-switcher/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [2.19.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.18.0...@walmart/associate-exp-hub-team-switcher@2.19.0) (2025-12-02)
+
+### Features
+
+- **ui:** fix lint errors ([a9b17da](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/a9b17da64c2ed67428a0188ae56dd64f38a7d789))
+- **ui:** remove unused package and update tests ([bfdf919](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/bfdf919096ead6dbbf337dbf0c0007713c70e350))
+- **ui:** update tests ([b25e8c6](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/commit/b25e8c6387c48dbdf1ae0e45095d71a30429d7dc))
+
# [2.18.0](https://gecgithub01.walmart.com/allspark/associate-exp-hub-mini-app/compare/@walmart/associate-exp-hub-team-switcher@2.17.0...@walmart/associate-exp-hub-team-switcher@2.18.0) (2025-11-21)
### Features
--- packages/associate-exp-hub-team-switcher/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/associate-exp-hub-team-switcher",
- "version": "2.18.0",
+ "version": "2.19.0",
"description": "Team Switcher module for Associate Experience Hub",
"packageManager": "yarn@4.6.0",
"engines": {
| chore(version): updating package version | chore(version): updating package version
- @walmart/associate-exp-hub-hub@2.17.0
- @walmart/associate-exp-hub-mini-app@1.10.0
- @walmart/associate-exp-hub-team-switcher@2.19.0
|
afa365eab1156cf2c9fed95581a61cca0bdba97d | --- package-lock.json
@@ -3125,9 +3125,9 @@
}
},
"@walmart/push-to-talk-mini-app": {
- "version": "0.2.6",
- "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.2.6.tgz",
- "integrity": "sha512-rc1cY+B0SrickTaQF50aen6fGqSZUjxC/M7JL8BA/R486CFvYGMVh7m1OHgewlmQ+F2/5WcHr5cBZxiVhlMuAg=="
+ "version": "0.2.7",
+ "resolved": "https://npme.walmart.com/@walmart/push-to-talk-mini-app/-/push-to-talk-mini-app-0.2.7.tgz",
+ "integrity": "sha512-uVUSnN70DvhpAHdufW9wv1CtqHswHeqDXnYX+kKGctOnLtk8TT3A9nxiNc0y0N8Nf/Y2APmJ1wiTT8Hfs/yPrA=="
},
"@walmart/react-native-collapsible": {
"version": "1.5.3",
--- package.json
@@ -58,7 +58,7 @@
"@walmart/impersonation-mini-app": "1.0.12",
"@walmart/inbox-mini-app": "0.0.53",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/push-to-talk-mini-app": "0.2.6",
+ "@walmart/push-to-talk-mini-app": "0.2.7",
"@walmart/react-native-env": "^0.1.0",
"@walmart/react-native-logger": "^1.22.0",
"@walmart/react-native-shared-navigation": "^0.3.0",
| PTT version bump (#357) | PTT version bump (#357)
* version update for AskSam and PTT dependencies
* PTT version bump |
f41a53ce67a39742fb92f0017f09a6481f7a50f7 | --- src/screens/ViewTeamScreen.tsx
@@ -80,7 +80,7 @@ export const ViewTeamScreen: React.FC<ViewTeamScreenProps> = (props) => {
associates={teamRoster}
clockedInCount={clockedInCount ?? 0}
onFilter={onFilter}
- tardyCount={tardyCount}
+ tardyCount={tardyCount ?? 0}
/>
<RosterHeader
associates={teamRoster}
| Adding tardy count | Adding tardy count
|
52652c3cf97d14158cb7b5c606cc4f5908ffca2a | --- package.json
@@ -86,7 +86,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.31.5",
"@walmart/associate-listening-mini-app": "1.2.32",
- "@walmart/attendance-mini-app": "3.156.0",
+ "@walmart/attendance-mini-app": "3.169.0",
"@walmart/avp-feature-app": "0.16.19",
"@walmart/avp-shared-library": "0.10.12",
"@walmart/backroom-mini-app": "1.12.0",
@@ -147,7 +147,7 @@
"@walmart/rn-mobile-sdk-pairing": "2.1.8",
"@walmart/rn-receiving-mini-app": "2.4.97",
"@walmart/roster-mini-app": "2.38.1",
- "@walmart/schedule-mini-app": "1.13.0",
+ "@walmart/schedule-mini-app": "2.1.3",
"@walmart/shelfavailability-mini-app": "1.5.45",
"@walmart/shop-gnfr-mini-app": "1.0.302",
"@walmart/sidekick-mini-app": "4.199.7",
@@ -160,7 +160,7 @@
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.23.1#~/.yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch",
"@walmart/walmart-fiscal-week": "^0.3.6",
"@walmart/welcomeme-mini-app": "1.0.12",
- "@walmart/wfm-ui": "2.4.0",
+ "@walmart/wfm-ui": "3.0.2",
"@walmart/wm-plus-mini-app": "1.5.4",
"@walmart/wmconnect-mini-app": "2.36.2",
"axios": "~1.6.0",
--- yarn.lock
@@ -7766,9 +7766,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/attendance-mini-app@npm:3.156.0":
- version: 3.156.0
- resolution: "@walmart/attendance-mini-app@npm:3.156.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.156.0.tgz"
+"@walmart/attendance-mini-app@npm:3.169.0":
+ version: 3.169.0
+ resolution: "@walmart/attendance-mini-app@npm:3.169.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fattendance-mini-app%2F-%2F%40walmart%2Fattendance-mini-app-3.169.0.tgz"
peerDependencies:
"@react-native-community/datetimepicker": ">=5.1.0"
"@react-navigation/native": ">=6.0.8"
@@ -7799,7 +7799,7 @@ __metadata:
redux-saga: ">=1.2.3"
reselect: ">=4.1.0"
wfm-allspark-data-library: ">=3.3.0"
- checksum: 10c0/8f90482f448eef8589278a67607720c15ce3bae2ddee196175ab5f962633ff92fc7b8e73d9e07591f3db3ab7c166c731cf6ab628c2af7dfea22f68e779cfe967
+ checksum: 10c0/6f5f54fb3ad7b28b00799c9927f990327d20325984f35bea3eb6ec4f1c06dee1c21891bb914cd96acf766e866ccfae1ff4859d604b2ab896a9a815d3a94668e7
languageName: node
linkType: hard
@@ -8624,7 +8624,7 @@ __metadata:
"@walmart/ask-sam-chat-components": "npm:^0.2.7"
"@walmart/ask-sam-mini-app": "npm:1.31.5"
"@walmart/associate-listening-mini-app": "npm:1.2.32"
- "@walmart/attendance-mini-app": "npm:3.156.0"
+ "@walmart/attendance-mini-app": "npm:3.169.0"
"@walmart/avp-feature-app": "npm:0.16.19"
"@walmart/avp-shared-library": "npm:0.10.12"
"@walmart/backroom-mini-app": "npm:1.12.0"
@@ -8685,7 +8685,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:2.38.1"
- "@walmart/schedule-mini-app": "npm:1.13.0"
+ "@walmart/schedule-mini-app": "npm:2.1.3"
"@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"
@@ -8698,7 +8698,7 @@ __metadata:
"@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.23.1#~/.yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch"
"@walmart/walmart-fiscal-week": "npm:^0.3.6"
"@walmart/welcomeme-mini-app": "npm:1.0.12"
- "@walmart/wfm-ui": "npm:2.4.0"
+ "@walmart/wfm-ui": "npm:3.0.2"
"@walmart/wm-plus-mini-app": "npm:1.5.4"
"@walmart/wmconnect-mini-app": "npm:2.36.2"
adaptive-expressions: "npm:^4.13.5"
@@ -9373,12 +9373,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/schedule-mini-app@npm:1.13.0":
- version: 1.13.0
- resolution: "@walmart/schedule-mini-app@npm:1.13.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fschedule-mini-app%2F-%2Fschedule-mini-app-1.13.0.tgz"
+"@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"
dependencies:
"@walmart/moment-walmart": "npm:^1.0.4"
- "@walmart/wfm-ui": "npm:^2.4.0"
+ "@walmart/wfm-ui": "npm:^3.0.2"
wfm-allspark-data-library: "npm:6.0.0"
peerDependencies:
"@react-native-community/datetimepicker": ^7.6.2
@@ -9398,6 +9398,7 @@ __metadata:
crypto-js: ">=4.2.0"
i18next: ">=19.8.7"
javascript-time-ago: ">=2.3.4"
+ luxon: ^1.28.0
react: ">=18.2.0"
react-i18next: ">=12.0.0"
react-native: ">=0.72.6"
@@ -9406,7 +9407,7 @@ __metadata:
react-redux: ">=7.2.1"
redux: ">=4.0.5"
reselect: ">=4.0.0"
- checksum: 10c0/4e4b7361c455bd82de33f27559458c750049e0c620dc6d2ceafe5c461ecd7bbd24d5026c12249c672d67af2b6e17b4fccff87edab461c8afd06ceecf91318c6f
+ checksum: 10c0/127fbd3769aace3e0404c617dbcc750036081dc05d2052348f3588db9e5d7381bb99f989bc7adb5ffc66363a80ee8fb9e10e57a83f1034ce46289e17a833b33a
languageName: node
linkType: hard
@@ -9771,21 +9772,22 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/wfm-ui@npm:2.4.0, @walmart/wfm-ui@npm:^2.4.0":
- version: 2.4.0
- resolution: "@walmart/wfm-ui@npm:2.4.0::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwfm-ui%2F-%2Fwfm-ui-2.4.0.tgz"
+"@walmart/wfm-ui@npm:3.0.2, @walmart/wfm-ui@npm:^3.0.2":
+ version: 3.0.2
+ resolution: "@walmart/wfm-ui@npm:3.0.2::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fwfm-ui%2F-%2F%40walmart%2Fwfm-ui-3.0.2.tgz"
dependencies:
"@walmart/moment-walmart": "npm:1.0.3"
string.prototype.matchall: "npm:>=4.0.2"
peerDependencies:
"@walmart/allspark-foundation": ">=6.1.4"
+ luxon: ^1.28.1
moment: ">=2.29.4"
react: ">=18.2.0"
react-native: ">=0.72.6"
react-native-modal: ">=11.5.6"
react-native-vector-icons: ">=7.0.0"
xdate: ">=0.8.0"
- checksum: 10c0/4b374f541629d79880e33aea8374365e3eceeec3063a6fcb51e83d83a4c7c3ba67cc5894c66ccf1a1e567ab0920857f0106b9049721e01496a84803431117bd8
+ checksum: 10c0/71e7ec38dcbf89dd5c3678b28ba6bb1bc1ceaed2880b790a99226725b7030b9e3afb2fa5513efc8e194d980d4fbd8bd7e841b247c86b22125e6aa66d8947d609
languageName: node
linkType: hard
| feat: Schedules - LA Fair Work Week (#4325) | feat: Schedules - LA Fair Work Week (#4325)
* feat: bump scheduling packages. Patch attendance-mini for shiftChangeRequests
* fix(schedules): aSWFMT-73598 fix the patch definition for attendance
* fix(fix typo): fix typo
* fix(fix selector): update selector to use feature flag
* feat(la fair work week): Bump attendance-mini-app vers
* feat(la - fair work week): Update patch vers to match attendance vers
* fix(la fair work week): bump schedule mini app
* chore(update yarn lock): merged dev which pulled in bad yarn.lock
* chore(attendance): Bump attendance-mini vers & delete patch
---------
Co-authored-by: Ryan Chin - r0c0i2z <Ryan.Chin@walmart.com>
Co-authored-by: Garrett Holmes - g0h00rf <Garrett.Holmes@walmart.com>
Co-authored-by: Savankumar Akbari - sakbari <sakbari@m-c02rv0v4g8wl.homeoffice.wal-mart.com>
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> |
85df9a0ac06ba0c91d7759e7ce8af5805fb4e8b5 | --- __tests__/harness/athenaQueries/getTeamsByStore.ts
@@ -1,4 +1,4 @@
-import {GetTeamsByStoreDocument} from '../../../src/queries/getTeamsbyStore';
+import {GetTeamsByStoreDocument} from '../../../src/queries/getTeamsByStore';
import moment from 'moment-timezone';
const currentDay = moment().format('YYYY-MM-DD');
--- graphql.yml
@@ -25,7 +25,7 @@ applications:
tags:
- "v1"
- name: "GetTeamsByStore"
- queryTemplate: "src/queries/getTeamsbyStore.graphql"
+ queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v1"
- name: "upsertAssociateTextPreferences"
@@ -51,7 +51,7 @@ applications:
tags:
- "v1"
- name: "GetTeamsByStore"
- queryTemplate: "src/queries/getTeamsbyStore.graphql"
+ queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v1"
- name: "upsertAssociateTextPreferences"
@@ -77,7 +77,7 @@ applications:
tags:
- "v1"
- name: "GetTeamsByStore"
- queryTemplate: "src/queries/getTeamsbyStore.graphql"
+ queryTemplate: "src/queries/getTeamsByStore.graphql"
tags:
- "v1"
- name: "upsertAssociateTextPreferences"
--- src/hooks/teams.ts
@@ -1,6 +1,6 @@
import {useSelector} from 'react-redux';
import {useGetTeamByIdQuery} from '../queries/getTeamById';
-import {useGetTeamsByStoreQuery} from '../queries/getTeamsBStore';
+import {useGetTeamsByStoreQuery} from '../queries/getTeamsByStore';
import {Associate} from '../types';
import {logger} from '../common/logger';
import {useDailyRoster} from './roster';
--- src/queries/getTeamsByStore.graphql
--- src/queries/getTeamsByStore.ts
| fix: fixed query file name | fix: fixed query file name
|
22b5473c556766e3f48ef9c457212f603d171d78 | --- packages/allspark-foundation/src/FeatureRunner/components/PluginSection.tsx
@@ -7,7 +7,6 @@ import {
CardHeader,
Heading,
} from '@walmart/gtp-shared-components';
-
import { FeatureRunnerPlugin } from '../types';
import { PluginComponentContainer } from '../navigation';
import { createScreenLink } from './FeatureSection';
@@ -34,7 +33,7 @@ export const PluginScreensCard = (props: {
<View>{screens?.map(createScreenLink)}</View>
{!screens?.length && (
<Body UNSAFE_style={styles.cardText}>
- No screens defined for this feature
+ No plugin screens defined for this runner
</Body>
)}
</>
--- packages/allspark-foundation/src/FeatureRunner/screens/SideMenu.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { StyleSheet, View } from 'react-native';
+import { StyleSheet, TouchableOpacity, View } from 'react-native';
import {
ArrowRightIcon,
Body,
@@ -45,20 +45,22 @@ const SideMenuItem = (props: SideMenuItemProps) => {
const { title, description, onPress } = props;
return (
- <ListItem
- title={title}
- trailing={
- <IconButton
- children={<ArrowRightIcon />}
- size='large'
- // @ts-ignore
- onPress={onPress}
- />
- }
- UNSAFE_style={styles.listItem}
- >
- {description}
- </ListItem>
+ <TouchableOpacity onPress={onPress}>
+ <ListItem
+ title={title}
+ trailing={
+ <IconButton
+ children={<ArrowRightIcon />}
+ size='large'
+ // @ts-ignore
+ onPress={onPress}
+ />
+ }
+ UNSAFE_style={styles.listItem}
+ >
+ {description}
+ </ListItem>
+ </TouchableOpacity>
);
};
| fix: feature runner improvements | fix: feature runner improvements
|
2feba4bcae1438d1a973f10729c0e98e7a2fb90b | --- packages/allspark-foundation/__tests__/Hub/__snapshots__/TeamOnboardingCards.test.tsx.snap
@@ -5,8 +5,8 @@ exports[`TeamOnboardingCards should render snapshot 1`] = `
contentContainerStyle={
[
{
- "flex": 1,
- "paddingBottom": 0,
+ "flexGrow": 1,
+ "paddingBottom": 100,
},
]
}
@@ -198,93 +198,6 @@ exports[`TeamOnboardingCards should render snapshot 1`] = `
</Text>
</View>
</View>
- <View
- style={
- {
- "alignItems": "center",
- "display": "flex",
- "flexDirection": "row",
- "marginBottom": 24,
- }
- }
- >
- <View
- accessibilityRole="image"
- style={
- [
- {
- "alignItems": "center",
- "backgroundColor": "#e6f1fc",
- "borderRadius": 1000,
- "height": 48,
- "justifyContent": "center",
- "width": 48,
- },
- {
- "alignSelf": "flex-start",
- "marginRight": 8,
- },
- ]
- }
- testID="onboarding-card-icon"
- >
- <Image
- accessibilityRole="image"
- source={
- {
- "testUri": "../../@walmart/gtp-shared-icons/assets/images/icons/Associate-24.png",
- }
- }
- style={
- [
- {
- "height": 24,
- "tintColor": "#0071DC",
- "width": 24,
- },
- {
- "height": 24,
- "width": 24,
- },
- ]
- }
- testID="AssociateIcon"
- />
- </View>
- <View
- style={
- {
- "display": "flex",
- "flexDirection": "column",
- "flexShrink": 1,
- }
- }
- >
- <Text
- style={
- {
- "fontFamily": "Bogle-Bold",
- "fontSize": 16,
- "fontWeight": "700",
- "lineHeight": 24,
- }
- }
- >
- Insights and recommended actions
- </Text>
- <Text
- style={
- {
- "fontFamily": "Bogle-Regular",
- "fontSize": 14,
- "lineHeight": 20,
- }
- }
- >
- Get smart guidance to help you keep your team and the shift on track
- </Text>
- </View>
- </View>
</View>
</View>
</RCTScrollView>
--- packages/allspark-foundation/__tests__/Hub/__snapshots__/TeamOnboardingScreen.test.tsx.snap
@@ -79,8 +79,8 @@ exports[`TeamOnboardingScreen renders screen correctly 1`] = `
contentContainerStyle={
[
{
- "flex": 1,
- "paddingBottom": 0,
+ "flexGrow": 1,
+ "paddingBottom": 100,
},
]
}
@@ -272,93 +272,6 @@ exports[`TeamOnboardingScreen renders screen correctly 1`] = `
</Text>
</View>
</View>
- <View
- style={
- {
- "alignItems": "center",
- "display": "flex",
- "flexDirection": "row",
- "marginBottom": 24,
- }
- }
- >
- <View
- accessibilityRole="image"
- style={
- [
- {
- "alignItems": "center",
- "backgroundColor": "#e6f1fc",
- "borderRadius": 1000,
- "height": 48,
- "justifyContent": "center",
- "width": 48,
- },
- {
- "alignSelf": "flex-start",
- "marginRight": 8,
- },
- ]
- }
- testID="onboarding-card-icon"
- >
- <Image
- accessibilityRole="image"
- source={
- {
- "testUri": "../../@walmart/gtp-shared-icons/assets/images/icons/Associate-24.png",
- }
- }
- style={
- [
- {
- "height": 24,
- "tintColor": "#0071DC",
- "width": 24,
- },
- {
- "height": 24,
- "width": 24,
- },
- ]
- }
- testID="AssociateIcon"
- />
- </View>
- <View
- style={
- {
- "display": "flex",
- "flexDirection": "column",
- "flexShrink": 1,
- }
- }
- >
- <Text
- style={
- {
- "fontFamily": "Bogle-Bold",
- "fontSize": 16,
- "fontWeight": "700",
- "lineHeight": 24,
- }
- }
- >
- Insights and recommended actions
- </Text>
- <Text
- style={
- {
- "fontFamily": "Bogle-Regular",
- "fontSize": 14,
- "lineHeight": 20,
- }
- }
- >
- Get smart guidance to help you keep your team and the shift on track
- </Text>
- </View>
- </View>
</View>
</View>
</RCTScrollView>
| fet(ui): update tests for onboarding | fet(ui): update tests for onboarding
|
a424a2aff0f5d82d79871c7e5dadcaf66a75f527 | --- package-lock.json
@@ -4886,7 +4886,9 @@
}
},
"node_modules/@walmart/config-components": {
- "version": "4.0.1",
+ "version": "4.1.0-rc.0",
+ "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.1.0-rc.0.tgz",
+ "integrity": "sha512-mAnd46Xmlwj8DgwRjeD168mhCpqNMv+Mb231DFGRfLlUw+giMArqfFdpeYkkmU/lwHxTcavlR6Ldn+8osQgQuQ==",
"dependencies": {
"reduxsauce": "^1.2.1",
"reselect": "^4.1.5"
@@ -5548,10 +5550,10 @@
"moment": "^2.24.0"
}
},
- "node_modules/@walmart/OneWalmart-MiniApp": {
- "version": "1.0.12",
- "resolved": "https://npme.walmart.com/@walmart/OneWalmart-MiniApp/-/OneWalmart-MiniApp-1.0.12.tgz",
- "integrity": "sha512-QW8uD3fnP0S1sI1SSaOOFdsRhLMrd+nV6VnCDh33s9eTHRiegyi2KYl51N6juKXI7zJXGUuehFla/IA2Ch+VWQ==",
+ "node_modules/@walmart/onewalmart-miniapp": {
+ "version": "1.0.14",
+ "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.14.tgz",
+ "integrity": "sha512-NuaNvEfhqwFQI1MXsCoTAr08TAHkBh1J9CllJxF0crH4+/LyODfFYWdjQ36Q2oq/YDPKCipFf6O3j579kJZZUQ==",
"dependencies": {
"@walmart/functional-components": "^4.0.3"
},
@@ -24807,14 +24809,29 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.6.14",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.6.14.tgz",
- "integrity": "sha512-1Jak0EwsCpGx2yYBXPEL4k+Hew8sRVozFVheoSFw/tbE38VLRGeW53M4okA55fLYouos++EzyLxPnvSwvPly0g=="
+ "version": "0.6.14"
+ },
+ "@walmart/allspark-http-client": {
+ "version": "2.4.6",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-http-client/-/allspark-http-client-2.4.6.tgz",
+ "integrity": "sha512-YwqvxVMOAhDJ+dasS1ayvWUfU1YpzuabNsBP9B7QENuuDepoTgMUDDhHSq1F7A5Iaa1aps7EqhFtGtIU/h+M0A==",
+ "requires": {
+ "@walmart/allspark-utils": "^1.4.0",
+ "axios": "^1.2.6"
+ }
},
"@walmart/allspark-neon-core": {
- "version": "0.1.31",
- "resolved": "https://npme.walmart.com/@walmart/allspark-neon-core/-/allspark-neon-core-0.1.31.tgz",
- "integrity": "sha512-SCQFcGc3IHLT8b0xFRjhSd0bidmlNBcK8/rCnKmSAXZ3Z351jbqzYsutJ/ZEiR9nlP9Qu9tAWXSos2UnYFut3w=="
+ "version": "0.1.31"
+ },
+ "@walmart/allspark-utils": {
+ "version": "1.4.0",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-utils/-/allspark-utils-1.4.0.tgz",
+ "integrity": "sha512-byzsBHutwd+FUkAHGXHpwv3FOIsJ8uCq0ZaJNXRRAc7WFA8d1bnNpMMz/wFkklmoGRyWjBXunLBwBjDf1eJ2ow==",
+ "requires": {
+ "crypto-js": "^3.3.0",
+ "lodash": "~4.17.21",
+ "uuid": "^3.3.2"
+ }
},
"@walmart/amp-mini-app": {
"version": "0.2.13"
@@ -24901,7 +24918,9 @@
}
},
"@walmart/config-components": {
- "version": "4.0.1",
+ "version": "4.1.0-rc.0",
+ "resolved": "https://npme.walmart.com/@walmart/config-components/-/config-components-4.1.0-rc.0.tgz",
+ "integrity": "sha512-mAnd46Xmlwj8DgwRjeD168mhCpqNMv+Mb231DFGRfLlUw+giMArqfFdpeYkkmU/lwHxTcavlR6Ldn+8osQgQuQ==",
"requires": {
"reduxsauce": "^1.2.1",
"reselect": "^4.1.5"
@@ -24940,9 +24959,9 @@
"version": "0.0.42"
},
"@walmart/emergency-mini-app": {
- "version": "1.17.0",
- "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.17.0.tgz",
- "integrity": "sha512-6JpT+Z3g9IhGypegtowT7Kngk4hwH2dvrpdOqqw7ybYmvrjjVdBXAyfg59sc9D986AcArTW/NLgFGMNVinnkWQ==",
+ "version": "1.19.0",
+ "resolved": "https://npme.walmart.com/@walmart/emergency-mini-app/-/emergency-mini-app-1.19.0.tgz",
+ "integrity": "sha512-ITOT8qbEI4m/5iJ4y1xBG5CR6Z9AG3T9XsmyBbeQXpViU8vGrJcQ49jeAeweVbRSn0bNFZ6c3l6Go2btAvA8wg==",
"requires": {
"@walmart/core-widget-registry": "~0.7.2"
}
@@ -25011,9 +25030,9 @@
"version": "1.2.0"
},
"@walmart/inbox-mini-app": {
- "version": "0.81.3",
- "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.3.tgz",
- "integrity": "sha512-TEp/oIF7aULPlEUHAJhS0FrYGsfLPyrv1KDYmTeEQ6H9q65A1Z1OP1fdIEN6aAzHR9IJy7kD9WtPqiKJPk9+7w==",
+ "version": "0.81.6",
+ "resolved": "https://npme.walmart.com/@walmart/inbox-mini-app/-/inbox-mini-app-0.81.6.tgz",
+ "integrity": "sha512-FDPD3nHHozoJj4i8KN2be+3B5PEO0gIOCuRHFoaji3Joukzg1GX7Q07FVwW5zLywWpiLxt6jNfGZMHhW2sqmTg==",
"requires": {
"@walmart/walmart-fiscal-week": "^0.3.6"
}
@@ -25055,10 +25074,10 @@
"@walmart/moment-walmart": {
"version": "1.0.4"
},
- "@walmart/OneWalmart-MiniApp": {
- "version": "1.0.12",
- "resolved": "https://npme.walmart.com/@walmart/OneWalmart-MiniApp/-/OneWalmart-MiniApp-1.0.12.tgz",
- "integrity": "sha512-QW8uD3fnP0S1sI1SSaOOFdsRhLMrd+nV6VnCDh33s9eTHRiegyi2KYl51N6juKXI7zJXGUuehFla/IA2Ch+VWQ==",
+ "@walmart/onewalmart-miniapp": {
+ "version": "1.0.14",
+ "resolved": "https://npme.walmart.com/@walmart/onewalmart-miniapp/-/onewalmart-miniapp-1.0.14.tgz",
+ "integrity": "sha512-NuaNvEfhqwFQI1MXsCoTAr08TAHkBh1J9CllJxF0crH4+/LyODfFYWdjQ36Q2oq/YDPKCipFf6O3j579kJZZUQ==",
"requires": {
"@walmart/functional-components": "^4.0.3"
},
| update lock file | update lock file
|
593ce7987f5018cd6a5622bc3029382848b71772 | --- package-lock.json
@@ -3272,9 +3272,9 @@
}
},
"@walmart/allspark-home-mini-app": {
- "version": "0.4.60",
- "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.60.tgz",
- "integrity": "sha512-Okcf1CauYjOD/xYJ8iADu8HfqdaPU35+Gygjy6fq3YRGIIu09NWBRjYN81BYF6rx14fXsYXEROBiNl4wKv8QmQ==",
+ "version": "0.4.61",
+ "resolved": "https://npme.walmart.com/@walmart/allspark-home-mini-app/-/allspark-home-mini-app-0.4.61.tgz",
+ "integrity": "sha512-rnQKX+PIIJXjHHcXri6cbzh4lqPzEcdUOQVNJb8Qdo317fvk4RfOfLeEihZv8L/faPT9ZobzUs3aZPF7B522AA==",
"requires": {
"moment": "^2.29.0",
"uuid": "^8.3.1"
@@ -4414,7 +4414,7 @@
},
"cache-control-esm": {
"version": "1.0.0",
- "resolved": "https://npme.walmart.com/cache-control-esm/-/cache-control-esm-1.0.0.tgz",
+ "resolved": "http://localhost:4873/cache-control-esm/-/cache-control-esm-1.0.0.tgz",
"integrity": "sha512-Fa3UV4+eIk4EOih8FTV6EEsVKO0W5XWtNs6FC3InTfVz+EjurjPfDXY5wZDo/lxjDxg5RjNcurLyxEJBcEUx9g=="
},
"caller-callsite": {
--- package.json
@@ -65,7 +65,7 @@
"@terrylinla/react-native-sketch-canvas": "^0.8.0",
"@walmart/shelfavailability-mini-app": "0.3.64",
"@walmart/allspark-health-survey-mini-app": "0.0.41",
- "@walmart/allspark-home-mini-app": "0.4.60",
+ "@walmart/allspark-home-mini-app": "0.4.61",
"@walmart/allspark-me-mini-app": "0.1.0",
"@walmart/ask-sam-mini-app": "0.30.10",
"@walmart/config-components": "^1.0.26",
| fixing home version | fixing home version
|
534500048e360ac7fd72752b2f1c6efa9d4bdc68 | --- ios/Podfile.lock
@@ -541,7 +541,7 @@ PODS:
- RCTTypeSafety
- React
- ReactCommon/turbomodule/core
- - react-native-scanner-3.0 (0.1.27):
+ - react-native-scanner-3.0 (0.1.26):
- Firebase/Analytics
- React
- ScanditBarcodeCapture (= 6.14.0)
| :reverting scanner update | :reverting scanner update
|
00ff32a014e63d005d8e3fa194d6060bfa6d5520 | --- targets/US/package.json
@@ -86,7 +86,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.24.7",
"@walmart/associate-listening-mini-app": "1.2.7",
- "@walmart/attendance-mini-app": "3.92.0",
+ "@walmart/attendance-mini-app": "3.93.0",
"@walmart/avp-feature-app": "0.10.7",
"@walmart/avp-shared-library": "0.10.1",
"@walmart/backroom-mini-app": "1.5.20",
| bump ama verion 3.93.0 | bump ama verion 3.93.0
|
ece0110734823a08b402b3fa75c28cb0ea673449 | --- core/__tests__/__mocks__/@walmart/taskit-mini-app.js
@@ -1,6 +1,8 @@
module.exports = {
__esModule: true,
- default: 'TaskItMiniApp',
+ default: {
+ buildAllScreens: () => 'TaskItMiniApp',
+ },
TaskItQuickActions: 'TaskItQuickActions',
- getTaskBadge: jest.fn(),
+ getTaskTabBarBadge: jest.fn(),
};
--- core/__tests__/home/components/TaskCard/__snapshots__/indexTest.tsx.snap
@@ -14,18 +14,16 @@ exports[`TaskCard doesnt render clock status if config value is false 1`] = `
}
testID="taskCard"
>
- <Headline
- style={
+ <Heading
+ UNSAFE_style={
{
- "color": "#2e2f32",
- "fontSize": 18,
- "lineHeight": 24,
"paddingBottom": 16,
}
}
+ size="small"
>
teams.teamTaskTitle
- </Headline>
+ </Heading>
<View
style={
{
@@ -49,18 +47,16 @@ exports[`TaskCard matches team view 1 if config version is 1 1`] = `
}
testID="taskCard"
>
- <Headline
- style={
+ <Heading
+ UNSAFE_style={
{
- "color": "#2e2f32",
- "fontSize": 18,
- "lineHeight": 24,
"paddingBottom": 16,
}
}
+ size="small"
>
teams.teamTaskTitle
- </Headline>
+ </Heading>
<TaskClockStatusTeamCard2
onRefreshEnd={[MockFunction]}
onRefreshStart={[MockFunction]}
@@ -95,18 +91,16 @@ exports[`TaskCard should render teamCard2 1`] = `
}
testID="taskCard"
>
- <Headline
- style={
+ <Heading
+ UNSAFE_style={
{
- "color": "#2e2f32",
- "fontSize": 18,
- "lineHeight": 24,
"paddingBottom": 16,
}
}
+ size="small"
>
teams.teamTaskTitle
- </Headline>
+ </Heading>
<TaskClockStatusTeamCard2
onRefreshEnd={[MockFunction]}
onRefreshStart={[MockFunction]}
@@ -141,18 +135,16 @@ exports[`TaskCard shows card if clocked in and store view of no teams 1`] = `
}
testID="taskCard"
>
- <Headline
- style={
+ <Heading
+ UNSAFE_style={
{
- "color": "#2e2f32",
- "fontSize": 18,
- "lineHeight": 24,
"paddingBottom": 16,
}
}
+ size="small"
>
teams.teamTaskTitle
- </Headline>
+ </Heading>
<View
style={
{
@@ -176,18 +168,16 @@ exports[`TaskCard shows team view if clocked in and teams present 1`] = `
}
testID="taskCard"
>
- <Headline
- style={
+ <Heading
+ UNSAFE_style={
{
- "color": "#2e2f32",
- "fontSize": 18,
- "lineHeight": 24,
"paddingBottom": 16,
}
}
+ size="small"
>
teams.teamTaskTitle
- </Headline>
+ </Heading>
<TaskClockStatusTeamCard2
onRefreshEnd={[MockFunction]}
onRefreshStart={[MockFunction]}
| fix: updated test coverage | fix: updated test coverage
|
edb9e396d4a87ad7b89f446b1800c93c4278dc74 | --- package-lock.json
@@ -3490,9 +3490,9 @@
}
},
"@walmart/ui-components": {
- "version": "1.1.40",
- "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.40.tgz",
- "integrity": "sha512-LKPrF3LoCv/R2MzUzulq3VbMJlOi/fT6S+HBx+AGsUvnsWb/wA9h6BYDeg4KRSnlj2tAQS5K8OtNJ28Z5chU6g==",
+ "version": "1.1.41",
+ "resolved": "https://npme.walmart.com/@walmart/ui-components/-/ui-components-1.1.41.tgz",
+ "integrity": "sha512-BPtnTBaUj8ckIXxqT4mVwcsZXnPl5IWhw2VY26WDmJUQSDqaclpggRU1TSZJNB8me5AZ5N3KsgzTw9Y7JhoNDA==",
"requires": {
"react-native-calendars": "1.299.0"
}
--- package.json
@@ -87,7 +87,7 @@
"@walmart/schedule-mini-app": "0.2.76",
"@walmart/settings-mini-app": "1.2.3",
"@walmart/time-clock-mini-app": "0.3.8",
- "@walmart/ui-components": "1.1.40",
+ "@walmart/ui-components": "1.1.41",
"@walmart/welcomeme-mini-app": "0.26.2",
"@walmart/wfm-ui": "^0.1.50",
"axios-cache-adapter": "2.7.3",
| ui-componets version bump | ui-componets version bump
|
b2f84e90b7f80cf0c99c3119aa3de7bcd1f95b10 | --- ios/Podfile.lock
@@ -623,9 +623,9 @@ PODS:
- JWT (~> 3.0.0-beta.12)
- React-Core
- SSZipArchive (~> 2.2.2)
- - compass-sdk-ios (0.2.13)
- - compass-sdk-rn (5.7.0):
- - compass-sdk-ios (= 0.2.13)
+ - compass-sdk-ios (0.2.18)
+ - compass-sdk-rn (5.10.0):
+ - compass-sdk-ios (= 0.2.18)
- React-Core
- DoubleConversion (1.1.6)
- EXAV (13.2.1):
@@ -1914,8 +1914,8 @@ SPEC CHECKSUMS:
BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
CodePush: dce1b253fde81078249ea9cd4b948e4ac7b761a9
- compass-sdk-ios: a27a52cd34d588b5b0b253747899401b70cc75ee
- compass-sdk-rn: 74e5d2dd3745a8985949ee2be33cba584af2732c
+ compass-sdk-ios: 8916c252253c1027bfbdfcf46f67a174e9f04263
+ compass-sdk-rn: f3d236708f3298bb86b25cbc96673b26e2f548d6
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
EXAV: f1f69397ecdcf44cfacd4ff5d338cd1b96891e87
EXConstants: f348da07e21b23d2b085e270d7b74f282df1a7d9
@@ -2072,4 +2072,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 5e9af5bffc9ed6ee9db34b0f1573f68bd919bf97
-COCOAPODS: 1.12.0
\ No newline at end of file
+COCOAPODS: 1.12.0
--- package-lock.json
@@ -41,7 +41,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.15.4",
"@walmart/attendance-mini-app": "1.62.5",
- "@walmart/compass-sdk-rn": "5.7.0",
+ "@walmart/compass-sdk-rn": "5.10.0",
"@walmart/config-components": "4.2.7",
"@walmart/copilot-mini-app": "2.3.19",
"@walmart/core-services": "~2.2.1",
@@ -8084,9 +8084,9 @@
}
},
"node_modules/@walmart/compass-sdk-rn": {
- "version": "5.7.0",
- "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.7.0.tgz",
- "integrity": "sha512-m7XUOq3dJb57gzP4XgwnpTo73eGbitHzFdGcZor7qEe3iqpjZeRUvE34oFHb/lO1tbAhfN8jd/AEZSrSe56xaA==",
+ "version": "5.10.0",
+ "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.10.0.tgz",
+ "integrity": "sha512-G8QS5o3rhhH6Bf0uSd5Px9JKSXD8mJfNIddUjX+uJI4nQs9BBjB58/WceSivG2X6nV02sQyt5RH6EWJfhFGvow==",
"license": "MIT",
"peerDependencies": {
"react": "*",
@@ -34207,9 +34207,9 @@
}
},
"@walmart/compass-sdk-rn": {
- "version": "5.7.0",
- "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.7.0.tgz",
- "integrity": "sha512-m7XUOq3dJb57gzP4XgwnpTo73eGbitHzFdGcZor7qEe3iqpjZeRUvE34oFHb/lO1tbAhfN8jd/AEZSrSe56xaA=="
+ "version": "5.10.0",
+ "resolved": "https://npme.walmart.com/@walmart/compass-sdk-rn/-/compass-sdk-rn-5.10.0.tgz",
+ "integrity": "sha512-G8QS5o3rhhH6Bf0uSd5Px9JKSXD8mJfNIddUjX+uJI4nQs9BBjB58/WceSivG2X6nV02sQyt5RH6EWJfhFGvow=="
},
"@walmart/config-components": {
"version": "4.2.7",
--- package.json
@@ -82,7 +82,7 @@
"@walmart/ask-sam-chat-components": "^0.2.7",
"@walmart/ask-sam-mini-app": "1.15.4",
"@walmart/attendance-mini-app": "1.62.5",
- "@walmart/compass-sdk-rn": "5.7.0",
+ "@walmart/compass-sdk-rn": "5.10.0",
"@walmart/config-components": "4.2.7",
"@walmart/copilot-mini-app": "2.3.19",
"@walmart/core-services": "~2.2.1",
| FixiT-Compass fix for External BETA build | FixiT-Compass fix for External BETA build
|
7cd89eb89d3305c7acacd638a1488264db10b145 | --- jest.config.js
@@ -11,7 +11,7 @@ module.exports = {
global: {
statements: 18,
branches: 8,
- functions: 12,
+ functions: 11,
lines: 18,
},
},
--- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.8",
+ "version": "2.0.11",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/texting-mini-app",
- "version": "2.0.8",
+ "version": "2.0.11",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.8.4",
--- jest.config.js
@@ -11,7 +11,7 @@ module.exports = {
global: {
statements: 18,
branches: 8,
- functions: 12,
+ functions: 11,
lines: 18,
},
},
--- package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@walmart/texting-mini-app",
- "version": "2.0.8",
+ "version": "2.0.11",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@walmart/texting-mini-app",
- "version": "2.0.8",
+ "version": "2.0.11",
"hasInstallScript": true,
"devDependencies": {
"@babel/core": "^7.8.4",
| bumping down coverage threshold | bumping down coverage threshold
|
717e546e771765295dd059e6608029e757f87840 | --- android/app/src/main/res/raw/walmart_try_again_01.m4a
Binary files /dev/null and b/android/app/src/main/res/raw/walmart_try_again_01.m4a differ
--- ios/AllSpark.xcodeproj/project.pbxproj
@@ -33,6 +33,7 @@
A37C73092A1BDF8EB0453A46 /* libPods-AllSpark.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FAAB70403D4BCE44972E10F4 /* libPods-AllSpark.a */; };
AABEB98F27F3A824002C5BFB /* walmart_achievement_01.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = AABEB98E27F3A824002C5BFB /* walmart_achievement_01.mp3 */; };
CE272C7545942CCC571A271E /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAD96B05EA590DEDF555D52B /* ExpoModulesProvider.swift */; };
+ E404E3D82B472E5E0085E38B /* walmart_try_again_01.m4a in Resources */ = {isa = PBXBuildFile; fileRef = E404E3D72B472E5E0085E38B /* walmart_try_again_01.m4a */; };
E9AD4B182679309900D8DDD4 /* clockin.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B152679309900D8DDD4 /* clockin.mp3 */; };
E9AD4B192679309900D8DDD4 /* clockout.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B162679309900D8DDD4 /* clockout.mp3 */; };
E9AD4B1A2679309900D8DDD4 /* clockfailure.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */; };
@@ -69,6 +70,7 @@
CD1FCE7B27B747FE00A993B8 /* realm-js-ios.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "realm-js-ios.xcframework"; path = "../node_modules/realm/react-native/ios/realm-js-ios.xcframework"; sourceTree = "<group>"; };
CD1FCE7D27B747FE00A993B8 /* realm-monorepo.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = "realm-monorepo.xcframework"; path = "Pods/Realm/core/realm-monorepo.xcframework"; sourceTree = "<group>"; };
D994751F557438D6B85DBCC2 /* Pods-AllSpark.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AllSpark.debug.xcconfig"; path = "Target Support Files/Pods-AllSpark/Pods-AllSpark.debug.xcconfig"; sourceTree = "<group>"; };
+ E404E3D72B472E5E0085E38B /* walmart_try_again_01.m4a */ = {isa = PBXFileReference; lastKnownFileType = file; path = walmart_try_again_01.m4a; sourceTree = "<group>"; };
E9AD4B152679309900D8DDD4 /* clockin.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockin.mp3; sourceTree = "<group>"; };
E9AD4B162679309900D8DDD4 /* clockout.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockout.mp3; sourceTree = "<group>"; };
E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = clockfailure.mp3; sourceTree = "<group>"; };
@@ -133,6 +135,7 @@
65E7F221298D9CDC00DD5680 /* beep_confirmation.mp3 */,
F36CF5DF28A591F200C0FB4F /* beep_error.mp3 */,
AABEB98E27F3A824002C5BFB /* walmart_achievement_01.mp3 */,
+ E404E3D72B472E5E0085E38B /* walmart_try_again_01.m4a */,
E9AD4B172679309900D8DDD4 /* clockfailure.mp3 */,
E9AD4B152679309900D8DDD4 /* clockin.mp3 */,
E9AD4B162679309900D8DDD4 /* clockout.mp3 */,
@@ -337,6 +340,7 @@
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
31E17244255A601A0039C18F /* Bogle-BlackItalic.otf in Resources */,
E9AD4B1A2679309900D8DDD4 /* clockfailure.mp3 in Resources */,
+ E404E3D82B472E5E0085E38B /* walmart_try_again_01.m4a in Resources */,
9D01483725F17B3100A8E049 /* LaunchScreen-Prod.storyboard in Resources */,
31E17246255A601A0039C18F /* Bogle-BoldItalic.otf in Resources */,
31E17245255A601A0039C18F /* Bogle-Bold.otf in Resources */,
--- ios/AllSpark.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:">
+ </FileRef>
+</Workspace>
--- ios/walmart_try_again_01.m4a
Binary files /dev/null and b/ios/walmart_try_again_01.m4a differ
| update sound files | update sound files
|
d58890c71605741cae401b20d98c9cce53966b3e | --- package-lock.json
@@ -4480,9 +4480,9 @@
"integrity": "sha512-372RXILEa5RJMG76+n/ouWCzcYShiOFJIvf/zDKc4D44Fw6WqbuubQwu7rMhO1uQSGjlh3T3rvgVZOCXS+dr4g=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.4.26",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.26.tgz",
- "integrity": "sha512-oS7KiG1RLfeoRm3mzlxamW7+bqz9Og59cVNweseaHJKGJ9MDs9G8w9GTTytnCPBC+15y4sqMArjN0XcYEZ6QRQ==",
+ "version": "0.4.27",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.4.27.tgz",
+ "integrity": "sha512-k6bYW7dlq7w4CV+WzufcHP1B2OYB7BGjTf02eXKkw+nqVYowkKlyFAn9iP4NLEWH9KMC3aBowS/eBGnNdiiQHA==",
"requires": {
"@react-native-community/datetimepicker": "3.0.9",
"@react-native-picker/picker": "^1.16.1",
@@ -17276,9 +17276,9 @@
"integrity": "sha512-PKaL0MFy+VjTT4wcx/v90BlvlRXgdWGUU8Sz/760A2Esj175A8w/vFQCtZhUer5FVxmpYVKk7nHzoewii4ygRw=="
},
"react-query": {
- "version": "3.34.16",
- "resolved": "https://npme.walmart.com/react-query/-/react-query-3.34.16.tgz",
- "integrity": "sha512-7FvBvjgEM4YQ8nPfmAr+lJfbW95uyW/TVjFoi2GwCkF33/S8ajx45tuPHPFGWs4qYwPy1mzwxD4IQfpUDrefNQ==",
+ "version": "3.34.17",
+ "resolved": "https://npme.walmart.com/react-query/-/react-query-3.34.17.tgz",
+ "integrity": "sha512-59aJeYupEIlw7U7iC8EzgpLyrfZ3GpAf3SCyZBnpsskJjaq0WltuLkezAw0gvJud9Qw6/AWtNPr73zryJXWeZA==",
"requires": {
"@babel/runtime": "^7.5.5",
"broadcast-channel": "^3.4.1",
--- package.json
@@ -103,7 +103,7 @@
"@walmart/taskit-mini-app": "0.150.0-rc.0",
"@walmart/shelfavailability-mini-app": "0.8.0",
"@walmart/ui-components": "v1.3.0-rc.8",
- "@walmart/time-clock-mini-app": "0.4.26",
+ "@walmart/time-clock-mini-app": "0.4.27",
"@walmart/welcomeme-mini-app": "0.42.0",
"@walmart/wfm-ui": "0.2.8",
"axios-cache-adapter": "2.7.3",
| Update time clock mini app | Update time clock mini app |
e1c3eb47b2eaee15c6b8eabe29f4863eacfb8de6 | --- package-lock.json
@@ -3565,9 +3565,9 @@
"integrity": "sha512-DnuWICgwXUEwBTmZlx+iEFmh1t7rtQLQICQ7RVYpbHABQAQDFMRUwhyBPCoZT6DVGCkDGhXV5HcsCUFMs8UZsQ=="
},
"@walmart/shelfavailability-mini-app": {
- "version": "0.3.99",
- "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.3.99.tgz",
- "integrity": "sha512-hw/4Cry8f186m5QFxmv0u1/ayohKhmIUaUU4IUu9VTCzMUqhoV3T2AYsbfLIbQaiBcn+X5F8E/AApGJiTDkiBw==",
+ "version": "0.4.5-SNAPSHOT.1",
+ "resolved": "https://npme.walmart.com/@walmart/shelfavailability-mini-app/-/shelfavailability-mini-app-0.4.5-SNAPSHOT.1.tgz",
+ "integrity": "sha512-Bh4xWy9QFA5zTT3F4GfJL9IknAsomZGPPmEheXJx/FW8drZUtGVLom/aJ8dpyWWuvWmV9wbiewXuG5O1tnJlPA==",
"requires": {
"@types/uuid": "^8.3.0",
"@types/xdate": "^0.8.31",
@@ -3577,12 +3577,11 @@
},
"dependencies": {
"apisauce": {
- "version": "2.1.2",
- "resolved": "https://npme.walmart.com/apisauce/-/apisauce-2.1.2.tgz",
- "integrity": "sha512-2/9tz9uR/56UfZpzeMkGyX33tNjYpBNjhwvT/yyYIItulboxzTqZTD3F3Q7WJVXl8fvX6PZDMaxoFH4r/sXkEA==",
+ "version": "2.1.5",
+ "resolved": "https://npme.walmart.com/apisauce/-/apisauce-2.1.5.tgz",
+ "integrity": "sha512-bkMlz0ZUnyS8vDigej9UBYo5dne9/bQrkgIiIkGaiDHF6e5OxhYRLJDYu65V/Ox86tmWVwepIntAoTmk4Db0Hg==",
"requires": {
- "axios": "^0.21.4",
- "ramda": "^0.25.0"
+ "axios": "^0.21.4"
}
},
"axios": {
@@ -3594,9 +3593,9 @@
}
},
"follow-redirects": {
- "version": "1.14.5",
- "resolved": "https://npme.walmart.com/follow-redirects/-/follow-redirects-1.14.5.tgz",
- "integrity": "sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA=="
+ "version": "1.14.6",
+ "resolved": "https://npme.walmart.com/follow-redirects/-/follow-redirects-1.14.6.tgz",
+ "integrity": "sha512-fhUl5EwSJbbl8AR+uYL2KQDxLkdSjZGR36xy46AO7cOMTrCMON6Sa28FmAnC2tRTDbd/Uuzz3aJBv7EBN7JH8A=="
}
}
},
--- package.json
@@ -1,6 +1,6 @@
{
"name": "allspark-main",
- "version": "0.4.5-SNAPSHOT.1",
+ "version": "1.4.0",
"private": true,
"scripts": {
"firebase:dev": "cp ./ios/GoogleService-Info-Dev.plist ./ios/GoogleService-Info.plist && cp ./android/app/google-services-dev.json ./android/app/google-services.json",
@@ -96,7 +96,7 @@
"@walmart/redux-store": "^1.0.15",
"@walmart/schedule-mini-app": "0.4.4",
"@walmart/settings-mini-app": "1.3.8",
- "@walmart/shelfavailability-mini-app": "0.3.99",
+ "@walmart/shelfavailability-mini-app": "0.4.5-SNAPSHOT.1",
"@walmart/time-clock-mini-app": "0.4.21",
"@walmart/ui-components": "1.1.62",
"@walmart/welcomeme-mini-app": "0.30.4",
| Revert version | Revert version
|
65ac4c899c96f774a8b338c51de5fbf9dfdef3d8 | --- package-lock.json
@@ -46,12 +46,12 @@
"@walmart/counts-component-miniapp": "0.0.42",
"@walmart/emergency-mini-app": "1.17.0",
"@walmart/exception-mini-app": "1.0.14",
- "@walmart/facilities-management-miniapp": "0.5.14",
+ "@walmart/facilities-management-miniapp": "0.5.15",
"@walmart/feedback-all-spark-miniapp": "0.9.9",
"@walmart/financial-wellbeing-feature-app": "1.0.64",
"@walmart/functional-components": "2.0.6",
"@walmart/gta-react-native-calendars": "0.0.15",
- "@walmart/gtp-shared-components": "^2.0.0",
+ "@walmart/gtp-shared-components": "^2.0.2",
"@walmart/impersonation-mini-app": "1.10.0",
"@walmart/ims-print-services-ui": "1.2.0",
"@walmart/inbox-mini-app": "0.81.3",
@@ -5082,9 +5082,9 @@
}
},
"node_modules/@walmart/facilities-management-miniapp": {
- "version": "0.5.14",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.14.tgz",
- "integrity": "sha512-YPMwvUKJSDF/3j/9KCnOqnCB+kvJQSSnLUIahnOWB0RkJRPOZbO/7BdRibtK3OzDCLi/+IUGXrXhu072QLyv7A==",
+ "version": "0.5.15",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.15.tgz",
+ "integrity": "sha512-NsicPDhDZADmBReb5XFFlwPwC5QCGDhtVF1UckiNPFXuG9Own5EWVnn5j69NmRc5P8AO31/6JgHypN9dJjmybA==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-community/async-storage": "^1.12.1",
@@ -5240,9 +5240,9 @@
}
},
"node_modules/@walmart/gtp-shared-components": {
- "version": "2.0.0",
- "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.0.tgz",
- "integrity": "sha512-8uSt2lOq4HaZNUu12cO0zspwJMg2yFjaa8OMpxUytA9n98CngqAKYUome+gALSHQbuUVFrfFhQ0oOZHzJ2388w==",
+ "version": "2.0.2",
+ "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.2.tgz",
+ "integrity": "sha512-nT2gYK4BKZ7fzlIJZYGQJ7FoQGdOPJa7TyFL1F/9qIGX42Ar+R4bK0SSN0Ha3PHdKnP5x0R3OsB8KrVTgrQDAg==",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
@@ -25164,9 +25164,9 @@
"integrity": "sha512-SaexB86EUhjf0oQiOc3RbsEMz9TsSM3av62l46CVznEOOVGmdcrm3naA37GxXSX5LeD0Brft2bWJ5xJbRkqwKg=="
},
"@walmart/facilities-management-miniapp": {
- "version": "0.5.14",
- "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.14.tgz",
- "integrity": "sha512-YPMwvUKJSDF/3j/9KCnOqnCB+kvJQSSnLUIahnOWB0RkJRPOZbO/7BdRibtK3OzDCLi/+IUGXrXhu072QLyv7A=="
+ "version": "0.5.15",
+ "resolved": "https://npme.walmart.com/@walmart/facilities-management-miniapp/-/facilities-management-miniapp-0.5.15.tgz",
+ "integrity": "sha512-NsicPDhDZADmBReb5XFFlwPwC5QCGDhtVF1UckiNPFXuG9Own5EWVnn5j69NmRc5P8AO31/6JgHypN9dJjmybA=="
},
"@walmart/feedback-all-spark-miniapp": {
"version": "0.9.9",
@@ -25200,9 +25200,9 @@
}
},
"@walmart/gtp-shared-components": {
- "version": "2.0.0",
- "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.0.tgz",
- "integrity": "sha512-8uSt2lOq4HaZNUu12cO0zspwJMg2yFjaa8OMpxUytA9n98CngqAKYUome+gALSHQbuUVFrfFhQ0oOZHzJ2388w==",
+ "version": "2.0.2",
+ "resolved": "https://npme.walmart.com/@walmart/gtp-shared-components/-/gtp-shared-components-2.0.2.tgz",
+ "integrity": "sha512-nT2gYK4BKZ7fzlIJZYGQJ7FoQGdOPJa7TyFL1F/9qIGX42Ar+R4bK0SSN0Ha3PHdKnP5x0R3OsB8KrVTgrQDAg==",
"requires": {
"@livingdesign/tokens": "0.61.0",
"@walmart/gtp-shared-icons": "1.0.5",
--- patches/@walmart+facilities-management-miniapp+0.5.15.patch
@@ -0,0 +1,28 @@
+diff --git a/node_modules/@walmart/facilities-management-miniapp/dist/utils/wmNotificationsListener.js b/node_modules/@walmart/facilities-management-miniapp/dist/utils/wmNotificationsListener.js
+index 51e43a3..92e9cd1 100644
+--- a/node_modules/@walmart/facilities-management-miniapp/dist/utils/wmNotificationsListener.js
++++ b/node_modules/@walmart/facilities-management-miniapp/dist/utils/wmNotificationsListener.js
+@@ -5,6 +5,7 @@ import { APP_NAME, EVENT_NAME } from '../logs/logConstans';
+ import { navigate } from '@walmart/react-native-shared-navigation';
+ import { Routes } from '../NavigationStack/Routes';
+ import { NOTIFICATION_TYPE } from '../constants/common';
++var taskIt = require('@walmart/taskit-mini-app');
+ export var initWmNotificationsListener = function () {
+ var notificationForegroundHandler = function (event) {
+ if (event) {
+@@ -46,6 +47,7 @@ export var initWmNotificationsListener = function () {
+ var details = typeof customData_1.task_details === 'string'
+ ? JSON.parse(customData_1.task_details)
+ : customData_1.task_details;
++ taskIt === null || taskIt === void 0 ? void 0 : taskIt.taskItNotificationHandler(customData_1);
+ typeof navigate === 'function' &&
+ navigate('taskit', {
+ screen_id: 'refrigerator.details',
+@@ -94,6 +96,7 @@ export var initWmNotificationsListener = function () {
+ ? JSON.parse(customData.task_details)
+ : customData.task_details;
+ if (customData.DM_API_SUCCESS_FLAG === 'true') {
++ taskIt === null || taskIt === void 0 ? void 0 : taskIt.taskItNotificationHandler(customData);
+ typeof navigate === 'function' &&
+ navigate('taskit', {
+ screen_id: 'refrigerator.details',
\ No newline at end of file
| Updated package-lock and patch name | Updated package-lock and patch name
|
8cf7dfa81edfad5a3f5556fa75c9146e530d29b3 | --- core/__tests__/home/services/HomeApi/indexTest.ts
@@ -145,15 +145,15 @@ describe('fetchCelebrationData', () => {
const result = await fetchCelebrationData('someValidQuery');
expect(result).toEqual('Valid result');
});
- it('should throw error when there the response is undefined', async () => {
+ it('should throw error when underlying APIs fail', async () => {
AllsparkHttpClient.createFeatureClient('home', {
timeout: 10000,
- }).get.mockResolvedValueOnce(undefined);
+ }).get.mockRejectedValueOnce(new Error('Cannot read properties of null (reading \'data\')'));
try {
await fetchCelebrationData('someValidQuery');
} catch (e) {
expect(logServiceError).toHaveBeenCalled();
- expect(e.toString()).toEqual("TypeError: Cannot read properties of undefined (reading 'data')");
+ expect(e.toString()).toEqual("Error: Cannot read properties of null (reading 'data')");
}
});
});
@@ -174,15 +174,15 @@ describe('fetchTeamClockStatusData', () => {
);
expect(result).toEqual('Valid result');
});
- it('should throw error when there the response is undefined', async () => {
+ it('should throw error when underlying APIs fail', async () => {
AllsparkHttpClient.createFeatureClient('home', {
timeout: 1000,
- }).post.mockResolvedValueOnce(undefined);
+ }).post.mockRejectedValueOnce(new Error('Cannot read properties of null (reading \'data\')'));
try {
await fetchTeamClockStatusData('someValidQuery', kQueryGraphVariables);
} catch (e) {
expect(logServiceError).toHaveBeenCalled();
- expect(e.toString()).toEqual("TypeError: Cannot read properties of undefined (reading 'data')");
+ expect(e.toString()).toEqual("Error: Cannot read properties of null (reading 'data')");
}
});
});
@@ -202,15 +202,15 @@ describe('fetchStoreClockStatusData', () => {
);
expect(result).toEqual('Valid result');
});
- it('should throw error when there the response is undefined', async () => {
+ it('should throw error when underlying APIs fail', async () => {
AllsparkHttpClient.createFeatureClient('home', {
timeout: 3000,
- }).post.mockResolvedValueOnce(undefined);
+ }).post.mockRejectedValueOnce(new Error('Cannot read properties of null (reading \'data\')'));
try {
await fetchStoreClockStatusData('someValidQuery', kQueryGraphVariables);
} catch (e) {
expect(logServiceError).toHaveBeenCalled();
- expect(e.toString()).toEqual("TypeError: Cannot read properties of undefined (reading 'data')");
+ expect(e.toString()).toEqual("Error: Cannot read properties of null (reading 'data')");
}
});
});
| code cleanup | code cleanup
|
539dd01980aa8cc04487167edde3b141d5ddc456 | --- package.json
@@ -90,7 +90,7 @@
"@walmart/allspark-utils": "7.1.0",
"@walmart/amp-mini-app": "1.2.10",
"@walmart/ask-sam-chat-components": "^0.2.7",
- "@walmart/ask-sam-mini-app": "1.35.17",
+ "@walmart/ask-sam-mini-app": "1.35.20",
"@walmart/associate-exp-hub-hub": "2.17.0",
"@walmart/associate-exp-hub-team-switcher": "2.19.0",
"@walmart/associate-listening-mini-app": "1.2.59",
--- yarn.lock
@@ -7307,9 +7307,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/ask-sam-mini-app@npm:1.35.17":
- version: 1.35.17
- resolution: "@walmart/ask-sam-mini-app@npm:1.35.17::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fask-sam-mini-app%2F-%2F%40walmart%2Fask-sam-mini-app-1.35.17.tgz"
+"@walmart/ask-sam-mini-app@npm:1.35.20":
+ version: 1.35.20
+ resolution: "@walmart/ask-sam-mini-app@npm:1.35.20::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fask-sam-mini-app%2F-%2F%40walmart%2Fask-sam-mini-app-1.35.20.tgz"
dependencies:
apisauce: "npm:^1.1.2"
numeral: "npm:^2.0.6"
@@ -7322,7 +7322,7 @@ __metadata:
"@terrylinla/react-native-sketch-canvas": "*"
"@walmart/allspark-foundation": "*"
"@walmart/ask-sam-chat-components": ">=0.2.9"
- "@walmart/gtp-shared-components": ">=2.2.1"
+ "@walmart/gtp-shared-components-3": "*"
"@walmart/schedule-mini-app": "*"
"@walmart/ui-components": ">=1.5"
"@walmart/wfm-ui": "*"
@@ -7351,7 +7351,7 @@ __metadata:
react-native-wm-voice-text: ">=0.3"
reselect: ">=4"
victory-native: ">=36.5"
- checksum: 10c0/cd86640c51727df2ae7b9e0818707450be9e565e99b99913a9ee2b952c24b9e3270dbf5c6639ca151a5ba5d207c19cb29f4a8393e5410956e2eb3c474422429b
+ checksum: 10c0/80444d44d30647f8a92a639c6e2cf9b25f322f1179a9279b45da5ca7ceb985812520d70744f3cef4cb1228774b5fc5c748e9518cde43698e8f437fb00d1c0140
languageName: node
linkType: hard
@@ -8421,7 +8421,7 @@ __metadata:
"@walmart/allspark-utils": "npm:7.1.0"
"@walmart/amp-mini-app": "npm:1.2.10"
"@walmart/ask-sam-chat-components": "npm:^0.2.7"
- "@walmart/ask-sam-mini-app": "npm:1.35.17"
+ "@walmart/ask-sam-mini-app": "npm:1.35.20"
"@walmart/associate-exp-hub-hub": "npm:2.17.0"
"@walmart/associate-exp-hub-team-switcher": "npm:2.19.0"
"@walmart/associate-listening-mini-app": "npm:1.2.59"
| chore(ask-sam-mini-app): SMBLV-9326 LD 3.5 Migration (#5167) | chore(ask-sam-mini-app): SMBLV-9326 LD 3.5 Migration (#5167)
Co-authored-by: Sowmya Munaganuri <Sowmya.Munaganuri+walmart@walmart.com>
Co-authored-by: Maksym Novakh - m0n09mr <Maksym.Novakh0@walmart.com> |
7a435cb7cace549c8aa088b26d78e276a007dcdb | --- targets/US/android/app/build.gradle
@@ -190,11 +190,6 @@ android {
// @customization - Dynamic mini app features
dynamicFeatures.add(':compass_dynamic_module')
dynamicFeatures.add(':webex_dynamic_module')
-
- // Block to prevent duplicate classes issues we observed
- packagingOptions {
- exclude("META-INF/INDEX.LIST")
- }
configurations {
all {
@@ -273,6 +268,7 @@ android {
exclude 'META-INF/gradle/incremental.annotation.processors'
//ARMV5 is no longer supported. The library that includes this so file is old.
exclude 'lib/armeabi/libucrop.so'
+ exclude("META-INF/INDEX.LIST")
}
// @customization - compass specific okhttp fix
| Scanner 3.0 - Moved INDEX.LIST into packaging options | Scanner 3.0 - Moved INDEX.LIST into packaging options
|
4f7a34656ab906bfea33acdcdace2130153487db | --- package-lock.json
@@ -3339,9 +3339,9 @@
"integrity": "sha512-KDL4QbdhuOnIeMs4dIZ9wbDdj2wO2VBR4aYaJ8CxKW+xrZA13k0PzpAiZiH6BcP3gxr10DvdRIg6lcJuLHJ8Dw=="
},
"@walmart/functional-components": {
- "version": "1.0.33",
- "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-1.0.33.tgz",
- "integrity": "sha512-uTot5wLaLCYn+ymzpT2pKLH4xitmyjNVPYam/LtrAMbZRzIDnxFmBCQ0kv9h/vfNGpdvGnQJanG8mVSXDgFc7A==",
+ "version": "1.0.34",
+ "resolved": "https://npme.walmart.com/@walmart/functional-components/-/functional-components-1.0.34.tgz",
+ "integrity": "sha512-v9qn89YGcXvSluRUSXyhFOGL9p49w4DCR3Kt6SbhRzvvNPRB7xtNhe5HpkLZVlbq+WJA0Kz97TPCNGi+aK8Svg==",
"requires": {
"axios": "^0.19.2"
}
--- package.json
@@ -78,7 +78,7 @@
"@walmart/counts-component-miniapp": "0.0.22",
"@walmart/exception-mini-app": "0.37.2",
"@walmart/feedback-all-spark-miniapp": "0.0.59",
- "@walmart/functional-components": "1.0.33",
+ "@walmart/functional-components": "1.0.34",
"@walmart/gta-react-native-calendars": "0.0.15",
"@walmart/gtp-shared-components": "^1.2.0",
"@walmart/impersonation-mini-app": "1.0.20",
| Added additional log field to identify mini apps | Added additional log field to identify mini apps
|
a72faa3a48e1f9b8fd1ea3da68e1285146b7776e | --- __tests__/navigation/AssociateHallwayNav/Tabs/MainTabsNavTest.tsx
@@ -268,8 +268,6 @@ test('TabListeners', () => {
describe('MainTabsNav', () => {
const config = {enabled: true};
- // (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]);
- // (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([0]);
mockUseSelector.mockReturnValueOnce(0); // inboxCount Badge
mockUseSelector.mockReturnValueOnce({
home: config,
@@ -287,8 +285,6 @@ describe('MainTabsNav', () => {
});
it('matches snapshot with badges', () => {
- // (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([2]);
- // (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([2]);
mockUseSelector.mockReturnValueOnce(2); // inboxCount Badge
mockUseSelector.mockReturnValueOnce({
home: config,
@@ -304,8 +300,6 @@ describe('MainTabsNav', () => {
});
it('matches snapshot with inbox shown and badges', () => {
- // (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([2]);
- // (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([2]);
mockUseSelector.mockReturnValueOnce(2);
mockUseSelector.mockReturnValueOnce({
home: config,
@@ -322,8 +316,6 @@ describe('MainTabsNav', () => {
it('matches snapshot when disabled from config', () => {
const disabledConfig = {enabled: false};
- // (Hooks.useVMBadgesCount as jest.Mock).mockReturnValueOnce([0]);
- // (Hooks.useTextBadgesCount as jest.Mock).mockReturnValueOnce([0]);
mockUseSelector.mockReturnValueOnce(0);
mockUseSelector.mockReturnValueOnce({
home: disabledConfig,
| remove commented code | remove commented code
|
2f36b59a41c7d4497af2c3e88f6dd55dcb77d3cd | --- .looper.multibranch.yml
@@ -47,6 +47,7 @@ envs:
global:
variables:
LOOPER_NODES: "((stable_osx||xcode12.5)&&!MAC-LAB-MINI36&&!MAC-LAB-MINI32&&!MAC-LAB-MINI07&&!MAC-DRFQLAB-MINI43)"
+ GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}"
TMPDIR: /tmp
| Added GitHub token | Added GitHub token
|
e2dbddd463a8057f74dd1740977d6b7829793ab4 | --- package-lock.json
@@ -4477,7 +4477,7 @@
"@walmart/taskit-mini-app": {
"version": "0.146.0-rc.2",
"resolved": "https://npme.walmart.com/@walmart/taskit-mini-app/-/taskit-mini-app-0.146.0-rc.2.tgz",
- "integrity": "sha512-CnclOd9H0lwjbaPCLEF+prM/ycJ9Aaruxa7C6FxXXqayWOyW/Jk0WEa0OwUPU3wC8IU/wL4+2IHDojut9RJdyQ=="
+ "integrity": "sha512-Yl6jOP8cHqbCM0+zjup/pq5v1Xq8vK0MO3SgCGpQC0m8jtFcbqznYHoqmyBKSypmsGJEw8QuDMg/O4KBzl4VHA=="
},
"@walmart/time-clock-mini-app": {
"version": "0.4.26",
| new package-json | new package-json
|
0d74711d0d6cb24e091bb8f3029ae7b37a4eb7b5 | --- core/jest.config.js
@@ -25,4 +25,8 @@ module.exports = {
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!(react-native|@walmart/core-utils|@walmart/allspark-foundation|@walmart/allspark-utils|@walmart/allspark-http-client|@walmart/core-services|@walmart/gtp-shared-components|@walmart/gtp-shared-icons|@react-native-community/picker|@walmart/redux-store|@react-native-firebase|axios|react-native-gesture-handler|@react-native|@living-design|@react-native-community/datetimepicker|@testing-library|jest-diff|jest-matcher-utils|@walmart/learning-mini-app|@walmart/wmconnect-mini-app|nanoid|react-native-reanimated|react-native-flipper|react-native-modal|react-native-animatable)/)',
],
+ coveragePathIgnorePatterns: [
+ '^.+\\.(png)$',
+ '<rootDir>/__tests__'
+ ]
};
| added png and tests to code coverage ignore path | added png and tests to code coverage ignore path
|
de5209a49552c32e8199c9132e525b3a52ebdda2 | --- src/screens/RosterDetailScreen/SupplyChainRosterDetailScreen/useSupplyChainRosterDetails.ts
@@ -1,14 +1,14 @@
-import { useCallback, useState } from "react";
-import { RosterDetailScreenProps } from "../types";
+import {useCallback, useState} from 'react';
+import {RosterDetailScreenProps} from '../types';
import {
TOTAL_SITE_TEAM_ID,
TOTAL_SITE_TEAM_LABEL,
SC_ManagerExperienceSelectors as supplyChainSelector,
-} from "@walmart/allspark-foundation-hub";
-import { useGetViewersShiftData } from "../../../hooks";
-import { useSelector } from "react-redux";
-import { FilterValue } from "../../../components/FilterChip/types";
-import { useRosterDetailsUtils } from "../useRosterDetailsUtils";
+} from '@walmart/allspark-foundation-hub';
+import {useGetViewersShiftData} from '../../../hooks';
+import {useSelector} from 'react-redux';
+import {FilterValue} from '../../../components/FilterChip/types';
+import {useRosterDetailsUtils} from '../useRosterDetailsUtils';
export const useSupplyChainRosterDetails = ({
route,
@@ -38,7 +38,7 @@ export const useSupplyChainRosterDetails = ({
const [shiftSelected, setSelectedShift] = useState<string | undefined>(
undefined
);
- const [searchInput, setSearchInput] = useState("");
+ const [searchInput, setSearchInput] = useState('');
const [teamState, setTeamState] = useState<{
teamLabel: string | null;
teamIds: string[];
@@ -55,8 +55,8 @@ export const useSupplyChainRosterDetails = ({
shiftIds: shift?.length
? shift
: selectedShift?.length
- ? selectedShift
- : [loggedInUserShift as string],
+ ? selectedShift
+ : [loggedInUserShift as string],
teamLabel: [defaultTeamLabel as string],
teamIds: selectedTeamIds?.length ? selectedTeamIds : defaultTeamIds,
});
@@ -68,17 +68,17 @@ export const useSupplyChainRosterDetails = ({
if (teamState.teamLabel === TOTAL_SITE_TEAM_LABEL) {
return {
header: siteTranslationContext,
- subText: "",
+ subText: '',
};
} else if (isPrimaryTeam) {
return {
- header: t("rosterScreen.primaryTeamRosterDetailHeader"),
- subText: t("rosterScreen.primaryTeamRosterDetailSubText"),
+ header: t('rosterScreen.primaryTeamRosterDetailHeader'),
+ subText: t('rosterScreen.primaryTeamRosterDetailSubText'),
};
} else {
return {
- header: currentTeam?.teamName ?? "",
- subText: "",
+ header: currentTeam?.teamName ?? '',
+ subText: '',
};
}
},
@@ -96,17 +96,17 @@ export const useSupplyChainRosterDetails = ({
} else if (teamLabel) {
return teamLabel;
}
- return t("rosterScreen.teamWorkgroup.myTeam", {
- defaultValue: "My team",
- lng: "en-US",
+ return t('rosterScreen.teamWorkgroup.myTeam', {
+ defaultValue: 'My team',
+ lng: 'en-US',
});
};
return isSalariedOrLead
? getTeamLabelOrDefault(
- switcherTeamState.teamIds,
- switcherTeamState?.teamLabel
- )
+ switcherTeamState.teamIds,
+ switcherTeamState?.teamLabel
+ )
: getTeamLabelOrDefault(teamState.teamIds, teamState?.teamLabel);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [teamState.teamIds, teamState.teamLabel, switcherTeamState]);
@@ -126,8 +126,8 @@ export const useSupplyChainRosterDetails = ({
shift: shift?.length
? shift
: selectedShift?.length
- ? selectedShift
- : [loggedInUserShift],
+ ? selectedShift
+ : [loggedInUserShift],
getSavedSiteTeams,
selectedFilter,
setSelectedFilter,
| fix(ui): update lint errors | fix(ui): update lint errors
|
c82102c1ce414fab3b3791b72a7d93c101a715a7 | --- scripts/mini-app-scan/scan-changed-walmart-libs.sh
@@ -8,6 +8,9 @@ set -e
COMPARE_BRANCH="${1:-origin/main}"
echo "Comparing package.json to $COMPARE_BRANCH..."
+# Ensure the comparison branch is available (important for CI)
+git fetch origin "${COMPARE_BRANCH}:${COMPARE_BRANCH}" || git fetch origin
+
# Get changed lines in package.json (added/removed/modified)
git diff "$COMPARE_BRANCH" -- package.json | grep '^[-+]\s*"@walmart/' | sed 's/[",]//g' | awk -F'@walmart/' '{print $2}' | awk -F: '{print $1}' | awk '{print $1}' | sort | uniq > /tmp/changed_walmart_libs.txt
| fix: scan script did not fetch comparison branch before git diff | fix: scan script did not fetch comparison branch before git diff
|
7eca1f4562019d718f7687c0ac66c1026ae5cc54 | --- core/src/navigation/USHallway/AssociateHallwayNav/MainStackNav.tsx
@@ -174,7 +174,7 @@ const MiniAppScreens = createMiniAppScreens(MainStack, [
clockCheckEnabled: true,
},
{
- featureId: 'GlobalVPI',
+ featureId: MINI_APPS.GLOBAL_VPI,
name: 'GlobalVPI',
component: GlobalVpiMiniApp,
options: {
--- core/src/oneClick/MiniApps.ts
@@ -64,6 +64,7 @@ export enum MINI_APPS {
PAYROLL = 'payroll',
CHECKOUT = 'checkout',
SHOP_GNFR = 'shop-gnfr',
+ GLOBAL_VPI = 'global-vpi',
TRANSLATOR = 'translator',
}
--- targets/US/package.json
@@ -105,7 +105,7 @@
"@walmart/feedback-all-spark-miniapp": "0.9.71",
"@walmart/financial-wellbeing-feature-app": "1.26.0",
"@walmart/functional-components": "~6.3.28",
- "@walmart/global-vpi-mini-app": "1.0.75",
+ "@walmart/global-vpi-mini-app": "1.0.76",
"@walmart/gta-react-native-calendars": "0.7.0",
"@walmart/gtp-shared-components": "2.2.4",
"@walmart/ims-print-services-ui": "2.15.3",
--- yarn.lock
@@ -6436,10 +6436,10 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/global-vpi-mini-app@npm:1.0.75":
- version: 1.0.75
- resolution: "@walmart/global-vpi-mini-app@npm:1.0.75"
- checksum: 10c0/155ac1390f528e6a07c170f6aa6c336dd6f16ce468101417e62fcdcd2b50bd7dc25b00989fca5319bd8340716b1deca100b12c23f348e4ab825b523251f728a2
+"@walmart/global-vpi-mini-app@npm:1.0.76":
+ version: 1.0.76
+ resolution: "@walmart/global-vpi-mini-app@npm:1.0.76"
+ checksum: 10c0/4862e7bf526d3f979d7e58149f8503de0884762d18f9522935d719b87c6b08bb744e3cc68c51e6657e3b74cccee47d22f503714eaae161c168804c32eb8ca04b
languageName: node
linkType: hard
@@ -7027,7 +7027,7 @@ __metadata:
"@walmart/feedback-all-spark-miniapp": "npm:0.9.71"
"@walmart/financial-wellbeing-feature-app": "npm:1.26.0"
"@walmart/functional-components": "npm:~6.3.28"
- "@walmart/global-vpi-mini-app": "npm:1.0.75"
+ "@walmart/global-vpi-mini-app": "npm:1.0.76"
"@walmart/gta-react-native-calendars": "npm:0.7.0"
"@walmart/gtp-shared-components": "npm:2.2.4"
"@walmart/ims-print-services-ui": "npm:2.15.3"
@@ -7222,8 +7222,6 @@ __metadata:
built: false
"@walmart/financial-wellbeing-feature-app":
built: false
- "@walmart/global-vpi-mini-app":
- optional: true
"@walmart/iteminfo-mini-app":
built: false
"@walmart/learning-mini-app":
| feat: upgrade version global vpi and add constant | feat: upgrade version global vpi and add constant
|
e38170234ae6e9259147988baa7c28baa3bb2f09 | --- packages/allspark-app-auth/package.json
@@ -28,6 +28,7 @@
},
"peerDependencies": {
"@react-native-community/async-storage": "^1.12.1",
+ "@walmart/allspark-utils": "~1.0.0",
"@walmart/react-native-encrypted-storage": "^1.1.13",
"react": "^18.2.0",
"react-native": "~0.70.5",
@@ -35,6 +36,7 @@
},
"devDependencies": {
"@react-native-community/async-storage": "^1.12.1",
+ "@walmart/allspark-utils": "~1.0.0",
"@types/lodash": "~4.14.178",
"@types/react": "^17.0.37",
"@types/react-native": "^0.67.4",
--- packages/allspark-app-auth/src/index.ts
@@ -1,4 +1,4 @@
-// import { addProxyMethod } from '@walmart/allspark-utils';
+import { addProxyMethod } from '@walmart/allspark-utils';
import { signIn } from './signIn';
import { signOut } from './signOut';
import { getUser } from './getUser';
@@ -22,7 +22,7 @@ export type {
AuthResult,
};
-const AppAuth = {
+const BaseAppAuth = {
signIn,
signOut,
getUser,
@@ -32,9 +32,7 @@ const AppAuth = {
addEventListener,
};
-// const AppAuth = addProxyMethod(BaseAppAuth);
-// export default AppAuth;
-// export type IAppAuth = typeof AppAuth;
+const AppAuth = addProxyMethod(BaseAppAuth);
export default AppAuth;
export type IAppAuth = typeof AppAuth;
| feat: add proxy method to base instance | feat: add proxy method to base instance
|
341f7e8f625a942c82ae729864bd194f7d9bbc73 | --- .looper.multibranch.yml
@@ -4,7 +4,7 @@ inherit: "job:///metropolis/metroloop/metroloop-parent"
## Whenever you update the nodes, please update it at the two-place, below line & the global variable LOOPER_NODES
##
-node: ((osx||stable_osx)&&!dualcore)
+node: ((osx||stable_osx)&&!dualcore&&!MAC-LAB-MINI05)
## Global tools used across all flows.
tools:
@@ -36,7 +36,7 @@ envs:
global:
variables:
CI: true
- LOOPER_NODES: "((osx||stable_osx)&&!dualcore)"
+ LOOPER_NODES: "((osx||stable_osx)&&!dualcore&&!MAC-LAB-MINI05)"
GITHUB_TOKEN: "%{credentials.secret('GITHUB_TOKEN')}"
TMPDIR: /tmp
| excluding mini 05 | excluding mini 05
|
a0f6457e36a7e73f7f7fb1c82cde56f6763c8f14 | --- targets/US/package.json
@@ -140,7 +140,7 @@
"@walmart/redux-store": "~6.3.20",
"@walmart/returns-mini-app": "4.13.0",
"@walmart/rfid-scan-mini-app": "2.3.16",
- "@walmart/rn-receiving-mini-app": "2.3.133",
+ "@walmart/rn-receiving-mini-app": "2.3.150",
"@walmart/roster-mini-app": "2.8.2",
"@walmart/schedule-mini-app": "0.118.0",
"@walmart/shelfavailability-mini-app": "1.5.33",
--- yarn.lock
@@ -6024,9 +6024,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/atlas-rn-ui-components@npm:1.0.169":
- version: 1.0.169
- resolution: "@walmart/atlas-rn-ui-components@npm:1.0.169"
+"@walmart/atlas-rn-ui-components@npm:1.0.175":
+ version: 1.0.175
+ resolution: "@walmart/atlas-rn-ui-components@npm:1.0.175"
peerDependencies:
"@livingdesign/tokens": ">=0.63.0"
"@react-native-picker/picker": ">=2.4.0"
@@ -6048,7 +6048,7 @@ __metadata:
bin:
installFonts: scripts/installFonts
runCodemods: scripts/runCodemods
- checksum: 10c0/9f427eece89afeca5326d462fb66ab29ebc1025221760a17b5ef149c2eb1e3433aebb19e5ffe80eeb8644a60ec6cac94243334aac4d214311c905c91461512ef
+ checksum: 10c0/406da9e77a7955afd034227af87756aef5ea2637409f50a759ffd25b1b2c9d2ddcb18541f74566a09b444f8fe0f07cab1bfca7190ac64912a553052094619b20
languageName: node
linkType: hard
@@ -6724,9 +6724,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/loadquality-mini-app@npm:1.0.105":
- version: 1.0.105
- resolution: "@walmart/loadquality-mini-app@npm:1.0.105"
+"@walmart/loadquality-mini-app@npm:1.0.106":
+ version: 1.0.106
+ resolution: "@walmart/loadquality-mini-app@npm:1.0.106"
peerDependencies:
"@react-navigation/native": ^6.0.0
"@react-navigation/stack": ^6.1.0
@@ -6735,7 +6735,7 @@ __metadata:
axios-cache-adapter: ">=2.7.3"
react: ^18.2.0
react-native: ~0.70.5
- checksum: 10c0/73e8f2f99fb3f95b5729e6373ac89e40168c7cacf8fd68ad483df530d067c2378e25354585f4a210f456250855b740ea6a0cbd497a6256abbbb823cc88f5eca9
+ checksum: 10c0/5455b83f722f50169658ecde85656b1f0eaf21811c1b755c6f34a13721a1edccd3c29d8c32497c943ac575e65771d895f3d80810f891be5a79471f74bf2aa043
languageName: node
linkType: hard
@@ -7120,7 +7120,7 @@ __metadata:
"@walmart/redux-store": "npm:~6.3.20"
"@walmart/returns-mini-app": "npm:4.13.0"
"@walmart/rfid-scan-mini-app": "npm:2.3.16"
- "@walmart/rn-receiving-mini-app": "npm:2.3.133"
+ "@walmart/rn-receiving-mini-app": "npm:2.3.150"
"@walmart/roster-mini-app": "npm:2.8.2"
"@walmart/schedule-mini-app": "npm:0.118.0"
"@walmart/shelfavailability-mini-app": "npm:1.5.33"
@@ -7820,12 +7820,12 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/rn-receiving-mini-app@npm:2.3.133":
- version: 2.3.133
- resolution: "@walmart/rn-receiving-mini-app@npm:2.3.133"
+"@walmart/rn-receiving-mini-app@npm:2.3.150":
+ version: 2.3.150
+ resolution: "@walmart/rn-receiving-mini-app@npm:2.3.150"
dependencies:
- "@walmart/atlas-rn-ui-components": "npm:1.0.169"
- "@walmart/loadquality-mini-app": "npm:1.0.105"
+ "@walmart/atlas-rn-ui-components": "npm:1.0.175"
+ "@walmart/loadquality-mini-app": "npm:1.0.106"
peerDependencies:
"@react-native-clipboard/clipboard": ">=1.14.0"
"@react-navigation/native": ^6.0.8
@@ -7848,7 +7848,7 @@ __metadata:
react-native-svg: ">=14.1.0"
react-native-svg-transformer: ">=1.1.0"
react-native-vision-camera: ^2.16.8
- checksum: 10c0/046445cc5d30aa36eaf6a8b7eb096202337a96e296de234607880f3cfb235fb4099e6c17bea30a142fea2c7d72210c0a9d92ae9def708dcdb8cb88d154c5b6a1
+ checksum: 10c0/f6d87ec418b31f71da7f1e4fbfb1f81f4aabe46130b61803b8c1ff2233fa50d27502b192f2354b9fc4c81cb98bb3699e758f7a32a5fa2df9f97d719ecc0a42fc
languageName: node
linkType: hard
| Updated receiving version | Updated receiving version
|
e2554b6292bc867b791ca6b0a68ac3c0c6ac3d81 | --- package-lock.json
@@ -9000,9 +9000,9 @@
"integrity": "sha512-VjX25hR+zaK5vnHlJP2+1pPl+0KQ+mDrM9w7kJ3RpYhy8wFnB8S3qry/Xvgcy5WJnoOWUHyalFC0Qp0FKTuVAA=="
},
"react-native-wm-voice-text": {
- "version": "0.2.1",
- "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.2.1.tgz",
- "integrity": "sha512-IzvSaWscjbI6PU18jpj5ajnqdZufF3u1yRZjPZeLVtUI7FBEFPXJVPhFRI9hIJ55a9cN/tJ7xA8nec6sFrZ+Ig=="
+ "version": "0.3.0",
+ "resolved": "https://npme.walmart.com/react-native-wm-voice-text/-/react-native-wm-voice-text-0.3.0.tgz",
+ "integrity": "sha512-xp2aq+FDc9tgv1B05PCevhFhdJKXgzXcVVCyKfeYmKqkxlt8VlcxfLllhdy/ZUjHxMGQWc3oLqEe3pU2sHE0MQ=="
},
"react-redux": {
"version": "7.2.1",
--- package.json
@@ -73,7 +73,7 @@
"react-native-wm-barcode": "^1.1.6",
"react-native-wm-notification": "^0.1.1",
"react-native-wm-telemetry": "^0.2.0",
- "react-native-wm-voice-text": "^0.2.1",
+ "react-native-wm-voice-text": "^0.3.0",
"react-redux": "^7.2.1",
"redux": "^4.0.5",
"redux-devtools-extension": "^2.13.8",
| update version of voice-text | update version of voice-text
|
12ad6b8ece94bff23c46d6d1bab0b5b03df2e803 | --- ios/AllSpark/Info.plist
@@ -10,6 +10,8 @@
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.walmart.stores.allspark.beta</string>
+ <key>SumoAppGroupId</key>
+ <string>group.com.walmart</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
--- ios/Podfile.lock
@@ -526,14 +526,14 @@ PODS:
- AppAuth
- Starscream (3.0.6)
- StructuredLogAssistantIOS (0.0.6)
- - SumoSDK (2.0.0-rc.1):
+ - SumoSDK (2.0.0-rc.2):
- Apollo (= 0.42.0)
- Apollo/SQLite (= 0.42.0)
- Firebase/Messaging (= 8.4.0)
- StructuredLogAssistantIOS (= 0.0.6)
- - walmart-react-native-sumo-sdk (2.0.0-rc.1):
+ - walmart-react-native-sumo-sdk (2.0.0-rc.2):
- React
- - SumoSDK (= 2.0.0-rc.1)
+ - SumoSDK (= 2.0.0-rc.2)
- wifi-store-locator (1.0.0-alpha2):
- React-Core
- Yoga (1.14.0)
@@ -902,8 +902,8 @@ SPEC CHECKSUMS:
SSO: 6a7e963cb299184b6cf198991d232b1feb25bf04
Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5
StructuredLogAssistantIOS: 68c6fc083b10202a570f4a737359dcc7f81ec6e4
- SumoSDK: 4578ca01baefa1facaaae670ef1cf1d1f1e8e30a
- walmart-react-native-sumo-sdk: d9d01c4925dde7da7f8208ecba330a88a108c558
+ SumoSDK: 042f5a0bdf8c4fb6b2b6e9f8ef2f97df5dfc5585
+ walmart-react-native-sumo-sdk: 8704862f32e46cc9ae9a0223b89bc1973741a466
wifi-store-locator: 0f4d1e14ff9b98c559275105c655a5a6103ef427
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
--- package-lock.json
@@ -3499,9 +3499,9 @@
"integrity": "sha512-xXCe5sJeytOO9HAKLaTiQQMzomfUS2wUP6ICLYv9BGtdJUDmoKNT7aFYeRDGPgvPvkc1A8oFrqJIrOshjLnxSg=="
},
"@walmart/react-native-sumo-sdk": {
- "version": "2.0.0-rc.1",
- "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.0.0-rc.1.tgz",
- "integrity": "sha512-41jA/uqskb6AdoB++6dM4TdYZ0sm0AEFNA8gOfw/s7L0hlh44cHjR8wvM5tcpPkKhZadlWyC3TUsGHZV1cxN2Q=="
+ "version": "2.0.0-rc.2",
+ "resolved": "https://npme.walmart.com/@walmart/react-native-sumo-sdk/-/react-native-sumo-sdk-2.0.0-rc.2.tgz",
+ "integrity": "sha512-fH90+efaDPKPz2iTcpI+XzlQ3GZ204jJiwoeZf/j9HfGUakcn9CpRNaQo8oFQhH7NDMrD9S6RksReearlcFG4Q=="
},
"@walmart/redux-store": {
"version": "1.0.15",
--- package.json
@@ -92,7 +92,7 @@
"@walmart/react-native-env": "^0.2.0",
"@walmart/react-native-logger": "^1.27.0",
"@walmart/react-native-shared-navigation": "^0.4.0",
- "@walmart/react-native-sumo-sdk": "2.0.0-rc.1",
+ "@walmart/react-native-sumo-sdk": "2.0.0-rc.2",
"@walmart/redux-store": "^1.0.15",
"@walmart/schedule-mini-app": "0.3.1",
"@walmart/settings-mini-app": "1.3.7",
--- scripts/updateiOSProjectConfig.sh
@@ -24,6 +24,9 @@ TEFLON_SPLASH_SCREEN_NAME="<string>LaunchScreen-Teflon<\/string>"
BETA_BUNDLE_ID="com.walmart.stores.allspark.beta"
PROD_BUNDLE_ID="com.walmart.squiggly"
+BETA_SUMO_GROUP_ID="group.com.walmart"
+PROD_SUMO_GROUP_ID="group.com.walmart.sumo.appstore"
+
DEFAULT_APP_ICON="AppIcon"
BETA_APP_ICON="AppIcon-Beta"
DEV_APP_ICON="AppIcon-Dev"
@@ -50,19 +53,21 @@ if [[ "${env}" == "Prod" ]]; then
ENTITLEMENTS=$PROD_ENTITLEMENTS
INHOUSE_PROVISION=$PROD_INHOUSE_PROVISIONING
DEV_PROVISION=$PROD_DEV_PROVISIONING
-else
+ SUMO_GROUP_ID=$PROD_SUMO_GROUP_ID
+else
TEAM_ID=$ENTERPRISE_TEAM_ID
BUNDLE_ID=$BETA_BUNDLE_ID
ENTITLEMENTS=$BETA_ENTITLEMENTS
INHOUSE_PROVISION=$BETA_INHOUSE_PROVISIONING
DEV_PROVISION=$BETA_DEV_PROVISIONING
+ SUMO_GROUP_ID=$BETA_SUMO_GROUP_ID
fi
## Find and replace the Team Id
echo "Updating \"$ENTERPRISE_TEAM_ID\" with Team Id \"$TEAM_ID\" "
sed -Ei '' "s/$ENTERPRISE_TEAM_ID|$iTUNESCONNECT_TEAM_ID/$TEAM_ID/" ${plist}
-## Find and replace the storyboard name
+## Find and replace the storyboard name
echo "Updating Splash Screen \"$BETA_SPLASH_SCREEN_NAME\" with \"$SPLASH_SCREEN\" "
sed -Ei '' "s/$DEV_SPLASH_SCREEN_NAME|$BETA_SPLASH_SCREEN_NAME|$PROD_SPLASH_SCREEN_NAME|$TEFLON_SPLASH_SCREEN_NAME/$SPLASH_SCREEN/" ${plist}
@@ -70,6 +75,10 @@ sed -Ei '' "s/$DEV_SPLASH_SCREEN_NAME|$BETA_SPLASH_SCREEN_NAME|$PROD_SPLASH_SCRE
echo "Updating Bundle Id \"$BETA_BUNDLE_ID\" with \"$BUNDLE_ID\" "
sed -Ei '' "s/$BETA_BUNDLE_ID|$PROD_BUNDLE_ID/$BUNDLE_ID/" ${plist}
+## Find and replace the SumoAppGroupId
+echo "Updating SumoAppGroupId Id \"$BETA_SUMO_GROUP_ID\" with \"$SUMO_GROUP_ID\" "
+sed -Ei '' "s/$BETA_SUMO_GROUP_ID|$PROD_SUMO_GROUP_ID/$SUMO_GROUP_ID/" ${plist}
+
########### Finished updating Info.plist file #############
@@ -82,7 +91,7 @@ pbxprojFile="${xcodeproj}/project.pbxproj"
echo "Updating AppIcon \"$BETA_APP_ICON\" or \"$DEV_APP_ICON\" or \"$TEFLON_APP_ICON\" with \"$APP_ICON\" "
sed -Ei '' "s/\"$BETA_APP_ICON\";|\"$DEV_APP_ICON\";|\"$PROD_APP_ICON\";|\"$TEFLON_APP_ICON\";/\"$APP_ICON\";/" ${pbxprojFile}
-## Find and replace bundle ids.
+## Find and replace bundle ids.
echo "Updating Bundle Id \"$BETA_BUNDLE_ID\" with Bundle Id \"$BUNDLE_ID\" "
sed -Ei '' "s/$BETA_BUNDLE_ID;|$PROD_BUNDLE_ID;/$BUNDLE_ID;/" $pbxprojFile
@@ -90,7 +99,7 @@ sed -Ei '' "s/$BETA_BUNDLE_ID;|$PROD_BUNDLE_ID;/$BUNDLE_ID;/" $pbxprojFile
echo "Updating \"$ENTERPRISE_TEAM_ID\" with Team Id \"$TEAM_ID\" "
sed -Ei '' "s/$ENTERPRISE_TEAM_ID;|$iTUNESCONNECT_TEAM_ID;/$TEAM_ID;/" ${pbxprojFile}
-## Find and replace provisiioning profiles.
+## Find and replace provisiioning profiles.
echo "Updating InHouse Provisioning profile with \"$INHOUSE_PROVISION\" "
sed -Ei '' "s/$PROD_INHOUSE_PROVISIONING;|$BETA_INHOUSE_PROVISIONING;/$INHOUSE_PROVISION;/" ${pbxprojFile}
@@ -98,4 +107,4 @@ echo "Updating Dev Provisioning profile with \"$DEV_PROVISION\" "
sed -Ei '' "s/$PROD_DEV_PROVISIONING;|$BETA_DEV_PROVISIONING;/$DEV_PROVISION;/" ${pbxprojFile}
echo "Copying contents of App Entitlements file with \"$ENTITLEMENTS\""
-cp $entitlementsPath/$ENTITLEMENTS $entitlementsPath/$DEFAULT_ENTITLEMENTS
\ No newline at end of file
+cp $entitlementsPath/$ENTITLEMENTS $entitlementsPath/$DEFAULT_ENTITLEMENTS
| updated sumo sdk version. | updated sumo sdk version.
|
adfc7191217a50c5650c91dc109131867f879bad | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.2.16",
+ "version": "1.2.17",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
--- packages/allspark-foundation-hub/src/SupplyChain/Hub/SiteHubDashboard.tsx
@@ -26,7 +26,6 @@ import { OnboardingScreen } from '../Screens/OnboardingScreen/OnboardingScreen';
import { useGetSupplyChainTeamsPreferenceQuery } from '../../SupplyChain/Hooks/useGetSupplyChainTeamPreference';
import {
AllsparkLocalStorage,
- AllsparkReduxStore,
} from '@walmart/allspark-foundation';
import {
TOTAL_SITE_TEAM_ID,
@@ -47,11 +46,6 @@ import {
import { OnboardingScreenLoading } from '../Screens/OnboardingScreen/OnboardingScreenLoader';
import { ShiftMapping, ShiftMappingList } from './types';
-AllsparkReduxStore.addReducer(
- 'supplyChainManagerExperience',
- supplyChainManagerExperienceSlice.reducer
-);
-
export const SiteHubDashboard = ({ name, widgets }: HubDashboardProps) => {
const { loading, showOnboarding, hideOnboardingFlow } =
useSupplyChainOnboardingContext();
| Update hub | Update hub
|
f28f63d7848f70cdf64376f31168a666955469ef | --- package-lock.json
@@ -67,7 +67,7 @@
"@walmart/gta-react-native-calendars": "0.7.0",
"@walmart/gtp-shared-components": "2.2.1",
"@walmart/impersonation-mini-app": "1.20.8",
- "@walmart/ims-print-services-ui": "2.10.3",
+ "@walmart/ims-print-services-ui": "2.11.1",
"@walmart/inbox-mini-app": "0.93.23",
"@walmart/iteminfo-mini-app": "7.12.1",
"@walmart/learning-mini-app": "20.0.21",
@@ -11705,9 +11705,9 @@
}
},
"node_modules/@walmart/ims-print-services-ui": {
- "version": "2.10.3",
- "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.10.3.tgz",
- "integrity": "sha512-h9+eNhiu1PVg21yQ5sh0wpq27Cxy42tR+UZt6EOrKZ5ALrEM0qj+4YdMroFSJOG0AuJa0r5/mTsF/I+ADaEDxg==",
+ "version": "2.11.1",
+ "resolved": "https://npme.walmart.com/@walmart/ims-print-services-ui/-/ims-print-services-ui-2.11.1.tgz",
+ "integrity": "sha512-PiK5eTqjwwfhvPbUO0VFSmk4K/fPJSk5WRO1YGJ7T7I7R0kabiiEfO26EvcerDzFyHHUO4vJHlmjkHzTRyb3hg==",
"peerDependencies": {
"@react-native-firebase/analytics": ">=10.5.1",
"@react-native-firebase/app": ">=10.5.0",
--- package.json
@@ -109,7 +109,7 @@
"@walmart/gta-react-native-calendars": "0.7.0",
"@walmart/gtp-shared-components": "2.2.1",
"@walmart/impersonation-mini-app": "1.20.8",
- "@walmart/ims-print-services-ui": "2.10.3",
+ "@walmart/ims-print-services-ui": "2.11.1",
"@walmart/inbox-mini-app": "0.93.23",
"@walmart/iteminfo-mini-app": "7.12.1",
"@walmart/learning-mini-app": "20.0.21",
@@ -374,7 +374,7 @@
"@walmart/gta-react-native-calendars": "0.7.0",
"@walmart/gtp-shared-components": "2.2.1",
"@walmart/impersonation-mini-app": "1.20.8",
- "@walmart/ims-print-services-ui": "2.10.3",
+ "@walmart/ims-print-services-ui": "2.11.1",
"@walmart/inbox-mini-app": "0.93.23",
"@walmart/iteminfo-mini-app": "7.12.1",
"@walmart/learning-mini-app": "20.0.21",
| Update @walmart/ims-print-services-ui to 2.11.1 | Update @walmart/ims-print-services-ui to 2.11.1
|
757e52b5fa70399a7e4872f1380c07acda699f2b | --- package-lock.json
@@ -3184,9 +3184,9 @@
}
},
"@walmart/welcomeme-mini-app": {
- "version": "0.5.19",
- "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.19.tgz",
- "integrity": "sha512-HE/TNh3HrevJh96fQWwSfN13xH3g+O94PKk2eFQFPIkb5wh/JT2D5br3gHwwWIsdOgYeInWIXuetMmG4xEMm5g=="
+ "version": "0.5.22",
+ "resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.22.tgz",
+ "integrity": "sha512-esNCCA8NKUR+oV4FV7erF2I5AFa75J+jCOERyiFsNQ3JjwWz9Wy6EGEsWC8olz5++8OAXBuGGntHNoAK9KB3tA=="
},
"@walmart/wfm-ui": {
"version": "0.1.34",
--- package.json
@@ -64,7 +64,7 @@
"@walmart/schedule-mini-app": "0.2.42",
"@walmart/settings-mini-app": "1.1.12",
"@walmart/time-clock-mini-app": "0.1.14",
- "@walmart/welcomeme-mini-app": "0.5.19",
+ "@walmart/welcomeme-mini-app": "0.5.22",
"@walmart/ui-components": "1.0.91",
"i18next": "^19.7.0",
"intl": "^1.2.5",
| Welcome Me Mini App - UAT (#267) | Welcome Me Mini App - UAT (#267)
* Welcome Me Mini App - UAT
* minor fix and version increased
* version bump (1 sonar bug fixed)
Co-authored-by: Hitesh Arora - h0a006n <Hitesh.Arora@walmart.com> |
11ba3e47323416cdf1483877baabde044ed3ec0c | --- packages/allspark-foundation-hub/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/allspark-foundation-hub",
- "version": "1.0.1-beta.20",
+ "version": "1.1.0",
"description": "",
"main": "Core/index.js",
"types": "Core/index.d.ts",
| Update the hub version | Update the hub version
|
991bd32ba4b7528cd425fb519c4c7603802adb98 | --- packages/allspark-foundation/__mocks__/i18next.js
@@ -1,12 +0,0 @@
-module.exports = {
- ...jest.requireActual('i18next'),
- init: jest.fn(),
- changeLanguage: jest.fn(),
- addResources: jest.fn(),
- setDefaultNamespace: jest.fn(),
- cloneInstance: jest.fn(),
- on: jest.fn(),
- language: 'en-US',
- languages: ['en-US', 'es-US'],
- options: {},
- };
\ No newline at end of file
--- packages/allspark-foundation/__mocks__/react-native-async-storage/async-storage.js
@@ -1,13 +0,0 @@
-module.exports = {
- ...jest.requireActual('@react-native-async-storage/async-storage'),
- getItem: jest.fn(),
- setItem: jest.fn(),
- removeItem: jest.fn(),
- mergeItem: jest.fn(),
- multiGet: jest.fn(),
- multiSet: jest.fn(),
- multiMerge: jest.fn(),
- multiRemove: jest.fn(),
- getAllKeys: jest.fn(),
- };
-
\ No newline at end of file
--- packages/allspark-foundation/__tests__/LocalStorage/client.test.tsx
@@ -1,7 +1,17 @@
import { LocalStorageClient } from '../../src/LocalStorage/client';
import AsyncStorage from '@react-native-async-storage/async-storage';
-jest.mock('@react-native-async-storage/async-storage');
+jest.mock('@react-native-async-storage/async-storage', () => ({
+ getItem: jest.fn(),
+ setItem: jest.fn(),
+ removeItem: jest.fn(),
+ mergeItem: jest.fn(),
+ multiGet: jest.fn(),
+ multiSet: jest.fn(),
+ multiMerge: jest.fn(),
+ multiRemove: jest.fn(),
+ getAllKeys: jest.fn(),
+}));
describe('LocalStorageClient', () => {
let client;
--- packages/allspark-foundation/__tests__/Translation/client.test.tsx
@@ -1,7 +1,17 @@
import i18next from 'i18next';
import { TranslationClient, DefaultConfig, AllsparkTranslationClient } from '../../src/Translation/client';
-jest.mock('i18next');
+jest.mock('i18next', () => ({
+ init: jest.fn(),
+ changeLanguage: jest.fn(),
+ addResources: jest.fn(),
+ setDefaultNamespace: jest.fn(),
+ cloneInstance: jest.fn(),
+ on: jest.fn(),
+ language: 'en-US',
+ languages: ['en-US', 'es-US'],
+ options: {},
+}));
jest.mock('react-native', () => ({
NativeModules: {
| reverted global mocking lib | reverted global mocking lib
|
2e128b15a1d9875bdafe6eab12351e25be10d6a1 | --- package-lock.json
@@ -3264,6 +3264,30 @@
"resolved": "https://npme.walmart.com/@walmart/welcomeme-mini-app/-/welcomeme-mini-app-0.5.27.tgz",
"integrity": "sha512-XkfZJYjio/KFzOrjIMNgTqn6N9Nhf5EEZBKXcPU5DIjNUmSMDJqnpbbBr6+6mz4wZqPRZvXmfRdwK8d5prHFeA=="
},
+ "@walmart/wfm-ui": {
+ "version": "0.1.50",
+ "resolved": "https://npme.walmart.com/@walmart/wfm-ui/-/wfm-ui-0.1.50.tgz",
+ "integrity": "sha512-nLdB02iLmxPLKPN1LAeMGwnvlIZiW5e9Xlov0H+NYqMNEKMy9VjaVzSzbpKq9q8dN4Fa3MWQIQ08A830jDcT7A==",
+ "requires": {
+ "@walmart/gtp-shared-components": "^0.2.2",
+ "@walmart/moment-walmart": "1.0.3",
+ "lodash": "^4.17.20",
+ "lodash.get": "^4.4.2",
+ "lodash.isequal": "^4.5.0",
+ "lodash.uniqby": "^4.7.0",
+ "react-native-material-menu": "^0.4.2",
+ "react-native-vector-icons": "^7.0.0",
+ "string.prototype.matchall": "^4.0.2",
+ "wm-react-native-vector-icons": "^1.0.26"
+ },
+ "dependencies": {
+ "@walmart/moment-walmart": {
+ "version": "1.0.3",
+ "resolved": "https://npme.walmart.com/@walmart/moment-walmart/-/moment-walmart-1.0.3.tgz",
+ "integrity": "sha512-rq1NYboOSqlXtiorH3m+8FwaInZ9X6epZpecrf9IjPmxvsXWbCcFxjybtqcPhux6FzcViIUWsJ3gnZBhYls8rA=="
+ }
+ }
+ },
"abab": {
"version": "2.0.5",
"resolved": "https://npme.walmart.com/abab/-/abab-2.0.5.tgz",
--- package.json
@@ -82,6 +82,7 @@
"@walmart/time-clock-mini-app": "0.1.55",
"@walmart/ui-components": "1.1.6",
"@walmart/welcomeme-mini-app": "0.5.27",
+ "@walmart/wfm-ui": "^0.1.50",
"axios-cache-adapter": "2.7.3",
"crypto-js": "^3.3.0",
"i18next": "^19.7.0",
| adding wfm-ui (#503) | adding wfm-ui (#503)
|
e9c1340c866d8da97dab00fe3b97b08a1624744f | --- .looper-pr.yml
@@ -31,3 +31,4 @@ envs:
+
| feat(ui): update concord #SMDV-9999 | feat(ui): update concord #SMDV-9999
|
3f59626dc53b2f394bb42f70b9813bd64d688a53 | --- package-lock.json
@@ -3193,9 +3193,9 @@
"integrity": "sha512-UfQvukDS75owqFhjEW+A8Ara/9zRAQNaesPJu1a6/zv8qauT9gUw/rq1VKcVeD2NiMaQCNNx+tNlOiluGRPTdQ=="
},
"@walmart/time-clock-mini-app": {
- "version": "0.1.35",
- "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.35.tgz",
- "integrity": "sha512-F/fE8DW2i94yZbNQ0Cr3Sve7LLyxZnJnkuYtQxTJlcNJ80HdIa/B0z4ag+pvud/VkxhLHmvofJwrb+y+ADWT0g==",
+ "version": "0.1.38",
+ "resolved": "https://npme.walmart.com/@walmart/time-clock-mini-app/-/time-clock-mini-app-0.1.38.tgz",
+ "integrity": "sha512-JK6Hve6gz+Sn8btHom8cWqmALBXFr1lCnVgQXsOyjd7aZoyO0lwDYUi7O7Fx5oGapumaOHQJNi3frHd3VU/6YQ==",
"requires": {
"@react-native-community/datetimepicker": "^3.0.3",
"javascript-time-ago": "^2.3.4",
--- package.json
@@ -65,7 +65,7 @@
"@walmart/redux-store": "^1.0.12",
"@walmart/schedule-mini-app": "0.2.58",
"@walmart/settings-mini-app": "1.1.16",
- "@walmart/time-clock-mini-app": "0.1.35",
+ "@walmart/time-clock-mini-app": "0.1.38",
"@walmart/ui-components": "1.0.96",
"@walmart/welcomeme-mini-app": "0.5.27",
"i18next": "^19.7.0",
| Clock status fallback when time clock services fail (#370) | Clock status fallback when time clock services fail (#370)
* Clock status fallback when time clock services fail
* Fixed TC Mini app bug |
13d9fbd8d5c1bb4a7dc62a48b553f3c477f2fdcb | --- package-lock.json
@@ -53,7 +53,7 @@
"@walmart/exception-mini-app": "1.6.5",
"@walmart/facilities-management-miniapp": "0.6.83",
"@walmart/feedback-all-spark-miniapp": "0.9.50",
- "@walmart/financial-wellbeing-feature-app": "1.16.1",
+ "@walmart/financial-wellbeing-feature-app": "1.16.3",
"@walmart/functional-components": "~4.0.3",
"@walmart/gta-react-native-calendars": "0.1.0",
"@walmart/gtp-shared-components": "2.1.3",
@@ -8855,14 +8855,18 @@
}
},
"node_modules/@walmart/financial-wellbeing-feature-app": {
- "version": "1.16.1",
- "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.16.1.tgz",
- "integrity": "sha512-AOVaeP1lFKCfjs6rAdbu7lodrbpS5FBuGIvJMh6bXWFbVcu93lL1OYBoxeEuO3+h3EtXfuPPYvktxjzyHXvEzA==",
+ "version": "1.16.3",
+ "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.16.3.tgz",
+ "integrity": "sha512-pPUZiVD4bDvY6DiaidEDzrSNLJb5EnDD0If+txIZVYA4BbsgGHLC12VZ0lFqtHEtgYVvXZ0OKxmkitmVBdcHOg==",
"hasInstallScript": true,
+ "engines": {
+ "node": ">=16"
+ },
"peerDependencies": {
"@react-navigation/native": "^6.0.0",
"@react-navigation/stack": "^6.1.0",
"@walmart/core-services": "^1.0.3",
+ "@walmart/money-auth-shared-components": "^0.0.10",
"@walmart/redux-store": "^2.0.4",
"react": "^18.2.0",
"react-native": "^0.70.4",
@@ -33268,9 +33272,9 @@
"integrity": "sha512-smgkGKR2rRMz1sfzeYWoN/2tDs74GUXpRfpAnQ4azriRbfI+n6Dh+j4OQ5bDEQxGsstMwG6idsQWTKTfQhf3Pg=="
},
"@walmart/financial-wellbeing-feature-app": {
- "version": "1.16.1",
- "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.16.1.tgz",
- "integrity": "sha512-AOVaeP1lFKCfjs6rAdbu7lodrbpS5FBuGIvJMh6bXWFbVcu93lL1OYBoxeEuO3+h3EtXfuPPYvktxjzyHXvEzA=="
+ "version": "1.16.3",
+ "resolved": "https://npme.walmart.com/@walmart/financial-wellbeing-feature-app/-/financial-wellbeing-feature-app-1.16.3.tgz",
+ "integrity": "sha512-pPUZiVD4bDvY6DiaidEDzrSNLJb5EnDD0If+txIZVYA4BbsgGHLC12VZ0lFqtHEtgYVvXZ0OKxmkitmVBdcHOg=="
},
"@walmart/functional-components": {
"version": "4.0.3",
--- package.json
@@ -94,7 +94,7 @@
"@walmart/exception-mini-app": "1.6.5",
"@walmart/facilities-management-miniapp": "0.6.83",
"@walmart/feedback-all-spark-miniapp": "0.9.50",
- "@walmart/financial-wellbeing-feature-app": "1.16.1",
+ "@walmart/financial-wellbeing-feature-app": "1.16.3",
"@walmart/functional-components": "~4.0.3",
"@walmart/gta-react-native-calendars": "0.1.0",
"@walmart/gtp-shared-components": "2.1.3",
| bumped financial-wellbeing-feature-app to 1.16.3 | bumped financial-wellbeing-feature-app to 1.16.3
|
11fdf4dac9fcedb80eddfa72e10b24e36c59135e | --- package-lock.json
@@ -5312,9 +5312,9 @@
"integrity": "sha512-3xZ9hyHPrhGO7U3wcjRlXJMHhyMht/WTeR+f3yw8b1B4uWmtlunXw7cqCqDz+Y2gPNr08/+hL5sY5T472CfnMg=="
},
"@walmart/me-field-mini-app": {
- "version": "1.1.17",
- "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.17.tgz",
- "integrity": "sha512-HKZMPu/p+IlJvUd1PRe6tWtRUG+WN7iTyWwsxSlOIz/I85F2p67E4CDHwiLul/I99y0Bp4newE3J7ycNMce+Vw=="
+ "version": "1.1.18",
+ "resolved": "https://npme.walmart.com/@walmart/me-field-mini-app/-/me-field-mini-app-1.1.18.tgz",
+ "integrity": "sha512-AJ3JGjONi4gFfTobemSAmxnd+hnL//6Pwo7dL/nFyDqyHQlVP7mD9O2p+G66AA19Ta9quIuWhN1JYAkNjbo/mQ=="
},
"@walmart/metrics-mini-app": {
"version": "0.9.10",
--- package.json
@@ -94,7 +94,7 @@
"@walmart/inbox-mini-app": "0.44.0",
"@walmart/iteminfo-mini-app": "5.0.9",
"@walmart/manager-approvals-miniapp": "0.0.62",
- "@walmart/me-field-mini-app": "1.1.17",
+ "@walmart/me-field-mini-app": "1.1.18",
"@walmart/metrics-mini-app": "0.9.10",
"@walmart/mod-flex-mini-app": "1.1.2",
"@walmart/moment-walmart": "1.0.4",
| feat: :sparkles: Bump learning app version to 1.1.18 | feat: :sparkles: Bump learning app version to 1.1.18
|
3edbd68e954a28ddb6e5c1542df37a75b5758f02 | --- package.json
@@ -420,7 +420,7 @@
"@walmart/me-at-walmart-container": "workspace:^",
"@walmart/moment-walmart": "1.0.4",
"axios": "~1.6.0",
- "@walmart/ui-components": "1.23.1",
+ "@walmart/ui-components": "patch:@walmart/ui-components@npm%3A1.23.1#~/.yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch",
"axios-cache-adapter": "patch:axios-cache-adapter@npm%3A2.7.3#~/.yarn/patches/axios-cache-adapter-npm-2.7.3-26c357b785.patch",
"axios-cache-interceptor": "patch:axios-cache-interceptor@npm%3A1.5.1#~/.yarn/patches/axios-cache-interceptor-npm-1.5.1-c84dd3f9ed.patch",
"moment": "^2.29.4",
--- yarn.lock
@@ -9336,6 +9336,31 @@ __metadata:
languageName: node
linkType: hard
+"@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.23.1#~/.yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch":
+ version: 1.23.1
+ resolution: "@walmart/ui-components@patch:@walmart/ui-components@npm%3A1.23.1%3A%3A__archiveUrl=https%253A%252F%252Fnpm.ci.artifacts.walmart.com%253A443%252Fartifactory%252Fapi%252Fnpm%252Fnpme-npm%252F%2540walmart%252Fui-components%252F-%252F%2540walmart%252Fui-components-1.23.1.tgz#~/.yarn/patches/@walmart-ui-components-npm-1.23.1-247996ccb0.patch::version=1.23.1&hash=66bb98"
+ peerDependencies:
+ "@react-navigation/stack": ">=6.1.0"
+ "@walmart/allspark-foundation": "*"
+ "@walmart/allspark-utils": ">=1.6.5"
+ "@walmart/gtp-shared-components": ">=2.0.0"
+ javascript-time-ago: ">=2.3.4"
+ react: "*"
+ react-hook-form: "*"
+ react-native: "*"
+ react-native-background-timer: ">=2.4.1"
+ react-native-calendars: "*"
+ react-native-elements: "*"
+ react-native-hyperlink: ">=0.0.19"
+ react-native-modal: ">=11.6.1"
+ react-native-reanimated: ">=1.13.2"
+ react-native-safe-area-context: ">=3.1.3"
+ react-native-vector-icons: ">=7.0.0"
+ react-native-webview: ">=10.10.2"
+ checksum: 10c0/9e0110f77b8388690c2d1ab8823814fa6c1683e3f8b4721215c78dd55981e7d3bda10afc0e12610b51d48436975663cdf4fc8ca672587c991cbe1033fdcb8599
+ languageName: node
+ linkType: hard
+
"@walmart/virtual-zpl-printer-model@npm:^0.2.11":
version: 0.2.11
resolution: "@walmart/virtual-zpl-printer-model@npm:0.2.11::__archiveUrl=https%3A%2F%2Fnpm.ci.artifacts.walmart.com%3A443%2Fartifactory%2Fapi%2Fnpm%2Fnpme-npm%2F%40walmart%2Fvirtual-zpl-printer-model%2F-%2Fvirtual-zpl-printer-model-0.2.11.tgz"
| chore(ui): ALLSPARK-6120 fix icon issue (#4228) | chore(ui): ALLSPARK-6120 fix icon issue (#4228)
|
e82827513052d2f07733f3efd304d16ac2a60c08 | --- packages/allspark-foundation/src/Work/redux.ts
@@ -40,6 +40,7 @@ export const workSlice = createSlice({
WORK_FLOW_START: (state, action: PayloadAction<WorkFlowStartPayload>) => {
state.workFlow = action.payload.workFlow;
state.actionId = action.payload.actionId;
+ state.context = action.payload.context || null;
},
WORK_FLOW_COMPLETE: (state) => {
state.workFlow = null;
| fix(work): work context not set on start action | fix(work): work context not set on start action
|
d2e6343a1d3d3b83c3b77f7fa16d77b7d8b0d6c0 | --- packages/allspark-foundation/__tests__/Work/redux.test.tsx
@@ -0,0 +1,14 @@
+import {WorkActions, WorkActionTypes, WorkSelectors} from '../../src/Work'
+import { UseSelector } from 'react-redux/es/hooks/useSelector'
+
+// describe('WorkActions', () => {
+
+// })
+describe('WorkSelectors', () => {
+ test('get work flow', () => {
+ expect(true).toBeTruthy()
+ })
+ test('get action ID', () => {
+ expect(true).toBeTruthy()
+ })
+})
| feat: add test file DWORK-6097 | feat: add test file DWORK-6097
|
793770e34b222fb9b865b253bfc61a6e9a37907b | --- src/auth/ErrorScreen.tsx
@@ -63,7 +63,8 @@ export const ErrorScreen: FC<any> = (props) => {
<ScrollView contentContainerStyle={styles.errorScrollView}>
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'position' : undefined}
- enabled>
+ enabled
+ keyboardVerticalOffset={Platform.OS === 'android' ? 60 : 100}>
<Subheader style={styles.errorMsg} testID='errorMessage'>
{translate('ssoError.errorMsg')}
</Subheader>
| test-ios | test-ios
|
e6a1230c82d6c8287ab65f039e17199b770dbe6b | --- packages/expo-config-plugins/CHANGELOG.md
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [0.4.1](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.4.0...@walmart/expo-config-plugins@0.4.1) (2025-08-05)
+
+### Bug Fixes
+
+- **lib:** ALLSPARK-0000 webex liboboe fix ([#328](https://gecgithub01.walmart.com/allspark/allspark/issues/328)) ([de1ebb6](https://gecgithub01.walmart.com/allspark/allspark/commit/de1ebb61b642bccf40624bea0f832c20c530c50f))
+
# [0.4.0](https://gecgithub01.walmart.com/allspark/allspark/compare/@walmart/expo-config-plugins@0.3.0...@walmart/expo-config-plugins@0.4.0) (2025-07-24)
### Features
--- packages/expo-config-plugins/package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/expo-config-plugins",
- "version": "0.4.0",
+ "version": "0.4.1",
"description": "Expo config plugins for me@apps",
"main": "lib/index.js",
"types": "lib/index.d.ts",
| chore(version): updating package version | chore(version): updating package version
- @walmart/expo-config-plugins@0.4.1
|
d42d707b594bf5e77e2b222ab475052ead0189cc | --- concord-multibranch.yml
@@ -60,7 +60,7 @@ triggers:
entryPoint: onPush
conditions:
type: push
- branch: "^feature-.*$" # Triggers when someone pushes to a feature branch with a name starting with feature-, ex: feature-my-feature
+ branch: "^(feature|feat|chore).*$" # Triggers when someone pushes to branches starting with feature, feat, or chore
#IMP: Add this if the automatic build is disabled for a branch and builds are manually triggers from UI. Make sure to add ref filter to listen to interested branch creation events only
- github:
| feat(ui): update concord yml #SMDV-9999 | feat(ui): update concord yml #SMDV-9999
|
ba0a657fb25d49e216f98fef9eb1cdc11bf492c4 | --- src/components/RosterWidget/useRosterWidget.ts
@@ -62,10 +62,12 @@ export const useRosterWidget = (
teams: SupplyChainTeam[],
shifts: ShiftMappingList,
) {
- let shiftSiteIds = shifts?.map((shift) => Number(shift.shiftId));
-
- let filteredTeams = teams
- .map((team) => {
+ if (!teams?.length) {
+ return [];
+ }
+ const shiftSiteIds = shifts?.map((shift) => Number(shift.shiftId));
+ const filteredTeams = teams
+ ?.map((team) => {
let filteredMembership = team?.membership?.filter((member) =>
shiftSiteIds?.includes(Number(member?.shiftCode)),
);
| feat(ui): null checks for empty teams | feat(ui): null checks for empty teams
|
7d71b90e63441d504f463918e88e5e518113951b | --- src/auth/LoginErrorScreen/index.tsx
@@ -117,11 +117,11 @@ export const ErrorScreen = (
const customErrorCode = params?.authError?.code;
const [isNetworkError, isTimeMismatchError, isBrowserNotFoundError] =
useMemo(() => {
- const networkError = networkErrors.some((term) =>
- customError?.toLowerCase()?.includes(term),
+ const networkError = networkErrors.some(
+ (term) => customError?.toLowerCase()?.includes(term),
);
- const timeMismatch = timeMismatchErrors.some((term) =>
- customError?.toLowerCase()?.includes(term),
+ const timeMismatch = timeMismatchErrors.some(
+ (term) => customError?.toLowerCase()?.includes(term),
);
const noBrowserFound = noBrowserAndroidErrors === customErrorCode;
return [networkError, timeMismatch, noBrowserFound];
--- src/hooks/useCanImpersonate.ts
@@ -11,8 +11,9 @@ export const useCanImpersonate = () => {
const user: User | null = useSelector(UserSelectors.getOriginalUser);
const impersonatorGroups: string[] = useSelector(getImpersonatorGroups);
- return impersonatorGroups.some((group: string) =>
- // @ts-ignore
- user?.memberOf?.includes(group),
+ return impersonatorGroups.some(
+ (group: string) =>
+ // @ts-ignore
+ user?.memberOf?.includes(group),
);
};
--- src/startup/AuthFlow.ts
@@ -18,8 +18,8 @@ const SILENT_SSO_ERRORS = [
];
export const isSilentSignInError = (error?: Error) =>
- SILENT_SSO_ERRORS.some((silentError) =>
- `${error}`?.toLowerCase().includes(silentError),
+ SILENT_SSO_ERRORS.some(
+ (silentError) => `${error}`?.toLowerCase().includes(silentError),
);
export function* authFlow() {
| fix lint errors | fix lint errors
|
6658beb3cd0624e33674f2d24755b756802c4212 | --- docs/docs/components/allspark foundation/clients/foundation-http.md
@@ -37,27 +37,27 @@ As an extension of Axios all expected methods are available. See the [axios docu
Additional methods are:
-### `cancelRequests`
+### `cancelRequests()`
Cancels all requests for the client. In progress requests and any new request will be rejected.
-### `resumeRequests`
+### `resumeRequests()`
Resumes all requests if previously cancelled. Will no longer block new requests.
-### `addInterceptor`
+### `addInterceptor()`
Adds an interceptor to the client.
-### `addInterceptors`
+### `addInterceptors()`
Adds multiple interceptors to the client.
-### `useRequest`
+### `useRequest()`
Hook to make requests and access loading, data, and error info in a react component.
-### `useLazyRequest`
+### `useLazyRequest()`
Hook to make requests and access loading, data, and error info in a react component. The request is not made until the `fetch` method is called.
@@ -112,4 +112,4 @@ MyFeatureHttpClient.get('https:api.com/some/path', {
});
```
-The cache will use the [LocalStorage](./foundation-localStorage.md) service matching the feature id of the http client. If none is found, one will be created.
+The cache will use the [LocalStorage](../services/foundation-localStorage.md) service matching the feature id of the http client. If none is found, one will be created.
--- docs/docs/components/allspark foundation/foundation-container.md
@@ -88,7 +88,6 @@ Only Container apps should call data provider methods while feature apps should
| clock | [AllsparkClockService](./services/foundation-clock.md) |
| config | [AllsparkConfigService](./services/foundation-config.md) |
| device | [AllsparkDeviceService](./services/foundation-device.md) |
-| location | [AllsparkLocationService](./services/foundation-location.md) |
| site | [AllsparkSiteService](./services/foundation-site.md) |
| user | [AllsparkUserService](./services/foundation-user.md) |
| Fixing minor issue, formatting. | Fixing minor issue, formatting.
|
aba4f379c458abc48b83695606fc0bc1920455ad | --- src/components/modals/hoc/EditTeamsModal.tsx
@@ -6,6 +6,7 @@ import {AssociateExpHubTranslationClient} from '../../../utils/translation';
import {ModalContent} from '../smartModal';
import {useGetTeamsAdapter} from '../../../services';
import {MODALS} from '../../../constants';
+import {useConfig} from '../../../hooks/useConfigData';
import {
AllTeamsLoading,
filterTeamsBySearchInput,
@@ -28,6 +29,7 @@ const EditTeamsModal = AssociateExpHubFeature.createModal(
() => {
const isMounted = useRef(false);
const primaryTeam = useGetViewersPrimaryTeam();
+ const {enableEditModalUpsert} = useConfig();
const {
loading: {teamsLoading, preferencesLoading},
preferences,
@@ -258,8 +260,17 @@ const EditTeamsModal = AssociateExpHubFeature.createModal(
}, [selectedTeams, upsertStorePreferences]);
const handleApplyPress = useCallback(() => {
+ if (!enableEditModalUpsert) {
+ // When upsert is disabled, just close the modal without saving changes
+ // This provides a read-only experience where users can view but not modify team preferences
+ AllsparkNavigationClient.closeModal(
+ //@ts-ignore
+ MODALS.EDIT
+ );
+ return;
+ }
return isSiteDC ? handleDCUpsert() : handleStoreUpsert();
- }, [isSiteDC, handleDCUpsert, handleStoreUpsert]);
+ }, [isSiteDC, handleDCUpsert, handleStoreUpsert, enableEditModalUpsert]);
return (
<ModalContent
--- src/components/modals/hoc/UpdateModal.tsx
@@ -30,6 +30,7 @@ import {
} from '../../../store';
import {MODALS} from '../../../constants';
import {useUpsertStoreAssociatePreference} from '../../../hooks';
+import {useConfig} from '../../../hooks/useConfigData';
const UpdateModal = AssociateExpHubFeature.createModal(
() => {
@@ -38,6 +39,7 @@ const UpdateModal = AssociateExpHubFeature.createModal(
const primaryTeam = useGetViewersPrimaryTeam();
const dispatch = useAllsparkDispatch();
const isModalInitialized = useRef(false);
+ const {enableUpdateModalUpsert} = useConfig();
const {
loading: {teamsLoading, preferencesLoading},
@@ -366,16 +368,22 @@ const UpdateModal = AssociateExpHubFeature.createModal(
}, [upsertSupplyChainPreferences, selectedShifts, preferences]);
const handleDCApplyButton = useCallback(async () => {
- if (selectedShifts.length === 0) {
+ if (!enableUpdateModalUpsert) {
+ handleCloseModal();
+ } else if (selectedShifts.length === 0) {
setShowMandatoryShiftAlert(true);
} else {
await handleUpsert();
}
- }, [selectedShifts, handleUpsert]);
+ }, [enableUpdateModalUpsert, selectedShifts, handleUpsert]);
const onApplyButtonPress = useCallback(() => {
- return isSiteDC ? handleDCApplyButton() : handleCloseModal();
- }, [isSiteDC, handleDCApplyButton]);
+ if (!enableUpdateModalUpsert) {
+ handleCloseModal();
+ } else {
+ return isSiteDC ? handleDCApplyButton() : handleCloseModal();
+ }
+ }, [enableUpdateModalUpsert, isSiteDC, handleDCApplyButton]);
const shiftsConfig = useMemo(
() => ({
--- src/components/widgets/AttendanceWidget.tsx
@@ -175,7 +175,7 @@ const AttendanceWidgetCore: React.FC<AttendanceWidgetProps> = ({
};
const handleViewAll = () => {
- analytics('attendance_view_all_pressed');
+ analytics('attend_view_all_pressed');
AssociateExpHubLogger.info('AttendanceWidget view all pressed', {
widgetId,
message: 'Navigation to attendance details requested',
| feat(ui): implement ff for edit and update modals #SMDV-8174 | feat(ui): implement ff for edit and update modals #SMDV-8174
|
6496d46ea5e5853998d404c981f478f0a2cf43a6 | --- .yarnrc.yml
@@ -1,7 +1,7 @@
nodeLinker: node-modules
npmRegistryServer: '${REPOSOLNS_NPM_REPO}'
-enableImmutableInstalls: false
+enableImmutableInstalls: true
packageExtensions:
'@walmart/ui-components@*':
| chore(ui): update .yarnrc yml file | chore(ui): update .yarnrc yml file
|
4013d05f867b943f5adc482c131dc6feeb2db2d3 | --- docs/CHANGELOG.md
@@ -1,3 +1,10 @@
+# [1.22.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.21.0...v1.22.0) (2025-03-28)
+
+
+### Features
+
+* **ui:** update the my team configs readme ([6f0ccb3](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/6f0ccb3b36f870f1542ebc2edeb51ff849fbfeae))
+
# [1.21.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.20.0...v1.21.0) (2025-03-28)
--- package.json
@@ -1,6 +1,6 @@
{
"name": "@walmart/myteam-mini-app",
- "version": "1.21.0",
+ "version": "1.22.0",
"main": "dist/index.js",
"files": [
"dist"
| chore(release): 1.22.0 [skip ci] | chore(release): 1.22.0 [skip ci]
# [1.22.0](https://gecgithub01.walmart.com/smdv/myteam-miniapp/compare/v1.21.0...v1.22.0) (2025-03-28)
### Features
* **ui:** update the my team configs readme ([6f0ccb3](https://gecgithub01.walmart.com/smdv/myteam-miniapp/commit/6f0ccb3b36f870f1542ebc2edeb51ff849fbfeae))
|
a54fd9af0e342a02b63554d73e878c484d824f8a | --- package-lock.json
@@ -61,8 +61,8 @@
"@walmart/mod-flex-mini-app": "1.2.7",
"@walmart/moment-walmart": "1.0.4",
"@walmart/OneWalmart-MiniApp": "1.0.12",
- "@walmart/pay-stub-miniapp": "0.9.5",
- "@walmart/payrollsolution_miniapp": "0.130.1",
+ "@walmart/pay-stub-miniapp": "^0.9.7",
+ "@walmart/payrollsolution_miniapp": "^0.130.4",
"@walmart/price-changes-mini-app": "1.5.6",
"@walmart/profile-feature-app": "0.0.71",
"@walmart/push-to-talk-mini-app": "1.8.29",
@@ -5401,34 +5401,17 @@
}
},
"node_modules/@walmart/pay-stub-miniapp": {
- "version": "0.9.5",
- "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.5.tgz",
- "integrity": "sha512-1rWobfVHjmiS4FE1H6sM2hr/0LNxQN33zcbh64+DJQ89j+U7dMvKjXCJQuhJ/phtzJq2oe8fJ2UpLYY2B0+5AQ==",
+ "version": "0.9.7",
+ "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.7.tgz",
+ "integrity": "sha512-qXHpPmn6Y+geriEl6PB5/kmow188G8dYcLcCrFrpYmrxNDr1DtbAL/5+RWJKIO1kQQnbWxjTkozX4B6IZwZEyg==",
"dependencies": {
"crypto-js": "^3.3.0"
- },
- "peerDependencies": {
- "@react-navigation/native": "^5.7.3",
- "@react-navigation/stack": "^5.9.0",
- "@walmart/core-services": "^0.1.27",
- "@walmart/functional-components": "^1.0.27",
- "@walmart/gtp-shared-components": "^1.2.0",
- "@walmart/react-native-env": "^0.2.0",
- "@walmart/react-native-logger": "^1.9.0",
- "@walmart/react-native-shared-navigation": "^0.2.0",
- "@walmart/redux-store": "^1.0.12",
- "react": "^16.13.1",
- "react-native": "^0.63.2",
- "react-native-encrypted-storage": "^4.0.2",
- "react-native-wm-telemetry": "^0.3.0",
- "react-redux": "^7.2.1",
- "redux": "^4.0.5"
}
},
"node_modules/@walmart/payrollsolution_miniapp": {
- "version": "0.130.1",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.1.tgz",
- "integrity": "sha512-f7JM2iqvi4v1OeDnbubu5C5dI4CIl5GCp78wFP8gPTCs6vSTMT7Ru6kfZ7JeraCu6X8ZENLC8xZcNOHD90jVMA==",
+ "version": "0.130.4",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.4.tgz",
+ "integrity": "sha512-YFB2ovqucmR1yE7WikATcHSrNKRxzw7Dm/YV/ZfxDG9dCowD6E3zQ+6IWHNQURtrJ0fyi8XrZR+fyA4qmAnSMA==",
"dependencies": {
"crypto-js": "^3.3.0"
},
@@ -24927,17 +24910,17 @@
}
},
"@walmart/pay-stub-miniapp": {
- "version": "0.9.5",
- "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.5.tgz",
- "integrity": "sha512-1rWobfVHjmiS4FE1H6sM2hr/0LNxQN33zcbh64+DJQ89j+U7dMvKjXCJQuhJ/phtzJq2oe8fJ2UpLYY2B0+5AQ==",
+ "version": "0.9.7",
+ "resolved": "https://npme.walmart.com/@walmart/pay-stub-miniapp/-/pay-stub-miniapp-0.9.7.tgz",
+ "integrity": "sha512-qXHpPmn6Y+geriEl6PB5/kmow188G8dYcLcCrFrpYmrxNDr1DtbAL/5+RWJKIO1kQQnbWxjTkozX4B6IZwZEyg==",
"requires": {
"crypto-js": "^3.3.0"
}
},
"@walmart/payrollsolution_miniapp": {
- "version": "0.130.1",
- "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.1.tgz",
- "integrity": "sha512-f7JM2iqvi4v1OeDnbubu5C5dI4CIl5GCp78wFP8gPTCs6vSTMT7Ru6kfZ7JeraCu6X8ZENLC8xZcNOHD90jVMA==",
+ "version": "0.130.4",
+ "resolved": "https://npme.walmart.com/@walmart/payrollsolution_miniapp/-/payrollsolution_miniapp-0.130.4.tgz",
+ "integrity": "sha512-YFB2ovqucmR1yE7WikATcHSrNKRxzw7Dm/YV/ZfxDG9dCowD6E3zQ+6IWHNQURtrJ0fyi8XrZR+fyA4qmAnSMA==",
"requires": {
"crypto-js": "^3.3.0"
}
--- package.json
@@ -73,7 +73,6 @@
"@react-navigation/stack": "^6.1.0",
"@sharcoux/slider": "^6.1.1",
"@terrylinla/react-native-sketch-canvas": "0.8.0",
- "@walmart/OneWalmart-MiniApp": "1.0.12",
"@walmart/allspark-health-survey-mini-app": "0.0.44",
"@walmart/allspark-home-mini-app": "0.6.12",
"@walmart/allspark-neon-core": "0.1.31",
@@ -103,8 +102,9 @@
"@walmart/metrics-mini-app": "0.9.33",
"@walmart/mod-flex-mini-app": "1.2.7",
"@walmart/moment-walmart": "1.0.4",
- "@walmart/pay-stub-miniapp": "0.9.5",
- "@walmart/payrollsolution_miniapp": "0.130.1",
+ "@walmart/OneWalmart-MiniApp": "1.0.12",
+ "@walmart/pay-stub-miniapp": "0.9.7",
+ "@walmart/payrollsolution_miniapp": "0.130.4",
"@walmart/price-changes-mini-app": "1.5.6",
"@walmart/profile-feature-app": "0.0.71",
"@walmart/push-to-talk-mini-app": "1.8.29",
| bump version | bump version
|
f5da9f73b1b3883c471124698c62566c1f3ab1b9 | --- package-lock.json
@@ -64,7 +64,7 @@
"@walmart/learning-mini-app": "17.0.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
- "@walmart/mod-flex-mini-app": "1.13.7",
+ "@walmart/mod-flex-mini-app": "1.14.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.14",
"@walmart/onewalmart-miniapp": "1.0.16",
@@ -9284,9 +9284,9 @@
}
},
"node_modules/@walmart/mod-flex-mini-app": {
- "version": "1.14.4",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.14.4.tgz",
- "integrity": "sha512-jFYfCEYHnhG39MVtBn9ee+K6mcn+0bPGJf8P+3fr3YwO08inH2n7ww9+KoXGP0kTuujtpUNeLi3g126DrKmAjQ==",
+ "version": "1.14.5",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.14.5.tgz",
+ "integrity": "sha512-XHjKjaLQnD898xhM8LCSsAxPI1DeN7T5H/YpVs98pxA7Mi0R0FSh91dxk1T07fJSGYTRnlZayvYVj7dVYgUM/g==",
"hasInstallScript": true,
"peerDependencies": {
"@react-native-async-storage/async-storage": "^1.19.0",
@@ -33406,9 +33406,9 @@
}
},
"@walmart/mod-flex-mini-app": {
- "version": "1.14.4",
- "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.14.4.tgz",
- "integrity": "sha512-jFYfCEYHnhG39MVtBn9ee+K6mcn+0bPGJf8P+3fr3YwO08inH2n7ww9+KoXGP0kTuujtpUNeLi3g126DrKmAjQ=="
+ "version": "1.14.5",
+ "resolved": "https://npme.walmart.com/@walmart/mod-flex-mini-app/-/mod-flex-mini-app-1.14.5.tgz",
+ "integrity": "sha512-XHjKjaLQnD898xhM8LCSsAxPI1DeN7T5H/YpVs98pxA7Mi0R0FSh91dxk1T07fJSGYTRnlZayvYVj7dVYgUM/g=="
},
"@walmart/moment-walmart": {
"version": "1.0.4"
--- package.json
@@ -105,7 +105,7 @@
"@walmart/learning-mini-app": "17.0.4",
"@walmart/manager-approvals-miniapp": "0.2.4",
"@walmart/metrics-mini-app": "0.17.9",
- "@walmart/mod-flex-mini-app": "1.14.4",
+ "@walmart/mod-flex-mini-app": "1.14.5",
"@walmart/moment-walmart": "1.0.4",
"@walmart/money-auth-shared-components": "0.0.14",
"@walmart/onewalmart-miniapp": "1.0.16",
| Update to version v1.14.5 | Update to version v1.14.5
|
52c46740b9610a2ba10d111228e0ccadbb2c80f4 | --- ios/Podfile.lock
@@ -1454,7 +1454,7 @@ PODS:
- FirebaseMessaging (<= 10.1.0)
- StructuredLogAssistantIOS (= 0.0.7)
- TOCropViewController (2.6.1)
- - topstock-mini-app (1.2.0):
+ - topstock-mini-app (1.2.1):
- React
- VisionCamera (2.15.2):
- React
@@ -2035,7 +2035,7 @@ SPEC CHECKSUMS:
StructuredLogAssistantIOS: d48c327b3b67366d954435891dc1e748a6aeb9c1
SumoSDK: e79d830e9a4b14e6d32c07719e7562b30f1b535f
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
- topstock-mini-app: 4ff590f0b34c62a468366618e13f0f7f63c0d533
+ topstock-mini-app: 0258321a04df38d00dca8fc77abfc06a858df3c1
VisionCamera: 4cfd685b1e671fea4aa0400905ab397f0e972210
walmart-react-native-sumo-sdk: 0c9a5bd5f514bce7eed9f4a31b5d7b76ad6749a8
wifi-store-locator: d3fb3a630fe7d5e64cca7a8f564dcf5b14a594e2
--- package-lock.json
@@ -87,7 +87,7 @@
"@walmart/taskit-mini-app": "2.40.8",
"@walmart/texting-mini-app": "2.0.29",
"@walmart/time-clock-mini-app": "2.111.3",
- "@walmart/topstock-mini-app": "1.2.0",
+ "@walmart/topstock-mini-app": "1.2.1",
"@walmart/ui-components": "1.15.1",
"@walmart/welcomeme-mini-app": "0.82.1",
"@walmart/wfm-ui": "0.2.26",
@@ -9259,9 +9259,9 @@
"license": "GPL-3.0-or-later"
},
"node_modules/@walmart/topstock-mini-app": {
- "version": "1.2.0",
- "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.0.tgz",
- "integrity": "sha512-EKfUNgzwRy6c/h+Fon6NRsLQz5dWVR8UdatFuUnt09U0dr1KLLft3hEaWX9OfXb5xUvNLabqbHc9tJx6Km4xyA==",
+ "version": "1.2.1",
+ "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.1.tgz",
+ "integrity": "sha512-e29c1aRfc97uW1h3L/Iu/8EAKOhCMKwQsG4xo3V8dyNpm1wKq+aT/OaTcOd8Q5/HP88NlDT59emLww1ilhlCaQ==",
"dependencies": {
"javascript-time-ago": "^2.5.7"
},
@@ -33876,9 +33876,9 @@
"version": "1.0.4"
},
"@walmart/topstock-mini-app": {
- "version": "1.2.0",
- "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.0.tgz",
- "integrity": "sha512-EKfUNgzwRy6c/h+Fon6NRsLQz5dWVR8UdatFuUnt09U0dr1KLLft3hEaWX9OfXb5xUvNLabqbHc9tJx6Km4xyA==",
+ "version": "1.2.1",
+ "resolved": "https://npme.walmart.com/@walmart/topstock-mini-app/-/topstock-mini-app-1.2.1.tgz",
+ "integrity": "sha512-e29c1aRfc97uW1h3L/Iu/8EAKOhCMKwQsG4xo3V8dyNpm1wKq+aT/OaTcOd8Q5/HP88NlDT59emLww1ilhlCaQ==",
"requires": {
"javascript-time-ago": "^2.5.7"
}
--- package.json
@@ -128,7 +128,7 @@
"@walmart/taskit-mini-app": "2.40.8",
"@walmart/texting-mini-app": "2.0.29",
"@walmart/time-clock-mini-app": "2.111.3",
- "@walmart/topstock-mini-app": "1.2.0",
+ "@walmart/topstock-mini-app": "1.2.1",
"@walmart/ui-components": "1.15.1",
"@walmart/welcomeme-mini-app": "0.82.1",
"@walmart/wfm-ui": "0.2.26",
| fix(version): merge develop branch on delta api fix | fix(version): merge develop branch on delta api fix
|
4df3dcb8106d425cd5371ce2024b904049941b22 | --- targets/US/package.json
@@ -110,7 +110,7 @@
"@walmart/ims-print-services-ui": "2.15.3",
"@walmart/inbox-mini-app": "0.96.8",
"@walmart/iteminfo-mini-app": "7.16.2",
- "@walmart/learning-mini-app": "20.0.40",
+ "@walmart/learning-mini-app": "20.0.41",
"@walmart/manager-approvals-miniapp": "0.3.0",
"@walmart/me-at-walmart-athena-queries": "6.27.0",
"@walmart/me-at-walmart-common": "workspace:^",
--- yarn.lock
@@ -6873,9 +6873,9 @@ __metadata:
languageName: node
linkType: hard
-"@walmart/learning-mini-app@npm:20.0.40":
- version: 20.0.40
- resolution: "@walmart/learning-mini-app@npm:20.0.40"
+"@walmart/learning-mini-app@npm:20.0.41":
+ version: 20.0.41
+ resolution: "@walmart/learning-mini-app@npm:20.0.41"
peerDependencies:
"@atmt/feedback-component-native": ^8.0.0
"@react-native-firebase/analytics": 17.4.2
@@ -6949,7 +6949,7 @@ __metadata:
reduxsauce: ^1.2.0
reselect: ^4.0.0
wifi-store-locator: ^1.0.0-alpha2
- checksum: 10c0/652df3f26785166338a42049d0df566e76d209da6988ba636744bff8ef70c002bc4f5ee8c18e131bc16d629e38cb707e59787bb7827dc246cf9ca4f6393e358e
+ checksum: 10c0/ab8439924413873e1c0fe2159feb6e4d6653fe69b1dd716335555e96243812bc6b23bdd51eb1cae36a4c117dcdddf0817891a4a407974742b9de353d8547dd8b
languageName: node
linkType: hard
@@ -7312,7 +7312,7 @@ __metadata:
"@walmart/ims-print-services-ui": "npm:2.15.3"
"@walmart/inbox-mini-app": "npm:0.96.8"
"@walmart/iteminfo-mini-app": "npm:7.16.2"
- "@walmart/learning-mini-app": "npm:20.0.40"
+ "@walmart/learning-mini-app": "npm:20.0.41"
"@walmart/manager-approvals-miniapp": "npm:0.3.0"
"@walmart/me-at-walmart-athena-queries": "npm:6.27.0"
"@walmart/me-at-walmart-common": "workspace:^"
| feat: :sparkles: Bump learning mini app version to 20.0.41 | feat: :sparkles: Bump learning mini app version to 20.0.41
|
071ff5bd09fce7cea1753860f20d4dcd0ec7b7de | --- patches/@walmart+attendance-mini-app+0.190.2.patch
@@ -1,10 +0,0 @@
-diff --git a/node_modules/@walmart/attendance-mini-app/dist/util/localStorageService.js b/node_modules/@walmart/attendance-mini-app/dist/util/localStorageService.js
-index 9e360a1..bae3465 100644
---- a/node_modules/@walmart/attendance-mini-app/dist/util/localStorageService.js
-+++ b/node_modules/@walmart/attendance-mini-app/dist/util/localStorageService.js
-@@ -1,4 +1,4 @@
--import AsyncStorage from '@react-native-community/async-storage';
-+import AsyncStorage from '@react-native-async-storage/async-storage';
- /**
- * stores given `key` `value` pair in async stoage
- * @param key string key
| removed attendance-mini-app patch file | removed attendance-mini-app patch file
|
2949a5a2c12e7c76b9c6e3eb112ee13fcbedda18 | --- __tests__/__mocks__/@react-native-firebase/firestore.js
@@ -28,12 +28,4 @@ jest.mock('../../../src/presence/constants', () => {
};
});
-// jest.mock('../../../src/channels', () => {
-// return {
-// useChannelDocument: jest.fn(),
-// createAssociateChannelId: jest.fn(),
-// createChannelPath: jest.fn().mockReturnValue('/some/path'),
-// };
-// });
-
export default mockFirestore;
--- __tests__/communications/oneToOneChatTest.tsx
@@ -1,7 +1,8 @@
import React from 'react';
-import {renderWithProviders} from '../harness';
-
import {TestFirestoreComponent} from '../../src/components/TestFirestoreComponent';
+import firestore from '@react-native-firebase/firestore';
+import {renderWithProviders} from '../harness';
+import {createMockChannelsContext} from '../harness/firestore/channelsProvider';
describe('One to One Chat', () => {
beforeEach(() => {
@@ -99,11 +100,14 @@ describe('One to One Chat', () => {
// //TODO: Input a message with fireEvent and assert that message inserts into the firestoreDB
});
- it('building up to testing messages screen', () => {
+ it('building up to testing messages screen', async () => {
+ const channelsContext = await createMockChannelsContext(
+ firestore,
+ 'STORE_100',
+ );
const testComponentWithChannelsProvider = renderWithProviders(
<TestFirestoreComponent />,
);
-
expect(testComponentWithChannelsProvider.toJSON()).toMatchSnapshot();
});
--- __tests__/communications/vanillaTest.tsx
@@ -2,6 +2,7 @@ import React from 'react';
import firestore from '@react-native-firebase/firestore';
import {createAssociateChannelId} from '../../src/channels';
import {rawUserList} from '../harness/firestore/data/users';
+import {createMockChannelsContext} from '../harness/firestore/channelsProvider';
describe('vanilla', () => {
it('testing stuff', () => {
@@ -15,4 +16,24 @@ describe('vanilla', () => {
console.log(channelDoc.data());
});
});
+
+ it('query scratchpad', async () => {
+ const store100ChannelDocs = (
+ await firestore
+ .collection('text_channels')
+ .doc('STORE_100')
+ .collection('channels')
+ .get()
+ ).docs;
+ console.log(store100ChannelDocs);
+ });
+
+ it('print mock channels context', async () => {
+ const channelsContext = await createMockChannelsContext(
+ firestore,
+ 'STORE_100',
+ );
+
+ console.log(channelsContext);
+ });
});
--- __tests__/harness/firestore/channelsProvider.ts
@@ -1,19 +1,36 @@
import {IChannelsContext} from '../../../src/channels';
-export const mockChannelsContext: IChannelsContext = {
- ids: [],
- dataById: {},
- documentById: {},
- nameById: {},
- lastMessageById: {},
- unreadById: {},
- totalUnread: 0,
- totalUnreadChannels: 0,
- isError: false,
- error: null,
- firstLoad: false,
- subscriptionOn: () => {},
- subscriptionOff: () => {},
- lastMessageTrackingOn: () => {},
- lastMessageTrackingOff: () => {},
+export const createMockChannelsContext = async (
+ mockFirestore: any,
+ storeDocumentID: string,
+): Promise<IChannelsContext> => {
+ const getStoreChannels = async () => {
+ return (
+ await mockFirestore
+ .collection('text_channels')
+ .doc(storeDocumentID)
+ .collection('channels')
+ .get()
+ ).docs;
+ };
+ //TODO: Give channel appropriate type
+ return {
+ ids: (await getStoreChannels()).map((channel: any) => {
+ return channel.ref.path;
+ }),
+ dataById: {},
+ documentById: {},
+ nameById: {},
+ lastMessageById: {},
+ unreadById: {},
+ totalUnread: 0,
+ totalUnreadChannels: 0,
+ isError: false,
+ error: null,
+ firstLoad: false,
+ subscriptionOn: () => {},
+ subscriptionOff: () => {},
+ lastMessageTrackingOn: () => {},
+ lastMessageTrackingOff: () => {},
+ };
};
--- __tests__/__mocks__/@react-native-firebase/firestore.js
@@ -28,12 +28,4 @@ jest.mock('../../../src/presence/constants', () => {
};
});
-// jest.mock('../../../src/channels', () => {
-// return {
-// useChannelDocument: jest.fn(),
-// createAssociateChannelId: jest.fn(),
-// createChannelPath: jest.fn().mockReturnValue('/some/path'),
-// };
-// });
-
export default mockFirestore;
--- __tests__/communications/oneToOneChatTest.tsx
@@ -1,7 +1,8 @@
import React from 'react';
-import {renderWithProviders} from '../harness';
-
import {TestFirestoreComponent} from '../../src/components/TestFirestoreComponent';
+import firestore from '@react-native-firebase/firestore';
+import {renderWithProviders} from '../harness';
+import {createMockChannelsContext} from '../harness/firestore/channelsProvider';
describe('One to One Chat', () => {
beforeEach(() => {
@@ -99,11 +100,14 @@ describe('One to One Chat', () => {
// //TODO: Input a message with fireEvent and assert that message inserts into the firestoreDB
});
- it('building up to testing messages screen', () => {
+ it('building up to testing messages screen', async () => {
+ const channelsContext = await createMockChannelsContext(
+ firestore,
+ 'STORE_100',
+ );
const testComponentWithChannelsProvider = renderWithProviders(
<TestFirestoreComponent />,
);
-
expect(testComponentWithChannelsProvider.toJSON()).toMatchSnapshot();
});
--- __tests__/communications/vanillaTest.tsx
@@ -2,6 +2,7 @@ import React from 'react';
import firestore from '@react-native-firebase/firestore';
import {createAssociateChannelId} from '../../src/channels';
import {rawUserList} from '../harness/firestore/data/users';
+import {createMockChannelsContext} from '../harness/firestore/channelsProvider';
describe('vanilla', () => {
it('testing stuff', () => {
@@ -15,4 +16,24 @@ describe('vanilla', () => {
console.log(channelDoc.data());
});
});
+
+ it('query scratchpad', async () => {
+ const store100ChannelDocs = (
+ await firestore
+ .collection('text_channels')
+ .doc('STORE_100')
+ .collection('channels')
+ .get()
+ ).docs;
+ console.log(store100ChannelDocs);
+ });
+
+ it('print mock channels context', async () => {
+ const channelsContext = await createMockChannelsContext(
+ firestore,
+ 'STORE_100',
+ );
+
+ console.log(channelsContext);
+ });
});
--- __tests__/harness/firestore/channelsProvider.ts
@@ -1,19 +1,36 @@
import {IChannelsContext} from '../../../src/channels';
-export const mockChannelsContext: IChannelsContext = {
- ids: [],
- dataById: {},
- documentById: {},
- nameById: {},
- lastMessageById: {},
- unreadById: {},
- totalUnread: 0,
- totalUnreadChannels: 0,
- isError: false,
- error: null,
- firstLoad: false,
- subscriptionOn: () => {},
- subscriptionOff: () => {},
- lastMessageTrackingOn: () => {},
- lastMessageTrackingOff: () => {},
+export const createMockChannelsContext = async (
+ mockFirestore: any,
+ storeDocumentID: string,
+): Promise<IChannelsContext> => {
+ const getStoreChannels = async () => {
+ return (
+ await mockFirestore
+ .collection('text_channels')
+ .doc(storeDocumentID)
+ .collection('channels')
+ .get()
+ ).docs;
+ };
+ //TODO: Give channel appropriate type
+ return {
+ ids: (await getStoreChannels()).map((channel: any) => {
+ return channel.ref.path;
+ }),
+ dataById: {},
+ documentById: {},
+ nameById: {},
+ lastMessageById: {},
+ unreadById: {},
+ totalUnread: 0,
+ totalUnreadChannels: 0,
+ isError: false,
+ error: null,
+ firstLoad: false,
+ subscriptionOn: () => {},
+ subscriptionOff: () => {},
+ lastMessageTrackingOn: () => {},
+ lastMessageTrackingOff: () => {},
+ };
};
| working provider and render, though broken integration | working provider and render, though broken integration
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.